@intent-hq/web 2.315.0 → 2.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B36kU0RI.js → 1glN8WZR.js} +1 -1
  3. package/web/app/immutable/chunks/{C-jm3uXv.js → 2zl9S940.js} +6 -6
  4. package/web/app/immutable/chunks/{CIkNpS3P.js → 4GOFpkFz.js} +1 -1
  5. package/web/app/immutable/chunks/{bS-VFUYb.js → 5doW_7tI.js} +1 -1
  6. package/web/app/immutable/chunks/{Cuq9exmb.js → 62Z5FdlR.js} +1 -1
  7. package/web/app/immutable/chunks/{BA8g-07b.js → 6TqymR4w.js} +1 -1
  8. package/web/app/immutable/chunks/{ZaCkwnYl.js → 74ywEOg9.js} +1 -1
  9. package/web/app/immutable/chunks/{CMqLPRJh.js → 8CCC493y.js} +1 -1
  10. package/web/app/immutable/chunks/{DEmaG7Ya.js → 8mzXJxUW.js} +1 -1
  11. package/web/app/immutable/chunks/9c5nR9-O.js +1 -0
  12. package/web/app/immutable/chunks/{-EpgQj88.js → AQblmNcP.js} +1 -1
  13. package/web/app/immutable/chunks/{CpELl9t1.js → AXIAXE42.js} +3 -3
  14. package/web/app/immutable/chunks/B2mK5Z0v.js +4 -0
  15. package/web/app/immutable/chunks/{Swkg1pRS.js → B4r7cJNO.js} +1 -1
  16. package/web/app/immutable/chunks/{CpnUYFMu.js → B555xbMg.js} +1 -1
  17. package/web/app/immutable/chunks/{BDIALQgX.js → B5JU_-gP.js} +1 -1
  18. package/web/app/immutable/chunks/{jn5owXje.js → B5hFXalj.js} +1 -1
  19. package/web/app/immutable/chunks/{Csa9LtrA.js → B8NcRhEG.js} +1 -1
  20. package/web/app/immutable/chunks/{9GP6SafJ.js → B8W3QKCn.js} +1 -1
  21. package/web/app/immutable/chunks/{B1h0QCy7.js → B9HMXORu.js} +1 -1
  22. package/web/app/immutable/chunks/{BS-r7N3W.js → B9Y6nB-h.js} +1 -1
  23. package/web/app/immutable/chunks/{Dj42fWMH.js → BAm6Imyt.js} +1 -1
  24. package/web/app/immutable/chunks/{CD3v15Ti.js → BAop6WWJ.js} +1 -1
  25. package/web/app/immutable/chunks/{D22I-TIV.js → BELPi3nC.js} +1 -1
  26. package/web/app/immutable/chunks/{CtO7SsM-.js → BEZid-wN.js} +1 -1
  27. package/web/app/immutable/chunks/{eYob4ynm.js → BEm-LQiN.js} +1 -1
  28. package/web/app/immutable/chunks/{CUjmBXfD.js → BErHxpt7.js} +1 -1
  29. package/web/app/immutable/chunks/{BHJ90Mf-.js → BFyDkIbG.js} +1 -1
  30. package/web/app/immutable/chunks/{CjCXWRTy.js → BHdeiQcg.js} +1 -1
  31. package/web/app/immutable/chunks/{dyJEvFNA.js → BJHfEwR6.js} +1 -1
  32. package/web/app/immutable/chunks/{PeOOhaLn.js → BJjB6NZq.js} +1 -1
  33. package/web/app/immutable/chunks/{uDDQZzPe.js → BKLi8eiR.js} +1 -1
  34. package/web/app/immutable/chunks/{DXHWw6vt.js → BKsZlIeb.js} +2 -2
  35. package/web/app/immutable/chunks/{BzVDQRgL.js → BLhV_JPM.js} +1 -1
  36. package/web/app/immutable/chunks/{wc9xM_2L.js → BM8QRBST.js} +1 -1
  37. package/web/app/immutable/chunks/{WVbSHjXl.js → BOAcRQ1a.js} +1 -1
  38. package/web/app/immutable/chunks/{CfHhYnBc.js → BPGcNKLB.js} +1 -1
  39. package/web/app/immutable/chunks/{CHXEA9Fi.js → BP_Rhsa3.js} +4 -4
  40. package/web/app/immutable/chunks/{B7ZHl5_Y.js → BT0R4C2H.js} +1 -1
  41. package/web/app/immutable/chunks/{C8LKnqUt.js → BT2B_S_L.js} +1 -1
  42. package/web/app/immutable/chunks/{hUiIfi2t.js → BTNnUZgK.js} +1 -1
  43. package/web/app/immutable/chunks/{45Qi4YFf.js → BThHq8_S.js} +1 -1
  44. package/web/app/immutable/chunks/{Cwy3o6zK.js → BTp-Xr0J.js} +1 -1
  45. package/web/app/immutable/chunks/{DxI6kRYN.js → BWOGoqnm.js} +1 -1
  46. package/web/app/immutable/chunks/{D0UXbQbI.js → BXHRKzIU.js} +1 -1
  47. package/web/app/immutable/chunks/{DRONnAVY.js → BYFOQUHX.js} +1 -1
  48. package/web/app/immutable/chunks/{BM62R-OM.js → BZyiigVh.js} +1 -1
  49. package/web/app/immutable/chunks/{r3MPkSU0.js → B_0kLtnu.js} +1 -1
  50. package/web/app/immutable/chunks/{BsB-PCKs.js → B_B8ZYTz.js} +1 -1
  51. package/web/app/immutable/chunks/{Clc6wozH.js → B_Uva0b1.js} +1 -1
  52. package/web/app/immutable/chunks/{BsZr4pOk.js → BaXfVVMz.js} +1 -1
  53. package/web/app/immutable/chunks/{Bg4RpIu7.js → Bbn8lLgV.js} +1 -1
  54. package/web/app/immutable/chunks/Bd-hefoB.js +175 -0
  55. package/web/app/immutable/chunks/{DSyGSHPH.js → Bd7xQNwJ.js} +1 -1
  56. package/web/app/immutable/chunks/{ZpSdOcUX.js → BdGv2V1p.js} +1 -1
  57. package/web/app/immutable/chunks/{17xFUwtQ.js → BfvWNMdY.js} +2 -2
  58. package/web/app/immutable/chunks/{DbrsPlQk.js → BhFD9JDw.js} +1 -1
  59. package/web/app/immutable/chunks/{D60vJvLR.js → BhK5x93Y.js} +1 -1
  60. package/web/app/immutable/chunks/{D441f0lY.js → BhXAuYWB.js} +43 -43
  61. package/web/app/immutable/chunks/{cE62vW_i.js → BhaDL5L2.js} +2 -2
  62. package/web/app/immutable/chunks/{C7ilG2WB.js → BiJhyKRr.js} +1 -1
  63. package/web/app/immutable/chunks/{CMMABWQi.js → BiLRO_7d.js} +1 -1
  64. package/web/app/immutable/chunks/{DUjsEo3X.js → BjZBSon4.js} +1 -1
  65. package/web/app/immutable/chunks/{CIOSdkrK.js → BkAtFENJ.js} +1 -1
  66. package/web/app/immutable/chunks/{CLGCkXvY.js → Bl6S6Gmn.js} +1 -1
  67. package/web/app/immutable/chunks/{Czd6tfZA.js → BlBXbDCF.js} +1 -1
  68. package/web/app/immutable/chunks/{DDIYUGOD.js → BmKIrGAr.js} +1 -1
  69. package/web/app/immutable/chunks/{BTxL9if-.js → BnY3EDnN.js} +3 -3
  70. package/web/app/immutable/chunks/{CBRfvExq.js → BqUqwkFB.js} +1 -1
  71. package/web/app/immutable/chunks/{DcBvBE74.js → BqjV2AQl.js} +1 -1
  72. package/web/app/immutable/chunks/{D5arKTNF.js → Bqva_xpl.js} +1 -1
  73. package/web/app/immutable/chunks/{Bjzk9M3D.js → BszyP2Xm.js} +1 -1
  74. package/web/app/immutable/chunks/{qmO_2WOw.js → Bt3aaFF4.js} +1 -1
  75. package/web/app/immutable/chunks/{ja3pdsid.js → Bt8I_YBy.js} +1 -1
  76. package/web/app/immutable/chunks/{DbHbiWFj.js → BuJ6T8t6.js} +1 -1
  77. package/web/app/immutable/chunks/{DGvAL7MJ.js → BuNSu9iM.js} +1 -1
  78. package/web/app/immutable/chunks/{fKsoycU6.js → BvHhinme.js} +1 -1
  79. package/web/app/immutable/chunks/{2UOzeX2M.js → Bwg81p3K.js} +1 -1
  80. package/web/app/immutable/chunks/{CwR0GP6W.js → Bwgf8uVs.js} +1 -1
  81. package/web/app/immutable/chunks/{2j5TR93A.js → Bwn_Ebjg.js} +1 -1
  82. package/web/app/immutable/chunks/{CzzsK_z0.js → BxKNCFnk.js} +1 -1
  83. package/web/app/immutable/chunks/{BoXSGPEf.js → BxcHqD0Y.js} +2 -2
  84. package/web/app/immutable/chunks/{BP6KtsDA.js → BxgdFxC5.js} +1 -1
  85. package/web/app/immutable/chunks/{B2jOlwPp.js → BzbMU544.js} +1 -1
  86. package/web/app/immutable/chunks/{D0UrvUQM.js → C0GDF9vt.js} +1 -1
  87. package/web/app/immutable/chunks/{CzdJ5DN4.js → C17uhWft.js} +1 -1
  88. package/web/app/immutable/chunks/{DnMKNs0X.js → C2G5AP53.js} +3 -3
  89. package/web/app/immutable/chunks/{Cufik1EG.js → C2WXNTdR.js} +1 -1
  90. package/web/app/immutable/chunks/{CFrKPVp-.js → C4RhwIf-.js} +1 -1
  91. package/web/app/immutable/chunks/{D2QAvk7S.js → C4u6LQEf.js} +1 -1
  92. package/web/app/immutable/chunks/{DM1ZHS3Y.js → C5_6YJsU.js} +1 -1
  93. package/web/app/immutable/chunks/{Deg5jWhG.js → C74GZ40P.js} +1 -1
  94. package/web/app/immutable/chunks/{D1h8l9Ve.js → C7AhvdhC.js} +1 -1
  95. package/web/app/immutable/chunks/{BKJB_6oY.js → C7v_m4nu.js} +4 -4
  96. package/web/app/immutable/chunks/{CTX2aXUF.js → C8fjy-FP.js} +1 -1
  97. package/web/app/immutable/chunks/{dUOQ5AaY.js → C8iHXc33.js} +1 -1
  98. package/web/app/immutable/chunks/{B-8kHUzd.js → C9Fu7eOC.js} +1 -1
  99. package/web/app/immutable/chunks/{BMMcARVk.js → C9I4tasT.js} +1 -1
  100. package/web/app/immutable/chunks/{BW4xwD_u.js → CBp0U57i.js} +1 -1
  101. package/web/app/immutable/chunks/{Dd-BRJYG.js → CDeRPDfg.js} +1 -1
  102. package/web/app/immutable/chunks/{CEoXgs7Q.js → CEB_6XsH.js} +1 -1
  103. package/web/app/immutable/chunks/{CS74N62e.js → CH-kj_g1.js} +1 -1
  104. package/web/app/immutable/chunks/{B-P4veSb.js → CH1mzr4Y.js} +1 -1
  105. package/web/app/immutable/chunks/{B6o2T7JU.js → CHzb4PSN.js} +1 -1
  106. package/web/app/immutable/chunks/{BlQxdvN2.js → CI2w5V5f.js} +1 -1
  107. package/web/app/immutable/chunks/{UWOPR8uY.js → CJ-bHdsA.js} +2 -2
  108. package/web/app/immutable/chunks/{BZmsmL8P.js → CK7B4YgF.js} +1 -1
  109. package/web/app/immutable/chunks/{B6MVuluU.js → CMxkSXKy.js} +1 -1
  110. package/web/app/immutable/chunks/{CJzNuuJO.js → CTC_IBI6.js} +1 -1
  111. package/web/app/immutable/chunks/{DQ13AkOA.js → CU7uaRH8.js} +1 -1
  112. package/web/app/immutable/chunks/{CLSvSGMY.js → CUbl5iZL.js} +1 -1
  113. package/web/app/immutable/chunks/{D56XXK4f.js → CVRU8SPX.js} +1 -1
  114. package/web/app/immutable/chunks/{B-2_r0A5.js → CVUE3R4M.js} +1 -1
  115. package/web/app/immutable/chunks/{DTsLO4aV.js → C_Q7MGH6.js} +1 -1
  116. package/web/app/immutable/chunks/{DQHfY0wY.js → C_jLGOhH.js} +1 -1
  117. package/web/app/immutable/chunks/{dRknRrDn.js → CaC6IVGK.js} +1 -1
  118. package/web/app/immutable/chunks/{DMKbkua9.js → Ce4gTFkK.js} +1 -1
  119. package/web/app/immutable/chunks/{ChLTaT6L.js → CeJ1IeC2.js} +1 -1
  120. package/web/app/immutable/chunks/{tVfn9CHP.js → CerYTaaK.js} +1 -1
  121. package/web/app/immutable/chunks/{daoeIyG_.js → CfwdqJQZ.js} +1 -1
  122. package/web/app/immutable/chunks/{DnouAZbM.js → Ch1H5x_J.js} +1 -1
  123. package/web/app/immutable/chunks/{DV6UkZ5a.js → Chd5ygT7.js} +1 -1
  124. package/web/app/immutable/chunks/{B9pexpLt.js → Cj4zs9c7.js} +1 -1
  125. package/web/app/immutable/chunks/{HpMdkrj7.js → ClUXFe3K.js} +1 -1
  126. package/web/app/immutable/chunks/{BGkYz2ud.js → ClcxSKls.js} +1 -1
  127. package/web/app/immutable/chunks/{DrxYPSVr.js → Cn8aeQJj.js} +1 -1
  128. package/web/app/immutable/chunks/{j-Hd81da.js → CnnMkIrL.js} +1 -1
  129. package/web/app/immutable/chunks/{DW_tfZdS.js → CpIRKvcy.js} +3 -3
  130. package/web/app/immutable/chunks/{JchQH-Q8.js → Cpp_fX-J.js} +1 -1
  131. package/web/app/immutable/chunks/{IIdGbw6g.js → Cq2f0FWN.js} +1 -1
  132. package/web/app/immutable/chunks/{hYDzZ9as.js → CqJpu93-.js} +1 -1
  133. package/web/app/immutable/chunks/{BLyNH-U9.js → CqR1Tb6M.js} +1 -1
  134. package/web/app/immutable/chunks/{B-7spAu4.js → CsEnNURD.js} +1 -1
  135. package/web/app/immutable/chunks/{Q95-G3Tv.js → Csc1-9uJ.js} +1 -1
  136. package/web/app/immutable/chunks/{CVr9pwFM.js → Cscrr3Bj.js} +1 -1
  137. package/web/app/immutable/chunks/{D38Ru3z6.js → Csm7pADB.js} +1 -1
  138. package/web/app/immutable/chunks/{gIgvBwPt.js → CtZ1ayFi.js} +1 -1
  139. package/web/app/immutable/chunks/{82qiqofo.js → Ctd97c_e.js} +1 -1
  140. package/web/app/immutable/chunks/{6Rt8MvWn.js → Cvz2UPkQ.js} +1 -1
  141. package/web/app/immutable/chunks/{CZikPtVV.js → Cy5dtLUp.js} +1 -1
  142. package/web/app/immutable/chunks/{DJZIU3cR.js → Cy_Sd6l-.js} +1 -1
  143. package/web/app/immutable/chunks/{CXnUJFR2.js → CzJ1Hiue.js} +1 -1
  144. package/web/app/immutable/chunks/{Dvap-Bcg.js → CzPegY-l.js} +2 -2
  145. package/web/app/immutable/chunks/{Br9IA-Ja.js → Czwx3NuT.js} +1 -1
  146. package/web/app/immutable/chunks/{1r2-2NoO.js → D-G3HkWg.js} +1 -1
  147. package/web/app/immutable/chunks/{AJN9mSFe.js → D0UbOYAT.js} +1 -1
  148. package/web/app/immutable/chunks/{_pUPWAkF.js → D2F-bT-3.js} +1 -1
  149. package/web/app/immutable/chunks/{C5DgMO0u.js → D3KzRi1O.js} +3 -3
  150. package/web/app/immutable/chunks/{yJa3kvR1.js → D3wKW8Yy.js} +1 -1
  151. package/web/app/immutable/chunks/{BcI-R0js.js → D5FE11xl.js} +1 -1
  152. package/web/app/immutable/chunks/{Co0AVCAv.js → D5eIiHgJ.js} +1 -1
  153. package/web/app/immutable/chunks/D5sm9-9m.js +1 -0
  154. package/web/app/immutable/chunks/{i8qNDIdz.js → DA9qzIbq.js} +1 -1
  155. package/web/app/immutable/chunks/{DLueLf8l.js → DBctQLOE.js} +1 -1
  156. package/web/app/immutable/chunks/{E-3i0Fur.js → DD-yOgIr.js} +3 -3
  157. package/web/app/immutable/chunks/{DmYZE-MO.js → DGcEmYiM.js} +3 -3
  158. package/web/app/immutable/chunks/{CoJeJSLc.js → DIAJO_LS.js} +1 -1
  159. package/web/app/immutable/chunks/{BhfbTmVQ.js → DJSQX3k0.js} +1 -1
  160. package/web/app/immutable/chunks/DJyvWKRG.js +324 -0
  161. package/web/app/immutable/chunks/{BkDFndY7.js → DLPrhDSX.js} +1 -1
  162. package/web/app/immutable/chunks/{B9xm9DK7.js → DMMQmvHP.js} +1 -1
  163. package/web/app/immutable/chunks/{Cso7NntT.js → DO2w7Gng.js} +1 -1
  164. package/web/app/immutable/chunks/{C3vS1byi.js → DQuBNfnJ.js} +1 -1
  165. package/web/app/immutable/chunks/{Cpn3qWfd.js → DRL0ipNV.js} +1 -1
  166. package/web/app/immutable/chunks/{BPhG_Xtj.js → DTDbbaAA.js} +2 -2
  167. package/web/app/immutable/chunks/{BL1pyapR.js → DTF_sUmd.js} +1 -1
  168. package/web/app/immutable/chunks/{CnodaVJ0.js → DTww5KdO.js} +2 -2
  169. package/web/app/immutable/chunks/{9CybJbHN.js → DUo2AvdE.js} +1 -1
  170. package/web/app/immutable/chunks/{D90jQ3ZZ.js → DVexJC2P.js} +1 -1
  171. package/web/app/immutable/chunks/{C4C2GjZ7.js → DYFYZyyQ.js} +1 -1
  172. package/web/app/immutable/chunks/{CqSXeJtk.js → DYpVqbU_.js} +1 -1
  173. package/web/app/immutable/chunks/{AStlTL_B.js → D_Jfn1sb.js} +1 -1
  174. package/web/app/immutable/chunks/{DhZDbKoP.js → Da50wjjU.js} +1 -1
  175. package/web/app/immutable/chunks/{CjGoJ5M9.js → Danz4ZHe.js} +2 -2
  176. package/web/app/immutable/chunks/{DNOlba2e.js → DeIPtFY7.js} +1 -1
  177. package/web/app/immutable/chunks/{BbGlxyDx.js → DghTaRWn.js} +1 -1
  178. package/web/app/immutable/chunks/{DZhHioOL.js → DhpN74ze.js} +1 -1
  179. package/web/app/immutable/chunks/{6vbvyEDW.js → DicP-4Ux.js} +1 -1
  180. package/web/app/immutable/chunks/DjccPgw3.js +1 -0
  181. package/web/app/immutable/chunks/{ClgzRlxs.js → DlpZXKDW.js} +1 -1
  182. package/web/app/immutable/chunks/{CrskbTlC.js → DoZKSrzO.js} +1 -1
  183. package/web/app/immutable/chunks/DrBgcA42.js +271 -0
  184. package/web/app/immutable/chunks/{CTKJUmq_.js → DrZ_vbcS.js} +1 -1
  185. package/web/app/immutable/chunks/Ds-VHujS.js +1 -0
  186. package/web/app/immutable/chunks/Ds24foTJ.js +1 -0
  187. package/web/app/immutable/chunks/{Uxor6krE.js → DtmpL-rV.js} +2 -2
  188. package/web/app/immutable/chunks/{etKulcEH.js → DwqmbD5O.js} +1 -1
  189. package/web/app/immutable/chunks/{h8IoI-w7.js → DzNB7FSW.js} +1 -1
  190. package/web/app/immutable/chunks/{DXYkWPe_.js → DzR_YoBw.js} +1 -1
  191. package/web/app/immutable/chunks/E2zwcBGL.js +1 -0
  192. package/web/app/immutable/chunks/{DBOoSzzw.js → EeKDICqL.js} +1 -1
  193. package/web/app/immutable/chunks/{DCdW5wmG.js → FFV3FwPO.js} +1 -1
  194. package/web/app/immutable/chunks/{BwdewdLu.js → HRWMjwjy.js} +1 -1
  195. package/web/app/immutable/chunks/{DyHgOFFg.js → HXa_-lAP.js} +1 -1
  196. package/web/app/immutable/chunks/{H0ZjbDhN.js → HpeAdZWP.js} +1 -1
  197. package/web/app/immutable/chunks/{4GsjZWx0.js → IbdXBatB.js} +1 -1
  198. package/web/app/immutable/chunks/{DdHsJ0nA.js → M-RI-1vB.js} +1 -1
  199. package/web/app/immutable/chunks/{QihShgnK.js → M2l9pCLN.js} +1 -1
  200. package/web/app/immutable/chunks/{DWhtEEhJ.js → McgjWRB8.js} +1 -1
  201. package/web/app/immutable/chunks/{BWdRpmh3.js → S0XLmGl_.js} +1 -1
  202. package/web/app/immutable/chunks/{CiJSzLSf.js → SOLcVUIP.js} +1 -1
  203. package/web/app/immutable/chunks/{CZBUuakO.js → SZtG0tfF.js} +2 -2
  204. package/web/app/immutable/chunks/{D-b9zJlt.js → SwYsdc6L.js} +1 -1
  205. package/web/app/immutable/chunks/{DCPTVyDU.js → TPQ55key.js} +21 -21
  206. package/web/app/immutable/chunks/{BW4yj8m7.js → Tb27NKxS.js} +1 -1
  207. package/web/app/immutable/chunks/{D43c7AFS.js → XFUNRL9U.js} +1 -1
  208. package/web/app/immutable/chunks/{DsRw0NLx.js → Y5wgJgL5.js} +2 -2
  209. package/web/app/immutable/chunks/{BX6Kopvz.js → ZEivDyvD.js} +1 -1
  210. package/web/app/immutable/chunks/{D8NOVJ50.js → _1A-m7jq.js} +1 -1
  211. package/web/app/immutable/chunks/{Dr41JWYu.js → cHqVrdKP.js} +1 -1
  212. package/web/app/immutable/chunks/{BYevJ1Pj.js → d-ok7Yxa.js} +1 -1
  213. package/web/app/immutable/chunks/{DNFEdIdv.js → fMqAYDMd.js} +1 -1
  214. package/web/app/immutable/chunks/{DaCSSt4n.js → fO0LvqUI.js} +1 -1
  215. package/web/app/immutable/chunks/{CV9PEzoB.js → fsEhp3Sj.js} +1 -1
  216. package/web/app/immutable/chunks/{BS1nq856.js → hr4poPaj.js} +1 -1
  217. package/web/app/immutable/chunks/{DIYS_mcw.js → jnCaD4Bx.js} +1 -1
  218. package/web/app/immutable/chunks/{Cti1rV_x.js → kWExXPwX.js} +1 -1
  219. package/web/app/immutable/chunks/{BQupMMp-.js → kzAypc75.js} +1 -1
  220. package/web/app/immutable/chunks/{CLkwa_R_.js → lgBKvbLS.js} +1 -1
  221. package/web/app/immutable/chunks/nSg13blK.js +2 -0
  222. package/web/app/immutable/chunks/{BI7cYdMD.js → oHcSo1N7.js} +3 -3
  223. package/web/app/immutable/chunks/{DE0RJrWM.js → oZs6h9cF.js} +1 -1
  224. package/web/app/immutable/chunks/{D9Da4bYx.js → odoS0oyP.js} +1 -1
  225. package/web/app/immutable/chunks/{DYlSkPA-.js → qj_I7waa.js} +1 -1
  226. package/web/app/immutable/chunks/{CPS8yuKp.js → s2lvYQ3O.js} +1 -1
  227. package/web/app/immutable/chunks/{Pb7J418u.js → udwlX3ME.js} +1 -1
  228. package/web/app/immutable/chunks/{C5-HTPPK.js → voSxo36n.js} +1 -1
  229. package/web/app/immutable/chunks/{Ch8MPJbT.js → yU3kgZB6.js} +1 -1
  230. package/web/app/immutable/entry/{app.rwgCwLre.js → app.CK6wucgi.js} +3 -3
  231. package/web/app/immutable/entry/start.C0Bjrt_E.js +1 -0
  232. package/web/app/immutable/nodes/{0.CAiwn7VU.js → 0.mmgsFnA_.js} +1 -1
  233. package/web/app/immutable/nodes/{1.4C-qOEjD.js → 1.B9qwueU_.js} +1 -1
  234. package/web/app/immutable/nodes/{10.CSnI2pUC.js → 10.BBnulRNq.js} +1 -1
  235. package/web/app/immutable/nodes/{11.DeNilyai.js → 11.CIaPPQvs.js} +1 -1
  236. package/web/app/immutable/nodes/{12.ySK4H8-2.js → 12.CO3XhA4p.js} +1 -1
  237. package/web/app/immutable/nodes/{13._q8cT7vQ.js → 13.x3qcbpU-.js} +3 -3
  238. package/web/app/immutable/nodes/{14.BVMi0m8a.js → 14.Dnzj-FkG.js} +3 -3
  239. package/web/app/immutable/nodes/{15.DZYm8wgy.js → 15.CQMgeYc5.js} +1 -1
  240. package/web/app/immutable/nodes/{16.2kka0tX2.js → 16.uElio-_B.js} +2 -2
  241. package/web/app/immutable/nodes/{2.BOqim1UO.js → 2.CWwIVRNX.js} +4 -4
  242. package/web/app/immutable/nodes/{3.rvoF1b9l.js → 3.jpKSaCNS.js} +1 -1
  243. package/web/app/immutable/nodes/{4.COWGFPUE.js → 4.CWq9I9HW.js} +1 -1
  244. package/web/app/immutable/nodes/{5.ClB4PiMc.js → 5.Didp-xcw.js} +2 -2
  245. package/web/app/immutable/nodes/{6.B09HHXQ8.js → 6.BGSR4qYh.js} +1 -1
  246. package/web/app/immutable/nodes/{7.ivApEpSz.js → 7.CUn8qcxK.js} +1 -1
  247. package/web/app/immutable/nodes/{8.BSIvYD1L.js → 8.LckDhQwk.js} +12 -12
  248. package/web/app/immutable/nodes/{9.C9K9J_Xm.js → 9.DAasT3Wd.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/B3iaLYr6.js +0 -1
  253. package/web/app/immutable/chunks/BLUkoS8T.js +0 -2
  254. package/web/app/immutable/chunks/CA0a6eNp.js +0 -1
  255. package/web/app/immutable/chunks/CPxyG9KJ.js +0 -271
  256. package/web/app/immutable/chunks/DHNO0898.js +0 -175
  257. package/web/app/immutable/chunks/DMkYHym4.js +0 -324
  258. package/web/app/immutable/chunks/DhLTyNrj.js +0 -1
  259. package/web/app/immutable/chunks/DsAKyTjw.js +0 -4
  260. package/web/app/immutable/chunks/DuQiXW7a.js +0 -1
  261. package/web/app/immutable/chunks/FAATYx56.js +0 -1
  262. package/web/app/immutable/chunks/ye8JXfxU.js +0 -1
  263. package/web/app/immutable/entry/start.CHX_XseY.js +0 -1
@@ -1 +1 @@
1
- import{l as e}from"./C5DgMO0u.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
1
+ import{l as e}from"./D3KzRi1O.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
@@ -1,4 +1,4 @@
1
- import{p as e}from"./DEmaG7Ya.js";const t=[{id:"editorial-card",title:"Editorial card states",states:["default","group","inline","outlined","separated","selected","fluid-hover","header","flush-content","interactive","pressed","empty","long-content","compact","zoom-200","inert","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];e({id:"card",source:"src/lib/components/ui/card/card.svelte",publicImport:"$lib/components/ui/card",legacyImports:[],exports:["Action","CARD_CONTENT_INSET_CLASS","CARD_ROW_GUTTER_CLASS","Card","CardAction","CardContent","CardDescription","CardFooter","CardGroup","CardHeader","CardTitle","Content","Description","Footer","Group","Header","Root","Title","cardMetadata"],usage:`<script lang="ts">
1
+ import{p as e}from"./8mzXJxUW.js";const t=[{id:"editorial-card",title:"Editorial card states",states:["default","group","inline","outlined","separated","selected","fluid-hover","header","flush-content","interactive","pressed","empty","long-content","compact","zoom-200","inert","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];e({id:"card",source:"src/lib/components/ui/card/card.svelte",publicImport:"$lib/components/ui/card",legacyImports:[],exports:["Action","CARD_CONTENT_INSET_CLASS","CARD_ROW_GUTTER_CLASS","Card","CardAction","CardContent","CardDescription","CardFooter","CardGroup","CardHeader","CardTitle","Content","Description","Footer","Group","Header","Root","Title","cardMetadata"],usage:`<script lang="ts">
2
2
  import * as Card from '$lib/components/ui/card';
3
3
  <\/script>
4
4
 
@@ -1 +1 @@
1
- import{bo as e}from"./B3iaLYr6.js";import{h6 as d,JA as _,i as m,m4 as p}from"./h8IoI-w7.js";const g="https://e2b.dev/dashboard",h=/^E2B\s*·\s*/u;function y(r,o){const i=o?`${o} · `:null;return(i&&r.name.startsWith(i)?r.name.slice(i.length):r.name.replace(h,"")).trim()||r.name}function v(r){const o=r.split(":")[1];return o?e.cloudMachines_row_template({version:o}):null}function x(r){const o=d(r);return o?e.cloudMachines_size_label({vcpu:String(o.vcpu),memory:String(o.memoryGiB)}):r}function S(r,o,i){const t=r.cloud;if(!t)return 0;const c=t.state==="running"&&o>0?Math.max(0,(i-o)/1e3):0;return Math.floor(t.runningSeconds+c)}function k(r){const o=Math.floor(r/60);if(o<1)return e.cloudMachines_uptime_underMinute();if(o<60)return e.cloudMachines_uptime_minutes({minutes:String(o)});const i=Math.floor(o/60),t=o%60;return t===0?e.cloudMachines_uptime_hours({hours:String(i)}):e.cloudMachines_uptime_hoursMinutes({hours:String(i),minutes:String(t)})}const f=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function C(r){const o=p(r,3600);return o===null?null:e.cloudMachines_size_hourly({amount:f.format(o)})}function E(r,o){const i=new Map;for(const n of r){const s=n.cloud?.workspaceId,a=s?o(s):null,l=s&&a?s:"";let u=i.get(l);u||(u={key:l,name:a??e.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},i.set(l,u)),u.sandboxes.push(n)}const t=n=>+(n.cloud?.state==="paused"),c=n=>Number(n.sandboxes.every(s=>t(s)));for(const n of i.values())n.sandboxes.sort((s,a)=>t(s)-t(a)||(a.cloud?.startedAt??"").localeCompare(s.cloud?.startedAt??"")||s.id.localeCompare(a.id));return[...i.values()].sort((n,s)=>c(n)-c(s)||+(n.key==="")-+(s.key==="")||n.name.localeCompare(s.name,void 0,{sensitivity:"base"})||n.key.localeCompare(s.key))}function L(r){switch(r.code){case"cloud-profile-required":return{title:e.cloudMachines_error_profileRequired_title(),description:e.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:e.cloudMachines_error_quota_title(),description:r.limit==="plan"?e.cloudMachines_error_quotaPlan_description():r.limit==="rate"?e.cloudMachines_error_quotaRate_description():e.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(r.reason){case"not-configured":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:e.cloudMachines_error_keyRejected_title(),description:e.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:e.cloudMachines_error_sandboxLost_title(),description:e.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_bootstrapFailed_description()};default:return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_apiError_description()}}}}function R(r,o,i){const t=r.trim();if(!t)return e.cloudMachines_form_name_required();if(_(t)>m||/[\u0000-\u001f\u007f]/u.test(t))return e.cloudMachines_form_name_invalid();const c=t.toLowerCase();return o.some(n=>n.id!==i&&n.name.trim().toLowerCase()===c)?e.cloudMachines_form_name_taken():null}export{g as E,L as a,x as b,R as c,k as f,E as g,C as h,S as l,y as s,v as t};
1
+ import{bo as e}from"./E2zwcBGL.js";import{h6 as d,JA as _,i as m,m4 as p}from"./DzNB7FSW.js";const g="https://e2b.dev/dashboard",h=/^E2B\s*·\s*/u;function y(r,o){const i=o?`${o} · `:null;return(i&&r.name.startsWith(i)?r.name.slice(i.length):r.name.replace(h,"")).trim()||r.name}function v(r){const o=r.split(":")[1];return o?e.cloudMachines_row_template({version:o}):null}function x(r){const o=d(r);return o?e.cloudMachines_size_label({vcpu:String(o.vcpu),memory:String(o.memoryGiB)}):r}function S(r,o,i){const t=r.cloud;if(!t)return 0;const c=t.state==="running"&&o>0?Math.max(0,(i-o)/1e3):0;return Math.floor(t.runningSeconds+c)}function k(r){const o=Math.floor(r/60);if(o<1)return e.cloudMachines_uptime_underMinute();if(o<60)return e.cloudMachines_uptime_minutes({minutes:String(o)});const i=Math.floor(o/60),t=o%60;return t===0?e.cloudMachines_uptime_hours({hours:String(i)}):e.cloudMachines_uptime_hoursMinutes({hours:String(i),minutes:String(t)})}const f=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function C(r){const o=p(r,3600);return o===null?null:e.cloudMachines_size_hourly({amount:f.format(o)})}function E(r,o){const i=new Map;for(const n of r){const s=n.cloud?.workspaceId,a=s?o(s):null,l=s&&a?s:"";let u=i.get(l);u||(u={key:l,name:a??e.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},i.set(l,u)),u.sandboxes.push(n)}const t=n=>+(n.cloud?.state==="paused"),c=n=>Number(n.sandboxes.every(s=>t(s)));for(const n of i.values())n.sandboxes.sort((s,a)=>t(s)-t(a)||(a.cloud?.startedAt??"").localeCompare(s.cloud?.startedAt??"")||s.id.localeCompare(a.id));return[...i.values()].sort((n,s)=>c(n)-c(s)||+(n.key==="")-+(s.key==="")||n.name.localeCompare(s.name,void 0,{sensitivity:"base"})||n.key.localeCompare(s.key))}function L(r){switch(r.code){case"cloud-profile-required":return{title:e.cloudMachines_error_profileRequired_title(),description:e.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:e.cloudMachines_error_quota_title(),description:r.limit==="plan"?e.cloudMachines_error_quotaPlan_description():r.limit==="rate"?e.cloudMachines_error_quotaRate_description():e.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(r.reason){case"not-configured":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:e.cloudMachines_error_keyRejected_title(),description:e.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:e.cloudMachines_error_sandboxLost_title(),description:e.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_bootstrapFailed_description()};default:return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_apiError_description()}}}}function R(r,o,i){const t=r.trim();if(!t)return e.cloudMachines_form_name_required();if(_(t)>m||/[\u0000-\u001f\u007f]/u.test(t))return e.cloudMachines_form_name_invalid();const c=t.toLowerCase();return o.some(n=>n.id!==i&&n.name.trim().toLowerCase()===c)?e.cloudMachines_form_name_taken():null}export{g as E,L as a,x as b,R as c,k as f,E as g,C as h,S as l,y as s,v as t};
@@ -1 +1 @@
1
- import{b8 as de,aR as ce,by as ue,ao as K,_ as Q,ae as N,c0 as Fe,c5 as Ne,aG as fe,bI as ge,bV as M,br as Ae,bH as T,aD as u,bs as ve,a5 as We,bA as Be,W as A,bn as be,aA as b,aB as X,bo as Me,ay as qe,bS as De,c9 as k,be as He,b$ as Ve,b_ as Xe,bO as Ye}from"./DYhIMPy1.js";import{t as me,bq as m,by as he,br as pe,b as ye,a_ as Z}from"./B3iaLYr6.js";import{c as H,f as W}from"./DEmaG7Ya.js";import{b as $}from"./BaIAhI85.js";import{s as je}from"./hUiIfi2t.js";import{H as ee,E as Ue,c as Ge}from"./6Rt8MvWn.js";import"./BA8g-07b.js";import{bL as Je}from"./CpELl9t1.js";function te(e,t,n=t){var o=new WeakSet;de(e,"input",async s=>{K&&e.type==="checkbox"&&Q();var i=s?e.defaultValue:e.value;if(i=q(e)?D(i):i,n(i),N!==null&&o.add(N),await Fe(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(ce&&e.defaultValue!==e.value||Ne(t)==null&&e.value)&&(n(q(e)?D(e.value):e.value),N!==null&&o.add(N)),ue(()=>{K&&e.type==="checkbox"&&Q();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}q(e)&&s===D(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function D(e){return e===""?null:+e}function Ke(e,t,n=t){de(e,"change",()=>{n(e.files)}),ce&&e.files&&n(e.files),ue(()=>{e.files=t()})}let R=[],z=[],V=!1,B=!1,F=0;function re(e){if(e.pending){e.pending=!1,F-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}let ne=null;function xe(e){e.pending&&(e.pending=!1,F-=1,!(F>0||B)&&(R=[],z=[]))}function Y(){const e=globalThis.requestAnimationFrame;V&&ne===e||(ne=e,V=!0,e(Qe))}function Qe(){V=!1,B=!0;try{for(;R.length>0;){const e=R;R=[];for(const t of e)re(t)}for(;z.length>0;){const e=z;z=[];for(const t of e)re(t)}}finally{B=!1}F>0?Y():(R=[],z=[])}function pt(e){const t={fn:e,pending:!0};return F+=1,R.push(t),B||Y(),()=>xe(t)}function yt(e){const t={fn:e,pending:!0};return F+=1,z.push(t),B||Y(),()=>xe(t)}const _e=Symbol("owned-popup-context"),we=Symbol("owned-popup-close");function xt(e){ge(_e,e)}function Ze(){return fe(_e)}function _t(e){ge(we,e)}function $e(){return fe(we)}function wt(e){const t=Ze(),n=e??$e();return o=>({destroy:t?.register(o,n)})}function se(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function et(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=se(e.x,f.left,f.width),l=se(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function St(e,t={}){const n=t.axis??"y",o=new Map;let s=M(null),i=M(Ae([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&T(s,et(u(f),u(i),n),!0)},p=v=>{const a=getComputedStyle(e),g=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:g(a.paddingLeft)+g(a.paddingRight)+g(a.borderLeftWidth)+g(a.borderRightWidth)),O=Number.parseFloat(a.height)+(_?0:g(a.paddingTop)+g(a.paddingBottom)+g(a.borderTopWidth)+g(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&v.width/w||1),y:y(O>0&&v.height/O||1)}},S=()=>{const v=e.getBoundingClientRect(),{x:a,y:g}=p(v),_=[];for(const[w,O]of o){const y=O.getBoundingClientRect();_[w]={top:(y.top-v.top)/g-e.clientTop+e.scrollTop,left:(y.left-v.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/g}}T(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{T(c,u(c)+1)},E=v=>{const a=e.getBoundingClientRect(),{x:g,y:_}=p(a);T(f,{x:(v.clientX-a.left)/g-e.clientLeft+e.scrollLeft,y:(v.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},L=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,T(f,null),T(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",E),e.addEventListener("pointerleave",L),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(v){T(s,v,!0)},registerItem(v,a){const g=o.get(v);g&&I?.unobserve?.(g),a?(o.set(v,a),I?.observe(a)):o.delete(v),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",E),e.removeEventListener("pointerleave",L)}}}const It=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var tt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),rt=X("<p><!></p>");function Se(e,t){if(new.target)return me({component:Se,...e});ve(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=pe(t,tt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return o()},set children(d){o(d),b()},get class(){return s()},set class(d){s(d),b()},$set:he,$on:(d,p)=>ye(t,d,p)},c=rt();H(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>W("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=We(c);return je(l,o),Be(c),ee(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),ee(2,c,()=>Ge,()=>({tier:"fast"})),A(e,c),be(f)}const Ie="data-[state=hover]:bg-hover",ae=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ie} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,Pt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${Ie} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,oe="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",nt="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",st="focus-visible:outline-none focus-visible:shadow-none";function ie(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),le=X("<input/>"),it=X("<!> <!>",1);function lt(e,t){const n=Me();if(new.target)return me({component:lt,...e});ve(t,!0);const o=Je();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),E=m(t,"messageId",23,()=>`${n}-message`),L=m(t,"aria-describedby",7),v=m(t,"aria-invalid",7),a=m(t,"class",7),g=m(t,"data-slot",7,"input"),_=pe(t,ot);const w=k(()=>typeof l()=="string"?l():o),O=k(()=>typeof l()=="number"?l():void 0),y=k(()=>C()??I()),P=k(()=>[L(),u(y)?E():void 0].filter(Boolean).join(" ")||void 0),j=k(()=>C()?!0:v());function Ce(){s()?.focus()}function Ee(){s()?.blur()}function Oe(){s()?.select()}function Pe(r,h,x){s()?.setSelectionRange(r,h,x)}var Te={focus:Ce,blur:Ee,select:Oe,setSelectionRange:Pe,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return p()},set variant(r="default"){p(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return I()},set message(r){I(r),b()},get error(){return C()},set error(r){C(r),b()},get messageId(){return E()},set messageId(r=`${n}-message`){E(r),b()},get"aria-describedby"(){return L()},set"aria-describedby"(r){L(r),b()},get"aria-invalid"(){return v()},set"aria-invalid"(r){v(r),b()},get class(){return a()},set class(r){a(r),b()},get"data-slot"(){return g()},set"data-slot"(r="input"){g(r),b()},$set:he,$on:(r,h)=>ye(t,r,h)},U=it(),G=qe(U);{var Le=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),class:x,type:"file",size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),..._}),[()=>W("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",ae,"focus-visible:-outline-offset-2",ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),Ke(h,d),te(h,f),A(r,h)},ke=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?W("selection:bg-primary selection:text-primary-foreground",nt,a()):p()==="search"?W("flex selection:bg-primary selection:text-primary-foreground",at,a()):W("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",ae,st,ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),te(h,f),A(r,h)};Z(G,r=>{c()==="file"?r(Le):r(ke,-1)})}var Re=De(G,2);{var ze=r=>{{let h=k(()=>C()?"error":"helper");Se(r,{get id(){return E()},get tone(){return u(h)},children:(x,dt)=>{He();var J=Ve();Xe(()=>Ye(J,u(y))),A(x,J)},$$slots:{default:!0}})}};Z(Re,r=>{u(y)&&r(ze)})}return A(e,U),be(Te)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Ke as d,te as e,wt as f,St as g,$e as h,Ze as i,yt as j,_t as k,xt as l,ae as m,oe as n,Pt as o,It as p,ie as q,nt as r,pt as s,st as t,at as u};
1
+ import{b8 as de,aR as ce,by as ue,ao as K,_ as Q,ae as N,c0 as Fe,c5 as Ne,aG as fe,bI as ge,bV as M,br as Ae,bH as T,aD as u,bs as ve,a5 as We,bA as Be,W as A,bn as be,aA as b,aB as X,bo as Me,ay as qe,bS as De,c9 as k,be as He,b$ as Ve,b_ as Xe,bO as Ye}from"./DYhIMPy1.js";import{t as me,bq as m,by as he,br as pe,b as ye,a_ as Z}from"./E2zwcBGL.js";import{c as H,f as W}from"./8mzXJxUW.js";import{b as $}from"./BaIAhI85.js";import{s as je}from"./BTNnUZgK.js";import{H as ee,E as Ue,c as Ge}from"./Cvz2UPkQ.js";import"./6TqymR4w.js";import{bL as Je}from"./AXIAXE42.js";function te(e,t,n=t){var o=new WeakSet;de(e,"input",async s=>{K&&e.type==="checkbox"&&Q();var i=s?e.defaultValue:e.value;if(i=q(e)?D(i):i,n(i),N!==null&&o.add(N),await Fe(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(ce&&e.defaultValue!==e.value||Ne(t)==null&&e.value)&&(n(q(e)?D(e.value):e.value),N!==null&&o.add(N)),ue(()=>{K&&e.type==="checkbox"&&Q();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}q(e)&&s===D(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function D(e){return e===""?null:+e}function Ke(e,t,n=t){de(e,"change",()=>{n(e.files)}),ce&&e.files&&n(e.files),ue(()=>{e.files=t()})}let R=[],z=[],V=!1,B=!1,F=0;function re(e){if(e.pending){e.pending=!1,F-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}let ne=null;function xe(e){e.pending&&(e.pending=!1,F-=1,!(F>0||B)&&(R=[],z=[]))}function Y(){const e=globalThis.requestAnimationFrame;V&&ne===e||(ne=e,V=!0,e(Qe))}function Qe(){V=!1,B=!0;try{for(;R.length>0;){const e=R;R=[];for(const t of e)re(t)}for(;z.length>0;){const e=z;z=[];for(const t of e)re(t)}}finally{B=!1}F>0?Y():(R=[],z=[])}function pt(e){const t={fn:e,pending:!0};return F+=1,R.push(t),B||Y(),()=>xe(t)}function yt(e){const t={fn:e,pending:!0};return F+=1,z.push(t),B||Y(),()=>xe(t)}const _e=Symbol("owned-popup-context"),we=Symbol("owned-popup-close");function xt(e){ge(_e,e)}function Ze(){return fe(_e)}function _t(e){ge(we,e)}function $e(){return fe(we)}function wt(e){const t=Ze(),n=e??$e();return o=>({destroy:t?.register(o,n)})}function se(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function et(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=se(e.x,f.left,f.width),l=se(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function St(e,t={}){const n=t.axis??"y",o=new Map;let s=M(null),i=M(Ae([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&T(s,et(u(f),u(i),n),!0)},p=v=>{const a=getComputedStyle(e),g=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:g(a.paddingLeft)+g(a.paddingRight)+g(a.borderLeftWidth)+g(a.borderRightWidth)),O=Number.parseFloat(a.height)+(_?0:g(a.paddingTop)+g(a.paddingBottom)+g(a.borderTopWidth)+g(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&v.width/w||1),y:y(O>0&&v.height/O||1)}},S=()=>{const v=e.getBoundingClientRect(),{x:a,y:g}=p(v),_=[];for(const[w,O]of o){const y=O.getBoundingClientRect();_[w]={top:(y.top-v.top)/g-e.clientTop+e.scrollTop,left:(y.left-v.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/g}}T(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{T(c,u(c)+1)},E=v=>{const a=e.getBoundingClientRect(),{x:g,y:_}=p(a);T(f,{x:(v.clientX-a.left)/g-e.clientLeft+e.scrollLeft,y:(v.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},L=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,T(f,null),T(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",E),e.addEventListener("pointerleave",L),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(v){T(s,v,!0)},registerItem(v,a){const g=o.get(v);g&&I?.unobserve?.(g),a?(o.set(v,a),I?.observe(a)):o.delete(v),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",E),e.removeEventListener("pointerleave",L)}}}const It=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var tt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),rt=X("<p><!></p>");function Se(e,t){if(new.target)return me({component:Se,...e});ve(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=pe(t,tt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return o()},set children(d){o(d),b()},get class(){return s()},set class(d){s(d),b()},$set:he,$on:(d,p)=>ye(t,d,p)},c=rt();H(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>W("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=We(c);return je(l,o),Be(c),ee(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),ee(2,c,()=>Ge,()=>({tier:"fast"})),A(e,c),be(f)}const Ie="data-[state=hover]:bg-hover",ae=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ie} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,Pt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${Ie} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,oe="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",nt="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",st="focus-visible:outline-none focus-visible:shadow-none";function ie(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),le=X("<input/>"),it=X("<!> <!>",1);function lt(e,t){const n=Me();if(new.target)return me({component:lt,...e});ve(t,!0);const o=Je();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),E=m(t,"messageId",23,()=>`${n}-message`),L=m(t,"aria-describedby",7),v=m(t,"aria-invalid",7),a=m(t,"class",7),g=m(t,"data-slot",7,"input"),_=pe(t,ot);const w=k(()=>typeof l()=="string"?l():o),O=k(()=>typeof l()=="number"?l():void 0),y=k(()=>C()??I()),P=k(()=>[L(),u(y)?E():void 0].filter(Boolean).join(" ")||void 0),j=k(()=>C()?!0:v());function Ce(){s()?.focus()}function Ee(){s()?.blur()}function Oe(){s()?.select()}function Pe(r,h,x){s()?.setSelectionRange(r,h,x)}var Te={focus:Ce,blur:Ee,select:Oe,setSelectionRange:Pe,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return p()},set variant(r="default"){p(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return I()},set message(r){I(r),b()},get error(){return C()},set error(r){C(r),b()},get messageId(){return E()},set messageId(r=`${n}-message`){E(r),b()},get"aria-describedby"(){return L()},set"aria-describedby"(r){L(r),b()},get"aria-invalid"(){return v()},set"aria-invalid"(r){v(r),b()},get class(){return a()},set class(r){a(r),b()},get"data-slot"(){return g()},set"data-slot"(r="input"){g(r),b()},$set:he,$on:(r,h)=>ye(t,r,h)},U=it(),G=qe(U);{var Le=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),class:x,type:"file",size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),..._}),[()=>W("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",ae,"focus-visible:-outline-offset-2",ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),Ke(h,d),te(h,f),A(r,h)},ke=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?W("selection:bg-primary selection:text-primary-foreground",nt,a()):p()==="search"?W("flex selection:bg-primary selection:text-primary-foreground",at,a()):W("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",ae,st,ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),te(h,f),A(r,h)};Z(G,r=>{c()==="file"?r(Le):r(ke,-1)})}var Re=De(G,2);{var ze=r=>{{let h=k(()=>C()?"error":"helper");Se(r,{get id(){return E()},get tone(){return u(h)},children:(x,dt)=>{He();var J=Ve();Xe(()=>Ye(J,u(y))),A(x,J)},$$slots:{default:!0}})}};Z(Re,r=>{u(y)&&r(ze)})}return A(e,U),be(Te)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Ke as d,te as e,wt as f,St as g,$e as h,Ze as i,yt as j,_t as k,xt as l,ae as m,oe as n,Pt as o,It as p,ie as q,nt as r,pt as s,st as t,at as u};
@@ -1,4 +1,4 @@
1
- var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),T=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),C=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Tt,R as Ct,as as Ft,c5 as mt,T as Nt,b1 as kt,bt as ot,bf as R,cc as ht,K as xt,M as St,bV as it,ao as gt,bY as at,by as Ot,bH as B,aD as ct,cd as At,aE as ut,c2 as Et}from"./DYhIMPy1.js";import{j as P}from"./DEmaG7Ya.js";import{f as Mt,k as Rt}from"./hUiIfi2t.js";const Dt=()=>performance.now(),$={tick:t=>requestAnimationFrame(t),now:()=>Dt(),tasks:new Set};function yt(){const t=$.now();$.tasks.forEach(r=>{r.c(t)||($.tasks.delete(r),r.f())}),$.tasks.size!==0&&$.tick(yt)}function K(t){let r;return $.tasks.size===0&&$.tick(yt),{promise:new Promise(e=>{$.tasks.add(r={c:t,f:e})}),abort(){$.tasks.delete(r)}}}function L(t,r){ht(()=>{t.dispatchEvent(new CustomEvent(r))})}function It(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ft(t){const r={},e=t.split(";");for(const n of e){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=It(o.trim());r[i]=s.trim()}return r}const Pt=t=>t;let bt=null;function Xt(t){bt=t}function Zt(t,r,e){var n=bt??lt,o=n.nodes,s,i,a,c=null;o.a??={element:t,measure(){s=this.element.getBoundingClientRect()},apply(){if(a?.abort(),i=this.element.getBoundingClientRect(),s.left!==i.left||s.right!==i.right||s.top!==i.top||s.bottom!==i.bottom){const u=r()(this.element,{from:s,to:i},e?.());a=V(this.element,u,void 0,1,()=>{},()=>{a?.abort(),a=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:l}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=l;var p=t.getBoundingClientRect();if(s.left!==p.left||s.top!==p.top){var g=`translate(${s.left-p.left}px, ${s.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}},o.a.element=t}function tr(t,r,e,n){var o=(t&xt)!==0,s=(t&St)!==0,i=o&&s,a=(t&Nt)!==0,c=i?"both":o?"in":"out",u,f=r.inert,l=r.style.overflow,d,p;function g(){return ht(()=>u??=e()(r,n?.()??{},{direction:c}))}var y={is_global:a,in(){if(r.inert=f,!o){p?.abort(),p?.reset?.();return}s||d?.abort(),d=V(r,g(),p,1,()=>{L(r,"introstart")},()=>{L(r,"introend"),d?.abort(),d=u=void 0,r.style.overflow=l})},out(F){if(!s){F?.(),u=void 0;return}r.inert=!0,p=V(r,g(),d,0,()=>{L(r,"outrostart")},()=>{L(r,"outroend"),F?.()})},stop:()=>{d?.abort(),p?.abort()}},b=lt;if((b.nodes.t??=[]).push(y),o&&_t){var h=a;if(!h){for(var v=b.parent;v&&(v.f&wt)!==0;)for(;(v=v.parent)&&(v.f&Tt)===0;);h=!v||(v.f&Ct)!==0}h&&Ft(()=>{mt(()=>y.in())})}}function V(t,r,e,n,o,s){var i=n===1,a=!1;if(kt(r)){var c;return ot(()=>{if(!a){var y=r({direction:i?"in":"out"});c=V(t,y,e,n,o,s)}}),{abort:()=>{a=!0,c?.abort()},deactivate:()=>c?.deactivate(),reset:()=>c?.reset(),t:()=>c?.t()??1-n}}if(e?.deactivate(),!r?.duration&&!r?.delay)return o(),s(),{abort:R,deactivate:R,reset:R,t:()=>n};const{delay:u=0,css:f,tick:l,easing:d=Pt}=r;var p,g=()=>1-n;return ot(()=>{if(!a){var y=[];if(i&&e===void 0&&(l&&l(0,1),f)){var b=ft(f(0,1));y.push(b,b)}p=t.animate(y,{duration:u,fill:"forwards"}),p.onfinish=()=>{p.cancel(),o();var h=e?.t()??1-n;e?.abort();var v=n-h,F=r.duration*Math.abs(v),X=[];if(F>0){var Z=!1;if(f)for(var tt=Math.ceil(F/16.666666666666668),z=0;z<=tt;z+=1){var rt=h+v*d(z/tt),et=ft(f(rt,1-rt));X.push(et),Z||=et.overflow==="hidden"}Z&&(t.style.overflow="hidden"),g=()=>{var j=p.currentTime;return h+v*d(j/F)},l&&K(()=>{if(p.playState!=="running")return!1;var j=g();return l(j,1-j),!0})}p=t.animate(X,{duration:F,fill:"forwards"}),p.onfinish=()=>{g=()=>n,l?.(n,1-n),s()}}}}),{abort:()=>{a=!0,p&&(p.cancel(),p.effect=null,p.onfinish=R)},deactivate:()=>{s=R},reset:()=>{n===0&&l?.(1,0)},t:()=>g()}}function Y(t){return t}function O(t){const r=t-1;return r*r*r+1}function rr(t){return--t*t*t*t*t+1}function pt(t){return Object.prototype.toString.call(t)==="[object Date]"}function W(t,r){if(t===r||t!==t)return()=>t;const e=typeof t;if(e!==typeof r||Array.isArray(t)!==Array.isArray(r))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=r.map((o,s)=>W(t[s],o));return o=>n.map(s=>s(o))}if(e==="object"){if(!t||!r)throw new Error("Object cannot be null");if(pt(t)&&pt(r)){const s=t.getTime(),a=r.getTime()-s;return c=>new Date(s+c*a)}const n=Object.keys(r),o={};return n.forEach(s=>{o[s]=W(t[s],r[s])}),s=>{const i={};return n.forEach(a=>{i[a]=o[a](s)}),i}}if(e==="number"){const n=r-t;return o=>t+o*n}return()=>r}function jt(t,r={}){const e=At(t);let n,o=t;function s(i,a){if(o=i,t==null)return e.set(t=i),Promise.resolve();let c=n,u=!1,{delay:f=0,duration:l=400,easing:d=Y,interpolate:p=W}={...r,...a};if(l===0)return c&&(c.abort(),c=null),e.set(t=o),Promise.resolve();const g=$.now()+f;let y;return n=K(b=>{if(b<g)return!0;u||(y=p(t,i),typeof l=="function"&&(l=l(t,i)),u=!0),c&&(c.abort(),c=null);const h=b-g;return h>l?(e.set(t=i),!1):(e.set(t=y(d(h/l))),!0)}),n.promise}return{set:s,update:(i,a)=>s(i(o,t),a),subscribe:e.subscribe}}var _,x,I,S;const Q=class Q{constructor(r,e={}){T(this,_);T(this,x);T(this,I);T(this,S,null);C(this,_,it(r)),C(this,x,it(r)),C(this,I,e),gt&&(at(m(this,_),"Tween.current"),at(m(this,x),"Tween.target"))}static of(r,e){const n=new Q(r(),e);return Ot(()=>{n.set(r())}),n}set(r,e){B(m(this,x),r);let{delay:n=0,duration:o=400,easing:s=Y,interpolate:i=W}={...m(this,I),...e};if(o===0)return m(this,S)?.abort(),B(m(this,_),r),Promise.resolve();const a=$.now()+n;let c,u=!1,f=m(this,S);return C(this,S,K(l=>{if(l<a)return!0;if(!u){u=!0;const p=m(this,_).v;c=i(p,r),typeof o=="function"&&(o=o(p,r)),f?.abort(),f=null}const d=l-a;return d>o?(B(m(this,_),r),!1):(B(m(this,_),c(s(d/o))),!0)})),m(this,S).promise}get current(){return ct(m(this,_))}get target(){return ct(m(this,x))}set target(r){this.set(r)}};_=new WeakMap,x=new WeakMap,I=new WeakMap,S=new WeakMap;let G=Q;const k={fast:{settleMs:80,easing:O,exit:{duration:60,easing:O}},moderate:{settleMs:160,easing:O,exit:{duration:120,easing:O}},slow:{settleMs:240,easing:O,exit:{duration:160,easing:O}}};var w,A,E;class er{constructor(r,e="moderate"){T(this,w);T(this,A);T(this,E,Promise.resolve());C(this,A,k[e]),C(this,w,new G(r))}get current(){return m(this,w).current}get target(){return m(this,w).target}set target(r){this.set(r)}set(r,e){return mt(()=>{const n=e?.instant||P();return!n&&Object.is(r,m(this,w).target)?m(this,E):(m(this,w).set(m(this,w).current,{duration:0}),C(this,E,m(this,w).set(r,{duration:n?0:m(this,A).settleMs,easing:m(this,A).easing})),m(this,E))})}}w=new WeakMap,A=new WeakMap,E=new WeakMap;function Bt(t,r="moderate"){const e=jt(t);let n=t,o=Promise.resolve();const s=(i,a)=>{const c=a?.hard||P();return!c&&Object.is(i,n)||(n=i,e.set(ut(e),{duration:0}),o=e.set(i,{duration:c?0:k[r].settleMs,easing:k[r].easing})),o};return{subscribe:e.subscribe,set:s,update:(i,a)=>s(i(n,ut(e)),a)}}function nr(t,r="moderate"){const e=Bt(t,r);return{subscribe:e.subscribe,set:n=>e.set(n),update:n=>e.update(n)}}function sr(t){return t.exit.duration+100}const Lt=t=>t;function J(t){const r=t-1;return r*r*r+1}function vt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function H(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}function N(t,r,e){return Number.isNaN(r)?"":`${t}: ${e*r}px;`}function Vt(t,{delay:r=0,duration:e=400,easing:n=vt,amount:o=5,opacity:s=0}={}){const i=getComputedStyle(t),a=+i.opacity,c=i.filter==="none"?"":i.filter,u=a*(1-s),[f,l]=H(o);return{delay:r,duration:e,easing:n,css:(d,p)=>`opacity: ${a-u*p}; filter: ${c} blur(${p*f}${l});`}}function $t(t,{delay:r=0,duration:e=400,easing:n=Lt}={}){const o=+getComputedStyle(t).opacity;return{delay:r,duration:e,easing:n,css:s=>`opacity: ${s*o}`}}function Wt(t,{delay:r=0,duration:e=400,easing:n=J,x:o=0,y:s=0,opacity:i=0}={}){const a=getComputedStyle(t),c=+a.opacity,u=a.transform==="none"?"":a.transform,f=c*(1-i),[l,d]=H(o),[p,g]=H(s);return{delay:r,duration:e,easing:n,css:(y,b)=>`
1
+ var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),T=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),C=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Tt,R as Ct,as as Ft,c5 as mt,T as Nt,b1 as kt,bt as ot,bf as R,cc as ht,K as xt,M as St,bV as it,ao as gt,bY as at,by as Ot,bH as B,aD as ct,cd as At,aE as ut,c2 as Et}from"./DYhIMPy1.js";import{j as P}from"./8mzXJxUW.js";import{f as Mt,k as Rt}from"./BTNnUZgK.js";const Dt=()=>performance.now(),$={tick:t=>requestAnimationFrame(t),now:()=>Dt(),tasks:new Set};function yt(){const t=$.now();$.tasks.forEach(r=>{r.c(t)||($.tasks.delete(r),r.f())}),$.tasks.size!==0&&$.tick(yt)}function K(t){let r;return $.tasks.size===0&&$.tick(yt),{promise:new Promise(e=>{$.tasks.add(r={c:t,f:e})}),abort(){$.tasks.delete(r)}}}function L(t,r){ht(()=>{t.dispatchEvent(new CustomEvent(r))})}function It(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ft(t){const r={},e=t.split(";");for(const n of e){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=It(o.trim());r[i]=s.trim()}return r}const Pt=t=>t;let bt=null;function Xt(t){bt=t}function Zt(t,r,e){var n=bt??lt,o=n.nodes,s,i,a,c=null;o.a??={element:t,measure(){s=this.element.getBoundingClientRect()},apply(){if(a?.abort(),i=this.element.getBoundingClientRect(),s.left!==i.left||s.right!==i.right||s.top!==i.top||s.bottom!==i.bottom){const u=r()(this.element,{from:s,to:i},e?.());a=V(this.element,u,void 0,1,()=>{},()=>{a?.abort(),a=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:l}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=l;var p=t.getBoundingClientRect();if(s.left!==p.left||s.top!==p.top){var g=`translate(${s.left-p.left}px, ${s.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}},o.a.element=t}function tr(t,r,e,n){var o=(t&xt)!==0,s=(t&St)!==0,i=o&&s,a=(t&Nt)!==0,c=i?"both":o?"in":"out",u,f=r.inert,l=r.style.overflow,d,p;function g(){return ht(()=>u??=e()(r,n?.()??{},{direction:c}))}var y={is_global:a,in(){if(r.inert=f,!o){p?.abort(),p?.reset?.();return}s||d?.abort(),d=V(r,g(),p,1,()=>{L(r,"introstart")},()=>{L(r,"introend"),d?.abort(),d=u=void 0,r.style.overflow=l})},out(F){if(!s){F?.(),u=void 0;return}r.inert=!0,p=V(r,g(),d,0,()=>{L(r,"outrostart")},()=>{L(r,"outroend"),F?.()})},stop:()=>{d?.abort(),p?.abort()}},b=lt;if((b.nodes.t??=[]).push(y),o&&_t){var h=a;if(!h){for(var v=b.parent;v&&(v.f&wt)!==0;)for(;(v=v.parent)&&(v.f&Tt)===0;);h=!v||(v.f&Ct)!==0}h&&Ft(()=>{mt(()=>y.in())})}}function V(t,r,e,n,o,s){var i=n===1,a=!1;if(kt(r)){var c;return ot(()=>{if(!a){var y=r({direction:i?"in":"out"});c=V(t,y,e,n,o,s)}}),{abort:()=>{a=!0,c?.abort()},deactivate:()=>c?.deactivate(),reset:()=>c?.reset(),t:()=>c?.t()??1-n}}if(e?.deactivate(),!r?.duration&&!r?.delay)return o(),s(),{abort:R,deactivate:R,reset:R,t:()=>n};const{delay:u=0,css:f,tick:l,easing:d=Pt}=r;var p,g=()=>1-n;return ot(()=>{if(!a){var y=[];if(i&&e===void 0&&(l&&l(0,1),f)){var b=ft(f(0,1));y.push(b,b)}p=t.animate(y,{duration:u,fill:"forwards"}),p.onfinish=()=>{p.cancel(),o();var h=e?.t()??1-n;e?.abort();var v=n-h,F=r.duration*Math.abs(v),X=[];if(F>0){var Z=!1;if(f)for(var tt=Math.ceil(F/16.666666666666668),z=0;z<=tt;z+=1){var rt=h+v*d(z/tt),et=ft(f(rt,1-rt));X.push(et),Z||=et.overflow==="hidden"}Z&&(t.style.overflow="hidden"),g=()=>{var j=p.currentTime;return h+v*d(j/F)},l&&K(()=>{if(p.playState!=="running")return!1;var j=g();return l(j,1-j),!0})}p=t.animate(X,{duration:F,fill:"forwards"}),p.onfinish=()=>{g=()=>n,l?.(n,1-n),s()}}}}),{abort:()=>{a=!0,p&&(p.cancel(),p.effect=null,p.onfinish=R)},deactivate:()=>{s=R},reset:()=>{n===0&&l?.(1,0)},t:()=>g()}}function Y(t){return t}function O(t){const r=t-1;return r*r*r+1}function rr(t){return--t*t*t*t*t+1}function pt(t){return Object.prototype.toString.call(t)==="[object Date]"}function W(t,r){if(t===r||t!==t)return()=>t;const e=typeof t;if(e!==typeof r||Array.isArray(t)!==Array.isArray(r))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=r.map((o,s)=>W(t[s],o));return o=>n.map(s=>s(o))}if(e==="object"){if(!t||!r)throw new Error("Object cannot be null");if(pt(t)&&pt(r)){const s=t.getTime(),a=r.getTime()-s;return c=>new Date(s+c*a)}const n=Object.keys(r),o={};return n.forEach(s=>{o[s]=W(t[s],r[s])}),s=>{const i={};return n.forEach(a=>{i[a]=o[a](s)}),i}}if(e==="number"){const n=r-t;return o=>t+o*n}return()=>r}function jt(t,r={}){const e=At(t);let n,o=t;function s(i,a){if(o=i,t==null)return e.set(t=i),Promise.resolve();let c=n,u=!1,{delay:f=0,duration:l=400,easing:d=Y,interpolate:p=W}={...r,...a};if(l===0)return c&&(c.abort(),c=null),e.set(t=o),Promise.resolve();const g=$.now()+f;let y;return n=K(b=>{if(b<g)return!0;u||(y=p(t,i),typeof l=="function"&&(l=l(t,i)),u=!0),c&&(c.abort(),c=null);const h=b-g;return h>l?(e.set(t=i),!1):(e.set(t=y(d(h/l))),!0)}),n.promise}return{set:s,update:(i,a)=>s(i(o,t),a),subscribe:e.subscribe}}var _,x,I,S;const Q=class Q{constructor(r,e={}){T(this,_);T(this,x);T(this,I);T(this,S,null);C(this,_,it(r)),C(this,x,it(r)),C(this,I,e),gt&&(at(m(this,_),"Tween.current"),at(m(this,x),"Tween.target"))}static of(r,e){const n=new Q(r(),e);return Ot(()=>{n.set(r())}),n}set(r,e){B(m(this,x),r);let{delay:n=0,duration:o=400,easing:s=Y,interpolate:i=W}={...m(this,I),...e};if(o===0)return m(this,S)?.abort(),B(m(this,_),r),Promise.resolve();const a=$.now()+n;let c,u=!1,f=m(this,S);return C(this,S,K(l=>{if(l<a)return!0;if(!u){u=!0;const p=m(this,_).v;c=i(p,r),typeof o=="function"&&(o=o(p,r)),f?.abort(),f=null}const d=l-a;return d>o?(B(m(this,_),r),!1):(B(m(this,_),c(s(d/o))),!0)})),m(this,S).promise}get current(){return ct(m(this,_))}get target(){return ct(m(this,x))}set target(r){this.set(r)}};_=new WeakMap,x=new WeakMap,I=new WeakMap,S=new WeakMap;let G=Q;const k={fast:{settleMs:80,easing:O,exit:{duration:60,easing:O}},moderate:{settleMs:160,easing:O,exit:{duration:120,easing:O}},slow:{settleMs:240,easing:O,exit:{duration:160,easing:O}}};var w,A,E;class er{constructor(r,e="moderate"){T(this,w);T(this,A);T(this,E,Promise.resolve());C(this,A,k[e]),C(this,w,new G(r))}get current(){return m(this,w).current}get target(){return m(this,w).target}set target(r){this.set(r)}set(r,e){return mt(()=>{const n=e?.instant||P();return!n&&Object.is(r,m(this,w).target)?m(this,E):(m(this,w).set(m(this,w).current,{duration:0}),C(this,E,m(this,w).set(r,{duration:n?0:m(this,A).settleMs,easing:m(this,A).easing})),m(this,E))})}}w=new WeakMap,A=new WeakMap,E=new WeakMap;function Bt(t,r="moderate"){const e=jt(t);let n=t,o=Promise.resolve();const s=(i,a)=>{const c=a?.hard||P();return!c&&Object.is(i,n)||(n=i,e.set(ut(e),{duration:0}),o=e.set(i,{duration:c?0:k[r].settleMs,easing:k[r].easing})),o};return{subscribe:e.subscribe,set:s,update:(i,a)=>s(i(n,ut(e)),a)}}function nr(t,r="moderate"){const e=Bt(t,r);return{subscribe:e.subscribe,set:n=>e.set(n),update:n=>e.update(n)}}function sr(t){return t.exit.duration+100}const Lt=t=>t;function J(t){const r=t-1;return r*r*r+1}function vt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function H(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}function N(t,r,e){return Number.isNaN(r)?"":`${t}: ${e*r}px;`}function Vt(t,{delay:r=0,duration:e=400,easing:n=vt,amount:o=5,opacity:s=0}={}){const i=getComputedStyle(t),a=+i.opacity,c=i.filter==="none"?"":i.filter,u=a*(1-s),[f,l]=H(o);return{delay:r,duration:e,easing:n,css:(d,p)=>`opacity: ${a-u*p}; filter: ${c} blur(${p*f}${l});`}}function $t(t,{delay:r=0,duration:e=400,easing:n=Lt}={}){const o=+getComputedStyle(t).opacity;return{delay:r,duration:e,easing:n,css:s=>`opacity: ${s*o}`}}function Wt(t,{delay:r=0,duration:e=400,easing:n=J,x:o=0,y:s=0,opacity:i=0}={}){const a=getComputedStyle(t),c=+a.opacity,u=a.transform==="none"?"":a.transform,f=c*(1-i),[l,d]=H(o),[p,g]=H(s);return{delay:r,duration:e,easing:n,css:(y,b)=>`
2
2
  transform: ${u} translate(${(1-y)*l}${d}, ${(1-y)*p}${g});
3
3
  opacity: ${c-f*b}`}}var U=!1;function qt(t,{delay:r=0,duration:e=400,easing:n=J,axis:o="y"}={}){const s=getComputedStyle(t);gt&&!U&&/(contents|inline|table)/.test(s.display)&&(U=!0,Promise.resolve().then(()=>U=!1),Et(s.display));const i=+s.opacity,a=o==="y"?"height":"width",c=parseFloat(s[a]),u=o==="y"?["top","bottom"]:["left","right"],f=u.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),l=parseFloat(s[`padding${f[0]}`]),d=parseFloat(s[`padding${f[1]}`]),p=parseFloat(s[`margin${f[0]}`]),g=parseFloat(s[`margin${f[1]}`]),y=parseFloat(s[`border${f[0]}Width`]),b=parseFloat(s[`border${f[1]}Width`]);return{delay:r,duration:e,easing:n,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*i};`+N(a,c,h)+N(`padding-${u[0]}`,l,h)+N(`padding-${u[1]}`,d,h)+N(`margin-${u[0]}`,p,h)+N(`margin-${u[1]}`,g,h)+N(`border-${u[0]}-width`,y,h)+N(`border-${u[1]}-width`,b,h)+`min-${a}: 0`}}function zt(t,{delay:r=0,duration:e=400,easing:n=J,start:o=0,opacity:s=0}={}){const i=getComputedStyle(t),a=+i.opacity,c=i.transform==="none"?"":i.transform,u=1-o,f=a*(1-s);return{delay:r,duration:e,easing:n,css:(l,d)=>`
4
4
  transform: ${c} scale(${1-u*d});
@@ -1 +1 @@
1
- import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./B3iaLYr6.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"./D2QAvk7S.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as we}from"./CUjmBXfD.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./DEmaG7Ya.js";import{Hp as ot}from"./h8IoI-w7.js";import{f as qe}from"./CpELl9t1.js";import{F as He,bb as It,bm as Pt}from"./dUOQ5AaY.js";import{i as Ue}from"./Ch8MPJbT.js";import{dm as zt,ck as Nt}from"./Cti1rV_x.js";import{g as At}from"./DGvAL7MJ.js";import{d as Vt}from"./D0UrvUQM.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./BS1nq856.js";import{g as B,R as Ge,U as Je}from"./C5DgMO0u.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,b=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const w=c.detail;if(!w||typeof w.content!="string")return;const{content:T,isAddition:E,speed:I=30}=w;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),b=null}async function he(c,w){g=new AbortController;const T=g.signal,E=c.split("");b=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=w+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await b}async function pe(c,w){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);b=(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=w*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await b}let re=Ce(()=>b!==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,w)=>Qe(a,c,w)},ee=Mt(),ae=ye(ee);{var q=c=>{var w=Dt(),T=Z(w),E=$(T,2),I=_e(E,!0);K(w),ge(V=>{Ae(w,`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,w)};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,""),b=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),w=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=be(b()),o=we(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:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),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=b();if(t&&e){const n=be(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(we(e))});function be(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=be(b()),m=we(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:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,be(b()));t=B.create(i(d),{model:m,theme:we(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:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),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||w()&&setTimeout(()=>{if(!t||!w())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 b()},set language(e="javascript"){b(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 w()},set isPanelFocused(e=!0){w(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),bt=Z(Fe);{var wt=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(bt,e=>{i(U)?e(wt):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,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./E2zwcBGL.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"./C4u6LQEf.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as we}from"./BErHxpt7.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./8mzXJxUW.js";import{Hp as ot}from"./DzNB7FSW.js";import{f as qe}from"./AXIAXE42.js";import{F as He,bb as It,bm as Pt}from"./C8iHXc33.js";import{i as Ue}from"./yU3kgZB6.js";import{dm as zt,ck as Nt}from"./kWExXPwX.js";import{g as At}from"./BuNSu9iM.js";import{d as Vt}from"./C0GDF9vt.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./hr4poPaj.js";import{g as B,R as Ge,U as Je}from"./D3KzRi1O.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,b=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const w=c.detail;if(!w||typeof w.content!="string")return;const{content:T,isAddition:E,speed:I=30}=w;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),b=null}async function he(c,w){g=new AbortController;const T=g.signal,E=c.split("");b=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=w+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await b}async function pe(c,w){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);b=(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=w*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await b}let re=Ce(()=>b!==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,w)=>Qe(a,c,w)},ee=Mt(),ae=ye(ee);{var q=c=>{var w=Dt(),T=Z(w),E=$(T,2),I=_e(E,!0);K(w),ge(V=>{Ae(w,`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,w)};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,""),b=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),w=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=be(b()),o=we(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:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),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=b();if(t&&e){const n=be(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(we(e))});function be(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=be(b()),m=we(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:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,be(b()));t=B.create(i(d),{model:m,theme:we(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:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),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||w()&&setTimeout(()=>{if(!t||!w())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 b()},set language(e="javascript"){b(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 w()},set isPanelFocused(e=!0){w(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),bt=Z(Fe);{var wt=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(bt,e=>{i(U)?e(wt):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
- import{l as e}from"./C5DgMO0u.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
1
+ import{l as e}from"./D3KzRi1O.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
@@ -1 +1 @@
1
- import{t as bt,bq as B,by as wt,bs as Rt,b as It,bu as g}from"./B3iaLYr6.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as N,bV as E,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Hp as l,er as Ut,es as At,rN as xt,nw as Bt,nx as Ft,HW as Tt,Ia as Wt,H$ as _t,nB as T}from"./h8IoI-w7.js";import{aZ as Dt}from"./DHNO0898.js";import{g as Lt}from"./DfN8_dcw.js";import{dm as Gt,by as Ht,bA as Nt,bx as Et,bC as Mt,cY as Vt,e as zt}from"./Cti1rV_x.js";import{C as qt}from"./BW4xwD_u.js";import{V as Kt}from"./DIYS_mcw.js";import{bN as Yt,bK as Zt,b5 as jt}from"./DCPTVyDU.js";import{i as W,n as M}from"./H2jLkRRS.js";import{ah as Jt}from"./E-3i0Fur.js";function Ot(_,$){if(new.target)return bt({component:Ot,..._});Pt($,!0);const V=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),z=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),K=()=>g(tt,"$foldUnchanged",c),Y=()=>g(X,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),J=()=>g(it,"$ftBoundarySha$",c),[c,O]=Rt(),Q=o=>{Kt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{N(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return K()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Wt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(Tt())})},X=Yt(),tt=Zt(),et=jt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Lt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Jt(p),b=s(()=>V().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Ht(p),nt=Nt(p),it=Et(p),rt=Mt(p),dt=s(()=>z()||[]),lt=Vt(p),f=s(()=>q()[t(n)]??zt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=E(!0),R=E(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&W(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=M(o),e=M(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function L(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const H=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,H)),()=>l.dispatch(Ft(o,H))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:J()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void L([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");L(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>N(R,d,!0),()=>t(R))}var $t=kt(ft);return O(),$t}export{Ot as default};
1
+ import{t as bt,bq as B,by as wt,bs as Rt,b as It,bu as g}from"./E2zwcBGL.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as N,bV as E,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Hp as l,er as Ut,es as At,rN as xt,nw as Bt,nx as Ft,HW as _t,Ia as Tt,H$ as Wt,nB as _}from"./DzNB7FSW.js";import{a_ as Dt}from"./Bd-hefoB.js";import{g as Lt}from"./DfN8_dcw.js";import{dm as Gt,by as Ht,bA as Nt,bx as Et,bC as Mt,cY as Vt,e as zt}from"./kWExXPwX.js";import{C as qt}from"./CBp0U57i.js";import{V as Kt}from"./jnCaD4Bx.js";import{bN as Yt,bK as jt,b5 as Jt}from"./TPQ55key.js";import{i as T,n as M}from"./H2jLkRRS.js";import{ah as Ot}from"./DD-yOgIr.js";function Qt(W,$){if(new.target)return bt({component:Qt,...W});Pt($,!0);const V=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),z=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),K=()=>g(tt,"$foldUnchanged",c),Y=()=>g(Z,"$lineWrapping",c),j=()=>g(et,"$diffSideBySide",c),J=()=>g(rt,"$ftLoading$",c),O=()=>g(it,"$ftBoundarySha$",c),[c,Q]=Rt(),X=o=>{Kt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{N(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return K()},onToggleFold:()=>l.dispatch(Wt()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Tt()),get splitEnabled(){return j()},onToggleSplit:()=>l.dispatch(_t())})},Z=Yt(),tt=jt(),et=Jt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Lt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Ot(p),b=s(()=>V().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Ht(p),nt=Nt(p),it=Et(p),rt=Mt(p),dt=s(()=>z()||[]),lt=Vt(p),f=s(()=>q()[t(n)]??zt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=E(!0),R=E(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&T(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&T(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&T(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=M(o),e=M(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function L(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:X})});const H=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,H)),()=>l.dispatch(Ft(o,H))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):J()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:O()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void L([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");L(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(W,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>N(R,d,!0),()=>t(R))}var $t=kt(ft);return Q(),$t}export{Qt as default};