@evoscientist/webui 0.0.10 → 0.1.1

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 (287) hide show
  1. package/README.md +4 -0
  2. package/dist/.next/BUILD_ID +1 -1
  3. package/dist/.next/build-manifest.json +8 -8
  4. package/dist/.next/server/app/_global-error/page/build-manifest.json +5 -5
  5. package/dist/.next/server/app/_global-error/page.js +2 -2
  6. package/dist/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  7. package/dist/.next/server/app/_global-error.html +1 -1
  8. package/dist/.next/server/app/_global-error.rsc +7 -7
  9. package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  10. package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
  11. package/dist/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
  12. package/dist/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  13. package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/dist/.next/server/app/_not-found/page/build-manifest.json +5 -5
  15. package/dist/.next/server/app/_not-found/page.js +2 -2
  16. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/dist/.next/server/app/_not-found.html +1 -1
  18. package/dist/.next/server/app/_not-found.rsc +12 -12
  19. package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  20. package/dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  21. package/dist/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
  22. package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  23. package/dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  24. package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  25. package/dist/.next/server/app/api/memory/route.js +2 -2
  26. package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
  27. package/dist/.next/server/app/api/skills/catalog/route.js +2 -2
  28. package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
  29. package/dist/.next/server/app/api/skills/detail/route.js +2 -2
  30. package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
  31. package/dist/.next/server/app/api/skills/install/route.js +2 -2
  32. package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
  33. package/dist/.next/server/app/api/skills/route.js +2 -2
  34. package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
  35. package/dist/.next/server/app/api/workspace/download/route.js +2 -2
  36. package/dist/.next/server/app/api/workspace/file/route.js +2 -2
  37. package/dist/.next/server/app/api/workspace/route.js +2 -2
  38. package/dist/.next/server/app/api/workspace/upload/route.js +2 -2
  39. package/dist/.next/server/app/icon.png/route.js +2 -2
  40. package/dist/.next/server/app/index.html +1 -1
  41. package/dist/.next/server/app/index.rsc +14 -14
  42. package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  43. package/dist/.next/server/app/index.segments/_full.segment.rsc +14 -14
  44. package/dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
  45. package/dist/.next/server/app/index.segments/_index.segment.rsc +7 -7
  46. package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  47. package/dist/.next/server/app/page/build-manifest.json +5 -5
  48. package/dist/.next/server/app/page.js +2 -2
  49. package/dist/.next/server/app/page.js.nft.json +1 -1
  50. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  51. package/dist/.next/server/chunks/[externals]_next_dist_0arv.vj._.js +1 -1
  52. package/dist/.next/server/chunks/[root-of-the-server]__0-8pt0b._.js +2 -2
  53. package/dist/.next/server/chunks/[root-of-the-server]__04y5ms7._.js +2 -2
  54. package/dist/.next/server/chunks/[root-of-the-server]__08kko28._.js +1 -1
  55. package/dist/.next/server/chunks/[root-of-the-server]__0bpxd~j._.js +1 -1
  56. package/dist/.next/server/chunks/[root-of-the-server]__0cnmh23._.js +1 -1
  57. package/dist/.next/server/chunks/[root-of-the-server]__0j8-xkl._.js +3 -3
  58. package/dist/.next/server/chunks/[root-of-the-server]__0nngqla._.js +2 -2
  59. package/dist/.next/server/chunks/[root-of-the-server]__0o.c5k_._.js +1 -1
  60. package/dist/.next/server/chunks/[root-of-the-server]__0pz~0wz._.js +2 -2
  61. package/dist/.next/server/chunks/[root-of-the-server]__0s0~gzh._.js +1 -1
  62. package/dist/.next/server/chunks/[root-of-the-server]__0xoct7b._.js +1 -1
  63. package/dist/.next/server/chunks/_next-internal_server_app_api_evosci-config_route_actions_0nka7fr.js +1 -1
  64. package/dist/.next/server/chunks/_next-internal_server_app_api_memory_route_actions_0jf5z0q.js +1 -1
  65. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_catalog_route_actions_0pp.pug.js +1 -1
  66. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_detail_route_actions_02~v0so.js +1 -1
  67. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_install_route_actions_03-v3ve.js +1 -1
  68. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_route_actions_0kp0j6w.js +1 -1
  69. package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_download_route_actions_0y83v2y.js +1 -1
  70. package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_route_actions_0rc11bi.js +1 -1
  71. package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_upload_route_actions_070kzk5.js +1 -1
  72. package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0dh.2jf.js +1 -1
  73. package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0firp2j.js +1 -1
  74. package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0qs61ly.js +1 -1
  75. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_0xc8cuq._.js +106 -0
  76. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_12xi8w0._.js +66 -0
  77. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0d.k2tv._.js +136 -0
  78. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_02zfksy._.js +81 -0
  79. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0c30c1e._.js +3 -0
  80. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_07fd9jw._.js +155 -0
  81. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0a2sjhb._.js +79 -0
  82. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_0xpvx~c._.js +3 -0
  83. package/dist/.next/server/chunks/ssr/0t6k_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_01.5gnv._.js +82 -0
  84. package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_0ya3nf7._.js +92 -0
  85. package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_07c4~j8._.js +81 -0
  86. package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0i6u~cs._.js +117 -0
  87. package/dist/.next/server/chunks/ssr/[root-of-the-server]__01cqrhy._.js +2 -2
  88. package/dist/.next/server/chunks/ssr/[root-of-the-server]__098zro9._.js +4 -4
  89. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e_kl3j._.js +1 -1
  90. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e~coys._.js +1 -1
  91. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0lb9jwe._.js +1 -1
  92. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0tcyn68._.js +2 -2
  93. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wd7vkh._.js +32 -32
  94. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wg-5yv._.js +3 -0
  95. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0zi~h76._.js +1 -1
  96. package/dist/.next/server/chunks/ssr/[root-of-the-server]__1130a6w._.js +1 -1
  97. package/dist/.next/server/chunks/ssr/_03eop86._.js +2 -2
  98. package/dist/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js +1 -1
  99. package/dist/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js +1 -1
  100. package/dist/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js +1 -1
  101. package/dist/.next/server/chunks/ssr/node_modules_0-1grbb._.js +3 -0
  102. package/dist/.next/server/chunks/ssr/node_modules_01cxuby._.js +26 -0
  103. package/dist/.next/server/chunks/ssr/node_modules_01g.ix5._.js +3 -0
  104. package/dist/.next/server/chunks/ssr/node_modules_05gcv18._.js +17 -0
  105. package/dist/.next/server/chunks/ssr/node_modules_06xkovd._.js +3 -0
  106. package/dist/.next/server/chunks/ssr/node_modules_07a8dl.._.js +17 -0
  107. package/dist/.next/server/chunks/ssr/node_modules_09.c5cb._.js +3 -0
  108. package/dist/.next/server/chunks/ssr/node_modules_09w7yel._.js +2 -2
  109. package/dist/.next/server/chunks/ssr/node_modules_0_1jgqq._.js +17 -0
  110. package/dist/.next/server/chunks/ssr/node_modules_0_ce7g1._.js +1 -1
  111. package/dist/.next/server/chunks/ssr/node_modules_0cdeu-p._.js +2 -2
  112. package/dist/.next/server/chunks/ssr/node_modules_0g~jsln._.js +3 -0
  113. package/dist/.next/server/chunks/ssr/node_modules_0h3oz6o._.js +3 -0
  114. package/dist/.next/server/chunks/ssr/node_modules_0hsalo_._.js +3 -0
  115. package/dist/.next/server/chunks/ssr/node_modules_0hwzlhf._.js +3 -0
  116. package/dist/.next/server/chunks/ssr/node_modules_0j48jbs._.js +3 -0
  117. package/dist/.next/server/chunks/ssr/node_modules_0j5y4_5._.js +3 -0
  118. package/dist/.next/server/chunks/ssr/node_modules_0j_qjbq._.js +3 -0
  119. package/dist/.next/server/chunks/ssr/node_modules_0k~wgzn._.js +3 -0
  120. package/dist/.next/server/chunks/ssr/node_modules_0m8d9.a._.js +3 -0
  121. package/dist/.next/server/chunks/ssr/node_modules_0muum2-._.js +17 -0
  122. package/dist/.next/server/chunks/ssr/node_modules_0n1oaty._.js +3 -0
  123. package/dist/.next/server/chunks/ssr/node_modules_0nsd60y._.js +3 -0
  124. package/dist/.next/server/chunks/ssr/node_modules_0pi1vzb._.js +3 -0
  125. package/dist/.next/server/chunks/ssr/node_modules_0q8gl61._.js +3 -0
  126. package/dist/.next/server/chunks/ssr/node_modules_0qha24~._.js +3 -0
  127. package/dist/.next/server/chunks/ssr/node_modules_0rb97t7._.js +45 -0
  128. package/dist/.next/server/chunks/ssr/node_modules_0rmdi2n._.js +3 -0
  129. package/dist/.next/server/chunks/ssr/node_modules_0rs-at~._.js +3 -0
  130. package/dist/.next/server/chunks/ssr/node_modules_0s8hn7e._.js +3 -0
  131. package/dist/.next/server/chunks/ssr/node_modules_0usc4s9._.js +11 -0
  132. package/dist/.next/server/chunks/ssr/node_modules_0uteg8_._.js +3 -0
  133. package/dist/.next/server/chunks/ssr/node_modules_0ve5~h2._.js +31 -0
  134. package/dist/.next/server/chunks/ssr/node_modules_0vstvyn._.js +3 -0
  135. package/dist/.next/server/chunks/ssr/node_modules_0x2wy7b._.js +17 -0
  136. package/dist/.next/server/chunks/ssr/node_modules_0yo1ilw._.js +17 -0
  137. package/dist/.next/server/chunks/ssr/node_modules_0z~-p3m._.js +38 -0
  138. package/dist/.next/server/chunks/ssr/node_modules_0~4gze7._.js +3 -0
  139. package/dist/.next/server/chunks/ssr/node_modules_13oabuj._.js +289 -0
  140. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_00zox90._.js +3 -0
  141. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_048nvza._.js +3 -0
  142. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0bqbkzr._.js +3 -0
  143. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0iy4ann._.js +3 -0
  144. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n~wpy6._.js +3 -0
  145. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0rp8krb._.js +3 -0
  146. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0se--ys._.js +3 -0
  147. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0v554rd._.js +3 -0
  148. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12i5eeu._.js +3 -0
  149. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0.ksprp._.js +3 -0
  150. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00~7fbh._.js +3 -0
  151. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01-g753._.js +3 -0
  152. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_02.ao_s._.js +3 -0
  153. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_yd3ib._.js +3 -0
  154. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c.1f2e._.js +3 -0
  155. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0l0_~d-._.js +3 -0
  156. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0pjzhbh._.js +3 -0
  157. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0uq.qxy._.js +3 -0
  158. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13s5vbm._.js +3 -0
  159. package/dist/.next/server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0642y5z._.js +3 -0
  160. package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_097t5l0.js +3 -0
  161. package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0w42f48._.js +3 -0
  162. package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0zuygmo._.js +3 -0
  163. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0bclh9~._.js +129 -0
  164. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_11i~hhk._.js +7 -0
  165. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_0p4md.t._.js +64 -0
  166. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_0p7as5d._.js +4 -0
  167. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_05x94.y._.js +203 -0
  168. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_0_foecb._.js +228 -0
  169. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0g3lwf.._.js +121 -0
  170. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_0.lzb4g._.js +12 -0
  171. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_041viuq._.js +62 -0
  172. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0h8ib.t._.js +3 -0
  173. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0itw5kh._.js +3 -0
  174. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0et-fze._.js +26 -0
  175. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_12bfcsi._.js +82 -0
  176. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_0136c8y._.js +154 -0
  177. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_0z55106._.js +36 -0
  178. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0azazz~._.js +3 -0
  179. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_0wzofym._.js +25 -0
  180. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_0rr2bb.._.js +6 -0
  181. package/dist/.next/server/chunks/ssr/node_modules_next_dist_0xdsm99._.js +2 -2
  182. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +1 -1
  183. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +1 -1
  184. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +1 -1
  185. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +1 -1
  186. package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_00t_ate.js +2 -2
  187. package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_031v14j.js +2 -2
  188. package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rc3ul_.js +2 -2
  189. package/dist/.next/server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_0opq-c5.js +3 -0
  190. package/dist/.next/server/middleware-build-manifest.js +8 -8
  191. package/dist/.next/server/pages/404.html +1 -1
  192. package/dist/.next/server/pages/500.html +1 -1
  193. package/dist/.next/static/chunks/0-.wbb-l7eg0y.js +1 -0
  194. package/dist/.next/static/chunks/0-6znc4v4kg4~.js +1 -0
  195. package/dist/.next/static/chunks/01ontipw7_pn-.js +1 -0
  196. package/dist/.next/static/chunks/038jxymv2x4u-.js +148 -0
  197. package/dist/.next/static/chunks/03l_lqxocp3uj.js +1 -0
  198. package/dist/.next/static/chunks/03lth2le32c6r.js +201 -0
  199. package/dist/.next/static/chunks/03v0v690_bw8u.js +62 -0
  200. package/dist/.next/static/chunks/03yru4-m-450t.js +1 -0
  201. package/dist/.next/static/chunks/06o.rsm2b~dht.js +60 -0
  202. package/dist/.next/static/chunks/07znaqalfuldz.js +127 -0
  203. package/dist/.next/static/chunks/08nzg~fbi7p-7.js +1 -0
  204. package/dist/.next/static/chunks/08o5wsrurx9ux.js +5 -0
  205. package/dist/.next/static/chunks/09~n7y-jkmjlj.js +152 -0
  206. package/dist/.next/static/chunks/0aqpm5mabssqz.js +1 -0
  207. package/dist/.next/static/chunks/0awsj.h.eiuen.js +1 -0
  208. package/dist/.next/static/chunks/0axtn1ln1j35_.js +79 -0
  209. package/dist/.next/static/chunks/0c5xj4q0jmdu0.js +1 -0
  210. package/dist/.next/static/chunks/0cs_h74-ljzlt.js +77 -0
  211. package/dist/.next/static/chunks/0cu8k_dz43e4y.js +1 -0
  212. package/dist/.next/static/chunks/0dcu67gngfgpb.js +4 -0
  213. package/dist/.next/static/chunks/0do2sl_ugmstg.js +10 -0
  214. package/dist/.next/static/chunks/0dsde0n1co0l..js +1 -0
  215. package/dist/.next/static/chunks/0e4xdug~7dxzk.js +1 -0
  216. package/dist/.next/static/chunks/0ez8v7k1e7v4o.js +1 -0
  217. package/dist/.next/static/chunks/0f8bbcvfh6x_j.js +64 -0
  218. package/dist/.next/static/chunks/0ge0mq0ea60lx.js +1 -0
  219. package/dist/.next/static/chunks/0gq18q-ip0uh2.js +90 -0
  220. package/dist/.next/static/chunks/0hq~c-~dp2g~1.js +1 -0
  221. package/dist/.next/static/chunks/0i8pgzf~hu-3m.js +24 -0
  222. package/dist/.next/static/chunks/0icpvuwlmnlty.js +43 -0
  223. package/dist/.next/static/chunks/0ipk1er3w80bj.js +24 -0
  224. package/dist/.next/static/chunks/0k9_1v72yx36d.js +226 -0
  225. package/dist/.next/static/chunks/0l3uvjh3oslhq.js +1 -0
  226. package/dist/.next/static/chunks/0lfej4svc~ist.js +1 -0
  227. package/dist/.next/static/chunks/0lmzx880lnpb..js +1 -0
  228. package/dist/.next/static/chunks/0luwdx.2p-x9e.js +31 -0
  229. package/dist/.next/static/chunks/0lypu-.xpph9..js +15 -0
  230. package/dist/.next/static/chunks/0mo3-obfy2_6v.js +15 -0
  231. package/dist/.next/static/chunks/0npm9l63~4j0v.js +1 -0
  232. package/dist/.next/static/chunks/0ortphe030oky.js +1 -0
  233. package/dist/.next/static/chunks/0oufb2b491l23.js +153 -0
  234. package/dist/.next/static/chunks/0p9rfgg_duajn.js +2 -0
  235. package/dist/.next/static/chunks/0ps77yd96walr.js +4 -0
  236. package/dist/.next/static/chunks/0qfu4h5g.k-yt.js +1 -0
  237. package/dist/.next/static/chunks/0qm2930z0c.8m.js +80 -0
  238. package/dist/.next/static/chunks/0rhp21-_6q-24.css +2 -0
  239. package/dist/.next/static/chunks/0rhvismtjivza.js +104 -0
  240. package/dist/.next/static/chunks/0rmt10l3458p_.js +93 -0
  241. package/dist/.next/static/chunks/0r~zu0c3j_b7p.js +1 -0
  242. package/dist/.next/static/chunks/0s0v8xobo-2ok.js +34 -0
  243. package/dist/.next/static/chunks/0s8nwq43gep9_.js +15 -0
  244. package/dist/.next/static/chunks/0spswjguxbqfn.js +1 -0
  245. package/dist/.next/static/chunks/0uc19zfv_v9-i.js +1 -0
  246. package/dist/.next/static/chunks/0uf5oxbpavywn.js +1 -0
  247. package/dist/.next/static/chunks/0v4i6jr6yqwgm.js +75 -0
  248. package/dist/.next/static/chunks/0wbhqz.-ey98b.js +1 -0
  249. package/dist/.next/static/chunks/0xxouzzjw_a6q.js +115 -0
  250. package/dist/.next/static/chunks/0ydl92ezt_ppz.js +1 -0
  251. package/dist/.next/static/chunks/0~.e-m04zn5l_.js +119 -0
  252. package/dist/.next/static/chunks/0~b.d.ay4u9zg.js +2 -0
  253. package/dist/.next/static/chunks/104yvyc1ce3q5.js +1 -0
  254. package/dist/.next/static/chunks/112qdnf547wz8.js +1 -0
  255. package/dist/.next/static/chunks/11_7qxlc92f5s.js +1 -0
  256. package/dist/.next/static/chunks/11h85j-8~tny3.js +36 -0
  257. package/dist/.next/static/chunks/11luuvvu~stmv.js +1 -0
  258. package/dist/.next/static/chunks/11uh-ttx4zin-.js +9 -0
  259. package/dist/.next/static/chunks/13mjf5q.pema_.js +2 -0
  260. package/dist/.next/static/chunks/14i46k409qlt0.js +1 -0
  261. package/dist/.next/static/chunks/14j238ax8coge.js +29 -0
  262. package/dist/.next/static/chunks/14u7twut.vmn5.js +1 -0
  263. package/dist/.next/static/chunks/159151ghv9-cc.js +1 -0
  264. package/dist/.next/static/chunks/15r_pfbdb2jhp.js +23 -0
  265. package/dist/.next/static/chunks/16m14x8k2fnon.js +287 -0
  266. package/dist/.next/static/chunks/16pzrphqjtyli.js +1 -0
  267. package/dist/.next/static/chunks/175hd_pl41_vh.js +15 -0
  268. package/dist/.next/static/chunks/182b_f_n0-cdr.js +1 -0
  269. package/dist/.next/static/chunks/187v8dzyf1l-f.js +80 -0
  270. package/dist/.next/static/chunks/turbopack-12mx7z-ex6m1h.js +1 -0
  271. package/dist/package.json +5 -1
  272. package/package.json +5 -1
  273. package/dist/.next/server/chunks/ssr/[root-of-the-server]__04-lgb_._.js +0 -3
  274. package/dist/.next/static/chunks/063f4u.4z~v2d.js +0 -1
  275. package/dist/.next/static/chunks/069oirf3gupp6.js +0 -1
  276. package/dist/.next/static/chunks/09j8za_6zxpaz.js +0 -31
  277. package/dist/.next/static/chunks/0cje14_narrpx.js +0 -4
  278. package/dist/.next/static/chunks/0fsi8lw5utejl.js +0 -1
  279. package/dist/.next/static/chunks/0jtueskz-y_9~.js +0 -2
  280. package/dist/.next/static/chunks/0lb2ln-m2_o~q.js +0 -1
  281. package/dist/.next/static/chunks/0njfd4s35t8hg.css +0 -2
  282. package/dist/.next/static/chunks/143yn1~y.nunv.js +0 -75
  283. package/dist/.next/static/chunks/15km7mt~t~zy4.js +0 -2
  284. package/dist/.next/static/chunks/turbopack-0yd~9xptp2nkd.js +0 -1
  285. /package/dist/.next/static/{Bt8CaAVvU3jBI-gY3KExJ → gkNr2MgYRz9rGG-3TWYFV}/_buildManifest.js +0 -0
  286. /package/dist/.next/static/{Bt8CaAVvU3jBI-gY3KExJ → gkNr2MgYRz9rGG-3TWYFV}/_clientMiddlewareManifest.js +0 -0
  287. /package/dist/.next/static/{Bt8CaAVvU3jBI-gY3KExJ → gkNr2MgYRz9rGG-3TWYFV}/_ssgManifest.js +0 -0
