@intent-hq/web 2.384.1 → 2.385.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BiM95_Ol.js → 0RCk28l5.js} +1 -1
  3. package/web/app/immutable/chunks/{DQdjZnba.js → 0oyPeRI9.js} +1 -1
  4. package/web/app/immutable/chunks/{Tk34IzPH.js → 2zSj5_GV.js} +1 -1
  5. package/web/app/immutable/chunks/{gZ0nGq7V.js → 3VhO4Wn2.js} +1 -1
  6. package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
  7. package/web/app/immutable/chunks/{D59epBkG.js → 40W1U6K5.js} +1 -1
  8. package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
  9. package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
  10. package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
  11. package/web/app/immutable/chunks/{B7eTEd5f.js → 4poQ2xKW.js} +1 -1
  12. package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
  13. package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
  14. package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
  15. package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
  16. package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
  17. package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
  18. package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
  19. package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
  20. package/web/app/immutable/chunks/{wsPxCWV4.js → B-E_4dSm.js} +2 -2
  21. package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
  22. package/web/app/immutable/chunks/{BFBQinse.js → B22zVGFP.js} +1 -1
  23. package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
  24. package/web/app/immutable/chunks/{CQ9fljqW.js → B2XeuV1l.js} +1 -1
  25. package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
  26. package/web/app/immutable/chunks/{BJ1Bk8co.js → B5pL-E-o.js} +1 -1
  27. package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
  28. package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
  29. package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
  30. package/web/app/immutable/chunks/{CdhlQsS3.js → B6QnBRPC.js} +1 -1
  31. package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
  32. package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
  33. package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
  34. package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
  35. package/web/app/immutable/chunks/{eZPmVSmq.js → B9ka1bX8.js} +2 -2
  36. package/web/app/immutable/chunks/{CDVdEpeY.js → BBYtaKSX.js} +1 -1
  37. package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
  38. package/web/app/immutable/chunks/{BMPSP6zy.js → BCLFORRd.js} +1 -1
  39. package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
  40. package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
  41. package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
  42. package/web/app/immutable/chunks/{HP51nVq8.js → BGspyNwk.js} +1 -1
  43. package/web/app/immutable/chunks/{Cr6ukNck.js → BHEogMS0.js} +2 -2
  44. package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
  45. package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
  46. package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
  47. package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
  48. package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
  49. package/web/app/immutable/chunks/{XzLIP4y8.js → BNX4ri6c.js} +3 -3
  50. package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
  51. package/web/app/immutable/chunks/{C1GvdDuD.js → BO4b6Ny-.js} +2 -2
  52. package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
  53. package/web/app/immutable/chunks/{DUhda8VE.js → BORk03Sd.js} +1 -1
  54. package/web/app/immutable/chunks/{B4T9RExk.js → BP1fPIN6.js} +1 -1
  55. package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
  56. package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
  57. package/web/app/immutable/chunks/{CQhRmQZt.js → BSWVBeG0.js} +1 -1
  58. package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
  59. package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
  60. package/web/app/immutable/chunks/{4Pag07jF.js → BT8hDSo1.js} +1 -1
  61. package/web/app/immutable/chunks/{BX_Jr21Z.js → BU1Gcrkq.js} +1 -1
  62. package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
  63. package/web/app/immutable/chunks/{DA6dl8M4.js → BV47Ledo.js} +1 -1
  64. package/web/app/immutable/chunks/{CGmFuvv3.js → BVctKbNy.js} +1 -1
  65. package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
  66. package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
  67. package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
  68. package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
  69. package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
  70. package/web/app/immutable/chunks/{C41iTvQS.js → BYLCAn5f.js} +1 -1
  71. package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
  72. package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
  73. package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
  74. package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
  75. package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
  76. package/web/app/immutable/chunks/{KmGBeLVg.js → BcEkxi5l.js} +1 -1
  77. package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
  78. package/web/app/immutable/chunks/{DTdAlnvg.js → Bd1Doib5.js} +5 -5
  79. package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
  80. package/web/app/immutable/chunks/{MEhQGTPs.js → BeJRU38G.js} +3 -3
  81. package/web/app/immutable/chunks/{ClyQ7g2p.js → BeU-lAdJ.js} +1 -1
  82. package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
  83. package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
  84. package/web/app/immutable/chunks/{CfE9G-Vk.js → BhD_8q1J.js} +1 -1
  85. package/web/app/immutable/chunks/{Cm60YBNN.js → Bhb3isek.js} +4 -4
  86. package/web/app/immutable/chunks/{CjsT6P1W.js → Bi-y50ry.js} +1 -1
  87. package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
  88. package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
  89. package/web/app/immutable/chunks/{BxiKdHSR.js → BlDwsvYd.js} +1 -1
  90. package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
  91. package/web/app/immutable/chunks/{BbV6R15i.js → BmF8Qq3w.js} +1 -1
  92. package/web/app/immutable/chunks/{Bmn4uqsd.js → BoIbJp9v.js} +1 -1
  93. package/web/app/immutable/chunks/{D5reO2Y0.js → BpYEdDT4.js} +1 -1
  94. package/web/app/immutable/chunks/BsdyWfPQ.js +2 -0
  95. package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
  96. package/web/app/immutable/chunks/{CZDat5YW.js → Bt_vaAcw.js} +1 -1
  97. package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
  98. package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
  99. package/web/app/immutable/chunks/{DSTc-o8X.js → BuPmvT2w.js} +1 -1
  100. package/web/app/immutable/chunks/{-31r5MID.js → BupDQr_B.js} +2 -2
  101. package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
  102. package/web/app/immutable/chunks/{eTRx_lEs.js → BvbZcfOT.js} +1 -1
  103. package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
  104. package/web/app/immutable/chunks/{JD0Hsmjx.js → BvzO6hxM.js} +1 -1
  105. package/web/app/immutable/chunks/{BACpI8G6.js → BwC--T1G.js} +1 -1
  106. package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
  107. package/web/app/immutable/chunks/{BMW8QkkW.js → Bwx5QwNp.js} +1 -1
  108. package/web/app/immutable/chunks/{B1DQbauY.js → BxU4EAMe.js} +1 -1
  109. package/web/app/immutable/chunks/{E92QiCEr.js → ByZMA8RF.js} +1 -1
  110. package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
  111. package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
  112. package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
  113. package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
  114. package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
  115. package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
  116. package/web/app/immutable/chunks/{Rz920YbF.js → C2Hs8n0u.js} +1 -1
  117. package/web/app/immutable/chunks/{Dkgk_rvZ.js → C3-81PRC.js} +4 -4
  118. package/web/app/immutable/chunks/{8eQog6L5.js → C3gIkQxX.js} +1 -1
  119. package/web/app/immutable/chunks/{BltFs6ST.js → C412Y6ti.js} +2 -2
  120. package/web/app/immutable/chunks/{BgPJ_lbZ.js → C4Py2-C-.js} +1 -1
  121. package/web/app/immutable/chunks/{CCej7AMq.js → C4UnZ5aI.js} +1 -1
  122. package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
  123. package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
  124. package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
  125. package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
  126. package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
  127. package/web/app/immutable/chunks/{3BCyU2N-.js → CA8JHp72.js} +1 -1
  128. package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
  129. package/web/app/immutable/chunks/CAtVH-rJ.js +158 -0
  130. package/web/app/immutable/chunks/CCIZBeez.js +1 -0
  131. package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
  132. package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
  133. package/web/app/immutable/chunks/{DJEkkAqR.js → CDBHtmaA.js} +1 -1
  134. package/web/app/immutable/chunks/{CzG_0Mji.js → CE9_m5Rd.js} +1 -1
  135. package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
  136. package/web/app/immutable/chunks/{DvjmmZhh.js → CEfkJpk7.js} +1 -1
  137. package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
  138. package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
  139. package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
  140. package/web/app/immutable/chunks/{DnQOpOtg.js → CIWky03S.js} +3 -3
  141. package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
  142. package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
  143. package/web/app/immutable/chunks/{DtO9zNSi.js → CJNNcGWg.js} +1 -1
  144. package/web/app/immutable/chunks/{rjhGooNa.js → CLlFdy2p.js} +1 -1
  145. package/web/app/immutable/chunks/{BWM_jjc6.js → CLo9TzNK.js} +1 -1
  146. package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
  147. package/web/app/immutable/chunks/{BvGyYsBI.js → COflq_3N.js} +3 -3
  148. package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
  149. package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
  150. package/web/app/immutable/chunks/{BswbJQ0U.js → CPaH4fRt.js} +1 -1
  151. package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
  152. package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
  153. package/web/app/immutable/chunks/CT9qg5pc.js +1 -0
  154. package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
  155. package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
  156. package/web/app/immutable/chunks/{CFjwzuFW.js → CVU_1O7c.js} +1 -1
  157. package/web/app/immutable/chunks/{C2jf24pz.js → CVs9CHtI.js} +1 -1
  158. package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
  159. package/web/app/immutable/chunks/{Di0D97hw.js → CWTUGfLW.js} +1 -1
  160. package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
  161. package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
  162. package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
  163. package/web/app/immutable/chunks/{d7CFoqrB.js → Cbb4o3qj.js} +1 -1
  164. package/web/app/immutable/chunks/{esAd2hCU.js → CbxBZqC_.js} +1 -1
  165. package/web/app/immutable/chunks/{C-srtNB0.js → CdbRvoG6.js} +1 -1
  166. package/web/app/immutable/chunks/{BGN2EuCq.js → ClNMpui4.js} +1 -1
  167. package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
  168. package/web/app/immutable/chunks/{CcNZQwT1.js → Clez3uTU.js} +3 -3
  169. package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
  170. package/web/app/immutable/chunks/{B57eLsJv.js → Cnl_O3ZO.js} +1 -1
  171. package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
  172. package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
  173. package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
  174. package/web/app/immutable/chunks/{C7OV0KqB.js → CqrCSb8W.js} +1 -1
  175. package/web/app/immutable/chunks/{DRg21hWl.js → Cr2Op5yp.js} +2 -2
  176. package/web/app/immutable/chunks/{DvdS-8it.js → Cr5QjekU.js} +1 -1
  177. package/web/app/immutable/chunks/{lDDdxVqt.js → CrEMns9K.js} +1 -1
  178. package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
  179. package/web/app/immutable/chunks/{BYIgLpGQ.js → Csh6XB2J.js} +1 -1
  180. package/web/app/immutable/chunks/{ZAUoxjxb.js → CsyhqW-P.js} +1 -1
  181. package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
  182. package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
  183. package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
  184. package/web/app/immutable/chunks/{D5i4Tktw.js → D0R3sca1.js} +1 -1
  185. package/web/app/immutable/chunks/{Dc7e-OgI.js → D20kqX2U.js} +2 -2
  186. package/web/app/immutable/chunks/{CKc3ivIh.js → D2mnZ9kC.js} +2 -2
  187. package/web/app/immutable/chunks/{DAUcVagO.js → D5Tu5Sg8.js} +1 -1
  188. package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
  189. package/web/app/immutable/chunks/{C8veqOP9.js → D8XzixBC.js} +1 -1
  190. package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
  191. package/web/app/immutable/chunks/{DUkL2vjQ.js → DDrpCbke.js} +1 -1
  192. package/web/app/immutable/chunks/{BQXu3XXC.js → DEDo4DeD.js} +4 -4
  193. package/web/app/immutable/chunks/{CEaHYCM5.js → DErxk4N4.js} +1 -1
  194. package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
  195. package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
  196. package/web/app/immutable/chunks/{5ibcqblv.js → DGVdJiQ7.js} +1 -1
  197. package/web/app/immutable/chunks/{CTKlTmjI.js → DHf7N1bI.js} +1 -1
  198. package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
  199. package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
  200. package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
  201. package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
  202. package/web/app/immutable/chunks/{Dh_uOrf0.js → DMeCi1eF.js} +1 -1
  203. package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
  204. package/web/app/immutable/chunks/{ClNWpSoj.js → DPY-p9P3.js} +2 -2
  205. package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
  206. package/web/app/immutable/chunks/{CMn1nNPl.js → DR6M_MBd.js} +1 -1
  207. package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
  208. package/web/app/immutable/chunks/{B80lqB7E.js → DTDtxEAk.js} +1 -1
  209. package/web/app/immutable/chunks/{CvCS8OAf.js → DUAtqTLU.js} +1 -1
  210. package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
  211. package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
  212. package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
  213. package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
  214. package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
  215. package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
  216. package/web/app/immutable/chunks/{8uGKFevW.js → DgJnzjEh.js} +1 -1
  217. package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
  218. package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
  219. package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
  220. package/web/app/immutable/chunks/{DneGzq7o.js → DlWS0XX3.js} +1 -1
  221. package/web/app/immutable/chunks/{CRGZeiHP.js → DmhHa5tp.js} +1 -1
  222. package/web/app/immutable/chunks/{CeOHBQlu.js → Dmn1abz2.js} +1 -1
  223. package/web/app/immutable/chunks/{BXClhyCJ.js → DnLmeVJZ.js} +1 -1
  224. package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
  225. package/web/app/immutable/chunks/DoOue2dc.js +2 -0
  226. package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
  227. package/web/app/immutable/chunks/{CrjK8LH9.js → DqAYkzSz.js} +1 -1
  228. package/web/app/immutable/chunks/{D2rdAIDv.js → DrTTxENT.js} +1 -1
  229. package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
  230. package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
  231. package/web/app/immutable/chunks/{jzrltQdi.js → DtyEiVnc.js} +1 -1
  232. package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
  233. package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
  234. package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
  235. package/web/app/immutable/chunks/Dws-34a7.js +1 -0
  236. package/web/app/immutable/chunks/{qAXb8ucI.js → Dx3P5K2z.js} +1 -1
  237. package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
  238. package/web/app/immutable/chunks/{Cxz7a3ln.js → DxPvfI2H.js} +4 -4
  239. package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
  240. package/web/app/immutable/chunks/{Cj5p8V3Z.js → DyZa5hX5.js} +1 -1
  241. package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
  242. package/web/app/immutable/chunks/{0_OkSok2.js → GIVowYni.js} +1 -1
  243. package/web/app/immutable/chunks/{DM_kAcca.js → Gt7Fxn5w.js} +1 -1
  244. package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
  245. package/web/app/immutable/chunks/{zJz5NUAZ.js → IIW6JGdD.js} +1 -1
  246. package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
  247. package/web/app/immutable/chunks/{lma_Aa_Q.js → K8u-JjT9.js} +1 -1
  248. package/web/app/immutable/chunks/{D8mJ0i4V.js → L7Esr5Id.js} +1 -1
  249. package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
  250. package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
  251. package/web/app/immutable/chunks/{DnkGrT83.js → OrN9D77d.js} +3 -3
  252. package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
  253. package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
  254. package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
  255. package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
  256. package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
  257. package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
  258. package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
  259. package/web/app/immutable/chunks/Whej1Dge.js +1 -0
  260. package/web/app/immutable/chunks/{P9PnSQNh.js → Z9NyJp9w.js} +3 -3
  261. package/web/app/immutable/chunks/{D_DdTIu0.js → ZRNKCUqe.js} +47 -47
  262. package/web/app/immutable/chunks/{IjcPbG76.js → _2VCBG9z.js} +1 -1
  263. package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
  264. package/web/app/immutable/chunks/{BtBv0U_D.js → d8NijX_Z.js} +2 -2
  265. package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
  266. package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
  267. package/web/app/immutable/chunks/{ByNdLM3c.js → e9nNeD_8.js} +1 -1
  268. package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
  269. package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
  270. package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
  271. package/web/app/immutable/chunks/{Bk1CZ_aH.js → hNQ1u1TD.js} +1 -1
  272. package/web/app/immutable/chunks/{BegKMnH4.js → hYcAQyax.js} +1 -1
  273. package/web/app/immutable/chunks/{gIt--5se.js → i0UHQwRY.js} +1 -1
  274. package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
  275. package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
  276. package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
  277. package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
  278. package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
  279. package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
  280. package/web/app/immutable/chunks/{evy8DaDH.js → rEslErv9.js} +1 -1
  281. package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
  282. package/web/app/immutable/chunks/{Ue4xifLs.js → sOF-qTei.js} +1 -1
  283. package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
  284. package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
  285. package/web/app/immutable/chunks/{BkUPUOzV.js → tuKjkgzS.js} +1 -1
  286. package/web/app/immutable/chunks/{CZ56JG-R.js → v3_7O0A0.js} +1 -1
  287. package/web/app/immutable/chunks/{DVuQpyKc.js → vdylZNCS.js} +1 -1
  288. package/web/app/immutable/chunks/{BHXs-6um.js → vyUklWDK.js} +1 -1
  289. package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
  290. package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
  291. package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
  292. package/web/app/immutable/entry/{app.BN9LppoE.js → app.DEnhhDc1.js} +3 -3
  293. package/web/app/immutable/entry/start.Cmawmwgw.js +1 -0
  294. package/web/app/immutable/nodes/{0.DuuUT7lf.js → 0.DLkagS9u.js} +1 -1
  295. package/web/app/immutable/nodes/{1.CuKU_s85.js → 1.ChB9puqR.js} +1 -1
  296. package/web/app/immutable/nodes/10.B3YEuSxS.js +39 -0
  297. package/web/app/immutable/nodes/{11.DswJjpxi.js → 11.rgOqEz2U.js} +1 -1
  298. package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
  299. package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
  300. package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
  301. package/web/app/immutable/nodes/{15.CDuV6cP7.js → 15.CgSxPoXZ.js} +1 -1
  302. package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
  303. package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
  304. package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
  305. package/web/app/immutable/nodes/{19.DvjAcoWG.js → 19.DS0Anfm0.js} +2 -2
  306. package/web/app/immutable/nodes/{2.r_yCTdWa.js → 2.BB55cMHs.js} +4 -4
  307. package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
  308. package/web/app/immutable/nodes/{3.BzmP3XDj.js → 3.B1suR6zI.js} +1 -1
  309. package/web/app/immutable/nodes/{4.BPX7a1xw.js → 4.BdkLcCps.js} +1 -1
  310. package/web/app/immutable/nodes/{5.CbH1sau-.js → 5.DlFTrLdG.js} +1 -1
  311. package/web/app/immutable/nodes/{6.DXN3u4yU.js → 6.EdJoOCRv.js} +1 -1
  312. package/web/app/immutable/nodes/{7.BAFpN-hf.js → 7.iPBOmxFo.js} +1 -1
  313. package/web/app/immutable/nodes/{8.COZNLTaW.js → 8.BRpg5Nn-.js} +1 -1
  314. package/web/app/immutable/nodes/9.CeyWcdBf.js +14 -0
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/0vzGySSF.js +0 -1
  319. package/web/app/immutable/chunks/4rRlR2tp.js +0 -2
  320. package/web/app/immutable/chunks/BV8D9pH6.js +0 -158
  321. package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
  322. package/web/app/immutable/chunks/KU76P7cR.js +0 -1
  323. package/web/app/immutable/chunks/XS67_4Nj.js +0 -2
  324. package/web/app/immutable/chunks/hY0rMePc.js +0 -1
  325. package/web/app/immutable/entry/start.Dyk9KswN.js +0 -1
  326. package/web/app/immutable/nodes/10.DkGJji_v.js +0 -39
  327. package/web/app/immutable/nodes/9.VZM4RxD5.js +0 -14
