@intent-hq/web 2.289.0 → 2.290.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{PZzdtHEH.js → -8bl9H3j.js} +1 -1
  3. package/web/app/immutable/chunks/{OJ1L_5qb.js → 1H7i14Jq.js} +1 -1
  4. package/web/app/immutable/chunks/{iaCxlE6C.js → 1NjHIsWL.js} +1 -1
  5. package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
  6. package/web/app/immutable/chunks/{BMtE4svi.js → 2zyiBICC.js} +1 -1
  7. package/web/app/immutable/chunks/{CLqc4Ghh.js → 4cIwmSuD.js} +4 -4
  8. package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
  9. package/web/app/immutable/chunks/{CbsrOoqP.js → 86pQg5ba.js} +1 -1
  10. package/web/app/immutable/chunks/{h6LfsnBK.js → 8DpW-FUQ.js} +1 -1
  11. package/web/app/immutable/chunks/{Dtny-3OT.js → 8ZymRjAb.js} +1 -1
  12. package/web/app/immutable/chunks/{D3NFuU4L.js → B05yODFj.js} +1 -1
  13. package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
  14. package/web/app/immutable/chunks/{CVAEsdqc.js → B1uw4k3u.js} +1 -1
  15. package/web/app/immutable/chunks/{CM-42I4J.js → B4ARXgVr.js} +1 -1
  16. package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
  17. package/web/app/immutable/chunks/{gbA3Idh4.js → B7WsW6mB.js} +6 -6
  18. package/web/app/immutable/chunks/{CVwFZDMQ.js → BA5dsrgI.js} +1 -1
  19. package/web/app/immutable/chunks/{C3XlBsuD.js → BA6v9DYL.js} +1 -1
  20. package/web/app/immutable/chunks/{BFapXlF9.js → BB-rM-bv.js} +1 -1
  21. package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
  22. package/web/app/immutable/chunks/{BraZvQcb.js → BCqLW1sk.js} +1 -1
  23. package/web/app/immutable/chunks/{COYb5Q2j.js → BEOSERRe.js} +1 -1
  24. package/web/app/immutable/chunks/{CRPPupd6.js → BFY95MZy.js} +1 -1
  25. package/web/app/immutable/chunks/{BNAxChIn.js → BFxAoZrN.js} +3 -3
  26. package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
  27. package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
  28. package/web/app/immutable/chunks/{3oF_cfgL.js → BJiYgQMg.js} +1 -1
  29. package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
  30. package/web/app/immutable/chunks/{DmLTqLLV.js → BLV57oiS.js} +1 -1
  31. package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
  32. package/web/app/immutable/chunks/{CxWK8xnP.js → BLwubCUL.js} +1 -1
  33. package/web/app/immutable/chunks/{CBLL08sm.js → BME2e0zx.js} +1 -1
  34. package/web/app/immutable/chunks/{CF8O1pc4.js → BMI9BPVJ.js} +1 -1
  35. package/web/app/immutable/chunks/{l18fXbdG.js → BOrf8iaF.js} +2 -2
  36. package/web/app/immutable/chunks/{BlUnlsOK.js → BPomlxD-.js} +51 -51
  37. package/web/app/immutable/chunks/{CSSOys25.js → BQAjYSZn.js} +1 -1
  38. package/web/app/immutable/chunks/{Cgu6cLKT.js → BRqvd9LR.js} +1 -1
  39. package/web/app/immutable/chunks/{BgLK_ncR.js → BSg7eLHt.js} +1 -1
  40. package/web/app/immutable/chunks/{B5NmEYUa.js → BUfDnmlv.js} +1 -1
  41. package/web/app/immutable/chunks/{BulSFF-a.js → BVf1OKWM.js} +1 -1
  42. package/web/app/immutable/chunks/{DFm7ZzVD.js → BVkABTn_.js} +1 -1
  43. package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
  44. package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
  45. package/web/app/immutable/chunks/{DXRlnb97.js → BZML3c09.js} +1 -1
  46. package/web/app/immutable/chunks/{DVs38eSu.js → BZrGNaMY.js} +4 -4
  47. package/web/app/immutable/chunks/{Hai9JAty.js → B_ZXH4Bf.js} +1 -1
  48. package/web/app/immutable/chunks/{Df7C6745.js → Ba-TS5vR.js} +1 -1
  49. package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
  50. package/web/app/immutable/chunks/{DZ1zC9TP.js → BffyNBKQ.js} +1 -1
  51. package/web/app/immutable/chunks/{C2WwiwWs.js → Bfq2PcjA.js} +1 -1
  52. package/web/app/immutable/chunks/{BzLM7oPX.js → BgerNePf.js} +1 -1
  53. package/web/app/immutable/chunks/{Mw1KbVyQ.js → BiCS5wL3.js} +1 -1
  54. package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
  55. package/web/app/immutable/chunks/{CKeHkFGu.js → BjBW4i6w.js} +1 -1
  56. package/web/app/immutable/chunks/{13AmrEpa.js → BjJW_Stw.js} +1 -1
  57. package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
  58. package/web/app/immutable/chunks/{CGkp_Cwy.js → BmUlDo2H.js} +1 -1
  59. package/web/app/immutable/chunks/{DTbYuW0t.js → BmiNxvpC.js} +1 -1
  60. package/web/app/immutable/chunks/{jS3iGRMB.js → Bmk9ow9D.js} +1 -1
  61. package/web/app/immutable/chunks/{DpDRAdy2.js → BmwLKx4A.js} +2 -2
  62. package/web/app/immutable/chunks/{BnSQjI9U.js → Bn3UQ-Cp.js} +1 -1
  63. package/web/app/immutable/chunks/{CaJKv7d6.js → Bo4f3vLH.js} +1 -1
  64. package/web/app/immutable/chunks/{BYk1ULDt.js → BoHfk-5t.js} +3 -3
  65. package/web/app/immutable/chunks/{CDT1G70y.js → BpOXeNkx.js} +1 -1
  66. package/web/app/immutable/chunks/{Cs8DWwEN.js → BpxCnE9X.js} +2 -2
  67. package/web/app/immutable/chunks/{2R1NzPTD.js → BqoQHFLV.js} +1 -1
  68. package/web/app/immutable/chunks/Bs9Hbccv.js +1 -0
  69. package/web/app/immutable/chunks/{BR8wCCqs.js → BsqGui1M.js} +1 -1
  70. package/web/app/immutable/chunks/{C6HNr-1J.js → BssOKdq0.js} +1 -1
  71. package/web/app/immutable/chunks/{DBAVKOs3.js → BtVjR42p.js} +1 -1
  72. package/web/app/immutable/chunks/{rJ19sxRo.js → BvtLLvEi.js} +1 -1
  73. package/web/app/immutable/chunks/{DmRzBB2M.js → BvypOCfp.js} +1 -1
  74. package/web/app/immutable/chunks/{BuNDx2oQ.js → BwDb1jNr.js} +1 -1
  75. package/web/app/immutable/chunks/{n0AniKod.js → BxE5JflA.js} +1 -1
  76. package/web/app/immutable/chunks/{DyyrFzIP.js → Byu82QgX.js} +1 -1
  77. package/web/app/immutable/chunks/{BlBEj3oF.js → C-BS-coA.js} +2 -2
  78. package/web/app/immutable/chunks/{D1yGasR4.js → C0fOehTZ.js} +1 -1
  79. package/web/app/immutable/chunks/{CHwD9QHP.js → C1H4_ssx.js} +1 -1
  80. package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
  81. package/web/app/immutable/chunks/{B-CmW-Rt.js → C4hboqwm.js} +1 -1
  82. package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
  83. package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
  84. package/web/app/immutable/chunks/{DxrXzX_M.js → C7KdCylX.js} +3 -3
  85. package/web/app/immutable/chunks/{B2-XfPcN.js → C7mmIZCH.js} +1 -1
  86. package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
  87. package/web/app/immutable/chunks/{DZC7segB.js → C9AcsTi0.js} +1 -1
  88. package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
  89. package/web/app/immutable/chunks/{CwzDLq3o.js → CAaAIfXJ.js} +1 -1
  90. package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
  91. package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
  92. package/web/app/immutable/chunks/{DjyFgI1x.js → CEAZJuV2.js} +1 -1
  93. package/web/app/immutable/chunks/{C_drUQi2.js → CECSRFPp.js} +1 -1
  94. package/web/app/immutable/chunks/{CnypGHrl.js → CETsvapu.js} +1 -1
  95. package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
  96. package/web/app/immutable/chunks/{Db3BHa7z.js → CG-2eU4S.js} +1 -1
  97. package/web/app/immutable/chunks/{CN0OjCVu.js → CJcw2WA-.js} +1 -1
  98. package/web/app/immutable/chunks/{ClIwbXJq.js → CKuYPUu0.js} +1 -1
  99. package/web/app/immutable/chunks/{C0MRkgn4.js → CN15iJiw.js} +1 -1
  100. package/web/app/immutable/chunks/{Ev7NI-4B.js → CNWeExHy.js} +1 -1
  101. package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
  102. package/web/app/immutable/chunks/{DFBRG5f3.js → CQk4XJFx.js} +1 -1
  103. package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
  104. package/web/app/immutable/chunks/{Diyq2-7-.js → CSJ0J5sC.js} +1 -1
  105. package/web/app/immutable/chunks/{BiN4BvQG.js → CT1GHsTn.js} +1 -1
  106. package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
  107. package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
  108. package/web/app/immutable/chunks/{DVFKqUgb.js → CU1rgNTy.js} +1 -1
  109. package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
  110. package/web/app/immutable/chunks/{DsoGIaMF.js → CW92V9X1.js} +1 -1
  111. package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
  112. package/web/app/immutable/chunks/{iNzcdJYX.js → CYEJX57C.js} +1 -1
  113. package/web/app/immutable/chunks/{B0vB3nPK.js → CYH5KIcO.js} +1 -1
  114. package/web/app/immutable/chunks/{y_-PH3Cn.js → CZiA6iY8.js} +1 -1
  115. package/web/app/immutable/chunks/{CjPlYTON.js → C_dZqjuM.js} +1 -1
  116. package/web/app/immutable/chunks/{D3Xty9Im.js → Car8OZH2.js} +1 -1
  117. package/web/app/immutable/chunks/{5bL3DJj7.js → CaxwpItd.js} +1 -1
  118. package/web/app/immutable/chunks/{rZp3PWdq.js → CbVYqaBE.js} +1 -1
  119. package/web/app/immutable/chunks/{CtGY50_e.js → Ccxm74iK.js} +1 -1
  120. package/web/app/immutable/chunks/CfV9aH5z.js +4 -0
  121. package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
  122. package/web/app/immutable/chunks/{DktdylrS.js → Ch36jfts.js} +1 -1
  123. package/web/app/immutable/chunks/{T4V8F4hM.js → ChRkiYOJ.js} +1 -1
  124. package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
  125. package/web/app/immutable/chunks/CiyXcVwM.js +1 -0
  126. package/web/app/immutable/chunks/{YvM9JcXX.js → CjUzEyu9.js} +1 -1
  127. package/web/app/immutable/chunks/{D2ImsQzb.js → CkmJMnjs.js} +1 -1
  128. package/web/app/immutable/chunks/{Da9J2JX1.js → ClHM0gRH.js} +1 -1
  129. package/web/app/immutable/chunks/{B5xbJc9W.js → Clm-X79i.js} +1 -1
  130. package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
  131. package/web/app/immutable/chunks/{CBolvbXG.js → Cm8yeV3M.js} +1 -1
  132. package/web/app/immutable/chunks/{CDbeyeCP.js → Cmd7Q9e2.js} +2 -2
  133. package/web/app/immutable/chunks/{C13MrFSw.js → CntEBInL.js} +1 -1
  134. package/web/app/immutable/chunks/{CfM0pCZF.js → Co_Aa6ij.js} +1 -1
  135. package/web/app/immutable/chunks/{NUHg8tud.js → CokCeQxx.js} +1 -1
  136. package/web/app/immutable/chunks/{rjfpoS8M.js → CpWIfz5C.js} +1 -1
  137. package/web/app/immutable/chunks/{D4kGqGBk.js → CpZlxc5c.js} +1 -1
  138. package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
  139. package/web/app/immutable/chunks/{CJT0k-x3.js → Cqsec-yx.js} +1 -1
  140. package/web/app/immutable/chunks/{DIiXUVIr.js → Cro1ceUg.js} +3 -3
  141. package/web/app/immutable/chunks/{3CggOKng.js → Cs1191LV.js} +1 -1
  142. package/web/app/immutable/chunks/{DaiMZHlt.js → CsHZlnUj.js} +1 -1
  143. package/web/app/immutable/chunks/{DpawEIzT.js → CskCO23D.js} +3 -3
  144. package/web/app/immutable/chunks/{CsvDcicf.js → CsstSIr0.js} +1 -1
  145. package/web/app/immutable/chunks/{CemNgvNI.js → Cv0HcHak.js} +1 -1
  146. package/web/app/immutable/chunks/{DmeSNHl2.js → CvNRUlp4.js} +1 -1
  147. package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
  148. package/web/app/immutable/chunks/{Bs0OTveI.js → CvlQZpOV.js} +1 -1
  149. package/web/app/immutable/chunks/{u8zBWO7U.js → Cx9nrScM.js} +1 -1
  150. package/web/app/immutable/chunks/{0n1_sqb5.js → CzeJNa_N.js} +1 -1
  151. package/web/app/immutable/chunks/{C3U610Va.js → D-USmFEk.js} +1 -1
  152. package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
  153. package/web/app/immutable/chunks/{e4k4F_fF.js → D-nuXMbz.js} +1 -1
  154. package/web/app/immutable/chunks/{DhizMGiT.js → D-y9m6ao.js} +1 -1
  155. package/web/app/immutable/chunks/{kmgcRpkz.js → D0SLupV7.js} +1 -1
  156. package/web/app/immutable/chunks/{1kMmRwXf.js → D226daYk.js} +1 -1
  157. package/web/app/immutable/chunks/{B25t-e4E.js → D32qvOGn.js} +1 -1
  158. package/web/app/immutable/chunks/{HqhytM4z.js → D3ROSEe0.js} +1 -1
  159. package/web/app/immutable/chunks/{BDZGpmAg.js → D4KaTH-V.js} +1 -1
  160. package/web/app/immutable/chunks/{CpyyZUC4.js → D56Oo2O2.js} +1 -1
  161. package/web/app/immutable/chunks/{YQRvuTGW.js → D5jBmJQo.js} +1 -1
  162. package/web/app/immutable/chunks/{KrEm5AbS.js → D6rPVTS4.js} +1 -1
  163. package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
  164. package/web/app/immutable/chunks/{C7cZaxG3.js → D7RRnWwO.js} +1 -1
  165. package/web/app/immutable/chunks/{DBaQx-Pk.js → D8m7soiy.js} +1 -1
  166. package/web/app/immutable/chunks/{DBH00hnQ.js → D9ikaMyr.js} +1 -1
  167. package/web/app/immutable/chunks/{CamLX2Sb.js → DC4NL8YS.js} +1 -1
  168. package/web/app/immutable/chunks/{f34gPxAx.js → DCpi1ytG.js} +1 -1
  169. package/web/app/immutable/chunks/{CG_nXeYa.js → DD8c9eUJ.js} +1 -1
  170. package/web/app/immutable/chunks/{C7FfDPRZ.js → DFT4lZL_.js} +1 -1
  171. package/web/app/immutable/chunks/{Bb6J6sjQ.js → DG2MKLyJ.js} +1 -1
  172. package/web/app/immutable/chunks/{BTurlMFD.js → DG9YtBZO.js} +1 -1
  173. package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.js} +1 -1
  174. package/web/app/immutable/chunks/{3-iWM9xO.js → DJB1T3Sf.js} +1 -1
  175. package/web/app/immutable/chunks/{ClGi_L6l.js → DJk4n_RN.js} +1 -1
  176. package/web/app/immutable/chunks/{Bk3O9qYH.js → DJuSbP_R.js} +1 -1
  177. package/web/app/immutable/chunks/{BzBOPxuP.js → DK1Nq2tK.js} +1 -1
  178. package/web/app/immutable/chunks/{CBiBtnBM.js → DKDZTli0.js} +1 -1
  179. package/web/app/immutable/chunks/{C26KoPDI.js → DKs113YH.js} +1 -1
  180. package/web/app/immutable/chunks/{DfacsTaO.js → DNWjwuC6.js} +1 -1
  181. package/web/app/immutable/chunks/{hcRUxON5.js → DPRoG8qR.js} +1 -1
  182. package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
  183. package/web/app/immutable/chunks/{COR1ZgMB.js → DQcbLXPp.js} +1 -1
  184. package/web/app/immutable/chunks/{CW9o0MGu.js → DR8eV9N8.js} +1 -1
  185. package/web/app/immutable/chunks/{iF8lSM38.js → DTTAQR6U.js} +1 -1
  186. package/web/app/immutable/chunks/{D1dtTkDE.js → DUEahgsi.js} +1 -1
  187. package/web/app/immutable/chunks/{CNySgneH.js → DV1BB3if.js} +1 -1
  188. package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
  189. package/web/app/immutable/chunks/{CK6izZOP.js → DVOiawfp.js} +2 -2
  190. package/web/app/immutable/chunks/{Bg4MuTWX.js → DVbZ5oZ8.js} +1 -1
  191. package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
  192. package/web/app/immutable/chunks/{BGCd17XA.js → DX09WtDr.js} +1 -1
  193. package/web/app/immutable/chunks/{Bg5ADDrW.js → DX8x4w_C.js} +1 -1
  194. package/web/app/immutable/chunks/{BZsM0M0Q.js → DXiP5t0I.js} +1 -1
  195. package/web/app/immutable/chunks/{BW5wGxdP.js → DY2nfza0.js} +1 -1
  196. package/web/app/immutable/chunks/{CEuCjemc.js → DZyz0CaB.js} +1 -1
  197. package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
  198. package/web/app/immutable/chunks/{BAhFveyJ.js → Darv-bZj.js} +1 -1
  199. package/web/app/immutable/chunks/{Db1mweH6.js → DbD4A30t.js} +1 -1
  200. package/web/app/immutable/chunks/{iy9r6eBz.js → DeywGElR.js} +1 -1
  201. package/web/app/immutable/chunks/{Dbhxem_q.js → Df1mOKLZ.js} +1 -1
  202. package/web/app/immutable/chunks/{bHtn9InS.js → Df2ohObb.js} +1 -1
  203. package/web/app/immutable/chunks/{CIkVHIT3.js → Df8Itx2l.js} +1 -1
  204. package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
  205. package/web/app/immutable/chunks/{1KqMO8DA.js → Dfw44tJF.js} +1 -1
  206. package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
  207. package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
  208. package/web/app/immutable/chunks/{D_OjFNQH.js → DknXCwG-.js} +1 -1
  209. package/web/app/immutable/chunks/{TjYngI-X.js → Dl6wwL68.js} +1 -1
  210. package/web/app/immutable/chunks/{D8u-TTw-.js → DlcwslMx.js} +1 -1
  211. package/web/app/immutable/chunks/{IjnClLwt.js → Dlfu53Jt.js} +1 -1
  212. package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
  213. package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
  214. package/web/app/immutable/chunks/{D91osLQe.js → DpDR6yW3.js} +1 -1
  215. package/web/app/immutable/chunks/{V68rWC50.js → DqNPF1Kv.js} +1 -1
  216. package/web/app/immutable/chunks/{BppZZR6X.js → DsEt8_PJ.js} +1 -1
  217. package/web/app/immutable/chunks/{Dy2xsFvf.js → Dt4GGs4d.js} +1 -1
  218. package/web/app/immutable/chunks/{D8C52zH9.js → Dug6137y.js} +1 -1
  219. package/web/app/immutable/chunks/{Cd0IJoag.js → DxGgdCHB.js} +1 -1
  220. package/web/app/immutable/chunks/{B7y27fC-.js → Dynz04e1.js} +1 -1
  221. package/web/app/immutable/chunks/{DwxN7Wdi.js → DzbhMJUu.js} +1 -1
  222. package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
  223. package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
  224. package/web/app/immutable/chunks/{cv4xg7k0.js → HK2fZqOM.js} +1 -1
  225. package/web/app/immutable/chunks/{D6QA9x6A.js → IorbBySt.js} +1 -1
  226. package/web/app/immutable/chunks/{BiMGq9Z7.js → IuNsAsbW.js} +1 -1
  227. package/web/app/immutable/chunks/{wI7zMgx-.js → Kr-Hl0sp.js} +1 -1
  228. package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
  229. package/web/app/immutable/chunks/{BejAw64w.js → LhLTjc8B.js} +6 -6
  230. package/web/app/immutable/chunks/{D1zpsxCF.js → LwsqbQ0C.js} +1 -1
  231. package/web/app/immutable/chunks/{BDldvohw.js → P80hEEPK.js} +1 -1
  232. package/web/app/immutable/chunks/{3FJRVBU-.js → PJ-tEAYj.js} +1 -1
  233. package/web/app/immutable/chunks/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
  234. package/web/app/immutable/chunks/{BelvDbq4.js → Q0BLEqss.js} +3 -3
  235. package/web/app/immutable/chunks/{B7g53bMx.js → Qe1_731c.js} +1 -1
  236. package/web/app/immutable/chunks/{CsgZCzi1.js → RiB0F36z.js} +3 -3
  237. package/web/app/immutable/chunks/RmgPTyFU.js +1 -0
  238. package/web/app/immutable/chunks/{CyLm5JOs.js → SEnfPRC9.js} +1 -1
  239. package/web/app/immutable/chunks/{C-jH8s9r.js → S_AAYsIr.js} +2 -2
  240. package/web/app/immutable/chunks/{CVYI64VR.js → SpDQ1yhe.js} +1 -1
  241. package/web/app/immutable/chunks/{glfri7wL.js → Wtp4gWgF.js} +1 -1
  242. package/web/app/immutable/chunks/{Drwt7aYJ.js → Xz2JgrtK.js} +1 -1
  243. package/web/app/immutable/chunks/{Cm72nCq-.js → ZBCGBGeT.js} +1 -1
  244. package/web/app/immutable/chunks/{C_lRd9OO.js → ZsIzkx4b.js} +1 -1
  245. package/web/app/immutable/chunks/{D6cxqzoz.js → _es_q85K.js} +1 -1
  246. package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
  247. package/web/app/immutable/chunks/{D2zf67XA.js → bAWH0D1a.js} +7 -7
  248. package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
  249. package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
  250. package/web/app/immutable/chunks/{DFhTl2LJ.js → dpToMVNV.js} +1 -1
  251. package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
  252. package/web/app/immutable/chunks/{CUTHTUjs.js → fciB9y8B.js} +1 -1
  253. package/web/app/immutable/chunks/{Bz2j5nDH.js → iCHr0TgO.js} +1 -1
  254. package/web/app/immutable/chunks/iaaN5aeR.js +1 -0
  255. package/web/app/immutable/chunks/{B1rvRaDg.js → ihEwdinj.js} +1 -1
  256. package/web/app/immutable/chunks/{CfeU66Hz.js → jsY6ocH0.js} +1 -1
  257. package/web/app/immutable/chunks/{DShhv9Lh.js → kIb2FXed.js} +1 -1
  258. package/web/app/immutable/chunks/{p29Y4Sx3.js → kXKukUHU.js} +1 -1
  259. package/web/app/immutable/chunks/{DuMYTc8Y.js → kza5UJ4U.js} +1 -1
  260. package/web/app/immutable/chunks/{D30--6jq.js → mMBlGZk9.js} +1 -1
  261. package/web/app/immutable/chunks/{BupZf9R2.js → mR2QgOoI.js} +1 -1
  262. package/web/app/immutable/chunks/{D3sL2PPU.js → mp47640j.js} +1 -1
  263. package/web/app/immutable/chunks/{B3II5C5l.js → n-WVnUeH.js} +1 -1
  264. package/web/app/immutable/chunks/{DFQ2LZfw.js → nR6RXxA9.js} +1 -1
  265. package/web/app/immutable/chunks/{BzBHISyY.js → pBEY1Dg2.js} +1 -1
  266. package/web/app/immutable/chunks/{D6Y18pu-.js → pEUfw1x0.js} +1 -1
  267. package/web/app/immutable/chunks/{DYZQjWbl.js → prrfQq6f.js} +1 -1
  268. package/web/app/immutable/chunks/{DTjIXONR.js → puEh5oJr.js} +4 -4
  269. package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
  270. package/web/app/immutable/chunks/{Cno21Zxg.js → q6-D_vn6.js} +1 -1
  271. package/web/app/immutable/chunks/{CaHA2ESe.js → qshqk_Zv.js} +1 -1
  272. package/web/app/immutable/chunks/{Dmq8N6LI.js → qvHk51jx.js} +2 -2
  273. package/web/app/immutable/chunks/{CdtTvwl3.js → r8ylcc1d.js} +1 -1
  274. package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
  275. package/web/app/immutable/chunks/{LzhxhM8_.js → u8Ybsqvl.js} +1 -1
  276. package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
  277. package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
  278. package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
  279. package/web/app/immutable/chunks/{CHLJ-3Q1.js → wk8l4Vfb.js} +1 -1
  280. package/web/app/immutable/chunks/{Z-nmDTPH.js → wz1UgZlY.js} +1 -1
  281. package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
  282. package/web/app/immutable/chunks/{D-k0eOJ6.js → yW5sglFu.js} +1 -1
  283. package/web/app/immutable/chunks/{DzpyprB1.js → ydrF5SOC.js} +1 -1
  284. package/web/app/immutable/chunks/{DE17eju9.js → zgX_Rwbq.js} +1 -1
  285. package/web/app/immutable/chunks/{4WPqCRAv.js → zxmCuTa7.js} +1 -1
  286. package/web/app/immutable/entry/{app.Bf_OSyrf.js → app.DF_Qftdw.js} +3 -3
  287. package/web/app/immutable/entry/start.DzVa4jHd.js +1 -0
  288. package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.KW34tjG8.js} +1 -1
  289. package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.CHhQxwtD.js} +1 -1
  290. package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.CGdaTN_a.js} +1 -1
  291. package/web/app/immutable/nodes/{11.DdNqWjT1.js → 11.K4X9py2s.js} +1 -1
  292. package/web/app/immutable/nodes/{12.sEYH_Pmu.js → 12.CV0D62ho.js} +1 -1
  293. package/web/app/immutable/nodes/{13.B0uhCaJY.js → 13.B-lV8z59.js} +3 -3
  294. package/web/app/immutable/nodes/{14.C3Ch8LVG.js → 14.BTTvfbc0.js} +1 -1
  295. package/web/app/immutable/nodes/{15.B6xmqReh.js → 15.CKURddgk.js} +1 -1
  296. package/web/app/immutable/nodes/{16.k3HHr2yy.js → 16.DD-jxx3d.js} +2 -2
  297. package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.CTO1JTL7.js} +4 -4
  298. package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.BE75vqzp.js} +1 -1
  299. package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.BUm0nN8e.js} +1 -1
  300. package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.BRXD3vaZ.js} +1 -1
  301. package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.CWxGKv_E.js} +1 -1
  302. package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.DI6-BnKI.js} +1 -1
  303. package/web/app/immutable/nodes/8.5BsghwEn.js +14 -0
  304. package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.-PRJswf6.js} +6 -6
  305. package/web/app/version.json +1 -1
  306. package/web/generated/paraglide.js +48 -48
  307. package/web/index.html +18 -18
  308. package/web/app/immutable/chunks/BCVnawos.js +0 -1
  309. package/web/app/immutable/chunks/BQS0XfBK.js +0 -1
  310. package/web/app/immutable/chunks/CjKcpWyx.js +0 -4
  311. package/web/app/immutable/chunks/D9I3JJnE.js +0 -1
  312. package/web/app/immutable/chunks/lvIYiyhL.js +0 -1
  313. package/web/app/immutable/chunks/sMg7Lxjd.js +0 -1
  314. package/web/app/immutable/entry/start.IOR_3Iyx.js +0 -1
  315. package/web/app/immutable/nodes/8.Dc-nd7pr.js +0 -14
