@intent-hq/web 2.337.0 → 2.338.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{NRmpDFvq.js → --TzVA3S.js} +1 -1
  3. package/web/app/immutable/chunks/{DndWPEwO.js → -SRhLsfH.js} +1 -1
  4. package/web/app/immutable/chunks/{nN_0xVPP.js → 0powQEfB.js} +1 -1
  5. package/web/app/immutable/chunks/{CdFX5l9o.js → 19loSN7h.js} +1 -1
  6. package/web/app/immutable/chunks/{CySo6Hld.js → 1o85IiDb.js} +1 -1
  7. package/web/app/immutable/chunks/{C4Vd7zJw.js → 2_iuLgF6.js} +1 -1
  8. package/web/app/immutable/chunks/{B4LwNWew.js → 5hOq5Q77.js} +1 -1
  9. package/web/app/immutable/chunks/{Br99MG4d.js → 5v54BHUZ.js} +2 -2
  10. package/web/app/immutable/chunks/{C3yI1C4G.js → 8UJuJS22.js} +3 -3
  11. package/web/app/immutable/chunks/{Dx4g_-ir.js → 9yebF5CG.js} +2 -2
  12. package/web/app/immutable/chunks/Al5gKQhw.js +1 -0
  13. package/web/app/immutable/chunks/{CX0X3Hhd.js → B10dK85Q.js} +1 -1
  14. package/web/app/immutable/chunks/{DT1OBCpr.js → B1_E9UBq.js} +4 -4
  15. package/web/app/immutable/chunks/{Bg8EQgd-.js → B7gpxSl6.js} +1 -1
  16. package/web/app/immutable/chunks/{Xlptr-cR.js → B8IFnCn1.js} +1 -1
  17. package/web/app/immutable/chunks/{jUie4MnL.js → BBKBzeRB.js} +1 -1
  18. package/web/app/immutable/chunks/{CcV1L0JC.js → BBoT7qt7.js} +1 -1
  19. package/web/app/immutable/chunks/{Pz-DR477.js → BC1IkzkM.js} +1 -1
  20. package/web/app/immutable/chunks/{B3evI07Y.js → BD_WUy--.js} +1 -1
  21. package/web/app/immutable/chunks/{CfImW6ld.js → BE4HMJVM.js} +1 -1
  22. package/web/app/immutable/chunks/{Bc0qNt2o.js → BF684udf.js} +1 -1
  23. package/web/app/immutable/chunks/{Cs2gnnmH.js → BFE28qi6.js} +1 -1
  24. package/web/app/immutable/chunks/{CLnAb9-Z.js → BFVWCDsZ.js} +2 -2
  25. package/web/app/immutable/chunks/{DBy21ab2.js → BHgKzDXJ.js} +1 -1
  26. package/web/app/immutable/chunks/{CJzEBUXT.js → BKf5FMmo.js} +1 -1
  27. package/web/app/immutable/chunks/{C0s8hBTc.js → BKx8D0hn.js} +3 -3
  28. package/web/app/immutable/chunks/{gPe_La8G.js → BNG_lclJ.js} +1 -1
  29. package/web/app/immutable/chunks/{UHGh7ziL.js → BN_moS2U.js} +1 -1
  30. package/web/app/immutable/chunks/{CM94EWCS.js → BNcfl1rp.js} +1 -1
  31. package/web/app/immutable/chunks/{onRqWtMn.js → BNjZVlBe.js} +1 -1
  32. package/web/app/immutable/chunks/{C6sQce7J.js → BQBn6AXu.js} +1 -1
  33. package/web/app/immutable/chunks/{DPvl8YXq.js → BQyc6weN.js} +1 -1
  34. package/web/app/immutable/chunks/{oW7Vyp54.js → BSY2iZcG.js} +3 -3
  35. package/web/app/immutable/chunks/{CtMlfG-m.js → BUHv-UKO.js} +1 -1
  36. package/web/app/immutable/chunks/{CEIZLgcW.js → BUmpw0I3.js} +1 -1
  37. package/web/app/immutable/chunks/{DEPHVrPd.js → BYdX7EnG.js} +1 -1
  38. package/web/app/immutable/chunks/{DAAJkRP5.js → B_zkbbdR.js} +1 -1
  39. package/web/app/immutable/chunks/{Cqk7o6_S.js → BaGPGwll.js} +14 -14
  40. package/web/app/immutable/chunks/{D9vZrNKO.js → BabqdlUh.js} +4 -4
  41. package/web/app/immutable/chunks/BahFkvC5.js +1 -0
  42. package/web/app/immutable/chunks/{CpcwLSW9.js → BamyRdJ8.js} +1 -1
  43. package/web/app/immutable/chunks/{C9jDFW-u.js → Bbd7T6DJ.js} +1 -1
  44. package/web/app/immutable/chunks/{CLqxA_4F.js → BbxpiJV6.js} +1 -1
  45. package/web/app/immutable/chunks/{CLlsAJnV.js → BePtUMMB.js} +3 -3
  46. package/web/app/immutable/chunks/{qkFjZjsb.js → Bf86mLwh.js} +1 -1
  47. package/web/app/immutable/chunks/{DkjeaYxe.js → Bfrvy6-f.js} +2 -2
  48. package/web/app/immutable/chunks/{ubO3Pm6L.js → BgKtz5kX.js} +1 -1
  49. package/web/app/immutable/chunks/{DKE4PO8v.js → Bgdxwo64.js} +1 -1
  50. package/web/app/immutable/chunks/{BEuQfXMk.js → BiO4t-Qa.js} +1 -1
  51. package/web/app/immutable/chunks/{Do38NIUt.js → BilYWCw8.js} +1 -1
  52. package/web/app/immutable/chunks/{DhilZ4TU.js → BkOzx8cD.js} +1 -1
  53. package/web/app/immutable/chunks/{7ceYWfj5.js → BkQYu6CB.js} +1 -1
  54. package/web/app/immutable/chunks/{D1QfgDnC.js → BlXsb3Tb.js} +1 -1
  55. package/web/app/immutable/chunks/{CU2rVgkY.js → BqgO24EE.js} +1 -1
  56. package/web/app/immutable/chunks/{tmbtpthl.js → BrYjurft.js} +1 -1
  57. package/web/app/immutable/chunks/BsyYcfIA.js +1 -0
  58. package/web/app/immutable/chunks/{CS8jG0Rl.js → BtAXkZJT.js} +1 -1
  59. package/web/app/immutable/chunks/{gYhZpsnS.js → BtpuPEaR.js} +1 -1
  60. package/web/app/immutable/chunks/{DP1uWm4M.js → BuszvIDw.js} +1 -1
  61. package/web/app/immutable/chunks/{4gd4ye6F.js → BvDMLNjQ.js} +1 -1
  62. package/web/app/immutable/chunks/{DCmWIfux.js → ByNwJeiI.js} +1 -1
  63. package/web/app/immutable/chunks/{BWKfK0nC.js → BzDIseIS.js} +1 -1
  64. package/web/app/immutable/chunks/{BkR3fSb3.js → C-SF0TBp.js} +1 -1
  65. package/web/app/immutable/chunks/{CuhXFIIT.js → C-U2Q_Ce.js} +1 -1
  66. package/web/app/immutable/chunks/C0Md8A5J.js +408 -0
  67. package/web/app/immutable/chunks/C3BW_tmx.js +6 -0
  68. package/web/app/immutable/chunks/{Bi8sTr_0.js → C4rKE1Qu.js} +1 -1
  69. package/web/app/immutable/chunks/{DgycnxOI.js → C9iBDSZ7.js} +1 -1
  70. package/web/app/immutable/chunks/{BzuQ_wt3.js → CAPelkZT.js} +1 -1
  71. package/web/app/immutable/chunks/{B2lThFFV.js → CB56tJ4V.js} +1 -1
  72. package/web/app/immutable/chunks/{CN885woE.js → CCV8VTnq.js} +2 -2
  73. package/web/app/immutable/chunks/{Bfk1jy1c.js → CEpchTPD.js} +1 -1
  74. package/web/app/immutable/chunks/{BHERG37w.js → CEsQleDv.js} +1 -1
  75. package/web/app/immutable/chunks/{CAfDw9FJ.js → CG3d-0wy.js} +1 -1
  76. package/web/app/immutable/chunks/{CuzsGhT8.js → CGFLlGKK.js} +2 -2
  77. package/web/app/immutable/chunks/{DU0fErkj.js → CGL8_8zk.js} +1 -1
  78. package/web/app/immutable/chunks/{BiO3OGe9.js → CJvgWPEf.js} +1 -1
  79. package/web/app/immutable/chunks/{DFTmZC7j.js → CLOm5Lgj.js} +1 -1
  80. package/web/app/immutable/chunks/{mTz7BmTp.js → CLQIdYtf.js} +1 -1
  81. package/web/app/immutable/chunks/{DOdSButZ.js → CMgSs0m0.js} +1 -1
  82. package/web/app/immutable/chunks/{DI4TFDQx.js → CNgujfRJ.js} +1 -1
  83. package/web/app/immutable/chunks/{CDP6fcTa.js → CQsysHl4.js} +1 -1
  84. package/web/app/immutable/chunks/{DpX51SYY.js → CTUI81dg.js} +4 -4
  85. package/web/app/immutable/chunks/{CCNcqs35.js → CUQ53Tah.js} +1 -1
  86. package/web/app/immutable/chunks/{DX4RQn8x.js → CUSDRtYF.js} +3 -3
  87. package/web/app/immutable/chunks/{N7WDEZg2.js → CUrYTyIw.js} +1 -1
  88. package/web/app/immutable/chunks/{Dic4Fhce.js → CX7SaBcR.js} +1 -1
  89. package/web/app/immutable/chunks/{Dp_9-8n0.js → C_NbS-4j.js} +1 -1
  90. package/web/app/immutable/chunks/{DiBEcZCC.js → CbQcBewU.js} +1 -1
  91. package/web/app/immutable/chunks/CdwRultT.js +1 -0
  92. package/web/app/immutable/chunks/{D6oiBgua.js → Cf-4o0C1.js} +1 -1
  93. package/web/app/immutable/chunks/{DdXTJasD.js → CgCdkhNg.js} +1 -1
  94. package/web/app/immutable/chunks/{BgmkJDpT.js → Cg_TEGFC.js} +1 -1
  95. package/web/app/immutable/chunks/{ChOY95M0.js → CiQFOdPb.js} +1 -1
  96. package/web/app/immutable/chunks/{DHrpSrNe.js → CjU1deOg.js} +1 -1
  97. package/web/app/immutable/chunks/{CRaq1sop.js → CkjMOvWd.js} +1 -1
  98. package/web/app/immutable/chunks/{Df9OfQpN.js → CmEf5a2p.js} +1 -1
  99. package/web/app/immutable/chunks/{DeGRVP35.js → CmUwI5cU.js} +1 -1
  100. package/web/app/immutable/chunks/{DzhdVbj4.js → Cne24NXp.js} +1 -1
  101. package/web/app/immutable/chunks/Cp5oSwWa.js +2 -0
  102. package/web/app/immutable/chunks/{erCusacs.js → CpFmVP7v.js} +1 -1
  103. package/web/app/immutable/chunks/{CweUDQqG.js → Cry81AGu.js} +1 -1
  104. package/web/app/immutable/chunks/{eOd5i397.js → Ct5KmixI.js} +1 -1
  105. package/web/app/immutable/chunks/CueFizU8.js +1 -0
  106. package/web/app/immutable/chunks/{CFdsXm57.js → Cuhz8j8n.js} +4 -4
  107. package/web/app/immutable/chunks/{CKR-Vlsh.js → CvUjaEmJ.js} +1 -1
  108. package/web/app/immutable/chunks/{DAE9tYoR.js → CwjLA5I0.js} +1 -1
  109. package/web/app/immutable/chunks/{CrYJqDlq.js → CyY6TpOV.js} +1 -1
  110. package/web/app/immutable/chunks/{Dl9kZYl1.js → CzrNrMOH.js} +1 -1
  111. package/web/app/immutable/chunks/{7uyipYlP.js → Czzc8yNT.js} +1 -1
  112. package/web/app/immutable/chunks/{DnbSKK1K.js → D00ZK3dW.js} +1 -1
  113. package/web/app/immutable/chunks/{CsA6FCv2.js → D15wv8Vo.js} +1 -1
  114. package/web/app/immutable/chunks/{Cj_-YRxC.js → D1PC1f77.js} +1 -1
  115. package/web/app/immutable/chunks/{DruVRP7_.js → D2pEu7en.js} +1 -1
  116. package/web/app/immutable/chunks/{TrbIhOlP.js → D9CLfDd7.js} +1 -1
  117. package/web/app/immutable/chunks/{BCQHOtP2.js → DAZ23kin.js} +1 -1
  118. package/web/app/immutable/chunks/DBkMUdAo.js +6 -0
  119. package/web/app/immutable/chunks/{Bn7xrUOP.js → DEAuDYtn.js} +1 -1
  120. package/web/app/immutable/chunks/{BQBLdlWI.js → DEIrZl-Q.js} +1 -1
  121. package/web/app/immutable/chunks/{Dz2Vf5sD.js → DJ0y2dBB.js} +1 -1
  122. package/web/app/immutable/chunks/{DQWnciqS.js → DJFRQOtM.js} +1 -1
  123. package/web/app/immutable/chunks/{D5r-_1WQ.js → DK5D4USl.js} +1 -1
  124. package/web/app/immutable/chunks/{DkdJns_L.js → DKcu5hwj.js} +1 -1
  125. package/web/app/immutable/chunks/{lTTQePtc.js → DLwZ6u1z.js} +1 -1
  126. package/web/app/immutable/chunks/{Cmbndvyo.js → DNMYeEBj.js} +1 -1
  127. package/web/app/immutable/chunks/{Cs5JEDGC.js → DOcgdSXI.js} +6 -6
  128. package/web/app/immutable/chunks/{DZ3Z7bT_.js → DPa-xfh8.js} +1 -1
  129. package/web/app/immutable/chunks/{DbDc2YsP.js → DPkSGZl0.js} +1 -1
  130. package/web/app/immutable/chunks/{Cop40zLp.js → DTDbZc--.js} +1 -1
  131. package/web/app/immutable/chunks/{DjF0_SuD.js → DTHIPERj.js} +1 -1
  132. package/web/app/immutable/chunks/{k2_utB1h.js → DTmJTNN7.js} +1 -1
  133. package/web/app/immutable/chunks/{BemGXpeo.js → D_B1cb64.js} +2 -2
  134. package/web/app/immutable/chunks/{DdFw-LGo.js → D_E5w2vv.js} +2 -2
  135. package/web/app/immutable/chunks/{DEZeFMdL.js → DbH_I5Yv.js} +1 -1
  136. package/web/app/immutable/chunks/{jhECz8bb.js → DbIbkjr8.js} +1 -1
  137. package/web/app/immutable/chunks/{CYnaDvgB.js → DbYY-d08.js} +1 -1
  138. package/web/app/immutable/chunks/{DFvZgSdc.js → DccmXxha.js} +2 -2
  139. package/web/app/immutable/chunks/{hkWveSHJ.js → Dcpa7_yE.js} +1 -1
  140. package/web/app/immutable/chunks/{BcuiuPTm.js → DfD-d1VI.js} +1 -1
  141. package/web/app/immutable/chunks/{Ch7EwWlH.js → Dg7D-dnV.js} +1 -1
  142. package/web/app/immutable/chunks/{CX4AdWVU.js → DgFO9ngQ.js} +4 -4
  143. package/web/app/immutable/chunks/{Da2MTrvO.js → DgLaHMxU.js} +2 -2
  144. package/web/app/immutable/chunks/{CQNAqeGr.js → DgnjMBuV.js} +1 -1
  145. package/web/app/immutable/chunks/{DT9taacO.js → DhR-694R.js} +1 -1
  146. package/web/app/immutable/chunks/{DTR7MF-I.js → Di_7c3Tz.js} +1 -1
  147. package/web/app/immutable/chunks/{_0Bc8ljw.js → DibpUDFe.js} +1 -1
  148. package/web/app/immutable/chunks/{9DDYOu34.js → Dihy2CGH.js} +1 -1
  149. package/web/app/immutable/chunks/{w1aMDv4n.js → DiqFqdjd.js} +1 -1
  150. package/web/app/immutable/chunks/{Cz0H9Jnq.js → Dj6MdpEs.js} +1 -1
  151. package/web/app/immutable/chunks/{DznAmrTO.js → Dm8JS2ey.js} +1 -1
  152. package/web/app/immutable/chunks/{DEG41NHq.js → DnQqagmU.js} +1 -1
  153. package/web/app/immutable/chunks/{GIsNxnZx.js → Dqq-QSMH.js} +1 -1
  154. package/web/app/immutable/chunks/{D3OUmpg2.js → DshMjQEH.js} +1 -1
  155. package/web/app/immutable/chunks/{BILk5QxD.js → DtMeGqJv.js} +1 -1
  156. package/web/app/immutable/chunks/{BYRe4mFc.js → Du86t-Cq.js} +1 -1
  157. package/web/app/immutable/chunks/{B0NTb6Dk.js → EjidVmY8.js} +1 -1
  158. package/web/app/immutable/chunks/GdlMbZRO.js +1 -0
  159. package/web/app/immutable/chunks/{CWT6pR_5.js → H4zMohfU.js} +1 -1
  160. package/web/app/immutable/chunks/{Dy7Teydo.js → HzVNNtmZ.js} +1 -1
  161. package/web/app/immutable/chunks/IHdT9wNR.js +1 -0
  162. package/web/app/immutable/chunks/{CGhAHvgo.js → QGaLfYnp.js} +1 -1
  163. package/web/app/immutable/chunks/{CLIxyCiL.js → QJ_UUVDw.js} +1 -1
  164. package/web/app/immutable/chunks/{DqxdzMto.js → QKfrd0hZ.js} +1 -1
  165. package/web/app/immutable/chunks/{inAr7ZXq.js → QvSCvTgk.js} +2 -2
  166. package/web/app/immutable/chunks/{Cs21T7Ky.js → RXyByhXK.js} +1 -1
  167. package/web/app/immutable/chunks/{DrmVxRwm.js → SO2ToTkD.js} +2 -2
  168. package/web/app/immutable/chunks/UGomc4DU.js +1 -0
  169. package/web/app/immutable/chunks/{B0D5qZ9V.js → WFVUS5Q2.js} +3 -3
  170. package/web/app/immutable/chunks/{56OXBmSr.js → ZhmlPELZ.js} +1 -1
  171. package/web/app/immutable/chunks/{Bq0fu4pO.js → _mh_sREE.js} +1 -1
  172. package/web/app/immutable/chunks/{BWsdvLFD.js → c8OT2QUl.js} +1 -1
  173. package/web/app/immutable/chunks/{LBOoUPAv.js → dMMe6A0k.js} +1 -1
  174. package/web/app/immutable/chunks/{xQBzMF7t.js → ertp7R3g.js} +1 -1
  175. package/web/app/immutable/chunks/{DkWimwl1.js → hvA7NN8H.js} +1 -1
  176. package/web/app/immutable/chunks/{DlV-fFE5.js → iqon4GjF.js} +1 -1
  177. package/web/app/immutable/chunks/{DT0htg66.js → jl7iZe2q.js} +1 -1
  178. package/web/app/immutable/chunks/{CU39baKU.js → l29U7LvB.js} +1 -1
  179. package/web/app/immutable/chunks/{CBOarq51.js → m03ON1WT.js} +1 -1
  180. package/web/app/immutable/chunks/{D70pO4a_.js → m0O31dSs.js} +1 -1
  181. package/web/app/immutable/chunks/{DGv9J1Xb.js → pwxUJrVV.js} +1 -1
  182. package/web/app/immutable/chunks/{DFCcfXy1.js → sxMN8r-q.js} +1 -1
  183. package/web/app/immutable/chunks/{CU3vXCI7.js → tf5aM7kX.js} +1 -1
  184. package/web/app/immutable/chunks/{BeCS6Gef.js → vQ36nGYg.js} +1 -1
  185. package/web/app/immutable/chunks/{CG8k7OMl.js → vcNfRBrL.js} +1 -1
  186. package/web/app/immutable/chunks/{BRmxXY4c.js → w0BZ2tS8.js} +1 -1
  187. package/web/app/immutable/chunks/{kgEVl1wg.js → wQ_gAJ8i.js} +1 -1
  188. package/web/app/immutable/chunks/{BmuBzCY9.js → xE-qM4CT.js} +1 -1
  189. package/web/app/immutable/chunks/{07n5BBna.js → xp5T-On2.js} +1 -1
  190. package/web/app/immutable/chunks/{B2m3LDwK.js → zKR5Yxu0.js} +3 -3
  191. package/web/app/immutable/chunks/{B8tA0CEC.js → zUhkglmS.js} +1 -1
  192. package/web/app/immutable/entry/{app.h_mcaxo3.js → app.BXrls4Qh.js} +3 -3
  193. package/web/app/immutable/entry/start.BvzRKINi.js +1 -0
  194. package/web/app/immutable/nodes/{0.CYfb8JDO.js → 0.Bdj8ZT8c.js} +1 -1
  195. package/web/app/immutable/nodes/{1.BCdsK1yi.js → 1.Zl0F2Sz6.js} +1 -1
  196. package/web/app/immutable/nodes/{10.B4UgOZ9E.js → 10.CNUk2b9P.js} +4 -4
  197. package/web/app/immutable/nodes/{12.CJVkjTMQ.js → 12.CwLwGOfk.js} +1 -1
  198. package/web/app/immutable/nodes/{13.C1C_-cGD.js → 13.DvKRNmRj.js} +1 -1
  199. package/web/app/immutable/nodes/{14.BV2kGWDU.js → 14.BiNIXgP0.js} +1 -1
  200. package/web/app/immutable/nodes/{15.yXA_NVjl.js → 15.CLi9Mr7F.js} +1 -1
  201. package/web/app/immutable/nodes/{16.Dymceed0.js → 16.CH7JJ_PA.js} +1 -1
  202. package/web/app/immutable/nodes/{17.DjaLtrG0.js → 17.DsIjUuTv.js} +2 -2
  203. package/web/app/immutable/nodes/{2.B25saJWq.js → 2.DZVP3Lrs.js} +4 -4
  204. package/web/app/immutable/nodes/{3.Dq3q9y6c.js → 3.DmYudxdL.js} +1 -1
  205. package/web/app/immutable/nodes/{4.B0o9SB30.js → 4.C0P9sF9-.js} +1 -1
  206. package/web/app/immutable/nodes/5.C8gznsC_.js +5 -0
  207. package/web/app/immutable/nodes/{6.DLCIXI5n.js → 6.CG_NYMUH.js} +1 -1
  208. package/web/app/immutable/nodes/{7.C8pWx_Gt.js → 7.DEl0Oxtl.js} +1 -1
  209. package/web/app/immutable/nodes/{8.C0ZJyqfA.js → 8.urQBqjSm.js} +4 -4
  210. package/web/app/immutable/nodes/{9.BIVqs287.js → 9.B_Whvp9_.js} +5 -5
  211. package/web/app/version.json +1 -1
  212. package/web/index.html +15 -15
  213. package/web/app/immutable/chunks/B3A1Zt7J.js +0 -408
  214. package/web/app/immutable/chunks/B57LhVW0.js +0 -1
  215. package/web/app/immutable/chunks/B9jMXe4O.js +0 -1
  216. package/web/app/immutable/chunks/Bal-Lzb0.js +0 -1
  217. package/web/app/immutable/chunks/BbMsjuvF.js +0 -1
  218. package/web/app/immutable/chunks/BfI1Z7yR.js +0 -6
  219. package/web/app/immutable/chunks/BpzSKS8t.js +0 -1
  220. package/web/app/immutable/chunks/CK98GeJf.js +0 -2
  221. package/web/app/immutable/chunks/CnBhCwyt.js +0 -1
  222. package/web/app/immutable/chunks/D1pAc-eB.js +0 -1
  223. package/web/app/immutable/chunks/DZdKq6JI.js +0 -6
  224. package/web/app/immutable/chunks/euzu9AIo.js +0 -1
  225. package/web/app/immutable/entry/start.B6mPqJLK.js +0 -1
  226. package/web/app/immutable/nodes/5.CG01VGtS.js +0 -5
