@intent-hq/web 2.345.1 → 2.346.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{0.BtTQsuHZ.css → 0.C6uvaa87.css} +1 -1
  3. package/web/app/immutable/chunks/-UJlOg-6.js +1 -0
  4. package/web/app/immutable/chunks/-Wo302Zr.js +9 -0
  5. package/web/app/immutable/chunks/0qEvU7Aj.js +8 -0
  6. package/web/app/immutable/chunks/1_fC7X8z.js +1 -0
  7. package/web/app/immutable/chunks/2V4-p70U.js +408 -0
  8. package/web/app/immutable/chunks/{D3mUsAm9.js → 3DAIKGff.js} +1 -1
  9. package/web/app/immutable/chunks/{elYeRxWm.js → 3as4gwP9.js} +7 -7
  10. package/web/app/immutable/chunks/{BqRoJfH0.js → 3h5ZjEwa.js} +1 -1
  11. package/web/app/immutable/chunks/{Dz4sFk1c.js → 4sUGQp1u.js} +1 -1
  12. package/web/app/immutable/chunks/{AzoskYOh.js → 5Ixgq0WC.js} +1 -1
  13. package/web/app/immutable/chunks/{CgQ2Q_uI.js → 71L4lHBq.js} +1 -1
  14. package/web/app/immutable/chunks/7eL9Pgig.js +1 -0
  15. package/web/app/immutable/chunks/{CWE4oREl.js → 9XVQ1GVX.js} +1 -1
  16. package/web/app/immutable/chunks/{C8dU7SM3.js → A8_BT67P.js} +1 -1
  17. package/web/app/immutable/chunks/ACNn9MHT.js +2 -0
  18. package/web/app/immutable/chunks/{Cv_J2c72.js → B-7vt8Nv.js} +1 -1
  19. package/web/app/immutable/chunks/B0-4rCYZ.js +2 -0
  20. package/web/app/immutable/chunks/{CD-XXU5z.js → B0WVH3Hg.js} +1 -1
  21. package/web/app/immutable/chunks/B0mNIdOb.js +1 -0
  22. package/web/app/immutable/chunks/{CWQrbZgx.js → B1HPKTBI.js} +1 -1
  23. package/web/app/immutable/chunks/{s_GzTTEG.js → B1U_DCBw.js} +1 -1
  24. package/web/app/immutable/chunks/{HKs3jfWW.js → B3D9gAmi.js} +1 -1
  25. package/web/app/immutable/chunks/{C-M7eh_Z.js → B4XZNQ4a.js} +1 -1
  26. package/web/app/immutable/chunks/{BqqN40AD.js → B4gIvcP2.js} +1 -1
  27. package/web/app/immutable/chunks/{C4dCVzfY.js → B55-cQLT.js} +1 -1
  28. package/web/app/immutable/chunks/B5HeJKYE.js +1 -0
  29. package/web/app/immutable/chunks/{BiRT6AoP.js → B79pUPc3.js} +9 -9
  30. package/web/app/immutable/chunks/{34C5M9lk.js → B7dTLx8u.js} +1 -1
  31. package/web/app/immutable/chunks/B83M2_sj.js +1 -0
  32. package/web/app/immutable/chunks/BAGVOK-j.js +4 -0
  33. package/web/app/immutable/chunks/{DXDMhDlS.js → BBlTlRXR.js} +1 -1
  34. package/web/app/immutable/chunks/{CpHZSST_.js → BDDEv5gU.js} +1 -1
  35. package/web/app/immutable/chunks/BDPAYMJ1.js +4 -0
  36. package/web/app/immutable/chunks/BDPqCRJm.js +2 -0
  37. package/web/app/immutable/chunks/{CoXBdOLx.js → BDZoh7yg.js} +1 -1
  38. package/web/app/immutable/chunks/{oilydQC6.js → BDtb6AfX.js} +1 -1
  39. package/web/app/immutable/chunks/{LeKgig9P.js → BDzYiKUH.js} +3 -3
  40. package/web/app/immutable/chunks/{DeBWJfUF.js → BJZ04Dji.js} +1 -1
  41. package/web/app/immutable/chunks/{A34-FDia.js → BK2lpqz4.js} +1 -1
  42. package/web/app/immutable/chunks/{DOo17E8X.js → BK64B_Ic.js} +7 -7
  43. package/web/app/immutable/chunks/{8XhHIJcn.js → BKw5KoGy.js} +1 -1
  44. package/web/app/immutable/chunks/{PqUcZw1l.js → BLaIjbEF.js} +1 -1
  45. package/web/app/immutable/chunks/{CMxRuwYt.js → BLl22NdQ.js} +1 -1
  46. package/web/app/immutable/chunks/{DTXLkH8c.js → BM7oCSp5.js} +1 -1
  47. package/web/app/immutable/chunks/{C8BVjzNA.js → BMKkyPLo.js} +1 -1
  48. package/web/app/immutable/chunks/BO8NImWp.js +1 -0
  49. package/web/app/immutable/chunks/BOxkenyY.js +1 -0
  50. package/web/app/immutable/chunks/{CW_fORnH.js → BOyF7pe9.js} +1 -1
  51. package/web/app/immutable/chunks/BQ5F0iVp.js +1 -0
  52. package/web/app/immutable/chunks/BQbcEQz0.js +1 -0
  53. package/web/app/immutable/chunks/{WQwO_6NF.js → BTNEDHav.js} +1 -1
  54. package/web/app/immutable/chunks/{RL06_5hJ.js → BVURea8L.js} +1 -1
  55. package/web/app/immutable/chunks/{hTzIX9qo.js → BW9EApvt.js} +10 -10
  56. package/web/app/immutable/chunks/BWAGtvpD.js +1 -0
  57. package/web/app/immutable/chunks/BWTugGQ8.js +1 -0
  58. package/web/app/immutable/chunks/{D_2_kcuU.js → BWZmCaEW.js} +1 -1
  59. package/web/app/immutable/chunks/{Dt_vOHph.js → BY3nRRgO.js} +3 -3
  60. package/web/app/immutable/chunks/{Ch8P3vqn.js → BYDvuR-h.js} +1 -1
  61. package/web/app/immutable/chunks/{CaGwo1Kh.js → BZYeogxf.js} +1 -1
  62. package/web/app/immutable/chunks/{RvvsGyv8.js → Ba1C4iSG.js} +1 -1
  63. package/web/app/immutable/chunks/{DSf8k2cE.js → BaYeKXL3.js} +1 -1
  64. package/web/app/immutable/chunks/{BZLRqiW7.js → BaYzTmbw.js} +1 -1
  65. package/web/app/immutable/chunks/Bbkml6DP.js +1 -0
  66. package/web/app/immutable/chunks/{9HNwwiNt.js → BcbQZUsh.js} +1 -1
  67. package/web/app/immutable/chunks/BcgSXbtK.js +1 -0
  68. package/web/app/immutable/chunks/{Z9xsSWyS.js → BeJ5WWx4.js} +22 -22
  69. package/web/app/immutable/chunks/{A0r9TbR7.js → BfbZn9QX.js} +1 -1
  70. package/web/app/immutable/chunks/BgKhYgm8.js +1 -0
  71. package/web/app/immutable/chunks/Bgi2L8Br.js +1 -0
  72. package/web/app/immutable/chunks/Bgw3O9rE.js +1 -0
  73. package/web/app/immutable/chunks/Big_dnEI.js +1 -0
  74. package/web/app/immutable/chunks/{CwqpuMd6.js → BjURBDIt.js} +5 -5
  75. package/web/app/immutable/chunks/{CvGYkRzD.js → BlEwAz4v.js} +1 -1
  76. package/web/app/immutable/chunks/{CCwwkuT-.js → BmEcZoA2.js} +1 -1
  77. package/web/app/immutable/chunks/{Duypuh1W.js → BnkmaA34.js} +1 -1
  78. package/web/app/immutable/chunks/BpYNQf9o.js +1 -0
  79. package/web/app/immutable/chunks/{m3ndyWcI.js → BqBqZaGQ.js} +1 -1
  80. package/web/app/immutable/chunks/{DOca_73f.js → BqyYlCY3.js} +1 -1
  81. package/web/app/immutable/chunks/BrIsEZwT.js +1 -0
  82. package/web/app/immutable/chunks/Brqq8vhd.js +6 -0
  83. package/web/app/immutable/chunks/{D6qSHwEu.js → Bxnf75xq.js} +1 -1
  84. package/web/app/immutable/chunks/ByLCbaqp.js +1 -0
  85. package/web/app/immutable/chunks/{DLQToZFF.js → C-OtpXcF.js} +1 -1
  86. package/web/app/immutable/chunks/{BZr7mr7Q.js → C1CDOGnh.js} +2 -2
  87. package/web/app/immutable/chunks/C1osWUn_.js +1 -0
  88. package/web/app/immutable/chunks/{BI7MYBTt.js → C33Dw59E.js} +1 -1
  89. package/web/app/immutable/chunks/{BMm9sGZ6.js → C3NeTp2u.js} +1 -1
  90. package/web/app/immutable/chunks/{DdSX2jjJ.js → C3VPe7p1.js} +1 -1
  91. package/web/app/immutable/chunks/{BYMNRS4c.js → C3oF1SK5.js} +1 -1
  92. package/web/app/immutable/chunks/{CW13jkE8.js → C4HHXGmJ.js} +1 -1
  93. package/web/app/immutable/chunks/{ByCIOkhM.js → C59or46M.js} +1 -1
  94. package/web/app/immutable/chunks/{CL2hu5s-.js → C5SissXF.js} +1 -1
  95. package/web/app/immutable/chunks/{Cr_Liz2C.js → C8XrM-qb.js} +1 -1
  96. package/web/app/immutable/chunks/CA6TS0WC.js +1 -0
  97. package/web/app/immutable/chunks/CAUaU8Wh.js +1 -0
  98. package/web/app/immutable/chunks/CAdgzoaK.js +1 -0
  99. package/web/app/immutable/chunks/{DHNidPtN.js → CCm1BgPl.js} +1 -1
  100. package/web/app/immutable/chunks/CDbQwqu1.js +1 -0
  101. package/web/app/immutable/chunks/CEsW1euQ.js +1 -0
  102. package/web/app/immutable/chunks/{CcPTLJNE.js → CFs6uWH2.js} +1 -1
  103. package/web/app/immutable/chunks/{D6YDmdhV.js → CGcQAX9W.js} +1 -1
  104. package/web/app/immutable/chunks/{CVYjvOCP.js → CHfmHJ17.js} +1 -1
  105. package/web/app/immutable/chunks/{DuLyqtXH.js → CJ_dtcmM.js} +1 -1
  106. package/web/app/immutable/chunks/{CxdrVCtW.js → CNT1n9YR.js} +1 -1
  107. package/web/app/immutable/chunks/CP8WYBBE.js +1 -0
  108. package/web/app/immutable/chunks/{BzbcgIXt.js → CQB76zlc.js} +1 -1
  109. package/web/app/immutable/chunks/{DpMTpLDQ.js → CQbtnalz.js} +1 -1
  110. package/web/app/immutable/chunks/{CWmsRWEf.js → CQyjMIYw.js} +1 -1
  111. package/web/app/immutable/chunks/CSQXURhP.js +1 -0
  112. package/web/app/immutable/chunks/{DnpnDt-B.js → CSg3z6A2.js} +1 -1
  113. package/web/app/immutable/chunks/{BMaybjSV.js → CVa6MqnK.js} +1 -1
  114. package/web/app/immutable/chunks/{BzzDMYz_.js → CXVUfxHv.js} +5 -5
  115. package/web/app/immutable/chunks/{ClTbUKJh.js → CXpFRnSj.js} +1 -1
  116. package/web/app/immutable/chunks/C_EpV6jU.js +2 -0
  117. package/web/app/immutable/chunks/Cb0zVN4i.js +1 -0
  118. package/web/app/immutable/chunks/{BP7CI4Qx.js → CbZEAbX5.js} +1 -1
  119. package/web/app/immutable/chunks/{BqQiAH0O.js → CcaAQlGA.js} +1 -1
  120. package/web/app/immutable/chunks/CgLoJgPR.js +1 -0
  121. package/web/app/immutable/chunks/{_6kx8oz-.js → CguBowm8.js} +1 -1
  122. package/web/app/immutable/chunks/{dEUeoghd.js → ChNPgGKQ.js} +1 -1
  123. package/web/app/immutable/chunks/{B203wRvP.js → Chpqmkx4.js} +1 -1
  124. package/web/app/immutable/chunks/{DbK3CxeL.js → CiIELmgj.js} +1 -1
  125. package/web/app/immutable/chunks/CiKocWhX.js +1 -0
  126. package/web/app/immutable/chunks/{BIoLrYT0.js → CjbCpI18.js} +1 -1
  127. package/web/app/immutable/chunks/{hY1hM8g2.js → Ckp5dOHW.js} +1 -1
  128. package/web/app/immutable/chunks/{D_uYvQAH.js → ClMg3ew2.js} +1 -1
  129. package/web/app/immutable/chunks/{A8JjhnEv.js → Clhk_Z-l.js} +1 -1
  130. package/web/app/immutable/chunks/{DxMV_lzZ.js → CmoBwSCp.js} +1 -1
  131. package/web/app/immutable/chunks/{B5tGFpkq.js → CpHzYkzi.js} +1 -1
  132. package/web/app/immutable/chunks/{p3fN-Vr3.js → Cq2aackv.js} +1 -1
  133. package/web/app/immutable/chunks/Cq8oeEXe.js +1 -0
  134. package/web/app/immutable/chunks/CrHk5l6X.js +1 -0
  135. package/web/app/immutable/chunks/{BxuxDWAX.js → CrjpdU4V.js} +1 -1
  136. package/web/app/immutable/chunks/CswFIiBb.js +1 -0
  137. package/web/app/immutable/chunks/{BLR6m4ri.js → CtDj7gZD.js} +1 -1
  138. package/web/app/immutable/chunks/{7Zs8wY6y.js → CvGEpOsC.js} +1 -1
  139. package/web/app/immutable/chunks/CvHwMug-.js +2 -0
  140. package/web/app/immutable/chunks/{CaxyE6o_.js → Cx31i8ng.js} +1 -1
  141. package/web/app/immutable/chunks/CzcD2H5U.js +2 -0
  142. package/web/app/immutable/chunks/CzdMU9Bu.js +2 -0
  143. package/web/app/immutable/chunks/{CKzqOQI8.js → D-TVq_rK.js} +1 -1
  144. package/web/app/immutable/chunks/{SopK520R.js → D-i7C44m.js} +2 -2
  145. package/web/app/immutable/chunks/{CcuS-fLp.js → D0I9E6A0.js} +1 -1
  146. package/web/app/immutable/chunks/{CoDSLIZp.js → D1CYDv8t.js} +1 -1
  147. package/web/app/immutable/chunks/{FBAcw4MJ.js → D31IcU1_.js} +1 -1
  148. package/web/app/immutable/chunks/{B39Mxie0.js → D3toWTag.js} +8 -8
  149. package/web/app/immutable/chunks/{BFp6vZSQ.js → D492HRYt.js} +1 -1
  150. package/web/app/immutable/chunks/{Vk-IHNCU.js → D7NdkRF-.js} +4 -4
  151. package/web/app/immutable/chunks/{DZNLst19.js → D7dPbXji.js} +1 -1
  152. package/web/app/immutable/chunks/D9jYN6_J.js +1 -0
  153. package/web/app/immutable/chunks/{n58mTCVv.js → D9jvlcNy.js} +1 -1
  154. package/web/app/immutable/chunks/{QE-hjQtm.js → DByMRbHr.js} +1 -1
  155. package/web/app/immutable/chunks/{kjMhmnu9.js → DDySjsub.js} +1 -1
  156. package/web/app/immutable/chunks/{Dnr9ynjr.js → DE8QOEZV.js} +1 -1
  157. package/web/app/immutable/chunks/{Ca05Jmq3.js → DF1uIj8u.js} +1 -1
  158. package/web/app/immutable/chunks/{BYFJ74nm.js → DFs6FJS8.js} +1 -1
  159. package/web/app/immutable/chunks/{CgW9XFcu.js → DGmRhalF.js} +1 -1
  160. package/web/app/immutable/chunks/DH-29Rs_.js +11 -0
  161. package/web/app/immutable/chunks/{BL8utEbB.js → DHGSAfCZ.js} +1 -1
  162. package/web/app/immutable/chunks/DHROL4K5.js +1 -0
  163. package/web/app/immutable/chunks/DKKFIb2l.js +1 -0
  164. package/web/app/immutable/chunks/DKTqwHrN.js +1 -0
  165. package/web/app/immutable/chunks/DMYKSC8W.js +2 -0
  166. package/web/app/immutable/chunks/{-7ARPWgR.js → DMjNjha0.js} +1 -1
  167. package/web/app/immutable/chunks/{C1nHAGLu.js → DNWBkvFP.js} +1 -1
  168. package/web/app/immutable/chunks/DNjgs7AU.js +1 -0
  169. package/web/app/immutable/chunks/{4UXIq5lZ.js → DOB2ATTF.js} +5 -5
  170. package/web/app/immutable/chunks/{BrTyn-oU.js → DOCWMdWU.js} +1 -1
  171. package/web/app/immutable/chunks/{Z8gQAmFb.js → DOKxXiSI.js} +18 -18
  172. package/web/app/immutable/chunks/DOPeTAKk.js +13 -0
  173. package/web/app/immutable/chunks/{PrJr0a2j.js → DPUWJyjX.js} +1 -1
  174. package/web/app/immutable/chunks/{_xNtAuSN.js → DQlH_Wce.js} +1 -1
  175. package/web/app/immutable/chunks/{BIEvH8pu.js → DRZKWEq3.js} +1 -1
  176. package/web/app/immutable/chunks/DTSEdINd.js +2 -0
  177. package/web/app/immutable/chunks/{B7o4NziF.js → DUQV_xq3.js} +1 -1
  178. package/web/app/immutable/chunks/{BNuo4lAs.js → DW9MEQey.js} +1 -1
  179. package/web/app/immutable/chunks/{BL8tUtYB.js → DXnd4CJZ.js} +1 -1
  180. package/web/app/immutable/chunks/DYnCJwSs.js +1 -0
  181. package/web/app/immutable/chunks/DZ3SUe8R.js +1 -0
  182. package/web/app/immutable/chunks/{BmP1Wws6.js → DZyAzxxC.js} +1 -1
  183. package/web/app/immutable/chunks/D_SZXZdx.js +1 -0
  184. package/web/app/immutable/chunks/{BhMsVKL2.js → DcZKw8cP.js} +2 -2
  185. package/web/app/immutable/chunks/{C7tPYy06.js → DccrGg38.js} +22 -22
  186. package/web/app/immutable/chunks/DcwC09tE.js +1 -0
  187. package/web/app/immutable/chunks/{DSbO2mrE.js → DdVIXVso.js} +1 -1
  188. package/web/app/immutable/chunks/DeCAcSD9.js +19 -0
  189. package/web/app/immutable/chunks/DfjJilaB.js +2 -0
  190. package/web/app/immutable/chunks/{XzMpMF29.js → DgHZa_R5.js} +1 -1
  191. package/web/app/immutable/chunks/{DEGVinbl.js → DgwMMJRI.js} +1 -1
  192. package/web/app/immutable/chunks/{BecPnSy0.js → DhHSeQsG.js} +3 -3
  193. package/web/app/immutable/chunks/{Bk8EDJRq.js → Dj8J0eqI.js} +1 -1
  194. package/web/app/immutable/chunks/DjdPlKc4.js +2 -0
  195. package/web/app/immutable/chunks/{finAdq6c.js → DknPpgEW.js} +1 -1
  196. package/web/app/immutable/chunks/Dkr_RXdV.js +1 -0
  197. package/web/app/immutable/chunks/Dkva_evl.js +11 -0
  198. package/web/app/immutable/chunks/{Cf09_YLr.js → Do80Vc58.js} +1 -1
  199. package/web/app/immutable/chunks/{X8W_BfF4.js → Dr45ln4z.js} +1 -1
  200. package/web/app/immutable/chunks/DryyHkNv.js +1 -0
  201. package/web/app/immutable/chunks/{BdkEw9JP.js → DtAyUyC0.js} +1 -1
  202. package/web/app/immutable/chunks/Dto-4yb7.js +1 -0
  203. package/web/app/immutable/chunks/{CSdIXJpO.js → DukmxKgk.js} +1 -1
  204. package/web/app/immutable/chunks/{BwSA3fCS.js → DwA_Z_f6.js} +1 -1
  205. package/web/app/immutable/chunks/{Drt5qRI8.js → Dx3sZmi8.js} +1 -1
  206. package/web/app/immutable/chunks/{CcXuSxXv.js → DxBGs1BP.js} +1 -1
  207. package/web/app/immutable/chunks/{CeswpNyE.js → DzGNgfrZ.js} +1 -1
  208. package/web/app/immutable/chunks/DzKYjnRy.js +2 -0
  209. package/web/app/immutable/chunks/{HvBMlLJP.js → DzejiLWr.js} +3 -3
  210. package/web/app/immutable/chunks/{BBasLmtQ.js → G_wYaln-.js} +1 -1
  211. package/web/app/immutable/chunks/GzTl4Sb0.js +1 -0
  212. package/web/app/immutable/chunks/IRbjhecv.js +8 -0
  213. package/web/app/immutable/chunks/OPvMR-5p.js +1 -0
  214. package/web/app/immutable/chunks/{gURPJ1oX.js → SVZRr24P.js} +1 -1
  215. package/web/app/immutable/chunks/{DYmPPjiq.js → T9tywf_e.js} +1 -1
  216. package/web/app/immutable/chunks/TL85KYB9.js +1 -0
  217. package/web/app/immutable/chunks/{BgX4ALX_.js → U6cHmbYS.js} +3 -3
  218. package/web/app/immutable/chunks/{DLqztIqC.js → V9qci_dz.js} +1 -1
  219. package/web/app/immutable/chunks/{BESEELLz.js → W7sv3DY6.js} +1 -1
  220. package/web/app/immutable/chunks/{dR3YHGeF.js → WbTmlouE.js} +1 -1
  221. package/web/app/immutable/chunks/{CW41MFVu.js → Y4VeEPHl.js} +1 -1
  222. package/web/app/immutable/chunks/{BVviSubD.js → YYacqJ9a.js} +1 -1
  223. package/web/app/immutable/chunks/{Q-Oe5gQg.js → Zl17pAXX.js} +1 -1
  224. package/web/app/immutable/chunks/{BVt_T8ao.js → aQy6qVNs.js} +1 -1
  225. package/web/app/immutable/chunks/{C3SYquhf.js → ahX1JzRb.js} +1 -1
  226. package/web/app/immutable/chunks/{B0biUQQF.js → asQ_ruFQ.js} +1 -1
  227. package/web/app/immutable/chunks/{Cc_BIXdP.js → bKyElw3h.js} +1 -1
  228. package/web/app/immutable/chunks/cATI0wnI.js +1 -0
  229. package/web/app/immutable/chunks/ciTxbtqU.js +1 -0
  230. package/web/app/immutable/chunks/d-Ep-sfP.js +1 -0
  231. package/web/app/immutable/chunks/dBZS3-kp.js +3 -0
  232. package/web/app/immutable/chunks/{B1Zj1zGG.js → eNHX5lds.js} +1 -1
  233. package/web/app/immutable/chunks/etVaBLxV.js +6 -0
  234. package/web/app/immutable/chunks/euZ22sAu.js +1 -0
  235. package/web/app/immutable/chunks/{COrK0goa.js → ftma9Ybn.js} +1 -1
  236. package/web/app/immutable/chunks/fzs92dqr.js +1 -0
  237. package/web/app/immutable/chunks/i2sZiDEq.js +1 -0
  238. package/web/app/immutable/chunks/iKgBWWl-.js +2 -0
  239. package/web/app/immutable/chunks/{BRww0MVx.js → jlJQSpH6.js} +1 -1
  240. package/web/app/immutable/chunks/{DC_750GV.js → ouMKS3MA.js} +1 -1
  241. package/web/app/immutable/chunks/{jn3Rypn_.js → s0TWEExr.js} +1 -1
  242. package/web/app/immutable/chunks/{XIXbmV8F.js → txy0Txom.js} +1 -1
  243. package/web/app/immutable/chunks/{CYf2hryc.js → wTgWcOy1.js} +1 -1
  244. package/web/app/immutable/chunks/{BIlaJXMS.js → z-RLr2Z1.js} +1 -1
  245. package/web/app/immutable/chunks/zGl9gaL0.js +1 -0
  246. package/web/app/immutable/chunks/{DXCE75Ih.js → z_Tdw9N5.js} +1 -1
  247. package/web/app/immutable/entry/app.BXnRxWvG.js +4 -0
  248. package/web/app/immutable/entry/start.BX3EKd8C.js +1 -0
  249. package/web/app/immutable/nodes/0.CFk1FXLg.js +1 -0
  250. package/web/app/immutable/nodes/1.Bd67D1tA.js +1 -0
  251. package/web/app/immutable/nodes/10.CTZ0L3wZ.js +41 -0
  252. package/web/app/immutable/nodes/11.CH_h0WbH.js +1 -0
  253. package/web/app/immutable/nodes/12.DhihsAtw.js +1 -0
  254. package/web/app/immutable/nodes/{13.CscEwLVK.js → 13.B727xJXs.js} +5 -5
  255. package/web/app/immutable/nodes/14.CgITgBOZ.js +3 -0
  256. package/web/app/immutable/nodes/15.CCzIPJGf.js +1 -0
  257. package/web/app/immutable/nodes/{16.Cfgb0nOQ.js → 16.CbtJfPHZ.js} +2 -2
  258. package/web/app/immutable/nodes/17.CelzCwXF.js +1 -0
  259. package/web/app/immutable/nodes/{17.DFAwhIn_.js → 18.fqvApY-g.js} +2 -2
  260. package/web/app/immutable/nodes/2.t-1b60vK.js +13 -0
  261. package/web/app/immutable/nodes/3.4L0YPvZL.js +2 -0
  262. package/web/app/immutable/nodes/4.BLQgcpcU.js +1 -0
  263. package/web/app/immutable/nodes/5.Bp_OiOTI.js +5 -0
  264. package/web/app/immutable/nodes/6.CcuwCBp4.js +1 -0
  265. package/web/app/immutable/nodes/7.B-TRUT7o.js +1 -0
  266. package/web/app/immutable/nodes/{8.bG-TRaEn.js → 8.CaG5gby5.js} +9 -9
  267. package/web/app/immutable/nodes/{9.CBynOn0l.js → 9.DosMxTmg.js} +17 -17
  268. package/web/app/version.json +1 -1
  269. package/web/index.html +28 -21
  270. package/web/app/immutable/chunks/-6JGlnE4.js +0 -1
  271. package/web/app/immutable/chunks/-SwunqO3.js +0 -1
  272. package/web/app/immutable/chunks/3G6kqi6m.js +0 -19
  273. package/web/app/immutable/chunks/5MLUIYhU.js +0 -1
  274. package/web/app/immutable/chunks/B-jmn73b.js +0 -2
  275. package/web/app/immutable/chunks/B1C_jfbV.js +0 -1
  276. package/web/app/immutable/chunks/B65N3w4u.js +0 -1
  277. package/web/app/immutable/chunks/B6iA2dvO.js +0 -1
  278. package/web/app/immutable/chunks/BDACnpyW.js +0 -1
  279. package/web/app/immutable/chunks/BO67r0G6.js +0 -4
  280. package/web/app/immutable/chunks/BP5uyQTv.js +0 -18
  281. package/web/app/immutable/chunks/BPvruhgT.js +0 -13
  282. package/web/app/immutable/chunks/BQEszNiH.js +0 -1
  283. package/web/app/immutable/chunks/BVPvh88-.js +0 -1
  284. package/web/app/immutable/chunks/BXeiKdwz.js +0 -1
  285. package/web/app/immutable/chunks/BY-x4QLt.js +0 -1
  286. package/web/app/immutable/chunks/BZcpShp8.js +0 -9
  287. package/web/app/immutable/chunks/BbNk8c_P.js +0 -1
  288. package/web/app/immutable/chunks/BdD2ADMz.js +0 -1
  289. package/web/app/immutable/chunks/BlZYlbA9.js +0 -1
  290. package/web/app/immutable/chunks/BoCZH6mk.js +0 -1
  291. package/web/app/immutable/chunks/BsRwjCPo.js +0 -1
  292. package/web/app/immutable/chunks/BtXLgEvw.js +0 -6
  293. package/web/app/immutable/chunks/C4pN30lR.js +0 -2
  294. package/web/app/immutable/chunks/C52Qm4vO.js +0 -1
  295. package/web/app/immutable/chunks/C5AlgdZ0.js +0 -1
  296. package/web/app/immutable/chunks/CDQzU1Fp.js +0 -1
  297. package/web/app/immutable/chunks/CEQZVenN.js +0 -6
  298. package/web/app/immutable/chunks/CFduDdmx.js +0 -1
  299. package/web/app/immutable/chunks/CN-2rfdx.js +0 -1
  300. package/web/app/immutable/chunks/CRQGIXhv.js +0 -1
  301. package/web/app/immutable/chunks/CbCgON3R.js +0 -1
  302. package/web/app/immutable/chunks/CcvLGgrc.js +0 -1
  303. package/web/app/immutable/chunks/CdZRK319.js +0 -408
  304. package/web/app/immutable/chunks/Cfj3Lc6y.js +0 -1
  305. package/web/app/immutable/chunks/Ck9ZyE1n.js +0 -2
  306. package/web/app/immutable/chunks/CoLl8pQb.js +0 -1
  307. package/web/app/immutable/chunks/Cq0XJSNB.js +0 -1
  308. package/web/app/immutable/chunks/CuhrgDBI.js +0 -1
  309. package/web/app/immutable/chunks/CvWyDJGm.js +0 -1
  310. package/web/app/immutable/chunks/D5jO2tMO.js +0 -1
  311. package/web/app/immutable/chunks/DATvyyct.js +0 -1
  312. package/web/app/immutable/chunks/DBN9LmpO.js +0 -2
  313. package/web/app/immutable/chunks/DIP3ex32.js +0 -1
  314. package/web/app/immutable/chunks/DKBMY4SO.js +0 -2
  315. package/web/app/immutable/chunks/DPHzX3VR.js +0 -1
  316. package/web/app/immutable/chunks/DPLUjB3C.js +0 -11
  317. package/web/app/immutable/chunks/DTQYcznv.js +0 -1
  318. package/web/app/immutable/chunks/DU8kuP6M.js +0 -1
  319. package/web/app/immutable/chunks/DZmwTozc.js +0 -1
  320. package/web/app/immutable/chunks/DbGgneou.js +0 -3
  321. package/web/app/immutable/chunks/DbSsu2ZZ.js +0 -2
  322. package/web/app/immutable/chunks/Dc64E_SR.js +0 -1
  323. package/web/app/immutable/chunks/Ddw98WmY.js +0 -8
  324. package/web/app/immutable/chunks/DdxviGOy.js +0 -2
  325. package/web/app/immutable/chunks/De4z9gHo.js +0 -1
  326. package/web/app/immutable/chunks/DeBZgR-l.js +0 -2
  327. package/web/app/immutable/chunks/Dj_XMlva.js +0 -1
  328. package/web/app/immutable/chunks/Dk6iNNLu.js +0 -1
  329. package/web/app/immutable/chunks/DlN76n90.js +0 -1
  330. package/web/app/immutable/chunks/DlxIHej5.js +0 -1
  331. package/web/app/immutable/chunks/DoBQR8Vx.js +0 -4
  332. package/web/app/immutable/chunks/DtTm3-vx.js +0 -2
  333. package/web/app/immutable/chunks/DtftInpc.js +0 -1
  334. package/web/app/immutable/chunks/DvCoPCgB.js +0 -2
  335. package/web/app/immutable/chunks/DyASeQ3m.js +0 -2
  336. package/web/app/immutable/chunks/Ek5W6pp5.js +0 -1
  337. package/web/app/immutable/chunks/H60Tbroe.js +0 -1
  338. package/web/app/immutable/chunks/I2ER02OI.js +0 -2
  339. package/web/app/immutable/chunks/JzAjTSJP.js +0 -1
  340. package/web/app/immutable/chunks/S3l_n0fN.js +0 -1
  341. package/web/app/immutable/chunks/UYKGMt9K.js +0 -1
  342. package/web/app/immutable/chunks/VD4zAAAW.js +0 -1
  343. package/web/app/immutable/chunks/domP6Duj.js +0 -1
  344. package/web/app/immutable/chunks/exKuue_y.js +0 -2
  345. package/web/app/immutable/chunks/h4-gUr-R.js +0 -1
  346. package/web/app/immutable/chunks/oPIupn-5.js +0 -1
  347. package/web/app/immutable/chunks/rWjPMnbJ.js +0 -1
  348. package/web/app/immutable/chunks/uo2kAWaz.js +0 -1
  349. package/web/app/immutable/entry/app.B3U21m46.js +0 -4
  350. package/web/app/immutable/entry/start.BmptZn82.js +0 -1
  351. package/web/app/immutable/nodes/0.CWw0htIy.js +0 -1
  352. package/web/app/immutable/nodes/1.CwxWqCh2.js +0 -1
  353. package/web/app/immutable/nodes/10.DsQSJA4U.js +0 -41
  354. package/web/app/immutable/nodes/11.C9N9_Xb9.js +0 -1
  355. package/web/app/immutable/nodes/12.CqRfopX4.js +0 -1
  356. package/web/app/immutable/nodes/14.CGbyYvxu.js +0 -3
  357. package/web/app/immutable/nodes/15.BWtoiI44.js +0 -1
  358. package/web/app/immutable/nodes/2.DTAk55p0.js +0 -13
  359. package/web/app/immutable/nodes/3.DGPBblLK.js +0 -2
  360. package/web/app/immutable/nodes/4.ReQ1u5-M.js +0 -1
  361. package/web/app/immutable/nodes/5.Dp2B2lHQ.js +0 -5
  362. package/web/app/immutable/nodes/6.BpkWHnQJ.js +0 -1
  363. package/web/app/immutable/nodes/7.C7_Pil7L.js +0 -1
  364. /package/web/app/immutable/assets/{17.Cznk2DRv.css → 18.Cznk2DRv.css} +0 -0
