@evoscientist/webui 0.1.0 → 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/{IV8SswX1U52biTfmccIat → gkNr2MgYRz9rGG-3TWYFV}/_buildManifest.js +0 -0
  286. /package/dist/.next/static/{IV8SswX1U52biTfmccIat → gkNr2MgYRz9rGG-3TWYFV}/_clientMiddlewareManifest.js +0 -0
  287. /package/dist/.next/static/{IV8SswX1U52biTfmccIat → gkNr2MgYRz9rGG-3TWYFV}/_ssgManifest.js +0 -0
@@ -0,0 +1,82 @@
1
+ module.exports=[776333,a=>{"use strict";var b=a.i(562583),c=a.i(867575),d=a.i(807297);a.i(273701),a.i(130905),a.i(921003),a.i(369813),a.i(507666),a.i(248916);var e=a.i(896937),f=a.i(685227),g=a.i(334603);a.i(975930);var h=a.i(671731),i=a.i(255957),j=a.i(155177),k=function(){var a=(0,g.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],c=[1,10],d=[1,11],e=[1,12],f=[1,13],h=[1,23],i=[1,24],j=[1,25],k=[1,26],l=[1,27],m=[1,19],n=[1,28],o=[1,29],p=[1,20],q=[1,18],r=[1,21],s=[1,22],t=[1,36],u=[1,37],v=[1,38],w=[1,39],x=[1,40],y=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],z=[1,45],A=[1,46],B=[1,55],C=[40,48,50,51,52,70,71],D=[1,66],E=[1,64],F=[1,61],G=[1,65],H=[1,67],I=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],J=[65,66,67,68,69],K=[1,84],L=[1,83],M=[1,81],N=[1,82],O=[6,10,42,47],P=[6,10,13,41,42,47,48,49],Q=[1,92],R=[1,91],S=[1,90],T=[19,58],U=[1,101],V=[1,100],W=[19,58,60,62],X={trace:(0,g.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:(0,g.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 81:case 65:case 66:case 69:this.$=f[h];break;case 8:d.addEntity(f[h-4]),d.addEntity(f[h-2]),d.addRelationship(f[h-4],f[h],f[h-2],f[h-3]);break;case 9:d.addEntity(f[h-8]),d.addEntity(f[h-4]),d.addRelationship(f[h-8],f[h],f[h-4],f[h-5]),d.setClass([f[h-8]],f[h-6]),d.setClass([f[h-4]],f[h-2]);break;case 10:d.addEntity(f[h-6]),d.addEntity(f[h-2]),d.addRelationship(f[h-6],f[h],f[h-2],f[h-3]),d.setClass([f[h-6]],f[h-4]);break;case 11:d.addEntity(f[h-6]),d.addEntity(f[h-4]),d.addRelationship(f[h-6],f[h],f[h-4],f[h-5]),d.setClass([f[h-4]],f[h-2]);break;case 12:d.addEntity(f[h-3]),d.addAttributes(f[h-3],f[h-1]);break;case 13:d.addEntity(f[h-5]),d.addAttributes(f[h-5],f[h-1]),d.setClass([f[h-5]],f[h-3]);break;case 14:d.addEntity(f[h-2]);break;case 15:d.addEntity(f[h-4]),d.setClass([f[h-4]],f[h-2]);break;case 16:d.addEntity(f[h]);break;case 17:d.addEntity(f[h-2]),d.setClass([f[h-2]],f[h]);break;case 18:d.addEntity(f[h-6],f[h-4]),d.addAttributes(f[h-6],f[h-1]);break;case 19:d.addEntity(f[h-8],f[h-6]),d.addAttributes(f[h-8],f[h-1]),d.setClass([f[h-8]],f[h-3]);break;case 20:d.addEntity(f[h-5],f[h-3]);break;case 21:d.addEntity(f[h-7],f[h-5]),d.setClass([f[h-7]],f[h-2]);break;case 22:d.addEntity(f[h-3],f[h-1]);break;case 23:d.addEntity(f[h-5],f[h-3]),d.setClass([f[h-5]],f[h]);break;case 24:case 25:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 26:case 27:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 32:d.setDirection("TB");break;case 33:d.setDirection("BT");break;case 34:d.setDirection("RL");break;case 35:d.setDirection("LR");break;case 36:this.$=f[h-3],d.addClass(f[h-2],f[h-1]);break;case 37:case 38:case 59:case 67:case 43:this.$=[f[h]];break;case 39:case 40:this.$=f[h-2].concat([f[h]]);break;case 41:this.$=f[h-2],d.setClass(f[h-1],f[h]);break;case 42:this.$=f[h-3],d.addCssStyles(f[h-2],f[h-1]);break;case 44:case 68:f[h-2].push(f[h]),this.$=f[h-2];break;case 46:this.$=f[h-1]+f[h];break;case 54:case 79:case 80:case 70:this.$=f[h].replace(/"/g,"");break;case 60:f[h].push(f[h-1]),this.$=f[h];break;case 61:this.$={type:f[h-1],name:f[h]};break;case 62:this.$={type:f[h-2],name:f[h-1],keys:f[h]};break;case 63:this.$={type:f[h-2],name:f[h-1],comment:f[h]};break;case 64:this.$={type:f[h-3],name:f[h-2],keys:f[h-1],comment:f[h]};break;case 71:this.$={cardA:f[h],relType:f[h-1],cardB:f[h-2]};break;case 72:this.$=d.Cardinality.ZERO_OR_ONE;break;case 73:this.$=d.Cardinality.ZERO_OR_MORE;break;case 74:this.$=d.Cardinality.ONE_OR_MORE;break;case 75:this.$=d.Cardinality.ONLY_ONE;break;case 76:this.$=d.Cardinality.MD_PARENT;break;case 77:this.$=d.Identification.NON_IDENTIFYING;break;case 78:this.$=d.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},a(b,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:c,24:d,26:e,28:f,29:14,30:15,31:16,32:17,33:h,34:i,35:j,36:k,37:l,40:m,43:n,44:o,48:p,50:q,51:r,52:s},a(b,[2,7],{1:[2,1]}),a(b,[2,3]),{9:30,11:9,22:c,24:d,26:e,28:f,29:14,30:15,31:16,32:17,33:h,34:i,35:j,36:k,37:l,40:m,43:n,44:o,48:p,50:q,51:r,52:s},a(b,[2,5]),a(b,[2,6]),a(b,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:t,66:u,67:v,68:w,69:x}),{23:[1,41]},{25:[1,42]},{27:[1,43]},a(b,[2,27]),a(b,[2,28]),a(b,[2,29]),a(b,[2,30]),a(b,[2,31]),a(y,[2,54]),a(y,[2,55]),a(y,[2,56]),a(y,[2,57]),a(y,[2,58]),a(b,[2,32]),a(b,[2,33]),a(b,[2,34]),a(b,[2,35]),{16:44,40:z,41:A},{16:47,40:z,41:A},{16:48,40:z,41:A},a(b,[2,4]),{11:49,40:m,48:p,50:q,51:r,52:s},{16:50,40:z,41:A},{18:51,19:[1,52],53:53,54:54,58:B},{11:56,40:m,48:p,50:q,51:r,52:s},{64:57,70:[1,58],71:[1,59]},a(C,[2,72]),a(C,[2,73]),a(C,[2,74]),a(C,[2,75]),a(C,[2,76]),a(b,[2,24]),a(b,[2,25]),a(b,[2,26]),{13:D,38:60,41:E,42:F,45:62,46:63,48:G,49:H},a(I,[2,37]),a(I,[2,38]),{16:68,40:z,41:A,42:F},{13:D,38:69,41:E,42:F,45:62,46:63,48:G,49:H},{13:[1,70],15:[1,71]},a(b,[2,17],{63:35,12:72,17:[1,73],42:F,65:t,66:u,67:v,68:w,69:x}),{19:[1,74]},a(b,[2,14]),{18:75,19:[2,59],53:53,54:54,58:B},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:t,66:u,67:v,68:w,69:x},a(J,[2,77]),a(J,[2,78]),{6:K,10:L,39:80,42:M,47:N},{40:[1,85],41:[1,86]},a(O,[2,43],{46:87,13:D,41:E,48:G,49:H}),a(P,[2,45]),a(P,[2,50]),a(P,[2,51]),a(P,[2,52]),a(P,[2,53]),a(b,[2,41],{42:F}),{6:K,10:L,39:88,42:M,47:N},{14:89,40:Q,50:R,72:S},{16:93,40:z,41:A},{11:94,40:m,48:p,50:q,51:r,52:s},{18:95,19:[1,96],53:53,54:54,58:B},a(b,[2,12]),{19:[2,60]},a(T,[2,61],{56:97,57:98,59:99,61:U,62:V}),a([19,58,61,62],[2,66]),a(b,[2,22],{15:[1,103],17:[1,102]}),a([40,48,50,51,52],[2,71]),a(b,[2,36]),{13:D,41:E,45:104,46:63,48:G,49:H},a(b,[2,47]),a(b,[2,48]),a(b,[2,49]),a(I,[2,39]),a(I,[2,40]),a(P,[2,46]),a(b,[2,42]),a(b,[2,8]),a(b,[2,79]),a(b,[2,80]),a(b,[2,81]),{13:[1,105],42:F},{13:[1,107],15:[1,106]},{19:[1,108]},a(b,[2,15]),a(T,[2,62],{57:109,60:[1,110],62:V}),a(T,[2,63]),a(W,[2,67]),a(T,[2,70]),a(W,[2,69]),{18:111,19:[1,112],53:53,54:54,58:B},{16:113,40:z,41:A},a(O,[2,44],{46:87,13:D,41:E,48:G,49:H}),{14:114,40:Q,50:R,72:S},{16:115,40:z,41:A},{14:116,40:Q,50:R,72:S},a(b,[2,13]),a(T,[2,64]),{59:117,61:U},{19:[1,118]},a(b,[2,20]),a(b,[2,23],{17:[1,119],42:F}),a(b,[2,11]),{13:[1,120],42:F},a(b,[2,10]),a(W,[2,68]),a(b,[2,18]),{18:121,19:[1,122],53:53,54:54,58:B},{14:123,40:Q,50:R,72:S},{19:[1,124]},a(b,[2,21]),a(b,[2,9]),a(b,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:(0,g.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,g.__name)(function(a){var b=this,c=[0],d=[],e=[null],f=[],h=this.table,i="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.__name)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,g.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function Y(){this.yy={}}return X.lexer={EOF:1,parseError:(0,g.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,g.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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,g.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:(0,g.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.__name)(function(){return this._more=!0,this},"more"),reject:(0,g.__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,g.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,g.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,g.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,g.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===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,g.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,g.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,g.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.__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,g.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,g.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,g.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,g.__name)(function(a,b,c,d){switch(c){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 28:case 35:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 38:return 49;case 20:case 37:return 42;case 21:return 15;case 22:case 36:return 13;case 24:return 61;case 25:case 26:return 58;case 27:return 62;case 29:return this.popState(),19;case 30:case 77:return b.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 39:return this.begin("style"),37;case 40:return 43;case 41:case 45:case 46:case 64:return 65;case 42:case 43:case 44:case 52:case 54:case 66:return 67;case 47:case 48:case 49:case 50:case 51:case 53:case 65:return 66;case 55:case 56:case 58:case 59:case 60:case 63:return 68;case 57:return 51;case 61:return 52;case 62:return 48;case 67:return 69;case 68:case 71:case 72:case 73:return 70;case 69:case 70:return 71;case 74:return 41;case 75:return 47;case 76:return 40;case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}},(0,g.__name)(Y,"Parser"),Y.prototype=X,X.Parser=Y,new Y}();k.parser=k;var l=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=f.setAccTitle,this.getAccTitle=f.getAccTitle,this.setAccDescription=f.setAccDescription,this.getAccDescription=f.getAccDescription,this.setDiagramTitle=f.setDiagramTitle,this.getDiagramTitle=f.getDiagramTitle,this.getConfig=(0,g.__name)(()=>(0,f.getConfig2)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,g.__name)(this,"ErDB")}addEntity(a,b=""){return this.entities.has(a)?!this.entities.get(a)?.alias&&b&&(this.entities.get(a).alias=b,g.log.info(`Add alias '${b}' to entity '${a}'`)):(this.entities.set(a,{id:`entity-${a}-${this.entities.size}`,label:a,attributes:[],alias:b,shape:"erBox",look:(0,f.getConfig2)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),g.log.info("Added new entity :",a)),this.entities.get(a)}getEntity(a){return this.entities.get(a)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(a,b){let c,d=this.addEntity(a);for(c=b.length-1;c>=0;c--)b[c].keys||(b[c].keys=[]),b[c].comment||(b[c].comment=""),d.attributes.push(b[c]),g.log.debug("Added attribute ",b[c].name)}addRelationship(a,b,c,d){let e=this.entities.get(a),f=this.entities.get(c);if(!e||!f)return;let h={entityA:e.id,roleA:b,entityB:f.id,relSpec:d};this.relationships.push(h),g.log.debug("Added new relationship :",h)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(a){this.direction=a}getCompiledStyles(a){let b=[];for(let c of a){let a=this.classes.get(c);a?.styles&&(b=[...b,...a.styles??[]].map(a=>a.trim())),a?.textStyles&&(b=[...b,...a.textStyles??[]].map(a=>a.trim()))}return b}addCssStyles(a,b){for(let c of a){let a=this.entities.get(c);if(!b||!a)return;for(let c of b)a.cssStyles.push(c)}}addClass(a,b){a.forEach(a=>{let c=this.classes.get(a);void 0===c&&(c={id:a,styles:[],textStyles:[]},this.classes.set(a,c)),b&&b.forEach(function(a){if(/color/.exec(a)){let b=a.replace("fill","bgFill");c.textStyles.push(b)}c.styles.push(a)})})}setClass(a,b){for(let c of a){let a=this.entities.get(c);if(a)for(let c of b)a.cssClasses+=" "+c}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,f.clear)()}getData(){let a=[],b=[],c=(0,f.getConfig2)(),d=0;for(let b of this.entities.keys()){let c=this.entities.get(b);c&&(c.cssCompiledStyles=this.getCompiledStyles(c.cssClasses.split(" ")),c.colorIndex=d++,a.push(c))}let g=0;for(let a of this.relationships){let d={id:(0,e.getEdgeId)(a.entityA,a.entityB,{prefix:"id",counter:g++}),type:"normal",curve:"basis",start:a.entityA,end:a.entityB,label:a.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:a.relSpec.cardB.toLowerCase(),arrowTypeEnd:a.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==a.relSpec.relType?"solid":"dashed",look:c.look,labelType:"markdown"};b.push(d)}return{nodes:a,edges:b,other:{},config:c,direction:"TB"}}},m={};(0,g.__export)(m,{draw:()=>n});var n=(0,g.__name)(async function(a,i,j,k){g.log.info("REF0:"),g.log.info("Drawing er diagram (unified)",i);let{securityLevel:l,er:m,layout:n}=(0,f.getConfig2)(),o=k.db.getData(),p=(0,b.getDiagramElement)(i,l);o.type=k.type,o.layoutAlgorithm=(0,d.getRegisteredLayoutAlgorithm)(n),o.config.flowchart.nodeSpacing=m?.nodeSpacing||140,o.config.flowchart.rankSpacing=m?.rankSpacing||80,o.direction=k.db.getDirection();let{config:q}=o,{look:r}=q;"neo"===r?o.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=i,await (0,d.render)(o,p),"elk"===o.layoutAlgorithm&&p.select(".edges").lower();let s=p.selectAll('[id*="-background"]');Array.from(s).length>0&&s.each(function(){let a=(0,h.select)(this),b=a.attr("id").replace("-background",""),c=p.select(`#${CSS.escape(b)}`);if(!c.empty()){let b=c.attr("transform");a.attr("transform",b)}}),e.utils_default.insertTitle(p,"erDiagramTitleText",m?.titleTopMargin??25,k.db.getDiagramTitle()),(0,c.setupViewPortForSVG)(p,8,"erDiagram",m?.useMaxWidth??!0)},"draw"),o=(0,g.__name)((a,b)=>{let c=i.channel,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return j.rgba(d,e,f,b)},"fade"),p=new Set(["redux-color","redux-dark-color"]),q=(0,g.__name)(a=>{let{theme:b,look:c,bkgColorArray:d,borderColorArray:e}=a;if(!p.has(b))return"";let f=d?.length>0,g="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)g+=`
2
+
3
+ [data-look="${c}"][data-color-id="color-${b}"].node path {
4
+ stroke: ${e[b]};
5
+ ${f?`fill: ${d[b]};`:""}
6
+ }
7
+
8
+ [data-look="${c}"][data-color-id="color-${b}"].node rect {
9
+ stroke: ${e[b]};
10
+ ${f?`fill: ${d[b]};`:""}
11
+ }
12
+ `;return g},"genColor"),r=(0,g.__name)(a=>{let{look:b,theme:c,erEdgeLabelBackground:d,strokeWidth:e}=a;return`
13
+ ${q(a)}
14
+ .entityBox {
15
+ fill: ${a.mainBkg};
16
+ stroke: ${a.nodeBorder};
17
+ }
18
+
19
+ .relationshipLabelBox {
20
+ fill: ${a.tertiaryColor};
21
+ opacity: 0.7;
22
+ background-color: ${a.tertiaryColor};
23
+ rect {
24
+ opacity: 0.5;
25
+ }
26
+ }
27
+
28
+ .labelBkg {
29
+ background-color: ${p.has(c)&&d?d:o(a.tertiaryColor,.5)};
30
+ }
31
+
32
+ .edgeLabel {
33
+ background-color: ${p.has(c)&&d?d:a.edgeLabelBackground};
34
+ }
35
+ .edgeLabel .label rect {
36
+ fill: ${p.has(c)&&d?d:a.edgeLabelBackground};
37
+ }
38
+ .edgeLabel .label text {
39
+ fill: ${a.textColor};
40
+ }
41
+
42
+ .edgeLabel .label {
43
+ fill: ${a.nodeBorder};
44
+ font-size: 14px;
45
+ }
46
+
47
+ .label {
48
+ font-family: ${a.fontFamily};
49
+ color: ${a.nodeTextColor||a.textColor};
50
+ }
51
+
52
+ .edge-pattern-dashed {
53
+ stroke-dasharray: 8,8;
54
+ }
55
+
56
+ .node rect,
57
+ .node circle,
58
+ .node ellipse,
59
+ .node polygon
60
+ {
61
+ fill: ${a.mainBkg};
62
+ stroke: ${a.nodeBorder};
63
+ stroke-width: ${"neo"===b?e:"1px"};
64
+ }
65
+
66
+ .relationshipLine {
67
+ stroke: ${a.lineColor};
68
+ stroke-width: ${"neo"===b?e:"1px"};
69
+ fill: none;
70
+ }
71
+
72
+ .marker {
73
+ fill: none !important;
74
+ stroke: ${a.lineColor} !important;
75
+ stroke-width: 1;
76
+ }
77
+ [data-look=neo].labelBkg {
78
+ background-color: ${o(a.tertiaryColor,.5)};
79
+ }
80
+ `},"getStyles");a.s(["diagram",0,{parser:k,get db(){return new l},renderer:m,styles:r}])}];
81
+
82
+ //# sourceMappingURL=node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_12bfcsi._.js.map
@@ -0,0 +1,154 @@
1
+ module.exports=[890378,a=>{"use strict";var b=a.i(630825),c=a.i(688684),d=a.i(189300),e=a.i(562583),f=a.i(867575),g=a.i(807297);a.i(273701),a.i(130905);var h=a.i(921003);a.i(369813),a.i(507666),a.i(248916);var i=a.i(896937),j=a.i(685227),k=a.i(334603);a.i(975930);var l=a.i(671731),m=a.i(737132),n=a.i(255957),o=a.i(155177),p=class{constructor(){this.vertexCounter=0,this.config=(0,j.getConfig2)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=j.setAccTitle,this.setAccDescription=j.setAccDescription,this.setDiagramTitle=j.setDiagramTitle,this.getAccTitle=j.getAccTitle,this.getAccDescription=j.getAccDescription,this.getDiagramTitle=j.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,k.__name)(this,"FlowDB")}sanitizeText(a){return j.common_default.sanitizeText(a,this.config)}sanitizeNodeLabelType(a){switch(a){case"markdown":case"string":case"text":return a;default:return"markdown"}}setDiagramId(a){this.diagramId=a}lookUpDomId(a){for(let b of this.vertices.values())if(b.id===a)return this.diagramId?`${this.diagramId}-${b.domId}`:b.domId;return this.diagramId?`${this.diagramId}-${a}`:a}addVertex(a,b,d,e,f,g,i={},l){let m,n;if(!a||0===a.trim().length)return;if(void 0!==l){let a;a=l.includes("\n")?l+"\n":"{\n"+l+"\n}",m=(0,c.load)(a,{schema:c.JSON_SCHEMA})}let o=this.edges.find(b=>b.id===a);if(o){let a=m;a?.animate!==void 0&&(o.animate=a.animate),a?.animation!==void 0&&(o.animation=a.animation),a?.curve!==void 0&&(o.interpolate=a.curve);return}let p=this.vertices.get(a);if(void 0===p&&(void 0===b&&void 0===d&&null!=e&&k.log.warn(`Style applied to unknown node "${a}". This may indicate a typo. The node will be created automatically.`),p={id:a,labelType:"text",domId:"flowchart-"+a+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(a,p)),this.vertexCounter++,void 0!==b?(this.config=(0,j.getConfig2)(),n=this.sanitizeText(b.text.trim()),p.labelType=b.type,n.startsWith('"')&&n.endsWith('"')&&(n=n.substring(1,n.length-1)),p.text=n):void 0===p.text&&(p.text=a),void 0!==d&&(p.type=d),null!=e&&e.forEach(a=>{p.styles.push(a)}),null!=f&&f.forEach(a=>{p.classes.push(a)}),void 0!==g&&(p.dir=g),void 0===p.props?p.props=i:void 0!==i&&Object.assign(p.props,i),void 0!==m){if(m.shape){if(m.shape!==m.shape.toLowerCase()||m.shape.includes("_"))throw Error(`No such shape: ${m.shape}. Shape names should be lowercase.`);if(!(0,h.isValidShape)(m.shape))throw Error(`No such shape: ${m.shape}.`);p.type=m?.shape}m?.label&&(p.text=m?.label,p.labelType=this.sanitizeNodeLabelType(m?.labelType)),m?.icon&&(p.icon=m?.icon,m.label?.trim()||p.text!==a||(p.text="")),m?.form&&(p.form=m?.form),m?.pos&&(p.pos=m?.pos),m?.img&&(p.img=m?.img,m.label?.trim()||p.text!==a||(p.text="")),m?.constraint&&(p.constraint=m.constraint),m.w&&(p.assetWidth=Number(m.w)),m.h&&(p.assetHeight=Number(m.h))}}addSingleLink(a,b,c,d){let e={start:a,end:b,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};k.log.info("abc78 Got edge...",e);let f=c.text;if(void 0!==f&&(e.text=this.sanitizeText(f.text.trim()),e.text.startsWith('"')&&e.text.endsWith('"')&&(e.text=e.text.substring(1,e.text.length-1)),e.labelType=this.sanitizeNodeLabelType(f.type)),void 0!==c&&(e.type=c.type,e.stroke=c.stroke,e.length=c.length>10?10:c.length),d&&!this.edges.some(a=>a.id===d))e.id=d,e.isUserDefinedId=!0;else{let a=this.edges.filter(a=>a.start===e.start&&a.end===e.end);0===a.length?e.id=(0,i.getEdgeId)(e.start,e.end,{counter:0,prefix:"L"}):e.id=(0,i.getEdgeId)(e.start,e.end,{counter:a.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))k.log.info("Pushing edge..."),this.edges.push(e);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
2
+
3
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
4
+ You cannot set this config via configuration inside the diagram as it is a secure config.
5
+ You have to call mermaid.initialize.`)}isLinkData(a){return null!==a&&"object"==typeof a&&"id"in a&&"string"==typeof a.id}addLink(a,b,c){let d=this.isLinkData(c)?c.id.replace("@",""):void 0;for(let e of(k.log.info("addLink",a,b,d),a))for(let f of b){let g=e===a[a.length-1],h=f===b[0];g&&h?this.addSingleLink(e,f,c,d):this.addSingleLink(e,f,c,void 0)}}updateLinkInterpolate(a,b){a.forEach(a=>{"default"===a?this.edges.defaultInterpolate=b:this.edges[a].interpolate=b})}updateLink(a,b){a.forEach(a=>{if("number"==typeof a&&a>=this.edges.length)throw Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===a?this.edges.defaultStyle=b:(this.edges[a].style=b,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[a]?.style?.push("fill:none"))})}addClass(a,b){let c=b.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");a.split(",").forEach(a=>{let b=this.classes.get(a);void 0===b&&(b={id:a,styles:[],textStyles:[]},this.classes.set(a,b)),null!=c&&c.forEach(a=>{if(/color/.exec(a)){let c=a.replace("fill","bgFill");b.textStyles.push(c)}b.styles.push(a)})})}setDirection(a){this.direction=a.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(a,b){for(let c of a.split(",")){let a=this.vertices.get(c);a&&a.classes.push(b);let d=this.edges.find(a=>a.id===c);d&&d.classes.push(b);let e=this.subGraphLookup.get(c);e&&e.classes.push(b)}}setTooltip(a,b){if(void 0!==b)for(let c of(b=this.sanitizeText(b),a.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(c):c,b)}setClickFun(a,b,c){if("loose"!==(0,j.getConfig2)().securityLevel||void 0===b)return;let d=[];if("string"==typeof c){d=c.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<d.length;a++){let b=d[a].trim();b.startsWith('"')&&b.endsWith('"')&&(b=b.substr(1,b.length-2)),d[a]=b}}0===d.length&&d.push(a);let e=this.vertices.get(a);e&&(e.haveCallback=!0,this.funs.push(()=>{let c=this.lookUpDomId(a),e=document.querySelector(`[id="${c}"]`);null!==e&&e.addEventListener("click",()=>{i.utils_default.runFunc(b,...d)},!1)}))}setLink(a,b,c){a.split(",").forEach(a=>{let d=this.vertices.get(a);void 0!==d&&(d.link=i.utils_default.formatUrl(b,this.config),d.linkTarget=c)}),this.setClass(a,"clickable")}getTooltip(a){return this.tooltips.get(a)}setClickEvent(a,b,c){a.split(",").forEach(a=>{this.setClickFun(a,b,c)}),this.setClass(a,"clickable")}bindFunctions(a){this.funs.forEach(b=>{b(a)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(a){let b=(0,d.createTooltip)();(0,l.select)(a).select("svg").selectAll("g.node").on("mouseover",a=>{let c=(0,l.select)(a.currentTarget),d=c.attr("title");if(null===d)return;let e=a.currentTarget?.getBoundingClientRect();b.transition().duration(200).style("opacity",".9"),b.text(c.attr("title")).style("left",window.scrollX+e.left+(e.right-e.left)/2+"px").style("top",window.scrollY+e.bottom+"px"),b.html(m.default.sanitize(d)),c.classed("hover",!0)}).on("mouseout",a=>{b.transition().duration(500).style("opacity",0),(0,l.select)(a.currentTarget).classed("hover",!1)})}clear(a="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=a,this.config=(0,j.getConfig2)(),(0,j.clear)()}setGen(a){this.version=a||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(a,b,c){let d=a.text.trim(),e=c.text;a===c&&/\s/.exec(c.text)&&(d=void 0);let f=(0,k.__name)(a=>{let b,c={boolean:{},number:{},string:{}},d=[];return{nodeList:a.filter(function(a){let e=typeof a;return a.stmt&&"dir"===a.stmt?(b=a.value,!1):""!==a.trim()&&(e in c?!c[e].hasOwnProperty(a)&&(c[e][a]=!0):!d.includes(a)&&d.push(a))}),dir:b}},"uniq")(b.flat()),g=f.nodeList,h=f.dir,i=(0,j.getConfig2)().flowchart??{};if(h=h??(i.inheritDir?this.getDirection()??(0,j.getConfig2)().direction??void 0:void 0),"gen-1"===this.version)for(let a=0;a<g.length;a++)g[a]=this.lookUpDomId(g[a]);d=d??"subGraph"+this.subCount,e=e||"",e=this.sanitizeText(e),this.subCount=this.subCount+1;let l={id:d,nodes:g,title:e.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(c?.type)};return k.log.info("Adding",l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(d,l),d}getPosForId(a){for(let[b,c]of this.subGraphs.entries())if(c.id===a)return b;return -1}indexNodes2(a,b){let c=this.subGraphs[b].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=b,this.subGraphs[b].id===a)return{result:!0,count:0};let d=0,e=1;for(;d<c.length;){let b=this.getPosForId(c[d]);if(b>=0){let c=this.indexNodes2(a,b);if(c.result)return{result:!0,count:e+c.count};e+=c.count}d+=1}return{result:!1,count:e}}getDepthFirstPos(a){return this.posCrossRef[a]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(a){let b=a.trim(),c="arrow_open";switch(b[0]){case"<":c="arrow_point",b=b.slice(1);break;case"x":c="arrow_cross",b=b.slice(1);break;case"o":c="arrow_circle",b=b.slice(1)}let d="normal";return b.includes("=")&&(d="thick"),b.includes(".")&&(d="dotted"),{type:c,stroke:d}}countChar(a,b){let c=b.length,d=0;for(let e=0;e<c;++e)b[e]===a&&++d;return d}destructEndLink(a){let b=a.trim(),c=b.slice(0,-1),d="arrow_open";switch(b.slice(-1)){case"x":d="arrow_cross",b.startsWith("x")&&(d="double_"+d,c=c.slice(1));break;case">":d="arrow_point",b.startsWith("<")&&(d="double_"+d,c=c.slice(1));break;case"o":d="arrow_circle",b.startsWith("o")&&(d="double_"+d,c=c.slice(1))}let e="normal",f=c.length-1;c.startsWith("=")&&(e="thick"),c.startsWith("~")&&(e="invisible");let g=this.countChar(".",c);return g&&(e="dotted",f=g),{type:d,stroke:e,length:f}}destructLink(a,b){let c,d=this.destructEndLink(a);if(b){if((c=this.destructStartLink(b)).stroke!==d.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===c.type)c.type=d.type;else{if(c.type!==d.type)return{type:"INVALID",stroke:"INVALID"};c.type="double_"+c.type}return"double_arrow"===c.type&&(c.type="double_arrow_point"),c.length=d.length,c}return d}exists(a,b){for(let c of a)if(c.nodes.includes(b))return!0;return!1}makeUniq(a,b){let c=[];return a.nodes.forEach((d,e)=>{this.exists(b,d)||c.push(a.nodes[e])}),{nodes:c}}getTypeFromVertex(a){if(a.img)return"imageSquare";if(a.icon)return"circle"===a.form?"iconCircle":"square"===a.form?"iconSquare":"rounded"===a.form?"iconRounded":"icon";switch(a.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return a.type}}findNode(a,b){return a.find(a=>a.id===b)}destructEdgeType(a){let b="none",c="arrow_point";switch(a){case"arrow_point":case"arrow_circle":case"arrow_cross":c=a;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":c=b=a.replace("double_","")}return{arrowTypeStart:b,arrowTypeEnd:c}}addNodeFromVertex(a,b,c,d,e,f){let g=c.get(a.id),h=d.get(a.id)??!1,i=this.findNode(b,a.id);if(i)i.cssStyles=a.styles,i.cssCompiledStyles=this.getCompiledStyles(a.classes),i.cssClasses=a.classes.join(" ");else{let c={id:a.id,label:a.text,labelType:a.labelType,labelStyle:"",parentId:g,padding:e.flowchart?.padding||8,cssStyles:a.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...a.classes]),cssClasses:"default "+a.classes.join(" "),dir:a.dir,domId:a.domId,look:f,link:a.link,linkTarget:a.linkTarget,tooltip:this.getTooltip(a.id),icon:a.icon,pos:a.pos,img:a.img,assetWidth:a.assetWidth,assetHeight:a.assetHeight,constraint:a.constraint};h?b.push({...c,isGroup:!0,shape:"rect"}):b.push({...c,isGroup:!1,shape:this.getTypeFromVertex(a)})}}getCompiledStyles(a){let b=[];for(let c of a){let a=this.classes.get(c);a?.styles&&(b=[...b,...a.styles??[]].map(a=>a.trim())),a?.textStyles&&(b=[...b,...a.textStyles??[]].map(a=>a.trim()))}return b}getData(){let a=(0,j.getConfig2)(),b=[],c=[],d=this.getSubGraphs(),e=new Map,f=new Map;for(let a=d.length-1;a>=0;a--){let b=d[a];for(let a of(b.nodes.length>0&&f.set(b.id,!0),b.nodes))e.set(a,b.id)}for(let c=d.length-1;c>=0;c--){let f=d[c];b.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:e.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:a.look})}this.getVertices().forEach(c=>{this.addNodeFromVertex(c,b,e,f,a,a.look||"classic")});let g=this.getEdges();return g.forEach((b,d)=>{let{arrowTypeStart:e,arrowTypeEnd:f}=this.destructEdgeType(b.type),h=[...g.defaultStyle??[]];b.style&&h.push(...b.style);let j={id:(0,i.getEdgeId)(b.start,b.end,{counter:d,prefix:"L"},b.id),isUserDefinedId:b.isUserDefinedId,start:b.start,end:b.end,type:b.type??"normal",label:b.text,labelType:b.labelType,labelpos:"c",thickness:b.stroke,minlen:b.length,classes:b?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:b?.stroke==="invisible"||b?.type==="arrow_open"?"none":e,arrowTypeEnd:b?.stroke==="invisible"||b?.type==="arrow_open"?"none":f,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(b.classes),labelStyle:h,style:h,pattern:b.stroke,look:a.look,animate:b.animate,animation:b.animation,curve:b.interpolate||this.edges.defaultInterpolate||a.flowchart?.curve};c.push(j)}),{nodes:b,edges:c,other:{},config:a}}defaultConfig(){return j.defaultConfig2.flowchart}},q=(0,k.__name)(function(a,b){return b.db.getClasses()},"getClasses"),r=(0,k.__name)(async function(a,b,c,d){k.log.info("REF0:"),k.log.info("Drawing state diagram (v2)",b);let{securityLevel:h,flowchart:l,layout:m}=(0,j.getConfig2)();d.db.setDiagramId(b),k.log.debug("Before getData: ");let n=d.db.getData();k.log.debug("Data: ",n);let o=(0,e.getDiagramElement)(b,h),p=d.db.getDirection();n.type=d.type,n.layoutAlgorithm=(0,g.getRegisteredLayoutAlgorithm)(m),"dagre"===n.layoutAlgorithm&&"elk"===m&&k.log.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),n.direction=p,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,n.markers=["point","circle","cross"],n.diagramId=b,k.log.debug("REF1:",n),await (0,g.render)(n,o);let q=n.config.flowchart?.diagramPadding??8;i.utils_default.insertTitle(o,"flowchartTitleText",l?.titleTopMargin||0,d.db.getDiagramTitle()),(0,f.setupViewPortForSVG)(o,q,"flowchart",l?.useMaxWidth||!1)},"draw"),s=function(){var a=(0,k.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,4],c=[1,3],d=[1,5],e=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],f=[2,2],g=[1,13],h=[1,14],i=[1,15],j=[1,16],l=[1,23],m=[1,25],n=[1,26],o=[1,27],p=[1,50],q=[1,49],r=[1,29],s=[1,30],t=[1,31],u=[1,32],v=[1,33],w=[1,45],x=[1,47],y=[1,43],z=[1,48],A=[1,44],B=[1,51],C=[1,46],D=[1,52],E=[1,53],F=[1,34],G=[1,35],H=[1,36],I=[1,37],J=[1,38],K=[1,58],L=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],M=[1,62],N=[1,61],O=[1,63],P=[8,9,11,75,77,78],Q=[1,79],R=[1,92],S=[1,97],T=[1,96],U=[1,93],V=[1,89],W=[1,95],X=[1,91],Y=[1,98],Z=[1,94],$=[1,99],_=[1,90],aa=[8,9,10,11,40,75,77,78],ab=[8,9,10,11,40,46,75,77,78],ac=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ad=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ae=[44,60,89,102,105,106,109,111,114,115,116],af=[1,122],ag=[1,123],ah=[1,125],ai=[1,124],aj=[44,60,62,74,89,102,105,106,109,111,114,115,116],ak=[1,134],al=[1,148],am=[1,149],an=[1,150],ao=[1,151],ap=[1,136],aq=[1,138],ar=[1,142],as=[1,143],at=[1,144],au=[1,145],av=[1,146],aw=[1,147],ax=[1,152],ay=[1,153],az=[1,132],aA=[1,133],aB=[1,140],aC=[1,135],aD=[1,139],aE=[1,137],aF=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],aG=[1,155],aH=[1,157],aI=[8,9,11],aJ=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],aK=[1,177],aL=[1,173],aM=[1,174],aN=[1,178],aO=[1,175],aP=[1,176],aQ=[77,116,119],aR=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],aS=[10,106],aT=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],aU=[1,248],aV=[1,246],aW=[1,250],aX=[1,244],aY=[1,245],aZ=[1,247],a$=[1,249],a_=[1,251],a0=[1,269],a1=[8,9,11,106],a2=[8,9,10,11,60,84,105,106,109,110,111,112],a3={trace:(0,k.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,k.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(f[h])||f[h].length>0)&&f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=f[h];break;case 11:d.setDirection("TB"),this.$="TB";break;case 12:d.setDirection(f[h-1]),this.$=f[h-1];break;case 27:this.$=f[h-1].nodes;break;case 33:this.$=d.addSubGraph(f[h-6],f[h-1],f[h-4]);break;case 34:this.$=d.addSubGraph(f[h-3],f[h-1],f[h-3]);break;case 35:this.$=d.addSubGraph(void 0,f[h-1],void 0);break;case 37:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 38:case 39:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 43:case 133:this.$=f[h-1]+f[h];break;case 45:d.addVertex(f[h-1][f[h-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h]),d.addLink(f[h-3].stmt,f[h-1],f[h-2]),this.$={stmt:f[h-1],nodes:f[h-1].concat(f[h-3].nodes)};break;case 46:d.addLink(f[h-2].stmt,f[h],f[h-1]),this.$={stmt:f[h],nodes:f[h].concat(f[h-2].nodes)};break;case 47:d.addLink(f[h-3].stmt,f[h-1],f[h-2]),this.$={stmt:f[h-1],nodes:f[h-1].concat(f[h-3].nodes)};break;case 48:this.$={stmt:f[h-1],nodes:f[h-1]};break;case 49:d.addVertex(f[h-1][f[h-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h]),this.$={stmt:f[h-1],nodes:f[h-1],shapeData:f[h]};break;case 50:this.$={stmt:f[h],nodes:f[h]};break;case 51:case 128:case 130:this.$=[f[h]];break;case 52:d.addVertex(f[h-5][f[h-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,f[h-4]),this.$=f[h-5].concat(f[h]);break;case 53:this.$=f[h-4].concat(f[h]);break;case 55:this.$=f[h-2],d.setClass(f[h-2],f[h]);break;case 56:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"square");break;case 57:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"doublecircle");break;case 58:this.$=f[h-5],d.addVertex(f[h-5],f[h-2],"circle");break;case 59:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"ellipse");break;case 60:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"stadium");break;case 61:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"subroutine");break;case 62:this.$=f[h-7],d.addVertex(f[h-7],f[h-1],"rect",void 0,void 0,void 0,Object.fromEntries([[f[h-5],f[h-3]]]));break;case 63:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"cylinder");break;case 64:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"round");break;case 65:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"diamond");break;case 66:this.$=f[h-5],d.addVertex(f[h-5],f[h-2],"hexagon");break;case 67:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"odd");break;case 68:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"trapezoid");break;case 69:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"inv_trapezoid");break;case 70:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"lean_right");break;case 71:this.$=f[h-3],d.addVertex(f[h-3],f[h-1],"lean_left");break;case 72:this.$=f[h],d.addVertex(f[h]);break;case 73:f[h-1].text=f[h],this.$=f[h-1];break;case 74:case 75:f[h-2].text=f[h-1],this.$=f[h-2];break;case 77:var i=d.destructLink(f[h],f[h-2]);this.$={type:i.type,stroke:i.stroke,length:i.length,text:f[h-1]};break;case 78:var i=d.destructLink(f[h],f[h-2]);this.$={type:i.type,stroke:i.stroke,length:i.length,text:f[h-1],id:f[h-3]};break;case 79:case 86:case 101:case 103:this.$={text:f[h],type:"text"};break;case 80:case 87:case 102:this.$={text:f[h-1].text+""+f[h],type:f[h-1].type};break;case 81:case 88:this.$={text:f[h],type:"string"};break;case 82:case 89:case 104:this.$={text:f[h],type:"markdown"};break;case 83:var i=d.destructLink(f[h]);this.$={type:i.type,stroke:i.stroke,length:i.length};break;case 84:var i=d.destructLink(f[h]);this.$={type:i.type,stroke:i.stroke,length:i.length,id:f[h-1]};break;case 85:this.$=f[h-1];break;case 105:this.$=f[h-4],d.addClass(f[h-2],f[h]);break;case 106:this.$=f[h-4],d.setClass(f[h-2],f[h]);break;case 107:case 115:this.$=f[h-1],d.setClickEvent(f[h-1],f[h]);break;case 108:case 116:this.$=f[h-3],d.setClickEvent(f[h-3],f[h-2]),d.setTooltip(f[h-3],f[h]);break;case 109:this.$=f[h-2],d.setClickEvent(f[h-2],f[h-1],f[h]);break;case 110:this.$=f[h-4],d.setClickEvent(f[h-4],f[h-3],f[h-2]),d.setTooltip(f[h-4],f[h]);break;case 111:this.$=f[h-2],d.setLink(f[h-2],f[h]);break;case 112:this.$=f[h-4],d.setLink(f[h-4],f[h-2]),d.setTooltip(f[h-4],f[h]);break;case 113:this.$=f[h-4],d.setLink(f[h-4],f[h-2],f[h]);break;case 114:this.$=f[h-6],d.setLink(f[h-6],f[h-4],f[h]),d.setTooltip(f[h-6],f[h-2]);break;case 117:this.$=f[h-1],d.setLink(f[h-1],f[h]);break;case 118:this.$=f[h-3],d.setLink(f[h-3],f[h-2]),d.setTooltip(f[h-3],f[h]);break;case 119:this.$=f[h-3],d.setLink(f[h-3],f[h-2],f[h]);break;case 120:this.$=f[h-5],d.setLink(f[h-5],f[h-4],f[h]),d.setTooltip(f[h-5],f[h-2]);break;case 121:this.$=f[h-4],d.addVertex(f[h-2],void 0,void 0,f[h]);break;case 122:this.$=f[h-4],d.updateLink([f[h-2]],f[h]);break;case 123:this.$=f[h-4],d.updateLink(f[h-2],f[h]);break;case 124:this.$=f[h-8],d.updateLinkInterpolate([f[h-6]],f[h-2]),d.updateLink([f[h-6]],f[h]);break;case 125:this.$=f[h-8],d.updateLinkInterpolate(f[h-6],f[h-2]),d.updateLink(f[h-6],f[h]);break;case 126:this.$=f[h-6],d.updateLinkInterpolate([f[h-4]],f[h]);break;case 127:this.$=f[h-6],d.updateLinkInterpolate(f[h-4],f[h]);break;case 129:case 131:f[h-2].push(f[h]),this.$=f[h-2];break;case 182:case 184:this.$=f[h-1]+""+f[h];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:b,10:c,12:d},{1:[3]},a(e,f,{5:6}),{4:7,9:b,10:c,12:d},{4:8,9:b,10:c,12:d},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:l,33:24,34:m,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},a(e,[2,9]),a(e,[2,10]),a(e,[2,11]),{8:[1,55],9:[1,56],10:K,15:54,18:57},a(L,[2,3]),a(L,[2,4]),a(L,[2,5]),a(L,[2,6]),a(L,[2,7]),a(L,[2,8]),{8:M,9:N,11:O,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:M,9:N,11:O,21:68},{8:M,9:N,11:O,21:69},{8:M,9:N,11:O,21:70},{8:M,9:N,11:O,21:71},{8:M,9:N,11:O,21:72},{8:M,9:N,10:[1,73],11:O,21:74},a(L,[2,36]),{35:[1,75]},{37:[1,76]},a(L,[2,39]),a(P,[2,50],{18:77,39:78,10:K,40:Q}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:R,44:S,60:T,80:[1,87],89:U,95:[1,84],97:[1,85],101:86,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},a(L,[2,185]),a(L,[2,186]),a(L,[2,187]),a(L,[2,188]),a(L,[2,189]),a(aa,[2,51]),a(aa,[2,54],{46:[1,100]}),a(ab,[2,72],{113:113,29:[1,101],44:p,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:q,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),a(ac,[2,181]),a(ac,[2,142]),a(ac,[2,143]),a(ac,[2,144]),a(ac,[2,145]),a(ac,[2,146]),a(ac,[2,147]),a(ac,[2,148]),a(ac,[2,149]),a(ac,[2,150]),a(ac,[2,151]),a(ac,[2,152]),a(e,[2,12]),a(e,[2,18]),a(e,[2,19]),{9:[1,114]},a(ad,[2,26],{18:115,10:K}),a(L,[2,27]),{42:116,43:39,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(L,[2,40]),a(L,[2,41]),a(L,[2,42]),a(ae,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:af,81:ag,116:ah,119:ai},{75:[1,126],77:[1,127]},a(aj,[2,83]),a(L,[2,28]),a(L,[2,29]),a(L,[2,30]),a(L,[2,31]),a(L,[2,32]),{10:ak,12:al,14:am,27:an,28:128,32:ao,44:ap,60:aq,75:ar,80:[1,130],81:[1,131],83:141,84:as,85:at,86:au,87:av,88:aw,89:ax,90:ay,91:129,105:az,109:aA,111:aB,114:aC,115:aD,116:aE},a(aF,f,{5:154}),a(L,[2,37]),a(L,[2,38]),a(P,[2,48],{44:aG}),a(P,[2,49],{18:156,10:K,40:aH}),a(aa,[2,44]),{44:p,47:158,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{102:[1,159],103:160,105:[1,161]},{44:p,47:162,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{44:p,47:163,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},a(aI,[2,115],{120:168,10:[1,167],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,117],{10:[1,169]}),a(aJ,[2,183]),a(aJ,[2,170]),a(aJ,[2,171]),a(aJ,[2,172]),a(aJ,[2,173]),a(aJ,[2,174]),a(aJ,[2,175]),a(aJ,[2,176]),a(aJ,[2,177]),a(aJ,[2,178]),a(aJ,[2,179]),a(aJ,[2,180]),{44:p,47:170,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{30:171,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:179,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:181,50:[1,180],67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:182,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:183,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:184,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{109:[1,185]},{30:186,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:187,65:[1,188],67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:189,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:190,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{30:191,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(ac,[2,182]),a(e,[2,20]),a(ad,[2,25]),a(P,[2,46],{39:192,18:193,10:K,40:Q}),a(ae,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{77:[1,197],79:198,116:ah,119:ai},a(aQ,[2,79]),a(aQ,[2,81]),a(aQ,[2,82]),a(aQ,[2,168]),a(aQ,[2,169]),{76:199,79:121,80:af,81:ag,116:ah,119:ai},a(aj,[2,84]),{8:M,9:N,10:ak,11:O,12:al,14:am,21:201,27:an,29:[1,200],32:ao,44:ap,60:aq,75:ar,83:141,84:as,85:at,86:au,87:av,88:aw,89:ax,90:ay,91:202,105:az,109:aA,111:aB,114:aC,115:aD,116:aE},a(aR,[2,101]),a(aR,[2,103]),a(aR,[2,104]),a(aR,[2,157]),a(aR,[2,158]),a(aR,[2,159]),a(aR,[2,160]),a(aR,[2,161]),a(aR,[2,162]),a(aR,[2,163]),a(aR,[2,164]),a(aR,[2,165]),a(aR,[2,166]),a(aR,[2,167]),a(aR,[2,90]),a(aR,[2,91]),a(aR,[2,92]),a(aR,[2,93]),a(aR,[2,94]),a(aR,[2,95]),a(aR,[2,96]),a(aR,[2,97]),a(aR,[2,98]),a(aR,[2,99]),a(aR,[2,100]),{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:l,32:[1,203],33:24,34:m,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},{10:K,18:204},{44:[1,205]},a(aa,[2,43]),{10:[1,206],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{10:[1,207]},{10:[1,208],106:[1,209]},a(aS,[2,128]),{10:[1,210],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{10:[1,211],44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:113,114:C,115:D,116:E},{80:[1,212]},a(aI,[2,109],{10:[1,213]}),a(aI,[2,111],{10:[1,214]}),{80:[1,215]},a(aJ,[2,184]),{80:[1,216],98:[1,217]},a(aa,[2,55],{113:113,44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),{31:[1,218],67:aK,82:219,116:aN,117:aO,118:aP},a(aT,[2,86]),a(aT,[2,88]),a(aT,[2,89]),a(aT,[2,153]),a(aT,[2,154]),a(aT,[2,155]),a(aT,[2,156]),{49:[1,220],67:aK,82:219,116:aN,117:aO,118:aP},{30:221,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{51:[1,222],67:aK,82:219,116:aN,117:aO,118:aP},{53:[1,223],67:aK,82:219,116:aN,117:aO,118:aP},{55:[1,224],67:aK,82:219,116:aN,117:aO,118:aP},{57:[1,225],67:aK,82:219,116:aN,117:aO,118:aP},{60:[1,226]},{64:[1,227],67:aK,82:219,116:aN,117:aO,118:aP},{66:[1,228],67:aK,82:219,116:aN,117:aO,118:aP},{30:229,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},{31:[1,230],67:aK,82:219,116:aN,117:aO,118:aP},{67:aK,69:[1,231],71:[1,232],82:219,116:aN,117:aO,118:aP},{67:aK,69:[1,234],71:[1,233],82:219,116:aN,117:aO,118:aP},a(P,[2,45],{18:156,10:K,40:aH}),a(P,[2,47],{44:aG}),a(ae,[2,75]),a(ae,[2,74]),{62:[1,235],67:aK,82:219,116:aN,117:aO,118:aP},a(ae,[2,77]),a(aQ,[2,80]),{77:[1,236],79:198,116:ah,119:ai},{30:237,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(aF,f,{5:238}),a(aR,[2,102]),a(L,[2,35]),{43:239,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},{10:K,18:240},{10:aU,60:aV,84:aW,92:241,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:252,104:[1,253],105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:254,104:[1,255],105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{105:[1,256]},{10:aU,60:aV,84:aW,92:257,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{44:p,47:258,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},a(aI,[2,116]),a(aI,[2,118],{10:[1,262]}),a(aI,[2,119]),a(ab,[2,56]),a(aT,[2,87]),a(ab,[2,57]),{51:[1,263],67:aK,82:219,116:aN,117:aO,118:aP},a(ab,[2,64]),a(ab,[2,59]),a(ab,[2,60]),a(ab,[2,61]),{109:[1,264]},a(ab,[2,63]),a(ab,[2,65]),{66:[1,265],67:aK,82:219,116:aN,117:aO,118:aP},a(ab,[2,67]),a(ab,[2,68]),a(ab,[2,70]),a(ab,[2,69]),a(ab,[2,71]),a([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),a(ae,[2,78]),{31:[1,266],67:aK,82:219,116:aN,117:aO,118:aP},{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:l,32:[1,267],33:24,34:m,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},a(aa,[2,53]),{43:268,44:p,45:40,47:41,60:q,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E},a(aI,[2,121],{106:a0}),a(a1,[2,130],{108:270,10:aU,60:aV,84:aW,105:aX,109:aY,110:aZ,111:a$,112:a_}),a(a2,[2,132]),a(a2,[2,134]),a(a2,[2,135]),a(a2,[2,136]),a(a2,[2,137]),a(a2,[2,138]),a(a2,[2,139]),a(a2,[2,140]),a(a2,[2,141]),a(aI,[2,122],{106:a0}),{10:[1,271]},a(aI,[2,123],{106:a0}),{10:[1,272]},a(aS,[2,129]),a(aI,[2,105],{106:a0}),a(aI,[2,106],{113:113,44:p,60:q,89:w,102:x,105:y,106:z,109:A,111:B,114:C,115:D,116:E}),a(aI,[2,110]),a(aI,[2,112],{10:[1,273]}),a(aI,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:M,9:N,11:O,21:278},a(L,[2,34]),a(aa,[2,52]),{10:aU,60:aV,84:aW,105:aX,107:279,108:243,109:aY,110:aZ,111:a$,112:a_},a(a2,[2,133]),{14:R,44:S,60:T,89:U,101:280,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},{14:R,44:S,60:T,89:U,101:281,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_,120:88},{98:[1,282]},a(aI,[2,120]),a(ab,[2,58]),{30:283,67:aK,80:aL,81:aM,82:172,116:aN,117:aO,118:aP},a(ab,[2,66]),a(aF,f,{5:284}),a(a1,[2,131],{108:270,10:aU,60:aV,84:aW,105:aX,109:aY,110:aZ,111:a$,112:a_}),a(aI,[2,126],{120:168,10:[1,285],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,127],{120:168,10:[1,286],14:R,44:S,60:T,89:U,105:V,106:W,109:X,111:Y,114:Z,115:$,116:_}),a(aI,[2,114]),{31:[1,287],67:aK,82:219,116:aN,117:aO,118:aP},{6:11,7:12,8:g,9:h,10:i,11:j,20:17,22:18,23:19,24:20,25:21,26:22,27:l,32:[1,288],33:24,34:m,36:n,38:o,42:28,43:39,44:p,45:40,47:41,60:q,84:r,85:s,86:t,87:u,88:v,89:w,102:x,105:y,106:z,109:A,111:B,113:42,114:C,115:D,116:E,121:F,122:G,123:H,124:I,125:J},{10:aU,60:aV,84:aW,92:289,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},{10:aU,60:aV,84:aW,92:290,105:aX,107:242,108:243,109:aY,110:aZ,111:a$,112:a_},a(ab,[2,62]),a(L,[2,33]),a(aI,[2,124],{106:a0}),a(aI,[2,125],{106:a0})],defaultActions:{},parseError:(0,k.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,k.__name)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,j=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,k.__name)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,k.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(j=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,j,i,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function a4(){this.yy={}}return a3.lexer={EOF:1,parseError:(0,k.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,k.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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,k.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:(0,k.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,k.__name)(function(){return this._more=!0,this},"more"),reject:(0,k.__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,k.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,k.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,k.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,k.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,k.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,k.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===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,k.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,k.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,k.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,k.__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,k.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,k.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,k.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,k.__name)(function(a,b,c,d){switch(c){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),b.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return b.yytext=b.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:return a.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:case 103:return 111;case 63:return 46;case 64:return 60;case 65:case 104:return 44;case 66:return 8;case 67:return 106;case 68:case 102:return 115;case 69:case 72:case 75:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:case 74:case 77:return 119;case 73:return this.pushState("thickEdgeText"),75;case 76:return this.pushState("dottedEdgeText"),75;case 78:return 77;case 79:return this.popState(),53;case 80:case 116:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}},(0,k.__name)(a4,"Parser"),a4.prototype=a3,a3.Parser=a4,new a4}();s.parser=s;var t=Object.assign({},s);t.parse=a=>{let b=a.replace(/}\s*\n/g,"}\n");return s.parse(b)};var u=(0,k.__name)((a,b)=>{let c=n.channel,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return o.rgba(d,e,f,b)},"fade"),v={parser:t,get db(){return new p},renderer:{getClasses:q,draw:r},styles:(0,k.__name)(a=>`.label {
6
+ font-family: ${a.fontFamily};
7
+ color: ${a.nodeTextColor||a.textColor};
8
+ }
9
+ .cluster-label text {
10
+ fill: ${a.titleColor};
11
+ }
12
+ .cluster-label span {
13
+ color: ${a.titleColor};
14
+ }
15
+ .cluster-label span p {
16
+ background-color: transparent;
17
+ }
18
+
19
+ .label text,span {
20
+ fill: ${a.nodeTextColor||a.textColor};
21
+ color: ${a.nodeTextColor||a.textColor};
22
+ }
23
+
24
+ .node rect,
25
+ .node circle,
26
+ .node ellipse,
27
+ .node polygon,
28
+ .node path {
29
+ fill: ${a.mainBkg};
30
+ stroke: ${a.nodeBorder};
31
+ stroke-width: ${a.strokeWidth??1}px;
32
+ }
33
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
34
+ text-anchor: middle;
35
+ }
36
+ // .flowchart-label .text-outer-tspan {
37
+ // text-anchor: middle;
38
+ // }
39
+ // .flowchart-label .text-inner-tspan {
40
+ // text-anchor: start;
41
+ // }
42
+
43
+ .node .katex path {
44
+ fill: #000;
45
+ stroke: #000;
46
+ stroke-width: 1px;
47
+ }
48
+
49
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
50
+ text-align: center;
51
+ }
52
+ .node.clickable {
53
+ cursor: pointer;
54
+ }
55
+
56
+
57
+ .root .anchor path {
58
+ fill: ${a.lineColor} !important;
59
+ stroke-width: 0;
60
+ stroke: ${a.lineColor};
61
+ }
62
+
63
+ .arrowheadPath {
64
+ fill: ${a.arrowheadColor};
65
+ }
66
+
67
+ .edgePath .path {
68
+ stroke: ${a.lineColor};
69
+ stroke-width: ${a.strokeWidth??2}px;
70
+ }
71
+
72
+ .flowchart-link {
73
+ stroke: ${a.lineColor};
74
+ fill: none;
75
+ }
76
+
77
+ .edgeLabel {
78
+ background-color: ${a.edgeLabelBackground};
79
+ p {
80
+ background-color: ${a.edgeLabelBackground};
81
+ }
82
+ rect {
83
+ opacity: 0.5;
84
+ background-color: ${a.edgeLabelBackground};
85
+ fill: ${a.edgeLabelBackground};
86
+ }
87
+ text-align: center;
88
+ }
89
+
90
+ /* For html labels only */
91
+ .labelBkg {
92
+ background-color: ${u(a.edgeLabelBackground,.5)};
93
+ // background-color:
94
+ }
95
+
96
+ .cluster rect {
97
+ fill: ${a.clusterBkg};
98
+ stroke: ${a.clusterBorder};
99
+ stroke-width: 1px;
100
+ }
101
+
102
+ .cluster text {
103
+ fill: ${a.titleColor};
104
+ }
105
+
106
+ .cluster span {
107
+ color: ${a.titleColor};
108
+ }
109
+ /* .cluster div {
110
+ color: ${a.titleColor};
111
+ } */
112
+
113
+ div.mermaidTooltip {
114
+ position: absolute;
115
+ text-align: center;
116
+ max-width: 200px;
117
+ padding: 2px;
118
+ font-family: ${a.fontFamily};
119
+ font-size: 12px;
120
+ background: ${a.tertiaryColor};
121
+ border: 1px solid ${a.border2};
122
+ border-radius: 2px;
123
+ pointer-events: none;
124
+ z-index: 100;
125
+ }
126
+
127
+ .flowchartTitleText {
128
+ text-anchor: middle;
129
+ font-size: 18px;
130
+ fill: ${a.textColor};
131
+ }
132
+
133
+ rect.text {
134
+ fill: none;
135
+ stroke-width: 0;
136
+ }
137
+
138
+ .icon-shape, .image-shape {
139
+ background-color: ${a.edgeLabelBackground};
140
+ p {
141
+ background-color: ${a.edgeLabelBackground};
142
+ padding: 2px;
143
+ }
144
+ .label rect {
145
+ opacity: 0.5;
146
+ background-color: ${a.edgeLabelBackground};
147
+ fill: ${a.edgeLabelBackground};
148
+ }
149
+ text-align: center;
150
+ }
151
+ ${(0,b.getIconStyles)()}
152
+ `,"getStyles"),init:(0,k.__name)(a=>{a.flowchart||(a.flowchart={}),a.layout&&(0,j.setConfig2)({layout:a.layout}),a.flowchart.arrowMarkerAbsolute=a.arrowMarkerAbsolute,(0,j.setConfig2)({flowchart:{arrowMarkerAbsolute:a.arrowMarkerAbsolute}})},"init")};a.s(["diagram",0,v])}];
153
+
154
+ //# sourceMappingURL=node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_0136c8y._.js.map
@@ -0,0 +1,36 @@
1
+ module.exports=[3208,a=>{"use strict";var b=a.i(685227),c=a.i(334603);a.i(975930);var d=a.i(671731),e=a.i(444668);let f=function(a){for(var b=a.length/6|0,c=Array(b),d=0;d<b;)c[d]="#"+a.slice(6*d,6*++d);return c}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function g(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c<b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c<e||void 0===c&&e>=e)&&(c=e)}return c}function h(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c>b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c>e||void 0===c&&e>=e)&&(c=e)}return c}function i(a,b){let c=0;if(void 0===b)for(let b of a)(b*=1)&&(c+=b);else{let d=-1;for(let e of a)(e=+b(e,++d,a))&&(c+=e)}return c}function j(a){return a.target.depth}function k(a,b){return a.sourceLinks.length?a.depth:b-1}function l(a){return function(){return a}}function m(a,b){return o(a.source,b.source)||a.index-b.index}function n(a,b){return o(a.target,b.target)||a.index-b.index}function o(a,b){return a.y0-b.y0}function p(a){return a.value}function q(a){return a.index}function r(a){return a.nodes}function s(a){return a.links}function t(a,b){let c=a.get(b);if(!c)throw Error("missing: "+b);return c}function u({nodes:a}){for(let b of a){let a=b.y0,c=a;for(let c of b.sourceLinks)c.y0=a+c.width/2,a+=c.width;for(let a of b.targetLinks)a.y1=c+a.width/2,c+=a.width}}var v=Math.PI,w=2*v,x=w-1e-6;function y(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function z(){return new y}y.prototype=z.prototype={constructor:y,moveTo:function(a,b){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,b){this._+="L"+(this._x1=+a)+","+(this._y1=+b)},quadraticCurveTo:function(a,b,c,d){this._+="Q"+ +a+","+ +b+","+(this._x1=+c)+","+(this._y1=+d)},bezierCurveTo:function(a,b,c,d,e,f){this._+="C"+ +a+","+ +b+","+ +c+","+ +d+","+(this._x1=+e)+","+(this._y1=+f)},arcTo:function(a,b,c,d,e){a*=1,b*=1,c*=1,d*=1,e*=1;var f=this._x1,g=this._y1,h=c-a,i=d-b,j=f-a,k=g-b,l=j*j+k*k;if(e<0)throw Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=a)+","+(this._y1=b);else if(l>1e-6)if(Math.abs(k*h-i*j)>1e-6&&e){var m=c-f,n=d-g,o=h*h+i*i,p=Math.sqrt(o),q=Math.sqrt(l),r=e*Math.tan((v-Math.acos((o+l-(m*m+n*n))/(2*p*q)))/2),s=r/q,t=r/p;Math.abs(s-1)>1e-6&&(this._+="L"+(a+s*j)+","+(b+s*k)),this._+="A"+e+","+e+",0,0,"+ +(k*m>j*n)+","+(this._x1=a+t*h)+","+(this._y1=b+t*i)}else this._+="L"+(this._x1=a)+","+(this._y1=b)},arc:function(a,b,c,d,e,f){a*=1,b*=1,c*=1,f=!!f;var g=c*Math.cos(d),h=c*Math.sin(d),i=a+g,j=b+h,k=1^f,l=f?d-e:e-d;if(c<0)throw Error("negative radius: "+c);null===this._x1?this._+="M"+i+","+j:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-j)>1e-6)&&(this._+="L"+i+","+j),c&&(l<0&&(l=l%w+w),l>x?this._+="A"+c+","+c+",0,1,"+k+","+(a-g)+","+(b-h)+"A"+c+","+c+",0,1,"+k+","+(this._x1=i)+","+(this._y1=j):l>1e-6&&(this._+="A"+c+","+c+",0,"+ +(l>=v)+","+k+","+(this._x1=a+c*Math.cos(e))+","+(this._y1=b+c*Math.sin(e))))},rect:function(a,b,c,d){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)+"h"+ +c+"v"+ +d+"h"+-c+"Z"},toString:function(){return this._}};var A=Array.prototype.slice;function B(a){return function(){return a}}function C(a){return a[0]}function D(a){return a[1]}function E(a){return a.source}function F(a){return a.target}function G(a,b,c,d,e){a.moveTo(b,c),a.bezierCurveTo(b=(b+d)/2,c,b,e,d,e)}function H(a){return[a.source.x1,a.y0]}function I(a){return[a.target.x0,a.y1]}var J=function(){var a=(0,c.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,9],d=[1,10],e=[1,5,10,12],f={trace:(0,c.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,c.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 7:let i=d.findOrCreateNode(f[h-4].trim().replaceAll('""','"')),j=d.findOrCreateNode(f[h-2].trim().replaceAll('""','"')),k=parseFloat(f[h].trim());d.addLink(i,j,k);break;case 8:case 9:case 11:this.$=f[h];break;case 10:this.$=f[h-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:b,20:d},{1:[2,6],7:11,10:[1,12]},a(d,[2,4],{9:13,5:[1,14]}),{12:[1,15]},a(e,[2,8]),a(e,[2,9]),{19:[1,16]},a(e,[2,11]),{1:[2,1]},{1:[2,5]},a(d,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:b,20:d},{15:18,16:7,17:8,18:b,20:d},{18:[1,19]},a(d,[2,3]),{12:[1,20]},a(e,[2,10]),{15:21,16:7,17:8,18:b,20:d},a([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,c.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,c.__name)(function(a){var b=this,d=[0],e=[],f=[null],g=[],h=this.table,i="",j=0,k=0,l=0,m=g.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;g.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=e.pop()||n.lex()||1)&&(a instanceof Array&&(a=(e=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.__name)(function(a){d.length=d.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,c.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=d[d.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:d.push(t),f.push(n.yytext),g.push(n.yylloc),d.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=f[f.length-z],C._$={first_line:g[g.length-(z||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(z||1)].first_column,last_column:g[g.length-1].last_column},r&&(C._$.range=[g[g.length-(z||1)].range[0],g[g.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],f,g].concat(m))))return x;z&&(d=d.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),d.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[d[d.length-2]][d[d.length-1]],d.push(A);break;case 3:return!0}}return!0},"parse")};function g(){this.yy={}}return f.lexer={EOF:1,parseError:(0,c.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,c.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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,c.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:(0,c.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.__name)(function(){return this._more=!0,this},"more"),reject:(0,c.__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,c.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,c.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,c.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,c.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===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,c.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,c.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,c.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.__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,c.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,c.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,c.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.__name)(function(a,b,c,d){switch(c){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,c.__name)(g,"Parser"),g.prototype=f,f.Parser=g,new g}();J.parser=J;var K=[],L=[],M=new Map,N=(0,c.__name)(()=>{K=[],L=[],M=new Map,(0,b.clear)()},"clear"),O=class{constructor(a,b,c=0){this.source=a,this.target=b,this.value=c}static{(0,c.__name)(this,"SankeyLink")}},P=(0,c.__name)((a,b,c)=>{K.push(new O(a,b,c))},"addLink"),Q=class{constructor(a){this.ID=a}static{(0,c.__name)(this,"SankeyNode")}},R=(0,c.__name)(a=>{a=b.common_default.sanitizeText(a,(0,b.getConfig2)());let c=M.get(a);return void 0===c&&(c=new Q(a),M.set(a,c),L.push(c)),c},"findOrCreateNode"),S=(0,c.__name)(()=>L,"getNodes"),T=(0,c.__name)(()=>K,"getLinks"),U=(0,c.__name)(()=>({nodes:L.map(a=>({id:a.ID})),links:K.map(a=>({source:a.source.ID,target:a.target.ID,value:a.value}))}),"getGraph"),V={nodesMap:M,getConfig:(0,c.__name)(()=>(0,b.getConfig2)().sankey,"getConfig"),getNodes:S,getLinks:T,getGraph:U,addLink:P,findOrCreateNode:R,getAccTitle:b.getAccTitle,setAccTitle:b.setAccTitle,getAccDescription:b.getAccDescription,setAccDescription:b.setAccDescription,getDiagramTitle:b.getDiagramTitle,setDiagramTitle:b.setDiagramTitle,clear:N},W=class a{static{(0,c.__name)(this,"Uid")}static{this.count=0}static next(b){return new a(b+ ++a.count)}constructor(a){this.id=a,this.href=`#${a}`}toString(){return"url("+this.href+")"}},X={left:function(a){return a.depth},right:function(a,b){return b-1-a.height},center:function(a){return a.targetLinks.length?a.depth:a.sourceLinks.length?h(a.sourceLinks,j)-1:0},justify:k},Y=(0,c.__name)(a=>{let b=0,c=0;for(let d of a){let a=d.value??0;a>b&&(b=a,c=d.layer??0)}return c},"findCentralNodeLayer"),Z=(0,c.__name)(function(a,j,v,w){let x,y,{securityLevel:J,sankey:K}=(0,b.getConfig2)(),L=b.defaultConfig2.sankey;"sandbox"===J&&(x=(0,d.select)("#i"+j));let M="sandbox"===J?(0,d.select)(x.nodes()[0].contentDocument.body):(0,d.select)("body"),N="sandbox"===J?M.select(`[id="${j}"]`):(0,d.select)(`[id="${j}"]`),O=K?.width??L.width,P=K?.height??L.width,Q=K?.useMaxWidth??L.useMaxWidth,R=K?.nodeAlignment??L.nodeAlignment,S=K?.prefix??L.prefix,T=K?.suffix??L.suffix,U=K?.showValues??L.showValues,V=K?.nodeWidth??L.nodeWidth??10,Z=K?.nodePadding??L.nodePadding??12,$=K?.labelStyle??L.labelStyle??"legacy",_=K?.nodeColors??{},aa=w.db.getGraph(),ab=X[R];(function(){let a,b,c=0,d=0,e=1,f=1,j=24,v=8,w,x=q,y=k,z=r,A=s,B=6;function C(){let k={nodes:z.apply(null,arguments),links:A.apply(null,arguments)};return function({nodes:a,links:c}){for(let[b,c]of a.entries())c.index=b,c.sourceLinks=[],c.targetLinks=[];let d=new Map(a.map((b,c)=>[x(b,c,a),b]));for(let[a,b]of c.entries()){b.index=a;let{source:c,target:e}=b;"object"!=typeof c&&(c=b.source=t(d,c)),"object"!=typeof e&&(e=b.target=t(d,e)),c.sourceLinks.push(b),e.targetLinks.push(b)}if(null!=b)for(let{sourceLinks:c,targetLinks:d}of a)c.sort(b),d.sort(b)}(k),function({nodes:a}){for(let b of a)b.value=void 0===b.fixedValue?Math.max(i(b.sourceLinks,p),i(b.targetLinks,p)):b.fixedValue}(k),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{target:b}of(a.depth=e,a.sourceLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(k),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{source:b}of(a.height=e,a.targetLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(k),function(k){let l=function({nodes:b}){let d=g(b,a=>a.depth)+1,f=(e-c-j)/(d-1),h=Array(d);for(let a of b){let b=Math.max(0,Math.min(d-1,Math.floor(y.call(null,a,d))));a.layer=b,a.x0=c+b*f,a.x1=a.x0+j,h[b]?h[b].push(a):h[b]=[a]}if(a)for(let b of h)b.sort(a);return h}(k);w=Math.min(v,(f-d)/(g(l,a=>a.length)-1));let q=h(l,a=>(f-d-(a.length-1)*w)/i(a,p));for(let a of l){let c=d;for(let b of a)for(let a of(b.y0=c,b.y1=c+b.value*q,c=b.y1+w,b.sourceLinks))a.width=a.value*q;c=(f-c+w)/(a.length+1);for(let b=0;b<a.length;++b){let d=a[b];d.y0+=c*(b+1),d.y1+=c*(b+1)}var r=a;if(void 0===b)for(let{sourceLinks:a,targetLinks:b}of r)a.sort(n),b.sort(m)}for(let b=0;b<B;++b){let c=Math.pow(.99,b),d=Math.max(1-c,(b+1)/B);(function(b,c,d){for(let e=b.length,f=e-2;f>=0;--f){let e=b[f];for(let a of e){let b=0,d=0;for(let{target:c,value:e}of a.sourceLinks){let f=e*(c.layer-a.layer);b+=function(a,b){let c=b.y0-(b.targetLinks.length-1)*w/2;for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c+=e+w}for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c-=e}return c}(a,c)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&e.sort(o),D(e,d)}})(l,c,d),function(b,c,d){for(let e=1,f=b.length;e<f;++e){let f=b[e];for(let a of f){let b=0,d=0;for(let{source:c,value:e}of a.targetLinks){let f=e*(a.layer-c.layer);b+=function(a,b){let c=a.y0-(a.sourceLinks.length-1)*w/2;for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c+=e+w}for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c-=e}return c}(c,a)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&f.sort(o),D(f,d)}}(l,c,d)}}(k),u(k),k}function D(a,b){let c=a.length>>1,e=a[c];F(a,e.y0-w,c-1,b),E(a,e.y1+w,c+1,b),F(a,f,a.length-1,b),E(a,d,0,b)}function E(a,b,c,d){for(;c<a.length;++c){let e=a[c],f=(b-e.y0)*d;f>1e-6&&(e.y0+=f,e.y1+=f),b=e.y1+w}}function F(a,b,c,d){for(;c>=0;--c){let e=a[c],f=(e.y1-b)*d;f>1e-6&&(e.y0-=f,e.y1-=f),b=e.y0-w}}function G({sourceLinks:a,targetLinks:c}){if(void 0===b){for(let{source:{sourceLinks:a}}of c)a.sort(n);for(let{target:{targetLinks:b}}of a)b.sort(m)}}return C.update=function(a){return u(a),a},C.nodeId=function(a){return arguments.length?(x="function"==typeof a?a:l(a),C):x},C.nodeAlign=function(a){return arguments.length?(y="function"==typeof a?a:l(a),C):y},C.nodeSort=function(b){return arguments.length?(a=b,C):a},C.nodeWidth=function(a){return arguments.length?(j=+a,C):j},C.nodePadding=function(a){return arguments.length?(v=w=+a,C):v},C.nodes=function(a){return arguments.length?(z="function"==typeof a?a:l(a),C):z},C.links=function(a){return arguments.length?(A="function"==typeof a?a:l(a),C):A},C.linkSort=function(a){return arguments.length?(b=a,C):b},C.size=function(a){return arguments.length?(c=d=0,e=+a[0],f=+a[1],C):[e-c,f-d]},C.extent=function(a){return arguments.length?(c=+a[0][0],e=+a[1][0],d=+a[0][1],f=+a[1][1],C):[[c,d],[e,f]]},C.iterations=function(a){return arguments.length?(B=+a,C):B},C})().nodeId(a=>a.id).nodeWidth(V).nodePadding(Z+15*!!U).nodeAlign(ab).extent([[0,0],[O,P]])(aa);let ac=Y(aa.nodes),ad=(0,e.scaleOrdinal)(f),ae=(0,c.__name)(a=>_[a]??ad(a),"getNodeColor");N.append("g").attr("class","nodes").selectAll(".node").data(aa.nodes).join("g").attr("class","node").attr("id",a=>(a.uid=W.next("node-")).id).attr("transform",function(a){return"translate("+a.x0+","+a.y0+")"}).attr("x",a=>a.x0).attr("y",a=>a.y0).append("rect").attr("height",a=>a.y1-a.y0).attr("width",a=>a.x1-a.x0).attr("fill",a=>ae(a.id));let af=(0,c.__name)(({id:a,value:b})=>U?`${a}
2
+ ${S}${Math.round(100*b)/100}${T}`:a,"getText"),ag=(0,c.__name)(a=>"outlined"===$?(a.layer??0)<ac?{x:a.x0-6,anchor:"end"}:{x:a.x1+6,anchor:"start"}:a.x0<O/2?{x:a.x1+6,anchor:"start"}:{x:a.x0-6,anchor:"end"},"getLabelPosition"),ah=N.append("g").attr("class","node-labels").attr("font-size",14),ai=(0,c.__name)(a=>ah.selectAll(a?`.${a}`:"text").data(aa.nodes).join("text").attr("class",a??null).attr("x",a=>ag(a).x).attr("y",a=>(a.y1+a.y0)/2).attr("dy",`${U?"0":"0.35"}em`).attr("text-anchor",a=>ag(a).anchor).text(af),"appendLabel");"outlined"===$?(ai("sankey-label-bg"),ai("sankey-label-fg")):ai();let aj=N.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(aa.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),ak=K?.linkColor??"gradient";if("gradient"===ak){let a=aj.append("linearGradient").attr("id",a=>(a.uid=W.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",a=>a.source.x1).attr("x2",a=>a.target.x0);a.append("stop").attr("offset","0%").attr("stop-color",a=>ae(a.source.id)),a.append("stop").attr("offset","100%").attr("stop-color",a=>ae(a.target.id))}switch(ak){case"gradient":y=(0,c.__name)(a=>a.uid,"coloring");break;case"source":y=(0,c.__name)(a=>ae(a.source.id),"coloring");break;case"target":y=(0,c.__name)(a=>ae(a.target.id),"coloring");break;default:y=ak}aj.append("path").attr("d",(function(a){var b=E,c=F,d=C,e=D,f=null;function g(){var g,h=A.call(arguments),i=b.apply(this,h),j=c.apply(this,h);if(f||(f=g=z()),a(f,+d.apply(this,(h[0]=i,h)),+e.apply(this,h),+d.apply(this,(h[0]=j,h)),+e.apply(this,h)),g)return f=null,g+""||null}return g.source=function(a){return arguments.length?(b=a,g):b},g.target=function(a){return arguments.length?(c=a,g):c},g.x=function(a){return arguments.length?(d="function"==typeof a?a:B(+a),g):d},g.y=function(a){return arguments.length?(e="function"==typeof a?a:B(+a),g):e},g.context=function(a){return arguments.length?(f=null==a?null:a,g):f},g})(G).source(H).target(I)).attr("stroke",y).attr("stroke-width",a=>Math.max(1,a.width)),(0,b.setupGraphViewbox)(void 0,N,0,Q)},"draw"),$=(0,c.__name)(a=>a.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),_=(0,c.__name)(a=>`.label {
3
+ font-family: ${a.fontFamily};
4
+ }
5
+
6
+ .node-labels {
7
+ font-family: ${a.fontFamily};
8
+ }
9
+
10
+ /* Outlined label style - background stroke for better readability */
11
+ .sankey-label-bg {
12
+ stroke: ${a.mainBkg||a.background||"#fff"};
13
+ stroke-width: 4px;
14
+ stroke-linejoin: round;
15
+ paint-order: stroke;
16
+ }
17
+
18
+ /* Foreground label text */
19
+ .sankey-label-fg {
20
+ fill: ${a.textColor};
21
+ }
22
+
23
+ /* Node styling */
24
+ .node rect {
25
+ shape-rendering: crispEdges;
26
+ }
27
+
28
+ /* Link styling */
29
+ .link {
30
+ fill: none;
31
+ stroke-opacity: 0.5;
32
+ mix-blend-mode: multiply;
33
+ }
34
+ `,"getStyles"),aa=J.parse.bind(J);J.parse=a=>aa($(a)),a.s(["diagram",0,{styles:_,parser:J,db:V,renderer:{draw:Z}}],3208)}];
35
+
36
+ //# sourceMappingURL=node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_0z55106._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[368833,a=>{"use strict";var b,c=a.i(786647);a.i(562583),a.i(867575),a.i(807297),a.i(273701),a.i(130905),a.i(921003),a.i(369813),a.i(507666),a.i(248916);var d=a.i(896937),e=a.i(685227),f=a.i(334603);a.i(975930);var g=a.i(671731);a.i(858762);var h=a.i(783287);a.i(797774);var i=a.i(661256),j=a.i(398153),k=a.i(737645),l=(0,f.__name)(a=>a.append("circle").attr("class","start-state").attr("r",(0,e.getConfig2)().state.sizeUnit).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit),"drawStartState"),m=(0,f.__name)(a=>a.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,e.getConfig2)().state.textHeight).attr("class","divider").attr("x2",2*(0,e.getConfig2)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),n=(0,f.__name)((a,b)=>{let c=a.append("text").attr("x",2*(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.textHeight+2*(0,e.getConfig2)().state.padding).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.id),d=c.node().getBBox();return a.insert("rect",":first-child").attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding).attr("width",d.width+2*(0,e.getConfig2)().state.padding).attr("height",d.height+2*(0,e.getConfig2)().state.padding).attr("rx",(0,e.getConfig2)().state.radius),c},"drawSimpleState"),o=(0,f.__name)((a,b)=>{let c=(0,f.__name)(function(a,b,c){let d=a.append("tspan").attr("x",2*(0,e.getConfig2)().state.padding).text(b);c||d.attr("dy",(0,e.getConfig2)().state.textHeight)},"addTspan"),d=a.append("text").attr("x",2*(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.textHeight+1.3*(0,e.getConfig2)().state.padding).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.descriptions[0]).node().getBBox(),g=d.height,h=a.append("text").attr("x",(0,e.getConfig2)().state.padding).attr("y",g+.4*(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.dividerMargin+(0,e.getConfig2)().state.textHeight).attr("class","state-description"),i=!0,j=!0;b.descriptions.forEach(function(a){i||(c(h,a,j),j=!1),i=!1});let k=a.append("line").attr("x1",(0,e.getConfig2)().state.padding).attr("y1",(0,e.getConfig2)().state.padding+g+(0,e.getConfig2)().state.dividerMargin/2).attr("y2",(0,e.getConfig2)().state.padding+g+(0,e.getConfig2)().state.dividerMargin/2).attr("class","descr-divider"),l=h.node().getBBox(),m=Math.max(l.width,d.width);return k.attr("x2",m+3*(0,e.getConfig2)().state.padding),a.insert("rect",":first-child").attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding).attr("width",m+2*(0,e.getConfig2)().state.padding).attr("height",l.height+g+2*(0,e.getConfig2)().state.padding).attr("rx",(0,e.getConfig2)().state.radius),a},"drawDescrState"),p=(0,f.__name)((a,b,c)=>{let d,f=(0,e.getConfig2)().state.padding,g=2*(0,e.getConfig2)().state.padding,h=a.node().getBBox(),i=h.width,j=h.x,k=a.append("text").attr("x",0).attr("y",(0,e.getConfig2)().state.titleShift).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.id),l=k.node().getBBox().width+g,m=Math.max(l,i);m===i&&(m+=g);let n=a.node().getBBox();b.doc,d=j-f,l>i&&(d=(i-m)/2+f),Math.abs(j-n.x)<f&&l>i&&(d=j-(l-i)/2);let o=1-(0,e.getConfig2)().state.textHeight;return a.insert("rect",":first-child").attr("x",d).attr("y",o).attr("class",c?"alt-composit":"composit").attr("width",m).attr("height",n.height+(0,e.getConfig2)().state.textHeight+(0,e.getConfig2)().state.titleShift+1).attr("rx","0"),k.attr("x",d+f),l<=i&&k.attr("x",j+(m-g)/2-l/2+f),a.insert("rect",":first-child").attr("x",d).attr("y",(0,e.getConfig2)().state.titleShift-(0,e.getConfig2)().state.textHeight-(0,e.getConfig2)().state.padding).attr("width",m).attr("height",3*(0,e.getConfig2)().state.textHeight).attr("rx",(0,e.getConfig2)().state.radius),a.insert("rect",":first-child").attr("x",d).attr("y",(0,e.getConfig2)().state.titleShift-(0,e.getConfig2)().state.textHeight-(0,e.getConfig2)().state.padding).attr("width",m).attr("height",n.height+3+2*(0,e.getConfig2)().state.textHeight).attr("rx",(0,e.getConfig2)().state.radius),a},"addTitleAndBox"),q=(0,f.__name)(a=>(a.append("circle").attr("class","end-state-outer").attr("r",(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding),a.append("circle").attr("class","end-state-inner").attr("r",(0,e.getConfig2)().state.sizeUnit).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+2).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+2)),"drawEndState"),r=(0,f.__name)((a,b)=>{let c=(0,e.getConfig2)().state.forkWidth,d=(0,e.getConfig2)().state.forkHeight;if(b.parentId){let a=c;c=d,d=a}return a.append("rect").style("stroke","black").style("fill","black").attr("width",c).attr("height",d).attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding)},"drawForkJoinState"),s=(0,f.__name)((a,b,c,d)=>{let f=0,g=d.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=a.replace(/\r\n/g,"<br/>"),i=(h=h.replace(/\n/g,"<br/>")).split(e.common_default.lineBreakRegex),j=1.25*(0,e.getConfig2)().state.noteMargin;for(let a of i){let d=a.trim();if(d.length>0){let a=g.append("tspan");a.text(d),0===j&&(j+=a.node().getBBox().height),f+=j,a.attr("x",b+(0,e.getConfig2)().state.noteMargin),a.attr("y",c+f+1.25*(0,e.getConfig2)().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:f}},"_drawLongText"),t=(0,f.__name)((a,b)=>{b.attr("class","state-note");let c=b.append("rect").attr("x",0).attr("y",(0,e.getConfig2)().state.padding),{textWidth:d,textHeight:f}=s(a,0,0,b.append("g"));return c.attr("height",f+2*(0,e.getConfig2)().state.noteMargin),c.attr("width",d+2*(0,e.getConfig2)().state.noteMargin),c},"drawNote"),u=(0,f.__name)(function(a,b){let c=b.id,d={id:c,label:b.id,width:0,height:0},f=a.append("g").attr("id",c).attr("class","stateGroup");"start"===b.type&&l(f),"end"===b.type&&q(f),("fork"===b.type||"join"===b.type)&&r(f,b),"note"===b.type&&t(b.note.text,f),"divider"===b.type&&m(f),"default"===b.type&&0===b.descriptions.length&&n(f,b),"default"===b.type&&b.descriptions.length>0&&o(f,b);let g=f.node().getBBox();return d.width=g.width+2*(0,e.getConfig2)().state.padding,d.height=g.height+2*(0,e.getConfig2)().state.padding,d},"drawState"),v=0,w=(0,f.__name)(function(a,b,g){let h=(0,f.__name)(function(a){switch(a){case c.StateDB.relationType.AGGREGATION:return"aggregation";case c.StateDB.relationType.EXTENSION:return"extension";case c.StateDB.relationType.COMPOSITION:return"composition";case c.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");b.points=b.points.filter(a=>!Number.isNaN(a.y));let i=b.points,l=(0,j.line)().x(function(a){return a.x}).y(function(a){return a.y}).curve(k.curveBasis),m=a.append("path").attr("d",l(i)).attr("id","edge"+v).attr("class","transition"),n="";if((0,e.getConfig2)().state.arrowMarkerAbsolute&&(n=(0,e.getUrl)(!0)),m.attr("marker-end","url("+n+"#"+h(c.StateDB.relationType.DEPENDENCY)+"End)"),void 0!==g.title){let c=a.append("g").attr("class","stateLabel"),{x:h,y:i}=d.utils_default.calcLabelPosition(b.points),j=e.common_default.getRows(g.title),k=0,l=[],m=0,n=0;for(let a=0;a<=j.length;a++){let b=c.append("text").attr("text-anchor","middle").text(j[a]).attr("x",h).attr("y",i+k),d=b.node().getBBox();m=Math.max(m,d.width),n=Math.min(n,d.x),f.log.info(d.x,h,i+k),0===k&&(k=b.node().getBBox().height,f.log.info("Title height",k,i)),l.push(b)}let o=k*j.length;if(j.length>1){let a=(j.length-1)*k*.5;l.forEach((b,c)=>b.attr("y",i+c*k-a)),o=k*j.length}let p=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",h-m/2-(0,e.getConfig2)().state.padding/2).attr("y",i-o/2-(0,e.getConfig2)().state.padding/2-3.5).attr("width",m+(0,e.getConfig2)().state.padding).attr("height",o+(0,e.getConfig2)().state.padding),f.log.info(p)}v++},"drawEdge"),x={},y=(0,f.__name)(function(){},"setConf"),z=(0,f.__name)(function(a){a.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),A=(0,f.__name)(function(a,c,d,h){let i;b=(0,e.getConfig2)().state;let j=(0,e.getConfig2)().securityLevel;"sandbox"===j&&(i=(0,g.select)("#i"+c));let k="sandbox"===j?(0,g.select)(i.nodes()[0].contentDocument.body):(0,g.select)("body"),l="sandbox"===j?i.nodes()[0].contentDocument:document;f.log.debug("Rendering diagram "+a);let m=k.select(`[id='${c}']`);z(m),C(h.db.getRootDoc(),m.append("g").attr("id",c+"-root"),void 0,!1,k,l,h);let n=b.padding,o=m.node().getBBox(),p=o.width+2*n,q=o.height+2*n;(0,e.configureSvgSize)(m,q,1.75*p,b.useMaxWidth),m.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+p+" "+q)},"draw"),B=(0,f.__name)(a=>a?a.length*b.fontSizeFactor:1,"getLabelWidth"),C=(0,f.__name)((a,c,d,g,j,k,l)=>{let m,n=new i.Graph({compound:!0,multigraph:!0}),o=!0;for(m=0;m<a.length;m++)if("relation"===a[m].stmt){o=!1;break}d?n.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:o?1:b.edgeLengthFactor,nodeSep:o?1:50,isMultiGraph:!0}):n.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:o?1:b.edgeLengthFactor,nodeSep:o?1:50,ranker:"tight-tree",isMultiGraph:!0}),n.setDefaultEdgeLabel(function(){return{}});let q=l.db.getStates(),r=l.db.getRelations();for(let a of Object.keys(q)){let e,f=q[a];if(d&&(f.parentId=d),f.doc){let a=c.append("g").attr("id",f.id).attr("class","stateGroup");e=C(f.doc,a,f.id,!g,j,k,l);{let c=(a=p(a,f,g)).node().getBBox();e.width=c.width,e.height=c.height+b.padding/2,x[f.id]={y:b.compositTitleSize}}}else e=u(c,f,n);if(f.note){let a=u(c,{descriptions:[],id:f.id+"-note",note:f.note,type:"note"},n);"left of"===f.note.position?(n.setNode(e.id+"-note",a),n.setNode(e.id,e)):(n.setNode(e.id,e),n.setNode(e.id+"-note",a)),n.setParent(e.id,e.id+"-group"),n.setParent(e.id+"-note",e.id+"-group")}else n.setNode(e.id,e)}f.log.debug("Count=",n.nodeCount(),n);let s=0;r.forEach(function(a){s++,f.log.debug("Setting edge",a),n.setEdge(a.id1,a.id2,{relation:a,width:B(a.title),height:b.labelHeight*e.common_default.getRows(a.title).length,labelpos:"c"},"id"+s)}),(0,h.layout)(n),f.log.debug("Graph after layout",n.nodes());let t=c.node();n.nodes().forEach(function(a){void 0!==a&&void 0!==n.node(a)?(f.log.warn("Node "+a+": "+JSON.stringify(n.node(a))),j.select("#"+t.id+" #"+a).attr("transform","translate("+(n.node(a).x-n.node(a).width/2)+","+(n.node(a).y+(x[a]?x[a].y:0)-n.node(a).height/2)+" )"),j.select("#"+t.id+" #"+a).attr("data-x-shift",n.node(a).x-n.node(a).width/2),k.querySelectorAll("#"+t.id+" #"+a+" .divider").forEach(a=>{let b=a.parentElement,c=0,d=0;b&&(b.parentElement&&(c=b.parentElement.getBBox().width),Number.isNaN(d=parseInt(b.getAttribute("data-x-shift"),10))&&(d=0)),a.setAttribute("x1",0-d+8),a.setAttribute("x2",c-d-8)})):f.log.debug("No Node "+a+": "+JSON.stringify(n.node(a)))});let v=t.getBBox();n.edges().forEach(function(a){void 0!==a&&void 0!==n.edge(a)&&(f.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(n.edge(a))),w(c,n.edge(a),n.edge(a).relation))});let y={id:d||"root",label:d||"root",width:0,height:0};return y.width=(v=t.getBBox()).width+2*b.padding,y.height=v.height+2*b.padding,f.log.debug("Doc rendered",y,n),y},"renderDoc"),D={parser:c.stateDiagram_default,get db(){return new c.StateDB(1)},renderer:{setConf:y,draw:A},styles:c.styles_default,init:(0,f.__name)(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};a.s(["diagram",0,D])}];
2
+
3
+ //# sourceMappingURL=node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0azazz~._.js.map