@@ -1 +1 @@
1
- import{a0 as b,aR as o,aP as c,l,bu as p,bT as v,bL as g,bM as f,aQ as m}from"./3SdAC2_C.js";import{B as y}from"./hY0rMePc.js";function R(u,_,d=!1){var n;o&&(n=m,c());var s=new y(u),h=d?l:0;function t(a,r){if(o){var e=p(n);if(a!==parseInt(e.substring(1))){var i=v();g(i),s.anchor=i,f(!1),s.ensure(a,r),f(!0);return}}s.ensure(a,r)}b(()=>{var a=!1;_((r,e=0)=>{a=!0,t(e,r)}),a||t(-1,null)},h)}export{R as i};
1
+ import{a0 as b,aR as o,aP as c,l,bu as p,bT as v,bL as g,bM as f,aQ as m}from"./3SdAC2_C.js";import{B as y}from"./Dws-34a7.js";function R(u,_,d=!1){var n;o&&(n=m,c());var s=new y(u),h=d?l:0;function t(a,r){if(o){var e=p(n);if(a!==parseInt(e.substring(1))){var i=v();g(i),s.anchor=i,f(!1),s.ensure(a,r),f(!0);return}}s.ensure(a,r)}b(()=>{var a=!1;_((r,e=0)=>{a=!0,t(e,r)}),a||t(-1,null)},h)}export{R as i};
@@ -1 +1 @@
1
- import{t as gt,bo as n,bm as a,bw as Ct,b as pt}from"./hY0rMePc.js";import{bs as bt,aD as g,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as C,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./3SdAC2_C.js";import{i as p}from"./BWmYJDmC.js";import{t as At}from"./CjZEyjv4.js";import"./leDczq9h.js";import"./COB2k0Aa.js";import"./uAXEbxa8.js";import{D as ht}from"./Bb9tq6rt.js";import{l}from"./B7JHU89G.js";import"./rNjiZ_3W.js";import"./CbqBbwIN.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});bt(e,!0);let b=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),E=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),I=n(e,"mode",7,"delete"),m=n(e,"activeAgentCount",7,0),d=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),K=n(e,"onConfirm",7),L=n(e,"onCancel",7);const Y=C(()=>m()>0||d()>0||c()>0||_()>0);function Z(){b(!1),L()?.()}async function $(){await K()?.(),b(!1)}var tt={get open(){return b()},set open(t=!1){b(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return E()},set body(t){E(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return I()},set mode(t="delete"){I(t),o()},get activeAgentCount(){return m()},set activeAgentCount(t=0){m(t),o()},get activeHookCount(){return d()},set activeHookCount(t=0){d(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return K()},set onConfirm(t){K(t),o()},get onCancel(){return L()},set onCancel(t){L(t),o()},$set:Ct,$on:(t,O)=>pt(e,t,O)};{const t=j=>{var q=Bt(),M=z(q);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};p(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_agentsStopped_one({count:l(m())}):a.modals_deleteWarning_agentsStopped_many({count:l(m())})]),u(r,i)};p(B,r=>{m()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(d())}):a.modals_deleteWarning_hooksCancelled_many({count:l(d())})]),u(r,i)};p(Q,r=>{d()>0&&r(ct)})}var U=A(Q,2);{var mt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};p(U,r=>{c()>0&&r(mt)})}var dt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};p(v,R=>{I()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};p(dt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};p(N,f=>{g(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>E()??xt),G(q),u(j,q)};let O=C(()=>!x()),et=C(()=>x()&&y()==="confirm"),nt=C(()=>!x()||y()==="cancel"),ot=C(()=>y()==="cancel"?"ignore":"submit"),rt=C(()=>y()==="cancel"?"ignore":"submit"),at=C(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return g(O)},get canSubmit(){return x()},get focusSubmit(){return g(et)},get focusCancel(){return g(nt)},get enterKey(){return g(ot)},get modEnter(){return g(rt)},get destructive(){return g(at)},onConfirm:$,onCancel:Z,get open(){return b()},set open(j){b(j)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
1
+ import{t as gt,bo as n,bm as a,bw as Ct,b as pt}from"./Dws-34a7.js";import{bs as bt,aD as g,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as C,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./3SdAC2_C.js";import{i as p}from"./DLCFUd4s.js";import{t as At}from"./D-rRuAXZ.js";import"./BD9db4FR.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import{D as ht}from"./C9ew0Hx2.js";import{l}from"./B8HnjSSF.js";import"./BPuz5cN_.js";import"./gU2qspu9.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});bt(e,!0);let b=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),E=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),I=n(e,"mode",7,"delete"),m=n(e,"activeAgentCount",7,0),d=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),K=n(e,"onConfirm",7),L=n(e,"onCancel",7);const Y=C(()=>m()>0||d()>0||c()>0||_()>0);function Z(){b(!1),L()?.()}async function $(){await K()?.(),b(!1)}var tt={get open(){return b()},set open(t=!1){b(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return E()},set body(t){E(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return I()},set mode(t="delete"){I(t),o()},get activeAgentCount(){return m()},set activeAgentCount(t=0){m(t),o()},get activeHookCount(){return d()},set activeHookCount(t=0){d(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return K()},set onConfirm(t){K(t),o()},get onCancel(){return L()},set onCancel(t){L(t),o()},$set:Ct,$on:(t,O)=>pt(e,t,O)};{const t=j=>{var q=Bt(),M=z(q);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};p(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_agentsStopped_one({count:l(m())}):a.modals_deleteWarning_agentsStopped_many({count:l(m())})]),u(r,i)};p(B,r=>{m()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(d())}):a.modals_deleteWarning_hooksCancelled_many({count:l(d())})]),u(r,i)};p(Q,r=>{d()>0&&r(ct)})}var U=A(Q,2);{var mt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};p(U,r=>{c()>0&&r(mt)})}var dt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};p(v,R=>{I()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};p(dt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};p(N,f=>{g(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>E()??xt),G(q),u(j,q)};let O=C(()=>!x()),et=C(()=>x()&&y()==="confirm"),nt=C(()=>!x()||y()==="cancel"),ot=C(()=>y()==="cancel"?"ignore":"submit"),rt=C(()=>y()==="cancel"?"ignore":"submit"),at=C(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return g(O)},get canSubmit(){return x()},get focusSubmit(){return g(et)},get focusCancel(){return g(nt)},get enterKey(){return g(ot)},get modEnter(){return g(rt)},get destructive(){return g(at)},onConfirm:$,onCancel:Z,get open(){return b()},set open(j){b(j)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
@@ -1,4 +1,4 @@
1
- var d=Object.defineProperty;var f=(e,s,t)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>f(e,typeof s!="symbol"?s+"":s,t);import{aV as p,o as g,aT as c,l as u}from"./Dkgk_rvZ.js";import{h as b}from"./DEB8jcix.js";function m(e,s,t,r=!1){const o=[0];if(t.decorations?.some(i=>typeof i.start=="number"||typeof i.end=="number")===!0)for(let i=e.indexOf(`
1
+ var d=Object.defineProperty;var f=(e,s,t)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>f(e,typeof s!="symbol"?s+"":s,t);import{aV as p,o as g,aT as c,l as u}from"./C3-81PRC.js";import{h as b}from"./DEB8jcix.js";function m(e,s,t,r=!1){const o=[0];if(t.decorations?.some(i=>typeof i.start=="number"||typeof i.end=="number")===!0)for(let i=e.indexOf(`
2
2
  `);i!==-1;i=e.indexOf(`
3
3
  `,i+1))o.push(i+1);const a={type:"element",tagName:"code",properties:{},children:[]},h=p(s.tokens,{decorations:t.decorations,mergeWhitespaces:t.mergeWhitespaces,lineOffsets:o,cacheHtmlStyles:r});for(let i=0;i<h.length;i++)i>0&&a.children.push({type:"text",value:`
4
4
  `}),a.children.push(h[i]);const l={type:"root",children:[{type:"element",tagName:"pre",properties:{class:"diffs",style:s.rootStyle===!1?void 0:s.rootStyle??[s.fg!=null?`color:${s.fg}`:"",s.bg!=null?`background-color:${s.bg}`:""].filter(Boolean).join(";"),tabIndex:0},children:[a]}]};return b(l)}var O=class{constructor(e,s){n(this,"name");n(this,"themeResolver");n(this,"disposed",!1);this.name=e,this.themeResolver=s,g(e)}codeToHtml(e,s){return m(e,this.codeToTokens(e,s),s,this.name==="highlights")}get isDisposed(){return this.disposed}dispose(){this.disposed||(this.disposed=!0,this.releaseResources(),c())}assertNotDisposed(){if(this.disposed)throw new u}},v=class{constructor(){n(this,"disposed",!1);n(this,"stableOffset",0);n(this,"unstable",[]);n(this,"pendingCarriageReturn","")}enqueue(e){this.assertActive(),e=this.pendingCarriageReturn+e,this.pendingCarriageReturn=e.endsWith("\r")?"\r":"",this.pendingCarriageReturn!==""&&(e=e.slice(0,-1));const s=this.unstable.length,t=[],{unstable:r,tailLength:o}=this.tokenizeChunk(e,t);return this.pendingCarriageReturn!==""&&r.push({content:"\r",offset:this.stableOffset+o}),this.unstable=r,{recall:s,stable:t,unstable:r}}pushLineBreak(e,s,t){for(let r=0;r<t.length;r++)e.push({content:t[r],offset:this.stableOffset+s+r});this.stableOffset+=s+t.length}close(){const e=this.unstable;return this.dispose(),{stable:e}}clear(){this.assertActive(),this.stableOffset=0,this.unstable=[],this.pendingCarriageReturn="",this.resetSource()}dispose(){this.disposed||(this.disposed=!0,this.unstable=[],this.releaseSource())}copyStateTo(e){e.stableOffset=this.stableOffset,e.unstable=this.unstable.slice(),e.pendingCarriageReturn=this.pendingCarriageReturn}assertActive(){if(this.disposed)throw new Error("stream tokenizer is disposed")}};export{v as B,O as D};
@@ -1,4 +1,4 @@
1
- import{c as P}from"./CpMQqUEz.js";import{c as J,f as Q,C as Y,H as y,g as G,b as X,F as Z,S as $,a as K}from"./DbDI5c8r.js";import{D as Oe,d as Ie,e as Le,R as Ne,h as Ee,i as Ue,j as De,t as Be,k as Re}from"./DbDI5c8r.js";import{l as _,g as B}from"./BwLxx4IG.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/json.worker-Cgaz53LV.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,o="",p=0,l=16,u=0,g=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,o="",p=0,l=16,c=0}function N(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
1
+ import{c as P}from"./7OH6WUSt.js";import{c as J,f as Q,C as Y,H as y,g as G,b as X,F as Z,S as $,a as K}from"./Dxfvrgme.js";import{D as Oe,d as Ie,e as Le,R as Ne,h as Ee,i as Ue,j as De,t as Be,k as Re}from"./Dxfvrgme.js";import{l as _,g as B}from"./7y3Z0Q49.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/json.worker-Cgaz53LV.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,o="",p=0,l=16,u=0,g=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,o="",p=0,l=16,c=0}function N(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
2
2
  `;break;case 114:s+="\r";break;case 116:s+=" ";break;case 117:const f=O(4);f>=0?s+=String.fromCharCode(f):c=4;break;default:c=5}m=n;continue}if(a>=0&&a<=31)if(I(a)){s+=e.substring(m,n),c=2;break}else c=6;n++}return s}function D(){if(o="",c=0,p=n,g=u,v=w,n>=t)return p=t,l=17;let s=e.charCodeAt(n);if(E(s)){do n++,o+=String.fromCharCode(s),s=e.charCodeAt(n);while(E(s));return l=15}if(I(s))return n++,o+=String.fromCharCode(s),s===13&&e.charCodeAt(n)===10&&(n++,o+=`
3
3
  `),u++,w=n,l=14;switch(s){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,o=q(),l=10;case 47:const m=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<t&&!I(e.charCodeAt(n));)n++;return o=e.substring(m,n),l=12}if(e.charCodeAt(n+1)===42){n+=2;const a=t-1;let r=!1;for(;n<a;){const f=e.charCodeAt(n);if(f===42&&e.charCodeAt(n+1)===47){n+=2,r=!0;break}n++,I(f)&&(f===13&&e.charCodeAt(n)===10&&n++,u++,w=n)}return r||(n++,c=1),o=e.substring(m,n),l=13}return o+=String.fromCharCode(s),n++,l=16;case 45:if(o+=String.fromCharCode(s),n++,n===t||!T(e.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=N(),l=11;default:for(;n<t&&z(s);)n++,s=e.charCodeAt(n);if(p!==n){switch(o=e.substring(p,n),o){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return o+=String.fromCharCode(s),n++,l=16}}function z(s){if(E(s)||I(s))return!1;switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function d(){let s;do s=D();while(s>=12&&s<=15);return s}return{setPosition:U,getPosition:()=>n,scan:i?d:D,getToken:()=>l,getTokenValue:()=>o,getTokenOffset:()=>p,getTokenLength:()=>n-p,getTokenStartLine:()=>g,getTokenStartCharacter:()=>p-v,getTokenError:()=>c}}function E(e){return e===32||e===9}function I(e){return e===10||e===13}function T(e){return e>=48&&e<=57}var R;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(R||(R={}));new Array(20).fill(0).map((e,i)=>" ".repeat(i));const A=200;new Array(A).fill(0).map((e,i)=>`
4
4
  `+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>"\r"+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>`\r
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CwTWayd0.js","/app/immutable/chunks/DXdFemRu.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/B4mHWFlW.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CjZEyjv4.js","/app/immutable/chunks/hY0rMePc.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/B4PfEXaO.js"])))=>i.map(i=>d[i]);
2
- import{t as Zt,bo as J,bw as te,bs as U,bq as ee,b as re,bm as i,_ as se}from"./hY0rMePc.js";import{bo as ae,bs as ne,ca as C,bH as N,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as G,aA as Q,bl as R,bO as h,ay as wt,aB as y}from"./3SdAC2_C.js";import{i as L}from"./BWmYJDmC.js";import{f as $t,g as le,s as ce}from"./leDczq9h.js";import{b as ue}from"./Dn334wJv.js";import{b as de}from"./D3yXvqwY.js";import{Jx as m,D2 as pe,CU as me,CT as fe,Jr as _e,CF as ve,iA as be,i_ as ge}from"./DXdFemRu.js";import{d as xe,T as he,D as ye,L as ke,o as we}from"./CPel99qV.js";import{F as ct,d3 as $e,cb as Se,c$ as Ae}from"./DETS1-K4.js";import{f as St}from"./CIU_APaR.js";import{m as rt}from"./x_GKKTQV.js";import"./rNjiZ_3W.js";import"./CjZEyjv4.js";import"./ChTqQfQN.js";import"./BXT21uPn.js";import{r as Ce}from"./DyHx5QFY.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./Bk1CZ_aH.js";import{g as De}from"./CAmQkXZq.js";import{c4 as Re,d$ as Le,dC as Ft}from"./C9aF-Sor.js";import"./COB2k0Aa.js";import"./uAXEbxa8.js";import"./CbqBbwIN.js";import{e as Ie}from"./CJW4jhjq.js";import{u as Ot}from"./-31r5MID.js";var Dt=y("<!> ",1),Te=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),qe=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Be=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Ee=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Pe=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Me=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),Ue=y('<span class="sr-only"> </span>'),We=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),je=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function ze(_,c){const j=ae();if(new.target)return Zt({component:ze,..._});ne(c,!0);const I=()=>U(Mt,"$outputAuthority",T),u=()=>U(Tt,"$runtime$",T),v=()=>U(qt,"$output$",T),$=()=>U(Pt,"$codeFontFamilyCSS",T),W=()=>U(Bt,"$retainedOutput$",T),Rt=()=>U(Et,"$hidesAgentLifecycleActions$",T),dt=()=>U(It,"$script$",T),[T,Lt]=ee();let S=J(c,"scriptId",7),b=J(c,"workspaceId",7),st=J(c,"class",7,""),at=J(c,"runDisabled",7,!1),q=J(c,"runDisabledReason",7,null);const pt=G(()=>at()||q()!==null),B=lt(""),z=lt(""),mt=lt("");let nt=kt(!1);C(()=>B.set(b())),C(()=>z.set(S()));let E,o=null,H=null,Y=null,V=null,P=null,X=null;const It=ut(B,z),Tt=Fe(B,z),qt=At(B,z),Bt=Oe(B,z,mt),Et=Re(B),Pt=De(),Mt=Le(B),ft=crypto.randomUUID();C(()=>{const t=b();return S(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=S(),n=I(),r=u();if(!n||!t||!e)return;r.status,r.startedAt;const a=crypto.randomUUID();return mt.set(a),N(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,a)),()=>m.dispatch(fe(t,e,a))});let Z=kt(0);const Ut=G(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function Wt(){if(!E||o)return;V=new he(E);const t=V.getCurrentTheme();o=new ye({allowProposedApi:!0,linkHandler:{activate:(r,a)=>e(a)},fontFamily:$(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),o.attachCustomKeyEventHandler(r=>{const a=r.metaKey||r.ctrlKey;return!(a&&r.key==="`"||a&&r.key==="j"||a&&r.key==="k")}),H=new we,o.loadAddon(H);function e(r){try{const a=new URL(r);a.hostname==="localhost"||a.hostname==="127.0.0.1"?Ce(r).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./CwTWayd0.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}}const n=new ke((r,a)=>e(a));o.loadAddon(n),o.open(E),V.applyTheme(o),X=requestAnimationFrame(()=>{X=null,H?.fit()}),Y=new ResizeObserver(()=>{H?.fit()}),Y.observe(E),jt()}function jt(){if(!o)return;const t=At.select(m.state,b(),S());t.chunks.length>0&&o.write(t.chunks.map(e=>e.text).join("")),N(Z,t.dropped+t.chunks.length)}function _t(){P!==null&&(cancelAnimationFrame(P),P=null),X!==null&&(cancelAnimationFrame(X),X=null),Y?.disconnect(),Y=null,V?.dispose(),V=null;const t=o;o=null,H=null,N(Z,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Z)),n=t.dropped+t.chunks.length;if(!o||n<=e)return;const r=Math.max(e-t.dropped,0);o.write(t.chunks.slice(r).map(a=>a.text).join("")),N(Z,n)}),C(()=>{const t=$();o&&o.options.fontFamily!==t&&(o.options.fontFamily=t)});function zt(){F(pt)||m.dispatch(_e(b(),S()))}function Ht(){if(!b()){rt.error(i.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),S(),W()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&E&&!o&&(P!==null&&cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=null,Wt()}))}),ie(()=>{_t()});var Vt={get scriptId(){return S()},set scriptId(t){S(t),Q()},get workspaceId(){return b()},set workspaceId(t){b(t),Q()},get class(){return st()},set class(t=""){st(t),Q()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),Q()},get runDisabledReason(){return q()},set runDisabledReason(t=null){q(t),Q()},$set:te,$on:(t,e)=>re(c,t,e)},tt=je(),vt=O(tt);{var Xt=t=>{var e=Te(),n=O(e),r=O(n),a=O(r);ct(a,{get icon(){return $e},size:"xs"}),D(r);var g=p(r,2),k=R(g,!0);D(n);var A=p(n,2);{var d=s=>{St(s,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Ht,children:(l,w)=>{var M=Dt(),K=wt(M);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),f(l,M)},$$slots:{default:!0}})};L(A,s=>{Rt()||s(d)})}D(e),x(s=>h(k,s),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};L(vt,t=>{F(Ut)&&t(Xt)})}var bt=p(vt,2);{var Kt=t=>{var e=Ee(),n=O(e),r=R(n,!0),a=p(n,2),g=R(a,!0),k=p(a,2);{var A=s=>{var l=qe();let w;var M=R(l,!0);x(()=>{w=le(l,"",w,{"font-family":$()}),h(M,W().text)}),f(s,l)},d=s=>{var l=Be(),w=R(l,!0);x(M=>h(w,M),[()=>W().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),f(s,l)};L(k,s=>{W().status==="available"?s(A):s(d,-1)})}D(e),x((s,l)=>{h(r,s),h(g,l)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),de("open","toggle",e,s=>N(nt,s),()=>F(nt)),f(t,e)};L(bt,t=>{W()&&t(Kt)})}var gt=p(bt,2);{var Jt=t=>{var e=Pe(),n=R(e,!0);x(r=>h(n,r),[()=>i.terminal_scriptOutput_live_label()]),f(t,e)};L(gt,t=>{v().chunks.length>0&&W()&&t(Jt)})}var xt=p(gt,2);{var Nt=t=>{var e=We(),n=O(e),r=p(O(n),2);{var a=d=>{var s=Me(),l=R(s,!0);x(w=>h(l,w),[()=>ve(dt())]),f(d,s)};L(r,d=>{dt()&&d(a)})}var g=p(r,2);{let d=G(()=>q()??void 0),s=G(()=>i.terminal_scriptOutput_run_label()),l=G(()=>q()?j:void 0);St(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(s)},get"aria-describedby"(){return F(l)},onclick:zt,class:"text-muted-foreground hover:text-foreground",children:(w,M)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return Se},class:"h-3 w-3 mr-1"});var ot=p(et);x(Yt=>h(ot,` ${Yt??""}`),[()=>i.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var s=Ue(),l=R(s,!0);x(()=>{ce(s,"id",j),h(l,q())}),f(d,s)};L(k,d=>{q()&&d(A)})}D(n),D(e),f(t,e)};L(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Nt)})}var it=p(xt,2);let ht;var Gt=O(it);ue(Gt,t=>E=t,()=>E),D(it),D(tt),x(()=>{$t(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=$t(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Qt=oe(Vt);return Lt(),Qt}async function fr(_,c,j){const I=ut.select(m.state,_,c);if(!I||!j()||!Ct.select(m.state,_,c))return;const u=Ot(I.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(i.workspace_client_accessChanged_error());return}if(!await Ie({title:i.scripts_delete_title({name:I.name}),description:u?i.scripts_delete_running_description():i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(i.workspace_client_accessChanged_error());return}const $=ut.select(m.state,_,c);if(!j()||!$||$.createdAt!==I.createdAt||$.name!==I.name||!u&&Ot($.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(i.scripts_delete_changed_error());return}m.dispatch(ge(_,c,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{ze as S,fr as c};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Clo7aK1n.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/B6eTPmJH.js"])))=>i.map(i=>d[i]);
2
+ import{t as Zt,bo as J,bw as te,bs as U,bq as ee,b as re,bm as i,_ as se}from"./Dws-34a7.js";import{bo as ae,bs as ne,ca as C,bH as N,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as G,aA as Q,bl as R,bO as h,ay as wt,aB as y}from"./3SdAC2_C.js";import{i as L}from"./DLCFUd4s.js";import{f as $t,g as le,s as ce}from"./BD9db4FR.js";import{b as ue}from"./Dn334wJv.js";import{b as de}from"./D3yXvqwY.js";import{Jx as m,D2 as pe,CU as me,CT as fe,Jr as _e,CF as ve,iA as be,i_ as ge}from"./4g_iHoQm.js";import{d as xe,T as he,D as ye,L as ke,o as we}from"./DDb9H7X6.js";import{F as ct,d3 as $e,cb as Se,c$ as Ae}from"./CGYPBD6G.js";import{f as St}from"./BIGqOuh0.js";import{m as rt}from"./rXKOJqUt.js";import"./BPuz5cN_.js";import"./D-rRuAXZ.js";import"./ChTqQfQN.js";import"./DcOkWaeN.js";import{r as Ce}from"./nwO3KCpP.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./hNQ1u1TD.js";import{g as De}from"./Dval4sTX.js";import{c4 as Re,d$ as Le,dC as Ft}from"./SbTG0nwQ.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import"./gU2qspu9.js";import{e as Ie}from"./C8LrJXqa.js";import{u as Ot}from"./BupDQr_B.js";var Dt=y("<!> ",1),Te=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),qe=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Be=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Ee=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Pe=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Me=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),Ue=y('<span class="sr-only"> </span>'),We=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),je=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function ze(_,c){const j=ae();if(new.target)return Zt({component:ze,..._});ne(c,!0);const I=()=>U(Mt,"$outputAuthority",T),u=()=>U(Tt,"$runtime$",T),v=()=>U(qt,"$output$",T),$=()=>U(Pt,"$codeFontFamilyCSS",T),W=()=>U(Bt,"$retainedOutput$",T),Rt=()=>U(Et,"$hidesAgentLifecycleActions$",T),dt=()=>U(It,"$script$",T),[T,Lt]=ee();let S=J(c,"scriptId",7),b=J(c,"workspaceId",7),st=J(c,"class",7,""),at=J(c,"runDisabled",7,!1),q=J(c,"runDisabledReason",7,null);const pt=G(()=>at()||q()!==null),B=lt(""),z=lt(""),mt=lt("");let nt=kt(!1);C(()=>B.set(b())),C(()=>z.set(S()));let E,o=null,H=null,Y=null,V=null,P=null,X=null;const It=ut(B,z),Tt=Fe(B,z),qt=At(B,z),Bt=Oe(B,z,mt),Et=Re(B),Pt=De(),Mt=Le(B),ft=crypto.randomUUID();C(()=>{const t=b();return S(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=S(),n=I(),r=u();if(!n||!t||!e)return;r.status,r.startedAt;const a=crypto.randomUUID();return mt.set(a),N(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,a)),()=>m.dispatch(fe(t,e,a))});let Z=kt(0);const Ut=G(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function Wt(){if(!E||o)return;V=new he(E);const t=V.getCurrentTheme();o=new ye({allowProposedApi:!0,linkHandler:{activate:(r,a)=>e(a)},fontFamily:$(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),o.attachCustomKeyEventHandler(r=>{const a=r.metaKey||r.ctrlKey;return!(a&&r.key==="`"||a&&r.key==="j"||a&&r.key==="k")}),H=new we,o.loadAddon(H);function e(r){try{const a=new URL(r);a.hostname==="localhost"||a.hostname==="127.0.0.1"?Ce(r).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./Clo7aK1n.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}}const n=new ke((r,a)=>e(a));o.loadAddon(n),o.open(E),V.applyTheme(o),X=requestAnimationFrame(()=>{X=null,H?.fit()}),Y=new ResizeObserver(()=>{H?.fit()}),Y.observe(E),jt()}function jt(){if(!o)return;const t=At.select(m.state,b(),S());t.chunks.length>0&&o.write(t.chunks.map(e=>e.text).join("")),N(Z,t.dropped+t.chunks.length)}function _t(){P!==null&&(cancelAnimationFrame(P),P=null),X!==null&&(cancelAnimationFrame(X),X=null),Y?.disconnect(),Y=null,V?.dispose(),V=null;const t=o;o=null,H=null,N(Z,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Z)),n=t.dropped+t.chunks.length;if(!o||n<=e)return;const r=Math.max(e-t.dropped,0);o.write(t.chunks.slice(r).map(a=>a.text).join("")),N(Z,n)}),C(()=>{const t=$();o&&o.options.fontFamily!==t&&(o.options.fontFamily=t)});function zt(){F(pt)||m.dispatch(_e(b(),S()))}function Ht(){if(!b()){rt.error(i.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),S(),W()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&E&&!o&&(P!==null&&cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=null,Wt()}))}),ie(()=>{_t()});var Vt={get scriptId(){return S()},set scriptId(t){S(t),Q()},get workspaceId(){return b()},set workspaceId(t){b(t),Q()},get class(){return st()},set class(t=""){st(t),Q()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),Q()},get runDisabledReason(){return q()},set runDisabledReason(t=null){q(t),Q()},$set:te,$on:(t,e)=>re(c,t,e)},tt=je(),vt=O(tt);{var Xt=t=>{var e=Te(),n=O(e),r=O(n),a=O(r);ct(a,{get icon(){return $e},size:"xs"}),D(r);var g=p(r,2),k=R(g,!0);D(n);var A=p(n,2);{var d=s=>{St(s,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Ht,children:(l,w)=>{var M=Dt(),K=wt(M);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),f(l,M)},$$slots:{default:!0}})};L(A,s=>{Rt()||s(d)})}D(e),x(s=>h(k,s),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};L(vt,t=>{F(Ut)&&t(Xt)})}var bt=p(vt,2);{var Kt=t=>{var e=Ee(),n=O(e),r=R(n,!0),a=p(n,2),g=R(a,!0),k=p(a,2);{var A=s=>{var l=qe();let w;var M=R(l,!0);x(()=>{w=le(l,"",w,{"font-family":$()}),h(M,W().text)}),f(s,l)},d=s=>{var l=Be(),w=R(l,!0);x(M=>h(w,M),[()=>W().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),f(s,l)};L(k,s=>{W().status==="available"?s(A):s(d,-1)})}D(e),x((s,l)=>{h(r,s),h(g,l)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),de("open","toggle",e,s=>N(nt,s),()=>F(nt)),f(t,e)};L(bt,t=>{W()&&t(Kt)})}var gt=p(bt,2);{var Jt=t=>{var e=Pe(),n=R(e,!0);x(r=>h(n,r),[()=>i.terminal_scriptOutput_live_label()]),f(t,e)};L(gt,t=>{v().chunks.length>0&&W()&&t(Jt)})}var xt=p(gt,2);{var Nt=t=>{var e=We(),n=O(e),r=p(O(n),2);{var a=d=>{var s=Me(),l=R(s,!0);x(w=>h(l,w),[()=>ve(dt())]),f(d,s)};L(r,d=>{dt()&&d(a)})}var g=p(r,2);{let d=G(()=>q()??void 0),s=G(()=>i.terminal_scriptOutput_run_label()),l=G(()=>q()?j:void 0);St(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(s)},get"aria-describedby"(){return F(l)},onclick:zt,class:"text-muted-foreground hover:text-foreground",children:(w,M)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return Se},class:"h-3 w-3 mr-1"});var ot=p(et);x(Yt=>h(ot,` ${Yt??""}`),[()=>i.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var s=Ue(),l=R(s,!0);x(()=>{ce(s,"id",j),h(l,q())}),f(d,s)};L(k,d=>{q()&&d(A)})}D(n),D(e),f(t,e)};L(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Nt)})}var it=p(xt,2);let ht;var Gt=O(it);ue(Gt,t=>E=t,()=>E),D(it),D(tt),x(()=>{$t(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=$t(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Qt=oe(Vt);return Lt(),Qt}async function fr(_,c,j){const I=ut.select(m.state,_,c);if(!I||!j()||!Ct.select(m.state,_,c))return;const u=Ot(I.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(i.workspace_client_accessChanged_error());return}if(!await Ie({title:i.scripts_delete_title({name:I.name}),description:u?i.scripts_delete_running_description():i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(i.workspace_client_accessChanged_error());return}const $=ut.select(m.state,_,c);if(!j()||!$||$.createdAt!==I.createdAt||$.name!==I.name||!u&&Ot($.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(i.scripts_delete_changed_error());return}m.dispatch(ge(_,c,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{ze as S,fr as c};
@@ -1 +1 @@
1
- import{bv as f}from"./3SdAC2_C.js";import{W as o}from"./DONrLvvt.js";import{bm as u}from"./hY0rMePc.js";import{m as b}from"./x_GKKTQV.js";import"./leDczq9h.js";import"./CjZEyjv4.js";import"./rNjiZ_3W.js";import"./ChTqQfQN.js";import"./BXT21uPn.js";import"./DXdFemRu.js";function l(){return globalThis.electronAPI??null}function i(r){const e=r?.enabled;return typeof e=="boolean"?e:null}const k=f(!1,r=>{const e=l();if(!e)return;let t=!0,s=!1;const c=e.on(o.DOCK_LAB_CHANGED,a=>{if(!t)return;const n=i(a);n!==null&&(s=!0,r(n))});return e.invoke(o.GET_DOCK_LAB,{}).then(a=>{const n=i(a);t&&!s&&n!==null&&r(n)}).catch(()=>{}),()=>{t=!1,e.offById(o.DOCK_LAB_CHANGED,c)}});async function d(r){const e=l();if(!e)return!1;try{const t=await e.invoke(o.SET_DOCK_LAB,{enabled:r});if(i(t)===r)return!0}catch{}return b.error(u.settings_gitWorkspace_saveError()),!1}async function y(r){await d(r)}export{k as d,d as r,y as s};
1
+ import{bv as f}from"./3SdAC2_C.js";import{W as o}from"./DONrLvvt.js";import{bm as u}from"./Dws-34a7.js";import{m as b}from"./rXKOJqUt.js";import"./BD9db4FR.js";import"./D-rRuAXZ.js";import"./BPuz5cN_.js";import"./ChTqQfQN.js";import"./DcOkWaeN.js";import"./4g_iHoQm.js";function l(){return globalThis.electronAPI??null}function i(r){const e=r?.enabled;return typeof e=="boolean"?e:null}const k=f(!1,r=>{const e=l();if(!e)return;let t=!0,s=!1;const c=e.on(o.DOCK_LAB_CHANGED,a=>{if(!t)return;const n=i(a);n!==null&&(s=!0,r(n))});return e.invoke(o.GET_DOCK_LAB,{}).then(a=>{const n=i(a);t&&!s&&n!==null&&r(n)}).catch(()=>{}),()=>{t=!1,e.offById(o.DOCK_LAB_CHANGED,c)}});async function d(r){const e=l();if(!e)return!1;try{const t=await e.invoke(o.SET_DOCK_LAB,{enabled:r});if(i(t)===r)return!0}catch{}return b.error(u.settings_gitWorkspace_saveError()),!1}async function y(r){await d(r)}export{k as d,d as r,y as s};
@@ -1,4 +1,4 @@
1
- import{p as I}from"./BswbJQ0U.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./Cxz7a3ln.js";import{p as U}from"./CwHPdS9l.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./CPaH4fRt.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./DxPvfI2H.js";import{p as U}from"./BgDnzAo4.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1 +1 @@
1
- import{t as X,bo as s,bw as Y,bp as Z,b as $}from"./hY0rMePc.js";import{bs as tt,a5 as l,bS as C,bf as F,bA as v,b_ as A,W as m,bn as et,aA as n,aB as p,be as at,b$ as st,bO as nt,aD as it,c9 as rt}from"./3SdAC2_C.js";import{i as f}from"./BWmYJDmC.js";import{t as S}from"./CjZEyjv4.js";import{b as ot,e as L,c as O,f as j}from"./leDczq9h.js";import{f as ct}from"./CIU_APaR.js";import"./rNjiZ_3W.js";import"./DnHJL326.js";const dt="px-4",wt="mx-2 px-2";var lt=new Set(["$$slots","$$events","$$legacy","title","description","icon","actions","actionLabel","onAction","children","density","emphasis","severity","inset","class","contentClass"]),vt=p('<div data-slot="empty-state-icon"><!></div>'),mt=p('<div data-slot="empty-state-title"><!></div>'),ut=p('<div data-slot="empty-state-description"><!></div>'),ft=p("<div><!> <!></div>"),pt=p('<div data-slot="empty-state-actions" class="flex justify-center gap-2"><!> <!></div>'),_t=p("<section><div><!> <!> <!> <!></div></section>");function yt(G,e){if(new.target)return X({component:yt,...G});tt(e,!0);let c=s(e,"title",7),_=s(e,"description",7),w=s(e,"icon",7),E=s(e,"actions",7),y=s(e,"actionLabel",7),g=s(e,"onAction",7),k=s(e,"children",7),r=s(e,"density",7,"default"),x=s(e,"emphasis",7,"routine"),T=s(e,"severity",7,"routine"),N=s(e,"inset",7,!1),B=s(e,"class",7),P=s(e,"contentClass",7),H=Z(e,lt);var J={get title(){return c()},set title(t){c(t),n()},get description(){return _()},set description(t){_(t),n()},get icon(){return w()},set icon(t){w(t),n()},get actions(){return E()},set actions(t){E(t),n()},get actionLabel(){return y()},set actionLabel(t){y(t),n()},get onAction(){return g()},set onAction(t){g(t),n()},get children(){return k()},set children(t){k(t),n()},get density(){return r()},set density(t="default"){r(t),n()},get emphasis(){return x()},set emphasis(t="routine"){x(t),n()},get severity(){return T()},set severity(t="routine"){T(t),n()},get inset(){return N()},set inset(t=!1){N(t),n()},get class(){return B()},set class(t){B(t),n()},get contentClass(){return P()},set contentClass(t){P(t),n()},$set:Y,$on:(t,a)=>$(e,t,a)},R=_t();ot(R,t=>({"data-slot":"empty-state","data-density":r(),"data-emphasis":x(),"data-severity":T(),"data-inset":N()?"card":void 0,class:t,...H}),[()=>L("flex items-center justify-center text-center",r()==="compact"?"min-h-28 py-6":"min-h-48 py-10",N()?dt:r()==="compact"?"px-4":"px-6",B())]);var W=l(R),I=l(W);{var K=t=>{var a=vt(),d=l(a);S(d,w),v(a),A(b=>j(a,1,b),[()=>O(L("mx-auto flex w-fit",T()==="danger"?"text-danger":"text-muted-foreground"))]),m(t,a)};f(I,t=>{w()&&t(K)})}var U=C(I,2);{var M=t=>{var a=ft(),d=l(a);{var b=o=>{var i=mt(),D=l(i);S(D,c),v(i),A(u=>j(i,1,u),[()=>O(L(x()==="prominent"?"type-title font-semibold text-foreground":r()==="compact"?"type-caption font-normal":"type-body font-normal",x()==="routine"&&"text-muted-foreground"))]),m(o,i)};f(d,o=>{c()&&o(b)})}var z=C(d,2);{var h=o=>{var i=ut(),D=l(i);S(D,_),v(i),A(u=>j(i,1,u),[()=>O(L(c()&&"mt-1",c()||r()==="compact"?"type-caption":"type-body","text-muted-foreground"))]),m(o,i)};f(z,o=>{_()&&o(h)})}v(a),m(t,a)};f(U,t=>{(c()||_())&&t(M)})}var q=C(U,2);{var Q=t=>{var a=pt(),d=l(a);S(d,()=>E()??F);var b=C(d,2);{var z=h=>{{let o=rt(()=>r()==="compact"?"compact":"default");ct(h,{variant:"ghost",get size(){return it(o)},get onclick(){return g()},children:(i,D)=>{at();var u=st();A(()=>nt(u,y())),m(i,u)},$$slots:{default:!0}})}};f(b,h=>{y()&&g()&&h(z)})}v(a),m(t,a)};f(q,t=>{(E()||y()&&g())&&t(Q)})}var V=C(q,2);return S(V,()=>k()??F),v(W),v(R),A(t=>j(W,1,t),[()=>O(L("flex w-full max-w-md flex-col",r()==="compact"?"gap-3":"gap-4",P()))]),m(G,R),et(J)}export{dt as C,yt as E,wt as a};
1
+ import{t as X,bo as s,bw as Y,bp as Z,b as $}from"./Dws-34a7.js";import{bs as tt,a5 as l,bS as C,bf as F,bA as v,b_ as A,W as m,bn as et,aA as n,aB as p,be as at,b$ as st,bO as nt,aD as it,c9 as rt}from"./3SdAC2_C.js";import{i as f}from"./DLCFUd4s.js";import{t as S}from"./D-rRuAXZ.js";import{b as ot,e as L,c as O,f as j}from"./BD9db4FR.js";import{f as ct}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import"./C_SKcJv7.js";const dt="px-4",wt="mx-2 px-2";var lt=new Set(["$$slots","$$events","$$legacy","title","description","icon","actions","actionLabel","onAction","children","density","emphasis","severity","inset","class","contentClass"]),vt=p('<div data-slot="empty-state-icon"><!></div>'),mt=p('<div data-slot="empty-state-title"><!></div>'),ut=p('<div data-slot="empty-state-description"><!></div>'),ft=p("<div><!> <!></div>"),pt=p('<div data-slot="empty-state-actions" class="flex justify-center gap-2"><!> <!></div>'),_t=p("<section><div><!> <!> <!> <!></div></section>");function yt(G,e){if(new.target)return X({component:yt,...G});tt(e,!0);let c=s(e,"title",7),_=s(e,"description",7),w=s(e,"icon",7),E=s(e,"actions",7),y=s(e,"actionLabel",7),g=s(e,"onAction",7),k=s(e,"children",7),r=s(e,"density",7,"default"),x=s(e,"emphasis",7,"routine"),T=s(e,"severity",7,"routine"),N=s(e,"inset",7,!1),B=s(e,"class",7),P=s(e,"contentClass",7),H=Z(e,lt);var J={get title(){return c()},set title(t){c(t),n()},get description(){return _()},set description(t){_(t),n()},get icon(){return w()},set icon(t){w(t),n()},get actions(){return E()},set actions(t){E(t),n()},get actionLabel(){return y()},set actionLabel(t){y(t),n()},get onAction(){return g()},set onAction(t){g(t),n()},get children(){return k()},set children(t){k(t),n()},get density(){return r()},set density(t="default"){r(t),n()},get emphasis(){return x()},set emphasis(t="routine"){x(t),n()},get severity(){return T()},set severity(t="routine"){T(t),n()},get inset(){return N()},set inset(t=!1){N(t),n()},get class(){return B()},set class(t){B(t),n()},get contentClass(){return P()},set contentClass(t){P(t),n()},$set:Y,$on:(t,a)=>$(e,t,a)},R=_t();ot(R,t=>({"data-slot":"empty-state","data-density":r(),"data-emphasis":x(),"data-severity":T(),"data-inset":N()?"card":void 0,class:t,...H}),[()=>L("flex items-center justify-center text-center",r()==="compact"?"min-h-28 py-6":"min-h-48 py-10",N()?dt:r()==="compact"?"px-4":"px-6",B())]);var W=l(R),I=l(W);{var K=t=>{var a=vt(),d=l(a);S(d,w),v(a),A(b=>j(a,1,b),[()=>O(L("mx-auto flex w-fit",T()==="danger"?"text-danger":"text-muted-foreground"))]),m(t,a)};f(I,t=>{w()&&t(K)})}var U=C(I,2);{var M=t=>{var a=ft(),d=l(a);{var b=o=>{var i=mt(),D=l(i);S(D,c),v(i),A(u=>j(i,1,u),[()=>O(L(x()==="prominent"?"type-title font-semibold text-foreground":r()==="compact"?"type-caption font-normal":"type-body font-normal",x()==="routine"&&"text-muted-foreground"))]),m(o,i)};f(d,o=>{c()&&o(b)})}var z=C(d,2);{var h=o=>{var i=ut(),D=l(i);S(D,_),v(i),A(u=>j(i,1,u),[()=>O(L(c()&&"mt-1",c()||r()==="compact"?"type-caption":"type-body","text-muted-foreground"))]),m(o,i)};f(z,o=>{_()&&o(h)})}v(a),m(t,a)};f(U,t=>{(c()||_())&&t(M)})}var q=C(U,2);{var Q=t=>{var a=pt(),d=l(a);S(d,()=>E()??F);var b=C(d,2);{var z=h=>{{let o=rt(()=>r()==="compact"?"compact":"default");ct(h,{variant:"ghost",get size(){return it(o)},get onclick(){return g()},children:(i,D)=>{at();var u=st();A(()=>nt(u,y())),m(i,u)},$$slots:{default:!0}})}};f(b,h=>{y()&&g()&&h(z)})}v(a),m(t,a)};f(q,t=>{(E()||y()&&g())&&t(Q)})}var V=C(q,2);return S(V,()=>k()??F),v(W),v(R),A(t=>j(W,1,t),[()=>O(L("flex w-full max-w-md flex-col",r()==="compact"?"gap-3":"gap-4",P()))]),m(G,R),et(J)}export{dt as C,yt as E,wt as a};
@@ -1 +1 @@
1
- var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./hY0rMePc.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./Dkgk_rvZ.js";import{B as Ft,D as Kt}from"./Dh_uOrf0.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
1
+ var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./Dws-34a7.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./C3-81PRC.js";import{B as Ft,D as Kt}from"./DMeCi1eF.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
@@ -1 +1 @@
1
- import{t as ee,bo as i,bw as te,b as ae,br as qe,bs as xe,bq as He,bp as Ke,bm as N}from"./hY0rMePc.js";import{bs as re,b_ as $,aD as t,W as h,bA as q,bn as se,c9 as v,aA as l,aB as z,bV as O,br as Ve,ca as Me,bH as T,a5 as Q,bl as Z,bS as M,bO as be,ay as B,a7 as ke,aw as ze,bz as Pe}from"./3SdAC2_C.js";import{f as W}from"./CIU_APaR.js";import{Y as Xe}from"./rNjiZ_3W.js";import{F as I,cF as Ye,bF as Ae,d3 as Re,aC as Ge,cr as Je,bn as Qe,bi as Ze,bh as et,bg as tt}from"./DETS1-K4.js";import{ay as at,aB as rt}from"./Mh0PqgbP.js";import{f as st}from"./CGaMCAik.js";import{g as nt,i as it,I as lt}from"./D400ElMz.js";import{s as E,g as ot,f as De}from"./leDczq9h.js";import{a as Te}from"./-31r5MID.js";import{i as S}from"./BWmYJDmC.js";import{n as J,l as Ce,c as Le}from"./72S4_8Fo.js";import{m as ct}from"./B7JHU89G.js";import{a as ut}from"./BJ1Bk8co.js";import{al as mt,j as pe}from"./3BCyU2N-.js";var dt=z('<span class="svelte-dywwvd"></span>'),vt=z('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function Ue(w,a){if(new.target)return ee({component:Ue,...w});re(a,!0);let g=i(a,"levels",7);const r=v(()=>{const s=g().slice(-Te).map(m=>Number.isFinite(m)?Math.min(1,Math.max(0,m)):0);return[...new Array(Te-s.length).fill(0),...s]});var d={get levels(){return g()},set levels(s){g(s),l()},$set:te,$on:(s,m)=>ae(a,s,m)},_=vt();return nt(_,21,()=>t(r),it,(s,m)=>{var c=dt();let x;$(()=>{E(c,"data-level",t(m)),x=ot(c,"",x,{height:`${2+t(m)*12}px`})}),h(s,c)}),q(_),h(w,_),se(d)}var gt=z('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function Fe(w,a){if(new.target)return ee({component:Fe,...w});re(a,!0);let g=i(a,"levels",7),r=i(a,"startedAt",7,null),d=i(a,"elapsed",7),_=O(Ve(Date.now()));Me(()=>{if(!(d()!==void 0||r()===null))return T(_,Date.now(),!0),Xe.subscribe(new Date(r()),()=>T(_,Date.now(),!0),"second")});const s=v(()=>d()??st(r()===null?0:t(_)-r()));var m={get levels(){return g()},set levels(u){g(u),l()},get startedAt(){return r()},set startedAt(u=null){r(u),l()},get elapsed(){return d()},set elapsed(u){d(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)},c=gt(),x=Q(c),P=Z(x,!0),C=M(x,2);return Ue(C,{get levels(){return g()}}),q(c),$(()=>be(P,t(s))),h(w,c),se(m)}var ft=new Set(["$$slots","$$events","$$legacy","class"]),pt=z("<!> <!>",1);function bt(w,a){if(new.target)return ee({component:bt,...w});re(a,!0);const g=()=>xe(c,"$levels$",d),r=()=>xe(x,"$startedAt$",d),[d,_]=He();let s=i(a,"class",7,""),m=Ke(a,ft);const c=at(),x=rt();var P={get class(){return s()},set class(u=""){s(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)};{let u=v(()=>`dictation-stop-pill ${s()}`.trim());W(w,qe({variant:"ghost",size:"sm",get class(){return t(u)},"aria-pressed":"true"},()=>m,{children:(R,H)=>{var p=pt(),U=B(p);I(U,{get icon(){return Ye},size:14});var j=M(U,2);Fe(j,{get levels(){return g()},get startedAt(){return r()}}),h(R,p)},$$slots:{default:!0}}))}var C=se(P);return _(),C}var ht=z('<img class="w-full h-full object-cover"/>'),_t=z('<div class="flex size-full items-center justify-center bg-muted text-subtle"><!></div>'),yt=z("<div><!> <!></div> <!>",1),wt=z('<span class="tabular-nums opacity-70 shrink-0" data-testid="attachment-upload-progress"> </span>'),xt=z("<!> <!>",1),kt=z('<div class="w-4 h-4 rounded overflow-hidden shrink-0"><img class="w-full h-full object-cover"/></div>'),zt=z('<div><!> <span class="font-medium truncate max-w-30"> </span> <!> <!></div>');function Pt(w,a){if(new.target)return ee({component:Pt,...w});re(a,!0);let g=i(a,"id",7),r=i(a,"name",7),d=i(a,"type",7,""),_=i(a,"size",7),s=i(a,"file",7),m=i(a,"imageData",7),c=i(a,"imageMimeType",7),x=i(a,"imageUrl",7),P=i(a,"onRemove",7),C=i(a,"class",7,""),u=i(a,"variant",7,"chip"),R=i(a,"thumbnailClass",7,"w-16 h-16"),H=i(a,"disabled",7,!1),p=i(a,"placementStatus",7,void 0),U=i(a,"placementProgress",7,void 0),j=i(a,"placementError",7,void 0),K=i(a,"onRetry",7),V=O(null);const ne=v(()=>mt(c()||d()||s()?.type));let ie=O(null);const y=v(()=>t(ne)?m()&&c()?`data:${pe(c())};base64,${m()}`:x()??t(ie):null);Me(()=>{if(t(ne)&&!(m()&&c())&&s()){const e=URL.createObjectURL(s());return T(ie,e,!0),()=>URL.revokeObjectURL(e)}T(ie,null)});const Se=v(()=>{if(d()==="folder")return Qe;const e=pe(d()||c()||s()?.type);return e.startsWith("image")?Ae:e.includes("javascript")||e.includes("typescript")||e.includes("json")?Ze:e.includes("text")||e.includes("markdown")?et:tt}),le=v(()=>pe(d()||c()||s()?.type).startsWith("image")),Ie=v(()=>{if(p()!=="failed")return;const e=N.chat_attachmentPreview_placementFailed_tooltip({name:r()});return j()?`${e} — ${j()}`:e}),he=v(()=>{if(p()!=="placing"||U()===void 0)return;const e=Math.max(0,Math.min(1,U()));return ct(e,{style:"percent",maximumFractionDigits:0})});let oe=O(!1),ce=O(null);function _e(){u()==="thumbnail"&&t(le)&&t(y)&&T(oe,!0)}function Ee(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),_e())}function $e(e){e.stopPropagation(),P()?.(g())}var je={get id(){return g()},set id(e){g(e),l()},get name(){return r()},set name(e){r(e),l()},get type(){return d()},set type(e=""){d(e),l()},get size(){return _()},set size(e){_(e),l()},get file(){return s()},set file(e){s(e),l()},get imageData(){return m()},set imageData(e){m(e),l()},get imageMimeType(){return c()},set imageMimeType(e){c(e),l()},get imageUrl(){return x()},set imageUrl(e){x(e),l()},get onRemove(){return P()},set onRemove(e){P(e),l()},get class(){return C()},set class(e=""){C(e),l()},get variant(){return u()},set variant(e="chip"){u(e),l()},get thumbnailClass(){return R()},set thumbnailClass(e="w-16 h-16"){R(e),l()},get disabled(){return H()},set disabled(e=!1){H(e),l()},get placementStatus(){return p()},set placementStatus(e=void 0){p(e),l()},get placementProgress(){return U()},set placementProgress(e=void 0){U(e),l()},get placementError(){return j()},set placementError(e=void 0){j(e),l()},get onRetry(){return K()},set onRetry(e){K(e),l()},$set:te,$on:(e,b)=>ae(a,e,b)},ye=ke(),Ne=B(ye);{var Oe=e=>{var b=yt(),D=B(b),X=Q(D);{let A=v(()=>N.chat_attachmentPreview_viewFullSize_ariaLabel({name:r()})),F=v(()=>H()||!t(y));W(X,{variant:"plain",wrapContent:!1,type:"button",get class(){return`${R()??""} rounded-lg overflow-hidden cursor-pointer hover:opacity-90 transition-opacity`},onclick:_e,onkeydown:Ee,get"aria-label"(){return t(A)},get title(){return r()},get disabled(){return t(F)},get ref(){return t(ce)},set ref(L){T(ce,L,!0)},children:(L,ve)=>{var Y=ke(),ge=B(Y);{var n=o=>{var f=ht();$(()=>{E(f,"src",t(y)),E(f,"alt",r())}),ze("error",f,()=>T(V,t(y),!0)),Pe(f),h(o,f)},k=o=>{var f=_t(),G=Q(f);I(G,{get icon(){return Ae},size:"15"}),q(f),h(o,f)};S(ge,o=>{t(y)?o(n):o(k,-1)})}h(L,Y)},$$slots:{default:!0}})}var ue=M(X,2);{var me=A=>{{let F=v(()=>N.chat_attachmentPreview_remove_ariaLabel({name:r()}));W(A,{variant:"ghost",size:"icon-xs",class:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none bg-background/80 hover:bg-background shadow-sm",onclick:$e,get"aria-label"(){return t(F)},children:(L,ve)=>{I(L,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(ue,A=>{P()&&A(me)})}q(D);var de=M(D,2);{let A=v(()=>t(y)??"");ut(de,{get imageUrl(){return t(A)},get imageName(){return r()},get openerElement(){return t(ce)},get open(){return t(oe)},set open(F){T(oe,F,!0)}})}$(()=>De(D,1,`relative group shrink-0 ${C()??""}`)),J(1,D,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,D,()=>Le,()=>({tier:"fast"})),h(e,b)},Be=e=>{var b=zt(),D=Q(b);{var X=n=>{var k=xt(),o=B(k);lt(o,{size:15,class:"opacity-50 shrink-0"});var f=M(o,2);{var G=fe=>{var we=wt(),We=Z(we,!0);$(()=>be(We,t(he))),h(fe,we)};S(f,fe=>{t(he)!==void 0&&fe(G)})}h(n,k)},ue=n=>{I(n,{get icon(){return Ge},size:"15",class:"shrink-0"})},me=n=>{var k=kt(),o=Z(k);$(()=>{E(o,"src",t(y)),E(o,"alt",r())}),ze("error",o,()=>T(V,t(y),!0)),Pe(o),h(n,k)},de=n=>{I(n,{get icon(){return t(Se)},size:"15",class:"opacity-30 shrink-0"})};S(D,n=>{p()==="placing"?n(X):p()==="failed"?n(ue,1):t(le)&&t(y)&&t(V)!==t(y)?n(me,2):n(de,-1)})}var A=M(D,2),F=Z(A,!0),L=M(A,2);{var ve=n=>{{let k=v(()=>N.chat_attachmentPreview_retryPlacement_ariaLabel({name:r()}));W(n,{variant:"ghost-light",size:"icon-xs",class:"shrink-0 -my-1",onclick:o=>{o.stopPropagation(),K()(g())},get"aria-label"(){return t(k)},"data-testid":"attachment-retry",children:(o,f)=>{I(o,{get icon(){return Je},size:"10"})},$$slots:{default:!0}})}};S(L,n=>{p()==="failed"&&K()&&n(ve)})}var Y=M(L,2);{var ge=n=>{{let k=v(()=>p()==="failed"?"":"opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),o=v(()=>N.chat_attachmentPreview_removeAttachment_ariaLabel());W(n,{variant:"ghost-light",size:"icon-xs",get class(){return`shrink-0 ${t(k)??""} transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none -my-1 -mr-1`},onclick:()=>P()(g()),get"aria-label"(){return t(o)},children:(f,G)=>{I(f,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(Y,n=>{P()&&n(ge)})}q(b),$(()=>{De(b,1,`flex items-center gap-1.5 px-2 py-0.5 rounded text-xs whitespace-nowrap group shrink-0 ${p()==="failed"?"bg-danger-background/10 text-danger border border-danger/40":"bg-muted/70 text-subtle"} ${C()??""}`),E(b,"data-placement-status",p()),E(b,"title",t(Ie)),be(F,r())}),J(1,b,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,b,()=>Le,()=>({tier:"fast"})),h(e,b)};S(Ne,e=>{u()==="thumbnail"&&t(le)&&t(ne)&&(!t(y)||t(V)!==t(y))?e(Oe):e(Be,-1)})}return h(w,ye),se(je)}export{Pt as A,Fe as D,bt as a};
1
+ import{t as ee,bo as i,bw as te,b as ae,br as qe,bs as xe,bq as He,bp as Ke,bm as N}from"./Dws-34a7.js";import{bs as re,b_ as $,aD as t,W as h,bA as q,bn as se,c9 as v,aA as l,aB as z,bV as O,br as Ve,ca as Me,bH as T,a5 as Q,bl as Z,bS as M,bO as be,ay as B,a7 as ke,aw as ze,bz as Pe}from"./3SdAC2_C.js";import{f as W}from"./BIGqOuh0.js";import{Y as Xe}from"./BPuz5cN_.js";import{F as I,cF as Ye,bF as Ae,d3 as Re,aC as Ge,cr as Je,bn as Qe,bi as Ze,bh as et,bg as tt}from"./CGYPBD6G.js";import{ay as at,aB as rt}from"./B_4WsP9b.js";import{f as st}from"./LQRHF1eM.js";import{g as nt,i as it,I as lt}from"./C-zB-6G6.js";import{s as E,g as ot,f as De}from"./BD9db4FR.js";import{a as Te}from"./BupDQr_B.js";import{i as S}from"./DLCFUd4s.js";import{n as J,l as Ce,c as Le}from"./Bc1vJq_Z.js";import{m as ct}from"./B8HnjSSF.js";import{a as ut}from"./B5pL-E-o.js";import{al as mt,j as pe}from"./CA8JHp72.js";var dt=z('<span class="svelte-dywwvd"></span>'),vt=z('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function Ue(w,a){if(new.target)return ee({component:Ue,...w});re(a,!0);let g=i(a,"levels",7);const r=v(()=>{const s=g().slice(-Te).map(m=>Number.isFinite(m)?Math.min(1,Math.max(0,m)):0);return[...new Array(Te-s.length).fill(0),...s]});var d={get levels(){return g()},set levels(s){g(s),l()},$set:te,$on:(s,m)=>ae(a,s,m)},_=vt();return nt(_,21,()=>t(r),it,(s,m)=>{var c=dt();let x;$(()=>{E(c,"data-level",t(m)),x=ot(c,"",x,{height:`${2+t(m)*12}px`})}),h(s,c)}),q(_),h(w,_),se(d)}var gt=z('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function Fe(w,a){if(new.target)return ee({component:Fe,...w});re(a,!0);let g=i(a,"levels",7),r=i(a,"startedAt",7,null),d=i(a,"elapsed",7),_=O(Ve(Date.now()));Me(()=>{if(!(d()!==void 0||r()===null))return T(_,Date.now(),!0),Xe.subscribe(new Date(r()),()=>T(_,Date.now(),!0),"second")});const s=v(()=>d()??st(r()===null?0:t(_)-r()));var m={get levels(){return g()},set levels(u){g(u),l()},get startedAt(){return r()},set startedAt(u=null){r(u),l()},get elapsed(){return d()},set elapsed(u){d(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)},c=gt(),x=Q(c),P=Z(x,!0),C=M(x,2);return Ue(C,{get levels(){return g()}}),q(c),$(()=>be(P,t(s))),h(w,c),se(m)}var ft=new Set(["$$slots","$$events","$$legacy","class"]),pt=z("<!> <!>",1);function bt(w,a){if(new.target)return ee({component:bt,...w});re(a,!0);const g=()=>xe(c,"$levels$",d),r=()=>xe(x,"$startedAt$",d),[d,_]=He();let s=i(a,"class",7,""),m=Ke(a,ft);const c=at(),x=rt();var P={get class(){return s()},set class(u=""){s(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)};{let u=v(()=>`dictation-stop-pill ${s()}`.trim());W(w,qe({variant:"ghost",size:"sm",get class(){return t(u)},"aria-pressed":"true"},()=>m,{children:(R,H)=>{var p=pt(),U=B(p);I(U,{get icon(){return Ye},size:14});var j=M(U,2);Fe(j,{get levels(){return g()},get startedAt(){return r()}}),h(R,p)},$$slots:{default:!0}}))}var C=se(P);return _(),C}var ht=z('<img class="w-full h-full object-cover"/>'),_t=z('<div class="flex size-full items-center justify-center bg-muted text-subtle"><!></div>'),yt=z("<div><!> <!></div> <!>",1),wt=z('<span class="tabular-nums opacity-70 shrink-0" data-testid="attachment-upload-progress"> </span>'),xt=z("<!> <!>",1),kt=z('<div class="w-4 h-4 rounded overflow-hidden shrink-0"><img class="w-full h-full object-cover"/></div>'),zt=z('<div><!> <span class="font-medium truncate max-w-30"> </span> <!> <!></div>');function Pt(w,a){if(new.target)return ee({component:Pt,...w});re(a,!0);let g=i(a,"id",7),r=i(a,"name",7),d=i(a,"type",7,""),_=i(a,"size",7),s=i(a,"file",7),m=i(a,"imageData",7),c=i(a,"imageMimeType",7),x=i(a,"imageUrl",7),P=i(a,"onRemove",7),C=i(a,"class",7,""),u=i(a,"variant",7,"chip"),R=i(a,"thumbnailClass",7,"w-16 h-16"),H=i(a,"disabled",7,!1),p=i(a,"placementStatus",7,void 0),U=i(a,"placementProgress",7,void 0),j=i(a,"placementError",7,void 0),K=i(a,"onRetry",7),V=O(null);const ne=v(()=>mt(c()||d()||s()?.type));let ie=O(null);const y=v(()=>t(ne)?m()&&c()?`data:${pe(c())};base64,${m()}`:x()??t(ie):null);Me(()=>{if(t(ne)&&!(m()&&c())&&s()){const e=URL.createObjectURL(s());return T(ie,e,!0),()=>URL.revokeObjectURL(e)}T(ie,null)});const Se=v(()=>{if(d()==="folder")return Qe;const e=pe(d()||c()||s()?.type);return e.startsWith("image")?Ae:e.includes("javascript")||e.includes("typescript")||e.includes("json")?Ze:e.includes("text")||e.includes("markdown")?et:tt}),le=v(()=>pe(d()||c()||s()?.type).startsWith("image")),Ie=v(()=>{if(p()!=="failed")return;const e=N.chat_attachmentPreview_placementFailed_tooltip({name:r()});return j()?`${e} — ${j()}`:e}),he=v(()=>{if(p()!=="placing"||U()===void 0)return;const e=Math.max(0,Math.min(1,U()));return ct(e,{style:"percent",maximumFractionDigits:0})});let oe=O(!1),ce=O(null);function _e(){u()==="thumbnail"&&t(le)&&t(y)&&T(oe,!0)}function Ee(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),_e())}function $e(e){e.stopPropagation(),P()?.(g())}var je={get id(){return g()},set id(e){g(e),l()},get name(){return r()},set name(e){r(e),l()},get type(){return d()},set type(e=""){d(e),l()},get size(){return _()},set size(e){_(e),l()},get file(){return s()},set file(e){s(e),l()},get imageData(){return m()},set imageData(e){m(e),l()},get imageMimeType(){return c()},set imageMimeType(e){c(e),l()},get imageUrl(){return x()},set imageUrl(e){x(e),l()},get onRemove(){return P()},set onRemove(e){P(e),l()},get class(){return C()},set class(e=""){C(e),l()},get variant(){return u()},set variant(e="chip"){u(e),l()},get thumbnailClass(){return R()},set thumbnailClass(e="w-16 h-16"){R(e),l()},get disabled(){return H()},set disabled(e=!1){H(e),l()},get placementStatus(){return p()},set placementStatus(e=void 0){p(e),l()},get placementProgress(){return U()},set placementProgress(e=void 0){U(e),l()},get placementError(){return j()},set placementError(e=void 0){j(e),l()},get onRetry(){return K()},set onRetry(e){K(e),l()},$set:te,$on:(e,b)=>ae(a,e,b)},ye=ke(),Ne=B(ye);{var Oe=e=>{var b=yt(),D=B(b),X=Q(D);{let A=v(()=>N.chat_attachmentPreview_viewFullSize_ariaLabel({name:r()})),F=v(()=>H()||!t(y));W(X,{variant:"plain",wrapContent:!1,type:"button",get class(){return`${R()??""} rounded-lg overflow-hidden cursor-pointer hover:opacity-90 transition-opacity`},onclick:_e,onkeydown:Ee,get"aria-label"(){return t(A)},get title(){return r()},get disabled(){return t(F)},get ref(){return t(ce)},set ref(L){T(ce,L,!0)},children:(L,ve)=>{var Y=ke(),ge=B(Y);{var n=o=>{var f=ht();$(()=>{E(f,"src",t(y)),E(f,"alt",r())}),ze("error",f,()=>T(V,t(y),!0)),Pe(f),h(o,f)},k=o=>{var f=_t(),G=Q(f);I(G,{get icon(){return Ae},size:"15"}),q(f),h(o,f)};S(ge,o=>{t(y)?o(n):o(k,-1)})}h(L,Y)},$$slots:{default:!0}})}var ue=M(X,2);{var me=A=>{{let F=v(()=>N.chat_attachmentPreview_remove_ariaLabel({name:r()}));W(A,{variant:"ghost",size:"icon-xs",class:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none bg-background/80 hover:bg-background shadow-sm",onclick:$e,get"aria-label"(){return t(F)},children:(L,ve)=>{I(L,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(ue,A=>{P()&&A(me)})}q(D);var de=M(D,2);{let A=v(()=>t(y)??"");ut(de,{get imageUrl(){return t(A)},get imageName(){return r()},get openerElement(){return t(ce)},get open(){return t(oe)},set open(F){T(oe,F,!0)}})}$(()=>De(D,1,`relative group shrink-0 ${C()??""}`)),J(1,D,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,D,()=>Le,()=>({tier:"fast"})),h(e,b)},Be=e=>{var b=zt(),D=Q(b);{var X=n=>{var k=xt(),o=B(k);lt(o,{size:15,class:"opacity-50 shrink-0"});var f=M(o,2);{var G=fe=>{var we=wt(),We=Z(we,!0);$(()=>be(We,t(he))),h(fe,we)};S(f,fe=>{t(he)!==void 0&&fe(G)})}h(n,k)},ue=n=>{I(n,{get icon(){return Ge},size:"15",class:"shrink-0"})},me=n=>{var k=kt(),o=Z(k);$(()=>{E(o,"src",t(y)),E(o,"alt",r())}),ze("error",o,()=>T(V,t(y),!0)),Pe(o),h(n,k)},de=n=>{I(n,{get icon(){return t(Se)},size:"15",class:"opacity-30 shrink-0"})};S(D,n=>{p()==="placing"?n(X):p()==="failed"?n(ue,1):t(le)&&t(y)&&t(V)!==t(y)?n(me,2):n(de,-1)})}var A=M(D,2),F=Z(A,!0),L=M(A,2);{var ve=n=>{{let k=v(()=>N.chat_attachmentPreview_retryPlacement_ariaLabel({name:r()}));W(n,{variant:"ghost-light",size:"icon-xs",class:"shrink-0 -my-1",onclick:o=>{o.stopPropagation(),K()(g())},get"aria-label"(){return t(k)},"data-testid":"attachment-retry",children:(o,f)=>{I(o,{get icon(){return Je},size:"10"})},$$slots:{default:!0}})}};S(L,n=>{p()==="failed"&&K()&&n(ve)})}var Y=M(L,2);{var ge=n=>{{let k=v(()=>p()==="failed"?"":"opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),o=v(()=>N.chat_attachmentPreview_removeAttachment_ariaLabel());W(n,{variant:"ghost-light",size:"icon-xs",get class(){return`shrink-0 ${t(k)??""} transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none -my-1 -mr-1`},onclick:()=>P()(g()),get"aria-label"(){return t(o)},children:(f,G)=>{I(f,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(Y,n=>{P()&&n(ge)})}q(b),$(()=>{De(b,1,`flex items-center gap-1.5 px-2 py-0.5 rounded text-xs whitespace-nowrap group shrink-0 ${p()==="failed"?"bg-danger-background/10 text-danger border border-danger/40":"bg-muted/70 text-subtle"} ${C()??""}`),E(b,"data-placement-status",p()),E(b,"title",t(Ie)),be(F,r())}),J(1,b,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,b,()=>Le,()=>({tier:"fast"})),h(e,b)};S(Ne,e=>{u()==="thumbnail"&&t(le)&&t(ne)&&(!t(y)||t(V)!==t(y))?e(Oe):e(Be,-1)})}return h(w,ye),se(je)}export{Pt as A,Fe as D,bt as a};
@@ -1 +1 @@
1
- import{conf as t,language as e}from"./BqCuw50f.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
1
+ import{conf as t,language as e}from"./DsfORPYa.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
@@ -1 +1 @@
1
- import{t as H,bo as x,bw as U,b as W}from"./hY0rMePc.js";import{bV as j,br as q,bH as A,aD as y,bs as X,ca as z,a5 as J,b_ as C,W as N,bS as K,a7 as Q,ay as Z,bA as $,bn as ee,c9 as te,at as ae,aA as _,aB as M,bI as re,aG as se}from"./3SdAC2_C.js";import{k as oe}from"./CXul4WJt.js";import{g as D,e as L,o as ne,p as ie}from"./D400ElMz.js";import{n as V,g as F,S}from"./72S4_8Fo.js";import{c as T,e as O,f as P}from"./leDczq9h.js";import{_ as G}from"./rNjiZ_3W.js";import{c as de}from"./CmbheRhJ.js";function ce(r,a){const i=[...a].filter(t=>Number.isInteger(t)&&t>=0&&r[t]!==void 0).sort((t,o)=>t-o),u=[];for(const t of i){const o=u.at(-1);!o||t>o.endIndex+1?u.push({startIndex:t,endIndex:t}):t>o.endIndex&&(o.endIndex=t)}return u.map(({startIndex:t,endIndex:o})=>{let c=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=t;l<=o;l+=1){const n=r[l];n&&(c=Math.min(c,n.top),d=Math.min(d,n.left),g=Math.max(g,n.left+n.width),m=Math.max(m,n.top+n.height))}return{startIndex:t,endIndex:o,rect:{top:c,left:d,width:g-d,height:m-c}}})}function E(r,a){return Math.max(0,Math.min(r.endIndex,a.endIndex)-Math.max(r.startIndex,a.startIndex)+1)}function le(){let r=j(q([])),a=[],i=1;return{get groups(){return y(r)},update(u,t){const o=new Set,c=ce(u,t).map(d=>{const m=a.filter(l=>!o.has(l.id)&&E(l,d)>0).sort((l,n)=>E(n,d)-E(l,d)||l.id-n.id)[0]?.id??i++;return o.add(m),{id:m,...d}});a=c,A(r,c,!0)},reset(){a=[],A(r,[],!0),i=1}}}var ue=M('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),me=M('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),pe=M('<div aria-hidden="true"><!> <!></div>');function fe(r,a){if(new.target)return H({component:fe,...r});X(a,!0);let i=x(a,"store",7),u=x(a,"selectedIndexes",23,()=>[]),t=x(a,"selectedClass",7,"bg-selected"),o=x(a,"hoverClass",7,"bg-hover"),c=x(a,"class",7);const d=le(),g=te(()=>i().activeIndex===null?void 0:i().itemRects[i().activeIndex]);z(()=>{d.update(i().itemRects,u())});const m=(e,s)=>{const p=new S(s.rect.top,s.tier),f=new S(s.rect.left,s.tier),b=new S(s.rect.width,s.tier),v=new S(s.rect.height,s.tier),I=ae(()=>{z(()=>{e.style.transform=`translate3d(${f.current}px, ${p.current}px, 0)`,e.style.width=`${b.current}px`,e.style.height=`${v.current}px`})}),w=h=>{p.set(h.rect.top),f.set(h.rect.left),b.set(h.rect.width),v.set(h.rect.height)},B=ne(()=>ie()&&w(s));return{update(h){s=h,w(h)},destroy(){B(),I()}}};var l={get store(){return i()},set store(e){i(e),_()},get selectedIndexes(){return u()},set selectedIndexes(e=[]){u(e),_()},get selectedClass(){return t()},set selectedClass(e="bg-selected"){t(e),_()},get hoverClass(){return o()},set hoverClass(e="bg-hover"){o(e),_()},get class(){return c()},set class(e){c(e),_()},$set:U,$on:(e,s)=>W(a,e,s)},n=pe(),R=J(n);D(R,17,()=>d.groups,e=>e.id,(e,s)=>{var p=ue();L(p,(f,b)=>m?.(f,b),()=>({rect:y(s).rect,tier:"moderate"})),C(f=>P(p,1,f),[()=>T(O("absolute",t()))]),V(2,p,()=>F,()=>({tier:"moderate"})),N(e,p)});var k=K(R,2);return oe(k,()=>i().sessionId,e=>{var s=Q(),p=Z(s);D(p,17,()=>y(g)?[y(g)]:[],f=>0,(f,b)=>{var v=me();L(v,(I,w)=>m?.(I,w),()=>({rect:y(b),tier:"moderate"})),C(I=>P(v,1,I),[()=>T(O("absolute",o()))]),V(2,v,()=>F,()=>({tier:"fast"})),N(f,v)}),N(e,s)}),$(n),C(e=>P(n,1,e),[()=>T(O("pointer-events-none absolute inset-0",c()))]),N(r,n),ee(l)}const Se=G({base:`${de} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[menu-item]:font-medium data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),Ce=G({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),Te="text-shortcut-foreground",Oe=-5,Pe={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Y=Symbol("dialog-portal-target");function Ee(r){re(Y,r)}function Me(){const r=se(Y);return()=>r?.()??void 0}const ge=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function Re(r,a){return r?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:a.target instanceof Element&&a.target.closest(ge)!==null}export{fe as P,Se as a,Ce as b,Pe as c,Oe as d,Re as e,Te as m,Ee as p,Me as u};
1
+ import{t as H,bo as x,bw as U,b as W}from"./Dws-34a7.js";import{bV as j,br as q,bH as A,aD as y,bs as X,ca as z,a5 as J,b_ as C,W as N,bS as K,a7 as Q,ay as Z,bA as $,bn as ee,c9 as te,at as ae,aA as _,aB as M,bI as re,aG as se}from"./3SdAC2_C.js";import{k as oe}from"./5-0LQoqd.js";import{g as D,e as L,o as ne,p as ie}from"./C-zB-6G6.js";import{n as V,g as F,S}from"./Bc1vJq_Z.js";import{c as T,e as O,f as P}from"./BD9db4FR.js";import{_ as G}from"./BPuz5cN_.js";import{c as de}from"./C63WwVct.js";function ce(r,a){const i=[...a].filter(t=>Number.isInteger(t)&&t>=0&&r[t]!==void 0).sort((t,o)=>t-o),u=[];for(const t of i){const o=u.at(-1);!o||t>o.endIndex+1?u.push({startIndex:t,endIndex:t}):t>o.endIndex&&(o.endIndex=t)}return u.map(({startIndex:t,endIndex:o})=>{let c=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=t;l<=o;l+=1){const n=r[l];n&&(c=Math.min(c,n.top),d=Math.min(d,n.left),g=Math.max(g,n.left+n.width),m=Math.max(m,n.top+n.height))}return{startIndex:t,endIndex:o,rect:{top:c,left:d,width:g-d,height:m-c}}})}function E(r,a){return Math.max(0,Math.min(r.endIndex,a.endIndex)-Math.max(r.startIndex,a.startIndex)+1)}function le(){let r=j(q([])),a=[],i=1;return{get groups(){return y(r)},update(u,t){const o=new Set,c=ce(u,t).map(d=>{const m=a.filter(l=>!o.has(l.id)&&E(l,d)>0).sort((l,n)=>E(n,d)-E(l,d)||l.id-n.id)[0]?.id??i++;return o.add(m),{id:m,...d}});a=c,A(r,c,!0)},reset(){a=[],A(r,[],!0),i=1}}}var ue=M('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),me=M('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),pe=M('<div aria-hidden="true"><!> <!></div>');function fe(r,a){if(new.target)return H({component:fe,...r});X(a,!0);let i=x(a,"store",7),u=x(a,"selectedIndexes",23,()=>[]),t=x(a,"selectedClass",7,"bg-selected"),o=x(a,"hoverClass",7,"bg-hover"),c=x(a,"class",7);const d=le(),g=te(()=>i().activeIndex===null?void 0:i().itemRects[i().activeIndex]);z(()=>{d.update(i().itemRects,u())});const m=(e,s)=>{const p=new S(s.rect.top,s.tier),f=new S(s.rect.left,s.tier),b=new S(s.rect.width,s.tier),v=new S(s.rect.height,s.tier),I=ae(()=>{z(()=>{e.style.transform=`translate3d(${f.current}px, ${p.current}px, 0)`,e.style.width=`${b.current}px`,e.style.height=`${v.current}px`})}),w=h=>{p.set(h.rect.top),f.set(h.rect.left),b.set(h.rect.width),v.set(h.rect.height)},B=ne(()=>ie()&&w(s));return{update(h){s=h,w(h)},destroy(){B(),I()}}};var l={get store(){return i()},set store(e){i(e),_()},get selectedIndexes(){return u()},set selectedIndexes(e=[]){u(e),_()},get selectedClass(){return t()},set selectedClass(e="bg-selected"){t(e),_()},get hoverClass(){return o()},set hoverClass(e="bg-hover"){o(e),_()},get class(){return c()},set class(e){c(e),_()},$set:U,$on:(e,s)=>W(a,e,s)},n=pe(),R=J(n);D(R,17,()=>d.groups,e=>e.id,(e,s)=>{var p=ue();L(p,(f,b)=>m?.(f,b),()=>({rect:y(s).rect,tier:"moderate"})),C(f=>P(p,1,f),[()=>T(O("absolute",t()))]),V(2,p,()=>F,()=>({tier:"moderate"})),N(e,p)});var k=K(R,2);return oe(k,()=>i().sessionId,e=>{var s=Q(),p=Z(s);D(p,17,()=>y(g)?[y(g)]:[],f=>0,(f,b)=>{var v=me();L(v,(I,w)=>m?.(I,w),()=>({rect:y(b),tier:"moderate"})),C(I=>P(v,1,I),[()=>T(O("absolute",o()))]),V(2,v,()=>F,()=>({tier:"fast"})),N(f,v)}),N(e,s)}),$(n),C(e=>P(n,1,e),[()=>T(O("pointer-events-none absolute inset-0",c()))]),N(r,n),ee(l)}const Se=G({base:`${de} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[menu-item]:font-medium data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),Ce=G({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),Te="text-shortcut-foreground",Oe=-5,Pe={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Y=Symbol("dialog-portal-target");function Ee(r){re(Y,r)}function Me(){const r=se(Y);return()=>r?.()??void 0}const ge=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function Re(r,a){return r?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:a.target instanceof Element&&a.target.closest(ge)!==null}export{fe as P,Se as a,Ce as b,Pe as c,Oe as d,Re as e,Te as m,Ee as p,Me as u};
@@ -1 +1 @@
1
- import{a6 as h,J$ as w,rQ as S}from"./DXdFemRu.js";import{cd as E}from"./3SdAC2_C.js";const f="intent://pair";function T(t){const e=t.trim().toLowerCase();if(!e.startsWith(f))return!1;const n=e.charAt(f.length);return n===""||n==="?"||n==="/"||n==="#"}function F(t){const e=t.trim();if(!T(e))return null;let n;try{n=new URL(e.replace(/^intent:\/\//i,"http://"))}catch{return null}const a=n.searchParams,c=(a.get("host")??"").split(",").map(d=>d.trim()).filter(d=>d.length>0),s=a.get("port")?.trim()??"",i=/^\d+$/.test(s)?Number(s):NaN,o=Number.isInteger(i)&&i>0&&i<=65535?i:null,u=(a.get("fp")??a.get("certFingerprint"))?.trim()||null,l=a.get("token")?.trim()||null,m=a.get("tc")?.trim()||null,k=a.get("mode")?.trim().toLowerCase()==="node"?"node":null;return{hosts:c,port:o,fingerprint:u,token:l,tcAddress:m,modeHint:k}}function H(t){return t.trim().replace(/([?&]token=)[^&#]*/gi,"$1••••")}const _=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],L="agent:delegated";function r(t){return typeof t=="string"&&t.length>0?t:void 0}function N(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const n=r(e.status)??"";return n==="error"||n==="failed"?"err":n==="completed"?"ok":w(n)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return r(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const n=r(e.displayStatus);return n==="pr_merged"||n==="complete"?"ok":n==="pr_ready"||n==="pr_queued"||n==="pr_open"?"accent":n==="needs_attention"?"warn":n==="idle"||n==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?S(r(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function I(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return r(e.error)??"";case"agent:status-changed":return"";case"task:created":return r(e.noteTitle)??r(e.noteId)??"";case"task:status-changed":return[r(e.noteTitle)??r(e.noteId),r(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return r(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,r(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return r(e.message)??r(e.commit)??"";case"git:pull":return r(e.branch)??"";default:return""}}const b=new Set(["idle","inactive"]);function A(t,e){if(t!=="agent:status-changed")return!1;const n=(r(e.status)??"").toLowerCase();return b.has(n)}function y(t,e){return t==="workspace:attention-changed"&&r(e.attention)===h}function P(t){const e=typeof t.type=="string"?t.type:"";if(!_.includes(e))return null;const n=r(t.id),a=r(t.timestamp),c=r(t.workspaceId);if(!n||!a||!c)return null;const s=t.data&&typeof t.data=="object"?t.data:{};if(A(e,s)||y(e,s))return null;const i={id:n,ts:a,colorClass:N(e,s),source:c,kind:e,text:I(e,s)};if(e.startsWith("agent:")){const o=r(s.agentId),u=r(s.agentName);if(o&&(i.agentId=o),u&&(i.agentName=u),e==="agent:status-changed"){const l=r(s.status);l&&(i.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const o=r(s.displayStatus);o&&(i.displayStatus=o)}return i}const g=new Set;function C(t){return g.add(t),()=>g.delete(t)}function R(t){for(const e of g)e(t)}const p=E(null),x={subscribe:p.subscribe};function B(t){p.set(t)}export{L as H,_ as a,H as b,R as e,T as i,P as m,C as o,F as p,B as s,x as t};
1
+ import{a6 as h,J$ as w,rQ as S}from"./4g_iHoQm.js";import{cd as E}from"./3SdAC2_C.js";const f="intent://pair";function T(t){const e=t.trim().toLowerCase();if(!e.startsWith(f))return!1;const n=e.charAt(f.length);return n===""||n==="?"||n==="/"||n==="#"}function F(t){const e=t.trim();if(!T(e))return null;let n;try{n=new URL(e.replace(/^intent:\/\//i,"http://"))}catch{return null}const a=n.searchParams,c=(a.get("host")??"").split(",").map(d=>d.trim()).filter(d=>d.length>0),s=a.get("port")?.trim()??"",i=/^\d+$/.test(s)?Number(s):NaN,o=Number.isInteger(i)&&i>0&&i<=65535?i:null,u=(a.get("fp")??a.get("certFingerprint"))?.trim()||null,l=a.get("token")?.trim()||null,m=a.get("tc")?.trim()||null,k=a.get("mode")?.trim().toLowerCase()==="node"?"node":null;return{hosts:c,port:o,fingerprint:u,token:l,tcAddress:m,modeHint:k}}function H(t){return t.trim().replace(/([?&]token=)[^&#]*/gi,"$1••••")}const _=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],L="agent:delegated";function r(t){return typeof t=="string"&&t.length>0?t:void 0}function N(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const n=r(e.status)??"";return n==="error"||n==="failed"?"err":n==="completed"?"ok":w(n)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return r(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const n=r(e.displayStatus);return n==="pr_merged"||n==="complete"?"ok":n==="pr_ready"||n==="pr_queued"||n==="pr_open"?"accent":n==="needs_attention"?"warn":n==="idle"||n==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?S(r(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function I(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return r(e.error)??"";case"agent:status-changed":return"";case"task:created":return r(e.noteTitle)??r(e.noteId)??"";case"task:status-changed":return[r(e.noteTitle)??r(e.noteId),r(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return r(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,r(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return r(e.message)??r(e.commit)??"";case"git:pull":return r(e.branch)??"";default:return""}}const b=new Set(["idle","inactive"]);function A(t,e){if(t!=="agent:status-changed")return!1;const n=(r(e.status)??"").toLowerCase();return b.has(n)}function y(t,e){return t==="workspace:attention-changed"&&r(e.attention)===h}function P(t){const e=typeof t.type=="string"?t.type:"";if(!_.includes(e))return null;const n=r(t.id),a=r(t.timestamp),c=r(t.workspaceId);if(!n||!a||!c)return null;const s=t.data&&typeof t.data=="object"?t.data:{};if(A(e,s)||y(e,s))return null;const i={id:n,ts:a,colorClass:N(e,s),source:c,kind:e,text:I(e,s)};if(e.startsWith("agent:")){const o=r(s.agentId),u=r(s.agentName);if(o&&(i.agentId=o),u&&(i.agentName=u),e==="agent:status-changed"){const l=r(s.status);l&&(i.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const o=r(s.displayStatus);o&&(i.displayStatus=o)}return i}const g=new Set;function C(t){return g.add(t),()=>g.delete(t)}function R(t){for(const e of g)e(t)}const p=E(null),x={subscribe:p.subscribe};function B(t){p.set(t)}export{L as H,_ as a,H as b,R as e,T as i,P as m,C as o,F as p,B as s,x as t};
@@ -1 +1 @@
1
- var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./hY0rMePc.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./3SdAC2_C.js";import{i as z}from"./BWmYJDmC.js";import{t as E}from"./CjZEyjv4.js";import{b as Pe}from"./leDczq9h.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./CIU_APaR.js";import{c as wt}from"./BNN0vAFF.js";import{s as St}from"./CmbheRhJ.js";import{f as xt,k as Nt}from"./72S4_8Fo.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
1
+ var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./Dws-34a7.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./3SdAC2_C.js";import{i as z}from"./DLCFUd4s.js";import{t as E}from"./D-rRuAXZ.js";import{b as Pe}from"./BD9db4FR.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./BIGqOuh0.js";import{c as wt}from"./B5tvpTFB.js";import{s as St}from"./C63WwVct.js";import{f as xt,k as Nt}from"./Bc1vJq_Z.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
@@ -1 +1 @@
1
- import{aG as r}from"./3SdAC2_C.js";import{br as e}from"./DXdFemRu.js";const n=Symbol("workspace-route-context");function s(t){return t&&t!=="new"?e(t):null}function u(t,o){return t?.startsWith("/workspace/")?s(o):null}function p(){try{return r(n)}catch{return}}export{n as W,s as a,p as g,u as w};
1
+ import{aG as r}from"./3SdAC2_C.js";import{br as e}from"./4g_iHoQm.js";const n=Symbol("workspace-route-context");function s(t){return t&&t!=="new"?e(t):null}function u(t,o){return t?.startsWith("/workspace/")?s(o):null}function p(){try{return r(n)}catch{return}}export{n as W,s as a,p as g,u as w};
@@ -1 +1 @@
1
- import{aG as a,bI as l}from"./3SdAC2_C.js";import{Jx as t}from"./DXdFemRu.js";const s=Symbol("static-overlay");function n(e){l(s,e)}function b(){return a(s)??(()=>!1)}const r=["border-rose-500/30 bg-rose-500/15 text-rose-700 dark:text-rose-300","border-amber-500/30 bg-amber-500/15 text-amber-700 dark:text-amber-300","border-yellow-500/30 bg-yellow-500/15 text-yellow-700 dark:text-yellow-300","border-emerald-500/30 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300","border-sky-500/30 bg-sky-500/15 text-sky-700 dark:text-sky-300","border-violet-500/30 bg-violet-500/15 text-violet-700 dark:text-violet-300"],o=["hover:bg-rose-500/25","hover:bg-amber-500/25","hover:bg-yellow-500/25","hover:bg-emerald-500/25","hover:bg-sky-500/25","hover:bg-violet-500/25"];function h(e){return r[e%r.length]}function d(e){return o[e%o.length]}const u=t.createSelector(e=>e.theme.preference),v=t.createSelector(e=>e.theme.name==="dark"),S=t.createSelector(e=>e.theme.hasCustomTheme),i=t.createSelector(e=>e.theme.customThemeName),g=t.createSelector(e=>e.theme.activePresetId),x=t.createSelector(e=>e.theme.error);export{i as a,S as b,v as c,x as d,u as e,h as f,d as g,n as p,g as s,b as u};
1
+ import{aG as a,bI as l}from"./3SdAC2_C.js";import{Jx as t}from"./4g_iHoQm.js";const s=Symbol("static-overlay");function n(e){l(s,e)}function b(){return a(s)??(()=>!1)}const r=["border-rose-500/30 bg-rose-500/15 text-rose-700 dark:text-rose-300","border-amber-500/30 bg-amber-500/15 text-amber-700 dark:text-amber-300","border-yellow-500/30 bg-yellow-500/15 text-yellow-700 dark:text-yellow-300","border-emerald-500/30 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300","border-sky-500/30 bg-sky-500/15 text-sky-700 dark:text-sky-300","border-violet-500/30 bg-violet-500/15 text-violet-700 dark:text-violet-300"],o=["hover:bg-rose-500/25","hover:bg-amber-500/25","hover:bg-yellow-500/25","hover:bg-emerald-500/25","hover:bg-sky-500/25","hover:bg-violet-500/25"];function h(e){return r[e%r.length]}function d(e){return o[e%o.length]}const u=t.createSelector(e=>e.theme.preference),v=t.createSelector(e=>e.theme.name==="dark"),S=t.createSelector(e=>e.theme.hasCustomTheme),i=t.createSelector(e=>e.theme.customThemeName),g=t.createSelector(e=>e.theme.activePresetId),x=t.createSelector(e=>e.theme.error);export{i as a,S as b,v as c,x as d,u as e,h as f,d as g,n as p,g as s,b as u};
@@ -1 +1 @@
1
- import{i as r}from"./CL3a4Hm1.js";import{w as a,I as e}from"./Bqd7fdCF.js";import{Jx as s}from"./DXdFemRu.js";import{c as t}from"./BACpI8G6.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
1
+ import{i as r}from"./CL3a4Hm1.js";import{w as a,I as e}from"./Bqd7fdCF.js";import{Jx as s}from"./4g_iHoQm.js";import{c as t}from"./BwC--T1G.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
@@ -1 +1 @@
1
- import{t as a3,bo as p,bw as t3,b as s3}from"./hY0rMePc.js";import{bs as r3,a5 as o3,aD as t,bA as I,b_ as v,W as f,bn as l3,c9 as l,bV as L,aA as u,ay as i3,bS as n3,aw as S,bz as c3,bl as N,bO as Z,aB as m,bH as A}from"./3SdAC2_C.js";import{i as B}from"./BWmYJDmC.js";import{h as v3}from"./BKD7o1lQ.js";import{f as _,g as x,s as F}from"./leDczq9h.js";import{F as f3,aT as m3,aL as g3,b0 as p3,cv as u3,ap as d3}from"./DETS1-K4.js";var h3=m("<div></div>"),b3=m('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=m("<img/> <!>",1),C3=m('<span class="type-caption text-subtle font-medium"> </span>'),_3=m("<div><!></div>");function x3(y,i){if(new.target)return a3({component:x3,...y});r3(i,!0);let r=p(i,"iconName",7),n=p(i,"label",7),o=p(i,"size",7,20),d=p(i,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:m3},z=l(()=>j[r().toLowerCase()]),W=l(()=>h[r().toLowerCase()]||h.default),H=l(()=>E[r().toLowerCase()]||null),M=l(()=>U.has(r().toLowerCase()));let b=L(!1),V=L(!1);const k=l(()=>D[r().toLowerCase()]||(t(z)?`https://cdn.simpleicons.org/${t(z)}`:null));function O(){A(b,!0)}function T(){A(V,!0)}var q={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return n()},set label(e){n(e),u()},get size(){return o()},set size(e=20){o(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(i,e,a)},c=_3(),G=o3(c);{var J=e=>{var a=h3();v3(a,()=>t(H),!0),I(a),v(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),f(e,a)},K=e=>{var a=w3(),s=i3(a);let g;var X=n3(s,2);{var Y=w=>{var C=b3(),$=N(C,!0);v(e3=>{x(C,`font-size: ${o()*.45}px;`),Z($,e3)},[()=>n().charAt(0)]),f(w,C)};B(X,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(k)),F(s,"alt",n()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),S("load",s,O),S("error",s,T),c3(s),f(e,a)},P=e=>{{let a=l(()=>o()*.7);f3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},Q=l(()=>h[r().toLowerCase()]),R=e=>{var a=C3(),s=N(a,!0);v(g=>{x(a,`font-size: ${o()*.45}px;`),Z(s,g)},[()=>n().charAt(0)]),f(e,a)};B(G,e=>{t(H)?e(J):t(k)&&!t(V)?e(K,1):t(Q)?e(P,2):e(R,-1)})}return I(c),v(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(y,c),l3(q)}export{x3 as M};
1
+ import{t as a3,bo as p,bw as t3,b as s3}from"./Dws-34a7.js";import{bs as r3,a5 as o3,aD as t,bA as I,b_ as v,W as f,bn as l3,c9 as l,bV as L,aA as u,ay as i3,bS as n3,aw as S,bz as c3,bl as N,bO as Z,aB as m,bH as A}from"./3SdAC2_C.js";import{i as B}from"./DLCFUd4s.js";import{h as v3}from"./BKD7o1lQ.js";import{f as _,g as x,s as F}from"./BD9db4FR.js";import{F as f3,aT as m3,aL as g3,b0 as p3,cv as u3,ap as d3}from"./CGYPBD6G.js";var h3=m("<div></div>"),b3=m('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=m("<img/> <!>",1),C3=m('<span class="type-caption text-subtle font-medium"> </span>'),_3=m("<div><!></div>");function x3(y,i){if(new.target)return a3({component:x3,...y});r3(i,!0);let r=p(i,"iconName",7),n=p(i,"label",7),o=p(i,"size",7,20),d=p(i,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:m3},z=l(()=>j[r().toLowerCase()]),W=l(()=>h[r().toLowerCase()]||h.default),H=l(()=>E[r().toLowerCase()]||null),M=l(()=>U.has(r().toLowerCase()));let b=L(!1),V=L(!1);const k=l(()=>D[r().toLowerCase()]||(t(z)?`https://cdn.simpleicons.org/${t(z)}`:null));function O(){A(b,!0)}function T(){A(V,!0)}var q={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return n()},set label(e){n(e),u()},get size(){return o()},set size(e=20){o(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(i,e,a)},c=_3(),G=o3(c);{var J=e=>{var a=h3();v3(a,()=>t(H),!0),I(a),v(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),f(e,a)},K=e=>{var a=w3(),s=i3(a);let g;var X=n3(s,2);{var Y=w=>{var C=b3(),$=N(C,!0);v(e3=>{x(C,`font-size: ${o()*.45}px;`),Z($,e3)},[()=>n().charAt(0)]),f(w,C)};B(X,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(k)),F(s,"alt",n()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),S("load",s,O),S("error",s,T),c3(s),f(e,a)},P=e=>{{let a=l(()=>o()*.7);f3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},Q=l(()=>h[r().toLowerCase()]),R=e=>{var a=C3(),s=N(a,!0);v(g=>{x(a,`font-size: ${o()*.45}px;`),Z(s,g)},[()=>n().charAt(0)]),f(e,a)};B(G,e=>{t(H)?e(J):t(k)&&!t(V)?e(K,1):t(Q)?e(P,2):e(R,-1)})}return I(c),v(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(y,c),l3(q)}export{x3 as M};
@@ -1 +1 @@
1
- import{t as O,bo as m,bw as R,b as T,bm as y}from"./hY0rMePc.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./BWmYJDmC.js";import{E as z}from"./D0I7VQ8a.js";import"./leDczq9h.js";import"./DnHJL326.js";import"./rNjiZ_3W.js";import{f as A}from"./CIU_APaR.js";import{F as et,a3 as at,bP as ot}from"./DETS1-K4.js";import"./CjZEyjv4.js";import{I as st}from"./D400ElMz.js";import{i as nt,b as rt}from"./BaJfBXet.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
1
+ import{t as O,bo as m,bw as R,b as T,bm as y}from"./Dws-34a7.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./DLCFUd4s.js";import{E as z}from"./DSiGyv9Y.js";import"./BD9db4FR.js";import"./C_SKcJv7.js";import"./BPuz5cN_.js";import{f as A}from"./BIGqOuh0.js";import{F as et,a3 as at,bP as ot}from"./CGYPBD6G.js";import"./D-rRuAXZ.js";import{I as st}from"./C-zB-6G6.js";import{i as nt,b as rt}from"./Cp7Byf5d.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
@@ -1 +1 @@
1
- import{Jx as S,Cq as o,aX as d,aY as l,aZ as a}from"./DXdFemRu.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./B_QPRXJ5.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},p=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return p(r),x(t),r};export{m as initAppStore,S as store};
1
+ import{Jx as S,Cq as o,aX as d,aY as l,aZ as a}from"./4g_iHoQm.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./B_QPRXJ5.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},p=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return p(r),x(t),r};export{m as initAppStore,S as store};