@@ -1 +1 @@
1
- import{t as Jt,bq as W,by as Qt,b as Xt,a_ as P,bu as J,bs as Ie,bo as i}from"./sMg7Lxjd.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Zt,aA as N,a7 as Se,aD as t,c9 as g,aB as I,bo as Ge,bV as kt,br as we,ca as Bt,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Ht,s as Mt}from"./CsvDcicf.js";import{c as Te}from"./CfM0pCZF.js";import{f as z}from"./P-01BLZ6.js";import"./BnSQjI9U.js";import{e as Fe,L as qt}from"./CUpXgpcF.js";import"./DxRCuR64.js";import"./gdAnsrdj.js";import{k as Ue,G as Ee,N as Oe}from"./CjKcpWyx.js";import{I as Kt}from"./CGkp_Cwy.js";import"./HqhytM4z.js";import{G9 as K,f9 as Wt,v as Be,e1 as Nt,pi as He,sf as Me,G0 as qe,na as Ke,h1 as We}from"./FBhib8LQ.js";import{g as Rt,h as Vt,i as Ne,s as Re,b as jt,d as Ve,e as je,m as Je}from"./COYb5Q2j.js";var Qe=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Jt({component:Xe,...it});Yt(m,!0);let D=W(m,"open",15,!1),H=W(m,"static",7,!1),st=W(m,"title",7),_=W(m,"message",7),k=W(m,"buttons",7),b=W(m,"cancelIndex",7,0),Q=W(m,"onSelect",7);function R(r){D(!1),Q()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),N()},get static(){return H()},set static(r=!1){H(r),N()},get title(){return st()},set title(r){st(r),N()},get message(){return _()},set message(r){_(r),N()},get buttons(){return k()},set buttons(r){k(r),N()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),N()},get onSelect(){return Q()},set onSelect(r){Q(r),N()},$set:Qt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>R(k().length-1),onCancel:()=>R(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),G=yt(T);Ae(G,17,k,Pe,(X,Y,V)=>{{let Z=g(()=>V===b()?"ghost":V===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>R(V),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var G=Qe(),X=yt(G);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),V=B(Y,!0);s(()=>o(V,_())),n(M,G)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=Ge();if(new.target)return Jt({component:ua,...it});Yt(m,!0);const H=()=>J(ct,"$storedInstance$",r),st=()=>J(ee,"$deviceGrantSupported$",r),_=()=>J(ne,"$instanceSetupSupported$",r),k=()=>J(pt,"$isAuthenticating$",r),b=()=>J(ut,"$isCancelling$",r),Q=()=>J(te,"$deviceFlow$",r),R=()=>J(_t,"$cancelOutcome$",r),vt=()=>J(ae,"$error$",r),[r,M]=Ie();let T=W(m,"compact",7,!1),G=W(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,V=`${D}-host-error`,Z=`${D}-token`,ct=Rt(),pt=Vt(),ut=Ne(),_t=Re(),te=jt(),ee=Ve(),ae=je(),ne=Je();let bt=kt(we(Rt.select(K.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),Gt=g(()=>t(ft)||t(p)===H()&&st()===!1),Ct=g(()=>t(p)?Ke(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||q(bt,c,!0)}),Bt(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Vt.select(e)&&jt.select(e)&&K.dispatch(Wt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function wt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(We(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Nt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||K.dispatch(Nt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),wt(),t(Gt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),N()},get onCancel(){return G()},set onCancel(c){G(c),N()},$set:Qt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(w=>o(f,w),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return Q().userCode},get verificationUri(){return Q().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),w=E(f);Ht(w,{size:16,class:"shrink-0"});var S=l(w,2),ot=B(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var f=l(u,2),w=B(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(w,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);qt(f,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var w=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?Y:`${Y} ${V}`);Kt(w,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:wt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(w,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{Mt($,"id",V),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Kt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),j=E(A);{let v=g(()=>!t(re));z(j,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(j,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return G()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{G()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return G()},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{G()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(Gt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Q()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=B(u,!0),w=l(u,2);z(w,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Wt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>R()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{R()==="cancelled"?e(ge):(R()==="already-started"||R()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
1
+ import{t as Jt,bq as W,by as Qt,b as Xt,a_ as P,bu as J,bs as Ie,bo as i}from"./CgPr4hs2.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Zt,aA as N,a7 as Se,aD as t,c9 as g,aB as I,bo as Ge,bV as kt,br as we,ca as Bt,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Ht,s as Mt}from"./CsstSIr0.js";import{c as Te}from"./Co_Aa6ij.js";import{f as z}from"./Ps9iRbKd.js";import"./Bn3UQ-Cp.js";import{e as Fe,L as qt}from"./C9tAiYT0.js";import"./q4FIdUSc.js";import"./CE7ZtQHh.js";import{k as Ue,G as Ee,N as Oe}from"./CfV9aH5z.js";import{I as Kt}from"./BmUlDo2H.js";import"./D3ROSEe0.js";import{G9 as K,f9 as Wt,v as Be,e1 as Nt,pi as He,sf as Me,G0 as qe,na as Ke,h1 as We}from"./BL_sVoge.js";import{g as Rt,h as Vt,i as Ne,s as Re,b as jt,d as Ve,e as je,m as Je}from"./BEOSERRe.js";var Qe=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Jt({component:Xe,...it});Yt(m,!0);let D=W(m,"open",15,!1),H=W(m,"static",7,!1),st=W(m,"title",7),_=W(m,"message",7),k=W(m,"buttons",7),b=W(m,"cancelIndex",7,0),Q=W(m,"onSelect",7);function R(r){D(!1),Q()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),N()},get static(){return H()},set static(r=!1){H(r),N()},get title(){return st()},set title(r){st(r),N()},get message(){return _()},set message(r){_(r),N()},get buttons(){return k()},set buttons(r){k(r),N()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),N()},get onSelect(){return Q()},set onSelect(r){Q(r),N()},$set:Qt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>R(k().length-1),onCancel:()=>R(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),G=yt(T);Ae(G,17,k,Pe,(X,Y,V)=>{{let Z=g(()=>V===b()?"ghost":V===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>R(V),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var G=Qe(),X=yt(G);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),V=B(Y,!0);s(()=>o(V,_())),n(M,G)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=Ge();if(new.target)return Jt({component:ua,...it});Yt(m,!0);const H=()=>J(ct,"$storedInstance$",r),st=()=>J(ee,"$deviceGrantSupported$",r),_=()=>J(ne,"$instanceSetupSupported$",r),k=()=>J(pt,"$isAuthenticating$",r),b=()=>J(ut,"$isCancelling$",r),Q=()=>J(te,"$deviceFlow$",r),R=()=>J(_t,"$cancelOutcome$",r),vt=()=>J(ae,"$error$",r),[r,M]=Ie();let T=W(m,"compact",7,!1),G=W(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,V=`${D}-host-error`,Z=`${D}-token`,ct=Rt(),pt=Vt(),ut=Ne(),_t=Re(),te=jt(),ee=Ve(),ae=je(),ne=Je();let bt=kt(we(Rt.select(K.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),Gt=g(()=>t(ft)||t(p)===H()&&st()===!1),Ct=g(()=>t(p)?Ke(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||q(bt,c,!0)}),Bt(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Vt.select(e)&&jt.select(e)&&K.dispatch(Wt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function wt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(We(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Nt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||K.dispatch(Nt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),wt(),t(Gt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),N()},get onCancel(){return G()},set onCancel(c){G(c),N()},$set:Qt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(w=>o(f,w),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return Q().userCode},get verificationUri(){return Q().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),w=E(f);Ht(w,{size:16,class:"shrink-0"});var S=l(w,2),ot=B(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var f=l(u,2),w=B(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(w,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);qt(f,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var w=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?Y:`${Y} ${V}`);Kt(w,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:wt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(w,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{Mt($,"id",V),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Kt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),j=E(A);{let v=g(()=>!t(re));z(j,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(j,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return G()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{G()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return G()},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{G()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(Gt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Q()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=B(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=B(u,!0),w=l(u,2);z(w,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Wt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>R()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{R()==="cancelled"?e(ge):(R()==="already-started"||R()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
@@ -1 +1 @@
1
- import{a8 as j,bc as p,a2 as w,bd as k,be as q}from"./BejAw64w.js";import{i as D}from"./Gi6I4Gst.js";import{e as g,b as F,a as z,f as B}from"./CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
1
+ import{a8 as j,bc as p,a2 as w,bd as k,be as q}from"./LhLTjc8B.js";import{i as D}from"./Gi6I4Gst.js";import{e as g,b as F,a as z,f as B}from"./CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
@@ -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"./sMg7Lxjd.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"./B8o4lNgr.js";import{b as St}from"./D2g8BuR1.js";import{ensureMonacoInitialized as Ne,initializeMonaco as Re,monaco as Tt}from"./BNOUHNLe.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./3FJRVBU-.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./CsvDcicf.js";import{G9 as ot}from"./FBhib8LQ.js";import{f as qe}from"./P-01BLZ6.js";import{F as He,b8 as It,bj as Pt}from"./DGPqSlym.js";import{i as Ue}from"./Cb7Fwhyl.js";import{dj as zt,cj as Nt}from"./bHtn9InS.js";import{g as At}from"./CAh6WYw0.js";import{d as Vt}from"./B25t-e4E.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./lM1_eh6C.js";import{g as B,R as Ge,U as Je}from"./CArnO8CD.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),j()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;j(),E?he(T,I):pe(T,I)}function j(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var R={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),ge(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(R);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=jt(f.type),C=Rt(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 jt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function Rt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),j=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,""),R=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await Re(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:j()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:R()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=R();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await Re(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:j()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:R()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:j()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:R()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return j()},set lineNumbers(e=!0){j(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 R()},set lineWrapping(e=!0){R(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),je=Z(ce);qe(je,{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=$(je,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
1
+ import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./CgPr4hs2.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"./B8o4lNgr.js";import{b as St}from"./D2g8BuR1.js";import{ensureMonacoInitialized as Ne,initializeMonaco as Re,monaco as Tt}from"./cPzpQFEA.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./PJ-tEAYj.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./CsstSIr0.js";import{G9 as ot}from"./BL_sVoge.js";import{f as qe}from"./Ps9iRbKd.js";import{F as He,b8 as It,bj as Pt}from"./B7NNbItI.js";import{i as Ue}from"./CvXnZ-8G.js";import{dj as zt,cj as Nt}from"./Df2ohObb.js";import{g as At}from"./rpeM9FmT.js";import{d as Vt}from"./D32qvOGn.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./FvORToMl.js";import{g as B,R as Ge,U as Je}from"./BYCiS1o9.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),j()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;j(),E?he(T,I):pe(T,I)}function j(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var R={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),ge(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(R);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=jt(f.type),C=Rt(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 jt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function Rt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),j=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,""),R=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await Re(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:j()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:R()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=R();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await Re(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:j()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:R()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:j()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:R()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return j()},set lineNumbers(e=!0){j(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 R()},set lineWrapping(e=!0){R(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),je=Z(ce);qe(je,{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=$(je,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
@@ -0,0 +1 @@
1
+ import{i as r}from"./CvXnZ-8G.js";import{v as a,I as e}from"./P80hEEPK.js";import{G9 as s}from"./BL_sVoge.js";import{c as t}from"./n-WVnUeH.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};