@intent-hq/web 2.375.1 → 2.376.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Dn-hGN0g.js → -Hb5Lymn.js} +1 -1
  3. package/web/app/immutable/chunks/{CQ6jYKtE.js → -bihBnD_.js} +1 -1
  4. package/web/app/immutable/chunks/{DKUOdUyV.js → 0rEEjvhW.js} +1 -1
  5. package/web/app/immutable/chunks/1KDVFF23.js +1 -0
  6. package/web/app/immutable/chunks/{Xgzrv-dN.js → 1wMLd-77.js} +1 -1
  7. package/web/app/immutable/chunks/{BX9IoE2d.js → 26zQgwyJ.js} +1 -1
  8. package/web/app/immutable/chunks/{DSiF4FpM.js → 2WaF6vs_.js} +1 -1
  9. package/web/app/immutable/chunks/{C7Uh4cHO.js → 2tp4E25F.js} +1 -1
  10. package/web/app/immutable/chunks/{Bd6SODL5.js → 471Fgn_p.js} +1 -1
  11. package/web/app/immutable/chunks/{Cpr2SOSC.js → 6FXzbKIf.js} +1 -1
  12. package/web/app/immutable/chunks/{CYYyuCBb.js → 6GF_gyTS.js} +1 -1
  13. package/web/app/immutable/chunks/{DQiheiDa.js → 6HwVA3Xi.js} +48 -48
  14. package/web/app/immutable/chunks/{DODG7FHv.js → 6NqQpMgA.js} +1 -1
  15. package/web/app/immutable/chunks/{DY61j2wq.js → 7n3mxV6t.js} +1 -1
  16. package/web/app/immutable/chunks/{B_jbAa0I.js → 8PIbpdJu.js} +1 -1
  17. package/web/app/immutable/chunks/{C-7W2F0B.js → 8UE1B61A.js} +1 -1
  18. package/web/app/immutable/chunks/{B4SJ0wZk.js → 8VOCP3Xx.js} +1 -1
  19. package/web/app/immutable/chunks/{B4n9OEnJ.js → B4wiFjXK.js} +1 -1
  20. package/web/app/immutable/chunks/{CUXVMwZ6.js → B5n1Er-h.js} +1 -1
  21. package/web/app/immutable/chunks/B61tWwOC.js +1 -0
  22. package/web/app/immutable/chunks/{BDsVnMYl.js → B6ZbCtHN.js} +1 -1
  23. package/web/app/immutable/chunks/{CM4xaytB.js → B6Zf-ZTX.js} +1 -1
  24. package/web/app/immutable/chunks/{YfYAjqUM.js → B77YOXDU.js} +1 -1
  25. package/web/app/immutable/chunks/{BTKPx9nP.js → B85xL2lt.js} +3 -3
  26. package/web/app/immutable/chunks/{D3HVFnZe.js → B8tcC_lC.js} +1 -1
  27. package/web/app/immutable/chunks/{67uMgcnU.js → B9F4r5fH.js} +1 -1
  28. package/web/app/immutable/chunks/{CtX28OJm.js → BA7mfVzm.js} +1 -1
  29. package/web/app/immutable/chunks/{kFANwwYX.js → BEbBWmo4.js} +1 -1
  30. package/web/app/immutable/chunks/{C7TJE1vk.js → BEv4fIdD.js} +1 -1
  31. package/web/app/immutable/chunks/{C9EedYBu.js → BFT4wQs3.js} +1 -1
  32. package/web/app/immutable/chunks/{DNozBV3M.js → BGql-rAX.js} +1 -1
  33. package/web/app/immutable/chunks/{iykV4pvb.js → BHsQzwHt.js} +1 -1
  34. package/web/app/immutable/chunks/{Ds6Uj2aI.js → BIGkxv6Q.js} +1 -1
  35. package/web/app/immutable/chunks/{BWtq4mC4.js → BIwMjRQQ.js} +1 -1
  36. package/web/app/immutable/chunks/{CzEqpD5b.js → BLNcc2k4.js} +1 -1
  37. package/web/app/immutable/chunks/{BbzFLKZE.js → BMScw2DS.js} +1 -1
  38. package/web/app/immutable/chunks/{gsUgKMwT.js → BMfUzLG6.js} +1 -1
  39. package/web/app/immutable/chunks/{DD_c8x6U.js → BOZ6hjJI.js} +2 -2
  40. package/web/app/immutable/chunks/{mM-wy2h5.js → BP7XtCsE.js} +1 -1
  41. package/web/app/immutable/chunks/{NgEAPl8f.js → BPo1GPk4.js} +2 -2
  42. package/web/app/immutable/chunks/{CF0098kp.js → BPqKxoH8.js} +1 -1
  43. package/web/app/immutable/chunks/{BKPOvbtV.js → BPx3dFHu.js} +1 -1
  44. package/web/app/immutable/chunks/{DuPkRrZF.js → BSyKFBWd.js} +1 -1
  45. package/web/app/immutable/chunks/{DaUQbJQJ.js → BWBQA0E0.js} +1 -1
  46. package/web/app/immutable/chunks/{dqvdjjXR.js → BWIYTJ4a.js} +3 -3
  47. package/web/app/immutable/chunks/{BDXSQt10.js → BWyPNph7.js} +2 -2
  48. package/web/app/immutable/chunks/{MBA6k0j3.js → BYBN65Dm.js} +1 -1
  49. package/web/app/immutable/chunks/{CiD4x8Gl.js → BZytk_HL.js} +1 -1
  50. package/web/app/immutable/chunks/{ChbTF48b.js → BaO0hXxI.js} +1 -1
  51. package/web/app/immutable/chunks/{-18XT1CI.js → BblwdMxR.js} +1 -1
  52. package/web/app/immutable/chunks/{DIylOQL5.js → BcEldzTj.js} +1 -1
  53. package/web/app/immutable/chunks/{D_o67XD6.js → BcliNPZw.js} +2 -2
  54. package/web/app/immutable/chunks/{CRl6sOjh.js → Bco7_wmI.js} +1 -1
  55. package/web/app/immutable/chunks/{B_3JIPw3.js → BdBn1UvT.js} +1 -1
  56. package/web/app/immutable/chunks/{SMT1sep4.js → BdNdGDSe.js} +1 -1
  57. package/web/app/immutable/chunks/{DppdhMsn.js → BdaN2XXm.js} +1 -1
  58. package/web/app/immutable/chunks/{CMFbZICM.js → Bdn-RKqv.js} +2 -2
  59. package/web/app/immutable/chunks/{MyWfy8xc.js → BePTHsT0.js} +1 -1
  60. package/web/app/immutable/chunks/{PZRS5x7m.js → Bek4Es60.js} +1 -1
  61. package/web/app/immutable/chunks/{H3ekn9Mt.js → BjRLyMd2.js} +1 -1
  62. package/web/app/immutable/chunks/{5mmUTVhd.js → BjYingUt.js} +1 -1
  63. package/web/app/immutable/chunks/{DZ8q1fkg.js → BkcFLgQ7.js} +1 -1
  64. package/web/app/immutable/chunks/{C1m4pSe1.js → BkmrZjpE.js} +1 -1
  65. package/web/app/immutable/chunks/{ClkC2csJ.js → BlXvVwTG.js} +1 -1
  66. package/web/app/immutable/chunks/{DqujvsHK.js → BntFPxwt.js} +1 -1
  67. package/web/app/immutable/chunks/{CZJDTQJi.js → Bo5PTszQ.js} +1 -1
  68. package/web/app/immutable/chunks/{CkRR8JwL.js → BoLBqPln.js} +1 -1
  69. package/web/app/immutable/chunks/{CSbK1_CV.js → BpT_ybtH.js} +2 -2
  70. package/web/app/immutable/chunks/{BOsHJKjO.js → BpimY2Bn.js} +2 -2
  71. package/web/app/immutable/chunks/{eGxC9Zfx.js → Br9RT7xb.js} +1 -1
  72. package/web/app/immutable/chunks/{BsknvdQb.js → Bs1CY0TU.js} +1 -1
  73. package/web/app/immutable/chunks/{DV_Q2hiQ.js → Bt2C0fwl.js} +2 -2
  74. package/web/app/immutable/chunks/{DgOwYCT0.js → BtT-JO5g.js} +1 -1
  75. package/web/app/immutable/chunks/{Dgn5Otg4.js → Bu4YAtNq.js} +1 -1
  76. package/web/app/immutable/chunks/{BCKmKE5y.js → BuFlry2f.js} +1 -1
  77. package/web/app/immutable/chunks/{Bk5eDkyv.js → BuXc_maR.js} +1 -1
  78. package/web/app/immutable/chunks/{DvOdp8Jx.js → Bv5YjDej.js} +1 -1
  79. package/web/app/immutable/chunks/{ChoM6f6w.js → BvjVhe2e.js} +1 -1
  80. package/web/app/immutable/chunks/{Bu7GfLOK.js → BvvCJG4x.js} +1 -1
  81. package/web/app/immutable/chunks/{BSroN1Rt.js → ByJyX5qZ.js} +1 -1
  82. package/web/app/immutable/chunks/{C_GpcLP2.js → BzwPeFzF.js} +1 -1
  83. package/web/app/immutable/chunks/{Q5HWwxnx.js → C0kzahSL.js} +1 -1
  84. package/web/app/immutable/chunks/{vXh-PQQZ.js → C0nXBDlv.js} +1 -1
  85. package/web/app/immutable/chunks/{COIbDYtT.js → C22LcJ65.js} +3 -3
  86. package/web/app/immutable/chunks/{U6kzE96u.js → C3beNZjc.js} +1 -1
  87. package/web/app/immutable/chunks/{DINI7WNX.js → C3iIVLbv.js} +1 -1
  88. package/web/app/immutable/chunks/{tnfQ532f.js → C4cfJuJM.js} +1 -1
  89. package/web/app/immutable/chunks/{iwQqOlmN.js → C7Ibt0hX.js} +1 -1
  90. package/web/app/immutable/chunks/{fXti0RCR.js → C7hm9bSX.js} +1 -1
  91. package/web/app/immutable/chunks/{CiJWG6bO.js → C82gBCX8.js} +1 -1
  92. package/web/app/immutable/chunks/{CXjIzVpl.js → C9x6kmJK.js} +1 -1
  93. package/web/app/immutable/chunks/{BmC0p6X8.js → CALsJq65.js} +1 -1
  94. package/web/app/immutable/chunks/{CnMgdwKG.js → CBLFNmYJ.js} +1 -1
  95. package/web/app/immutable/chunks/{DaysnCXK.js → CBmGf0Ke.js} +1 -1
  96. package/web/app/immutable/chunks/{gcpLbmeh.js → CCEqDzPP.js} +1 -1
  97. package/web/app/immutable/chunks/{DgH7yAy-.js → CCWqLSpV.js} +1 -1
  98. package/web/app/immutable/chunks/{C5l6D9GX.js → CClsvy7n.js} +1 -1
  99. package/web/app/immutable/chunks/{CFqcGY4P.js → CEgHOs22.js} +1 -1
  100. package/web/app/immutable/chunks/{GlvfRTgI.js → CEqmtghP.js} +1 -1
  101. package/web/app/immutable/chunks/{RLFGU-s6.js → CFLXlno6.js} +1 -1
  102. package/web/app/immutable/chunks/{E0KBz4I2.js → CGx1Vpie.js} +1 -1
  103. package/web/app/immutable/chunks/{Zw1KxEm0.js → CIzlkLuu.js} +1 -1
  104. package/web/app/immutable/chunks/{D806p2LW.js → CJBG3N9y.js} +3 -3
  105. package/web/app/immutable/chunks/{D5HhSqbc.js → CJJ2D2db.js} +1 -1
  106. package/web/app/immutable/chunks/{LAC4SG96.js → CJfYXtXQ.js} +1 -1
  107. package/web/app/immutable/chunks/{C0JDt0nm.js → CKGNYRrS.js} +2 -2
  108. package/web/app/immutable/chunks/{P3O1Bi5N.js → CKKDDlBT.js} +1 -1
  109. package/web/app/immutable/chunks/{Cy9qAjIU.js → CL6yJ0UM.js} +1 -1
  110. package/web/app/immutable/chunks/{DGlNRMU1.js → CLG1DPRT.js} +2 -2
  111. package/web/app/immutable/chunks/{qPYbzgcC.js → CMgAi196.js} +1 -1
  112. package/web/app/immutable/chunks/{zjXa9LeK.js → CMn7jvlN.js} +1 -1
  113. package/web/app/immutable/chunks/{LGfIT3MS.js → CN0Csvus.js} +3 -3
  114. package/web/app/immutable/chunks/{Ctusnxiu.js → CN9rXc7J.js} +1 -1
  115. package/web/app/immutable/chunks/{DfdqseMI.js → COK2QQN9.js} +1 -1
  116. package/web/app/immutable/chunks/{LDe4IsYZ.js → COZ3dQ_A.js} +1 -1
  117. package/web/app/immutable/chunks/{IVk1JAtP.js → CPEu2Vil.js} +1 -1
  118. package/web/app/immutable/chunks/{DSiZ9qTg.js → CQQvsDes.js} +1 -1
  119. package/web/app/immutable/chunks/{Cq76BY90.js → CQww8mRz.js} +1 -1
  120. package/web/app/immutable/chunks/{CberoJl6.js → CQx3pm4t.js} +1 -1
  121. package/web/app/immutable/chunks/{uE6SDSU_.js → CSepGuJ-.js} +1 -1
  122. package/web/app/immutable/chunks/CT6GHk2v.js +1 -0
  123. package/web/app/immutable/chunks/{BxVNHcGR.js → CTDEoCzv.js} +1 -1
  124. package/web/app/immutable/chunks/{oJ_ZL_ms.js → CToFQRbb.js} +1 -1
  125. package/web/app/immutable/chunks/{alEgYZuT.js → CUUAtNdA.js} +1 -1
  126. package/web/app/immutable/chunks/CW7lfTzm.js +177 -0
  127. package/web/app/immutable/chunks/{C58p8xFm.js → CWFWI1JB.js} +1 -1
  128. package/web/app/immutable/chunks/{S7_elIn6.js → CX4bqTrJ.js} +1 -1
  129. package/web/app/immutable/chunks/{y-lOZYhA.js → CXfim-2t.js} +1 -1
  130. package/web/app/immutable/chunks/{D9JbOH_S.js → CXgy6Mbb.js} +1 -1
  131. package/web/app/immutable/chunks/{D1JjMDax.js → CYCawVEx.js} +1 -1
  132. package/web/app/immutable/chunks/{BlyKuyB7.js → CZw2t1gL.js} +1 -1
  133. package/web/app/immutable/chunks/{kuwy0JZA.js → C_0xgdqY.js} +1 -1
  134. package/web/app/immutable/chunks/{DzVqblgy.js → C_BHeuK7.js} +1 -1
  135. package/web/app/immutable/chunks/{DuDStABj.js → Ca9qLvAG.js} +1 -1
  136. package/web/app/immutable/chunks/{6JKrky9_.js → CbnYiL9b.js} +1 -1
  137. package/web/app/immutable/chunks/{CHUCX9T6.js → CdgNuFkc.js} +1 -1
  138. package/web/app/immutable/chunks/{DZCvTRBp.js → CdpTO1ew.js} +1 -1
  139. package/web/app/immutable/chunks/{CHLHWub0.js → CfCk_l9B.js} +1 -1
  140. package/web/app/immutable/chunks/{DoIr8Q2r.js → Ch-pFfsN.js} +1 -1
  141. package/web/app/immutable/chunks/{xS3xfMki.js → Cihg5T05.js} +1 -1
  142. package/web/app/immutable/chunks/{fXwGuYzr.js → CihneiLA.js} +1 -1
  143. package/web/app/immutable/chunks/{DgaiTQpw.js → CjK2zm52.js} +1 -1
  144. package/web/app/immutable/chunks/{BJuNVIII.js → CkrblKaH.js} +1 -1
  145. package/web/app/immutable/chunks/{gSg6l32T.js → CmdE1AJL.js} +1 -1
  146. package/web/app/immutable/chunks/{C44hzh9R.js → CntPxeXh.js} +1 -1
  147. package/web/app/immutable/chunks/{1KCpY35B.js → Co4Bm5eY.js} +1 -1
  148. package/web/app/immutable/chunks/{BjWOzuMm.js → CpIVKWwx.js} +4 -4
  149. package/web/app/immutable/chunks/{D_Y9WK2x.js → CqM0ozU7.js} +1 -1
  150. package/web/app/immutable/chunks/{B4mmdCiF.js → CqsFOLCu.js} +1 -1
  151. package/web/app/immutable/chunks/{l4TJFOXC.js → CrNPV-Vp.js} +1 -1
  152. package/web/app/immutable/chunks/{DgIh2Fs6.js → CrgJwS7n.js} +1 -1
  153. package/web/app/immutable/chunks/{CFhbo3o1.js → Cs85XoQa.js} +1 -1
  154. package/web/app/immutable/chunks/{DZmV2kHY.js → CtECFAby.js} +1 -1
  155. package/web/app/immutable/chunks/{D6GBnYDv.js → CtguhKZB.js} +1 -1
  156. package/web/app/immutable/chunks/{C-JwFHXS.js → CuAAvi1f.js} +1 -1
  157. package/web/app/immutable/chunks/{DHqMqA41.js → CvZrEuUX.js} +1 -1
  158. package/web/app/immutable/chunks/{m8gDbIPC.js → Cvp_IOBl.js} +2 -2
  159. package/web/app/immutable/chunks/{D6hUzfgH.js → Cw3skelK.js} +1 -1
  160. package/web/app/immutable/chunks/{CGG7txTQ.js → CwBMToxu.js} +1 -1
  161. package/web/app/immutable/chunks/{B3fU6XQp.js → D-rGNJzU.js} +1 -1
  162. package/web/app/immutable/chunks/{TodMLsNs.js → D1DNtybi.js} +1 -1
  163. package/web/app/immutable/chunks/{grQh-L5q.js → D2eaIIb4.js} +2 -2
  164. package/web/app/immutable/chunks/{DJ2vnC9G.js → D4EwlENg.js} +1 -1
  165. package/web/app/immutable/chunks/{CFUDIGea.js → D4gtBVLN.js} +1 -1
  166. package/web/app/immutable/chunks/{BepABSAk.js → D4lP_X71.js} +1 -1
  167. package/web/app/immutable/chunks/{o1gxvTJU.js → D5bd-ecJ.js} +1 -1
  168. package/web/app/immutable/chunks/{CpYW1yE7.js → D5raGlU7.js} +2 -2
  169. package/web/app/immutable/chunks/{B5CW3gDe.js → D6W9Whdp.js} +3 -3
  170. package/web/app/immutable/chunks/{Byjmi-8z.js → D7u67tV0.js} +2 -2
  171. package/web/app/immutable/chunks/{BkLJnbD1.js → D7vAVIvz.js} +1 -1
  172. package/web/app/immutable/chunks/{D85P44Dj.js → D8B7qxXm.js} +1 -1
  173. package/web/app/immutable/chunks/{Db_i0IkD.js → D8XqXEXt.js} +1 -1
  174. package/web/app/immutable/chunks/{DoQnqQZn.js → DCibR4Jk.js} +1 -1
  175. package/web/app/immutable/chunks/{BowQ7sBM.js → DDFAsI-l.js} +1 -1
  176. package/web/app/immutable/chunks/{LNZr9DCJ.js → DHSWOw-U.js} +1 -1
  177. package/web/app/immutable/chunks/{C6GJZLOP.js → DHbv9I-C.js} +1 -1
  178. package/web/app/immutable/chunks/{jG67l4Uo.js → DIDOx8hd.js} +2 -2
  179. package/web/app/immutable/chunks/{D_otNUZh.js → DJk5np0g.js} +1 -1
  180. package/web/app/immutable/chunks/{CBl7oWeN.js → DKHSbBis.js} +1 -1
  181. package/web/app/immutable/chunks/{D-ls8znw.js → DKIi_opT.js} +1 -1
  182. package/web/app/immutable/chunks/{5uDsFopc.js → DM4cCUDd.js} +1 -1
  183. package/web/app/immutable/chunks/{B6CxzJhM.js → DOEOrBL9.js} +1 -1
  184. package/web/app/immutable/chunks/{CyyqjEBc.js → DOMMuuHJ.js} +1 -1
  185. package/web/app/immutable/chunks/{kFRDyP-N.js → DPF9_zKV.js} +1 -1
  186. package/web/app/immutable/chunks/{C6jYe9up.js → DPLDRqMC.js} +1 -1
  187. package/web/app/immutable/chunks/{BO3WriTy.js → DPbnmxjX.js} +1 -1
  188. package/web/app/immutable/chunks/{CBtQnhwT.js → DPztwkUP.js} +1 -1
  189. package/web/app/immutable/chunks/{DinWeICM.js → DQGdnFBd.js} +1 -1
  190. package/web/app/immutable/chunks/{mdoDOmuU.js → DQmW4_9G.js} +1 -1
  191. package/web/app/immutable/chunks/{DzfHkSZF.js → DS5B84mn.js} +1 -1
  192. package/web/app/immutable/chunks/{P-zm4ktU.js → DSvyONiq.js} +1 -1
  193. package/web/app/immutable/chunks/{jaSHlZjt.js → DT8FaJbg.js} +1 -1
  194. package/web/app/immutable/chunks/{BIo9gpGl.js → DUT4xhYi.js} +1 -1
  195. package/web/app/immutable/chunks/{D6YX_GFv.js → DVok8lSR.js} +1 -1
  196. package/web/app/immutable/chunks/{CdvXSvOC.js → DX_ZPiRZ.js} +1 -1
  197. package/web/app/immutable/chunks/{BmEIQ8E-.js → DY-U3TFa.js} +1 -1
  198. package/web/app/immutable/chunks/{COUB9dHY.js → DYGC3eZn.js} +1 -1
  199. package/web/app/immutable/chunks/{Jcrj5YZi.js → DZEGFjPx.js} +1 -1
  200. package/web/app/immutable/chunks/{BrFnR1vI.js → DZbKPa1t.js} +1 -1
  201. package/web/app/immutable/chunks/{PCtwJJ25.js → D_xvUCUD.js} +1 -1
  202. package/web/app/immutable/chunks/{DoA3JmdK.js → DbSttgXv.js} +1 -1
  203. package/web/app/immutable/chunks/{3rxHCGTW.js → DcZr-m_l.js} +1 -1
  204. package/web/app/immutable/chunks/{DK-vph3Z.js → DdJ4cD_u.js} +1 -1
  205. package/web/app/immutable/chunks/{Dtveg46I.js → DeDQhZv5.js} +1 -1
  206. package/web/app/immutable/chunks/{pZsrsFnW.js → Deoe5X7L.js} +1 -1
  207. package/web/app/immutable/chunks/{B7ydANq7.js → Dfq_rEeO.js} +1 -1
  208. package/web/app/immutable/chunks/{BE5ZU7pI.js → DhW_HWBK.js} +1 -1
  209. package/web/app/immutable/chunks/{CYWgGrsf.js → Dh_eorhd.js} +1 -1
  210. package/web/app/immutable/chunks/{ChJ4msi3.js → Dhj-Oo-y.js} +1 -1
  211. package/web/app/immutable/chunks/{CBHXSekd.js → DiEy7mCR.js} +1 -1
  212. package/web/app/immutable/chunks/{F-NRzkEu.js → DiLFzwi3.js} +1 -1
  213. package/web/app/immutable/chunks/{BZSs3eKh.js → DiP5BH15.js} +1 -1
  214. package/web/app/immutable/chunks/{Bb_mQye1.js → Div7CQPf.js} +1 -1
  215. package/web/app/immutable/chunks/{DK3AlKip.js → DjBxG6q0.js} +3 -3
  216. package/web/app/immutable/chunks/{BifXEk-G.js → Dk0afiu6.js} +1 -1
  217. package/web/app/immutable/chunks/{CpV-ehZ5.js → DkYquFOp.js} +1 -1
  218. package/web/app/immutable/chunks/DmnStjtN.js +1 -0
  219. package/web/app/immutable/chunks/{DZBnfhEV.js → Dmy603At.js} +1 -1
  220. package/web/app/immutable/chunks/{DJuFWuFo.js → Dn7Cyi1s.js} +1 -1
  221. package/web/app/immutable/chunks/{CBRC7st2.js → Domj4ONg.js} +2 -2
  222. package/web/app/immutable/chunks/{CQxAYjD7.js → DpMsJtM0.js} +1 -1
  223. package/web/app/immutable/chunks/{kZanyiqf.js → DpSAF6fh.js} +1 -1
  224. package/web/app/immutable/chunks/{XyC5Phh7.js → DpgIqMGp.js} +1 -1
  225. package/web/app/immutable/chunks/{aToNeEMa.js → DqPe5uyz.js} +1 -1
  226. package/web/app/immutable/chunks/{DmQm2Dw6.js → DtEw_Okh.js} +1 -1
  227. package/web/app/immutable/chunks/{Di9CSB6H.js → DtYDlbcb.js} +1 -1
  228. package/web/app/immutable/chunks/{Bw0E8D92.js → Dv6PZjTW.js} +1 -1
  229. package/web/app/immutable/chunks/{yqs-hTyP.js → DvwOszqf.js} +1 -1
  230. package/web/app/immutable/chunks/{DTutiDCZ.js → DzTe1W0Z.js} +1 -1
  231. package/web/app/immutable/chunks/{CFtfWLBC.js → Dzl5aoA8.js} +1 -1
  232. package/web/app/immutable/chunks/{DyiA0AJU.js → DzsC5hAQ.js} +1 -1
  233. package/web/app/immutable/chunks/{Dv3EtVHJ.js → EmfdzzTF.js} +1 -1
  234. package/web/app/immutable/chunks/{K7F-rH-C.js → IB26d-_M.js} +4 -4
  235. package/web/app/immutable/chunks/{BL39LNxU.js → IdqO6uHC.js} +1 -1
  236. package/web/app/immutable/chunks/{B5bnHhgO.js → J9vGyyn3.js} +1 -1
  237. package/web/app/immutable/chunks/{a-OtAcF_.js → K0CA4l_-.js} +3 -3
  238. package/web/app/immutable/chunks/{DbCeN0Lt.js → KImhPY_I.js} +1 -1
  239. package/web/app/immutable/chunks/{DUXVcIKV.js → KS10KUQ4.js} +1 -1
  240. package/web/app/immutable/chunks/{DVcCnfZH.js → KaHKnBKn.js} +1 -1
  241. package/web/app/immutable/chunks/{C-nutp9J.js → L0PmMCK6.js} +1 -1
  242. package/web/app/immutable/chunks/{YbP7yBkb.js → LFlj1pUW.js} +1 -1
  243. package/web/app/immutable/chunks/{4r36FIB7.js → MujvTDgv.js} +1 -1
  244. package/web/app/immutable/chunks/{QjNLPDal.js → Mw2Z7eLx.js} +1 -1
  245. package/web/app/immutable/chunks/{DtBx3nLm.js → NEcXJ8Qo.js} +1 -1
  246. package/web/app/immutable/chunks/{CJZ6Gu1k.js → Ow3KARwj.js} +1 -1
  247. package/web/app/immutable/chunks/{CCEQVSjx.js → P27dN3C7.js} +1 -1
  248. package/web/app/immutable/chunks/{BK0rB8kZ.js → Pqx84Da9.js} +1 -1
  249. package/web/app/immutable/chunks/{8TUe2kcz.js → PtMxuYy8.js} +1 -1
  250. package/web/app/immutable/chunks/Q-Hp56ht.js +6 -0
  251. package/web/app/immutable/chunks/{zrdFYBgX.js → Qzhec1TY.js} +1 -1
  252. package/web/app/immutable/chunks/{Cr9glZDh.js → RyWl3sPF.js} +1 -1
  253. package/web/app/immutable/chunks/{BReER1n3.js → THm8CnE2.js} +1 -1
  254. package/web/app/immutable/chunks/{C-zY3GF-.js → UHs-xfbd.js} +1 -1
  255. package/web/app/immutable/chunks/{CqJcYBUx.js → UaQjBP_O.js} +1 -1
  256. package/web/app/immutable/chunks/{D0Ayz4Dm.js → Ug7t_gUQ.js} +1 -1
  257. package/web/app/immutable/chunks/{DXwcjaPR.js → Ydj2ePK_.js} +2 -2
  258. package/web/app/immutable/chunks/{1Wzdy1K8.js → YopO0YfH.js} +6 -6
  259. package/web/app/immutable/chunks/{DgiJ63hc.js → ZWIGjqdM.js} +3 -3
  260. package/web/app/immutable/chunks/{BQg4hK6W.js → Zg9SWWIQ.js} +1 -1
  261. package/web/app/immutable/chunks/{Cwvt_P5T.js → a0CN3en2.js} +1 -1
  262. package/web/app/immutable/chunks/{njprJ3WZ.js → aqQCGQpk.js} +1 -1
  263. package/web/app/immutable/chunks/{BYC0ucSR.js → bcfKuKQn.js} +1 -1
  264. package/web/app/immutable/chunks/{BHni5QqW.js → cP-p0FYL.js} +1 -1
  265. package/web/app/immutable/chunks/{DMqmqAT4.js → dIyiVmNx.js} +1 -1
  266. package/web/app/immutable/chunks/{DcNvIFJV.js → ebxZ5PPm.js} +1 -1
  267. package/web/app/immutable/chunks/{DVNEvaXi.js → fFnyP4ej.js} +1 -1
  268. package/web/app/immutable/chunks/{eZSKfAFO.js → gY6D1J3N.js} +1 -1
  269. package/web/app/immutable/chunks/{B9-EoZ1p.js → iNDSBgu7.js} +1 -1
  270. package/web/app/immutable/chunks/{BLYFfqzj.js → jUAybD8G.js} +1 -1
  271. package/web/app/immutable/chunks/{ChGLvrw4.js → kZL4nf_J.js} +4 -4
  272. package/web/app/immutable/chunks/{B0O5mhBM.js → mnnjJoDI.js} +1 -1
  273. package/web/app/immutable/chunks/{DyT0mOdr.js → my69Ox9w.js} +4 -4
  274. package/web/app/immutable/chunks/{DQAJLaJ3.js → nHwpsxWy.js} +1 -1
  275. package/web/app/immutable/chunks/{Dqtmunn7.js → pIjvEfMB.js} +5 -5
  276. package/web/app/immutable/chunks/{BY16_RoT.js → q9cUG1dc.js} +1 -1
  277. package/web/app/immutable/chunks/{DRPKvmfX.js → qg2KHuAY.js} +1 -1
  278. package/web/app/immutable/chunks/{D1HPSWvP.js → qyBT4DY2.js} +1 -1
  279. package/web/app/immutable/chunks/{Cn8hCY5y.js → rCkv5VsR.js} +2 -2
  280. package/web/app/immutable/chunks/{hK5d1dQ0.js → rHK6sLv4.js} +1 -1
  281. package/web/app/immutable/chunks/{BevEoYEw.js → sEj9k2KM.js} +1 -1
  282. package/web/app/immutable/chunks/{qkmjEtXH.js → sZBOVpM6.js} +3 -3
  283. package/web/app/immutable/chunks/{CyaIe0jD.js → tGL9OSFf.js} +1 -1
  284. package/web/app/immutable/chunks/{mF8ZdCMN.js → thdnIk1K.js} +1 -1
  285. package/web/app/immutable/chunks/{t4bVJhrn.js → ucKP4cAm.js} +4 -4
  286. package/web/app/immutable/chunks/{BBiqqybB.js → wfSdTH77.js} +1 -1
  287. package/web/app/immutable/chunks/{Ilt_8E2i.js → x8bssjcx.js} +1 -1
  288. package/web/app/immutable/chunks/{Cin575hV.js → xFC1lhKl.js} +1 -1
  289. package/web/app/immutable/chunks/{Bl8fHOk-.js → xIoxAtek.js} +1 -1
  290. package/web/app/immutable/chunks/{DCTwUEO7.js → xJBWkpxc.js} +1 -1
  291. package/web/app/immutable/chunks/{DkkEizQf.js → zzl2tBQf.js} +1 -1
  292. package/web/app/immutable/entry/{app.B-3yrq60.js → app.YY31OTuo.js} +3 -3
  293. package/web/app/immutable/entry/start.DBl7cnaM.js +1 -0
  294. package/web/app/immutable/nodes/{0.Dr7z-ndg.js → 0.I2U7Nyeq.js} +1 -1
  295. package/web/app/immutable/nodes/{1.DszvgcVt.js → 1.CgZVKAf9.js} +1 -1
  296. package/web/app/immutable/nodes/{10.mpjVYgcT.js → 10.CsryZO2H.js} +5 -5
  297. package/web/app/immutable/nodes/{11.d9OIWvmS.js → 11.BTowiakT.js} +1 -1
  298. package/web/app/immutable/nodes/{12.hNKUSgvY.js → 12.S6PrlAwz.js} +1 -1
  299. package/web/app/immutable/nodes/{13.NTcuwB8X.js → 13.Bs_o-uwb.js} +1 -1
  300. package/web/app/immutable/nodes/{14.C4hEzDzc.js → 14.CIZDoMeA.js} +3 -3
  301. package/web/app/immutable/nodes/{15.BGv16BME.js → 15.CzU59iiE.js} +1 -1
  302. package/web/app/immutable/nodes/{16.BLKEYdtz.js → 16.BgJmXimX.js} +1 -1
  303. package/web/app/immutable/nodes/{17.Cw1VnAlL.js → 17.BWRlIYI7.js} +1 -1
  304. package/web/app/immutable/nodes/{18.BC2tc74_.js → 18.BV2orlA1.js} +1 -1
  305. package/web/app/immutable/nodes/{19.BLf_cCOa.js → 19.vtvcgUzO.js} +2 -2
  306. package/web/app/immutable/nodes/{2.DT49t-u_.js → 2.xEZtPl1l.js} +4 -4
  307. package/web/app/immutable/nodes/{20.CAN0HPlm.js → 20.DLg8hCzP.js} +1 -1
  308. package/web/app/immutable/nodes/{3.CHLlivF3.js → 3.hyVEcKKo.js} +1 -1
  309. package/web/app/immutable/nodes/{4.D2tKSs2v.js → 4.CdWgO8Xv.js} +1 -1
  310. package/web/app/immutable/nodes/{5.B9Lx7aa1.js → 5.BhLUauX8.js} +1 -1
  311. package/web/app/immutable/nodes/{6.BXEdmXk5.js → 6.B3Vi01S1.js} +1 -1
  312. package/web/app/immutable/nodes/{7.Cg1blkaN.js → 7.DW7p588B.js} +1 -1
  313. package/web/app/immutable/nodes/{8.B5g4h2T5.js → 8.Bt8gdMyu.js} +1 -1
  314. package/web/app/immutable/nodes/{9.CQeYWw6-.js → 9.BSZ1-MKZ.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B6sO6A0G.js +0 -1
  319. package/web/app/immutable/chunks/BSev9KPj.js +0 -1
  320. package/web/app/immutable/chunks/Bv8Gaorn.js +0 -1
  321. package/web/app/immutable/chunks/CAEqRKhy.js +0 -1
  322. package/web/app/immutable/chunks/Dr4PDf9D.js +0 -6
  323. package/web/app/immutable/chunks/EZ4dI6hS.js +0 -177
  324. package/web/app/immutable/entry/start.DZZRsHd3.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as k1}from"./Dtveg46I.js";import{g as E1}from"./E0KBz4I2.js";import{s as C1}from"./H3ekn9Mt.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./ChGLvrw4.js";import{c as G1}from"./l4TJFOXC.js";import{aQ as U1}from"./m8gDbIPC.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