@@ -0,0 +1,153 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,179007,t=>{"use strict";var e=t.i(960948),a=t.i(621501),r=t.i(857387),i=t.i(669587),s=t.i(908381),n=t.i(171206);t.i(947716);var o=t.i(723685),c=t.i(139941),l=function(){var t=(0,n.__name)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],o=[1,11],c=[1,12],l=[1,14],d=[1,15],h=[1,17],p=[1,18],T=[1,19],E=[1,25],g=[1,26],_=[1,27],u=[1,28],m=[1,29],x=[1,30],O=[1,31],y=[1,32],b=[1,33],f=[1,34],I=[1,35],R=[1,36],L=[1,37],P=[1,38],N=[1,39],S=[1,40],w=[1,42],D=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Y=[1,74],B=[1,80],$=[1,81],V=[1,82],W=[1,83],K=[1,84],F=[1,85],q=[1,86],H=[1,87],z=[1,88],U=[1,89],j=[1,90],G=[1,91],X=[1,92],J=[1,93],Z=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[2,78],th=[4,5,17,51,53,54],tp=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tT=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],t_=[5,52],tu=[70,71,72,73],tm=[1,151],tx={trace:(0,n.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,n.__name)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:this.$={type:"addParticipant",actor:s[o]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},t(v,[2,5]),{9:48,13:13,14:l,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},t(v,[2,7]),t(v,[2,8]),t(v,[2,9]),t(v,[2,15]),{13:49,51:P,53:N,54:S},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:C},{23:56,73:C},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(v,[2,30]),t(v,[2,31]),{33:[1,62]},{35:[1,63]},t(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Y},{23:75,55:76,73:Y},{23:77,73:C},{69:78,72:[1,79],78:B,79:$,80:V,81:W,82:K,83:F,84:q,85:H,86:z,87:U,88:j,89:G,90:X,91:J,92:Z,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:C},{23:111,73:C},{23:112,73:C},{23:113,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],td),t(v,[2,6]),t(v,[2,16]),t(th,[2,10],{11:114}),t(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(v,[2,22]),{5:[1,118]},{5:[1,119]},t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,32]),t(v,[2,33]),t(tp,i,{7:120}),t(tp,i,{7:121}),t(tp,i,{7:122}),t(tT,i,{41:123,7:124}),t(tE,i,{43:125,7:126}),t(tE,i,{7:126,43:127}),t(tg,i,{46:128,7:129}),t(tp,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(t_,td,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:C},{69:146,78:B,79:$,80:V,81:W,82:K,83:F,84:q,85:H,86:z,87:U,88:j,89:G,90:X,91:J,92:Z,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},t(tu,[2,79]),t(tu,[2,80]),t(tu,[2,81]),t(tu,[2,82]),t(tu,[2,83]),t(tu,[2,84]),t(tu,[2,85]),t(tu,[2,86]),t(tu,[2,87]),t(tu,[2,88]),t(tu,[2,89]),t(tu,[2,90]),t(tu,[2,91]),t(tu,[2,92]),t(tu,[2,93]),t(tu,[2,94]),t(tu,[2,95]),t(tu,[2,96]),t(tu,[2,97]),t(tu,[2,98]),t(tu,[2,99]),t(tu,[2,100]),t(tu,[2,101]),t(tu,[2,102]),t(tu,[2,103]),t(tu,[2,104]),{23:147,73:C},{23:149,60:148,73:C},{73:[2,68]},{73:[2,69]},{58:150,104:tm},{58:152,104:tm},{58:153,104:tm},{58:154,104:tm},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:P,53:N,54:S},{5:[1,160]},t(v,[2,20]),t(v,[2,21]),t(v,[2,23]),t(v,[2,24]),{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,161],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{17:[1,164]},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,50:[1,165],51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{17:[1,166]},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,49:[1,167],51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{17:[1,168]},{17:[1,169]},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,48:[1,170],51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{4:s,5:o,8:8,9:10,10:c,13:13,14:l,15:d,17:[1,171],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:_,34:u,36:m,37:x,38:O,39:y,40:b,42:f,44:I,45:R,47:L,51:P,53:N,54:S,56:w,61:D,62:A,63:k,64:M,73:C},{16:[1,172]},t(v,[2,50]),{16:[1,173]},t(v,[2,55]),t(t_,[2,76]),{76:[1,174]},{16:[1,175]},t(v,[2,52]),{16:[1,176]},t(v,[2,57]),t(v,[2,53]),{23:177,73:C},{23:178,73:C},{23:179,73:C},{58:180,104:tm},{23:181,72:[1,182],73:C},{58:183,104:tm},{58:184,104:tm},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(v,[2,17]),t(th,[2,11]),{13:186,51:P,53:N,54:S},t(th,[2,13]),t(th,[2,14]),t(v,[2,19]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),{16:[1,187]},t(v,[2,39]),{16:[1,188]},t(v,[2,40]),t(v,[2,41]),{16:[1,189]},t(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:tm},{58:196,104:tm},{58:197,104:tm},{5:[2,75]},{58:198,104:tm},{23:199,73:C},{5:[2,58]},{5:[2,59]},{23:200,73:C},t(th,[2,12]),t(tT,i,{7:124,41:201}),t(tE,i,{7:126,43:202}),t(tg,i,{7:129,46:203}),t(v,[2,49]),t(v,[2,54]),t(t_,[2,77]),t(v,[2,51]),t(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:tm},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:(0,n.__name)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,n.__name)(function(t){var e=this,a=[0],r=[],i=[null],s=[],o=this.table,c="",l=0,d=0,h=0,p=s.slice.call(arguments,1),T=Object.create(this.lexer),E={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(E[g]=this.yy[g]);T.setInput(t,E),E.lexer=T,E.parser=this,void 0===T.yylloc&&(T.yylloc={});var _=T.yylloc;s.push(_);var u=T.options&&T.options.ranges;function m(){var t;return"number"!=typeof(t=r.pop()||T.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof E.parseError?this.parseError=E.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,n.__name)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,n.__name)(m,"lex");for(var x,O,y,b,f,I,R,L,P,N={};;){if(y=a[a.length-1],this.defaultActions[y]?b=this.defaultActions[y]:(null==x&&(x=m()),b=o[y]&&o[y][x]),void 0===b||!b.length||!b[0]){var S="";for(I in P=[],o[y])this.terminals_[I]&&I>2&&P.push("'"+this.terminals_[I]+"'");S=T.showPosition?"Parse error on line "+(l+1)+":\n"+T.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:T.match,token:this.terminals_[x]||x,line:T.yylineno,loc:_,expected:P})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+y+", token: "+x);switch(b[0]){case 1:a.push(x),i.push(T.yytext),s.push(T.yylloc),a.push(b[1]),x=null,O?(x=O,O=null):(d=T.yyleng,c=T.yytext,l=T.yylineno,_=T.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[b[1]][1],N.$=i[i.length-R],N._$={first_line:s[s.length-(R||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(R||1)].first_column,last_column:s[s.length-1].last_column},u&&(N._$.range=[s[s.length-(R||1)].range[0],s[s.length-1].range[1]]),void 0!==(f=this.performAction.apply(N,[c,d,l,E,b[1],i,s].concat(p))))return f;R&&(a=a.slice(0,-1*R*2),i=i.slice(0,-1*R),s=s.slice(0,-1*R)),a.push(this.productions_[b[1]][0]),i.push(N.$),s.push(N._$),L=o[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return!0}}return!0},"parse")};function tO(){this.yy={}}return tx.lexer={EOF:1,parseError:(0,n.__name)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,n.__name)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,n.__name)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:(0,n.__name)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,n.__name)(function(){return this._more=!0,this},"more"),reject:(0,n.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,n.__name)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,n.__name)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,n.__name)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,n.__name)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,n.__name)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,n.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;s<i.length;s++)if((a=this._input.match(this.rules[i[s]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,n.__name)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,n.__name)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,n.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,n.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,n.__name)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,n.__name)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,n.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,n.__name)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,n.__name)(tO,"Parser"),tO.prototype=tx,tx.Parser=tO,new tO}();l.parser=l;var d={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},h={FILLED:0,OPEN:1},p={LEFTOF:0,RIGHTOF:1,OVER:2},T=class{constructor(){this.state=new r.ImperativeState(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=s.setAccTitle,this.setAccDescription=s.setAccDescription,this.setDiagramTitle=s.setDiagramTitle,this.getAccTitle=s.getAccTitle,this.getAccDescription=s.getAccDescription,this.getDiagramTitle=s.getDiagramTitle,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,s.getConfig2)().wrap),this.LINETYPE=d,this.ARROWTYPE=h,this.PLACEMENT=p}static{(0,n.__name)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,a,r,i,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,e.load)(t,{schema:e.JSON_SCHEMA})}i=n?.type??i,n?.alias&&(!r||r.text===a)&&(r={text:n.alias,wrap:r?.wrap,type:i});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&a===c.name&&null==r)return}if(r?.text==null&&(r={text:a,type:i}),(null==i||null==r.text)&&(r={text:a,type:i}),this.state.records.actors.set(t,{box:o,name:a,description:r.text,wrap:r.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&a++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&a--;return a}addMessage(t,e,a,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a.text,wrap:a.wrap??this.autoWrap(),answer:r})}addSignal(t,e,a,r,i=!1,s){if(r===this.LINETYPE.ACTIVE_END&&1>this.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,s.getConfig2)().sequence?.wrap??!1}clear(){this.state.reset(),(0,s.clear)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return n.log.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:n}=this.extractWrap(r);return{text:n?(0,s.sanitizeText)(n,(0,s.getConfig2)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,s.sanitizeText)(e.text,(0,s.getConfig2)());t=(t=t.replace(/&equals;/g,"=")).replace(/&amp;/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){n.log.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,s.sanitizeText)(e.text,(0,s.getConfig2)()),i=r.indexOf("@"),n=(r=(r=r.replace(/&equals;/g,"=")).replace(/&amp;/g,"&")).slice(0,i-1).trim(),o=r.slice(i+1).trim();t[n]=o,this.insertLinks(a,t)}catch(t){n.log.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,s.sanitizeText)(e.text,(0,s.getConfig2)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){n.log.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){n.log.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,s.setAccTitle)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,s.getConfig2)().sequence}},E=(0,n.__name)(t=>{let e=t.dropShadow??"none",{look:a}=(0,s.getConfig2)();return`.actor {
2
+ stroke: ${t.actorBorder};
3
+ fill: ${t.actorBkg};
4
+ stroke-width: ${t.strokeWidth??1};
5
+ }
6
+
7
+ rect.actor.outer-path[data-look="neo"] {
8
+ filter: ${e};
9
+ }
10
+
11
+ rect.note[data-look="neo"] {
12
+ stroke:${t.noteBorderColor};
13
+ fill:${t.noteBkgColor};
14
+ filter: ${e};
15
+ }
16
+
17
+ text.actor > tspan {
18
+ fill: ${t.actorTextColor};
19
+ stroke: none;
20
+ }
21
+
22
+ .actor-line {
23
+ stroke: ${t.actorLineColor};
24
+ }
25
+
26
+ .innerArc {
27
+ stroke-width: 1.5;
28
+ stroke-dasharray: none;
29
+ }
30
+
31
+ .messageLine0 {
32
+ stroke-width: 1.5;
33
+ stroke-dasharray: none;
34
+ stroke: ${t.signalColor};
35
+ }
36
+
37
+ .messageLine1 {
38
+ stroke-width: 1.5;
39
+ stroke-dasharray: 2, 2;
40
+ stroke: ${t.signalColor};
41
+ }
42
+
43
+ [id$="-arrowhead"] path {
44
+ fill: ${t.signalColor};
45
+ stroke: ${t.signalColor};
46
+ }
47
+
48
+ .sequenceNumber {
49
+ fill: ${t.sequenceNumberColor};
50
+ }
51
+
52
+ [id$="-sequencenumber"] {
53
+ fill: ${t.signalColor};
54
+ }
55
+
56
+ [id$="-crosshead"] path {
57
+ fill: ${t.signalColor};
58
+ stroke: ${t.signalColor};
59
+ }
60
+
61
+ .messageText {
62
+ fill: ${t.signalTextColor};
63
+ stroke: none;
64
+ }
65
+
66
+ .labelBox {
67
+ stroke: ${t.labelBoxBorderColor};
68
+ fill: ${t.labelBoxBkgColor};
69
+ filter: ${"neo"===a?e:"none"};
70
+ }
71
+
72
+ .labelText, .labelText > tspan {
73
+ fill: ${t.labelTextColor};
74
+ stroke: none;
75
+ }
76
+
77
+ .loopText, .loopText > tspan {
78
+ fill: ${t.loopTextColor};
79
+ stroke: none;
80
+ }
81
+
82
+ .sectionTitle, .sectionTitle > tspan {
83
+ fill: ${t.loopTextColor};
84
+ stroke: none;
85
+ }
86
+
87
+ .loopLine {
88
+ stroke-width: 2px;
89
+ stroke-dasharray: 2, 2;
90
+ stroke: ${t.labelBoxBorderColor};
91
+ fill: ${t.labelBoxBorderColor};
92
+ }
93
+
94
+ .note {
95
+ //stroke: #decc93;
96
+ stroke: ${t.noteBorderColor};
97
+ fill: ${t.noteBkgColor};
98
+ }
99
+
100
+ .noteText, .noteText > tspan {
101
+ fill: ${t.noteTextColor};
102
+ stroke: none;
103
+ ${t.noteFontWeight?`font-weight: ${t.noteFontWeight};`:""}
104
+ }
105
+
106
+ .activation0 {
107
+ fill: ${t.activationBkgColor};
108
+ stroke: ${t.activationBorderColor};
109
+ }
110
+
111
+ .activation1 {
112
+ fill: ${t.activationBkgColor};
113
+ stroke: ${t.activationBorderColor};
114
+ }
115
+
116
+ .activation2 {
117
+ fill: ${t.activationBkgColor};
118
+ stroke: ${t.activationBorderColor};
119
+ }
120
+
121
+ .actorPopupMenu {
122
+ position: absolute;
123
+ }
124
+
125
+ .actorPopupMenuPanel {
126
+ position: absolute;
127
+ fill: ${t.actorBkg};
128
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
129
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
130
+ }
131
+ .actor-man circle, line {
132
+ fill: ${t.actorBkg};
133
+ stroke-width: 2px;
134
+ }
135
+
136
+ g rect.rect {
137
+ filter: ${e};
138
+ stroke: ${t.nodeBorder};
139
+ }
140
+ `},"getStyles"),g="actor-top",_="actor-bottom",u="actor-box",m="actor-man",x=new Set(["redux-color","redux-dark-color"]),O=(0,n.__name)(function(t,e){let r=(0,a.drawRect)(t,e);return"neo"===(0,s.getConfig)().look&&r.attr("data-look","neo"),r},"drawRect"),y=(0,n.__name)(function(t,e,a,r,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};let s=e.links,n=e.actorCnt,o=e.rectData;var l="none";i&&(l="block !important");let d=t.append("g");d.attr("id","actor"+n+"_popup"),d.attr("class","actorPopupMenu"),d.attr("display",l);var h="";void 0!==o.class&&(h=" "+o.class);let p=o.width>a?o.width:a,T=d.append("rect");if(T.attr("class","actorPopupMenuPanel"+h),T.attr("x",o.x),T.attr("y",o.height),T.attr("fill",o.fill),T.attr("stroke",o.stroke),T.attr("width",p),T.attr("height",o.height),T.attr("rx",o.rx),T.attr("ry",o.ry),null!=s){var E=20;for(let t in s){var g=d.append("a"),_=(0,c.sanitizeUrl)(s[t]);g.attr("xlink:href",_),g.attr("target","_blank"),Q(r)(t,g,o.x+10,o.height+E,p,20,{class:"actor"},r),E+=30}}return T.attr("height",E),{height:o.height+E,width:p}},"drawPopup"),b=(0,n.__name)(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),f=(0,n.__name)(async function(t,e,a=null){let r=t.append("foreignObject"),i=await (0,s.renderKatexSanitized)(e.text,(0,s.getConfig)()),n=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(n.height)).attr("width",Math.round(n.width)),"noteText"===e.class){let a=t.node().firstChild;a.setAttribute("height",n.height+2*e.textMargin);let i=a.getBBox();r.attr("x",Math.round(i.x+i.width/2-n.width/2)).attr("y",Math.round(i.y+i.height/2-n.height/2))}else if(a){let{startx:t,stopx:i,starty:s}=a;if(t>i){let e=t;t=i,i=e}r.attr("x",Math.round(t+Math.abs(t-i)/2-n.width/2)),"loopText"===e.class?r.attr("y",Math.round(s)):r.attr("y",Math.round(s-n.height))}return[r]},"drawKatex"),I=(0,n.__name)(function(t,e){let a=0,r=0,o=e.text.split(s.common_default.lineBreakRegex),[c,l]=(0,i.parseFontSize)(e.fontSize),d=[],h=0,p=(0,n.__name)(()=>e.y,"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":p=(0,n.__name)(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":p=(0,n.__name)(()=>Math.round(e.y+(a+r+e.textMargin)/2),"yfunc");break;case"bottom":case"end":p=(0,n.__name)(()=>Math.round(e.y+(a+r+2*e.textMargin)-e.textMargin),"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[s,n]of o.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==c&&(h=s*c);let o=t.append("text");o.attr("x",e.x),o.attr("y",p()),void 0!==e.anchor&&o.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&o.style("font-family",e.fontFamily),void 0!==l&&o.style("font-size",l),void 0!==e.fontWeight&&o.style("font-weight",e.fontWeight),void 0!==e.fill&&o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class),void 0!==e.dy?o.attr("dy",e.dy):0!==h&&o.attr("dy",h);let T=n||i.ZERO_WIDTH_SPACE;if(e.tspan){let t=o.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(T)}else o.text(T);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(o._groups||o)[0][0].getBBox().height,a=r),d.push(o)}return d},"drawText"),R=(0,n.__name)(function(t,e){function a(t,e,a,r,i){return t+","+e+" "+(t+a)+","+e+" "+(t+a)+","+(e+r-i)+" "+(t+a-1.2*i)+","+(e+r)+" "+t+","+(e+r)}(0,n.__name)(a,"genPoints");let r=t.append("polygon");return r.attr("points",a(e.x,e.y,e.width,e.height,7)),r.attr("class","labelBox"),e.y=e.y+e.height/2,I(t,e),r},"drawLabel"),L=-1,P=(0,n.__name)((t,e,a,r)=>{t.select&&a.forEach(a=>{let i=e.get(a),s=t.select("#actor"+i.actorCnt);!r.mirrorActors&&i.stopy?s.attr("y2",i.stopy+i.height/2):r.mirrorActors&&s.attr("y2",i.stopy)})},"fixLifeLineHeights"),N=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:T,borderColorArray:E}=p,m=t.append("g").lower();var y=m;i||(L++,Object.keys(e.links||{}).length&&!r.forceMenus&&y.attr("onclick",b(`actor${L}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+L).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",e.name).attr("data-et","life-line").attr("data-id",e.name),y=m.append("g"),e.actorCnt=L,null!=e.links&&y.attr("id","root-"+L),"neo"===d&&y.attr("data-look","neo"));let f=(0,a.getNoteRect)();var I="actor";e.properties?.class?I=e.properties.class:f.fill="#eaeaea",i?I+=` ${_}`:I+=` ${g}`,f.x=e.x,f.y=o,f.width=e.width,f.height=e.height,f.class=I,f.rx=3,f.ry=3,f.name=e.name,"neo"===d&&(f.rx=6,f.ry=6);let R=O(y,f),P=n.get(e.name)??0;if(x.has(h)&&(R.style("stroke",E[P%E.length]),R.style("fill",T[P%E.length])),"neo"===d&&R.attr("filter","url(#drop-shadow)"),e.rectData=f,e.properties?.icon){let t=e.properties.icon.trim();"@"===t.charAt(0)?(0,a.drawEmbeddedImage)(y,f.x+f.width-20,f.y+10,t.substr(1)):(0,a.drawImage)(y,f.x+f.width-20,f.y+10,t)}i||(y.attr("data-et","participant"),y.attr("data-type","participant"),y.attr("data-id",e.name)),Z(r,(0,s.hasKatex)(e.description))(e.description,y,f.x,f.y,f.width,f.height,{class:`actor ${u}`},r);let N=e.height;if(R.node){let t=R.node().getBBox();e.height=t.height,N=t.height}return N},"drawActorTypeParticipant"),S=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:T,borderColorArray:E}=p,m=t.append("g").lower();var y=m;i||(L++,Object.keys(e.links||{}).length&&!r.forceMenus&&y.attr("onclick",b(`actor${L}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+L).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",e.name).attr("data-et","life-line").attr("data-id",e.name),y=m.append("g"),e.actorCnt=L,null!=e.links&&y.attr("id","root-"+L),"neo"===d&&y.attr("data-look","neo"));let f=(0,a.getNoteRect)();var I="actor";e.properties?.class?I=e.properties.class:f.fill="#eaeaea",i?I+=` ${_}`:I+=` ${g}`,f.x=e.x,f.y=o,f.width=e.width,f.height=e.height,f.class=I,f.name=e.name;let R={...f,x:f.x+-6,y:f.y+6,class:"actor"},P=O(y,f),N=O(y,R);e.rectData=f,"neo"===d&&y.attr("filter","url(#drop-shadow)");let S=n.get(e.name)??0;if(x.has(h)&&(P.style("stroke",E[S%E.length]),P.style("fill",T[S%E.length]),N.style("stroke",E[S%E.length]),N.style("fill",T[S%E.length])),e.properties?.icon){let t=e.properties.icon.trim();"@"===t.charAt(0)?(0,a.drawEmbeddedImage)(y,f.x+f.width-20,f.y+10,t.substr(1)):(0,a.drawImage)(y,f.x+f.width-20,f.y+10,t)}Z(r,(0,s.hasKatex)(e.description))(e.description,y,f.x-6,f.y+6,f.width,f.height,{class:`actor ${u}`},r);let w=e.height;if(P.node){let t=P.node().getBBox();e.height=t.height,w=t.height}return i||(y.attr("data-et","participant"),y.attr("data-type","collections"),y.attr("data-id",e.name)),w},"drawActorTypeCollections"),w=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:T,borderColorArray:E}=p,m=t.append("g").lower(),O=m;i||(L++,Object.keys(e.links||{}).length&&!r.forceMenus&&O.attr("onclick",b(`actor${L}_popup`)).attr("cursor","pointer"),O.append("line").attr("id","actor"+L).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",e.name).attr("data-et","life-line").attr("data-id",e.name),O=m.append("g"),e.actorCnt=L,null!=e.links&&O.attr("id","root-"+L),"neo"===d&&O.attr("data-look","neo"));let y=(0,a.getNoteRect)(),f="actor";e.properties?.class?f=e.properties.class:y.fill="#eaeaea",i?f+=` ${_}`:f+=` ${g}`,O.attr("class",f),y.x=e.x,y.y=o,y.width=e.width,y.height=e.height,y.name=e.name;let I=y.height/2,R=I/(2.5+y.height/50),P=O.append("g"),N=O.append("g"),S=`M ${y.x},${y.y+I}
141
+ a ${R},${I} 0 0 0 0,${y.height}
142
+ h ${y.width-2*R}
143
+ a ${R},${I} 0 0 0 0,-${y.height}
144
+ Z
145
+ `;P.append("path").attr("d",S),N.append("path").attr("d",`M ${y.x},${y.y+I}
146
+ a ${R},${I} 0 0 0 0,${y.height}`),P.attr("transform",`translate(${R}, ${-(y.height/2)})`),N.attr("transform",`translate(${y.width-R}, ${-y.height/2})`),e.rectData=y,"neo"===d&&P.attr("filter","url(#drop-shadow)");let w=n.get(e.name)??0;if(x.has(h)&&(P.style("stroke",E[w%E.length]),P.style("fill",T[w%E.length]),N.style("stroke",E[w%E.length]),N.style("fill",T[w%E.length])),e.properties?.icon){let t=e.properties.icon.trim(),r=y.x+y.width-20,i=y.y+10;"@"===t.charAt(0)?(0,a.drawEmbeddedImage)(O,r,i,t.substr(1)):(0,a.drawImage)(O,r,i,t)}Z(r,(0,s.hasKatex)(e.description))(e.description,O,y.x,y.y,y.width,y.height,{class:`actor ${u}`},r);let D=e.height,A=P.select("path:last-child");if(A.node()){let t=A.node().getBBox();e.height=t.height,D=t.height}return i||(O.attr("data-et","participant"),O.attr("data-type","queue"),O.attr("data-id",e.name)),D},"drawActorTypeQueue"),D=(0,n.__name)(function(t,e,r,i,n,o){let c=i?e.stopy:e.starty,l=e.x+e.width/2,d=c+75,{look:h,theme:p,themeVariables:T}=r,{bkgColorArray:E,borderColorArray:u,actorBorder:O,actorBkg:y}=T,b=t.append("g").lower();i||(L++,b.append("line").attr("id","actor"+L).attr("x1",l).attr("y1",d).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=L);let f=t.append("g"),I=m;i?I+=` ${_}`:I+=` ${g}`,f.attr("class",I),f.attr("name",e.name);let R=(0,a.getNoteRect)();R.x=e.x,R.y=c,R.fill="#eaeaea",R.width=e.width,R.height=e.height,R.class="actor";let P=e.x+e.width/2,N=c+32;f.append("defs").append("marker").attr("id",n+"-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"),f.append("circle").attr("cx",P).attr("cy",N).attr("r",22).attr("filter",`${"neo"===h?"url(#drop-shadow)":""}`),f.append("line").attr("marker-end","url(#"+n+"-filled-head-control)").attr("transform",`translate(${P}, ${N-22})`);let S=o.get(e.name)??0;return x.has(p)?(f.style("stroke",u[S%u.length]),f.style("fill",E[S%u.length])):(f.style("stroke",O),f.style("fill",y)),e.height=f.node().getBBox().height+2*(r?.sequence?.labelBoxHeight??0),Z(r,(0,s.hasKatex)(e.description))(e.description,f,R.x,R.y+22+(i?5:12),R.width,R.height,{class:`actor ${m}`},r),i||(f.attr("data-et","participant"),f.attr("data-type","control"),f.attr("data-id",e.name)),e.height},"drawActorTypeControl"),A=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+75,{look:d,theme:h,themeVariables:p}=r,{bkgColorArray:T,borderColorArray:E}=p,u=t.append("g").lower(),O=t.append("g"),y="actor";i?y+=` ${_}`:y+=` ${g}`,O.attr("class",y),O.attr("name",e.name);let b=(0,a.getNoteRect)();b.x=e.x,b.y=o,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor";let f=e.x+e.width/2,I=o+(i?10:25);O.append("circle").attr("cx",f).attr("cy",I).attr("r",22).attr("width",e.width).attr("height",e.height),O.append("line").attr("x1",f-22).attr("x2",f+22).attr("y1",I+22).attr("y2",I+22).attr("stroke-width",2),"neo"===d&&O.attr("filter","url(#drop-shadow)");let R=n.get(e.name)??0;return x.has(h)&&(O.style("stroke",E[R%E.length]),O.style("fill",T[R%E.length])),e.height=O.node().getBBox().height+(r?.sequence?.labelBoxHeight??0),i||(L++,u.append("line").attr("id","actor"+L).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",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=L),Z(r,(0,s.hasKatex)(e.description))(e.description,O,b.x,b.y+(i?15:30),b.width,b.height,{class:`actor ${m}`},r),i?O.attr("transform","translate(0, 22)"):(O.attr("transform","translate(0, 6)"),O.attr("data-et","participant"),O.attr("data-type","entity"),O.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),k=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+e.height+2*r.boxTextMargin,{theme:d,themeVariables:h,look:p}=r,{bkgColorArray:T,borderColorArray:E,actorBorder:m}=h,O=t.append("g").lower(),y=O;i||(L++,Object.keys(e.links||{}).length&&!r.forceMenus&&y.attr("onclick",b(`actor${L}_popup`)).attr("cursor","pointer"),y.append("line").attr("id","actor"+L).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",e.name).attr("data-et","life-line").attr("data-id",e.name),y=O.append("g"),e.actorCnt=L,null!=e.links&&y.attr("id","root-"+L),"neo"===p&&y.attr("data-look","neo"));let f=(0,a.getNoteRect)(),I="actor";e.properties?.class?I=e.properties.class:f.fill="#eaeaea",i?I+=` ${_}`:I+=` ${g}`,f.x=e.x,f.y=o,f.width=e.width,f.height=e.height,f.class=I,f.name=e.name,f.x=e.x,f.y=o;let R=f.width/3,P=f.width/3,N=R/2,S=N/(2.5+R/50),w=y.append("g");w.attr("class",I);let D=`
147
+ M ${f.x},${f.y+S}
148
+ a ${N},${S} 0 0 0 ${R},0
149
+ a ${N},${S} 0 0 0 -${R},0
150
+ l 0,${P-2*S}
151
+ a ${N},${S} 0 0 0 ${R},0
152
+ l 0,-${P-2*S}
153
+ `;w.append("path").attr("d",D),"neo"===p&&w.attr("filter","url(#drop-shadow)");let A=n.get(e.name)??0;x.has(d)?(w.style("stroke",E[A%E.length]),w.style("fill",T[A%E.length])):w.style("stroke",m),w.attr("transform",`translate(${R}, ${S})`),e.rectData=f,Z(r,(0,s.hasKatex)(e.description))(e.description,y,f.x,f.y+35,f.width,f.height,{class:`actor ${u}`},r);let k=w.select("path:last-child");return k.node()&&(e.height=k.node().getBBox().height+(r.sequence.labelBoxHeight??0)),i||(y.attr("data-et","participant"),y.attr("data-type","database"),y.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),M=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,l=o+80,d=t.append("g").lower(),{look:h,theme:p,themeVariables:T}=r,{bkgColorArray:E,borderColorArray:u,actorBorder:O}=T;i||(L++,d.append("line").attr("id","actor"+L).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",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=L);let y=t.append("g"),b=m;i?b+=` ${_}`:b+=` ${g}`,y.attr("class",b),y.attr("name",e.name);let f=(0,a.getNoteRect)();f.x=e.x,f.y=o,f.fill="#eaeaea",f.width=e.width,f.height=e.height,f.class="actor",y.append("line").attr("id","actor-man-torso"+L).attr("x1",e.x+e.width/2-55).attr("y1",o+12).attr("x2",e.x+e.width/2-15).attr("y2",o+12),y.append("line").attr("id","actor-man-arms"+L).attr("x1",e.x+e.width/2-55).attr("y1",o+2).attr("x2",e.x+e.width/2-55).attr("y2",o+22),y.append("circle").attr("cx",e.x+e.width/2).attr("cy",o+12).attr("r",22),"neo"===h&&y.attr("filter","url(#drop-shadow)");let I=n.get(e.name)??0;return x.has(p)?(y.style("stroke",u[I%u.length]),y.style("fill",E[I%u.length])):y.style("stroke",O),e.height=y.node().getBBox().height+(r.sequence.labelBoxHeight??0),Z(r,(0,s.hasKatex)(e.description))(e.description,y,f.x,f.y+15,f.width,f.height,{class:`actor ${m}`},r),y.attr("transform","translate(0,21)"),i||(y.attr("data-et","participant"),y.attr("data-type","boundary"),y.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),C=(0,n.__name)(function(t,e,r,i,n){let o=i?e.stopy:e.starty,c=e.x+e.width/2,{look:l,theme:d,themeVariables:h}=r,{bkgColorArray:p,borderColorArray:T,actorBorder:E}=h,u=t.append("g").lower();i||(L++,u.append("line").attr("id","actor"+L).attr("x1",c).attr("y1",o+80).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=L);let O=t.append("g"),y=m;i?y+=` ${_}`:y+=` ${g}`,O.attr("class",y),O.attr("name",e.name),i||O.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);let b="neo"===l?.5:1,f="neo"===l?o+(1-b)*30:o;O.append("line").attr("id","actor-man-torso"+L).attr("x1",c).attr("y1",f+25*b).attr("x2",c).attr("y2",f+45*b),O.append("line").attr("id","actor-man-arms"+L).attr("x1",c-18*b).attr("y1",f+33*b).attr("x2",c+18*b).attr("y2",f+33*b),O.append("line").attr("x1",c-18*b).attr("y1",f+60*b).attr("x2",c).attr("y2",f+45*b),O.append("line").attr("x1",c).attr("y1",f+45*b).attr("x2",c+16*b).attr("y2",f+60*b);let I=O.append("circle");I.attr("cx",e.x+e.width/2),I.attr("cy",f+10*b),I.attr("r",15*b),I.attr("width",e.width*b),I.attr("height",e.height*b),e.height=O.node().getBBox().height;let R=(0,a.getNoteRect)();R.x=e.x,R.y=f,R.fill="#eaeaea",R.width=e.width,R.height=e.height/b,R.class="actor",R.rx=3,R.ry=3;let P=n.get(e.name)??0;return x.has(d)?(O.style("stroke",T[P%T.length]),O.style("fill",p[P%T.length])):O.style("stroke",E),Z(r,(0,s.hasKatex)(e.description))(e.description,O,R.x,f+35*b-10*("neo"===l),R.width,R.height,{class:`actor ${m}`},r),e.height},"drawActorTypeActor"),v=(0,n.__name)(async function(t,e,a,r,i,s,n){let o=n??new Map([...s.db.getActors().values()].map((t,e)=>[t.name,e]));switch(e.type){case"actor":return await C(t,e,a,r,o);case"participant":return await N(t,e,a,r,o);case"boundary":return await M(t,e,a,r,o);case"control":return await D(t,e,a,r,i,o);case"entity":return await A(t,e,a,r,o);case"database":return await k(t,e,a,r,o);case"collections":return await S(t,e,a,r,o);case"queue":return await w(t,e,a,r,o)}},"drawActor"),Y=(0,n.__name)(function(t,e,a){let r=t.append("g");W(r,e),e.name&&Z(a)(e.name,r,e.x,e.y+a.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},a),r.lower()},"drawBox"),B=(0,n.__name)(function(t){return t.append("g")},"anchorElement"),$=(0,n.__name)(function(t,e,r,i,s,n,o){let{theme:c,themeVariables:l}=i,{bkgColorArray:d,borderColorArray:h,mainBkg:p}=l,T=(0,a.getNoteRect)(),E=e.anchored,g=e.actor;T.x=e.startx,T.y=e.starty,T.class="activation"+s%3,T.width=e.stopx-e.startx,T.height=r-e.starty;let _=O(E,T),u=(o??new Map([...n.db.getActors().values()].map((t,e)=>[t.name,e]))).get(g)??0;x.has(c)&&(_.style("stroke",h[u%h.length]),_.style("fill",d[u%h.length]??p))},"drawActivation"),V=(0,n.__name)(async function(t,e,r,i,o){let{boxMargin:c,boxTextMargin:l,labelBoxHeight:d,labelBoxWidth:h,messageFontFamily:p,messageFontSize:T,messageFontWeight:E}=i,g=t.append("g").attr("data-et","control-structure").attr("data-id","i"+o.id),_=(0,n.__name)(function(t,e,a,r){return g.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",r).attr("class","loopLine")},"drawLoopLine");_(e.startx,e.starty,e.stopx,e.starty),_(e.stopx,e.starty,e.stopx,e.stopy),_(e.startx,e.stopy,e.stopx,e.stopy),_(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach(function(t){_(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")});let u=(0,a.getTextObj)();u.text=r,u.x=e.startx,u.y=e.starty,u.fontFamily=p,u.fontSize=T,u.fontWeight=E,u.anchor="middle",u.valign="middle",u.tspan=!1,u.width=Math.max(h??0,50),u.height=d+15*("neo"===i.look)||20,u.textMargin=l,u.class="labelText",R(g,u),(u=X()).text=e.title,u.x=e.startx+h/2+(e.stopx-e.startx)/2,u.y=e.starty+c+l,u.anchor="middle",u.valign="middle",u.textMargin=l,u.class="loopText",u.fontFamily=p,u.fontSize=T,u.fontWeight=E,u.wrap=!0;let m=(0,s.hasKatex)(u.text)?await f(g,u,e):I(g,u);if(void 0!==e.sectionTitles){for(let[t,a]of Object.entries(e.sectionTitles))if(a.message){u.text=a.message,u.x=e.startx+(e.stopx-e.startx)/2,u.y=e.sections[t].y+c+l,u.class="sectionTitle",u.anchor="middle",u.valign="middle",u.tspan=!1,u.fontFamily=p,u.fontSize=T,u.fontWeight=E,u.wrap=e.wrap,(0,s.hasKatex)(u.text)?(e.starty=e.sections[t].y,await f(g,u,e)):I(g,u);let r=Math.round(m.map(t=>(t._groups||t)[0][0].getBBox().height).reduce((t,e)=>t+e));e.sections[t].height+=r-(c+l)}}return e.height=Math.round(e.stopy-e.starty),g},"drawLoop"),W=(0,n.__name)(function(t,e){(0,a.drawBackgroundRect)(t,e)},"drawBackgroundRect"),K=(0,n.__name)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-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")},"insertDatabaseIcon"),F=(0,n.__name)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-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")},"insertComputerIcon"),q=(0,n.__name)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-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")},"insertClockIcon"),H=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertArrowHead"),z=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertArrowFilledHead"),U=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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)},"insertSequenceNumber"),j=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertArrowCrossHead"),G=(0,n.__name)(function(t,e){let{theme:a}=e;t.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",`${"redux"===a||"redux-color"===a?"#000000":"#FFFFFF"}`)},"insertDropShadow"),X=(0,n.__name)(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),J=(0,n.__name)(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Z=function(){function t(t,e,a,r,i,s,n){o(e.append("text").attr("x",a+i/2).attr("y",r+s/2+5).style("text-anchor","middle").text(t),n)}function e(t,e,a,r,n,c,l,d){let{actorFontSize:h,actorFontFamily:p,actorFontWeight:T}=d,[E,g]=(0,i.parseFontSize)(h),_=t.split(s.common_default.lineBreakRegex);for(let t=0;t<_.length;t++){let i=t*E-E*(_.length-1)/2,s=e.append("text").attr("x",a+n/2).attr("y",r).style("text-anchor","middle").style("font-size",g).style("font-weight",T).style("font-family",p);s.append("tspan").attr("x",a+n/2).attr("dy",i).text(_[t]),s.attr("y",r+c/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(s,l)}}function a(t,a,r,i,s,n,c,l){let d=a.append("switch"),h=d.append("foreignObject").attr("x",r).attr("y",i).attr("width",s).attr("height",n).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,r,i,s,n,c,l),o(h,c)}async function r(t,a,r,i,n,c,l,d){let h=await (0,s.calculateMathMLDimensions)(t,(0,s.getConfig)()),p=a.append("switch"),T=p.append("foreignObject").attr("x",r+n/2-h.width/2).attr("y",i+c/2-h.height/2).attr("width",h.width).attr("height",h.height).append("xhtml:div").style("height","100%").style("width","100%");T.append("div").style("text-align","center").style("vertical-align","middle").html(await (0,s.renderKatexSanitized)(t,(0,s.getConfig)())),e(t,p,r,i,n,c,l,d),o(T,l)}function o(t,e){for(let a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,n.__name)(t,"byText"),(0,n.__name)(e,"byTspan"),(0,n.__name)(a,"byFo"),(0,n.__name)(r,"byKatex"),(0,n.__name)(o,"_setTextAttrs"),function(i,s=!1){return s?r:"fo"===i.textPlacement?a:"old"===i.textPlacement?t:e}}(),Q=function(){function t(t,e,a,i,s,n,o){r(e.append("text").attr("x",a).attr("y",i).style("text-anchor","start").text(t),o)}function e(t,e,a,i,n,o,c,l){let{actorFontSize:d,actorFontFamily:h,actorFontWeight:p}=l,T=t.split(s.common_default.lineBreakRegex);for(let t=0;t<T.length;t++){let s=t*d-d*(T.length-1)/2,n=e.append("text").attr("x",a).attr("y",i).style("text-anchor","start").style("font-size",d).style("font-weight",p).style("font-family",h);n.append("tspan").attr("x",a).attr("dy",s).text(T[t]),n.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(n,c)}}function a(t,a,i,s,n,o,c,l){let d=a.append("switch"),h=d.append("foreignObject").attr("x",i).attr("y",s).attr("width",n).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,i,s,n,o,c,l),r(h,c)}function r(t,e){for(let a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,n.__name)(t,"byText"),(0,n.__name)(e,"byTspan"),(0,n.__name)(a,"byFo"),(0,n.__name)(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?a:"old"===r.textPlacement?t:e}}(),tt=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertSolidTopArrowHead"),te=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertSolidBottomArrowHead"),ta=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertStickTopArrowHead"),tr=(0,n.__name)(function(t,e){t.append("defs").append("marker").attr("id",e+"-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")},"insertStickBottomArrowHead"),ti={drawRect:O,drawText:I,drawLabel:R,drawActor:v,drawBox:Y,drawPopup:y,anchorElement:B,drawActivation:$,drawLoop:V,drawBackgroundRect:W,insertArrowHead:H,insertArrowFilledHead:z,insertSequenceNumber:U,insertArrowCrossHead:j,insertDatabaseIcon:K,insertComputerIcon:F,insertClockIcon:q,getTextObj:X,getNoteRect:J,fixLifeLineHeights:P,sanitizeUrl:c.sanitizeUrl,insertDropShadow:G,insertSolidTopArrowHead:tt,insertSolidBottomArrowHead:te,insertStickTopArrowHead:ta,insertStickBottomArrowHead:tr},ts={},tn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:(0,n.__name)(function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(t=>t.height||0))+(0===this.loops.length?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.messages.length?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.notes.length?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:(0,n.__name)(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:(0,n.__name)(function(t){this.boxes.push(t)},"addBox"),addActor:(0,n.__name)(function(t){this.actors.push(t)},"addActor"),addLoop:(0,n.__name)(function(t){this.loops.push(t)},"addLoop"),addMessage:(0,n.__name)(function(t){this.messages.push(t)},"addMessage"),addNote:(0,n.__name)(function(t){this.notes.push(t)},"addNote"),lastActor:(0,n.__name)(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:(0,n.__name)(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:(0,n.__name)(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:(0,n.__name)(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,n.__name)(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,tu((0,s.getConfig2)())},"init"),updateVal:(0,n.__name)(function(t,e,a,r){void 0===t[e]?t[e]=a:t[e]=r(a,t[e])},"updateVal"),updateBounds:(0,n.__name)(function(t,e,a,r){let i=this,s=0;function o(o){return(0,n.__name)(function(n){s++;let c=i.sequenceItems.length-s+1;i.updateVal(n,"starty",e-c*ts.boxMargin,Math.min),i.updateVal(n,"stopy",r+c*ts.boxMargin,Math.max),i.updateVal(tn.data,"startx",t-c*ts.boxMargin,Math.min),i.updateVal(tn.data,"stopx",a+c*ts.boxMargin,Math.max),"activation"!==o&&(i.updateVal(n,"startx",t-c*ts.boxMargin,Math.min),i.updateVal(n,"stopx",a+c*ts.boxMargin,Math.max),i.updateVal(tn.data,"starty",e-c*ts.boxMargin,Math.min),i.updateVal(tn.data,"stopy",r+c*ts.boxMargin,Math.max))},"updateItemBounds")}(0,n.__name)(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:(0,n.__name)(function(t,e,a,r){let i=s.common_default.getMin(t,a),n=s.common_default.getMax(t,a),o=s.common_default.getMin(e,r),c=s.common_default.getMax(e,r);this.updateVal(tn.data,"startx",i,Math.min),this.updateVal(tn.data,"starty",o,Math.min),this.updateVal(tn.data,"stopx",n,Math.max),this.updateVal(tn.data,"stopy",c,Math.max),this.updateBounds(i,o,n,c)},"insert"),newActivation:(0,n.__name)(function(t,e,a){let r=a.get(t.from),i=tm(t.from).length||0,s=r.x+r.width/2+(i-1)*ts.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+ts.activationWidth,stopy:void 0,actor:t.from,anchored:ti.anchorElement(e)})},"newActivation"),endActivation:(0,n.__name)(function(t){let e=this.activations.map(function(t){return t.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:(0,n.__name)(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:(0,n.__name)(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:(0,n.__name)(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:(0,n.__name)(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:(0,n.__name)(function(t){let e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:tn.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:(0,n.__name)(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:(0,n.__name)(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:(0,n.__name)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=s.common_default.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:(0,n.__name)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,n.__name)(function(){return{bounds:this.data,models:this.models}},"getBounds")},to=(0,n.__name)(async function(t,e,r){tn.bumpVerticalPos(ts.boxMargin),e.height=ts.boxMargin,e.starty=tn.getVerticalPos();let i=(0,a.getNoteRect)();i.x=e.startx,i.y=e.starty,i.width=e.width||ts.width,i.class="note";let n=t.append("g");n.attr("data-et","note"),n.attr("data-id","i"+r);let o=ti.drawRect(n,i),c=(0,a.getTextObj)();c.x=e.startx,c.y=e.starty,c.width=i.width,c.dy="1em",c.text=e.message,c.class="noteText",c.fontFamily=ts.noteFontFamily,c.fontSize=ts.noteFontSize,c.fontWeight=ts.noteFontWeight,c.anchor=ts.noteAlign,c.textMargin=ts.noteMargin,c.valign="center";let l=Math.round(((0,s.hasKatex)(c.text)?await f(n,c):I(n,c)).map(t=>(t._groups||t)[0][0].getBBox().height).reduce((t,e)=>t+e));o.attr("height",l+2*ts.noteMargin),e.height+=l+2*ts.noteMargin,tn.bumpVerticalPos(l+2*ts.noteMargin),e.stopy=e.starty+l+2*ts.noteMargin,e.stopx=e.startx+i.width,tn.insert(e.startx,e.starty,e.stopx,e.stopy),tn.models.addNote(e)},"drawNote"),tc=(0,n.__name)(function(t,e,a,r,i,s,o){let c=r.db.getActors(),l=c.get(e.from),d=c.get(e.to),h=a.sequenceVisible,p=l.x+l.width/2,T=d.x+d.width/2,E=p<=T,g=tS(e,r),_=t.append("g"),u=(0,n.__name)((t,e)=>{let a=t?16.5:-16.5;return e?-a:a},"getCircleOffset"),m=(0,n.__name)(t=>{_.append("circle").attr("cx",t).attr("cy",o).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:x,CENTRAL_CONNECTION_REVERSE:O,CENTRAL_CONNECTION_DUAL:y}=r.db.LINETYPE;if(h)switch(e.centralConnection){case x:g&&(T+=u(E,!0));break;case O:g||(p+=u(E,!1));break;case y:g?T+=u(E,!0):p+=u(E,!1)}switch(e.centralConnection){case x:m(T);break;case O:m(p);break;case y:m(p),m(T)}},"drawCentralConnection"),tl=(0,n.__name)(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),td=(0,n.__name)(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),th=(0,n.__name)(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function tp(t,e){let a;tn.bumpVerticalPos(10);let{startx:r,stopx:n,message:o}=e,c=s.common_default.splitBreaks(o).length,l=(0,s.hasKatex)(o),d=l?await (0,s.calculateMathMLDimensions)(o,(0,s.getConfig2)()):i.utils_default.calculateTextDimensions(o,tl(ts));if(!l){let t=d.height/c;e.height+=t,tn.bumpVerticalPos(t)}let h=d.height-10,p=d.width;if(r===n){a=tn.getVerticalPos()+h,ts.rightAngles||(h+=ts.boxMargin,a=tn.getVerticalPos()+h),h+=30;let t=s.common_default.getMax(p/2,ts.width/2);tn.insert(r-t,tn.getVerticalPos()-10+h,n+t,tn.getVerticalPos()+30+h)}else h+=ts.boxMargin,a=tn.getVerticalPos()+h,tn.insert(r,a-10,n,a);return tn.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,tn.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),a}(0,n.__name)(tp,"boundMessage");var tT=(0,n.__name)(async function(t,e,r,n,o,c){let l,{startx:d,stopx:h,starty:p,message:T,type:E,sequenceIndex:g,sequenceVisible:_}=e,u=i.utils_default.calculateTextDimensions(T,tl(ts)),m=(0,a.getTextObj)();m.x=Math.min(d,h),m.y=p+10,m.width=Math.abs(h-d),m.class="messageText",m.dy="1em",m.text=T,m.fontFamily=ts.messageFontFamily,m.fontSize=ts.messageFontSize,m.fontWeight=ts.messageFontWeight,m.anchor=ts.messageAlign,m.valign="center",m.textMargin=ts.wrapPadding,m.tspan=!1,(0,s.hasKatex)(m.text)?await f(t,m,{startx:d,stopx:h,starty:r}):I(t,m);let x=u.width;if(d===h){let a=_||ts.showSequenceNumbers,i=tS(o,n),c=tw(o,n),p=d+(a&&(i||c)?10:0);l=ts.rightAngles?t.append("path").attr("d",`M ${p},${r} H ${d+s.common_default.getMax(ts.width/2,x/2)} V ${r+25} H ${d}`):t.append("path").attr("d","M "+p+","+r+" C "+(p+60)+","+(r-10)+" "+(d+60)+","+(r+30)+" "+d+","+(r+20)),tP(o,n)&&tc(t,o,e,n,d,h,r)}else(l=t.append("line")).attr("x1",d),l.attr("y1",r),l.attr("x2",h),l.attr("y2",r),tP(o,n)&&tc(t,o,e,n,d,h,r);E===n.db.LINETYPE.DOTTED||E===n.db.LINETYPE.DOTTED_CROSS||E===n.db.LINETYPE.DOTTED_POINT||E===n.db.LINETYPE.DOTTED_OPEN||E===n.db.LINETYPE.BIDIRECTIONAL_DOTTED||E===n.db.LINETYPE.SOLID_TOP_DOTTED||E===n.db.LINETYPE.SOLID_BOTTOM_DOTTED||E===n.db.LINETYPE.STICK_TOP_DOTTED||E===n.db.LINETYPE.STICK_BOTTOM_DOTTED||E===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||E===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||E===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||E===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(l.style("stroke-dasharray","3, 3"),l.attr("class","messageLine1")):l.attr("class","messageLine0"),l.attr("data-et","message"),l.attr("data-id","i"+e.id),l.attr("data-from",e.from),l.attr("data-to",e.to);let O="";if(ts.arrowMarkerAbsolute&&(O=(0,s.getUrl)(!0)),l.attr("stroke-width",2),l.attr("stroke","none"),l.style("fill","none"),(E===n.db.LINETYPE.SOLID_TOP||E===n.db.LINETYPE.SOLID_TOP_DOTTED)&&l.attr("marker-end","url("+O+"#"+c+"-solidTopArrowHead)"),(E===n.db.LINETYPE.SOLID_BOTTOM||E===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&l.attr("marker-end","url("+O+"#"+c+"-solidBottomArrowHead)"),(E===n.db.LINETYPE.STICK_TOP||E===n.db.LINETYPE.STICK_TOP_DOTTED)&&l.attr("marker-end","url("+O+"#"+c+"-stickTopArrowHead)"),(E===n.db.LINETYPE.STICK_BOTTOM||E===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&l.attr("marker-end","url("+O+"#"+c+"-stickBottomArrowHead)"),(E===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||E===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&l.attr("marker-start","url("+O+"#"+c+"-solidBottomArrowHead)"),(E===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||E===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&l.attr("marker-start","url("+O+"#"+c+"-solidTopArrowHead)"),(E===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||E===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&l.attr("marker-start","url("+O+"#"+c+"-stickBottomArrowHead)"),(E===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||E===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&l.attr("marker-start","url("+O+"#"+c+"-stickTopArrowHead)"),(E===n.db.LINETYPE.SOLID||E===n.db.LINETYPE.DOTTED)&&l.attr("marker-end","url("+O+"#"+c+"-arrowhead)"),(E===n.db.LINETYPE.BIDIRECTIONAL_SOLID||E===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(l.attr("marker-start","url("+O+"#"+c+"-arrowhead)"),l.attr("marker-end","url("+O+"#"+c+"-arrowhead)")),(E===n.db.LINETYPE.SOLID_POINT||E===n.db.LINETYPE.DOTTED_POINT)&&l.attr("marker-end","url("+O+"#"+c+"-filled-head)"),(E===n.db.LINETYPE.SOLID_CROSS||E===n.db.LINETYPE.DOTTED_CROSS)&&l.attr("marker-end","url("+O+"#"+c+"-crosshead)"),_||ts.showSequenceNumbers){let a=E===n.db.LINETYPE.BIDIRECTIONAL_SOLID||E===n.db.LINETYPE.BIDIRECTIONAL_DOTTED,i=E===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||E===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||E===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||E===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||E===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||E===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||E===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||E===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s=tP(o,n),p=d,T=h;a?(p=d<h?d+12:d-6+(s?-5:0)+(o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),l.attr("x1",p)):i?(h>d?T=h-12:(T=h-6,p+=o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),T+=15*!!s,l.attr("x2",T),l.attr("x1",p)):l.attr("x1",d+6);let _=0,u=d===h,m=d<=h;_=u?e.fromBounds+1:i?m?e.toBounds-1:e.fromBounds+1:m?e.fromBounds+1:e.toBounds-1;let x="12px",y=g.toString().length;y>5?x="7px":y>3&&(x="9px"),t.append("line").attr("x1",_).attr("y1",r).attr("x2",_).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+O+"#"+c+"-sequencenumber)"),t.append("text").attr("x",_).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",x).attr("text-anchor","middle").attr("class","sequenceNumber").text(g)}},"drawMessage"),tE=(0,n.__name)(function(t,e,a,r,i,n,o){let c,l=0,d=0,h=0;for(let t of r){let r=e.get(t),n=r.box;c&&c!=n&&(o||tn.models.addBox(c),d+=ts.boxMargin+c.margin),n&&n!=c&&(o||(n.x=l+d,n.y=i),d+=n.margin),r.width=s.common_default.getMax(r.width||ts.width,ts.width),r.height=s.common_default.getMax(r.height||ts.height,ts.height),r.margin=r.margin||ts.actorMargin,h=s.common_default.getMax(h,r.height),a.get(r.name)&&(d+=r.width/2),r.x=l+d,r.starty=tn.getVerticalPos(),tn.insert(r.x,i,r.x+r.width,r.height),l+=r.width+d,r.box&&(r.box.width=l+n.margin-r.box.x),d=r.margin,c=r.box,tn.models.addActor(r)}c&&!o&&tn.models.addBox(c),tn.bumpVerticalPos(h)},"addActorRenderingData"),tg=(0,n.__name)(async function(t,e,a,r,i,n,o){if(r){let r=0;for(let c of(tn.bumpVerticalPos(2*ts.boxMargin),a)){let a=e.get(c);a.stopy||(a.stopy=tn.getVerticalPos());let l=await ti.drawActor(t,a,ts,!0,i,n,o);r=s.common_default.getMax(r,l)}tn.bumpVerticalPos(r+ts.boxMargin)}else for(let r of a){let a=e.get(r);await ti.drawActor(t,a,ts,!1,i,n,o)}},"drawActors"),t_=(0,n.__name)(function(t,e,a,r){let i=0,s=0;for(let n of a){let a=e.get(n),o=tI(a),c=ti.drawPopup(t,a,o,ts,ts.forceMenus,r);c.height>i&&(i=c.height),c.width+a.x>s&&(s=c.width+a.x)}return{maxHeight:i,maxWidth:s}},"drawActorsPopup"),tu=(0,n.__name)(function(t){(0,s.assignWithDepth_default)(ts,t),t.fontFamily&&(ts.actorFontFamily=ts.noteFontFamily=ts.messageFontFamily=t.fontFamily),t.fontSize&&(ts.actorFontSize=ts.noteFontSize=ts.messageFontSize=t.fontSize),t.fontWeight&&(ts.actorFontWeight=ts.noteFontWeight=ts.messageFontWeight=t.fontWeight)},"setConf"),tm=(0,n.__name)(function(t){return tn.activations.filter(function(e){return e.actor===t})},"actorActivations"),tx=(0,n.__name)(function(t,e){let a=e.get(t),r=tm(t);return[r.reduce(function(t,e){return s.common_default.getMin(t,e.startx)},a.x+a.width/2-1),r.reduce(function(t,e){return s.common_default.getMax(t,e.stopx)},a.x+a.width/2+1)]},"activationBounds");function tO(t,e,a,r,o){tn.bumpVerticalPos(a);let c=r;if(e.id&&e.message&&t[e.id]){let a=t[e.id].width,o=tl(ts);e.message=i.utils_default.wrapLabel(`[${e.message}]`,a-2*ts.wrapPadding,o),e.width=a,e.wrap=!0;let l=i.utils_default.calculateTextDimensions(e.message,o),d=s.common_default.getMax(l.height,ts.labelBoxHeight);c=r+d,n.log.debug(`${d} - ${e.message}`)}o(e),tn.bumpVerticalPos(c)}function ty(t,e,a,r,i,s,o){function c(a,r){a.x<i.get(t.from).x?(tn.insert(e.stopx-r,e.starty,e.startx,e.stopy+a.height/2+ts.noteMargin),e.stopx=e.stopx+r):(tn.insert(e.startx,e.starty,e.stopx+r,e.stopy+a.height/2+ts.noteMargin),e.stopx=e.stopx-r)}function l(a,r){a.x<i.get(t.to).x?(tn.insert(e.startx-r,e.starty,e.stopx,e.stopy+a.height/2+ts.noteMargin),e.startx=e.startx+r):(tn.insert(e.stopx,e.starty,e.startx+r,e.stopy+a.height/2+ts.noteMargin),e.startx=e.startx-r)}(0,n.__name)(c,"receiverAdjustment"),(0,n.__name)(l,"senderAdjustment");let d=["actor","control","entity","database"];if(s.get(t.to)==r){let e=i.get(t.to),r=d.includes(e.type)?21:e.width/2+3;c(e,r),e.starty=a-e.height/2,tn.bumpVerticalPos(e.height/2)}else if(o.get(t.from)==r){let e=i.get(t.from);if(ts.mirrorActors){let t=d.includes(e.type)?18:e.width/2;l(e,t)}e.stopy=a-e.height/2,tn.bumpVerticalPos(e.height/2)}else if(o.get(t.to)==r){let e=i.get(t.to);if(ts.mirrorActors){let t=d.includes(e.type)?21:e.width/2+3;c(e,t)}e.stopy=a-e.height/2,tn.bumpVerticalPos(e.height/2)}}(0,n.__name)(tO,"adjustLoopHeightForWrap"),(0,n.__name)(ty,"adjustCreatedDestroyedData");var tb=(0,n.__name)(async function(t,e,a,r){let i,{securityLevel:c,sequence:l,look:d}=(0,s.getConfig2)();ts=l,"sandbox"===c&&(i=(0,o.select)("#i"+e));let h="sandbox"===c?(0,o.select)(i.nodes()[0].contentDocument.body):(0,o.select)("body"),p="sandbox"===c?i.nodes()[0].contentDocument:document;tn.init(),n.log.debug(r.db);let T="sandbox"===c?h.select(`[id="${e}"]`):(0,o.select)(`[id="${e}"]`),E=r.db.getActors(),g=r.db.getCreatedActors(),_=r.db.getDestroyedActors(),u=r.db.getBoxes(),m=r.db.getActorKeys(),x=r.db.getMessages(),O=r.db.getDiagramTitle(),y=r.db.hasAtLeastOneBox(),b=r.db.hasAtLeastOneBoxWithTitle(),f=await tf(E,x,r);if(ts.height=await tR(E,f,u),ti.insertComputerIcon(T,e),ti.insertDatabaseIcon(T,e),ti.insertClockIcon(T,e),y&&(tn.bumpVerticalPos(ts.boxMargin),b&&tn.bumpVerticalPos(u[0].textMaxHeight)),!0===ts.hideUnusedParticipants){let t=new Set;x.forEach(e=>{t.add(e.from),t.add(e.to)}),m=m.filter(e=>t.has(e))}let I=new Map(m.map((t,e)=>[E.get(t)?.name??t,e]));tE(T,E,g,m,0,x,!1);let R=await tA(x,E,f,r);function L(t,e){let a=tn.endActivation(t);a.starty+18>e&&(a.starty=e-6,e+=12),ti.drawActivation(T,a,e,ts,tm(t.from).length,r,I),tn.insert(a.startx,e-10,a.stopx,e)}ti.insertArrowHead(T,e),ti.insertArrowCrossHead(T,e),ti.insertArrowFilledHead(T,e),ti.insertSequenceNumber(T,e),ti.insertSolidTopArrowHead(T,e),ti.insertSolidBottomArrowHead(T,e),ti.insertStickTopArrowHead(T,e),ti.insertStickBottomArrowHead(T,e),"neo"===d&&ti.insertDropShadow(T,ts),(0,n.__name)(L,"activeEnd");let N=1,S=1,w=[],D=[],A=0;for(let t of x){let e,a,i;switch(t.type){case r.db.LINETYPE.NOTE:tn.resetVerticalPos(),a=t.noteModel,await to(T,a,t.id);break;case r.db.LINETYPE.ACTIVE_START:case r.db.LINETYPE.CENTRAL_CONNECTION:case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:tn.newActivation(t,T,E);break;case r.db.LINETYPE.ACTIVE_END:L(t,tn.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:tO(R,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.LOOP_END:e=tn.endLoop(),await ti.drawLoop(T,e,"loop",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.RECT_START:tO(R,t,ts.boxMargin,ts.boxMargin,t=>tn.newLoop(void 0,t.message));break;case r.db.LINETYPE.RECT_END:e=tn.endLoop(),D.push(e),tn.models.addLoop(e),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos());break;case r.db.LINETYPE.OPT_START:tO(R,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.OPT_END:e=tn.endLoop(),await ti.drawLoop(T,e,"opt",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.ALT_START:tO(R,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.ALT_ELSE:tO(R,t,ts.boxMargin+ts.boxTextMargin,ts.boxMargin,t=>tn.addSectionToLoop(t));break;case r.db.LINETYPE.ALT_END:e=tn.endLoop(),await ti.drawLoop(T,e,"alt",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:tO(R,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t)),tn.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:tO(R,t,ts.boxMargin+ts.boxTextMargin,ts.boxMargin,t=>tn.addSectionToLoop(t));break;case r.db.LINETYPE.PAR_END:e=tn.endLoop(),await ti.drawLoop(T,e,"par",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.AUTONUMBER:N=t.message.start||N,S=t.message.step||S,t.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:tO(R,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.CRITICAL_OPTION:tO(R,t,ts.boxMargin+ts.boxTextMargin,ts.boxMargin,t=>tn.addSectionToLoop(t));break;case r.db.LINETYPE.CRITICAL_END:e=tn.endLoop(),await ti.drawLoop(T,e,"critical",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;case r.db.LINETYPE.BREAK_START:tO(R,t,ts.boxMargin,ts.boxMargin+ts.boxTextMargin,t=>tn.newLoop(t));break;case r.db.LINETYPE.BREAK_END:e=tn.endLoop(),await ti.drawLoop(T,e,"break",ts,t),tn.bumpVerticalPos(e.stopy-tn.getVerticalPos()),tn.models.addLoop(e);break;default:try{(i=t.msgModel).starty=tn.getVerticalPos(),i.sequenceIndex=N,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=t.id,i.from=t.from,i.to=t.to;let e=await tp(T,i);ty(t,i,e,A,E,g,_),w.push({messageModel:i,lineStartY:e,msg:t}),tn.models.addMessage(i)}catch(t){n.log.error("error while drawing message",t)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(N=Math.round((N+S)*100)/100),A++}for(let t of(n.log.debug("createdActors",g),n.log.debug("destroyedActors",_),await tg(T,E,m,!1,e,r,I),w))await tT(T,t.messageModel,t.lineStartY,r,t.msg,e);for(let t of(ts.mirrorActors&&await tg(T,E,m,!0,e,r,I),D.forEach(t=>ti.drawBackgroundRect(T,t)),P(T,E,m,ts),tn.models.boxes)){t.height=tn.getVerticalPos()-t.y,tn.insert(t.x,t.y,t.x+t.width,t.height);let e=2*ts.boxMargin;t.startx=t.x-e,t.starty=t.y-.25*e,t.stopx=t.startx+t.width+2*e,t.stopy=t.starty+t.height+.75*e,t.stroke="rgb(0,0,0, 0.5)",ti.drawBox(T,t,ts)}y&&tn.bumpVerticalPos(ts.boxMargin);let k=t_(T,E,m,p),{bounds:M}=tn.getBounds();void 0===M.startx&&(M.startx=0),void 0===M.starty&&(M.starty=0),void 0===M.stopx&&(M.stopx=0),void 0===M.stopy&&(M.stopy=0);let C=M.stopy-M.starty;C<k.maxHeight&&(C=k.maxHeight);let v=C+2*ts.diagramMarginY;ts.mirrorActors&&(v=v-ts.boxMargin+ts.bottomMarginAdj);let Y=M.stopx-M.startx;Y<k.maxWidth&&(Y=k.maxWidth);let B=Y+2*ts.diagramMarginX;O&&T.append("text").text(O).attr("x",(M.stopx-M.startx)/2-2*ts.diagramMarginX).attr("y",-25),(0,s.configureSvgSize)(T,v,B,ts.useMaxWidth);let $=40*!!O,V=E.size&&"neo"===d?30:0;T.attr("viewBox",M.startx-ts.diagramMarginX+" -"+(ts.diagramMarginY+$)+" "+B+" "+(v+$+V)),n.log.debug("models:",tn.models)},"draw");async function tf(t,e,a){let r={};for(let n of e)if(t.get(n.to)&&t.get(n.from)){let e=t.get(n.to);if(n.placement===a.db.PLACEMENT.LEFTOF&&!e.prevActor||n.placement===a.db.PLACEMENT.RIGHTOF&&!e.nextActor)continue;let o=void 0!==n.placement,c=!o,l=o?td(ts):tl(ts),d=n.wrap?i.utils_default.wrapLabel(n.message,ts.width-2*ts.wrapPadding,l):n.message,h=((0,s.hasKatex)(d)?await (0,s.calculateMathMLDimensions)(n.message,(0,s.getConfig2)()):i.utils_default.calculateTextDimensions(d,l)).width+2*ts.wrapPadding;c&&n.from===e.nextActor?r[n.to]=s.common_default.getMax(r[n.to]||0,h):c&&n.from===e.prevActor?r[n.from]=s.common_default.getMax(r[n.from]||0,h):c&&n.from===n.to?(r[n.from]=s.common_default.getMax(r[n.from]||0,h/2),r[n.to]=s.common_default.getMax(r[n.to]||0,h/2)):n.placement===a.db.PLACEMENT.RIGHTOF?r[n.from]=s.common_default.getMax(r[n.from]||0,h):n.placement===a.db.PLACEMENT.LEFTOF?r[e.prevActor]=s.common_default.getMax(r[e.prevActor]||0,h):n.placement===a.db.PLACEMENT.OVER&&(e.prevActor&&(r[e.prevActor]=s.common_default.getMax(r[e.prevActor]||0,h/2)),e.nextActor&&(r[n.from]=s.common_default.getMax(r[n.from]||0,h/2)))}return n.log.debug("maxMessageWidthPerActor:",r),r}(0,n.__name)(tf,"getMaxMessageWidthPerActor");var tI=(0,n.__name)(function(t){let e=0,a=th(ts);for(let r in t.links){let t=i.utils_default.calculateTextDimensions(r,a).width+2*ts.wrapPadding+2*ts.boxMargin;e<t&&(e=t)}return e},"getRequiredPopupWidth");async function tR(t,e,a){let r=0;for(let e of t.keys()){let a=t.get(e);a.wrap&&(a.description=i.utils_default.wrapLabel(a.description,ts.width-2*ts.wrapPadding,th(ts)));let n=(0,s.hasKatex)(a.description)?await (0,s.calculateMathMLDimensions)(a.description,(0,s.getConfig2)()):i.utils_default.calculateTextDimensions(a.description,th(ts));a.width=a.wrap?ts.width:s.common_default.getMax(ts.width,n.width+2*ts.wrapPadding),a.height=a.wrap?s.common_default.getMax(n.height,ts.height):ts.height,r=s.common_default.getMax(r,a.height)}for(let a in e){let r=t.get(a);if(!r)continue;let i=t.get(r.nextActor);if(!i){let t=e[a]+ts.actorMargin-r.width/2;r.margin=s.common_default.getMax(t,ts.actorMargin);continue}let n=e[a]+ts.actorMargin-r.width/2-i.width/2;r.margin=s.common_default.getMax(n,ts.actorMargin)}let n=0;return a.forEach(e=>{let a=tl(ts),r=e.actorKeys.reduce((e,a)=>e+=t.get(a).width+(t.get(a).margin||0),0);r+=8*ts.boxMargin,r-=2*ts.boxTextMargin,e.wrap&&(e.name=i.utils_default.wrapLabel(e.name,r-2*ts.wrapPadding,a));let o=i.utils_default.calculateTextDimensions(e.name,a);n=s.common_default.getMax(o.height,n);let c=s.common_default.getMax(r,o.width+2*ts.wrapPadding);if(e.margin=ts.boxTextMargin,r<c){let t=(c-r)/2;e.margin+=t}}),a.forEach(t=>t.textMaxHeight=n),s.common_default.getMax(r,ts.height)}(0,n.__name)(tR,"calculateActorMargins");var tL=(0,n.__name)(async function(t,e,a){let r=e.get(t.from),o=e.get(t.to),c=r.x,l=o.x,d=t.wrap&&t.message,h=(0,s.hasKatex)(t.message)?await (0,s.calculateMathMLDimensions)(t.message,(0,s.getConfig2)()):i.utils_default.calculateTextDimensions(d?i.utils_default.wrapLabel(t.message,ts.width,td(ts)):t.message,td(ts)),p={width:d?ts.width:s.common_default.getMax(ts.width,h.width+2*ts.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===a.db.PLACEMENT.RIGHTOF?(p.width=d?s.common_default.getMax(ts.width,h.width):s.common_default.getMax(r.width/2+o.width/2,h.width+2*ts.noteMargin),p.startx=c+(r.width+ts.actorMargin)/2):t.placement===a.db.PLACEMENT.LEFTOF?(p.width=d?s.common_default.getMax(ts.width,h.width+2*ts.noteMargin):s.common_default.getMax(r.width/2+o.width/2,h.width+2*ts.noteMargin),p.startx=c-p.width+(r.width-ts.actorMargin)/2):t.to===t.from?(h=i.utils_default.calculateTextDimensions(d?i.utils_default.wrapLabel(t.message,s.common_default.getMax(ts.width,r.width),td(ts)):t.message,td(ts)),p.width=d?s.common_default.getMax(ts.width,r.width):s.common_default.getMax(r.width,ts.width,h.width+2*ts.noteMargin),p.startx=c+(r.width-p.width)/2):(p.width=Math.abs(c+r.width/2-(l+o.width/2))+ts.actorMargin,p.startx=c<l?c+r.width/2-ts.actorMargin/2:l+o.width/2-ts.actorMargin/2),d&&(p.message=i.utils_default.wrapLabel(t.message,p.width-2*ts.wrapPadding,td(ts))),n.log.debug(`NM:[${p.startx},${p.stopx},${p.starty},${p.stopy}:${p.width},${p.height}=${t.message}]`),p},"buildNoteModel"),tP=(0,n.__name)(function(t,e){let{CENTRAL_CONNECTION:a,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=e.db.LINETYPE;return[a,r,i].includes(t.centralConnection)},"hasCentralConnection"),tN=(0,n.__name)(function(t,e,a){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:s,BIDIRECTIONAL_DOTTED:n}=e.db.LINETYPE,o=0;return(t.centralConnection===r||t.centralConnection===i)&&(o+=4),(t.centralConnection===r||t.centralConnection===i)&&(t.type===s||t.type===n)&&(o+=a?0:-6),o},"calculateCentralConnectionOffset"),tS=(0,n.__name)(function(t,e){let{SOLID_ARROW_TOP_REVERSE:a,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:s,STICK_ARROW_TOP_REVERSE:n,STICK_ARROW_TOP_REVERSE_DOTTED:o,STICK_ARROW_BOTTOM_REVERSE:c,STICK_ARROW_BOTTOM_REVERSE_DOTTED:l}=e.db.LINETYPE;return[a,r,i,s,n,o,c,l].includes(t.type)},"isReverseArrowType"),tw=(0,n.__name)(function(t,e){let{BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:r}=e.db.LINETYPE;return[a,r].includes(t.type)},"isBidirectionalArrowType"),tD=(0,n.__name)(function(t,e,a){let{look:r}=(0,s.getConfig2)();if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type))return{};let[o,c]=tx(t.from,e),[l,d]=tx(t.to,e),h=o<=l,p=h?c:o,T=h?l:d;"neo"===r&&(t.type!==a.db.LINETYPE.SOLID_OPEN&&(T+=h?-3:3),(t.type===a.db.LINETYPE.BIDIRECTIONAL_SOLID||t.type===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(p+=h?3:-3)),p+=tN(t,a,h);let E=Math.abs(l-d)>2,g=(0,n.__name)(t=>h?-t:t,"adjustValue");t.from===t.to?T=p:(t.activate&&!E&&(T+=g(ts.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(T+=g(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(p-=g(3)));let _=[o,c,l,d],u=Math.abs(p-T);t.wrap&&t.message&&(t.message=i.utils_default.wrapLabel(t.message,s.common_default.getMax(u+2*ts.wrapPadding,ts.width),tl(ts)));let m=i.utils_default.calculateTextDimensions(t.message,tl(ts));return{width:s.common_default.getMax(t.wrap?0:m.width+2*ts.wrapPadding,u+2*ts.wrapPadding,ts.width),height:0,startx:p,stopx:T,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,_),toBounds:Math.max.apply(null,_)}},"buildMessageModel"),tA=(0,n.__name)(async function(t,e,a,r){let i,o,c,l={},d=[];for(let a of t){switch(a.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:d.push({id:a.id,msg:a.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:a.message&&(l[(i=d.pop()).id]=i,l[a.id]=i,d.push(i));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:l[(i=d.pop()).id]=i;break;case r.db.LINETYPE.ACTIVE_START:{let t=e.get(a.from?a.from:a.to.actor),r=tm(a.from?a.from:a.to.actor).length,i=t.x+t.width/2+(r-1)*ts.activationWidth/2,s={startx:i,stopx:i+ts.activationWidth,actor:a.from,enabled:!0};tn.activations.push(s)}break;case r.db.LINETYPE.ACTIVE_END:{let t=tn.activations.map(t=>t.actor).lastIndexOf(a.from);tn.activations.splice(t,1).splice(0,1)}}void 0!==a.placement?(o=await tL(a,e,r),a.noteModel=o,d.forEach(t=>{(i=t).from=s.common_default.getMin(i.from,o.startx),i.to=s.common_default.getMax(i.to,o.startx+o.width),i.width=s.common_default.getMax(i.width,Math.abs(i.from-i.to))-ts.labelBoxWidth})):(c=tD(a,e,r),a.msgModel=c,c.startx&&c.stopx&&d.length>0&&d.forEach(t=>{if(i=t,c.startx===c.stopx){let t=e.get(a.from),r=e.get(a.to);i.from=s.common_default.getMin(t.x-c.width/2,t.x-t.width/2,i.from),i.to=s.common_default.getMax(r.x+c.width/2,r.x+t.width/2,i.to),i.width=s.common_default.getMax(i.width,Math.abs(i.to-i.from))-ts.labelBoxWidth}else i.from=s.common_default.getMin(c.startx,i.from),i.to=s.common_default.getMax(c.stopx,i.to),i.width=s.common_default.getMax(i.width,c.width)-ts.labelBoxWidth}))}return tn.activations=[],n.log.debug("Loop type widths:",l),l},"calculateLoopBounds"),tk={parser:l,get db(){return new T},renderer:{bounds:tn,drawActors:tg,drawActorsPopup:t_,setConf:tu,draw:tb},styles:E,init:(0,n.__name)(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,(0,s.setConfig2)({sequence:{wrap:t.wrap}}))},"init")};t.s(["diagram",0,tk])}]);
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,669587,600104,872200,722914,826157,693158,48114,851262,363823,992536,226619,381142,700357,163018,885812,647608,342919,991085,568482,532780,338489,t=>{"use strict";var e,i=t.i(908381),n=t.i(171206),s=t.i(139941);function o(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function r(t){this._context=t}function h(t){return new r(t)}function a(){}function _(t){this._context=t}function c(t){this._context=t}t.i(947716),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},t.s(["curveBasis",0,h],600104),_.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function u(t){return new l(t,!0)}function f(t){return new l(t,!1)}function y(t,e){this._basis=new r(t),this._beta=e}t.s(["curveBumpX",0,u],872200),t.s(["curveBumpY",0,f],722914),y.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var n,s=t[0],o=e[0],r=t[i]-s,h=e[i]-o,a=-1;++a<=i;)n=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(s+n*r),this._beta*e[a]+(1-this._beta)*(o+n*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let x=function t(e){function i(t){return 1===e?new r(t):new y(t,e)}return i.beta=function(e){return t(+e)},i}(.85);function p(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function d(t,e){this._context=t,this._k=(1-e)/6}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:p(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:p(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let g=function t(e){function i(t){return new d(t,e)}return i.tension=function(e){return t(+e)},i}(0);function b(t,e){this._context=t,this._k=(1-e)/6}b.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:p(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let m=function t(e){function i(t){return new b(t,e)}return i.tension=function(e){return t(+e)},i}(0);function v(t,e){this._context=t,this._k=(1-e)/6}v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:p(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let w=function t(e){function i(t){return new v(t,e)}return i.tension=function(e){return t(+e)},i}(0);t.s(["curveCardinal",0,g],826157);var T=t.i(810199);function S(t,e,i){var n=t._x1,s=t._y1,o=t._x2,r=t._y2;if(t._l01_a>T.epsilon){var h=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,a=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*h-t._x0*t._l12_2a+t._x2*t._l01_2a)/a,s=(s*h-t._y0*t._l12_2a+t._y2*t._l01_2a)/a}if(t._l23_a>T.epsilon){var _=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*_+t._x1*t._l23_2a-e*t._l12_2a)/c,r=(r*_+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(n,s,o,r,t._x2,t._y2)}function j(t,e){this._context=t,this._alpha=e}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:S(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let A=function t(e){function i(t){return e?new j(t,e):new d(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function N(t,e){this._context=t,this._alpha=e}N.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:S(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let M=function t(e){function i(t){return e?new N(t,e):new b(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function E(t,e){this._context=t,this._alpha=e}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:S(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let O=function t(e){function i(t){return e?new E(t,e):new v(t,0)}return i.alpha=function(e){return t(+e)},i}(.5);function k(t){this._context=t}function P(t){return new k(t)}function B(t){this._context=t}t.s(["curveCatmullRom",0,A],693158),k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},t.s(["default",0,P],48114),t.s(["curveLinear",0,P],851262),B.prototype={areaStart:a,areaEnd:a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function $(t,e,i){var n=t._x1-t._x0,s=e-t._x1,o=(t._y1-t._y0)/(n||s<0&&-0),r=(i-t._y1)/(s||n<0&&-0);return((o<0?-1:1)+(r<0?-1:1))*Math.min(Math.abs(o),Math.abs(r),.5*Math.abs((o*s+r*n)/(n+s)))||0}function C(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function D(t,e,i){var n=t._x0,s=t._y0,o=t._x1,r=t._y1,h=(o-n)/3;t._context.bezierCurveTo(n+h,s+h*e,o-h,r-h*i,o,r)}function I(t){this._context=t}function R(t){this._context=new z(t)}function z(t){this._context=t}function F(t){return new I(t)}function W(t){return new R(t)}function U(t){this._context=t}function H(t){var e,i,n=t.length-1,s=Array(n),o=Array(n),r=Array(n);for(s[0]=0,o[0]=2,r[0]=t[0]+2*t[1],e=1;e<n-1;++e)s[e]=1,o[e]=4,r[e]=4*t[e]+2*t[e+1];for(s[n-1]=2,o[n-1]=7,r[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=s[e]/o[e-1],o[e]-=i,r[e]-=i*r[e-1];for(s[n-1]=r[n-1]/o[n-1],e=n-2;e>=0;--e)s[e]=(r[e]-s[e+1])/o[e];for(e=0,o[n-1]=(t[n]+s[n-1])/2;e<n-1;++e)o[e]=2*t[e+1]-s[e+1];return[s,o]}function L(t){return new U(t)}function V(t,e){this._context=t,this._t=e}function q(t){return new V(t,.5)}function X(t){return new V(t,0)}function Y(t){return new V(t,1)}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:D(this,this._t0,C(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,D(this,C(this,i=$(this,t,e)),i);break;default:D(this,this._t0,i=$(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}},(R.prototype=Object.create(I.prototype)).point=function(t,e){I.prototype.point.call(this,e,t)},z.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,n,s,o){this._context.bezierCurveTo(e,t,n,i,o,s)}},t.s(["curveMonotoneX",0,F],363823),t.s(["curveMonotoneY",0,W],992536),U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===i)this._context.lineTo(t[1],e[1]);else for(var n=H(t),s=H(e),o=0,r=1;r<i;++o,++r)this._context.bezierCurveTo(n[0][o],s[0][o],n[1][o],s[1][o],t[r],e[r]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},t.s(["curveNatural",0,L],226619),V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}},t.s(["curveStep",0,q],381142),t.s(["curveStepAfter",0,Y],700357),t.s(["curveStepBefore",0,X],163018);var K=t.i(723685);function J(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let i=function(...n){let s=e?e.apply(this,n):n[0],o=i.cache;if(o.has(s))return o.get(s);let r=t.apply(this,n);return i.cache=o.set(s,r)||o,r};return i.cache=new(J.Cache||Map),i}function G(){}function Z(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function Q(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function tt(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}J.Cache=Map,t.s(["isPrimitive",0,Z],885812);let te="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||t.g||function(){return this}()||Function("return this")();function ti(t){return void 0!==te.Buffer&&te.Buffer.isBuffer(t)}function tn(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ts(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}t.s(["isBuffer",0,ti],647608),t.s(["getTag",0,ts],342919);let to="[object RegExp]",tr="[object String]",th="[object Number]",ta="[object Boolean]",t_="[object Arguments]",tc="[object Symbol]",tl="[object Date]",tu="[object Map]",tf="[object Set]",ty="[object Array]",tx="[object ArrayBuffer]",tp="[object Object]",td="[object DataView]",tg="[object Uint8Array]",tb="[object Uint8ClampedArray]",tm="[object Uint16Array]",tv="[object Uint32Array]",tw="[object Int8Array]",tT="[object Int16Array]",tS="[object Int32Array]",tj="[object Float32Array]",tA="[object Float64Array]";function tN(t,e,i,n=new Map,s){let o=s?.(t,e,i,n);if(void 0!==o)return o;if(Z(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let o=0;o<t.length;o++)e[o]=tN(t[o],o,i,n,s);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[o,r]of(n.set(t,e),t))e.set(o,tN(r,o,i,n,s));return e}if(t instanceof Set){let e=new Set;for(let o of(n.set(t,e),t))e.add(tN(o,void 0,i,n,s));return e}if(ti(t))return t.subarray();if(Q(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let o=0;o<t.length;o++)e[o]=tN(t[o],o,i,n,s);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),tM(e,t,i,n,s),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),tM(e,t,i,n,s),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),tM(e,t,i,n,s),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,tM(e,t,i,n,s),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),tM(e,t,i,n,s),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),tM(e,t,i,n,s),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),tM(e,t,i,n,s),e}if("object"==typeof t&&function(t){switch(ts(t)){case t_:case ty:case tx:case td:case ta:case tl:case tj:case tA:case tw:case tT:case tS:case tu:case th:case tp:case to:case tf:case tr:case tc:case tg:case tb:case tm:case tv:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),tM(e,t,i,n,s),e}return t}function tM(t,e,i=t,n,s){let o=[...Object.keys(e),...tt(e)];for(let r=0;r<o.length;r++){let h=o[r],a=Object.getOwnPropertyDescriptor(t,h);(null==a||a.writable)&&(t[h]=tN(e[h],h,i,n,s))}}function tE(t){var e;return e=(e,i,n,s)=>{let o;if(void 0!==o)return o;if("object"==typeof t){if("[object Object]"===ts(t)&&"function"!=typeof t.constructor){let e={};return s.set(t,e),tM(e,t,n,s),e}switch(Object.prototype.toString.call(t)){case th:case tr:case ta:{let e=new t.constructor(t?.valueOf());return tM(e,t),e}case t_:{let e={};return tM(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},tN(t,void 0,t,new Map,e)}function tO(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===ts(t)}function tk(t){return"object"==typeof t&&null!==t}function tP(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}function tB(t){return Q(t)}t.s(["argumentsTag",0,t_,"arrayBufferTag",0,tx,"arrayTag",0,ty,"booleanTag",0,ta,"dataViewTag",0,td,"dateTag",0,tl,"float32ArrayTag",0,tj,"float64ArrayTag",0,tA,"int16ArrayTag",0,tT,"int32ArrayTag",0,tS,"int8ArrayTag",0,tw,"mapTag",0,tu,"numberTag",0,th,"objectTag",0,tp,"regexpTag",0,to,"setTag",0,tf,"stringTag",0,tr,"symbolTag",0,tc,"uint16ArrayTag",0,tm,"uint32ArrayTag",0,tv,"uint8ArrayTag",0,tg,"uint8ClampedArrayTag",0,tb],991085),t.s(["isArguments",0,tO],568482),t.s(["isArrayLike",0,tP],532780),t.s(["isTypedArray",0,tB],338489);var t$={curveBasis:h,curveBasisClosed:function(t){return new _(t)},curveBasisOpen:function(t){return new c(t)},curveBumpX:u,curveBumpY:f,curveBundle:x,curveCardinalClosed:m,curveCardinalOpen:w,curveCardinal:g,curveCatmullRomClosed:M,curveCatmullRomOpen:O,curveCatmullRom:A,curveLinear:P,curveLinearClosed:function(t){return new B(t)},curveMonotoneX:F,curveMonotoneY:W,curveNatural:L,curveStep:q,curveStepAfter:Y,curveStepBefore:X},tC=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tD=(0,n.__name)(function(t,e){let n=tI(t,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(n)){let t=n.map(t=>t.args);(0,i.sanitizeDirective)(t),s=(0,i.assignWithDepth_default)(s,[...t])}else s=n.args;if(!s)return;let o=(0,i.detectType)(t,e),r="config";return void 0!==s[r]&&("flowchart-v2"===o&&(o="flowchart"),s[o]=s[r],delete s[r]),s},"detectInit"),tI=(0,n.__name)(function(t,e=null){try{let s,o=RegExp(`[%]{2}(?![{]${tC.source})(?=[}][%]{2}).*
2
+ `,"ig");t=t.trim().replace(o,"").replace(/'/gm,'"'),n.log.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let r=[];for(;null!==(s=i.directiveRegex.exec(t));)if(s.index===i.directiveRegex.lastIndex&&i.directiveRegex.lastIndex++,s&&!e||e&&s[1]?.match(e)||e&&s[2]?.match(e)){let t=s[1]?s[1]:s[2],e=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;r.push({type:t,args:e})}if(0===r.length)return{type:t,args:null};return 1===r.length?r[0]:r}catch(i){return n.log.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),tR=(0,n.__name)(function(t){return t.replace(i.directiveRegex,"")},"removeDirectives"),tz=(0,n.__name)(function(t,e){for(let[i,n]of e.entries())if(n.match(t))return i;return -1},"isSubstringInArray");function tF(t,e){return t?t$[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function tW(t,e){let i=t.trim();if(i)return"loose"!==e.securityLevel?(0,s.sanitizeUrl)(i):i}(0,n.__name)(tF,"interpolateToCurve"),(0,n.__name)(tW,"formatUrl");var tU=(0,n.__name)((t,...e)=>{let i=t.split("."),s=i.length-1,o=i[s],r=window;for(let e=0;e<s;e++)if(!(r=r[i[e]]))return void n.log.error(`Function name: ${t} not found in window`);r[o](...e)},"runFunc");function tH(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function tL(t){let e,i=0;return t.forEach(t=>{i+=tH(t,e),e=t}),tX(t,i/2)}function tV(t){return 1===t.length?t[0]:tL(t)}(0,n.__name)(tH,"distance"),(0,n.__name)(tL,"traverseEdge"),(0,n.__name)(tV,"calcLabelPosition");var tq=(0,n.__name)((t,e=2)=>{let i=Math.pow(10,e);return Math.round(t*i)/i},"roundNumber"),tX=(0,n.__name)((t,e)=>{let i,n=e;for(let e of t){if(i){let t=tH(e,i);if(0===t)return i;if(t<n)n-=t;else{let s=n/t;if(s<=0)return i;if(s>=1)return{x:e.x,y:e.y};if(s>0&&s<1)return{x:tq((1-s)*i.x+s*e.x,5),y:tq((1-s)*i.y+s*e.y,5)}}}i=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),tY=(0,n.__name)((t,e,i)=>{n.log.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let s=tX(e,25),o=t?10:5,r=Math.atan2(e[0].y-s.y,e[0].x-s.x),h={x:0,y:0};return h.x=Math.sin(r)*o+(e[0].x+s.x)/2,h.y=-Math.cos(r)*o+(e[0].y+s.y)/2,h},"calcCardinalityPosition");function tK(t,e,i){let s=structuredClone(i);n.log.info("our points",s),"start_left"!==e&&"start_right"!==e&&s.reverse();let o=tX(s,25+t),r=10+.5*t,h=Math.atan2(s[0].y-o.y,s[0].x-o.x),a={x:0,y:0};return"start_left"===e?(a.x=Math.sin(h+Math.PI)*r+(s[0].x+o.x)/2,a.y=-Math.cos(h+Math.PI)*r+(s[0].y+o.y)/2):"end_right"===e?(a.x=Math.sin(h-Math.PI)*r+(s[0].x+o.x)/2-5,a.y=-Math.cos(h-Math.PI)*r+(s[0].y+o.y)/2-5):"end_left"===e?(a.x=Math.sin(h)*r+(s[0].x+o.x)/2-5,a.y=-Math.cos(h)*r+(s[0].y+o.y)/2-5):(a.x=Math.sin(h)*r+(s[0].x+o.x)/2,a.y=-Math.cos(h)*r+(s[0].y+o.y)/2),a}function tJ(t){let e="",i="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?i=i+n+";":e=e+n+";");return{style:e,labelStyle:i}}(0,n.__name)(tK,"calcTerminalLabelPosition"),(0,n.__name)(tJ,"getStylesFromArray");var tG=0,tZ=(0,n.__name)(()=>(tG++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tG),"generateId");function tQ(t){let e="",i="0123456789abcdef",n=i.length;for(let s=0;s<t;s++)e+=i.charAt(Math.floor(Math.random()*n));return e}(0,n.__name)(tQ,"makeRandomHex");var t0=(0,n.__name)(t=>tQ(t.length),"random"),t1=(0,n.__name)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),t2=(0,n.__name)(function(t,e){let n=e.text.replace(i.common_default.lineBreakRegex," "),[,s]=ei(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",s),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);let r=o.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.attr("fill",e.fill),r.text(n),o},"drawSimpleText"),t3=J((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),i.common_default.lineBreakRegex.test(t)))return t;let s=t.split(" ").filter(Boolean),o=[],r="";return s.forEach((t,i)=>{let h=t5(`${t} `,n),a=t5(r,n);if(h>e){let{hyphenatedStrings:i,remainingWord:s}=t4(t,e,"-",n);o.push(r,...i),r=s}else a+h>=e?(o.push(r),r=t):r=[r,t].filter(Boolean).join(" ");i+1===s.length&&o.push(r)}),o.filter(t=>""!==t).join(n.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),t4=J((t,e,i="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let s=[...t],o=[],r="";return s.forEach((t,h)=>{let a=`${r}${t}`;if(t5(a,n)>=e){let t=s.length===h+1,e=`${a}${i}`;o.push(t?a:e),r=""}else r=a}),{hyphenatedStrings:o,remainingWord:r}},(t,e,i="-",n)=>`${t}${e}${i}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function t6(t,e){return t8(t,e).height}function t5(t,e){return t8(t,e).width}(0,n.__name)(t6,"calculateTextHeight"),(0,n.__name)(t5,"calculateTextWidth");var t8=J((t,e)=>{let{fontSize:n=12,fontFamily:s="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,r]=ei(n),h=t.split(i.common_default.lineBreakRegex),a=[],_=(0,K.select)("body");if(!_.remove)return{width:0,height:0,lineHeight:0};let c=_.append("svg");for(let t of["sans-serif",s]){let e=0,i={width:0,height:0,lineHeight:0};for(let n of h){let s=t1();s.text=n||"​";let h=t2(c,s).style("font-size",r).style("font-weight",o).style("font-family",t),a=(h._groups||h)[0][0].getBBox();if(0===a.width&&0===a.height)throw Error("svg element not in render tree");i.width=Math.round(Math.max(i.width,a.width)),e=Math.round(a.height),i.height+=e,i.lineHeight=Math.round(Math.max(i.lineHeight,e))}a.push(i)}c.remove();let l=isNaN(a[1].height)||isNaN(a[1].width)||isNaN(a[1].lineHeight)||a[0].height>a[1].height&&a[0].width>a[1].width&&a[0].lineHeight>a[1].lineHeight?0:1;return a[l]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),t9=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,n.__name)(this,"InitIDGenerator")}},t7=(0,n.__name)(function(t){return e=e||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),e.innerHTML=t,unescape(e.textContent)},"entityDecode");function et(t){return"str"in t}(0,n.__name)(et,"isDetailedError");var ee=(0,n.__name)((t,e,i,n)=>{if(!n)return;let s=t.node()?.getBBox();s&&t.append("text").text(n).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},"insertTitle"),ei=(0,n.__name)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function en(t,e){return function(t,...e){return function(t,...e){let i=e.slice(0,-1),n=e[e.length-1],s=t;for(let t=0;t<i.length;t++)s=function t(e,i,n,s){if(Z(e)&&(e=Object(e)),null==i||"object"!=typeof i)return e;if(s.has(i))return function(t){if(Z(t))return t;if(Array.isArray(t)||Q(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let i=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new i(t);if(t instanceof RegExp){let e=new i(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new i(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new i(t.errors,t.message,{cause:t.cause}):new i(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new i([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(s.get(i));if(s.set(i,e),Array.isArray(i)){i=i.slice();for(let t=0;t<i.length;t++)i[t]=i[t]??void 0}let o=[...Object.keys(i),...tt(i)];for(let h=0;h<o.length;h++){let a=o[h];if("__proto__"===a)continue;let _=i[a],c=e[a];if(tO(_)&&(_={..._}),tO(c)&&(c={...c}),ti(_)&&(_=tE(_)),Array.isArray(_))if(Array.isArray(c)){let t=[],e=Reflect.ownKeys(c);for(let i=0;i<e.length;i++){let n=e[i];t[n]=c[n]}c=t}else{var r;if(tk(r=c)&&tP(r)){let t=[];for(let e=0;e<c.length;e++)t[e]=c[e];c=t}else c=[]}let l=n(c,_,a,e,i,s);void 0!==l?e[a]=l:Array.isArray(_)||tk(c)&&tk(_)&&(tn(c)||tn(_)||tB(c)||tB(_))?e[a]=t(c,_,n,s):null==c&&tn(_)?e[a]=t({},_,n,s):null==c&&tB(_)?e[a]=tE(_):(void 0===c||void 0!==_)&&(e[a]=_)}return e}(s,i[t],n,new Map);return s}(t,...e,G)}({},t,e)}(0,n.__name)(en,"cleanAndMerge");var es={assignWithDepth:i.assignWithDepth_default,wrapLabel:t3,calculateTextHeight:t6,calculateTextWidth:t5,calculateTextDimensions:t8,cleanAndMerge:en,detectInit:tD,detectDirective:tI,isSubstringInArray:tz,interpolateToCurve:tF,calcLabelPosition:tV,calcCardinalityPosition:tY,calcTerminalLabelPosition:tK,formatUrl:tW,getStylesFromArray:tJ,generateId:tZ,random:t0,runFunc:tU,entityDecode:t7,insertTitle:ee,isLabelCoordinateInPath:e_,parseFontSize:ei,InitIDGenerator:t9},eo=(0,n.__name)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),er=(0,n.__name)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),eh=(0,n.__name)((t,e,{counter:i=0,prefix:n,suffix:s},o)=>o||`${n?`${n}_`:""}${t}_${e}_${i}${s?`_${s}`:""}`,"getEdgeId");function ea(t){return t??null}function e_(t,e){let i=Math.round(t.x),n=Math.round(t.y),s=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return s.includes(i.toString())||s.includes(n.toString())}(0,n.__name)(ea,"handleUndefinedAttr"),(0,n.__name)(e_,"isLabelCoordinateInPath"),t.s(["ZERO_WIDTH_SPACE",0,"​","calculateTextDimensions",0,t8,"calculateTextHeight",0,t6,"calculateTextWidth",0,t5,"cleanAndMerge",0,en,"decodeEntities",0,er,"encodeEntities",0,eo,"generateId",0,tZ,"getEdgeId",0,eh,"getStylesFromArray",0,tJ,"handleUndefinedAttr",0,ea,"interpolateToCurve",0,tF,"isDetailedError",0,et,"parseFontSize",0,ei,"random",0,t0,"removeDirectives",0,tR,"utils_default",0,es,"wrapLabel",0,t3],669587)}]);
@@ -0,0 +1,4 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,876913,e=>{"use strict";var t=e.i(332090),r=e.i(960948),a=e.i(233755);e.i(95547),e.i(609003),e.i(347578),e.i(136013),e.i(620144);var n=e.i(864421),i=e.i(669587),s=e.i(908381),o=e.i(171206),d=e.i(440524);e.i(947716);var l=e.i(723685),c="comm",m="rule",g="decl",u="@keyframes",f="@layer",_=Math.abs,p=String.fromCharCode;function y(e,t,r){return e.replace(t,r)}function h(e,t){return 0|e.charCodeAt(t)}function w(e,t,r){return e.slice(t,r)}function b(e){return e.length}function v(e,t){return t.push(e),e}var A=1,S=1,x=0,k=0,C=0,D="";function E(e,t,r,a,n,i,s,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:A,column:S,length:s,return:"",siblings:o}}function T(){return C=k<x?h(D,k++):0,S++,10===C&&(S=1,A++),C}function L(){return h(D,k)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(e){var t,r;return(t=k-1,r=function e(t){for(;T();)switch(C){case t:return k;case 34:case 39:34!==t&&39!==t&&e(C);break;case 40:41===t&&e(t);break;case 92:T()}return k}(91===e?e+2:40===e?e+1:e),w(D,t,r)).trim()}function M(e,t,r,a,n,i,s,o,d,l,c,g){for(var u=n-1,f=0===n?i:[""],p=f.length,h=0,b=0,v=0;h<a;++h)for(var A=0,S=w(e,u+1,u=_(b=s[h])),x=e;A<p;++A)(x=(b>0?f[A]+" "+S:y(S,/&\f/g,f[A])).trim())&&(d[v++]=x);return E(e,t,r,0===n?m:o,d,l,c,g)}function z(e,t,r,a,n){return E(e,t,r,g,w(e,0,a),w(e,a+1,-1),a,n)}function F(e,t){for(var r="",a=0;a<e.length;a++)r+=t(e[a],a,e,t)||"";return r}function I(e,t,r,a){switch(e.type){case f:if(e.children.length)break;case"@import":case"@namespace":case g:return e.return=e.return||e.value;case c:return"";case u:return e.return=e.value+"{"+F(e.children,a)+"}";case m:if(!b(e.value=e.props.join(",")))return""}return b(r=F(e.children,a))?e.return=e.value+"{"+r+"}":""}var j=e.i(424154),O=e.i(647608),V=e.i(532780),P=e.i(568482),q=e.i(338489);function B(e){if(null==e)return!0;if((0,V.isArrayLike)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,O.isBuffer)(e)||!!(0,q.isTypedArray)(e)||!!(0,P.isArguments)(e))&&0===e.length;if("object"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let r=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===r.filter(e=>"constructor"!==e).length:0===r.length}return!0}var H={id:"c4",detector:(0,o.__name)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,o.__name)(async()=>{let{diagram:t}=await e.A(787960);return{id:"c4",diagram:t}},"loader")},G="flowchart",N=(0,o.__name)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),U=(0,o.__name)(async()=>{let{diagram:t}=await e.A(932964);return{id:G,diagram:t}},"loader"),W={id:G,detector:N,loader:U},K="flowchart-v2",Y=(0,o.__name)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),J=(0,o.__name)(async()=>{let{diagram:t}=await e.A(932964);return{id:K,diagram:t}},"loader"),Q={id:K,detector:Y,loader:J},Z={id:"er",detector:(0,o.__name)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,o.__name)(async()=>{let{diagram:t}=await e.A(837319);return{id:"er",diagram:t}},"loader")},X="gitGraph",ee=(0,o.__name)(e=>/^\s*gitGraph/.test(e),"detector"),et=(0,o.__name)(async()=>{let{diagram:t}=await e.A(823478);return{id:X,diagram:t}},"loader"),er={id:X,detector:ee,loader:et},ea="gantt",en=(0,o.__name)(e=>/^\s*gantt/.test(e),"detector"),ei=(0,o.__name)(async()=>{let{diagram:t}=await e.A(593091);return{id:ea,diagram:t}},"loader"),es={id:ea,detector:en,loader:ei},eo="info",ed=(0,o.__name)(e=>/^\s*info/.test(e),"detector"),el=(0,o.__name)(async()=>{let{diagram:t}=await e.A(588915);return{id:eo,diagram:t}},"loader"),ec={id:eo,detector:ed,loader:el},em={id:"pie",detector:(0,o.__name)(e=>/^\s*pie/.test(e),"detector"),loader:(0,o.__name)(async()=>{let{diagram:t}=await e.A(271697);return{id:"pie",diagram:t}},"loader")},eg="quadrantChart",eu=(0,o.__name)(e=>/^\s*quadrantChart/.test(e),"detector"),ef=(0,o.__name)(async()=>{let{diagram:t}=await e.A(427977);return{id:eg,diagram:t}},"loader"),e_={id:eg,detector:eu,loader:ef},ep="xychart",ey=(0,o.__name)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),eh=(0,o.__name)(async()=>{let{diagram:t}=await e.A(2143);return{id:ep,diagram:t}},"loader"),ew={id:ep,detector:ey,loader:eh},eb="requirement",ev=(0,o.__name)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),eA=(0,o.__name)(async()=>{let{diagram:t}=await e.A(619435);return{id:eb,diagram:t}},"loader"),eS={id:eb,detector:ev,loader:eA},ex="sequence",ek=(0,o.__name)(e=>/^\s*sequenceDiagram/.test(e),"detector"),eC=(0,o.__name)(async()=>{let{diagram:t}=await e.A(581392);return{id:ex,diagram:t}},"loader"),eD={id:ex,detector:ek,loader:eC},eE="class",eT=(0,o.__name)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),eL=(0,o.__name)(async()=>{let{diagram:t}=await e.A(585449);return{id:eE,diagram:t}},"loader"),eR={id:eE,detector:eT,loader:eL},e$="classDiagram",eM=(0,o.__name)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),ez=(0,o.__name)(async()=>{let{diagram:t}=await e.A(912351);return{id:e$,diagram:t}},"loader"),eF={id:e$,detector:eM,loader:ez},eI="state",ej=(0,o.__name)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),eO=(0,o.__name)(async()=>{let{diagram:t}=await e.A(416791);return{id:eI,diagram:t}},"loader"),eV={id:eI,detector:ej,loader:eO},eP="stateDiagram",eq=(0,o.__name)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),eB=(0,o.__name)(async()=>{let{diagram:t}=await e.A(814455);return{id:eP,diagram:t}},"loader"),eH={id:eP,detector:eq,loader:eB},eG="journey",eN=(0,o.__name)(e=>/^\s*journey/.test(e),"detector"),eU=(0,o.__name)(async()=>{let{diagram:t}=await e.A(23263);return{id:eG,diagram:t}},"loader"),eW={id:eG,detector:eN,loader:eU},eK={draw:(0,o.__name)((e,r,a)=>{o.log.debug("rendering svg for syntax error\n");let n=(0,t.selectSvgElement)(r),i=n.append("g");n.attr("viewBox","0 0 2412 512"),(0,s.configureSvgSize)(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`)},"draw")},eY={db:{},renderer:eK,parser:{parse:(0,o.__name)(()=>{},"parse")}},eJ="flowchart-elk",eQ=(0,o.__name)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),eZ=(0,o.__name)(async()=>{let{diagram:t}=await e.A(932964);return{id:eJ,diagram:t}},"loader"),eX={id:eJ,detector:eQ,loader:eZ},e0="timeline",e1=(0,o.__name)(e=>/^\s*timeline/.test(e),"detector"),e2=(0,o.__name)(async()=>{let{diagram:t}=await e.A(627037);return{id:e0,diagram:t}},"loader"),e6={id:e0,detector:e1,loader:e2},e3="mindmap",e4=(0,o.__name)(e=>/^\s*mindmap/.test(e),"detector"),e5=(0,o.__name)(async()=>{let{diagram:t}=await e.A(613470);return{id:e3,diagram:t}},"loader"),e8={id:e3,detector:e4,loader:e5},e9="kanban",e7=(0,o.__name)(e=>/^\s*kanban/.test(e),"detector"),te=(0,o.__name)(async()=>{let{diagram:t}=await e.A(424362);return{id:e9,diagram:t}},"loader"),tt={id:e9,detector:e7,loader:te},tr="sankey",ta=(0,o.__name)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),tn=(0,o.__name)(async()=>{let{diagram:t}=await e.A(28896);return{id:tr,diagram:t}},"loader"),ti={id:tr,detector:ta,loader:tn},ts="packet",to=(0,o.__name)(e=>/^\s*packet(-beta)?/.test(e),"detector"),td=(0,o.__name)(async()=>{let{diagram:t}=await e.A(863542);return{id:ts,diagram:t}},"loader"),tl={id:ts,detector:to,loader:td},tc="radar",tm=(0,o.__name)(e=>/^\s*radar-beta/.test(e),"detector"),tg=(0,o.__name)(async()=>{let{diagram:t}=await e.A(412545);return{id:tc,diagram:t}},"loader"),tu={id:tc,detector:tm,loader:tg},tf="block",t_=(0,o.__name)(e=>/^\s*block(-beta)?/.test(e),"detector"),tp=(0,o.__name)(async()=>{let{diagram:t}=await e.A(298717);return{id:tf,diagram:t}},"loader"),ty={id:tf,detector:t_,loader:tp},th="treeView",tw=(0,o.__name)(e=>/^\s*treeView-beta/.test(e),"detector"),tb=(0,o.__name)(async()=>{let{diagram:t}=await e.A(187729);return{id:th,diagram:t}},"loader"),tv={id:th,detector:tw,loader:tb},tA="architecture",tS=(0,o.__name)(e=>/^\s*architecture/.test(e),"detector"),tx=(0,o.__name)(async()=>{let{diagram:t}=await e.A(855646);return{id:tA,diagram:t}},"loader"),tk={id:tA,detector:tS,loader:tx},tC="eventmodeling",tD=(0,o.__name)(e=>/^\s*eventmodeling/.test(e),"detector"),tE=(0,o.__name)(async()=>{let{diagram:t}=await e.A(301208);return{id:tC,diagram:t}},"loader"),tT={id:tC,detector:tD,loader:tE},tL="ishikawa",tR=(0,o.__name)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),t$=(0,o.__name)(async()=>{let{diagram:t}=await e.A(992542);return{id:tL,diagram:t}},"loader"),tM={id:tL,detector:tR,loader:t$},tz="venn",tF=(0,o.__name)(e=>/^\s*venn-beta/.test(e),"detector"),tI=(0,o.__name)(async()=>{let{diagram:t}=await e.A(414450);return{id:tz,diagram:t}},"loader"),tj={id:tz,detector:tF,loader:tI},tO="treemap",tV=(0,o.__name)(e=>/^\s*treemap/.test(e),"detector"),tP=(0,o.__name)(async()=>{let{diagram:t}=await e.A(494988);return{id:tO,diagram:t}},"loader"),tq={id:tO,detector:tV,loader:tP},tB="wardley-beta",tH=(0,o.__name)(e=>/^\s*wardley-beta/i.test(e),"detector"),tG=(0,o.__name)(async()=>{let{diagram:t}=await e.A(242712);return{id:tB,diagram:t}},"loader"),tN={id:tB,detector:tH,loader:tG},tU=!1,tW=(0,o.__name)(()=>{tU||(tU=!0,(0,s.registerDiagram)("error",eY,e=>"error"===e.toLowerCase().trim()),(0,s.registerDiagram)("---",{db:{clear:(0,o.__name)(()=>{},"clear")},styles:{},renderer:{draw:(0,o.__name)(()=>{},"draw")},parser:{parse:(0,o.__name)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,o.__name)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,s.registerLazyLoadedDiagrams)(eX,e8,tk),(0,s.registerLazyLoadedDiagrams)(H,tt,eF,eR,Z,es,ec,em,eS,eD,Q,W,e6,er,eH,eV,eW,e_,ti,tl,ew,ty,tT,tv,tu,tM,tq,tj,tN))},"addDiagrams"),tK=(0,o.__name)(async()=>{o.log.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(s.detectors).map(async([e,{detector:t,loader:r}])=>{if(r)try{(0,s.getDiagram)(e)}catch{try{let{diagram:e,id:a}=await r();(0,s.registerDiagram)(a,e,t)}catch(t){throw o.log.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete s.detectors[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(o.log.error(`Failed to load ${e.length} external diagrams`),e))o.log.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function tY(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function tJ(e,t,r,a){if(void 0!==e.insert){if(r){let t=`chart-desc-${a}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(r)}if(t){let r=`chart-title-${a}`;e.attr("aria-labelledby",r),e.insert("title",":first-child").attr("id",r).text(t)}}}(0,o.__name)(tY,"setA11yDiagramInfo"),(0,o.__name)(tJ,"addSVGa11yTitleDescription");var tQ=class e{constructor(e,t,r,a,n){this.type=e,this.text=t,this.db=r,this.parser=a,this.renderer=n}static{(0,o.__name)(this,"Diagram")}static async fromText(t,r={}){let a=(0,s.getConfig)(),n=(0,s.detectType)(t,a);t=(0,i.encodeEntities)(t)+"\n";try{(0,s.getDiagram)(n)}catch{let e=(0,s.getDiagramLoader)(n);if(!e)throw new s.UnknownDiagramError(`Diagram ${n} not found.`);let{id:t,diagram:r}=await e();(0,s.registerDiagram)(t,r)}let{db:o,parser:d,renderer:l,init:c}=(0,s.getDiagram)(n);return d.parser&&(d.parser.yy=o),o.clear?.(),c?.(a),r.title&&o.setDiagramTitle?.(r.title),await d.parse(t),new e(n,t,o,d,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},tZ=[],tX=(0,o.__name)(()=>{tZ.forEach(e=>{e()}),tZ=[]},"attachFunctions"),t0=(0,o.__name)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function t1(e){let t=e.match(s.frontMatterRegex);if(!t)return{text:e,metadata:{}};let a=(0,r.load)(t[1],{schema:r.JSON_SCHEMA})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let n={};return a.displayMode&&(n.displayMode=a.displayMode.toString()),a.title&&(n.title=a.title.toString()),a.config&&(n.config=a.config),{text:e.slice(t[0].length),metadata:n}}(0,o.__name)(t1,"extractFrontMatter");var t2=(0,o.__name)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,r)=>"<"+t+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),t6=(0,o.__name)(e=>{let{text:t,metadata:r}=t1(e),{displayMode:a,title:n,config:i={}}=r;return a&&(i.gantt||(i.gantt={}),i.gantt.displayMode=a),{title:n,config:i,text:t}},"processFrontmatter"),t3=(0,o.__name)(e=>{let t=i.utils_default.detectInit(e)??{},r=i.utils_default.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:e})=>"wrap"===e):r?.type==="wrap"&&(t.wrap=!0),{text:(0,i.removeDirectives)(e),directive:t}},"processDirectives");function t4(e){let t=t6(t2(e)),r=t3(t.text),a=(0,i.cleanAndMerge)(t.config,r.directive);return{code:e=t0(r.text),title:t.title,config:a}}function t5(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,o.__name)(t4,"preprocessDiagram"),(0,o.__name)(t5,"toBase64");var t8=["foreignobject"],t9=["dominant-baseline"];function t7(e){let t=t4(e);return(0,s.reset)(),(0,s.addDirective)(t.config??{}),t}async function re(e,t){tW();try{let{code:t,config:r}=t7(e);return{diagramType:(await rg(t)).type,config:r}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,o.__name)(t7,"processAndSetConfigs"),(0,o.__name)(re,"parse");var rt=(0,o.__name)((e,t,r=[])=>{let a=(0,s.sanitizeCss)(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${a}`},"cssImportantStyles"),rr=(0,o.__name)((e,t=new Map)=>{let r=new CSSStyleSheet;if(void 0!==e.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),void 0!==e.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){let a=(0,s.getEffectiveHtmlLabels)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{B(e.styles)||a.forEach(t=>{r.insertRule(rt(e.id,t,e.styles),r.cssRules.length)}),B(e.textStyles)||r.insertRule(rt(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),r.cssRules.length)})}let a="";if(void 0!==e.themeCSS)if("function"==typeof r.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),a=(0,s.cssStyleSheetToString)(t)+"\n"}else a+=`${e.themeCSS}
2
+ `;return a+(0,s.cssStyleSheetToString)(r)},"createCssStyles"),ra=(0,o.__name)((e,t)=>{var r,a,n,i,s;return F((n=function e(t,r,a,n,i,s,o,d,l){for(var m,g,u,f,_=0,x=0,F=o,I=0,j=0,O=0,V=1,P=1,q=1,B=0,H=0,G="",N=i,U=s,W=n,K=G;P;)switch(O=H,H=T()){case 40:108!=O&&58==h(K,F-1)?(B++,K+="("):K+=$(H);break;case 41:B--,K+=")";break;case 34:case 39:case 91:K+=$(H);break;case 9:case 10:case 13:case 32:if(B>0){K+=p(H);break}K+=function(e){for(;C=L();)if(C<33)T();else break;return R(e)>2||R(C)>3?"":" "}(O);break;case 92:K+=function(e,t){for(var r;--t&&T()&&!(C<48)&&!(C>102)&&(!(C>57)||!(C<65))&&(!(C>70)||!(C<97)););return r=k+(t<6&&32==L()&&32==T()),w(D,e,r)}(k-1,7);continue;case 47:switch(L()){case 42:case 47:v((m=function(e,t){for(;T();)if(e+C===57)break;else if(e+C===84&&47===L())break;return"/*"+w(D,t,k-1)+"*"+p(47===e?e:T())}(T(),k),g=r,u=a,f=l,E(m,g,u,c,p(C),w(m,2,-2),0,f)),l),(5==R(O||1)||5==R(L()||1))&&b(K)&&" "!==w(K,-1,void 0)&&(K+=" ");break;default:K+="/"}break;case 123*V:d[_++]=b(K)*q;case 125*V:case 59:case 0:if(B>0&&H){K+=p(H);break}switch(H){case 0:case 125:P=0;case 59+x:-1==q&&(K=y(K,/\f/g,"")),j>0&&(b(K)-F||0===V)&&v(j>32?z(K+";",n,a,F-1,l):z(y(K," ","")+";",n,a,F-2,l),l);break;case 59:K+=";";default:if(v(W=M(K,r,a,_,x,i,d,G,N=[],U=[],F,s),s),123===H)if(0===x)e(K,r,W,W,N,s,F,d,U);else{switch(I){case 99:if(110===h(K,3))break;case 108:if(97===h(K,2))break;default:x=0;case 100:case 109:case 115:}x?e(t,W,W,n&&v(M(t,W,W,0,0,i,d,G,i,N=[],F,U),U),i,U,F,d,n?N:U):e(K,W,W,W,[""],U,0,d,U)}}_=x=j=0,V=q=1,G=K="",F=o;break;case 58:F=1+b(K),j=O;default:if(V<1){if(123==H)--V;else if(125==H&&0==V++&&125==(C=k>0?h(D,--k):0,S--,10===C&&(S=1,A--),C))continue}switch(K+=p(H),H*V){case 38:q=x>0?1:(K+="\f",-1);break;case 44:if(B>0)break;d[_++]=(b(K)-1)*q,q=1;break;case 64:45===L()&&(K+=$(T())),I=L(),x=F=b(G=K+=function(e){for(;!R(L());)T();return w(D,e,k)}(k)),H++;break;case 45:45===O&&2==b(K)&&(V=0)}}return s}("",null,null,null,[""],(a=r=`${e}{${t}}`,A=S=1,x=b(D=a),k=0,r=[]),0,[0],r),D="",n),(s=(i=[(0,o.__name)(function(t,r,a,n){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===u||(t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)):t.type.startsWith("@")&&(["@media","@supports",f,"@scope","@container","@starting-style",u].includes(t.type)||(o.log.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=c))},"addNamespace"),I]).length,function(e,t,r,a){for(var n="",o=0;o<s;o++)n+=i[o](e,t,r,a)||"";return n}))},"compileCSS"),rn=(0,o.__name)((e,t,r,a)=>{let n=rr(e,r),i=(0,s.styles_default)(t,n,{...e.themeVariables,theme:e.theme,look:e.look},a);return ra(a,i)},"createUserStyles"),ri=(0,o.__name)((e="",t,r)=>{let a=e;return r||t||(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=(a=(0,i.decodeEntities)(a)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rs=(0,o.__name)((e="",t)=>{let r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",a=t5(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${a}" sandbox="allow-top-navigation-by-user-activation allow-popups">
3
+ The "iframe" tag is not supported by your browser.
4
+ </iframe>`},"putIntoIFrame"),ro=(0,o.__name)((e,t,r,a,n)=>{let i=e.append("div");i.attr("id",r),a&&i.attr("style",a);let s=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function rd(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,o.__name)(rd,"sandboxedIframe");var rl=(0,o.__name)((e,t,r,a)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(a)?.remove()},"removeExistingElements"),rc=(0,o.__name)(async function(e,t,r){let a,n;tW();let i=t7(t);t=i.code;let d=(0,s.getConfig)();o.log.debug(d),t.length>(d?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let c=`#${e}`,m="i"+e,g="#"+m,u="d"+e,f="#"+u,_=(0,o.__name)(()=>{let e=y?g:f,t=(0,l.select)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),p=(0,l.select)(document.body),y="sandbox"===d.securityLevel,h="loose"===d.securityLevel,w=d.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),y){let e=rd((0,l.select)(r),m);(p=(0,l.select)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,l.select)(r);ro(p,e,u,`font-family: ${w}`,"http://www.w3.org/1999/xlink")}else{if(rl(document,e,u,m),y){let e=rd((0,l.select)(document.body),m);(p=(0,l.select)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,l.select)("body");ro(p,e,u)}try{a=await tQ.fromText(t,{title:i.title})}catch(e){if(d.suppressErrorRendering)throw _(),e;a=await tQ.fromText("error"),n=e}let b=p.select(f).node(),v=a.type,A=b.firstChild,S=A.firstChild,x=rn(d,v,a.renderer.getClasses?.(t,a),c),k=document.createElement("style");k.innerHTML=x,A.insertBefore(k,S);try{await a.renderer.draw(t,e,"11.15.0",a)}catch(r){throw d.suppressErrorRendering?_():eK.draw(t,e,"11.15.0"),r}ru(v,p.select(`${f} svg`),a.db.getAccTitle?.(),a.db.getAccDescription?.()),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let C=p.select(f).node().innerHTML;if(o.log.debug("config.arrowMarkerAbsolute",d.arrowMarkerAbsolute),C=ri(C,y,(0,s.evaluate)(d.arrowMarkerAbsolute)),y?C=rs(C,p.select(f+" svg").node()):h||(C=j.default.sanitize(C,{ADD_TAGS:t8,ADD_ATTR:t9,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),tX(),n)throw n;return _(),{diagramType:v,svg:C,bindFunctions:a.db.bindFunctions}},"render");function rm(e={}){let t=(0,s.assignWithDepth_default)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,s.saveConfigFromInitialize)(t),t?.theme&&t.theme in s.themes_default?t.themeVariables=s.themes_default[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=s.themes_default.default.getThemeVariables(t.themeVariables));let r="object"==typeof t?(0,s.setSiteConfig)(t):(0,s.getSiteConfig)();(0,o.setLogLevel)(r.logLevel),tW()}(0,o.__name)(rm,"initialize");var rg=(0,o.__name)((e,t={})=>{let{code:r}=t4(e);return tQ.fromText(r,t)},"getDiagramFromText");function ru(e,t,r,a){tY(t,e),tJ(t,r,a,t.attr("id"))}(0,o.__name)(ru,"addA11yInfo");var rf=Object.freeze({render:rc,parse:re,getDiagramFromText:rg,initialize:rm,getConfig:s.getConfig,setConfig:s.setConfig,getSiteConfig:s.getSiteConfig,updateSiteConfig:s.updateSiteConfig,reset:(0,o.__name)(()=>{(0,s.reset)()},"reset"),globalReset:(0,o.__name)(()=>{(0,s.reset)(s.defaultConfig)},"globalReset"),defaultConfig:s.defaultConfig});(0,o.setLogLevel)((0,s.getConfig)().logLevel),(0,s.reset)((0,s.getConfig)());var r_=(0,o.__name)((e,t,r)=>{o.log.warn(e),(0,i.isDetailedError)(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),rp=(0,o.__name)(async function(e={querySelector:".mermaid"}){try{await ry(e)}catch(t){if((0,i.isDetailedError)(t)&&o.log.error(t.str),rT.parseError&&rT.parseError(t),!e.suppressErrors)throw o.log.error("Use the suppressErrors option to suppress these errors"),t}},"run"),ry=(0,o.__name)(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let a,n,s=rf.getConfig();if(o.log.debug(`${!e?"No ":""}Callback function found`),r)a=r;else if(t)a=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");o.log.debug(`Found ${a.length} diagrams`),s?.startOnLoad!==void 0&&(o.log.debug("Start On Load: "+s?.startOnLoad),rf.updateSiteConfig({startOnLoad:s?.startOnLoad}));let l=new i.utils_default.InitIDGenerator(s.deterministicIds,s.deterministicIDSeed),c=[];for(let t of Array.from(a)){if(o.log.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let r=`mermaid-${l.next()}`;n=t.innerHTML,n=(0,d.dedent)(i.utils_default.entityDecode(n)).trim().replace(/<br\s*\/?>/gi,"<br/>");let a=i.utils_default.detectInit(n);a&&o.log.debug("Detected early reinit: ",a);try{let{svg:a,bindFunctions:i}=await rD(r,n,t);t.innerHTML=a,e&&await e(r),i&&i(t)}catch(e){r_(e,c,rT.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),rh=(0,o.__name)(function(e){rf.initialize(e)},"initialize"),rw=(0,o.__name)(async function(e,t,r){o.log.warn("mermaid.init is deprecated. Please use run instead."),e&&rh(e);let a={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof t?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await rp(a)},"init"),rb=(0,o.__name)(async(e,{lazyLoad:t=!0}={})=>{tW(),(0,s.registerLazyLoadedDiagrams)(...e),!1===t&&await tK()},"registerExternalDiagrams"),rv=(0,o.__name)(function(){if(rT.startOnLoad){let{startOnLoad:e}=rf.getConfig();e&&rT.run().catch(e=>o.log.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",rv,!1);var rA=(0,o.__name)(function(e){rT.parseError=e},"setParseErrorHandler"),rS=[],rx=!1,rk=(0,o.__name)(async()=>{if(!rx){for(rx=!0;rS.length>0;){let e=rS.shift();if(e)try{await e()}catch(e){o.log.error("Error executing queue",e)}}rx=!1}},"executeQueue"),rC=(0,o.__name)(async(e,t)=>new Promise((r,a)=>{let n=(0,o.__name)(()=>new Promise((n,i)=>{rf.parse(e,t).then(e=>{n(e),r(e)},e=>{o.log.error("Error parsing",e),rT.parseError?.(e),i(e),a(e)})}),"performCall");rS.push(n),rk().catch(a)}),"parse"),rD=(0,o.__name)((e,t,r)=>new Promise((a,n)=>{let i=(0,o.__name)(()=>new Promise((i,s)=>{rf.render(e,t,r).then(e=>{i(e),a(e)},e=>{o.log.error("Error parsing",e),rT.parseError?.(e),s(e),n(e)})}),"performCall");rS.push(i),rk().catch(n)}),"render"),rE=(0,o.__name)(()=>Object.keys(s.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),rT={startOnLoad:!0,mermaidAPI:rf,parse:rC,render:rD,init:rw,run:rp,registerExternalDiagrams:rb,registerLayoutLoaders:a.registerLayoutLoaders,initialize:rh,parseError:void 0,contentLoaded:rv,setParseErrorHandler:rA,detectType:s.detectType,registerIconPacks:n.registerIconPacks,getRegisteredDiagramsMetadata:rE};e.s(["default",0,rT],876913)}]);