@@ -0,0 +1 @@
1
+ import{I as N}from"./GdlMbZRO.js";const S=N.AGENT,A=N.WORKSPACE,C=N.FILE,_=N.SYSTEM,s=N.WINDOW,I=N.BROWSER_ACCESS,L=N.QUIT_CONFIRMATION,T=N.INVITE_CONSENT,O=N.INVITE_PROGRESS,R=N.INVITE_NOTICE,o=N.AUGGIE,H=N.PROVIDERS,a=N.SETTINGS,t=N.FEATURE_CODES,c=N.USER_MCP,n=N.DEEP_LINK,U=N.PANEL_LAYOUT,P=N.LOG,G=N.USER_ACTIVITY,V=N.COLLABORATION_AUTH;export{S as A,I as B,V as C,n as D,t as F,T as I,P as L,U as P,L as Q,a as S,G as U,s as W,o as a,C as b,R as c,O as d,H as e,_ as f,c as g,A as h};
@@ -1 +1 @@
1
- import{t as Ze,br as p,a_ as fe,bz as Ke,bv as Y,bt as Ye,b as Qe,bp as M}from"./Cv-W__h8.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./DYhIMPy1.js";import{b as St}from"./BaIAhI85.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./D73BIenN.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./By364i7q.js";import{c as Et}from"./ChTqQfQN.js";import{w as Ae,v as Ft}from"./DPvDLGgX.js";import{Ip as ot}from"./BfI1Z7yR.js";import{f as qe}from"./CLlsAJnV.js";import{F as He,b9 as It,bk as Pt}from"./BKpkoMuv.js";import{i as Ue}from"./Bfk1jy1c.js";import{dr as zt,cn as Nt}from"./CX0X3Hhd.js";import{g as At}from"./CySo6Hld.js";import{c as Vt}from"./DdXTJasD.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./DeGRVP35.js";import{g as B,R as Ge,U as Je}from"./D_EwpcgA.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),ge(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
1
+ import{t as Ze,br as p,a_ as fe,bz as Ke,bv as Y,bt as Ye,b as Qe,bp as M}from"./Cv-W__h8.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./DYhIMPy1.js";import{b as St}from"./BaIAhI85.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./D73BIenN.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./By364i7q.js";import{c as Et}from"./ChTqQfQN.js";import{w as Ae,v as Ft}from"./DPvDLGgX.js";import{Ir as ot}from"./DBkMUdAo.js";import{f as qe}from"./BePtUMMB.js";import{F as He,b9 as It,bk as Pt}from"./BKpkoMuv.js";import{i as Ue}from"./CEpchTPD.js";import{dr as zt,cn as Nt}from"./B10dK85Q.js";import{g as At}from"./1o85IiDb.js";import{c as Vt}from"./CgCdkhNg.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./CmUwI5cU.js";import{g as B,R as Ge,U as Je}from"./D_EwpcgA.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),ge(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
@@ -1 +1 @@
1
- var E=Object.defineProperty;var N=(t,e,a)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var _=(t,e,a)=>N(t,typeof e!="symbol"?e+"":e,a);import{aR as b,aP as S,b4 as A,ao as W,a0 as B,b2 as k,s as U,bL as M,bT as x,bM as v,bt as O,aW as f,ae as C,d as F,c4 as Y,b0 as H,aA as K,bU as T,U as $,bd as L,a4 as G}from"./DYhIMPy1.js";import{B as j,bp as r}from"./Cv-W__h8.js";import{nF as q,nD as Q,nE as Z,Ip as J}from"./BfI1Z7yR.js";import{Q as V,aI as X}from"./BKpkoMuv.js";import{t as R,u as ee}from"./j0KL2ItM.js";const z=0,P=1,te=2;function ge(t,e,a,s,n){b&&S();var p=A(),o=$,c=p?T(o):L(o,!1,!1),g=p?T(o):L(o,!1,!1);W&&(c.label="{#await ...} value",g.label="{#await ...} error");var i=new j(t);B(()=>{var d=C,m=e(),y=!1;let w=b&&k(m)===(t.data===U);if(w&&(M(x()),v(!1)),k(m)){var D=G(),I=!1;const l=u=>{if(!y){I=!0,D(!1),C===d&&d.deactivate(),F.ensure();try{u()}finally{Y(!1),H||K()}}};m.then(u=>{l(()=>{f(c,u),i.ensure(P,s&&(h=>s(h,c)))})},u=>{l(()=>{if(f(g,u),i.ensure(te,n&&(h=>n(h,g))),!n)throw g.v})}),b?i.ensure(z,a):O(()=>{I||l(()=>{i.ensure(z,a)})})}else f(c,m),i.ensure(P,s&&(l=>s(l,c)));return w&&v(!0),()=>{y=!0}})}class ae{constructor(){_(this,"types",new Map);_(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const a=this.types.get(e);if(!a)return Promise.reject(new Error(`Unknown tab type: ${e}`));const s=this.componentLoads.get(e);if(s?.registration===a)return s.promise;const n={registration:a},p="component"in a&&a.component?Promise.resolve(a.component):Promise.resolve().then(()=>a.loadComponent()).then(o=>o.default);return n.promise=p.then(o=>(this.componentLoads.get(e)===n&&(n.component=o),o)).catch(o=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),o}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const a=this.types.get(e);if(!a)return;if("component"in a)return a.component;const s=this.componentLoads.get(e);return s?.registration===a?s.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??r.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??q(e)}getDefaultWidth(e,a=0){const s=this.types.get(e);return s?Q(s.defaultWidthTier,a):Z(e,a)}}const me=new ae,he={note:V,changes:X},re={note:"note",changes:"changes","local-changes":"changes","chat-changes":"changes","activity-changes":"changes"};function _e(t){return re[t]??null}const be=J.createSelector((t,e)=>e?t.workspaceCreateProgress.byProgressId[e]??null:null);function se(t){const e=t?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function oe(t){const e=t?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function fe(t){switch(t.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=oe(t.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=se(t.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:R(e.current),total:R(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function de(t){const e=Math.min(Math.max(t,0),100);return ee(e/100,{style:"percent",maximumFractionDigits:0})}export{he as R,ge as a,fe as c,de as f,_e as g,be as s,me as t};
1
+ var E=Object.defineProperty;var N=(t,e,a)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var _=(t,e,a)=>N(t,typeof e!="symbol"?e+"":e,a);import{aR as b,aP as S,b4 as A,ao as W,a0 as B,b2 as k,s as U,bL as M,bT as x,bM as v,bt as O,aW as f,ae as C,d as F,c4 as Y,b0 as H,aA as K,bU as T,U as $,bd as L,a4 as G}from"./DYhIMPy1.js";import{B as j,bp as r}from"./Cv-W__h8.js";import{nF as q,nD as Q,nE as Z,Ir as J}from"./DBkMUdAo.js";import{Q as V,aI as X}from"./BKpkoMuv.js";import{t as R,u as ee}from"./j0KL2ItM.js";const z=0,P=1,te=2;function ge(t,e,a,s,n){b&&S();var p=A(),o=$,c=p?T(o):L(o,!1,!1),g=p?T(o):L(o,!1,!1);W&&(c.label="{#await ...} value",g.label="{#await ...} error");var i=new j(t);B(()=>{var d=C,m=e(),y=!1;let w=b&&k(m)===(t.data===U);if(w&&(M(x()),v(!1)),k(m)){var D=G(),I=!1;const l=u=>{if(!y){I=!0,D(!1),C===d&&d.deactivate(),F.ensure();try{u()}finally{Y(!1),H||K()}}};m.then(u=>{l(()=>{f(c,u),i.ensure(P,s&&(h=>s(h,c)))})},u=>{l(()=>{if(f(g,u),i.ensure(te,n&&(h=>n(h,g))),!n)throw g.v})}),b?i.ensure(z,a):O(()=>{I||l(()=>{i.ensure(z,a)})})}else f(c,m),i.ensure(P,s&&(l=>s(l,c)));return w&&v(!0),()=>{y=!0}})}class ae{constructor(){_(this,"types",new Map);_(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const a=this.types.get(e);if(!a)return Promise.reject(new Error(`Unknown tab type: ${e}`));const s=this.componentLoads.get(e);if(s?.registration===a)return s.promise;const n={registration:a},p="component"in a&&a.component?Promise.resolve(a.component):Promise.resolve().then(()=>a.loadComponent()).then(o=>o.default);return n.promise=p.then(o=>(this.componentLoads.get(e)===n&&(n.component=o),o)).catch(o=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),o}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const a=this.types.get(e);if(!a)return;if("component"in a)return a.component;const s=this.componentLoads.get(e);return s?.registration===a?s.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??r.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??q(e)}getDefaultWidth(e,a=0){const s=this.types.get(e);return s?Q(s.defaultWidthTier,a):Z(e,a)}}const me=new ae,he={note:V,changes:X},re={note:"note",changes:"changes","local-changes":"changes","chat-changes":"changes","activity-changes":"changes"};function _e(t){return re[t]??null}const be=J.createSelector((t,e)=>e?t.workspaceCreateProgress.byProgressId[e]??null:null);function se(t){const e=t?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function oe(t){const e=t?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function fe(t){switch(t.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=oe(t.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=se(t.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:R(e.current),total:R(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function de(t){const e=Math.min(Math.max(t,0),100);return ee(e/100,{style:"percent",maximumFractionDigits:0})}export{he as R,ge as a,fe as c,de as f,_e as g,be as s,me as t};
@@ -1 +1 @@
1
- import{t as F,br as q,bp as H,a_ as C,bz as G,bt as dt,b as J,bv as nt}from"./Cv-W__h8.js";import{bs as K,cd as lt,ca as j,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as L,bA as B,bn as N,bV as it,aA as R,c9 as u,aB as v,bl as S,ay as pt}from"./DYhIMPy1.js";import{C as ut}from"./Pz-DR477.js";import{f as V}from"./CLlsAJnV.js";import{k as vt}from"./CcV1L0JC.js";import{Ip as P,dp as bt,dm as kt,dq as _t}from"./BfI1Z7yR.js";var gt=v('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),ft=v('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),mt=v('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=v('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=v('<p class="text-xs text-subtle"> </p>'),wt=v('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=v('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return F({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());j(()=>d.set(s()));const $=vt(d),b=u(()=>g().find(t=>t.hookId===I()));j(()=>{if(!s())return;const t=s();return ct(()=>{P.dispatch(bt(t)),P.dispatch(kt(t))}),()=>P.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:G,$on:(t,r)=>J(c,t,r)},z=It(),A=T(z),W=T(A);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(W,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=L(W,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}B(A);var Z=L(A,2);{var tt=t=>{var r=ft(),p=T(r);{var y=a=>{var f=gt(),o=S(f,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(b).codeBytes??0).toLocaleString()})]),l(a,f)},i=a=>{{let f=u(()=>e(b)?.code??"");ut(a,{get code(){return e(f)},language:"javascript",noMargin:!0})}};C(p,a=>{e(b)?.codeOmitted?a(y):a(i,-1)})}B(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=mt(),m=pt(n),O=S(m,!0),at=L(m,2),ot=S(at,!0);h(st=>{_(O,st),_(ot,e(b).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};C(p,o=>{e(b)?.lastError&&o(y)})}var i=L(p,2);{var a=o=>{var n=ht(),m=S(n,!0);h(()=>_(m,e(b).lastLogs)),l(o,n)},f=o=>{var n=xt(),m=S(n,!0);h(O=>_(m,O),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};C(i,o=>{e(b)?.lastLogs?o(a):o(f,-1)})}B(r),l(t,r)};C(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}B(z),l(x,z);var rt=N(X);return E(),rt}var $t=v('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return F({component:yt,...x});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:G,$on:(d,$)=>J(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return B(s),l(x,s),N(E)}export{yt as default};
1
+ import{t as F,br as q,bp as H,a_ as C,bz as G,bt as dt,b as J,bv as nt}from"./Cv-W__h8.js";import{bs as K,cd as lt,ca as j,c5 as ct,a5 as T,be as D,b$ as M,b_ as h,bO as _,W as l,bH as U,aD as e,bS as L,bA as B,bn as N,bV as it,aA as R,c9 as u,aB as v,bl as S,ay as pt}from"./DYhIMPy1.js";import{C as ut}from"./BC1IkzkM.js";import{f as V}from"./BePtUMMB.js";import{k as vt}from"./BBoT7qt7.js";import{Ir as P,dp as bt,dm as kt,dq as _t}from"./DBkMUdAo.js";var gt=v('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),ft=v('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),mt=v('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=v('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=v('<p class="text-xs text-subtle"> </p>'),wt=v('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=v('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return F({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());j(()=>d.set(s()));const $=vt(d),b=u(()=>g().find(t=>t.hookId===I()));j(()=>{if(!s())return;const t=s();return ct(()=>{P.dispatch(bt(t)),P.dispatch(kt(t))}),()=>P.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:G,$on:(t,r)=>J(c,t,r)},z=It(),A=T(z),W=T(A);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(W,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"script"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=L(W,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");V(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>U(k,"logs"),children:(p,y)=>{D();var i=M();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}B(A);var Z=L(A,2);{var tt=t=>{var r=ft(),p=T(r);{var y=a=>{var f=gt(),o=S(f,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(b).codeBytes??0).toLocaleString()})]),l(a,f)},i=a=>{{let f=u(()=>e(b)?.code??"");ut(a,{get code(){return e(f)},language:"javascript",noMargin:!0})}};C(p,a=>{e(b)?.codeOmitted?a(y):a(i,-1)})}B(r),l(t,r)},et=t=>{var r=wt(),p=T(r);{var y=o=>{var n=mt(),m=pt(n),O=S(m,!0),at=L(m,2),ot=S(at,!0);h(st=>{_(O,st),_(ot,e(b).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};C(p,o=>{e(b)?.lastError&&o(y)})}var i=L(p,2);{var a=o=>{var n=ht(),m=S(n,!0);h(()=>_(m,e(b).lastLogs)),l(o,n)},f=o=>{var n=xt(),m=S(n,!0);h(O=>_(m,O),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};C(i,o=>{e(b)?.lastLogs?o(a):o(f,-1)})}B(r),l(t,r)};C(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}B(z),l(x,z);var rt=N(X);return E(),rt}var $t=v('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return F({component:yt,...x});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:G,$on:(d,$)=>J(c,d,$)},s=$t(),I=T(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return B(s),l(x,s),N(E)}export{yt as default};