@intent-hq/web 2.386.0 → 2.387.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 (325) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{-VR23WhZ.js → -2rOENSl.js} +1 -1
  3. package/web/app/immutable/chunks/{B4F7GG5Q.js → -hTxjwFO.js} +1 -1
  4. package/web/app/immutable/chunks/{D5xlMOwU.js → 0Kw0mmSW.js} +1 -1
  5. package/web/app/immutable/chunks/{B9kUdNbG.js → 6NStP9u7.js} +1 -1
  6. package/web/app/immutable/chunks/{Dm3wAkDL.js → 6uD0LviT.js} +1 -1
  7. package/web/app/immutable/chunks/{BeUuk8D1.js → 9fNNDfgo.js} +1 -1
  8. package/web/app/immutable/chunks/{COBhx_l-.js → AXzVloaq.js} +1 -1
  9. package/web/app/immutable/chunks/{DDdsJrHq.js → AfZNmzF0.js} +1 -1
  10. package/web/app/immutable/chunks/{D2Tzo4Hp.js → B-bGycam.js} +1 -1
  11. package/web/app/immutable/chunks/{Bf_4e4N2.js → B0RPkrmZ.js} +1 -1
  12. package/web/app/immutable/chunks/{Bv_0mmoe.js → B1TtNV9x.js} +1 -1
  13. package/web/app/immutable/chunks/{CM9GoLV5.js → B3QTKmHy.js} +1 -1
  14. package/web/app/immutable/chunks/{DaOKbar2.js → B3ziY5oo.js} +2 -2
  15. package/web/app/immutable/chunks/{BolJpU8l.js → B6-aVrNf.js} +4 -4
  16. package/web/app/immutable/chunks/{D5A9atQX.js → B79iAtSu.js} +2 -2
  17. package/web/app/immutable/chunks/{Di_ao8Rc.js → B7esq_NU.js} +1 -1
  18. package/web/app/immutable/chunks/{bojY7ttK.js → B9BALnhr.js} +1 -1
  19. package/web/app/immutable/chunks/{BYYtBM5R.js → B9GWGWit.js} +1 -1
  20. package/web/app/immutable/chunks/{BCFB88Wl.js → BAAQt1ZW.js} +1 -1
  21. package/web/app/immutable/chunks/{Bk14_fvY.js → BC5HDfRR.js} +1 -1
  22. package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
  23. package/web/app/immutable/chunks/{HcbkpXC1.js → BFMlH_mp.js} +2 -2
  24. package/web/app/immutable/chunks/{h5ZeHogL.js → BFi0zRRv.js} +1 -1
  25. package/web/app/immutable/chunks/{fC3yz20p.js → BH3eRhvI.js} +1 -1
  26. package/web/app/immutable/chunks/{Dyx6ysl7.js → BIfjK4Wy.js} +1 -1
  27. package/web/app/immutable/chunks/{Cpw2gXhG.js → BJEUIKTL.js} +1 -1
  28. package/web/app/immutable/chunks/{3Kr2ijlK.js → BJbm_MWC.js} +1 -1
  29. package/web/app/immutable/chunks/{BweHPPaS.js → BK0IkwFP.js} +2 -2
  30. package/web/app/immutable/chunks/{BqCTtUhB.js → BLMhg4vm.js} +1 -1
  31. package/web/app/immutable/chunks/{DFKO8V-Y.js → BLhJfI63.js} +1 -1
  32. package/web/app/immutable/chunks/{9AJtSub0.js → BNDTLRE1.js} +1 -1
  33. package/web/app/immutable/chunks/{COsxNPUV.js → BOyRg328.js} +1 -1
  34. package/web/app/immutable/chunks/{BbWnSSTS.js → BP-cDE7g.js} +1 -1
  35. package/web/app/immutable/chunks/{DOir9M0E.js → BPscmH6M.js} +1 -1
  36. package/web/app/immutable/chunks/{DtQHtXEW.js → BQ8hOnRo.js} +1 -1
  37. package/web/app/immutable/chunks/{BCuI_zgX.js → BQhBnAuP.js} +1 -1
  38. package/web/app/immutable/chunks/{Dpvv-9m3.js → BRRnx9NG.js} +1 -1
  39. package/web/app/immutable/chunks/{C8TrySMt.js → BSt1DBgt.js} +1 -1
  40. package/web/app/immutable/chunks/{IG43rVtJ.js → BSu_WKe5.js} +1 -1
  41. package/web/app/immutable/chunks/{DY5rw8pn.js → BUsnh1ZW.js} +1 -1
  42. package/web/app/immutable/chunks/{DNDJdxKs.js → BVYisuIY.js} +1 -1
  43. package/web/app/immutable/chunks/{CF_a5Llj.js → BVmCM-pH.js} +1 -1
  44. package/web/app/immutable/chunks/{DQvAX2eX.js → BWJopR_X.js} +1 -1
  45. package/web/app/immutable/chunks/{DIWzdBfB.js → BXlN4FOb.js} +1 -1
  46. package/web/app/immutable/chunks/{C6Wi6O6n.js → BaOiWDrc.js} +1 -1
  47. package/web/app/immutable/chunks/{Nrq0Uf9_.js → Bajx4HLb.js} +1 -1
  48. package/web/app/immutable/chunks/{DdRupUfV.js → Bbae4OrB.js} +2 -2
  49. package/web/app/immutable/chunks/{i8jM24jD.js → Bbs1UlDC.js} +1 -1
  50. package/web/app/immutable/chunks/{DyLERSuu.js → BcrN1yjB.js} +1 -1
  51. package/web/app/immutable/chunks/{0y7aytZM.js → BfQFKWzJ.js} +1 -1
  52. package/web/app/immutable/chunks/{Df4a242o.js → Bj4IsLvN.js} +1 -1
  53. package/web/app/immutable/chunks/{DBwdk2-0.js → BkcO6l5G.js} +1 -1
  54. package/web/app/immutable/chunks/{C6afU4he.js → Bl72eYFn.js} +1 -1
  55. package/web/app/immutable/chunks/{TN7R9Ny0.js → BlAMrm5X.js} +1 -1
  56. package/web/app/immutable/chunks/{BPDyvu9A.js → BlJAndP6.js} +1 -1
  57. package/web/app/immutable/chunks/{B1xM1EBM.js → Blt813S0.js} +1 -1
  58. package/web/app/immutable/chunks/{Pyf1FzKM.js → Bm3beBRj.js} +1 -1
  59. package/web/app/immutable/chunks/{CFdI48b2.js → BmM9C7Gu.js} +1 -1
  60. package/web/app/immutable/chunks/{BqrahRdk.js → Bmm_g7di.js} +4 -4
  61. package/web/app/immutable/chunks/{3LCOBHm6.js → BoUQWR1c.js} +1 -1
  62. package/web/app/immutable/chunks/{Cwg3XF5F.js → BoZ2kJyE.js} +1 -1
  63. package/web/app/immutable/chunks/{Dde9Z_vp.js → BpXDXz8J.js} +1 -1
  64. package/web/app/immutable/chunks/{DX2U4Mz9.js → BpwKnO7b.js} +3 -3
  65. package/web/app/immutable/chunks/{CQ5BHnSj.js → Bq7euxCs.js} +1 -1
  66. package/web/app/immutable/chunks/{CGUVvS8r.js → Bsdq-idi.js} +1 -1
  67. package/web/app/immutable/chunks/{DbUDL_oo.js → Bsru2omj.js} +1 -1
  68. package/web/app/immutable/chunks/{DEKjIPd8.js → Bstq-Mm1.js} +1 -1
  69. package/web/app/immutable/chunks/{COlfJVPs.js → Bt11uxE8.js} +4 -4
  70. package/web/app/immutable/chunks/{DxWgWHgi.js → BtchneSc.js} +1 -1
  71. package/web/app/immutable/chunks/{QA00-uqv.js → Bu67WlMm.js} +1 -1
  72. package/web/app/immutable/chunks/{CfnXjWQL.js → BuTcdZo7.js} +1 -1
  73. package/web/app/immutable/chunks/{aixoUWDq.js → BuXXIZt7.js} +1 -1
  74. package/web/app/immutable/chunks/{E8oicBhU.js → BudPFdIj.js} +1 -1
  75. package/web/app/immutable/chunks/{DxuwadpA.js → BuiwW61u.js} +1 -1
  76. package/web/app/immutable/chunks/{DJb2lMGn.js → BvjgIPau.js} +1 -1
  77. package/web/app/immutable/chunks/{Dh-HeAnQ.js → BxTCsbTV.js} +1 -1
  78. package/web/app/immutable/chunks/{awY5HvZY.js → ByBw1QkA.js} +1 -1
  79. package/web/app/immutable/chunks/{CnQVxh95.js → Byr10Y9u.js} +1 -1
  80. package/web/app/immutable/chunks/{DfgH7-YK.js → C-y1uW-U.js} +1 -1
  81. package/web/app/immutable/chunks/{De2a277N.js → C07_BcWL.js} +1 -1
  82. package/web/app/immutable/chunks/{maZzJmVw.js → C2zt__Wj.js} +1 -1
  83. package/web/app/immutable/chunks/{B-MjuJTx.js → C4t02ICg.js} +2 -2
  84. package/web/app/immutable/chunks/{CnMzOGNL.js → C53ouDFl.js} +1 -1
  85. package/web/app/immutable/chunks/{YbqMJoDi.js → C6rcni5e.js} +1 -1
  86. package/web/app/immutable/chunks/{Ksiiix3Q.js → C7ajdkO4.js} +1 -1
  87. package/web/app/immutable/chunks/{DU1c0itA.js → C8Wy-uTf.js} +1 -1
  88. package/web/app/immutable/chunks/{BCiWc-GH.js → CACH34FC.js} +1 -1
  89. package/web/app/immutable/chunks/{CY0EK8Cm.js → CAiDxi6i.js} +3 -3
  90. package/web/app/immutable/chunks/{bIL0xbKX.js → CBbdbU2x.js} +1 -1
  91. package/web/app/immutable/chunks/{BB-hf8IY.js → CCzan1r_.js} +4 -4
  92. package/web/app/immutable/chunks/{BE08e7Se.js → CD9WEaPg.js} +1 -1
  93. package/web/app/immutable/chunks/{EQgYvydQ.js → CEap7Fwz.js} +1 -1
  94. package/web/app/immutable/chunks/{lSLkjC_I.js → CG28d89U.js} +1 -1
  95. package/web/app/immutable/chunks/{DeY70dof.js → CGdXewiA.js} +1 -1
  96. package/web/app/immutable/chunks/{_HPNXgkR.js → CHApvLbz.js} +3 -3
  97. package/web/app/immutable/chunks/{CdGl_2eX.js → CIWQMI37.js} +1 -1
  98. package/web/app/immutable/chunks/{BRPJcG-m.js → CIlqcFRn.js} +1 -1
  99. package/web/app/immutable/chunks/{DcMTwn77.js → CJ7hw6mW.js} +1 -1
  100. package/web/app/immutable/chunks/{DvnO7gWT.js → CKcb8dge.js} +3 -3
  101. package/web/app/immutable/chunks/{Ly7eBIj5.js → CMsGHYhn.js} +1 -1
  102. package/web/app/immutable/chunks/{v7JbBbwR.js → CNl453qs.js} +1 -1
  103. package/web/app/immutable/chunks/{DJJ2Xrlq.js → COVS9Crf.js} +1 -1
  104. package/web/app/immutable/chunks/{CaMRSd1-.js → CPdyCf2B.js} +1 -1
  105. package/web/app/immutable/chunks/{CGHwi-2H.js → CQA1q0F9.js} +1 -1
  106. package/web/app/immutable/chunks/{D9_wDL10.js → CS6HVyHp.js} +1 -1
  107. package/web/app/immutable/chunks/{DgzMHcMD.js → CSlvwZw1.js} +1 -1
  108. package/web/app/immutable/chunks/{QIFiwjW0.js → CTVz-pXS.js} +3 -3
  109. package/web/app/immutable/chunks/{zFAkpaJn.js → CTowDLQa.js} +1 -1
  110. package/web/app/immutable/chunks/{BwVjpKmH.js → CULu7FSf.js} +1 -1
  111. package/web/app/immutable/chunks/{XMluVOSf.js → CUxtJz1o.js} +1 -1
  112. package/web/app/immutable/chunks/{BVyOECUU.js → CV5qbjYN.js} +1 -1
  113. package/web/app/immutable/chunks/{Bj4j6g-o.js → CVd7xnlx.js} +1 -1
  114. package/web/app/immutable/chunks/{9R_52XLX.js → CW4vzFn_.js} +1 -1
  115. package/web/app/immutable/chunks/{TXPMw3n4.js → CY2g-8Xo.js} +1 -1
  116. package/web/app/immutable/chunks/{BDbFQqI8.js → CY4ZK6xA.js} +3 -3
  117. package/web/app/immutable/chunks/{BXHbm15d.js → CZB2ndi9.js} +1 -1
  118. package/web/app/immutable/chunks/{CjLfgoGI.js → CZex5Cac.js} +1 -1
  119. package/web/app/immutable/chunks/{7EQMYysM.js → C_4qh07f.js} +1 -1
  120. package/web/app/immutable/chunks/{MoxNukrR.js → CbQ8NVeY.js} +1 -1
  121. package/web/app/immutable/chunks/{-8AxW0IA.js → CbQYR4R2.js} +3 -3
  122. package/web/app/immutable/chunks/{DY1YVoxv.js → CcgSaDDB.js} +1 -1
  123. package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
  124. package/web/app/immutable/chunks/{De0cdeOU.js → CfIVswBm.js} +1 -1
  125. package/web/app/immutable/chunks/{CvSLeFQo.js → CfaCrhAh.js} +1 -1
  126. package/web/app/immutable/chunks/{CSb1CnpN.js → CggFXl4B.js} +1 -1
  127. package/web/app/immutable/chunks/{Dt3xwKL6.js → Chg0KuUy.js} +2 -2
  128. package/web/app/immutable/chunks/{3Qz3qAhk.js → Ci75CkmK.js} +1 -1
  129. package/web/app/immutable/chunks/{BVcaPXq9.js → CisSEUth.js} +1 -1
  130. package/web/app/immutable/chunks/{D6_ybykj.js → Ck8ZqpbB.js} +1 -1
  131. package/web/app/immutable/chunks/{DKupjKLn.js → ClQE9kQf.js} +1 -1
  132. package/web/app/immutable/chunks/{DSDM77x3.js → ClSbVEed.js} +1 -1
  133. package/web/app/immutable/chunks/{DAVG7sIL.js → CmhKJ6Ie.js} +1 -1
  134. package/web/app/immutable/chunks/{tHETzssD.js → CndJcn8K.js} +1 -1
  135. package/web/app/immutable/chunks/{BIkt0YE0.js → Co9CFvqw.js} +1 -1
  136. package/web/app/immutable/chunks/{Bb8ARnaK.js → CoAfXTHr.js} +1 -1
  137. package/web/app/immutable/chunks/CoCy46Yy.js +1 -0
  138. package/web/app/immutable/chunks/{DXDbxM_W.js → CoOgBJzu.js} +1 -1
  139. package/web/app/immutable/chunks/{BYJh9adv.js → Cq8MD_3v.js} +1 -1
  140. package/web/app/immutable/chunks/{DsOS7N8Z.js → CqGq5PHb.js} +1 -1
  141. package/web/app/immutable/chunks/{BmLlDCoW.js → CrL2Nk6a.js} +1 -1
  142. package/web/app/immutable/chunks/{BNJkKc31.js → CrZlcn4Y.js} +1 -1
  143. package/web/app/immutable/chunks/{Bu3PKqut.js → CrpUtGFn.js} +1 -1
  144. package/web/app/immutable/chunks/{BthojcF8.js → CrvtnK13.js} +2 -2
  145. package/web/app/immutable/chunks/{BNFvOw36.js → CrwLq8nY.js} +1 -1
  146. package/web/app/immutable/chunks/{BHJpo3VA.js → Cs-DtA5c.js} +1 -1
  147. package/web/app/immutable/chunks/{DcLVN86K.js → CtDIyzmZ.js} +1 -1
  148. package/web/app/immutable/chunks/{D5evzUZd.js → Cuqu6DgP.js} +1 -1
  149. package/web/app/immutable/chunks/{Drf1gLyo.js → Cw2fqKk9.js} +1 -1
  150. package/web/app/immutable/chunks/{FQkCsxt2.js → CwCTYQp7.js} +1 -1
  151. package/web/app/immutable/chunks/{DbxqdYAO.js → CxMr7p-O.js} +3 -3
  152. package/web/app/immutable/chunks/{DZjSAGjX.js → Cyr0PKv3.js} +1 -1
  153. package/web/app/immutable/chunks/{mRUS_S7Z.js → CzTSi5lc.js} +1 -1
  154. package/web/app/immutable/chunks/{BGo6FK-0.js → CzjElr82.js} +1 -1
  155. package/web/app/immutable/chunks/{BKFxm3WK.js → D-DyBHf9.js} +1 -1
  156. package/web/app/immutable/chunks/{CFB2mNds.js → D-aEx3GL.js} +2 -2
  157. package/web/app/immutable/chunks/{COSIRxZC.js → D1R1FWjP.js} +1 -1
  158. package/web/app/immutable/chunks/{B18ybwa0.js → D1YPh_5n.js} +1 -1
  159. package/web/app/immutable/chunks/{ByZL9dMf.js → D24Of5Kd.js} +1 -1
  160. package/web/app/immutable/chunks/{PkPZtGfM.js → D25lWS8Q.js} +1 -1
  161. package/web/app/immutable/chunks/{CW979n9w.js → D2ch709U.js} +1 -1
  162. package/web/app/immutable/chunks/{yqEyUNVG.js → D2kIeaeO.js} +1 -1
  163. package/web/app/immutable/chunks/{C4M_mNFP.js → D2y-zN_4.js} +1 -1
  164. package/web/app/immutable/chunks/{UQ6MIVTw.js → D3waRWO1.js} +1 -1
  165. package/web/app/immutable/chunks/{2aKRVAvL.js → D48_y-cl.js} +1 -1
  166. package/web/app/immutable/chunks/{x-RVzKqZ.js → D49zWKPf.js} +1 -1
  167. package/web/app/immutable/chunks/{CIoJPvjg.js → D5wnbxHp.js} +1 -1
  168. package/web/app/immutable/chunks/{C21Z9LLF.js → D7AX9X0W.js} +1 -1
  169. package/web/app/immutable/chunks/{BtMIAxno.js → DCL7QtVR.js} +1 -1
  170. package/web/app/immutable/chunks/{0b3rkAam.js → DEQDOTA1.js} +1 -1
  171. package/web/app/immutable/chunks/{BdY8OnZP.js → DGK5CsQK.js} +1 -1
  172. package/web/app/immutable/chunks/{BdlYeRHB.js → DGj-492Z.js} +2 -2
  173. package/web/app/immutable/chunks/{W05hyx94.js → DIEHuZ8f.js} +1 -1
  174. package/web/app/immutable/chunks/{CJke1tnU.js → DIoT8eB4.js} +1 -1
  175. package/web/app/immutable/chunks/{CIKXOyvw.js → DJivXy66.js} +2 -2
  176. package/web/app/immutable/chunks/{CUeOEnqq.js → DKeBnsgS.js} +1 -1
  177. package/web/app/immutable/chunks/DLO_0egf.js +1 -0
  178. package/web/app/immutable/chunks/{UnM4qztD.js → DLttsd3i.js} +1 -1
  179. package/web/app/immutable/chunks/{DGdWzkgm.js → DMV5KQix.js} +1 -1
  180. package/web/app/immutable/chunks/{ChKOG1mU.js → DNZCPKpq.js} +1 -1
  181. package/web/app/immutable/chunks/{BhtJVlVx.js → DNnmVx8j.js} +1 -1
  182. package/web/app/immutable/chunks/DP0K41jk.js +1 -0
  183. package/web/app/immutable/chunks/{CaHWSiOY.js → DP2r4UWt.js} +1 -1
  184. package/web/app/immutable/chunks/{21kfe-mS.js → DPG1HUgG.js} +1 -1
  185. package/web/app/immutable/chunks/{r5JNAzEM.js → DPjr22dV.js} +1 -1
  186. package/web/app/immutable/chunks/{CZ5zON0R.js → DPmNtGFj.js} +1 -1
  187. package/web/app/immutable/chunks/{Bb-hI5du.js → DQ8CqY9L.js} +2 -2
  188. package/web/app/immutable/chunks/{3IpMTtMx.js → DQpDIYyw.js} +1 -1
  189. package/web/app/immutable/chunks/{B8foSZsl.js → DRLJuUwT.js} +1 -1
  190. package/web/app/immutable/chunks/{CTTICX_5.js → DRXgE6SQ.js} +1 -1
  191. package/web/app/immutable/chunks/{Bn4F-JIh.js → DU1ubslo.js} +1 -1
  192. package/web/app/immutable/chunks/{BIcof04i.js → DUFN_Pzm.js} +1 -1
  193. package/web/app/immutable/chunks/{BcYVm7io.js → DWqaYE81.js} +1 -1
  194. package/web/app/immutable/chunks/{CB8gRmKb.js → DXI99C-u.js} +1 -1
  195. package/web/app/immutable/chunks/{C9ij7Z2h.js → D_5u7gP_.js} +1 -1
  196. package/web/app/immutable/chunks/{BD7jFvJp.js → D_AhXAPc.js} +1 -1
  197. package/web/app/immutable/chunks/{COS4Sgoi.js → DaMlaKH_.js} +2 -2
  198. package/web/app/immutable/chunks/{hRfDutUE.js → Db1BGAZN.js} +1 -1
  199. package/web/app/immutable/chunks/{yy2JFRyT.js → DcRqMoeH.js} +1 -1
  200. package/web/app/immutable/chunks/{BWI85bGY.js → Dd3UnPYB.js} +1 -1
  201. package/web/app/immutable/chunks/{CYq58ltZ.js → DdLy5J3P.js} +1 -1
  202. package/web/app/immutable/chunks/{CRUcTVFP.js → DezlVQ1h.js} +1 -1
  203. package/web/app/immutable/chunks/{OMssb4xF.js → Dga6E45c.js} +1 -1
  204. package/web/app/immutable/chunks/{BoEcbLG-.js → DgtVALrr.js} +1 -1
  205. package/web/app/immutable/chunks/{B-4i031c.js → DhVLJG6D.js} +1 -1
  206. package/web/app/immutable/chunks/{BRdQpeCl.js → DkERMj5B.js} +1 -1
  207. package/web/app/immutable/chunks/{A3z9XWMi.js → DkJYBjJg.js} +1 -1
  208. package/web/app/immutable/chunks/{Djah0WfC.js → DkOk28fz.js} +1 -1
  209. package/web/app/immutable/chunks/{kAav5o2h.js → Dk_Hc5oq.js} +1 -1
  210. package/web/app/immutable/chunks/{Dbr8gjWS.js → DlfbUU6o.js} +1 -1
  211. package/web/app/immutable/chunks/{DdjeekcY.js → DlwTP-AJ.js} +1 -1
  212. package/web/app/immutable/chunks/{6SOEgr71.js → Dm98YBgx.js} +3 -3
  213. package/web/app/immutable/chunks/{DAI6QH7D.js → DmWvRjk6.js} +1 -1
  214. package/web/app/immutable/chunks/{CyHe7TdT.js → DmpdpJAo.js} +1 -1
  215. package/web/app/immutable/chunks/{DIad5c9_.js → Dn_aCJkC.js} +1 -1
  216. package/web/app/immutable/chunks/{DIQ-xR1q.js → Do-SaITx.js} +1 -1
  217. package/web/app/immutable/chunks/{BPpACIC2.js → DoY7_Wfd.js} +1 -1
  218. package/web/app/immutable/chunks/{Z8DHXl17.js → DqEoTQds.js} +1 -1
  219. package/web/app/immutable/chunks/{TyVpf8MX.js → DtVrXGBM.js} +1 -1
  220. package/web/app/immutable/chunks/{CsilY7l9.js → DtkIwON_.js} +1 -1
  221. package/web/app/immutable/chunks/{CDxV78M0.js → DuoQQplG.js} +1 -1
  222. package/web/app/immutable/chunks/{Y_tkjygB.js → DwGyIIXK.js} +1 -1
  223. package/web/app/immutable/chunks/{LdXAlc1O.js → DwbEs_9r.js} +1 -1
  224. package/web/app/immutable/chunks/{CvusaaYc.js → DwiE5WsI.js} +1 -1
  225. package/web/app/immutable/chunks/{BW2en5Js.js → DxSE2XEK.js} +1 -1
  226. package/web/app/immutable/chunks/{jyNUu-ZR.js → DxnZvDv0.js} +1 -1
  227. package/web/app/immutable/chunks/{Bx7gCv2M.js → Dy9FYRX8.js} +1 -1
  228. package/web/app/immutable/chunks/{yMcNgg0D.js → DzTn7KcX.js} +1 -1
  229. package/web/app/immutable/chunks/{rsUVVEzx.js → ELYZilX0.js} +1 -1
  230. package/web/app/immutable/chunks/{DOZ82gYM.js → ExR0UceK.js} +1 -1
  231. package/web/app/immutable/chunks/{BlRGZv8u.js → FLpsgWeB.js} +1 -1
  232. package/web/app/immutable/chunks/{C1La-Fme.js → GTsIF2uA.js} +1 -1
  233. package/web/app/immutable/chunks/{BpLxj3s3.js → HLNbJ-7M.js} +1 -1
  234. package/web/app/immutable/chunks/{D22j4iWy.js → Hi2H4bj8.js} +1 -1
  235. package/web/app/immutable/chunks/{dFhS46gw.js → I9b9apiN.js} +1 -1
  236. package/web/app/immutable/chunks/{UqcU95a7.js → Idk978zJ.js} +1 -1
  237. package/web/app/immutable/chunks/{C_wfHKmM.js → Ii0VTY5h.js} +1 -1
  238. package/web/app/immutable/chunks/{CTqRHXfu.js → ItBm4ElA.js} +1 -1
  239. package/web/app/immutable/chunks/{Dduwpj0a.js → Jk9a4xPx.js} +1 -1
  240. package/web/app/immutable/chunks/{B0kNPCxU.js → KtEuoG00.js} +1 -1
  241. package/web/app/immutable/chunks/{Btst3lgy.js → L3K71tUU.js} +1 -1
  242. package/web/app/immutable/chunks/{DzpuLv6U.js → Lk7a_7W9.js} +1 -1
  243. package/web/app/immutable/chunks/{DpxbS0Pj.js → Mmc_61iE.js} +1 -1
  244. package/web/app/immutable/chunks/{7i0OJtNQ.js → R5lmOJFS.js} +1 -1
  245. package/web/app/immutable/chunks/{8jO_MBKF.js → RTRAqswA.js} +1 -1
  246. package/web/app/immutable/chunks/{BOnTc4ny.js → T-5C1GqS.js} +1 -1
  247. package/web/app/immutable/chunks/{DpESY8ko.js → UYAhegVx.js} +1 -1
  248. package/web/app/immutable/chunks/{CUA9hM4m.js → UsbmbYa0.js} +1 -1
  249. package/web/app/immutable/chunks/{DyXOhKE5.js → VcnbZvDh.js} +1 -1
  250. package/web/app/immutable/chunks/{77KTvr2w.js → WvHbj6rB.js} +1 -1
  251. package/web/app/immutable/chunks/{BCVhFPNJ.js → XK8g38bo.js} +1 -1
  252. package/web/app/immutable/chunks/{BbfEcBPg.js → Y2a1lhL9.js} +1 -1
  253. package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
  254. package/web/app/immutable/chunks/{VTJf_qPn.js → YeOAvjnW.js} +1 -1
  255. package/web/app/immutable/chunks/{BrDfJqC4.js → _3Ca9E4W.js} +1 -1
  256. package/web/app/immutable/chunks/{DhaHSPPQ.js → _duPkHC1.js} +1 -1
  257. package/web/app/immutable/chunks/{Cpgxz5sK.js → aR8LYT4O.js} +1 -1
  258. package/web/app/immutable/chunks/{DjNuITHM.js → cEIzYo-d.js} +1 -1
  259. package/web/app/immutable/chunks/{cfiNEg68.js → cPsAlOmH.js} +1 -1
  260. package/web/app/immutable/chunks/{HeVxSGdr.js → cc1gQUub.js} +1 -1
  261. package/web/app/immutable/chunks/{Dh438xC0.js → cpPIph2M.js} +2 -2
  262. package/web/app/immutable/chunks/{CPWMushE.js → d028N8d2.js} +1 -1
  263. package/web/app/immutable/chunks/{DC1xYxUn.js → ewL2yuZ8.js} +1 -1
  264. package/web/app/immutable/chunks/{DlMrAlfA.js → g08hegP2.js} +1 -1
  265. package/web/app/immutable/chunks/{Bax102l4.js → gHZWxIPZ.js} +1 -1
  266. package/web/app/immutable/chunks/{CLqqc_hU.js → gJJMUdOI.js} +1 -1
  267. package/web/app/immutable/chunks/{D7yetF0v.js → gwv5JQYH.js} +1 -1
  268. package/web/app/immutable/chunks/{Cerl373K.js → iAKTK0Nq.js} +1 -1
  269. package/web/app/immutable/chunks/{BxU747mj.js → j5ppcWWU.js} +1 -1
  270. package/web/app/immutable/chunks/{E1uoF1cW.js → jAIXVFR4.js} +1 -1
  271. package/web/app/immutable/chunks/{B3OJ_2Dd.js → kvtKUeBe.js} +1 -1
  272. package/web/app/immutable/chunks/{B3JbrKDZ.js → lZ7zkdkp.js} +1 -1
  273. package/web/app/immutable/chunks/{DpvQ3NRH.js → mUNs8NSR.js} +1 -1
  274. package/web/app/immutable/chunks/{CueOVPTy.js → oBIu7LTI.js} +1 -1
  275. package/web/app/immutable/chunks/{DZSbMOPJ.js → oHUzFHtp.js} +2 -2
  276. package/web/app/immutable/chunks/{BhYFIrRM.js → pHYq50Ny.js} +1 -1
  277. package/web/app/immutable/chunks/{24f6N9l0.js → pJyYpzre.js} +1 -1
  278. package/web/app/immutable/chunks/{ico0GHoP.js → qm1BBGRe.js} +13 -13
  279. package/web/app/immutable/chunks/{BjdIR-od.js → qoDJOBiM.js} +1 -1
  280. package/web/app/immutable/chunks/{C6rz0msZ.js → r2R1I-D0.js} +1 -1
  281. package/web/app/immutable/chunks/{DrkDJmY5.js → rlNXEIUc.js} +1 -1
  282. package/web/app/immutable/chunks/{DzBJS0Lp.js → scTXKJzg.js} +1 -1
  283. package/web/app/immutable/chunks/{CDxGu9F5.js → tVmNccZ-.js} +1 -1
  284. package/web/app/immutable/chunks/{DQBViT5w.js → w-7j2Qtq.js} +1 -1
  285. package/web/app/immutable/chunks/{ChOMtuod.js → x2AHvZeQ.js} +1 -1
  286. package/web/app/immutable/chunks/{B2OS2WTh.js → xPYDsdm4.js} +1 -1
  287. package/web/app/immutable/chunks/{DOLX5oss.js → xzksWQ-h.js} +1 -1
  288. package/web/app/immutable/chunks/{CJEwuNO9.js → ygDvZWWC.js} +1 -1
  289. package/web/app/immutable/chunks/{DgjIVRdE.js → z91bgOZ6.js} +1 -1
  290. package/web/app/immutable/chunks/{Y4bYs1dr.js → z_SeEaJQ.js} +1 -1
  291. package/web/app/immutable/chunks/{hstOawAs.js → zxxqPN9_.js} +1 -1
  292. package/web/app/immutable/entry/{app.gkm8TnXW.js → app.DOLk01Bm.js} +3 -3
  293. package/web/app/immutable/entry/start.CIQw0TYU.js +1 -0
  294. package/web/app/immutable/nodes/{0.xKtnYOA2.js → 0.qPBEcapg.js} +1 -1
  295. package/web/app/immutable/nodes/{1.BMx4VsW1.js → 1.Bi3sNEdL.js} +1 -1
  296. package/web/app/immutable/nodes/10.DHyl6QAs.js +39 -0
  297. package/web/app/immutable/nodes/{11._cAIrch_.js → 11.pqpLvrmB.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DOoAvwLA.js → 12.C5GV0W_U.js} +1 -1
  299. package/web/app/immutable/nodes/{13.Coj_sRB4.js → 13.BpCKbOND.js} +1 -1
  300. package/web/app/immutable/nodes/{14.AVrz3ZLQ.js → 14.DomreN-2.js} +3 -3
  301. package/web/app/immutable/nodes/{15.BGK-JRWm.js → 15.CKbUOFrf.js} +1 -1
  302. package/web/app/immutable/nodes/{16.CMkcwVoI.js → 16.BcdRdVBS.js} +1 -1
  303. package/web/app/immutable/nodes/{17.BS5un5d0.js → 17.C5h-oNNo.js} +1 -1
  304. package/web/app/immutable/nodes/{18._hTG2-17.js → 18.vgJOUK1N.js} +1 -1
  305. package/web/app/immutable/nodes/{19.DuCFyr_N.js → 19.3QLuvvWY.js} +2 -2
  306. package/web/app/immutable/nodes/{2.uAqDAg4D.js → 2.CSj73FLT.js} +4 -4
  307. package/web/app/immutable/nodes/{20.C1pW6BvW.js → 20.CuOgTm-x.js} +1 -1
  308. package/web/app/immutable/nodes/{3.M-EbuqKW.js → 3.BUbQ5Tes.js} +1 -1
  309. package/web/app/immutable/nodes/{4.ByPZ1Nrn.js → 4.Byn29Mul.js} +1 -1
  310. package/web/app/immutable/nodes/{5.DKAjjuf7.js → 5.CMHzkmR-.js} +1 -1
  311. package/web/app/immutable/nodes/{6.DOc_YxMK.js → 6.N0CPg2uE.js} +1 -1
  312. package/web/app/immutable/nodes/{7.gFNAyoNX.js → 7.4Szvqobl.js} +1 -1
  313. package/web/app/immutable/nodes/{8.C_Kp8pWz.js → 8.BKw9KMbS.js} +1 -1
  314. package/web/app/immutable/nodes/{9.C6HX35Sq.js → 9.BBJWosck.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +44 -44
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B2LBPAIA.js +0 -1
  319. package/web/app/immutable/chunks/BUTuN2nE.js +0 -1
  320. package/web/app/immutable/chunks/CH-Qi35K.js +0 -1
  321. package/web/app/immutable/chunks/DWvCfaBg.js +0 -1
  322. package/web/app/immutable/chunks/Da8rtzmJ.js +0 -1
  323. package/web/app/immutable/chunks/wBNgrgMC.js +0 -1
  324. package/web/app/immutable/entry/start.CMMmzvCE.js +0 -1
  325. package/web/app/immutable/nodes/10.HyXPJR8g.js +0 -39
@@ -1 +1 @@
1
- import{t as lt,bo as u,bw as ct,b as dt}from"./DWvCfaBg.js";import{bs as vt,ca as ft,aD as t,a5 as H,bS as ut,bA as D,bH as K,b_ as S,W as T,bn as gt,bV as P,c9 as x,aA as g,a7 as mt,ay as ht,bl as pt,bO as bt,aB as F}from"./3SdAC2_C.js";import{i as L}from"./VTJf_qPn.js";import{g as _t}from"./CueOVPTy.js";import{t as kt}from"./Bu3PKqut.js";import{f as X,s as c,g as R}from"./BCuI_zgX.js";import{b as wt}from"./Dn334wJv.js";import{l as j}from"./W05hyx94.js";import{A as xt}from"./CvSLeFQo.js";import{a as Wt}from"./r5JNAzEM.js";function It(W){const{itemCount:a,maxVisible:d,availableWidth:n,surface:s,overlap:b,overflowOverlap:v}=W;if(n<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),y=i=>i===0?0:s+(i-1)*_;if(a<=m&&y(a)<=n)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(y(i)+(A>0?W.measureOverflowText(A)-(i>0?v:0):0)<=n)return i}return 0}function yt(W,a=n=>requestAnimationFrame(n),d=n=>cancelAnimationFrame(n)){let n,s;return{set(b){if(n=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=n;n=void 0,W(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),n=void 0}}}const At=20,Ct=12;let O,J;const Q=new Map;var Tt=F('<span data-agent-avatar-stack-item=""><!></span>'),Ot=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Vt=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Mt=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function St(W,a){if(new.target)return lt({component:St,...W});vt(a,!0);let d=u(a,"items",7),n=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),y=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),I=P(void 0),z=P(void 0);const h=x(()=>Wt[v()]),U=x(()=>s()&&t(z)!==void 0?It({itemCount:d().length,maxVisible:n(),availableWidth:t(z),surface:t(h).surface,overlap:t(h).overlap,overflowOverlap:t(h).overlap,measureOverflowText:e=>Math.max(t(h).surface,$(e)+Ct)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?t(U)??n():n()))),k=x(()=>d().slice(0,t(Y))),E=x(()=>Math.max(0,d().length-t(k).length)),N=x(()=>t(h).surface-t(h).overlap),Z=x(()=>t(k).length===0?0:t(h).surface+(t(k).length-1)*t(N));function $(e){const r=`+${j(e)}`,o=Q.get(r);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!t(I))return At;J??=`500 12px ${getComputedStyle(t(I)).fontFamily}`,O.font=J;const l=O.measureText(r).width;return Q.set(r,l),l}ft(()=>{if(!s()||!t(I)||typeof ResizeObserver>"u")return;const e=yt(o=>{K(z,o,!0)}),r=new ResizeObserver(o=>{const l=o[o.length-1];e.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return r.observe(t(I)),()=>{r.disconnect(),e.cancel()}});var tt={get items(){return d()},set items(e){d(e),g()},get maxVisible(){return n()},set maxVisible(e=3){n(e),g()},get adaptive(){return s()},set adaptive(e=!1){s(e),g()},get align(){return b()},set align(e="end"){b(e),g()},get variant(){return v()},set variant(e="card-stack"){v(e),g()},get interactive(){return _()},set interactive(e=!1){_(e),g()},get overflowId(){return m()},set overflowId(e){m(e),g()},get overflowTestId(){return y()},set overflowTestId(e){y(e),g()},get itemContent(){return i()},set itemContent(e){i(e),g()},get class(){return A()},set class(e=""){A(e),g()},$set:ct,$on:(e,r)=>dt(a,e,r)},p=Mt();let q;var B=H(p);{var et=e=>{var r=Ot();let o;_t(r,23,()=>t(k),l=>l.key,(l,w,V)=>{var f=Tt();let G;var nt=H(f);{var st=C=>{var M=mt(),ot=ht(M);kt(ot,i,()=>t(w)),T(C,M)},it=C=>{{let M=x(()=>t(w).state??"idle");xt(C,{get agentId(){return t(w).agentId},get specialist(){return t(w).specialist},get icon(){return t(w).icon},get state(){return t(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};L(nt,C=>{i()?C(st):C(it,-1)})}D(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":t(E)>0&&t(V)===t(k).length-1}),R(f,`inset-inline-start: ${t(V)*t(N)}px; z-index: ${t(V)+1};`),c(f,"data-agent-avatar-stack-index",t(V)),c(f,"data-agent-avatar-stack-key",t(w).key),c(f,"data-agent-avatar-stack-agent-id",t(w).agentId),c(f,"data-agent-avatar-stack-specialist",t(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),D(r),S(()=>o=R(r,"",o,{width:`${t(Z)}px`})),T(e,r)};L(B,e=>{t(k).length>0&&e(et)})}var at=ut(B,2);{var rt=e=>{var r=Vt(),o=pt(r);S(l=>{c(r,"id",m()),R(r,`margin-inline-start: ${t(k).length>0?-t(h).overlap:0}px; z-index: ${t(k).length+1};`),c(r,"data-testid",y()),bt(o,`+${l??""}`)},[()=>j(t(E))]),T(e,r)};L(at,e=>{t(E)>0&&e(rt)})}return D(p),wt(p,e=>K(I,e),()=>t(I)),S(()=>{q=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",q,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",t(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),gt(tt)}export{St as A};
1
+ import{t as lt,bo as u,bw as ct,b as dt}from"./YLhFQnIu.js";import{bs as vt,ca as ft,aD as t,a5 as H,bS as ut,bA as D,bH as K,b_ as S,W as T,bn as gt,bV as P,c9 as x,aA as g,a7 as mt,ay as ht,bl as pt,bO as bt,aB as F}from"./3SdAC2_C.js";import{i as L}from"./YeOAvjnW.js";import{g as _t}from"./oBIu7LTI.js";import{t as kt}from"./CrpUtGFn.js";import{f as X,s as c,g as R}from"./BQhBnAuP.js";import{b as wt}from"./Dn334wJv.js";import{l as j}from"./DIEHuZ8f.js";import{A as xt}from"./CfaCrhAh.js";import{a as Wt}from"./DPjr22dV.js";function It(W){const{itemCount:a,maxVisible:d,availableWidth:n,surface:s,overlap:b,overflowOverlap:v}=W;if(n<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),y=i=>i===0?0:s+(i-1)*_;if(a<=m&&y(a)<=n)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(y(i)+(A>0?W.measureOverflowText(A)-(i>0?v:0):0)<=n)return i}return 0}function yt(W,a=n=>requestAnimationFrame(n),d=n=>cancelAnimationFrame(n)){let n,s;return{set(b){if(n=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=n;n=void 0,W(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),n=void 0}}}const At=20,Ct=12;let O,J;const Q=new Map;var Tt=F('<span data-agent-avatar-stack-item=""><!></span>'),Ot=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Vt=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Mt=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function St(W,a){if(new.target)return lt({component:St,...W});vt(a,!0);let d=u(a,"items",7),n=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),y=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),I=P(void 0),z=P(void 0);const h=x(()=>Wt[v()]),U=x(()=>s()&&t(z)!==void 0?It({itemCount:d().length,maxVisible:n(),availableWidth:t(z),surface:t(h).surface,overlap:t(h).overlap,overflowOverlap:t(h).overlap,measureOverflowText:e=>Math.max(t(h).surface,$(e)+Ct)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?t(U)??n():n()))),k=x(()=>d().slice(0,t(Y))),E=x(()=>Math.max(0,d().length-t(k).length)),N=x(()=>t(h).surface-t(h).overlap),Z=x(()=>t(k).length===0?0:t(h).surface+(t(k).length-1)*t(N));function $(e){const r=`+${j(e)}`,o=Q.get(r);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!t(I))return At;J??=`500 12px ${getComputedStyle(t(I)).fontFamily}`,O.font=J;const l=O.measureText(r).width;return Q.set(r,l),l}ft(()=>{if(!s()||!t(I)||typeof ResizeObserver>"u")return;const e=yt(o=>{K(z,o,!0)}),r=new ResizeObserver(o=>{const l=o[o.length-1];e.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return r.observe(t(I)),()=>{r.disconnect(),e.cancel()}});var tt={get items(){return d()},set items(e){d(e),g()},get maxVisible(){return n()},set maxVisible(e=3){n(e),g()},get adaptive(){return s()},set adaptive(e=!1){s(e),g()},get align(){return b()},set align(e="end"){b(e),g()},get variant(){return v()},set variant(e="card-stack"){v(e),g()},get interactive(){return _()},set interactive(e=!1){_(e),g()},get overflowId(){return m()},set overflowId(e){m(e),g()},get overflowTestId(){return y()},set overflowTestId(e){y(e),g()},get itemContent(){return i()},set itemContent(e){i(e),g()},get class(){return A()},set class(e=""){A(e),g()},$set:ct,$on:(e,r)=>dt(a,e,r)},p=Mt();let q;var B=H(p);{var et=e=>{var r=Ot();let o;_t(r,23,()=>t(k),l=>l.key,(l,w,V)=>{var f=Tt();let G;var nt=H(f);{var st=C=>{var M=mt(),ot=ht(M);kt(ot,i,()=>t(w)),T(C,M)},it=C=>{{let M=x(()=>t(w).state??"idle");xt(C,{get agentId(){return t(w).agentId},get specialist(){return t(w).specialist},get icon(){return t(w).icon},get state(){return t(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};L(nt,C=>{i()?C(st):C(it,-1)})}D(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":t(E)>0&&t(V)===t(k).length-1}),R(f,`inset-inline-start: ${t(V)*t(N)}px; z-index: ${t(V)+1};`),c(f,"data-agent-avatar-stack-index",t(V)),c(f,"data-agent-avatar-stack-key",t(w).key),c(f,"data-agent-avatar-stack-agent-id",t(w).agentId),c(f,"data-agent-avatar-stack-specialist",t(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),D(r),S(()=>o=R(r,"",o,{width:`${t(Z)}px`})),T(e,r)};L(B,e=>{t(k).length>0&&e(et)})}var at=ut(B,2);{var rt=e=>{var r=Vt(),o=pt(r);S(l=>{c(r,"id",m()),R(r,`margin-inline-start: ${t(k).length>0?-t(h).overlap:0}px; z-index: ${t(k).length+1};`),c(r,"data-testid",y()),bt(o,`+${l??""}`)},[()=>j(t(E))]),T(e,r)};L(at,e=>{t(E)>0&&e(rt)})}return D(p),wt(p,e=>K(I,e),()=>t(I)),S(()=>{q=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",q,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",t(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),gt(tt)}export{St as A};
@@ -1 +1 @@
1
- import{l as e}from"./DX2U4Mz9.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
1
+ import{l as e}from"./BpwKnO7b.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DZSbMOPJ.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/D5xlMOwU.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/D5A9atQX.js","/app/immutable/chunks/BXHbm15d.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/Drf1gLyo.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/bIL0xbKX.js","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/2aKRVAvL.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/BlRGZv8u.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/Btst3lgy.js","/app/immutable/chunks/DJJ2Xrlq.js","/app/immutable/chunks/CGUVvS8r.js"])))=>i.map(i=>d[i]);
2
- import{_ as ue,t as re,bo as v,bw as ne,b as se,bm as k}from"./DWvCfaBg.js";import{Jx as pe}from"./CIoJPvjg.js";import{bs as ie,a7 as le,ay as X,aD as n,W as f,bn as oe,c9 as A,aA as h,a5 as q,bA as G,b_ as S,aB as P,bl as U,bO as K,bS as T,ca as de,bH as fe,bV as _e,aC as H}from"./3SdAC2_C.js";import{i as L}from"./VTJf_qPn.js";import{c as ge,e as me,f as te,g as ce,s as M}from"./BCuI_zgX.js";import{m as ve}from"./W05hyx94.js";import{e as he}from"./CueOVPTy.js";import{t as Ce}from"./DAsc1V4f.js";import{F as we}from"./D7yetF0v.js";import{M as ke}from"./BW2en5Js.js";import{b as be}from"./3Kr2ijlK.js";import{aO as xe}from"./awY5HvZY.js";import{n as z,e as $,s as J}from"./BlRGZv8u.js";import{f as Se}from"./Drf1gLyo.js";import"./CIKXOyvw.js";function ut(r,t,c){if(r.metaKey||r.ctrlKey||!(r.currentTarget instanceof Element)||!r.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??t,i=r.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./DZSbMOPJ.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}var Te=P('<span class="text-subtle animate-pulse"> </span>'),ye=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Ee=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Ie=P('<span class="text-subtle"> </span>'),Me=P("<!> <!> <!>",1),Le=P("<div><!></div>");function Ae(r,t){if(new.target)return re({component:Ae,...r});ie(t,!0);let c=v(t,"additions",7,0),e=v(t,"deletions",7,0),i=v(t,"showZero",7,!1),o=v(t,"size",7,"sm"),g=v(t,"inline",7,!0),u=v(t,"loading",7,!1),d=v(t,"class",7,""),y=A(()=>i()||c()>0||e()>0||u()),R=A(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function B(a){return ve(a,{notation:"compact"})}var F={get additions(){return c()},set additions(a=0){c(a),h()},get deletions(){return e()},set deletions(a=0){e(a),h()},get showZero(){return i()},set showZero(a=!1){i(a),h()},get size(){return o()},set size(a="sm"){o(a),h()},get inline(){return g()},set inline(a=!0){g(a),h()},get loading(){return u()},set loading(a=!1){u(a),h()},get class(){return d()},set class(a=""){d(a),h()},$set:ne,$on:(a,w)=>se(t,a,w)},C=le(),D=X(C);{var p=a=>{var w=Le(),W=q(w);{var E=_=>{var m=Te(),N=U(m,!0);S(O=>K(N,O),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Me(),N=X(m);{var O=s=>{var l=ye(),b=T(q(l),2),I=U(b,!0);G(l),S(Y=>K(I,Y),[()=>B(c())]),f(s,l)};L(N,s=>{(c()>0||i())&&s(O)})}var Z=T(N,2);{var j=s=>{var l=Ee(),b=T(q(l),2),I=U(b,!0);G(l),S(Y=>K(I,Y),[()=>B(e())]),f(s,l)};L(Z,s=>{(e()>0||i())&&s(j)})}var x=T(Z,2);{var Q=s=>{var l=Ie(),b=U(l,!0);S(I=>K(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};L(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};L(W,_=>{u()?_(E):_(V,-1)})}G(w),S(_=>te(w,1,_),[()=>ge(me("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",n(R),d()))]),f(a,w)};L(D,a=>{n(y)&&a(p)})}return f(r,C),oe(F)}const Ne=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),Pe=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),Re=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function De(r){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(r),({segment:t})=>t):Array.from(r)}function ee(r,t,c,e){for(const i of De(t.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||r.append(document.createTextNode("…")),e.truncated=!0;return}r.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(r,t,c,e){if(e.truncated)return;if(r.nodeType===Node.TEXT_NODE){ee(t,r.textContent??"",c,e);return}if(!(r instanceof HTMLElement)||Pe.has(r.tagName))return;if(r.tagName==="BR"){ee(t," ",c,e);return}const i=Ne.get(r.tagName);if(i){const o=document.createElement(i);t.append(o);for(const g of r.childNodes)ae(g,o,c,e);o.textContent||o.remove();return}Re.has(r.tagName)&&e.hasText&&ee(t," ",c,e);for(const o of r.childNodes)ae(o,t,c,e)}async function Oe(r,t=80){const c=await xe(r,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},g=Math.max(0,Math.floor(t));for(const u of e.content.childNodes)ae(u,i,g,o);return i.innerHTML.trim()}async function ze(r){const t=await Oe(r,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=t,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var He=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Be=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function Fe(r,t){if(new.target)return re({component:Fe,...r});ie(t,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(t,"toolUse",7),i=v(t,"animate",7,!1),o=v(t,"iconSize",7,12),g=v(t,"showIcon",7,!0),u=v(t,"class",7,"");const d=A(()=>be(e().name,e().input||{})),y=A(()=>[n(d).verb,n(d).subject,n(d).path].filter(Boolean).join(" ").trim()||n(d).verb||k.chat_previewToolLabel_tool_fallback());let R=_e("");de(()=>{const p=n(y);let a=!1;return ze(p).then(w=>{a||fe(R,w,!0)}),()=>{a=!0}});var B={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return g()},set showIcon(p=!0){g(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:ne,$on:(p,a)=>se(t,p,a)},F=le(),C=X(F);{var D=p=>{var a=Be(),w=q(a);{var W=_=>{var m=He(),N=q(m);{var O=x=>{ke(x,{get iconName(){return n(d).mcpSource},get label(){return n(d).mcpSource},get size(){return o()}})},Z=A(()=>n(d).mcpSource&&c.has(n(d).mcpSource)),j=x=>{we(x,{get icon(){return n(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};L(N,x=>{n(Z)?x(O):x(j,-1)})}G(m),S(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(_,m)};L(w,_=>{g()&&_(W)})}var E=T(w,2),V=U(E,!0);he(E,(_,m)=>Ce?.(_,m),()=>n(R)),G(a),S(()=>{te(a,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${g()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),K(V,n(R))}),f(p,a)};L(C,p=>{n(d).hidden||p(D)})}return f(r,F),oe(B)}var Ve=H('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ze=H('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ue=H('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),qe=H('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),Ge=H('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),We=H('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),je=H('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Ke(r,t){if(new.target)return re({component:Ke,...r});ie(t,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(t,"status",7),i=v(t,"size",7,16),o=v(t,"onclick",7);const g=Math.random().toString(36).substring(2,9);let u=A(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=A(()=>d[n(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let B=A(()=>(R[n(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:ne,$on:(C,D)=>se(t,C,D)};{let C=A(()=>k.tiptap_taskStatus_status_tooltip({status:n(B)}));Se(r,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return n(C)},children:(D,p)=>{var a=je(),w=q(a),W=U(w),E=T(w),V=T(E),_=T(V);{var m=s=>{},N=s=>{var l=Ve();S(()=>M(l,"stroke",n(y).stroke)),f(s,l)},O=s=>{var l=Ze();z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ue();S(()=>M(l,"stroke",n(y).stroke)),z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},j=s=>{var l=qe();z(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=Ge(),b=X(l),I=T(b);z(3,b,()=>$,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=We(),b=X(l),I=T(b);z(3,b,()=>J,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};L(_,s=>{n(u)==="not_started"||n(u)==="waiting"?s(m):n(u)==="in_progress"?s(N,1):n(u)==="complete"?s(O,2):n(u)==="cancelled"?s(Z,3):n(u)==="discussion_needed"?s(j,4):n(u)==="blocked"?s(x,5):n(u)==="review_required"&&s(Q,6)})}G(a),S(()=>{M(a,"width",i()),M(a,"height",i()),ce(a,`width: ${i()??""}px; height: ${i()??""}px;`),M(W,"id",`half-clip-${g??""}`),M(E,"r",`${n(y).innerCircleRPercentage*.5}%`),M(E,"fill",n(y).fill),M(E,"clip-path",n(u)==="in_progress"?`url(#half-clip-${g})`:"none"),M(V,"stroke",n(y).stroke)}),f(D,a)},$$slots:{default:!0}})}return oe(F)}export{Fe as A,Ae as L,Ke as T,Oe as a,ut as o,ze as r};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/oHUzFHtp.js","/app/immutable/chunks/YLhFQnIu.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/D5wnbxHp.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BUsnh1ZW.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrpUtGFn.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/0Kw0mmSW.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DJivXy66.js","/app/immutable/chunks/CTowDLQa.js","/app/immutable/chunks/BQhBnAuP.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Bq7euxCs.js","/app/immutable/chunks/B79iAtSu.js","/app/immutable/chunks/CZB2ndi9.js","/app/immutable/chunks/YeOAvjnW.js","/app/immutable/chunks/Cw2fqKk9.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/oBIu7LTI.js","/app/immutable/chunks/DwGyIIXK.js","/app/immutable/chunks/CBbdbU2x.js","/app/immutable/chunks/DIEHuZ8f.js","/app/immutable/chunks/D48_y-cl.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/gwv5JQYH.js","/app/immutable/chunks/FLpsgWeB.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BJbm_MWC.js","/app/immutable/chunks/_3Ca9E4W.js","/app/immutable/chunks/L3K71tUU.js","/app/immutable/chunks/COVS9Crf.js","/app/immutable/chunks/Bsdq-idi.js"])))=>i.map(i=>d[i]);
2
+ import{_ as ue,t as re,bo as v,bw as ne,b as se,bm as k}from"./YLhFQnIu.js";import{Jx as pe}from"./D5wnbxHp.js";import{bs as ie,a7 as le,ay as X,aD as n,W as f,bn as oe,c9 as A,aA as h,a5 as q,bA as G,b_ as S,aB as P,bl as U,bO as K,bS as T,ca as de,bH as fe,bV as _e,aC as H}from"./3SdAC2_C.js";import{i as L}from"./YeOAvjnW.js";import{c as ge,e as me,f as te,g as ce,s as M}from"./BQhBnAuP.js";import{m as ve}from"./DIEHuZ8f.js";import{e as he}from"./oBIu7LTI.js";import{t as Ce}from"./DAsc1V4f.js";import{F as we}from"./gwv5JQYH.js";import{M as ke}from"./DxSE2XEK.js";import{b as be}from"./BJbm_MWC.js";import{aO as xe}from"./ByBw1QkA.js";import{n as z,e as $,s as J}from"./FLpsgWeB.js";import{f as Se}from"./Cw2fqKk9.js";import"./DJivXy66.js";function ut(r,t,c){if(r.metaKey||r.ctrlKey||!(r.currentTarget instanceof Element)||!r.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??t,i=r.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./oHUzFHtp.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}var Te=P('<span class="text-subtle animate-pulse"> </span>'),ye=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Ee=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Ie=P('<span class="text-subtle"> </span>'),Me=P("<!> <!> <!>",1),Le=P("<div><!></div>");function Ae(r,t){if(new.target)return re({component:Ae,...r});ie(t,!0);let c=v(t,"additions",7,0),e=v(t,"deletions",7,0),i=v(t,"showZero",7,!1),o=v(t,"size",7,"sm"),g=v(t,"inline",7,!0),u=v(t,"loading",7,!1),d=v(t,"class",7,""),y=A(()=>i()||c()>0||e()>0||u()),R=A(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function B(a){return ve(a,{notation:"compact"})}var F={get additions(){return c()},set additions(a=0){c(a),h()},get deletions(){return e()},set deletions(a=0){e(a),h()},get showZero(){return i()},set showZero(a=!1){i(a),h()},get size(){return o()},set size(a="sm"){o(a),h()},get inline(){return g()},set inline(a=!0){g(a),h()},get loading(){return u()},set loading(a=!1){u(a),h()},get class(){return d()},set class(a=""){d(a),h()},$set:ne,$on:(a,w)=>se(t,a,w)},C=le(),D=X(C);{var p=a=>{var w=Le(),W=q(w);{var E=_=>{var m=Te(),N=U(m,!0);S(O=>K(N,O),[()=>k.shared_lineChangeStats_calculating_label()]),f(_,m)},V=_=>{var m=Me(),N=X(m);{var O=s=>{var l=ye(),b=T(q(l),2),I=U(b,!0);G(l),S(Y=>K(I,Y),[()=>B(c())]),f(s,l)};L(N,s=>{(c()>0||i())&&s(O)})}var Z=T(N,2);{var j=s=>{var l=Ee(),b=T(q(l),2),I=U(b,!0);G(l),S(Y=>K(I,Y),[()=>B(e())]),f(s,l)};L(Z,s=>{(e()>0||i())&&s(j)})}var x=T(Z,2);{var Q=s=>{var l=Ie(),b=U(l,!0);S(I=>K(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};L(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(_,m)};L(W,_=>{u()?_(E):_(V,-1)})}G(w),S(_=>te(w,1,_),[()=>ge(me("whitespace-nowrap",g()?"inline-flex":"flex","items-center font-mono",n(R),d()))]),f(a,w)};L(D,a=>{n(y)&&a(p)})}return f(r,C),oe(F)}const Ne=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),Pe=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),Re=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function De(r){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(r),({segment:t})=>t):Array.from(r)}function ee(r,t,c,e){for(const i of De(t.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||r.append(document.createTextNode("…")),e.truncated=!0;return}r.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(r,t,c,e){if(e.truncated)return;if(r.nodeType===Node.TEXT_NODE){ee(t,r.textContent??"",c,e);return}if(!(r instanceof HTMLElement)||Pe.has(r.tagName))return;if(r.tagName==="BR"){ee(t," ",c,e);return}const i=Ne.get(r.tagName);if(i){const o=document.createElement(i);t.append(o);for(const g of r.childNodes)ae(g,o,c,e);o.textContent||o.remove();return}Re.has(r.tagName)&&e.hasText&&ee(t," ",c,e);for(const o of r.childNodes)ae(o,t,c,e)}async function Oe(r,t=80){const c=await xe(r,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},g=Math.max(0,Math.floor(t));for(const u of e.content.childNodes)ae(u,i,g,o);return i.innerHTML.trim()}async function ze(r){const t=await Oe(r,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=t,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var He=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Be=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function Fe(r,t){if(new.target)return re({component:Fe,...r});ie(t,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(t,"toolUse",7),i=v(t,"animate",7,!1),o=v(t,"iconSize",7,12),g=v(t,"showIcon",7,!0),u=v(t,"class",7,"");const d=A(()=>be(e().name,e().input||{})),y=A(()=>[n(d).verb,n(d).subject,n(d).path].filter(Boolean).join(" ").trim()||n(d).verb||k.chat_previewToolLabel_tool_fallback());let R=_e("");de(()=>{const p=n(y);let a=!1;return ze(p).then(w=>{a||fe(R,w,!0)}),()=>{a=!0}});var B={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return g()},set showIcon(p=!0){g(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:ne,$on:(p,a)=>se(t,p,a)},F=le(),C=X(F);{var D=p=>{var a=Be(),w=q(a);{var W=_=>{var m=He(),N=q(m);{var O=x=>{ke(x,{get iconName(){return n(d).mcpSource},get label(){return n(d).mcpSource},get size(){return o()}})},Z=A(()=>n(d).mcpSource&&c.has(n(d).mcpSource)),j=x=>{we(x,{get icon(){return n(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};L(N,x=>{n(Z)?x(O):x(j,-1)})}G(m),S(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(_,m)};L(w,_=>{g()&&_(W)})}var E=T(w,2),V=U(E,!0);he(E,(_,m)=>Ce?.(_,m),()=>n(R)),G(a),S(()=>{te(a,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${g()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),K(V,n(R))}),f(p,a)};L(C,p=>{n(d).hidden||p(D)})}return f(r,F),oe(B)}var Ve=H('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ze=H('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ue=H('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),qe=H('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),Ge=H('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),We=H('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),je=H('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Ke(r,t){if(new.target)return re({component:Ke,...r});ie(t,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(t,"status",7),i=v(t,"size",7,16),o=v(t,"onclick",7);const g=Math.random().toString(36).substring(2,9);let u=A(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=A(()=>d[n(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let B=A(()=>(R[n(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:ne,$on:(C,D)=>se(t,C,D)};{let C=A(()=>k.tiptap_taskStatus_status_tooltip({status:n(B)}));Se(r,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return n(C)},children:(D,p)=>{var a=je(),w=q(a),W=U(w),E=T(w),V=T(E),_=T(V);{var m=s=>{},N=s=>{var l=Ve();S(()=>M(l,"stroke",n(y).stroke)),f(s,l)},O=s=>{var l=Ze();z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ue();S(()=>M(l,"stroke",n(y).stroke)),z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},j=s=>{var l=qe();z(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=Ge(),b=X(l),I=T(b);z(3,b,()=>$,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=We(),b=X(l),I=T(b);z(3,b,()=>J,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};L(_,s=>{n(u)==="not_started"||n(u)==="waiting"?s(m):n(u)==="in_progress"?s(N,1):n(u)==="complete"?s(O,2):n(u)==="cancelled"?s(Z,3):n(u)==="discussion_needed"?s(j,4):n(u)==="blocked"?s(x,5):n(u)==="review_required"&&s(Q,6)})}G(a),S(()=>{M(a,"width",i()),M(a,"height",i()),ce(a,`width: ${i()??""}px; height: ${i()??""}px;`),M(W,"id",`half-clip-${g??""}`),M(E,"r",`${n(y).innerCircleRPercentage*.5}%`),M(E,"fill",n(y).fill),M(E,"clip-path",n(u)==="in_progress"?`url(#half-clip-${g})`:"none"),M(V,"stroke",n(y).stroke)}),f(D,a)},$$slots:{default:!0}})}return oe(F)}export{Fe as A,Ae as L,Ke as T,Oe as a,ut as o,ze as r};
@@ -1 +1 @@
1
- import{l as e}from"./DX2U4Mz9.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{n as conf,o as language};
1
+ import{l as e}from"./BpwKnO7b.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{n as conf,o as language};
@@ -1 +1 @@
1
- import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./DWvCfaBg.js";import{bs as kt,ca as q,aD as n,c9 as i,a7 as L,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./3SdAC2_C.js";import{i as E}from"./VTJf_qPn.js";import{k as wt}from"./bIL0xbKX.js";import{c as _t}from"./Y_tkjygB.js";import{t as Bt}from"./C-BsEdGZ.js";import{Jx as u,eK as It,eL as Wt,K5 as Tt,Kk as Ut,Ka as Rt,vx as Dt,ot as O}from"./CIoJPvjg.js";import{g as Ht}from"./DWGXN6Nr.js";import{bO as At,bQ as Ft,dH as xt}from"./3Kr2ijlK.js";import{C as f}from"./DypB-Dwi.js";import"./BeUuk8D1.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import{bg as Kt}from"./D7yetF0v.js";import"./CIKXOyvw.js";/* empty css */import{T as Mt}from"./-VR23WhZ.js";import"./CdGl_2eX.js";import{M as Nt}from"./DzpuLv6U.js";import{V as qt}from"./DGdWzkgm.js";import{O as Lt}from"./DAI6QH7D.js";import{bT as Et,bN as Ot,b8 as Vt}from"./awY5HvZY.js";import{i as Gt}from"./H2jLkRRS.js";var Jt=St("<!> <!>",1);function Qt(I,p){if(new.target)return pt({component:Qt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),V=()=>h(Z,"$ftCommits$",l),T=()=>h(z,"$foldUnchanged",l),U=()=>h(j,"$lineWrapping",l),R=()=>h(X,"$diffSideBySide",l),[l,G]=Pt(),J=t=>{qt(t,{embedded:!0,get foldEnabled(){return T()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Tt())})},Q=t=>{var e=Jt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>Nt,(y,ht)=>{ht(y,{get icon(){return Kt},get label(){return n(m)},onclick:jt=>ft()})})}var s=yt(r,2);{var d=m=>{Lt(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};E(s,m=>{n(k)&&m(d)})}_(t,e)},j=Et(),z=Ot(),X=Vt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=At(C),Z=Ft(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=Ht(),et=xt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);q(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),H=i(()=>a().data?.gitRootPath),v=i(()=>n(H)||n(nt)),k=i(()=>a().diffPath&&n(v)?Gt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function A(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function F(t){return!t||n(c)?null:P().find(e=>A(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!A(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of V())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const x=i(()=>a().diffPath?F(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=F(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),K=i(()=>a().data?.branchBaseRef),M=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(K)||n(M))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(x))return n(x);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}q(()=>{!D||!b()||D.registerActions({display:J,actions:Q})});function dt(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},N=L(),mt=w(N);{var lt=t=>{var e=L(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Mt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return T()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(K)},get branchBaseCommitSha(){return n(M)},get gitRootId(){return n(c)},get gitRootPath(){return n(H)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};E(mt,t=>{a().diffPath&&t(lt)})}_(I,N);var gt=$t(ct);return G(),gt}export{Qt as default};
1
+ import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./YLhFQnIu.js";import{bs as kt,ca as q,aD as n,c9 as i,a7 as L,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./3SdAC2_C.js";import{i as E}from"./YeOAvjnW.js";import{k as wt}from"./CBbdbU2x.js";import{c as _t}from"./DwGyIIXK.js";import{t as Bt}from"./C-BsEdGZ.js";import{Jx as u,eK as It,eL as Wt,K5 as Tt,Kk as Ut,Ka as Rt,vx as Dt,ot as O}from"./D5wnbxHp.js";import{g as Ht}from"./DWGXN6Nr.js";import{bO as At,bQ as Ft,dH as xt}from"./BJbm_MWC.js";import{C as f}from"./DypB-Dwi.js";import"./9fNNDfgo.js";import"./BQhBnAuP.js";import"./CrpUtGFn.js";import{bg as Kt}from"./gwv5JQYH.js";import"./DJivXy66.js";/* empty css */import{T as Mt}from"./-2rOENSl.js";import"./CIWQMI37.js";import{M as Nt}from"./Lk7a_7W9.js";import{V as qt}from"./DMV5KQix.js";import{O as Lt}from"./DmWvRjk6.js";import{bT as Et,bN as Ot,b8 as Vt}from"./ByBw1QkA.js";import{i as Gt}from"./H2jLkRRS.js";var Jt=St("<!> <!>",1);function Qt(I,p){if(new.target)return pt({component:Qt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),V=()=>h(Z,"$ftCommits$",l),T=()=>h(z,"$foldUnchanged",l),U=()=>h(j,"$lineWrapping",l),R=()=>h(X,"$diffSideBySide",l),[l,G]=Pt(),J=t=>{qt(t,{embedded:!0,get foldEnabled(){return T()},onToggleFold:()=>u.dispatch(Rt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return R()},onToggleSplit:()=>u.dispatch(Tt())})},Q=t=>{var e=Jt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>Nt,(y,ht)=>{ht(y,{get icon(){return Kt},get label(){return n(m)},onclick:jt=>ft()})})}var s=yt(r,2);{var d=m=>{Lt(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};E(s,m=>{n(k)&&m(d)})}_(t,e)},j=Et(),z=Ot(),X=Vt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=At(C),Z=Ft(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=Ht(),et=xt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);q(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Wt(t,"all"))});const c=i(()=>a().data?.gitRootId),H=i(()=>a().data?.gitRootPath),v=i(()=>n(H)||n(nt)),k=i(()=>a().diffPath&&n(v)?Gt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function A(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function F(t){return!t||n(c)?null:P().find(e=>A(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!A(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of V())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const x=i(()=>a().diffPath?F(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=F(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),K=i(()=>a().data?.branchBaseRef),M=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(K)||n(M))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(x))return n(x);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}q(()=>{!D||!b()||D.registerActions({display:J,actions:Q})});function dt(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(O(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},N=L(),mt=w(N);{var lt=t=>{var e=L(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>R()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Mt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return T()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(K)},get branchBaseCommitSha(){return n(M)},get gitRootId(){return n(c)},get gitRootPath(){return n(H)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};E(mt,t=>{a().diffPath&&t(lt)})}_(I,N);var gt=$t(ct);return G(),gt}export{Qt as default};
@@ -1 +1 @@
1
- import{D as O,a as V,d as z}from"./CQcEqK4G.js";import{K as G,T as F,_ as J,d as X,f as Q,X as Y,Q as Z,a0 as q,n as P,e as tt,c as et,m as U,h as N,l as E}from"./DY5rw8pn.js";import{o as u,b as _,s as r,n as h,l as M,_ as x,c as B,u as nt}from"./CIyUrgF0.js";import{I as it}from"./Bqd7fdCF.js";const at="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const W=O.badgeFontFamily;function K(){return R??W}function L(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${at}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((l,o)=>{t=setTimeout(()=>o(new Error("font-load-timeout")),2e3)})]);i.add(a),R=O.fontFamily}catch{R=W}finally{clearTimeout(t)}})(),D)}let k=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(k||(k=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!k))return i;k.font=`${t.fontSize}px ${K()}`,k.textAlign="left",k.textBaseline="top",k.letterSpacing="0px",k.wordSpacing="0px";let a=1/0,l=1/0,o=-1/0,e=-1/0;const{lines:f,lineHeight:c}=F(t);for(const[s,p]of f.entries()){if(!p.trim())continue;const g=k.measureText(p),b=s*c,m=[-g.actualBoundingBoxLeft,b-g.actualBoundingBoxAscent,g.actualBoundingBoxRight,b+g.actualBoundingBoxDescent];if(!m.every(Number.isFinite))return i;a=Math.min(a,m[0]),l=Math.min(l,m[1]),o=Math.max(o,m[2]),e=Math.max(e,m[3])}if(!(o>a&&e>l))return i;const n=Math.max(1,t.fontSize/24);return{x:t.x+a-n,y:t.y+l-n,w:o-a+2*n,h:e-l+2*n}}const C=16e3;function rt(t,i){const l=t.length*2,o=new ArrayBuffer(44+l),e=new DataView(o),f=(n,s)=>{for(let p=0;p<s.length;p+=1)e.setUint8(n+p,s.charCodeAt(p))};f(0,"RIFF"),e.setUint32(4,36+l,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,i,!0),e.setUint32(28,i*2,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,l,!0);let c=44;for(let n=0;n<t.length;n+=1){const s=Math.max(-1,Math.min(1,t[n]));e.setInt16(c,s<0?s*32768:s*32767,!0),c+=2}return o}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const l=t.getChannelData(a);for(let o=0;o<l.length;o+=1)i[o]+=l[o]/t.numberOfChannels}return i}async function gt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),l=Math.max(1,Math.ceil(a.length*C/a.sampleRate)),o=new OfflineAudioContext(1,l,C),e=o.createBufferSource();e.buffer=a,e.connect(o.destination),e.start();const f=await o.startRendering();return rt(st(f),C)}finally{await i.close().catch(()=>{})}}function $(t){const i=new Uint8Array(t),a=32768;let l="";for(let o=0;o<i.length;o+=a)l+=String.fromCharCode(...i.subarray(o,o+a));return btoa(l)}const d={...O,get fontFamily(){return K()},blurRadius:X};function H(t,i,a=0,l){const o=t.crop??{x:0,y:0,w:i.width,h:i.height},e=Math.max(1,Math.max(i.width,i.height)/1440),f=Math.min(d.badgeRadius*e,o.w/2,o.h/2);return Y(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:n})=>{const s=i.kind==="recording"?Z(n.geometry,q(i,n),a):n.geometry;if(!s)return[];const p=ot(s),g=z(p,o,e,f);return[...n.id===l&&s.kind==="text"?[]:[{kind:"geometry",geometry:s,unit:e}],...d.showNumbers?[{kind:"badge",...g,radius:f,label:String(c),unit:e}]:[]]})}function j(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const l=a.unit??1,o=(c,n)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*l,n?t.stroke(n):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,n?t.stroke(n):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*l,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const e=a.geometry;t.fillStyle=d.accent;const f=(e.kind==="path"?d.pen:d.stroke)*l;if(e.kind==="rect")t.beginPath(),t.rect(e.x,e.y,e.w,e.h),o(f);else if(e.kind==="text"){const c=F(e);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${e.fontSize}px ${d.fontFamily}`,c.lines.forEach((n,s)=>{const p=e.x+c.padding,g=e.y+c.padding+s*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*l;const b=e.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(n,p,g,b),t.fillText(n,p,g,b)})}else if(e.kind==="point")t.beginPath(),t.arc(e.x,e.y,Q,0,Math.PI*2),o(f);else if(e.kind==="path")o(f,new Path2D(V(e.points)));else{const c=[e.from,e.to];if(t.beginPath(),c.forEach((n,s)=>s?t.lineTo(n.x,n.y):t.moveTo(n.x,n.y)),e.kind==="arrow"){const n=Math.atan2(e.to.y-e.from.y,e.to.x-e.from.x),s=d.arrowHead*l;t.moveTo(e.to.x-s*Math.cos(n-d.arrowSpread),e.to.y-s*Math.sin(n-d.arrowSpread)),t.lineTo(e.to.x,e.to.y),t.lineTo(e.to.x-s*Math.cos(n+d.arrowSpread),e.to.y-s*Math.sin(n+d.arrowSpread))}o(f)}}t.restore()}function v(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),l=a.getContext("2d");if(!l)throw new Error("capture-render-unavailable");return{image:a,context:l}}async function pt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const{image:l,context:o}=v(t.width,t.height);return j(o,H(i,t,a)),$(await(await l.convertToBlob({type:"image/png"})).arrayBuffer())}async function yt(t,i,a,l){const o=J(i,t,null);if(t.kind!=="screenshot"||o.errors.length)throw new Error(o.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const e=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),f=await createImageBitmap(new Blob([e],{type:a.mimeType}));try{if(f.width!==t.width||f.height!==t.height)throw new Error("stale-source-pixels");const c=v(t.width,t.height);if(c.context.drawImage(f,0,0),i.blurRegions.length||i.blurStrokes?.length){const g=v(t.width,t.height);g.context.fillStyle="#000000",g.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(g.context.filter=b,g.context.filter!==b)throw new Error("capture-blur-unavailable");g.context.drawImage(f,0,0);const m=v(t.width,t.height);m.context.fillStyle="#ffffff",m.context.strokeStyle="#ffffff",m.context.lineCap="round",m.context.lineJoin="round";for(const y of i.blurRegions)m.context.fillRect(y.x,y.y,y.w,y.h);for(const y of i.blurStrokes??[]){const S=y.points.filter((I,A)=>A===0||I.x!==y.points[A-1].x||I.y!==y.points[A-1].y);if(m.context.beginPath(),S.length===1){const I=S[0];m.context.arc(I.x,I.y,y.radius,0,Math.PI*2),m.context.fill()}else{m.context.lineWidth=y.radius*2,m.context.moveTo(S[0].x,S[0].y);for(const I of S.slice(1))m.context.lineTo(I.x,I.y);m.context.stroke()}}const T=v(t.width,t.height);T.context.drawImage(g.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(m.image,0,0),c.context.drawImage(T.image,0,0)}const n=i.crop??{x:0,y:0,w:t.width,h:t.height},s=v(n.w,n.h);s.context.drawImage(c.image,n.x,n.y,n.w,n.h,0,0,s.image.width,s.image.height),s.context.scale(s.image.width/n.w,s.image.height/n.h),s.context.translate(-n.x,-n.y),j(s.context,H(i,t,0,l?.hiddenTextMarkId));const p=await s.image.convertToBlob({type:"image/png"});return{data:$(await p.arrayBuffer()),mimeType:"image/png",width:s.image.width,height:s.image.height}}finally{f.close()}}const kt=u({outputVersion:M(tt),jobId:r().uuid(),media:P,layers:_(u({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:r().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),wt=u({jobId:r().uuid(),media:P,locale:r().min(1).max(80).optional()}).strict(),lt=u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:M(50),peaks:_(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");u({jobId:r().uuid(),media:P}).strict();u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=it.DOCK_CAPTURE_EDITOR,w=r().min(1).max(200),ct=u({id:w,tool:x(et),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:r().max(200).optional()}).strict();u({kind:x(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:r().min(1).max(512),attachmentPath:r().min(1).max(1024),title:r().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:_(ct).max(500),provenance:u({captureApi:r().max(100).optional(),hasMicAudio:B().optional(),visuals:x(["clean","baked-marks"])}).strict(),source:E.optional(),originalSource:E.optional(),saved:N.nullable().optional(),transcript:U.nullable().optional(),holdToken:r().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");u({openId:r().uuid(),intent:M("attach").optional()}).strict();u({openId:r().uuid(),accept:B()}).strict();u({token:r().uuid(),hide:M(!0).optional()}).strict();u({openId:r().uuid(),requestId:r().uuid()}).strict();u({requestId:r().uuid(),result:x(["saved","stale-source","revision-conflict","failed"]),saved:N.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:U}).strict();nt([u({requestId:r().uuid(),ok:M(!0),source:E}).strict(),u({requestId:r().uuid(),ok:M(!1),error:x(["cancelled","permission","failed"])}).strict()]);const dt=2e4;u({openId:r().uuid(),markId:r().min(1).max(512),generation:h().int().nonnegative(),phase:x(["start","stop"])}).strict();u({requestId:r().uuid(),generation:h().int().nonnegative(),text:r().max(dt),final:B(),error:x(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const bt=u({requestId:r().uuid(),openId:w,pair:u({workspaceId:w,agentId:w}).strict(),kind:x(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();u({requestId:r().uuid(),result:x(["deleted","stale-source","failed"])}).strict();const It=u({endedOpenId:r().uuid()}).strict();export{xt as D,d as a,dt as b,bt as c,It as d,kt as e,wt as f,$ as g,gt as h,ot as i,K as j,L as k,H as l,pt as m,j as p,yt as r};
1
+ import{D as O,a as V,d as z}from"./CQcEqK4G.js";import{K as G,T as F,_ as J,d as X,f as Q,X as Y,Q as Z,a0 as q,n as P,e as tt,c as et,m as U,h as N,l as E}from"./BUsnh1ZW.js";import{o as u,b as _,s as r,n as h,l as M,_ as x,c as B,u as nt}from"./CIyUrgF0.js";import{I as it}from"./Bqd7fdCF.js";const at="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const W=O.badgeFontFamily;function K(){return R??W}function L(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${at}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((l,o)=>{t=setTimeout(()=>o(new Error("font-load-timeout")),2e3)})]);i.add(a),R=O.fontFamily}catch{R=W}finally{clearTimeout(t)}})(),D)}let k=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(k||(k=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!k))return i;k.font=`${t.fontSize}px ${K()}`,k.textAlign="left",k.textBaseline="top",k.letterSpacing="0px",k.wordSpacing="0px";let a=1/0,l=1/0,o=-1/0,e=-1/0;const{lines:f,lineHeight:c}=F(t);for(const[s,p]of f.entries()){if(!p.trim())continue;const g=k.measureText(p),b=s*c,m=[-g.actualBoundingBoxLeft,b-g.actualBoundingBoxAscent,g.actualBoundingBoxRight,b+g.actualBoundingBoxDescent];if(!m.every(Number.isFinite))return i;a=Math.min(a,m[0]),l=Math.min(l,m[1]),o=Math.max(o,m[2]),e=Math.max(e,m[3])}if(!(o>a&&e>l))return i;const n=Math.max(1,t.fontSize/24);return{x:t.x+a-n,y:t.y+l-n,w:o-a+2*n,h:e-l+2*n}}const C=16e3;function rt(t,i){const l=t.length*2,o=new ArrayBuffer(44+l),e=new DataView(o),f=(n,s)=>{for(let p=0;p<s.length;p+=1)e.setUint8(n+p,s.charCodeAt(p))};f(0,"RIFF"),e.setUint32(4,36+l,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,i,!0),e.setUint32(28,i*2,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,l,!0);let c=44;for(let n=0;n<t.length;n+=1){const s=Math.max(-1,Math.min(1,t[n]));e.setInt16(c,s<0?s*32768:s*32767,!0),c+=2}return o}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const l=t.getChannelData(a);for(let o=0;o<l.length;o+=1)i[o]+=l[o]/t.numberOfChannels}return i}async function gt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),l=Math.max(1,Math.ceil(a.length*C/a.sampleRate)),o=new OfflineAudioContext(1,l,C),e=o.createBufferSource();e.buffer=a,e.connect(o.destination),e.start();const f=await o.startRendering();return rt(st(f),C)}finally{await i.close().catch(()=>{})}}function $(t){const i=new Uint8Array(t),a=32768;let l="";for(let o=0;o<i.length;o+=a)l+=String.fromCharCode(...i.subarray(o,o+a));return btoa(l)}const d={...O,get fontFamily(){return K()},blurRadius:X};function H(t,i,a=0,l){const o=t.crop??{x:0,y:0,w:i.width,h:i.height},e=Math.max(1,Math.max(i.width,i.height)/1440),f=Math.min(d.badgeRadius*e,o.w/2,o.h/2);return Y(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:n})=>{const s=i.kind==="recording"?Z(n.geometry,q(i,n),a):n.geometry;if(!s)return[];const p=ot(s),g=z(p,o,e,f);return[...n.id===l&&s.kind==="text"?[]:[{kind:"geometry",geometry:s,unit:e}],...d.showNumbers?[{kind:"badge",...g,radius:f,label:String(c),unit:e}]:[]]})}function j(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const l=a.unit??1,o=(c,n)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*l,n?t.stroke(n):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,n?t.stroke(n):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*l,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const e=a.geometry;t.fillStyle=d.accent;const f=(e.kind==="path"?d.pen:d.stroke)*l;if(e.kind==="rect")t.beginPath(),t.rect(e.x,e.y,e.w,e.h),o(f);else if(e.kind==="text"){const c=F(e);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${e.fontSize}px ${d.fontFamily}`,c.lines.forEach((n,s)=>{const p=e.x+c.padding,g=e.y+c.padding+s*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*l;const b=e.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(n,p,g,b),t.fillText(n,p,g,b)})}else if(e.kind==="point")t.beginPath(),t.arc(e.x,e.y,Q,0,Math.PI*2),o(f);else if(e.kind==="path")o(f,new Path2D(V(e.points)));else{const c=[e.from,e.to];if(t.beginPath(),c.forEach((n,s)=>s?t.lineTo(n.x,n.y):t.moveTo(n.x,n.y)),e.kind==="arrow"){const n=Math.atan2(e.to.y-e.from.y,e.to.x-e.from.x),s=d.arrowHead*l;t.moveTo(e.to.x-s*Math.cos(n-d.arrowSpread),e.to.y-s*Math.sin(n-d.arrowSpread)),t.lineTo(e.to.x,e.to.y),t.lineTo(e.to.x-s*Math.cos(n+d.arrowSpread),e.to.y-s*Math.sin(n+d.arrowSpread))}o(f)}}t.restore()}function v(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),l=a.getContext("2d");if(!l)throw new Error("capture-render-unavailable");return{image:a,context:l}}async function pt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const{image:l,context:o}=v(t.width,t.height);return j(o,H(i,t,a)),$(await(await l.convertToBlob({type:"image/png"})).arrayBuffer())}async function yt(t,i,a,l){const o=J(i,t,null);if(t.kind!=="screenshot"||o.errors.length)throw new Error(o.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const e=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),f=await createImageBitmap(new Blob([e],{type:a.mimeType}));try{if(f.width!==t.width||f.height!==t.height)throw new Error("stale-source-pixels");const c=v(t.width,t.height);if(c.context.drawImage(f,0,0),i.blurRegions.length||i.blurStrokes?.length){const g=v(t.width,t.height);g.context.fillStyle="#000000",g.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(g.context.filter=b,g.context.filter!==b)throw new Error("capture-blur-unavailable");g.context.drawImage(f,0,0);const m=v(t.width,t.height);m.context.fillStyle="#ffffff",m.context.strokeStyle="#ffffff",m.context.lineCap="round",m.context.lineJoin="round";for(const y of i.blurRegions)m.context.fillRect(y.x,y.y,y.w,y.h);for(const y of i.blurStrokes??[]){const S=y.points.filter((I,A)=>A===0||I.x!==y.points[A-1].x||I.y!==y.points[A-1].y);if(m.context.beginPath(),S.length===1){const I=S[0];m.context.arc(I.x,I.y,y.radius,0,Math.PI*2),m.context.fill()}else{m.context.lineWidth=y.radius*2,m.context.moveTo(S[0].x,S[0].y);for(const I of S.slice(1))m.context.lineTo(I.x,I.y);m.context.stroke()}}const T=v(t.width,t.height);T.context.drawImage(g.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(m.image,0,0),c.context.drawImage(T.image,0,0)}const n=i.crop??{x:0,y:0,w:t.width,h:t.height},s=v(n.w,n.h);s.context.drawImage(c.image,n.x,n.y,n.w,n.h,0,0,s.image.width,s.image.height),s.context.scale(s.image.width/n.w,s.image.height/n.h),s.context.translate(-n.x,-n.y),j(s.context,H(i,t,0,l?.hiddenTextMarkId));const p=await s.image.convertToBlob({type:"image/png"});return{data:$(await p.arrayBuffer()),mimeType:"image/png",width:s.image.width,height:s.image.height}}finally{f.close()}}const kt=u({outputVersion:M(tt),jobId:r().uuid(),media:P,layers:_(u({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:r().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),wt=u({jobId:r().uuid(),media:P,locale:r().min(1).max(80).optional()}).strict(),lt=u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:M(50),peaks:_(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");u({jobId:r().uuid(),media:P}).strict();u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=it.DOCK_CAPTURE_EDITOR,w=r().min(1).max(200),ct=u({id:w,tool:x(et),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:r().max(200).optional()}).strict();u({kind:x(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:r().min(1).max(512),attachmentPath:r().min(1).max(1024),title:r().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:_(ct).max(500),provenance:u({captureApi:r().max(100).optional(),hasMicAudio:B().optional(),visuals:x(["clean","baked-marks"])}).strict(),source:E.optional(),originalSource:E.optional(),saved:N.nullable().optional(),transcript:U.nullable().optional(),holdToken:r().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");u({openId:r().uuid(),intent:M("attach").optional()}).strict();u({openId:r().uuid(),accept:B()}).strict();u({token:r().uuid(),hide:M(!0).optional()}).strict();u({openId:r().uuid(),requestId:r().uuid()}).strict();u({requestId:r().uuid(),result:x(["saved","stale-source","revision-conflict","failed"]),saved:N.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:U}).strict();nt([u({requestId:r().uuid(),ok:M(!0),source:E}).strict(),u({requestId:r().uuid(),ok:M(!1),error:x(["cancelled","permission","failed"])}).strict()]);const dt=2e4;u({openId:r().uuid(),markId:r().min(1).max(512),generation:h().int().nonnegative(),phase:x(["start","stop"])}).strict();u({requestId:r().uuid(),generation:h().int().nonnegative(),text:r().max(dt),final:B(),error:x(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const bt=u({requestId:r().uuid(),openId:w,pair:u({workspaceId:w,agentId:w}).strict(),kind:x(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();u({requestId:r().uuid(),result:x(["deleted","stale-source","failed"])}).strict();const It=u({endedOpenId:r().uuid()}).strict();export{xt as D,d as a,dt as b,bt as c,It as d,kt as e,wt as f,$ as g,gt as h,ot as i,K as j,L as k,H as l,pt as m,j as p,yt as r};
@@ -1 +1 @@
1
- import{t as X,bo as s,bw as Y,bp as Z,b as $}from"./DWvCfaBg.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"./VTJf_qPn.js";import{t as S}from"./Bu3PKqut.js";import{b as ot,e as L,c as O,f as j}from"./BCuI_zgX.js";import{f as ct}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import"./DeY70dof.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"./YLhFQnIu.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"./YeOAvjnW.js";import{t as S}from"./CrpUtGFn.js";import{b as ot,e as L,c as O,f as j}from"./BQhBnAuP.js";import{f as ct}from"./Cw2fqKk9.js";import"./DJivXy66.js";import"./CGdXewiA.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
- import{t as bt,bo as B,bw as wt,bq as Rt,b as It,bs as g}from"./DWvCfaBg.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{Jx as l,eK as Ut,eL as At,t5 as xt,oo as Bt,op as Ft,K5 as Tt,Kk as Lt,Ka as _t,ot as T}from"./CIoJPvjg.js";import{t as Dt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dH as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,dd as Ht,m as Kt}from"./3Kr2ijlK.js";import{C as zt}from"./De2a277N.js";import{V as qt}from"./DGdWzkgm.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./awY5HvZY.js";import{i as L,n as V}from"./H2jLkRRS.js";import{af as jt}from"./CY0EK8Cm.js";function Xt(_,$){if(new.target)return bt({component:Xt,..._});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),z=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Wt(),u=Dt(()=>m()),ot=Gt(u);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(u),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(u),nt=Et(u),it=Mt(u),rt=Vt(u),dt=s(()=>K()||[]),lt=Ht(u),f=s(()=>z()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),pt=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const ut=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(pt).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="unstaged");W(d.map(p=>p.relativePath||p.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="staged");G(d.map(p=>p.relativePath||p.file))});vt(zt(_,{get isLoading(){return t(o)},get changes(){return t(ut)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
1
+ import{t as bt,bo as B,bw as wt,bq as Rt,b as It,bs as g}from"./YLhFQnIu.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{Jx as l,eK as Ut,eL as At,t5 as xt,oo as Bt,op as Ft,K5 as Tt,Kk as Lt,Ka as _t,ot as T}from"./D5wnbxHp.js";import{t as Dt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dH as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,dd as Ht,m as Kt}from"./BJbm_MWC.js";import{C as zt}from"./C07_BcWL.js";import{V as qt}from"./DMV5KQix.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./ByBw1QkA.js";import{i as L,n as V}from"./H2jLkRRS.js";import{af as jt}from"./CAiDxi6i.js";function Xt(_,$){if(new.target)return bt({component:Xt,..._});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),z=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Wt(),u=Dt(()=>m()),ot=Gt(u);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(u),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(u),nt=Et(u),it=Mt(u),rt=Vt(u),dt=s(()=>K()||[]),lt=Ht(u),f=s(()=>z()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),pt=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const ut=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(pt).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="unstaged");W(d.map(p=>p.relativePath||p.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="staged");G(d.map(p=>p.relativePath||p.file))});vt(zt(_,{get isLoading(){return t(o)},get changes(){return t(ut)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
@@ -1 +1 @@
1
- import{aB as v,b as y}from"./BolJpU8l.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
1
+ import{aB as v,b as y}from"./B6-aVrNf.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
@@ -1 +1 @@
1
- import{d as l,v as h,t as k}from"./Dms_DO28.js";import{Jx as s,vM as w}from"./CIoJPvjg.js";import{i as W,d as E,e as c,n as i,b as m}from"./Bb-hI5du.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function M(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function x(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const N=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:x,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,M as i,x as n,O as o,f as p,N as s,I as w};
1
+ import{d as l,v as h,t as k}from"./Dms_DO28.js";import{Jx as s,vM as w}from"./D5wnbxHp.js";import{i as W,d as E,e as c,n as i,b as m}from"./DQ8CqY9L.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function M(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function x(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const N=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:x,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,M as i,x as n,O as o,f as p,N as s,I as w};
@@ -1,4 +1,4 @@
1
- import{t as Ke,bo as k,bm as Ce,bw as Ve,b as Ue,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Sr,h as Cr,k as Nr}from"./DWvCfaBg.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./3SdAC2_C.js";import{n_ as Rr,Jx as ct,n5 as Tt,en as Mr,eK as Pr,eL as Lr}from"./CIoJPvjg.js";import{i as H}from"./VTJf_qPn.js";import{n as We,j as Oe,h as at}from"./BlRGZv8u.js";import{dH as Ir,bt as Ar}from"./3Kr2ijlK.js";import{a9 as jt}from"./CY0EK8Cm.js";import{I as it,g as Ge,i as Lt}from"./CueOVPTy.js";import{f as xe}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import{f as He,s as Er}from"./BCuI_zgX.js";import"./Bu3PKqut.js";import{F as fe,a2 as Hr,cR as zr,aw as ot,ax as pt,c2 as Wr,aV as Dr,bN as Tr,bH as jr,b9 as Fr,cW as Br,cn as Gr,b6 as St,c$ as Rt,cr as _t,bo as Or,cF as Kr,au as Vr}from"./D7yetF0v.js";import{i as Ur}from"./ico0GHoP.js";import{h as Ft}from"./BKD7o1lQ.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Ut}from"./BRdQpeCl.js";import"./B3OJ_2Dd.js";import{q as Jr}from"./W05hyx94.js";import{M as Mt}from"./BDbFQqI8.js";import{B as qr}from"./0b3rkAam.js";import{S as Ct}from"./CTqRHXfu.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bo as k,bm as Ce,bw as Ve,b as Ue,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Sr,h as Cr,k as Nr}from"./YLhFQnIu.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./3SdAC2_C.js";import{n_ as Rr,Jx as ct,n5 as Tt,en as Mr,eK as Pr,eL as Lr}from"./D5wnbxHp.js";import{i as H}from"./YeOAvjnW.js";import{n as We,j as Oe,h as at}from"./FLpsgWeB.js";import{dH as Ir,bt as Ar}from"./BJbm_MWC.js";import{a9 as jt}from"./CAiDxi6i.js";import{I as it,g as Ge,i as Lt}from"./oBIu7LTI.js";import{f as xe}from"./Cw2fqKk9.js";import"./DJivXy66.js";import{f as He,s as Er}from"./BQhBnAuP.js";import"./CrpUtGFn.js";import{F as fe,a2 as Hr,cR as zr,aw as ot,ax as pt,c2 as Wr,aV as Dr,bN as Tr,bH as jr,b9 as Fr,cW as Br,cn as Gr,b6 as St,c$ as Rt,cr as _t,bo as Or,cF as Kr,au as Vr}from"./gwv5JQYH.js";import{i as Ur}from"./qm1BBGRe.js";import{h as Ft}from"./BKD7o1lQ.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Ut}from"./DkERMj5B.js";import"./kvtKUeBe.js";import{q as Jr}from"./DIEHuZ8f.js";import{M as Mt}from"./CY4ZK6xA.js";import{B as qr}from"./DEQDOTA1.js";import{S as Ct}from"./ItBm4ElA.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const T=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){T(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):Qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Xr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),T=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||T()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return T()},set isSending(I=!1){T(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ve,$on:(I,he)=>Ue(r,I,he)},w=Xr(),z=be(w),de=o(z);{let I=_(()=>Ce.codeReview_inlineComment_askLine_placeholder());Ut(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return T()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){L(J,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||T());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),S=be(_e);{var E=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};H(S,me=>{T()?me(E):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>C(Ne,_e),[()=>Ce.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(z);var te=n(z,2),ke=O(te,!0);return M(I=>{He(z,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),C(ke,I)},[()=>Ce.codeReview_inlineComment_inputHint_label()]),i($,w),qe(q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),T=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),J=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),q=we(""),w=we(!1),z=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(q).trim()||h()||(T()?.(e(q).trim(),m(),b()),L(q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(q)?L(q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Fr;case"context":return jr;case"explanation":default:return Tr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Jr(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return T()},set onSendMessage(a){T(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ve,$on:(a,D)=>Ue(r,a,D)},_e=ln(),S=o(_e),E=o(S),Ie=o(E);{let a=_(()=>te(d().type)),D=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(D)??""}`}})}s(E);var me=n(E,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var X=a=>{var D=Zr(),Z=O(D,!0);M(ee=>C(Z,ee),[()=>I(K())]),i(a,D)};H(A,a=>{K()&&a(X)})}s(me);var ie=n(me,2);{var $e=a=>{{let D=_(()=>Ce.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(D)},children:(Z,ee)=>{fe(Z,{get icon(){return zr}})},$$slots:{default:!0}})}};H(ie,a=>{P()&&a($e)})}s(S);var Se=n(S,2);{var ye=a=>{var D=nn(),Z=o(D);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(z,!e(z)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(Q,se)=>{var Y=en(),c=be(Y),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(z)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>C(p,ue),[()=>Ce.codeReview_commentThread_suggestedChanges_label()]),i(Q,Y)},$$slots:{default:!0}});var ee=n(Z,2);{var re=Q=>{var se=rn();Ge(se,21,u,Y=>Y.id,(Y,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Br:Gr),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>He(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),We(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Y,p)}),s(se),We(3,se,()=>Oe,()=>({tier:"moderate"})),i(Q,se)};H(ee,Q=>{e(z)&&Q(re)})}s(D),i(a,D)};H(Se,a=>{e(he)&&a(ye)})}var V=n(Se,2);{var j=a=>{var D=an(),Z=o(D);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(D),M(Q=>C(re,Q),[()=>Ce.codeReview_commentThread_agentResponding_label()]),i(a,D)};H(V,a=>{J()&&a(j)})}var f=n(V,2),W=o(f);{var F=a=>{var D=sn(),Z=be(D),ee=o(Z);{let c=_(()=>Ce.codeReview_commentThread_followUp_placeholder());Ut(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(q)},set value(p){L(q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Wr},class:"h-3 w-3"})};H(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var Q=n(re,2);xe(Q,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>C(B,ue),[()=>Ce.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),Y=O(se,!0);M(c=>C(Y,c),[()=>Ce.codeReview_commentThread_inputHint_label()]),We(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,D)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(D,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Dr},class:"h-3 w-3"});var Q=n(re,2),se=O(Q,!0);M(Y=>C(se,Y),[()=>Ce.codeReview_commentThread_askQuestion_label()]),i(D,ee)},$$slots:{default:!0}})};H(W,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>He(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),We(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Je(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),T=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),J=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),q=k(r,"class",7,"");const w=_(()=>Yr(m())),z=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(z)||e(z)==="text"||e(z)==="plaintext"||!Bt.getLanguage(e(z))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",U=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:U})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),U=Bt.highlight(N,{language:e(z)}).value.split(`
4
4
  `);g.forEach((ne,oe)=>{oe<U.length&&t.set(ne.key,U[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let U=Math.max(0,l-T());U<=Math.min(G.lines.length-1,l+T());U++){const ne=G.lines[U];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const U of e(ae)){const[ne,oe,ve]=U.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const U=Ne(t,G,l.lines[G]);!U&&N===null?N=G:U&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function S(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function E(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];S(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function X(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Se(t){L(te,t,!0)}function ye(){L(te,null)}function V(t,l,g){P()?.(t,l,g),L(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),W=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const U=N.lines[G];(U.type==="addition"||U.type==="deletion")&&l.push({line:U,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function D(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(D(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return T()},set contextLines(t=3){T(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return J()},set additions(t=0){J(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return q()},set class(t=""){q(t),y()},$set:Ve,$on:(t,l)=>Ue(r,t,l)},re=wn(),Q=o(re),se=o(Q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),U=o(G),ne=O(U,!0),oe=n(U,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var De=Le=>{var Ee=dn(),Fe=O(Ee);M(()=>C(Fe,`+${J()+K()}`)),i(Le,Ee)};H(Ae,Le=>{(J()>0||K()>0)&&Le(De)})}s(Me),M((Le,Ee)=>{C(ne,Le),C(ve,Ee)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Y=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>C(N,pe())),i(t,l)};H(Y,t=>{pe()&&t(c)})}s(Q);var p=n(Q,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),De=o(Ae),Le=O(De,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),Te=n(Ee,2),ge=o(Te);Ft(ge,()=>me(ve()),!0),s(ge),s(Te),s(Me),M((Qe,Ye,Xe,tt)=>{He(Me,1,`flex ${Qe??""}`),He(Ae,1,`w-12 shrink-0 flex select-none ${Ye??""} border-r border-border`),C(Le,ve().newNum??ve().oldNum??""),He(Ee,1,`w-5 shrink-0 text-center select-none ${Xe??""}`),C(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>X(ve())]),i(ne,Me)});var G=n(N,2);{var U=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>C(Me,Ae),[()=>Ce.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};H(G,ne=>{e(le)>e(F).length&&ne(U)})}s(g),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};H(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:E,children:(De,Le)=>{st();var Ee=et();M(Fe=>C(Ee,Fe),[()=>Ce.codeReview_fileDiff_expandAll_label()]),i(De,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=De=>{var Le=fn(),Ee=n(be(Le),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,Te)=>{st();var ge=et();M(Qe=>C(ge,Qe),[()=>Ce.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(De,Le)};H(Me,De=>{e(ae).size>0&&De(Ae)})}s(oe),i(ne,oe)};H(g,ne=>{e(W)&&ne(N)})}var G=n(g,2),U=o(G);Ge(U,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(Te=>Te.startIndex===0));var De=xn(),Le=be(De);{var Ee=Te=>{xe(Te,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>S(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,Qe)=>{var Ye=Gt(),Xe=be(Ye);fe(Xe,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Xe,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>C(xt,ut),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Ye)},$$slots:{default:!0}})};H(Le,Te=>{e(Ae)&&Te(Ee)})}var Fe=n(Le,2);Ge(Fe,19,()=>e(oe).lines,(Te,ge)=>`${ve}-${ge}`,(Te,ge,Qe)=>{const Ye=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Xe=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Ye)),xt=_(()=>Ne(ve,e(Qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(Qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),Ht=n(bt,2),wt=o(Ht),zt=o(wt);Ft(zt,()=>me(e(ge)),!0),s(zt),s(wt);var or=n(wt,2);{var ir=Pe=>{{let ze=_(()=>Ce.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Se(e(Ye)),get title(){return e(ze)},children:(je,Be)=>{fe(je,{get icon(){return St}})},$$slots:{default:!0}})}};H(or,Pe=>{P()&&Pe(ir)})}s(Ht),s(vt);var Wt=n(vt,2);Ge(Wt,19,()=>e(Xe),(Pe,ze)=>`${Pe.line}-${ze}`,(Pe,ze)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(ze)));qt(Be,{get annotation(){return e(ze)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>V(kt,yt,$t),get isSending(){return h()}})}s(je),We(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Dt=n(Wt,2);{var lr=Pe=>{var ze=pn(),je=o(ze),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:V,onClose:ye,get isSending(){return h()}})}s(je),s(ze),i(Pe,ze)};H(Dt,Pe=>{e(tt)&&e(Xe).length===0&&Pe(lr)})}var dr=n(Dt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>S(ve,e(rt).startIndex,e(rt).endIndex),children:(ze,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return St},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return St},class:"h-2.5 w-2.5"}),M($t=>C(kt,$t),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(ze,Be)},$$slots:{default:!0}})};H(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,ze,je,Be)=>{He(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),He(gt,1,`w-20 shrink-0 flex select-none ${ze??""} border-r border-border`),C(rr,e(ge).oldNum??""),C(ar,e(ge).newNum??""),He(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),C(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>X(e(ge))]),i(lt,At)};H(er,lt=>{e(xt)&&lt(tr)})}i(Te,ut)}),i(ne,De)}),s(U),s(G),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};H(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>He(re,1,`walkthrough-file-diff overflow-hidden bg-card ${q()??""}`)),i($,re),qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const z=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return z[w%z.length]}function T(w){const z=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return z[w%z.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ve,$on:(w,z)=>Ue(r,w,z)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var q=n(J,2);return Ge(q,21,d,Lt,(w,z,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),S=O(_e,!0),E=n(_e,2),Ie=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,X)=>{He(he,0,`h-5 w-5 ${A??""}`),C(S,e(z).title),C(Ie,e(z).description),C(R,X)},[()=>T(de),()=>e(z).files.length===1?Ce.codeReview_categoriesGrid_fileCount_one({count:e(z).files.length}):Ce.codeReview_categoriesGrid_fileCount_many({count:e(z).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(q),s(h),M(w=>{He(h,1,`walkthrough-categories-grid ${b()??""}`),C(pe,w)},[()=>Ce.codeReview_categoriesGrid_whatChanged_title()]),i($,h),qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Sn=x('<p class="text-sm text-subtle mt-2"> </p>'),Cn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),T=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(S){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[S%E.length]}const K=_(()=>d().files.map(S=>{const E=b().get(S.path);return{...S,patch:E?.patch,additions:E?.additions??0,deletions:E?.deletions??0}}));var pe={get category(){return d()},set category(S){d(S),y()},get categoryIndex(){return m()},set categoryIndex(S){m(S),y()},get filePatchMap(){return b()},set filePatchMap(S){b(S),y()},get isLast(){return u()},set isLast(S=!1){u(S),y()},get onSendMessage(){return T()},set onSendMessage(S){T(S),y()},get isSending(){return P()},set isSending(S=!1){P(S),y()},get class(){return h()},set class(S=""){h(S),y()},$set:Ve,$on:(S,E)=>Ue(r,S,E)},q=Rn(),w=o(q),z=o(w),de=o(z),ce=n(de,2);{var ae=S=>{var E=$n();i(S,E)};H(ce,S=>{(!u()||e(K).length>0)&&S(ae)})}s(z);var te=n(z,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(S,E)=>`${m()}-${E}`,(S,E,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),X=o(A);{var ie=Se=>{It(Se,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return T()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Se=>{var ye=Cn(),V=o(ye),j=n(o(V),2),f=O(j,!0);s(V);var W=n(V,2);{var F=le=>{var a=Sn(),D=O(a,!0);M(()=>C(D,e(E).summary)),i(le,a)};H(W,le=>{e(E).summary&&le(F)})}s(ye),M(()=>C(f,e(E).path)),i(Se,ye)};H(X,Se=>{e(E).patch?Se(ie):Se($e,-1)})}s(A),s(me),M(()=>He(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(S,me)}),s(_e),s(q),M(S=>{He(q,1,`walkthrough-category-section ${h()??""}`),Er(q,"id",`category-${m()??""}`),He(de,1,`w-3 h-3 rounded-full ${S??""} ring-4 ring-background shrink-0`),C(I,d().title),C(Ne,d().description)},[()=>J(m())]),i($,q),qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),En=x('<div class="space-y-8 pt-4"></div>'),Hn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),zn=x('<div class="space-y-3 pt-2"></div>'),Wn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Dn=x('<div class="flex justify-end pt-2"><!></div>'),Tn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),T=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),J=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const q=_(()=>m()==="running"),w=_(()=>m()==="complete"),z=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((X,ie)=>X.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((X,ie)=>X.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Ze(()=>{if(!d()||!T())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Ur(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const X=Ne(R,A.oldContent,A.newContent);if(X){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:X,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const X=R.split(`