1
+ import{g as k1}from"./DeDQhZv5.js";import{g as E1}from"./CGx1Vpie.js";import{s as C1}from"./BjRLyMd2.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./kZL4nf_J.js";import{c as G1}from"./CrNPV-Vp.js";import{aR as U1}from"./Cvp_IOBl.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
2
2
  `)){if(u!==void 0){const p=c.length-c.trimStart().length;if(c.trim()===""||p>u){l.push(c);continue}u=void 0}let a=-1;for(let p=0;p<c.length;p++){const A=c[p];if(n)A==="\\"?p++:A==='"'&&(n=!1);else if(i)A==="'"&&(i=!1);else if(A==='"')n=!0;else if(A==="'")i=!0;else if(A==="#"&&(p===0||c[p-1]===" "||c[p-1]===" ")){a=p;break}else A==="["||A==="{"?r++:(A==="]"||A==="}")&&(r=Math.max(0,r-1))}if(i||n||r>0){l.push(c);continue}const h=a>=0?c.slice(0,a):c,g=a>=0?c.slice(a):"";if(/:\s*[>|][\d+-]*\s*$/.test(h)){u=c.length-c.trimStart().length,l.push(c);continue}l.push(h.replace(/,([\t ]*)$/,"$1")+g)}return l.join(`
3
3
  `)}k(d1,"stripLineTrailingCommas");var Ze,X1=(Ze=class{constructor(){this.vertexCounter=0,this.config=Ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=T1,this.setAccDescription=D1,this.setDiagramTitle=_1,this.getAccTitle=v1,this.getAccDescription=F1,this.getDiagramTitle=V1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return I1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,u,l,c,a={},h,g){if(!i||i.trim().length===0)return;let p;if(h!==void 0){let m;h.includes(`
4
4
  `)?m=h+`