@@ -1,4 +1,4 @@
1
- import{g as Jt}from"./BrTyn-oU.js";import{g as Zt}from"./CcuS-fLp.js";import{s as $t}from"./BFp6vZSQ.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./Z8gQAmFb.js";import{c as D1}from"./WQwO_6NF.js";import{aP as T1}from"./dEUeoghd.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.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 a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
1
+ import{g as Jt}from"./DOCWMdWU.js";import{g as Zt}from"./D0I9E6A0.js";import{s as $t}from"./D492HRYt.js";import{b as C,a$ as e1,ay as Z,X as Ae,a1 as t1,aP as s1,bh as at,a_ as i1,aZ as r1,b0 as a1,V as n1,U as u1,Y as o1,z as l1,ax as c1,J as h1,aq as st,as as d1,$ as it,aW as rt,r as p1,a2 as f1,N as g1,am as b1,aU as k1,ab as A1,x as m1,aT as C1,p as S1}from"./DOKxXiSI.js";import{c as D1}from"./BTNEDHav.js";import{aP as T1}from"./ChNPgGKQ.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.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 a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
2
2
  `)?f=m+`
3
3
  `:f=`{
4
4
  `+m+`
@@ -1,4 +1,4 @@
1
- import{I as pr}from"./Cc_BIXdP.js";import{b as f,a$ as Er,X as j,aW as Kt,ay as nt,P as Ue,B as ur,h as fr,z as N,a_ as Ke,aZ as _r,b0 as gr,V as xr,U as yr,Y as Ir,ax as Rr,J as Or,r as Lr,aV as Ft,bh as Q,aa as tt,l as vt,aH as Ge,Z as br,W as zt,a7 as mr,aQ as Xe}from"./Z8gQAmFb.js";import{d as Sr,h as le,g as pt,e as Ar,a as he,b as de}from"./WQwO_6NF.js";var ne=(function(){var e=f(function(_t,w,C,D){for(C=C||{},D=_t.length;D--;C[_t[D]]=w);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],h=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],L=[1,25],g=[1,26],R=[1,27],T=[1,28],O=[1,29],x=[1,30],m=[1,31],S=[1,32],b=[1,33],P=[1,34],k=[1,35],B=[1,36],V=[1,37],H=[1,38],z=[1,39],X=[1,40],et=[1,42],rt=[1,43],U=[1,44],ot=[1,45],at=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Z=[1,56],Mt=[1,75],A=[1,81],v=[1,82],dt=[1,83],st=[1,84],K=[1,85],mt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],ye=[1,94],Ie=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[1,106],De=[2,79],ve=[2,78],Pt=[4,5,17,51,53,54],Bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],$t=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],jt=[5,52],F=[62,70,71,72,73],Be=[62,73],lt=[1,152],te={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(w,C,D,y,G,c,kt){var p=c.length-1;switch(G){case 3:return y.apply(c[p]),c[p];case 4:case 10:this.$=[];break;case 5:case 11:c[p-1].push(c[p]),this.$=c[p-1];break;case 6:case 7:case 12:case 13:this.$=c[p];break;case 8:case 9:case 14:this.$=[];break;case 16:c[p].type="createParticipant",this.$=c[p];break;case 17:c[p-1].unshift({type:"boxStart",boxData:y.parseBoxData(c[p-2])}),c[p-1].push({type:"boxEnd",boxText:c[p-2]}),this.$=c[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-2]),sequenceIndexStep:Number(c[p-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-1].actor};break;case 30:y.setDiagramTitle(c[p].substring(6)),this.$=c[p].substring(6);break;case 31:y.setDiagramTitle(c[p].substring(7)),this.$=c[p].substring(7);break;case 32:this.$=c[p].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=c[p].trim(),y.setAccDescription(this.$);break;case 35:c[p-1].unshift({type:"loopStart",loopText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.LOOP_START}),c[p-1].push({type:"loopEnd",loopText:c[p-2],signalType:y.LINETYPE.LOOP_END}),this.$=c[p-1];break;case 36:c[p-1].unshift({type:"rectStart",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_START}),c[p-1].push({type:"rectEnd",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_END}),this.$=c[p-1];break;case 37:c[p-1].unshift({type:"optStart",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_START}),c[p-1].push({type:"optEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_END}),this.$=c[p-1];break;case 38:c[p-1].unshift({type:"altStart",altText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.ALT_START}),c[p-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=c[p-1];break;case 39:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 40:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_OVER_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 41:c[p-1].unshift({type:"criticalStart",criticalText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.CRITICAL_START}),c[p-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=c[p-1];break;case 42:c[p-1].unshift({type:"breakStart",breakText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_START}),c[p-1].push({type:"breakEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_END}),this.$=c[p-1];break;case 44:this.$=c[p-3].concat([{type:"option",optionText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.CRITICAL_OPTION},c[p]]);break;case 46:this.$=c[p-3].concat([{type:"and",parText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.PAR_AND},c[p]]);break;case 48:this.$=c[p-3].concat([{type:"else",altText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.ALT_ELSE},c[p]]);break;case 49:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 50:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 51:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 52:case 57:c[p-1].draw="actor",c[p-1].type="addParticipant",this.$=c[p-1];break;case 53:c[p-1].type="destroyParticipant",this.$=c[p-1];break;case 54:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 55:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 56:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 58:this.$=[c[p-1],{type:"addNote",placement:c[p-2],actor:c[p-1].actor,text:c[p]}];break;case 59:c[p-2]=[].concat(c[p-1],c[p-1]).slice(0,2),c[p-2][0]=c[p-2][0].actor,c[p-2][1]=c[p-2][1].actor,this.$=[c[p-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:c[p-2].slice(0,2),text:c[p]}];break;case 60:this.$=[c[p-1],{type:"addLinks",actor:c[p-1].actor,text:c[p]}];break;case 61:this.$=[c[p-1],{type:"addALink",actor:c[p-1].actor,text:c[p]}];break;case 62:this.$=[c[p-1],{type:"addProperties",actor:c[p-1].actor,text:c[p]}];break;case 63:this.$=[c[p-1],{type:"addDetails",actor:c[p-1].actor,text:c[p]}];break;case 66:this.$=[c[p-2],c[p]];break;case 67:this.$=c[p];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor}];break;case 71:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-4].actor}];break;case 72:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor}];break;case 73:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-4].actor}];break;case 74:this.$=[c[p-5],c[p-1],{type:"addMessage",from:c[p-5].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-5].actor}];break;case 75:this.$=[c[p-3],c[p-1],{type:"addMessage",from:c[p-3].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p]}];break;case 76:this.$={type:"addParticipant",actor:c[p-1],config:c[p]};break;case 77:this.$=c[p-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:c[p]};break;case 80:this.$=y.LINETYPE.SOLID_OPEN;break;case 81:this.$=y.LINETYPE.DOTTED_OPEN;break;case 82:this.$=y.LINETYPE.SOLID;break;case 83:this.$=y.LINETYPE.SOLID_TOP;break;case 84:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=y.LINETYPE.STICK_TOP;break;case 86:this.$=y.LINETYPE.STICK_BOTTOM;break;case 87:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=y.LINETYPE.DOTTED;break;case 101:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=y.LINETYPE.SOLID_CROSS;break;case 103:this.$=y.LINETYPE.DOTTED_CROSS;break;case 104:this.$=y.LINETYPE.SOLID_POINT;break;case 105:this.$=y.LINETYPE.DOTTED_POINT;break;case 106:this.$=y.parseMessage(c[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,5]),{9:48,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:H,53:z,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:Z,73:W},{23:57,62:Z,73:W},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(M,[2,30]),e(M,[2,31]),{33:[1,63]},{35:[1,64]},e(M,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:Z,73:Mt},{23:76,55:77,62:Z,73:Mt},{23:78,62:Z,73:W},{69:79,72:[1,80],78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:Z,73:W},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],De,{23:112,62:Z,73:W}),{23:113,62:Z,73:W},{23:114,62:Z,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(M,[2,6]),e(M,[2,16]),e(Pt,[2,10],{11:115}),e(M,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(M,[2,22]),{5:[1,119]},e([5,52,66,104],De),{5:[1,120]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Bt,i,{7:121}),e(Bt,i,{7:122}),e(Bt,i,{7:123}),e(Ce,i,{41:124,7:125}),e($t,i,{43:126,7:127}),e($t,i,{7:127,43:128}),e(Me,i,{46:129,7:130}),e(Bt,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(jt,ve,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:Z,70:[1,143],71:[1,144],72:[1,145],73:W},{69:147,78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),e(F,[2,105]),{23:148,62:Z,73:W},{23:150,60:149,62:Z,73:W},e(Be,[2,68]),e(Be,[2,69]),{58:151,104:lt},{58:153,104:lt},{58:154,104:lt},{58:155,104:lt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:H,53:z,54:X},{5:[1,161]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,164],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,165]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,50:[1,166],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,167]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,49:[1,168],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,48:[1,171],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,172],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{16:[1,173]},e(M,[2,50]),{16:[1,174]},e(M,[2,55]),e(jt,[2,76]),{76:[1,175]},{16:[1,176]},e(M,[2,52]),{16:[1,177]},e(M,[2,57]),e(M,[2,53]),{23:178,62:Z,73:W},{23:179,62:Z,73:W},{23:180,62:Z,73:W},{58:181,104:lt},{23:182,62:Z,72:[1,183],73:W},{58:184,104:lt},{58:185,104:lt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Pt,[2,11]),{13:187,51:H,53:z,54:X},e(Pt,[2,13]),e(Pt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,188]},e(M,[2,39]),{16:[1,189]},e(M,[2,40]),e(M,[2,41]),{16:[1,190]},e(M,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:lt},{58:197,104:lt},{58:198,104:lt},{5:[2,75]},{58:199,104:lt},{23:200,62:Z,73:W},{5:[2,58]},{5:[2,59]},{23:201,62:Z,73:W},e(Pt,[2,12]),e(Ce,i,{7:125,41:202}),e($t,i,{7:127,43:203}),e(Me,i,{7:130,46:204}),e(M,[2,49]),e(M,[2,54]),e(jt,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:f(function(w,C){if(C.recoverable)this.trace(w);else{var D=new Error(w);throw D.hash=C,D}},"parseError"),parse:f(function(w){var C=this,D=[0],y=[],G=[null],c=[],kt=this.table,p="",Vt=0,Ye=0,lr=2,Ve=1,hr=c.slice.call(arguments,1),$=Object.create(this.lexer),It={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(It.yy[ee]=this.yy[ee]);$.setInput(w,It.yy),It.yy.lexer=$,It.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var re=$.yylloc;c.push(re);var dr=$.options&&$.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tr(ct){D.length=D.length-2*ct,G.length=G.length-ct,c.length=c.length-ct}f(Tr,"popStack");function We(){var ct;return ct=y.pop()||$.lex()||Ve,typeof ct!="number"&&(ct instanceof Array&&(y=ct,ct=y.pop()),ct=C.symbols_[ct]||ct),ct}f(We,"lex");for(var it,Rt,ht,ae,St={},Wt,Et,He,Ht;;){if(Rt=D[D.length-1],this.defaultActions[Rt]?ht=this.defaultActions[Rt]:((it===null||typeof it>"u")&&(it=We()),ht=kt[Rt]&&kt[Rt][it]),typeof ht>"u"||!ht.length||!ht[0]){var se="";Ht=[];for(Wt in kt[Rt])this.terminals_[Wt]&&Wt>lr&&Ht.push("'"+this.terminals_[Wt]+"'");$.showPosition?se="Parse error on line "+(Vt+1)+`:
1
+ import{I as pr}from"./bKyElw3h.js";import{b as f,a$ as Er,X as j,aW as Kt,ay as nt,P as Ue,B as ur,h as fr,z as N,a_ as Ke,aZ as _r,b0 as gr,V as xr,U as yr,Y as Ir,ax as Rr,J as Or,r as Lr,aV as Ft,bh as Q,aa as tt,l as vt,aH as Ge,Z as br,W as zt,a7 as mr,aQ as Xe}from"./DOKxXiSI.js";import{d as Sr,h as le,g as pt,e as Ar,a as he,b as de}from"./BTNEDHav.js";var ne=(function(){var e=f(function(_t,w,C,D){for(C=C||{},D=_t.length;D--;C[_t[D]]=w);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],h=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],L=[1,25],g=[1,26],R=[1,27],T=[1,28],O=[1,29],x=[1,30],m=[1,31],S=[1,32],b=[1,33],P=[1,34],k=[1,35],B=[1,36],V=[1,37],H=[1,38],z=[1,39],X=[1,40],et=[1,42],rt=[1,43],U=[1,44],ot=[1,45],at=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Z=[1,56],Mt=[1,75],A=[1,81],v=[1,82],dt=[1,83],st=[1,84],K=[1,85],mt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],ye=[1,94],Ie=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[1,106],De=[2,79],ve=[2,78],Pt=[4,5,17,51,53,54],Bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],$t=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],jt=[5,52],F=[62,70,71,72,73],Be=[62,73],lt=[1,152],te={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(w,C,D,y,G,c,kt){var p=c.length-1;switch(G){case 3:return y.apply(c[p]),c[p];case 4:case 10:this.$=[];break;case 5:case 11:c[p-1].push(c[p]),this.$=c[p-1];break;case 6:case 7:case 12:case 13:this.$=c[p];break;case 8:case 9:case 14:this.$=[];break;case 16:c[p].type="createParticipant",this.$=c[p];break;case 17:c[p-1].unshift({type:"boxStart",boxData:y.parseBoxData(c[p-2])}),c[p-1].push({type:"boxEnd",boxText:c[p-2]}),this.$=c[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-2]),sequenceIndexStep:Number(c[p-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-1].actor};break;case 30:y.setDiagramTitle(c[p].substring(6)),this.$=c[p].substring(6);break;case 31:y.setDiagramTitle(c[p].substring(7)),this.$=c[p].substring(7);break;case 32:this.$=c[p].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=c[p].trim(),y.setAccDescription(this.$);break;case 35:c[p-1].unshift({type:"loopStart",loopText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.LOOP_START}),c[p-1].push({type:"loopEnd",loopText:c[p-2],signalType:y.LINETYPE.LOOP_END}),this.$=c[p-1];break;case 36:c[p-1].unshift({type:"rectStart",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_START}),c[p-1].push({type:"rectEnd",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_END}),this.$=c[p-1];break;case 37:c[p-1].unshift({type:"optStart",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_START}),c[p-1].push({type:"optEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_END}),this.$=c[p-1];break;case 38:c[p-1].unshift({type:"altStart",altText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.ALT_START}),c[p-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=c[p-1];break;case 39:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 40:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_OVER_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 41:c[p-1].unshift({type:"criticalStart",criticalText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.CRITICAL_START}),c[p-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=c[p-1];break;case 42:c[p-1].unshift({type:"breakStart",breakText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_START}),c[p-1].push({type:"breakEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_END}),this.$=c[p-1];break;case 44:this.$=c[p-3].concat([{type:"option",optionText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.CRITICAL_OPTION},c[p]]);break;case 46:this.$=c[p-3].concat([{type:"and",parText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.PAR_AND},c[p]]);break;case 48:this.$=c[p-3].concat([{type:"else",altText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.ALT_ELSE},c[p]]);break;case 49:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 50:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 51:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 52:case 57:c[p-1].draw="actor",c[p-1].type="addParticipant",this.$=c[p-1];break;case 53:c[p-1].type="destroyParticipant",this.$=c[p-1];break;case 54:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 55:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 56:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 58:this.$=[c[p-1],{type:"addNote",placement:c[p-2],actor:c[p-1].actor,text:c[p]}];break;case 59:c[p-2]=[].concat(c[p-1],c[p-1]).slice(0,2),c[p-2][0]=c[p-2][0].actor,c[p-2][1]=c[p-2][1].actor,this.$=[c[p-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:c[p-2].slice(0,2),text:c[p]}];break;case 60:this.$=[c[p-1],{type:"addLinks",actor:c[p-1].actor,text:c[p]}];break;case 61:this.$=[c[p-1],{type:"addALink",actor:c[p-1].actor,text:c[p]}];break;case 62:this.$=[c[p-1],{type:"addProperties",actor:c[p-1].actor,text:c[p]}];break;case 63:this.$=[c[p-1],{type:"addDetails",actor:c[p-1].actor,text:c[p]}];break;case 66:this.$=[c[p-2],c[p]];break;case 67:this.$=c[p];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor}];break;case 71:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-4].actor}];break;case 72:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor}];break;case 73:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-4].actor}];break;case 74:this.$=[c[p-5],c[p-1],{type:"addMessage",from:c[p-5].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-5].actor}];break;case 75:this.$=[c[p-3],c[p-1],{type:"addMessage",from:c[p-3].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p]}];break;case 76:this.$={type:"addParticipant",actor:c[p-1],config:c[p]};break;case 77:this.$=c[p-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:c[p]};break;case 80:this.$=y.LINETYPE.SOLID_OPEN;break;case 81:this.$=y.LINETYPE.DOTTED_OPEN;break;case 82:this.$=y.LINETYPE.SOLID;break;case 83:this.$=y.LINETYPE.SOLID_TOP;break;case 84:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=y.LINETYPE.STICK_TOP;break;case 86:this.$=y.LINETYPE.STICK_BOTTOM;break;case 87:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=y.LINETYPE.DOTTED;break;case 101:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=y.LINETYPE.SOLID_CROSS;break;case 103:this.$=y.LINETYPE.DOTTED_CROSS;break;case 104:this.$=y.LINETYPE.SOLID_POINT;break;case 105:this.$=y.LINETYPE.DOTTED_POINT;break;case 106:this.$=y.parseMessage(c[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,5]),{9:48,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:H,53:z,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:Z,73:W},{23:57,62:Z,73:W},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(M,[2,30]),e(M,[2,31]),{33:[1,63]},{35:[1,64]},e(M,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:Z,73:Mt},{23:76,55:77,62:Z,73:Mt},{23:78,62:Z,73:W},{69:79,72:[1,80],78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:Z,73:W},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],De,{23:112,62:Z,73:W}),{23:113,62:Z,73:W},{23:114,62:Z,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(M,[2,6]),e(M,[2,16]),e(Pt,[2,10],{11:115}),e(M,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(M,[2,22]),{5:[1,119]},e([5,52,66,104],De),{5:[1,120]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Bt,i,{7:121}),e(Bt,i,{7:122}),e(Bt,i,{7:123}),e(Ce,i,{41:124,7:125}),e($t,i,{43:126,7:127}),e($t,i,{7:127,43:128}),e(Me,i,{46:129,7:130}),e(Bt,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(jt,ve,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:Z,70:[1,143],71:[1,144],72:[1,145],73:W},{69:147,78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),e(F,[2,105]),{23:148,62:Z,73:W},{23:150,60:149,62:Z,73:W},e(Be,[2,68]),e(Be,[2,69]),{58:151,104:lt},{58:153,104:lt},{58:154,104:lt},{58:155,104:lt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:H,53:z,54:X},{5:[1,161]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,164],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,165]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,50:[1,166],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,167]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,49:[1,168],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,48:[1,171],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,172],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{16:[1,173]},e(M,[2,50]),{16:[1,174]},e(M,[2,55]),e(jt,[2,76]),{76:[1,175]},{16:[1,176]},e(M,[2,52]),{16:[1,177]},e(M,[2,57]),e(M,[2,53]),{23:178,62:Z,73:W},{23:179,62:Z,73:W},{23:180,62:Z,73:W},{58:181,104:lt},{23:182,62:Z,72:[1,183],73:W},{58:184,104:lt},{58:185,104:lt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Pt,[2,11]),{13:187,51:H,53:z,54:X},e(Pt,[2,13]),e(Pt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,188]},e(M,[2,39]),{16:[1,189]},e(M,[2,40]),e(M,[2,41]),{16:[1,190]},e(M,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:lt},{58:197,104:lt},{58:198,104:lt},{5:[2,75]},{58:199,104:lt},{23:200,62:Z,73:W},{5:[2,58]},{5:[2,59]},{23:201,62:Z,73:W},e(Pt,[2,12]),e(Ce,i,{7:125,41:202}),e($t,i,{7:127,43:203}),e(Me,i,{7:130,46:204}),e(M,[2,49]),e(M,[2,54]),e(jt,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:f(function(w,C){if(C.recoverable)this.trace(w);else{var D=new Error(w);throw D.hash=C,D}},"parseError"),parse:f(function(w){var C=this,D=[0],y=[],G=[null],c=[],kt=this.table,p="",Vt=0,Ye=0,lr=2,Ve=1,hr=c.slice.call(arguments,1),$=Object.create(this.lexer),It={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(It.yy[ee]=this.yy[ee]);$.setInput(w,It.yy),It.yy.lexer=$,It.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var re=$.yylloc;c.push(re);var dr=$.options&&$.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tr(ct){D.length=D.length-2*ct,G.length=G.length-ct,c.length=c.length-ct}f(Tr,"popStack");function We(){var ct;return ct=y.pop()||$.lex()||Ve,typeof ct!="number"&&(ct instanceof Array&&(y=ct,ct=y.pop()),ct=C.symbols_[ct]||ct),ct}f(We,"lex");for(var it,Rt,ht,ae,St={},Wt,Et,He,Ht;;){if(Rt=D[D.length-1],this.defaultActions[Rt]?ht=this.defaultActions[Rt]:((it===null||typeof it>"u")&&(it=We()),ht=kt[Rt]&&kt[Rt][it]),typeof ht>"u"||!ht.length||!ht[0]){var se="";Ht=[];for(Wt in kt[Rt])this.terminals_[Wt]&&Wt>lr&&Ht.push("'"+this.terminals_[Wt]+"'");$.showPosition?se="Parse error on line "+(Vt+1)+`:
2
2
  `+$.showPosition()+`
3
3
  Expecting `+Ht.join(", ")+", got '"+(this.terminals_[it]||it)+"'":se="Parse error on line "+(Vt+1)+": Unexpected "+(it==Ve?"end of input":"'"+(this.terminals_[it]||it)+"'"),this.parseError(se,{text:$.match,token:this.terminals_[it]||it,line:$.yylineno,loc:re,expected:Ht})}if(ht[0]instanceof Array&&ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Rt+", token: "+it);switch(ht[0]){case 1:D.push(it),G.push($.yytext),c.push($.yylloc),D.push(ht[1]),it=null,Ye=$.yyleng,p=$.yytext,Vt=$.yylineno,re=$.yylloc;break;case 2:if(Et=this.productions_[ht[1]][1],St.$=G[G.length-Et],St._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},dr&&(St._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]]),ae=this.performAction.apply(St,[p,Ye,Vt,It.yy,ht[1],G,c].concat(hr)),typeof ae<"u")return ae;Et&&(D=D.slice(0,-1*Et*2),G=G.slice(0,-1*Et),c=c.slice(0,-1*Et)),D.push(this.productions_[ht[1]][0]),G.push(St.$),c.push(St._$),He=kt[D[D.length-2]][D[D.length-1]],D.push(He);break;case 3:return!0}}return!0},"parse")},cr=(function(){var _t={EOF:1,parseError:f(function(C,D){if(this.yy.parser)this.yy.parser.parseError(C,D);else throw new Error(C)},"parseError"),setInput:f(function(w,C){return this.yy=C||this.yy||{},this._input=w,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:f(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var C=w.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:f(function(w){var C=w.length,D=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var y=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),D.length-1&&(this.yylineno-=D.length-1);var G=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:D?(D.length===y.length?this.yylloc.first_column:0)+y[y.length-D.length].length-D[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(w){this.unput(this.match.slice(w))},"less"),pastInput:f(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var w=this.pastInput(),C=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{g as l,r as m,d as a}from"./Cf09_YLr.js";import{p}from"./DZNLst19.js";import{b as t,ay as o}from"./Z8gQAmFb.js";import{M as u,b as c}from"./Cv_J2c72.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
1
+ import{g as l,r as m,d as a}from"./Do80Vc58.js";import{p}from"./D7dPbXji.js";import{b as t,ay as o}from"./DOKxXiSI.js";import{M as u,b as c}from"./B-7vt8Nv.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
@@ -0,0 +1 @@
1
+ import{t as T,bq as r,by as W,bs as $,b as x,bu as B}from"./D9jYN6_J.js";import{bs as C,cd as S,ca as q,a7 as l,ay as f,W as k,bn as z,aA as o}from"./DYhIMPy1.js";import{i as D}from"./7eL9Pgig.js";import{k as H}from"./OPvMR-5p.js";import{a as K}from"./B0mNIdOb.js";import{dr as L}from"./asQ_ruFQ.js";import{Iz as j,gK as E}from"./BfbZn9QX.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(v,"$workspace$",b),[b,g]=$();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=S(a());q(()=>m.set(a()));const v=L(m);var w={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>x(t,e,s)},u=l(),y=f(u);{var _=e=>{var s=l(),A=f(s);H(A,a,h=>{K(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>j.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(y,e=>{p()&&d()&&e(_)})}k(i,u);var I=z(w);return g(),I}export{F as default};
@@ -1 +1 @@
1
- import{t as u,br as l,bz as p,bs as b,b as g}from"./DTQYcznv.js";import{bs as h,a5 as _,bA as v,W as x,bn as y,aA as o,aB as S}from"./DYhIMPy1.js";import{s as w}from"./CaxyE6o_.js";import{i as A,l as C}from"./Ck9ZyE1n.js";import{b as k}from"./BaIAhI85.js";var z=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),B=S("<section><!></section>");function N(c,s){if(new.target)return u({component:N,...c});h(s,!0);let r=l(s,"ref",15,null),a=l(s,"children",7),n=l(s,"class",7),i=b(s,z);var f={get ref(){return r()},set ref(e=null){r(e),o()},get children(){return a()},set children(e){a(e),o()},get class(){return n()},set class(e){n(e),o()},$set:p,$on:(e,d)=>g(s,e,d)},t=B();A(t,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(t);return w(m,a),v(t),k(t,e=>r(e),()=>r()),x(c,t),y(f)}export{N as S};
1
+ import{t as u,bq as l,by as p,br as b,b as g}from"./D9jYN6_J.js";import{bs as h,a5 as _,bA as v,W as x,bn as y,aA as o,aB as S}from"./DYhIMPy1.js";import{s as w}from"./Cx31i8ng.js";import{b as A,e as C}from"./C_EpV6jU.js";import{b as k}from"./BaIAhI85.js";var q=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),B=S("<section><!></section>");function N(c,s){if(new.target)return u({component:N,...c});h(s,!0);let r=l(s,"ref",15,null),a=l(s,"children",7),n=l(s,"class",7),i=b(s,q);var f={get ref(){return r()},set ref(e=null){r(e),o()},get children(){return a()},set children(e){a(e),o()},get class(){return n()},set class(e){n(e),o()},$set:p,$on:(e,d)=>g(s,e,d)},t=B();A(t,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(t);return w(m,a),v(t),k(t,e=>r(e),()=>r()),x(c,t),y(f)}export{N as S};
@@ -1 +1 @@
1
- import{t as ht,br as E,bz as $t,bt as It,b as bt,bv as d}from"./DTQYcznv.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as H,bV as N,aA as U}from"./DYhIMPy1.js";import{G as At}from"./-SwunqO3.js";import{b as Dt}from"./BaIAhI85.js";import{Iz as a,et as Pt,eu as St,nU as Et,zg as Ut,nY as _t,nZ as Ft,J4 as Tt,Jl as xt,J9 as Wt,v3 as vt,uk as Lt}from"./A0r9TbR7.js";import{b7 as Ht}from"./BiRT6AoP.js";import{g as Nt}from"./DfN8_dcw.js";import{dr as Ot,bN as qt,bC as Bt,bG as Gt,bE as Mt}from"./B0biUQQF.js";import{af as Jt}from"./BPvruhgT.js";import{C as Kt}from"./elYeRxWm.js";import{V as zt}from"./DU8kuP6M.js";import{bR as Vt,bL as jt,b6 as Yt}from"./dEUeoghd.js";import{i as Zt}from"./H2jLkRRS.js";function Qt(_,f){if(new.target)return ht({component:Qt,..._});yt(f,!0);const O=()=>d(X,"$gitRoots$",n),F=()=>d(Q,"$workspace",n),q=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),G=()=>d(Y,"$foldUnchanged",n),M=()=>d(j,"$lineWrapping",n),J=()=>d(Z,"$diffSideBySide",n),K=()=>d(at,"$ftLoading$",n),[n,z]=It(),V=e=>{zt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{H(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return G()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return M()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return J()},onToggleSplit:()=>a.dispatch(Tt())})},j=Vt(),Y=jt(),Z=Yt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Nt(),g=Ht(()=>i()),Q=Ot(g),X=Jt(g),w=crypto.randomUUID(),tt=qt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&O().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Gt(g),at=Mt(g),nt=s(()=>q()||[]),it=s(()=>B()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=N(!0),R=N(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Zt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!T||!$()||T.registerActions({display:V})});const v=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,v)),()=>a.dispatch(Ft(e,v))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},L=Ct(),gt=Rt(L);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>K()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Kt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Lt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,L);var pt=wt(mt);return z(),pt}export{Qt as default};
1
+ import{t as ht,bq as E,by as $t,bs as It,b as bt,bu as d}from"./D9jYN6_J.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as v,bV as H,aA as U}from"./DYhIMPy1.js";import{k as At}from"./OPvMR-5p.js";import{b as Dt}from"./BaIAhI85.js";import{Iz as a,et as Pt,eu as St,nU as Et,zg as Ut,nY as _t,nZ as Ft,J4 as Tt,Jl as xt,J9 as Wt,v3 as Lt,uk as qt}from"./BfbZn9QX.js";import{b7 as vt}from"./B79pUPc3.js";import{g as Ht}from"./DfN8_dcw.js";import{dr as Nt,bN as Ot,bC as Bt,bG as Mt,bE as Gt}from"./asQ_ruFQ.js";import{af as Jt}from"./DOPeTAKk.js";import{C as Kt}from"./3as4gwP9.js";import{V as Vt}from"./zGl9gaL0.js";import{bR as jt,bL as zt,b6 as Yt}from"./ChNPgGKQ.js";import{i as Zt}from"./H2jLkRRS.js";function Qt(_,f){if(new.target)return ht({component:Qt,..._});yt(f,!0);const N=()=>d(X,"$gitRoots$",n),F=()=>d(Q,"$workspace",n),O=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),M=()=>d(Y,"$foldUnchanged",n),G=()=>d(z,"$lineWrapping",n),J=()=>d(Z,"$diffSideBySide",n),K=()=>d(at,"$ftLoading$",n),[n,V]=It(),j=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{v(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return M()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return G()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return J()},onToggleSplit:()=>a.dispatch(Tt())})},z=jt(),Y=zt(),Z=Yt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Ht(),g=vt(()=>i()),Q=Nt(g),X=Jt(g),w=crypto.randomUUID(),tt=Ot(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&N().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Mt(g),at=Gt(g),nt=s(()=>O()||[]),it=s(()=>B()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Zt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!T||!$()||T.registerActions({display:j})});const L=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,L)),()=>a.dispatch(Ft(e,L))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},q=Ct(),gt=Rt(q);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>K()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Kt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Lt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>v(R,b,!0),()=>t(R))}}),kt(_,q);var pt=wt(mt);return V(),pt}export{Qt as default};
@@ -0,0 +1 @@
1
+ import{t as jt,bq as K,by as Jt,b as Nt,bu as j,bs as Ie,bo as i}from"./D9jYN6_J.js";import{bs as Qt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Xt,aA as V,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as M,bk as Le,a5 as E,bA as O}from"./DYhIMPy1.js";import{g as Ae,i as Pe,I as Ht}from"./Bgw3O9rE.js";import{c as ze}from"./DZyAzxxC.js";import{f as De,c as Te,s as qt}from"./C_EpV6jU.js";import{f as z}from"./0qEvU7Aj.js";import"./Dkva_evl.js";import"./DtAyUyC0.js";import{b as Fe}from"./DYnCJwSs.js";import"./B1U_DCBw.js";import"./BOyF7pe9.js";import{b as Ue}from"./DKTqwHrN.js";import{i as P}from"./7eL9Pgig.js";import{I as Mt}from"./DHROL4K5.js";import{L as Wt}from"./IRbjhecv.js";import"./Cx31i8ng.js";import{G as Ee,x as Oe}from"./BAGVOK-j.js";import{Iz as W,fl as Kt,z as Be,eb as Vt,qv as He,tW as qe,Iq as Me,oc as We,hz as Ke}from"./BfbZn9QX.js";import{aY as Rt,aZ as Yt,a_ as Ve,aT as Re,aU as Zt,aV as Ye,aW as Ze,b2 as je}from"./DF1uIj8u.js";var Je=I('<!> <p class="type-body"> </p>',1);function Ne(it,$){if(new.target)return jt({component:Ne,...it});Qt($,!0);let D=K($,"open",15,!1),H=K($,"static",7,!1),st=K($,"title",7),_=K($,"message",7),k=K($,"buttons",7),b=K($,"cancelIndex",7,0),J=K($,"onSelect",7);function R(r){D(!1),J()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),V()},get static(){return H()},set static(r=!1){H(r),V()},get title(){return st()},set title(r){st(r),V()},get message(){return _()},set message(r){_(r),V()},get buttons(){return k()},set buttons(r){k(r),V()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),V()},get onSelect(){return J()},set onSelect(r){J(r),V()},$set:Jt,$on:(r,q)=>Nt($,r,q)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>R(k().length-1),onCancel:()=>R(b()),get open(){return D()},set open(q){D(q)},footer:q=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(N,Q,Y)=>{{let X=g(()=>Y===b()?"ghost":Y===k().length-1?"primary":"outline");z(N,{get variant(){return t(X)},onclick:()=>R(Y),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Q))),n(ct,ut)},$$slots:{default:!0}})}}),n(q,T)},children:(q,T)=>{var w=Je(),N=yt(w);ze(N,()=>Fe,(X,ct)=>{ct(X,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Q=l(N,2),Y=B(Q,!0);s(()=>o(Y,_())),n(q,w)},$$slots:{footer:!0,default:!0}}),Xt(vt)}var Qe=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Xe=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,$){const D=we();if(new.target)return jt({component:ua,...it});Qt($,!0);const H=()=>j(ct,"$storedInstance$",r),st=()=>j(ee,"$deviceGrantSupported$",r),_=()=>j(ne,"$instanceSetupSupported$",r),k=()=>j(pt,"$isAuthenticating$",r),b=()=>j(ut,"$isCancelling$",r),J=()=>j(te,"$deviceFlow$",r),R=()=>j(_t,"$cancelOutcome$",r),vt=()=>j(ae,"$error$",r),[r,q]=Ie();let T=K($,"compact",7,!1),w=K($,"onCancel",7);const N=`${D}-host`,Q=`${D}-host-help`,Y=`${D}-host-error`,X=`${D}-token`,ct=Rt(),pt=Yt(),ut=Ve(),_t=Re(),te=Zt(),ee=Ye(),ae=Ze(),ne=je();let bt=kt(Ge(Rt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>qe(t(bt))),wt=g(()=>t(ft)||t(p)===H()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||M(bt,c,!0)}),Bt(()=>{_()||M(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Yt.select(e)&&Zt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||W.dispatch(He(t(p)))}function se(){M(St,!0),M(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(Me(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),M(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(Vt()),M(ft,!0))}function oe(){M(ft,!1)}function le(){b()||W.dispatch(Vt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(X)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),V()},get onCancel(){return w()},set onCancel(c){w(c),V()},$set:Jt,$on:(c,e)=>Nt($,c,e)},mt=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E(mt);{var ve=e=>{var a=Qe(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Xe(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return J().userCode},get verificationUri(){return J().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s(m=>o(d,m),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var f=l(u,2),G=B(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);Wt(f,{get for(){return N},children:(d,m)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),m=g(()=>!t(p)||void 0),y=g(()=>t(p)?Q:`${Q} ${Y}`);Mt(G,{get id(){return N},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t(m)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){M(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var m=aa(),y=B(m,!0);s(L=>{qt(m,"id",Y),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,m)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var m=na(),y=yt(m),L=E(y);Wt(L,{get for(){return X},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var $t=l(L,2);{let v=g(()=>!_());Mt($t,{get id(){return X},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){M(tt,U,!0)}})}var ht=l($t,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),Z=E(A);{let v=g(()=>!t(re));z(Z,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(Z,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,m)},Et=d=>{var m=ra(),y=E(m);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(Z=>o(A,Z),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(Z=>o(A,Z),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var $t=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(Z=>o(A,Z),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P($t,F=>{w()&&F(ht)})}O(m),n(d,m)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{qt(S,"id",Q),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&J()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},me=e=>{var a=la(),u=E(a),f=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>R()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{R()==="cancelled"?e(ge):(R()==="already-started"||R()==="failed")&&e(me,1)})}var $e=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P($e,e=>{vt()&&e(he)})}O(mt)}s(()=>De(mt,1,Te(T()?"space-y-2":"space-y-4"))),n(it,mt);var xe=Xt(de);return q(),xe}export{ua as G,Ne as M};
@@ -0,0 +1,6 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BAGVOK-j.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/D9jYN6_J.js","/app/immutable/chunks/7eL9Pgig.js","/app/immutable/chunks/Cx31i8ng.js","/app/immutable/chunks/T9tywf_e.js","/app/immutable/chunks/B4gIvcP2.js","/app/immutable/chunks/Bgw3O9rE.js","/app/immutable/chunks/C_EpV6jU.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BfbZn9QX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/V9qci_dz.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/0qEvU7Aj.js","/app/immutable/chunks/Dkva_evl.js","/app/immutable/chunks/DknPpgEW.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DZyAzxxC.js","/app/immutable/chunks/OPvMR-5p.js","/app/immutable/chunks/DHROL4K5.js","/app/immutable/chunks/B1U_DCBw.js","/app/immutable/chunks/IRbjhecv.js","/app/immutable/chunks/Big_dnEI.js","/app/immutable/chunks/CAUaU8Wh.js","/app/immutable/chunks/d-Ep-sfP.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DtAyUyC0.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/DZ3SUe8R.js","/app/immutable/chunks/DYnCJwSs.js","/app/immutable/chunks/BOyF7pe9.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/ftma9Ybn.js","/app/immutable/chunks/CQbtnalz.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BO8NImWp.js","/app/immutable/chunks/DKTqwHrN.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BWAGtvpD.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DF1uIj8u.js","/app/immutable/chunks/asQ_ruFQ.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DRZKWEq3.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/A8_BT67P.js","/app/immutable/chunks/C3NeTp2u.js","/app/immutable/chunks/DzGNgfrZ.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DTSEdINd.js","/app/immutable/chunks/DByMRbHr.js","/app/immutable/chunks/CXVUfxHv.js","/app/immutable/chunks/CguBowm8.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DDySjsub.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/dBZS3-kp.js","/app/immutable/chunks/DOKxXiSI.js","/app/immutable/chunks/ChNPgGKQ.js","/app/immutable/chunks/etVaBLxV.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/B79pUPc3.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/DcZKw8cP.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/CswFIiBb.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css"])))=>i.map(i=>d[i]);
2
+ var Ua=Object.defineProperty;var Ba=(a,t,r)=>t in a?Ua(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r;var dt=(a,t,r)=>Ba(a,typeof t!="symbol"?t+"":t,r);import{bo as C,t as rt,bq as y,by as nt,b as st,bs as Va,bu as Jt,_ as ka}from"./D9jYN6_J.js";import{bs as ot,a5 as N,aD as e,bA as T,b_ as X,W,bn as it,c9 as E,aA as x,aB as B,ca as yt,bk as ya,c6 as Ka,cd as Ht,bV as oe,bS as z,ay as Ee,bl as me,bO as be,ai as xa,a7 as xt,c0 as ja,bf as Ot,bH as O,aw as Be,aj as Se,aC as Ga,c3 as ft,bb as St,aF as Ya,br as Za,bj as Ja}from"./DYhIMPy1.js";import{i as re}from"./7eL9Pgig.js";import{e as tt,g as Ut,i as Qa}from"./Bgw3O9rE.js";import{c as Xa,e as $a,f as Pe,g as pt,s as $}from"./C_EpV6jU.js";import{aO as er,cY as tr,M as ar,aw as rr,dm as nr,W as sr,dr as Aa,C as or,a0 as ir}from"./asQ_ruFQ.js";import{t as Bt}from"./Big_dnEI.js";import{a9 as cr,ao as lr,A as dr,n as ur,a5 as Ia,s as Vt,a4 as Kt,aJ as At,b5 as Ma,m as fr,aL as pr,b4 as mr}from"./B79pUPc3.js";import{l as Qt}from"./DhHSeQsG.js";import{bV as gr,bS as vr,bT as Xt,aB as hr}from"./A8_BT67P.js";import{t as ut,P as br}from"./IRbjhecv.js";import{F as qt}from"./Dkva_evl.js";import{f as jt}from"./0qEvU7Aj.js";import{t as Ve,v as wr,I as Ct,F as $t,c as ea}from"./B4gIvcP2.js";import{rx as Ca,Iz as we,mp as _r,fE as kr,nj as yr,uk as xr,a as Ar,vW as Ir,s$ as Mr,rf as Cr,g as Sr,bd as ta,v1 as Rr,sG as Er,v3 as Pr}from"./BfbZn9QX.js";import{c as Tr,l as bt}from"./ChTqQfQN.js";import{o as Fr}from"./DDySjsub.js";import{aN as Lr,aO as aa,by as Wr,ax as Nr,bx as Hr,aC as Or,c_ as qr,cO as Dr,F as wt,au as ra,bG as zr,bB as Ur}from"./CAUaU8Wh.js";import{l as Br}from"./C3NeTp2u.js";import{p as Vr,c_ as _t,cZ as na,ao as Kr,d0 as Sa,a8 as Et,aE as Ra,aV as jr,aw as Gr,a7 as sa,r as Yr,aM as Zr,aR as Jr,F as Qr}from"./ChNPgGKQ.js";import{s as Rt}from"./Cx31i8ng.js";import{b as at}from"./BaIAhI85.js";import{s as Xr}from"./BsieX9dN.js";import{c as $r,u as en,s as tn,a as an}from"./DfxQWSVU.js";import{z as oa,x as ia}from"./BAGVOK-j.js";import{g as ca}from"./T9tywf_e.js";import{m as la}from"./etVaBLxV.js";const rn=new Set(["failed","blocked","needs_attention","in_progress"]),nn={failed:{visual:"icon",icon:Dr,className:"text-foreground"},blocked:{visual:"icon",icon:qr,className:"text-danger"},needs_attention:{visual:"icon",icon:Or,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Hr,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:Nr,className:"text-success"},pr_queued:{visual:"icon",icon:Wr,className:"text-info"},pr_ready:{visual:"icon",icon:aa,className:"text-success"},pr_open:{visual:"icon",icon:aa,className:"text-info"},pr_merged:{visual:"icon",icon:Lr,className:"text-purple-500"}};function sn(a){switch(a){case"failed":return C.workspace_statusIcon_failed_label();case"blocked":return C.workspace_statusIcon_blocked_label();case"needs_attention":return C.workspace_statusIcon_needsAttention_label();case"in_progress":return C.workspace_statusIcon_inProgress_label();case"waiting":return C.workspace_taskStatus_waiting_label();case"unread":return C.layout_activeCard_unread_header();case"not_started":return C.workspace_statusIcon_notStarted_label();case"idle":return C.workspace_statusIcon_idle_label();case"complete":return C.workspace_statusIcon_complete_label();case"pr_queued":return C.workspace_statusIcon_prQueued_label();case"pr_ready":return C.workspace_statusIcon_prReady_label();case"pr_open":return C.workspace_statusIcon_prOpen_label();case"pr_merged":return C.workspace_statusIcon_prMerged_label()}}function on(a){const t=Ca(a.displayStatus)?a.displayStatus:"not_started";return rn.has(t)?t:a.attention==="unread"?"unread":a.waiting===!0?"waiting":t}function Ea(a){const t=a==="waiting"||a==="unread"||Ca(a)?a:"not_started",r=sn(t);return{state:t,...nn[t],label:r,tooltip:r,accessibleName:r}}var cn=B('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),ln=B("<span><!></span>");function Pa(a,t){if(new.target)return rt({component:Pa,...a});ot(t,!0);let r=y(t,"status",7),d=y(t,"size",7,14),c=y(t,"decorative",7,!1),u=y(t,"class",7);const s=E(()=>Ea(r()));var o={get status(){return r()},set status(m){r(m),x()},get size(){return d()},set size(m=14){d(m),x()},get decorative(){return c()},set decorative(m=!1){c(m),x()},get class(){return u()},set class(m){u(m),x()},$set:nt,$on:(m,w)=>st(t,m,w)},v=ln(),_=N(v);{var b=m=>{var w=cn();W(m,w)},A=m=>{wt(m,{get icon(){return e(s).icon},class:"size-full!"})};re(_,m=>{e(s).visual==="dot"?m(b):e(s).icon&&m(A,1)})}return T(v),X(m=>{Pe(v,1,m,"svelte-14zk5l0"),pt(v,`width: ${d()??""}px; height: ${d()??""}px;`),$(v,"role",c()?void 0:"img"),$(v,"aria-label",c()?void 0:e(s).accessibleName),$(v,"aria-hidden",c()?"true":void 0),$(v,"title",c()?void 0:e(s).tooltip),$(v,"data-workspace-status",e(s).state),$(v,"data-workspace-status-visual",e(s).visual),$(v,"data-workspace-status-icon",e(s).icon?.iconName)},[()=>Xa($a("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",e(s).className,u()))]),W(a,v),it(o)}const Gt=6e4,Yt=60*Gt,Zt=24*Yt,da=30*Zt;function dn(a,t=new Date){if(a==null)return null;const r=a instanceof Date?a:new Date(a),d=r.getTime(),c=t.getTime();if(!Number.isFinite(d)||!Number.isFinite(c))return null;const u=Math.max(0,c-d);let s;u<Gt?s="<1m":u<Yt?s=`${Ve(Math.floor(u/Gt))}m`:u<Zt?s=`${Ve(Math.floor(u/Yt))}h`:u<da?s=`${Ve(Math.floor(u/Zt))}d`:s=`${Ve(Math.floor(u/da))}mo`;const o=d>c?t:r,v=wr(o,{now:t});return v?{compact:s,accessible:v,dateTime:r.toISOString()}:null}var un=B('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),fn=B('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),pn=B('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),mn=B('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),ua=B('<div role="listitem"><!></div>'),gn=B('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),vn=B('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),hn=B('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),bn=B('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),wn=B('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),_n=B('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),kn=B('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),yn=B('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),xn=B('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function An(a,t){if(new.target)return rt({component:An,...a});ot(t,!0);const r=()=>Jt(F,"$workspaceAgents$",c),d=()=>Jt(i,"$prMonitors$",c),[c,u]=Va(),s=Tr("WorkspaceHoverCard");let o=y(t,"workspace",7),v=y(t,"isLoading",7,!1),_=y(t,"activeAgentIds",23,()=>[]),b=y(t,"loadAgentSessions",7,!0),A=y(t,"onkeydown",7),m=y(t,"staticData",7,!1);const w=Ht("");function q(){return m()?Ht([]):er(w)}function V(){return m()?Ht([]):tr(w)}const F=q(),i=V();yt(()=>w.set(o()?.id??""));let p=oe(0);ya(()=>Qt.subscribe(()=>Ka(p)));let k=E(()=>o()?.agentSummary?.agentIds??[]),P=E(()=>(e(p),o()?Qt.getStreamingAgentIdsForWorkspace(o().id):[])),U=null,K=new Set;yt(()=>{if(!o()||!b())return;const l=String(o().id);U!==l&&(U=l,K=new Set);for(const M of new Set([...e(k).slice(0,6),..._(),...e(P)]))K.has(M)||(we.dispatch(_r(l,M)),K.add(M))});function ne(l){return[l.name,l.context,l.questionMeta?.accessible,l.updated.accessible].filter(Boolean).join(". ")}function Le(l){return l?l.kind==="attention"?l.attention.reason?.trim()||null:"text"in l&&l.text.trim()||null:null}function le(l){return dn(l.lastActivity||l.updatedAt||l.createdAt)??{compact:"—",accessible:C.workspace_hoverCard_noRecentActivity_label()}}function ie(l){const M=String(l.status).toLowerCase(),L=yr(l),Q=lr(l),ye=Q==="question"?gr(l):null,he=Le(rr.select(we.state,String(l.id)));let xe,Ne,Ae,n,f,H,S=!1;if(Q==="question"){xe="attention",Ne="question",Ae=ye?.questions[0]?.question.trim()||he||C.workspace_hoverCard_question_label(),n="question",f=1;const G=ye?.questions.length??0;G>1&&(H={compact:`${Ve(1)}/${Ve(G)}`,accessible:C.chat_questionWizard_stepCounter_label({current:1,total:G})})}else if(Q==="attention-discussion")xe="attention",Ne="discussion",Ae=L?.reason?.trim()||C.chat_agentCard_attentionDiscussion_label(),n="attention-discussion",f=1;else if(Q==="attention-blocker"||M==="blocked")xe="attention",Ne="blocker",Ae=L?.reason?.trim()||C.chat_agentCard_attentionBlocker_label(),n="attention-blocker",f=0;else if(l.hasUnread)xe="attention",Ne="unread",Ae=he||C.chat_newMessagesDivider_label(),S=!!he,n="unread",f=2;else if(l.isStreaming||l.isProcessing||_().includes(String(l.id))||e(P).includes(String(l.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(M))xe="active",Ae=he||C.workspace_devScripts_running_label(),S=!!he,n=l.isProcessing?"responding":"running",f=3;else if(["waiting","pending","queued","starting"].includes(M))xe="waiting",Ae=he||C.workspace_taskStatus_waiting_label(),S=!!he,n="waiting",f=4;else return null;const Y=l.agentMetadata??l.metadata;return{id:String(l.id),name:l.name?.trim()||C.workspace_fileChanges_agent_label(),group:xe,attentionKind:Ne,avatarState:n,specialist:Y?.specialist,context:Ae,questionMeta:H,contextIsPreview:S,updated:le(l),priority:f}}let ge=E(()=>{const l=o()?.agentSummary,M=new Map;if(Array.isArray(l?.agents))for(const L of l.agents)L&&typeof L=="object"&&typeof L.id=="string"&&M.set(L.id,L.parentAgentId);return r().filter(L=>{const Q=M.get(String(L.id));return!(kr(L)!=="topLevel"||typeof Q=="string"&&Q||L.pendingDeleteAt||L.retiredAt||String(L.status).toLowerCase()==="deleted")})}),_e=E(()=>e(ge).map(ie).filter(l=>l!==null).sort((l,M)=>l.priority-M.priority)),Ge=E(()=>e(_e).slice(0,6)),I=E(()=>Math.max(0,e(_e).length-6)),ee=E(()=>o()?.repositoryName?o().repositoryOwner?`${o().repositoryOwner} / ${o().repositoryName}`:o().repositoryName:C.workspace_hoverCard_localRepository_label()),Re=E(()=>on(o()??{})),ve=E(()=>Ea(e(Re))),ce=E(()=>o()?.statusMessage?.trim()||"");function ke(l){if(!l)return null;const M=l.activePullRequest??l.pullRequests?.[0]??null;return M||(l.prStatus?{id:`legacy-pr-${l.prNumber??"workspace"}`,number:l.prNumber??0,url:l.prUrl??"",title:C.workspace_hoverCard_pullRequest_label(),status:l.prStatus,createdAt:l.updatedAt,updatedAt:l.updatedAt}:null)}let We=E(()=>o()?m()?ke(o()):nr.select(we.state,o().id)??ke(o()):null),de=E(()=>{if(!o()||ar(o()))return[];const l=o().repositoryOwner&&o().repositoryName?`${o().repositoryOwner}/${o().repositoryName}`:void 0;return cr({workspacePRs:o().pullRequests,activePR:e(We),monitors:d(),workspaceRepo:l,buildPrUrl:(M,L)=>Vr(M,o().repositoryOwner,o().repositoryName,L),getDisplayTitle:M=>M.title})}),Ze=E(()=>e(de).slice(0,3)),Te=E(()=>Math.max(0,e(de).length-3)),se=E(()=>e(_e).length>0),qe=E(()=>e(de).length>0),h=E(()=>e(se)||e(qe));function g(l){const M=l.resource?.repository.provider==="gitlab"?`${l.repo} !${l.number}`:l.repo?C.workspace_card_prBadge_repoLine_tooltip({repo:l.repo,number:l.number}):C.workspace_card_prBadge_label({number:` #${l.number}`});return[sr(M,l),l.title,l.details].filter(Boolean).join(`
3
+ `)}function J(l,M){if(l.stopPropagation(),!o()||!b())return;const L=o().id;Br.select(we.state)!==L&&Fr(L).catch(Q=>{s.warn("Failed to switch workspace for hover-card agent",{agentId:M,error:Q})}),we.dispatch(xr(L,{agentId:M}))}function D(l,M){if(l.stopPropagation(),!o()||!M.url)return;const L=o().id;ka(async()=>{const{handleLink:Q}=await import("./BAGVOK-j.js").then(ye=>ye.H);return{handleLink:Q}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]),import.meta.url).then(({handleLink:Q})=>Q(M.url,{workspaceId:L,event:l}))}var ae={get workspace(){return o()},set workspace(l){o(l),x()},get isLoading(){return v()},set isLoading(l=!1){v(l),x()},get activeAgentIds(){return _()},set activeAgentIds(l=[]){_(l),x()},get loadAgentSessions(){return b()},set loadAgentSessions(l=!0){b(l),x()},get onkeydown(){return A()},set onkeydown(l){A(l),x()},get staticData(){return m()},set staticData(l=!1){m(l),x()},$set:nt,$on:(l,M)=>st(t,l,M)},ue=xn(),j=N(ue);{var Ie=l=>{var M=un(),L=N(M),Q=N(L),ye=N(Q);ut(ye,{class:"h-7 min-w-0 max-w-64 flex-1"});var he=z(ye,2);ut(he,{class:"h-5 w-20 shrink-0"}),T(Q);var xe=z(Q,2);ut(xe,{class:"h-4 w-40"});var Ne=z(xe,2);ut(Ne,{class:"mt-2 h-10 w-full"}),T(L);var Ae=z(L,4),n=N(Ae),f=N(n);ut(f,{class:"h-10 w-full"}),T(n);var H=z(n,2),S=N(H);ut(S,{class:"h-10 w-full"}),T(H),T(Ae),T(M),W(l,M)},Fe=l=>{var M=yn(),L=Ee(M);let Q;var ye=N(L),he=N(ye),xe=N(he),Ne=me(xe,!0),Ae=z(xe,2),n=N(Ae),f=me(n,!0),H=z(n);Pa(H,{get status(){return e(Re)},size:16,decorative:!0}),T(Ae),T(he);var S=z(he,2),Y=me(S,!0),G=z(S,2);{var te=pe=>{var ze=fn(),It=me(ze,!0);tt(ze,(Mt,Pt)=>Bt?.(Mt,Pt),()=>e(ce)),X(()=>be(It,e(ce))),W(pe,ze)};re(G,pe=>{e(ce)&&pe(te)})}T(ye),T(L);var He=z(L,2);{var fe=pe=>{var ze=kn(),It=z(Ee(ze),2),Mt=N(It);{var Pt=Je=>{var Ke=vn(),Ye=N(Ke);Ut(Ye,21,()=>e(Ge),Z=>Z.id,(Z,R)=>{var Me=ua(),Qe=N(Me);{let Xe=E(()=>ne(e(R)));jt(Qe,{variant:"plain",wrapContent:!1,class:"grid h-auto! min-h-8 w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] items-start justify-normal gap-x-2 gap-y-0 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return e(Xe)},"data-workspace-hover-card-agent-row":!0,get"data-agent-group-row"(){return e(R).group},get"data-attention-kind"(){return e(R).attentionKind},get onkeydown(){return A()},onclick:je=>J(je,e(R).id),children:(je,mt)=>{var Oe=mn(),Ce=Ee(Oe),Ue=N(Ce);{let et=E(()=>e(R).specialist??null);dr(Ue,{get agentId(){return e(R).id},variant:"compact",get state(){return e(R).avatarState},get specialist(){return e(et)}})}T(Ce);var ct=z(Ce),Lt=me(ct,!0),$e=z(ct),Wt=me($e,!0),gt=z($e,2),vt=N(gt),Nt=me(vt,!0);tt(vt,(et,lt)=>Bt?.(et,lt),()=>e(R).context);var Oa=z(vt);{var qa=et=>{var lt=pn(),Da=N(lt),za=me(Da,!0);T(lt),X(()=>{$(lt,"aria-label",e(R).questionMeta.accessible),be(za,e(R).questionMeta.compact)}),W(et,lt)};re(Oa,et=>{e(R).questionMeta&&et(qa)})}T(gt),X(()=>{be(Lt,e(R).name),$($e,"datetime",e(R).updated.dateTime),$($e,"aria-label",e(R).updated.accessible),be(Wt,e(R).updated.compact),$(gt,"data-workspace-hover-card-agent-preview",e(R).contextIsPreview||void 0),be(Nt,e(R).context)}),W(je,Oe)},$$slots:{default:!0}})}T(Me),W(Z,Me)}),T(Ye);var Tt=z(Ye,2);{var Ft=Z=>{var R=gn(),Me=N(R),Qe=me(Me,!0),Xe=z(Me,2);wt(Xe,{get icon(){return ra},size:10}),T(R),X(je=>be(Qe,je),[()=>C.workspace_hoverCard_moreAgents_label({count:Ve(e(I))})]),W(Z,R)};re(Tt,Z=>{e(I)&&Z(Ft)})}T(Ke),X(Z=>$(Ke,"aria-label",Z),[()=>C.workspace_multiSelectSidebar_agentsTab_label()]),W(Je,Ke)};re(Mt,Je=>{e(se)&&Je(Pt)})}var Na=z(Mt,2);{var Ha=Je=>{var Ke=_n(),Ye=N(Ke);Ut(Ye,21,()=>e(Ze),Z=>Z.identity,(Z,R)=>{var Me=ua();{const mt=Oe=>{var Ce=hn(),Ue=Ee(Ce);wt(Ue,{get icon(){return e(R).statusIcon},size:16,get class(){return`shrink-0 justify-self-start ${e(R).foregroundClass??""}`}});var ct=z(Ue,2),Lt=me(ct,!0),$e=z(ct,2),Wt=me($e,!0),gt=z($e,2),vt=me(gt,!0);X(Nt=>{be(Lt,Nt),be(Wt,e(R).accessibleStateLabel),be(vt,e(R).numberLabel??`#${e(R).number}`)},[()=>e(R).title||(e(R).resource?.repository.provider==="gitlab"?C.workspace_hoverCard_mergeRequest_label():C.workspace_hoverCard_pullRequest_label())]),W(Oe,Ce)};var Qe=N(Me);{var Xe=Oe=>{{let Ce=E(()=>g(e(R)));jt(Oe,{variant:"plain",wrapContent:!1,class:"grid h-auto! w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center justify-normal gap-x-2 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return e(Ce)},"data-workspace-hover-card-pr-row":!0,get"data-pr-identity"(){return e(R).identity},get"data-pr-status"(){return e(R).status},get onkeydown(){return A()},onclick:Ue=>D(Ue,e(R)),children:(Ue,ct)=>{mt(Ue)},$$slots:{default:!0}})}},je=Oe=>{var Ce=bn(),Ue=N(Ce);mt(Ue),T(Ce),X(()=>{$(Ce,"data-pr-identity",e(R).identity),$(Ce,"data-pr-status",e(R).status)}),W(Oe,Ce)};re(Qe,Oe=>{e(R).url?Oe(Xe):Oe(je,-1)})}T(Me)}X(mt=>$(Me,"aria-label",mt),[()=>e(R).url?void 0:g(e(R))]),W(Z,Me)}),T(Ye);var Tt=z(Ye,2);{var Ft=Z=>{var R=wn(),Me=N(R),Qe=me(Me,!0),Xe=z(Me,2);wt(Xe,{get icon(){return ra},size:10}),T(R),X(je=>be(Qe,je),[()=>C.workspace_hoverCard_moreItems_label({count:Ve(e(Te))})]),W(Z,R)};re(Tt,Z=>{e(Te)&&Z(Ft)})}T(Ke),X((Z,R)=>{$(Ke,"aria-label",Z),$(Ye,"aria-label",R)},[()=>e(de).every(Z=>Z.resource?.repository.provider==="gitlab")?C.workspace_hoverCard_mergeRequests_label():e(de).some(Z=>Z.resource?.repository.provider==="gitlab")?C.workspace_hoverCard_reviews_label():C.workspace_hoverCard_pullRequests_label(),()=>e(de).every(Z=>Z.resource?.repository.provider==="gitlab")?C.workspace_hoverCard_mergeRequests_label():e(de).some(Z=>Z.resource?.repository.provider==="gitlab")?C.workspace_hoverCard_reviews_label():C.workspace_hoverCard_pullRequests_label()]),W(Je,Ke)};re(Na,Je=>{e(qe)&&Je(Ha)})}T(It),W(pe,ze)};re(He,pe=>{e(h)&&pe(fe)})}X(pe=>{Q=Pe(L,1,"min-w-0 px-5 pt-4",null,Q,{"pb-4":!e(h)}),be(Ne,pe),be(f,e(ve).label),be(Y,e(ee))},[()=>o().title||C.workspace_links_untitled_label()]),W(l,M)};re(j,l=>{v()||!o()?l(Ie):l(Fe,-1)})}T(ue),W(a,ue);var De=it(ae);return u(),De}const fa=800,Ts=175,In=300;function Mn(){let a=0,t=null;const r=new Set,d=new Set;function c(){return a>0||t!==null?0:fa}function u(){const o=c();r.forEach(v=>v(o))}function s(){t!==null&&(clearTimeout(t),t=null)}return{get currentOpenDelay(){return c()},subscribe(o){return r.add(o),o(c()),()=>r.delete(o)},notifyOpened(){const o=a===0&&t===null;s(),a+=1,o&&u()},notifyClosed(){a!==0&&(a-=1,!(a>0)&&(s(),t=setTimeout(()=>{t=null,u()},In)))},deferClose(o){return d.add(o),()=>d.delete(o)},settleDeferredCloses(){const o=[...d];d.clear(),o.forEach(v=>v())},reset(){const o=c()!==fa;s(),a=0,d.clear(),o&&u()}}}const Fs=Mn();function Dt(a){const t=Aa.select(we.state,a);return t!==void 0&&Cr(t)}function Cn(a,t){if(!Dt(a))return[];const r=vr.select(we.state,a),d=Xt.select(we.state,a),c=hr.select(we.state),u=[];for(let s=0;s<Ar;s+=1){const o=c[s],v=o&&o!==a?Aa.select(we.state,o):void 0;u.push({id:`assign-micro-key-${s+1}`,label:v?C.workspace_card_assignOccupiedMicroKey_label({number:Ve(s+1),title:v.title}):C.workspace_card_assignMicroKeyNumber_label({number:Ve(s+1)}),checked:r===s,closeOnSelect:!0,onClick:()=>{Dt(a)&&we.dispatch(Ir(s,a)),t()}})}return d!==null&&(u.push({type:"separator"}),u.push({id:"unassign-micro-key",label:C.workspace_card_unassignMicroKey_label(),onClick:()=>{Dt(a)&&Xt.select(we.state,a)===d&&we.dispatch(Mr(d)),t()}})),u}function Ls(a,{connected:t,onClose:r}){if(!t)return[];const d=Cn(a,r);if(d.length===0)return[];const c=d.filter(s=>"id"in s&&s.id!=="unassign-micro-key"),u=d.find(s=>"id"in s&&s.id==="unassign-micro-key");return[{id:"assign-micro-key",label:C.workspace_card_assignMicroKey_label(),icon:zr,onClick:()=>{},selection:"single",submenu:c},...u?[u]:[]]}var Sn=B('<div data-static-position="" role="tooltip"><!></div>'),pa=B('<div role="tooltip"><!></div>');function Rn(a,t){if(new.target)return rt({component:Rn,...a});ot(t,!0);let r=y(t,"id",7),d=y(t,"anchor",7),c=y(t,"position",7,"right"),u=y(t,"absolute",7,!1),s=y(t,"anchorElement",7,null),o=y(t,"staticPosition",7,!1),v=y(t,"class",7,""),_=y(t,"children",7),b=y(t,"onmouseenter",7),A=y(t,"onmouseleave",7),m=y(t,"onfocusin",7),w=y(t,"onfocusout",7);const q=$r(en()+2);tn(q);const V=an(q),F=8,i=4;let p=oe(null),k=oe(""),P=oe(void 0);const U=E(()=>c()==="bottom-right"||c()==="bottom-left"),K=E(()=>c()==="top"),ne=E(()=>o()?"relative":u()?"absolute":"fixed"),Le=E(()=>c()==="right"?{x:-4,y:0}:c()==="bottom"?{x:4,y:0}:e(K)?{x:0,y:4}:{x:0,y:-4});function le(h,g,J){return Math.max(g,Math.min(J,h))}let ie=null,ge=null;function _e(){return!ie?.isConnected||ge!==d()?!1:ie.style.getPropertyValue("anchor-name").includes(d())||getComputedStyle(ie).getPropertyValue("anchor-name").includes(d())}function Ge(){return s()?s():(_e()||(ie=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(h=>{const g=h.style.getPropertyValue("anchor-name"),J=getComputedStyle(h).getPropertyValue("anchor-name");return g.includes(d())||J.includes(d())})??null,ge=ie?d():null),ie)}function I(){if(o()||u()||!e(p))return;const h=Ge();if(!h)return;const g=h.getBoundingClientRect(),J=e(p).getBoundingClientRect(),D=window.innerWidth||document.documentElement.clientWidth,ae=window.innerHeight||document.documentElement.clientHeight,ue=J.width||e(p).offsetWidth,j=J.height||e(p).offsetHeight,Ie=Math.max(0,g.top-i-F),Fe=Math.max(0,ae-g.bottom-i-F),De=e(K)?!(Ie<j&&Fe>Ie):e(U)&&Fe<j&&Ie>Fe;let l=g.left,M=g.bottom+i,L=De?Ie:Fe;if(c()==="right"){const Q=g.left-i-F,ye=D-g.right-i-F;l=ye>=ue||ye>=Q?g.right+i:g.left-ue-i,M=g.top,L=Math.max(0,ae-F*2)}else c()==="bottom"?(l=g.left-ue-i,M=g.bottom-j):(e(K)||e(U))&&(c()==="bottom-left"?l=g.right-ue:e(K)&&(l=g.left+g.width/2-ue/2),M=De?g.top-Math.min(j,L)-i:g.bottom+i);l=le(l,F,Math.max(F,D-ue-F)),M=le(M,F,Math.max(F,ae-Math.min(j,L)-F)),O(P,`${L}px`),O(k,`left: ${l}px; top: ${M}px;`)}let ee=!1;async function Re(){ee||(ee=!0,await ja(),ee=!1,I())}let ve=null;function ce(){ve||(ve=Xr(()=>{ve=null,I()}))}function ke(h){const g=s()??(_e()?ie:null);g&&h.target instanceof Node&&!h.target.contains(g)||ce()}yt(()=>{const h=e(p),g=s();o()||u()||!h||!g||Re()}),ya(()=>{if(o())return;let h=null;return Re().then(()=>{if(!u()&&typeof ResizeObserver<"u"){h=new ResizeObserver(ce),e(p)&&h.observe(e(p));const g=Ge();g&&h.observe(g)}}),window.addEventListener("resize",ce),window.addEventListener("scroll",ke,!0),()=>{h?.disconnect(),window.removeEventListener("resize",ce),window.removeEventListener("scroll",ke,!0),ve?.(),ve=null}});var We={get id(){return r()},set id(h){r(h),x()},get anchor(){return d()},set anchor(h){d(h),x()},get position(){return c()},set position(h="right"){c(h),x()},get absolute(){return u()},set absolute(h=!1){u(h),x()},get anchorElement(){return s()},set anchorElement(h=null){s(h),x()},get staticPosition(){return o()},set staticPosition(h=!1){o(h),x()},get class(){return v()},set class(h=""){v(h),x()},get children(){return _()},set children(h){_(h),x()},get onmouseenter(){return b()},set onmouseenter(h){b(h),x()},get onmouseleave(){return A()},set onmouseleave(h){A(h),x()},get onfocusin(){return m()},set onfocusin(h){m(h),x()},get onfocusout(){return w()},set onfocusout(h){w(h),x()},$set:nt,$on:(h,g)=>st(t,h,g)},de=xt(),Ze=Ee(de);{var Te=h=>{var g=Sn(),J=N(g);Rt(J,()=>_()??Ot),T(g),at(g,D=>O(p,D),()=>e(p)),X(()=>{$(g,"id",r()),Pe(g,1,e(ne)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${V} `+v()),$(g,"data-surface-level",q)}),W(h,g)},se=h=>{var g=pa();let J;var D=N(g);Rt(D,()=>_()??Ot),T(g),at(g,ae=>O(p,ae),()=>e(p)),X(()=>{$(g,"id",r()),Pe(g,1,e(ne)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${V} `+v()),$(g,"data-surface-level",q),J=pt(g,"",J,{"position-anchor":d(),right:c()==="bottom"?"anchor(left)":void 0,left:c()==="right"?"anchor(right)":e(U)?"anchor(left)":e(K)?"anchor(center)":void 0,top:c()==="right"?"anchor(top)":e(U)?"anchor(bottom)":void 0,bottom:c()==="bottom"?"anchor(bottom)":e(K)?"anchor(top)":void 0,"margin-right":c()==="bottom"?"8px":void 0,"margin-left":c()==="right"?"8px":void 0,"margin-top":e(U)?"4px":void 0,"margin-bottom":e(K)?"4px":void 0,translate:e(K)?"-50% 0":void 0})}),Be("mouseenter",g,function(...ae){b()?.apply(this,ae)}),Be("mouseleave",g,function(...ae){A()?.apply(this,ae)}),Se("focusin",g,function(...ae){m()?.apply(this,ae)}),Se("focusout",g,function(...ae){w()?.apply(this,ae)}),Ct(1,g,()=>$t,()=>({tier:"fast",...e(Le),scale:.96})),Ct(2,g,()=>ea,()=>({tier:"fast"})),W(h,g)},qe=h=>{br(h,{zIndex:50,children:(g,J)=>{var D=pa();let ae;var ue=N(D);Rt(ue,()=>_()??Ot),T(D),at(D,j=>O(p,j),()=>e(p)),X(()=>{$(D,"id",r()),Pe(D,1,e(ne)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${V} `+v()),$(D,"data-surface-level",q),ae=pt(D,e(k),ae,{"max-height":e(P)})}),Be("mouseenter",D,function(...j){b()?.apply(this,j)}),Be("mouseleave",D,function(...j){A()?.apply(this,j)}),Se("focusin",D,function(...j){m()?.apply(this,j)}),Se("focusout",D,function(...j){w()?.apply(this,j)}),Ct(1,D,()=>$t,()=>({tier:"fast",...e(Le),scale:.96})),Ct(2,D,()=>ea,()=>({tier:"fast"})),W(g,D)},$$slots:{default:!0}})};re(Ze,h=>{o()?h(Te):u()?h(se,1):h(qe,-1)})}return W(a,de),it(We)}xa(["focusin","focusout"]);function kt(a,t){return t||/^(?:https?:|data:|blob:|workspace-asset:)/i.test(a.trim())}function En(a,t){if(t||!a)return a;const r=document.createElement("template");r.innerHTML=a;for(const d of r.content.querySelectorAll("img, video")){const c=d.getAttribute("src")||d.getAttribute("data-media-src")||"",u=[...d.querySelectorAll("source")];if(!kt(c,!1)||u.some(o=>!kt(o.getAttribute("src")||"",!1))){const o=document.createElement("img");o.setAttribute("alt",d.getAttribute("alt")||d.getAttribute("data-name")||""),o.setAttribute("data-media-unavailable","node-owned"),d.replaceWith(o);continue}d.removeAttribute("srcset");const s=d.getAttribute("poster");s&&!kt(s,!1)&&d.removeAttribute("poster")}return r.innerHTML}const Pn=[/(^|[^\\])\$(?!\$)(?=\S)(?:\\.|[^\\$\n])+?\$(?!\$)/,/(^|[^\\])\\\((?:\\.|[^\\\n])*?\\\)/,/^(?: {0,3})(?:\$\$|\\\[)/m,/^\s*[-*]\s*\[[ x]\]/m,/```/,/`[^`]+`/,/\|.*\|/,/\[.*\]\(.*\)/,/!\[.*\]\(.*\)/,/<[a-z][\s\S]*>/i,/^#{1,6}\s/m,/^\s*>\s/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/_[^_]+_/,/~~[^~]+~~/,/^[-*_]{3,}\s*$/m,/^\s*[-*+]\s/m,/^\s*\d+\.\s/m];function Tn(a){return a&&(Pn.some(t=>t.test(a))||or(a,"markdown"))?"static":"simple"}var Fn=B("<!> <!>",1);function Ta(a,t){if(new.target)return rt({component:Ta,...a});ot(t,!0);let r=y(t,"workspaceId",7),d=y(t,"canUseMedia",7),c=oe(null),u=oe(null),s=oe(!1),o=oe(!1);function v(k){O(c,{url:k.getAttribute("src")||"",name:k.getAttribute("alt")||void 0,opener:k},!0),O(s,!0)}function _(k){const P=na(k.getAttribute("href")||"",r());return P&&d()(P)?(O(c,{url:P,name:k.textContent?.trim()||void 0,opener:k,assetLink:!0},!0),O(s,!0),!0):b(k)}function b(k){const P=_t(k.getAttribute("href")||"",r());return!P||!d()(P.url)?!1:(O(u,{url:P.url,mimeType:P.mimeType,name:k.textContent?.trim()||void 0,opener:k},!0),O(o,!0),!0)}yt(()=>{e(u)&&!_t(e(u).url,r())&&(O(o,!1),O(u,null)),e(c)?.assetLink&&!na(e(c).url,r())&&(O(s,!1),O(c,null))});var A={openImage:v,openAsset:_,get workspaceId(){return r()},set workspaceId(k){r(k),x()},get canUseMedia(){return d()},set canUseMedia(k){d(k),x()},$set:nt,$on:(k,P)=>st(t,k,P)},m=Fn(),w=Ee(m);{var q=k=>{ur(k,{get imageUrl(){return e(c).url},get imageName(){return e(c).name},get openerElement(){return e(c).opener},showActionsMenu:!0,get open(){return e(s)},set open(P){O(s,P,!0)}})},V=E(()=>e(c)&&d()(e(c).url));re(w,k=>{e(V)&&k(q)})}var F=z(w,2);{var i=k=>{Ia(k,{get videoUrl(){return e(u).url},get videoName(){return e(u).name},get mimeType(){return e(u).mimeType},sourceKind:"workspace",get openerElement(){return e(u).opener},get open(){return e(o)},set open(P){O(o,P,!0)}})},p=E(()=>e(u)&&_t(e(u).url,r())&&d()(e(u).url));re(F,k=>{e(p)&&k(i)})}return W(a,m),it(A)}var Ln=B('<div class="flex items-center gap-2"><!> <!></div>'),Wn=Ga('<svg viewBox="0 0 24 24" class="size-10" fill="none"><rect x="3" y="5" width="18" height="14" rx="2" stroke="currentColor"></rect><path d="m10 9 5 3-5 3V9Z" fill="currentColor"></path></svg>'),Nn=B('<div class="absolute inset-0 flex items-center justify-center bg-muted text-muted-foreground" aria-hidden="true"><!></div> <video preload="metadata" playsinline="" tabindex="-1" aria-hidden="true"></video> <span class="absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20 motion-reduce:transition-none forced-colors:bg-transparent" aria-hidden="true"><span><svg viewBox="0 0 20 20" fill="currentColor"><path d="m7 5 7 5-7 5V5Z"></path></svg></span></span>',3),Hn=B("<div><!> <!></div>"),On=B('<div class="my-2 min-w-0 max-w-2xl" data-chat-video=""><!></div> <!>',1);function Fa(a,t){if(new.target)return rt({component:Fa,...a});ot(t,!0);let r=y(t,"source",7),d=y(t,"name",23,()=>C.chat_videoBlock_fromAgent_label()),c=y(t,"poster",7),u=y(t,"allowFileMedia",7,!0),s=y(t,"canOpenFile",7),o=y(t,"fluid",7,!1),v=y(t,"compact",7,!1),_=y(t,"compactPreview",7),b=oe(!1),A=oe(!1),m=oe(!1),w=oe(null);const q=E(()=>r().kind==="inline"?`data:${r().mimeType};base64,${r().data}`:r().url);function V(I){return kt(I,u()&&s()?.()!==!1)}const F=E(()=>!V(e(q))),i=E(()=>At(e(q))),p=E(()=>{if(!(!c()||!V(c()))){if(/^data:image\/(?:gif|jpeg|png|webp);base64,[a-z0-9+/=]+$/i.test(c()))return c();try{const I=new URL(c());return(I.protocol==="https:"||I.protocol==="workspace-file:")&&!I.username&&!I.password?c():void 0}catch{return}}});function k(){O(A,!0),O(m,!1)}var P={get source(){return r()},set source(I){r(I),x()},get name(){return d()},set name(I=C.chat_videoBlock_fromAgent_label()){d(I),x()},get poster(){return c()},set poster(I){c(I),x()},get allowFileMedia(){return u()},set allowFileMedia(I=!0){u(I),x()},get canOpenFile(){return s()},set canOpenFile(I){s(I),x()},get fluid(){return o()},set fluid(I=!1){o(I),x()},get compact(){return v()},set compact(I=!1){v(I),x()},get compactPreview(){return _()},set compactPreview(I){_(I),x()},$set:nt,$on:(I,ee)=>st(t,I,ee)},U=On(),K=Ee(U);let ne;var Le=N(K);{var le=I=>{Vt(I,{get name(){return d()},reason:"load-failed"})},ie=I=>{var ee=Ln(),Re=N(ee);{let ce=E(()=>e(i)?.path),ke=E(()=>e(i)?.workspaceId);Vt(Re,{get name(){return d()},reason:"load-failed",get path(){return e(ce)},get workspaceId(){return e(ke)}})}var ve=z(Re,2);Kt(ve,{get videoUrl(){return e(q)},get videoName(){return d()},get sourceKind(){return r().kind},get mimeType(){return r().mimeType}}),T(ee),W(I,ee)},ge=I=>{var ee=Hn();let Re;var ve=N(ee);{let We=E(()=>C.chat_videoBlock_play_ariaLabel({name:d()}));jt(ve,{wrapContent:!1,type:"button",variant:"ghost",size:"default",class:"relative block size-full cursor-pointer overflow-hidden rounded-lg border border-border bg-muted/40 p-0 shadow-(--elevation-raised) focus-visible:border-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 forced-colors:border",get"aria-label"(){return e(We)},"data-testid":"chat-video-snapshot",onclick:()=>{V(e(q))&&O(b,!0)},get ref(){return e(w)},set ref(de){O(w,de,!0)},children:(de,Ze)=>{var Te=xt(),se=Ee(Te);{var qe=g=>{var J=xt(),D=Ee(J);Rt(D,_),W(g,J)},h=g=>{var J=Nn(),D=Ee(J),ae=N(D);{var ue=l=>{var M=Wn();W(l,M)};re(ae,l=>{o()||l(ue)})}T(D);var j=z(D,2);j.muted=!0;var Ie=z(j,2),Fe=N(Ie),De=me(Fe);T(Ie),X(()=>{$(j,"src",e(q)),$(j,"poster",e(p)),Pe(j,1,`pointer-events-none absolute inset-0 size-full object-contain transition-opacity motion-reduce:transition-none ${e(p)||e(A)&&!e(m)?"opacity-100":"opacity-0"}`),Pe(Fe,1,`flex ${v()?"size-6":"size-11"} shrink-0 aspect-square items-center justify-center rounded-full border border-white/70 bg-black/60 text-white shadow-(--elevation-raised) forced-colors:border forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]`),Pe(De,0,`ml-0.5 ${v()?"size-3":"size-5"}`)}),Be("loadeddata",j,k),Be("error",j,()=>O(m,!0)),W(g,J)};re(se,g=>{_()?g(qe):g(h,-1)})}W(de,Te)},$$slots:{default:!0}})}var ce=z(ve,2);{var ke=We=>{Kt(We,{get videoUrl(){return e(q)},get videoName(){return d()},get sourceKind(){return r().kind},get mimeType(){return r().mimeType},triggerClass:"absolute right-1.5 top-1.5 opacity-0 transition-opacity focus-visible:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100"})};re(ce,We=>{_()||We(ke)})}T(ee),X(()=>{Pe(ee,1,`group relative aspect-video w-full max-w-2xl ${o()?"max-h-72":"max-h-40"}`),Re=pt(ee,"",Re,{height:_()?"100%":void 0,width:o()?"min(100%, calc(18rem * 16 / 9))":"min(100%, calc(10rem * 16 / 9))"})}),W(I,ee)};re(Le,I=>{e(F)?I(le):e(m)?I(ie,1):I(ge,-1)})}T(K);var _e=z(K,2);{var Ge=I=>{Ia(I,{get videoUrl(){return e(q)},get videoName(){return d()},get poster(){return e(p)},get sourceKind(){return r().kind},get mimeType(){return r().mimeType},get openerElement(){return e(w)},get open(){return e(b)},set open(ee){O(b,ee,!0)}})};re(_e,I=>{!e(m)&&!e(F)&&I(Ge)})}return X(()=>ne=pt(K,"",ne,{height:_()?"100%":void 0})),W(a,U),it(P)}const qn=/^\s*!\[([^\]\n]*)\]\((?:<)?((?:intent:\/\/local\/|workspace-file:\/\/|workspace-asset:\/\/)[^)\s>]+)(?:>)?\)\s*$/,Dn=/^ {0,3}(`{3,}|~{3,})(.*)$/;function ma(a,t){if(typeof a!="string"||!a||a!==a.trim())return null;if(a.startsWith("workspace-asset://"))return _t(a,t);if(a.startsWith("workspace-file://")){const d=At(a);if(!d||d.workspaceId!==t)return null;const c=Sa(a);return c?la(c,t):null}const r=a.startsWith("intent://")?a:`intent://local/file/${a}`;return la(r,t)}function zn(a,t){if(a.startsWith("workspace-file://")){const r=At(a);if(!r||r.workspaceId!==t)return!1;const d=Sa(a);return!!d&&!!Et(d,t)}return!!Et(a,t,{readOnly:!0})}function Un(a,t){return(t===0||!a[t-1].trim())&&(t===a.length-1||!a[t+1].trim())}function Bn(a,t,r){const d=r[0];return a.findIndex((c,u)=>{if(u<=t)return!1;const s=c.trim();return s.length>=r.length&&s.split("").every(o=>o===d)})}function Vn(a,t){const r=a.split(`
4
+ `),d=[];let c=[];const u=()=>{const s=c.join(`
5
+ `);s.trim()&&d.push({type:"markdown",content:s}),c=[]};for(let s=0;s<r.length;s+=1){const o=r[s].match(Dn);if(o){const w=Bn(r,s,o[1]);if(w>s){const q=r.slice(s,w+1);if(o[2].trim()==="ws-block:video")try{const V=JSON.parse(r.slice(s+1,w).join(`
6
+ `)),F=ma(V?.path,t);if(F){u(),d.push({type:"video",source:F,name:typeof V.path=="string"?V.path:void 0,poster:typeof V.poster=="string"?V.poster:void 0}),s=w;continue}}catch{}c.push(...q),s=w;continue}c.push(...r.slice(s));break}const _=!/^(?: {4}|\t)/.test(r[s])&&Un(r,s)?r[s].match(qn):null;if(!_){c.push(r[s]);continue}const[,b,A]=_,m=ma(A,t);m?(u(),d.push({type:"video",source:m,name:b||void 0})):A.startsWith("workspace-asset://")&&!Kr(A)||zn(A,t)?c.push(r[s]):c.push(`[${b}](${A})`)}return u(),d}function ht(a){return Ma(a.getAttribute("src")||"")}function zt(a){return a instanceof HTMLImageElement?a:a instanceof HTMLAnchorElement?a.querySelector("img"):null}function Kn(a,t){const r=a.getBoundingClientRect(),d=t.getBoundingClientRect();return{top:r.top-d.top+6,right:d.right-r.right+6}}function ga(a,t){const r=document.activeElement;return!!(r&&(r===a||r===a?.closest("a")||t?.contains(r)))}function jn(a,t){const r=a.getAttribute("src")||"",d=At(r)?.path??Ra(r,t)?.path;if(d)return d;if(r.startsWith("workspace-asset://")){const c=r.split(/[?#]/)[0].split("/").pop();if(c)return c}if(r&&!/^[a-z][a-z0-9+.-]*:/i.test(r)&&!r.startsWith("//"))try{return decodeURI(r)}catch{return r}return a.getAttribute("alt")||void 0}const La="data-image-sized",va=a=>typeof a=="number"&&Number.isInteger(a)&&a>0;function Gn(a){try{return encodeURI(a).replace(/%25/g,"%")}catch{return null}}function Yn(a){return a.startsWith("workspace-file://")?a.split(/[?#]/)[0]:a}function Zn(a,t,r){const d=new Map;for(const[c,u]of Object.entries(a)){if(!u||!va(u.width)||!va(u.height))continue;const s={width:u.width,height:u.height},o=new Set([c]),v=Gn(c);v&&o.add(v);for(const _ of[...o]){const b=Et(_,t);if(b&&o.add(b),r!==void 0){const A=jr(_,r);if(A){const m=Et(`intent://local/file/${A.split("/").map(encodeURIComponent).join("/")}`,t);m&&o.add(m)}}}for(const _ of o)d.has(_)||d.set(_,s)}return d}function Jn(a,t,r,d){if(!t||!a.includes("<img"))return a;const c=Zn(t,r,d);return c.size===0?a:a.replace(/<img\b(?:[^>"']|"[^"]*"|'[^']*')*>/gi,u=>{if(/\s(?:width|height)="/i.test(u))return u;const s=/\ssrc="([^"]*)"/i.exec(u);if(!s)return u;const o=Yn(s[1].replace(/&amp;/g,"&")),v=c.get(o);return v?u.replace(/\s*\/?>$/,` width="${v.width}" height="${v.height}" ${La}="">`):u})}function ha(a,t){let r=t,d,c=!1,u=!1;const s=new Map;function o(){for(const[b,{component:A,source:m}]of s)ft(A),a.contains(b)&&b.replaceWith(m);s.clear()}function v(){if(!u){for(const[b,{component:A}]of s)a.contains(b)||(ft(A),s.delete(b));if(r.enabled)for(const b of a.querySelectorAll("pre > code")){if(b.closest("[data-markdown-diagram]"))continue;const A=[...b.classList].find(F=>F.startsWith("language-"))?.slice(9);let m;if(A==="mermaid")m="mermaid";else if(A==="diagram"||A==="ws-block:diagram")m="diagram";else if(A==="ws-block")try{if(JSON.parse(b.textContent??"").type!=="diagram")continue;m="diagram"}catch{continue}else continue;const w=b.parentElement;if(!w)continue;if(!d){c||(c=!0,ka(()=>import("./dBZS3-kp.js"),__vite__mapDeps([70,2,1,3,71,52,72,54,16,9,11,12,13,14,4,15,17,29,23,8,10,7,55,20,21,22,56,6,53,50,19,18,24,45,32,42,40,51,57,58,59,60,61,62,63,73,74,0,5,25,26,27,28,30,31,33,34,35,36,37,38,39,41,43,44,46,47,48,49,64,65,66,67,68,69,75,76,77,78,79,80,81,82]),import.meta.url).then(F=>{d=F.default,c=!1,v()}).catch(F=>{c=!1,bt.error("Failed to load the Markdown diagram renderer",{error:F})}));return}const q=document.createElement("div");q.dataset.markdownDiagram=m,w.replaceWith(q);const V=St(d,{target:q,context:r.context,props:{kind:m,source:b.textContent??"",workspaceId:r.workspaceId}});s.set(q,{component:V,source:w})}}}const _=new MutationObserver(v);return _.observe(a,{childList:!0,subtree:!0}),queueMicrotask(v),{update(b){(r.enabled!==b.enabled||r.workspaceId!==b.workspaceId)&&o(),r=b,v()},destroy(){u=!0,_.disconnect(),o()}}}var Qn=B('<span class="min-w-0 max-w-full truncate"> </span>'),Xn=B('<span class="type-caption flex min-w-0 max-w-full items-start gap-2 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-loading-placeholder"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="flex min-w-0 flex-wrap items-baseline gap-x-1.5"><span> </span> <!></span></span>');function Wa(a,t){if(new.target)return rt({component:Wa,...a});ot(t,!0);let r=y(t,"name",7);var d={get name(){return r()},set name(m){r(m),x()},$set:nt,$on:(m,w)=>st(t,m,w)},c=Xn(),u=N(c),s=N(u);wt(s,{get icon(){return Ur},class:"size-3.5"}),T(u);var o=z(u,2),v=N(o),_=me(v,!0),b=z(v,2);{var A=m=>{var w=Qn(),q=me(w,!0);tt(w,(V,F)=>Bt?.(V,F),r),X(()=>be(q,r())),W(m,w)};re(b,m=>{r()&&m(A)})}return T(o),T(c),X(m=>be(_,m),[()=>C.ui_mediaLoadingPlaceholder_title_label()]),W(a,c),it(d)}const ba="markdown-image-frame";function $n(a,t){const r=new Map,d=new Map,c=new Map,u=[300,1e3];let s=!1;function o(i){let p=d.get(i);return p||(p={source:i.getAttribute("src")||"",workspaceId:t.getWorkspaceId(),retries:0,failureHandled:!1},d.set(i,p)),p}function v(i){const p=o(i);return!s&&a.contains(p.fallbackHost??i)&&p.workspaceId===t.getWorkspaceId()&&t.canUseMedia(p.source)&&!i.hasAttribute("data-media-unavailable")&&!i.hasAttribute("data-media-unsupported")&&sa(p.source)!==null}function _(i,p=!1){if(!v(i))return;const k=o(i),P=sa(k.source);if(!P)return;const U=k.fallbackHost,K=U?.contains(document.activeElement)??!1;if(k.failureHandled=!1,k.fallbackHost=void 0,p&&(k.retries=0),i.removeAttribute("src"),i.setAttribute("src",P),U){const ne=r.get(U);ne&&ft(ne),r.delete(U),U.replaceWith(i),q(),K&&a.contains(i)&&i.focus()}}function b(i){const p=o(i);s||!a.contains(i)||p.failureHandled||(p.failureHandled=!0,v(i)&&p.retries<u.length?p.timer=setTimeout(()=>{p.timer=void 0,_(i)},u[p.retries++]):w(i,"load-failed"))}function A(i){const p=i.parentElement;return p?.classList.contains(ba)?p:null}function m(i){const p=Number(i.getAttribute("width")),k=Number(i.getAttribute("height"));if(!(p>0&&k>0))return;const P=document.createElement("span");P.className=ba,P.style.aspectRatio=`${p} / ${k}`,P.style.setProperty("--image-aspect-ratio",`${p} / ${k}`),P.style.width=`min(${p}px, 100%)`,P.dataset.loaded="false",i.replaceWith(P),P.appendChild(i);const U=P.appendChild(document.createElement("span"));U.className="markdown-image-frame-placeholder",r.set(U,St(Wa,{target:U,props:{name:jn(i,t.getWorkspaceId())}}));const K=()=>{if(c.delete(i),s||!a.contains(P))return;P.dataset.loaded="true";const ne=r.get(U);ne&&(ft(ne),r.delete(U)),U.remove()};i.complete&&i.naturalWidth>0?K():(c.set(i,K),i.addEventListener("load",K,{once:!0}))}function w(i,p){const k=i.getAttribute("src")||i.getAttribute("data-media-src")||"",P=At(k),U=Ra(k,t.getWorkspaceId()),K=P?.path??U?.path,ne=P?.workspaceId??U?.workspaceId,Le=i.getAttribute("data-name")||i.getAttribute("alt")||K?.split("/").pop()||void 0,le=document.createElement(i instanceof HTMLVideoElement?"div":"span");le.className="media-unavailable-host",(A(i)??i).replaceWith(le),t.onMediaRemoved(i);let ie;if(i instanceof HTMLImageElement&&p==="load-failed"){const _e=o(i);_e.fallbackHost=le,v(i)&&(ie=()=>_(i,!0))}const ge=St(Vt,{target:le,props:{name:Le,reason:p,path:K,workspaceId:ne,onRetry:ie}});if(r.set(le,ge),i instanceof HTMLVideoElement){le.classList.add("flex","items-center","gap-2");const _e=le.appendChild(document.createElement("span"));r.set(_e,St(Kt,{target:_e,props:{videoUrl:k,videoName:Le,sourceKind:"workspace",mimeType:_t(k,t.getWorkspaceId())?.mimeType}}))}}function q(){if(!s){for(const i of a.querySelectorAll("img"))ht(i)&&!i.closest("a")&&(i.tabIndex=0,i.setAttribute("role","button")),!(i.hasAttribute("data-media-unsupported")||i.hasAttribute("data-media-unavailable"))&&(o(i),i.hasAttribute(La)&&!A(i)&&m(i),i.getAttribute("src")&&i.complete&&i.naturalWidth===0&&b(i));for(const i of a.querySelectorAll("[data-media-unsupported]"))w(i,"unsupported");for(const i of a.querySelectorAll("[data-media-unavailable]"))w(i,Gr(i));for(const[i,p]of d)a.contains(p.fallbackHost??i)||(p.timer!==void 0&&clearTimeout(p.timer),d.delete(i));for(const[i,p]of c)a.contains(i)||(i.removeEventListener("load",p),c.delete(i));for(const[i,p]of r)a.contains(i)||(ft(p),r.delete(i))}}function V(i){const p=i.target;(p instanceof HTMLImageElement||p instanceof HTMLVideoElement)&&(p instanceof HTMLImageElement?b(p):w(p,"load-failed"))}const F=new MutationObserver(q);return F.observe(a,{childList:!0,subtree:!0}),a.addEventListener("error",V,!0),queueMicrotask(q),{destroy(){s=!0,F.disconnect();for(const i of d.values())i.timer!==void 0&&clearTimeout(i.timer);d.clear();for(const[i,p]of c)i.removeEventListener("load",p);c.clear(),a.removeEventListener("error",V,!0);for(const i of r.values())ft(i);r.clear()}}}var es=B('<div class="image-actions-overlay absolute z-10 svelte-nzvuq5" data-testid="markdown-image-actions-overlay"><!></div>'),ts=B("<div></div>"),wa=B('<div role="group"><!> <!></div>'),as=B('<div><p class="whitespace-pre-wrap svelte-nzvuq5"> </p></div>'),rs=B("<!> <!>",1);function _a(a,t){if(new.target)return rt({component:_a,...a});ot(t,!0);const r=n=>{var f=xt(),H=Ee(f);{var S=G=>{var te=es(),He=N(te);{let fe=E(()=>e(se).getAttribute("src")||""),pe=E(()=>e(se).getAttribute("alt")||void 0);at(fr(He,{get imageUrl(){return e(fe)},get imageName(){return e(pe)},get open(){return e(h)},set open(ze){O(h,ze,!0)}}),ze=>O(g,ze,!0),()=>e(g))}T(te),at(te,fe=>O(J,fe),()=>e(J)),X(()=>pt(te,`top: ${e(qe).top??""}px; right: ${e(qe).right??""}px;`)),W(G,te)},Y=E(()=>e(se)&&ge(e(se).getAttribute("src")||""));re(H,G=>{e(Y)&&G(S)})}W(n,f)};let d=y(t,"content",7),c=y(t,"isStreaming",7,!1),u=y(t,"className",7,""),s=y(t,"workspaceId",23,()=>ca()?.workspaceId??void 0),o=y(t,"relativeMediaBase",7),v=y(t,"onCodeBlockAction",7),_=y(t,"onFileClick",7),b=y(t,"canOpenFile",7),A=y(t,"allowFileMedia",7,!0),m=y(t,"taskBlockRenderMode",7,"placeholder"),w=y(t,"chatImageThumbnails",7,!1),q=y(t,"forceExternalLinks",7,!1),V=y(t,"renderRichFencesAsCode",7,!1),F=y(t,"renderDiagrams",7,!1),i=y(t,"allowSanitizedHtml",7,!1),p=y(t,"media",7);const k=Yr(),P=Ya(),U=E(()=>Vn(d(),s())),K=E(()=>e(U).some(n=>n.type==="video")),ne=E(()=>!e(K)&&e(U).length===1&&e(U)[0].type==="markdown"?e(U)[0].content:d()),Le=E(()=>Tn(e(ne)));let le=oe(null),ie=oe("");function ge(n){return kt(n,A()&&b()?.()!==!1)}const _e=E(()=>En(e(ie),A()&&b()?.()!==!1)),Ge=E(()=>pr(e(_e),s(),mr)),I=E(()=>`<div class="markdown-content">${e(Ge)}</div>`);let ee=0;const Re=150;let ve=-1/0,ce=null,ke=null;async function We(n,f,H,S){try{const Y=await Zr(n,{...f,readOnly:!0});if(S!==ee)return;O(ie,Jn(Y,H,f?.workspaceId,f?.relativeMediaBase),!0)}catch(Y){if(S!==ee)return;bt.error("Failed to process markdown:",Y);const G=n.replace(/[&<>"']/g,te=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[te]||te);O(ie,`<p>${G}</p>`)}}function de(){if(!ke)return;const n=Re-(performance.now()-ve);if(n>0){ce=setTimeout(()=>{ce=null,de()},n);return}const f=ke;ke=null,ve=performance.now(),f()}function Ze(){ce!==null&&(clearTimeout(ce),ce=null),ke=null,ve=-1/0}yt(()=>{const n=e(ne),f={allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!0,taskBlockRenderMode:m(),workspaceId:s(),relativeMediaBase:o()??(s()&&s()!==Sr?"":void 0),renderRichFencesAsCode:V()||F(),processPrimitives:!F(),allowSanitizedHtml:i(),renderMath:!c(),workspaceFileVersion:k},H=p(),S=++ee,Y=()=>void We(n,f,H,S);c()?(ke=Y,ce===null&&de()):(Ze(),Y())});let Te=oe(void 0),se=oe(null),qe=oe(Za({top:0,right:0})),h=oe(!1),g=oe(void 0),J=oe(null);function D(n){if(n.type==="mouseover"&&ga(e(se),e(J)))return;const f=n.target,H=zt(f);if(H&&ht(H)&&ge(H.getAttribute("src")||"")){if(e(se)===H)return;O(se,H,!0),O(qe,Kn(H,n.currentTarget),!0)}else if(e(se)&&!e(h)){if(f instanceof Node&&e(J)?.contains(f))return;O(se,null)}}function ae(){!e(h)&&!ga(e(se),e(J))&&O(se,null)}function ue(n){const f=zt(n.target);!f||!ht(f)||!ge(f.getAttribute("src")||"")||(n.preventDefault(),n.stopPropagation(),D(n),O(h,!0))}function j(n){return $n(n,{getWorkspaceId:()=>s(),canUseMedia:ge,onMediaRemoved:f=>{e(se)===f&&O(se,null)}})}function Ie(n){const f=n.target,H=f.closest("a");if(!H&&f instanceof HTMLImageElement){const Y=f.getAttribute("src")||"";if(Ma(Y)&&ge(Y)){n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),e(Te)?.openImage(f);return}}if(H?.href){if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),e(Te)?.openAsset(H))return;const Y=l(n),G=s()?ta(s()):void 0;ia(H.href,{workspaceId:G,canOpenFile:b(),sourcePanelId:Y,event:n,rawHref:H.getAttribute("href")??void 0,...q()?{forceExternal:!0}:{}});return}const S=Jr(f.closest("[data-mention]"));if(S){const{type:Y,meta:G}=S;if(Y==="file"&&S.filePath){if(b()?.()===!1)return;n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();const te=S.filePath;bt.debug("[MarkdownViewer] File mention clicked",{filePath:te,meta:G});const He=l(n),fe=qt({event:n});if(_())_()(te,{line:S.line,openInAdjacentPanel:fe,sourcePanelId:He});else{const pe=s();pe&&we.dispatch(Rr(pe,te,{line:S.line,openInAdjacentPanel:fe,sourcePanelId:He}))}}else if(S.folderPath!==void 0){if(b()?.()===!1||!s())return;n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),we.dispatch(Er(s(),Qr(S.folderPath)))}else if(Y==="note"&&S.note){n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();const te=S.note.id;bt.debug("[MarkdownViewer] Note mention clicked",{noteId:te,meta:G});const He=l(n),fe=qt({event:n});if(S.note.workspaceId&&S.note.workspaceId!==s()){ia(ir(te,S.note.workspaceId),{workspaceId:s()?ta(s()):void 0,sourcePanelId:He,event:n});return}const pe=s();pe&&we.dispatch(Pr(pe,te,{openInAdjacentPanel:fe,sourcePanelId:He}))}}}function Fe(n){if(De(n),!n.defaultPrevented){if(n.target instanceof HTMLImageElement&&ht(n.target)&&(n.key==="Enter"||n.key===" ")){Ie(n);return}n.key!=="Enter"||!qt({event:n})||Ie(n)}}function De(n){const f=zt(n.target);!f||!ht(f)||!ge(f.getAttribute("src")||"")||e(g)?.handleCopy(n,f.getAttribute("src")||"")}function l(n){const f=n.target;if(f instanceof HTMLElement)return f.closest("[data-panel-id]")?.dataset.panelId}Ja(()=>{ee+=1,Ze()});var M={get content(){return d()},set content(n){d(n),x()},get isStreaming(){return c()},set isStreaming(n=!1){c(n),x()},get className(){return u()},set className(n=""){u(n),x()},get workspaceId(){return s()},set workspaceId(n=ca()?.workspaceId??void 0){s(n),x()},get relativeMediaBase(){return o()},set relativeMediaBase(n){o(n),x()},get onCodeBlockAction(){return v()},set onCodeBlockAction(n){v(n),x()},get onFileClick(){return _()},set onFileClick(n){_(n),x()},get canOpenFile(){return b()},set canOpenFile(n){b(n),x()},get allowFileMedia(){return A()},set allowFileMedia(n=!0){A(n),x()},get taskBlockRenderMode(){return m()},set taskBlockRenderMode(n="placeholder"){m(n),x()},get chatImageThumbnails(){return w()},set chatImageThumbnails(n=!1){w(n),x()},get forceExternalLinks(){return q()},set forceExternalLinks(n=!1){q(n),x()},get renderRichFencesAsCode(){return V()},set renderRichFencesAsCode(n=!1){V(n),x()},get renderDiagrams(){return F()},set renderDiagrams(n=!1){F(n),x()},get allowSanitizedHtml(){return i()},set allowSanitizedHtml(n=!1){i(n),x()},get media(){return p()},set media(n){p(n),x()},$set:nt,$on:(n,f)=>st(t,n,f)},L=rs(),Q=Ee(L);{var ye=n=>{var f=ts();Ut(f,21,()=>e(U),Qa,(H,S)=>{var Y=xt(),G=Ee(Y);{var te=fe=>{Fa(fe,{get allowFileMedia(){return A()},get canOpenFile(){return b()},get source(){return e(S).source},get name(){return e(S).name},get poster(){return e(S).poster}})},He=fe=>{_a(fe,{get content(){return e(S).content},get isStreaming(){return c()},get workspaceId(){return s()},get relativeMediaBase(){return o()},get onCodeBlockAction(){return v()},get onFileClick(){return _()},get canOpenFile(){return b()},get allowFileMedia(){return A()},get taskBlockRenderMode(){return m()},get chatImageThumbnails(){return w()},get forceExternalLinks(){return q()},get renderRichFencesAsCode(){return V()},get renderDiagrams(){return F()},get allowSanitizedHtml(){return i()},get media(){return p()}})};re(G,fe=>{e(S).type==="video"?fe(te):fe(He,-1)})}W(H,Y)}),T(f),X(()=>Pe(f,1,`markdown-video-segments ${u()??""}`,"svelte-nzvuq5")),W(n,f)},he=n=>{var f=wa();let H;var S=N(f);oa(S,()=>e(I));var Y=z(S,2);r(Y),T(f),tt(f,G=>j?.(G)),tt(f,(G,te)=>ha?.(G,te),()=>({enabled:F(),workspaceId:s(),context:P})),X(()=>H=Pe(f,1,`markdown-viewer streaming-content ${u()??""}`,"svelte-nzvuq5",H,{"chat-image-thumbnails":w()})),Se("click",f,Ie),Se("keydown",f,Fe),Be("copy",f,De),Se("contextmenu",f,ue),Se("mouseover",f,D),Se("focusin",f,D),Be("mouseleave",f,ae),W(n,f)},xe=n=>{var f=as(),H=N(f),S=me(H,!0);T(f),X(()=>{Pe(f,1,`markdown-viewer simple-content ${u()??""}`,"svelte-nzvuq5"),be(S,e(ne))}),W(n,f)},Ne=n=>{var f=wa();let H;var S=N(f);oa(S,()=>e(I));var Y=z(S,2);r(Y),T(f),at(f,G=>O(le,G),()=>e(le)),tt(f,G=>j?.(G)),tt(f,(G,te)=>ha?.(G,te),()=>({enabled:F(),workspaceId:s(),context:P})),X(()=>H=Pe(f,1,`markdown-viewer static-content ${u()??""}`,"svelte-nzvuq5",H,{"chat-image-thumbnails":w()})),Se("click",f,Ie),Se("keydown",f,Fe),Be("copy",f,De),Se("contextmenu",f,ue),Se("mouseover",f,D),Se("focusin",f,D),Be("mouseleave",f,ae),W(n,f)};re(Q,n=>{e(K)?n(ye):c()?n(he,1):e(Le)==="simple"&&!i()?n(xe,2):n(Ne,-1)})}var Ae=z(Q,2);return at(Ta(Ae,{get workspaceId(){return s()},canUseMedia:ge}),n=>O(Te,n,!0),()=>e(Te)),W(a,L),it(M)}xa(["click","keydown","contextmenu","mouseover","focusin"]);class Ws{constructor(t){dt(this,"container");dt(this,"previousFocus",null);dt(this,"firstFocusable",null);dt(this,"lastFocusable",null);dt(this,"handleKeyDown");this.container=t,this.handleKeyDown=this.onKeyDown.bind(this)}activate(){this.previousFocus=document.activeElement;const t=this.container.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');t.length>0&&(this.firstFocusable=t[0],this.lastFocusable=t[t.length-1],this.firstFocusable.focus()),document.addEventListener("keydown",this.handleKeyDown)}deactivate(){document.removeEventListener("keydown",this.handleKeyDown),this.previousFocus&&this.previousFocus.focus()}onKeyDown(t){t.key==="Tab"&&(!this.firstFocusable||!this.lastFocusable||(t.shiftKey?document.activeElement===this.firstFocusable&&(t.preventDefault(),this.lastFocusable.focus()):document.activeElement===this.lastFocusable&&(t.preventDefault(),this.firstFocusable.focus())))}}function Ns(a,t){const r=_=>{const b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(_);return b?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null},d=_=>{const[b,A,m]=[_.r,_.g,_.b].map(w=>(w=w/255,w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4)));return .2126*b+.7152*A+.0722*m},c=r(a),u=r(t);if(!c||!u)return bt.warn("Invalid color values for contrast check",{foreground:a,background:t}),{ratio:0,passes:{aa:!1,aaa:!1}};const s=d(c),o=d(u),v=(Math.max(s,o)+.05)/(Math.min(s,o)+.05);return{ratio:v,passes:{aa:v>=4.5,aaa:v>=7}}}export{Fa as C,Ws as F,Rn as H,_a as M,Ts as W,Wa as a,fa as b,An as c,Pa as d,Ns as e,Cn as f,Ls as g,Ea as h,on as r,Vn as s,Fs as w};
@@ -1,4 +1,4 @@
1
- import{g as fe}from"./BrTyn-oU.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./Z8gQAmFb.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./DOCWMdWU.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./DOKxXiSI.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,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:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{t as Ft,bq as D,bo as u,by as Ot,b as Dt}from"./D9jYN6_J.js";import{bs as Rt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as Gt,aA as R,c9 as L,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Ue,ay as U,ai as rr,aj as ar,bf as sr}from"./DYhIMPy1.js";import{i as W}from"./7eL9Pgig.js";import{I as or,g as Xe}from"./Bgw3O9rE.js";import{c as Ee}from"./DZyAzxxC.js";import{I as Fe,D as Ze,h as $t}from"./B4gIvcP2.js";import{f as Oe,c as gt,s as nr}from"./C_EpV6jU.js";import{b as xt}from"./BaIAhI85.js";import{F as Te,cM as ir,aq as lr,cF as bt,cW as Pt,c8 as cr}from"./CAUaU8Wh.js";import{f as we}from"./0qEvU7Aj.js";import"./Dkva_evl.js";import"./d-Ep-sfP.js";import{t as nt}from"./B79pUPc3.js";import{M as dr}from"./Big_dnEI.js";import{e as pr,W as _e}from"./BAGVOK-j.js";import{h as Ct,i as Et,g as Tt,P as At}from"./BWAGtvpD.js";import{C as ht}from"./1_fC7X8z.js";import{c as ur}from"./ChTqQfQN.js";import"./Cx31i8ng.js";import{d as vr}from"./etVaBLxV.js";import{Iz as _r}from"./BfbZn9QX.js";import{dC as mr}from"./asQ_ruFQ.js";import{S as et,k as fr,a as jt}from"./D3toWTag.js";import{R as qe,c as it,m as gr,bD as tt}from"./DOPeTAKk.js";import"./DF1uIj8u.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ft({component:St,...He});Rt(P,!0);const at=ur("SetupScriptAgent");let Ae=D(P,"repoPath",7),De=D(P,"onScriptGenerated",7),Re=D(P,"onClose",7),Ge=K(rt(crypto.randomUUID())),F=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(F,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(F,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(F,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(F,!1)}}function fe(s){De()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),R()},get onScriptGenerated(){return De()},set onScriptGenerated(s){De(s),R()},get onClose(){return Re()},set onClose(s){Re(s),R()},$set:Ot,$on:(s,v)=>Dt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),Me=c(be);pr(Me,{variant:"standard",get agentId(){return e(Ge)}});var ze=n(Me,2),je=S(ze,!0),he=n(ze,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(F)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=L(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return Re()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var G=br(),Q=S(G,!0);g(()=>m(Q,e(ae))),o(B,G)},se=B=>{var G=hr(),Q=c(G);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),Le=S(Se,!0);l(G),g(ye=>m(Le,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,G)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(F))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),G=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),Le=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(G,e(ie).name),m(Le,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(F)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),Gt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ut=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Ur=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Fr=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Dr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Rr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),Gr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Mr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),zr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),Lr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ft({component:Kr,...He});Rt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=L(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=L(()=>e(st)===a().id),$=L(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Mt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=U($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Fe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var M=n(x,2),ue=c(M);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=L(()=>!F());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(M),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=U($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),M=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return F()},onScriptGenerated:zt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=U(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var z=Be();g(ee=>m(z,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,z)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Ue(),z=U(oe);Ee(z,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Ue(),pt=U(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=U(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=U(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&F()?y(I):y(O,-1)})}g(y=>{Oe(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(M,e(Le))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Oe(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},De=t=>{var a=Fr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return F()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Fe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=L(()=>!F());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=U(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&F()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=L(()=>e(s)===qe),Z=L(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var z=Nt(),ee=c(z),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(z),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,z)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var M=n(x,2);{var ue=d=>{var p=Ut(),N=c(p),X=S(N,!0),H=n(N,2);{let V=L(()=>e(s)===B),Z=L(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var z=Nt(),ee=c(z),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(z),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(G).name,e(G).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,z)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(M,d=>{e(G)&&d(ue)})}var ve=n(M,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=L(()=>e(s)===`template-${e(p).id}`),X=L(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Ur(),A=c(Z),oe=c(A),z=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(z,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},Re=t=>{var a=Rr(),w=U(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Ue(),k=U(x);Ee(k,()=>At,(M,ue)=>{ue(M,{delayDuration:100,children:(ve,I)=>{var O=Ue(),y=U(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=U(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(z,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(z,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(z,ee)=>{var te=Dr(),ne=U(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(z,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},Ge=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Gr(),_=U($),i=c(_);De(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),Fe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Fe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Mr(),_=U($),i=c(_);De(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Oe(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let F=D(P,"repoPath",7,""),ae=D(P,"repositoryKey",7),me=D(P,"githubUrl",7,null),ie=D(P,"projectType",7,void 0),le=D(P,"repoConfigScript",7,null),C=D(P,"value",15,""),fe=D(P,"expanded",15,!1),ge=D(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=D(P,"scriptNameSource",15,"named"),xe=D(P,"isCustomScript",15,!1),be=D(P,"compact",7,!1),Me=D(P,"triggerClass",7,""),ze=D(P,"contentOnly",7,!1),je=D(P,"contentClass",7,""),he=D(P,"presentation",7,"editor"),de=D(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",G=L(()=>{const t=ae()??F(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=L(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(G)&&t.set(B,{content:e(G).content,label:e(G).name,source:e(G).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const Le=L(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=L(()=>e(v)||!e(s)?"custom":e(s)),Je=L(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(G)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=L(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Mt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function zt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??F();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(G);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&&lt(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var Lt={get repoPath(){return F()},set repoPath(t=""){F(t),R()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),R()},get githubUrl(){return me()},set githubUrl(t=null){me(t),R()},get projectType(){return ie()},set projectType(t=void 0){ie(t),R()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),R()},get value(){return C()},set value(t=""){C(t),R()},get expanded(){return fe()},set expanded(t=!1){fe(t),R()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),R()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),R()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),R()},get compact(){return be()},set compact(t=!1){be(t),R()},get triggerClass(){return Me()},set triggerClass(t=""){Me(t),R()},get contentOnly(){return ze()},set contentOnly(t=!1){ze(t),R()},get contentClass(){return je()},set contentClass(t=""){je(t),R()},get presentation(){return he()},set presentation(t="editor"){he(t),R()},get onchange(){return de()},set onchange(t){de(t),R()},$set:Ot,$on:(t,a)=>Dt(P,t,a)},yt=Ue(),Wt=U(yt);{var qt=t=>{var a=Ue(),w=U(a);{var j=T=>{var h=Ue(),$=U(h);{var _=x=>{var k=Ke(),M=c(k);Ae(M),l(k),g(()=>Oe(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),M=c(k);Ge(M),l(k),g(()=>Oe(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),M=c(k);Ge(M),l(k),g(()=>Oe(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Fe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=U(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${Me()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=zr(),k=U(x);Te(k,{get icon(){return bt},size:"xs"});var M=n(k,2),ue=S(M,!0),ve=n(M,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(Le))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=Lr(),x=c(f);Ge(x),l(f),Fe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);Ge(x),l(f),Fe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Oe(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{ze()?t(qt):t(Kt,-1)})}return o(He,yt),Gt(Lt)}rr(["keydown"]);export{Kr as default};
@@ -1 +1 @@
1
- import{d as p}from"./CEQZVenN.js";import{J as s,H as l}from"./SopK520R.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./BL8utEbB.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
1
+ import{d as p}from"./etVaBLxV.js";import{J as s,H as l}from"./D-i7C44m.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./DHGSAfCZ.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
@@ -1,4 +1,4 @@
1
- import{t as Xt,br as v,bp as F,a_ as me,bz as Zt,bv as Ye,bt as Jt,b as Qt}from"./DTQYcznv.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as U,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./DYhIMPy1.js";import{n as on,v as rn,p as ln}from"./Ck9ZyE1n.js";import{f as cn}from"./BMm9sGZ6.js";import{k as dn}from"./BYFJ74nm.js";import{Iz as Se,nU as fn,zg as un,s1 as bt,nW as hn,a5 as kt}from"./A0r9TbR7.js";import{bN as gn,dr as vn}from"./B0biUQQF.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./hTzIX9qo.js";import{F as _t,b6 as wt}from"./CoLl8pQb.js";import{f as Qe}from"./BP5uyQTv.js";import{t as Re}from"./Ddw98WmY.js";import{t as bn}from"./BqqN40AD.js";import{g as kn}from"./DYmPPjiq.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
1
+ import{t as Xt,bq as v,bo as F,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./D9jYN6_J.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as U,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./DYhIMPy1.js";import{i as me}from"./7eL9Pgig.js";import{g as on,i as rn}from"./Bgw3O9rE.js";import{f as ln}from"./C_EpV6jU.js";import{f as cn}from"./C3NeTp2u.js";import{k as dn}from"./DFs6FJS8.js";import{Iz as Se,nU as fn,zg as un,s1 as bt,nW as hn,a5 as kt}from"./BfbZn9QX.js";import{bN as gn,dr as vn}from"./asQ_ruFQ.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./BW9EApvt.js";import{F as _t,b6 as wt}from"./CAUaU8Wh.js";import{f as Qe}from"./0qEvU7Aj.js";import"./Dkva_evl.js";import{t as Re}from"./IRbjhecv.js";import{t as bn}from"./B4gIvcP2.js";import{g as kn}from"./T9tywf_e.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
2
2
  `);let s=0,I=0,le=!1;for(const z of De)if(z.startsWith("@@")){le=!0;const J=z.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);J&&(I=parseInt(J[1],10),s=parseInt(J[2],10))}else le&&(z.startsWith("+")?(re.add(s+Z),s++):z.startsWith("-")?(pe.add(I+Z),I++):z.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function wn(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Jt(),Z=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),z=v(c,"viewMode",7,"unified"),J=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Ue=v(c,"lineWrapping",7,!1),M=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Me=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),ze=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),$e=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t($e)?"":t(Q)?.oldContent??""),V=d(()=>t($e)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let _=ae(null),Ke=ae(null),_e=null,we=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Mt(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),Ut=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Mt(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
@@ -9,7 +9,7 @@ import{t as Xt,br as v,bp as F,a_ as me,bz as Zt,bv as Ye,bt as Jt,b as Qt}from"
9
9
  `),he=u-C.length;for(let p=0;p<he;p++){const P=f+p;if(P<Y.length){const Ve=Y[P];C.push({content:" "+Ve,oldLine:P+1,newLine:null,type:"context"})}}}const x=[...D,...ye,...C];if(x.length===0)return null;let N=0,E=0;for(const n of x)if(n.oldLine!==null&&N===0&&(N=n.oldLine),n.newLine!==null&&E===0&&(E=n.newLine),N!==0&&E!==0)break;N===0&&(N=E>0?E-1:1),E===0&&(E=N);let $=0,se=0;for(const n of x)n.type==="deletion"?$++:(n.type==="addition"||$++,se++);const ue=`@@ -${N+r},${$} +${E+r},${se} @@`,Yt=x.map(n=>n.content).join(`
10
10
  `),mt=[...fe,ue,Yt].join(`
11
11
  `)+`
12
- `;return Z.info("[generateLinePatch] Generated patch",{hunkHeader:ue,selectedLinesCount:x.length,selectedLinesContent:x.map(n=>({content:n.content,type:n.type})),fullPatch:mt}),mt}function Ft(e){H(_,e,!0)}function Ot(){if(!t(_))return;const e=t(ee)||s().relativePath||s().file,i=je(t(_).start,t(_).end,t(_).side);i&&M()&&(M()(e,i),H(_,null))}function Tt(){if(!t(_))return;const e=t(ee)||s().relativePath||s().file,i=je(t(_).start,t(_).end,t(_).side);i&&A()&&(A()(e,i),H(_,null))}const ht={additions:new Set,deletions:new Set};let gt="",qe=ht;function vt(){if(!t(B)&&!t(V))return ht;const e=t(ee)||s().relativePath||s().file,i=`${e}|${He(t(B))}|${He(t(V))}|${W()}`;if(i===gt)return qe;const{additions:a,deletions:o}=_n(e,t(B),t(V),W());return gt=i,qe={additions:a,deletions:o},qe}xe(()=>{if(!I())return;Me(),t(ut),s().id;const e=crypto.randomUUID();return Se.dispatch(fn(de,Be,e,{kind:"trackedDiff",filePath:t(ee),workspacePath:t(te),stage:s().stage,commitHash:s().commitHash,gitRootId:G(),gitRootPath:be(),gitlink:s().gitlink,baseRef:Ae(),baseCommitSha:Ee(),providedOld:s().content?.oldContent,providedNew:s().content?.newContent,useProvidedContent:ge(),forceRefresh:t(ft),allowHeadReads:ce()},Fe())),()=>{Se.dispatch(un(de,Be,e))}}),xe(()=>{if(!I())return;const e=de,i=ct(s()?.relativePath||s()?.file||""),a=Dt(i),o=G()?cn(a??i,G()):i,u=`${e}:${o}`;ot.set(e),at.set(o),u!==t(lt)&&(H(lt,u),H(Ce,null)),e&&i&&a&&s()?.stage!=="committed"&&!ge()&&ce()&&!t(ke)&&!t(Pt)&&Se.dispatch(G()?bt(e,o,a,{gitRoot:{id:G(),relativePath:i}}):bt(e,i,a))}),xe(()=>{if(!I()||ge()||!ce())return;const e=We();if(e===null||e===t(Ce))return;const i=Xe(()=>t(Ce));H(Ce,e,!0),i!==null&&(Z.debug("[files slice] File content changed, reloading diff",{instanceId:Ct,filePath:s()?.relativePath||s()?.file}),Se.dispatch(hn(de,G())))}),xe(()=>{if(!I())return;const e=t(Ke);_e&&(_e.remove(),_e=null),e?.numberElement&&Xe(()=>{const i=vt();if(!(e.side==="additions"?i.additions:i.deletions).has(e.lineNumber)||t(we)||t(ke))return;const o=s().stage==="unstaged";if(!(o?M():A()))return;const r=document.createElement("button");r.className=o?"hunk-action-btn hunk-stage-btn line-hover-btn":"hunk-action-btn hunk-unstage-btn line-hover-btn",r.innerHTML=o?"+":"−",r.title=o?F.ui_trackedDiff_stageLine_tooltip():F.ui_trackedDiff_unstageLine_tooltip();const h=l=>{l.stopPropagation(),l.preventDefault()};r.onpointerdown=h,r.onpointerup=h,r.onmousedown=h,r.onmouseup=h,r.onclick=async l=>{if(l.stopPropagation(),l.preventDefault(),!(!ce()||t(we)||t(ke))){H(we,!0),r.disabled=!0,r.style.opacity="0.5";try{const g=t(ee)||s().relativePath||s().file,b=je(e.lineNumber,e.lineNumber,e.side);b&&(o&&M()?M()(g,b):!o&&A()&&A()(g,b)),Et(!0)}finally{H(we,!1)}}},e.numberElement.appendChild(r),_e=r})});var zt={get change(){return s()},set change(e){s(e),m()},get active(){return I()},set active(e=!0){I(e),m()},get workspaceId(){return le()},set workspaceId(e){le(e),m()},get viewMode(){return z()},set viewMode(e="unified"){z(e),m()},get showHeader(){return J()},set showHeader(e=!1){J(e),m()},get foldUnchanged(){return Ne()},set foldUnchanged(e=!0){Ne(e),m()},get lineWrapping(){return Ue()},set lineWrapping(e=!1){Ue(e),m()},get onStageHunk(){return M()},set onStageHunk(e){M(e),m()},get onUnstageHunk(){return A()},set onUnstageHunk(e){A(e),m()},get onOpenCommit(){return et()},set onOpenCommit(e){et(e),m()},get refreshKey(){return Me()},set refreshKey(e){Me(e),m()},get branchBaseRef(){return Ae()},set branchBaseRef(e){Ae(e),m()},get branchBaseCommitSha(){return Ee()},set branchBaseCommitSha(e){Ee(e),m()},get useProvidedContent(){return ge()},set useProvidedContent(e=!1){ge(e),m()},get allowHeadReads(){return ce()},set allowHeadReads(e=!0){ce(e),m()},get canReadHeadFiles(){return Fe()},set canReadHeadFiles(e){Fe(e),m()},get lineOffset(){return W()},set lineOffset(e=1){W(e),m()},get lineStageIndicators(){return tt()},set lineStageIndicators(e){tt(e),m()},get annotations(){return Oe()},set annotations(e=[]){Oe(e),m()},get renderAnnotation(){return Te()},set renderAnnotation(e){Te(e),m()},get virtualizer(){return ze()},set virtualizer(e){ze(e),m()},get gitRootId(){return G()},set gitRootId(e=void 0){G(e),m()},get gitRootPath(){return be()},set gitRootPath(e=void 0){be(e),m()},$set:Zt,$on:(e,i)=>Qt(c,e,i)},Ge=Wn(),Bt=U(Ge);{var $t=e=>{var i=Cn(),a=U(i),o=U(a);Re(o,{class:"h-4 w-48"});var u=O(o,2);Re(u,{class:"h-4 w-24"}),R(a);var r=O(a,2);on(r,20,()=>[0,1,2,3,4,5,6,7,8,9,10,11],ln,(h,l)=>{var g=Ln();let b;var S=U(g);Re(S,{class:"h-3 w-6 shrink-0"});var fe=O(S,2);Re(fe,{class:"h-3",style:`width: ${40+Math.random()*50}%`}),R(g),j(()=>b=rn(g,1,"diff-skeleton-line svelte-1f4chm",null,b,{"diff-skeleton-line--added":l%5===2,"diff-skeleton-line--removed":l%7===3})),L(h,g)}),R(r),R(i),L(e,i)},Kt=e=>{var i=yn(),a=U(i);_t(a,{get icon(){return wt},class:"text-danger"});var o=O(a,2),u=Ze(o,!0);R(i),j(()=>X(u,t(nt))),L(e,i)},jt=e=>{var i=xn(),a=U(i);_t(a,{get icon(){return wt},class:"text-warning"});var o=O(a,2),u=Ze(o,!0);R(i),j(r=>X(u,r),[()=>F.ui_trackedDiff_tooLarge_error()]),L(e,i)},qt=e=>{var i=Pn(),a=U(i),o=U(a);{var u=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_commitUnavailable_error()]),L(l,g)},r=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_noStagedChanges_label()]),L(l,g)},h=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_noUnstagedChanges_label()]),L(l,g)};me(o,l=>{s().stage==="committed"?l(u):s().stage==="staged"?l(r,1):l(h,-1)})}R(a),R(i),L(e,i)},Gt=e=>{var i=In(),a=U(i);{var o=h=>{const l=d(vt),g=d(()=>t(_).side==="additions"?t(l).additions:t(l).deletions),b=d(()=>Array.from({length:t(_).end-t(_).start+1},(k,y)=>t(_).start+y).filter(k=>t(g).has(k)).length);var S=Rn(),fe=U(S),w=Ze(fe,!0),ve=O(fe,2);{var ne=k=>{var y=an(),D=Je(y);{var ye=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-stage-btn h-auto! gap-1 rounded-sm! bg-success/15 px-2! py-[0.2rem]! text-success hover:bg-success/25",onclick:Ot,children:(N,E)=>{var $=Sn(),se=O(Je($));j(ue=>X(se,` ${ue??""}`),[()=>F.ui_trackedDiff_stage_label()]),L(N,$)},$$slots:{default:!0}})},C=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-unstage-btn h-auto! gap-1 rounded-sm! bg-danger/15 px-2! py-[0.2rem]! text-danger hover:bg-danger/25",onclick:Tt,children:(N,E)=>{var $=Hn(),se=O(Je($));j(ue=>X(se,` ${ue??""}`),[()=>F.ui_trackedDiff_unstage_label()]),L(N,$)},$$slots:{default:!0}})};me(D,x=>{s().stage==="unstaged"&&M()?x(ye):s().stage==="staged"&&A()&&x(C,1)})}L(k,y)};me(ve,k=>{t(b)>0&&k(ne)})}var ie=O(ve,2);Qe(ie,{variant:"plain",size:"compact",class:"hunk-action-btn h-auto! rounded-sm! px-2! py-[0.2rem]! text-muted-foreground",onclick:()=>H(_,null),children:(k,y)=>{sn();var D=Pe("✕");L(k,D)},$$slots:{default:!0}}),R(S),j(k=>X(w,k),[()=>t(b)===1?F.ui_trackedDiff_linesSelected_one():F.ui_trackedDiff_linesSelected_many({count:bn(t(b))})]),L(h,S)};me(a,h=>{t(_)&&h(o)})}var u=O(a,2),r=U(u);{let h=d(()=>t(it)||void 0),l=d(()=>!Ne()),g=d(()=>Ue()?"wrap":"scroll"),b=d(()=>!!(M()||A()));pn(r,{get patch(){return t(h)},get oldContent(){return t(St)},get newContent(){return t(Ht)},get oldCacheKey(){return t(Nt)},get newCacheKey(){return t(Ut)},get fileName(){return t(Le)},get language(){return t(Wt)},get viewMode(){return z()},get showHeader(){return J()},showStats:!1,get expandUnchanged(){return t(l)},get overflow(){return t(g)},get enableLineSelection(){return t(b)},get selectedLines(){return t(_)},onLineSelected:Ft,onLineEnter:S=>{(M()||A())&&H(Ke,{lineNumber:S.lineNumber,side:S.annotationSide,lineElement:S.lineElement,numberElement:S.numberElement})},onLineLeave:()=>{H(Ke,null)},get annotations(){return Oe()},get renderAnnotation(){return Te()},get virtualizer(){return ze()},unsafeCSS:`
12
+ `;return Z.info("[generateLinePatch] Generated patch",{hunkHeader:ue,selectedLinesCount:x.length,selectedLinesContent:x.map(n=>({content:n.content,type:n.type})),fullPatch:mt}),mt}function Ft(e){H(_,e,!0)}function Ot(){if(!t(_))return;const e=t(ee)||s().relativePath||s().file,i=je(t(_).start,t(_).end,t(_).side);i&&M()&&(M()(e,i),H(_,null))}function Tt(){if(!t(_))return;const e=t(ee)||s().relativePath||s().file,i=je(t(_).start,t(_).end,t(_).side);i&&A()&&(A()(e,i),H(_,null))}const ht={additions:new Set,deletions:new Set};let gt="",qe=ht;function vt(){if(!t(B)&&!t(V))return ht;const e=t(ee)||s().relativePath||s().file,i=`${e}|${He(t(B))}|${He(t(V))}|${W()}`;if(i===gt)return qe;const{additions:a,deletions:o}=_n(e,t(B),t(V),W());return gt=i,qe={additions:a,deletions:o},qe}xe(()=>{if(!I())return;Me(),t(ut),s().id;const e=crypto.randomUUID();return Se.dispatch(fn(de,Be,e,{kind:"trackedDiff",filePath:t(ee),workspacePath:t(te),stage:s().stage,commitHash:s().commitHash,gitRootId:G(),gitRootPath:be(),gitlink:s().gitlink,baseRef:Ae(),baseCommitSha:Ee(),providedOld:s().content?.oldContent,providedNew:s().content?.newContent,useProvidedContent:ge(),forceRefresh:t(ft),allowHeadReads:ce()},Fe())),()=>{Se.dispatch(un(de,Be,e))}}),xe(()=>{if(!I())return;const e=de,i=ct(s()?.relativePath||s()?.file||""),a=Dt(i),o=G()?cn(a??i,G()):i,u=`${e}:${o}`;ot.set(e),at.set(o),u!==t(lt)&&(H(lt,u),H(Ce,null)),e&&i&&a&&s()?.stage!=="committed"&&!ge()&&ce()&&!t(ke)&&!t(Pt)&&Se.dispatch(G()?bt(e,o,a,{gitRoot:{id:G(),relativePath:i}}):bt(e,i,a))}),xe(()=>{if(!I()||ge()||!ce())return;const e=We();if(e===null||e===t(Ce))return;const i=Xe(()=>t(Ce));H(Ce,e,!0),i!==null&&(Z.debug("[files slice] File content changed, reloading diff",{instanceId:Ct,filePath:s()?.relativePath||s()?.file}),Se.dispatch(hn(de,G())))}),xe(()=>{if(!I())return;const e=t(Ke);_e&&(_e.remove(),_e=null),e?.numberElement&&Xe(()=>{const i=vt();if(!(e.side==="additions"?i.additions:i.deletions).has(e.lineNumber)||t(we)||t(ke))return;const o=s().stage==="unstaged";if(!(o?M():A()))return;const r=document.createElement("button");r.className=o?"hunk-action-btn hunk-stage-btn line-hover-btn":"hunk-action-btn hunk-unstage-btn line-hover-btn",r.innerHTML=o?"+":"−",r.title=o?F.ui_trackedDiff_stageLine_tooltip():F.ui_trackedDiff_unstageLine_tooltip();const h=l=>{l.stopPropagation(),l.preventDefault()};r.onpointerdown=h,r.onpointerup=h,r.onmousedown=h,r.onmouseup=h,r.onclick=async l=>{if(l.stopPropagation(),l.preventDefault(),!(!ce()||t(we)||t(ke))){H(we,!0),r.disabled=!0,r.style.opacity="0.5";try{const g=t(ee)||s().relativePath||s().file,b=je(e.lineNumber,e.lineNumber,e.side);b&&(o&&M()?M()(g,b):!o&&A()&&A()(g,b)),Et(!0)}finally{H(we,!1)}}},e.numberElement.appendChild(r),_e=r})});var zt={get change(){return s()},set change(e){s(e),m()},get active(){return I()},set active(e=!0){I(e),m()},get workspaceId(){return le()},set workspaceId(e){le(e),m()},get viewMode(){return z()},set viewMode(e="unified"){z(e),m()},get showHeader(){return J()},set showHeader(e=!1){J(e),m()},get foldUnchanged(){return Ne()},set foldUnchanged(e=!0){Ne(e),m()},get lineWrapping(){return Ue()},set lineWrapping(e=!1){Ue(e),m()},get onStageHunk(){return M()},set onStageHunk(e){M(e),m()},get onUnstageHunk(){return A()},set onUnstageHunk(e){A(e),m()},get onOpenCommit(){return et()},set onOpenCommit(e){et(e),m()},get refreshKey(){return Me()},set refreshKey(e){Me(e),m()},get branchBaseRef(){return Ae()},set branchBaseRef(e){Ae(e),m()},get branchBaseCommitSha(){return Ee()},set branchBaseCommitSha(e){Ee(e),m()},get useProvidedContent(){return ge()},set useProvidedContent(e=!1){ge(e),m()},get allowHeadReads(){return ce()},set allowHeadReads(e=!0){ce(e),m()},get canReadHeadFiles(){return Fe()},set canReadHeadFiles(e){Fe(e),m()},get lineOffset(){return W()},set lineOffset(e=1){W(e),m()},get lineStageIndicators(){return tt()},set lineStageIndicators(e){tt(e),m()},get annotations(){return Oe()},set annotations(e=[]){Oe(e),m()},get renderAnnotation(){return Te()},set renderAnnotation(e){Te(e),m()},get virtualizer(){return ze()},set virtualizer(e){ze(e),m()},get gitRootId(){return G()},set gitRootId(e=void 0){G(e),m()},get gitRootPath(){return be()},set gitRootPath(e=void 0){be(e),m()},$set:Zt,$on:(e,i)=>Qt(c,e,i)},Ge=Wn(),Bt=U(Ge);{var $t=e=>{var i=Cn(),a=U(i),o=U(a);Re(o,{class:"h-4 w-48"});var u=O(o,2);Re(u,{class:"h-4 w-24"}),R(a);var r=O(a,2);on(r,20,()=>[0,1,2,3,4,5,6,7,8,9,10,11],rn,(h,l)=>{var g=Ln();let b;var S=U(g);Re(S,{class:"h-3 w-6 shrink-0"});var fe=O(S,2);Re(fe,{class:"h-3",style:`width: ${40+Math.random()*50}%`}),R(g),j(()=>b=ln(g,1,"diff-skeleton-line svelte-1f4chm",null,b,{"diff-skeleton-line--added":l%5===2,"diff-skeleton-line--removed":l%7===3})),L(h,g)}),R(r),R(i),L(e,i)},Kt=e=>{var i=yn(),a=U(i);_t(a,{get icon(){return wt},class:"text-danger"});var o=O(a,2),u=Ze(o,!0);R(i),j(()=>X(u,t(nt))),L(e,i)},jt=e=>{var i=xn(),a=U(i);_t(a,{get icon(){return wt},class:"text-warning"});var o=O(a,2),u=Ze(o,!0);R(i),j(r=>X(u,r),[()=>F.ui_trackedDiff_tooLarge_error()]),L(e,i)},qt=e=>{var i=Pn(),a=U(i),o=U(a);{var u=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_commitUnavailable_error()]),L(l,g)},r=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_noStagedChanges_label()]),L(l,g)},h=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_noUnstagedChanges_label()]),L(l,g)};me(o,l=>{s().stage==="committed"?l(u):s().stage==="staged"?l(r,1):l(h,-1)})}R(a),R(i),L(e,i)},Gt=e=>{var i=In(),a=U(i);{var o=h=>{const l=d(vt),g=d(()=>t(_).side==="additions"?t(l).additions:t(l).deletions),b=d(()=>Array.from({length:t(_).end-t(_).start+1},(k,y)=>t(_).start+y).filter(k=>t(g).has(k)).length);var S=Rn(),fe=U(S),w=Ze(fe,!0),ve=O(fe,2);{var ne=k=>{var y=an(),D=Je(y);{var ye=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-stage-btn h-auto! gap-1 rounded-sm! bg-success/15 px-2! py-[0.2rem]! text-success hover:bg-success/25",onclick:Ot,children:(N,E)=>{var $=Sn(),se=O(Je($));j(ue=>X(se,` ${ue??""}`),[()=>F.ui_trackedDiff_stage_label()]),L(N,$)},$$slots:{default:!0}})},C=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-unstage-btn h-auto! gap-1 rounded-sm! bg-danger/15 px-2! py-[0.2rem]! text-danger hover:bg-danger/25",onclick:Tt,children:(N,E)=>{var $=Hn(),se=O(Je($));j(ue=>X(se,` ${ue??""}`),[()=>F.ui_trackedDiff_unstage_label()]),L(N,$)},$$slots:{default:!0}})};me(D,x=>{s().stage==="unstaged"&&M()?x(ye):s().stage==="staged"&&A()&&x(C,1)})}L(k,y)};me(ve,k=>{t(b)>0&&k(ne)})}var ie=O(ve,2);Qe(ie,{variant:"plain",size:"compact",class:"hunk-action-btn h-auto! rounded-sm! px-2! py-[0.2rem]! text-muted-foreground",onclick:()=>H(_,null),children:(k,y)=>{sn();var D=Pe("✕");L(k,D)},$$slots:{default:!0}}),R(S),j(k=>X(w,k),[()=>t(b)===1?F.ui_trackedDiff_linesSelected_one():F.ui_trackedDiff_linesSelected_many({count:bn(t(b))})]),L(h,S)};me(a,h=>{t(_)&&h(o)})}var u=O(a,2),r=U(u);{let h=d(()=>t(it)||void 0),l=d(()=>!Ne()),g=d(()=>Ue()?"wrap":"scroll"),b=d(()=>!!(M()||A()));pn(r,{get patch(){return t(h)},get oldContent(){return t(St)},get newContent(){return t(Ht)},get oldCacheKey(){return t(Nt)},get newCacheKey(){return t(Ut)},get fileName(){return t(Le)},get language(){return t(Wt)},get viewMode(){return z()},get showHeader(){return J()},showStats:!1,get expandUnchanged(){return t(l)},get overflow(){return t(g)},get enableLineSelection(){return t(b)},get selectedLines(){return t(_)},onLineSelected:Ft,onLineEnter:S=>{(M()||A())&&H(Ke,{lineNumber:S.lineNumber,side:S.annotationSide,lineElement:S.lineElement,numberElement:S.numberElement})},onLineLeave:()=>{H(Ke,null)},get annotations(){return Oe()},get renderAnnotation(){return Te()},get virtualizer(){return ze()},unsafeCSS:`
13
13
  /* Make line number column relative for hover button positioning */
14
14
  [data-column-number] {
15
15
  position: sticky;