@intent-hq/web 2.292.0 → 2.292.2

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 (250) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.DvlMYzZB.css +1 -0
  3. package/web/app/immutable/assets/5.DBgC2kSL.css +1 -0
  4. package/web/app/immutable/chunks/{o8OJf27v.js → -g6HPSpm.js} +1 -1
  5. package/web/app/immutable/chunks/{D0FrwYUQ.js → 06CP606v.js} +1 -1
  6. package/web/app/immutable/chunks/{DHSIOEln.js → 0c_MAvHq.js} +1 -1
  7. package/web/app/immutable/chunks/{BUN1yF1L.js → 0icrH9cf.js} +1 -1
  8. package/web/app/immutable/chunks/{BgntEy_5.js → 0k-rvyGo.js} +1 -1
  9. package/web/app/immutable/chunks/{aLb41s5K.js → 4gO2zcBv.js} +1 -1
  10. package/web/app/immutable/chunks/{l7ze94qr.js → 5SjfvWPi.js} +1 -1
  11. package/web/app/immutable/chunks/{Bp70Vk4U.js → 755iX0_8.js} +1 -1
  12. package/web/app/immutable/chunks/{BXWlOAyO.js → 9-D0Q0S6.js} +1 -1
  13. package/web/app/immutable/chunks/{BW3vrEnw.js → 9Pov1PHF.js} +5 -5
  14. package/web/app/immutable/chunks/{C2-6X3Z3.js → B4pPTpp_.js} +2 -2
  15. package/web/app/immutable/chunks/{Bgg-wBTF.js → B5GamWhx.js} +1 -1
  16. package/web/app/immutable/chunks/{HECvQSCC.js → B6FrmuSL.js} +1 -1
  17. package/web/app/immutable/chunks/{a-vNpAtT.js → B6ZWdQk3.js} +1 -1
  18. package/web/app/immutable/chunks/{DhMj2plM.js → B6mMXRA1.js} +1 -1
  19. package/web/app/immutable/chunks/{DshT-ERa.js → B6rxT1rd.js} +1 -1
  20. package/web/app/immutable/chunks/B7gOkTaS.js +324 -0
  21. package/web/app/immutable/chunks/{DDghWae5.js → B8W3GGYq.js} +1 -1
  22. package/web/app/immutable/chunks/{DP7kbgS0.js → B982JlpQ.js} +1 -1
  23. package/web/app/immutable/chunks/{BrbLiL_x.js → B9UcZ8hB.js} +1 -1
  24. package/web/app/immutable/chunks/{gjFD8LCr.js → BAAkmbP1.js} +1 -1
  25. package/web/app/immutable/chunks/{C4WMSxMK.js → BBW6O_MW.js} +1 -1
  26. package/web/app/immutable/chunks/{CdL46F2Z.js → BCX3VjTL.js} +1 -1
  27. package/web/app/immutable/chunks/{Cppe-wSX.js → BDfuDlh3.js} +1 -1
  28. package/web/app/immutable/chunks/{CXbFPa4P.js → BGJxMF_1.js} +1 -1
  29. package/web/app/immutable/chunks/{CmtSXIlz.js → BJ9BJ5kr.js} +1 -1
  30. package/web/app/immutable/chunks/{QwMkFOLD.js → BL2SnmmN.js} +1 -1
  31. package/web/app/immutable/chunks/{C4tLIUi-.js → BMURLuFo.js} +1 -1
  32. package/web/app/immutable/chunks/{GM1mBWt-.js → BMigEFDf.js} +1 -1
  33. package/web/app/immutable/chunks/{IoeO06yf.js → BNUfRoau.js} +1 -1
  34. package/web/app/immutable/chunks/{BE4lD4BS.js → BNaYrmBt.js} +1 -1
  35. package/web/app/immutable/chunks/{CWhinB9Y.js → BNmJe_fB.js} +12 -12
  36. package/web/app/immutable/chunks/{Bn8I_2eM.js → BNyX9jNr.js} +1 -1
  37. package/web/app/immutable/chunks/{xgWQsr-g.js → BOeezh42.js} +3 -3
  38. package/web/app/immutable/chunks/{1gqakjEk.js → BPKxTIFu.js} +1 -1
  39. package/web/app/immutable/chunks/{9a62qcQ7.js → BQnKtOqS.js} +1 -1
  40. package/web/app/immutable/chunks/{ClioxoZj.js → BS6j7OE5.js} +1 -1
  41. package/web/app/immutable/chunks/{h3ky2Xtl.js → BSkHzXor.js} +1 -1
  42. package/web/app/immutable/chunks/{3Y9y-sdV.js → BUYS7rif.js} +1 -1
  43. package/web/app/immutable/chunks/{BHNxqf_R.js → BUlvUEKW.js} +1 -1
  44. package/web/app/immutable/chunks/{DCuB-wUt.js → BVMJedK4.js} +1 -1
  45. package/web/app/immutable/chunks/{D7_sioj1.js → BW2PW2g6.js} +1 -1
  46. package/web/app/immutable/chunks/{h1uEjX6Q.js → BWg4csX2.js} +1 -1
  47. package/web/app/immutable/chunks/{DKmM0bqR.js → BZQ9g1LX.js} +1 -1
  48. package/web/app/immutable/chunks/{B2hdZBro.js → BZk3o0D4.js} +1 -1
  49. package/web/app/immutable/chunks/{Tbbe1dbh.js → BZzTwe10.js} +1 -1
  50. package/web/app/immutable/chunks/{BFY-b65a.js → Ba8-1FHo.js} +1 -1
  51. package/web/app/immutable/chunks/{Uc38XdXI.js → BaPbYStu.js} +1 -1
  52. package/web/app/immutable/chunks/{DNMw7H4R.js → BaT1EUX1.js} +1 -1
  53. package/web/app/immutable/chunks/{BaqlfWKa.js → Bal--q4v.js} +1 -1
  54. package/web/app/immutable/chunks/{47q6TsqV.js → BaqTNCTY.js} +7 -7
  55. package/web/app/immutable/chunks/{BLqH6j99.js → BcYgPYED.js} +1 -1
  56. package/web/app/immutable/chunks/{DWGee_yL.js → Bh9BKMsM.js} +1 -1
  57. package/web/app/immutable/chunks/{DWQ1jwFW.js → Bi_XhyyE.js} +1 -1
  58. package/web/app/immutable/chunks/{fqEAyqsN.js → BluiuFfy.js} +1 -1
  59. package/web/app/immutable/chunks/{Cowgfae1.js → Bo_2xd9j.js} +1 -1
  60. package/web/app/immutable/chunks/{CgjVDtx1.js → BpHN1kIK.js} +1 -1
  61. package/web/app/immutable/chunks/{4tDE6wja.js → BqJBJZqA.js} +1 -1
  62. package/web/app/immutable/chunks/{CKHgkzsh.js → Bqm96CUD.js} +1 -1
  63. package/web/app/immutable/chunks/{B-68oH2S.js → BrBBHBKk.js} +1 -1
  64. package/web/app/immutable/chunks/{DI0BmYmu.js → BsXlY_j6.js} +1 -1
  65. package/web/app/immutable/chunks/{DUgG-2k6.js → Bsr5f7H7.js} +1 -1
  66. package/web/app/immutable/chunks/{D44dgkjW.js → BtOZE8-p.js} +2 -2
  67. package/web/app/immutable/chunks/{B-dUAUrx.js → Btm5xkvu.js} +1 -1
  68. package/web/app/immutable/chunks/{LldlwJUi.js → Bvl8Oxba.js} +1 -1
  69. package/web/app/immutable/chunks/{C99wXtMe.js → BxlgI-wG.js} +1 -1
  70. package/web/app/immutable/chunks/{B5iywc0c.js → BzlGto81.js} +1 -1
  71. package/web/app/immutable/chunks/{DsSlZ8Hs.js → C16OaEIp.js} +1 -1
  72. package/web/app/immutable/chunks/{RKlkXviB.js → C1QeO17D.js} +1 -1
  73. package/web/app/immutable/chunks/{CekHYIsk.js → C2FQclZr.js} +1 -1
  74. package/web/app/immutable/chunks/{BSwJfQ4v.js → C3frK44m.js} +1 -1
  75. package/web/app/immutable/chunks/{DKaqc51P.js → C5mI5hjq.js} +1 -1
  76. package/web/app/immutable/chunks/{BGSYASTg.js → C6Oo8BXq.js} +1 -1
  77. package/web/app/immutable/chunks/{DGzLoy-z.js → C6e-2qm-.js} +1 -1
  78. package/web/app/immutable/chunks/{D0lwnaH3.js → C7GMlsQo.js} +1 -1
  79. package/web/app/immutable/chunks/{n50bwg6w.js → C7MuVaSF.js} +2 -2
  80. package/web/app/immutable/chunks/{Duw-IZjh.js → CB-ZN9Uq.js} +1 -1
  81. package/web/app/immutable/chunks/{BnQ8VATH.js → CBgR5nXI.js} +1 -1
  82. package/web/app/immutable/chunks/{BRCenWT1.js → CCXwqeRn.js} +1 -1
  83. package/web/app/immutable/chunks/{DQ0fhYWC.js → CDBtKfA5.js} +1 -1
  84. package/web/app/immutable/chunks/{DkZNeDFv.js → CDKc6BIg.js} +1 -1
  85. package/web/app/immutable/chunks/{BGhLlR2Z.js → CFniM5qB.js} +1 -1
  86. package/web/app/immutable/chunks/{BekOxliD.js → CGhxkrID.js} +1 -1
  87. package/web/app/immutable/chunks/{C2v5W_yU.js → CIJAu6bi.js} +1 -1
  88. package/web/app/immutable/chunks/{BjdiF3NU.js → CJ5pAPpY.js} +1 -1
  89. package/web/app/immutable/chunks/{DvbSI76r.js → CJcny7E2.js} +2 -2
  90. package/web/app/immutable/chunks/{CsY3AFxY.js → CJhyAq2H.js} +1 -1
  91. package/web/app/immutable/chunks/{DRKAw6pI.js → CJpj7lk7.js} +1 -1
  92. package/web/app/immutable/chunks/{B4RPI3PE.js → CKJsoFTP.js} +1 -1
  93. package/web/app/immutable/chunks/{H0XHH9Lx.js → CKcgUe6r.js} +1 -1
  94. package/web/app/immutable/chunks/{xO5nwwWo.js → CKxaBxPr.js} +1 -1
  95. package/web/app/immutable/chunks/{CyFgel5k.js → CLfThpJq.js} +1 -1
  96. package/web/app/immutable/chunks/{DYFkelx6.js → CLfafQTB.js} +1 -1
  97. package/web/app/immutable/chunks/{B3HK-q5A.js → CNIQVMU4.js} +1 -1
  98. package/web/app/immutable/chunks/{Bc_8WxDl.js → CN_OP-b-.js} +1 -1
  99. package/web/app/immutable/chunks/{DBNNnuPG.js → CWD3GqNk.js} +1 -1
  100. package/web/app/immutable/chunks/{bHHGnVsz.js → CWt47ruh.js} +1 -1
  101. package/web/app/immutable/chunks/{BhHMVKkK.js → CXUQsTIM.js} +1 -1
  102. package/web/app/immutable/chunks/CXhBPURx.js +1 -0
  103. package/web/app/immutable/chunks/{B5F8O-gO.js → C_8YlGDA.js} +1 -1
  104. package/web/app/immutable/chunks/{BvW_0loN.js → C_km1Zzs.js} +1 -1
  105. package/web/app/immutable/chunks/{DVnaYm9M.js → CaYE_9eh.js} +1 -1
  106. package/web/app/immutable/chunks/{C4QILlBJ.js → Cc7prgX7.js} +1 -1
  107. package/web/app/immutable/chunks/{CNx8jMag.js → CduLLDtl.js} +3 -3
  108. package/web/app/immutable/chunks/{CRhEb0yi.js → Cim0jDEO.js} +3 -3
  109. package/web/app/immutable/chunks/{CUtP3PhY.js → CjWNs3hA.js} +1 -1
  110. package/web/app/immutable/chunks/{D7mzoI7P.js → Cn8FrGio.js} +1 -1
  111. package/web/app/immutable/chunks/{DyJ_15yQ.js → CpvtLd5_.js} +1 -1
  112. package/web/app/immutable/chunks/{s0Q29iiv.js → CqMkgp96.js} +1 -1
  113. package/web/app/immutable/chunks/{Corw6Jrh.js → CrDYXSjm.js} +1 -1
  114. package/web/app/immutable/chunks/{BTkrC1UW.js → CsL35l_T.js} +1 -1
  115. package/web/app/immutable/chunks/{-GL8Xg-u.js → CsQ2FSIs.js} +1 -1
  116. package/web/app/immutable/chunks/{DsD7VXOH.js → CttvdLl2.js} +1 -1
  117. package/web/app/immutable/chunks/{W4t3dmSv.js → Cugu1F8N.js} +1 -1
  118. package/web/app/immutable/chunks/{C5vF3pAx.js → CvPs_8UD.js} +1 -1
  119. package/web/app/immutable/chunks/{YNqVM6Pn.js → Cxik8d0T.js} +1 -1
  120. package/web/app/immutable/chunks/{CabEUy8J.js → Cyt8YDgF.js} +1 -1
  121. package/web/app/immutable/chunks/{BL9BSWt_.js → D08_U0B1.js} +1 -1
  122. package/web/app/immutable/chunks/{Bw0bJwpw.js → D0pB9PrJ.js} +1 -1
  123. package/web/app/immutable/chunks/{lbGH4X3r.js → D2avzeRb.js} +1 -1
  124. package/web/app/immutable/chunks/{DhCIIOya.js → D3DoEc8v.js} +1 -1
  125. package/web/app/immutable/chunks/{BEsSRpwf.js → D3RlZ9WF.js} +1 -1
  126. package/web/app/immutable/chunks/{Vj7OREkP.js → D4YIggqT.js} +1 -1
  127. package/web/app/immutable/chunks/{DDI0uI_H.js → D5sJ2bUJ.js} +1 -1
  128. package/web/app/immutable/chunks/{Cal0nWOf.js → D74BjVjF.js} +1 -1
  129. package/web/app/immutable/chunks/{DBLawIp_.js → D74IXn65.js} +1 -1
  130. package/web/app/immutable/chunks/{Cxk1hw1U.js → D7n0G88C.js} +1 -1
  131. package/web/app/immutable/chunks/{BHL5MsfB.js → D8yPtwVB.js} +1 -1
  132. package/web/app/immutable/chunks/{Bqwi0BWF.js → DBUouGIr.js} +1 -1
  133. package/web/app/immutable/chunks/{DOVovLIq.js → DCKEIO-U.js} +1 -1
  134. package/web/app/immutable/chunks/{B-gmfAcJ.js → DEiZJ0yd.js} +1 -1
  135. package/web/app/immutable/chunks/{DRkmccaa.js → DFA3yOc-.js} +1 -1
  136. package/web/app/immutable/chunks/{D_J63Zyl.js → DFlL22UR.js} +2 -2
  137. package/web/app/immutable/chunks/{BrMgU118.js → DH6mjHQD.js} +1 -1
  138. package/web/app/immutable/chunks/DHqL-9TB.js +1 -0
  139. package/web/app/immutable/chunks/DIZ4FVb2.js +18 -0
  140. package/web/app/immutable/chunks/{DUl0e4O4.js → DInKHbl0.js} +1 -1
  141. package/web/app/immutable/chunks/{DtYBp20I.js → DLpUeiQt.js} +1 -1
  142. package/web/app/immutable/chunks/{CwQ4F1Ab.js → DLuzW_sw.js} +1 -1
  143. package/web/app/immutable/chunks/{kslXii-P.js → DMsHebUD.js} +1 -1
  144. package/web/app/immutable/chunks/{Bi0GbwSO.js → DOIfYJL0.js} +1 -1
  145. package/web/app/immutable/chunks/{Dn9JK5a2.js → DOiAjI4X.js} +1 -1
  146. package/web/app/immutable/chunks/{CFBVUms-.js → DPXetxx7.js} +1 -1
  147. package/web/app/immutable/chunks/{BZNhUzh7.js → DPgIFT9a.js} +1 -1
  148. package/web/app/immutable/chunks/{qiHCX_SZ.js → DRXZKet6.js} +1 -1
  149. package/web/app/immutable/chunks/{73DumGL9.js → DU55s1te.js} +1 -1
  150. package/web/app/immutable/chunks/{BRyWfrpo.js → DULsS44V.js} +1 -1
  151. package/web/app/immutable/chunks/{C9iz-mkw.js → DV_kwNjV.js} +1 -1
  152. package/web/app/immutable/chunks/{BcLb4U6k.js → DV_mjaDS.js} +1 -1
  153. package/web/app/immutable/chunks/{wozemaTW.js → DXt4bqo0.js} +3 -3
  154. package/web/app/immutable/chunks/{CW4guVPa.js → DYc78UPr.js} +1 -1
  155. package/web/app/immutable/chunks/{ZWPXcFOT.js → DZEyizFV.js} +1 -1
  156. package/web/app/immutable/chunks/{CeOSarF3.js → DbIzlA5K.js} +1 -1
  157. package/web/app/immutable/chunks/{Xj89EZIy.js → DbR25MIl.js} +1 -1
  158. package/web/app/immutable/chunks/{CvLqwfko.js → Dc9RwHk1.js} +1 -1
  159. package/web/app/immutable/chunks/{BDaXmtmH.js → DcDNc2X4.js} +1 -1
  160. package/web/app/immutable/chunks/{C3J1SYpT.js → DdRUG063.js} +1 -1
  161. package/web/app/immutable/chunks/{CIP1ZfWd.js → DdaG7Cca.js} +2 -2
  162. package/web/app/immutable/chunks/{BA_vIobR.js → DdkpKwl0.js} +1 -1
  163. package/web/app/immutable/chunks/{ClCKezvS.js → DeCG5uo6.js} +2 -2
  164. package/web/app/immutable/chunks/{BJrl0upY.js → DeVZOPW7.js} +1 -1
  165. package/web/app/immutable/chunks/{CFvkwWFr.js → DeimPXf2.js} +1 -1
  166. package/web/app/immutable/chunks/{CehXkbc-.js → Df4yP1J2.js} +1 -1
  167. package/web/app/immutable/chunks/{Cm5CZ7YY.js → Dg6tVjEn.js} +1 -1
  168. package/web/app/immutable/chunks/{ZvX5e3AH.js → Dg93Tv7B.js} +1 -1
  169. package/web/app/immutable/chunks/{Du8OSMBA.js → DgtWaWFZ.js} +1 -1
  170. package/web/app/immutable/chunks/{CRtL6sYK.js → Dh1NyToj.js} +1 -1
  171. package/web/app/immutable/chunks/{lr5ofxhO.js → Dh9qgtqK.js} +1 -1
  172. package/web/app/immutable/chunks/{C1YheCPG.js → DhkHgLRA.js} +1 -1
  173. package/web/app/immutable/chunks/{DHfLNRUe.js → Di18wyjg.js} +1 -1
  174. package/web/app/immutable/chunks/{DB0od0be.js → DiGqo-KH.js} +1 -1
  175. package/web/app/immutable/chunks/{D2Fb9aao.js → Djt5RN4M.js} +1 -1
  176. package/web/app/immutable/chunks/{C6yKW00v.js → DkwBacqz.js} +1 -1
  177. package/web/app/immutable/chunks/{9RsJ-LA0.js → Dky-2Jfq.js} +1 -1
  178. package/web/app/immutable/chunks/{Bebubi_u.js → DkzDjzB9.js} +2 -2
  179. package/web/app/immutable/chunks/{an5t-R7s.js → Dl-1cK26.js} +1 -1
  180. package/web/app/immutable/chunks/{Dj03b8fr.js → DlWNLllN.js} +1 -1
  181. package/web/app/immutable/chunks/{VIItGFPL.js → Dn1B9mMU.js} +3 -3
  182. package/web/app/immutable/chunks/{BGFHZ0Gn.js → DofGY-1I.js} +1 -1
  183. package/web/app/immutable/chunks/{y6VRBo2M.js → DuQHnwpD.js} +1 -1
  184. package/web/app/immutable/chunks/{CDGvuOsQ.js → Dw1YkpRi.js} +1 -1
  185. package/web/app/immutable/chunks/{D3jsqDWq.js → DyWVLmAp.js} +1 -1
  186. package/web/app/immutable/chunks/{CtFCyWOY.js → DyqEo12-.js} +1 -1
  187. package/web/app/immutable/chunks/{B7Wb6zTq.js → K1lMPseK.js} +1 -1
  188. package/web/app/immutable/chunks/{Bdylonvo.js → LMWUF5gW.js} +1 -1
  189. package/web/app/immutable/chunks/{_3D340Va.js → LXOG-o0_.js} +1 -1
  190. package/web/app/immutable/chunks/{DY3dk38M.js → Ly5i90Nv.js} +1 -1
  191. package/web/app/immutable/chunks/{DwDCAMLG.js → M2HNRaSd.js} +1 -1
  192. package/web/app/immutable/chunks/{Brep-rEI.js → OT3S-JEx.js} +3 -3
  193. package/web/app/immutable/chunks/{D8DZcNyr.js → PTBua5Xh.js} +1 -1
  194. package/web/app/immutable/chunks/{Bu8Bi7-A.js → Q73TKJJV.js} +1 -1
  195. package/web/app/immutable/chunks/{BxWSOWVO.js → QOrjinFU.js} +3 -3
  196. package/web/app/immutable/chunks/{DYtAwHmE.js → RM6OQSCe.js} +1 -1
  197. package/web/app/immutable/chunks/{xKX_8KWn.js → SR358tmD.js} +1 -1
  198. package/web/app/immutable/chunks/{BnbR-3eC.js → SxaNyqKY.js} +1 -1
  199. package/web/app/immutable/chunks/{aVsZmAEF.js → V8s0XlXE.js} +1 -1
  200. package/web/app/immutable/chunks/{CJhZDVuE.js → WIFxQL3B.js} +6 -6
  201. package/web/app/immutable/chunks/{BrdmgcMW.js → WtfFsxX1.js} +1 -1
  202. package/web/app/immutable/chunks/{CNB2bBwk.js → XsSJjm3Z.js} +8 -8
  203. package/web/app/immutable/chunks/{DlAbpA5d.js → YOgmIoTW.js} +1 -1
  204. package/web/app/immutable/chunks/{Dm7OUuES.js → ZpS8pGBT.js} +1 -1
  205. package/web/app/immutable/chunks/{FNHey2fE.js → cg-GVC1x.js} +1 -1
  206. package/web/app/immutable/chunks/{WTd8htj2.js → d6W1ZPqA.js} +1 -1
  207. package/web/app/immutable/chunks/{BdllAkCb.js → gE1gxY1Y.js} +1 -1
  208. package/web/app/immutable/chunks/{0EWUI_tF.js → hI2h2HCD.js} +1 -1
  209. package/web/app/immutable/chunks/{EpMOyykO.js → hO5lTYJC.js} +1 -1
  210. package/web/app/immutable/chunks/{CACMvEIk.js → o5rKfw07.js} +1 -1
  211. package/web/app/immutable/chunks/{D8dxdzMn.js → olmjZOKg.js} +1 -1
  212. package/web/app/immutable/chunks/{D1gMbWP8.js → pO3bPIuE.js} +1 -1
  213. package/web/app/immutable/chunks/{DN9Sgz-I.js → pTVl2JiY.js} +1 -1
  214. package/web/app/immutable/chunks/{ObcETXIn.js → qDe1FahS.js} +4 -4
  215. package/web/app/immutable/chunks/{CHF-Yq0C.js → rzBANR1d.js} +1 -1
  216. package/web/app/immutable/chunks/{z5Kqmpp_.js → tKJW3PqB.js} +1 -1
  217. package/web/app/immutable/chunks/{aCBgdpmi.js → uCtJ9vOe.js} +4 -4
  218. package/web/app/immutable/chunks/{BhEPk3lK.js → uZvRsrHT.js} +1 -1
  219. package/web/app/immutable/chunks/{D8a7wHlQ.js → vAfS3WCg.js} +1 -1
  220. package/web/app/immutable/chunks/{U2CIkvme.js → xt2PoXl6.js} +1 -1
  221. package/web/app/immutable/chunks/{BiTsq1kw.js → zL-pIvaA.js} +1 -1
  222. package/web/app/immutable/chunks/{DQ7w3NbE.js → zqim2n1k.js} +1 -1
  223. package/web/app/immutable/entry/{app.D05YlZME.js → app.VT7TaiVu.js} +2 -2
  224. package/web/app/immutable/entry/start.290_qSid.js +1 -0
  225. package/web/app/immutable/nodes/{0.LnuswXdL.js → 0.BqGgzWCn.js} +1 -1
  226. package/web/app/immutable/nodes/{1.BBz2p_l7.js → 1.C4zqRLiW.js} +1 -1
  227. package/web/app/immutable/nodes/{10.Bkss7kyV.js → 10.e5SLQ0Dz.js} +1 -1
  228. package/web/app/immutable/nodes/{12.ahtCER6A.js → 12.ovtxIhM8.js} +1 -1
  229. package/web/app/immutable/nodes/{13.DYGu0QHS.js → 13.Bu_iJM_J.js} +1 -1
  230. package/web/app/immutable/nodes/{14.CHRRgsAs.js → 14.BfSKkaSq.js} +1 -1
  231. package/web/app/immutable/nodes/{15.De0cpvot.js → 15.LrePapt-.js} +1 -1
  232. package/web/app/immutable/nodes/{16.DJqmOr4R.js → 16.BXG5rqkJ.js} +2 -2
  233. package/web/app/immutable/nodes/2.TpeCpptI.js +9 -0
  234. package/web/app/immutable/nodes/{3.CjrKR4es.js → 3.BUPhRmT2.js} +1 -1
  235. package/web/app/immutable/nodes/{4.Cc1Wrh3X.js → 4.DsmDqqJv.js} +1 -1
  236. package/web/app/immutable/nodes/{5.riH2s22o.js → 5.DAbG3X_i.js} +1 -1
  237. package/web/app/immutable/nodes/{6.DFzfBxxH.js → 6.CsCXGtvb.js} +1 -1
  238. package/web/app/immutable/nodes/{7.DuBvggKz.js → 7.Cc-Pwt7d.js} +1 -1
  239. package/web/app/immutable/nodes/{8.D0_snN-z.js → 8.B7-LYwR0.js} +4 -4
  240. package/web/app/immutable/nodes/{9.FxuJzZaQ.js → 9.CSCz9Oh5.js} +4 -4
  241. package/web/app/version.json +1 -1
  242. package/web/index.html +10 -10
  243. package/web/app/immutable/assets/0.Hnrlh_nF.css +0 -1
  244. package/web/app/immutable/assets/5.MJsnOXij.css +0 -1
  245. package/web/app/immutable/chunks/CZOawK4P.js +0 -18
  246. package/web/app/immutable/chunks/Cf3hiWsI.js +0 -1
  247. package/web/app/immutable/chunks/Dmk6CuVf.js +0 -324
  248. package/web/app/immutable/chunks/l87kbv25.js +0 -1
  249. package/web/app/immutable/entry/start.CltNpI3_.js +0 -1
  250. package/web/app/immutable/nodes/2.0WZE4VZ1.js +0 -9
