@evoscientist/webui 0.2.6 → 0.2.8

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 (382) hide show
  1. package/dist/.next/BUILD_ID +1 -1
  2. package/dist/.next/build-manifest.json +3 -3
  3. package/dist/.next/prerender-manifest.json +5 -5
  4. package/dist/.next/required-server-files.json +5 -5
  5. package/dist/.next/server/app/_global-error/page.js.nft.json +1 -1
  6. package/dist/.next/server/app/_global-error.html +1 -1
  7. package/dist/.next/server/app/_global-error.rsc +1 -1
  8. package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/dist/.next/server/app/_not-found/page.js.nft.json +1 -1
  12. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/dist/.next/server/app/_not-found.html +1 -1
  14. package/dist/.next/server/app/_not-found.rsc +3 -3
  15. package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  16. package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  17. package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  18. package/dist/.next/server/app/api/memory/executions/route.js.nft.json +1 -1
  19. package/dist/.next/server/app/api/memory/observations/route.js.nft.json +1 -1
  20. package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
  21. package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
  22. package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
  23. package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
  24. package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
  25. package/dist/.next/server/app/index.html +1 -1
  26. package/dist/.next/server/app/index.rsc +4 -4
  27. package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  28. package/dist/.next/server/app/index.segments/_full.segment.rsc +4 -4
  29. package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  30. package/dist/.next/server/app/page.js.nft.json +1 -1
  31. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  32. package/dist/.next/server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js +84 -0
  33. package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js +92 -0
  34. package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js +81 -0
  35. package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js +117 -0
  36. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js +106 -0
  37. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js +66 -0
  38. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js +136 -0
  39. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js +81 -0
  40. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js +3 -0
  41. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js +155 -0
  42. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js +79 -0
  43. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js +3 -0
  44. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0471z20._.js +1 -1
  45. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0owaq8w._.js +3 -3
  46. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0xpcv9w._.js +1 -1
  47. package/dist/.next/server/chunks/ssr/[root-of-the-server]__11a1-4t._.js +3 -0
  48. package/dist/.next/server/chunks/ssr/{node_modules_1-wfv6i._.js → node_modules_002u7ir._.js} +2 -2
  49. package/dist/.next/server/chunks/ssr/node_modules_01wbayw._.js +3 -0
  50. package/dist/.next/server/chunks/ssr/node_modules_02l4ncm._.js +3 -0
  51. package/dist/.next/server/chunks/ssr/node_modules_063ofsn._.js +64 -0
  52. package/dist/.next/server/chunks/ssr/node_modules_0a-3666._.js +26 -0
  53. package/dist/.next/server/chunks/ssr/node_modules_0dxcji9._.js +3 -0
  54. package/dist/.next/server/chunks/ssr/{node_modules_082g_84._.js → node_modules_0f5_pdq._.js} +12 -3
  55. package/dist/.next/server/chunks/ssr/node_modules_0fxlk06._.js +3 -0
  56. package/dist/.next/server/chunks/ssr/node_modules_0gs9qjb._.js +17 -0
  57. package/dist/.next/server/chunks/ssr/{node_modules_111pp7w._.js → node_modules_0klo3i5._.js} +2 -2
  58. package/dist/.next/server/chunks/ssr/node_modules_0koo_87._.js +3 -0
  59. package/dist/.next/server/chunks/ssr/node_modules_0lhl9_0._.js +17 -0
  60. package/dist/.next/server/chunks/ssr/node_modules_0m7-ed8._.js +43 -0
  61. package/dist/.next/server/chunks/ssr/node_modules_0p_8bfi._.js +3 -0
  62. package/dist/.next/server/chunks/ssr/{node_modules_1z_uie6._.js → node_modules_0plqukv._.js} +2 -2
  63. package/dist/.next/server/chunks/ssr/node_modules_0q44r64._.js +3 -0
  64. package/dist/.next/server/chunks/ssr/{node_modules_1nck62h._.js → node_modules_0qeu828._.js} +2 -2
  65. package/dist/.next/server/chunks/ssr/node_modules_0qw862r._.js +3 -0
  66. package/dist/.next/server/chunks/ssr/node_modules_0rb-_la._.js +3 -0
  67. package/dist/.next/server/chunks/ssr/node_modules_0tr3k8r._.js +3 -0
  68. package/dist/.next/server/chunks/ssr/node_modules_0urn1wt._.js +24 -0
  69. package/dist/.next/server/chunks/ssr/node_modules_0ybok7k._.js +3 -0
  70. package/dist/.next/server/chunks/ssr/node_modules_10v96_9._.js +3 -0
  71. package/dist/.next/server/chunks/ssr/{node_modules_1p9b60w._.js → node_modules_11trqmi._.js} +4 -4
  72. package/dist/.next/server/chunks/ssr/{node_modules_1_v-pb8._.js → node_modules_13e524_._.js} +2 -2
  73. package/dist/.next/server/chunks/ssr/node_modules_14gkv49._.js +3 -0
  74. package/dist/.next/server/chunks/ssr/node_modules_14xejkf._.js +3 -0
  75. package/dist/.next/server/chunks/ssr/node_modules_17rfg58._.js +3 -0
  76. package/dist/.next/server/chunks/ssr/node_modules_1_d0q_7._.js +289 -0
  77. package/dist/.next/server/chunks/ssr/node_modules_1a2dy76._.js +3 -0
  78. package/dist/.next/server/chunks/ssr/node_modules_1asq18n._.js +29 -0
  79. package/dist/.next/server/chunks/ssr/node_modules_1bo15xl._.js +3 -0
  80. package/dist/.next/server/chunks/ssr/node_modules_1c0h-_d._.js +3 -0
  81. package/dist/.next/server/chunks/ssr/node_modules_1f65-5g._.js +3 -0
  82. package/dist/.next/server/chunks/ssr/node_modules_1ki78ma._.js +3 -0
  83. package/dist/.next/server/chunks/ssr/node_modules_1mcjw-y._.js +17 -0
  84. package/dist/.next/server/chunks/ssr/{node_modules_0v4zc0t._.js → node_modules_1nl12mt._.js} +2 -2
  85. package/dist/.next/server/chunks/ssr/node_modules_1owe5xv._.js +3 -0
  86. package/dist/.next/server/chunks/ssr/node_modules_1phops3._.js +3 -0
  87. package/dist/.next/server/chunks/ssr/node_modules_1t626ye._.js +17 -0
  88. package/dist/.next/server/chunks/ssr/node_modules_1thrjjl._.js +3 -0
  89. package/dist/.next/server/chunks/ssr/{node_modules_0456qqx._.js → node_modules_1tsuh_o._.js} +3 -3
  90. package/dist/.next/server/chunks/ssr/node_modules_1twjy-4._.js +3 -0
  91. package/dist/.next/server/chunks/ssr/node_modules_1vbiuwu._.js +63 -0
  92. package/dist/.next/server/chunks/ssr/node_modules_208gr2-._.js +3 -0
  93. package/dist/.next/server/chunks/ssr/node_modules_20iziql._.js +17 -0
  94. package/dist/.next/server/chunks/ssr/node_modules_20oab__._.js +3 -0
  95. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_066fcep._.js +3 -0
  96. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0_301m2._.js +3 -0
  97. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0it10w8._.js +3 -0
  98. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0m-ahsg._.js +3 -0
  99. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n8rqkj._.js +3 -0
  100. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0nb4v-i._.js +3 -0
  101. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0tdjo9s._.js +3 -0
  102. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12betp4._.js +3 -0
  103. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1mu01rb._.js +3 -0
  104. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1xda76v._.js +3 -0
  105. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1z2f7i3._.js +3 -0
  106. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_20vrei_._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js} +2 -2
  107. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js +3 -0
  108. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1quf15b._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js} +2 -2
  109. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0muxjzn._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js} +2 -2
  110. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js +3 -0
  111. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0__ix0y._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js} +2 -2
  112. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0597f-k._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js} +2 -2
  113. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1vi37xl._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js} +2 -2
  114. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js +3 -0
  115. package/dist/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1fzbfn5._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js} +2 -2
  116. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js +3 -0
  117. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js +3 -0
  118. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js +3 -0
  119. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js +3 -0
  120. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js +3 -0
  121. package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js +1 -1
  122. package/dist/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_04eh6b6._.js → node_modules_katex_dist_katex_mjs_09ex6q5._.js} +1 -1
  123. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0e5n4p5._.js +3 -0
  124. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js +126 -0
  125. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js +34 -0
  126. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-2E4U76K2_mjs_20f4_iz._.js +3 -0
  127. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-4HAMMTFA_mjs_1cfif1_._.js +64 -0
  128. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-75Z2AOVW_mjs_051rute._.js +4 -0
  129. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-DU6HZSFF_mjs_20hsuk9._.js +124 -0
  130. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js +228 -0
  131. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_15ujw6f._.js +3 -0
  132. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-OSK3NFVY_mjs_0x5leh1._.js +12 -0
  133. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js +160 -0
  134. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js +88 -0
  135. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js +203 -0
  136. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-Y2CYZVJY_mjs_20i4m4_._.js +3 -0
  137. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js +26 -0
  138. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js +96 -0
  139. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js +36 -0
  140. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js +3 -0
  141. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js +3 -0
  142. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js +25 -0
  143. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_1ao-jv5._.js +3 -3
  144. package/dist/.next/server/middleware-build-manifest.js +3 -3
  145. package/dist/.next/server/pages/404.html +1 -1
  146. package/dist/.next/server/pages/500.html +1 -1
  147. package/dist/.next/server/server-reference-manifest.js +1 -1
  148. package/dist/.next/server/server-reference-manifest.json +1 -1
  149. package/dist/.next/static/chunks/00h58csdfefay.js +1 -0
  150. package/dist/.next/static/chunks/01_remgex0cp2.js +1 -0
  151. package/dist/.next/static/chunks/01xjer0i_e5z5.js +15 -0
  152. package/dist/.next/static/chunks/025bmrgeukcb2.js +15 -0
  153. package/dist/.next/static/chunks/02slxciv9jt1p.js +77 -0
  154. package/dist/.next/static/chunks/04e-e--5lk26x.js +287 -0
  155. package/dist/.next/static/chunks/09nk4rn1z6j8b.js +1 -0
  156. package/dist/.next/static/chunks/0_l0vn2teso0z.js +1 -0
  157. package/dist/.next/static/chunks/0a_kuude9z_bg.js +1 -0
  158. package/dist/.next/static/chunks/0bz8pjqbx0nt7.js +1 -0
  159. package/dist/.next/static/chunks/0cnrxsj5iw5ld.js +2 -0
  160. package/dist/.next/static/chunks/0dcfqbly-089u.js +10 -0
  161. package/dist/.next/static/chunks/0dhmf6y59xjoo.js +1 -0
  162. package/dist/.next/static/chunks/{2-tnv5f86ywqz.js → 0kdfzi54utgbh.js} +1 -1
  163. package/dist/.next/static/chunks/0m-pl93u72hp9.js +1 -0
  164. package/dist/.next/static/chunks/0mkmxdnpoteey.js +1 -0
  165. package/dist/.next/static/chunks/{41ii5ld31fjk5.js → 0oyz95sujd2c7.js} +3 -3
  166. package/dist/.next/static/chunks/0p54qye85am3w.js +1 -0
  167. package/dist/.next/static/chunks/0q5tyevxl-ioe.js +1 -0
  168. package/dist/.next/static/chunks/0r79_ebje0i6_.js +1 -0
  169. package/dist/.next/static/chunks/0si45yj1su8y7.js +23 -0
  170. package/dist/.next/static/chunks/0u3ktztrzu1fa.js +1 -0
  171. package/dist/.next/static/chunks/0u9ae9k_2g7k3.js +1 -0
  172. package/dist/.next/static/chunks/{357a_3k2qrz6b.js → 0vhltcpdssl3-.js} +1 -1
  173. package/dist/.next/static/chunks/0x7n81v2cw92f.js +64 -0
  174. package/dist/.next/static/chunks/{1wsp3h55ims3-.js → 1-2_pusn4n8oh.js} +3 -3
  175. package/dist/.next/static/chunks/1-axl1a1s8xi7.js +1 -0
  176. package/dist/.next/static/chunks/14b2ne-5dycww.js +90 -0
  177. package/dist/.next/static/chunks/14osgsp3aiqpz.js +79 -0
  178. package/dist/.next/static/chunks/{2rob7uh46oj_f.js → 15e7e4t3feyih.js} +2 -2
  179. package/dist/.next/static/chunks/16mzcd_gvdgbo.js +1 -0
  180. package/dist/.next/static/chunks/1815xwa8351ma.js +1 -0
  181. package/dist/.next/static/chunks/1bzu587wut72w.js +1 -0
  182. package/dist/.next/static/chunks/1d9i8nlx-zy9a.js +62 -0
  183. package/dist/.next/static/chunks/1ebh7wwf-wzqn.js +32 -0
  184. package/dist/.next/static/chunks/1g6hadfcoz4ag.js +62 -0
  185. package/dist/.next/static/chunks/1kg8hnvdsweku.js +1 -0
  186. package/dist/.next/static/chunks/1kzq0rdlu1v0j.js +86 -0
  187. package/dist/.next/static/chunks/1qapeyh3r6cg3.js +1 -0
  188. package/dist/.next/static/chunks/1rh4z578p-h1a.js +104 -0
  189. package/dist/.next/static/chunks/1rowt7kr1tu9y.js +1 -0
  190. package/dist/.next/static/chunks/1u5i-jti87jbo.js +153 -0
  191. package/dist/.next/static/chunks/1v15lv0fcel0n.js +1 -0
  192. package/dist/.next/static/chunks/1wrwqqt23_cqy.js +94 -0
  193. package/dist/.next/static/chunks/21o6_7520je3e.js +1 -0
  194. package/dist/.next/static/chunks/221-n1wtpkus8.js +27 -0
  195. package/dist/.next/static/chunks/25pfy8u3vc_bn.js +24 -0
  196. package/dist/.next/static/chunks/266qo7h19xz_m.js +24 -0
  197. package/dist/.next/static/chunks/27ag7-c9a81uz.js +1 -0
  198. package/dist/.next/static/chunks/27vb_89qd7ag_.js +1 -0
  199. package/dist/.next/static/chunks/2b4v6n9b8htrv.js +158 -0
  200. package/dist/.next/static/chunks/2b57kmz64uj8h.js +1 -0
  201. package/dist/.next/static/chunks/2dmr54jagfdwa.css +3 -0
  202. package/dist/.next/static/chunks/2gocl3dq0_h1s.js +15 -0
  203. package/dist/.next/static/chunks/2itcfm_igcz5x.js +201 -0
  204. package/dist/.next/static/chunks/2l1phv_g29xz7.js +61 -0
  205. package/dist/.next/static/chunks/2m267diam_vib.js +22 -0
  206. package/dist/.next/static/chunks/2o4dndk0d68do.js +1 -0
  207. package/dist/.next/static/chunks/2qq7e47gpyc_e.js +82 -0
  208. package/dist/.next/static/chunks/2re701zfx-nrj.js +1 -0
  209. package/dist/.next/static/chunks/2sdwbfs1x5skp.js +1 -0
  210. package/dist/.next/static/chunks/2udhdtq_z8488.js +115 -0
  211. package/dist/.next/static/chunks/31etpuynk3lai.js +1 -0
  212. package/dist/.next/static/chunks/{05cl5ojgc4_ku.js → 32e7ex-ufg57f.js} +14 -14
  213. package/dist/.next/static/chunks/38h4_u_fq6ose.js +38 -0
  214. package/dist/.next/static/chunks/397b67vbg5iof.js +4 -0
  215. package/dist/.next/static/chunks/3her9o9_qn46y.js +226 -0
  216. package/dist/.next/static/chunks/3lx-n8v_8u7og.js +1 -0
  217. package/dist/.next/static/chunks/3mjwob-a5hhwz.js +1 -0
  218. package/dist/.next/static/chunks/3n80kknp-eoi9.js +1 -0
  219. package/dist/.next/static/chunks/3oif9bymgqjgd.js +41 -0
  220. package/dist/.next/static/chunks/3peltyinql2qj.js +34 -0
  221. package/dist/.next/static/chunks/3r7r2d2yc93-y.js +1 -0
  222. package/dist/.next/static/chunks/3s-zbm7kxc46y.js +93 -0
  223. package/dist/.next/static/chunks/3t9huugh-5_ps.js +1 -0
  224. package/dist/.next/static/chunks/3w5gsie2472pe.js +1 -0
  225. package/dist/.next/static/chunks/3zgnmu3cnahk0.js +122 -0
  226. package/dist/.next/static/chunks/41r6lojo50nzh.js +1 -0
  227. package/dist/.next/static/chunks/41uertskgrvwu.js +1 -0
  228. package/dist/.next/static/chunks/42kilhgqayez4.js +124 -0
  229. package/dist/node_modules/@img/sharp-darwin-arm64/index.cjs +1 -1
  230. package/dist/node_modules/@img/sharp-darwin-arm64/lib/{sharp-darwin-arm64-0.35.3.node → sharp-darwin-arm64-0.35.4.node} +0 -0
  231. package/dist/node_modules/@img/sharp-darwin-arm64/package.json +2 -2
  232. package/dist/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +1 -1
  233. package/dist/node_modules/@img/sharp-libvips-darwin-arm64/lib/{libvips-cpp.8.18.3.dylib → libvips-cpp.8.18.6.dylib} +0 -0
  234. package/dist/node_modules/@img/sharp-libvips-darwin-arm64/package.json +2 -2
  235. package/dist/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +13 -13
  236. package/dist/node_modules/sharp/dist/composite.cjs +6 -6
  237. package/dist/node_modules/sharp/dist/composite.mjs +6 -6
  238. package/dist/node_modules/sharp/dist/constructor.cjs +1 -1
  239. package/dist/node_modules/sharp/dist/constructor.mjs +1 -1
  240. package/dist/node_modules/sharp/dist/index.d.cts +2 -2
  241. package/dist/node_modules/sharp/dist/index.d.mts +2 -2
  242. package/dist/node_modules/sharp/dist/input.cjs +20 -15
  243. package/dist/node_modules/sharp/dist/input.mjs +20 -15
  244. package/dist/node_modules/sharp/dist/operation.cjs +4 -0
  245. package/dist/node_modules/sharp/dist/operation.mjs +4 -0
  246. package/dist/node_modules/sharp/dist/output.cjs +4 -7
  247. package/dist/node_modules/sharp/dist/output.mjs +4 -7
  248. package/dist/node_modules/sharp/dist/resize.cjs +8 -8
  249. package/dist/node_modules/sharp/dist/resize.mjs +8 -8
  250. package/dist/node_modules/sharp/package.json +38 -38
  251. package/dist/package.json +1 -1
  252. package/dist/server.js +1 -1
  253. package/package.json +1 -1
  254. package/dist/.next/server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_03i6i8q._.js +0 -82
  255. package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_1m8bey3._.js +0 -92
  256. package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_0cvy8c2._.js +0 -81
  257. package/dist/.next/server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0vzw4gu._.js +0 -117
  258. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_1kl1645._.js +0 -106
  259. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_1-btteu._.js +0 -66
  260. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0omhwqk._.js +0 -136
  261. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_052rc5y._.js +0 -81
  262. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0l8r0bx._.js +0 -3
  263. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_0c-9sj0._.js +0 -155
  264. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0hqmyh5._.js +0 -79
  265. package/dist/.next/server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_1l5rlhy._.js +0 -3
  266. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0nzxyl0._.js +0 -3
  267. package/dist/.next/server/chunks/ssr/node_modules_0-n78w2._.js +0 -17
  268. package/dist/.next/server/chunks/ssr/node_modules_00cex-8._.js +0 -3
  269. package/dist/.next/server/chunks/ssr/node_modules_07zdzg3._.js +0 -17
  270. package/dist/.next/server/chunks/ssr/node_modules_0_w_s0o._.js +0 -3
  271. package/dist/.next/server/chunks/ssr/node_modules_0chqc93._.js +0 -11
  272. package/dist/.next/server/chunks/ssr/node_modules_0i3cah4._.js +0 -17
  273. package/dist/.next/server/chunks/ssr/node_modules_0jx8vby._.js +0 -3
  274. package/dist/.next/server/chunks/ssr/node_modules_0kh3gaq._.js +0 -45
  275. package/dist/.next/server/chunks/ssr/node_modules_0oiuulr._.js +0 -3
  276. package/dist/.next/server/chunks/ssr/node_modules_0sud39z._.js +0 -3
  277. package/dist/.next/server/chunks/ssr/node_modules_0ty2qhi._.js +0 -3
  278. package/dist/.next/server/chunks/ssr/node_modules_0uvms5m._.js +0 -3
  279. package/dist/.next/server/chunks/ssr/node_modules_0xme7lg._.js +0 -3
  280. package/dist/.next/server/chunks/ssr/node_modules_0z2foqi._.js +0 -3
  281. package/dist/.next/server/chunks/ssr/node_modules_0z4gniu._.js +0 -17
  282. package/dist/.next/server/chunks/ssr/node_modules_15pczok._.js +0 -3
  283. package/dist/.next/server/chunks/ssr/node_modules_16l6ua_._.js +0 -3
  284. package/dist/.next/server/chunks/ssr/node_modules_16q2m8u._.js +0 -3
  285. package/dist/.next/server/chunks/ssr/node_modules_17rj81n._.js +0 -3
  286. package/dist/.next/server/chunks/ssr/node_modules_19b6jde._.js +0 -3
  287. package/dist/.next/server/chunks/ssr/node_modules_1_jf-yx._.js +0 -17
  288. package/dist/.next/server/chunks/ssr/node_modules_1lio4hi._.js +0 -3
  289. package/dist/.next/server/chunks/ssr/node_modules_1tj6b0h._.js +0 -3
  290. package/dist/.next/server/chunks/ssr/node_modules_1zskgct._.js +0 -26
  291. package/dist/.next/server/chunks/ssr/node_modules_20p8pl7._.js +0 -289
  292. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_01lis5y._.js +0 -3
  293. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_07fm7s3._.js +0 -3
  294. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0kitx9n._.js +0 -3
  295. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0x5ivvr._.js +0 -3
  296. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_145f4t2._.js +0 -3
  297. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1_o7dux._.js +0 -3
  298. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1alyi8-._.js +0 -3
  299. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1bxlr8e._.js +0 -3
  300. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1grmhd9._.js +0 -3
  301. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01pthdh._.js +0 -3
  302. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_03fanqm._.js +0 -3
  303. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_16vf13h._.js +0 -3
  304. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0jxv2ay._.js +0 -129
  305. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_1yyt6ej._.js +0 -7
  306. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_165ua5_._.js +0 -64
  307. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_16ac76u._.js +0 -4
  308. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_0a9kagr._.js +0 -203
  309. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_1p-51mn._.js +0 -228
  310. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0savw5-._.js +0 -121
  311. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_1vk17qr._.js +0 -12
  312. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_074844c._.js +0 -62
  313. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0u9wa-b._.js +0 -3
  314. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0w_brpy._.js +0 -3
  315. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0pzbdul._.js +0 -26
  316. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_1_cyy1q._.js +0 -82
  317. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_01y3363._.js +0 -154
  318. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_1nsv0tt._.js +0 -36
  319. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0j4-fk2._.js +0 -3
  320. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_1jvbrvq._.js +0 -25
  321. package/dist/.next/static/chunks/01nhrh-3r57wh.js +0 -1
  322. package/dist/.next/static/chunks/03regxjjibliy.js +0 -29
  323. package/dist/.next/static/chunks/059oqdb-4djh4.js +0 -1
  324. package/dist/.next/static/chunks/0bk3aw3m9c72a.js +0 -201
  325. package/dist/.next/static/chunks/0bko6sy3fi25l.js +0 -1
  326. package/dist/.next/static/chunks/0c4y7_xzemq6-.js +0 -1
  327. package/dist/.next/static/chunks/0catqiaei7kwh.js +0 -62
  328. package/dist/.next/static/chunks/0cm59yzmvnr6a.js +0 -1
  329. package/dist/.next/static/chunks/0dm2etancr7wp.js +0 -2
  330. package/dist/.next/static/chunks/0l2v1ybx0rm07.js +0 -1
  331. package/dist/.next/static/chunks/0ll25xvc8tvc7.js +0 -60
  332. package/dist/.next/static/chunks/0o19535rrdg5j.js +0 -1
  333. package/dist/.next/static/chunks/0piaur2yhvb4v.js +0 -1
  334. package/dist/.next/static/chunks/0r-qze3me8owo.js +0 -5
  335. package/dist/.next/static/chunks/0s3geiy0as3cz.js +0 -104
  336. package/dist/.next/static/chunks/0wf_g68m1dyuq.js +0 -152
  337. package/dist/.next/static/chunks/0z7hf76h0cz39.js +0 -1
  338. package/dist/.next/static/chunks/0zao0i_njogzy.js +0 -79
  339. package/dist/.next/static/chunks/11jp13p4e7ycl.js +0 -1
  340. package/dist/.next/static/chunks/12b5tf_04ca4i.js +0 -10
  341. package/dist/.next/static/chunks/13j02-7zvh70e.js +0 -1
  342. package/dist/.next/static/chunks/15746zaz9af2k.js +0 -80
  343. package/dist/.next/static/chunks/15m2ikcj71414.js +0 -1
  344. package/dist/.next/static/chunks/17y1ca1c2d1k0.js +0 -127
  345. package/dist/.next/static/chunks/17zvg7jc-nx5v.js +0 -1
  346. package/dist/.next/static/chunks/18dnd1yq8sjcm.js +0 -80
  347. package/dist/.next/static/chunks/1bi4m489puezc.js +0 -64
  348. package/dist/.next/static/chunks/1g6nbgmclpjgd.js +0 -90
  349. package/dist/.next/static/chunks/1h978hs06gqwr.js +0 -1
  350. package/dist/.next/static/chunks/1rxbddx-dyypf.js +0 -226
  351. package/dist/.next/static/chunks/1s8wltynx2kei.js +0 -24
  352. package/dist/.next/static/chunks/1un-c368y76x-.js +0 -1
  353. package/dist/.next/static/chunks/1vqrf8u3eyf8l.js +0 -1
  354. package/dist/.next/static/chunks/1x5foe7mtvd8m.js +0 -15
  355. package/dist/.next/static/chunks/20uqpnur2j1hn.js +0 -1
  356. package/dist/.next/static/chunks/24c-6p_4lbozm.js +0 -1
  357. package/dist/.next/static/chunks/24l5e3uup8rxf.js +0 -153
  358. package/dist/.next/static/chunks/26t_0sbrej8uf.js +0 -15
  359. package/dist/.next/static/chunks/27n_wru0tprv5.js +0 -4
  360. package/dist/.next/static/chunks/29x7ecuc6vybp.js +0 -1
  361. package/dist/.next/static/chunks/2dqeid-8xhwun.js +0 -93
  362. package/dist/.next/static/chunks/2f6739bq5ewxz.js +0 -34
  363. package/dist/.next/static/chunks/2fuc_smcevit1.js +0 -15
  364. package/dist/.next/static/chunks/2h7acwi-mfsrx.js +0 -1
  365. package/dist/.next/static/chunks/2ia3pig2diart.js +0 -43
  366. package/dist/.next/static/chunks/2y3wq_x8yyu_b.js +0 -115
  367. package/dist/.next/static/chunks/2zrfdnujo3u51.js +0 -1
  368. package/dist/.next/static/chunks/3-q38f64d_smq.js +0 -77
  369. package/dist/.next/static/chunks/3-t8rqn47mim5.js +0 -1
  370. package/dist/.next/static/chunks/383s4_f7pq0oz.js +0 -1
  371. package/dist/.next/static/chunks/3cnkwh7z04e3e.js +0 -24
  372. package/dist/.next/static/chunks/3cvv663zekq_n.js +0 -119
  373. package/dist/.next/static/chunks/3cyn-rs5rpay6.css +0 -3
  374. package/dist/.next/static/chunks/3mcxvhb8ujk39.js +0 -1
  375. package/dist/.next/static/chunks/3s7at3o7ube_p.js +0 -9
  376. package/dist/.next/static/chunks/3wb9uvu5ii1sy.js +0 -287
  377. package/dist/.next/static/chunks/3x5hww03ialmf.js +0 -1
  378. package/dist/.next/static/chunks/3ypwau9uw-qzz.js +0 -23
  379. package/dist/.next/static/chunks/44dlrjamdw9zn.js +0 -1
  380. /package/dist/.next/static/{OdIi-OEl7eDEMfmeeT85N → DlVVJPKPg4elb2BXd_ZVZ}/_buildManifest.js +0 -0
  381. /package/dist/.next/static/{OdIi-OEl7eDEMfmeeT85N → DlVVJPKPg4elb2BXd_ZVZ}/_clientMiddlewareManifest.js +0 -0
  382. /package/dist/.next/static/{OdIi-OEl7eDEMfmeeT85N → DlVVJPKPg4elb2BXd_ZVZ}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,921789,e=>{"use strict";var t=e.i(409843),r=e.i(369110),a=e.i(382793),o=e.i(502056),i=e.i(217248);e.i(224797),e.i(836333),e.i(29836),e.i(447804);var n=e.i(60231),d=e.i(508324),l=e.i(419524);e.i(461696);var s=e.i(915888);e.i(566661);var g=e.i(704642),h=(0,l.__name)((e,t,r)=>Math.max(t,Math.min(r,e)),"clamp"),u=(0,l.__name)((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),p=(0,l.__name)(e=>"flowchart"===e||"flowchart-v2"===e||"stateDiagram"===e||"er"===e||"classDiagram"===e,"shouldMergeSelfLoopSegments"),f=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],c=(0,l.__name)((e,t,r,a,o)=>{let i=[],n=new Set;if(r.forEach(({start:e,end:t})=>{e!==a&&n.add(e),t!==a&&n.add(t)}),n.forEach(t=>{let r=e.node(t);"number"==typeof r?.x&&"number"==typeof r?.y&&i.push(r)}),0===i.length&&r.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{"number"==typeof e?.x&&"number"==typeof e?.y&&i.push(e)})}),0===i.length)return u(o);let d=i.reduce((e,t)=>({x:e.x+t.x/i.length,y:e.y+t.y/i.length}),{x:0,y:0}),l=d.x-t.x,s=d.y-t.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":u(o)},"getSelfLoopSide"),y=(0,l.__name)((e,t="top",r=0,a=0)=>{let o=e.x,i=e.y-r,n=e.width/2,d=e.height/2,l=Math.max(36,Math.min(100,.8*e.width)),s=h(Math.max(a,.35*e.width),36,l),g=h(.45*Math.min(e.width,e.height),24,48);switch(t){case"bottom":{let e=i+d;return[{x:o-s/2,y:e},{x:o-s/2,y:e+g},{x:o+s/2,y:e+g},{x:o+s/2,y:e}]}case"right":{let e=o+n;return[{x:e,y:i-s/2},{x:e+g,y:i-s/2},{x:e+g,y:i+s/2},{x:e,y:i+s/2}]}case"left":{let e=o-n;return[{x:e,y:i-s/2},{x:e-g,y:i-s/2},{x:e-g,y:i+s/2},{x:e,y:i+s/2}]}default:{let e=i-d;return[{x:o-s/2,y:e},{x:o-s/2,y:e-g},{x:o+s/2,y:e-g},{x:o+s/2,y:e}]}}},"getSelfLoopPoints"),m=(0,l.__name)((e,t,r="top",a=0,o={})=>{let i=e.x,n=e.y-a,d=o.width??0,l=o.height??0;switch(r){case"bottom":return{x:i,y:Math.max(...t.map(e=>e.y))+l/2+4};case"right":return{x:Math.max(...t.map(e=>e.x))+d/2+4,y:n};case"left":return{x:Math.min(...t.map(e=>e.x))-d/2-4,y:n};default:return{x:i,y:Math.min(...t.map(e=>e.y))-l/2-4}}},"getSelfLoopLabelPosition"),L=(0,l.__name)((e,t=0,{mergeSelfLoops:r=!0}={})=>{let a=new Map,o=[],i=e.graph()?.rankdir;return e.edges().forEach(t=>{let i=e.edge(t);if(r&&i.selfLoop){let e=i.selfLoop.id;a.has(e)||a.set(e,[]),a.get(e).push({edge:i,start:t.v,end:t.w})}else o.push({edge:i,start:t.v,end:t.w})}),a.forEach(r=>{if(3!==r.length)return void r.forEach(e=>o.push(e));r.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[a,n,d]=r,l=a.edge.originalEdge??n.edge.originalEdge??d.edge.originalEdge??n.edge,s=e.node(l.start);if(!s)return void r.forEach(e=>o.push(e));let g={width:n.edge.width,height:n.edge.height},h=c(e,s,r,l.start,i),u=y(s,h,t,g.width??0),p=m(s,u,h,t,g),f={...n.edge,...l,id:l.id,points:u,start:l.start,end:l.end,x:p.x,y:p.y,width:g.width,height:g.height,labelStyle:n.edge.labelStyle,fromCluster:a.edge.fromCluster??n.edge.fromCluster??d.edge.fromCluster,toCluster:a.edge.toCluster??n.edge.toCluster??d.edge.toCluster};delete f.selfLoop,delete f.originalEdge,o.push({edge:f,start:f.start,end:f.end})}),o},"getEdgesToRender"),b=(0,l.__name)(async({element:e,graph:r,diagramType:n,id:s,parentCluster:g,siteConfig:h})=>{let u=r.graph().rankdir;d.log.trace("Dir in recursive render - dir:",u);let{clusters:f,edgePaths:c,edgeLabels:y,nodes:m,rootGroups:L}=(0,t.createLayoutElementGroups)(e,{edgePathsClass:"edgePaths"});r.nodes()?d.log.info("Recursive render XXX",r.nodes()):d.log.info("No nodes found for",r),r.edges().length>0&&d.log.info("Recursive edges",r.edge(r.edges()[0]));let b=p(n);await Promise.all(r.nodes().map(async function(e){let a=r.node(e);if(void 0!==g){let t=JSON.parse(JSON.stringify(g.clusterData));d.log.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",g.height),r.setNode(g.id,t),r.parent(e)||(d.log.trace("Setting parent",e,g.id),r.setParent(e,g.id,t))}if(d.log.info("(Insert) Node XXX"+e+": "+JSON.stringify(r.node(e))),a?.clusterNode){d.log.info("Cluster identified XBX",e,a.width,r.node(e));let{ranksep:t,nodesep:l}=r.graph();a.graph.setGraph({...a.graph.graph(),ranksep:t+25,nodesep:l});let g=await X({element:m,graph:a.graph,diagramType:n,id:s,parentCluster:r.node(e),siteConfig:h}),u=g.elem;(0,i.updateNodeBounds)(a,u),a.diff=g.diff||0,d.log.info("New compound node after recursive render XAX",e,"width",a.width,"height",a.height),(0,o.setNodeElem)(u,a)}else r.children(e).length>0?(d.log.trace("Cluster - the non recursive path XBX",e,a.id,a,a.width,"Graph:",r),d.log.trace((0,t.findNonClusterChild)(a.id,r)),t.clusterDb.set(a.id,{id:(0,t.findNonClusterChild)(a.id,r),node:a})):(d.log.trace("Node - the non recursive path XAX",e,m,r.node(e),u),await (0,t.insertMeasuredNode)(m,r.node(e),{config:h,dir:u}))}));let w=(0,l.__name)(async()=>{let e=r.edges().map(async function(e){let o=r.edge(e.v,e.w,e.name);if(d.log.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),d.log.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(r.edge(e))),d.log.info("Fix",t.clusterDb,"ids:",e.v,e.w,"Translating: ",t.clusterDb.get(e.v),t.clusterDb.get(e.w)),b&&o.selfLoop){if(1!==o.selfLoop.order)return;let e={...o.originalEdge,...o,id:o.selfLoop.id,startLabelLeft:o.originalEdge?.startLabelLeft??o.startLabelLeft,startLabelRight:o.originalEdge?.startLabelRight??o.startLabelRight,endLabelLeft:o.originalEdge?.endLabelLeft??o.endLabelLeft,endLabelRight:o.originalEdge?.endLabelRight??o.endLabelRight};await (0,a.insertEdgeLabel)(y,e),o.width=e.width,o.height=e.height,o.labelStyle=e.labelStyle;return}await (0,a.insertEdgeLabel)(y,o)});await Promise.all(e)},"processEdges");await w();let{subGraphTitleTotalMargin:E}=(0,o.getSubGraphTitleMargins)(h);return{elem:L,graph:r,groups:{clusters:f,edgePaths:c,edgeLabels:y,nodes:m,rootGroups:L},diagramType:n,id:s,mergeSelfLoops:b,subGraphTitleTotalMargin:E}},"measureDagreGraph"),w=(0,l.__name)(e=>{d.log.info("############################################# XXX"),d.log.info("### Layout ### XXX"),d.log.info("############################################# XXX"),(0,s.layout)(e)},"runDagreGraphLayout"),E=(0,l.__name)((e,t,r)=>{let a=e.node(t);if(!a)return;let o={...a};return a?.clusterNode?o.y=(a.y??0)+r:e.children(t).length>0?o.height=(a.height??0)+r:o.y=(a.y??0)+r/2,o},"normalizeDagreNode"),x=(0,l.__name)((e,t)=>{f.forEach(r=>{void 0!==t[r]&&(e[r]=t[r])})},"applyDagreNodeLayout"),_=(0,l.__name)((e,t,r,a)=>({...e,start:e.start??t,end:e.end??r,points:(e.points??[]).map(e=>({...e,y:"number"==typeof e.y?e.y+a:e.y}))}),"normalizeDagreEdge"),N=(0,l.__name)((e,r)=>{let{graph:a,mergeSelfLoops:o,subGraphTitleTotalMargin:i=0}=r,n=new Map(e.nodes.map(e=>[e.id,e]));(0,t.sortNodesByHierarchy)(a).forEach(e=>{let t=E(a,e,i);if(!t)return;x(a.node(e),t);let r=n.get(e);r&&x(r,t)});let d=i/2;return e.edges=L(a,d,{mergeSelfLoops:o}).map(({edge:e,start:t,end:r})=>_(e,t,r,d)),e},"applyDagreLayoutResult"),C=(0,l.__name)(async({elem:e,graph:i,groups:{clusters:n,edgePaths:l},diagramType:s,id:g,mergeSelfLoops:h,subGraphTitleTotalMargin:u})=>{let p=0;await Promise.all((0,t.sortNodesByHierarchy)(i).map(async function(e){let a=i.node(e);if(d.log.info("Position XBX => "+e+": ("+a.x,","+a.y,") width: ",a.width," height: ",a.height),a?.clusterNode)a.y+=u,d.log.info("A tainted cluster node XBX1",e,a.id,a.width,a.height,a.x,a.y,i.parent(e)),t.clusterDb.get(a.id).node=a,(0,o.positionNode)(a);else if(i.children(e).length>0){d.log.info("A pure cluster node XBX1",e,a.id,a.x,a.y,a.width,a.height,i.parent(e)),a.height+=u,i.node(a.parentId);let o=a?.padding/2||0,l=a?.labelBBox?.height||0;d.log.debug("OffsetY",l-o||0,"labelHeight",l,"halfPadding",o),await (0,r.insertCluster)(n,a),t.clusterDb.get(a.id).node=a}else{let e=i.node(a.parentId);a.y+=u/2,d.log.info("A regular node XBX1 - using the padding",a.id,"parent",a.parentId,a.width,a.height,a.x,a.y,"offsetY",a.offsetY,"parent",e,e?.offsetY,a),(0,o.positionNode)(a)}}));let f=u/2;return L(i,f,{mergeSelfLoops:h}).forEach(function({edge:e,start:r,end:o}){d.log.info("Edge "+r+" -> "+o+": "+JSON.stringify(e),e),e.points.forEach(e=>e.y+=f);let n=i.node(r),h=i.node(o),u=(0,a.insertEdge)(l,e,t.clusterDb,s,n,h,g);(0,a.positionEdgeLabel)(e,u)}),i.nodes().forEach(function(e){let t=i.node(e);d.log.info(e,t.type,t.diff),t.isGroup&&(p=t.diff)}),d.log.warn("Returning from recursive render XAX",e,p),{elem:e,diff:p}},"paintDagreLayoutCore"),X=(0,l.__name)(async e=>{let t=await b(e);return w(t.graph),await C(t)},"renderDagreSubgraph"),S=(0,l.__name)(e=>{let r=new g.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{r.setNode(e.id,{...e}),e.parentId&&r.setParent(e.id,e.parentId)}),d.log.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,a=t+"---"+t+"---1",o=t+"---"+t+"---2",i=r.node(t);r.setNode(a,{domId:a,id:a,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(a,i.parentId),r.setNode(o,{domId:o,id:o,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(o,i.parentId);let n=structuredClone(e),d=structuredClone(e),l=structuredClone(e),s=structuredClone(e);d.originalEdge=n,d.selfLoop={id:n.id,order:0},l.originalEdge=n,l.selfLoop={id:n.id,order:1},s.originalEdge=n,s.selfLoop={id:n.id,order:2},d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=t+"-cyclic-special-1",l.startLabelRight="",l.startLabelLeft="",l.endLabelLeft="",l.endLabelRight="",l.arrowTypeStart="none",l.arrowTypeEnd="none",l.id=t+"-cyclic-special-mid",s.label="",s.startLabelRight="",s.startLabelLeft="",s.arrowTypeStart="none",i.isGroup&&(d.fromCluster=t,s.toCluster=t),s.id=t+"-cyclic-special-2",s.arrowTypeStart="none",r.setEdge(t,a,d,t+"-cyclic-special-0"),r.setEdge(a,o,l,t+"-cyclic-special-1"),r.setEdge(o,t,s,t+"-cyclic-special-2")}else r.setEdge(e.start,e.end,{...e},e.id)}),(0,t.adjustClustersAndEdges)(r),{graph:r}},"prepareLayoutForDagre"),D=(0,l.__name)(async(e,{element:t,preparedLayout:r})=>{let a=r??S(e),o=(0,n.getConfig2)(),i=await b({element:t,graph:a.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:o});return a.measuredLayout=i,i},"measureDagreLayout"),v=(0,l.__name)((e,t)=>{let r=t.preparedLayout?.measuredLayout;if(!r)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return w(r.graph),N(e,r),r},"runDagreLayoutCore"),R=(0,l.__name)((e,{measure:r})=>(0,t.sortNodesByHierarchy)(r.graph).map(e=>r.graph.node(e)).filter(Boolean),"getDagrePaintNodes"),B=(0,l.__name)((e,t,{measure:r})=>e?r.graph.node(e):void 0,"getDagreEdgeNode"),M=(0,t.createCommonLayoutRenderer)({prepareLayout:S,measureLayout:D,runLayoutCore:v,paintOptions:{clusterDb:t.clusterDb,getNodes:R,getEdgeNode:B,skipNode:(0,l.__name)((e,{measure:t})=>!t.graph.hasNode(e.id),"skipNode"),isCluster:(0,l.__name)((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,"isCluster")}});e.s(["applyDagreLayoutResult",0,N,"getEdgesToRender",0,L,"measureDagreLayout",0,D,"prepareLayoutForDagre",0,S,"render",0,M,"runDagreLayoutCore",0,v])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,164709,e=>{"use strict";var i=e.i(682954);e.i(951773),e.s([],659924),e.i(659924),e.s(["createRailroadPegServices",()=>i.createRailroadPegServices],164709)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,839484,t=>{t.v(t=>Promise.resolve().then(()=>t(716400)))},350117,t=>{t.v(e=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(e=>t.l(e))).then(()=>e(36245)))},382528,t=>{t.v(e=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/2qe97b2xjvm_s.js"].map(e=>t.l(e))).then(()=>e(868938)))},705108,t=>{t.v(e=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(e=>t.l(e))).then(()=>e(121437)))},143904,t=>{t.v(e=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(e=>t.l(e))).then(()=>e(482661)))},409843,t=>{"use strict";var e=t.i(369110),a=t.i(382793),i=t.i(502056),s=t.i(217248),r=t.i(447804),l=t.i(60231),n=t.i(508324),o=t.i(419524);t.i(566661);var d=t.i(704642);function c(t,{edgePathsClass:e="edges edgePaths"}={}){let a=t.insert("g").attr("class","root"),i=a.insert("g").attr("class","clusters");return{clusters:i,edgePaths:a.insert("g").attr("class",e),edgeLabels:a.insert("g").attr("class","edgeLabels"),nodes:a.insert("g").attr("class","nodes"),rootGroups:a}}async function h(t,e){if(e.label){let{shapeSvg:a,bbox:i}=await (0,s.labelHelper)(t,e);e.labelBBox={width:i.width,height:i.height},a.remove()}else e.labelBBox={width:0,height:0}}async function g(t,e,a){let s=await (0,i.insertNode)(t,e,a),r=s.node()?.getBBox()??{width:0,height:0};return e.width=r.width,e.height=r.height,s}async function u(e,i){let s=new d.Graph({multigraph:!0,compound:!0}),r=[...i.edges],n=(0,l.getConfig2)(),o=c(e),{edgeLabels:u,nodes:f}=o,p=new Map,m=null!=e.node();for(let t of(await Promise.all(i.nodes.map(async t=>{if(t.isGroup)m&&await h(f,t),s.setNode(t.id,{...t});else{if(m){let e=await g(f,t,{config:n,dir:t.dir});p.set(t.id,e)}s.setNode(t.id,{...t})}})),r))m&&(0,a.hasEdgeLabel)(t)&&await (0,a.insertEdgeLabel)(u,t),s.setEdge(t.start,t.end,{...t},t.id),i.edges.some(e=>e.id===t.id)||i.edges.push(t);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:a}=await t.A(483976);a(e,i)}return{graph:s,groups:o,nodeElements:p}}(0,o.__name)(c,"createLayoutElementGroups"),(0,o.__name)(h,"measureGroupLabel"),(0,o.__name)(g,"insertMeasuredNode"),(0,o.__name)(u,"createGraphWithElements");var f=new Map,p=new Map,m=new Map,w=(0,o.__name)(()=>{p.clear(),m.clear(),f.clear()},"clear"),y=(0,o.__name)((t,e)=>{let a=p.get(e)||[];return n.log.trace("In isDescendant",e," ",t," = ",a.includes(t)),a.includes(t)},"isDescendant"),k=(0,o.__name)((t,e)=>{let a=p.get(e)||[];return n.log.info("Descendants of ",e," is ",a),n.log.info("Edge is ",t),t.v!==e&&t.w!==e&&(a.includes(t.v)||y(t.v,e)||y(t.w,e)||a.includes(t.w))},"edgeInCluster"),_=(0,o.__name)((t,e,a,i)=>{n.log.debug("Copying children of ",t,"root",i,"data",e.node(t),i);let s=e.children(t)||[];t!==i&&s.push(t),n.log.debug("Copying (nodes) clusterId",t,"nodes",s),s.forEach(s=>{if(e.children(s).length>0)_(s,e,a,i);else{let r=e.node(s);n.log.info("cp ",s," to ",i," with parent ",t),a.setNode(s,r),i!==e.parent(s)&&(n.log.debug("Setting parent",s,e.parent(s)),a.setParent(s,e.parent(s))),t!==i&&s!==t?(n.log.debug("Setting parent",s,t),a.setParent(s,t)):(n.log.info("In copy ",t,"root",i,"data",e.node(t),i),n.log.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==i,"node!==clusterId",s!==t));let l=e.edges(s);n.log.debug("Copying Edges",l),l.forEach(s=>{n.log.info("Edge",s);let r=e.edge(s.v,s.w,s.name);n.log.info("Edge data",r,i);try{k(s,i)?(n.log.info("Copying as ",s.v,s.w,r,s.name),a.setEdge(s.v,s.w,r,s.name),n.log.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):n.log.info("Skipping copy of edge ",s.v,"-->",s.w," rootId: ",i," clusterId:",t)}catch(t){n.log.error(t)}})}n.log.debug("Removing node",s),e.removeNode(s)})},"copy"),b=(0,o.__name)((t,e)=>{let a=e.children(t),i=[...a];for(let s of a)m.set(s,t),i=[...i,...b(s,e)];return i},"extractDescendants"),v=(0,o.__name)((t,e,a)=>{let i=t.edges().filter(t=>t.v===e||t.w===e),s=t.edges().filter(t=>t.v===a||t.w===a),r=i.map(t=>({v:t.v===e?a:t.v,w:t.w===e?e:t.w})),l=s.map(t=>({v:t.v,w:t.w}));return r.filter(t=>l.some(e=>t.v===e.v&&t.w===e.w))},"findCommonEdges"),x=(0,o.__name)((t,e,a)=>{let i,s=e.children(t);if(n.log.trace("Searching children of id ",t,s),s.length<1)return t;for(let t of s){let s=x(t,e,a),r=v(e,a,s);if(s)if(!(r.length>0))return s;else i=s}return i},"findNonClusterChild"),j=(0,o.__name)(t=>f.has(t)&&f.get(t).externalConnections&&f.has(t)?f.get(t).id:t,"getAnchorId"),C=(0,o.__name)((t,e)=>{if(!t||e>10)return void n.log.debug("Opting out, no graph ");for(let e of(n.log.debug("Opting in, graph "),t.nodes().forEach(function(e){t.children(e).length>0&&(n.log.debug("Cluster identified",e," Replacement id in edges: ",x(e,t,e)),p.set(e,b(e,t)),f.set(e,{id:x(e,t,e),clusterData:t.node(e)}))}),t.nodes().forEach(function(e){let a=t.children(e),i=t.edges();a.length>0?(n.log.debug("Cluster identified",e,p),i.forEach(t=>{y(t.v,e)^y(t.w,e)&&(n.log.debug("Edge: ",t," leaves cluster ",e),n.log.debug("Descendants of XXX ",e,": ",p.get(e)),f.get(e).externalConnections=!0)})):n.log.debug("Not a cluster ",e,p)}),f.keys())){let a=f.get(e).id,i=t.parent(a);i!==e&&f.has(i)&&!f.get(i).externalConnections&&(f.get(e).id=i);let s=t.edges().some(t=>t.v===e);if(a&&f.get(e)?.externalConnections&&s&&N(t,a,e)){let i=q(t,e,t.parent(a));i&&(f.get(e).id=i)}}t.edges().forEach(function(e){let a=t.edge(e);n.log.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),n.log.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let i=e.v,s=e.w;if(n.log.debug("Fix XXX",f,"ids:",e.v,e.w,"Translating: ",f.get(e.v)," --- ",f.get(e.w)),f.get(e.v)||f.get(e.w)){if(n.log.debug("Fixing and trying - removing XXX",e.v,e.w,e.name),i=j(e.v),s=j(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v){let s=t.parent(i);f.get(s).externalConnections=!0,a.fromCluster=e.v}if(s!==e.w){let i=t.parent(s);f.get(i).externalConnections=!0,a.toCluster=e.w}n.log.debug("Fix Replacing with XXX",i,s,e.name),t.setEdge(i,s,a,e.name)}}),L(t,0),n.log.trace(f)},"adjustClustersAndEdges"),L=(0,o.__name)((t,e)=>{if(e>10)return void n.log.error("Bailing out");let a=t.nodes(),i=!1;for(let e of a){let a=t.children(e);i=i||a.length>0}if(!i)return void n.log.debug("Done, no node has children",t.nodes());for(let i of(n.log.debug("Nodes = ",a,e),a))if(n.log.debug("Extracting node",i,f,f.has(i)&&!f.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),f.has(i))if(!f.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){n.log.debug("Cluster without external connections, without a parent and with children",i,e);let a="TB"===t.graph().rankdir?"LR":"TB";f.get(i)?.clusterData?.dir&&(a=f.get(i).clusterData.dir,n.log.debug("Fixing dir",f.get(i).clusterData.dir,a));let s=new d.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});_(i,t,s,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:s})}else n.log.debug("Cluster ** ",i," **not meeting the criteria !externalConnections:",!f.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),n.log.debug(f);else n.log.debug("Not a cluster",i,e);for(let i of(a=t.nodes(),n.log.debug("New list of nodes",a),a)){let a=t.node(i);n.log.debug(" Now next level",i,a),a?.clusterNode&&L(a.graph,e+1)}},"extractor"),P=(0,o.__name)((t,e)=>{if(0===e.length)return[];let a=Object.assign([],e);return e.forEach(e=>{let i=t.children(e),s=P(t,i);a=[...a,...s]}),a},"sorter"),E=(0,o.__name)(t=>P(t,t.children()),"sortNodesByHierarchy"),N=(0,o.__name)((t,e,a)=>{let i=t.parent(e);for(;i&&i!==a;){let e=f.get(i);if(e&&!e.externalConnections)return!0;i=t.parent(i)}return!1},"isNodeInExtractableCluster"),q=(0,o.__name)((t,e,a)=>{for(let i of t.children(e)??[]){if(i===a||y(i,a))continue;let s=x(i,t,e);if(s&&!N(t,s,e))return s}return null},"findSafeAnchorNode");function B({prepareLayout:t,measureLayout:e,runLayoutCore:i,paintLayout:s,afterPaint:r,paintOptions:l}){let n=e??D;return(0,o.__name)(async function(e,o,d,c){let h=o.select("g");(d?.insertMarkers??a.markers_default)(h,e.markers,e.type,e.diagramId),S();let g={element:h,helpers:d,options:c};g.preparedLayout=await t?.(e,g);let u=await n(e,g),f=await i(e,g),p={...g,measure:u};s?await s(e,p,f):await T(e,p,l),await r?.(e,p,f)},"render")}function S(){(0,i.clear)(),(0,a.clear)(),(0,e.clear)(),w()}async function D(t,{element:e}){return await u(e,t)}async function T(t,e,a={}){let{measure:i}=e,{groups:s}=i;for(let i of a.getNodes?.(t,e)??t.nodes)a.skipNode?.(i,e)||await $(s,i,e,a);let r=M(t.nodes);for(let i of t.edges)z(i,a)||await I(s,i,r,t,a,e)}async function $(t,a,s,r){a.clusterNode?(0,i.positionNode)(a):R(a,s,r)?await (0,e.insertCluster)(t.clusters,a):(0,i.positionNode)(a)}function R(t,e,a){return!0===t.isGroup&&(a.isCluster?.(t,e)??!0)}function M(t){let e=new Map;for(let a of t)a?.id&&e.set(a.id,a);return e}function z(t,e){return t.isLayoutOnly||!!e.skipEdge?.(t)}async function I(t,e,i,s,r,l){let n=(0,a.insertEdge)(t.edgePaths,{...e},r.clusterDb??new Map,s.type,G(e.start,e,i,l,r),G(e.end,e,i,l,r),s.diagramId,X(e,r));(0,a.hasEdgeLabel)(e)&&(a.edgeLabels.has(e.id)||await (0,a.insertEdgeLabel)(t.edgeLabels,e),A(e,n))}function G(t,e,a,i,s){return s.getEdgeNode?.(t,e,i)??(t?a.get(t)??{}:{})}function X(t,e){return"function"==typeof e.skipIntersect?e.skipIntersect(t):e.skipIntersect??!1}function A(t,e){let s=e?.updatedPath??e?.originalPath,o=(0,l.getConfig)(),{subGraphTitleTotalMargin:d}=(0,i.getSubGraphTitleMargins)({flowchart:o.flowchart??{}});if(t.label){let i=a.edgeLabels.get(t.id),l=t.x,o=t.y;if(s){let a=r.utils_default.calcLabelPosition(s);n.log.debug("Moving label "+t.label+" from (",l,",",o,") to (",a.x,",",a.y,") abc88"),e?.updatedPath&&(l=a.x,o=a.y)}i.attr("transform",`translate(${l}, ${o+d/2})`)}if(t?.startLabelLeft){let e=a.terminalLabels.get(t.id).startLeft,i=t?.x,l=t?.y;if(s){let e=r.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",s);i=e.x,l=e.y}e.attr("transform",`translate(${i}, ${l})`)}if(t.startLabelRight){let e=a.terminalLabels.get(t.id).startRight,i=t.x,l=t.y;if(s){let e=r.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",s);i=e.x,l=e.y}e.attr("transform",`translate(${i}, ${l})`)}if(t.endLabelLeft){let e=a.terminalLabels.get(t.id).endLeft,i=t.x,l=t.y;if(s){let e=r.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",s);i=e.x,l=e.y}e.attr("transform",`translate(${i}, ${l})`)}if(t.endLabelRight){let e=a.terminalLabels.get(t.id).endRight,i=t.x,l=t.y;if(s){let e=r.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",s);i=e.x,l=e.y}e.attr("transform",`translate(${i}, ${l})`)}}(0,o.__name)(B,"createCommonLayoutRenderer"),(0,o.__name)(S,"clearLayoutRenderState"),(0,o.__name)(D,"defaultMeasureLayout"),(0,o.__name)(T,"paintLayoutData"),(0,o.__name)($,"paintLayoutNode"),(0,o.__name)(R,"shouldPaintAsCluster"),(0,o.__name)(M,"buildNodeLookup"),(0,o.__name)(z,"shouldSkipPaintEdge"),(0,o.__name)(I,"paintLayoutEdge"),(0,o.__name)(G,"getRenderedNode"),(0,o.__name)(X,"shouldSkipIntersect"),(0,o.__name)(A,"positionRenderedEdgeLabel"),t.s(["adjustClustersAndEdges",0,C,"clearLayoutRenderState",0,S,"clusterDb",0,f,"createCommonLayoutRenderer",0,B,"createLayoutElementGroups",0,c,"defaultMeasureLayout",0,D,"findNonClusterChild",0,x,"insertMeasuredNode",0,g,"paintLayoutData",0,T,"sortNodesByHierarchy",0,E])},696017,t=>{"use strict";var e=t.i(60231),a=t.i(419524);t.i(947716);var i=t.i(723685),s=(0,a.__name)(t=>{let{securityLevel:a}=(0,e.getConfig2)(),s=(0,i.select)("body");if("sandbox"===a){let e=(0,i.select)(`#i${t}`),a=e.node()?.contentDocument??document;s=(0,i.select)(a.body)}return s.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,s])},502056,t=>{"use strict";var e=t.i(217248),a=t.i(447804),i=t.i(508324),s=t.i(419524),r=(0,s.__name)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,a=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:e+a}},"getSubGraphTitleMargins"),l=new Map;async function n(t,i,s){let r,n;"rect"===i.shape&&(i.rx&&i.ry?i.shape="roundedRect":i.shape="squareRect");let o=i.shape?e.shapes[i.shape]:void 0;if(!o)throw Error(`No such shape: ${i.shape}. Please check your syntax.`);if(i.link){let e;"sandbox"===s.config.securityLevel?e="_top":i.linkTarget&&(e=i.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",i.link).attr("target",e??null),n=await o(r,i,s)}else r=n=await o(t,i,s);return r.attr("data-look",(0,a.handleUndefinedAttr)(i.look)),i.tooltip&&n.attr("title",i.tooltip),l.set(i.id,r),i.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}(0,s.__name)(n,"insertNode");var o=(0,s.__name)((t,e)=>{l.set(e.id,t)},"setNodeElem"),d=(0,s.__name)(()=>{l.clear()},"clear"),c=(0,s.__name)(t=>{let e=l.get(t.id);i.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["clear",0,d,"getSubGraphTitleMargins",0,r,"insertNode",0,n,"positionNode",0,c,"setNodeElem",0,o])},369110,t=>{"use strict";var e=t.i(502056),a=t.i(217248),i=t.i(224797),s=t.i(836333),r=t.i(60231),l=t.i(508324),n=t.i(419524);t.i(947716);var o=t.i(723685),d=t.i(883272),c=(0,n.__name)(async(t,e)=>{let n,c,h=(0,r.getConfig2)(),{themeVariables:g,handDrawnSeed:u}=h,{clusterBkg:f,clusterBorder:p}=g,{labelStyles:m,nodeStyles:w,borderStyles:y,backgroundStyles:k}=(0,i.styles2String)(e),_=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),b=(0,r.evaluate)(h.flowchart.htmlLabels),v="LR"===e.direction,x=_.insert("g").attr("class","cluster-label swimlane-label"),j=await (0,s.createText)(x,e.label,{style:e.labelStyle,useHtmlLabels:b,isNode:!0,width:e.width}),C=j.getBBox();if(b){let t=j.children[0],e=(0,o.select)(j);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}let L=e.padding??0,P=e.width<=C.width+L?C.width+L:e.width;e.width<=C.width+L?e.diff=(P-e.width)/2-L:e.diff=-L;let E=e.height,N=e.y-E/2,q=e.y+E/2,B=e.x-P/2,S=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:N+E/3,D=4*!!v,T=C.height+2*D;if(v){let t=Math.max(T,C.height+2*D),a=B+t,s=Math.max(0,P-t);if("handDrawn"===e.look){let r=d.default.svg(_),l=(0,i.userNodeOverrides)(e,{roughness:.7,fill:f,stroke:p,fillWeight:3,seed:u}),o=(0,i.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:p,seed:u}),h=r.rectangle(B,N,t,E,l);n=_.insert(()=>h,":first-child");let g=r.rectangle(a,N,s,E,o);c=_.insert(()=>g,":first-child"),n.select("path:nth-child(2)").attr("style",y.join(";")),n.select("path").attr("style",k.join(";").replace("fill","stroke"))}else n=_.insert("rect",":first-child"),c=_.insert("rect",":first-child"),n.attr("class","swimlane-title").attr("style",w).attr("x",B).attr("y",N).attr("width",t).attr("height",E).attr("fill",f).attr("stroke",p),c.attr("class","swimlane-body").attr("style",w).attr("x",a).attr("y",N).attr("width",s).attr("height",E).attr("fill","none").attr("stroke",p);let r=B+t/2,l=e.y;x.attr("transform",`translate(${r}, ${l}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{let t=Math.min(T,Math.max(0,S-N)),a=N+t,s=Math.max(0,q-a),r=e.x-P/2;if("handDrawn"===e.look){let l=d.default.svg(_),o=(0,i.userNodeOverrides)(e,{roughness:.7,fill:f,stroke:p,fillWeight:3,seed:u}),h=(0,i.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:p,seed:u}),g=l.rectangle(r,N,P,t,o);n=_.insert(()=>g,":first-child");let m=l.rectangle(r,a,P,s,h);c=_.insert(()=>m,":first-child"),n.select("path:nth-child(2)").attr("style",y.join(";")),n.select("path").attr("style",k.join(";").replace("fill","stroke"))}else n=_.insert("rect",":first-child"),c=_.insert("rect",":first-child"),n.attr("class","swimlane-title").attr("style",w).attr("x",r).attr("y",N).attr("width",P).attr("height",t).attr("fill",f).attr("stroke",p),c.attr("class","swimlane-body").attr("style",w).attr("x",r).attr("y",a).attr("width",P).attr("height",s).attr("fill","none").attr("stroke",p);let l=e.x-C.width/2,o=N+(t-C.height)/2;x.attr("transform",`translate(${l}, ${o})`)}if(l.log.trace("Swimlane data ",e,JSON.stringify(e)),m){let t=x.select("span");t&&t.attr("style",m)}return e.offsetX=0,e.width=P,e.height=E,e.offsetY=C.height-L/2,e.intersect=function(t){return(0,a.intersect_rect_default)(e,t)},{cluster:_,labelBBox:C}},"swimlane"),h=(0,n.__name)(async(t,n)=>{let c,h;l.log.info("Creating subgraph rect for ",n.id,n);let g=(0,r.getConfig2)(),{themeVariables:u,handDrawnSeed:f}=g,{clusterBkg:p,clusterBorder:m}=u,{labelStyles:w,nodeStyles:y,borderStyles:k,backgroundStyles:_}=(0,i.styles2String)(n),b=t.insert("g").attr("class","cluster "+n.cssClasses).attr("id",n.domId).attr("data-look",n.look),v=(0,r.getEffectiveHtmlLabels)(g),x=b.insert("g").attr("class","cluster-label "),j=(c="markdown"===n.labelType?await (0,s.createText)(x,n.label,{style:n.labelStyle,useHtmlLabels:v,isNode:!0,width:n.width}):await (0,a.createLabel_default)(x,n.label,n.labelStyle||"",!1,!0)).getBBox();if((0,r.getEffectiveHtmlLabels)(g)){let t=c.children[0],e=(0,o.select)(c);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let C=n.width<=j.width+n.padding?j.width+n.padding:n.width;n.width<=j.width+n.padding?n.diff=(C-n.width)/2-n.padding:n.diff=-n.padding;let L=n.height,P=n.x-C/2,E=n.y-L/2;if(l.log.trace("Data ",n,JSON.stringify(n)),"handDrawn"===n.look){let t=d.default.svg(b),e=(0,i.userNodeOverrides)(n,{roughness:.7,fill:p,stroke:m,fillWeight:3,seed:f}),s=t.path((0,a.createRoundedRectPathD)(P,E,C,L,0),e);(h=b.insert(()=>(l.log.debug("Rough node insert CXC",s),s),":first-child")).select("path:nth-child(2)").attr("style",k.join(";")),h.select("path").attr("style",_.join(";").replace("fill","stroke"))}else(h=b.insert("rect",":first-child")).attr("style",y).attr("rx",n.rx).attr("ry",n.ry).attr("x",P).attr("y",E).attr("width",C).attr("height",L);let{subGraphTitleTopMargin:N}=(0,e.getSubGraphTitleMargins)(g);if(x.attr("transform",`translate(${n.x-j.width/2}, ${n.y-n.height/2+N})`),w){let t=x.select("span");t&&t.attr("style",w)}let q=h.node().getBBox();return n.offsetX=0,n.width=q.width,n.height=q.height,n.offsetY=j.height-n.padding/2,n.intersect=function(t){return(0,a.intersect_rect_default)(n,t)},{cluster:b,labelBBox:j}},"rect"),g=(0,n.__name)((t,e)=>{let i=t.insert("g").attr("class","note-cluster").attr("id",e.domId),s=i.insert("rect",":first-child"),r=0*e.padding,l=r/2;s.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-l).attr("y",e.y-e.height/2-l).attr("width",e.width+r).attr("height",e.height+r).attr("fill","none");let n=s.node().getBBox();return e.width=n.width,e.height=n.height,e.intersect=function(t){return(0,a.intersect_rect_default)(e,t)},{cluster:i,labelBBox:{width:0,height:0}}},"noteGroup"),u=(0,n.__name)(async(t,e)=>{let i,s=(0,r.getConfig2)(),{themeVariables:l,handDrawnSeed:n}=s,{altBackground:c,compositeBackground:h,compositeTitleBackground:g,nodeBorder:u}=l,f=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),p=f.insert("g",":first-child"),m=f.insert("g").attr("class","cluster-label"),w=f.append("rect"),y=await (0,a.createLabel_default)(m,e.label,e.labelStyle,void 0,!0),k=y.getBBox();if((0,r.getEffectiveHtmlLabels)(s)){let t=y.children[0],e=(0,o.select)(y);k=t.getBoundingClientRect(),e.attr("width",k.width),e.attr("height",k.height)}let _=0*e.padding,b=(e.width<=k.width+e.padding?k.width+e.padding:e.width)+_;e.width<=k.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height+_,x=e.height+_-k.height-6,j=e.x-b/2,C=e.y-v/2;e.width=b;let L=e.y-e.height/2-_/2+k.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),s=d.default.svg(f),r=e.rx||e.ry?s.path((0,a.createRoundedRectPathD)(j,C,b,v,10),{roughness:.7,fill:g,fillStyle:"solid",stroke:u,seed:n}):s.rectangle(j,C,b,v,{seed:n});i=f.insert(()=>r,":first-child");let l=s.rectangle(j,L,b,x,{fill:t?c:h,fillStyle:t?"hachure":"solid",stroke:u,seed:n});i=f.insert(()=>r,":first-child"),w=f.insert(()=>l)}else(i=p.insert("rect",":first-child")).attr("class","outer").attr("x",j).attr("y",C).attr("width",b).attr("height",v).attr("data-look",e.look),w.attr("class","inner").attr("x",j).attr("y",L).attr("width",b).attr("height",x);return m.attr("transform",`translate(${e.x-k.width/2}, ${C+1-3*!(0,r.getEffectiveHtmlLabels)(s)})`),e.height=i.node().getBBox().height,e.offsetX=0,e.offsetY=k.height-e.padding/2,e.labelBBox=k,e.intersect=function(t){return(0,a.intersect_rect_default)(e,t)},{cluster:f,labelBBox:k}},"roundedWithTitle"),f=(0,n.__name)(async(t,n)=>{let c;l.log.info("Creating subgraph rect for ",n.id,n);let h=(0,r.getConfig2)(),{themeVariables:g,handDrawnSeed:u}=h,{clusterBkg:f,clusterBorder:p}=g,{labelStyles:m,nodeStyles:w,borderStyles:y,backgroundStyles:k}=(0,i.styles2String)(n),_=t.insert("g").attr("class","cluster "+n.cssClasses).attr("id",n.domId).attr("data-look",n.look),b=(0,r.getEffectiveHtmlLabels)(h),v=_.insert("g").attr("class","cluster-label "),x=await (0,s.createText)(v,n.label,{style:n.labelStyle,useHtmlLabels:b,isNode:!0,width:n.width}),j=x.getBBox();if((0,r.getEffectiveHtmlLabels)(h)){let t=x.children[0],e=(0,o.select)(x);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let C=n.width<=j.width+n.padding?j.width+n.padding:n.width;n.width<=j.width+n.padding?n.diff=(C-n.width)/2-n.padding:n.diff=-n.padding;let L=n.height,P=n.x-C/2,E=n.y-L/2;if(l.log.trace("Data ",n,JSON.stringify(n)),"handDrawn"===n.look){let t=d.default.svg(_),e=(0,i.userNodeOverrides)(n,{roughness:.7,fill:f,stroke:p,fillWeight:4,seed:u}),s=t.path((0,a.createRoundedRectPathD)(P,E,C,L,n.rx),e);(c=_.insert(()=>(l.log.debug("Rough node insert CXC",s),s),":first-child")).select("path:nth-child(2)").attr("style",y.join(";")),c.select("path").attr("style",k.join(";").replace("fill","stroke"))}else(c=_.insert("rect",":first-child")).attr("style",w).attr("rx",n.rx).attr("ry",n.ry).attr("x",P).attr("y",E).attr("width",C).attr("height",L);let{subGraphTitleTopMargin:N}=(0,e.getSubGraphTitleMargins)(h);if(v.attr("transform",`translate(${n.x-j.width/2}, ${n.y-n.height/2+N})`),m){let t=v.select("span");t&&t.attr("style",m)}let q=c.node().getBBox();return n.offsetX=0,n.width=q.width,n.height=q.height,n.offsetY=j.height-n.padding/2,n.intersect=function(t){return(0,a.intersect_rect_default)(n,t)},{cluster:_,labelBBox:j}},"kanbanSection"),p={rect:h,squareRect:h,roundedWithTitle:u,noteGroup:g,divider:(0,n.__name)((t,e)=>{let i,{themeVariables:s,handDrawnSeed:l}=(0,r.getConfig2)(),{nodeBorder:n}=s,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=o.insert("g",":first-child"),h=0*e.padding,g=e.width+h;e.diff=-e.padding;let u=e.height+h,f=e.x-g/2,p=e.y-u/2;if(e.width=g,"handDrawn"===e.look){let t=d.default.svg(o).rectangle(f,p,g,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:l});i=o.insert(()=>t,":first-child")}else{i=c.insert("rect",":first-child");let t="outer";e.look,t="divider",i.attr("class",t).attr("x",f).attr("y",p).attr("width",g).attr("height",u).attr("data-look",e.look)}return e.height=i.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,a.intersect_rect_default)(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:f,swimlane:c},m=new Map,w=(0,n.__name)(async(t,e)=>{let a=e.shape||"rect",i=await p[a](t,e);return m.set(e.id,i),i},"insertCluster"),y=(0,n.__name)(()=>{m=new Map},"clear");t.s(["clear",0,y,"insertCluster",0,w])},121292,t=>{"use strict";var e=t.i(369110),a=t.i(382793),i=t.i(502056),s=t.i(217248),r=t.i(447804),l=t.i(60231),n=t.i(508324),o=t.i(419524),d={common:l.common_default,getConfig:l.getConfig,insertCluster:e.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:i.insertNode,interpolateToCurve:r.interpolateToCurve,labelHelper:s.labelHelper,log:n.log,positionEdgeLabel:a.positionEdgeLabel},c={},h=(0,o.__name)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,o.__name)(()=>{h([{name:"dagre",loader:(0,o.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,o.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,o.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var g=(0,o.__name)(async(t,e)=>{if(!(t.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let a=e.domId||e.id;e.domId=`${t.diagramId}-${a}`}let a=c[t.layoutAlgorithm],i=await a.loader(),{theme:s,themeVariables:r}=t.config,{useGradient:l,gradientStart:n,gradientStop:o}=r,h=e.attr("id");if(e.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s?.includes("dark")?"#FFFFFF":"#000000"}`),l){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}return i.render(t,e,d,{algorithm:a.algorithm})},"render"),u=(0,o.__name)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return n.log.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,u,"registerLayoutLoaders",0,h,"render",0,g])},110338,t=>{t.v(e=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(e=>t.l(e))).then(()=>e(59618)))},4699,t=>{t.v(e=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(e=>t.l(e))).then(()=>e(595016)))},208503,t=>{t.v(e=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/2qe97b2xjvm_s.js"].map(e=>t.l(e))).then(()=>e(752312)))},342649,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(e=>t.l(e))).then(()=>e(447429)))},555153,t=>{t.v(e=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(e=>t.l(e))).then(()=>e(921789)))},121563,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(e=>t.l(e))).then(()=>e(52278)))},775281,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(e=>t.l(e))).then(()=>e(75306)))},840094,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(e=>t.l(e))).then(()=>e(958133)))},806739,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(e=>t.l(e))).then(()=>e(486182)))},725135,t=>{t.v(e=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(e=>t.l(e))).then(()=>e(271981)))},257999,t=>{t.v(e=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(e=>t.l(e))).then(()=>e(954776)))},126038,t=>{t.v(e=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(e=>t.l(e))).then(()=>e(868948)))},299022,t=>{t.v(e=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(e=>t.l(e))).then(()=>e(595502)))},216587,t=>{t.v(e=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(e=>t.l(e))).then(()=>e(222024)))},405760,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(e=>t.l(e))).then(()=>e(896515)))},937084,t=>{t.v(e=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(e=>t.l(e))).then(()=>e(722875)))},223045,t=>{t.v(e=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(e=>t.l(e))).then(()=>e(239077)))},104423,t=>{t.v(e=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(e=>t.l(e))).then(()=>e(547384)))},847615,t=>{t.v(e=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(e=>t.l(e))).then(()=>e(980953)))},265584,t=>{t.v(e=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(e=>t.l(e))).then(()=>e(582576)))},121612,t=>{t.v(e=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(e=>t.l(e))).then(()=>e(724854)))},761201,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(e=>t.l(e))).then(()=>e(537834)))},480988,t=>{t.v(e=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(e=>t.l(e))).then(()=>e(713179)))},780947,t=>{t.v(e=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(e=>t.l(e))).then(()=>e(354077)))},775900,t=>{t.v(e=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(e=>t.l(e))).then(()=>e(207851)))},650519,t=>{t.v(e=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(e=>t.l(e))).then(()=>e(621500)))},654159,t=>{t.v(e=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(e=>t.l(e))).then(()=>e(801891)))},483976,t=>{t.v(e=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(e=>t.l(e))).then(()=>e(122015)))},99530,t=>{t.v(e=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(e=>t.l(e))).then(()=>e(757018)))},633604,t=>{t.v(e=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(e=>t.l(e))).then(()=>e(196572)))},12782,t=>{t.v(e=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(e=>t.l(e))).then(()=>e(619325)))},868278,t=>{t.v(e=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(e=>t.l(e))).then(()=>e(557786)))},9691,t=>{t.v(e=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(e=>t.l(e))).then(()=>e(254768)))},539575,t=>{t.v(e=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(e=>t.l(e))).then(()=>e(263487)))},85919,t=>{t.v(e=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(e=>t.l(e))).then(()=>e(353883)))},437446,t=>{t.v(e=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(e=>t.l(e))).then(()=>e(819125)))}]);
@@ -0,0 +1,62 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,217248,t=>{"use strict";var e=t.i(224797),a=t.i(836333),l=t.i(29836),r=t.i(447804),i=t.i(60231),n=t.i(508324),s=t.i(419524);t.i(947716);var h=t.i(723685),o=t.i(883272);async function d(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!c(t);await Promise.all([...e].map(t=>new Promise(e=>{function l(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,i.getConfig2)().fontSize?(0,i.getConfig2)().fontSize:window.getComputedStyle(document.body).fontSize,[a=i.defaultConfig_default.fontSize]=(0,r.parseFontSize)(e),l=5*a+"px";t.style.minWidth=l,t.style.maxWidth=l}else t.style.width="100%";e(t)}(0,s.__name)(l,"setupImage"),setTimeout(()=>{t.complete&&l()}),t.addEventListener("error",l),t.addEventListener("load",l)})))}function c(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(c)}(0,s.__name)(d,"configureLabelImages"),(0,s.__name)(c,"hasTextBesidesImages");var g=(0,s.__name)(async(t,e,l)=>{let n=(0,i.getConfig2)(),s=t.insert("g").attr("class",l??"node default").attr("id",e.domId||e.id),o=s.insert("g").attr("class","label").attr("style",(0,r.handleUndefinedAttr)(e.labelStyle)),d=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),c=e.width?Math.max(e.width-2*(e.padding??0),32):(0,i.getConfig2)().flowchart?.wrappingWidth??200,g=n.c4?.wrap??!0?c:1/0,y=await Promise.all(d.map(async t=>{let l=o.append("g").attr("class",t.cssClass),s=await (0,a.createText)(l,(0,i.sanitizeText)((0,r.decodeEntities)(t.text??""),n),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},n);return(0,h.select)(s).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,h.select)(s).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:l,box:l.node().getBBox()}})),u=Math.max(...y.map(({box:t})=>t.width),0),f=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${u/2-e.x-e.width/2}, ${f-e.y})`),f+=e.height+3;let m=y.length>0?f-3:0;return o.insert("rect",":first-child"),o.attr("transform",`translate(${-u/2}, ${-m/2})`),{shapeSvg:s,bbox:o.node().getBBox(),halfPadding:(e.padding??0)/2,label:o}},"c4LabelHelper"),y=(0,s.__name)(async(t,e,l)=>{let n,s,o;if(void 0!==e.stereotype)return g(t,e,l);let c=e.useHtmlLabels||(0,i.evaluate)((0,i.getConfig2)()?.htmlLabels);n=l||"node default";let y=t.insert("g").attr("class",n).attr("id",e.domId||e.id),u=y.insert("g").attr("class","label").attr("style",(0,r.handleUndefinedAttr)(e.labelStyle));s=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let f=!!e.icon||!!e.img,m="markdown"===e.labelType,x=await (0,a.createText)(u,(0,i.sanitizeText)((0,r.decodeEntities)(s),(0,i.getConfig2)()),{useHtmlLabels:c,width:e.width||e.wrappingWidth||(0,i.getConfig2)().flowchart?.wrappingWidth,classes:m?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:f,markdown:m},(0,i.getConfig2)()),p=(e?.padding??0)/2;if(c){let t=x.children[0],e=(0,h.select)(x);await d(t),o=await a.fastdom_default.measure(()=>t.getBoundingClientRect()),e.attr("width",o.width),e.attr("height",o.height)}else o=await a.fastdom_default.measure(()=>x.getBBox());return c?u.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):u.attr("transform","translate(0, "+-o.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:y,bbox:o,halfPadding:p,label:u}},"labelHelper"),u=(0,s.__name)(async(t,e,l)=>{let n,s=l.useHtmlLabels??(0,i.getEffectiveHtmlLabels)((0,i.getConfig2)()),o=t.insert("g").attr("class","label").attr("style",l.labelStyle||""),d=await (0,a.createText)(o,(0,i.sanitizeText)((0,r.decodeEntities)(e),(0,i.getConfig2)()),{useHtmlLabels:s,width:l.width||(0,i.getConfig2)()?.flowchart?.wrappingWidth,style:l.labelStyle,addSvgBackground:!!l.icon||!!l.img}),c=l.padding/2;if((0,i.getEffectiveHtmlLabels)((0,i.getConfig2)())){let t=d.children[0],e=(0,h.select)(d);n=await a.fastdom_default.measure(()=>t.getBoundingClientRect()),e.attr("width",n.width),e.attr("height",n.height)}else n=await a.fastdom_default.measure(()=>d.getBBox());return s?o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):o.attr("transform","translate(0, "+-n.height/2+")"),l.centerLabel&&o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:n,halfPadding:c,label:o}},"insertLabel"),f=(0,s.__name)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let l=e.node().getBBox();t.width=l.width,t.height=l.height},"updateNodeBounds"),m=(0,s.__name)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function x(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function p(t,e,a,l,r,i){let n=[],s=a-t,h=2*Math.PI/(s/i),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+r*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function w(t,e,a,l,r,i){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}function $(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let r=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,s.__name)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");r&&Object.entries({fill:n(r,"fill"),"fill-opacity":n(r,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let h=document.createElementNS("http://www.w3.org/2000/svg","g");return h.appendChild(a),h}(0,s.__name)(x,"createPathFromPoints"),(0,s.__name)(p,"generateFullSineWavePoints"),(0,s.__name)(w,"generateCirclePoints"),(0,s.__name)($,"mergePaths");var b=(0,s.__name)((t,e)=>{var a,l,r=t.x,i=t.y,n=e.x-r,s=e.y-i,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:r+a,y:i+l}},"intersectRect"),k=(0,s.__name)((t,e,a,l,r)=>["M",t+r,e,"H",t+a-r,"A",r,r,"0 0 1",t+a,e+r,"V",e+l-r,"A",r,r,"0 0 1",t+a-r,e+l,"H",t+r,"A",r,r,"0 0 1",t,e+l-r,"V",e+r,"A",r,r,"0 0 1",t+r,e,"Z"].join(" "),"createRoundedRectPathD"),_=(0,s.__name)(async(t,e,l,r=!1,n=!1)=>{let s=e||"";"object"==typeof s&&(s=s[0]);let h=(0,i.getConfig2)(),o=(0,i.getEffectiveHtmlLabels)(h);return await (0,a.createText)(t,s,{style:l,isTitle:r,useHtmlLabels:o,markdown:!1,isNode:n,width:1/0},h)},"createLabel");function S(t,e,a,l){var r=t.x,i=t.y,n=r-l.x,s=i-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<r&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<i&&(d=-d),{x:r+o,y:i+d}}function M(t,e,a){return S(t,e,e,a)}function v(t,e,a,l){{let r=e.y-t.y,i=t.x-e.x,n=e.x*t.y-t.x*e.y,s=r*a.x+i*a.y+n,h=r*l.x+i*l.y+n;if(0!==s&&0!==h&&N(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&N(g,y))return;let u=r*d-o*i;if(0===u)return;let f=Math.abs(u/2),m=i*c-d*n;return{x:m<0?(m-f)/u:(m+f)/u,y:(m=o*n-r*c)<0?(m-f)/u:(m+f)/u}}}function N(t,e){return t*e>0}function D(t,e,a){let l=t.x,r=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=r-t.height/2-s;for(let l=0;l<e.length;l++){let r=e[l],n=e[l<e.length-1?l+1:0],s=v(t,a,{x:h+r.x,y:o+r.y},{x:h+n.x,y:o+n.y});s&&i.push(s)}return i.length?(i.length>1&&i.sort(function(t,e){let l=t.x-a.x,r=t.y-a.y,i=Math.sqrt(l*l+r*r),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return i<h?-1:+(i!==h)}),i[0]):t}(0,s.__name)(function(t,e){return t.intersect(e)},"intersectNode"),(0,s.__name)(S,"intersectEllipse"),(0,s.__name)(M,"intersectCircle"),(0,s.__name)(v,"intersectLine"),(0,s.__name)(N,"sameSign"),(0,s.__name)(D,"intersectPolygon");function C(t,a){let{labelStyles:l}=(0,e.styles2String)(a);a.labelStyle=l;let i=m(a),s=i;i||(s="anchor");let h=t.insert("g").attr("class",s).attr("id",a.domId||a.id),{cssStyles:d}=a,c=o.default.svg(h),g=(0,e.userNodeOverrides)(a,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==a.look&&(g.roughness=0);let y=c.circle(0,0,2,g),u=h.insert(()=>y,":first-child");return u.attr("class","anchor").attr("style",(0,r.handleUndefinedAttr)(d)),f(a,u),a.intersect=function(t){return n.log.info("Circle intersect",a,1,t),M(a,1,t)},h}function A(t,e,a,l,r,i,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/r)**2+((l-e)/2/i)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*i*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*r*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/r),y=Math.atan2((l-c)/i,(a-d)/r)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let u=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+r*Math.cos(e),l=c+i*Math.sin(e);u.push({x:a,y:l})}return u}function B(t,e,a){let[l,r]=[e,a].sort((t,e)=>e-t);return r*(1-Math.sqrt(1-(t/l/2)**2))}async function P(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,h="neo"===a.look?12:i,d=(0,s.__name)(t=>t+h,"calcTotalHeight"),c=(0,s.__name)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:g,bbox:u}=await y(t,a,m(a)),p=d(a?.height?a?.height:u.height),[w,$]=c(p),b=B(p,w,$),k=(a?.width?a?.width:u.width)+2*n+b-b,{cssStyles:_}=a,S=[{x:k/2,y:-p/2},{x:-k/2,y:-p/2},...A(-k/2,-p/2,-k/2,p/2,w,$,!1),{x:k/2,y:p/2},...A(k/2,p/2,k/2,-p/2,w,$,!0)],M=o.default.svg(g),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid");let N=x(S),C=M.path(N,v),P=g.insert(()=>C,":first-child");return P.attr("class","basic label-container outer-path"),_&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",_),r&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",r),P.attr("transform",`translate(${w/2}, 0)`),f(a,P),a.intersect=function(t){return D(a,S,t)},g}async function L(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:h,label:d}=await y(t,a,m(a)),c=l?.nodeBorder??l?.lineColor??"currentColor",g=a.padding??12,u=Math.max(h.width+2*g,a.width??0,80),x=Math.max(Math.min(.08*u,12),5),p=Math.max(h.height+2*g+x,a.height??0),w=-p/2+x,$=p/2,b=.72*u,k=`M${-u/2},${w} L${-b/2},${$} A${b/2},${x} 0 0 0 ${b/2},${$} L${u/2},${w} A${u/2},${x} 0 0 0 ${-u/2},${w} Z`,{cssStyles:_}=a,S=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===a.look){let t=o.default.svg(n).path(k,(0,e.userNodeOverrides)(a,{}));S.node()?.appendChild(t),_&&S.attr("style",_)}else S.append("path").attr("d",k).attr("style",i);S.append("ellipse").attr("cx",0).attr("cy",w).attr("rx",u/2).attr("ry",x).attr("style",`fill:none;stroke:${c};stroke-width:1px`),f(a,S);let M=w+($-w)/2;d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${M-h.height/2-(h.y-(h.top??0))})`);let v=(0,s.__name)((t,e,a)=>Array.from({length:13},(l,r)=>{let i=Math.PI-r*Math.PI/12;return{x:t*Math.cos(i),y:e+a*x*Math.sin(i)}}),"arc"),N=[...v(u/2,w,-1),...v(b/2,$,1).reverse()];return a.intersect=function(t){return D(a,N,t)},n}async function O(t,a){let l,{themeVariables:n}=(0,i.getConfig2)(),s=n.clusterBkg,h=n.clusterBorder,{nodeStyles:d}=(0,e.styles2String)(a),{shapeSvg:c,bbox:g}=await y(t,a,m(a)),u=a.padding??8,x=g.height,p=Math.max(g.width+2*u,80,a?.width??0),w=Math.max(x+8+20+2*u,a?.height??0),$=-p/2,_=-w/2,S=c.select(".label");if(S&&(a.useHtmlLabels??(0,i.getEffectiveHtmlLabels)((0,i.getConfig2)())?S.attr("transform",`translate(${-g.width/2}, ${-g.height/2+-14})`):S.attr("transform",`translate(0, ${-g.height/2+-14})`)),"handDrawn"===a.look){let t=o.default.svg(c),i=(0,e.userNodeOverrides)(a,{fill:s,stroke:h,fillStyle:"solid"}),n=t.path(k($,_,p,w,8),i);(l=c.insert(()=>n,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,r.handleUndefinedAttr)(a.cssStyles))}else(l=c.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",d).attr("rx",8).attr("ry",8).attr("x",$).attr("y",_).attr("width",p).attr("height",w).attr("fill",s).attr("stroke",h);let M=_+u+x+8;c.append("line").attr("class","collapsed-separator").attr("x1",$+8).attr("y1",M).attr("x2",$+p-8).attr("y2",M).attr("stroke",h).attr("stroke-dasharray","3, 3");let v=M+10;for(let t=-1;t<=1;t++)c.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",v).attr("r",2.5).attr("fill",h);return f(a,l),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return b(a,t)},c}function R(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,s.__name)(C,"anchor"),(0,s.__name)(A,"generateArcPoints"),(0,s.__name)(B,"calculateArcSagitta"),(0,s.__name)(P,"bowTieRect"),(0,s.__name)(L,"bucket"),(0,s.__name)(O,"collapsedGroup"),(0,s.__name)(R,"insertPolygonShape");var T=["right","left","up","down"],I="point",H=(0,s.__name)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),E=(0,s.__name)(t=>T.filter(e=>t.has(e)).join("|")||I,"getDirectionKey"),W={"right|left|up|down":(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:0,y:0},{x:e,y:0},{x:l/2,y:2*a},{x:l-e,y:0},{x:l,y:0},{x:l,y:-t/3},{x:l+2*a,y:-t/2},{x:l,y:-2*t/3},{x:l,y:-t},{x:l-e,y:-t},{x:l/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"up|down"),"right|up":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,s.__name)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,s.__name)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,s.__name)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a}],"up"),down:(0,s.__name)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"down"),[I]:()=>[{x:0,y:0}]},q=(0,s.__name)((t,e,a,l)=>{let r=H(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,h=l??e.width+2*s+2*i;return(W[E(r)]??W[I])({height:n,midpoint:s,padding:i,width:h})},"getArrowPoints");async function z(t,e){let{shapeSvg:a,bbox:l}=await y(t,e,m(e)),r=e.padding??0,i=l.height+2*r,n=i/2,s=l.width+2*n+r,h=e.width??0,o=e.positioned&&(e.widthInColumns??1)>1&&h>s?h:s,d=q(e.directions??[],l,e,o),c=R(a,o,i,d);return c.attr("style",e.style??null),f(e,c),e.intersect=function(t){return D(e,d,t)},a}async function j(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await y(t,a,m(a)),d=l?.nodeBorder??l?.lineColor??"currentColor",c=a.padding??12,g=Math.max(s.width+2*c,a.width??0,90),u=Math.max(s.height+2*c+18,a.height??0),x=-u/2,{cssStyles:p}=a,w=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===a.look){let t=o.default.svg(n).path(k(-g/2,x,g,u,12),(0,e.userNodeOverrides)(a,{}));w.node()?.appendChild(t),p&&w.attr("style",p)}else w.append("rect").attr("x",-g/2).attr("y",x).attr("width",g).attr("height",u).attr("rx",12).attr("ry",12).attr("style",i);w.append("line").attr("x1",-g/2).attr("y1",x+18).attr("x2",g/2).attr("y2",x+18).attr("style",`stroke:${d};stroke-width:1px`);for(let t=0;t<3;t++)w.append("circle").attr("cx",-g/2+12+9*t).attr("cy",x+9).attr("r",2.5).attr("style",`fill:${d};stroke:none`);w.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",x+4).attr("width",Math.max(g-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${d};stroke-width:1px;opacity:0.6`),f(a,w);let $=x+18+(u-18)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),a.intersect=function(t){return b(a,t)},n}async function F(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?28:n,h="neo"===a.look?24:n,{shapeSvg:d,bbox:c}=await y(t,a,m(a)),g=(a?.width??c.width)+("neo"===a.look?2*s:s+12),u=(a?.height??c.height)+("neo"===a.look?2*h:h),p=-u,w=[{x:12,y:p},{x:g,y:p},{x:g,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}],{cssStyles:$}=a;if("handDrawn"===a.look){let t=o.default.svg(d),r=(0,e.userNodeOverrides)(a,{}),i=x(w),n=t.path(i,r);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${u/2})`),$&&l.attr("style",$)}else l=R(d,g,u,w);return i&&l.attr("style",i),f(a,l),a.intersect=function(t){return D(a,w,t)},d}function U(t,a){let{nodeStyles:l}=(0,e.styles2String)(a);a.label="";let r=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:i}=a,n=Math.max(28,a.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=o.default.svg(r),d=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(d.roughness=0,d.fillStyle="solid");let c=x(s),g=h.path(c,d),y=r.insert(()=>g,":first-child");return i&&"handDrawn"!==a.look&&y.selectAll("path").attr("style",i),l&&"handDrawn"!==a.look&&y.selectAll("path").attr("style",l),a.width=28,a.height=28,a.intersect=function(t){return D(a,s,t)},r}async function V(t,a,l){let i,{labelStyles:s,nodeStyles:h}=(0,e.styles2String)(a);a.labelStyle=s;let{shapeSvg:d,bbox:c,halfPadding:g}=await y(t,a,m(a)),u=l?.padding??g,x="neo"===a.look?c.width/2+32:c.width/2+u,{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(d),l=(0,e.userNodeOverrides)(a,{}),n=t.circle(0,0,2*x,l);(i=d.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(p))}else i=d.insert("circle",":first-child").attr("class","basic label-container").attr("style",h).attr("r",x).attr("cx",0).attr("cy",0);return f(a,i),a.calcIntersect=function(t,e){let a=t.width/2;return M(t,a,e)},a.intersect=function(t){return n.log.info("Circle intersect",a,x,t),M(a,x,t)},d}async function Z(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:l,bbox:r,halfPadding:i}=await y(t,e,a),n=l.insert("rect",":first-child"),s=e.padding??0,h=e.positioned?e.width??0:r.width+s,o=e.positioned?e.height??0:r.height+s,d=e.positioned?-h/2:-r.width/2-i,c=e.positioned?-o/2:-r.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",h).attr("height",o),f(e,n),e.intersect=function(t){return b(e,t)},l}async function G(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await y(t,a,m(a)),d=l?.nodeBorder??l?.lineColor??"currentColor",c=a.padding??12,g=Math.max(s.width+2*c,a.width??0,90),u=Math.max(s.height+2*c+20,a.height??0),x=-u/2,{cssStyles:p}=a,w=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===a.look){let t=o.default.svg(n).path(k(-g/2,x,g,u,12),(0,e.userNodeOverrides)(a,{}));w.node()?.appendChild(t),p&&w.attr("style",p)}else w.append("rect").attr("x",-g/2).attr("y",x).attr("width",g).attr("height",u).attr("rx",12).attr("ry",12).attr("style",i);w.append("text").attr("x",-g/2+12).attr("y",x+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${d}`).text(">_"),f(a,w);let $=x+20+(u-20)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),a.intersect=function(t){return b(a,t)},n}function X(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,r={x:l/2*e,y:l/2*a},i={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y}
2
+ M ${r.x},${r.y} L ${n.x},${n.y}`}function J(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l,a.label="";let i=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),s=Math.max(30,a?.width??0),{cssStyles:h}=a,d=o.default.svg(i),c=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(c.roughness=0,c.fillStyle="solid");let g=d.circle(0,0,2*s,c),y=X(s),u=d.path(y,c),x=i.insert(()=>g,":first-child");return x.insert(()=>u),x.attr("class","outer-path"),h&&"handDrawn"!==a.look&&x.selectAll("path").attr("style",h),r&&"handDrawn"!==a.look&&x.selectAll("path").attr("style",r),f(a,x),a.intersect=function(t){return n.log.info("crossedCircle intersect",a,{radius:s,point:t}),M(a,s,t)},i}function K(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function Y(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h="neo"===a.look?18:a.padding??0,d="neo"===a.look?12:a.padding??0,c=n.width+h,g=n.height+d,u=Math.max(5,.1*g),{cssStyles:p}=a,w=[...K(c/2,-g/2,u,30,-90,0),{x:-c/2-u,y:u},...K(c/2+2*u,-u,u,20,-180,-270),...K(c/2+2*u,u,u,20,-90,-180),{x:-c/2-u,y:-g/2},...K(c/2,g/2,u,20,0,90)],$=[{x:c/2,y:-g/2-u},{x:-c/2,y:-g/2-u},...K(c/2,-g/2,u,20,-90,0),{x:-c/2-u,y:-u},...K(c/2+.1*c,-u,u,20,-180,-270),...K(c/2+.1*c,u,u,20,-90,-180),{x:-c/2-u,y:g/2},...K(c/2,g/2,u,20,0,90),{x:-c/2,y:g/2+u},{x:c/2,y:g/2+u}],b=o.default.svg(i),k=(0,e.userNodeOverrides)(a,{fill:"none"});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=x(w).replace("Z",""),S=b.path(_,k),M=x($),v=b.path(M,{...k}),N=i.insert("g",":first-child");return N.insert(()=>v,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",p),r&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${u}, 0)`),s.attr("transform",`translate(${-c/2+u-(n.x-(n.left??0))},${-g/2+(a.padding??0)/2-(n.y-(n.top??0))})`),f(a,N),a.intersect=function(t){return D(a,$,t)},i}function Q(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:i,y:o})}return n}async function tt(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h="neo"===a.look?18:a.padding??0,d="neo"===a.look?12:a.padding??0,c=n.width+("neo"===a.look?2*h:h),g=n.height+("neo"===a.look?2*d:d),u=Math.max(5,.1*g),{cssStyles:p}=a,w=[...Q(c/2,-g/2,u,20,-90,0),{x:c/2+u,y:-u},...Q(c/2+2*u,-u,u,20,-180,-270),...Q(c/2+2*u,u,u,20,-90,-180),{x:c/2+u,y:g/2},...Q(c/2,g/2,u,20,0,90)],$=[{x:-c/2,y:-g/2-u},{x:c/2,y:-g/2-u},...Q(c/2,-g/2,u,20,-90,0),{x:c/2+u,y:-u},...Q(c/2+2*u,-u,u,20,-180,-270),...Q(c/2+2*u,u,u,20,-90,-180),{x:c/2+u,y:g/2},...Q(c/2,g/2,u,20,0,90),{x:c/2,y:g/2+u},{x:-c/2,y:g/2+u}],b=o.default.svg(i),k=(0,e.userNodeOverrides)(a,{fill:"none"});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=x(w).replace("Z",""),S=b.path(_,k),M=x($),v=b.path(M,{...k}),N=i.insert("g",":first-child");return N.insert(()=>v,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),p&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",p),r&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${-u}, 0)`),s.attr("transform",`translate(${-c/2+(a.padding??0)/2-(n.x-(n.left??0))},${-g/2+(a.padding??0)/2-(n.y-(n.top??0))})`),f(a,N),a.intersect=function(t){return D(a,$,t)},i}function te(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r<l;r++){let l=s+r*h,i=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-i,y:-o})}return n}async function ta(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h="neo"===a.look?18:a.padding??0,d="neo"===a.look?12:a.padding??0,c=n.width+("neo"===a.look?2*h:h),g=n.height+("neo"===a.look?2*d:d),u=Math.max(5,.1*g),{cssStyles:p}=a,w=[...te(c/2,-g/2,u,30,-90,0),{x:-c/2-u,y:u},...te(c/2+2*u,-u,u,20,-180,-270),...te(c/2+2*u,u,u,20,-90,-180),{x:-c/2-u,y:-g/2},...te(c/2,g/2,u,20,0,90)],$=[...te(-c/2+u+u/2,-g/2,u,20,-90,-180),{x:c/2-u/2,y:u},...te(-c/2-u/2,-u,u,20,0,90),...te(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...te(-c/2+u+u/2,g/2,u,30,-180,-270)],b=[{x:c/2,y:-g/2-u},{x:-c/2,y:-g/2-u},...te(c/2,-g/2,u,20,-90,0),{x:-c/2-u,y:-u},...te(c/2+2*u,-u,u,20,-180,-270),...te(c/2+2*u,u,u,20,-90,-180),{x:-c/2-u,y:g/2},...te(c/2,g/2,u,20,0,90),{x:-c/2,y:g/2+u},{x:c/2-u-u/2,y:g/2+u},...te(-c/2+u+u/2,-g/2,u,20,-90,-180),{x:c/2-u/2,y:u},...te(-c/2-u/2,-u,u,20,0,90),...te(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...te(-c/2+u+u/2,g/2,u,30,-180,-270)],k=o.default.svg(i),_=(0,e.userNodeOverrides)(a,{fill:"none"});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=x(w).replace("Z",""),M=k.path(S,_),v=x($).replace("Z",""),N=k.path(v,_),C=x(b),A=k.path(C,{..._}),B=i.insert("g",":first-child");return B.insert(()=>A,":first-child").attr("stroke-opacity",0),B.insert(()=>M,":first-child"),B.insert(()=>N,":first-child"),B.attr("class","text"),p&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",p),r&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(${u-u/4}, 0)`),s.attr("transform",`translate(${-c/2+(a.padding??0)/2-(n.x-(n.left??0))},${-g/2+(a.padding??0)/2-(n.y-(n.top??0))})`),f(a,B),a.intersect=function(t){return D(a,b,t)},i}async function tl(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(20,(d.width+2*n)*1.25,a?.width??0),g=Math.max(5,d.height+2*s,a?.height??0),u=g/2,{cssStyles:p}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=c-u,_=g/4,S=[{x:k,y:0},{x:_,y:0},{x:0,y:g/2},{x:_,y:g},{x:k,y:g},...w(-k,-g/2,u,50,270,90)],M=x(S),v=$.path(M,b),N=h.insert(()=>v,":first-child");return N.attr("class","basic label-container outer-path"),p&&"handDrawn"!==a.look&&N.selectChildren("path").attr("style",p),r&&"handDrawn"!==a.look&&N.selectChildren("path").attr("style",r),N.attr("transform",`translate(${-c/2}, ${-g/2})`),f(a,N),a.intersect=function(t){return D(a,S,t)},h}async function tr(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h=a.padding??20,d=Math.max(n.width+2*h,a.width??0,100),c=Math.min(Math.max(.23*d,16),56),g=.27*c,u=Math.max(n.height+2*h,a.height?a.height-(2*c-g):0),x=Math.min(.177*d,.45*u),p=u+2*c-g,$=-p/2,b=$+2*c-g,_=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:S}=a;if("handDrawn"===a.look){let t=o.default.svg(i),l=(0,e.userNodeOverrides)(a,{}),r=t.path(k(-d/2,b,d,u,x),l),n=t.circle(0,$+c,2*c,l);_.insert(()=>n,":first-child"),_.insert(()=>r,":first-child"),S&&_.attr("style",S)}else _.append("rect").attr("x",-d/2).attr("y",b).attr("width",d).attr("height",u).attr("rx",x).attr("ry",x).attr("style",r),_.append("circle").attr("cx",0).attr("cy",$+c).attr("r",c).attr("style",r);f(a,_);let M=b+u/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${M-n.height/2-(n.y-(n.top??0))})`);let v=$+c,N=180*Math.asin(Math.min(1,(b-v)/c))/Math.PI,C=[...w(0,-v,c,24,180+N,-N),...w(-(-d/2+x),-(b+x),x,12,90,0),...w(-(-d/2+x),-(p/2-x),x,12,360,270),...w(-(d/2-x),-(p/2-x),x,12,270,180),...w(-(d/2-x),-(b+x),x,12,180,90)];return a.intersect=function(t){return D(a,C,t)},i}(0,s.__name)(z,"block_arrow"),(0,s.__name)(j,"browser"),(0,s.__name)(F,"card"),(0,s.__name)(U,"choice"),(0,s.__name)(V,"circle"),(0,s.__name)(Z,"composite"),(0,s.__name)(G,"consoleWindow"),(0,s.__name)(X,"createLine"),(0,s.__name)(J,"crossedCircle"),(0,s.__name)(K,"generateCirclePoints"),(0,s.__name)(Y,"curlyBraceLeft"),(0,s.__name)(Q,"generateCirclePoints"),(0,s.__name)(tt,"curlyBraceRight"),(0,s.__name)(te,"generateCirclePoints"),(0,s.__name)(ta,"curlyBraces"),(0,s.__name)(tl,"curvedTrapezoid"),(0,s.__name)(tr,"person");var ti=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),tn=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),ts=(0,s.__name)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function th(t,a){let l,{labelStyles:i,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=i;let s=a.padding??0,h="neo"===a.look?24:s,d="neo"===a.look?24:s,c=a.width??0;a.width&&(a.width=a.width-d,a.width<8&&(a.width=8)),a.height&&(a.height=a.height-h-c/2/(2.5+c/50)*3,a.height<8&&(a.height=8));let{shapeSvg:g,bbox:u,label:x}=await y(t,a,m(a)),p=Math.max(a.width??0,u.width)+d,w=p/2,$=w/(2.5+p/50),k=Math.max(a.height??0,u.height)+h+$,{cssStyles:_}=a;if("handDrawn"===a.look){let t=o.default.svg(g),r=tn(0,0,p,k,w,$),i=ts(0,$,p,k,w,$),n=(0,e.userNodeOverrides)(a,{}),s=t.path(r,n),h=t.path(i,(0,e.userNodeOverrides)(a,{fill:"none"}));l=g.insert(()=>h,":first-child"),(l=g.insert(()=>s,":first-child")).attr("class","basic label-container"),_&&l.attr("style",_)}else{let t=ti(0,0,p,k,w,$);l=g.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,r.handleUndefinedAttr)(_)).attr("style",n)}return l.attr("label-offset-y",$),l.attr("transform",`translate(${-p/2}, ${-(k/2+$)})`),f(a,l),x.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(a.padding??0)/1.5-(u.y-(u.top??0))})`),a.intersect=function(t){let e=b(a,t),l=e.x-(a.x??0);if(0!=w&&(Math.abs(l)<(a.width??0)/2||Math.abs(l)==(a.width??0)/2&&Math.abs(e.y-(a.y??0))>(a.height??0)/2-$)){let r=$*$*(1-l*l/(w*w));r>0&&(r=Math.sqrt(r)),r=$-r,t.y-(a.y??0)>0&&(r=-r),e.y+=r}return e},g}async function to(t,a,l){let i,{labelStyles:n,nodeStyles:s}=(0,e.styles2String)(a);a.labelStyle=n;let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.width+2*l.labelPaddingX,a?.width||0),g=Math.max(d.height+2*l.labelPaddingY,a?.height||0),u=-c/2,x=-g/2,{rx:p,ry:w}=a,{cssStyles:$}=a;if(l?.rx&&l.ry&&(p=l.rx,w=l.ry),"handDrawn"===a.look){let t=o.default.svg(h),l=(0,e.userNodeOverrides)(a,{}),n=p||w?t.path(k(u,x,c,g,p||0),l):t.rectangle(u,x,c,g,l);(i=h.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)($))}else(i=h.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,r.handleUndefinedAttr)(p)).attr("ry",(0,r.handleUndefinedAttr)(w)).attr("x",u).attr("y",x).attr("width",c).attr("height",g);return f(a,i,"handDrawn"===a.look?void 0:{width:c,height:g}),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return b(a,t)},h}async function td(t,a){let{cssClasses:l,labelPaddingX:r,labelPaddingY:i,padding:n,width:s,height:h}=a,d=await to(t,a,{rx:0,ry:0,classes:l??"",labelPaddingX:r??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===a.look){let t=o.default.svg(d),l=(0,e.userNodeOverrides)(a,{}),r=d.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return d;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),d.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,l),".basic.label-container g.label"),d.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,l),".basic.label-container g.label"),r.remove()),d}let c=d.select(".basic.label-container"),g=(Number(c.attr("width"))||s)??0,y=(Number(c.attr("height"))||h)??0;return g>0&&y>0&&c.attr("stroke-dasharray",`${g} ${y}`),d}async function tc(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i="neo"===a.look?16:a.padding??0,n="neo"===a.look?16:a.padding??0,{shapeSvg:s,bbox:h,label:d}=await y(t,a,m(a)),c=h.width+i,g=h.height+n,u=.2*g,x=-c/2,p=-g/2-u/2,{cssStyles:w}=a,$=o.default.svg(s),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=$.polygon([{x,y:p+u},{x:-x,y:p+u},{x:-x,y:-p},{x,y:-p},{x,y:p},{x:-x,y:p},{x:-x,y:p+u}].map(t=>[t.x,t.y]),k),S=s.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),w&&"handDrawn"!==a.look&&S.selectAll("path").attr("style",w),r&&"handDrawn"!==a.look&&S.selectAll("path").attr("style",r),d.attr("transform",`translate(${x+(a.padding??0)/2-(h.x-(h.left??0))}, ${p+u+(a.padding??0)/2-(h.y-(h.top??0))})`),f(a,S),a.intersect=function(t){return b(a,t)},s}async function tg(t,a){let l,{labelStyles:i,nodeStyles:s}=(0,e.styles2String)(a),h="neo"===a.look?12:5;a.labelStyle=i;let d=a.padding??0,c="neo"===a.look?16:d,{shapeSvg:g,bbox:u}=await y(t,a,m(a)),x=(a?.width?a?.width/2:u.width/2)+(c??0),p=x-h,{cssStyles:w}=a;if("handDrawn"===a.look){let t=o.default.svg(g),i=(0,e.userNodeOverrides)(a,{roughness:.2,strokeWidth:2.5}),n=(0,e.userNodeOverrides)(a,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*x,i),h=t.circle(0,0,2*p,n);(l=g.insert("g",":first-child")).attr("class",(0,r.handleUndefinedAttr)(a.cssClasses)).attr("style",(0,r.handleUndefinedAttr)(w)),l.node()?.appendChild(s),l.node()?.appendChild(h)}else{let t=(l=g.insert("g",":first-child")).insert("circle",":first-child"),e=l.insert("circle");l.attr("class","basic label-container").attr("style",s),t.attr("class","outer-circle").attr("style",s).attr("r",x).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",s).attr("r",p).attr("cx",0).attr("cy",0)}return f(a,l),a.intersect=function(t){return n.log.info("DoubleCircle intersect",a,x,t),M(a,x,t)},g}function ty(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.label="",a.labelStyle=r;let s=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:h}=a,d=o.default.svg(s),{nodeBorder:c}=l,g=(0,e.userNodeOverrides)(a,{fillStyle:"solid"});"handDrawn"!==a.look&&(g.roughness=0);let y=d.circle(0,0,14,g),u=s.insert(()=>y,":first-child");return u.selectAll("path").attr("style",`fill: ${c} !important;`),h&&h.length>0&&"handDrawn"!==a.look&&u.selectAll("path").attr("style",h),i&&"handDrawn"!==a.look&&u.selectAll("path").attr("style",i),f(a,u),a.intersect=function(t){return n.log.info("filledCircle intersect",a,{radius:7,point:t}),M(a,7,t)},s}async function tu(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,s="neo"===a.look?2*i:i;(a.width||a.height)&&(a.height=a?.height??0,a.height<10&&(a.height=10),a.width=(a?.width??0)-s-s/2,a.width<10&&(a.width=10));let{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width?a?.width:d.width)+(s??0),u=a?.height?a?.height:g+d.height,p=[{x:0,y:-u},{x:u,y:-u},{x:u/2,y:0}],{cssStyles:w}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=x(p),_=$.path(k,b),S=h.insert(()=>_,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return w&&"handDrawn"!==a.look&&S.selectChildren("path").attr("style",w),r&&"handDrawn"!==a.look&&S.selectChildren("path").attr("style",r),a.width=g,a.height=u,f(a,S),c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-u/2+(a.padding??0)/2+(d.y-(d.top??0))})`),a.intersect=function(t){return n.log.info("Triangle intersect",a,p,t),D(a,p,t)},h}async function tf(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await y(t,a,m(a)),d=a.padding??12,c=Math.max(s.width+2*d,a.width??0,90),g=s.height+2*d,u=Math.max(Math.min(.16*g,14),8),x=Math.max(g+u,a.height??0),p=x-u,w=Math.max(.38*c,28),$=-x/2,b=[{x:-c/2,y:$},{x:-c/2+w,y:$},{x:-c/2+w,y:$+u},{x:c/2,y:$+u},{x:c/2,y:x/2},{x:-c/2,y:x/2}],k=[`M${b[0].x},${b[0].y}`,...b.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:_}=a;if("handDrawn"===a.look){let t=o.default.svg(n).path(k,(0,e.userNodeOverrides)(a,{}));l=n.insert(()=>t,":first-child").attr("class","basic label-container"),_&&l.attr("style",_)}else l=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===a.look?f(a,l):f(a,l,{width:c,height:x}),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$+u+p/2-s.height/2-(s.y-(s.top??0))})`),a.intersect=function(t){return D(a,b,t)},n}function tm(t,a,{dir:l,config:{state:r,themeVariables:i}}){let{nodeStyles:n}=(0,e.styles2String)(a);a.label="";let s=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:h}=a,d=Math.max(70,a?.width??0),c=Math.max(10,a?.height??0);"LR"===l&&(d=Math.max(10,a?.width??0),c=Math.max(70,a?.height??0));let g=-1*d/2,y=-1*c/2,u=o.default.svg(s),x=(0,e.userNodeOverrides)(a,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==a.look&&(x.roughness=0,x.fillStyle="solid");let p=u.rectangle(g,y,d,c,x),w=s.insert(()=>p,":first-child");h&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",h),n&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",n),f(a,w);let $=r?.padding??0;return a.width&&a.height&&(a.width+=$/2||0,a.height+=$/2||0),a.intersect=function(t){return b(a,t)},s}async function tx(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i="neo"===a.look?16:a.padding??0,s="neo"===a.look?12:a.padding??0;(a.width||a.height)&&(a.height=(a?.height??0)-2*s,a.height<10&&(a.height=10),a.width=(a?.width??0)-2*i,a.width<15&&(a.width=15));let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.width?a?.width:Math.max(15,d.width))+2*i,g=(a?.height?a?.height:Math.max(10,d.height))+2*s,u=g/2,{cssStyles:p}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-c/2,y:-g/2},{x:c/2-u,y:-g/2},...w(-c/2+u,0,u,50,90,270),{x:c/2-u,y:g/2},{x:-c/2,y:g/2}],_=x(k),S=$.path(_,b),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),p&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",p),r&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",r),f(a,M),a.intersect=function(t){return n.log.info("Pill intersect",a,{radius:u,point:t}),D(a,k,t)},h}(0,s.__name)(th,"cylinder"),(0,s.__name)(to,"drawRect"),(0,s.__name)(td,"datastore"),(0,s.__name)(tc,"dividedRectangle"),(0,s.__name)(tg,"doublecircle"),(0,s.__name)(ty,"filledCircle"),(0,s.__name)(tu,"flippedTriangle"),(0,s.__name)(tf,"folder"),(0,s.__name)(tm,"forkJoin"),(0,s.__name)(tx,"halfRoundedRectangle");var tp=(0,s.__name)((t,e,a,l,r)=>`M${t+r},${e} L${t+a-r},${e} L${t+a},${e-l/2} L${t+a-r},${e-l} L${t+r},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tw(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a),n="neo"===a.look?3.5:4;a.labelStyle=r;let s=a.padding??0,h="neo"===a.look?70:s,d="neo"===a.look?32:s;if(a.width||a.height){let t=a.height??0;a.width=(a?.width??0)-t/n*2-d,a.height=(a.height??0)-h}let{shapeSvg:c,bbox:g}=await y(t,a,m(a)),u=(a?.height?a?.height:g.height)+h,x=u/n,p=(a?.width?a?.width:g.width)+2*x+d,w=[{x:x,y:0},{x:p-x,y:0},{x:p,y:-u/2},{x:p-x,y:-u},{x:x,y:-u},{x:0,y:-u/2}],{cssStyles:$}=a;if("handDrawn"===a.look){let t=o.default.svg(c),r=(0,e.userNodeOverrides)(a,{}),i=tp(0,0,p,u,x),n=t.path(i,r);l=c.insert(()=>n,":first-child").attr("transform",`translate(${-p/2}, ${u/2})`),$&&l.attr("style",$)}else l=R(c,p,u,w);return i&&l.attr("style",i),a.width=p,a.height=u,f(a,l),a.intersect=function(t){return D(a,w,t)},c}async function t$(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.label="",a.labelStyle=l;let{shapeSvg:i}=await y(t,a,m(a)),s=Math.max(30,a?.width??0),h=Math.max(30,a?.height??0),{cssStyles:d}=a,c=o.default.svg(i),g=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(g.roughness=0,g.fillStyle="solid");let u=[{x:0,y:0},{x:s,y:0},{x:0,y:h},{x:s,y:h}],p=x(u),w=c.path(p,g),$=i.insert(()=>w,":first-child");return $.attr("class","basic label-container outer-path"),d&&"handDrawn"!==a.look&&$.selectChildren("path").attr("style",d),r&&"handDrawn"!==a.look&&$.selectChildren("path").attr("style",r),$.attr("transform",`translate(${-s/2}, ${-h/2})`),f(a,$),a.intersect=function(t){return n.log.info("Pill intersect",a,{points:u}),D(a,u,t)},i}async function tb(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,label:g}=await y(t,a,"icon-shape default"),u="t"===a.pos,{nodeBorder:m}=r,{stylesMap:x}=(0,e.compileStyles)(a),p=-h/2,w=-h/2,$=8*!!a.label,k=o.default.svg(d),_=(0,e.userNodeOverrides)(a,{stroke:"none",fill:"none"});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=k.rectangle(p,w,h,h,_),M=Math.max(h,c.width),v=h+c.height+$,N=k.rectangle(-M/2,-v/2,M,v,{..._,fill:"transparent",stroke:"none"}),C=d.insert(()=>S,":first-child"),A=d.insert(()=>N);if(a.icon){let t=d.append("g");t.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let e=t.node().getBBox(),r=e.width,i=e.height,n=e.x,s=e.y;t.attr("transform",`translate(${-r/2-n},${u?c.height/2+$/2-i/2-s:-c.height/2-$/2-i/2-s})`),t.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-v/2:v/2-c.height})`),C.attr("transform",`translate(0,${u?c.height/2+$/2:-c.height/2-$/2})`),f(a,A),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=u?[{x:e-c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2+c.height+$},{x:e+h/2,y:l-r/2+c.height+$},{x:e+h/2,y:l+r/2},{x:e-h/2,y:l+r/2},{x:e-h/2,y:l-r/2+c.height+$},{x:e-c.width/2,y:l-r/2+c.height+$}]:[{x:e-h/2,y:l-r/2},{x:e+h/2,y:l-r/2},{x:e+h/2,y:l-r/2+h},{x:e+c.width/2,y:l-r/2+h},{x:e+c.width/2/2,y:l+r/2},{x:e-c.width/2,y:l+r/2},{x:e-c.width/2,y:l-r/2+h},{x:e-h/2,y:l-r/2+h}],t)},d}async function tk(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,label:g}=await y(t,a,"icon-shape default"),u=8*!!a.label,m="t"===a.pos,{nodeBorder:x,mainBkg:p}=r,{stylesMap:w}=(0,e.compileStyles)(a),$=o.default.svg(d),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid"),k.stroke=w.get("fill")??p;let _=d.append("g");a.icon&&_.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let S=_.node().getBBox(),M=S.width,v=S.height,N=S.x,D=S.y,C=Math.max(M,v)*Math.SQRT2+40,A=$.circle(0,0,C,k),B=Math.max(C,c.width),P=C+c.height+u,L=$.rectangle(-B/2,-P/2,B,P,{...k,fill:"transparent",stroke:"none"}),O=d.insert(()=>A,":first-child"),R=d.insert(()=>L);return _.attr("transform",`translate(${-M/2-N},${m?c.height/2+u/2-v/2-D:-c.height/2-u/2-v/2-D})`),_.attr("style",`color: ${w.get("stroke")??x};`),g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-P/2:P/2-c.height})`),O.attr("transform",`translate(0,${m?c.height/2+u/2:-c.height/2-u/2})`),f(a,R),a.intersect=function(t){return n.log.info("iconSquare intersect",a,t),b(a,t)},d}async function t_(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,halfPadding:g,label:u}=await y(t,a,"icon-shape default"),m="t"===a.pos,x=h+2*g,p=h+2*g,{nodeBorder:w,mainBkg:$}=r,{stylesMap:_}=(0,e.compileStyles)(a),S=8*!!a.label,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=_.get("fill")??$;let N=M.path(k(-p/2,-x/2,p,x,5),v),C=Math.max(p,c.width),A=x+c.height+S,B=M.rectangle(-C/2,-A/2,C,A,{...v,fill:"transparent",stroke:"none"}),P=d.insert(()=>N,":first-child").attr("class","icon-shape2"),L=d.insert(()=>B);if(a.icon){let t=d.append("g");t.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let e=t.node().getBBox(),r=e.width,i=e.height,n=e.x,s=e.y;t.attr("transform",`translate(${-r/2-n},${m?c.height/2+S/2-i/2-s:-c.height/2-S/2-i/2-s})`),t.attr("style",`color: ${_.get("stroke")??w};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-A/2:A/2-c.height})`),P.attr("transform",`translate(0,${m?c.height/2+S/2:-c.height/2-S/2})`),f(a,L),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=m?[{x:e-c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2+c.height+S},{x:e+p/2,y:l-r/2+c.height+S},{x:e+p/2,y:l+r/2},{x:e-p/2,y:l+r/2},{x:e-p/2,y:l-r/2+c.height+S},{x:e-c.width/2,y:l-r/2+c.height+S}]:[{x:e-p/2,y:l-r/2},{x:e+p/2,y:l-r/2},{x:e+p/2,y:l-r/2+x},{x:e+c.width/2,y:l-r/2+x},{x:e+c.width/2/2,y:l+r/2},{x:e-c.width/2,y:l+r/2},{x:e-c.width/2,y:l-r/2+x},{x:e-p/2,y:l-r/2+x}],t)},d}async function tS(t,a,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:s}=(0,e.styles2String)(a);a.labelStyle=s;let h=Math.max(a.assetHeight??48,a.assetWidth??48);a.width=Math.max(h,i?.wrappingWidth??0);let{shapeSvg:d,bbox:c,halfPadding:g,label:u}=await y(t,a,"icon-shape default"),m="t"===a.pos,x=h+2*g,p=h+2*g,{nodeBorder:w,mainBkg:$}=r,{stylesMap:_}=(0,e.compileStyles)(a),S=8*!!a.label,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid"),v.stroke=_.get("fill")??$;let N=M.path(k(-p/2,-x/2,p,x,.1),v),C=Math.max(p,c.width),A=x+c.height+S,B=M.rectangle(-C/2,-A/2,C,A,{...v,fill:"transparent",stroke:"none"}),P=d.insert(()=>N,":first-child"),L=d.insert(()=>B);if(a.icon){let t=d.append("g");t.html(`<g>${await (0,l.getIconSVG)(a.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);let e=t.node().getBBox(),r=e.width,i=e.height,n=e.x,s=e.y;t.attr("transform",`translate(${-r/2-n},${m?c.height/2+S/2-i/2-s:-c.height/2-S/2-i/2-s})`),t.attr("style",`color: ${_.get("stroke")??w};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-A/2:A/2-c.height})`),P.attr("transform",`translate(0,${m?c.height/2+S/2:-c.height/2-S/2})`),f(a,L),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=m?[{x:e-c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2},{x:e+c.width/2,y:l-r/2+c.height+S},{x:e+p/2,y:l-r/2+c.height+S},{x:e+p/2,y:l+r/2},{x:e-p/2,y:l+r/2},{x:e-p/2,y:l-r/2+c.height+S},{x:e-c.width/2,y:l-r/2+c.height+S}]:[{x:e-p/2,y:l-r/2},{x:e+p/2,y:l-r/2},{x:e+p/2,y:l-r/2+x},{x:e+c.width/2,y:l-r/2+x},{x:e+c.width/2/2,y:l+r/2},{x:e-c.width/2,y:l+r/2},{x:e-c.width/2,y:l-r/2+x},{x:e-p/2,y:l-r/2+x}],t)},d}async function tM(t,a,{config:{flowchart:l}}){let r=new Image;r.src=a?.img??"",await r.decode();let i=Number(r.naturalWidth.toString().replace("px","")),s=Number(r.naturalHeight.toString().replace("px",""));a.imageAspectRatio=i/s;let{labelStyles:h}=(0,e.styles2String)(a);a.labelStyle=h;let d=l?.wrappingWidth;a.defaultWidth=l?.wrappingWidth;let c=Math.max(a.label?d??0:0,a?.assetWidth??i),g="on"===a.constraint&&a?.assetHeight?a.assetHeight*a.imageAspectRatio:c,u="on"===a.constraint?g/a.imageAspectRatio:a?.assetHeight??s;a.width=Math.max(g,d??0);let{shapeSvg:m,bbox:x,label:p}=await y(t,a,"image-shape default"),w="t"===a.pos,$=-g/2,k=8*!!a.label,_=o.default.svg(m),S=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(S.roughness=0,S.fillStyle="solid");let M=_.rectangle($,-u/2,g,u,S),v=Math.max(g,x.width),N=u+x.height+k,C=_.rectangle(-v/2,-N/2,v,N,{...S,fill:"none",stroke:"none"}),A=m.insert(()=>M,":first-child"),B=m.insert(()=>C);if(a.img){let t=m.append("image");t.attr("href",a.img),t.attr("width",g),t.attr("height",u),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-g/2},${w?N/2-u:-N/2})`)}return p.attr("transform",`translate(${-x.width/2-(x.x-(x.left??0))},${w?-u/2-x.height/2-k/2:u/2-x.height/2+k/2})`),A.attr("transform",`translate(0,${w?x.height/2+k/2:-x.height/2-k/2})`),f(a,B),a.intersect=function(t){if(n.log.info("iconSquare intersect",a,t),!a.label)return b(a,t);let e=a.x??0,l=a.y??0,r=a.height??0,i=[];return D(a,i=w?[{x:e-x.width/2,y:l-r/2},{x:e+x.width/2,y:l-r/2},{x:e+x.width/2,y:l-r/2+x.height+k},{x:e+g/2,y:l-r/2+x.height+k},{x:e+g/2,y:l+r/2},{x:e-g/2,y:l+r/2},{x:e-g/2,y:l-r/2+x.height+k},{x:e-x.width/2,y:l-r/2+x.height+k}]:[{x:e-g/2,y:l-r/2},{x:e+g/2,y:l-r/2},{x:e+g/2,y:l-r/2+u},{x:e+x.width/2,y:l-r/2+u},{x:e+x.width/2/2,y:l+r/2},{x:e-x.width/2,y:l+r/2},{x:e-x.width/2,y:l-r/2+u},{x:e-g/2,y:l-r/2+u}],t)},m}async function tv(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?2*n:n,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.height+2*n,a.height??0),g=Math.max(d.width+2*s,(a.width??0)-c),u=[{x:0,y:0},{x:g,y:0},{x:g+3*c/6,y:-c},{x:-3*c/6,y:-c}],{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(h),r=(0,e.userNodeOverrides)(a,{}),i=x(u),n=t.path(i,r);l=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),p&&l.attr("style",p)}else l=R(h,g,c,u);return i&&l.attr("style",i),a.width=g,a.height=c,f(a,l),a.intersect=function(t){return D(a,u,t)},h}async function tN(t,e){let{shapeSvg:a,bbox:l,label:r}=await y(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),f(e,i),e.intersect=function(t){return b(e,t)},a}async function tD(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?2*n:n,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.height+n,a.height??0),g=Math.max(d.width+s,(a.width??0)-c),u=[{x:0,y:0},{x:g+3*c/6,y:0},{x:g,y:-c},{x:-(3*c)/6,y:-c}],{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(h),r=(0,e.userNodeOverrides)(a,{}),i=x(u),n=t.path(i,r);l=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),p&&l.attr("style",p)}else l=R(h,g,c,u);return i&&l.attr("style",i),a.width=g,a.height=c,f(a,l),a.intersect=function(t){return D(a,u,t)},h}async function tC(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s="neo"===a.look?2*n:n,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=Math.max(d.height+n,a.height??0),g=Math.max(d.width+s,(a.width??0)-c),u=[{x:-3*c/6,y:0},{x:g,y:0},{x:g+3*c/6,y:-c},{x:0,y:-c}],{cssStyles:p}=a;if("handDrawn"===a.look){let t=o.default.svg(h),r=(0,e.userNodeOverrides)(a,{}),i=x(u),n=t.path(i,r);l=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${c/2})`),p&&l.attr("style",p)}else l=R(h,g,c,u);return i&&l.attr("style",i),a.width=g,a.height=c,f(a,l),a.intersect=function(t){return D(a,u,t)},h}function tA(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.label="",a.labelStyle=l;let i=t.insert("g").attr("class",m(a)).attr("id",a.domId??a.id),{cssStyles:s}=a,h=Math.max(35,a?.width??0),d=Math.max(35,a?.height??0),c=[{x:h,y:0},{x:0,y:d+3.5},{x:h-14,y:d+3.5},{x:0,y:2*d},{x:h,y:d-3.5},{x:14,y:d-3.5}],g=o.default.svg(i),y=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(y.roughness=0,y.fillStyle="solid");let u=x(c),p=g.path(u,y),w=i.insert(()=>p,":first-child");return w.attr("class","outer-path"),s&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",s),r&&"handDrawn"!==a.look&&w.selectAll("path").attr("style",r),w.attr("transform",`translate(-${h/2},${-d})`),f(a,w),a.intersect=function(t){return n.log.info("lightningBolt intersect",a,t),D(a,c,t)},i}(0,s.__name)(tw,"hexagon"),(0,s.__name)(t$,"hourglass"),(0,s.__name)(tb,"icon"),(0,s.__name)(tk,"iconCircle"),(0,s.__name)(t_,"iconRounded"),(0,s.__name)(tS,"iconSquare"),(0,s.__name)(tM,"imageSquare"),(0,s.__name)(tv,"inv_trapezoid"),(0,s.__name)(tN,"labelRect"),(0,s.__name)(tD,"lean_left"),(0,s.__name)(tC,"lean_right"),(0,s.__name)(tA,"lightningBolt");var tB=(0,s.__name)((t,e,a,l,r,i,n)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tP=(0,s.__name)((t,e,a,l,r,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tL=(0,s.__name)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tO(t,a){let l,{labelStyles:i,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=i;let s=a.padding??0,h="neo"===a.look?16:s,d="neo"===a.look?24:s;if(a.width||a.height){let t=a.width??0;a.width=(a.width??0)-h,a.width<10&&(a.width=10),a.height=(a.height??0)-d-t/2/(2.5+t/50)*3,a.height<10&&(a.height=10)}let{shapeSvg:c,bbox:g,label:u}=await y(t,a,m(a)),x=(a?.width?a?.width:g.width)+2*h,p=x/2,w=p/(2.5+x/50),$=(a?.height?a?.height:g.height)+w+2*d,k=.1*$,{cssStyles:_}=a;if("handDrawn"===a.look){let t=o.default.svg(c),r=tP(0,0,x,$,p,w,k),i=tL(0,w,x,$,p,w),n=(0,e.userNodeOverrides)(a,{}),s=t.path(r,n),h=t.path(i,n);c.insert(()=>h,":first-child").attr("class","line"),(l=c.insert(()=>s,":first-child")).attr("class","basic label-container"),_&&l.attr("style",_)}else{let t=tB(0,0,x,$,p,w,k);l=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,r.handleUndefinedAttr)(_)).attr("style",n)}return l.attr("label-offset-y",w),l.attr("transform",`translate(${-x/2}, ${-($/2+w)})`),f(a,l),u.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${-(g.height/2)+w-(g.y-(g.top??0))})`),a.intersect=function(t){let e=b(a,t),l=e.x-(a.x??0);if(0!=p&&(Math.abs(l)<(a.width??0)/2||Math.abs(l)==(a.width??0)/2&&Math.abs(e.y-(a.y??0))>(a.height??0)/2-w)){let r=w*w*(1-l*l/(p*p));r>0&&(r=Math.sqrt(r)),r=w-r,t.y-(a.y??0)>0&&(r=-r),e.y+=r}return e},c}async function tR(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;if(a.width||a.height){let t=a.width;a.width=(t??0)*10/11-2*n,a.width<10&&(a.width=10),a.height=(a?.height??0)-2*s,a.height<10&&(a.height=10)}let{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width?a?.width:d.width)+(n??0)*2,u=(a?.height?a?.height:d.height)+(s??0)*2,x="neo"===a.look?u/4:u/8,w=u+x,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-g/2-g/2*.1,y:-w/2},{x:-g/2-g/2*.1,y:w/2},...p(-g/2-g/2*.1,w/2,g/2+g/2*.1,w/2,x,.8),{x:g/2+g/2*.1,y:-w/2},{x:-g/2-g/2*.1,y:-w/2},{x:-g/2,y:-w/2},{x:-g/2,y:w/2*1.1},{x:-g/2,y:-w/2}],S=b.polygon(_.map(t=>[t.x,t.y]),k),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",r),M.attr("transform",`translate(0,${-x/2})`),c.attr("transform",`translate(${-g/2+(a.padding??0)+g/2*.1/2-(d.x-(d.left??0))},${-u/2+(a.padding??0)-x/2-(d.y-(d.top??0))})`),f(a,M),a.intersect=function(t){return D(a,_,t)},h}async function tT(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i,h="neo"===a.look?10:5;(a.width||a.height)&&(a.width=Math.max((a?.width??0)-2*n-2*h,10),a.height=Math.max((a?.height??0)-2*s-2*h,10));let{shapeSvg:d,bbox:c,label:g}=await y(t,a,m(a)),u=(a?.width?a?.width:c.width)+2*n+2*h,p=(a?.height?a?.height:c.height)+2*s+2*h,w=u-2*h,b=p-2*h,k=-w/2,_=-b/2,{cssStyles:S}=a,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{}),N=[{x:k-h,y:_+h},{x:k-h,y:_+b+h},{x:k+w-h,y:_+b+h},{x:k+w-h,y:_+b},{x:k+w,y:_+b},{x:k+w,y:_+b-h},{x:k+w+h,y:_+b-h},{x:k+w+h,y:_-h},{x:k+h,y:_-h},{x:k+h,y:_},{x:k,y:_},{x:k,y:_+h}];"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid");let C=x(N),A=M.path(C,v),B=x([{x:k,y:_+h},{x:k+w-h,y:_+h},{x:k+w-h,y:_+b},{x:k+w,y:_+b},{x:k+w,y:_},{x:k,y:_}]),P=M.path(B,v);"handDrawn"!==a.look&&(A=$(A),P=$(P));let L=d.insert("g",":first-child");return L.insert(()=>A),L.insert(()=>P),L.attr("class","basic label-container outer-path"),S&&"handDrawn"!==a.look&&L.selectAll("path").attr("style",S),r&&"handDrawn"!==a.look&&L.selectAll("path").attr("style",r),g.attr("transform",`translate(${-(c.width/2)-h-(c.x-(c.left??0))}, ${-(c.height/2)+h-(c.y-(c.top??0))})`),f(a,L),a.intersect=function(t){return D(a,N,t)},d}async function tI(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h=a.padding??0,d="neo"===a.look?16:h,c="neo"===a.look?12:h,g=!0;(a.width||a.height)&&(g=!1,a.width=(a?.width??0)-2*d,a.height=(a?.height??0)-3*c);let u=Math.max(n.width,a?.width??0)+2*d,w=Math.max(n.height,a?.height??0)+3*c,$="neo"===a.look?w/4:w/8,b=w+(g?$/2:-$/2),k=-u/2,_=-b/2,{cssStyles:S}=a,M=p(k-10,_+b+10,k+u-10,_+b+10,$,.8),v=M?.[M.length-1],N=[{x:k-10,y:_+10},{x:k-10,y:_+b+10},...M,{x:k+u-10,y:v.y-10},{x:k+u,y:v.y-10},{x:k+u,y:v.y-20},{x:k+u+10,y:v.y-20},{x:k+u+10,y:_-10},{x:k+10,y:_-10},{x:k+10,y:_},{x:k,y:_},{x:k,y:_+10}],C=[{x:k,y:_+10},{x:k+u-10,y:_+10},{x:k+u-10,y:v.y-10},{x:k+u,y:v.y-10},{x:k+u,y:_},{x:k,y:_}],A=o.default.svg(i),B=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(B.roughness=0,B.fillStyle="solid");let P=x(N),L=A.path(P,B),O=x(C),R=A.path(O,B),T=i.insert(()=>L,":first-child");return T.insert(()=>R),T.attr("class","basic label-container outer-path"),S&&"handDrawn"!==a.look&&T.selectAll("path").attr("style",S),r&&"handDrawn"!==a.look&&T.selectAll("path").attr("style",r),T.attr("transform",`translate(0,${-$/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-$/2-(n.y-(n.top??0))})`),f(a,T),a.intersect=function(t){return D(a,N,t)},i}async function tH(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=r,a.useHtmlLabels||(0,i.getEffectiveHtmlLabels)((0,i.getConfig)())||(a.centerLabel=!0);let{shapeSvg:s,bbox:h,label:d}=await y(t,a,m(a)),c=Math.max(h.width+(a.padding??0)*2,a?.width??0),g=Math.max(h.height+(a.padding??0)*2,a?.height??0),{cssStyles:u}=a,x=o.default.svg(s),p=(0,e.userNodeOverrides)(a,{fill:l.noteBkgColor,stroke:l.noteBorderColor});"handDrawn"!==a.look&&(p.roughness=0,p.fillStyle="solid");let w=x.rectangle(-c/2,-g/2,c,g,p),$=s.insert(()=>w,":first-child");return $.attr("class","basic label-container outer-path"),d.attr("class","label noteLabel"),u&&"handDrawn"!==a.look&&$.selectAll("path").attr("style",u),n&&"handDrawn"!==a.look&&$.selectAll("path").attr("style",n),d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),f(a,$),a.intersect=function(t){return b(a,t)},s}(0,s.__name)(tO,"linedCylinder"),(0,s.__name)(tR,"linedWaveEdgedRect"),(0,s.__name)(tT,"multiRect"),(0,s.__name)(tI,"multiWaveEdgedRectangle"),(0,s.__name)(tH,"note");var tE=(0,s.__name)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tW(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{shapeSvg:n,bbox:s}=await y(t,a,m(a)),h=s.width+(a.padding??0)+(s.height+(a.padding??0)),d=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:c}=a;if("handDrawn"===a.look){let t=o.default.svg(n),r=(0,e.userNodeOverrides)(a,{}),i=tE(0,0,h),s=t.path(i,r);l=n.insert(()=>s,":first-child").attr("transform",`translate(${-h/2+.5}, ${h/2})`),c&&l.attr("style",c)}else(l=R(n,h,h,d)).attr("transform",`translate(${-h/2+.5}, ${h/2})`);return i&&l.attr("style",i),f(a,l),a.calcIntersect=function(t,e){let a=t.width,l=D(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},a.intersect=function(t){return this.calcIntersect(a,t)},n}async function tq(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?21:i??0,s="neo"===a.look?12:i??0,{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=d.width+("neo"===a.look?2*n:n),u=Math.max(d.height+("neo"===a.look?2*s:s),a.height??0),p=-Math.max(g,(a.width??0)-u/4)/2,w=-u/2,$=w/2,b=[{x:p+$,y:w},{x:p,y:0},{x:p+$,y:-w},{x:-p,y:-w},{x:-p,y:w}],{cssStyles:k}=a,_=o.default.svg(h),S=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(S.roughness=0,S.fillStyle="solid");let M=x(b),v=_.path(M,S),N=h.insert(()=>v,":first-child");return N.attr("class","basic label-container outer-path"),k&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",k),r&&"handDrawn"!==a.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${-$/2},0)`),c.attr("transform",`translate(${-$/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),f(a,N),a.intersect=function(t){return D(a,b,t)},h}async function tz(t,a){let l,r,s,{labelStyles:d,nodeStyles:c}=(0,e.styles2String)(a);a.labelStyle=d,l=a.cssClasses?"node "+a.cssClasses:"node default";let g=t.insert("g").attr("class",l).attr("id",a.domId||a.id),y=g.insert("g"),u=g.insert("g").attr("class","label").attr("style",c),m=a.description,x=a.label,p=await _(u,x,a.labelStyle,!0,!0),w={width:0,height:0};if((0,i.getEffectiveHtmlLabels)((0,i.getConfig2)())){let t=p.children[0],e=(0,h.select)(p);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}n.log.info("Text 2",m);let $=m||[],S=p.getBBox(),M=await _(u,Array.isArray($)?$.join("<br/>"):$,a.labelStyle,!0,!0),v=M.children[0],N=(0,h.select)(M);w=v.getBoundingClientRect(),N.attr("width",w.width),N.attr("height",w.height);let D=(a.padding||0)/2;(0,h.select)(M).attr("transform","translate( "+(w.width>S.width?0:(S.width-w.width)/2)+", "+(S.height+D+5)+")"),(0,h.select)(p).attr("transform","translate( "+(w.width<S.width?0:-(S.width-w.width)/2)+", 0)"),w=u.node().getBBox(),u.attr("transform","translate("+-w.width/2+", "+(-w.height/2-D+3)+")");let C=w.width+(a.padding||0),A=w.height+(a.padding||0),B=-w.width/2-D,P=-w.height/2-D;if("handDrawn"===a.look){let t=o.default.svg(g),l=(0,e.userNodeOverrides)(a,{}),i=t.path(k(B,P,C,A,a.rx||0),l),h=t.line(-w.width/2-D,-w.height/2-D+S.height+D,w.width/2+D,-w.height/2-D+S.height+D,l);s=g.insert(()=>(n.log.debug("Rough node insert CXC",i),h),":first-child"),r=g.insert(()=>(n.log.debug("Rough node insert CXC",i),i),":first-child")}else r=y.insert("rect",":first-child"),s=y.insert("line"),r.attr("class","outer title-state").attr("style",c).attr("x",-w.width/2-D).attr("y",-w.height/2-D).attr("width",w.width+(a.padding||0)).attr("height",w.height+(a.padding||0)),s.attr("class","divider").attr("x1",-w.width/2-D).attr("x2",w.width/2+D).attr("y1",-w.height/2-D+S.height+D).attr("y2",-w.height/2-D+S.height+D);return f(a,r),a.intersect=function(t){return b(a,t)},g}async function tj(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,r={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return to(t,e,r)}async function tF(t,a){let{labelStyles:l,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=l;let n="neo"===a.look?16:a.padding??0,s="neo"===a.look?12:a.padding??0,{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width??d.width)+2*n+("neo"===a.look?8:16),u=(a?.height??d.height)+2*s,x=g-8,p=8-g/2,w=-u/2,{cssStyles:$}=a,k=o.default.svg(h),_=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=k.polygon([{x:p,y:w},{x:p+x,y:w},{x:p+x,y:w+u},{x:p-8,y:w+u},{x:p-8,y:w},{x:p,y:w},{x:p,y:w+u}].map(t=>[t.x,t.y]),_),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path").attr("style",(0,r.handleUndefinedAttr)($)),i&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",i),$&&"handDrawn"!==a.look&&M.selectAll("path").attr("style",i),c.attr("transform",`translate(${4-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),f(a,M),a.intersect=function(t){return b(a,t)},h}async function tU(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;(a.width||a.height)&&(a.width=Math.max((a?.width??0)-2*n,10),a.height=Math.max((a?.height??0)/1.5-2*s,10));let{shapeSvg:h,bbox:d,label:c}=await y(t,a,m(a)),g=(a?.width?a?.width:d.width)+2*n,u=((a?.height?a?.height:d.height)+2*s)*1.5/1.5,p=-g/2,w=-u/2,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:p,y:w},{x:p,y:w+u},{x:p+g,y:w+u},{x:p+g,y:w-u/2}],S=x(_),M=b.path(S,k),v=h.insert(()=>M,":first-child");return v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",$),r&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",r),v.attr("transform",`translate(0, ${u/4})`),c.attr("transform",`translate(${-g/2+(a.padding??0)-(d.x-(d.left??0))}, ${-u/4+(a.padding??0)-(d.y-(d.top??0))})`),f(a,v),a.intersect=function(t){return D(a,_,t)},h}async function tV(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,r="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:r};return to(t,e,i)}async function tZ(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?20:i,s="neo"===a.look?12:i,{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=d.height+("neo"===a.look?2*s:s),g=d.width+c/4+("neo"===a.look?2*n:n),u=c/2,{cssStyles:p}=a,$=o.default.svg(h),b=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-g/2+u,y:-c/2},{x:g/2-u,y:-c/2},...w(-g/2+u,0,u,50,90,270),{x:g/2-u,y:c/2},...w(g/2-u,0,u,50,270,450)],_=x(k),S=$.path(_,b),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),p&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",p),r&&"handDrawn"!==a.look&&M.selectChildren("path").attr("style",r),f(a,M),a.intersect=function(t){return D(a,k,t)},h}async function tG(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return to(t,e,a)}function tX(t,a,{config:{themeVariables:l}}){let{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let{cssStyles:n}=a,{lineColor:s,stateBorder:h,nodeBorder:d,nodeShadow:c}=l;(a.width||a.height)&&((a.width??0)<14&&(a.width=14),(a.height??0)<14&&(a.height=14)),a.width||(a.width=14),a.height||(a.height=14);let g=t.insert("g").attr("class","node default").attr("id",a.domId??a.id),y=o.default.svg(g),u=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(u.roughness=0,u.fillStyle="solid");let m=y.circle(0,0,a.width,{...u,stroke:s,strokeWidth:2}),x=h??d,p=(a.width??0)*5/14,w=y.circle(0,0,p,{...u,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),$=g.insert(()=>m,":first-child");if($.insert(()=>w),"handDrawn"!==a.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),i&&$.selectAll("path").attr("style",i),a.width<25&&c&&"handDrawn"!==a.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return f(a,$),a.intersect=function(t){return M(a,(a.width??0)/2,t)},g}function tJ(t,a,{config:{themeVariables:l}}){let r,{lineColor:i,nodeShadow:n}=l;(a.width||a.height)&&((a.width??0)<14&&(a.width=14),(a.height??0)<14&&(a.height=14)),a.width||(a.width=14),a.height||(a.height=14);let s=t.insert("g").attr("class","node default").attr("id",a.domId||a.id);if("handDrawn"===a.look){let t=o.default.svg(s).circle(0,0,a.width,(0,e.solidStateFill)(i));(r=s.insert(()=>t)).attr("class","state-start").attr("r",(a.width??7)/2).attr("width",a.width??14).attr("height",a.height??14)}else(r=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(a.width??7)/2).attr("width",a.width??14).attr("height",a.height??14);if(a.width<25&&n&&"handDrawn"!==a.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";r.attr("style",`filter:url(#${a})`)}return f(a,r),a.intersect=function(t){return M(a,(a.width??7)/2,t)},s}async function tK(t,a){let{labelStyles:l,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=l;let n=a?.padding??8,s="neo"===a.look?28:n,h="neo"===a.look?12:n,{shapeSvg:d,bbox:c}=await y(t,a,m(a)),g=Math.max(c.width+16+s,a.width??0),u=Math.max(c.height+h,a.height??0),x=g-16,p=-g/2,w=-u/2,$=[{x:0,y:0},{x:x,y:0},{x:x,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:x+8,y:0},{x:x+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if("handDrawn"===a.look){let t=o.default.svg(d),l=(0,e.userNodeOverrides)(a,{}),i=t.rectangle(p,w,x+16,u,l),n=t.line(p+8,w,p+8,w+u,l),s=t.line(p+8+x,w,p+8+x,w+u,l);d.insert(()=>n,":first-child"),d.insert(()=>s,":first-child");let h=d.insert(()=>i,":first-child"),{cssStyles:c}=a;h.attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(c)),f(a,h)}else{let t=R(d,x,u,$);i&&t.attr("style",i),f(a,t)}return a.intersect=function(t){return D(a,$,t)},d}async function tY(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;(a.width||a.height)&&(a.height=Math.max((a?.height??0)-2*s,10),a.width=Math.max((a?.width??0)-2*n-.2*(a.height+2*s),10));let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.height?a?.height:d.height)+2*s,g=.2*c,u=(a?.width?a?.width:d.width)+2*n+g-g,p=-u/2,w=-c/2,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{}),_=[{x:p-g/2,y:w},{x:p+u+g/2,y:w},{x:p+u+g/2,y:w+c},{x:p-g/2,y:w+c}];"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let S=x(_),M=b.path(S,k),v=x([{x:p+u-g/2,y:w+c},{x:p+u+g/2,y:w+c},{x:p+u+g/2,y:w+c-.2*c}]),N=b.path(v,{...k,fillStyle:"solid"}),C=h.insert(()=>N,":first-child");return C.insert(()=>M,":first-child"),C.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&C.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&C.selectAll("path").attr("style",r),f(a,C),a.intersect=function(t){return D(a,_,t)},h}async function tQ(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,label:s}=await y(t,a,m(a)),h=Math.max(n.width+(a.padding??0)*2,a?.width??0),d=Math.max(n.height+(a.padding??0)*2,a?.height??0),c=d/8,g=.2*h,u=.2*d,w=d+c,{cssStyles:$}=a,b=o.default.svg(i),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-h/2-h/2*.1,y:w/2},...p(-h/2-h/2*.1,w/2,h/2+h/2*.1,w/2,c,.8),{x:h/2+h/2*.1,y:-w/2},{x:-h/2-h/2*.1,y:-w/2}],S=-h/2+h/2*.1,M=-w/2-.4*u,v=[{x:S+h-g,y:(M+d)*1.3},{x:S+h,y:M+d-u},{x:S+h,y:(M+d)*.9},...p(S+h,(M+d)*1.25,S+h-g,(M+d)*1.3,-(.02*d),.5)],N=x(_),C=b.path(N,k),A=x(v),B=b.path(A,{...k,fillStyle:"solid"}),P=i.insert(()=>B,":first-child");return P.insert(()=>C,":first-child"),P.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&P.selectAll("path").attr("style",r),P.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-h/2+(a.padding??0)-(n.x-(n.left??0))},${-d/2+(a.padding??0)-c/2-(n.y-(n.top??0))})`),f(a,P),a.intersect=function(t){return D(a,_,t)},i}async function t0(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n}=await y(t,a,m(a)),s=Math.max(n.width+(a.padding??0),a?.width||0),h=Math.max(n.height+(a.padding??0),a?.height||0),o=i.insert("rect",":first-child");return o.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),f(a,o),a.intersect=function(t){return b(a,t)},i}(0,s.__name)(tW,"question"),(0,s.__name)(tq,"rect_left_inv_arrow"),(0,s.__name)(tz,"rectWithTitle"),(0,s.__name)(tj,"roundedRect"),(0,s.__name)(tF,"shadedProcess"),(0,s.__name)(tU,"slopedRect"),(0,s.__name)(tV,"squareRect"),(0,s.__name)(tZ,"stadium"),(0,s.__name)(tG,"state"),(0,s.__name)(tX,"stateEnd"),(0,s.__name)(tJ,"stateStart"),(0,s.__name)(tK,"subroutine"),(0,s.__name)(tY,"taggedRect"),(0,s.__name)(tQ,"taggedWaveEdgedRectangle"),(0,s.__name)(t0,"text");var t2=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e}
3
+ a${r},${i} 0,0,1 0,${-l}
4
+ l${a},0
5
+ a${r},${i} 0,0,1 0,${l}
6
+ M${a},${-l}
7
+ a${r},${i} 0,0,0 0,${l}
8
+ l${-a},0`,"createCylinderPathD"),t1=(0,s.__name)((t,e,a,l,r,i)=>`M${t},${e} M${t+a},${e} a${r},${i} 0,0,0 0,${-l} l${-a},0 a${r},${i} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),t5=(0,s.__name)((t,e,a,l,r,i)=>`M${t+a/2},${-l/2} a${r},${i} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function t8(t,a){let l,{labelStyles:i,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=i;let s=a.padding??0,h="neo"===a.look?12:s/2,d=a.height??0;a.height&&(a.height=a.height-h,a.height<5&&(a.height=5)),a.width&&(a.width=a.width-h-d/2/(2.5+d/50)*3,a.width<10&&(a.width=10));let{shapeSvg:c,bbox:g,label:u}=await y(t,a,m(a)),x=Math.max(a.height??0,g.height)+h,p=x/2,w=p/(2.5+x/50),$=Math.max(a.width??0,g.width)+w+h,{cssStyles:k}=a;if("handDrawn"===a.look){let t=o.default.svg(c),r=t1(0,0,$,x,w,p),i=t5(0,0,$,x,w,p),n=t.path(r,(0,e.userNodeOverrides)(a,{})),s=t.path(i,(0,e.userNodeOverrides)(a,{fill:"none"}));l=c.insert(()=>s,":first-child"),(l=c.insert(()=>n,":first-child")).attr("class","basic label-container"),k&&l.attr("style",k)}else{let t=t2(0,0,$,x,w,p);(l=c.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(k)).attr("style",n)).attr("class","basic label-container outer-path"),k&&l.selectAll("path").attr("style",k),n&&l.selectAll("path").attr("style",n)}return l.attr("label-offset-x",w),l.attr("transform",`translate(${-$/2}, ${x/2} )`),u.attr("transform",`translate(${-(g.width/2)-w-(g.x-(g.left??0))}, ${-(g.height/2)-(g.y-(g.top??0))})`),f(a,l),a.intersect=function(t){let e=b(a,t),l=e.y-(a.y??0);if(0!=p&&(Math.abs(l)<(a.height??0)/2||Math.abs(l)==(a.height??0)/2&&Math.abs(e.x-(a.x??0))>(a.width??0)/2-w)){let r=w*w*(1-l*l/(p*p));0!=r&&(r=Math.sqrt(Math.abs(r))),r=w-r,t.x-(a.x??0)>0&&(r=-r),e.x+=r}return e},c}async function t4(t,a){let l,{labelStyles:r,nodeStyles:i}=(0,e.styles2String)(a);a.labelStyle=r;let n=a.padding??0,s=(a.look,n),h="neo"===a.look?2*n:n,{shapeSvg:d,bbox:c}=await y(t,a,m(a)),g=Math.max(c.height+s,a.height??0),u=Math.max(c.width+h,(a.width??0)-g),p=[{x:-3*g/6,y:0},{x:u+3*g/6,y:0},{x:u,y:-g},{x:0,y:-g}],{cssStyles:w}=a;if("handDrawn"===a.look){let t=o.default.svg(d),r=(0,e.userNodeOverrides)(a,{}),i=x(p),n=t.path(i,r);l=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${g/2})`),w&&l.attr("style",w)}else l=R(d,u,g,p);return i&&l.attr("style",i),a.width=u,a.height=g,f(a,l),a.intersect=function(t){return D(a,p,t)},d}async function t3(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i;(a.width||a.height)&&(a.height=(a.height??0)-2*s,a.height<5&&(a.height=5),a.width=(a.width??0)-2*n,a.width<15&&(a.width=15));let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.width?a?.width:d.width)+2*n,g=(a?.height?a?.height:d.height)+2*s,{cssStyles:u}=a,p=o.default.svg(h),w=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(w.roughness=0,w.fillStyle="solid");let $=[{x:-c/2*.8,y:-g/2},{x:c/2*.8,y:-g/2},{x:c/2,y:-g/2*.6},{x:c/2,y:g/2},{x:-c/2,y:g/2},{x:-c/2,y:-g/2*.6}],b=x($),k=p.path(b,w),_=h.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),u&&"handDrawn"!==a.look&&_.selectChildren("path").attr("style",u),r&&"handDrawn"!==a.look&&_.selectChildren("path").attr("style",r),f(a,_),a.intersect=function(t){return D(a,$,t)},h}async function t6(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let s=a.padding??0,h="neo"===a.look?2*s:s;(a.width||a.height)&&(a.width=((a?.width??0)-h)/2,a.width<10&&(a.width=10),a.height=a?.height??0,a.height<10&&(a.height=10));let{shapeSvg:d,bbox:c,label:g}=await y(t,a,m(a)),u=(0,i.evaluate)((0,i.getConfig2)().flowchart?.htmlLabels),p=(a?.width?a?.width:c.width)+h,w=a?.height?a?.height:p+c.height,$=[{x:0,y:0},{x:w,y:0},{x:w/2,y:-w}],{cssStyles:b}=a,k=o.default.svg(d),_=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(_.roughness=0,_.fillStyle="solid");let S=x($),M=k.path(S,_),v=d.insert(()=>M,":first-child").attr("transform",`translate(${-w/2}, ${w/2})`).attr("class","outer-path");return b&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",b),r&&"handDrawn"!==a.look&&v.selectChildren("path").attr("style",r),a.width=p,a.height=w,f(a,v),g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${w/2-(c.height+(a.padding??0)/(u?2:1)-(c.y-(c.top??0)))})`),a.intersect=function(t){return n.log.info("Triangle intersect",a,$,t),D(a,$,t)},d}async function t9(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?12:i,h=!0;(a.width||a.height)&&(h=!1,a.width=(a?.width??0)-2*n,a.width<10&&(a.width=10),a.height=(a?.height??0)-2*s,a.height<10&&(a.height=10));let{shapeSvg:d,bbox:c,label:g}=await y(t,a,m(a)),u=(a?.width?a?.width:c.width)+(n??0)*2,w=(a?.height?a?.height:c.height)+(s??0)*2,$="neo"===a.look?w/4:w/8,b=w+(h?$:-$),{cssStyles:k}=a,_=14-u,S=_>0?_/2:0,M=o.default.svg(d),v=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(v.roughness=0,v.fillStyle="solid");let N=[{x:-u/2-S,y:b/2},...p(-u/2-S,b/2,u/2+S,b/2,$,.8),{x:u/2+S,y:-b/2},{x:-u/2-S,y:-b/2}],C=x(N),A=M.path(C,v),B=d.insert(()=>A,":first-child");return B.attr("class","basic label-container outer-path"),k&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",k),r&&"handDrawn"!==a.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(0,${-$/2})`),g.attr("transform",`translate(${-u/2+(a.padding??0)-(c.x-(c.left??0))},${-w/2+(a.padding??0)-$-(c.y-(c.top??0))})`),f(a,B),a.intersect=function(t){return D(a,N,t)},d}async function t7(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i=a.padding??0,n="neo"===a.look?16:i,s="neo"===a.look?20:i;if(a.width||a.height){a.width=a?.width??0,a.width<20&&(a.width=20),a.height=a?.height??0,a.height<10&&(a.height=10);let t=Math.min(.2*a.height,a.height/4);a.height=Math.ceil(a.height-s-20/9*t),a.width=a.width-2*n}let{shapeSvg:h,bbox:d}=await y(t,a,m(a)),c=(a?.width?a?.width:d.width)+2*n,g=(a?.height?a?.height:d.height)+s,u=g/8,w=g+2*u,{cssStyles:$}=a,b=o.default.svg(h),k=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let _=[{x:-c/2,y:w/2},...p(-c/2,w/2,c/2,w/2,u,1),{x:c/2,y:-w/2},...p(c/2,-w/2,-c/2,-w/2,u,-1)],S=x(_),M=b.path(S,k),v=h.insert(()=>M,":first-child");return v.attr("class","basic label-container"),$&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",r),f(a,v),a.intersect=function(t){return D(a,_,t)},h}async function et(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let i="neo"===a.look?16:a.padding??0,n="neo"===a.look?12:a.padding??0;(a.width||a.height)&&(a.width=Math.max((a?.width??0)-2*i-10,10),a.height=Math.max((a?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:h,label:d}=await y(t,a,m(a)),c=(a?.width?a?.width:h.width)+2*i+10,g=(a?.height?a?.height:h.height)+2*n+10,u=c-10,x=g-10,p=-u/2,w=-x/2,{cssStyles:$}=a,b=o.default.svg(s),k=(0,e.userNodeOverrides)(a,{}),_=[{x:p-10,y:w-10},{x:p-10,y:w+x},{x:p+u,y:w+x},{x:p+u,y:w-10}],S=`M${p-10},${w-10} L${p+u},${w-10} L${p+u},${w+x} L${p-10},${w+x} L${p-10},${w-10}
9
+ M${p-10},${w} L${p+u},${w}
10
+ M${p},${w-10} L${p},${w+x}`;"handDrawn"!==a.look&&(k.roughness=0,k.fillStyle="solid");let M=b.path(S,k),v=s.insert(()=>M,":first-child");return v.attr("transform","translate(5, 5)"),v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==a.look&&v.selectAll("path").attr("style",r),d.attr("transform",`translate(${-(h.width/2)+5-(h.x-(h.left??0))}, ${-(h.height/2)+5-(h.y-(h.top??0))})`),f(a,v),a.intersect=function(t){return D(a,_,t)},s}(0,s.__name)(t8,"tiltedCylinder"),(0,s.__name)(t4,"trapezoid"),(0,s.__name)(t3,"trapezoidalPentagon"),(0,s.__name)(t6,"triangle"),(0,s.__name)(t9,"waveEdgedRectangle"),(0,s.__name)(t7,"waveRectangle"),(0,s.__name)(et,"windowPane");var ee=new Set(["redux-color","redux-dark-color"]),ea=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function el(t,a){a.alias&&(a.label=a.alias);let{theme:l,themeVariables:n}=(0,i.getConfig)(),{rowEven:s,rowOdd:d,nodeBorder:c,borderColorArray:g}=n;if("handDrawn"===a.look){let{themeVariables:e}=(0,i.getConfig)(),{background:l}=e,r={...a,id:a.id+"-background",domId:(a.domId||a.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${l}`]};await el(t,r)}let y=(0,i.getConfig)();a.useHtmlLabels=y.htmlLabels;let u=y.er?.diagramPadding??10,x=y.er?.entityPadding??6,{cssStyles:p}=a,{labelStyles:w,nodeStyles:$}=(0,e.styles2String)(a);if(0===a.attributes.length&&a.label){let e={rx:0,ry:0,labelPaddingX:u,labelPaddingY:1.5*u,classes:""};(0,r.calculateTextWidth)(a.label,y)+2*e.labelPaddingX<y.er.minEntityWidth&&(a.width=y.er.minEntityWidth);let n=await to(t,a,e);if(null!=l&&ee.has(l)){let t=a.colorIndex??0;n.attr("data-color-id",`color-${t%g.length}`)}if(!(0,i.evaluate)(y.htmlLabels)){let t=n.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return n}y.htmlLabels||(u*=1.25,x*=1.25);let k=m(a);k||(k="node default");let _=t.insert("g").attr("class",k).attr("id",a.domId||a.id),S=await er(_,a.label??"",y,0,0,["name"],w);S.height+=x;let M=0,v=[],N=[],D=0,C=0,A=0,B=0,P=!0,L=!0;for(let t of a.attributes){let e=await er(_,t.type,y,0,M,["attribute-type"],w);D=Math.max(D,e.width+u);let a=await er(_,t.name,y,0,M,["attribute-name"],w);C=Math.max(C,a.width+u);let l=await er(_,t.keys.join(),y,0,M,["attribute-keys"],w);A=Math.max(A,l.width+u);let r=await er(_,t.comment,y,0,M,["attribute-comment"],w);B=Math.max(B,r.width+u);let i=Math.max(e.height,a.height,l.height,r.height)+x;N.push({yOffset:M,rowHeight:i}),M+=i}let O=4;A<=u&&(P=!1,A=0,O--),B<=u&&(L=!1,B=0,O--);let R=_.node().getBBox();if(S.width+2*u-(D+C+A+B)>0){let t=S.width+2*u-(D+C+A+B);D+=t/O,C+=t/O,A>0&&(A+=t/O),B>0&&(B+=t/O)}let T=D+C+A+B,I=o.default.svg(_),H=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(H.roughness=0,H.fillStyle="solid");let E=0;N.length>0&&(E=N.reduce((t,e)=>t+(e?.rowHeight??0),0));let W=Math.max(R.width+2*u,a?.width||0,T),q=Math.max((E??0)+S.height,a?.height||0),z=-W/2,j=-q/2;if(_.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,h.select)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),l.attr("class").includes("attribute-name")?i+=D:l.attr("class").includes("attribute-keys")?i+=D+C:l.attr("class").includes("attribute-comment")&&(i+=D+C+A))}l.attr("transform",`translate(${z+u/2+i}, ${n+j+S.height+x/2})`)}),_.select(".name").attr("transform","translate("+-S.width/2+", "+(j+x/2)+")"),null!=l&&ee.has(l)){let t=a.colorIndex??0;_.attr("data-color-id",`color-${t%g.length}`)}let F=I.rectangle(z,j,W,q,H),U=_.insert(()=>F,":first-child").attr("class","outer-path").attr("style",p.join(""));for(let[t,e]of(v.push(0),N.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=I.rectangle(z,S.height+j+e?.yOffset,W,e?.rowHeight,{...H,fill:a?s:d,stroke:c});_.insert(()=>l,"g.label").attr("style",p.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let V=ei(z,S.height+j,W+z,S.height+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H);if(_.insert(()=>Z).attr("class","divider"),V=ei(D+z,S.height+j,D+z,q+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider"),P){let t=D+C+z;V=ei(t,S.height+j,t,q+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider")}if(L){let t=D+C+A+z;V=ei(t,S.height+j,t,q+j,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider")}for(let t of v){let e=S.height+j+t;V=ei(z,e,W+z,e,1e-4),Z=I.polygon(V.map(t=>[t.x,t.y]),H),_.insert(()=>Z).attr("class","divider")}if(f(a,U),$&&"handDrawn"!==a.look)if(null!=l&&ea.has(l))_.selectAll("path").attr("style",$);else{let t=$.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");_.selectAll("path").attr("style",e??""),_.selectAll(".row-rect-even path").attr("style",$)}return a.intersect=function(t){return b(a,t)},_}async function er(t,e,l,n=0,s=0,o=[],d=""){let c=t.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${n}, ${s})`).attr("style",d);e!==(0,i.parseGenericTypes)(e)&&(e=(e=(0,i.parseGenericTypes)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));let g=c.node().appendChild(await (0,a.createText)(c,e,{width:(0,r.calculateTextWidth)(e,l)+100,style:d,useHtmlLabels:l.htmlLabels},l));if(e.includes("&lt;")||e.includes("&gt;")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let y=g.getBBox();if((0,i.evaluate)(l.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,h.select)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function ei(t,e,a,l,r){return t===a?[{x:t-r/2,y:e},{x:t+r/2,y:e},{x:a+r/2,y:l},{x:a-r/2,y:l}]:[{x:t,y:e-r/2},{x:t,y:e+r/2},{x:a,y:l+r/2},{x:a,y:l-r/2}]}async function en(t,e,a,l,r=a.class.padding??12){let i=3*!l,n=t.insert("g").attr("class",m(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await es(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await es(h,e,0,["font-weight: bolder"]);let u=h.node().getBBox();g=u.height,o=n.insert("g").attr("class","members-group text");let f=0;for(let t of e.members){let e=await es(o,t,f,[t.parseClassifier()]);f+=e+i}(y=o.node().getBBox().height)<=0&&(y=r/2),d=n.insert("g").attr("class","methods-group text");let x=0;for(let t of e.methods){let e=await es(d,t,x,[t.parseClassifier()]);x+=e+i}let p=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-u.width/2}, ${c})`),p=n.node().getBBox(),o.attr("transform",`translate(0, ${c+g+2*r})`),p=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*r:2*r)})`),p=n.node().getBBox(),{shapeSvg:n,bbox:p}}async function es(t,e,l,n=[]){let s,o=t.insert("g").attr("class","label").attr("style",n.join("; ")),c=(0,i.getConfig)(),g="useHtmlLabels"in e?e.useHtmlLabels:(0,i.evaluate)(c.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!g&&y.startsWith("\\")&&(y=y.substring(1)),(0,i.hasKatex)(y)&&(g=!0);let u=await (0,a.createText)(o,(0,i.sanitizeText2)((0,r.decodeEntities)(y)),{width:(0,r.calculateTextWidth)(y,c)+50,classes:"markdown-node-label",useHtmlLabels:g},c),f=1;if(g){let t=u.children[0],e=(0,h.select)(u);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1),await d(t),s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}else{n.includes("font-weight: bolder")&&(0,h.select)(u).selectAll("tspan").attr("font-weight",""),f=u.children.length;let t=u.children[0];(""===u.textContent||u.textContent.includes("&gt"))&&(t.textContent=y[0]+y.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===y[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),s=u.getBBox()}return o.attr("transform","translate(0,"+(-s.height/(2*f)+l)+")"),s.height}async function eh(t,a){let l=(0,i.getConfig2)(),{themeVariables:r}=l,{useGradient:n}=r,s=l.class.padding??12,d=a.useHtmlLabels??(0,i.evaluate)(l.htmlLabels)??!0;a.annotations=a.annotations??[],a.members=a.members??[],a.methods=a.methods??[];let{shapeSvg:c,bbox:g}=await en(t,a,l,d,s),{labelStyles:y,nodeStyles:u}=(0,e.styles2String)(a);a.labelStyle=y,a.cssStyles=a.styles||"";let m=a.styles?.join(";")||u||"";a.cssStyles||(a.cssStyles=m.replaceAll("!important","").split(";"));let x=0===a.members.length&&0===a.methods.length&&!l.class?.hideEmptyMembersBox,p=o.default.svg(c),w=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(w.roughness=0,w.fillStyle="solid");let $=Math.max(a.width??0,g.width),k=Math.max(a.height??0,g.height),_=(a.height??0)>g.height;0===a.members.length&&0===a.methods.length?k+=s:a.members.length>0&&0===a.methods.length&&(k+=2*s);let S=-$/2,M=-k/2,v=x?2*s:0===a.members.length&&0===a.methods.length?-s:0;_&&(v=2*s);let N=p.rectangle(S-s,M-s-(x?s:0===a.members.length&&0===a.methods.length?-s/2:0),$+2*s,k+2*s+v,w),D=c.insert(()=>N,":first-child");D.attr("class","basic label-container outer-path");let C=D.node().getBBox(),A=c.select(".annotation-group").node().getBBox().height-(x?s/2:0)||0,B=c.select(".label-group").node().getBBox().height-(x?s/2:0)||0,P=c.select(".members-group").node().getBBox().height-(x?s/2:0)||0,L=(A+B+M+s-(M-s-(x?s:0===a.members.length&&0===a.methods.length?-s/2:0)))/2;if(c.selectAll(".text").each((t,e,r)=>{let i=(0,h.select)(r[e]),n=i.attr("transform"),o=0;if(n){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(o=parseFloat(t[2]))}let g=o+M+s-(x?s:0===a.members.length&&0===a.methods.length?-s/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(P,s/2);g=_?Math.max(L,A+B+t+M+2*s+s)+2*s:A+B+t+M+4*s+s}0===a.members.length&&0===a.methods.length&&l.class?.hideEmptyMembersBox&&(g=a.annotations.length>0?o-s:o),d||(g-=4);let y=S;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(y=-i.node()?.getBBox().width/2||0,c.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(y=0)})),i.attr("transform",`translate(${y}, ${g})`)}),a.members.length>0||a.methods.length>0||x){let t=A+B+M+s,e=p.line(C.x,t,C.x+C.width,t+.001,w);c.insert(()=>e).attr("class",`divider${"neo"===a.look&&!n?" neo-line":""}`).attr("style",m)}if(x||a.members.length>0||a.methods.length>0){let t=A+B+P+M+2*s+s,e=p.line(C.x,_?Math.max(L,t):t,C.x+C.width,(_?Math.max(L,t):t)+.001,w);c.insert(()=>e).attr("class",`divider${"neo"===a.look&&!n?" neo-line":""}`).attr("style",m)}if("handDrawn"!==a.look&&c.selectAll("path").attr("style",m),D.select(":nth-child(2)").attr("style",m),c.selectAll(".divider").select("path").attr("style",m),a.labelStyle?c.selectAll("span").attr("style",a.labelStyle):c.selectAll("span").attr("style",m),!d){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(m);if(e){let t=e[0].replace("color","fill");c.selectAll("tspan").attr("style",t)}else if(y){let e=t.exec(y);if(e){let t=e[0].replace("color","fill");c.selectAll("tspan").attr("style",t)}}}return f(a,D),a.intersect=function(t){return b(a,t)},c}async function eo(t,a){let l,{labelStyles:r,nodeStyles:n}=(0,e.styles2String)(a);a.labelStyle=r;let s="verifyMethod"in a,d=m(a),c=(0,i.getConfig2)(),{themeVariables:g}=c,{borderColorArray:y,requirementEdgeLabelBackground:u}=g,x="elk"===c.layout?"start":"center",p=t.insert("g").attr("class",d).attr("id",a.domId??a.id),w=l=s?await ed(p,`&lt;&lt;${a.type}&gt;&gt;`,0,a.labelStyle):await ed(p,"&lt;&lt;Element&gt;&gt;",0,a.labelStyle),$=await ed(p,a.name,w,a.labelStyle+"; font-weight: bold;");if(w+=$+20,s){let t=await ed(p,`${a.requirementId?`ID: ${a.requirementId}`:""}`,w,a.labelStyle,x);w+=t;let e=await ed(p,`${a.text?`Text: ${a.text}`:""}`,w,a.labelStyle,x);w+=e;let l=await ed(p,`${a.risk?`Risk: ${a.risk}`:""}`,w,a.labelStyle,x);w+=l,await ed(p,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,w,a.labelStyle,x)}else{let t=await ed(p,`${a.type?`Type: ${a.type}`:""}`,w,a.labelStyle,x);w+=t,await ed(p,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,w,a.labelStyle,x)}let k=(p.node()?.getBBox().width??200)+20,_=(p.node()?.getBBox().height??200)+20,S=-k/2,M=-_/2,v=o.default.svg(p),N=(0,e.userNodeOverrides)(a,{});"handDrawn"!==a.look&&(N.roughness=0,N.fillStyle="solid");let D=v.rectangle(S,M,k,_,N),C=p.insert(()=>D,":first-child");if(C.attr("class","basic label-container outer-path").attr("style",n),y?.length){let t=a.colorIndex??0;p.attr("data-color-id",`color-${t%y.length}`)}if(p.selectAll(".label").each((t,e,a)=>{let l=(0,h.select)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-_/2,o=S+10;(0===e||1===e)&&(o=i),l.attr("transform",`translate(${o}, ${s+20})`)}),w>l+$+20){let t,e=M+l+$+20;if("neo"===a.look){let a=[[S,e],[S+k,e],[S+k,e+.001],[S,e+.001]];t=v.polygon(a,N)}else t=v.line(S,e,S+k,e,N);p.insert(()=>t).attr("class","divider")}return f(a,C),a.intersect=function(t){return b(a,t)},n&&"handDrawn"!==a.look&&(u||y?.length)&&p.selectAll("path").attr("style",n),p}async function ed(t,e,l,n="",s="center"){let o;if(""===e)return 0;let d=t.insert("g").attr("class","label").attr("style",n),c=(0,i.getConfig2)(),g=c.htmlLabels??!0,y=await (0,a.createText)(d,(0,i.sanitizeText2)((0,r.decodeEntities)(e)),{width:(0,r.calculateTextWidth)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:g,style:n},c);if(g){let t=y.children[0],e=(0,h.select)(y);"start"===s&&(0,h.select)(t).style("text-align","left"),o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}else{let t=y.children[0];for(let e of t.children)n&&e.setAttribute("style",n);if("start"===s)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");o=y.getBBox(),o.height+=6}return d.attr("transform",`translate(${-o.width/2},${-o.height/2+l})`),o.height}(0,s.__name)(el,"erBox"),(0,s.__name)(er,"addText"),(0,s.__name)(ei,"lineToPolygon"),(0,s.__name)(en,"textHelper"),(0,s.__name)(es,"addText"),(0,s.__name)(eh,"classBox"),(0,s.__name)(eo,"requirementBox"),(0,s.__name)(ed,"addText");var ec=(0,s.__name)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function eg(t,a,{config:l}){let r,i,n,s,{labelStyles:h,nodeStyles:d}=(0,e.styles2String)(a);a.labelStyle=h||"";let c=a.width;a.width=(a.width??200)-10;let{shapeSvg:g,bbox:x,label:p}=await y(t,a,m(a)),w=a.padding||10,$="";"ticket"in a&&a.ticket&&l?.kanban?.ticketBaseUrl&&($=l?.kanban?.ticketBaseUrl.replace("#TICKET#",a.ticket),r=g.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",$).attr("target","_blank"));let _={useHtmlLabels:a.useHtmlLabels,labelStyle:a.labelStyle||"",width:a.width,img:a.img,padding:a.padding||8,centerLabel:!1};r?{label:i,bbox:n}=await u(r,"ticket"in a&&a.ticket||"",_):{label:i,bbox:n}=await u(g,"ticket"in a&&a.ticket||"",_);let{label:S,bbox:M}=await u(g,"assigned"in a&&a.assigned||"",_);a.width=c;let v=a?.width||0,N=Math.max(n.height,M.height)/2,D=Math.max(x.height+20,a?.height||0)+N,C=-v/2,A=-D/2;p.attr("transform","translate("+(w-v/2)+", "+(-N-x.height/2)+")"),i.attr("transform","translate("+(w-v/2)+", "+(-N+x.height/2)+")"),S.attr("transform","translate("+(w+v/2-M.width-20)+", "+(-N+x.height/2)+")");let{rx:B,ry:P}=a,{cssStyles:L}=a;if("handDrawn"===a.look){let t=o.default.svg(g),l=(0,e.userNodeOverrides)(a,{}),r=B||P?t.path(k(C,A,v,D,B||0),l):t.rectangle(C,A,v,D,l);(s=g.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",L||null)}else{(s=g.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",d).attr("rx",B??5).attr("ry",P??5).attr("x",C).attr("y",A).attr("width",v).attr("height",D);let t="priority"in a&&a.priority;if(t){let e=g.append("line"),a=C+2,l=A+Math.floor((B??0)/2),r=A+D-Math.floor((B??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",r).attr("stroke-width","4").attr("stroke",ec(t))}}return f(a,s),a.height=D,a.intersect=function(t){return b(a,t)},g}async function ey(t,a){let l,{labelStyles:i,nodeStyles:s}=(0,e.styles2String)(a);a.labelStyle=i;let{shapeSvg:h,bbox:d,halfPadding:c,label:g}=await y(t,a,m(a)),u=d.width+10*c,x=d.height+8*c,p=.15*u,{cssStyles:w}=a,$=d.width+20,k=d.height+20,_=Math.max(u,$),S=Math.max(x,k);g.attr("transform",`translate(${-d.width/2}, ${-d.height/2})`);let M=`M0 0
11
+ a${p},${p} 1 0,0 ${.25*_},${-1*S*.1}
12
+ a${p},${p} 1 0,0 ${.25*_},0
13
+ a${p},${p} 1 0,0 ${.25*_},0
14
+ a${p},${p} 1 0,0 ${.25*_},${.1*S}
15
+
16
+ a${p},${p} 1 0,0 ${.15*_},${.33*S}
17
+ a${.8*p},${.8*p} 1 0,0 0,${.34*S}
18
+ a${p},${p} 1 0,0 ${-1*_*.15},${.33*S}
19
+
20
+ a${p},${p} 1 0,0 ${-1*_*.25},${.15*S}
21
+ a${p},${p} 1 0,0 ${-1*_*.25},0
22
+ a${p},${p} 1 0,0 ${-1*_*.25},0
23
+ a${p},${p} 1 0,0 ${-1*_*.25},${-1*S*.15}
24
+
25
+ a${p},${p} 1 0,0 ${-1*_*.1},${-1*S*.33}
26
+ a${.8*p},${.8*p} 1 0,0 0,${-1*S*.34}
27
+ a${p},${p} 1 0,0 ${.1*_},${-1*S*.33}
28
+ H0 V0 Z`;if("handDrawn"===a.look){let t=o.default.svg(h),i=(0,e.userNodeOverrides)(a,{}),n=t.path(M,i);(l=h.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(w))}else l=h.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",M);return l.attr("transform",`translate(${-_/2}, ${-S/2})`),f(a,l),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return n.log.info("Bang intersect",a,t),b(a,t)},h}async function eu(t,a){let l,{labelStyles:i,nodeStyles:s}=(0,e.styles2String)(a);a.labelStyle=i;let{shapeSvg:h,bbox:d,halfPadding:c,label:g}=await y(t,a,m(a)),u=d.width+2*c,x=d.height+2*c,p=.15*u,w=.25*u,$=.35*u,k=.2*u,{cssStyles:_}=a,S=`M0 0
29
+ a${p},${p} 0 0,1 ${.25*u},${-1*u*.1}
30
+ a${$},${$} 1 0,1 ${.4*u},${-1*u*.1}
31
+ a${w},${w} 1 0,1 ${.35*u},${.2*u}
32
+
33
+ a${p},${p} 1 0,1 ${.15*u},${.35*x}
34
+ a${k},${k} 1 0,1 ${-1*u*.15},${.65*x}
35
+
36
+ a${w},${p} 1 0,1 ${-1*u*.25},${.15*u}
37
+ a${$},${$} 1 0,1 ${-1*u*.5},0
38
+ a${p},${p} 1 0,1 ${-1*u*.25},${-1*u*.15}
39
+
40
+ a${p},${p} 1 0,1 ${-1*u*.1},${-1*x*.35}
41
+ a${k},${k} 1 0,1 ${.1*u},${-1*x*.65}
42
+ H0 V0 Z`;if("handDrawn"===a.look){let t=o.default.svg(h),i=(0,e.userNodeOverrides)(a,{}),n=t.path(S,i);(l=h.insert(()=>n,":first-child")).attr("class","basic label-container").attr("style",(0,r.handleUndefinedAttr)(_))}else l=h.insert("path",":first-child").attr("class","basic label-container").attr("style",s).attr("d",S);return g.attr("transform",`translate(${-d.width/2}, ${-d.height/2})`),l.attr("transform",`translate(${-u/2}, ${-x/2})`),f(a,l),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return n.log.info("Cloud intersect",a,t),b(a,t)},h}async function ef(t,a){let{labelStyles:l,nodeStyles:r}=(0,e.styles2String)(a);a.labelStyle=l;let{shapeSvg:i,bbox:n,halfPadding:s,label:h}=await y(t,a,m(a)),o=n.width+8*s,d=n.height+2*s,c="neo"===a.look?`
43
+ M${-o/2} ${d/2-5}
44
+ v${-d+10}
45
+ q0,-5 5,-5
46
+ h${o-10}
47
+ q5,0 5,5
48
+ v${d-5}
49
+ H${-o/2}
50
+ Z
51
+ `:`
52
+ M${-o/2} ${d/2-5}
53
+ v${-d+10}
54
+ q0,-5 5,-5
55
+ h${o-10}
56
+ q5,0 5,5
57
+ v${d-10}
58
+ q0,5 -5,5
59
+ h${-(o-10)}
60
+ q-5,0 -5,-5
61
+ Z
62
+ `;if(!a.domId)throw Error(`defaultMindmapNode: node "${a.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",a.domId).attr("class","node-bkg node-"+a.type).attr("style",r).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-o/2).attr("y1",d/2).attr("x2",o/2).attr("y2",d/2),h.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>h.node()),f(a,g),a.calcIntersect=function(t,e){return b(t,e)},a.intersect=function(t){return b(a,t)},i}async function em(t,e){let a={padding:e.padding??0};return V(t,e,a)}(0,s.__name)(eg,"kanbanItem"),(0,s.__name)(ey,"bang"),(0,s.__name)(eu,"cloud"),(0,s.__name)(ef,"defaultMindmapNode"),(0,s.__name)(em,"mindmapCircle");var ex=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tV},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tj},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tZ},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:tK},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:th},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:td},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tf},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:L},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:G},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:j},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:tr},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:V},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ey},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:eu},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tW},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tw},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tC},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tD},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t4},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tv},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tg},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:t0},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:F},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tF},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tJ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tX},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tm},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:t$},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Y},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ta},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tA},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:t9},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tx},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t8},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tO},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tl},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tc},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:t6},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:et},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ty},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t3},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tu},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tU},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tI},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tT},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:P},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:J},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:tQ},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:tY},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:t7},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tq},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tR}],ep=(0,s.__name)(()=>Object.fromEntries([...Object.entries({state:tG,choice:U,note:tH,composite:Z,rectWithTitle:tz,labelRect:tN,block_arrow:z,collapsedGroup:O,iconSquare:tS,iconCircle:tk,icon:tb,iconRounded:t_,imageSquare:tM,anchor:C,kanbanItem:eg,mindmapCircle:em,defaultMindmapNode:ef,classBox:eh,erBox:el,requirementBox:eo}),...ex.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ew(t){return t in ep}(0,s.__name)(ew,"isValidShape"),t.s(["createLabel_default",0,_,"createRoundedRectPathD",0,k,"intersect_rect_default",0,b,"isValidShape",0,ew,"labelHelper",0,y,"shapes",0,ep,"updateNodeBounds",0,f])}]);