@@ -19,9 +19,9 @@ ${T.join(`
19
19
 
20
20
  Initialize mermaid with maxEdges set to a higher number to allow more edges.
21
21
  You cannot set this config via configuration inside the diagram as it is a secure config.
22
- You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,n,r){const u=this.isLinkData(r)?r.id.replace("@",""):void 0;oe.info("addLink",i,n,u);for(const l of i)for(const c of n){const a=l===i[i.length-1],h=c===n[0];a&&h?this.addSingleLink(l,c,r,u):this.addSingleLink(l,c,r,void 0)}}updateLinkInterpolate(i,n){i.forEach(r=>{if(r==="default"){this.edges.defaultInterpolate=n;return}if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[r].interpolate=n})}updateLink(i,n){i.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=n:(this.edges[r].style=n,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(u=>u?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(i,n){const r=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(u=>{let l=this.classes.get(u);l===void 0&&(l={id:u,styles:[],textStyles:[]},this.classes.set(u,l)),r?.forEach(c=>{if(/color/.exec(c)){const a=c.replace("fill","bgFill");l.textStyles.push(a)}l.styles.push(c)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,n){for(const r of i.split(",")){const u=this.vertices.get(r);u&&u.classes.push(n);const l=this.edges.find(a=>a.id===r);l&&l.classes.push(n);const c=this.subGraphLookup.get(r);c&&c.classes.push(n)}}setTooltip(i,n){if(n!==void 0){n=this.sanitizeText(n);for(const r of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,n)}}setClickFun(i,n,r){if(Ce().securityLevel!=="loose"||n===void 0)return;let u=[];if(typeof r=="string"){u=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let c=0;c<u.length;c++){let a=u[c].trim();a.startsWith('"')&&a.endsWith('"')&&(a=a.substr(1,a.length-2)),u[c]=a}}u.length===0&&u.push(i);const l=this.vertices.get(i);l&&(l.haveCallback=!0,this.funs.push(()=>{const c=this.lookUpDomId(i),a=document.querySelector(`[id="${c}"]`);a!==null&&a.addEventListener("click",()=>{Gt.runFunc(n,...u)},!1)}))}setLink(i,n,r){i.split(",").forEach(u=>{const l=this.vertices.get(u);l!==void 0&&(l.link=Gt.formatUrl(n,this.config),l.linkTarget=r)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,n,r){i.split(",").forEach(u=>{this.setClickFun(u,n,r)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(n=>{n(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(i){return Y1.has(i.type)}getTools(){const i=[];for(const n of this.vertices.values())this.isToolDefinition(n)&&i.push(n);return i}getClasses(){return this.classes}setupToolTips(i){const n=G1();Ot(i).select("svg").selectAll("g.node").on("mouseover",l=>{const c=Ot(l.currentTarget),a=c.attr("title");if(a===null)return;const h=l.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),n.html(U1.sanitize(a)),c.classed("hover",!0)}).on("mouseout",l=>{n.transition().duration(500).style("opacity",0),Ot(l.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=Ce(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,B1()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,n,r,u){let l=i?.text?.trim(),c=r?.text;i===r&&r?.text&&/\s/.exec(r.text)&&(l=void 0);const h=k(C=>{const M={boolean:{},number:{},string:{}},T=[];let m;return{nodeList:C.filter(function(f){const B=typeof f;return f.stmt&&f.stmt==="dir"?(m=f.value,!1):f.trim()===""?!1:B in M?M[B].hasOwnProperty(f)?!1:M[B][f]=!0:T.includes(f)?!1:T.push(f)}),dir:m}},"uniq")(n.flat()),g=h.nodeList;let p=h.dir;const A=Ce().flowchart??{};if(p=p??(A.inheritDir?this.getDirection()??Ce().direction??void 0:void 0),this.version==="gen-1")for(let C=0;C<g.length;C++)g[C]=this.lookUpDomId(g[C]);l=l??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;const x={id:l,nodes:g.filter(C=>C!==l&&!this.globalNodes.has(C)),title:c.trim(),classes:[],dir:p,labelType:this.sanitizeNodeLabelType(r?.type),type:u??"flow"};oe.info("Adding",x.id,x.nodes,x.dir),x.nodes=this.makeUniq(x,this.subGraphs).nodes;const L=this.getPosForId(l);if(L!==-1){const C=this.subGraphs[L];for(const M of x.nodes)C.nodes.includes(M)||C.nodes.push(M);x.title&&(C.title=x.title),x.dir&&(C.dir=x.dir),x.type&&(C.type=x.type),this.subGraphLookup.set(l,C)}else this.subGraphs.push(x),this.subGraphLookup.set(l,x);return l}addGlobal(i){for(const n of i.flat()){if(typeof n!="string")continue;const r=n.trim();r!==""&&this.globalNodes.add(r)}for(const n of this.subGraphs)n.nodes=n.nodes.filter(r=>!this.globalNodes.has(r))}getPosForId(i){for(const[n,r]of this.subGraphs.entries())if(r.id===i)return n;return-1}indexNodes2(i,n){const r=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===i)return{result:!0,count:0};let u=0,l=1;for(;u<r.length;){const c=this.getPosForId(r[u]);if(c>=0){const a=this.indexNodes2(i,c);if(a.result)return{result:!0,count:l+a.count};l=l+a.count}u=u+1}return{result:!1,count:l}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(i,n){const r=i?.text?.trim();if(!r)return"";const u=n?.text?.trim()??"",l=u.length>0?this.sanitizeText(u):r;let c=this.connectors.get(r);return c?u.length>0&&(c.text=l):(c={id:r,labelType:"text",domId:n1+r+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:l},this.connectors.set(r,c),this.vertices.set(r,c),this.vertexCounter++),r}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}computeEdgeSemantic(i,n){if(i==="arrow_point"&&n==="normal")return"sequence";if(i==="arrow_cross"&&n==="normal")return"failure";if(i==="arrow_open"&&n==="dotted")return"reference"}destructStartLink(i){const n=i.trim(),r="arrow_open";let u="normal";return n.includes(".")&&(u="dotted"),{type:r,stroke:u}}countChar(i,n){const r=n.length;let u=0;for(let l=0;l<r;++l)n[l]===i&&++u;return u}destructEndLink(i){const n=i.trim();let r=n.slice(0,-1),u="arrow_open";switch(n.slice(-1)){case"x":u="arrow_cross";break;case">":u="arrow_point";break;case"-":case".":u="arrow_open",r=n;break}let l="normal",c=r.length-1;const a=this.countChar(".",r);return a>0&&(l="dotted",c=a),{type:u,stroke:l,length:c}}destructLink(i,n){const r=this.destructEndLink(i);let u;return n?(u=this.destructStartLink(n),u.stroke!==r.stroke?{type:"INVALID",stroke:"INVALID"}:(u.type=r.type,u.length=r.length,{...u,edgeSemantic:this.computeEdgeSemantic(u.type,u.stroke)})):{...r,edgeSemantic:this.computeEdgeSemantic(r.type,r.stroke)}}exists(i,n){for(const r of i)if(r.nodes.includes(n))return!0;return!1}makeUniq(i,n){const r=[];return i.nodes.forEach((u,l)=>{this.exists(n,u)||r.push(i.nodes[l])}),{nodes:r}}getTypeFromVertex(i){const n=typeof i.type=="string"?et(i.type):i.type;switch(n){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return n}}findNode(i,n){return i.find(r=>r.id===n)}destructEdgeType(i){let n="none",r="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":r=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=i.replace("double_",""),r=n;break}return{arrowTypeStart:n,arrowTypeEnd:r}}addNodeFromVertex(i,n,r,u,l,c){const a=r.get(i.id),h=u.get(i.id)??!1,g=this.findNode(n,i.id);if(g)g.cssStyles=i.styles,g.cssCompiledStyles=this.getCompiledStyles(i.classes),g.cssClasses=i.classes.join(" ");else{const p={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:a,padding:l.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:c,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),metadata:i.metadata};h?n.push({...p,isGroup:!0,shape:"rect"}):n.push({...p,isGroup:!1,shape:this.getTypeFromVertex(i),wrappingWidth:l.agentflow?.wrappingWidth,minWidth:l.agentflow?.minNodeWidth})}}getCompiledStyles(i){let n=[];for(const r of i){const u=this.classes.get(r);u?.styles&&(n=[...n,...u.styles??[]].map(l=>l.trim())),u?.textStyles&&(n=[...n,...u.textStyles??[]].map(l=>l.trim()))}return n}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();const i=Ce(),n=[],r=[],u=this.getSubGraphs(),l=new Map,c=new Map,a=new Set,h=new Map,g=k((d,f,B=new Set)=>{if(B.has(d))return;B.add(d);const R=this.subGraphLookup.get(d);if(R)for(const se of R.nodes)se===f||B.has(se)||(a.add(se),h.set(se,f),g(se,f,B))},"collectDescendants");for(const d of u)d.metadata?.view==="collapsed"&&!a.has(d.id)&&g(d.id,d.id);const p=k((d,f)=>{const B=new Set;let R=f;for(;R!==void 0&&!B.has(R);){if(R===d)return!0;B.add(R),R=l.get(R)}return!1},"wouldCloseContainmentCycle");for(let d=u.length-1;d>=0;d--){const f=u[d];if(!a.has(f.id)){f.nodes.length>0&&c.set(f.id,!0);for(const B of f.nodes){if(p(B,f.id)){this.emitWarning(tt.CONTAINMENT_VIOLATION,`Container "${f.id}" cannot contain "${B}" because "${B}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:B});continue}l.set(B,f.id)}}}for(let d=u.length-1;d>=0;d--){const f=u[d];if(a.has(f.id))continue;if(f.metadata?.view==="collapsed"){const R={...f.metadata,containerType:f.type};n.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"collapsedGroup",dir:f.dir,isGroup:!1,look:i.look,metadata:R})}else n.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:q1[f.type??"flow"],dir:f.dir,isGroup:!0,look:i.look,metadata:f.metadata})}this.getVertices().forEach(d=>{a.has(d.id)||this.addNodeFromVertex(d,n,l,c,i,i.look||"classic")});const x=this.getEdges();x.forEach((d,f)=>{const B=h.get(d.start)??d.start,R=h.get(d.end)??d.end;if(B===R&&d.start!==d.end)return;const{arrowTypeStart:se,arrowTypeEnd:de}=this.destructEdgeType(d.type),le=[...x.defaultStyle??[]];d.style&&le.push(...d.style);const O={id:Rt(B,R,{counter:f,prefix:"L"},d.id),isUserDefinedId:d.isUserDefinedId,start:B,end:R,type:d.type??"normal",label:d.text,labelType:d.labelType,labelpos:"c",thickness:d.stroke,minlen:d.length,classes:d?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":se,arrowTypeEnd:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":de,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(d.classes),labelStyle:le,style:le,pattern:d.stroke,look:i.look,animate:d.animate,animation:d.animation,curve:d.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve,metadata:d.metadata};r.push(O)}),r1(n,this);const L=new Map,C=new Map;for(const d of u){const f=l.get(d.id);f!==void 0&&C.set(f,[...C.get(f)??[],d.id])}let M=0;const T=k(d=>{if(!L.has(d)){L.set(d,M++);for(const f of C.get(d)??[])T(f)}},"walkContainers");for(const d of u)l.get(d.id)===void 0&&T(d.id);const m=new Set(this.getConnectors().map(d=>d.id));return c1(n,d=>{if(m.has(d))return"connector";const f=this.vertices.get(d);return f?this.deriveVertexKind(f,et(f.type)):void 0},L),{nodes:n,edges:r,other:{},config:i,connectors:this.getConnectors()}}defaultConfig(){return M1.flowchart}deriveVertexKind(i,n){return this.isToolDefinition(i)?"tool":n==="hexagon"||n==="hex"?"action":n==="lean-right"||n==="lean_right"?"input":n==="lin-doc"||n==="lined-document"?"refdoc":n==="diamond"?"decision":"task"}getSemanticModel(){this.runPostParseValidators();const i=new Set(this.subGraphs.map(a=>a.id)),n=[],r=[];for(const[a,h]of this.vertices){if(i.has(a))continue;if(h.isConnector){const A={id:a};if(h.text!==void 0&&h.text!==a&&(A.title=h.text),h.metadata&&Object.keys(h.metadata).length>0){const x={};for(const[L,C]of Object.entries(h.metadata))Pt.has(L)||(x[L]=C);Object.keys(x).length>0&&(A.metadata=x)}r.push(A);continue}const g={id:a};h.text!==void 0&&(g.label=h.text);const p=typeof h.type=="string"?et(h.type):h.type;if(p!==void 0&&(g.shape=p),g.vertexKind=this.deriveVertexKind(h,p),h.metadata&&Object.keys(h.metadata).length>0){const A={};for(const[x,L]of Object.entries(h.metadata))Pt.has(x)||(A[x]=L);Object.keys(A).length>0&&(g.metadata=A)}n.push(g)}const u=this.edges.map(a=>{const h={start:a.start,end:a.end};return a.id!==void 0&&(h.id=a.id),typeof a.text=="string"&&a.text.length>0&&(h.label=a.text),a.type!==void 0&&(h.type=a.type),a.stroke!==void 0&&(h.stroke=a.stroke),a.edgeSemantic!==void 0&&(h.edgeSemantic=a.edgeSemantic),a.length!==void 0&&(h.length=a.length),a.metadata&&Object.keys(a.metadata).length>0&&(h.metadata={...a.metadata}),h}),l=this.subGraphs.map(a=>{const h={id:a.id,nodes:[...a.nodes]};if(a.type!==void 0&&(h.type=a.type),a.title!==void 0&&(h.title=a.title),a.dir!==void 0&&(h.direction=a.dir),a.metadata&&Object.keys(a.metadata).length>0){const g={};for(const[p,A]of Object.entries(a.metadata))Pt.has(p)||(g[p]=A);Object.keys(g).length>0&&(h.metadata=g)}return h}),c={vertices:n,edges:u,subGraphs:l,connectors:r,diagnostics:this.diagnostics};return this.direction!==void 0&&(c.direction=this.direction),c}setFrontmatterLineOffset(i){this.frontmatterLineOffset=i??0}toElementPosition(i){const n=i?.first_line??0,r=i?.first_column??0,u=i?.last_line??n,l=i?.last_column??r,[c,a]=i?.range??[0,0];return{startLine:n+this.frontmatterLineOffset,startColumn:r,endLine:u+this.frontmatterLineOffset,endColumn:l,startIndex:c,endIndex:a}}pushMapping(i,n,r){if(!i)return;const u={id:i,type:n,position:this.toElementPosition(r)};return this.elementMappings.push(u),u}addVertexMapping(i,n,r,u){const l=this.pushMapping(i,"vertex",u);l&&r==null&&this.bareVertexMappings.add(l)}extendVertexMapping(i,n){if(!i||!n)return;const r=this.toElementPosition(n);for(let u=this.elementMappings.length-1;u>=0;u--){const l=this.elementMappings[u];if(l.type==="vertex"&&l.id===i){this.bareVertexMappings.has(l)&&(l.type="attachment",this.bareVertexMappings.delete(l)),(r.endLine>l.position.endLine||r.endLine===l.position.endLine&&r.endColumn>l.position.endColumn)&&(l.position.endLine=r.endLine,l.position.endColumn=r.endColumn,l.position.endIndex=r.endIndex);return}}this.pushMapping(i,"attachment",n)}addEdgeMapping(i,n,r,u){const l=Array.isArray(n)?n.map(a=>typeof a=="string"?a:a?.id??"").filter(Boolean):[],c=l.length>0?l.join(">"):"edge";this.pushMapping(c,"edge",u)}addSubgraphMapping(i,n,r,u){const l=(typeof i=="string"?i:i?.text)??"",c=this.toElementPosition(r),a=u?this.toElementPosition(u):c;l&&this.elementMappings.push({id:l,type:"subgraph",position:{startLine:c.startLine,startColumn:c.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:c.startIndex,endIndex:a.endIndex}})}addConnectorMapping(i,n,r,u){const l=i?.text?.trim()??"";if(!l)return;const c=this.toElementPosition(r),a=u?this.toElementPosition(u):c;this.elementMappings.push({id:l,type:"connector",position:{startLine:c.startLine,startColumn:c.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:c.startIndex,endIndex:a.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(i){return this.elementMappings.find(n=>n.id===i)}getElementsOnLine(i){return this.elementMappings.filter(n=>i>=n.position.startLine&&i<=n.position.endLine)}getElementAtPosition(i,n){const r=this.elementMappings.filter(l=>{const{startLine:c,startColumn:a,endLine:h,endColumn:g}=l.position;return!(i<c||i>h||i===c&&n<a||i===h&&n>g)});if(r.length===0)return;const u=k(({position:l})=>[l.endLine-l.startLine,l.endColumn-l.startColumn],"span");return r.reduce((l,c)=>{const[a,h]=u(l),[g,p]=u(c);return g!==a?g<a?c:l:p<h?c:l})}getMappingStats(){let i=0,n=0,r=0,u=0,l=0;for(const c of this.elementMappings)c.type==="vertex"?i++:c.type==="edge"?n++:c.type==="subgraph"?r++:c.type==="connector"?u++:c.type==="attachment"&&l++;return{vertices:i,edges:n,subgraphs:r,connectors:u,attachments:l,totalElements:this.elementMappings.length}}emitDiagnostic(i,n,r,u){const l=u?.nodeId??u?.edgeId,c=l?this.getElementById(l):void 0,a={id:i,severity:n,message:r,...u?.nodeId?{nodeId:u.nodeId}:{},...u?.edgeId&&!u?.nodeId?{edgeId:u.edgeId}:{},...c?{position:c.position}:{}};if(this.diagnostics.some(p=>p.id===a.id&&p.severity===a.severity&&p.message===a.message&&p.nodeId===a.nodeId&&p.edgeId===a.edgeId))return;this.diagnostics.push(a);const g=`agentflow[${i}]: ${r}`;n==="error"?oe.error(g):oe.warn(g)}emitWarning(i,n,r){this.emitDiagnostic(i,"warning",n,r)}emitError(i,n,r){this.emitDiagnostic(i,"error",n,r)}getDiagnostics(){return[...this.diagnostics]}},k(Ze,"AgentFlowDB"),Ze),Q1=k(function(s,i){return i.db.getClasses()},"getClasses"),J1=k(async function(s,i,n,r){oe.debug("Drawing agentflow diagram",i);const{securityLevel:u,agentflow:l,layout:c}=Ce();r.db.setDiagramId(i),oe.debug("Before getData: ");const a=r.db.getData();oe.debug("Data: ",a);const h=E1(i,u),g=r.db.getDirection();a.type=r.type,a.layoutAlgorithm=S1(c),a.layoutAlgorithm==="dagre"&&c==="elk"&&oe.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),a.direction=g,a.nodeSpacing=l?.nodeSpacing||50,a.rankSpacing=l?.rankSpacing||50,a.markers=["point","circle","cross","hierarchy"],a.diagramId=i,oe.debug("REF1:",a),await x1(a,h);const p=l?.diagramPadding??8;Gt.insertTitle(h,"agentflowTitleText",l?.titleTopMargin??0,r.db.getDiagramTitle()),C1(h,p,"agentflow",l?.useMaxWidth??!0)},"draw"),Z1={getClasses:Q1,draw:J1},Ut=(function(){var s=k(function(Te,b,E,S){for(E=E||{},S=Te.length;S--;E[Te[S]]=b);return E},"o"),i=[1,5],n=[1,4],r=[1,3],u=[1,6],l=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],c=[2,2],a=[1,15],h=[1,16],g=[1,17],p=[1,18],A=[1,19],x=[1,26],L=[1,27],C=[1,28],M=[1,30],T=[1,31],m=[1,32],d=[1,55],f=[1,54],B=[1,34],R=[1,35],se=[1,36],de=[1,37],le=[1,38],O=[1,50],G=[1,52],U=[1,48],j=[1,53],z=[1,49],W=[1,56],K=[1,51],H=[1,57],Y=[1,58],De=[1,39],_e=[1,40],ve=[1,41],Fe=[1,42],Ve=[1,43],Se=[1,64],D=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Z=[1,70],$=[1,68],ee=[1,67],te=[1,69],Me=[8,9,10,12,78,80,81],ye=[1,88],we=[1,101],Ne=[1,106],Re=[1,105],Oe=[1,102],Pe=[1,98],Ge=[1,104],Ue=[1,100],je=[1,107],ze=[1,103],We=[1,108],Ke=[1,99],Ie=[8,9,10,11,12,43,78,80,81],X=[8,9,10,11,12,43,49,78,80,81],ne=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],jt=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],He=[47,63,92,105,108,109,112,114,117,118,119],zt=[1,131],Wt=[1,132],st=[1,134],it=[1,133],Kt=[47,63,65,77,92,105,108,109,112,114,117,118,119],nt=[1,143],rt=[1,157],at=[1,158],ot=[1,159],ut=[1,162],lt=[1,161],ct=[1,160],dt=[1,145],ht=[1,147],pt=[1,151],Ht=[1,139],Yt=[1,140],ft=[1,152],gt=[1,153],mt=[1,154],bt=[1,155],At=[1,156],kt=[1,163],Et=[1,164],Ct=[1,141],St=[1,142],xt=[1,149],Tt=[1,144],Dt=[1,148],_t=[1,146],Ye=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],qt=[1,168],qe=[1,170],P=[8,9,10,12],re=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],_=[1,190],Q=[1,186],J=[1,187],v=[1,191],F=[1,188],V=[1,189],Xe=[80,119,122],y=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],Xt=[11,109],xe=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],he=[1,269],pe=[1,267],fe=[1,271],ge=[1,265],me=[1,266],be=[1,268],Ae=[1,270],ke=[1,272],Qe=[1,292],Qt=[8,9,10,12,109],ce=[8,9,10,11,12,63,87,108,109,112,113,114,115],Bt={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:k(function(b,E,S,o,w,e,I){var t=e.length-1;switch(w){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 198:this.$=e[t];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:o.setDirection("TB"),this.$="TB";break;case 14:o.setDirection(e[t-1]),this.$=e[t-1];break;case 32:this.$=e[t-1].nodes;break;case 38:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4],"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-6],e[t-4],I[t-8],I[t]);break;case 39:this.$=o.addSubGraph(e[t-7],e[t-1],e[t-5],"flow"),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-3],I[t-3]),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-7],e[t-5],I[t-9],I[t]);break;case 40:this.$=o.addSubGraph(e[t-3],e[t-1],{text:"",type:"text"},"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-3],{text:"",type:"text"},I[t-5],I[t]);break;case 41:this.$=o.addSubGraph(e[t-4],e[t-1],{text:"",type:"text"},"flow"),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-3],I[t-3]),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-4],{text:"",type:"text"},I[t-6],I[t]);break;case 42:this.$=o.addSubGraph(void 0,e[t-1],void 0,"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(void 0,void 0,I[t-3],I[t]);break;case 43:o.addGlobal(e[t-1]),this.$=[];break;case 44:this.$=o.addConnector(e[t-4],e[t-2]),o.addConnectorMapping&&o.addConnectorMapping(e[t-4],e[t-2],I[t-6],I[t]);break;case 45:this.$=o.addConnector(e[t-5],e[t-3]),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-1],I[t-1]),o.addConnectorMapping&&o.addConnectorMapping(e[t-5],e[t-3],I[t-7],I[t]);break;case 46:this.$=o.addConnector(e[t-1],{text:"",type:"text"}),o.addConnectorMapping&&o.addConnectorMapping(e[t-1],{text:"",type:"text"},I[t-3],I[t]);break;case 47:this.$=o.addConnector(e[t-2],{text:"",type:"text"}),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-1],I[t-1]),o.addConnectorMapping&&o.addConnectorMapping(e[t-2],{text:"",type:"text"},I[t-4],I[t]);break;case 49:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 50:case 51:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 56:this.$=e[t-1]+e[t];break;case 57:this.$=e[t];break;case 58:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t],I[t]),o.extendVertexMapping&&o.extendVertexMapping(e[t-1][e[t-1].length-1],I[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),o.addEdgeMapping&&o.addEdgeMapping(e[t-3].stmt,e[t-1],e[t-2],this._$),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 59:o.addLink(e[t-2].stmt,e[t],e[t-1]),o.addEdgeMapping&&o.addEdgeMapping(e[t-2].stmt,e[t],e[t-1],this._$),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 60:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),o.addEdgeMapping&&o.addEdgeMapping(e[t-3].stmt,e[t-1],e[t-2],this._$),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 61:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 62:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t],I[t]),o.extendVertexMapping&&o.extendVertexMapping(e[t-1][e[t-1].length-1],I[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 63:this.$={stmt:e[t],nodes:e[t]};break;case 64:this.$=[e[t]];break;case 65:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4],I[t-4]),o.extendVertexMapping&&o.extendVertexMapping(e[t-5][e[t-5].length-1],I[t-4]),this.$=e[t-5].concat(e[t]);break;case 66:this.$=e[t-4].concat(e[t]);break;case 67:this.$=e[t];break;case 68:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"square",this._$);break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"doublecircle",this._$);break;case 71:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle"),o.addVertexMapping&&o.addVertexMapping(e[t-5],e[t-2],"circle",this._$);break;case 72:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"ellipse",this._$);break;case 73:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"stadium",this._$);break;case 74:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"subroutine",this._$);break;case 75:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]])),o.addVertexMapping&&o.addVertexMapping(e[t-7],e[t-1],"rect",this._$);break;case 76:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"cylinder",this._$);break;case 77:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"round",this._$);break;case 78:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"diamond",this._$);break;case 79:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon"),o.addVertexMapping&&o.addVertexMapping(e[t-5],e[t-2],"hexagon",this._$);break;case 80:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"odd",this._$);break;case 81:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"trapezoid",this._$);break;case 82:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"inv_trapezoid",this._$);break;case 83:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"lean_right",this._$);break;case 84:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"lean_left",this._$);break;case 85:this.$=e[t],o.addVertex(e[t]),o.addVertexMapping&&o.addVertexMapping(e[t],void 0,void 0,this._$);break;case 86:e[t-1].text=e[t],this.$=e[t-1];break;case 87:case 88:e[t-2].text=e[t-1],this.$=e[t-2];break;case 89:this.$=e[t];break;case 90:var N=o.destructLink(e[t],e[t-2]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic,text:e[t-1]};break;case 91:var N=o.destructLink(e[t],e[t-2]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic,text:e[t-1],id:e[t-3]};break;case 92:this.$={text:e[t],type:"text"};break;case 93:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 94:this.$={text:e[t],type:"string"};break;case 95:this.$={text:e[t],type:"markdown"};break;case 96:var N=o.destructLink(e[t]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic};break;case 97:var N=o.destructLink(e[t]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic,id:e[t-1]};break;case 98:this.$=e[t-1];break;case 99:this.$={text:e[t],type:"text"};break;case 100:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 101:this.$={text:e[t],type:"string"};break;case 102:case 119:this.$={text:e[t],type:"markdown"};break;case 116:this.$={text:e[t],type:"text"};break;case 117:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 118:this.$={text:e[t],type:"text"};break;case 120:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 121:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 122:case 130:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 123:case 131:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 124:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 125:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 126:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 127:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 128:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 129:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 132:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 133:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 134:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 135:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 136:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 137:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 138:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 139:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 140:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 141:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 142:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 143:case 145:this.$=[e[t]];break;case 144:case 146:e[t-2].push(e[t]),this.$=e[t-2];break;case 148:this.$=e[t-1]+e[t];break;case 196:this.$=e[t];break;case 197:this.$=e[t-1]+""+e[t];break;case 199:this.$=e[t-1]+""+e[t];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:i,10:n,11:r,13:u},{1:[3]},s(l,c,{5:7}),{4:8,8:i,10:n,11:r,13:u},{4:9,8:i,10:n,11:r,13:u},{4:10,8:i,10:n,11:r,13:u},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(l,[2,10]),s(l,[2,11]),s(l,[2,12]),s(l,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:Se,16:59,19:62},s(D,[2,3]),s(D,[2,4]),s(D,[2,5]),s(D,[2,6]),s(D,[2,7]),s(D,[2,8]),s(D,[2,9]),{8:Z,9:$,10:ee,12:te,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:Z,9:$,10:ee,12:te,22:75},{8:Z,9:$,10:ee,12:te,22:76},{8:Z,9:$,10:ee,12:te,22:77},{8:Z,9:$,10:ee,12:te,22:78},{8:Z,9:$,10:ee,12:te,22:79},{8:Z,9:$,10:ee,11:[1,80],12:te,22:81},{8:Z,9:$,10:ee,12:te,22:82},{11:[1,83]},s(D,[2,48]),{39:[1,84]},{41:[1,85]},s(D,[2,51]),s(Me,[2,63],{19:86,34:87,11:Se,43:ye}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:we,47:Ne,63:Re,83:[1,96],92:Oe,98:[1,93],100:[1,94],104:95,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},s(D,[2,200]),s(D,[2,201]),s(D,[2,202]),s(D,[2,203]),s(D,[2,204]),s(Ie,[2,64]),s(Ie,[2,67],{49:[1,109]}),s(X,[2,85],{116:122,30:[1,110],47:d,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:f,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:O,105:G,108:U,109:j,112:z,114:W,117:K,118:H,119:Y}),s(ne,[2,196]),s(ne,[2,157]),s(ne,[2,158]),s(ne,[2,159]),s(ne,[2,160]),s(ne,[2,161]),s(ne,[2,162]),s(ne,[2,163]),s(ne,[2,164]),s(ne,[2,165]),s(ne,[2,166]),s(ne,[2,167]),s(l,[2,14]),s(l,[2,20]),s(l,[2,21]),{10:[1,123]},s(l,[2,23]),s(jt,[2,31],{19:124,11:Se}),s(D,[2,32]),{45:125,46:44,47:d,48:45,50:46,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(D,[2,52]),s(D,[2,53]),s(D,[2,54]),s(D,[2,55]),s(He,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:zt,84:Wt,119:st,122:it},{78:[1,135],80:[1,136]},s(Kt,[2,96]),s(D,[2,33]),s(D,[2,34]),s(D,[2,35]),s(D,[2,36]),s(D,[2,37]),{11:nt,13:rt,15:at,28:ot,29:137,33:ut,35:lt,36:ct,47:dt,63:ht,78:pt,83:Ht,84:Yt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:138,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},s(Ye,c,{5:165}),s(Ye,c,{5:166}),{11:nt,13:rt,15:at,28:ot,29:167,33:ut,35:lt,36:ct,47:dt,63:ht,78:pt,83:Ht,84:Yt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:138,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},s(D,[2,49]),s(D,[2,50]),s(Me,[2,61],{47:qt}),s(Me,[2,62],{19:169,11:Se,43:qe}),s(Ie,[2,57]),{47:d,50:171,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{105:[1,172],106:173,108:[1,174]},{47:d,50:175,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{47:d,50:176,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(P,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},s(P,[2,130],{123:181,11:[1,180],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),s(P,[2,132],{11:[1,182]}),s(re,[2,198]),s(re,[2,185]),s(re,[2,186]),s(re,[2,187]),s(re,[2,188]),s(re,[2,189]),s(re,[2,190]),s(re,[2,191]),s(re,[2,192]),s(re,[2,193]),s(re,[2,194]),s(re,[2,195]),{47:d,50:183,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{31:184,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:192,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:194,53:[1,193],70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:195,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:196,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:197,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{112:[1,198]},{31:199,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:200,68:[1,201],70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:202,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:203,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{31:204,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},s(ne,[2,197]),s(l,[2,22]),s(jt,[2,30]),s(Me,[2,59],{34:205,19:206,11:Se,43:ye}),s(He,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{80:[1,210],82:211,119:st,122:it},s(Xe,[2,92]),s(Xe,[2,94]),s(Xe,[2,95]),s(Xe,[2,183]),s(Xe,[2,184]),{79:212,82:130,83:zt,84:Wt,119:st,122:it},s(Kt,[2,97]),{8:Z,9:$,10:ee,11:nt,12:te,13:rt,15:at,22:214,28:ot,30:[1,213],33:ut,34:215,35:lt,36:ct,43:ye,47:dt,63:ht,78:pt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:216,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},s(y,[2,116]),s(y,[2,118]),s(y,[2,119]),s(y,[2,172]),s(y,[2,173]),s(y,[2,174]),s(y,[2,175]),s(y,[2,176]),s(y,[2,177]),s(y,[2,178]),s(y,[2,179]),s(y,[2,180]),s(y,[2,181]),s(y,[2,182]),s(y,[2,103]),s(y,[2,104]),s(y,[2,105]),s(y,[2,106]),s(y,[2,107]),s(y,[2,108]),s(y,[2,109]),s(y,[2,110]),s(y,[2,111]),s(y,[2,112]),s(y,[2,113]),s(y,[2,114]),s(y,[2,115]),{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,217],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,218],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},{8:Z,9:$,10:ee,11:nt,12:te,13:rt,15:at,22:220,28:ot,30:[1,219],33:ut,34:221,35:lt,36:ct,43:ye,47:dt,63:ht,78:pt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:216,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},{11:Se,19:222},{47:[1,223]},s(Ie,[2,56]),{11:[1,224],47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:122,117:K,118:H,119:Y},{11:[1,225]},{11:[1,226],109:[1,227]},s(Xt,[2,143]),{11:[1,228],47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:122,117:K,118:H,119:Y},{11:[1,229],47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:122,117:K,118:H,119:Y},{83:[1,230]},s(P,[2,124],{11:[1,231]}),s(P,[2,126],{11:[1,232]}),{83:[1,233]},s(re,[2,199]),{83:[1,234],101:[1,235]},s(Ie,[2,68],{116:122,47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,117:K,118:H,119:Y}),{32:[1,236],70:_,85:237,119:v,120:F,121:V},s(xe,[2,99]),s(xe,[2,101]),s(xe,[2,102]),s(xe,[2,168]),s(xe,[2,169]),s(xe,[2,170]),s(xe,[2,171]),{52:[1,238],70:_,85:237,119:v,120:F,121:V},{31:239,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{54:[1,240],70:_,85:237,119:v,120:F,121:V},{56:[1,241],70:_,85:237,119:v,120:F,121:V},{58:[1,242],70:_,85:237,119:v,120:F,121:V},{60:[1,243],70:_,85:237,119:v,120:F,121:V},{63:[1,244]},{67:[1,245],70:_,85:237,119:v,120:F,121:V},{69:[1,246],70:_,85:237,119:v,120:F,121:V},{31:247,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},{32:[1,248],70:_,85:237,119:v,120:F,121:V},{70:_,72:[1,249],74:[1,250],85:237,119:v,120:F,121:V},{70:_,72:[1,252],74:[1,251],85:237,119:v,120:F,121:V},s(Me,[2,58],{19:169,11:Se,43:qe}),s(Me,[2,60],{47:qt}),s(He,[2,88]),s(He,[2,87]),{65:[1,253],70:_,85:237,119:v,120:F,121:V},s(He,[2,90]),s(Xe,[2,93]),{80:[1,254],82:211,119:st,122:it},{31:255,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},s(Ye,c,{5:256}),{8:Z,9:$,10:ee,12:te,22:257,43:qe},s(y,[2,117]),s(D,[2,42]),s(D,[2,43]),{31:258,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},s(D,[2,46]),{8:Z,9:$,10:ee,12:te,22:259,43:qe},{46:260,47:d,48:45,50:46,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{11:Se,19:261},{11:he,63:pe,87:fe,95:262,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{11:he,63:pe,87:fe,95:273,107:[1,274],108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{11:he,63:pe,87:fe,95:275,107:[1,276],108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{108:[1,277]},{11:he,63:pe,87:fe,95:278,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{47:d,50:279,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(P,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},s(P,[2,131]),s(P,[2,133],{11:[1,283]}),s(P,[2,134]),s(X,[2,69]),s(xe,[2,100]),s(X,[2,70]),{54:[1,284],70:_,85:237,119:v,120:F,121:V},s(X,[2,77]),s(X,[2,72]),s(X,[2,73]),s(X,[2,74]),{112:[1,285]},s(X,[2,76]),s(X,[2,78]),{69:[1,286],70:_,85:237,119:v,120:F,121:V},s(X,[2,80]),s(X,[2,81]),s(X,[2,83]),s(X,[2,82]),s(X,[2,84]),s([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),s(He,[2,91]),{32:[1,287],70:_,85:237,119:v,120:F,121:V},{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,288],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(Ye,c,{5:289}),{32:[1,290],70:_,85:237,119:v,120:F,121:V},s(D,[2,47]),s(Ie,[2,66]),{46:291,47:d,48:45,50:46,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(P,[2,136],{109:Qe}),s(Qt,[2,145],{111:293,11:he,63:pe,87:fe,108:ge,112:me,113:be,114:Ae,115:ke}),s(ce,[2,147]),s(ce,[2,149]),s(ce,[2,150]),s(ce,[2,151]),s(ce,[2,152]),s(ce,[2,153]),s(ce,[2,154]),s(ce,[2,155]),s(ce,[2,156]),s(P,[2,137],{109:Qe}),{11:[1,294]},s(P,[2,138],{109:Qe}),{11:[1,295]},s(Xt,[2,144]),s(P,[2,120],{109:Qe}),s(P,[2,121],{116:122,47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,117:K,118:H,119:Y}),s(P,[2,125]),s(P,[2,127],{11:[1,296]}),s(P,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:Z,9:$,10:ee,12:te,22:301,34:302,43:ye},s(D,[2,40]),{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,303],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},{8:Z,9:$,10:ee,12:te,22:304,34:305,43:ye},s(Ie,[2,65]),{11:he,63:pe,87:fe,108:ge,110:306,111:264,112:me,113:be,114:Ae,115:ke},s(ce,[2,148]),{15:we,47:Ne,63:Re,92:Oe,104:307,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},{15:we,47:Ne,63:Re,92:Oe,104:308,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},{101:[1,309]},s(P,[2,135]),s(X,[2,71]),{31:310,70:_,83:Q,84:J,85:185,119:v,120:F,121:V},s(X,[2,79]),s(Ye,c,{5:311}),{8:Z,9:$,10:ee,12:te,22:312,43:qe},s(D,[2,41]),s(D,[2,44]),{8:Z,9:$,10:ee,12:te,22:313,43:qe},s(Qt,[2,146],{111:293,11:he,63:pe,87:fe,108:ge,112:me,113:be,114:Ae,115:ke}),s(P,[2,141],{123:181,11:[1,314],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),s(P,[2,142],{123:181,11:[1,315],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),s(P,[2,129]),{32:[1,316],70:_,85:237,119:v,120:F,121:V},{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,317],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(Ye,c,{5:318}),s(D,[2,45]),{11:he,63:pe,87:fe,95:319,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{11:he,63:pe,87:fe,95:320,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},s(X,[2,75]),s(D,[2,38]),{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,321],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(P,[2,139],{109:Qe}),s(P,[2,140],{109:Qe}),s(D,[2,39])],defaultActions:{},parseError:k(function(b,E){if(E.recoverable)this.trace(b);else{var S=new Error(b);throw S.hash=E,S}},"parseError"),parse:k(function(b){var E=this,S=[0],o=[],w=[null],e=[],I=this.table,t="",N=0,Jt=0,g1=2,Zt=1,m1=e.slice.call(arguments,1),q=Object.create(this.lexer),Le={yy:{}};for(var Mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Mt)&&(Le.yy[Mt]=this.yy[Mt]);q.setInput(b,Le.yy),Le.yy.lexer=q,Le.yy.parser=this,typeof q.yylloc>"u"&&(q.yylloc={});var yt=q.yylloc;e.push(yt);var b1=q.options&&q.options.ranges;typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A1(ae){S.length=S.length-2*ae,w.length=w.length-ae,e.length=e.length-ae}k(A1,"popStack");function $t(){var ae;return ae=o.pop()||q.lex()||Zt,typeof ae!="number"&&(ae instanceof Array&&(o=ae,ae=o.pop()),ae=E.symbols_[ae]||ae),ae}k($t,"lex");for(var ie,Be,ue,wt,Je={},Ft,Ee,e1,Vt;;){if(Be=S[S.length-1],this.defaultActions[Be]?ue=this.defaultActions[Be]:((ie===null||typeof ie>"u")&&(ie=$t()),ue=I[Be]&&I[Be][ie]),typeof ue>"u"||!ue.length||!ue[0]){var Nt="";Vt=[];for(Ft in I[Be])this.terminals_[Ft]&&Ft>g1&&Vt.push("'"+this.terminals_[Ft]+"'");q.showPosition?Nt="Parse error on line "+(N+1)+`:
22
+ You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,n,r){const u=this.isLinkData(r)?r.id.replace("@",""):void 0;oe.info("addLink",i,n,u);for(const l of i)for(const c of n){const a=l===i[i.length-1],h=c===n[0];a&&h?this.addSingleLink(l,c,r,u):this.addSingleLink(l,c,r,void 0)}}updateLinkInterpolate(i,n){i.forEach(r=>{if(r==="default"){this.edges.defaultInterpolate=n;return}if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[r].interpolate=n})}updateLink(i,n){i.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=n:(this.edges[r].style=n,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(u=>u?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(i,n){const r=n.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(u=>{let l=this.classes.get(u);l===void 0&&(l={id:u,styles:[],textStyles:[]},this.classes.set(u,l)),r?.forEach(c=>{if(/color/.exec(c)){const a=c.replace("fill","bgFill");l.textStyles.push(a)}l.styles.push(c)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,n){for(const r of i.split(",")){const u=this.vertices.get(r);u&&u.classes.push(n);const l=this.edges.find(a=>a.id===r);l&&l.classes.push(n);const c=this.subGraphLookup.get(r);c&&c.classes.push(n)}}setTooltip(i,n){if(n!==void 0){n=this.sanitizeText(n);for(const r of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,n)}}setClickFun(i,n,r){if(Ce().securityLevel!=="loose"||n===void 0)return;let u=[];if(typeof r=="string"){u=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let c=0;c<u.length;c++){let a=u[c].trim();a.startsWith('"')&&a.endsWith('"')&&(a=a.substr(1,a.length-2)),u[c]=a}}u.length===0&&u.push(i);const l=this.vertices.get(i);l&&(l.haveCallback=!0,this.funs.push(()=>{const c=this.lookUpDomId(i),a=document.querySelector(`[id="${c}"]`);a!==null&&a.addEventListener("click",()=>{Gt.runFunc(n,...u)},!1)}))}setLink(i,n,r){i.split(",").forEach(u=>{const l=this.vertices.get(u);l!==void 0&&(l.link=Gt.formatUrl(n,this.config),l.linkTarget=r)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,n,r){i.split(",").forEach(u=>{this.setClickFun(u,n,r)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(n=>{n(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(i){return Y1.has(i.type)}getTools(){const i=[];for(const n of this.vertices.values())this.isToolDefinition(n)&&i.push(n);return i}getClasses(){return this.classes}setupToolTips(i){const n=G1();Ot(i).select("svg").selectAll("g.node").on("mouseover",l=>{const c=Ot(l.currentTarget),a=c.attr("title");if(a===null)return;const h=l.currentTarget?.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),n.html(U1.sanitize(a)),c.classed("hover",!0)}).on("mouseout",l=>{n.transition().duration(500).style("opacity",0),Ot(l.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=Ce(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,B1()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,n,r,u){let l=i?.text?.trim(),c=r?.text;i===r&&r?.text&&/\s/.exec(r.text)&&(l=void 0);const h=k(C=>{const M={boolean:{},number:{},string:{}},T=[];let m;return{nodeList:C.filter(function(f){const B=typeof f;return f.stmt&&f.stmt==="dir"?(m=f.value,!1):f.trim()===""?!1:B in M?M[B].hasOwnProperty(f)?!1:M[B][f]=!0:T.includes(f)?!1:T.push(f)}),dir:m}},"uniq")(n.flat()),g=h.nodeList;let p=h.dir;const A=Ce().flowchart??{};if(p=p??(A.inheritDir?this.getDirection()??Ce().direction??void 0:void 0),this.version==="gen-1")for(let C=0;C<g.length;C++)g[C]=this.lookUpDomId(g[C]);l=l??"subGraph"+this.subCount,c=c||"",c=this.sanitizeText(c),this.subCount=this.subCount+1;const x={id:l,nodes:g.filter(C=>C!==l&&!this.globalNodes.has(C)),title:c.trim(),classes:[],dir:p,labelType:this.sanitizeNodeLabelType(r?.type),type:u??"flow"};oe.info("Adding",x.id,x.nodes,x.dir),x.nodes=this.makeUniq(x,this.subGraphs).nodes;const L=this.getPosForId(l);if(L!==-1){const C=this.subGraphs[L];for(const M of x.nodes)C.nodes.includes(M)||C.nodes.push(M);x.title&&(C.title=x.title),x.dir&&(C.dir=x.dir),x.type&&(C.type=x.type),this.subGraphLookup.set(l,C)}else this.subGraphs.push(x),this.subGraphLookup.set(l,x);return l}addGlobal(i){for(const n of i.flat()){if(typeof n!="string")continue;const r=n.trim();r!==""&&this.globalNodes.add(r)}for(const n of this.subGraphs)n.nodes=n.nodes.filter(r=>!this.globalNodes.has(r))}getPosForId(i){for(const[n,r]of this.subGraphs.entries())if(r.id===i)return n;return-1}indexNodes2(i,n){const r=this.subGraphs[n].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=n,this.subGraphs[n].id===i)return{result:!0,count:0};let u=0,l=1;for(;u<r.length;){const c=this.getPosForId(r[u]);if(c>=0){const a=this.indexNodes2(i,c);if(a.result)return{result:!0,count:l+a.count};l=l+a.count}u=u+1}return{result:!1,count:l}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(i,n){const r=i?.text?.trim();if(!r)return"";const u=n?.text?.trim()??"",l=u.length>0?this.sanitizeText(u):r;let c=this.connectors.get(r);return c?u.length>0&&(c.text=l):(c={id:r,labelType:"text",domId:n1+r+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:l},this.connectors.set(r,c),this.vertices.set(r,c),this.vertexCounter++),r}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}computeEdgeSemantic(i,n){if(i==="arrow_point"&&n==="normal")return"sequence";if(i==="arrow_cross"&&n==="normal")return"failure";if(i==="arrow_open"&&n==="dotted")return"reference"}destructStartLink(i){const n=i.trim(),r="arrow_open";let u="normal";return n.includes(".")&&(u="dotted"),{type:r,stroke:u}}countChar(i,n){const r=n.length;let u=0;for(let l=0;l<r;++l)n[l]===i&&++u;return u}destructEndLink(i){const n=i.trim();let r=n.slice(0,-1),u="arrow_open";switch(n.slice(-1)){case"x":u="arrow_cross";break;case">":u="arrow_point";break;case"-":case".":u="arrow_open",r=n;break}let l="normal",c=r.length-1;const a=this.countChar(".",r);return a>0&&(l="dotted",c=a),{type:u,stroke:l,length:c}}destructLink(i,n){const r=this.destructEndLink(i);let u;return n?(u=this.destructStartLink(n),u.stroke!==r.stroke?{type:"INVALID",stroke:"INVALID"}:(u.type=r.type,u.length=r.length,{...u,edgeSemantic:this.computeEdgeSemantic(u.type,u.stroke)})):{...r,edgeSemantic:this.computeEdgeSemantic(r.type,r.stroke)}}exists(i,n){for(const r of i)if(r.nodes.includes(n))return!0;return!1}makeUniq(i,n){const r=[];return i.nodes.forEach((u,l)=>{this.exists(n,u)||r.push(i.nodes[l])}),{nodes:r}}getTypeFromVertex(i){const n=typeof i.type=="string"?et(i.type):i.type;switch(n){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return n}}findNode(i,n){return i.find(r=>r.id===n)}destructEdgeType(i){let n="none",r="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":r=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":n=i.replace("double_",""),r=n;break}return{arrowTypeStart:n,arrowTypeEnd:r}}addNodeFromVertex(i,n,r,u,l,c){const a=r.get(i.id),h=u.get(i.id)??!1,g=this.findNode(n,i.id);if(g)g.cssStyles=i.styles,g.cssCompiledStyles=this.getCompiledStyles(i.classes),g.cssClasses=i.classes.join(" ");else{const p={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:a,padding:l.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:c,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),metadata:i.metadata};h?n.push({...p,isGroup:!0,shape:"rect"}):n.push({...p,isGroup:!1,shape:this.getTypeFromVertex(i),wrappingWidth:l.agentflow?.wrappingWidth,minWidth:l.agentflow?.minNodeWidth})}}getCompiledStyles(i){let n=[];for(const r of i){const u=this.classes.get(r);u?.styles&&(n=[...n,...u.styles??[]].map(l=>l.trim())),u?.textStyles&&(n=[...n,...u.textStyles??[]].map(l=>l.trim()))}return n}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();const i=Ce(),n=[],r=[],u=this.getSubGraphs(),l=new Map,c=new Map,a=new Set,h=new Map,g=k((d,f,B=new Set)=>{if(B.has(d))return;B.add(d);const R=this.subGraphLookup.get(d);if(R)for(const se of R.nodes)se===f||B.has(se)||(a.add(se),h.set(se,f),g(se,f,B))},"collectDescendants");for(const d of u)d.metadata?.view==="collapsed"&&!a.has(d.id)&&g(d.id,d.id);const p=k((d,f)=>{const B=new Set;let R=f;for(;R!==void 0&&!B.has(R);){if(R===d)return!0;B.add(R),R=l.get(R)}return!1},"wouldCloseContainmentCycle");for(let d=u.length-1;d>=0;d--){const f=u[d];if(!a.has(f.id)){f.nodes.length>0&&c.set(f.id,!0);for(const B of f.nodes){if(p(B,f.id)){this.emitWarning(tt.CONTAINMENT_VIOLATION,`Container "${f.id}" cannot contain "${B}" because "${B}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:B});continue}l.set(B,f.id)}}}for(let d=u.length-1;d>=0;d--){const f=u[d];if(a.has(f.id))continue;if(f.metadata?.view==="collapsed"){const R={...f.metadata,containerType:f.type};n.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"collapsedGroup",dir:f.dir,isGroup:!1,look:i.look,metadata:R})}else n.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:q1[f.type??"flow"],dir:f.dir,isGroup:!0,look:i.look,metadata:f.metadata})}this.getVertices().forEach(d=>{a.has(d.id)||this.addNodeFromVertex(d,n,l,c,i,i.look||"classic")});const x=this.getEdges();x.forEach((d,f)=>{const B=h.get(d.start)??d.start,R=h.get(d.end)??d.end;if(B===R&&d.start!==d.end)return;const{arrowTypeStart:se,arrowTypeEnd:de}=this.destructEdgeType(d.type),le=[...x.defaultStyle??[]];d.style&&le.push(...d.style);const O={id:Rt(B,R,{counter:f,prefix:"L"},d.id),isUserDefinedId:d.isUserDefinedId,start:B,end:R,type:d.type??"normal",label:d.text,labelType:d.labelType,labelpos:"c",thickness:d.stroke,minlen:d.length,classes:d?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":se,arrowTypeEnd:d?.stroke==="invisible"||d?.type==="arrow_open"?"none":de,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(d.classes),labelStyle:le,style:le,pattern:d.stroke,look:i.look,animate:d.animate,animation:d.animation,curve:d.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve,metadata:d.metadata};r.push(O)}),r1(n,this);const L=new Map,C=new Map;for(const d of u){const f=l.get(d.id);f!==void 0&&C.set(f,[...C.get(f)??[],d.id])}let M=0;const T=k(d=>{if(!L.has(d)){L.set(d,M++);for(const f of C.get(d)??[])T(f)}},"walkContainers");for(const d of u)l.get(d.id)===void 0&&T(d.id);const m=new Set(this.getConnectors().map(d=>d.id));return c1(n,d=>{if(m.has(d))return"connector";const f=this.vertices.get(d);return f?this.deriveVertexKind(f,et(f.type)):void 0},L),{nodes:n,edges:r,other:{},config:i,connectors:this.getConnectors()}}defaultConfig(){return M1.flowchart}deriveVertexKind(i,n){return this.isToolDefinition(i)?"tool":n==="hexagon"||n==="hex"?"action":n==="lean-right"||n==="lean_right"?"input":n==="lin-doc"||n==="lined-document"?"refdoc":n==="diamond"?"decision":"task"}getSemanticModel(){this.runPostParseValidators();const i=new Set(this.subGraphs.map(a=>a.id)),n=[],r=[];for(const[a,h]of this.vertices){if(i.has(a))continue;if(h.isConnector){const A={id:a};if(h.text!==void 0&&h.text!==a&&(A.title=h.text),h.metadata&&Object.keys(h.metadata).length>0){const x={};for(const[L,C]of Object.entries(h.metadata))Pt.has(L)||(x[L]=C);Object.keys(x).length>0&&(A.metadata=x)}r.push(A);continue}const g={id:a};h.text!==void 0&&(g.label=h.text);const p=typeof h.type=="string"?et(h.type):h.type;if(p!==void 0&&(g.shape=p),g.vertexKind=this.deriveVertexKind(h,p),h.metadata&&Object.keys(h.metadata).length>0){const A={};for(const[x,L]of Object.entries(h.metadata))Pt.has(x)||(A[x]=L);Object.keys(A).length>0&&(g.metadata=A)}n.push(g)}const u=this.edges.map(a=>{const h={start:a.start,end:a.end};return a.id!==void 0&&(h.id=a.id),typeof a.text=="string"&&a.text.length>0&&(h.label=a.text),a.type!==void 0&&(h.type=a.type),a.stroke!==void 0&&(h.stroke=a.stroke),a.edgeSemantic!==void 0&&(h.edgeSemantic=a.edgeSemantic),a.length!==void 0&&(h.length=a.length),a.metadata&&Object.keys(a.metadata).length>0&&(h.metadata={...a.metadata}),h}),l=this.subGraphs.map(a=>{const h={id:a.id,nodes:[...a.nodes]};if(a.type!==void 0&&(h.type=a.type),a.title!==void 0&&(h.title=a.title),a.dir!==void 0&&(h.direction=a.dir),a.metadata&&Object.keys(a.metadata).length>0){const g={};for(const[p,A]of Object.entries(a.metadata))Pt.has(p)||(g[p]=A);Object.keys(g).length>0&&(h.metadata=g)}return h}),c={vertices:n,edges:u,subGraphs:l,connectors:r,diagnostics:this.diagnostics};return this.direction!==void 0&&(c.direction=this.direction),c}setFrontmatterLineOffset(i){this.frontmatterLineOffset=i??0}toElementPosition(i){const n=i?.first_line??0,r=i?.first_column??0,u=i?.last_line??n,l=i?.last_column??r,[c,a]=i?.range??[0,0];return{startLine:n+this.frontmatterLineOffset,startColumn:r,endLine:u+this.frontmatterLineOffset,endColumn:l,startIndex:c,endIndex:a}}pushMapping(i,n,r){if(!i)return;const u={id:i,type:n,position:this.toElementPosition(r)};return this.elementMappings.push(u),u}addVertexMapping(i,n,r,u){const l=this.pushMapping(i,"vertex",u);l&&r==null&&this.bareVertexMappings.add(l)}extendVertexMapping(i,n){if(!i||!n)return;const r=this.toElementPosition(n);for(let u=this.elementMappings.length-1;u>=0;u--){const l=this.elementMappings[u];if(l.type==="vertex"&&l.id===i){this.bareVertexMappings.has(l)&&(l.type="attachment",this.bareVertexMappings.delete(l)),(r.endLine>l.position.endLine||r.endLine===l.position.endLine&&r.endColumn>l.position.endColumn)&&(l.position.endLine=r.endLine,l.position.endColumn=r.endColumn,l.position.endIndex=r.endIndex);return}}this.pushMapping(i,"attachment",n)}addEdgeMapping(i,n,r,u){const l=Array.isArray(n)?n.map(a=>typeof a=="string"?a:a?.id??"").filter(Boolean):[],c=l.length>0?l.join(">"):"edge";this.pushMapping(c,"edge",u)}addSubgraphMapping(i,n,r,u){const l=(typeof i=="string"?i:i?.text)??"",c=this.toElementPosition(r),a=u?this.toElementPosition(u):c;l&&this.elementMappings.push({id:l,type:"subgraph",position:{startLine:c.startLine,startColumn:c.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:c.startIndex,endIndex:a.endIndex}})}addConnectorMapping(i,n,r,u){const l=i?.text?.trim()??"";if(!l)return;const c=this.toElementPosition(r),a=u?this.toElementPosition(u):c;this.elementMappings.push({id:l,type:"connector",position:{startLine:c.startLine,startColumn:c.startColumn,endLine:a.endLine,endColumn:a.endColumn,startIndex:c.startIndex,endIndex:a.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(i){return this.elementMappings.find(n=>n.id===i)}getElementsOnLine(i){return this.elementMappings.filter(n=>i>=n.position.startLine&&i<=n.position.endLine)}getElementAtPosition(i,n){const r=this.elementMappings.filter(l=>{const{startLine:c,startColumn:a,endLine:h,endColumn:g}=l.position;return!(i<c||i>h||i===c&&n<a||i===h&&n>g)});if(r.length===0)return;const u=k(({position:l})=>[l.endLine-l.startLine,l.endColumn-l.startColumn],"span");return r.reduce((l,c)=>{const[a,h]=u(l),[g,p]=u(c);return g!==a?g<a?c:l:p<h?c:l})}getMappingStats(){let i=0,n=0,r=0,u=0,l=0;for(const c of this.elementMappings)c.type==="vertex"?i++:c.type==="edge"?n++:c.type==="subgraph"?r++:c.type==="connector"?u++:c.type==="attachment"&&l++;return{vertices:i,edges:n,subgraphs:r,connectors:u,attachments:l,totalElements:this.elementMappings.length}}emitDiagnostic(i,n,r,u){const l=u?.nodeId??u?.edgeId,c=l?this.getElementById(l):void 0,a={id:i,severity:n,message:r,...u?.nodeId?{nodeId:u.nodeId}:{},...u?.edgeId&&!u?.nodeId?{edgeId:u.edgeId}:{},...c?{position:c.position}:{}};if(this.diagnostics.some(p=>p.id===a.id&&p.severity===a.severity&&p.message===a.message&&p.nodeId===a.nodeId&&p.edgeId===a.edgeId))return;this.diagnostics.push(a);const g=`agentflow[${i}]: ${r}`;n==="error"?oe.error(g):oe.warn(g)}emitWarning(i,n,r){this.emitDiagnostic(i,"warning",n,r)}emitError(i,n,r){this.emitDiagnostic(i,"error",n,r)}getDiagnostics(){return[...this.diagnostics]}},k(Ze,"AgentFlowDB"),Ze),J1=k(function(s,i){return i.db.getClasses()},"getClasses"),Q1=k(async function(s,i,n,r){oe.debug("Drawing agentflow diagram",i);const{securityLevel:u,agentflow:l,layout:c}=Ce();r.db.setDiagramId(i),oe.debug("Before getData: ");const a=r.db.getData();oe.debug("Data: ",a);const h=E1(i,u),g=r.db.getDirection();a.type=r.type,a.layoutAlgorithm=S1(c),a.layoutAlgorithm==="dagre"&&c==="elk"&&oe.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),a.direction=g,a.nodeSpacing=l?.nodeSpacing||50,a.rankSpacing=l?.rankSpacing||50,a.markers=["point","circle","cross","hierarchy"],a.diagramId=i,oe.debug("REF1:",a),await x1(a,h);const p=l?.diagramPadding??8;Gt.insertTitle(h,"agentflowTitleText",l?.titleTopMargin??0,r.db.getDiagramTitle()),C1(h,p,"agentflow",l?.useMaxWidth??!0)},"draw"),Z1={getClasses:J1,draw:Q1},Ut=(function(){var s=k(function(Te,b,E,S){for(E=E||{},S=Te.length;S--;E[Te[S]]=b);return E},"o"),i=[1,5],n=[1,4],r=[1,3],u=[1,6],l=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],c=[2,2],a=[1,15],h=[1,16],g=[1,17],p=[1,18],A=[1,19],x=[1,26],L=[1,27],C=[1,28],M=[1,30],T=[1,31],m=[1,32],d=[1,55],f=[1,54],B=[1,34],R=[1,35],se=[1,36],de=[1,37],le=[1,38],O=[1,50],G=[1,52],U=[1,48],j=[1,53],z=[1,49],W=[1,56],K=[1,51],H=[1,57],Y=[1,58],De=[1,39],_e=[1,40],ve=[1,41],Fe=[1,42],Ve=[1,43],Se=[1,64],D=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Z=[1,70],$=[1,68],ee=[1,67],te=[1,69],Me=[8,9,10,12,78,80,81],ye=[1,88],we=[1,101],Ne=[1,106],Re=[1,105],Oe=[1,102],Pe=[1,98],Ge=[1,104],Ue=[1,100],je=[1,107],ze=[1,103],We=[1,108],Ke=[1,99],Ie=[8,9,10,11,12,43,78,80,81],X=[8,9,10,11,12,43,49,78,80,81],ne=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],jt=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],He=[47,63,92,105,108,109,112,114,117,118,119],zt=[1,131],Wt=[1,132],st=[1,134],it=[1,133],Kt=[47,63,65,77,92,105,108,109,112,114,117,118,119],nt=[1,143],rt=[1,157],at=[1,158],ot=[1,159],ut=[1,162],lt=[1,161],ct=[1,160],dt=[1,145],ht=[1,147],pt=[1,151],Ht=[1,139],Yt=[1,140],ft=[1,152],gt=[1,153],mt=[1,154],bt=[1,155],At=[1,156],kt=[1,163],Et=[1,164],Ct=[1,141],St=[1,142],xt=[1,149],Tt=[1,144],Dt=[1,148],_t=[1,146],Ye=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],qt=[1,168],qe=[1,170],P=[8,9,10,12],re=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],_=[1,190],J=[1,186],Q=[1,187],v=[1,191],F=[1,188],V=[1,189],Xe=[80,119,122],y=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],Xt=[11,109],xe=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],he=[1,269],pe=[1,267],fe=[1,271],ge=[1,265],me=[1,266],be=[1,268],Ae=[1,270],ke=[1,272],Je=[1,292],Jt=[8,9,10,12,109],ce=[8,9,10,11,12,63,87,108,109,112,113,114,115],Bt={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:k(function(b,E,S,o,w,e,I){var t=e.length-1;switch(w){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 198:this.$=e[t];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:o.setDirection("TB"),this.$="TB";break;case 14:o.setDirection(e[t-1]),this.$=e[t-1];break;case 32:this.$=e[t-1].nodes;break;case 38:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4],"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-6],e[t-4],I[t-8],I[t]);break;case 39:this.$=o.addSubGraph(e[t-7],e[t-1],e[t-5],"flow"),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-3],I[t-3]),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-7],e[t-5],I[t-9],I[t]);break;case 40:this.$=o.addSubGraph(e[t-3],e[t-1],{text:"",type:"text"},"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-3],{text:"",type:"text"},I[t-5],I[t]);break;case 41:this.$=o.addSubGraph(e[t-4],e[t-1],{text:"",type:"text"},"flow"),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-3],I[t-3]),o.addSubgraphMapping&&o.addSubgraphMapping(e[t-4],{text:"",type:"text"},I[t-6],I[t]);break;case 42:this.$=o.addSubGraph(void 0,e[t-1],void 0,"flow"),o.addSubgraphMapping&&o.addSubgraphMapping(void 0,void 0,I[t-3],I[t]);break;case 43:o.addGlobal(e[t-1]),this.$=[];break;case 44:this.$=o.addConnector(e[t-4],e[t-2]),o.addConnectorMapping&&o.addConnectorMapping(e[t-4],e[t-2],I[t-6],I[t]);break;case 45:this.$=o.addConnector(e[t-5],e[t-3]),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-1],I[t-1]),o.addConnectorMapping&&o.addConnectorMapping(e[t-5],e[t-3],I[t-7],I[t]);break;case 46:this.$=o.addConnector(e[t-1],{text:"",type:"text"}),o.addConnectorMapping&&o.addConnectorMapping(e[t-1],{text:"",type:"text"},I[t-3],I[t]);break;case 47:this.$=o.addConnector(e[t-2],{text:"",type:"text"}),o.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,e[t-1],I[t-1]),o.addConnectorMapping&&o.addConnectorMapping(e[t-2],{text:"",type:"text"},I[t-4],I[t]);break;case 49:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 50:case 51:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 56:this.$=e[t-1]+e[t];break;case 57:this.$=e[t];break;case 58:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t],I[t]),o.extendVertexMapping&&o.extendVertexMapping(e[t-1][e[t-1].length-1],I[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),o.addEdgeMapping&&o.addEdgeMapping(e[t-3].stmt,e[t-1],e[t-2],this._$),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 59:o.addLink(e[t-2].stmt,e[t],e[t-1]),o.addEdgeMapping&&o.addEdgeMapping(e[t-2].stmt,e[t],e[t-1],this._$),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 60:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),o.addEdgeMapping&&o.addEdgeMapping(e[t-3].stmt,e[t-1],e[t-2],this._$),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 61:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 62:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t],I[t]),o.extendVertexMapping&&o.extendVertexMapping(e[t-1][e[t-1].length-1],I[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 63:this.$={stmt:e[t],nodes:e[t]};break;case 64:this.$=[e[t]];break;case 65:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4],I[t-4]),o.extendVertexMapping&&o.extendVertexMapping(e[t-5][e[t-5].length-1],I[t-4]),this.$=e[t-5].concat(e[t]);break;case 66:this.$=e[t-4].concat(e[t]);break;case 67:this.$=e[t];break;case 68:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"square",this._$);break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"doublecircle",this._$);break;case 71:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle"),o.addVertexMapping&&o.addVertexMapping(e[t-5],e[t-2],"circle",this._$);break;case 72:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"ellipse",this._$);break;case 73:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"stadium",this._$);break;case 74:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"subroutine",this._$);break;case 75:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]])),o.addVertexMapping&&o.addVertexMapping(e[t-7],e[t-1],"rect",this._$);break;case 76:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"cylinder",this._$);break;case 77:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"round",this._$);break;case 78:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"diamond",this._$);break;case 79:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon"),o.addVertexMapping&&o.addVertexMapping(e[t-5],e[t-2],"hexagon",this._$);break;case 80:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"odd",this._$);break;case 81:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"trapezoid",this._$);break;case 82:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"inv_trapezoid",this._$);break;case 83:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"lean_right",this._$);break;case 84:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left"),o.addVertexMapping&&o.addVertexMapping(e[t-3],e[t-1],"lean_left",this._$);break;case 85:this.$=e[t],o.addVertex(e[t]),o.addVertexMapping&&o.addVertexMapping(e[t],void 0,void 0,this._$);break;case 86:e[t-1].text=e[t],this.$=e[t-1];break;case 87:case 88:e[t-2].text=e[t-1],this.$=e[t-2];break;case 89:this.$=e[t];break;case 90:var N=o.destructLink(e[t],e[t-2]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic,text:e[t-1]};break;case 91:var N=o.destructLink(e[t],e[t-2]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic,text:e[t-1],id:e[t-3]};break;case 92:this.$={text:e[t],type:"text"};break;case 93:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 94:this.$={text:e[t],type:"string"};break;case 95:this.$={text:e[t],type:"markdown"};break;case 96:var N=o.destructLink(e[t]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic};break;case 97:var N=o.destructLink(e[t]);this.$={type:N.type,stroke:N.stroke,length:N.length,edgeSemantic:N.edgeSemantic,id:e[t-1]};break;case 98:this.$=e[t-1];break;case 99:this.$={text:e[t],type:"text"};break;case 100:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 101:this.$={text:e[t],type:"string"};break;case 102:case 119:this.$={text:e[t],type:"markdown"};break;case 116:this.$={text:e[t],type:"text"};break;case 117:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 118:this.$={text:e[t],type:"text"};break;case 120:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 121:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 122:case 130:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 123:case 131:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 124:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 125:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 126:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 127:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 128:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 129:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 132:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 133:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 134:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 135:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 136:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 137:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 138:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 139:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 140:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 141:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 142:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 143:case 145:this.$=[e[t]];break;case 144:case 146:e[t-2].push(e[t]),this.$=e[t-2];break;case 148:this.$=e[t-1]+e[t];break;case 196:this.$=e[t];break;case 197:this.$=e[t-1]+""+e[t];break;case 199:this.$=e[t-1]+""+e[t];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:i,10:n,11:r,13:u},{1:[3]},s(l,c,{5:7}),{4:8,8:i,10:n,11:r,13:u},{4:9,8:i,10:n,11:r,13:u},{4:10,8:i,10:n,11:r,13:u},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(l,[2,10]),s(l,[2,11]),s(l,[2,12]),s(l,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:Se,16:59,19:62},s(D,[2,3]),s(D,[2,4]),s(D,[2,5]),s(D,[2,6]),s(D,[2,7]),s(D,[2,8]),s(D,[2,9]),{8:Z,9:$,10:ee,12:te,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:Z,9:$,10:ee,12:te,22:75},{8:Z,9:$,10:ee,12:te,22:76},{8:Z,9:$,10:ee,12:te,22:77},{8:Z,9:$,10:ee,12:te,22:78},{8:Z,9:$,10:ee,12:te,22:79},{8:Z,9:$,10:ee,11:[1,80],12:te,22:81},{8:Z,9:$,10:ee,12:te,22:82},{11:[1,83]},s(D,[2,48]),{39:[1,84]},{41:[1,85]},s(D,[2,51]),s(Me,[2,63],{19:86,34:87,11:Se,43:ye}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:we,47:Ne,63:Re,83:[1,96],92:Oe,98:[1,93],100:[1,94],104:95,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},s(D,[2,200]),s(D,[2,201]),s(D,[2,202]),s(D,[2,203]),s(D,[2,204]),s(Ie,[2,64]),s(Ie,[2,67],{49:[1,109]}),s(X,[2,85],{116:122,30:[1,110],47:d,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:f,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:O,105:G,108:U,109:j,112:z,114:W,117:K,118:H,119:Y}),s(ne,[2,196]),s(ne,[2,157]),s(ne,[2,158]),s(ne,[2,159]),s(ne,[2,160]),s(ne,[2,161]),s(ne,[2,162]),s(ne,[2,163]),s(ne,[2,164]),s(ne,[2,165]),s(ne,[2,166]),s(ne,[2,167]),s(l,[2,14]),s(l,[2,20]),s(l,[2,21]),{10:[1,123]},s(l,[2,23]),s(jt,[2,31],{19:124,11:Se}),s(D,[2,32]),{45:125,46:44,47:d,48:45,50:46,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(D,[2,52]),s(D,[2,53]),s(D,[2,54]),s(D,[2,55]),s(He,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:zt,84:Wt,119:st,122:it},{78:[1,135],80:[1,136]},s(Kt,[2,96]),s(D,[2,33]),s(D,[2,34]),s(D,[2,35]),s(D,[2,36]),s(D,[2,37]),{11:nt,13:rt,15:at,28:ot,29:137,33:ut,35:lt,36:ct,47:dt,63:ht,78:pt,83:Ht,84:Yt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:138,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},s(Ye,c,{5:165}),s(Ye,c,{5:166}),{11:nt,13:rt,15:at,28:ot,29:167,33:ut,35:lt,36:ct,47:dt,63:ht,78:pt,83:Ht,84:Yt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:138,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},s(D,[2,49]),s(D,[2,50]),s(Me,[2,61],{47:qt}),s(Me,[2,62],{19:169,11:Se,43:qe}),s(Ie,[2,57]),{47:d,50:171,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{105:[1,172],106:173,108:[1,174]},{47:d,50:175,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{47:d,50:176,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(P,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},s(P,[2,130],{123:181,11:[1,180],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),s(P,[2,132],{11:[1,182]}),s(re,[2,198]),s(re,[2,185]),s(re,[2,186]),s(re,[2,187]),s(re,[2,188]),s(re,[2,189]),s(re,[2,190]),s(re,[2,191]),s(re,[2,192]),s(re,[2,193]),s(re,[2,194]),s(re,[2,195]),{47:d,50:183,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{31:184,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:192,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:194,53:[1,193],70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:195,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:196,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:197,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{112:[1,198]},{31:199,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:200,68:[1,201],70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:202,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:203,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{31:204,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},s(ne,[2,197]),s(l,[2,22]),s(jt,[2,30]),s(Me,[2,59],{34:205,19:206,11:Se,43:ye}),s(He,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{80:[1,210],82:211,119:st,122:it},s(Xe,[2,92]),s(Xe,[2,94]),s(Xe,[2,95]),s(Xe,[2,183]),s(Xe,[2,184]),{79:212,82:130,83:zt,84:Wt,119:st,122:it},s(Kt,[2,97]),{8:Z,9:$,10:ee,11:nt,12:te,13:rt,15:at,22:214,28:ot,30:[1,213],33:ut,34:215,35:lt,36:ct,43:ye,47:dt,63:ht,78:pt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:216,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},s(y,[2,116]),s(y,[2,118]),s(y,[2,119]),s(y,[2,172]),s(y,[2,173]),s(y,[2,174]),s(y,[2,175]),s(y,[2,176]),s(y,[2,177]),s(y,[2,178]),s(y,[2,179]),s(y,[2,180]),s(y,[2,181]),s(y,[2,182]),s(y,[2,103]),s(y,[2,104]),s(y,[2,105]),s(y,[2,106]),s(y,[2,107]),s(y,[2,108]),s(y,[2,109]),s(y,[2,110]),s(y,[2,111]),s(y,[2,112]),s(y,[2,113]),s(y,[2,114]),s(y,[2,115]),{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,217],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,218],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},{8:Z,9:$,10:ee,11:nt,12:te,13:rt,15:at,22:220,28:ot,30:[1,219],33:ut,34:221,35:lt,36:ct,43:ye,47:dt,63:ht,78:pt,86:150,87:ft,88:gt,89:mt,90:bt,91:At,92:kt,93:Et,94:216,108:Ct,112:St,114:xt,117:Tt,118:Dt,119:_t},{11:Se,19:222},{47:[1,223]},s(Ie,[2,56]),{11:[1,224],47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:122,117:K,118:H,119:Y},{11:[1,225]},{11:[1,226],109:[1,227]},s(Xt,[2,143]),{11:[1,228],47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:122,117:K,118:H,119:Y},{11:[1,229],47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:122,117:K,118:H,119:Y},{83:[1,230]},s(P,[2,124],{11:[1,231]}),s(P,[2,126],{11:[1,232]}),{83:[1,233]},s(re,[2,199]),{83:[1,234],101:[1,235]},s(Ie,[2,68],{116:122,47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,117:K,118:H,119:Y}),{32:[1,236],70:_,85:237,119:v,120:F,121:V},s(xe,[2,99]),s(xe,[2,101]),s(xe,[2,102]),s(xe,[2,168]),s(xe,[2,169]),s(xe,[2,170]),s(xe,[2,171]),{52:[1,238],70:_,85:237,119:v,120:F,121:V},{31:239,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{54:[1,240],70:_,85:237,119:v,120:F,121:V},{56:[1,241],70:_,85:237,119:v,120:F,121:V},{58:[1,242],70:_,85:237,119:v,120:F,121:V},{60:[1,243],70:_,85:237,119:v,120:F,121:V},{63:[1,244]},{67:[1,245],70:_,85:237,119:v,120:F,121:V},{69:[1,246],70:_,85:237,119:v,120:F,121:V},{31:247,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},{32:[1,248],70:_,85:237,119:v,120:F,121:V},{70:_,72:[1,249],74:[1,250],85:237,119:v,120:F,121:V},{70:_,72:[1,252],74:[1,251],85:237,119:v,120:F,121:V},s(Me,[2,58],{19:169,11:Se,43:qe}),s(Me,[2,60],{47:qt}),s(He,[2,88]),s(He,[2,87]),{65:[1,253],70:_,85:237,119:v,120:F,121:V},s(He,[2,90]),s(Xe,[2,93]),{80:[1,254],82:211,119:st,122:it},{31:255,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},s(Ye,c,{5:256}),{8:Z,9:$,10:ee,12:te,22:257,43:qe},s(y,[2,117]),s(D,[2,42]),s(D,[2,43]),{31:258,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},s(D,[2,46]),{8:Z,9:$,10:ee,12:te,22:259,43:qe},{46:260,47:d,48:45,50:46,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},{11:Se,19:261},{11:he,63:pe,87:fe,95:262,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{11:he,63:pe,87:fe,95:273,107:[1,274],108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{11:he,63:pe,87:fe,95:275,107:[1,276],108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{108:[1,277]},{11:he,63:pe,87:fe,95:278,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{47:d,50:279,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(P,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},s(P,[2,131]),s(P,[2,133],{11:[1,283]}),s(P,[2,134]),s(X,[2,69]),s(xe,[2,100]),s(X,[2,70]),{54:[1,284],70:_,85:237,119:v,120:F,121:V},s(X,[2,77]),s(X,[2,72]),s(X,[2,73]),s(X,[2,74]),{112:[1,285]},s(X,[2,76]),s(X,[2,78]),{69:[1,286],70:_,85:237,119:v,120:F,121:V},s(X,[2,80]),s(X,[2,81]),s(X,[2,83]),s(X,[2,82]),s(X,[2,84]),s([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),s(He,[2,91]),{32:[1,287],70:_,85:237,119:v,120:F,121:V},{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,288],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(Ye,c,{5:289}),{32:[1,290],70:_,85:237,119:v,120:F,121:V},s(D,[2,47]),s(Ie,[2,66]),{46:291,47:d,48:45,50:46,63:f,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y},s(P,[2,136],{109:Je}),s(Jt,[2,145],{111:293,11:he,63:pe,87:fe,108:ge,112:me,113:be,114:Ae,115:ke}),s(ce,[2,147]),s(ce,[2,149]),s(ce,[2,150]),s(ce,[2,151]),s(ce,[2,152]),s(ce,[2,153]),s(ce,[2,154]),s(ce,[2,155]),s(ce,[2,156]),s(P,[2,137],{109:Je}),{11:[1,294]},s(P,[2,138],{109:Je}),{11:[1,295]},s(Xt,[2,144]),s(P,[2,120],{109:Je}),s(P,[2,121],{116:122,47:d,63:f,92:O,105:G,108:U,109:j,112:z,114:W,117:K,118:H,119:Y}),s(P,[2,125]),s(P,[2,127],{11:[1,296]}),s(P,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:Z,9:$,10:ee,12:te,22:301,34:302,43:ye},s(D,[2,40]),{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,303],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},{8:Z,9:$,10:ee,12:te,22:304,34:305,43:ye},s(Ie,[2,65]),{11:he,63:pe,87:fe,108:ge,110:306,111:264,112:me,113:be,114:Ae,115:ke},s(ce,[2,148]),{15:we,47:Ne,63:Re,92:Oe,104:307,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},{15:we,47:Ne,63:Re,92:Oe,104:308,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke,123:97},{101:[1,309]},s(P,[2,135]),s(X,[2,71]),{31:310,70:_,83:J,84:Q,85:185,119:v,120:F,121:V},s(X,[2,79]),s(Ye,c,{5:311}),{8:Z,9:$,10:ee,12:te,22:312,43:qe},s(D,[2,41]),s(D,[2,44]),{8:Z,9:$,10:ee,12:te,22:313,43:qe},s(Jt,[2,146],{111:293,11:he,63:pe,87:fe,108:ge,112:me,113:be,114:Ae,115:ke}),s(P,[2,141],{123:181,11:[1,314],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),s(P,[2,142],{123:181,11:[1,315],15:we,47:Ne,63:Re,92:Oe,108:Pe,109:Ge,112:Ue,114:je,117:ze,118:We,119:Ke}),s(P,[2,129]),{32:[1,316],70:_,85:237,119:v,120:F,121:V},{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,317],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(Ye,c,{5:318}),s(D,[2,45]),{11:he,63:pe,87:fe,95:319,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},{11:he,63:pe,87:fe,95:320,108:ge,110:263,111:264,112:me,113:be,114:Ae,115:ke},s(X,[2,75]),s(D,[2,38]),{6:13,7:14,8:a,9:h,10:g,11:p,12:A,21:20,23:21,24:22,25:23,26:24,27:25,28:x,33:[1,321],35:L,36:C,37:29,38:M,40:T,42:m,45:33,46:44,47:d,48:45,50:46,63:f,87:B,88:R,89:se,90:de,91:le,92:O,105:G,108:U,109:j,112:z,114:W,116:47,117:K,118:H,119:Y,124:De,125:_e,126:ve,127:Fe,128:Ve},s(P,[2,139],{109:Je}),s(P,[2,140],{109:Je}),s(D,[2,39])],defaultActions:{},parseError:k(function(b,E){if(E.recoverable)this.trace(b);else{var S=new Error(b);throw S.hash=E,S}},"parseError"),parse:k(function(b){var E=this,S=[0],o=[],w=[null],e=[],I=this.table,t="",N=0,Qt=0,g1=2,Zt=1,m1=e.slice.call(arguments,1),q=Object.create(this.lexer),Le={yy:{}};for(var Mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Mt)&&(Le.yy[Mt]=this.yy[Mt]);q.setInput(b,Le.yy),Le.yy.lexer=q,Le.yy.parser=this,typeof q.yylloc>"u"&&(q.yylloc={});var yt=q.yylloc;e.push(yt);var b1=q.options&&q.options.ranges;typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A1(ae){S.length=S.length-2*ae,w.length=w.length-ae,e.length=e.length-ae}k(A1,"popStack");function $t(){var ae;return ae=o.pop()||q.lex()||Zt,typeof ae!="number"&&(ae instanceof Array&&(o=ae,ae=o.pop()),ae=E.symbols_[ae]||ae),ae}k($t,"lex");for(var ie,Be,ue,wt,Qe={},Ft,Ee,e1,Vt;;){if(Be=S[S.length-1],this.defaultActions[Be]?ue=this.defaultActions[Be]:((ie===null||typeof ie>"u")&&(ie=$t()),ue=I[Be]&&I[Be][ie]),typeof ue>"u"||!ue.length||!ue[0]){var Nt="";Vt=[];for(Ft in I[Be])this.terminals_[Ft]&&Ft>g1&&Vt.push("'"+this.terminals_[Ft]+"'");q.showPosition?Nt="Parse error on line "+(N+1)+`:
23
23
  `+q.showPosition()+`