@@ -1 +1 @@
1
- import{t as P,bq as d,by as V,b as B,a_ as F,bo as L}from"./DMsRLycu.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as I,ay as O,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./B8o4lNgr.js";import{s as ne,k as ie,d as oe}from"./ZX1TUMY0.js";import{D as ae}from"./CY7B0zXs.js";import{I as se}from"./C4WMSxMK.js";import"./BVtWH5RS.js";import{L as le}from"./_3D340Va.js";import"./Bw0bJwpw.js";import{D as ue,k as W}from"./ClCKezvS.js";import{G as ce,F as y}from"./BUN1yF1L.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return P({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:V,$on:(s,m)=>B(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function E(f,o){if(new.target)return P({component:E,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:V,$on:(t,g)=>B(o,t,g)},h=I(),i=O(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),D=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(D)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),D=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(D)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var S=de(),G=U(S);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};F(G,C=>{e().options.field.label&&C(K)})}var Q=X(G,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(S),_(J,S)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};F(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return P({component:pe,...f});H(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:V,$on:(i,u)=>B(o,i,u)},v=I(),A=O(v);{var h=i=>{var u=I(),q=O(u);ae(q,()=>r(e).id,x=>{E(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};F(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
1
+ import{t as P,bq as d,by as V,b as B,a_ as F,bo as L}from"./DMsRLycu.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as I,ay as O,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./B8o4lNgr.js";import{s as ne,k as ie,d as oe}from"./ZX1TUMY0.js";import{D as ae}from"./CY7B0zXs.js";import{I as se}from"./BBW6O_MW.js";import"./BVtWH5RS.js";import{L as le}from"./LXOG-o0_.js";import"./D0pB9PrJ.js";import{D as ue,k as W}from"./DeCG5uo6.js";import{G as ce,F as y}from"./0icrH9cf.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return P({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:V,$on:(s,m)=>B(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function E(f,o){if(new.target)return P({component:E,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:V,$on:(t,g)=>B(o,t,g)},h=I(),i=O(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),D=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(D)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),D=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(D)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var S=de(),G=U(S);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};F(G,C=>{e().options.field.label&&C(K)})}var Q=X(G,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(S),_(J,S)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};F(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return P({component:pe,...f});H(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:V,$on:(i,u)=>B(o,i,u)},v=I(),A=O(v);{var h=i=>{var u=I(),q=O(u);ae(q,()=>r(e).id,x=>{E(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};F(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./YNqVM6Pn.js";import{d as mt,g as lt,f as xt,e as kt}from"./Bu8Bi7-A.js";import{aK as _t,c6 as vt,aL as bt,c7 as wt,aP as Tt,c9 as St,f as s,aO as R,c3 as X,a6 as $t,a0 as Mt}from"./CJhZDVuE.js";import{d as it}from"./DQ0fhYWC.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./Cxik8d0T.js";import{d as mt,g as lt,f as xt,e as kt}from"./Q73TKJJV.js";import{aK as _t,c6 as vt,aL as bt,c7 as wt,aP as Tt,c9 as St,f as s,aO as R,c3 as X,a6 as $t,a0 as Mt}from"./WIFxQL3B.js";import{d as it}from"./CDBtKfA5.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.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),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{br as U}from"./B8o4lNgr.js";import{c as W}from"./ChTqQfQN.js";import{a as G,i as H}from"./DsSlZ8Hs.js";import{F as g,o as P,p,H as _}from"./55UpOZBT.js";import{Gt as c}from"./Ba4gy30X.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./CY7B0zXs.js";const f=W("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=U({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":E(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function E(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(G(T)||H(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as U}from"./B8o4lNgr.js";import{c as W}from"./ChTqQfQN.js";import{a as G,i as H}from"./C16OaEIp.js";import{F as g,o as P,p,H as _}from"./55UpOZBT.js";import{Gt as c}from"./Ba4gy30X.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./CY7B0zXs.js";const f=W("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=U({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":E(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function E(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(G(T)||H(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -1 +1 @@
1
- import{Gt as o,k_ as C,mB as E,me as L,Gy as W}from"./Ba4gy30X.js";import{w as z}from"./CjSUqH7t.js";import{dk as b,dp as f}from"./CZOawK4P.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),B=o.createSelector((t,e,s)=>{const c=E(t.fileExplorer.searches,s);return c?.workspaceId===e?c:void 0}),D=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),M=o.createSelector((t,e)=>a.select(t,e).nodes.map),R=o.createSelector((t,e)=>a.select(t,e).isLoading),q=o.createSelector((t,e)=>a.select(t,e).isInitialized),K=o.createSelector((t,e)=>a.select(t,e).error),O=o.createSelector((t,e)=>a.select(t,e).fileCount),V=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=b.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),_=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const A=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),J=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(c=>c!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const c=a.select(t,e),d=f.select(t,e);return c.workspacePath!==s?!0:c.isLoading?!1:c.isInitialized?d?.type==="remote"&&!c.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const c=E(s.nodes,s.rootPath);if(!c)return[];const d=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,c.children,d,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",n=v[i],p=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:n&&n.length>0?n:void 0,gitStatus:p,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=n&&n.length>0||p!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...n&&n.length>0?{agentEdits:n}:{},...p!==void 0?{gitStatus:p}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{K as a,O as b,V as c,_ as d,q as e,R as f,M as g,D as h,B as i,a as j,U as k,Q as l,A as m,J as n,T as o,g as s};
1
+ import{Gt as o,k_ as C,mB as E,me as L,Gy as W}from"./Ba4gy30X.js";import{w as z}from"./CjSUqH7t.js";import{dk as b,dp as f}from"./DIZ4FVb2.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),B=o.createSelector((t,e,s)=>{const c=E(t.fileExplorer.searches,s);return c?.workspaceId===e?c:void 0}),D=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),M=o.createSelector((t,e)=>a.select(t,e).nodes.map),R=o.createSelector((t,e)=>a.select(t,e).isLoading),q=o.createSelector((t,e)=>a.select(t,e).isInitialized),K=o.createSelector((t,e)=>a.select(t,e).error),O=o.createSelector((t,e)=>a.select(t,e).fileCount),V=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=b.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),_=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const A=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),J=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(c=>c!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const c=a.select(t,e),d=f.select(t,e);return c.workspacePath!==s?!0:c.isLoading?!1:c.isInitialized?d?.type==="remote"&&!c.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const c=E(s.nodes,s.rootPath);if(!c)return[];const d=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,c.children,d,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",n=v[i],p=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:n&&n.length>0?n:void 0,gitStatus:p,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=n&&n.length>0||p!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...n&&n.length>0?{agentEdits:n}:{},...p!==void 0?{gitStatus:p}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{K as a,O as b,V as c,_ as d,q as e,R as f,M as g,D as h,B as i,a as j,U as k,Q as l,A as m,J as n,T as o,g as s};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/ClCKezvS.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/an5t-R7s.js","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CNB2bBwk.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C4WMSxMK.js","/app/immutable/chunks/BVtWH5RS.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/_3D340Va.js","/app/immutable/chunks/D0FrwYUQ.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Czr8Q6s1.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/Bw0bJwpw.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/BdrU1VNg.js","/app/immutable/chunks/CZOawK4P.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/FCmf5yeg.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DHJ5VEVY.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D8DZcNyr.js","/app/immutable/chunks/9RsJ-LA0.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BXWlOAyO.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/VIItGFPL.js","/app/immutable/chunks/019JoT9w.js","/app/immutable/chunks/D7gNyfhu.js","/app/immutable/chunks/C2-6X3Z3.js","/app/immutable/chunks/s0Q29iiv.js","/app/immutable/chunks/BW3vrEnw.js","/app/immutable/chunks/Bp70Vk4U.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/BnQ8VATH.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as v,t as jt,bq as y,a_ as M,by as Wt,b as Ut,br as Sf,bu as Ot,bs as ia,bt as oi,b7 as Yi,ba as If,bl as Cf,bb as Ef,bm as Pf,a$ as Af,b9 as Tf,b8 as Rf,b2 as Lf,bf as Nf,bg as Mf,bk as Of,be as Df,bn as Bf,b0 as Ff,b4 as zf,bi as Hf,bh as jf,b6 as Wf,b5 as Uf,b3 as qf,bd as Vf,bc as Kf,bj as Gf,b1 as Jf,_ as Yf}from"./DMsRLycu.js";import{bI as Xf,bj as vs,aG as Zf,bs as qt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Vt,c9 as u,aA as _,a7 as wt,ay as ze,be as ar,b$ as Dt,aC as ba,bl as R,b_ as k,bO as x,aB as S,bo as ms,ca as It,bH as N,bV as xe,br as qr,bk as hs,c0 as Jn,ai as Pa,cd as ss,aw as Cn,a as Qf,aj as Tr,c7 as $f,c6 as Xi,c5 as Nn,bf as Os,bz as zc}from"./B8o4lNgr.js";import{D as Ds,I as ep,x as tp}from"./CY7B0zXs.js";import{c as rp,s as se,a as Mn,l as On,f as En,d as ur,k as mt,I as bs,h as Rt,i as Mr,o as np,j as ap,g as sp,n as op}from"./ZX1TUMY0.js";import{s as pn}from"./BsvsTmot.js";import{c as Zr}from"./i6wjEWTF.js";import{H as Oo,t as lr,n as ip,i as Zi,u as Qi}from"./AEjnVR5F.js";import{b as gr}from"./D2g8BuR1.js";import{h as Hc,bt as lp,cI as cp,dA as dp,dl as up,aw as fp,cs as pp,a1 as gp,cO as vp,dk as os,aB as Js,c1 as mp,H as hp,c as bp,$ as $i,cU as yp,bR as _p,L as xp,dh as wp,V as kp,dr as Sp,ae as Ip,f as Cp,t as Ep}from"./CZOawK4P.js";import{c as Pp}from"./D-62MVd3.js";import{n as $n,w as Ap,C as jc,M as Tp,R as Rp}from"./9RsJ-LA0.js";import{f as yt,ap as Wa,ai as Lp,am as Do,bc as Np}from"./CNB2bBwk.js";import{ai as Mp,a7 as el,X as Op,at as Dp,aM as Bp,I as Fp,R as zp,an as Hp,ab as jp,Y as Wp,b as tl,q as Up,n as qp,aS as Vp,m as Kp,aU as Bo,A as rl,aa as Gp,aT as Jp,ak as Wc,L as Uc,a3 as Yp,a2 as nl,J as al}from"./aCBgdpmi.js";import{cV as Xp,F as Pt,be as Fo,bI as Zp,an as Qp,aO as $p,cF as eg,bi as ii,by as tg,aE as qc,aJ as li,cU as Bs,aa as zo,cj as rg,c9 as ng,ce as ci,cA as Vc,bp as ag,e as sg,bY as sl,c5 as og,ch as ig,cQ as Kc,bS as ol,b5 as mo,bb as ts,aD as lg,ay as Ho,at as Gc,b9 as Jc,bz as cg,B as dg,bs as ug,a6 as Yc,cd as fg,ak as Xc,cH as Zc,cD as il,ar as Qc,aI as ll,a1 as pg,cr as gg,cO as vg,bL as $c,bk as mg,c1 as cl,am as ed,ax as hg,a8 as bg,a7 as yg}from"./Cy5UaoOp.js";import{c as td}from"./ChTqQfQN.js";import{h as _g}from"./utwal-1U.js";import{Gt as Lt,bH as xg,qH as dl,rh as wg,Hf as kg,Hl as Sg,g as rd,Gf as Ig,mA as nd,mP as ad,mO as sd,mt as Ys,p0 as di,we as Cg,tv as As,sQ as jo,tx as Eg,mh as od,Gy as Pg,rP as Ag,nD as id,q4 as ui,l0 as ul,a0 as fl,pD as Tg,pz as Rg,pE as Lg,pv as Ng,pB as Mg,tl as Og,yL as ld,yP as cd,mQ as pl,ba as Wo,E_ as Dg,Gb as Bg,mK as Fg,um as zg,un as Hg,ul as gl,zJ as Gn,cm as dd,ca as jg,c$ as Wg,d6 as Ug,yV as qg}from"./Ba4gy30X.js";import{k as ud,f as vl,O as ml,M as Vg,J as Kg,E as Gg,r as Jg,q as Yg,R as Xg,Q as fd,N as Uo,e as is,a2 as hl,i as Zg}from"./ClCKezvS.js";import{bi as Qg,bp as $g,h as ev,t as tv,bs as rv,U as nv,W as av,Y as sv}from"./Bw0bJwpw.js";import{i as ov,h as iv,p as qo,bQ as lv,E as cv,bP as dv,bM as uv,aw as bl,bO as fv,bn as Vo,aG as pv,n as gv,b7 as vv,s as mv}from"./VIItGFPL.js";import{c5 as hv,c7 as bv,c6 as yv,aW as _v,aU as xv,aV as wv,a0 as kv,ah as Ss,ag as Sv,au as yl,aC as Iv,af as Cv,B as Ev,i as Pv,C as Ts,cG as Av,aP as _l,cL as Tv,ac as Rv,a4 as Lv,r as Nv,p as Mv,az as Ov,cO as Dv,cx as Bv,cq as Fv,ch as zv,bH as Hv}from"./Uc38XdXI.js";import{s as jv,j as Wv,i as Uv,I as qa,c as xl}from"./C4WMSxMK.js";import"./BVtWH5RS.js";import"./Czr8Q6s1.js";import{J as fi,P as qv,s as Vv,k as Kv,G as Gv,o as Jv,l as Yv,M as Xv,H as Zv,w as Ha,a as Qv,K as $v,n as em,R as tm}from"./_3D340Va.js";import{t as ls,m as rm,O as nm,M as am,S as ma}from"./D0FrwYUQ.js";import{C as Ko}from"./CsY3AFxY.js";import{aK as sm,aS as om,aI as im,aO as lm,a6 as Ka,aY as wl,aE as cm,aL as dm,aR as pi,aM as gi,V as ho,an as um,W as fm,aU as pm,aD as gm,aN as vm,aQ as mm,a$ as hm,aZ as bm,av as pd,p as ym,n as _m,aP as xm,Z as wm,z as km}from"./Brep-rEI.js";import{s as Go}from"./C1YheCPG.js";import{M as Sm}from"./CtFCyWOY.js";import{u as vi,w as Im,v as Xs,G as Cm,A as kl,e as cs,d as ha,I as Sl,c as Em,f as Pm,g as Il,i as Am,b as Tm,o as gd,j as Rm,O as Lm,x as Nm,k as vd,S as Mm,N as Om,q as Cl,p as Dm,n as El,z as Bm,s as Fm}from"./C4QILlBJ.js";import{o as Pl,a as Al,T as bo,b as zm}from"./D44dgkjW.js";import{ad as Hm,a4 as jm,J as Wm,E as Um,ag as qm}from"./4tDE6wja.js";import{D as ds}from"./RKlkXviB.js";import"./DZmEaQ-W.js";import{C as ea}from"./ZWPXcFOT.js";import{M as Vm}from"./CJhZDVuE.js";import{g as mi}from"./an5t-R7s.js";import{f as Tl}from"./s0Q29iiv.js";import{c as Rs}from"./Cf3hiWsI.js";import{handleIntentLink as Km}from"./D_J63Zyl.js";import{s as Gm,a as Jm,f as Ym,d as Xm,r as Zm,h as Qm,w as rs,g as $m,W as eh,H as th,c as rh,M as md}from"./ObcETXIn.js";import{e as nh,q as ah}from"./55UpOZBT.js";import{showAssistantContent as sh}from"./DvbSI76r.js";import{o as Fs,c as oh,n as ih}from"./BnQ8VATH.js";import{p as lh}from"./BvW_0loN.js";import{m as ch}from"./DY0zw3Os.js";import{h as Is}from"./BSYw0uJ2.js";import{i as hd}from"./019JoT9w.js";import{b as dh,f as uh,h as fh,j as ph}from"./BdrU1VNg.js";import{T as yo}from"./BEsSRpwf.js";import{i as gh,r as Rl}from"./Xj89EZIy.js";import{a as vh}from"./BXWlOAyO.js";import{a as mh}from"./BJzHxIyr.js";import{p as hh}from"./BHNxqf_R.js";const bh="intent:inline-visual-draft";function oI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DeCG5uo6.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/Dl-1cK26.js","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/XsSJjm3Z.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBW6O_MW.js","/app/immutable/chunks/BVtWH5RS.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/LXOG-o0_.js","/app/immutable/chunks/06CP606v.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Czr8Q6s1.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/D0pB9PrJ.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/BdrU1VNg.js","/app/immutable/chunks/DIZ4FVb2.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/FCmf5yeg.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DHJ5VEVY.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/PTBua5Xh.js","/app/immutable/chunks/Dky-2Jfq.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/9-D0Q0S6.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/Dn1B9mMU.js","/app/immutable/chunks/019JoT9w.js","/app/immutable/chunks/D7gNyfhu.js","/app/immutable/chunks/B4pPTpp_.js","/app/immutable/chunks/CqMkgp96.js","/app/immutable/chunks/9Pov1PHF.js","/app/immutable/chunks/755iX0_8.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CBgR5nXI.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as v,t as jt,bq as y,a_ as M,by as Wt,b as Ut,br as Sf,bu as Ot,bs as ia,bt as oi,b7 as Yi,ba as If,bl as Cf,bb as Ef,bm as Pf,a$ as Af,b9 as Tf,b8 as Rf,b2 as Lf,bf as Nf,bg as Mf,bk as Of,be as Df,bn as Bf,b0 as Ff,b4 as zf,bi as Hf,bh as jf,b6 as Wf,b5 as Uf,b3 as qf,bd as Vf,bc as Kf,bj as Gf,b1 as Jf,_ as Yf}from"./DMsRLycu.js";import{bI as Xf,bj as vs,aG as Zf,bs as qt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Vt,c9 as u,aA as _,a7 as wt,ay as ze,be as ar,b$ as Dt,aC as ba,bl as R,b_ as k,bO as x,aB as S,bo as ms,ca as It,bH as N,bV as xe,br as qr,bk as hs,c0 as Jn,ai as Pa,cd as ss,aw as Cn,a as Qf,aj as Tr,c7 as $f,c6 as Xi,c5 as Nn,bf as Os,bz as zc}from"./B8o4lNgr.js";import{D as Ds,I as ep,x as tp}from"./CY7B0zXs.js";import{c as rp,s as se,a as Mn,l as On,f as En,d as ur,k as mt,I as bs,h as Rt,i as Mr,o as np,j as ap,g as sp,n as op}from"./ZX1TUMY0.js";import{s as pn}from"./BsvsTmot.js";import{c as Zr}from"./i6wjEWTF.js";import{H as Oo,t as lr,n as ip,i as Zi,u as Qi}from"./AEjnVR5F.js";import{b as gr}from"./D2g8BuR1.js";import{h as Hc,bt as lp,cI as cp,dA as dp,dl as up,aw as fp,cs as pp,a1 as gp,cO as vp,dk as os,aB as Js,c1 as mp,H as hp,c as bp,$ as $i,cU as yp,bR as _p,L as xp,dh as wp,V as kp,dr as Sp,ae as Ip,f as Cp,t as Ep}from"./DIZ4FVb2.js";import{c as Pp}from"./D-62MVd3.js";import{n as $n,w as Ap,C as jc,M as Tp,R as Rp}from"./Dky-2Jfq.js";import{f as yt,ap as Wa,ai as Lp,am as Do,bc as Np}from"./XsSJjm3Z.js";import{ai as Mp,a7 as el,X as Op,at as Dp,aM as Bp,I as Fp,R as zp,an as Hp,ab as jp,Y as Wp,b as tl,q as Up,n as qp,aS as Vp,m as Kp,aU as Bo,A as rl,aa as Gp,aT as Jp,ak as Wc,L as Uc,a3 as Yp,a2 as nl,J as al}from"./uCtJ9vOe.js";import{cV as Xp,F as Pt,be as Fo,bI as Zp,an as Qp,aO as $p,cF as eg,bi as ii,by as tg,aE as qc,aJ as li,cU as Bs,aa as zo,cj as rg,c9 as ng,ce as ci,cA as Vc,bp as ag,e as sg,bY as sl,c5 as og,ch as ig,cQ as Kc,bS as ol,b5 as mo,bb as ts,aD as lg,ay as Ho,at as Gc,b9 as Jc,bz as cg,B as dg,bs as ug,a6 as Yc,cd as fg,ak as Xc,cH as Zc,cD as il,ar as Qc,aI as ll,a1 as pg,cr as gg,cO as vg,bL as $c,bk as mg,c1 as cl,am as ed,ax as hg,a8 as bg,a7 as yg}from"./Cy5UaoOp.js";import{c as td}from"./ChTqQfQN.js";import{h as _g}from"./utwal-1U.js";import{Gt as Lt,bH as xg,qH as dl,rh as wg,Hf as kg,Hl as Sg,g as rd,Gf as Ig,mA as nd,mP as ad,mO as sd,mt as Ys,p0 as di,we as Cg,tv as As,sQ as jo,tx as Eg,mh as od,Gy as Pg,rP as Ag,nD as id,q4 as ui,l0 as ul,a0 as fl,pD as Tg,pz as Rg,pE as Lg,pv as Ng,pB as Mg,tl as Og,yL as ld,yP as cd,mQ as pl,ba as Wo,E_ as Dg,Gb as Bg,mK as Fg,um as zg,un as Hg,ul as gl,zJ as Gn,cm as dd,ca as jg,c$ as Wg,d6 as Ug,yV as qg}from"./Ba4gy30X.js";import{k as ud,f as vl,O as ml,M as Vg,J as Kg,E as Gg,r as Jg,q as Yg,R as Xg,Q as fd,N as Uo,e as is,a2 as hl,i as Zg}from"./DeCG5uo6.js";import{bi as Qg,bp as $g,h as ev,t as tv,bs as rv,U as nv,W as av,Y as sv}from"./D0pB9PrJ.js";import{i as ov,h as iv,p as qo,bQ as lv,E as cv,bP as dv,bM as uv,aw as bl,bO as fv,bn as Vo,aG as pv,n as gv,b7 as vv,s as mv}from"./Dn1B9mMU.js";import{c5 as hv,c7 as bv,c6 as yv,aW as _v,aU as xv,aV as wv,a0 as kv,ah as Ss,ag as Sv,au as yl,aC as Iv,af as Cv,B as Ev,i as Pv,C as Ts,cG as Av,aP as _l,cL as Tv,ac as Rv,a4 as Lv,r as Nv,p as Mv,az as Ov,cO as Dv,cx as Bv,cq as Fv,ch as zv,bH as Hv}from"./BaPbYStu.js";import{s as jv,j as Wv,i as Uv,I as qa,c as xl}from"./BBW6O_MW.js";import"./BVtWH5RS.js";import"./Czr8Q6s1.js";import{J as fi,P as qv,s as Vv,k as Kv,G as Gv,o as Jv,l as Yv,M as Xv,H as Zv,w as Ha,a as Qv,K as $v,n as em,R as tm}from"./LXOG-o0_.js";import{t as ls,m as rm,O as nm,M as am,S as ma}from"./06CP606v.js";import{C as Ko}from"./CJhyAq2H.js";import{aK as sm,aS as om,aI as im,aO as lm,a6 as Ka,aY as wl,aE as cm,aL as dm,aR as pi,aM as gi,V as ho,an as um,W as fm,aU as pm,aD as gm,aN as vm,aQ as mm,a$ as hm,aZ as bm,av as pd,p as ym,n as _m,aP as xm,Z as wm,z as km}from"./OT3S-JEx.js";import{s as Go}from"./DhkHgLRA.js";import{M as Sm}from"./DyqEo12-.js";import{u as vi,w as Im,v as Xs,G as Cm,A as kl,e as cs,d as ha,I as Sl,c as Em,f as Pm,g as Il,i as Am,b as Tm,o as gd,j as Rm,O as Lm,x as Nm,k as vd,S as Mm,N as Om,q as Cl,p as Dm,n as El,z as Bm,s as Fm}from"./Cc7prgX7.js";import{o as Pl,a as Al,T as bo,b as zm}from"./BtOZE8-p.js";import{ad as Hm,a4 as jm,J as Wm,E as Um,ag as qm}from"./BqJBJZqA.js";import{D as ds}from"./C1QeO17D.js";import"./DZmEaQ-W.js";import{C as ea}from"./DZEyizFV.js";import{M as Vm}from"./WIFxQL3B.js";import{g as mi}from"./Dl-1cK26.js";import{f as Tl}from"./CqMkgp96.js";import{c as Rs}from"./CXhBPURx.js";import{handleIntentLink as Km}from"./DFlL22UR.js";import{s as Gm,a as Jm,f as Ym,d as Xm,r as Zm,h as Qm,w as rs,g as $m,W as eh,H as th,c as rh,M as md}from"./qDe1FahS.js";import{e as nh,q as ah}from"./55UpOZBT.js";import{showAssistantContent as sh}from"./CJcny7E2.js";import{o as Fs,c as oh,n as ih}from"./CBgR5nXI.js";import{p as lh}from"./C_km1Zzs.js";import{m as ch}from"./DY0zw3Os.js";import{h as Is}from"./BSYw0uJ2.js";import{i as hd}from"./019JoT9w.js";import{b as dh,f as uh,h as fh,j as ph}from"./BdrU1VNg.js";import{T as yo}from"./D3RlZ9WF.js";import{i as gh,r as Rl}from"./DbR25MIl.js";import{a as vh}from"./9-D0Q0S6.js";import{a as mh}from"./BJzHxIyr.js";import{p as hh}from"./BUlvUEKW.js";const bh="intent:inline-visual-draft";function oI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -257,7 +257,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
257
257
  `,A1=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ro=96,_c=2e4,T1=480,wu=512,R1=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function L1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const f=(C,B={})=>{window.parent.postMessage({channel:r,type:C,...B},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const B=JSON.parse(JSON.stringify(C));return i=B.state,p=B,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let L=!1,b=-1,h=innerHeight,P=Number.NaN,A=0,H=0;const F=()=>{if(L=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const B=innerHeight,G=C-B;if(B>h+1&&G>1&&Math.abs(G-P)<=1?A+=1:(B!==h||G<=1)&&(A=0),h=B,P=G,!H&&A>=3){H=Math.max(a,B);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}H&&(C=Math.min(C,H)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{L||(L=!0,requestAnimationFrame(F))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const B=document.documentElement;B.classList.toggle("dark",C.dark),B.style.colorScheme=C.dark?"dark":"light";const G=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof G=="string"&&G.length<512&&B.style.setProperty("--inline-html-root-font-size",G);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const le=C.variables[Y];typeof le=="string"&&le.length<512&&B.style.setProperty(Y,le)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const j=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const B=le=>{const Ee=getComputedStyle(le);if(le!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ee.overflowY)||/^(hidden|clip)$/.test(Ee.overflowY))return!1;const de=le.scrollHeight-le.clientHeight;return de>1&&(C.deltaY<0?le.scrollTop>1:le.scrollTop<de-1)};if(C.composedPath().some(le=>le instanceof Element&&B(le))||document.scrollingElement&&B(document.scrollingElement))return;const G=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,C.deltaY*G));Number.isFinite(Y)&&(C.preventDefault(),c({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",j),window.addEventListener("wheel",j,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const B=C.reason;f("error",{message:String(B instanceof Error?B.message:B).slice(0,300)})}),window.addEventListener("click",C=>{const B=C.target instanceof Element?C.target.closest("a, area"):null;if(!B)return;(B.getAttribute("href")??B.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function N1(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let l;const c=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!l&&f.ports.length===1){l=f.ports[0],l.onmessage=c;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function M1(r,t,n,a,s,o,l,c){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(le=>le.remove()),Y.querySelectorAll("template").forEach(le=>p(le.content)),Y.querySelectorAll("a, area").forEach(le=>{for(const Ee of["href","xlink:href"])le.getAttribute(Ee)?.startsWith("#")||le.removeAttribute(Ee);le.removeAttribute("target"),le.removeAttribute("ping"),le.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),L=f.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
258
258
  font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const A=f.createElement("script"),H=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);A.textContent=`(${r.bridge})(...${H}, (${r.validate}));`,f.head.prepend(L,b,h,A);const F=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),D=O.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const j=O.createElement("meta");j.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const B=O.createElement("script"),G=g([a,F,o,r.maxScrollDelta]);return B.textContent=`(${r.shell})(...${G}, (${r.validate}));`,O.head.prepend(D,j,C,B),`<!doctype html>${O.documentElement.outerHTML}`}const O1=()=>({csp:R1,styles:P1,maxScrollDelta:wu,lockHeight:T1,bridge:L1.toString(),shell:N1.toString(),validate:ui.toString()});function D1(r,t,n,a,s=null,o=""){return M1(O1(),ui,r,t,n,a,s,o)}function xc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(A1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function B1(r,t,n,a,s=null){return D1(r,t,n,a,s,E1)}var F1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),z1=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),H1=S('<p class="sr-only" role="status"> </p>'),j1=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),W1=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),U1=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),q1=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),V1=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),K1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),G1=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),J1=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),Y1=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),X1=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),Z1=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),Q1=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function ku(r,t){if(new.target)return jt({component:ku,...r});qt(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),l=y(t,"record",7),c=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),L=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),P=y(t,"exportError",7),A,H=xe(void 0),F=xe(!1),O=xe(!1),D=xe(0),j=xe(""),C=xe(""),B=xe(!1),G=xe(""),Y=xe(qr(Ro)),le=xe(n),Ee=xe(""),de=xe(ul()),ne=xe(void 0),ge,Me=xe(void 0),K=xe(!1);const pe=u(()=>l()??e(de)),ce=u(()=>c()!=="loading"&&(c()!=="error"||!!e(pe).current)),Pe=u(()=>!s()&&o()&&!!a().trim()&&e(ce)),Le=u(()=>Math.min(_c,Math.max(Ro,e(Y)))),we=u(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(G)?"error":e(B)?"ready":"loading":"empty":"incomplete"),Qe=u(()=>s()||c()==="loading"||e(Pe)&&!e(B)&&!e(G));function We(Q){const _e={...Q,current:e(ne)??Q.current};N(de,_e),f()?.(_e)}function $e(){const Q=e(ne);!Q||e(pe).scenarios.length>=fl||(We({...e(pe),scenarios:[...e(pe).scenarios,{id:crypto.randomUUID(),name:Of({number:Qi(e(pe).scenarios.length+1)}),snapshot:structuredClone(Q)}]}),N(K,!0))}function ee(Q,_e){const rt=_e.trim().slice(0,120);rt&&We({...e(pe),scenarios:e(pe).scenarios.map(tt=>tt.id===Q?{...tt,name:rt}:tt)})}function Z(Q){const _e=structuredClone(Q);N(ne,_e),N(Me,_e),We({...e(pe),current:_e}),N(D,e(D)+1)}function Ge(Q){return typeof Q=="number"?Qi(Q):typeof Q=="string"?Q:JSON.stringify(Q)}function J(){!e(H)?.contentWindow||!e(C)||e(H).contentWindow.postMessage({channel:e(C),type:"theme",theme:xc(A)},"*")}function V(Q){let _e=A.parentElement;for(;_e;){const rt=getComputedStyle(_e),tt=_e.scrollHeight-_e.clientHeight;if(/^(auto|scroll|overlay)$/.test(rt.overflowY)&&tt>1){if(Q<0?_e.scrollTop>0:_e.scrollTop<tt){_e.dispatchEvent(new WheelEvent("wheel",{deltaY:Q,bubbles:!0})),_e.scrollTop+=Q;return}if(/^(contain|none)$/.test(rt.overscrollBehaviorY))return}_e=_e.parentElement}window.scrollBy({top:Q,behavior:"instant"})}It(()=>{if(!e(F))return;const Q=a(),_e=e(Pe);e(D),Nn(()=>{ge!==Q&&(N(de,ul()),N(ne,void 0),N(K,!1),N(Me,void 0),ge=Q),N(B,!1),N(G,""),N(Ee,""),N(Y,Ro,!0),N(C,crypto.randomUUID(),!0),N(j,_e?B1(Q,e(C),xc(A),Yi(),e(Me)??e(ne)??e(pe).current):"",!0),N(Me,void 0)})}),hs(()=>{N(F,!0);const Q=gt=>{if(gt.source!==e(H)?.contentWindow||gt.origin!=="null")return;const He=gt.data;if(!(!He||typeof He!="object"||He.channel!==e(C)))if(He.type==="resize"&&typeof He.height=="number"&&Number.isFinite(He.height)&&He.height>=0)N(Y,Math.min(_c,Math.ceil(He.height)),!0);else if(He.type==="ready")N(B,!0),J();else if(He.type==="error"&&typeof He.message=="string")N(G,He.message.slice(0,300),!0);else if(He.type==="layout"&&typeof He.message=="string")N(Ee,He.message.slice(0,300),!0);else if(He.type==="snapshot"&&e(Pe)&&ui(He.snapshot)){const ht=He.snapshot;N(ne,ht),We({...e(pe),current:ht})}else He.type==="wheel"&&e(B)&&e(Pe)&&!e(O)&&!e(Qe)&&typeof He.deltaY=="number"&&Number.isFinite(He.deltaY)&&He.deltaY!==0&&Math.abs(He.deltaY)<=wu&&V(He.deltaY)},_e=()=>{N(le,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},rt=new MutationObserver(J);rt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const tt=window.matchMedia("(prefers-color-scheme: dark)");return tt.addEventListener("change",J),window.addEventListener("message",Q),window.addEventListener("resize",_e),_e(),()=>{rt.disconnect(),tt.removeEventListener("change",J),window.removeEventListener("message",Q),window.removeEventListener("resize",_e)}});var q={get source(){return a()},set source(Q){a(Q),_()},get isStreaming(){return s()},set isStreaming(Q=!1){s(Q),_()},get isComplete(){return o()},set isComplete(Q=!0){o(Q),_()},get record(){return l()},set record(Q){l(Q),_()},get storageStatus(){return c()},set storageStatus(Q="ready"){c(Q),_()},get onRecordChange(){return f()},set onRecordChange(Q){f(Q),_()},get onUseConfiguration(){return i()},set onUseConfiguration(Q){i(Q),_()},get onExport(){return p()},set onExport(Q){p(Q),_()},get onRetry(){return g()},set onRetry(Q){g(Q),_()},get storageError(){return L()},set storageError(Q){L(Q),_()},get exportStatus(){return b()},set exportStatus(Q){b(Q),_()},get exportPath(){return h()},set exportPath(Q){h(Q),_()},get exportError(){return P()},set exportError(Q){P(Q),_()},$set:Wt,$on:(Q,_e)=>Ut(t,Q,_e)},ue=Q1(),be=I(ue),$=I(be);yt($,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{N(O,!e(O))},children:(Q,_e)=>{ar();var rt=Dt();k(tt=>x(rt,tt),[()=>e(O)?If():Cf()]),d(Q,rt)},$$slots:{default:!0}});var fe=m($,2);{let Q=u(()=>!e(Pe));yt(fe,{variant:"ghost",size:"sm",get disabled(){return e(Q)},onclick:()=>{N(D,e(D)+1)},children:(_e,rt)=>{ar();var tt=Dt();k(gt=>x(tt,gt),[()=>Ef()]),d(_e,tt)},$$slots:{default:!0}})}w(be);var Ae=m(be,2);{var Fe=Q=>{var _e=z1(),rt=ze(_e),tt=I(rt),gt=R(tt,!0),He=m(tt,2);{var ht=pt=>{yt(pt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ct,At)=>{ar();var Zt=Dt();k(_t=>x(Zt,_t),[()=>Df()]),d(Ct,Zt)},$$slots:{default:!0}})};M(He,pt=>{g()&&pt(ht)})}w(rt);var dt=m(rt,2);{var vt=pt=>{var Ct=F1(),At=R(Ct,!0);k(()=>x(At,L())),d(pt,Ct)};M(dt,pt=>{L()&&pt(vt)})}k(pt=>x(gt,pt),[()=>Pf()]),d(Q,_e)};M(Ae,Q=>{c()==="error"&&Q(Fe)})}var at=m(Ae,2);{var z=Q=>{var _e=H1(),rt=R(_e,!0);k(tt=>x(rt,tt),[()=>s()?Af():Tf()]),d(Q,_e)},ae=Q=>{var _e=j1(),rt=R(_e,!0);k(tt=>x(rt,tt),[()=>o()?Lf():Rf()]),d(Q,_e)},Te=Q=>{var _e=W1(),rt=I(_e),tt=R(rt,!0),gt=m(rt,2),He=R(gt,!0);w(_e),k(ht=>{x(tt,ht),x(He,e(G))},[()=>Nf()]),d(Q,_e)};M(at,Q=>{e(Qe)?Q(z):e(Pe)?e(G)&&Q(Te,2):Q(ae,1)})}var Ze=m(at,2),me=I(Ze);{var T=Q=>{var _e=U1();let rt,tt;gr(_e,gt=>N(H,gt),()=>e(H)),k(gt=>{se(_e,"title",gt),se(_e,"srcdoc",e(j)),rt=mt(_e,1,"block w-full border-0 svelte-1kkow1d",null,rt,{"preview-hidden":e(O)||e(Qe)}),se(_e,"aria-hidden",e(O)||e(Qe)),tt=On(_e,"",tt,{height:`${e(Le)}px`})},[()=>Yi()]),d(Q,_e)};M(me,Q=>{e(Pe)&&e(j)&&Q(T)})}var U=m(me,2);{var ye=Q=>{ea(Q,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(le)}})},Ue=Q=>{var _e=q1(),rt=I(_e),tt=I(rt);Ha(tt,{class:"h-4 w-32 max-w-1/2"});var gt=m(tt,2);Ha(gt,{class:"h-3 w-2/3"}),w(rt);var He=m(rt,2);Ha(He,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=m(He,2),dt=I(ht);Ha(dt,{class:"h-3 w-16"});var vt=m(dt,2);Ha(vt,{class:"h-2 min-w-0 flex-1"});var pt=m(vt,2);Ha(pt,{class:"h-3 w-10"}),w(ht),w(_e),d(Q,_e)};M(U,Q=>{e(O)?Q(ye):e(Qe)&&Q(Ue,1)})}w(Ze);var Ie=m(Ze,2);{var qe=Q=>{var _e=Z1(),rt=ze(_e),tt=I(rt);{var gt=Et=>{{let Jt=u(()=>!e(B)||!!e(G));yt(Et,{size:"sm",get disabled(){return e(Jt)},onclick:()=>e(ne)&&i()(e(ne)),children:(Nt,ve)=>{ar();var te=Dt();k(je=>x(te,je),[()=>Bf()]),d(Nt,te)},$$slots:{default:!0}})}};M(tt,Et=>{i()&&Et(gt)})}var He=m(tt,2);{let Et=u(()=>!e(B)||!!e(G)||e(pe).scenarios.length>=fl);yt(He,{variant:"ghost",size:"sm",get disabled(){return e(Et)},onclick:$e,children:(Jt,Nt)=>{ar();var ve=Dt();k(te=>x(ve,te),[()=>Mf()]),d(Jt,ve)},$$slots:{default:!0}})}var ht=m(He,2);{var dt=Et=>{yt(Et,{variant:"ghost",size:"sm",get active(){return e(K)},get"aria-expanded"(){return e(K)},onclick:()=>N(K,!e(K)),children:(Jt,Nt)=>{ar();var ve=Dt();k(te=>x(ve,te),[()=>Ff()]),d(Jt,ve)},$$slots:{default:!0}})};M(ht,Et=>{e(pe).scenarios.length&&Et(dt)})}var vt=m(ht,2);{var pt=Et=>{{let Jt=u(()=>!e(B)||b()==="saving");yt(Et,{variant:"ghost",size:"sm",get disabled(){return e(Jt)},onclick:()=>p()({...e(pe),current:e(ne)??null}),children:(Nt,ve)=>{ar();var te=Dt();k(je=>x(te,je),[()=>zf()]),d(Nt,te)},$$slots:{default:!0}})}};M(vt,Et=>{p()&&Et(pt)})}var Ct=m(vt,2);{var At=Et=>{var Jt=V1(),Nt=R(Jt,!0);k(ve=>x(Nt,ve),[()=>c()==="saving"?Hf():c()==="ready"?jf():""]),d(Et,Jt)};M(Ct,Et=>{f()&&Et(At)})}w(rt);var Zt=m(rt,2);{var _t=Et=>{var Jt=K1(),Nt=I(Jt),ve=m(Nt);{var te=je=>{var nt=Dt();k(()=>x(nt,P())),d(je,nt)};M(ve,je=>{b()==="error"&&P()&&je(te)})}w(Jt),k(je=>x(Nt,`${je??""} `),[()=>b()==="saving"?Wf():b()==="saved"?Uf({path:h()??""}):qf()]),d(Et,Jt)};M(Zt,Et=>{b()&&Et(_t)})}var Ht=m(Zt,2);{var er=Et=>{var Jt=X1(),Nt=I(Jt),ve=I(Nt),te=I(ve),je=I(te),nt=R(je,!0),ct=m(je),Be=R(ct,!0),X=m(ct);Rt(X,17,()=>e(pe).scenarios,ie=>ie.id,(ie,ke)=>{var Ce=G1(),Oe=I(Ce);{let Se=u(()=>Gf());qa(Oe,{get value(){return e(ke).name},get"aria-label"(){return e(Se)},maxlength:120,onblur:Ye=>{Ye.currentTarget.value.trim()||(Ye.currentTarget.value=e(ke).name),ee(e(ke).id,Ye.currentTarget.value)},onkeydown:Ye=>{Ye.key==="Enter"&&Ye.currentTarget.blur(),Ye.key==="Escape"&&(Ye.currentTarget.value=e(ke).name,Ye.currentTarget.blur())}})}var De=m(Oe,2),Je=I(De);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Z(e(ke).snapshot),children:(Se,Ye)=>{ar();var Ke=Dt();k(et=>x(Ke,et),[()=>Vf()]),d(Se,Ke)},$$slots:{default:!0}});var Ve=m(Je,2);yt(Ve,{variant:"ghost",size:"sm",onclick:()=>We({...e(pe),scenarios:e(pe).scenarios.filter(Se=>Se.id!==e(ke).id)}),children:(Se,Ye)=>{ar();var Ke=Dt();k(et=>x(Ke,et),[()=>Kf()]),d(Se,Ke)},$$slots:{default:!0}}),w(De),w(Ce),d(ie,Ce)}),w(te),w(ve);var oe=m(ve);Rt(oe,20,()=>["inputs","results"],Mr,(ie,ke)=>{const Ce=u(()=>ke),Oe=u(()=>Array.from(new Set([...Object.keys(e(ne)[e(Ce)]),...e(pe).scenarios.flatMap(Ve=>Object.keys(Ve.snapshot[e(Ce)]))])));var De=wt(),Je=ze(De);Rt(Je,16,()=>e(Oe),Ve=>Ve,(Ve,Se)=>{var Ye=Y1(),Ke=I(Ye),et=R(Ke,!0),ot=m(Ke);Rt(ot,17,()=>[e(ne),...e(pe).scenarios.map(it=>it.snapshot)],Mr,(it,ut)=>{var kt=J1(),bt=R(kt,!0);k(Tt=>x(bt,Tt),[()=>Object.hasOwn(e(ut)[e(Ce)],Se)?Ge(e(ut)[e(Ce)][Se]):"—"]),d(it,kt)}),w(Ye),k(()=>x(et,Se)),d(Ve,Ye)}),d(ie,De)}),w(oe),w(Nt),w(Jt),k(ie=>{x(nt,e(ne).title),x(Be,ie)},[()=>Jf()]),d(Et,Jt)};M(Ht,Et=>{e(K)&&e(pe).scenarios.length&&Et(er)})}d(Q,_e)};M(Ie,Q=>{e(ne)&&e(Pe)&&Q(qe)})}return w(ue),gr(ue,Q=>A=Q,()=>A),k(()=>{se(ue,"data-inline-html-status",e(we)),se(ue,"data-inline-html-layout",e(Ee)?"viewport-locked":void 0),se(ue,"aria-busy",e(Qe))}),d(r,ue),Vt(q)}var $1=S('<div class="w-full min-w-0"><!></div>');function e0(r,t){if(new.target)return jt({component:e0,...r});qt(t,!0);const n=()=>Ot(e(b),"$agent$",s),a=()=>Ot(e(H),"$entry$",s),[s,o]=ia();let l=y(t,"block",7),c=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),L=xe(void 0);const b=u(()=>Js(i()??"")),h=u(()=>c()==="assistant"&&f()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!id(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),P=u(()=>!!(f()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),A=u(()=>e(h)?Mg(e(h)):""),H=u(()=>im(e(A)));It(()=>{e(h)&&Lt.dispatch(Tg(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent(bh,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var O={get block(){return l()},set block(Y){l(Y),_()},get role(){return c()},set role(Y){c(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Wt,$on:(Y,le)=>Ut(t,Y,le)},D=wt(),j=ze(D);{var C=Y=>{var le=$1(),Ee=I(le);{let de=u(()=>l().metadata?.isStreaming??!1),ne=u(()=>l().metadata?.fenceClosed??!1),ge=u(()=>a()?.record),Me=u(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),K=u(()=>a()?.error),pe=u(()=>e(h)?$e=>Lt.dispatch(Ng(e(A),$e)):void 0),ce=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Pe=u(()=>e(h)?()=>Lt.dispatch(Lg(e(A))):void 0),Le=u(()=>e(h)?$e=>Lt.dispatch(Rg(e(A),crypto.randomUUID(),$e)):void 0),we=u(()=>a()?.export?.status),Qe=u(()=>a()?.export?.path),We=u(()=>a()?.export?.error);ku(Ee,{get source(){return l().content},get isStreaming(){return e(de)},get isComplete(){return e(ne)},get record(){return e(ge)},get storageStatus(){return e(Me)},get storageError(){return e(K)},get onRecordChange(){return e(pe)},get onUseConfiguration(){return e(ce)},get onRetry(){return e(Pe)},get onExport(){return e(Le)},get exportStatus(){return e(we)},get exportPath(){return e(Qe)},get exportError(){return e(We)}})}w(le),gr(le,de=>N(L,de),()=>e(L)),d(Y,le)},B=Y=>{ea(Y,{get code(){return l().content},language:"html"})};M(j,Y=>{c()==="assistant"?Y(C):Y(B,-1)})}d(r,D);var G=Vt(O);return o(),G}var t0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function r0(r,t){if(new.target)return jt({component:r0,...r});qt(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),_()},$set:Wt,$on:(l,c)=>Ut(t,l,c)},s=t0(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),Vt(a)}var n0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),a0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),s0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),o0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),i0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function l0(r,t){if(new.target)return jt({component:l0,...r});qt(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Wt,$on:(b,h)=>Ut(t,b,h)},s=i0(),o=I(s),l=I(o);Pt(l,{get icon(){return Kc},size:"sm",class:"text-primary-ink/70"});var c=m(l,2),f=R(c,!0);w(o);var i=m(o,2);Rt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=o0(),A=I(P),H=I(A),F=I(H),O=R(F,!0),D=m(F,2);{var j=Ee=>{var de=n0(),ne=R(de,!0);k(ge=>x(ne,ge),[()=>v.chat_detectedScripts_service_badge()]),d(Ee,de)},C=Ee=>{var de=a0(),ne=R(de,!0);k(ge=>x(ne,ge),[()=>v.chat_detectedScripts_command_badge()]),d(Ee,de)};M(D,Ee=>{e(h).mode==="service"?Ee(j):Ee(C,-1)})}var B=m(D,2);{var G=Ee=>{var de=s0(),ne=R(de,!0);k(()=>x(ne,e(h).category)),d(Ee,de)};M(B,Ee=>{e(h).category&&e(h).category!=="other"&&Ee(G)})}w(H);var Y=m(H,2),le=R(Y,!0);w(A),w(P),k(()=>{x(O,e(h).name),x(le,e(h).command)}),d(b,P)}),w(i);var p=m(i,2),g=I(p),L=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(L,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:lr(n().length)}):v.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),Vt(a)}function c0(r,t){if(new.target)return jt({component:c0,...r});qt(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),l=y(t,"onReject",7);function c(){o()?.(),$n.success(v.chat_diffViewer_applied_toast())}function f(){l()?.(),$n.info(v.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return l()},set onReject(g){l(g),_()},$set:Wt,$on:(g,L)=>Ut(t,g,L)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());ds(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Vt(p)}var d0=ba('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),wc=ba("<circle></circle>"),u0=ba('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),f0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Ms(r,t){if(new.target)return jt({component:Ms,...r});qt(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),l=u(()=>s()/2),c=u(()=>e(l)),f=u(()=>e(l)),i=u(()=>s()*.12),p=u(()=>e(l)-e(i)/2),g=u(()=>e(l)*.35),L=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(L));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=u(()=>h[n()]||"currentColor");var A={get phase(){return n()},set phase(de){n(de),_()},get progress(){return a()},set progress(de=0){a(de),_()},get size(){return s()},set size(de=16){s(de),_()},get class(){return o()},set class(de=""){o(de),_()},$set:Wt,$on:(de,ne)=>Ut(t,de,ne)},H=f0(),F=I(H),O=I(F),D=m(O);{var j=de=>{},C=de=>{var ne=d0();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(f)),se(ne,"r",e(g)*.8),se(ne,"stroke",e(P)),se(ne,"stroke-width",e(g)*1.5),se(ne,"stroke-dasharray",`${e(b)??""} ${e(L)??""}`),se(ne,"stroke-dashoffset",e(L)*.25),se(ne,"transform",`rotate(-90 ${e(c)??""} ${e(f)??""})`)}),d(de,ne)},B=de=>{var ne=wc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(f)),se(ne,"r",e(p)*.6),se(ne,"fill",e(P))}),d(de,ne)},G=de=>{var ne=wc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(f)),se(ne,"r",e(p)),se(ne,"fill",e(P))}),d(de,ne)};M(D,de=>{n()==="planning"?de(j):n()==="building"?de(C,1):n()==="reviewing"?de(B,2):n()==="shipped"&&de(G,3)})}w(F);var Y=m(F,2);{var le=de=>{},Ee=de=>{var ne=u0();k(()=>se(ne,"width",s()*.5)),d(de,ne)};M(Y,de=>{n()==="reviewing"?de(le):n()==="shipped"&&de(Ee,1)})}return w(H),k(()=>{se(F,"width",s()),se(F,"height",s()),se(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(F,0,ur(o())),se(O,"cx",e(c)),se(O,"cy",e(f)),se(O,"r",e(p)),se(O,"stroke",e(P)),se(O,"stroke-width",e(i))}),d(r,H),Vt(A)}var kc=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),p0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Sc=S('<span class="text-ui text-subtle truncate"> </span>'),Ic=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Cc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),g0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),v0=S('<span class="text-ui text-subtle pl-4"> </span>'),m0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),h0=S('<div class="text-ui text-subtle"> </div>'),b0=S("<!> <!> <!> <!>",1),y0=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),_0=S('<div class="rounded-[0.5px]"></div>');function Su(r,t){if(new.target)return jt({component:Su,...r});qt(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),l=y(t,"barHeight",7,"16px"),c=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:D,inProgress:j,notStarted:C,total:B}=n();if(B===0)return[];const G=[...Array(D).fill("completed"),...Array(j).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return G.length<=s()?G:G.slice(G.length-s())}),g=u(()=>a().filter(D=>D.status==="complete")),L=u(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=u(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=u(()=>a().filter(D=>D.status==="cancelled")),P=u(()=>a().length>0);var A={get stats(){return n()},set stats(D){n(D),_()},get tasks(){return a()},set tasks(D=[]){a(D),_()},get maxBars(){return s()},set maxBars(D=20){s(D),_()},get barWidth(){return o()},set barWidth(D="1px"){o(D),_()},get barHeight(){return l()},set barHeight(D="16px"){l(D),_()},get gap(){return c()},set gap(D="1px"){c(D),_()},get class(){return f()},set class(D){f(D),_()},$set:Wt,$on:(D,j)=>Ut(t,D,j)},H=wt(),F=ze(H);{var O=D=>{Do(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var B=y0(),G=I(B),Y=I(G),le=R(Y,!0),Ee=m(Y,2),de=I(Ee);{var ne=Le=>{var we=kc(),Qe=I(we);On(Qe,"",{},{"background-color":"#22c55e"});var We=m(Qe);w(we),k(()=>x(We,` ${n().completed??""}`)),d(Le,we)};M(de,Le=>{n().completed>0&&Le(ne)})}var ge=m(de,2);{var Me=Le=>{var we=kc(),Qe=I(we);On(Qe,"",{},{"background-color":"#4F7BF7"});var We=m(Qe);w(we),k(()=>x(We,` ${n().inProgress??""}`)),d(Le,we)};M(ge,Le=>{n().inProgress>0&&Le(Me)})}var K=m(ge,2);{var pe=Le=>{var we=p0(),Qe=m(I(we));w(we),k(()=>x(Qe,` ${n().notStarted??""}`)),d(Le,we)};M(K,Le=>{n().notStarted>0&&Le(pe)})}w(Ee),w(G);var ce=m(G,2);{var Pe=Le=>{var we=b0(),Qe=ze(we);Rt(Qe,17,()=>e(L),Mr,(J,V)=>{var q=Cc(),ue=I(q),be=I(ue);bo(be,{get status(){return e(V).status},size:14}),w(ue);var $=m(ue,2),fe=I($),Ae=R(fe,!0),Fe=m(fe,2);{var at=z=>{var ae=Ic(),Te=I(ae);{let T=u(()=>e(V).agentState||"idle");rl(Te,{get agentId(){return e(V).agentId},get state(){return e(T)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ze=m(Te,2);{var me=T=>{var U=Sc(),ye=R(U,!0);k(()=>x(ye,e(V).agentName)),d(T,U)};M(Ze,T=>{e(V).agentName&&T(me)})}w(ae),d(z,ae)};M(Fe,z=>{e(V).agentId&&z(at)})}w($),w(q),k(()=>x(Ae,e(V).title)),d(J,q)});var We=m(Qe,2);Rt(We,17,()=>e(b),Mr,(J,V)=>{var q=Cc(),ue=I(q),be=I(ue);bo(be,{get status(){return e(V).status},size:14}),w(ue);var $=m(ue,2),fe=I($),Ae=R(fe,!0),Fe=m(fe,2);{var at=z=>{var ae=Ic(),Te=I(ae);{let T=u(()=>e(V).agentState||"idle");rl(Te,{get agentId(){return e(V).agentId},get state(){return e(T)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ze=m(Te,2);{var me=T=>{var U=Sc(),ye=R(U,!0);k(()=>x(ye,e(V).agentName)),d(T,U)};M(Ze,T=>{e(V).agentName&&T(me)})}w(ae),d(z,ae)};M(Fe,z=>{e(V).agentId&&z(at)})}w($),w(q),k(()=>x(Ae,e(V).title)),d(J,q)});var $e=m(We,2);{var ee=J=>{var V=m0(),q=I(V);Rt(q,17,()=>e(g).slice(0,3),Mr,($,fe)=>{var Ae=g0(),Fe=I(Ae),at=I(Fe);bo(at,{status:"complete",size:12}),w(Fe);var z=m(Fe,2),ae=R(z,!0);w(Ae),k(()=>x(ae,e(fe).title)),d($,Ae)});var ue=m(q,2);{var be=$=>{var fe=v0(),Ae=R(fe,!0);k(Fe=>x(Ae,Fe),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d($,fe)};M(ue,$=>{e(g).length>3&&$(be)})}w(V),d(J,V)};M($e,J=>{e(g).length>0&&J(ee)})}var Z=m($e,2);{var Ge=J=>{var V=h0(),q=R(V,!0);k(ue=>x(q,ue),[()=>v.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,V)};M(Z,J=>{e(h).length>0&&J(Ge)})}d(Le,we)};M(ce,Le=>{e(P)&&Le(Pe)})}w(B),k(Le=>x(le,Le),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,B)},children:(C,B)=>{{let G=u(()=>En("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=u(()=>`gap: ${c()}`),le=u(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(G)},get style(){return e(Y)},get"aria-label"(){return e(le)},"data-task-progress-trigger":!0,children:(Ee,de)=>{var ne=wt(),ge=ze(ne);Rt(ge,17,()=>e(p),Mr,(Me,K)=>{var pe=_0();let ce;k(()=>ce=On(pe,"",ce,{width:o(),height:l(),"background-color":i[e(K)]})),d(Me,pe)}),d(Ee,ne)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};M(F,D=>{n().total>0&&D(O)})}return d(r,H),Vt(A)}function Ii(r,t){if(new.target)return jt({component:Ii,...r});qt(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),l=y(t,"selection",7),c=y(t,"class",7,"");const f=u(()=>Jp(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return l()},set selection(p){l(p),_()},get class(){return c()},set class(p=""){c(p),_()},$set:Wt,$on:(p,g)=>Ut(t,p,g)};return Qv(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Gp(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,L)=>{let b=()=>(L?.()).props;yt(g,oi(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{$v(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Vt(i)}var x0=S('<span class="contents"><!></span>'),w0=S("<!> <!>",1);function Iu(r,t){if(new.target)return jt({component:Iu,...r});qt(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>_g(a()));let o=xe(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const P=Wc(h);P&&N(o,{...P,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();N(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Wt,$on:(h,P)=>Ut(t,h,P)},p=w0(),g=ze(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),P=u(()=>v.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),A=u(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(A)},children:(H,F)=>{var O=x0(),D=I(O);Tp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(H,O)},$$slots:{default:!0}})}var L=m(g,2);{var b=h=>{{let P=u(()=>e(o)?.x??0),A=u(()=>e(o)?.y??0),H=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>Ym(n(),f));Uc(h,{get x(){return e(P)},get y(){return e(A)},get returnFocus(){return e(H)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(O)},onClickOutside:f})}};M(L,h=>{e(o)&&h(b)})}return d(r,p),Vt(i)}var k0=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),S0=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),I0=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),C0=S('<span data-workspace-card-pr-item=""><!></span>'),E0=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),P0=S('<span data-workspace-card-time=""><!></span>'),A0=S('<span aria-hidden="true"><!></span>'),T0=S("<div><!> <!> <!> <!></div>"),R0=S('<div data-workspace-card-hover-surface=""><!></div>'),L0=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),N0=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),M0=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),O0=S('<div class="text-sm font-semibold truncate"> </div>'),Ec=S('<span class="truncate"> </span>'),D0=S('<span class="text-muted-foreground">·</span>'),B0=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),F0=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),z0=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),H0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),j0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),W0=S('<div class="flex items-center text-ui"><span> </span></div>'),U0=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),q0=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),V0=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),K0=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Cu(r,t){if(new.target)return jt({component:Cu,...r});qt(t,!0);const n=()=>Ot(We,"$prMonitors$",l),a=()=>Ot($e,"$microConnected$",l),s=()=>Ot(Z,"$hidesOwnerActions$",l),o=()=>Ot(ee,"$workspaceKeySlot$",l),[l,c]=ia();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),L=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),A=y(t,"isPinned",7,!1),H=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),D=y(t,"agentDigest",7),j=y(t,"trailingLabel",7),C=y(t,"title",7),B=y(t,"repoName",7),G=y(t,"branch",7),Y=y(t,"onClick",7),le=y(t,"onAction",7),Ee=y(t,"onTogglePin",7),de=y(t,"onMarkAsRead",7),ne=y(t,"onOpenInNewWindow",7),ge=y(t,"onHover",7),Me=y(t,"highlighted",7,!1),K=y(t,"selected",7,!1),pe=y(t,"highlightId",7),ce=y(t,"suppressHover",7,!1),Pe=y(t,"isolateHoverReveal",7,!1),Le=y(t,"class",7),we=y(t,"actions",7);const Qe=ss("");It(()=>{Qe.set(f()?.id??"")});const We=yp(Qe),$e=ch(),ee=rv(Qe),Z=_p(Qe),Ge=u(()=>Zm(f()??{})),J=u(()=>Qm(e(Ge)));let V=u(()=>f()?lh.url.pathname===`/workspace/${f().id}`:!1),q=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),ue=xe(!1),be=xe(null),$=xe(null);It(()=>{if(!e($))return;const re=Is(e($),{id:pe()});return()=>re.destroy()});let fe=xe(null),Ae=xe(null),Fe=xe(null),at=xe(0),z=xe(0),ae=u(()=>e(at)+(e(z)>0?e(z)+4:0));function Te(){const re=e(fe),ft=e(Fe);N(at,re?Math.max(0,re.scrollWidth-re.clientWidth):0,!0),N(z,re&&ft&&ft.getClientRects().length>0?Math.max(0,re.getBoundingClientRect().right-ft.getBoundingClientRect().left):0,!0)}It(()=>{const re=e(fe),ft=e(Ae),Bt=e(Fe);if(!re||!ft||(Te(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(Te);return hr.observe(re),hr.observe(ft),Bt&&hr.observe(Bt),()=>hr.disconnect()});let Ze=null,me=null,T=!1,U=!1,ye=!1,Ue=!1,Ie=!1,qe=!1,Q=xe(!1),_e=!1,rt=null,tt=xe(null),gt=null,He;function ht(){Ze!==null&&(clearTimeout(Ze),Ze=null)}function dt(){me!==null&&(clearTimeout(me),me=null),gt?.(),gt=null}function vt(){dt(),N(Q,!0),N(ue,!0),!Ie&&(Ie=!0,rs.notifyOpened())}function pt(){dt(),clearTimeout(He),N(Q,!1),N(ue,!1),U=!1,Ue=!1,Ie&&(Ie=!1,rs.notifyClosed())}function Ct(){return T||U||ye||Ue}function At(){if(!e(ue)){pt();return}dt(),me=setTimeout(()=>{me=null,Ct()||pt()},eh),gt=rs.deferClose(pt)}function Zt(){U=!0,dt()}function _t(){U=!1,!ye&&!Ue&&At()}function Ht(){Ue=!0,clearTimeout(He),dt()}function er(re){const ft=re.relatedTarget instanceof Node?re.relatedTarget:null;if(ft&&oe()?.contains(ft)||(Ue=!1,ft&&e(be)?.contains(ft)))return;if(ft){!T&&!U&&pt();return}const Bt=re.target;clearTimeout(He),He=setTimeout(()=>{const hr=document.activeElement,Cr=oe()?.contains(hr)||e(be)?.contains(hr);hr&&hr!==Bt&&Cr||!T&&!U&&pt()},0)}function Et(){rt!==null&&clearTimeout(rt),_e=!0,rt=setTimeout(()=>{_e=!1,rt=null},0)}function Jt(re){const ft=re.target,Bt=oe();ft instanceof Node&&Bt?.contains(ft)||re.type==="scroll"&&e(be)&&ft instanceof Node&&!ft.contains(e(be))||(re.type==="pointerdown"&&Et(),ht(),pt())}It(()=>{if(e(Q))return window.addEventListener("pointerdown",Jt,!0),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("pointerdown",Jt,!0),window.removeEventListener("scroll",Jt,!0)}});function Nt(re){if(re.key!=="Escape")return;const ft=re.target;ft instanceof Node&&oe()?.contains(ft)||(re.preventDefault(),re.stopPropagation(),qe=ye,ht(),pt())}It(()=>{if(e(ue))return window.addEventListener("keydown",Nt,!0),()=>window.removeEventListener("keydown",Nt,!0)});const ve=u(()=>f()?wp.select(Lt.state,f().id):null),te=u(()=>e(ve)?e(ve):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),je=u(()=>xp(f())),nt=u(()=>{if(!f()||e(je))return[];const re=f(),ft=re.repositoryOwner&&re.repositoryName?`${re.repositoryOwner}/${re.repositoryName}`:void 0;return Yp({workspacePRs:re.pullRequests,activePR:e(te),monitors:n(),workspaceRepo:ft,buildPrUrl:(Bt,hr)=>Mv(Bt,re.repositoryOwner,re.repositoryName,hr),getDisplayTitle:Bt=>Bt.title})}),ct=u(()=>e(nt)[0]);function Be(re){const ft=re.resource?.repository.provider==="gitlab"?`${re.repo} !${re.number}`:re.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:re.repo,number:re.number}):v.workspace_card_prBadge_label({number:` #${re.number}`});return[kp(ft,re),re.title,re.details].filter(Boolean).join(`
259
259
  `)}function X(re){re.key==="Enter"&&Y()?.(re)}function oe(){return e(q)?document.getElementById(e(q)):null}function ie(){return Array.from(oe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ke(){const re=e(be)?.querySelector("[data-workspace-card-trigger]"),ft=oe();if(!re||!ft)return null;const Bt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Cr=>Cr.tabIndex>=0&&!ft.contains(Cr)),hr=Bt.indexOf(re);return hr>=0?Bt[hr+1]:null}function Ce(re){qe=!!e(be)?.contains(re),pt(),re.focus({preventScroll:!0})}function Oe(){const re=e(be)?.querySelector("[data-workspace-card-trigger]");re&&Ce(re)}async function De(re){if(re.key==="Escape"&&e(ue)){re.preventDefault(),re.stopPropagation(),pt();return}re.key!=="ArrowDown"||ce()||!f()||(re.preventDefault(),re.stopPropagation(),N(Q,!0),N(ue,!0),await Jn(),ie()[0]?.focus({preventScroll:!0}))}function Je(re){const ft=ie(),Bt=re.key==="Tab"&&re.shiftKey&&re.currentTarget===ft[0],Cr=re.key==="Tab"&&!re.shiftKey&&re.currentTarget===ft.at(-1)?ke():null;re.key!=="Escape"&&!Bt&&!Cr||(re.preventDefault(),re.stopPropagation(),Cr?Ce(Cr):Oe())}function Ve(){T=!0,dt(),rs.settleDeferredCloses(),Te(),ge()?.(),f()&&!ce()&&!ye&&(ht(),N(Q,!0),Ze=setTimeout(()=>{Ze=null,vt()},rs.currentOpenDelay))}function Se(){T=!1,ht(),!ye&&!Ue&&At()}function Ye(){ye=!0,ht(),dt(),!qe&&(_e||f()&&!ce()&&(N(Q,!0),N(ue,!0)))}function Ke(re){const ft=re.relatedTarget instanceof Node?re.relatedTarget:null;ft&&e(be)?.contains(ft)||(qe=!1,ye=!1,!(ft&&oe()?.contains(ft))&&!T&&!U&&pt())}It(()=>{ce()&&(ht(),dt(),pt())});let et=xe(null),ot=xe(!1),it;It(()=>{const re=f()?.id;it!==re&&(it=re,N(ot,!1)),e(et)&&e(et).workspaceId!==f()?.id&&kt()});function ut(re){if(!f())return;const ft=Wc(re);if(ft){if(N(ot,!1),bt().length===0){N(et,null);return}N(et,{...ft,returnFocus:re.target instanceof HTMLElement?re.target.closest("button")??e(be)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function kt(){N(et,null),N(ot,!1)}It(()=>{e(ot)&&N(et,null)}),vs(()=>{ht(),dt(),rt!==null&&(clearTimeout(rt),rt=null),pt()});function bt(){if(!f())return[];const re=[];return ne()&&re.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Yc,onClick:()=>{ne()?.(),kt()}}),re.push(...$m(f().id,{connected:a(),onClose:kt})),s()||(e(je)||re.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:fg,onClick:()=>{Lt.dispatch(Og({workspaceId:f().id,workspaceTitle:f().title})),kt()}}),re.push({id:"archive",label:v.workspace_card_archive_label(),icon:Xc,onClick:()=>{Lt.dispatch(ld(f().id)),kt()}}),re.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:Zc,destructive:!0,onClick:()=>{Lt.dispatch(cd(f().id)),kt()}})),re}let Tt=u(()=>O()&&D()?D():i()?.subtitle??""),Yt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Kt=u(()=>e(je)?void 0:G()),Rr=u(()=>!p()||e(je)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),Qr=u(()=>i()?.phase==="planning"?O()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const gn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var Dn={get workspace(){return f()},set workspace(re){f(re),_()},get phase(){return i()},set phase(re){i(re),_()},get stats(){return p()},set stats(re){p(re),_()},get variant(){return g()},set variant(re="compact"){g(re),_()},get showTime(){return L()},set showTime(re=!0){L(re),_()},get isRunning(){return b()},set isRunning(re=!1){b(re),_()},get isUnread(){return h()},set isUnread(re=!1){h(re),_()},get isWaiting(){return P()},set isWaiting(re){P(re),_()},get isPinned(){return A()},set isPinned(re=!1){A(re),_()},get streamingAgentIds(){return H()},set streamingAgentIds(re=[]){H(re),_()},get hasSpec(){return F()},set hasSpec(re=!1){F(re),_()},get isAgentRunning(){return O()},set isAgentRunning(re=!1){O(re),_()},get agentDigest(){return D()},set agentDigest(re){D(re),_()},get trailingLabel(){return j()},set trailingLabel(re){j(re),_()},get title(){return C()},set title(re){C(re),_()},get repoName(){return B()},set repoName(re){B(re),_()},get branch(){return G()},set branch(re){G(re),_()},get onClick(){return Y()},set onClick(re){Y(re),_()},get onAction(){return le()},set onAction(re){le(re),_()},get onTogglePin(){return Ee()},set onTogglePin(re){Ee(re),_()},get onMarkAsRead(){return de()},set onMarkAsRead(re){de(re),_()},get onOpenInNewWindow(){return ne()},set onOpenInNewWindow(re){ne(re),_()},get onHover(){return ge()},set onHover(re){ge(re),_()},get highlighted(){return Me()},set highlighted(re=!1){Me(re),_()},get selected(){return K()},set selected(re=!1){K(re),_()},get highlightId(){return pe()},set highlightId(re){pe(re),_()},get suppressHover(){return ce()},set suppressHover(re=!1){ce(re),_()},get isolateHoverReveal(){return Pe()},set isolateHoverReveal(re=!1){Pe(re),_()},get class(){return Le()},set class(re){Le(re),_()},get actions(){return we()},set actions(re){we(re),_()},$set:Wt,$on:(re,ft)=>Ut(t,re,ft)},cn=wt(),Xn=ze(cn);{var Pn=re=>{var ft=L0(),Bt=ze(ft);let hr;var Cr=I(Bt);{let Re=u(()=>f().title||v.workspace_links_untitled_label()),st=u(()=>`workspace-status-state-${f().id}${A()?` workspace-pinned-state-${f().id}`:""}${e(ue)?` ${e(q)}`:""}`),Qt=u(()=>e(V)?"page":void 0);yt(Cr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(Re)},get"aria-describedby"(){return e(st)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:De,onclick:Mt=>{Mt.stopPropagation(),Y()?.(Mt)}})}var An=m(Cr,2),kr=I(An);{var Bn=Re=>{var st=k0(),Qt=I(st);{var Mt=tr=>{Iu(tr,{get workspaceId(){return f().id},get slot(){return o()}})};M(Qt,tr=>{o()!==null&&tr(Mt)})}w(st),d(Re,st)};M(kr,Re=>{a()&&Re(Bn)})}var Fn=m(kr,2);Do(Fn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Re,st)=>{Xm(Re,{get status(){return e(Ge)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Zn=m(Fn,2),zn=R(Zn,!0);w(An);var Vr=m(An,2),vn=I(Vr),sr=I(vn),Kr=I(sr),ra=R(Kr,!0);gr(Kr,Re=>N(Ae,Re),()=>e(Ae)),w(sr),gr(sr,Re=>N(fe,Re),()=>e(fe));var Sr=m(sr,2);{var Er=Re=>{var st=S0(),Qt=ze(st),Mt=I(Qt);Pt(Mt,{get icon(){return il},size:"xs"}),w(Qt);var tr=m(Qt,2),vr=R(tr,!0);k(dn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
260
- ${Ee()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${f().id??""}`),x(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Re,st)};M(Sr,Re=>{A()&&Re(Er)})}w(vn);var $r=m(vn,2);{var ca=Re=>{var st=I0(),Qt=R(st,!0);k(()=>x(Qt,j())),d(Re,st)};M($r,Re=>{j()&&Re(ca)})}var Gr=m($r,2);{var en=Re=>{const st=u(()=>e(ct));var Qt=E0(),Mt=I(Qt);{let tr=u(()=>Be(e(st)));Do(Mt,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=ze(xn);{var fr=Lr=>{{let yr=u(()=>Be(e(st)));yt(Lr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Pr=f().id;Yf(async()=>{const{handleLink:an}=await import("./ClCKezvS.js").then(na=>na.V);return{handleLink:an}},__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]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Pr,event:Or}))},children:(Or,Pr)=>{Pt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Lr=>{var yr=C0(),Or=I(yr);Pt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Pr=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Pr),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>Be(e(st))]),d(Lr,yr)};M(un,Lr=>{e(st).url?Lr(fr):Lr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Re,Qt)};M(Gr,Re=>{e(ct)&&Re(en)})}var Jr=m(Gr,2);{var da=Re=>{var st=P0(),Qt=I(st);{var Mt=vr=>{{let dn=u(()=>pl(f()));Rp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=u(()=>pl(f())>0);M(Qt,vr=>{e(tr)&&vr(Mt)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Ee()||h()&&de()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Re,st)};M(Jr,Re=>{L()&&Re(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Re=>{var st=T0(),Qt=I(st);{var Mt=fr=>{{let jr=u(()=>A()?"text-primary-ink":"text-muted-foreground"),Lr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
260
+ ${Ee()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${f().id??""}`),x(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Re,st)};M(Sr,Re=>{A()&&Re(Er)})}w(vn);var $r=m(vn,2);{var ca=Re=>{var st=I0(),Qt=R(st,!0);k(()=>x(Qt,j())),d(Re,st)};M($r,Re=>{j()&&Re(ca)})}var Gr=m($r,2);{var en=Re=>{const st=u(()=>e(ct));var Qt=E0(),Mt=I(Qt);{let tr=u(()=>Be(e(st)));Do(Mt,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=ze(xn);{var fr=Lr=>{{let yr=u(()=>Be(e(st)));yt(Lr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Pr=f().id;Yf(async()=>{const{handleLink:an}=await import("./DeCG5uo6.js").then(na=>na.V);return{handleLink:an}},__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]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Pr,event:Or}))},children:(Or,Pr)=>{Pt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Lr=>{var yr=C0(),Or=I(yr);Pt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Pr=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Pr),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>Be(e(st))]),d(Lr,yr)};M(un,Lr=>{e(st).url?Lr(fr):Lr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Re,Qt)};M(Gr,Re=>{e(ct)&&Re(en)})}var Jr=m(Gr,2);{var da=Re=>{var st=P0(),Qt=I(st);{var Mt=vr=>{{let dn=u(()=>pl(f()));Rp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=u(()=>pl(f())>0);M(Qt,vr=>{e(tr)&&vr(Mt)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Ee()||h()&&de()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Re,st)};M(Jr,Re=>{L()&&Re(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Re=>{var st=T0(),Qt=I(st);{var Mt=fr=>{{let jr=u(()=>A()?"text-primary-ink":"text-muted-foreground"),Lr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
261
261
  ${e(jr)??""}`},onclick:Or=>{Or.stopPropagation(),Ee()?.(Or)},get"aria-label"(){return e(Lr)},get title(){return e(yr)},children:(Or,Pr)=>{var an=A0(),na=I(an);Pt(na,{get icon(){return il},size:"xs"}),w(an),d(Or,an)},$$slots:{default:!0}})}};M(Qt,fr=>{Ee()&&fr(Mt)})}var tr=m(Qt,2);{var vr=fr=>{{let jr=u(()=>v.workspace_card_markAsRead_label()),Lr=u(()=>v.workspace_card_markAsRead_label());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:yr=>{yr.stopPropagation(),de()?.(yr)},get"aria-label"(){return e(jr)},get title(){return e(Lr)},children:(yr,Or)=>{Pt(yr,{get icon(){return Qc},size:"xs"})},$$slots:{default:!0}})}};M(tr,fr=>{h()&&de()&&fr(vr)})}var dn=m(tr,2);pn(dn,()=>we()??Os);var xn=m(dn,2);{var un=fr=>{{let jr=u(bt),Lr=u(()=>v.workspace_progressCard_actions_ariaLabel());Ii(fr,{get items(){return e(jr)},get ariaLabel(){return e(Lr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ot)},set open(yr){N(ot,yr,!0)}})}};M(xn,fr=>{ne()&&fr(un)})}w(st),gr(st,fr=>N(Fe,fr),()=>e(Fe)),k(()=>mt(st,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
262
262
  ${Pe()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
263
263
  ${Me()?"opacity-100":ce()?"opacity-0":Pe()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Re,st)};M(Ta,Re=>{(we()||ne()||Ee()||h()&&de())&&Re(Ra)})}w(Bt),gr(Bt,Re=>N(be,Re),()=>e(be)),Mn(Bt,(Re,st)=>Is?.(Re,st),()=>({id:pe()}));var Yr=m(Bt,2);{var tn=Re=>{th(Re,{get id(){return e(q)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(be)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Ht,onfocusout:er,children:(st,Qt)=>{var Mt=R0(),tr=I(Mt);rh(tr,{get workspace(){return f()},get activeAgentIds(){return H()},onkeydown:Je}),w(Mt),gr(Mt,vr=>N(tt,vr),()=>e(tt)),Cn("pointerenter",Mt,Zt),Cn("pointerleave",Mt,_t),Tr("focusin",Mt,Ht),Tr("focusout",Mt,er),d(st,Mt)},$$slots:{default:!0}})};M(Yr,Re=>{e(ue)&&!ce()&&Re(tn)})}var W=m(Yr,2);{var Ne=Re=>{const st=u(bt);var Qt=wt(),Mt=ze(Qt);{var tr=vr=>{{let dn=u(()=>e(et)?.x??0),xn=u(()=>e(et)?.y??0),un=u(()=>e(et)?.returnFocus),fr=u(()=>v.workspace_progressCard_actions_ariaLabel());Uc(vr,{get x(){return e(dn)},get y(){return e(xn)},get returnFocus(){return e(un)},get ariaLabel(){return e(fr)},get items(){return e(st)},onClickOutside:kt})}};M(Mt,vr=>{e(st).length>0&&vr(tr)})}d(Re,Qt)};M(W,Re=>{e(et)&&Re(Ne)})}k((Re,st,Qt)=>{mt(Bt,1,Re,"svelte-1ct56pd"),se(Bt,"data-pinned",A()),se(Bt,"data-highlight-id",pe()),hr=On(Bt,"",hr,{"anchor-name":`--workspace-list-${f().id??""}`}),se(Zn,"id",`workspace-status-state-${f().id??""}`),x(zn,e(J).accessibleName),mt(sr,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1,2 +1,2 @@
1
- import{t as Mt,bq as ae,_ as Vr,a_ as re,by as Ut,bu as be,bs as Jt,b as jt,bo as d}from"./DMsRLycu.js";import{bs as Et,ca as $e,aD as e,bH as u,a5 as R,bA as P,W as s,bn as zt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ze,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as $,bj as Ar,aw as tt,ai as Wr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Nr,br as Br}from"./B8o4lNgr.js";import{D as mr,E as Or}from"./CY7B0zXs.js";import{s as rt,l as yt,k as or,h as Pt}from"./ZX1TUMY0.js";import{c as St}from"./i6wjEWTF.js";import{b as _r}from"./D2g8BuR1.js";import{Gt as A,mB as hr,tS as wr,tR as br,IF as Hr,IG as qr,em as Gr,en as Yr,I5 as ir,kO as Ht,zR as nr,qQ as sr,mY as Kr,xw as Xr,a3 as lr,GZ as Zr,Hd as Jr,mb as Qr,i5 as ea,mD as ta,tt as ra,xT as aa,I4 as oa}from"./Ba4gy30X.js";import{g as ia}from"./CoSk1zgY.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./DZmEaQ-W.js";import{by as va,bL as pa,dk as ga}from"./CZOawK4P.js";import{w as cr,d as ma}from"./CL4QSwuw.js";import{f as _a}from"./55UpOZBT.js";import{n as Gt}from"./9RsJ-LA0.js";import{f as Fe,ax as ha}from"./CNB2bBwk.js";import"./BsvsTmot.js";import{F as Qe,a9 as wa,ar as ba,aU as xa,a_ as Tt,ck as ya,cl as Pa,bh as ka,cH as $a,c1 as Ia}from"./Cy5UaoOp.js";import{g as Ca,i as Fa,w as ur}from"./_3D340Va.js";import{c as Sa}from"./ChTqQfQN.js";import"./utwal-1U.js";import{M as Da}from"./CWhinB9Y.js";import{i as Yt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./B7Wb6zTq.js";import{M as Ua}from"./ObcETXIn.js";import{t as Kt,u as xr}from"./AEjnVR5F.js";import"./DHJ5VEVY.js";import"./D0FrwYUQ.js";import{M as Dt}from"./CtFCyWOY.js";import{V as ja}from"./CmtSXIlz.js";import{bG as Ea,a_ as za}from"./Uc38XdXI.js";import{ag as La}from"./aCBgdpmi.js";const yr=A.createSelector((X,x)=>hr(X.pdfPreview.previews,x));var Va=$('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Aa=$('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Zt(X,x){if(new.target)return Mt({component:Zt,...X});Et(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Jt();let k=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),W=O(1),B=O(1),se=O(!0),E=O(!1),ze=O(null),We=O(0);const ye=i(()=>Ie()?.error??e(ze)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());$e(()=>{const l=k(),y=ne();e(We);const z=crypto.randomUUID();return A.dispatch(wr(Se,z,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,z))}}),$e(()=>{const l=Ie()?.url;let y=!1,z;if(u(Q,null),u(ze,null),u(se,!0),u(W,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:Y}=await Vr(async()=>{const{loadPdfDocument:he}=await import("./BqoyBPEG.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;z=Y(l);const le=await z.promise;y||u(Q,le)}catch(Y){if(y)return;u(ze,Y instanceof Error&&Y.name==="PasswordException"?"password":Y instanceof Error&&Y.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(Q),y=e(qe),z=e(W),Y=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const K=(_e.get(U)??1)-1;K?_e.set(U,K):(_e.delete(U),U.cleanup()),U=void 0};return u(E,!0),(async()=>{try{if(U=await l.getPage(z),_e.set(U,(_e.get(U)??0)+1),le){de();return}const K=U.getViewport({scale:Y}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(K.width*K.height)));y.width=Math.ceil(K.width*ee),y.height=Math.ceil(K.height*ee),y.style.width=`${K.width}px`,y.style.height=`${K.height}px`,he=U.render({canvas:y,viewport:K,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(ze,"invalid")}finally{le||u(E,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var Ne={get workspaceId(){return k()},set workspaceId(l){k(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=Y=>{Ze();var le=et();C(()=>g(le,e(De))),s(Y,le)};let z=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(We),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=ue(y),Y=R(z);{let ge=i(()=>e(W)<=1);Fe(Y,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(W,-1),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.file_pdf_previous_label()]),s(Pe,ke)},$$slots:{default:!0}})}var le=p(Y,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(W)>=e(Q).numPages);Fe(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(W),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.file_pdf_next_label()]),s(Pe,ke)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,ke)},$$slots:{default:!0}})}var K=p(de,2),ee=S(K,!0),ot=p(K,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,ke)},$$slots:{default:!0}})}P(z);var it=p(z,2),Ge=R(it);let Je;_r(Ge,ge=>u(qe,ge),()=>e(qe)),P(it),C((ge,Pe,Ye)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(E)),rt(Ge,"aria-label",Ye),Je=yt(Ge,"",Je,{visibility:e(E)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Kt(e(W))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(X,o);var Le=zt(Ne);return ie(),Le}const Wa=A.createSelector((X,x)=>hr(X.videoPreview.previews,x));var Na=$('<p role="status"> </p>'),Ba=$('<p role="alert"> </p>'),Oa=$('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=$('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=$('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(X,x){if(new.target)return Mt({component:Pr,...X});Et(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Jt();let k=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Wa(Q),W=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,E=!1;Ar(()=>{E=!0,A.dispatch(Hr(Q))});function ze(){if(E||e(W))return;const m=k().startsWith("workspace-file://")?new URL(k()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(qr(Q,m.hostname,m.toString()))}function We(m){if(E)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&ze()}var ye={get sourceUrl(){return k()},set sourceUrl(m){k(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=qa(),Ne=R(De);{var o=m=>{var w=Oa(),Le=R(w),l=S(Le,!0),y=p(Le,2);{var z=U=>{var de=Na(),K=S(de,!0);C(ee=>g(K,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},Y=U=>{var de=Ba(),K=S(de,!0);C(ee=>g(K,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(W)?U(z):U(Y,-1)})}var le=p(y,2);{var he=U=>{Fe(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,K)=>{Ze();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Ce()&&U(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),Le=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??k()),g(Le,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,We),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&ze()}),s(m,w)};re(Ne,m=>{e(B)||e(W)?m(o):m(c,-1)})}P(De),s(X,De);var M=zt(ye);return ie(),M}var Ga=$('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ya=$('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=$('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Za=$("<!> ",1),Ja=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=$('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=$('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=$("<tr></tr>"),ro=$('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=$('<div class="h-full flex flex-col"><!></div>');function Rt(X,x){if(new.target)return Mt({component:Rt,...X});Et(x,!0);const Ie=t=>{var a=Ga(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ze(2),C(()=>g(h,e(ze))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),k=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),E=O(0);const ze=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let We=O(!1),ye=O(0),De=O(0),Ne=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function Le(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(Ne,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}$e(()=>{ie(),ne(),e(se),e(E),u(Ne,0),u(o,0)}),$e(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},Y=()=>{if(ne())return ne();if(typeof k()=="string")return k().startsWith("data:")||k().startsWith("http")?k():Se()?`data:${y(ie())};base64,${k()}`:`data:${y(ie())};base64,${k()}`;if(k()instanceof ArrayBuffer){const a=new Uint8Array(k()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=z(ie());if(!t)return"";if(typeof k()=="string")return k().startsWith("data:")||k().startsWith("http")?k():`data:${t};base64,${k()}`;const a=new Uint8Array(k()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof k()=="string"?new TextEncoder().encode(k()):new Uint8Array(k()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},K=()=>{u(E,(e(E)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(W)==="video"?le():e(W)==="svg"?he():Y(),t.download=e(B),t.click()},ot=async()=>{try{const t=Y(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(We,!0),setTimeout(()=>u(We,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Ge=t=>t.split(`
1
+ import{t as Mt,bq as ae,_ as Vr,a_ as re,by as Ut,bu as be,bs as Jt,b as jt,bo as d}from"./DMsRLycu.js";import{bs as Et,ca as $e,aD as e,bH as u,a5 as R,bA as P,W as s,bn as zt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ze,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as $,bj as Ar,aw as tt,ai as Wr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Nr,br as Br}from"./B8o4lNgr.js";import{D as mr,E as Or}from"./CY7B0zXs.js";import{s as rt,l as yt,k as or,h as Pt}from"./ZX1TUMY0.js";import{c as St}from"./i6wjEWTF.js";import{b as _r}from"./D2g8BuR1.js";import{Gt as A,mB as hr,tS as wr,tR as br,IF as Hr,IG as qr,em as Gr,en as Yr,I5 as ir,kO as Ht,zR as nr,qQ as sr,mY as Kr,xw as Xr,a3 as lr,GZ as Zr,Hd as Jr,mb as Qr,i5 as ea,mD as ta,tt as ra,xT as aa,I4 as oa}from"./Ba4gy30X.js";import{g as ia}from"./CoSk1zgY.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./DZmEaQ-W.js";import{by as va,bL as pa,dk as ga}from"./DIZ4FVb2.js";import{w as cr,d as ma}from"./CL4QSwuw.js";import{f as _a}from"./55UpOZBT.js";import{n as Gt}from"./Dky-2Jfq.js";import{f as Fe,ax as ha}from"./XsSJjm3Z.js";import"./BsvsTmot.js";import{F as Qe,a9 as wa,ar as ba,aU as xa,a_ as Tt,ck as ya,cl as Pa,bh as ka,cH as $a,c1 as Ia}from"./Cy5UaoOp.js";import{g as Ca,i as Fa,w as ur}from"./LXOG-o0_.js";import{c as Sa}from"./ChTqQfQN.js";import"./utwal-1U.js";import{M as Da}from"./BNmJe_fB.js";import{i as Yt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./K1lMPseK.js";import{M as Ua}from"./qDe1FahS.js";import{t as Kt,u as xr}from"./AEjnVR5F.js";import"./DHJ5VEVY.js";import"./06CP606v.js";import{M as Dt}from"./DyqEo12-.js";import{V as ja}from"./BJ9BJ5kr.js";import{bG as Ea,a_ as za}from"./BaPbYStu.js";import{ag as La}from"./uCtJ9vOe.js";const yr=A.createSelector((X,x)=>hr(X.pdfPreview.previews,x));var Va=$('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Aa=$('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Zt(X,x){if(new.target)return Mt({component:Zt,...X});Et(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Jt();let k=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),W=O(1),B=O(1),se=O(!0),E=O(!1),ze=O(null),We=O(0);const ye=i(()=>Ie()?.error??e(ze)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());$e(()=>{const l=k(),y=ne();e(We);const z=crypto.randomUUID();return A.dispatch(wr(Se,z,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,z))}}),$e(()=>{const l=Ie()?.url;let y=!1,z;if(u(Q,null),u(ze,null),u(se,!0),u(W,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:Y}=await Vr(async()=>{const{loadPdfDocument:he}=await import("./BqoyBPEG.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;z=Y(l);const le=await z.promise;y||u(Q,le)}catch(Y){if(y)return;u(ze,Y instanceof Error&&Y.name==="PasswordException"?"password":Y instanceof Error&&Y.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(Q),y=e(qe),z=e(W),Y=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const K=(_e.get(U)??1)-1;K?_e.set(U,K):(_e.delete(U),U.cleanup()),U=void 0};return u(E,!0),(async()=>{try{if(U=await l.getPage(z),_e.set(U,(_e.get(U)??0)+1),le){de();return}const K=U.getViewport({scale:Y}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(K.width*K.height)));y.width=Math.ceil(K.width*ee),y.height=Math.ceil(K.height*ee),y.style.width=`${K.width}px`,y.style.height=`${K.height}px`,he=U.render({canvas:y,viewport:K,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(ze,"invalid")}finally{le||u(E,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var Ne={get workspaceId(){return k()},set workspaceId(l){k(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=Y=>{Ze();var le=et();C(()=>g(le,e(De))),s(Y,le)};let z=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(We),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=ue(y),Y=R(z);{let ge=i(()=>e(W)<=1);Fe(Y,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(W,-1),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.file_pdf_previous_label()]),s(Pe,ke)},$$slots:{default:!0}})}var le=p(Y,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(W)>=e(Q).numPages);Fe(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(W),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.file_pdf_next_label()]),s(Pe,ke)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,ke)},$$slots:{default:!0}})}var K=p(de,2),ee=S(K,!0),ot=p(K,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ye)=>{Ze();var ke=et();C(fe=>g(ke,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,ke)},$$slots:{default:!0}})}P(z);var it=p(z,2),Ge=R(it);let Je;_r(Ge,ge=>u(qe,ge),()=>e(qe)),P(it),C((ge,Pe,Ye)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(E)),rt(Ge,"aria-label",Ye),Je=yt(Ge,"",Je,{visibility:e(E)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Kt(e(W))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(X,o);var Le=zt(Ne);return ie(),Le}const Wa=A.createSelector((X,x)=>hr(X.videoPreview.previews,x));var Na=$('<p role="status"> </p>'),Ba=$('<p role="alert"> </p>'),Oa=$('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=$('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=$('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(X,x){if(new.target)return Mt({component:Pr,...X});Et(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Jt();let k=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Wa(Q),W=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,E=!1;Ar(()=>{E=!0,A.dispatch(Hr(Q))});function ze(){if(E||e(W))return;const m=k().startsWith("workspace-file://")?new URL(k()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(qr(Q,m.hostname,m.toString()))}function We(m){if(E)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&ze()}var ye={get sourceUrl(){return k()},set sourceUrl(m){k(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=qa(),Ne=R(De);{var o=m=>{var w=Oa(),Le=R(w),l=S(Le,!0),y=p(Le,2);{var z=U=>{var de=Na(),K=S(de,!0);C(ee=>g(K,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},Y=U=>{var de=Ba(),K=S(de,!0);C(ee=>g(K,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(W)?U(z):U(Y,-1)})}var le=p(y,2);{var he=U=>{Fe(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,K)=>{Ze();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Ce()&&U(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),Le=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??k()),g(Le,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,We),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&ze()}),s(m,w)};re(Ne,m=>{e(B)||e(W)?m(o):m(c,-1)})}P(De),s(X,De);var M=zt(ye);return ie(),M}var Ga=$('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ya=$('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=$('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Za=$("<!> ",1),Ja=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=$('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=$('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=$("<tr></tr>"),ro=$('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=$('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=$('<div class="h-full flex flex-col"><!></div>');function Rt(X,x){if(new.target)return Mt({component:Rt,...X});Et(x,!0);const Ie=t=>{var a=Ga(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ze(2),C(()=>g(h,e(ze))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),k=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),E=O(0);const ze=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let We=O(!1),ye=O(0),De=O(0),Ne=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function Le(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(Ne,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}$e(()=>{ie(),ne(),e(se),e(E),u(Ne,0),u(o,0)}),$e(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},Y=()=>{if(ne())return ne();if(typeof k()=="string")return k().startsWith("data:")||k().startsWith("http")?k():Se()?`data:${y(ie())};base64,${k()}`:`data:${y(ie())};base64,${k()}`;if(k()instanceof ArrayBuffer){const a=new Uint8Array(k()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=z(ie());if(!t)return"";if(typeof k()=="string")return k().startsWith("data:")||k().startsWith("http")?k():`data:${t};base64,${k()}`;const a=new Uint8Array(k()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof k()=="string"?new TextEncoder().encode(k()):new Uint8Array(k()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},K=()=>{u(E,(e(E)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(W)==="video"?le():e(W)==="svg"?he():Y(),t.download=e(B),t.click()},ot=async()=>{try{const t=Y(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(We,!0),setTimeout(()=>u(We,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Ge=t=>t.split(`
2
2
  `).map(f=>f.split(",").map(_=>_.trim()));var Je={get filePath(){return ie()},set filePath(t){ie(t),oe()},get fileContent(){return k()},set fileContent(t=""){k(t),oe()},get sourceUrl(){return ne()},set sourceUrl(t){ne(t),oe()},get language(){return Ce()},set language(t){Ce(t),oe()},get isBinary(){return Se()},set isBinary(t){Se(t),oe()},get allowDownload(){return xe()},set allowDownload(t=!0){xe(t),oe()},get onDownload(){return _e()},set onDownload(t){_e(t),oe()},get downloading(){return Q()},set downloading(t=!1){Q(t),oe()},$set:Ut,$on:(t,a)=>jt(x,t,a)},ge=io();tt("blur",gr,m);var Pe=R(ge);{var Ye=t=>{var a=Ya(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let te=i(()=>d.editor_fileViewer_rotate_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:K,get title(){return e(te)},children:(we,Te)=>{Qe(we,{get icon(){return wa},size:"sm"})},$$slots:{default:!0}})}var j=p(h,4);{let te=i(()=>d.editor_fileViewer_copyImage_tooltip());Fe(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ot,get title(){return e(te)},children:(we,Te)=>{var Ee=je(),Be=ue(Ee);{var Vt=Ke=>{Qe(Ke,{get icon(){return ba},size:"sm",class:"text-green-500"})},pt=Ke=>{Qe(Ke,{get icon(){return xa},size:"sm"})};re(Be,Ke=>{e(We)?Ke(Vt):Ke(pt,-1)})}s(we,Ee)},$$slots:{default:!0}})}var D=p(j,2);{let te=i(()=>!xe()||Q()),we=i(()=>d.editor_fileViewer_download_tooltip());Fe(D,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(te)},get title(){return e(we)},children:(Te,Ee)=>{Qe(Te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var T=p(D,2),H=S(T,!0);P(f);var L=p(f,2),Z=S(L);P(a),C(te=>{g(H,e(B)),or(L,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(L,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(Z,"src",te),rt(Z,"alt",e(B)),yt(Z,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(E)??""}deg); transition: transform 0.2s;`)},[()=>Y()]),vt("pointerdown",L,w),vt("pointermove",L,Le),vt("pointerup",L,l),tt("pointercancel",L,l),tt("lostpointercapture",L,l),s(t,a)},ke=t=>{var a=Ka(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let L=i(()=>!xe()||Q()),Z=i(()=>d.editor_fileViewer_download_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(L)},get title(){return e(Z)},children:(te,we)=>{Qe(te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var j=p(h,2),D=S(j,!0);P(f);var T=p(f,2),H=S(T);P(a),C(L=>{g(D,e(B)),or(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(T,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(H,"src",L),rt(H,"alt",e(B)),yt(H,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>he()]),vt("pointerdown",T,w),vt("pointermove",T,Le),vt("pointerup",T,l),tt("pointercancel",T,l),tt("lostpointercapture",T,l),s(t,a)},fe=t=>{const a=i(le);var f=je(),_=ue(f);mr(_,()=>ie()+e(a),h=>{Pr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return xe()},get downloading(){return Q()},onDownload:ee})}),s(t,f)},nt=t=>{var a=Xa(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=R(h),D=p(j);P(h),P(a),C((T,H)=>{g(_,e(B)),rt(j,"src",T),g(D,` ${H??""}`)},[()=>Y(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,a)},kt=t=>{var a=Ja(),f=p(R(a),2),_=S(f,!0),h=p(f,2);{let j=i(()=>!xe()||Q());Fe(h,{size:"sm",variant:"secondary",onclick:ee,get disabled(){return e(j)},children:(D,T)=>{var H=Za(),L=ue(H);Qe(L,{get icon(){return Tt},size:"sm",class:"mr-2"});var Z=p(L);C(te=>g(Z,` ${te??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(D,H)},$$slots:{default:!0}})}P(a),C(j=>g(_,j),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},ct=t=>{{let a=i(()=>it(k().toString()));Xt(t,{get value(){return e(a)},language:"json",get fileName(){return ie()},lineNumbers:!0,readOnly:!0})}},ut=t=>{const a=i(()=>Ge(k().toString()));var f=ro(),_=R(f),h=R(_),j=R(h);Pt(j,23,()=>e(a)[0]||[],(T,H)=>`header-${H}-${T}`,(T,H)=>{var L=Qa(),Z=S(L,!0);C(()=>g(Z,e(H))),s(T,L)}),P(j),P(h);var D=p(h);Pt(D,23,()=>e(a).slice(1),(T,H)=>`row-${H}`,(T,H,L)=>{var Z=to();Pt(Z,23,()=>e(H),(te,we)=>`cell-${e(L)}-${we}`,(te,we)=>{var Te=eo(),Ee=S(Te,!0);C(()=>g(Ee,e(we))),s(te,Te)}),P(Z),s(T,Z)}),P(D),P(_),P(f),s(t,f)},$t=t=>{var a=ao(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),C(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_archive_label()]),s(t,a)},Lt=t=>{var a=oo(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),C(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_binary_label()]),s(t,a)},It=t=>{{let a=i(()=>k().toString());Xt(t,{get value(){return e(a)},get language(){return Ce()},get fileName(){return ie()},lineNumbers:!0,highlightActiveLine:!0})}};re(Pe,t=>{e(W)==="image"?t(Ye):e(W)==="svg"?t(ke,1):e(W)==="video"?t(fe,2):e(W)==="audio"?t(nt,3):e(W)==="pdf"?t(kt,4):e(W)==="json"?t(ct,5):e(W)==="csv"?t(ut,6):e(W)==="archive"?t($t,7):e(W)==="binary"?t(Lt,8):t(It,-1)})}return P(ge),s(X,ge),zt(Je)}Wr(["pointerdown","pointermove","pointerup"]);const no=/access denied|permission denied|outside (?:the )?workspace/i,so=/file not found|no such file or directory/i;function lo(X){return no.test(X)?"access-denied":X===d.files_read_notFound_error()||so.test(X)?"not-found":"generic"}function co(X){switch(X){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var uo=$("<!> <!>",1),fo=$("<!> <!> <!>",1),vo=$('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),fr=$('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),po=$('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),vr=$('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),go=$('<div class="flex items-center gap-3"><!> <!></div>'),mo=$('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),_o=$('<p class="text-xs"> </p>'),ho=$("<li><!></li>"),wo=$('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),bo=$('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),xo=$('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),yo=$('<div class="h-full overflow-auto p-4"><!></div>');function Po(X,x){if(new.target)return Mt({component:Po,...X});Et(x,!0);const Ie=()=>be(ke,"$workspace",E),at=()=>be(Y,"$fileContentStore",E),ie=()=>be(le,"$fileLoadingStore",E),k=()=>be(he,"$fileSavingStore",E),ne=()=>be(U,"$fileErrorStore",E),Ce=()=>be(de,"$fileNotFoundCandidatesStore",E),Se=()=>be(K,"$isFileBinaryStore",E),xe=()=>be(ee,"$isFileDirtyStore",E),_e=()=>be(ot,"$fileLastUpdatedStore",E),Q=()=>be(it,"$ftChanges$",E),qe=()=>be(Ye,"$gutterRead$",E),W=()=>be(De,"$lineWrapping",E),B=()=>be(Ne,"$diffIndicators",E),se=()=>be(ge,"$rootMediaPreview",E),[E,ze]=Jt(),We=r=>{var n=uo(),I=ue(n);{var F=pe=>{var Ve=je(),Oe=ue(Ve);St(Oe,()=>Dt,(ft,_t)=>{_t(ft,{get icon(){return ka},get label(){return e(_)},disabled:!0})}),s(pe,Ve)};re(I,pe=>{!e(te)&&!e(l)&&!e(t)&&pe(F)})}var ve=p(I,2);{var Re=pe=>{{let Ve=i(()=>!e(Ct)||!e(L)),Oe=i(()=>!e(l)&&(!e(Ct)||!e(L)));ja(pe,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Ct)},get previewEnabled(){return e(L)},onTogglePreview:()=>u(L,!e(L)),get showWrap(){return e(Ve)},get wrapEnabled(){return W()},onToggleWrap:()=>A.dispatch(Jr()),get showDiff(){return e(Oe)},get diffEnabled(){return B()},onToggleDiff:()=>A.dispatch(Zr())})}};re(ve,pe=>{o().filePath&&!e(te)&&!e(t)&&pe(Re)})}s(r,n)},ye=r=>{var n=je(),I=ue(n);{var F=ve=>{var Re=fo(),pe=ue(Re);{var Ve=Ae=>{var Xe=je(),lt=ue(Xe);{let ht=i(()=>d.layout_fileTab_goToChanges_tooltip());St(lt,()=>Dt,(wt,bt)=>{bt(wt,{get icon(){return Ia},get label(){return e(ht)},onclick:Tr})})}s(Ae,Xe)};re(pe,Ae=>{e($r)&&Ae(Ve)})}var Oe=p(pe,2);{var ft=Ae=>{var Xe=je(),lt=ue(Xe);{let ht=i(()=>d.layout_fileTab_downloadFile_label()),wt=i(()=>!e(gt)||e(st));St(lt,()=>Dt,(bt,Wt)=>{Wt(bt,{get icon(){return Tt},get label(){return e(ht)},onclick:Ft,get disabled(){return e(wt)}})})}s(Ae,Xe)};re(Oe,Ae=>{e(Be)&&Ae(ft)})}var _t=p(Oe,2);{let Ae=i(()=>d.layout_fileTab_deleteFile_tooltip());St(_t,()=>Dt,(Xe,lt)=>{lt(Xe,{get icon(){return $a},get label(){return e(Ae)},onclick:Rr,destructive:!0})})}s(ve,Re)};re(I,ve=>{o().filePath&&!e(te)&&!e(l)&&ve(F)})}s(r,n)},De=Ea(),Ne=za();let o=ae(x,"tab",7),c=ae(x,"workspaceId",7),M=ae(x,"isActive",7),m=ae(x,"isPanelFocused",7);$e(()=>{const r=c();if(!(!M()||!r||e(w)))return A.dispatch(Gr(r,"files")),()=>A.dispatch(Yr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Le=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?_a(o().filePath,e(w)):o().filePath),z=Nr(e(y));$e(()=>{z.set(e(y))});const Y=na(c(),z),le=sa(c(),z),he=la(c(),z),U=da(c(),z),de=ca(c(),z),K=ua(c(),z),ee=dr(c(),z),ot=fa(c(),z),it=va(c()),Ge=ia(),Je=crypto.randomUUID(),ge=yr(Je),Pe=`file-gutter:${crypto.randomUUID()}`,Ye=pa(c(),Pe),ke=ga(c()),fe=i(()=>Ie()?.worktreePath||Ie()?.repositoryPath||Ie()?.path||null),nt=i(at),kt=i(ie),ct=i(k),ut=i(ne),$t=i(()=>e(ut)?lo(e(ut)):"generic"),Lt=5,It=i(()=>(Ce()??[]).slice(0,Lt)),t=i(Se),a=i(xe),f=i(_e),_=i(()=>e(ct)?d.ui_saveIndicator_saving_tooltip():e(a)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let h=O(null),j=O(Br([])),D=O(null),T=O(void 0),H=O(void 0),L=O(!0);$e(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(H)||(u(H,n,!0),u(T,{line:r},!0),u(L,!1))});const Z=i(()=>e(w)?cr(o().filePath,e(Le)):null),te=i(()=>e(w)?!e(Z):!!(o().filePath&&(Ta(o().filePath)||e(fe)&&Ra(o().filePath,e(fe))))),we=i(()=>o().filePath&&e(fe)?Yt(o().filePath)?o().filePath:`${e(fe)}/${o().filePath}`:null),Te=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),Ee=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Be=i(()=>c()&&/^[A-Za-z0-9._-]+$/.test(c())?cr(o().filePath,e(fe)):null),Vt=i(()=>!e(w)&&e(Be)?e(Be).split("/").slice(0,-1).join("/"):void 0),pt=i(()=>e(Te)||e(Ee)?e(Be):null),Ke=i(()=>e(w)&&e(Ee)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);$e(()=>{if(!M()||!e(w)||!e(Z)||!e(Ke))return;const r=crypto.randomUUID();return A.dispatch(wr(Je,r,c(),e(Z),{gitRootId:e(w),mimeType:e(Ke)})),()=>A.dispatch(br(Je,r))});let st=O(!1);const gt=i(()=>!!e(Be)&&!e(kt)&&(!e(Ee)||e(D)===e(Be))),Qt=i(()=>e(D)&&c()?`workspace-file://${c()}/${e(D).split("/").map(encodeURIComponent).join("/")}`:null),At=i(()=>o().filePath?ta(o().filePath):"plaintext"),Ct=i(()=>e(At)==="markdown");$e(()=>{if(!M()||e(Te)||e(w))return;const r=e(pt),n=o().filePath,I=c(),F=o().id;if(u(D,null),!r||!n||!I)return;let ve=!1;const Re=()=>!ve&&c()===I&&o().id===F&&o().filePath===n;return(async()=>{let pe=!1;try{pe=(await ha("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Re())return;if(pe){u(D,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(D,r,!0);return}const{candidates:Ve,truncated:Oe}=await Da(I,r);if(Re()){if(!Oe&&Ve.length===1){A.dispatch(ir(I,n,Ve[0],F));return}u(D,r,!0)}})(),()=>{ve=!0}});function kr(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const mt=i(()=>e(l)||!o().filePath?null:Q().find(r=>kr(r,o().filePath))??null),$r=i(()=>!!e(mt));$e(()=>{if(e(l))return;const r=c(),n=o().filePath,I=e(fe);return()=>{if(!r||!n)return;const F=qt.select(A.state,r,n);if(F?.kind!=="editable-text")return;const ve=Ht(F.localContent),Re=dr.select(A.state,r,n),pe=Yt(n)?n:I?`${I}/${n}`:null;Re&&pe&&A.dispatch(nr(r,n,pe,ve))}}),$e(()=>{const r=o().filePath,n=e(we),I=c();if(!M())return;const F=!e(w)&&!!r&&Yt(r)&&!e(fe);r&&I&&!e(te)&&!e(Ee)&&!e(Te)&&!F&&(e(w)&&e(Z)&&e(y)?A.dispatch(sr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(Z)}})):A.dispatch(sr(I,r,n??r)))});function Ir(){return e(nt)??""}function Cr(r){e(l)||e(t)||!o().filePath||!c()||!e(we)||A.dispatch(oa(c(),o().filePath,Ht(r)))}function Fr(){if(e(l)||e(t)||!o().filePath||!e(we)||e(nt)===null||e(ct))return;const r=qt.select(A.state,c(),o().filePath);r?.kind==="editable-text"&&A.dispatch(nr(c(),o().filePath,e(we),Ht(r.localContent)))}function Sr(r){const n=o().filePath;!n||!c()||(A.dispatch(aa(c(),n)),A.dispatch(ir(c(),n,r,o().id)))}$e(()=>{const r=o().filePath,n=e(mt);if(!r||!n){u(j,[],!0);return}if(!M())return;const I=c(),F=crypto.randomUUID();return A.dispatch(Kr(I,Pe,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Xr(I,Pe,F))}}),$e(()=>{const r=qe(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(j,I?Ma(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(ve=>(ve.type===lr.Addition?"+":ve.type===lr.Deletion?"-":" ")+ve.content)}))):[],!0)});function Dr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Re=>Or(r,La(Re),n);if(I("editor.save")){r.preventDefault(),e(a)&&!e(ct)&&Fr();return}const F=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!F||e(l)&&F!=="copy"&&F!=="select-all")return;F!=="toggle-task-list"&&e(h)?.runShortcut(F)&&r.preventDefault()}function Tr(r){if(!o().filePath||!e(mt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ra(c(),e(mt),{filePath:o().filePath,changeId:e(mt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ft(){const r=e(Be);if(!(e(l)||!r||!c()||!e(gt)||e(st))){u(st,!0);try{const n=await ma(c(),r,e(fe));!n?.success&&!n?.canceled&&Gt.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{Gt.error(d.layout_fileTab_downloadFailed_error())}finally{u(st,!1)}}}function Rr(){const r=e(we);if(e(l)||!o().filePath||!c()||!r)return;const n=Qr(qt.select(A.state,c(),o().filePath));if(!n){Gt.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(ea(c(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}$e(()=>{if(!Ge||!M())return;const r={isDirty:!e(l)&&e(a),isSaving:!e(l)&&e(ct)};pr(()=>{Ge.registerActions({display:We,actions:ye}),Ge.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),oe()},get workspaceId(){return c()},set workspaceId(r){c(r),oe()},get isActive(){return M()},set isActive(r){M(r),oe()},get isPanelFocused(){return m()},set isPanelFocused(r){m(r),oe()},$set:Ut,$on:(r,n)=>jt(x,r,n)},er=je();tt("keydown",gr,r=>M()&&Dr(r));var Ur=ue(er);{var jr=r=>{var n=je(),I=ue(n);mr(I,()=>o().filePath,F=>{var ve=je(),Re=ue(ve);{var pe=b=>{var v=vo(),V=R(v),q=S(V,!0),N=p(V,2),Me=S(N,!0);P(v),C(J=>{g(q,J),g(Me,o().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ve=b=>{var v=je(),V=ue(v);{var q=N=>{Zt(N,{get workspaceId(){return c()},get filePath(){return e(Z)},get gitRootId(){return e(w)}})};re(V,N=>{M()&&N(q)})}s(b,v)},Oe=b=>{var v=je(),V=ue(v);{var q=J=>{var G=fr(),ce=R(G),Ue=S(ce,!0);P(G),C(me=>g(Ue,me),[()=>d.layout_fileTab_errorLoading_label()]),s(J,G)},N=J=>{Rt(J,{get filePath(){return o().filePath},get sourceUrl(){return se().url},allowDownload:!1})},Me=J=>{var G=po(),ce=R(G),Ue=S(ce,!0);P(G),C(me=>g(Ue,me),[()=>d.layout_fileTab_preparing_label()]),s(J,G)};re(V,J=>{se()?.error?J(q):se()?.url?J(N,1):J(Me,-1)})}s(b,v)},ft=b=>{var v=je(),V=ue(v);{var q=N=>{Zt(N,{get workspaceId(){return c()},get filePath(){return e(pt)}})};re(V,N=>{M()&&N(q)})}s(b,v)},_t=b=>{var v=fr(),V=R(v),q=S(V,!0);P(v),C(N=>g(q,N),[()=>d.file_pdf_load_error()]),s(b,v)},Ae=b=>{{let v=i(()=>e(D)??o().filePath),V=i(()=>!e(l)&&e(gt));Rt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Qt)},onDownload:Ft,get allowDownload(){return e(V)},get downloading(){return e(st)}})}},Xe=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),C(N=>g(q,N),[()=>d.layout_fileTab_preparing_label()]),s(b,v)},lt=b=>{var v=mo(),V=R(v);Pt(V,20,()=>[...Array(20).keys()],q=>q,(q,N)=>{var Me=go(),J=R(Me);ur(J,{class:"h-3 w-8 shrink-0"});var G=p(J,2);ur(G,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Me),s(q,Me)}),P(V),P(v),s(b,v)},ht=b=>{var v=bo(),V=R(v),q=S(V,!0),N=p(V,2),Me=S(N,!0),J=p(N,2);{var G=me=>{var He=_o(),dt=S(He,!0);C(()=>g(dt,e(ut))),s(me,He)};re(J,me=>{e($t)==="generic"&&me(G)})}var ce=p(J,2);{var Ue=me=>{var He=wo(),dt=ue(He),Nt=S(dt,!0),tr=p(dt,2);Pt(tr,20,()=>e(It),xt=>xt,(xt,rr)=>{var Bt=ho(),zr=R(Bt);Fe(zr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Sr(rr),children:(Lr,ko)=>{Ze();var ar=et();C(()=>g(ar,rr)),s(Lr,ar)},$$slots:{default:!0}}),P(Bt),s(xt,Bt)}),P(tr),C(xt=>g(Nt,xt),[()=>d.layout_fileTab_didYouMean_label()]),s(me,He)};re(ce,me=>{e(It).length>0&&me(Ue)})}P(v),C(me=>{g(q,me),g(Me,o().filePath)},[()=>co(e($t))]),s(b,v)},wt=b=>{var v=xo(),V=R(v),q=S(V,!0),N=p(V,2),Me=S(N,!0),J=p(N,2);{var G=ce=>{{let Ue=i(()=>!e(gt)||e(st));Fe(ce,{variant:"secondary",size:"sm",onclick:Ft,get disabled(){return e(Ue)},children:(me,He)=>{Ze();var dt=et();C(Nt=>g(dt,Nt),[()=>d.layout_fileTab_downloadFile_label()]),s(me,dt)},$$slots:{default:!0}})}};re(J,ce=>{!e(l)&&e(Be)&&ce(G)})}P(v),C(ce=>{g(q,ce),g(Me,o().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(b,v)},bt=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var V=je(),q=ue(V);{var N=G=>{{let ce=i(()=>o().filePath||""),Ue=i(()=>!e(l)&&e(gt));Rt(G,{get filePath(){return e(ce)},get fileContent(){return e(nt)},get language(){return e(At)},get isBinary(){return e(t)},onDownload:Ft,get allowDownload(){return e(Ue)},get downloading(){return e(st)}})}},Me=G=>{var ce=yo(),Ue=R(ce);Ua(Ue,{get content(){return e(nt)},get workspaceId(){return c()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(ce),s(G,ce)},J=G=>{var ce=Ir,Ue=Cr;{let me=i(()=>B()?e(j):[]);_r(Xt(G,{get value(){return ce()},set value(He){Ue(He)},get language(){return e(At)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return c()},get filePath(){return o().filePath},get lineWrapping(){return W()},get lineChanges(){return e(me)},get jumpTo(){return e(T)},get externalContentVersion(){return e(f)},get isPanelFocused(){return m()}}),He=>u(h,He,!0),()=>e(h))}};re(q,G=>{e(v)?G(N):e(Ct)&&e(L)?G(Me,1):G(J,-1)})}s(b,V)},Wt=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),C(N=>g(q,N),[()=>d.layout_fileTab_preparing_label()]),s(b,v)};re(Re,b=>{e(te)?b(pe):e(w)&&e(Te)&&e(Z)?b(Ve,1):e(w)&&e(Ee)?b(Oe,2):e(Te)&&e(pt)?b(ft,3):e(Te)?b(_t,4):e(Qt)?b(Ae,5):e(Ee)?b(Xe,6):e(kt)?b(lt,7):e(ut)?b(ht,8):e(t)?b(wt,9):e(nt)!==null?b(bt,10):b(Wt,-1)})}s(F,ve)}),s(r,n)};re(Ur,r=>{o().filePath&&r(jr)})}s(X,er);var Er=zt(Mr);return ze(),Er}export{Po as default};
@@ -1,2 +1,2 @@
1
- import{t as se,bq as a,a_ as ie,by as ae,b as le}from"./DMsRLycu.js";import{bs as oe,bV as ge,br as ue,ca as ce,bH as z,a5 as p,bA as m,bS as Q,aD as C,b_ as P,W as w,bn as he,c9 as V,aA as l,bl as de,bO as me,aB as I}from"./B8o4lNgr.js";import{h as W,k as v,i as fe,l as ve}from"./ZX1TUMY0.js";import{Q as be}from"./ClCKezvS.js";import{H as R}from"./CoZ28bOB.js";import{C as _e}from"./9RsJ-LA0.js";function A(r){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return r.replace(/[&<>"']/g,n=>t[n])}const pe=300,Ce=2e6,xe=1e5,u=new Map;let X=0;function F(r,t){return`${t}\0${r}`}function Y(r,t){const n=F(r,t),s=u.get(n);return s===void 0?null:(u.delete(n),u.set(n,s),s)}function Z(r){const t=u.get(r);t!==void 0&&(X-=r.length+t.length,u.delete(r))}function He(r,t){Z(r);const n=r.length+t.length;if(!(n>xe)){for(;u.size>=pe||u.size>0&&X+n>Ce;){const s=u.keys().next().value;if(s===void 0)break;Z(s)}u.set(r,t),X+=n}}function ye(){return new Promise(r=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>r(),{timeout:200}):setTimeout(r,0)})}function Ne(r,t){try{return t&&R.getLanguage(t)?R.highlight(r,{language:t}).value:R.highlightAuto(r).value}catch{return A(r)}}const k=new Map;function Le(r,t,n){const s=F(r,t),f=u.get(s);if(f!==void 0)return Promise.resolve(f);const c=k.get(s);if(c)return c.staleChecks.push(n??(()=>!1)),c.promise;const g={staleChecks:[n??(()=>!1)],promise:Promise.resolve("")};return g.promise=ye().then(()=>{if(k.get(s)===g&&k.delete(s),g.staleChecks.every(x=>x()))return A(r);const b=Ne(r,t);return He(s,b),b}),k.set(s,g),g.promise}var we=I("<div> </div>"),ke=I('<div class="line-numbers-gutter select-none text-right flex-shrink-0 py-3 pl-3 pr-2 svelte-1irg7m4"></div>'),Ae=I("<div></div>"),Ie=I('<div><div class="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity z-10"><!></div> <div class="flex"><!> <div><pre><code></code></pre></div></div></div>');function Se(r,t){if(new.target)return se({component:Se,...r});oe(t,!0);const n=a(t,"code",7,""),s=a(t,"language",7,"plaintext"),f=a(t,"showLineNumbers",7,!1),c=a(t,"startLineNumber",7,1),g=a(t,"highlightLines",23,()=>[]),b=a(t,"fileName",7,""),x=a(t,"filename",7,""),H=a(t,"maxHeight",7,void 0),S=a(t,"noBorder",7,!1),y=a(t,"noMargin",7,!1),M=a(t,"doScroll",7,!0),B=a(t,"className",7,"");let N=ge(ue(Y(n(),s())??A(n())));ce(()=>{const e=n(),i=s(),h=Y(e,i);if(h!==null){z(N,h,!0);return}z(N,A(e),!0);let o=!1;return Le(e,i,()=>o).then(d=>{o||z(N,d,!0)}),()=>{o=!0}});const j=V(()=>C(N).split(`
1
+ import{t as se,bq as a,a_ as ie,by as ae,b as le}from"./DMsRLycu.js";import{bs as oe,bV as ge,br as ue,ca as ce,bH as z,a5 as p,bA as m,bS as Q,aD as C,b_ as P,W as w,bn as he,c9 as V,aA as l,bl as de,bO as me,aB as I}from"./B8o4lNgr.js";import{h as W,k as v,i as fe,l as ve}from"./ZX1TUMY0.js";import{Q as be}from"./DeCG5uo6.js";import{H as R}from"./CoZ28bOB.js";import{C as _e}from"./Dky-2Jfq.js";function A(r){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return r.replace(/[&<>"']/g,n=>t[n])}const pe=300,Ce=2e6,xe=1e5,u=new Map;let X=0;function F(r,t){return`${t}\0${r}`}function Y(r,t){const n=F(r,t),s=u.get(n);return s===void 0?null:(u.delete(n),u.set(n,s),s)}function Z(r){const t=u.get(r);t!==void 0&&(X-=r.length+t.length,u.delete(r))}function He(r,t){Z(r);const n=r.length+t.length;if(!(n>xe)){for(;u.size>=pe||u.size>0&&X+n>Ce;){const s=u.keys().next().value;if(s===void 0)break;Z(s)}u.set(r,t),X+=n}}function ye(){return new Promise(r=>{typeof requestIdleCallback=="function"?requestIdleCallback(()=>r(),{timeout:200}):setTimeout(r,0)})}function Ne(r,t){try{return t&&R.getLanguage(t)?R.highlight(r,{language:t}).value:R.highlightAuto(r).value}catch{return A(r)}}const k=new Map;function Le(r,t,n){const s=F(r,t),f=u.get(s);if(f!==void 0)return Promise.resolve(f);const c=k.get(s);if(c)return c.staleChecks.push(n??(()=>!1)),c.promise;const g={staleChecks:[n??(()=>!1)],promise:Promise.resolve("")};return g.promise=ye().then(()=>{if(k.get(s)===g&&k.delete(s),g.staleChecks.every(x=>x()))return A(r);const b=Ne(r,t);return He(s,b),b}),k.set(s,g),g.promise}var we=I("<div> </div>"),ke=I('<div class="line-numbers-gutter select-none text-right flex-shrink-0 py-3 pl-3 pr-2 svelte-1irg7m4"></div>'),Ae=I("<div></div>"),Ie=I('<div><div class="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity z-10"><!></div> <div class="flex"><!> <div><pre><code></code></pre></div></div></div>');function Se(r,t){if(new.target)return se({component:Se,...r});oe(t,!0);const n=a(t,"code",7,""),s=a(t,"language",7,"plaintext"),f=a(t,"showLineNumbers",7,!1),c=a(t,"startLineNumber",7,1),g=a(t,"highlightLines",23,()=>[]),b=a(t,"fileName",7,""),x=a(t,"filename",7,""),H=a(t,"maxHeight",7,void 0),S=a(t,"noBorder",7,!1),y=a(t,"noMargin",7,!1),M=a(t,"doScroll",7,!0),B=a(t,"className",7,"");let N=ge(ue(Y(n(),s())??A(n())));ce(()=>{const e=n(),i=s(),h=Y(e,i);if(h!==null){z(N,h,!0);return}z(N,A(e),!0);let o=!1;return Le(e,i,()=>o).then(d=>{o||z(N,d,!0)}),()=>{o=!0}});const j=V(()=>C(N).split(`
2
2
  `)),U=V(()=>Array.from({length:C(j).length},(e,i)=>c()+i));var $={get code(){return n()},set code(e=""){n(e),l()},get language(){return s()},set language(e="plaintext"){s(e),l()},get showLineNumbers(){return f()},set showLineNumbers(e=!1){f(e),l()},get startLineNumber(){return c()},set startLineNumber(e=1){c(e),l()},get highlightLines(){return g()},set highlightLines(e=[]){g(e),l()},get fileName(){return b()},set fileName(e=""){b(e),l()},get filename(){return x()},set filename(e=""){x(e),l()},get maxHeight(){return H()},set maxHeight(e=void 0){H(e),l()},get noBorder(){return S()},set noBorder(e=!1){S(e),l()},get noMargin(){return y()},set noMargin(e=!1){y(e),l()},get doScroll(){return M()},set doScroll(e=!0){M(e),l()},get className(){return B()},set className(e=""){B(e),l()},$set:ae,$on:(e,i)=>le(t,e,i)},_=Ie();let D;var G=p(_),ee=p(G);_e(ee,{get text(){return n()},size:"xs",class:"bg-background/80 hover:bg-hover text-muted-foreground hover:text-foreground backdrop-blur-sm"}),m(G);var J=Q(G,2),K=p(J);{var te=e=>{var i=ke();W(i,20,()=>C(U),h=>h,(h,o)=>{var d=we();let L;var re=de(d,!0);P(ne=>{L=v(d,1,"line-number svelte-1irg7m4",null,L,{highlighted:ne}),me(re,o)},[()=>g().includes(o)]),w(h,d)}),m(i),w(e,i)};ie(K,e=>{f()&&e(te)})}var E=Q(K,2),T=p(E);let O;var q=p(T);return W(q,21,()=>C(j),fe,(e,i,h)=>{var o=Ae();let d;be(o,()=>C(i)||" ",!0),m(o),P(L=>d=v(o,1,"code-line svelte-1irg7m4",null,d,{highlighted:L}),[()=>g().includes(c()+h)]),w(e,o)}),m(q),m(T),m(E),m(J),m(_),P(()=>{D=v(_,1,`code-block-container group rounded-md overflow-hidden relative ${B()??""}`,"svelte-1irg7m4",D,{"mt-3":!y(),"mb-5":!y(),"no-border":S()}),ve(_,H()?`max-height: ${H()}px; overflow-y: auto;`:""),v(E,1,`flex-1 ${M()?"overflow-x-auto":""}`),O=v(T,1,"code-pre py-3 pr-3 bg-background! svelte-1irg7m4",null,O,{"pl-3":!f()}),v(q,1,`hljs language-${s()??""}`,"svelte-1irg7m4")}),w(r,_),he($)}export{Se as C};
@@ -1 +1 @@
1
- import{s as r,a as s,c as e,C as t}from"./DyJ_15yQ.js";import{a as i}from"./47q6TsqV.js";import"./CJhZDVuE.js";import"./BDaXmtmH.js";var u={parser:e,get db(){return new t},renderer:s,styles:r,init:i(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{u as diagram};
1
+ import{s as r,a as s,c as e,C as t}from"./CpvtLd5_.js";import{a as i}from"./BaqTNCTY.js";import"./WIFxQL3B.js";import"./DcDNc2X4.js";var u={parser:e,get db(){return new t},renderer:s,styles:r,init:i(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{u as diagram};