24
- Expecting `+Vt.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":Nt="Parse error on line "+(N+1)+": Unexpected "+(ie==Zt?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(Nt,{text:q.match,token:this.terminals_[ie]||ie,line:q.yylineno,loc:yt,expected:Vt})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+ie);switch(ue[0]){case 1:S.push(ie),w.push(q.yytext),e.push(q.yylloc),S.push(ue[1]),ie=null,Jt=q.yyleng,t=q.yytext,N=q.yylineno,yt=q.yylloc;break;case 2:if(Ee=this.productions_[ue[1]][1],Je.$=w[w.length-Ee],Je._$={first_line:e[e.length-(Ee||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Ee||1)].first_column,last_column:e[e.length-1].last_column},b1&&(Je._$.range=[e[e.length-(Ee||1)].range[0],e[e.length-1].range[1]]),wt=this.performAction.apply(Je,[t,Jt,N,Le.yy,ue[1],w,e].concat(m1)),typeof wt<"u")return wt;Ee&&(S=S.slice(0,-1*Ee*2),w=w.slice(0,-1*Ee),e=e.slice(0,-1*Ee)),S.push(this.productions_[ue[1]][0]),w.push(Je.$),e.push(Je._$),e1=I[S[S.length-2]][S[S.length-1]],S.push(e1);break;case 3:return!0}}return!0},"parse")},f1=(function(){var Te={EOF:1,parseError:k(function(E,S){if(this.yy.parser)this.yy.parser.parseError(E,S);else throw new Error(E)},"parseError"),setInput:k(function(b,E){return this.yy=E||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:k(function(b){var E=b.length,S=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===o.length?this.yylloc.first_column:0)+o[o.length-S.length].length-S[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
24
+ Expecting `+Vt.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":Nt="Parse error on line "+(N+1)+": Unexpected "+(ie==Zt?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(Nt,{text:q.match,token:this.terminals_[ie]||ie,line:q.yylineno,loc:yt,expected:Vt})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+ie);switch(ue[0]){case 1:S.push(ie),w.push(q.yytext),e.push(q.yylloc),S.push(ue[1]),ie=null,Qt=q.yyleng,t=q.yytext,N=q.yylineno,yt=q.yylloc;break;case 2:if(Ee=this.productions_[ue[1]][1],Qe.$=w[w.length-Ee],Qe._$={first_line:e[e.length-(Ee||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Ee||1)].first_column,last_column:e[e.length-1].last_column},b1&&(Qe._$.range=[e[e.length-(Ee||1)].range[0],e[e.length-1].range[1]]),wt=this.performAction.apply(Qe,[t,Qt,N,Le.yy,ue[1],w,e].concat(m1)),typeof wt<"u")return wt;Ee&&(S=S.slice(0,-1*Ee*2),w=w.slice(0,-1*Ee),e=e.slice(0,-1*Ee)),S.push(this.productions_[ue[1]][0]),w.push(Qe.$),e.push(Qe._$),e1=I[S[S.length-2]][S[S.length-1]],S.push(e1);break;case 3:return!0}}return!0},"parse")},f1=(function(){var Te={EOF:1,parseError:k(function(E,S){if(this.yy.parser)this.yy.parser.parseError(E,S);else throw new Error(E)},"parseError"),setInput:k(function(b,E){return this.yy=E||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:k(function(b){var E=b.length,S=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===o.length?this.yylloc.first_column:0)+o[o.length-S.length].length-S[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
25
25
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(b){this.unput(this.match.slice(b))},"less"),pastInput:k(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
26
26
  `+E+"^"},"showPosition"),test_match:k(function(b,E){var S,o,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),o=b[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],S=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var e in w)this[e]=w[e];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,S,o;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),e=0;e<w.length;e++)if(S=this._input.match(this.rules[w[e]]),S&&(!E||S[0].length>E[0].length)){if(E=S,o=e,this.options.backtrack_lexer){if(b=this.test_match(S,w[e]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,w[o]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
27
27
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var E=this.next();return E||this.lex()},"lex"),begin:k(function(E){this.conditionStack.push(E)},"begin"),popState:k(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:k(function(E){this.begin(E)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(E,S,o,w){switch(o){case 0:return this.begin("acc_title"),38;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),40;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),S.yytext="",43;case 8:return this.pushState("shapeDataStr"),43;case 9:return this.popState(),43;case 10:const e=/\n\s*/g;return S.yytext=S.yytext.replace(e,"<br/>"),43;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:return E.lex.firstGraph()&&this.begin("dir"),13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;case 45:return this.popState(),15;case 46:return this.popState(),15;case 47:return this.popState(),15;case 48:return this.popState(),15;case 49:return this.popState(),15;case 50:return this.popState(),15;case 51:return this.popState(),15;case 52:return this.popState(),15;case 53:return this.popState(),15;case 54:return this.popState(),15;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;case 70:return this.pushState("edgeText"),78;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;case 77:return this.popState(),58;case 78:return this.pushState("text"),57;case 79:return this.popState(),60;case 80:return this.pushState("text"),59;case 81:return 61;case 82:return this.pushState("text"),70;case 83:return this.popState(),67;case 84:return this.pushState("text"),66;case 85:return this.popState(),52;case 86:return this.pushState("text"),51;case 87:break;case 88:return this.popState(),72;case 89:return this.popState(),74;case 90:return 120;case 91:return this.pushState("trapText"),71;case 92:return this.pushState("trapText"),73;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;case 106:return this.pushState("text"),65;case 107:return this.popState(),54;case 108:return this.pushState("text"),53;case 109:return this.popState(),32;case 110:return this.pushState("text"),30;case 111:return this.popState(),69;case 112:return this.pushState("text"),68;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return Te})();Bt.lexer=f1;function vt(){this.yy={}}return k(vt,"Parser"),vt.prototype=Bt,Bt.Parser=vt,new vt})();Ut.parser=Ut;var h1=Ut,p1=Object.assign({},h1);p1.parse=s=>{const i=s.replace(/}[^\S\n]*\n/g,`}
@@ -1 +1 @@
1
- import{d as O}from"./DgaiTQpw.js";function b(a,{from:t,to:r},p={}){var{delay:u=0,duration:n=i=>Math.sqrt(i)*120,easing:y=O}=p,s=getComputedStyle(a),d=s.transform==="none"?"":s.transform,[h,v]=s.transformOrigin.split(" ").map(parseFloat);h/=a.clientWidth,v/=a.clientHeight;var c=W(a),f=a.clientWidth/r.width/c,g=a.clientHeight/r.height/c,x=t.left+t.width*h,m=t.top+t.height*v,w=r.left+r.width*h,S=r.top+r.height*v,l=(x-w)*f,o=(m-S)*g,$=t.width/r.width,z=t.height/r.height;return{delay:u,duration:typeof n=="function"?n(Math.sqrt(l*l+o*o)):n,easing:y,css:(i,e)=>{var C=e*l,q=e*o,H=i+e*$,M=i+e*z;return`transform: ${d} translate(${C}px, ${q}px) scale(${H}, ${M});`}}}function W(a){if("currentCSSZoom"in a)return a.currentCSSZoom;for(var t=a,r=1;t!==null;)r*=+getComputedStyle(t).zoom,t=t.parentElement;return r}export{b as f};
1
+ import{d as O}from"./CjK2zm52.js";function b(a,{from:t,to:r},p={}){var{delay:u=0,duration:n=i=>Math.sqrt(i)*120,easing:y=O}=p,s=getComputedStyle(a),d=s.transform==="none"?"":s.transform,[h,v]=s.transformOrigin.split(" ").map(parseFloat);h/=a.clientWidth,v/=a.clientHeight;var c=W(a),f=a.clientWidth/r.width/c,g=a.clientHeight/r.height/c,x=t.left+t.width*h,m=t.top+t.height*v,w=r.left+r.width*h,S=r.top+r.height*v,l=(x-w)*f,o=(m-S)*g,$=t.width/r.width,z=t.height/r.height;return{delay:u,duration:typeof n=="function"?n(Math.sqrt(l*l+o*o)):n,easing:y,css:(i,e)=>{var C=e*l,q=e*o,H=i+e*$,M=i+e*z;return`transform: ${d} translate(${C}px, ${q}px) scale(${H}, ${M});`}}}function W(a){if("currentCSSZoom"in a)return a.currentCSSZoom;for(var t=a,r=1;t!==null;)r*=+getComputedStyle(t).zoom,t=t.parentElement;return r}export{b as f};
@@ -1 +1 @@
1
- import{t as V,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./Bv8Gaorn.js";import{bs as K,cd as lt,ca as j,c5 as ct,a5 as B,be as D,b$ as J,b_ as h,bO as _,W as l,bH as M,aD as e,bS as T,bA as C,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./3SdAC2_C.js";import{i as L}from"./BQg4hK6W.js";import{C as ut}from"./DTutiDCZ.js";import{f as U}from"./BO3WriTy.js";import"./CSbK1_CV.js";import{k as bt}from"./CM4xaytB.js";import{Jr as P,dB as vt,dz as kt,dC as _t}from"./NgEAPl8f.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return V({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());j(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));j(()=>{if(!s())return;const t=s();return ct(()=>{P.dispatch(vt(t)),P.dispatch(kt(t))}),()=>P.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:F,$on:(t,r)=>G(c,t,r)},z=It(),A=B(z),W=B(A);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(W,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"script"),children:(p,y)=>{D();var i=J();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=T(W,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"logs"),children:(p,y)=>{D();var i=J();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}C(A);var Z=T(A,2);{var tt=t=>{var r=mt(),p=B(r);{var y=a=>{var m=gt(),o=S(m,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};L(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}C(r),l(t,r)},et=t=>{var r=wt(),p=B(r);{var y=o=>{var n=ft(),f=pt(n),O=S(f,!0),at=T(f,2),ot=S(at,!0);h(st=>{_(O,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};L(p,o=>{e(v)?.lastError&&o(y)})}var i=T(p,2);{var a=o=>{var n=ht(),f=S(n,!0);h(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=xt(),f=S(n,!0);h(O=>_(f,O),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};L(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}C(r),l(t,r)};L(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}C(z),l(x,z);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return V({component:yt,...x});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:F,$on:(d,$)=>G(c,d,$)},s=$t(),I=B(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return C(s),l(x,s),N(E)}export{yt as default};
1
+ import{t as V,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./1KDVFF23.js";import{bs as K,cd as lt,ca as j,c5 as ct,a5 as B,be as D,b$ as J,b_ as h,bO as _,W as l,bH as M,aD as e,bS as T,bA as C,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./3SdAC2_C.js";import{i as L}from"./Zg9SWWIQ.js";import{C as ut}from"./DzTe1W0Z.js";import{f as U}from"./DPbnmxjX.js";import"./BpT_ybtH.js";import{k as bt}from"./B6Zf-ZTX.js";import{Jr as P,dB as vt,dz as kt,dC as _t}from"./BPo1GPk4.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return V({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());j(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));j(()=>{if(!s())return;const t=s();return ct(()=>{P.dispatch(vt(t)),P.dispatch(kt(t))}),()=>P.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:F,$on:(t,r)=>G(c,t,r)},z=It(),A=B(z),W=B(A);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(W,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"script"),children:(p,y)=>{D();var i=J();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=T(W,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"logs"),children:(p,y)=>{D();var i=J();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}C(A);var Z=T(A,2);{var tt=t=>{var r=mt(),p=B(r);{var y=a=>{var m=gt(),o=S(m,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};L(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}C(r),l(t,r)},et=t=>{var r=wt(),p=B(r);{var y=o=>{var n=ft(),f=pt(n),O=S(f,!0),at=T(f,2),ot=S(at,!0);h(st=>{_(O,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};L(p,o=>{e(v)?.lastError&&o(y)})}var i=T(p,2);{var a=o=>{var n=ht(),f=S(n,!0);h(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=xt(),f=S(n,!0);h(O=>_(f,O),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};L(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}C(r),l(t,r)};L(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}C(z),l(x,z);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return V({component:yt,...x});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:F,$on:(d,$)=>G(c,d,$)},s=$t(),I=B(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return C(s),l(x,s),N(E)}export{yt as default};
@@ -1 +1 @@
1
- import{Jr as r,nW as p,nX as i,mz as s,P as S}from"./NgEAPl8f.js";import{bm as o}from"./Bv8Gaorn.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),W=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),b=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),A=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),P=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:P,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:A,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:W,selectWorkspaceTerminalState:b},Symbol.toStringTag,{value:"Module"}));export{P as a,I as b,f as c,E as d,_ as e,N as f,W as g,b as h,M as i,T as l,y as s,d as t};
1
+ import{Jr as r,nW as p,nX as i,mz as s,P as S}from"./BPo1GPk4.js";import{bm as o}from"./1KDVFF23.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),W=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),b=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),A=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),P=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:P,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:A,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:W,selectWorkspaceTerminalState:b},Symbol.toStringTag,{value:"Module"}));export{P as a,I as b,f as c,E as d,_ as e,N as f,W as g,b as h,M as i,T as l,y as s,d as t};
@@ -1 +1 @@
1
- import{ao as s}from"./3SdAC2_C.js";import{d as r}from"./1Wzdy1K8.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
1
+ import{ao as s}from"./3SdAC2_C.js";import{d as r}from"./YopO0YfH.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
@@ -1 +1 @@
1
- import{C as M}from"./B5aYN90J.js";import{a as v}from"./BdWqymET.js";import{f as D}from"./Dr4PDf9D.js";import{Jr as o,En as E,DK as _,m as A,vo as O,u_ as C,ga as H,D0 as L,Di as P,Fn as R,D4 as x}from"./NgEAPl8f.js";import{ba as p}from"./CpV-ehZ5.js";import{d as F}from"./B0Z-1lwJ.js";import{n as B}from"./Byjmi-8z.js";import{o as W,e as q}from"./YfYAjqUM.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],K=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function Y(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function $(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&Y(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function I(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await D.agents.getConversation(e,K,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(E(n)),o.dispatch(_(A,n)),o.dispatch(O("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await B(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(C(s,{agentId:n}));const f=await $(n,a,t);f&&T(n,a);const i=f||await I(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||F("chat:open-message",b)},w)}export{ee as openMessage,I as seekConversationToMessage};
1
+ import{C as M}from"./B5aYN90J.js";import{a as v}from"./BdWqymET.js";import{f as D}from"./Q-Hp56ht.js";import{Jr as o,En as E,DK as _,m as A,vo as O,u_ as C,ga as H,D0 as L,Di as P,Fn as R,D4 as x}from"./BPo1GPk4.js";import{ba as p}from"./DkYquFOp.js";import{d as F}from"./B0Z-1lwJ.js";import{n as B}from"./D7u67tV0.js";import{o as W,e as q}from"./B77YOXDU.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],K=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function Y(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function $(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&Y(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function I(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await D.agents.getConversation(e,K,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(E(n)),o.dispatch(_(A,n)),o.dispatch(O("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await B(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(C(s,{agentId:n}));const f=await $(n,a,t);f&&T(n,a);const i=f||await I(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||F("chat:open-message",b)},w)}export{ee as openMessage,I as seekConversationToMessage};
@@ -1 +1 @@
1
- import{g as l,r as m,d as n}from"./DODG7FHv.js";import{p}from"./SMT1sep4.js";import{b as t,ay as o}from"./ChGLvrw4.js";import{M as u,a as f}from"./3rxHCGTW.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
1
+ import{g as l,r as m,d as n}from"./6NqQpMgA.js";import{p}from"./BdNdGDSe.js";import{b as t,ay as o}from"./kZL4nf_J.js";import{M as u,a as f}from"./DcZr-m_l.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
@@ -1 +1 @@
1
- import{g as o,r as l,d as t}from"./DODG7FHv.js";import{p as m}from"./SMT1sep4.js";import{b as n,ay as s}from"./ChGLvrw4.js";import{M as p,d as u}from"./3rxHCGTW.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
1
+ import{g as o,r as l,d as t}from"./6NqQpMgA.js";import{p as m}from"./BdNdGDSe.js";import{b as n,ay as s}from"./kZL4nf_J.js";import{M as p,d as u}from"./DcZr-m_l.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
@@ -1,4 +1,4 @@
1
- import{t as Ke,bo as k,bm as Ce,bw as Ve,b as Je,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Sr,h as Cr,k as Nr}from"./Bv8Gaorn.js";import{bs as Ue,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./3SdAC2_C.js";import{nY as Rr,Jr as ct,n3 as Tt,em as Mr,eJ as Pr,eK as Lr}from"./NgEAPl8f.js";import{i as H}from"./BQg4hK6W.js";import{n as We,j as Oe,h as at}from"./DgaiTQpw.js";import{dH as Ir,bt as Ar}from"./CpV-ehZ5.js";import{a9 as jt}from"./dqvdjjXR.js";import{I as it,g as Ge,i as Lt}from"./D1JjMDax.js";import{f as xe}from"./BO3WriTy.js";import"./CSbK1_CV.js";import{f as He,s as Er}from"./D85P44Dj.js";import"./DZBnfhEV.js";import{F as fe,a2 as Hr,cR as zr,aw as ot,ax as pt,c2 as Wr,aV as Dr,bN as Tr,bH as jr,b9 as Fr,cW as Br,cn as Gr,b6 as St,c$ as Rt,cr as _t,bo as Or,cF as Kr,au as Vr}from"./CiD4x8Gl.js";import{i as Jr}from"./DQiheiDa.js";import{h as Ft}from"./BKD7o1lQ.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Jt}from"./DCTwUEO7.js";import"./DoIr8Q2r.js";import{q as Ur}from"./C44hzh9R.js";import{M as Mt}from"./B5CW3gDe.js";import{B as qr}from"./C58p8xFm.js";import{S as Ct}from"./C6GJZLOP.js";const Yr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Qr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bo as k,bm as Ce,bw as Ve,b as Je,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Sr,h as Cr,k as Nr}from"./1KDVFF23.js";import{bs as Ue,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./3SdAC2_C.js";import{nY as Rr,Jr as ct,n3 as Tt,em as Mr,eJ as Pr,eK as Lr}from"./BPo1GPk4.js";import{i as H}from"./Zg9SWWIQ.js";import{n as We,j as Oe,h as at}from"./CjK2zm52.js";import{dH as Ir,bt as Ar}from"./DkYquFOp.js";import{a9 as jt}from"./BWIYTJ4a.js";import{I as it,g as Ge,i as Lt}from"./CYCawVEx.js";import{f as xe}from"./DPbnmxjX.js";import"./BpT_ybtH.js";import{f as He,s as Er}from"./D8B7qxXm.js";import"./Dmy603At.js";import{F as fe,a2 as Hr,cR as zr,aw as ot,ax as pt,c2 as Wr,aV as Dr,bN as Tr,bH as jr,b9 as Fr,cW as Br,cn as Gr,b6 as St,c$ as Rt,cr as _t,bo as Or,cF as Kr,au as Vr}from"./BZytk_HL.js";import{i as Jr}from"./6HwVA3Xi.js";import{h as Ft}from"./BKD7o1lQ.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Jt}from"./xJBWkpxc.js";import"./Ch-pFfsN.js";import{q as Ur}from"./CntPxeXh.js";import{M as Mt}from"./D6W9Whdp.js";import{B as qr}from"./CWFWI1JB.js";import{S as Ct}from"./DHbv9I-C.js";const Yr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Qr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const T=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),U=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:U,oldLines:K,newStart:pe,newLines:q,lines:[]},r.push(m),b=U,u=pe};for(const P of d){if(P.startsWith("@@")){T(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):Yr.some(U=>U.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Xr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Ut($,r){if(new.target)return Ke({component:Ut,...$});Ue(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),T=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),U=we(null);Ze(()=>{e(U)&&e(U).focus()});function K(){!e(h).trim()||T()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return T()},set isSending(I=!1){T(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ve,$on:(I,he)=>Je(r,I,he)},w=Xr(),z=be(w),de=o(z);{let I=_(()=>Ce.codeReview_inlineComment_askLine_placeholder());Jt(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return T()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(U)},set ref(he){L(U,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||T());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),S=be(_e);{var E=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};H(S,me=>{T()?me(E):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>C(Ne,_e),[()=>Ce.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(z);var te=n(z,2),ke=O(te,!0);return M(I=>{He(z,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),C(ke,I)},[()=>Ce.codeReview_inlineComment_inputHint_label()]),i($,w),qe(q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Ue(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),T=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),U=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),q=we(""),w=we(!1),z=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(q).trim()||h()||(T()?.(e(q).trim(),m(),b()),L(q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(q)?L(q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Fr;case"context":return jr;case"explanation":default:return Tr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Ur(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return T()},set onSendMessage(a){T(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return U()},set isAgentResponding(a=!1){U(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ve,$on:(a,D)=>Je(r,a,D)},_e=ln(),S=o(_e),E=o(S),Ie=o(E);{let a=_(()=>te(d().type)),D=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(D)??""}`}})}s(E);var me=n(E,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var X=a=>{var D=Zr(),Z=O(D,!0);M(ee=>C(Z,ee),[()=>I(K())]),i(a,D)};H(A,a=>{K()&&a(X)})}s(me);var ie=n(me,2);{var $e=a=>{{let D=_(()=>Ce.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(D)},children:(Z,ee)=>{fe(Z,{get icon(){return zr}})},$$slots:{default:!0}})}};H(ie,a=>{P()&&a($e)})}s(S);var Se=n(S,2);{var ye=a=>{var D=nn(),Z=o(D);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(z,!e(z)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(Y,se)=>{var Q=en(),c=be(Q),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(z)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>C(p,ue),[()=>Ce.codeReview_commentThread_suggestedChanges_label()]),i(Y,Q)},$$slots:{default:!0}});var ee=n(Z,2);{var re=Y=>{var se=rn();Ge(se,21,u,Q=>Q.id,(Q,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Br:Gr),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>He(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),We(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Q,p)}),s(se),We(3,se,()=>Oe,()=>({tier:"moderate"})),i(Y,se)};H(ee,Y=>{e(z)&&Y(re)})}s(D),i(a,D)};H(Se,a=>{e(he)&&a(ye)})}var V=n(Se,2);{var j=a=>{var D=an(),Z=o(D);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(D),M(Y=>C(re,Y),[()=>Ce.codeReview_commentThread_agentResponding_label()]),i(a,D)};H(V,a=>{U()&&a(j)})}var f=n(V,2),W=o(f);{var F=a=>{var D=sn(),Z=be(D),ee=o(Z);{let c=_(()=>Ce.codeReview_commentThread_followUp_placeholder());Jt(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(q)},set value(p){L(q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Wr},class:"h-3 w-3"})};H(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var Y=n(re,2);xe(Y,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>C(B,ue),[()=>Ce.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),Q=O(se,!0);M(c=>C(Q,c),[()=>Ce.codeReview_commentThread_inputHint_label()]),We(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,D)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(D,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Dr},class:"h-3 w-3"});var Y=n(re,2),se=O(Y,!0);M(Q=>C(se,Q),[()=>Ce.codeReview_commentThread_askQuestion_label()]),i(D,ee)},$$slots:{default:!0}})};H(W,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>He(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),We(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Ue(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),T=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),U=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),q=k(r,"class",7,"");const w=_(()=>Qr(m())),z=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(z)||e(z)==="text"||e(z)==="plaintext"||!Bt.getLanguage(e(z))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",J=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:J})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),J=Bt.highlight(N,{language:e(z)}).value.split(`
4
4
  `);g.forEach((ne,oe)=>{oe<J.length&&t.set(ne.key,J[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let J=Math.max(0,l-T());J<=Math.min(G.lines.length-1,l+T());J++){const ne=G.lines[J];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const J of e(ae)){const[ne,oe,ve]=J.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const J=Ne(t,G,l.lines[G]);!J&&N===null?N=G:J&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function S(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function E(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];S(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function X(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Se(t){L(te,t,!0)}function ye(){L(te,null)}function V(t,l,g){P()?.(t,l,g),L(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),W=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const J=N.lines[G];(J.type==="addition"||J.type==="deletion")&&l.push({line:J,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function D(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(D(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return T()},set contextLines(t=3){T(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return U()},set additions(t=0){U(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return q()},set class(t=""){q(t),y()},$set:Ve,$on:(t,l)=>Je(r,t,l)},re=wn(),Y=o(re),se=o(Y);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),J=o(G),ne=O(J,!0),oe=n(J,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var De=Le=>{var Ee=dn(),Fe=O(Ee);M(()=>C(Fe,`+${U()+K()}`)),i(Le,Ee)};H(Ae,Le=>{(U()>0||K()>0)&&Le(De)})}s(Me),M((Le,Ee)=>{C(ne,Le),C(ve,Ee)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Q=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>C(N,pe())),i(t,l)};H(Q,t=>{pe()&&t(c)})}s(Y);var p=n(Y,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),De=o(Ae),Le=O(De,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),Te=n(Ee,2),ge=o(Te);Ft(ge,()=>me(ve()),!0),s(ge),s(Te),s(Me),M((Ye,Qe,Xe,tt)=>{He(Me,1,`flex ${Ye??""}`),He(Ae,1,`w-12 shrink-0 flex select-none ${Qe??""} border-r border-border`),C(Le,ve().newNum??ve().oldNum??""),He(Ee,1,`w-5 shrink-0 text-center select-none ${Xe??""}`),C(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>X(ve())]),i(ne,Me)});var G=n(N,2);{var J=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>C(Me,Ae),[()=>Ce.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};H(G,ne=>{e(le)>e(F).length&&ne(J)})}s(g),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};H(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:E,children:(De,Le)=>{st();var Ee=et();M(Fe=>C(Ee,Fe),[()=>Ce.codeReview_fileDiff_expandAll_label()]),i(De,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=De=>{var Le=fn(),Ee=n(be(Le),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,Te)=>{st();var ge=et();M(Ye=>C(ge,Ye),[()=>Ce.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(De,Le)};H(Me,De=>{e(ae).size>0&&De(Ae)})}s(oe),i(ne,oe)};H(g,ne=>{e(W)&&ne(N)})}var G=n(g,2),J=o(G);Ge(J,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(Te=>Te.startIndex===0));var De=xn(),Le=be(De);{var Ee=Te=>{xe(Te,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>S(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,Ye)=>{var Qe=Gt(),Xe=be(Qe);fe(Xe,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Xe,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>C(xt,ut),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Qe)},$$slots:{default:!0}})};H(Le,Te=>{e(Ae)&&Te(Ee)})}var Fe=n(Le,2);Ge(Fe,19,()=>e(oe).lines,(Te,ge)=>`${ve}-${ge}`,(Te,ge,Ye)=>{const Qe=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Xe=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Qe)),xt=_(()=>Ne(ve,e(Ye),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(Ye)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),Ht=n(bt,2),wt=o(Ht),zt=o(wt);Ft(zt,()=>me(e(ge)),!0),s(zt),s(wt);var or=n(wt,2);{var ir=Pe=>{{let ze=_(()=>Ce.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Se(e(Qe)),get title(){return e(ze)},children:(je,Be)=>{fe(je,{get icon(){return St}})},$$slots:{default:!0}})}};H(or,Pe=>{P()&&Pe(ir)})}s(Ht),s(vt);var Wt=n(vt,2);Ge(Wt,19,()=>e(Xe),(Pe,ze)=>`${Pe.line}-${ze}`,(Pe,ze)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(ze)));qt(Be,{get annotation(){return e(ze)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>V(kt,yt,$t),get isSending(){return h()}})}s(je),We(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Dt=n(Wt,2);{var lr=Pe=>{var ze=pn(),je=o(ze),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Ut(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:V,onClose:ye,get isSending(){return h()}})}s(je),s(ze),i(Pe,ze)};H(Dt,Pe=>{e(tt)&&e(Xe).length===0&&Pe(lr)})}var dr=n(Dt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>S(ve,e(rt).startIndex,e(rt).endIndex),children:(ze,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return St},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return St},class:"h-2.5 w-2.5"}),M($t=>C(kt,$t),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(ze,Be)},$$slots:{default:!0}})};H(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,ze,je,Be)=>{He(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),He(gt,1,`w-20 shrink-0 flex select-none ${ze??""} border-r border-border`),C(rr,e(ge).oldNum??""),C(ar,e(ge).newNum??""),He(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),C(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>X(e(ge))]),i(lt,At)};H(er,lt=>{e(xt)&&lt(tr)})}i(Te,ut)}),i(ne,De)}),s(J),s(G),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};H(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>He(re,1,`walkthrough-file-diff overflow-hidden bg-card ${q()??""}`)),i($,re),qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Ue(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const z=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return z[w%z.length]}function T(w){const z=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return z[w%z.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ve,$on:(w,z)=>Je(r,w,z)},h=yn(),U=o(h),K=o(U),pe=O(K,!0);s(U);var q=n(U,2);return Ge(q,21,d,Lt,(w,z,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),S=O(_e,!0),E=n(_e,2),Ie=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,X)=>{He(he,0,`h-5 w-5 ${A??""}`),C(S,e(z).title),C(Ie,e(z).description),C(R,X)},[()=>T(de),()=>e(z).files.length===1?Ce.codeReview_categoriesGrid_fileCount_one({count:e(z).files.length}):Ce.codeReview_categoriesGrid_fileCount_many({count:e(z).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(q),s(h),M(w=>{He(h,1,`walkthrough-categories-grid ${b()??""}`),C(pe,w)},[()=>Ce.codeReview_categoriesGrid_whatChanged_title()]),i($,h),qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Sn=x('<p class="text-sm text-subtle mt-2"> </p>'),Cn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Ue(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),T=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function U(S){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[S%E.length]}const K=_(()=>d().files.map(S=>{const E=b().get(S.path);return{...S,patch:E?.patch,additions:E?.additions??0,deletions:E?.deletions??0}}));var pe={get category(){return d()},set category(S){d(S),y()},get categoryIndex(){return m()},set categoryIndex(S){m(S),y()},get filePatchMap(){return b()},set filePatchMap(S){b(S),y()},get isLast(){return u()},set isLast(S=!1){u(S),y()},get onSendMessage(){return T()},set onSendMessage(S){T(S),y()},get isSending(){return P()},set isSending(S=!1){P(S),y()},get class(){return h()},set class(S=""){h(S),y()},$set:Ve,$on:(S,E)=>Je(r,S,E)},q=Rn(),w=o(q),z=o(w),de=o(z),ce=n(de,2);{var ae=S=>{var E=$n();i(S,E)};H(ce,S=>{(!u()||e(K).length>0)&&S(ae)})}s(z);var te=n(z,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(S,E)=>`${m()}-${E}`,(S,E,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),X=o(A);{var ie=Se=>{It(Se,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return T()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Se=>{var ye=Cn(),V=o(ye),j=n(o(V),2),f=O(j,!0);s(V);var W=n(V,2);{var F=le=>{var a=Sn(),D=O(a,!0);M(()=>C(D,e(E).summary)),i(le,a)};H(W,le=>{e(E).summary&&le(F)})}s(ye),M(()=>C(f,e(E).path)),i(Se,ye)};H(X,Se=>{e(E).patch?Se(ie):Se($e,-1)})}s(A),s(me),M(()=>He(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(S,me)}),s(_e),s(q),M(S=>{He(q,1,`walkthrough-category-section ${h()??""}`),Er(q,"id",`category-${m()??""}`),He(de,1,`w-3 h-3 rounded-full ${S??""} ring-4 ring-background shrink-0`),C(I,d().title),C(Ne,d().description)},[()=>U(m())]),i($,q),qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),En=x('<div class="space-y-8 pt-4"></div>'),Hn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),zn=x('<div class="space-y-3 pt-2"></div>'),Wn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Dn=x('<div class="flex justify-end pt-2"><!></div>'),Tn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Ue(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),T=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),U=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const q=_(()=>m()==="running"),w=_(()=>m()==="complete"),z=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((X,ie)=>X.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((X,ie)=>X.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Ze(()=>{if(!d()||!T())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const X=Ne(R,A.oldContent,A.newContent);if(X){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:X,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const X=R.split(`