@intent-hq/web 2.362.0 → 2.362.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{jd2Q-_wb.js → 0Go2CbyU.js} +1 -1
- package/web/app/immutable/chunks/{DF45Lcog.js → 1nRBQ8GP.js} +1 -1
- package/web/app/immutable/chunks/{BMwhw1Uq.js → 23XOeMSz.js} +1 -1
- package/web/app/immutable/chunks/{zyhN-MWp.js → 2YXwswD5.js} +1 -1
- package/web/app/immutable/chunks/{D0klBhhG.js → 2hni5UX1.js} +1 -1
- package/web/app/immutable/chunks/{BomJfUuH.js → 4iYH6029.js} +1 -1
- package/web/app/immutable/chunks/{CeVJyslc.js → 55cMcX02.js} +1 -1
- package/web/app/immutable/chunks/{DiqO4Muj.js → 6b8eTysf.js} +1 -1
- package/web/app/immutable/chunks/{DrYNp4pq.js → 6zG0ROGL.js} +1 -1
- package/web/app/immutable/chunks/{Dg1sjsED.js → 8VBKAONs.js} +2 -2
- package/web/app/immutable/chunks/{DrRkoSeq.js → AWaLRNq4.js} +1 -1
- package/web/app/immutable/chunks/{DDVZx1NH.js → B-DzvqX1.js} +1 -1
- package/web/app/immutable/chunks/{u9TRZTyq.js → B1nPoFt8.js} +1 -1
- package/web/app/immutable/chunks/{BILh4U9K.js → B1rImF8u.js} +1 -1
- package/web/app/immutable/chunks/{vVxVtKpW.js → B2U6zHXn.js} +1 -1
- package/web/app/immutable/chunks/{1gFj_z6C.js → B2y4Ey03.js} +1 -1
- package/web/app/immutable/chunks/{ByAb1cmM.js → B3jM95Fp.js} +1 -1
- package/web/app/immutable/chunks/{42eDZto7.js → B3sqRIS9.js} +1 -1
- package/web/app/immutable/chunks/{C8YPd-6H.js → B43yoCDN.js} +1 -1
- package/web/app/immutable/chunks/{B8XPpKv7.js → B5nay5Hl.js} +3 -3
- package/web/app/immutable/chunks/{iQseBcjp.js → B6XV-wYf.js} +1 -1
- package/web/app/immutable/chunks/{B6ovWwJ_.js → B6lDfWDz.js} +1 -1
- package/web/app/immutable/chunks/{nIMiMGnC.js → B6qAtTdf.js} +1 -1
- package/web/app/immutable/chunks/{Bept5Hnm.js → B7ZiQt9B.js} +1 -1
- package/web/app/immutable/chunks/{CvAmKg2X.js → B7he-vwJ.js} +1 -1
- package/web/app/immutable/chunks/{BW6IwFyw.js → BAS5Ei9a.js} +4 -4
- package/web/app/immutable/chunks/{CY5L4aNw.js → BBXi6eZS.js} +1 -1
- package/web/app/immutable/chunks/{DnUPJZ7Y.js → BBeX3tt3.js} +1 -1
- package/web/app/immutable/chunks/{BA1Q6PPR.js → BFNGEzf6.js} +1 -1
- package/web/app/immutable/chunks/{D3YyaVry.js → BIBmWYIa.js} +1 -1
- package/web/app/immutable/chunks/{D9wnkmBu.js → BIQ9eVuf.js} +1 -1
- package/web/app/immutable/chunks/{BWcEoYRV.js → BKSdTbM0.js} +1 -1
- package/web/app/immutable/chunks/{DK8BxGVr.js → BKW-24eH.js} +1 -1
- package/web/app/immutable/chunks/{B2tn4QvC.js → BMXpCN2Z.js} +1 -1
- package/web/app/immutable/chunks/BNq3scG4.js +4 -0
- package/web/app/immutable/chunks/{DQ21wdjk.js → BPWzrv4n.js} +1 -1
- package/web/app/immutable/chunks/{VfrZWr4H.js → BPu2GADH.js} +1 -1
- package/web/app/immutable/chunks/{CRKBkpOe.js → BQi1vxhj.js} +1 -1
- package/web/app/immutable/chunks/{i9nNzXN1.js → BR6IlpMz.js} +1 -1
- package/web/app/immutable/chunks/{DpinIuVV.js → BRPvhipI.js} +2 -2
- package/web/app/immutable/chunks/{DwVWq9Mg.js → BSiWAL4B.js} +1 -1
- package/web/app/immutable/chunks/{BfYNlt8G.js → BTPstSq4.js} +1 -1
- package/web/app/immutable/chunks/{CEJtWBth.js → BULwUgGm.js} +1 -1
- package/web/app/immutable/chunks/{Dc2OgodD.js → BUNb3q2A.js} +1 -1
- package/web/app/immutable/chunks/{T-q_OSSy.js → BU_WdKEZ.js} +1 -1
- package/web/app/immutable/chunks/{Cd0j3msa.js → BUansWOB.js} +1 -1
- package/web/app/immutable/chunks/{qdH_r52r.js → BV4hVkqh.js} +1 -1
- package/web/app/immutable/chunks/{C_DRWbBT.js → BWxyJyKV.js} +1 -1
- package/web/app/immutable/chunks/{D4rtf9eK.js → BZMuFhDq.js} +2 -2
- package/web/app/immutable/chunks/{C2jMmBZH.js → BZaxCCc-.js} +3 -3
- package/web/app/immutable/chunks/{DhHBMk2S.js → B_Qscghg.js} +4 -4
- package/web/app/immutable/chunks/{CTuEdhIK.js → BbNaXeCx.js} +1 -1
- package/web/app/immutable/chunks/{DEz0iQL-.js → Bctp9lP7.js} +1 -1
- package/web/app/immutable/chunks/{BHi5IZAX.js → Bd3N9n0H.js} +1 -1
- package/web/app/immutable/chunks/{BIeyZqbO.js → Be0mmWcA.js} +6 -6
- package/web/app/immutable/chunks/{BLN77Nun.js → BeQ5cBZr.js} +1 -1
- package/web/app/immutable/chunks/{D-HbS-OO.js → BedgIvkT.js} +1 -1
- package/web/app/immutable/chunks/{CGq1dL3z.js → Bei3Ber-.js} +1 -1
- package/web/app/immutable/chunks/{AlKC0Ocb.js → Bg85AeOE.js} +1 -1
- package/web/app/immutable/chunks/{ButwRe61.js → BgO8l4RL.js} +1 -1
- package/web/app/immutable/chunks/{C5gI3OmS.js → Bh9XFM6t.js} +1 -1
- package/web/app/immutable/chunks/{Do-7hUG3.js → Bhsd_vBR.js} +1 -1
- package/web/app/immutable/chunks/{B64Wa5S6.js → Bi_5p9qD.js} +1 -1
- package/web/app/immutable/chunks/{BJBg5aea.js → BjhYYm97.js} +1 -1
- package/web/app/immutable/chunks/{Moy2Fnv7.js → BlbxSj1X.js} +1 -1
- package/web/app/immutable/chunks/{B_F2KAss.js → BluA3DZF.js} +1 -1
- package/web/app/immutable/chunks/{BRRZ-rdF.js → BluWIyqL.js} +1 -1
- package/web/app/immutable/chunks/{ConZf1Xc.js → BmH3z8uN.js} +1 -1
- package/web/app/immutable/chunks/{DGgxtq4s.js → Bo-zVBuZ.js} +1 -1
- package/web/app/immutable/chunks/{fBGaFk7o.js → Bpl_qBuR.js} +3 -3
- package/web/app/immutable/chunks/{Bbp04L_p.js → Bq9n6Tla.js} +1 -1
- package/web/app/immutable/chunks/{CLD_-K5U.js → BqGa1t8L.js} +1 -1
- package/web/app/immutable/chunks/{CHVebKY7.js → BqzT4O7L.js} +3 -3
- package/web/app/immutable/chunks/{BxEYTNET.js → Br53KhNC.js} +1 -1
- package/web/app/immutable/chunks/{alfd90bM.js → BrfrzpId.js} +1 -1
- package/web/app/immutable/chunks/{BhKKK-kE.js → BszkqKbM.js} +1 -1
- package/web/app/immutable/chunks/{BGAw0soA.js → BtoR1PxE.js} +1 -1
- package/web/app/immutable/chunks/{ryY3ARJp.js → Bu1TNEzu.js} +1 -1
- package/web/app/immutable/chunks/{BkJlUIRT.js → BuWwi-OB.js} +1 -1
- package/web/app/immutable/chunks/{Cm_3RFg5.js → BvEWkly-.js} +1 -1
- package/web/app/immutable/chunks/{C_xs3Po8.js → BwV7CRGN.js} +1 -1
- package/web/app/immutable/chunks/{Dv_zibKv.js → BwsZanfL.js} +1 -1
- package/web/app/immutable/chunks/{PgqRte-r.js → Bxs2oudl.js} +1 -1
- package/web/app/immutable/chunks/{BWX_OVAE.js → ByTn8oHf.js} +1 -1
- package/web/app/immutable/chunks/{DJQwKIJU.js → BykIeP0g.js} +1 -1
- package/web/app/immutable/chunks/{Di3oOarF.js → Bz3tuC8r.js} +2 -2
- package/web/app/immutable/chunks/{U10EozJE.js → BzQ3ATRh.js} +2 -2
- package/web/app/immutable/chunks/{BK_ocHH_.js → C-Reftw2.js} +1 -1
- package/web/app/immutable/chunks/{EAmw13pe.js → C-hb5nbb.js} +1 -1
- package/web/app/immutable/chunks/{D24Cy14e.js → C0RmcaXo.js} +1 -1
- package/web/app/immutable/chunks/{CokgYiLR.js → C1T-qy7I.js} +1 -1
- package/web/app/immutable/chunks/{BghGxAUO.js → C1o3spBY.js} +1 -1
- package/web/app/immutable/chunks/C2wAzMR4.js +176 -0
- package/web/app/immutable/chunks/{DHuPiSx5.js → C3UeOegI.js} +1 -1
- package/web/app/immutable/chunks/{DYBIQz8Q.js → C4GIXttQ.js} +1 -1
- package/web/app/immutable/chunks/{n_DC9aJx.js → C4_rKMDp.js} +13 -13
- package/web/app/immutable/chunks/{DA_NmGws.js → C4ndhNfG.js} +1 -1
- package/web/app/immutable/chunks/{DABONrQm.js → C4pyVvwk.js} +1 -1
- package/web/app/immutable/chunks/{CVAjc0yi.js → C6NQnjdC.js} +1 -1
- package/web/app/immutable/chunks/{D19QUWJk.js → C6XOSM-4.js} +1 -1
- package/web/app/immutable/chunks/{CGAW_CqO.js → C6pmzcFd.js} +1 -1
- package/web/app/immutable/chunks/{CLEN2qBh.js → C6sQTdfe.js} +1 -1
- package/web/app/immutable/chunks/{BV6tz7in.js → C6vubJsO.js} +1 -1
- package/web/app/immutable/chunks/{DNbGju-D.js → C7XLe6Fq.js} +1 -1
- package/web/app/immutable/chunks/{2f17jIS_.js → C8b1hAiZ.js} +1 -1
- package/web/app/immutable/chunks/{_yja1RDN.js → C9YJ2_w0.js} +1 -1
- package/web/app/immutable/chunks/{DBzwbLy-.js → C9nffMna.js} +1 -1
- package/web/app/immutable/chunks/{C1rlyspR.js → CAEXUpGf.js} +1 -1
- package/web/app/immutable/chunks/{elqYuZ6s.js → CAqlFYYX.js} +1 -1
- package/web/app/immutable/chunks/{jCb2rWV2.js → CBgqNyOn.js} +1 -1
- package/web/app/immutable/chunks/{B7D3Z-Y4.js → CCBDeIiF.js} +1 -1
- package/web/app/immutable/chunks/{C79wLg62.js → CCDDqQJs.js} +1 -1
- package/web/app/immutable/chunks/{DP4Ph7EA.js → CCm0OKl5.js} +1 -1
- package/web/app/immutable/chunks/CDNiWmce.js +1 -0
- package/web/app/immutable/chunks/{7QQiv-wr.js → CDSuKhpz.js} +1 -1
- package/web/app/immutable/chunks/{BUG9TrVX.js → CE2LFl-Z.js} +1 -1
- package/web/app/immutable/chunks/CE9WteXp.js +1 -0
- package/web/app/immutable/chunks/{Q1GArL_y.js → CFidbeSw.js} +1 -1
- package/web/app/immutable/chunks/{Dw_UfDsA.js → CFtRsKmm.js} +1 -1
- package/web/app/immutable/chunks/{DLLVCgsV.js → CGDxdR4I.js} +1 -1
- package/web/app/immutable/chunks/{DDy_8zbA.js → CH6-PW8d.js} +1 -1
- package/web/app/immutable/chunks/{XHWmx2fo.js → CI4L9sp8.js} +1 -1
- package/web/app/immutable/chunks/{DV6XB2ci.js → CJ9TjlSl.js} +1 -1
- package/web/app/immutable/chunks/{Vm4nXzsi.js → CJAHD8Av.js} +1 -1
- package/web/app/immutable/chunks/{CC7j966i.js → CKwXUgM5.js} +1 -1
- package/web/app/immutable/chunks/{nXQJ8vXX.js → CLDOuGzT.js} +1 -1
- package/web/app/immutable/chunks/{DR2SVCXR.js → CLG5hs6R.js} +1 -1
- package/web/app/immutable/chunks/{C8i00JgJ.js → CMQcQe3J.js} +1 -1
- package/web/app/immutable/chunks/{Be7gn9X-.js → CMmAwBL2.js} +1 -1
- package/web/app/immutable/chunks/{BG3WACU1.js → CORIYKie.js} +1 -1
- package/web/app/immutable/chunks/{Bff_Rbbv.js → CQ0hCG0n.js} +1 -1
- package/web/app/immutable/chunks/{D2jeSuJo.js → CQ2XnxCv.js} +1 -1
- package/web/app/immutable/chunks/{_1FSfiRe.js → CQBcB58U.js} +1 -1
- package/web/app/immutable/chunks/{CiSSCgqR.js → CQocjKjX.js} +1 -1
- package/web/app/immutable/chunks/{CC7Uzavp.js → CR6eaDMw.js} +1 -1
- package/web/app/immutable/chunks/{flRZVSKn.js → CRLV4RHy.js} +1 -1
- package/web/app/immutable/chunks/{8DKB8YcU.js → CTcdcUyj.js} +1 -1
- package/web/app/immutable/chunks/{CXq2AoEa.js → CThSE8LQ.js} +1 -1
- package/web/app/immutable/chunks/{CZlp_xaa.js → CXEzZ2hR.js} +1 -1
- package/web/app/immutable/chunks/{Dkq3_GD2.js → CXfsvSt9.js} +1 -1
- package/web/app/immutable/chunks/{DcS7tCp_.js → CYKcOC1a.js} +1 -1
- package/web/app/immutable/chunks/{CZScRu8r.js → CYP3WRBZ.js} +1 -1
- package/web/app/immutable/chunks/{DbF4GEUt.js → CZLC2BGb.js} +1 -1
- package/web/app/immutable/chunks/{D7W8zNV0.js → Ca-5qIPO.js} +1 -1
- package/web/app/immutable/chunks/{_5QQ1P8H.js → CaD-rr4v.js} +1 -1
- package/web/app/immutable/chunks/{BVZHN8O1.js → CcNWV5oe.js} +1 -1
- package/web/app/immutable/chunks/{DOB06fXT.js → CfsrLxYu.js} +1 -1
- package/web/app/immutable/chunks/CgZG1QkR.js +1 -0
- package/web/app/immutable/chunks/{DI85QvsH.js → Ch4PqakC.js} +1 -1
- package/web/app/immutable/chunks/{BZvzMoRv.js → ChXvhbof.js} +1 -1
- package/web/app/immutable/chunks/{B-7yIMT_.js → ChpnaSsg.js} +1 -1
- package/web/app/immutable/chunks/CiTaZNiG.js +1 -0
- package/web/app/immutable/chunks/{DzsS0_p_.js → CjuG-F5E.js} +1 -1
- package/web/app/immutable/chunks/{DG5HQEoF.js → Ck9E0Ysi.js} +1 -1
- package/web/app/immutable/chunks/{4uhoMHE_.js → Ckre-sgD.js} +1 -1
- package/web/app/immutable/chunks/{CL7qDIdV.js → ClEAI4g1.js} +3 -3
- package/web/app/immutable/chunks/{Cqru5LxS.js → ClI6BjKq.js} +1 -1
- package/web/app/immutable/chunks/{CJeXodn0.js → CmUp-Sqv.js} +1 -1
- package/web/app/immutable/chunks/{C0iYgKNx.js → Cng0L1r4.js} +1 -1
- package/web/app/immutable/chunks/{BvgeBoe1.js → Cp1SIa9c.js} +1 -1
- package/web/app/immutable/chunks/{nPXXKIa-.js → CpUG4uWd.js} +1 -1
- package/web/app/immutable/chunks/{DNmf6q32.js → CqSZC6ch.js} +1 -1
- package/web/app/immutable/chunks/{zB1IXbXb.js → CrgKt6cz.js} +1 -1
- package/web/app/immutable/chunks/{D1BBZ1Su.js → CsC9zelV.js} +1 -1
- package/web/app/immutable/chunks/{EAy3xyVJ.js → CvQjTi4D.js} +2 -2
- package/web/app/immutable/chunks/{CuNeyUoC.js → CyRyIWdG.js} +1 -1
- package/web/app/immutable/chunks/{CvFqJ3aj.js → Cyk2Y411.js} +1 -1
- package/web/app/immutable/chunks/{D01RaHSK.js → D-qx9bcE.js} +1 -1
- package/web/app/immutable/chunks/{ByTueQZz.js → D1tVMvmo.js} +1 -1
- package/web/app/immutable/chunks/{CVBzfNwe.js → D2NUq8UU.js} +1 -1
- package/web/app/immutable/chunks/{DmEF8CQK.js → D2c3A473.js} +1 -1
- package/web/app/immutable/chunks/{CUYJI5X_.js → D31UPrBJ.js} +1 -1
- package/web/app/immutable/chunks/{DVGWHR1H.js → D4nLWqqO.js} +1 -1
- package/web/app/immutable/chunks/{1MVyJ09_.js → D67FZ5Lv.js} +1 -1
- package/web/app/immutable/chunks/{BkDiy3qO.js → D7WbMK4o.js} +1 -1
- package/web/app/immutable/chunks/{CgeqCnG6.js → D7niCCgo.js} +1 -1
- package/web/app/immutable/chunks/{CsQLAzr5.js → D9yIi5KK.js} +1 -1
- package/web/app/immutable/chunks/{D7sOTjCO.js → DA9Mdvxh.js} +1 -1
- package/web/app/immutable/chunks/{DSYQunl3.js → DAw72DZa.js} +1 -1
- package/web/app/immutable/chunks/{BNH_hD0i.js → DC8uF3lu.js} +1 -1
- package/web/app/immutable/chunks/{Zq02JorO.js → DD5eVBJb.js} +1 -1
- package/web/app/immutable/chunks/{CGPTsmEd.js → DDXthoba.js} +1 -1
- package/web/app/immutable/chunks/{CJSinxIK.js → DDaa7h_m.js} +1 -1
- package/web/app/immutable/chunks/{CdNWk-Bu.js → DEHoDrdd.js} +1 -1
- package/web/app/immutable/chunks/{Bo32wczA.js → DFNql_nS.js} +1 -1
- package/web/app/immutable/chunks/{kQoy32cr.js → DFYNZGf0.js} +1 -1
- package/web/app/immutable/chunks/{T940uwQN.js → DHffIWwt.js} +3 -3
- package/web/app/immutable/chunks/{vbGVPT6S.js → DHgdHC6B.js} +1 -1
- package/web/app/immutable/chunks/{C1a72gDa.js → DIKaua7R.js} +1 -1
- package/web/app/immutable/chunks/{DXJvf4ja.js → DIuXteuM.js} +1 -1
- package/web/app/immutable/chunks/{DQloJDQl.js → DJWDj1lZ.js} +1 -1
- package/web/app/immutable/chunks/{-Yzk2rdh.js → DJcIRc5D.js} +1 -1
- package/web/app/immutable/chunks/{NuBvLfzz.js → DK7i7mSH.js} +1 -1
- package/web/app/immutable/chunks/{DywT6cR_.js → DMSGpXyL.js} +2 -2
- package/web/app/immutable/chunks/{CIjzTMjk.js → DOaNjGx3.js} +1 -1
- package/web/app/immutable/chunks/{plzucQew.js → DP1vd71f.js} +1 -1
- package/web/app/immutable/chunks/{BsQjFYUU.js → DQmIdOy5.js} +1 -1
- package/web/app/immutable/chunks/{BNXO9e-K.js → DUa7Jvhz.js} +2 -2
- package/web/app/immutable/chunks/{CdYki3Ne.js → DUaHJCzY.js} +1 -1
- package/web/app/immutable/chunks/{CrG8QfjF.js → DUzPWaFA.js} +1 -1
- package/web/app/immutable/chunks/{D8hpao6N.js → DVxqmkFy.js} +1 -1
- package/web/app/immutable/chunks/{CaFfZGOK.js → DWEDgLOm.js} +1 -1
- package/web/app/immutable/chunks/{DfIwRMMx.js → DWbtFEwH.js} +1 -1
- package/web/app/immutable/chunks/{epeXa5Nl.js → DYaRWcpg.js} +1 -1
- package/web/app/immutable/chunks/{DdQ2Ee-5.js → DZSVN5v8.js} +1 -1
- package/web/app/immutable/chunks/{ClcIbYyp.js → DZtCGZgy.js} +1 -1
- package/web/app/immutable/chunks/{yYJfu2JX.js → DaNGy3D8.js} +1 -1
- package/web/app/immutable/chunks/{CUPNFNnH.js → DcR44gq9.js} +1 -1
- package/web/app/immutable/chunks/{CBM6AzvV.js → DgNEPBVe.js} +1 -1
- package/web/app/immutable/chunks/{Cc_mAvF5.js → Dh1ev8RB.js} +1 -1
- package/web/app/immutable/chunks/{vojGrKrS.js → DizljkHL.js} +1 -1
- package/web/app/immutable/chunks/{COBWKiGh.js → DjY1surq.js} +1 -1
- package/web/app/immutable/chunks/{D-37OIYf.js → DjeFU-Mu.js} +1 -1
- package/web/app/immutable/chunks/{BVZsZXmm.js → Dk5qPA5a.js} +1 -1
- package/web/app/immutable/chunks/{DSQMj_om.js → Dkw1IBph.js} +1 -1
- package/web/app/immutable/chunks/{wsJnb2w5.js → DnDBa5Or.js} +4 -4
- package/web/app/immutable/chunks/{D8JHIZfM.js → Dqi9bJNf.js} +1 -1
- package/web/app/immutable/chunks/{CrrPK0Iv.js → DrLx8OXO.js} +1 -1
- package/web/app/immutable/chunks/{Jbhi_cxP.js → DrSdReTn.js} +1 -1
- package/web/app/immutable/chunks/{Db_IhgBX.js → DrhiSb3J.js} +3 -3
- package/web/app/immutable/chunks/{D-QSPFPS.js → Dtxuz85W.js} +1 -1
- package/web/app/immutable/chunks/{D4ILfrQP.js → Du4MGCS4.js} +2 -2
- package/web/app/immutable/chunks/{BpOFfIvt.js → Du7ytJ4P.js} +1 -1
- package/web/app/immutable/chunks/{CbmUPEyZ.js → DuJdf9UG.js} +1 -1
- package/web/app/immutable/chunks/{CqDJmhHZ.js → DuOIvAqY.js} +2 -2
- package/web/app/immutable/chunks/{D73fvKXP.js → Dv3pGERg.js} +1 -1
- package/web/app/immutable/chunks/{DkPeQV3c.js → DvIus6kU.js} +1 -1
- package/web/app/immutable/chunks/{DwzYDj81.js → DwhPYiCJ.js} +1 -1
- package/web/app/immutable/chunks/{By1IjcbO.js → Dx9DzOqr.js} +1 -1
- package/web/app/immutable/chunks/{KkoOm1V0.js → DxFZ9gq2.js} +1 -1
- package/web/app/immutable/chunks/{C0-eX4eQ.js → DxM_2tEs.js} +1 -1
- package/web/app/immutable/chunks/{CBRPyq3u.js → Dx_cihQo.js} +3 -3
- package/web/app/immutable/chunks/{C8LXsE7b.js → DxgNlamv.js} +1 -1
- package/web/app/immutable/chunks/{LSzEWm4Q.js → DyYAxHE8.js} +1 -1
- package/web/app/immutable/chunks/{3RdDKrNK.js → DzCzYdRR.js} +1 -1
- package/web/app/immutable/chunks/{BVZ3OidP.js → EENIG6sq.js} +1 -1
- package/web/app/immutable/chunks/{B5jBKY1h.js → ETRy7Ggy.js} +1 -1
- package/web/app/immutable/chunks/{CeXu7r8X.js → F4cRH-lc.js} +1 -1
- package/web/app/immutable/chunks/{DMAUyJ2P.js → FkFkR8K2.js} +1 -1
- package/web/app/immutable/chunks/{NOaXnPaj.js → G87kWWA0.js} +2 -2
- package/web/app/immutable/chunks/{BCaye4Uu.js → HRcGzcZS.js} +1 -1
- package/web/app/immutable/chunks/{CrgZFb5y.js → IfYdwdBR.js} +1 -1
- package/web/app/immutable/chunks/{N6kzLiXM.js → J04upo63.js} +1 -1
- package/web/app/immutable/chunks/{DLxYdmRB.js → J1LWsTd9.js} +1 -1
- package/web/app/immutable/chunks/{Bult6xm-.js → JAWGj4Yi.js} +2 -2
- package/web/app/immutable/chunks/{g9ZlPi9F.js → Jf_R-Aac.js} +2 -2
- package/web/app/immutable/chunks/{CE6pj9s3.js → KYr22_OD.js} +1 -1
- package/web/app/immutable/chunks/{oxDrPxDU.js → KilK2UOM.js} +1 -1
- package/web/app/immutable/chunks/{DtvdPXC0.js → LwSSBtxX.js} +1 -1
- package/web/app/immutable/chunks/{BV1K6wKe.js → M2GCPKoA.js} +1 -1
- package/web/app/immutable/chunks/{ByQw5PSS.js → O-SiHQ6R.js} +1 -1
- package/web/app/immutable/chunks/{CoaHiAox.js → Or_TQbr1.js} +1 -1
- package/web/app/immutable/chunks/{D9tcLZ_Y.js → Qb3uerTr.js} +1 -1
- package/web/app/immutable/chunks/{BgyYCiyL.js → Qizor3xZ.js} +1 -1
- package/web/app/immutable/chunks/{CpbmyPj0.js → Qm-MZg2p.js} +1 -1
- package/web/app/immutable/chunks/{zgekXgkJ.js → QnpVdYT5.js} +1 -1
- package/web/app/immutable/chunks/{D2-mq7g4.js → R19W582_.js} +1 -1
- package/web/app/immutable/chunks/{DyCS2A-K.js → RGmB-SjS.js} +1 -1
- package/web/app/immutable/chunks/{BNZHgKSk.js → UWQdg-A2.js} +1 -1
- package/web/app/immutable/chunks/{nK5lgmDU.js → UfUfpfpL.js} +1 -1
- package/web/app/immutable/chunks/{N7qvIOuv.js → W_r4iRxt.js} +1 -1
- package/web/app/immutable/chunks/{0FRtEAk_.js → WvbffGVg.js} +1 -1
- package/web/app/immutable/chunks/{BrQE9aYr.js → Xu7DniMQ.js} +1 -1
- package/web/app/immutable/chunks/{CSRsy1MH.js → XvnVMArq.js} +1 -1
- package/web/app/immutable/chunks/{CIW89ENH.js → ZTWlL5zM.js} +1 -1
- package/web/app/immutable/chunks/{BDq2t_9P.js → _3XbzhXe.js} +1 -1
- package/web/app/immutable/chunks/{Bkg1yy3c.js → aa7X5cNm.js} +1 -1
- package/web/app/immutable/chunks/{Bzd2CMX7.js → awTIGLLj.js} +1 -1
- package/web/app/immutable/chunks/{DM4O8kyl.js → bP8UGzws.js} +1 -1
- package/web/app/immutable/chunks/{CvBqgDaO.js → c4H2cXzd.js} +1 -1
- package/web/app/immutable/chunks/{CPnsz9Hs.js → cH4zbEq8.js} +1 -1
- package/web/app/immutable/chunks/{BChgcxXb.js → cn1R3ng9.js} +3 -3
- package/web/app/immutable/chunks/{DOpB1zPF.js → dDu7RcXM.js} +1 -1
- package/web/app/immutable/chunks/{zAJ7GuqN.js → dVG3dMki.js} +1 -1
- package/web/app/immutable/chunks/{zGpo4Blc.js → dZVNnMZs.js} +3 -3
- package/web/app/immutable/chunks/{9M4Pl7xy.js → dqo-Nkop.js} +1 -1
- package/web/app/immutable/chunks/{CdZoWikL.js → gHustHEr.js} +1 -1
- package/web/app/immutable/chunks/{DlKmdKxb.js → jLuOcx2N.js} +1 -1
- package/web/app/immutable/chunks/{D6iZo_ET.js → jhvKFO58.js} +1 -1
- package/web/app/immutable/chunks/{DCbtEZw8.js → l-VTMc_p.js} +1 -1
- package/web/app/immutable/chunks/{ByW7bxEK.js → qD_x_a7m.js} +1 -1
- package/web/app/immutable/chunks/{BNJBQg5K.js → sYvdi7eG.js} +1 -1
- package/web/app/immutable/chunks/{BQDjmnIn.js → stD6q5ZD.js} +1 -1
- package/web/app/immutable/chunks/{DiCNp-8B.js → u_sm9GBc.js} +1 -1
- package/web/app/immutable/chunks/{DiuuSzCC.js → vf6pveFy.js} +1 -1
- package/web/app/immutable/chunks/{CIu-y8lY.js → wAO5YQrd.js} +1 -1
- package/web/app/immutable/chunks/{hwmpZCuz.js → xQ1tvRyj.js} +1 -1
- package/web/app/immutable/chunks/{wM5E_fWg.js → xnUCUXHt.js} +1 -1
- package/web/app/immutable/chunks/{PtztmcML.js → yQ7GpLm3.js} +1 -1
- package/web/app/immutable/chunks/{1Kd2V6Ma.js → yVGqQrjf.js} +1 -1
- package/web/app/immutable/chunks/{LYm3QdT8.js → yyRLwoJz.js} +1 -1
- package/web/app/immutable/chunks/{DAg74Tfa.js → zHH7Kw4o.js} +1 -1
- package/web/app/immutable/entry/{app.D2bTUfu9.js → app.CMLUt8-K.js} +3 -3
- package/web/app/immutable/entry/start.D1qRxQ8x.js +1 -0
- package/web/app/immutable/nodes/{0.CPawR9BC.js → 0.BYH6vQW3.js} +1 -1
- package/web/app/immutable/nodes/{1.BlDqJU7r.js → 1.BAkbiSMg.js} +1 -1
- package/web/app/immutable/nodes/{10.BAMGMKNX.js → 10.DqnjBdnF.js} +5 -5
- package/web/app/immutable/nodes/{11.-7mABFeH.js → 11.mfKuarNN.js} +1 -1
- package/web/app/immutable/nodes/{12.CjcrqPFZ.js → 12.B8dwNd6E.js} +1 -1
- package/web/app/immutable/nodes/{13.Bc2gRY3E.js → 13.5M8H2X4b.js} +1 -1
- package/web/app/immutable/nodes/{14.W7UKKBbJ.js → 14.BzYka-40.js} +3 -3
- package/web/app/immutable/nodes/15.BcZNrBDb.js +3 -0
- package/web/app/immutable/nodes/{16.nAu8Tcun.js → 16.BZoPxych.js} +1 -1
- package/web/app/immutable/nodes/{17.BmHoggX-.js → 17.Cqw6uBts.js} +1 -1
- package/web/app/immutable/nodes/{18.CDqK9mtR.js → 18.Bhk-SJCV.js} +1 -1
- package/web/app/immutable/nodes/{19.BLC2e5Ym.js → 19.CKvaRxuS.js} +2 -2
- package/web/app/immutable/nodes/{2.CclojtZK.js → 2.BQJHslkB.js} +4 -4
- package/web/app/immutable/nodes/{20.DR7-1biV.js → 20.Dwc7t9AX.js} +1 -1
- package/web/app/immutable/nodes/{3.9s7e_J-v.js → 3.BLUctLcc.js} +1 -1
- package/web/app/immutable/nodes/{4.B6oC0aEI.js → 4.7Oh8cVZj.js} +1 -1
- package/web/app/immutable/nodes/{5.BhdMAH02.js → 5.C8XFrbrE.js} +1 -1
- package/web/app/immutable/nodes/{6.cb_yhLRO.js → 6.BfVTL0z7.js} +1 -1
- package/web/app/immutable/nodes/{7.CW5VpJ10.js → 7.B5PW7bVT.js} +1 -1
- package/web/app/immutable/nodes/{8.BCzBaaLq.js → 8.gpXKsW1b.js} +1 -1
- package/web/app/immutable/nodes/{9.CUYXVSxZ.js → 9.Do91vdif.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B0MfNWkm.js +0 -1
- package/web/app/immutable/chunks/BfX15qhw.js +0 -1
- package/web/app/immutable/chunks/C1QwTBKK.js +0 -176
- package/web/app/immutable/chunks/CBVyphqp.js +0 -1
- package/web/app/immutable/chunks/DDSNlYGe.js +0 -4
- package/web/app/immutable/chunks/Or0TMIv9.js +0 -1
- package/web/app/immutable/entry/start.BjNeM0go.js +0 -1
- package/web/app/immutable/nodes/15.B7EMAryy.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./C6XOSM-4.js";import{s as Ci}from"./BwsZanfL.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./DnDBa5Or.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{conf as t,language as e}from"./
|
|
1
|
+
import{conf as t,language as e}from"./DVxqmkFy.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as c}from"./PVXvIyE8.js";import{a7 as t}from"./
|
|
1
|
+
import{v as c}from"./PVXvIyE8.js";import{a7 as t}from"./qD_x_a7m.js";function a(n){return n.connections?.windowBackendId??t}function i(n,e){return e===t?n:`backend:${e}:${n}`}function*s(){return yield*c(a)}export{a as g,i as n,s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i}from"./
|
|
1
|
+
import{b as i}from"./DnDBa5Or.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Oe,bo as U,bm as H,bw as je,b as qe,bs as Ie,bq as at,br as xt}from"./BfX15qhw.js";import{bs as Ge,bj as bt,a5 as u,bA as c,b_ as x,W as r,bn as Ne,aA as Y,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Fe,ca as yt,bk as st,bH as Pe,bV as Be,a7 as fe,be as $e,b$ as ke,bO as B,bl as Ae}from"./CJxGDkBm.js";import{i as K}from"./CdNWk-Bu.js";import{k as ot}from"./CZlp_xaa.js";import{g as De}from"./D7W8zNV0.js";import{c as P}from"./CrrPK0Iv.js";import{s as We,f as Ye,c as Ze,b as Je}from"./DLxYdmRB.js";import{P as ze,h as He,i as Le,g as Me}from"./DEz0iQL-.js";import{S as T}from"./B_F2KAss.js";import"./Dg1sjsED.js";import{w as At}from"./Moy2Fnv7.js";import{C as Pt}from"./DDSNlYGe.js";import{E as Qe}from"./D0klBhhG.js";import{E as Tt}from"./CrG8QfjF.js";import"./CBM6AzvV.js";import{I_ as xe,fp as Rt,EY as nt,Do as it,pR as Dt}from"./ByW7bxEK.js";import{aZ as lt,aW as It,aX as Et,dF as St}from"./D8JHIZfM.js";import{d as Wt,r as zt}from"./BkJlUIRT.js";import{M as Ht}from"./BW6IwFyw.js";import{G as Lt}from"./BZvzMoRv.js";import{A as et}from"./DSQMj_om.js";import{M as Mt,e as Ct}from"./CqDJmhHZ.js";import{o as Ft}from"./T-q_OSSy.js";import{f as Ce}from"./Dc2OgodD.js";import{S as Ee}from"./8DKB8YcU.js";import{F as Se,a1 as Bt,d2 as Ot,av as jt,bm as qt}from"./CUPNFNnH.js";var Gt=m('<div class="space-y-3"><!> <!></div>'),Nt=m('<div class="space-y-3"><!> <!></div> <!>',1),Vt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Xt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Kt=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Ut=m('<div class="flex h-10 items-center px-3"><!></div>'),Yt=m("<div><!> <!> <!> <!></div>"),Zt=m("<!> <!>",1),Jt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});Ge(l,!0);const Z=At();bt(Z.cleanup);let E=U(l,"detail",7,!1),O=U(l,"count",7,5),J=U(l,"view",7,"list"),Q=U(l,"grouped",7,!1),s=U(l,"rows",7,"workspace");var S={get detail(){return E()},set detail(i=!1){E(i),Y()},get count(){return O()},set count(i=5){O(i),Y()},get view(){return J()},set view(i="list"){J(i),Y()},get grouped(){return Q()},set grouped(i=!1){Q(i),Y()},get rows(){return s()},set rows(i="workspace"){s(i),Y()},$set:je,$on:(i,D)=>qe(l,i,D)},y=Jt(),ie=u(y),be=u(ie);{var le=i=>{var D=Nt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var L=n(ee,2);T(L,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Gt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),r(h,k)}),r(i,D)},Te=i=>{var D=Kt();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var L=Xt(),d=u(L),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Vt(),de=u(j),re=u(de);T(re,{class:"h-4 flex-1"});var ce=n(re);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),r(k,j)}),c(L),r(g,L)}),c(D),r(i,D)},_e=i=>{var D=Zt(),g=R(D);{var ee=d=>{var h=Ut(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),r(d,h)};K(g,d=>{Q()&&d(ee)})}var L=n(g,2);De(L,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Yt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},re=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};K(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(re,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};K(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Ye(A,1,Ze(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),r(d,A)}),r(i,D)};K(be,i=>{E()?i(le):J()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{We(y,"aria-label",i),We(y,"data-reduced",Z.current),Ye(ie,1,Ze(E()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>H.home_integrations_loading()]),r(b,y),Ne(S)}function ct(b){return b.filter(Wt)}function Qt(){let b=null;return(l,Z)=>{const E=b?l.find(J=>J.id===b):void 0;if(E)return E;const O=zt(l);return b=Z&&O?String(O.id):null,O}}function er(b,l,Z){return l&&b.find(E=>E.id===l)||Z}var tr=m('<div class="p-4"><!></div>'),rr=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});Ge(l,!0);const Z=()=>Ie(ie,"$agents$",O),E=()=>Ie(be,"$loaded$",O),[O,J]=at();let Q=U(l,"workspace",7),s=U(l,"preview",7,!1),S=U(l,"agent",7);const y=Fe(()=>Q().id),ie=lt(y),be=It(y),le=$(()=>ct(Z())),Te=$(()=>s()?void 0:S()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Ht||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Be(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Be(!1),ee;function L(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||L(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Q()},set workspace(t){Q(t),Y()},get preview(){return s()},set preview(t=!1){s(t),Y()},get agent(){return S()},set agent(t){S(t),Y()},$set:je,$on:(t,o)=>qe(l,t,o)},h=rr(),A=u(h);{var k=t=>{Qe(t,{density:"compact",title:w=>{$e();var q=ke();x(ae=>B(q,ae),[()=>H.agentOverview_hierarchyGraph_noAgents_title()]),r(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>S().id,q=>{{let ae=$(()=>e(_e)?.agentId===S().id?e(_e):void 0);Pt(q,{get workspace(){return Q()},get agentId(){return S().id},get agentName(){return S().name},autoFocus:!1,get attentionFocusRequest(){return e(ae)},isInitialWorkspaceAgent:!1})}}),r(t,o)},j=t=>{var o=tr(),w=u(o);dt(w,{detail:!0}),c(o),r(t,o)},de=t=>{{const o=q=>{$e();var ae=ke();x(ye=>B(ae,ye),[()=>H.home_detail_unavailable()]),r(q,ae)};let w=$(()=>H.home_retry());Tt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:L,message:o,$$slots:{message:!0}})}},re=t=>{{const o=q=>{$e();var ae=ke();x(ye=>B(ae,ye),[()=>H.agentOverview_hierarchyGraph_noAgents_title()]),r(q,ae)};let w=$(()=>H.home_retry());Qe(t,{density:"compact",get actionLabel(){return e(w)},onAction:L,title:o,$$slots:{title:!0}})}};K(A,t=>{s()?t(k):S()?t(te,1):!E()&&!e(g)?t(j,2):E()?t(re,-1):t(de,3)})}c(h),x(()=>We(h,"data-workspace-link-target",Q().id)),r(b,h);var ce=Ne(d);return J(),ce}var ar=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sr=m('<div class="shrink-0"><!></div>'),or=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),rt=m("<!><!>",1),nr=m("<p> </p>"),ir=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),lr=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),dr=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),cr=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),vr=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ur(b,l){if(new.target)return Oe({component:ur,...b});Ge(l,!0);const Z=()=>Ie(_e,"$readRevision$",J),E=()=>Ie(Te,"$agents$",J),O=()=>Ie(D,"$pickedId$",J),[J,Q]=at();let s=U(l,"workspace",7),S=U(l,"onclose",7),y=U(l,"preview",7,!1),ie=U(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:H.workspace_links_untitled_label()),le=Fe(()=>s().id),Te=lt(le),_e=Et(le),i=Fe(()=>Z()),D=Mt(le),g=$(()=>ct(E())),ee=Qt(),L=$(()=>ee(e(g),Z()>i)),d=$(()=>er(e(g),O(),e(L)));function h(a){xe.dispatch(nt(le,a)),xe.dispatch(it(le,a))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Be(!1);async function te(){Pe(k,!1);try{await Ct(s().id),Pe(k,!St.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Ft(s().id)}var de={get workspace(){return s()},set workspace(a){s(a),Y()},get onclose(){return S()},set onclose(a){S(a),Y()},get preview(){return y()},set preview(a=!1){y(a),Y()},get showBackToList(){return ie()},set showBackToList(a=!0){ie(a),Y()},$set:je,$on:(a,f)=>qe(l,a,f)},re=vr(),ce=u(re),t=u(ce),o=u(t),w=u(o);P(w,()=>ze,(a,f)=>{f(a,{children:(G,oe)=>{var N=fe(),M=R(N);P(M,()=>He,(ve,W)=>{W(ve,{children:(V,ge)=>{var me=tt(),ne=R(me);{const C=(z,F)=>{let I=()=>(F?.()).props;{let v=$(()=>H.home_open_workspace());Ce(z,xt(I,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,X)=>{var _=ar(),se=R(_),ue=Ae(se,!0),we=n(se,2);Se(we,{get icon(){return Bt},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>B(ue,e(be))),r(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Le,(z,F)=>{F(z,{child:C,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>Me,(C,z)=>{z(C,{children:(F,I)=>{$e();var v=ke();x(()=>B(v,e(be))),r(F,v)},$$slots:{default:!0}})}),r(V,me)},$$slots:{default:!0}})}),r(G,N)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var ae=a=>{var f=sr(),G=u(f);{let oe=$(()=>H.home_close_preview()),N=$(()=>H.home_close_preview());Ce(G,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(N)},get onclick(){return S()},children:(M,ve)=>{Se(M,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),r(a,f)};K(q,a=>{ie()&&a(ae)})}c(t);var ye=n(t,2);{var ut=a=>{var f=fe(),G=R(f);P(G,()=>ze,(oe,N)=>{N(oe,{children:(M,ve)=>{var W=fe(),V=R(W);P(V,()=>He,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),z=R(C);{const I=(v,p)=>{let X=()=>(p?.()).props;var _=or();Je(_,()=>({...X(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{Lt(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Se(pe,{get icon(){return qt}})};K(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Ue=n(se,2),Re=Ae(Ue,!0);c(_),x(()=>B(Re,e(A))),r(v,_)};P(z,()=>Le,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(z);P(F,()=>Me,(I,v)=>{v(I,{children:(p,X)=>{$e();var _=ke();x(()=>B(_,e(A))),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(M,W)},$$slots:{default:!0}})}),r(a,f)};K(ye,a=>{e(A)&&a(ut)})}var pt=n(ye,2);{var mt=a=>{var f=fe(),G=R(f);P(G,()=>ze,(oe,N)=>{N(oe,{children:(M,ve)=>{var W=fe(),V=R(W);P(V,()=>He,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),z=R(C);{const I=(v,p)=>{let X=()=>(p?.()).props;var _=nr();Je(_,()=>({...X(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>B(se,s().statusMessage)),r(v,_)};P(z,()=>Le,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(z);P(F,()=>Me,(I,v)=>{v(I,{children:(p,X)=>{$e();var _=ke();x(()=>B(_,s().statusMessage)),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(M,W)},$$slots:{default:!0}})}),r(a,f)};K(pt,a=>{s().statusMessage&&a(mt)})}c(ce);var Ve=n(ce,2);{var ft=a=>{var f=dr(),G=u(f);{let oe=$(()=>e(d)?.id??"");P(G,()=>Ee.Root,(N,M)=>{M(N,{get value(){return e(oe)},onchange:ve=>{const W=e(g).find(V=>V.id===ve);W&&h(W.id)},children:(ve,W)=>{var V=tt(),ge=R(V);{let ne=$(()=>H.home_agents());P(ge,()=>Ee.Trigger,(he,C)=>{C(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(z,F)=>{var I=ir(),v=R(I);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};K(v,ue=>{e(d)&&ue(p)})}var X=n(v,2),_=Ae(X,!0),se=n(X,2);Se(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>B(_,e(d)?.name)),r(z,I)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>Ee.Content,(ne,he)=>{he(ne,{portal:!0,children:(C,z)=>{var F=fe(),I=R(F);De(I,17,()=>e(g),v=>v.id,(v,p)=>{var X=fe(),_=R(X);P(_,()=>Ee.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Ue)=>{var Re=lr(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>B($t,e(p).name)),r(we,Re)},$$slots:{default:!0}})}),r(v,X)}),r(C,F)},$$slots:{default:!0}})}),r(ve,V)},$$slots:{default:!0}})})}c(f),r(a,f)};K(Ve,a=>{e(g).length&&a(ft)})}var Xe=n(Ve,2);{var _t=a=>{var f=cr(),G=u(f),oe=Ae(G,!0),N=n(G,2);Ce(N,{variant:"outline",size:"sm",onclick:te,children:(M,ve)=>{$e();var W=ke();x(V=>B(W,V),[()=>H.home_retry()]),r(M,W)},$$slots:{default:!0}}),c(f),x(M=>B(oe,M),[()=>H.home_detail_unavailable()]),r(a,f)};K(Xe,a=>{e(k)&&a(_t)})}var Ke=n(Xe,2),gt=u(Ke);ot(gt,()=>s().id,a=>{vt(a,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ke),c(re),x(a=>We(re,"aria-label",a),[()=>H.home_workspace_details()]),r(b,re);var ht=Ne(de);return Q(),ht}export{dt as H,ur as a};
|
|
1
|
+
import{t as Oe,bo as U,bm as H,bw as je,b as qe,bs as Ie,bq as at,br as xt}from"./CDNiWmce.js";import{bs as Ge,bj as bt,a5 as u,bA as c,b_ as x,W as r,bn as Ne,aA as Y,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Fe,ca as yt,bk as st,bH as Pe,bV as Be,a7 as fe,be as $e,b$ as ke,bO as B,bl as Ae}from"./CJxGDkBm.js";import{i as K}from"./DEHoDrdd.js";import{k as ot}from"./CXEzZ2hR.js";import{g as De}from"./Ca-5qIPO.js";import{c as P}from"./DrLx8OXO.js";import{s as We,f as Ye,c as Ze,b as Je}from"./J1LWsTd9.js";import{P as ze,h as He,i as Le,g as Me}from"./Bctp9lP7.js";import{S as T}from"./BluA3DZF.js";import"./8VBKAONs.js";import{w as At}from"./BlbxSj1X.js";import{C as Pt}from"./BNq3scG4.js";import{E as Qe}from"./2hni5UX1.js";import{E as Tt}from"./DUzPWaFA.js";import"./DgNEPBVe.js";import{I_ as xe,fp as Rt,EY as nt,Do as it,pR as Dt}from"./qD_x_a7m.js";import{aZ as lt,aW as It,aX as Et,dF as St}from"./Dqi9bJNf.js";import{d as Wt,r as zt}from"./BuWwi-OB.js";import{M as Ht}from"./BAS5Ei9a.js";import{G as Lt}from"./ChXvhbof.js";import{A as et}from"./Dkw1IBph.js";import{M as Mt,e as Ct}from"./DuOIvAqY.js";import{o as Ft}from"./BU_WdKEZ.js";import{f as Ce}from"./BUNb3q2A.js";import{S as Ee}from"./CTcdcUyj.js";import{F as Se,a1 as Bt,d2 as Ot,av as jt,bm as qt}from"./DcR44gq9.js";var Gt=m('<div class="space-y-3"><!> <!></div>'),Nt=m('<div class="space-y-3"><!> <!></div> <!>',1),Vt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Xt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Kt=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Ut=m('<div class="flex h-10 items-center px-3"><!></div>'),Yt=m("<div><!> <!> <!> <!></div>"),Zt=m("<!> <!>",1),Jt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});Ge(l,!0);const Z=At();bt(Z.cleanup);let E=U(l,"detail",7,!1),O=U(l,"count",7,5),J=U(l,"view",7,"list"),Q=U(l,"grouped",7,!1),s=U(l,"rows",7,"workspace");var S={get detail(){return E()},set detail(i=!1){E(i),Y()},get count(){return O()},set count(i=5){O(i),Y()},get view(){return J()},set view(i="list"){J(i),Y()},get grouped(){return Q()},set grouped(i=!1){Q(i),Y()},get rows(){return s()},set rows(i="workspace"){s(i),Y()},$set:je,$on:(i,D)=>qe(l,i,D)},y=Jt(),ie=u(y),be=u(ie);{var le=i=>{var D=Nt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var L=n(ee,2);T(L,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Gt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),r(h,k)}),r(i,D)},Te=i=>{var D=Kt();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var L=Xt(),d=u(L),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Vt(),de=u(j),re=u(de);T(re,{class:"h-4 flex-1"});var ce=n(re);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),r(k,j)}),c(L),r(g,L)}),c(D),r(i,D)},_e=i=>{var D=Zt(),g=R(D);{var ee=d=>{var h=Ut(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),r(d,h)};K(g,d=>{Q()&&d(ee)})}var L=n(g,2);De(L,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Yt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},re=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};K(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(re,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};K(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Ye(A,1,Ze(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),r(d,A)}),r(i,D)};K(be,i=>{E()?i(le):J()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{We(y,"aria-label",i),We(y,"data-reduced",Z.current),Ye(ie,1,Ze(E()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>H.home_integrations_loading()]),r(b,y),Ne(S)}function ct(b){return b.filter(Wt)}function Qt(){let b=null;return(l,Z)=>{const E=b?l.find(J=>J.id===b):void 0;if(E)return E;const O=zt(l);return b=Z&&O?String(O.id):null,O}}function er(b,l,Z){return l&&b.find(E=>E.id===l)||Z}var tr=m('<div class="p-4"><!></div>'),rr=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});Ge(l,!0);const Z=()=>Ie(ie,"$agents$",O),E=()=>Ie(be,"$loaded$",O),[O,J]=at();let Q=U(l,"workspace",7),s=U(l,"preview",7,!1),S=U(l,"agent",7);const y=Fe(()=>Q().id),ie=lt(y),be=It(y),le=$(()=>ct(Z())),Te=$(()=>s()?void 0:S()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Ht||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Be(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Be(!1),ee;function L(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||L(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Q()},set workspace(t){Q(t),Y()},get preview(){return s()},set preview(t=!1){s(t),Y()},get agent(){return S()},set agent(t){S(t),Y()},$set:je,$on:(t,o)=>qe(l,t,o)},h=rr(),A=u(h);{var k=t=>{Qe(t,{density:"compact",title:w=>{$e();var q=ke();x(ae=>B(q,ae),[()=>H.agentOverview_hierarchyGraph_noAgents_title()]),r(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>S().id,q=>{{let ae=$(()=>e(_e)?.agentId===S().id?e(_e):void 0);Pt(q,{get workspace(){return Q()},get agentId(){return S().id},get agentName(){return S().name},autoFocus:!1,get attentionFocusRequest(){return e(ae)},isInitialWorkspaceAgent:!1})}}),r(t,o)},j=t=>{var o=tr(),w=u(o);dt(w,{detail:!0}),c(o),r(t,o)},de=t=>{{const o=q=>{$e();var ae=ke();x(ye=>B(ae,ye),[()=>H.home_detail_unavailable()]),r(q,ae)};let w=$(()=>H.home_retry());Tt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:L,message:o,$$slots:{message:!0}})}},re=t=>{{const o=q=>{$e();var ae=ke();x(ye=>B(ae,ye),[()=>H.agentOverview_hierarchyGraph_noAgents_title()]),r(q,ae)};let w=$(()=>H.home_retry());Qe(t,{density:"compact",get actionLabel(){return e(w)},onAction:L,title:o,$$slots:{title:!0}})}};K(A,t=>{s()?t(k):S()?t(te,1):!E()&&!e(g)?t(j,2):E()?t(re,-1):t(de,3)})}c(h),x(()=>We(h,"data-workspace-link-target",Q().id)),r(b,h);var ce=Ne(d);return J(),ce}var ar=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sr=m('<div class="shrink-0"><!></div>'),or=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),rt=m("<!><!>",1),nr=m("<p> </p>"),ir=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),lr=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),dr=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),cr=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),vr=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ur(b,l){if(new.target)return Oe({component:ur,...b});Ge(l,!0);const Z=()=>Ie(_e,"$readRevision$",J),E=()=>Ie(Te,"$agents$",J),O=()=>Ie(D,"$pickedId$",J),[J,Q]=at();let s=U(l,"workspace",7),S=U(l,"onclose",7),y=U(l,"preview",7,!1),ie=U(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:H.workspace_links_untitled_label()),le=Fe(()=>s().id),Te=lt(le),_e=Et(le),i=Fe(()=>Z()),D=Mt(le),g=$(()=>ct(E())),ee=Qt(),L=$(()=>ee(e(g),Z()>i)),d=$(()=>er(e(g),O(),e(L)));function h(a){xe.dispatch(nt(le,a)),xe.dispatch(it(le,a))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Be(!1);async function te(){Pe(k,!1);try{await Ct(s().id),Pe(k,!St.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Ft(s().id)}var de={get workspace(){return s()},set workspace(a){s(a),Y()},get onclose(){return S()},set onclose(a){S(a),Y()},get preview(){return y()},set preview(a=!1){y(a),Y()},get showBackToList(){return ie()},set showBackToList(a=!0){ie(a),Y()},$set:je,$on:(a,f)=>qe(l,a,f)},re=vr(),ce=u(re),t=u(ce),o=u(t),w=u(o);P(w,()=>ze,(a,f)=>{f(a,{children:(G,oe)=>{var N=fe(),M=R(N);P(M,()=>He,(ve,W)=>{W(ve,{children:(V,ge)=>{var me=tt(),ne=R(me);{const C=(z,F)=>{let I=()=>(F?.()).props;{let v=$(()=>H.home_open_workspace());Ce(z,xt(I,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,X)=>{var _=ar(),se=R(_),ue=Ae(se,!0),we=n(se,2);Se(we,{get icon(){return Bt},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>B(ue,e(be))),r(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Le,(z,F)=>{F(z,{child:C,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>Me,(C,z)=>{z(C,{children:(F,I)=>{$e();var v=ke();x(()=>B(v,e(be))),r(F,v)},$$slots:{default:!0}})}),r(V,me)},$$slots:{default:!0}})}),r(G,N)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var ae=a=>{var f=sr(),G=u(f);{let oe=$(()=>H.home_close_preview()),N=$(()=>H.home_close_preview());Ce(G,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(N)},get onclick(){return S()},children:(M,ve)=>{Se(M,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),r(a,f)};K(q,a=>{ie()&&a(ae)})}c(t);var ye=n(t,2);{var ut=a=>{var f=fe(),G=R(f);P(G,()=>ze,(oe,N)=>{N(oe,{children:(M,ve)=>{var W=fe(),V=R(W);P(V,()=>He,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),z=R(C);{const I=(v,p)=>{let X=()=>(p?.()).props;var _=or();Je(_,()=>({...X(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{Lt(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Se(pe,{get icon(){return qt}})};K(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Ue=n(se,2),Re=Ae(Ue,!0);c(_),x(()=>B(Re,e(A))),r(v,_)};P(z,()=>Le,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(z);P(F,()=>Me,(I,v)=>{v(I,{children:(p,X)=>{$e();var _=ke();x(()=>B(_,e(A))),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(M,W)},$$slots:{default:!0}})}),r(a,f)};K(ye,a=>{e(A)&&a(ut)})}var pt=n(ye,2);{var mt=a=>{var f=fe(),G=R(f);P(G,()=>ze,(oe,N)=>{N(oe,{children:(M,ve)=>{var W=fe(),V=R(W);P(V,()=>He,(ge,me)=>{me(ge,{children:(ne,he)=>{var C=rt(),z=R(C);{const I=(v,p)=>{let X=()=>(p?.()).props;var _=nr();Je(_,()=>({...X(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>B(se,s().statusMessage)),r(v,_)};P(z,()=>Le,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(z);P(F,()=>Me,(I,v)=>{v(I,{children:(p,X)=>{$e();var _=ke();x(()=>B(_,s().statusMessage)),r(p,_)},$$slots:{default:!0}})}),r(ne,C)},$$slots:{default:!0}})}),r(M,W)},$$slots:{default:!0}})}),r(a,f)};K(pt,a=>{s().statusMessage&&a(mt)})}c(ce);var Ve=n(ce,2);{var ft=a=>{var f=dr(),G=u(f);{let oe=$(()=>e(d)?.id??"");P(G,()=>Ee.Root,(N,M)=>{M(N,{get value(){return e(oe)},onchange:ve=>{const W=e(g).find(V=>V.id===ve);W&&h(W.id)},children:(ve,W)=>{var V=tt(),ge=R(V);{let ne=$(()=>H.home_agents());P(ge,()=>Ee.Trigger,(he,C)=>{C(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(z,F)=>{var I=ir(),v=R(I);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};K(v,ue=>{e(d)&&ue(p)})}var X=n(v,2),_=Ae(X,!0),se=n(X,2);Se(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>B(_,e(d)?.name)),r(z,I)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>Ee.Content,(ne,he)=>{he(ne,{portal:!0,children:(C,z)=>{var F=fe(),I=R(F);De(I,17,()=>e(g),v=>v.id,(v,p)=>{var X=fe(),_=R(X);P(_,()=>Ee.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Ue)=>{var Re=lr(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>B($t,e(p).name)),r(we,Re)},$$slots:{default:!0}})}),r(v,X)}),r(C,F)},$$slots:{default:!0}})}),r(ve,V)},$$slots:{default:!0}})})}c(f),r(a,f)};K(Ve,a=>{e(g).length&&a(ft)})}var Xe=n(Ve,2);{var _t=a=>{var f=cr(),G=u(f),oe=Ae(G,!0),N=n(G,2);Ce(N,{variant:"outline",size:"sm",onclick:te,children:(M,ve)=>{$e();var W=ke();x(V=>B(W,V),[()=>H.home_retry()]),r(M,W)},$$slots:{default:!0}}),c(f),x(M=>B(oe,M),[()=>H.home_detail_unavailable()]),r(a,f)};K(Xe,a=>{e(k)&&a(_t)})}var Ke=n(Xe,2),gt=u(Ke);ot(gt,()=>s().id,a=>{vt(a,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ke),c(re),x(a=>We(re,"aria-label",a),[()=>H.home_workspace_details()]),r(b,re);var ht=Ne(de);return Q(),ht}export{dt as H,ur as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as a,aP as u,aQ as r,m as N,a0 as w,l as x,ab as T,Y as A,b3 as C,aJ as M,ad as P,bM as m,bL as i,O as v,bZ as R,w as S,bN as s}from"./CJxGDkBm.js";import{B}from"./
|
|
1
|
+
import{aR as a,aP as u,aQ as r,m as N,a0 as w,l as x,ab as T,Y as A,b3 as C,aJ as M,ad as P,bM as m,bL as i,O as v,bZ as R,w as S,bN as s}from"./CJxGDkBm.js";import{B}from"./CDNiWmce.js";import{i as c}from"./BR6IlpMz.js";function J(g,p,F,l,L,O){let b=a;a&&u();var e=null;a&&r.nodeType===N&&(e=r,u());var f=a?r:g,E=v,o=new B(f,!1);w(()=>{const t=p()||null;var h=t==="svg"?S:void 0;if(t===null){o.ensure(null,null),s(!0);return}return o.ensure(t,_=>{if(t){var y=a;if(e=a?e:T(t,h),A(e,e),l){var d=null;a&&C(t)&&e.append(d=document.createComment(""));var n=a?M(e):e.appendChild(P());a&&(n===null?m(!1):i(n)),c(E),l(e,n),d?.remove(),c(null)}v.nodes.end=e,y||_.before(e)}a&&i(_)}),s(!0),()=>{t&&s(!1)}},x),R(()=>{s(!0)}),b&&(m(!0),i(f))}export{J as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as z,bs as I,a7 as O,ay as x,W as y,aD as S,a5 as Q,bf as j,bA as q,bn as E,c9 as G,aA as r,aB as J}from"./CJxGDkBm.js";import{t as K,bo as a,bw as L,b as M,bp as N}from"./
|
|
1
|
+
import{bo as z,bs as I,a7 as O,ay as x,W as y,aD as S,a5 as Q,bf as j,bA as q,bn as E,c9 as G,aA as r,aB as J}from"./CJxGDkBm.js";import{t as K,bo as a,bw as L,b as M,bp as N}from"./CDNiWmce.js";import{b as R}from"./J1LWsTd9.js";import"./DFNql_nS.js";import{i as U}from"./DEHoDrdd.js";import{s as w}from"./CThSE8LQ.js";import{a as V}from"./BIQ9eVuf.js";import{az as T,av as n,aQ as X}from"./BUNb3q2A.js";import{F as Y}from"./Bu1TNEzu.js";var Z=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),$=J("<button><!></button>");function A(v,t){const _=z();if(new.target)return K({component:A,...v});I(t,!0);let p=a(t,"children",7),l=a(t,"child",7),i=a(t,"id",23,()=>T(_)),d=a(t,"ref",15,null),c=a(t,"type",7,"button"),f=a(t,"disabled",7,!1),u=a(t,"openOnHover",7,!1),g=a(t,"openDelay",7,700),m=a(t,"closeDelay",7,300),B=N(t,Z);const h=V.create({id:n(()=>i()),ref:n(()=>d(),e=>d(e)),disabled:n(()=>!!f()),openOnHover:n(()=>u()),openDelay:n(()=>g()),closeDelay:n(()=>m())}),D=G(()=>X(B,h.props,{type:c()}));var C={get children(){return p()},set children(e){p(e),r()},get child(){return l()},set child(e){l(e),r()},get id(){return i()},set id(e=T(_)){i(e),r()},get ref(){return d()},set ref(e=null){d(e),r()},get type(){return c()},set type(e="button"){c(e),r()},get disabled(){return f()},set disabled(e=!1){f(e),r()},get openOnHover(){return u()},set openOnHover(e=!1){u(e),r()},get openDelay(){return g()},set openDelay(e=700){g(e),r()},get closeDelay(){return m()},set closeDelay(e=300){m(e),r()},$set:L,$on:(e,P)=>M(t,e,P)};return Y(v,{get id(){return i()},get ref(){return h.opts.ref},children:(e,P)=>{var H=O(),F=x(H);{var W=s=>{var o=O(),b=x(o);w(b,l,()=>({props:S(D)})),y(s,o)},k=s=>{var o=$();R(o,()=>({...S(D)}));var b=Q(o);w(b,()=>p()??j),q(o),y(s,o)};U(F,s=>{l()?s(W):s(k,-1)})}y(e,H)},$$slots:{default:!0}}),E(C)}const de=A;export{A as P,de as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./uXuxG9cN.js";import{u as J,o as T,_ as C,s as b,l as _,n as U}from"./CIyUrgF0.js";import{bm as $}from"./BfX15qhw.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:_("backoff"),retryAt:b()}),T({state:_("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),_e=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","machineOrder","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:_(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,Oe as M,_e as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
1
|
+
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./uXuxG9cN.js";import{u as J,o as T,_ as C,s as b,l as _,n as U}from"./CIyUrgF0.js";import{bm as $}from"./CDNiWmce.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:_("backoff"),retryAt:b()}),T({state:_("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),_e=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","machineOrder","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:_(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,Oe as M,_e as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ze=Object.defineProperty;var Le=o=>{throw TypeError(o)};var $e=(o,e,r)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var E=(o,e,r)=>$e(o,typeof e!="symbol"?e+"":e,r),Pe=(o,e,r)=>e.has(o)||Le("Cannot "+r);var l=(o,e,r)=>(Pe(o,e,"read from private field"),r?r.call(o):e.get(o)),P=(o,e,r)=>e.has(o)?Le("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),Se=(o,e,r,s)=>(Pe(o,e,"write to private field"),s?s.call(o,r):e.set(o,r),r),Ae=(o,e,r)=>(Pe(o,e,"access private method"),r);import{t as le,bo as n,bw as ce,b as de,bp as ye,br as we}from"./BfX15qhw.js";import{c9 as _,aD as u,bH as G,ca as fe,bV as q,bo as Re,bs as ge,a7 as B,ay as F,W as I,bn as he,aA as a,a5 as Ke,bf as Z,bA as Ne,aB as Ge,br as et,c5 as O,bI as tt,bS as Ee,aG as rt}from"./CJxGDkBm.js";import{i as Q}from"./CdNWk-Bu.js";import{s as H}from"./CXq2AoEa.js";import{b as st}from"./DK8BxGVr.js";import{c as Ie}from"./CrrPK0Iv.js";import{b as Oe,e as ke}from"./DLxYdmRB.js";import{P as De}from"./iQseBcjp.js";import{a as nt}from"./DpqAXGKG.js";import{_ as je}from"./Dg1sjsED.js";import{h as at,aD as it,ar as ot,an as He,l as ut,a6 as lt,at as ct,aq as Ue,ay as dt,a3 as gt,az as ve,aS as Be,a$ as ht,av as D,aQ as We}from"./Dc2OgodD.js";const ze=dt({component:"toggle-group",parts:["root","item"]}),qe=new at("ToggleGroup.Root");var $;class Qe{constructor(e){E(this,"opts");E(this,"rovingFocusGroup");E(this,"attachment");P(this,$,_(()=>({id:this.opts.id.current,[ze.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":Ue(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=He(this.opts.ref),this.rovingFocusGroup=new gt({candidateAttr:ze.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return u(l(this,$))}set props(e){G(l(this,$),e)}}$=new WeakMap;var ee;class ft extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!1);P(this,ee,_(()=>this.opts.value.current!==""));this.opts=r}get anyPressed(){return u(l(this,ee))}set anyPressed(r){G(l(this,ee),r)}includesItem(r){return this.opts.value.current===r}toggleItem(r,s){this.includesItem(r)?this.opts.value.current="":(this.opts.value.current=r,this.rovingFocusGroup.setCurrentTabStopId(s))}}ee=new WeakMap;var te;class vt extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!0);P(this,te,_(()=>this.opts.value.current.length>0));this.opts=r}get anyPressed(){return u(l(this,te))}set anyPressed(r){G(l(this,te),r)}includesItem(r){return this.opts.value.current.includes(r)}toggleItem(r,s){this.includesItem(r)?this.opts.value.current=this.opts.value.current.filter(d=>d!==r):(this.opts.value.current=[...this.opts.value.current,r],this.rovingFocusGroup.setCurrentTabStopId(s))}}te=new WeakMap;class mt{static create(e){const{type:r,...s}=e,d=r==="single"?new ft(s):new vt(s);return qe.set(d)}}var j,re,me,be,pe,Xe,X,se,ne;const Fe=class Fe{constructor(e,r){P(this,pe);E(this,"opts");E(this,"root");E(this,"attachment");P(this,j,_(()=>this.opts.disabled.current||this.root.opts.disabled.current));P(this,re,_(()=>this.root.includesItem(this.opts.value.current)));P(this,me,_(()=>this.root.isMulti?void 0:it(this.isPressed,!1)));P(this,be,_(()=>this.root.isMulti?ot(this.isPressed):void 0));P(this,X,q(0));P(this,se,_(()=>({pressed:this.isPressed})));P(this,ne,_(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:u(l(this,X)),"data-orientation":this.root.opts.orientation.current,"data-disabled":Ue(u(l(this,j))),"data-state":bt(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":u(l(this,be)),"aria-checked":u(l(this,me)),disabled:ct(u(l(this,j))),[ze.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=r,this.attachment=He(this.opts.ref),fe(()=>{this.root.opts.rovingFocus.current?G(l(this,X),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):G(l(this,X),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Fe(e,qe.get())}get isPressed(){return u(l(this,re))}set isPressed(e){G(l(this,re),e)}onclick(e){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!u(l(this,j))){if(e.key===ut||e.key===lt){e.preventDefault(),Ae(this,pe,Xe).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return u(l(this,se))}set snippetProps(e){G(l(this,se),e)}get props(){return u(l(this,ne))}set props(e){G(l(this,ne),e)}};j=new WeakMap,re=new WeakMap,me=new WeakMap,be=new WeakMap,pe=new WeakSet,Xe=function(){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},X=new WeakMap,se=new WeakMap,ne=new WeakMap;let Te=Fe;function bt(o){return o?"on":"off"}var pt=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),yt=Ge("<div><!></div>");function Ve(o,e){const r=Re();if(new.target)return le({component:Ve,...o});ge(e,!0);let s=n(e,"id",23,()=>ve(r)),d=n(e,"ref",15,null),g=n(e,"value",15),h=n(e,"onValueChange",7,Be),m=n(e,"type",7),b=n(e,"disabled",7,!1),p=n(e,"loop",7,!0),C=n(e,"orientation",7,"horizontal"),y=n(e,"rovingFocus",7,!0),S=n(e,"child",7),f=n(e,"children",7),v=ye(e,pt);function k(){g()===void 0&&g(m()==="single"?"":[])}k(),ht.pre(()=>g(),()=>{k()});const A=mt.create({id:D(()=>s()),value:D(()=>g(),i=>{g(i),h()(i)}),disabled:D(()=>b()),loop:D(()=>p()),orientation:D(()=>C()),rovingFocus:D(()=>y()),type:m(),ref:D(()=>d(),i=>d(i))}),L=_(()=>We(v,A.props));var c={get id(){return s()},set id(i=ve(r)){s(i),a()},get ref(){return d()},set ref(i=null){d(i),a()},get value(){return g()},set value(i){g(i),a()},get onValueChange(){return h()},set onValueChange(i=Be){h(i),a()},get type(){return m()},set type(i){m(i),a()},get disabled(){return b()},set disabled(i=!1){b(i),a()},get loop(){return p()},set loop(i=!0){p(i),a()},get orientation(){return C()},set orientation(i="horizontal"){C(i),a()},get rovingFocus(){return y()},set rovingFocus(i=!0){y(i),a()},get child(){return S()},set child(i){S(i),a()},get children(){return f()},set children(i){f(i),a()},$set:ce,$on:(i,w)=>de(e,i,w)},x=B(),z=F(x);{var R=i=>{var w=B(),T=F(w);H(T,S,()=>({props:u(L)})),I(i,w)},t=i=>{var w=yt();Oe(w,()=>({...u(L)}));var T=Ke(w);H(T,()=>f()??Z),Ne(w),I(i,w)};Q(z,i=>{S()?i(R):i(t,-1)})}return I(o,x),he(c)}var xt=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),_t=Ge("<button><!></button>");function Je(o,e){const r=Re();if(new.target)return le({component:Je,...o});ge(e,!0);let s=n(e,"children",7),d=n(e,"child",7),g=n(e,"ref",15,null),h=n(e,"value",7),m=n(e,"disabled",7,!1),b=n(e,"id",23,()=>ve(r)),p=n(e,"type",7,"button"),C=ye(e,xt);const y=Te.create({id:D(()=>b()),value:D(()=>h()),disabled:D(()=>m()??!1),ref:D(()=>g(),c=>g(c))}),S=_(()=>We(C,y.props,{type:p()}));var f={get children(){return s()},set children(c){s(c),a()},get child(){return d()},set child(c){d(c),a()},get ref(){return g()},set ref(c=null){g(c),a()},get value(){return h()},set value(c){h(c),a()},get disabled(){return m()},set disabled(c=!1){m(c),a()},get id(){return b()},set id(c=ve(r)){b(c),a()},get type(){return p()},set type(c="button"){p(c),a()},$set:ce,$on:(c,x)=>de(e,c,x)},v=B(),k=F(v);{var A=c=>{var x=B(),z=F(x);{let R=_(()=>({props:u(S),...y.snippetProps}));H(z,d,()=>u(R))}I(c,x)},L=c=>{var x=_t();Oe(x,()=>({...u(S)}));var z=Ke(x);H(z,()=>s()??Z,()=>y.snippetProps),Ne(x),I(c,x)};Q(k,c=>{d()?c(A):c(L,-1)})}return I(o,v),he(f)}function Ct(o,e){if(new.target)return le({component:Ct,...o});ge(e,!0);let r=n(e,"open",15,!1),s=n(e,"static",7,!1),d=n(e,"title",7),g=n(e,"description",7),h=n(e,"confirmLabel",7),m=n(e,"cancelLabel",7),b=n(e,"details",7),p=n(e,"busy",7,!1),C=n(e,"submitBusy",7,!1),y=n(e,"canSubmit",7,!0),S=n(e,"focusSubmit",7,!0),f=n(e,"focusCancel",7,!1),v=n(e,"enterKey",7,"submit"),k=n(e,"modEnter",7,"submit"),A=n(e,"destructive",7,!0),L=n(e,"class",7),c=n(e,"closeLabel",7),x=n(e,"onConfirm",7),z=n(e,"onCancel",7);var R={get open(){return r()},set open(t=!1){r(t),a()},get static(){return s()},set static(t=!1){s(t),a()},get title(){return d()},set title(t){d(t),a()},get description(){return g()},set description(t){g(t),a()},get confirmLabel(){return h()},set confirmLabel(t){h(t),a()},get cancelLabel(){return m()},set cancelLabel(t){m(t),a()},get details(){return b()},set details(t){b(t),a()},get busy(){return p()},set busy(t=!1){p(t),a()},get submitBusy(){return C()},set submitBusy(t=!1){C(t),a()},get canSubmit(){return y()},set canSubmit(t=!0){y(t),a()},get focusSubmit(){return S()},set focusSubmit(t=!0){S(t),a()},get focusCancel(){return f()},set focusCancel(t=!1){f(t),a()},get enterKey(){return v()},set enterKey(t="submit"){v(t),a()},get modEnter(){return k()},set modEnter(t="submit"){k(t),a()},get destructive(){return A()},set destructive(t=!0){A(t),a()},get class(){return L()},set class(t){L(t),a()},get closeLabel(){return c()},set closeLabel(t){c(t),a()},get onConfirm(){return x()},set onConfirm(t){x(t),a()},get onCancel(){return z()},set onCancel(t){z(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)};{let t=_(()=>A()?"destructive":"default");st(o,{get static(){return s()},get title(){return d()},get description(){return g()},get submitLabel(){return h()},get cancelLabel(){return m()},get submitVariant(){return u(t)},get busy(){return p()},get submitBusy(){return C()},get canSubmit(){return y()},get focusSubmit(){return S()},get focusCancel(){return f()},get enterKey(){return v()},get modEnter(){return k()},get class(){return L()},get closeLabel(){return c()},get onSubmit(){return x()},get onCancel(){return z()},get open(){return r()},set open(i){r(i)},children:(i,w)=>{var T=B(),W=F(T);{var N=K=>{var M=B(),xe=F(M);H(xe,b),I(K,M)};Q(W,K=>{b()&&K(N)})}I(i,T)},$$slots:{default:!0}})}return he(R)}var V,ae,ie,oe,ue;class Pt{constructor(e,r){P(this,V,q(et([])));P(this,ae);P(this,ie);P(this,oe,q(null));P(this,ue,q(0));Se(this,ae,e),Se(this,ie,r)}get hover(){return u(l(this,oe))}set hover(e){G(l(this,oe),e,!0)}get keyboardIndex(){return u(l(this,ue))}set keyboardIndex(e){G(l(this,ue),e,!0)}get selectedIndexes(){const e=new Set(l(this,ae).call(this));return u(l(this,V)).flatMap((r,s)=>r&&e.has(r.value)?[s]:[])}allocate(e){return O(()=>{const r={value:e,element:null,disabled:!1},s=u(l(this,V)).indexOf(void 0);return s<0?u(l(this,V)).push(r)-1:(u(l(this,V))[s]=r,s)})}release(e){O(()=>{u(l(this,V))[e]&&(u(l(this,V))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,r,s){O(()=>{const d=u(l(this,V))[e];d&&(d.value=r,d.disabled=s)})}register(e,r){O(()=>{const s=u(l(this,V))[e];s&&(s.element=r,this.hover?.registerItem(e,r))})}connect(e){O(()=>{this.hover?.destroy(),this.hover=nt(e,{axis:l(this,ie)});for(const[r,s]of u(l(this,V)).entries())s?.element&&this.hover.registerItem(r,s.element)})}disconnect(){O(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,r){const s=u(l(this,V)).map((h,m)=>({entry:h,entryIndex:m})).filter(({entry:h})=>h?.element&&!h.disabled),d=s.findIndex(({entryIndex:h})=>h===e);if(d<0||s.length===0)return;const g=s[(d+r+s.length)%s.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}V=new WeakMap,ae=new WeakMap,ie=new WeakMap,oe=new WeakMap,ue=new WeakMap;const Ye=Symbol("toggle-group");var St=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),Me=Ge("<!> <!>",1);function wt(o,e){if(new.target)return le({component:wt,...o});ge(e,!0);const r=je({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",15),d=n(e,"onValueChange",7),g=n(e,"type",7,"single"),h=n(e,"disabled",7,!1),m=n(e,"axis",7,"x"),b=n(e,"variant",7,"default"),p=n(e,"size",7,"default"),C=n(e,"class",7,""),y=n(e,"children",7),S=ye(e,St),f=q(null);const v=new Pt(()=>Array.isArray(s())?s():typeof s()=="string"&&s()?[s()]:[],O(()=>m()));tt(Ye,{state:v,get size(){return p()},get variant(){return b()}}),fe(()=>{if(u(f))return v.connect(u(f)),()=>v.disconnect()});function k(t){s(t),d()?.(t)}function A(t){s(t),d()?.(t)}var L={get value(){return s()},set value(t){s(t),a()},get onValueChange(){return d()},set onValueChange(t){d(t),a()},get type(){return g()},set type(t="single"){g(t),a()},get disabled(){return h()},set disabled(t=!1){h(t),a()},get axis(){return m()},set axis(t="x"){m(t),a()},get variant(){return b()},set variant(t="default"){b(t),a()},get size(){return p()},set size(t="default"){p(t),a()},get class(){return C()},set class(t=""){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},c=B(),x=F(c);{var z=t=>{var i=B(),w=F(i);{let T=_(()=>Array.isArray(s())?s():[]),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"multiple",get value(){return u(T)},onValueChange:A,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)},R=t=>{var i=B(),w=F(i);{let T=_(()=>typeof s()=="string"?s():""),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"single",get value(){return u(T)},onValueChange:k,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)};Q(x,t=>{g()==="multiple"?t(z):t(R,-1)})}return I(o,c),he(L)}var It=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function kt(o,e){if(new.target)return le({component:kt,...o});ge(e,!0);const r=je({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",7),d=n(e,"disabled",7,!1),g=n(e,"variant",7,void 0),h=n(e,"size",7,void 0),m=n(e,"tooltip",7,void 0),b=n(e,"class",7,""),p=n(e,"onclick",7),C=n(e,"onfocus",7),y=n(e,"children",7),S=ye(e,It);const f=rt(Ye),v=f.state.allocate(O(()=>s()));let k=q(null);const A=_(()=>h()??f?.size??"default"),L=_(()=>g()??f?.variant??"default");fe(()=>f.state.update(v,s(),d())),fe(()=>(f.state.register(v,u(k)),()=>f.state.register(v,null)));function c(t){f.state.activate(v),C()?.(t)}var x={get value(){return s()},set value(t){s(t),a()},get disabled(){return d()},set disabled(t=!1){d(t),a()},get variant(){return g()},set variant(t=void 0){g(t),a()},get size(){return h()},set size(t=void 0){h(t),a()},get tooltip(){return m()},set tooltip(t=void 0){m(t),a()},get class(){return b()},set class(t=""){b(t),a()},get onclick(){return p()},set onclick(t){p(t),a()},get onfocus(){return C()},set onfocus(t){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},z=B(),R=F(z);{let t=_(()=>ke(r({variant:u(L),size:u(A)}),b()));Ie(R,()=>Je,(i,w)=>{w(i,we({get value(){return s()},get title(){return m()},get disabled(){return d()},get onclick(){return p()},onfocus:c,get class(){return u(t)}},()=>S,{get ref(){return u(k)},set ref(T){G(k,T,!0)},children:(T,W)=>{var N=B(),K=F(N);H(K,()=>y()??Z),I(T,N)},$$slots:{default:!0}}))})}return I(o,z),he(x)}export{Pt as C,Ct as D,wt as T,kt as a};
|
|
1
|
+
var Ze=Object.defineProperty;var Le=o=>{throw TypeError(o)};var $e=(o,e,r)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var E=(o,e,r)=>$e(o,typeof e!="symbol"?e+"":e,r),Pe=(o,e,r)=>e.has(o)||Le("Cannot "+r);var l=(o,e,r)=>(Pe(o,e,"read from private field"),r?r.call(o):e.get(o)),P=(o,e,r)=>e.has(o)?Le("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),Se=(o,e,r,s)=>(Pe(o,e,"write to private field"),s?s.call(o,r):e.set(o,r),r),Ae=(o,e,r)=>(Pe(o,e,"access private method"),r);import{t as le,bo as n,bw as ce,b as de,bp as ye,br as we}from"./CDNiWmce.js";import{c9 as _,aD as u,bH as G,ca as fe,bV as q,bo as Re,bs as ge,a7 as B,ay as F,W as I,bn as he,aA as a,a5 as Ke,bf as Z,bA as Ne,aB as Ge,br as et,c5 as O,bI as tt,bS as Ee,aG as rt}from"./CJxGDkBm.js";import{i as Q}from"./DEHoDrdd.js";import{s as H}from"./CThSE8LQ.js";import{b as st}from"./BKW-24eH.js";import{c as Ie}from"./DrLx8OXO.js";import{b as Oe,e as ke}from"./J1LWsTd9.js";import{P as De}from"./B6XV-wYf.js";import{a as nt}from"./DpqAXGKG.js";import{_ as je}from"./8VBKAONs.js";import{h as at,aD as it,ar as ot,an as He,l as ut,a6 as lt,at as ct,aq as Ue,ay as dt,a3 as gt,az as ve,aS as Be,a$ as ht,av as D,aQ as We}from"./BUNb3q2A.js";const ze=dt({component:"toggle-group",parts:["root","item"]}),qe=new at("ToggleGroup.Root");var $;class Qe{constructor(e){E(this,"opts");E(this,"rovingFocusGroup");E(this,"attachment");P(this,$,_(()=>({id:this.opts.id.current,[ze.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":Ue(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=He(this.opts.ref),this.rovingFocusGroup=new gt({candidateAttr:ze.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return u(l(this,$))}set props(e){G(l(this,$),e)}}$=new WeakMap;var ee;class ft extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!1);P(this,ee,_(()=>this.opts.value.current!==""));this.opts=r}get anyPressed(){return u(l(this,ee))}set anyPressed(r){G(l(this,ee),r)}includesItem(r){return this.opts.value.current===r}toggleItem(r,s){this.includesItem(r)?this.opts.value.current="":(this.opts.value.current=r,this.rovingFocusGroup.setCurrentTabStopId(s))}}ee=new WeakMap;var te;class vt extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!0);P(this,te,_(()=>this.opts.value.current.length>0));this.opts=r}get anyPressed(){return u(l(this,te))}set anyPressed(r){G(l(this,te),r)}includesItem(r){return this.opts.value.current.includes(r)}toggleItem(r,s){this.includesItem(r)?this.opts.value.current=this.opts.value.current.filter(d=>d!==r):(this.opts.value.current=[...this.opts.value.current,r],this.rovingFocusGroup.setCurrentTabStopId(s))}}te=new WeakMap;class mt{static create(e){const{type:r,...s}=e,d=r==="single"?new ft(s):new vt(s);return qe.set(d)}}var j,re,me,be,pe,Xe,X,se,ne;const Fe=class Fe{constructor(e,r){P(this,pe);E(this,"opts");E(this,"root");E(this,"attachment");P(this,j,_(()=>this.opts.disabled.current||this.root.opts.disabled.current));P(this,re,_(()=>this.root.includesItem(this.opts.value.current)));P(this,me,_(()=>this.root.isMulti?void 0:it(this.isPressed,!1)));P(this,be,_(()=>this.root.isMulti?ot(this.isPressed):void 0));P(this,X,q(0));P(this,se,_(()=>({pressed:this.isPressed})));P(this,ne,_(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:u(l(this,X)),"data-orientation":this.root.opts.orientation.current,"data-disabled":Ue(u(l(this,j))),"data-state":bt(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":u(l(this,be)),"aria-checked":u(l(this,me)),disabled:ct(u(l(this,j))),[ze.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=r,this.attachment=He(this.opts.ref),fe(()=>{this.root.opts.rovingFocus.current?G(l(this,X),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):G(l(this,X),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Fe(e,qe.get())}get isPressed(){return u(l(this,re))}set isPressed(e){G(l(this,re),e)}onclick(e){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!u(l(this,j))){if(e.key===ut||e.key===lt){e.preventDefault(),Ae(this,pe,Xe).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return u(l(this,se))}set snippetProps(e){G(l(this,se),e)}get props(){return u(l(this,ne))}set props(e){G(l(this,ne),e)}};j=new WeakMap,re=new WeakMap,me=new WeakMap,be=new WeakMap,pe=new WeakSet,Xe=function(){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},X=new WeakMap,se=new WeakMap,ne=new WeakMap;let Te=Fe;function bt(o){return o?"on":"off"}var pt=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),yt=Ge("<div><!></div>");function Ve(o,e){const r=Re();if(new.target)return le({component:Ve,...o});ge(e,!0);let s=n(e,"id",23,()=>ve(r)),d=n(e,"ref",15,null),g=n(e,"value",15),h=n(e,"onValueChange",7,Be),m=n(e,"type",7),b=n(e,"disabled",7,!1),p=n(e,"loop",7,!0),C=n(e,"orientation",7,"horizontal"),y=n(e,"rovingFocus",7,!0),S=n(e,"child",7),f=n(e,"children",7),v=ye(e,pt);function k(){g()===void 0&&g(m()==="single"?"":[])}k(),ht.pre(()=>g(),()=>{k()});const A=mt.create({id:D(()=>s()),value:D(()=>g(),i=>{g(i),h()(i)}),disabled:D(()=>b()),loop:D(()=>p()),orientation:D(()=>C()),rovingFocus:D(()=>y()),type:m(),ref:D(()=>d(),i=>d(i))}),L=_(()=>We(v,A.props));var c={get id(){return s()},set id(i=ve(r)){s(i),a()},get ref(){return d()},set ref(i=null){d(i),a()},get value(){return g()},set value(i){g(i),a()},get onValueChange(){return h()},set onValueChange(i=Be){h(i),a()},get type(){return m()},set type(i){m(i),a()},get disabled(){return b()},set disabled(i=!1){b(i),a()},get loop(){return p()},set loop(i=!0){p(i),a()},get orientation(){return C()},set orientation(i="horizontal"){C(i),a()},get rovingFocus(){return y()},set rovingFocus(i=!0){y(i),a()},get child(){return S()},set child(i){S(i),a()},get children(){return f()},set children(i){f(i),a()},$set:ce,$on:(i,w)=>de(e,i,w)},x=B(),z=F(x);{var R=i=>{var w=B(),T=F(w);H(T,S,()=>({props:u(L)})),I(i,w)},t=i=>{var w=yt();Oe(w,()=>({...u(L)}));var T=Ke(w);H(T,()=>f()??Z),Ne(w),I(i,w)};Q(z,i=>{S()?i(R):i(t,-1)})}return I(o,x),he(c)}var xt=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),_t=Ge("<button><!></button>");function Je(o,e){const r=Re();if(new.target)return le({component:Je,...o});ge(e,!0);let s=n(e,"children",7),d=n(e,"child",7),g=n(e,"ref",15,null),h=n(e,"value",7),m=n(e,"disabled",7,!1),b=n(e,"id",23,()=>ve(r)),p=n(e,"type",7,"button"),C=ye(e,xt);const y=Te.create({id:D(()=>b()),value:D(()=>h()),disabled:D(()=>m()??!1),ref:D(()=>g(),c=>g(c))}),S=_(()=>We(C,y.props,{type:p()}));var f={get children(){return s()},set children(c){s(c),a()},get child(){return d()},set child(c){d(c),a()},get ref(){return g()},set ref(c=null){g(c),a()},get value(){return h()},set value(c){h(c),a()},get disabled(){return m()},set disabled(c=!1){m(c),a()},get id(){return b()},set id(c=ve(r)){b(c),a()},get type(){return p()},set type(c="button"){p(c),a()},$set:ce,$on:(c,x)=>de(e,c,x)},v=B(),k=F(v);{var A=c=>{var x=B(),z=F(x);{let R=_(()=>({props:u(S),...y.snippetProps}));H(z,d,()=>u(R))}I(c,x)},L=c=>{var x=_t();Oe(x,()=>({...u(S)}));var z=Ke(x);H(z,()=>s()??Z,()=>y.snippetProps),Ne(x),I(c,x)};Q(k,c=>{d()?c(A):c(L,-1)})}return I(o,v),he(f)}function Ct(o,e){if(new.target)return le({component:Ct,...o});ge(e,!0);let r=n(e,"open",15,!1),s=n(e,"static",7,!1),d=n(e,"title",7),g=n(e,"description",7),h=n(e,"confirmLabel",7),m=n(e,"cancelLabel",7),b=n(e,"details",7),p=n(e,"busy",7,!1),C=n(e,"submitBusy",7,!1),y=n(e,"canSubmit",7,!0),S=n(e,"focusSubmit",7,!0),f=n(e,"focusCancel",7,!1),v=n(e,"enterKey",7,"submit"),k=n(e,"modEnter",7,"submit"),A=n(e,"destructive",7,!0),L=n(e,"class",7),c=n(e,"closeLabel",7),x=n(e,"onConfirm",7),z=n(e,"onCancel",7);var R={get open(){return r()},set open(t=!1){r(t),a()},get static(){return s()},set static(t=!1){s(t),a()},get title(){return d()},set title(t){d(t),a()},get description(){return g()},set description(t){g(t),a()},get confirmLabel(){return h()},set confirmLabel(t){h(t),a()},get cancelLabel(){return m()},set cancelLabel(t){m(t),a()},get details(){return b()},set details(t){b(t),a()},get busy(){return p()},set busy(t=!1){p(t),a()},get submitBusy(){return C()},set submitBusy(t=!1){C(t),a()},get canSubmit(){return y()},set canSubmit(t=!0){y(t),a()},get focusSubmit(){return S()},set focusSubmit(t=!0){S(t),a()},get focusCancel(){return f()},set focusCancel(t=!1){f(t),a()},get enterKey(){return v()},set enterKey(t="submit"){v(t),a()},get modEnter(){return k()},set modEnter(t="submit"){k(t),a()},get destructive(){return A()},set destructive(t=!0){A(t),a()},get class(){return L()},set class(t){L(t),a()},get closeLabel(){return c()},set closeLabel(t){c(t),a()},get onConfirm(){return x()},set onConfirm(t){x(t),a()},get onCancel(){return z()},set onCancel(t){z(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)};{let t=_(()=>A()?"destructive":"default");st(o,{get static(){return s()},get title(){return d()},get description(){return g()},get submitLabel(){return h()},get cancelLabel(){return m()},get submitVariant(){return u(t)},get busy(){return p()},get submitBusy(){return C()},get canSubmit(){return y()},get focusSubmit(){return S()},get focusCancel(){return f()},get enterKey(){return v()},get modEnter(){return k()},get class(){return L()},get closeLabel(){return c()},get onSubmit(){return x()},get onCancel(){return z()},get open(){return r()},set open(i){r(i)},children:(i,w)=>{var T=B(),W=F(T);{var N=K=>{var M=B(),xe=F(M);H(xe,b),I(K,M)};Q(W,K=>{b()&&K(N)})}I(i,T)},$$slots:{default:!0}})}return he(R)}var V,ae,ie,oe,ue;class Pt{constructor(e,r){P(this,V,q(et([])));P(this,ae);P(this,ie);P(this,oe,q(null));P(this,ue,q(0));Se(this,ae,e),Se(this,ie,r)}get hover(){return u(l(this,oe))}set hover(e){G(l(this,oe),e,!0)}get keyboardIndex(){return u(l(this,ue))}set keyboardIndex(e){G(l(this,ue),e,!0)}get selectedIndexes(){const e=new Set(l(this,ae).call(this));return u(l(this,V)).flatMap((r,s)=>r&&e.has(r.value)?[s]:[])}allocate(e){return O(()=>{const r={value:e,element:null,disabled:!1},s=u(l(this,V)).indexOf(void 0);return s<0?u(l(this,V)).push(r)-1:(u(l(this,V))[s]=r,s)})}release(e){O(()=>{u(l(this,V))[e]&&(u(l(this,V))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,r,s){O(()=>{const d=u(l(this,V))[e];d&&(d.value=r,d.disabled=s)})}register(e,r){O(()=>{const s=u(l(this,V))[e];s&&(s.element=r,this.hover?.registerItem(e,r))})}connect(e){O(()=>{this.hover?.destroy(),this.hover=nt(e,{axis:l(this,ie)});for(const[r,s]of u(l(this,V)).entries())s?.element&&this.hover.registerItem(r,s.element)})}disconnect(){O(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,r){const s=u(l(this,V)).map((h,m)=>({entry:h,entryIndex:m})).filter(({entry:h})=>h?.element&&!h.disabled),d=s.findIndex(({entryIndex:h})=>h===e);if(d<0||s.length===0)return;const g=s[(d+r+s.length)%s.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}V=new WeakMap,ae=new WeakMap,ie=new WeakMap,oe=new WeakMap,ue=new WeakMap;const Ye=Symbol("toggle-group");var St=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),Me=Ge("<!> <!>",1);function wt(o,e){if(new.target)return le({component:wt,...o});ge(e,!0);const r=je({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",15),d=n(e,"onValueChange",7),g=n(e,"type",7,"single"),h=n(e,"disabled",7,!1),m=n(e,"axis",7,"x"),b=n(e,"variant",7,"default"),p=n(e,"size",7,"default"),C=n(e,"class",7,""),y=n(e,"children",7),S=ye(e,St),f=q(null);const v=new Pt(()=>Array.isArray(s())?s():typeof s()=="string"&&s()?[s()]:[],O(()=>m()));tt(Ye,{state:v,get size(){return p()},get variant(){return b()}}),fe(()=>{if(u(f))return v.connect(u(f)),()=>v.disconnect()});function k(t){s(t),d()?.(t)}function A(t){s(t),d()?.(t)}var L={get value(){return s()},set value(t){s(t),a()},get onValueChange(){return d()},set onValueChange(t){d(t),a()},get type(){return g()},set type(t="single"){g(t),a()},get disabled(){return h()},set disabled(t=!1){h(t),a()},get axis(){return m()},set axis(t="x"){m(t),a()},get variant(){return b()},set variant(t="default"){b(t),a()},get size(){return p()},set size(t="default"){p(t),a()},get class(){return C()},set class(t=""){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},c=B(),x=F(c);{var z=t=>{var i=B(),w=F(i);{let T=_(()=>Array.isArray(s())?s():[]),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"multiple",get value(){return u(T)},onValueChange:A,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)},R=t=>{var i=B(),w=F(i);{let T=_(()=>typeof s()=="string"?s():""),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"single",get value(){return u(T)},onValueChange:k,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)};Q(x,t=>{g()==="multiple"?t(z):t(R,-1)})}return I(o,c),he(L)}var It=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function kt(o,e){if(new.target)return le({component:kt,...o});ge(e,!0);const r=je({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",7),d=n(e,"disabled",7,!1),g=n(e,"variant",7,void 0),h=n(e,"size",7,void 0),m=n(e,"tooltip",7,void 0),b=n(e,"class",7,""),p=n(e,"onclick",7),C=n(e,"onfocus",7),y=n(e,"children",7),S=ye(e,It);const f=rt(Ye),v=f.state.allocate(O(()=>s()));let k=q(null);const A=_(()=>h()??f?.size??"default"),L=_(()=>g()??f?.variant??"default");fe(()=>f.state.update(v,s(),d())),fe(()=>(f.state.register(v,u(k)),()=>f.state.register(v,null)));function c(t){f.state.activate(v),C()?.(t)}var x={get value(){return s()},set value(t){s(t),a()},get disabled(){return d()},set disabled(t=!1){d(t),a()},get variant(){return g()},set variant(t=void 0){g(t),a()},get size(){return h()},set size(t=void 0){h(t),a()},get tooltip(){return m()},set tooltip(t=void 0){m(t),a()},get class(){return b()},set class(t=""){b(t),a()},get onclick(){return p()},set onclick(t){p(t),a()},get onfocus(){return C()},set onfocus(t){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},z=B(),R=F(z);{let t=_(()=>ke(r({variant:u(L),size:u(A)}),b()));Ie(R,()=>Je,(i,w)=>{w(i,we({get value(){return s()},get title(){return m()},get disabled(){return d()},get onclick(){return p()},onfocus:c,get class(){return u(t)}},()=>S,{get ref(){return u(k)},set ref(T){G(k,T,!0)},children:(T,W)=>{var N=B(),K=F(N);H(K,()=>y()??Z),I(T,N)},$$slots:{default:!0}}))})}return I(o,z),he(x)}export{Pt as C,Ct as D,wt as T,kt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as Lt}from"./BfX15qhw.js";import{bs as ct,ay as ye,be as E,b$ as I,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Gt}from"./CJxGDkBm.js";import{g as Dt,i as Ot,I as gt}from"./D7W8zNV0.js";import{c as Tt}from"./CrrPK0Iv.js";import{s as ot,f as Ft,c as Rt}from"./DLxYdmRB.js";import{f as R}from"./Dc2OgodD.js";import"./Dg1sjsED.js";import"./u9TRZTyq.js";import{b as Ht}from"./C8YPd-6H.js";import"./DP4Ph7EA.js";import"./C5gI3OmS.js";import{b as Nt}from"./DK8BxGVr.js";import{i as K}from"./CdNWk-Bu.js";import{b as Bt}from"./5vm8eILD.js";import{F as Mt,ax as qt}from"./CUPNFNnH.js";import"./CXq2AoEa.js";import{F as mt,G as Wt}from"./1gFj_z6C.js";import"./Bo32wczA.js";/* empty css */import{C as jt}from"./DEz0iQL-.js";import{L as xt}from"./Moy2Fnv7.js";import{I as tt}from"./DlKmdKxb.js";import"./Bkg1yy3c.js";import"./DmEF8CQK.js";import{h as Yt}from"./U10EozJE.js";import{I_ as ke,ft as ht,F as Jt,ej as kt,qT as Vt,uj as Qt,IR as Xt,or as Zt,hH as er}from"./ByW7bxEK.js";import{aC as yt,aD as $t,aE as tr,ax as rr,ay as Ct,az as ar,aA as sr,aI as nr}from"./ClcIbYyp.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),V=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function Q(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return V()},set title(d){V(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Nt(ie,{get static(){return U()},role:"alertdialog",get title(){return V()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Q(T().length-1),onCancel:()=>Q(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),N=ye(A);Dt(N,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");R(de,{get variant(){return e(me)},onclick:()=>Q(ae),children:(Ke,ze)=>{E();var Ae=I();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var N=or(),de=ye(N);Tt(de,()=>Ht,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var Ge=I();o(()=>s(Ge,h())),a(ze,Ge)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,N)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),V=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),Q=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),N=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",Ge="https://",Re=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>V()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),De=$(()=>{if(e(Re))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return V()},set mode(r){V(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return Q()},set baseUrl(r=""){Q(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return N()},set secretDisabled(r=A){N(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,L)=>dt(c,r,L)},k=br(),He=C(k);{var Ne=r=>{var L=lr(),W=g(L,!0);o(se=>s(W,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,L)};K(He,r=>{w()==="codex"&&U()==="token"&&r(Ne)})}var qe=i(He,2);{var We=r=>{var L=cr(),W=C(L),se=g(W,!0),j=i(W,2),B=C(j);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var G=i(q,2);jt(G,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(B,u=>{e(Re)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(B,2);{var H=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(H)})}P(j);var Z=i(j,2);{var Ce=u=>{R(u,{variant:"link",size:"sm",get href(){return e(De).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=I();o(()=>s(F,e(De).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(De)&&u(Ce)})}P(L),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,L)};K(qe,r=>{(V()==="add"||x())&&r(We)})}var je=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(W,se=ft)=>{var j=Kt(),B=C(j);tt(B,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(B,2);{var ne=M=>{R(M,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:xe,children:($e,_e)=>{E();var H=I();o(Z=>s(H,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,H)},$$slots:{default:!0}})};K(ve,M=>{V()==="edit"&&T()&&M(ne)})}P(j),a(W,j)},$$slots:{control:!0}})},Je=r=>{var L=pr(),W=C(L),se=g(W,!0),j=i(W,2),B=C(j),ve=g(B,!0),ne=i(B,2);R(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=I();o(H=>s(_e,H),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(j),P(L),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,L)};K(je,r=>{e(at)?r(Ye):r(Je,-1)})}var Ve=i(je,2);{var st=r=>{var L=fr(),W=C(L),se=C(W);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var j=i(se);P(W);var B=i(W,2),ve=C(B),ne=g(ve,!0),M=i(ve,2);{var $e=H=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),G=ye(q),ee=g(G,!0),p=i(G,2);R(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=I();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),G=ye(q),ee=g(G,!0),p=i(G,2);R(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);R(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(H,Z)},_e=H=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:Ge,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return Q()},set value(G){Q(G)}}));var z=i(F,2);{var q=G=>{R(G,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),Q("")},children:(ee,p)=>{E();var n=I();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,G=>{V()==="edit"&&ge()&&G(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(H,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,H=>{V()==="edit"&&ge()&&d()!=="replace"?H($e):H(_e,-1)})}P(B),P(L),o((H,Z)=>{s(j,` ${H??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Bt("open","toggle",L,X,X),a(r,L)};K(Ve,r=>{e(Re)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Ir(ie,c){const w=Ut();if(new.target)return it({component:Ir,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),V=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Re,"$deviceFlow$",d),Q=()=>Se(Ge,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=Lt();let A=f(c,"compact",7,!1),N=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),Ge=rr(),Re=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),De=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>Qt(e(Ee))),He=$(()=>e(Oe)||e(k)===U()&&V()===!1),Ne=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(De)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Gt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function We(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(Vt(e(k)))}function je(){he(De,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Je(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function Ve(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function L(){e(Ne)&&Yt(e(Ne),{})}function W(p){p.key==="Enter"&&(p.preventDefault(),We(),e(He)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Je())}const j=$(()=>A()?"sm":"xl"),B=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return N()},set onCancel(p){N(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{R(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var H=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(H)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Le=$(()=>t.lib_gitlabConnect_openGitlab_label());Wt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Le)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{let Le=$(()=>x()||!h());R(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Le)},onclick:Ve,children:(nt,ut)=>{E();var D=I();o(J=>s(D,J),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,D)},$$slots:{default:!0}})}var Be=i(Ie,2);p(Be),P(_),P(l),o(Le=>s(Te,Le),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(D,J)=>{E();var te=I();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(D,te)},$$slots:{default:!0}});var Y=i(_,2);{let D=$(()=>!h()),J=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(D)},get"aria-invalid"(){return e(J)},get"aria-describedby"(){return e(te)},get placeholder(){return Jt},oninput:je,onchange:We,onkeydown:W,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{var Be=D=>{var J=yr(),te=g(J,!0);o(pe=>{ot(J,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(D,J)};K(Ie,D=>{e(k)||D(Be)})}P(v);var Le=i(v,2);{var nt=D=>{var J=$r(),te=ye(J),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=I();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var Qe=i(pe,2);{let O=$(()=>!h());tt(Qe,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(Qe,2),fe=C(Xe),we=i(fe);{var Ze=O=>{R(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:L,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(Ne)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));R(Pe,{variant:"primary",get size(){return e(j)},type:"button",onclick:Je,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{R(O,{variant:"ghost",get size(){return e(B)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&V()===!1)&&O(At)})}var Et=i(vt,2);{var It=O=>{R(O,{variant:"ghost",get size(){return e(B)},type:"button",get onclick(){return N()},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{N()&&O(It)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(D,J)},ut=D=>{var J=Cr(),te=C(J);{let fe=$(()=>!e(k)||!h());R(te,{variant:"primary",get size(){return e(j)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());R(pe,{variant:"ghost",get size(){return e(B)},type:"button",get disabled(){return e(fe)},onclick:Ve,children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var Qe=i(pe,2);{var Xe=fe=>{R(fe,{variant:"ghost",get size(){return e(B)},type:"button",get onclick(){return N()},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(Qe,fe=>{N()&&fe(Xe)})}P(J),a(D,J)};K(Le,D=>{e(He)?D(nt):D(ut,-1)})}o(D=>{ot(oe,"id",ce),s(Te,D)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);R(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Ie=I();o(Be=>s(Ie,Be),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Ie)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>Q()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{Q()==="cancelled"?n(F):(Q()==="already-started"||Q()==="failed")&&n(z,1)})}var q=i(y,2);{var G=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(G)})}P(ne)}o(()=>Ft(ne,1,Rt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Ir as G,ir as M,gr as P,sa as s};
|
|
1
|
+
import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as Lt}from"./CDNiWmce.js";import{bs as ct,ay as ye,be as E,b$ as I,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Gt}from"./CJxGDkBm.js";import{g as Dt,i as Ot,I as gt}from"./Ca-5qIPO.js";import{c as Tt}from"./DrLx8OXO.js";import{s as ot,f as Ft,c as Rt}from"./J1LWsTd9.js";import{f as R}from"./BUNb3q2A.js";import"./8VBKAONs.js";import"./B1nPoFt8.js";import{b as Ht}from"./B43yoCDN.js";import"./CCm0OKl5.js";import"./Bh9XFM6t.js";import{b as Nt}from"./BKW-24eH.js";import{i as K}from"./DEHoDrdd.js";import{b as Bt}from"./5vm8eILD.js";import{F as Mt,ax as qt}from"./DcR44gq9.js";import"./CThSE8LQ.js";import{F as mt,G as Wt}from"./B2y4Ey03.js";import"./DFNql_nS.js";/* empty css */import{C as jt}from"./Bctp9lP7.js";import{L as xt}from"./BlbxSj1X.js";import{I as tt}from"./jLuOcx2N.js";import"./aa7X5cNm.js";import"./D2c3A473.js";import{h as Yt}from"./BzQ3ATRh.js";import{I_ as ke,ft as ht,F as Jt,ej as kt,qT as Vt,uj as Qt,IR as Xt,or as Zt,hH as er}from"./qD_x_a7m.js";import{aC as yt,aD as $t,aE as tr,ax as rr,ay as Ct,az as ar,aA as sr,aI as nr}from"./DZtCGZgy.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),V=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function Q(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return V()},set title(d){V(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Nt(ie,{get static(){return U()},role:"alertdialog",get title(){return V()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Q(T().length-1),onCancel:()=>Q(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),N=ye(A);Dt(N,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");R(de,{get variant(){return e(me)},onclick:()=>Q(ae),children:(Ke,ze)=>{E();var Ae=I();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var N=or(),de=ye(N);Tt(de,()=>Ht,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var Ge=I();o(()=>s(Ge,h())),a(ze,Ge)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,N)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),V=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),Q=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),N=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",Ge="https://",Re=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>V()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),De=$(()=>{if(e(Re))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return V()},set mode(r){V(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return Q()},set baseUrl(r=""){Q(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return N()},set secretDisabled(r=A){N(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,L)=>dt(c,r,L)},k=br(),He=C(k);{var Ne=r=>{var L=lr(),W=g(L,!0);o(se=>s(W,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,L)};K(He,r=>{w()==="codex"&&U()==="token"&&r(Ne)})}var qe=i(He,2);{var We=r=>{var L=cr(),W=C(L),se=g(W,!0),j=i(W,2),B=C(j);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((G,ee)=>{s(F,G),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var G=i(q,2);jt(G,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(B,u=>{e(Re)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(B,2);{var H=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(H)})}P(j);var Z=i(j,2);{var Ce=u=>{R(u,{variant:"link",size:"sm",get href(){return e(De).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=I();o(()=>s(F,e(De).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(De)&&u(Ce)})}P(L),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,L)};K(qe,r=>{(V()==="add"||x())&&r(We)})}var je=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(W,se=ft)=>{var j=Kt(),B=C(j);tt(B,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(B,2);{var ne=M=>{R(M,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:xe,children:($e,_e)=>{E();var H=I();o(Z=>s(H,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,H)},$$slots:{default:!0}})};K(ve,M=>{V()==="edit"&&T()&&M(ne)})}P(j),a(W,j)},$$slots:{control:!0}})},Je=r=>{var L=pr(),W=C(L),se=g(W,!0),j=i(W,2),B=C(j),ve=g(B,!0),ne=i(B,2);R(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=I();o(H=>s(_e,H),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(j),P(L),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,L)};K(je,r=>{e(at)?r(Ye):r(Je,-1)})}var Ve=i(je,2);{var st=r=>{var L=fr(),W=C(L),se=C(W);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var j=i(se);P(W);var B=i(W,2),ve=C(B),ne=g(ve,!0),M=i(ve,2);{var $e=H=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),G=ye(q),ee=g(G,!0),p=i(G,2);R(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=I();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),G=ye(q),ee=g(G,!0),p=i(G,2);R(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);R(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(H,Z)},_e=H=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:Ge,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return Q()},set value(G){Q(G)}}));var z=i(F,2);{var q=G=>{R(G,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),Q("")},children:(ee,p)=>{E();var n=I();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,G=>{V()==="edit"&&ge()&&G(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(H,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,H=>{V()==="edit"&&ge()&&d()!=="replace"?H($e):H(_e,-1)})}P(B),P(L),o((H,Z)=>{s(j,` ${H??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Bt("open","toggle",L,X,X),a(r,L)};K(Ve,r=>{e(Re)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Ir(ie,c){const w=Ut();if(new.target)return it({component:Ir,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),V=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Re,"$deviceFlow$",d),Q=()=>Se(Ge,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=Lt();let A=f(c,"compact",7,!1),N=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),Ge=rr(),Re=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),De=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>Qt(e(Ee))),He=$(()=>e(Oe)||e(k)===U()&&V()===!1),Ne=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(De)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Gt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function We(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(Vt(e(k)))}function je(){he(De,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Je(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function Ve(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function L(){e(Ne)&&Yt(e(Ne),{})}function W(p){p.key==="Enter"&&(p.preventDefault(),We(),e(He)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Je())}const j=$(()=>A()?"sm":"xl"),B=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return N()},set onCancel(p){N(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{R(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var H=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(H)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Le=$(()=>t.lib_gitlabConnect_openGitlab_label());Wt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Le)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{let Le=$(()=>x()||!h());R(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Le)},onclick:Ve,children:(nt,ut)=>{E();var D=I();o(J=>s(D,J),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,D)},$$slots:{default:!0}})}var Be=i(Ie,2);p(Be),P(_),P(l),o(Le=>s(Te,Le),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(D,J)=>{E();var te=I();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(D,te)},$$slots:{default:!0}});var Y=i(_,2);{let D=$(()=>!h()),J=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(D)},get"aria-invalid"(){return e(J)},get"aria-describedby"(){return e(te)},get placeholder(){return Jt},oninput:je,onchange:We,onkeydown:W,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{var Be=D=>{var J=yr(),te=g(J,!0);o(pe=>{ot(J,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(D,J)};K(Ie,D=>{e(k)||D(Be)})}P(v);var Le=i(v,2);{var nt=D=>{var J=$r(),te=ye(J),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=I();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var Qe=i(pe,2);{let O=$(()=>!h());tt(Qe,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(Qe,2),fe=C(Xe),we=i(fe);{var Ze=O=>{R(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:L,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(Ne)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));R(Pe,{variant:"primary",get size(){return e(j)},type:"button",onclick:Je,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{R(O,{variant:"ghost",get size(){return e(B)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&V()===!1)&&O(At)})}var Et=i(vt,2);{var It=O=>{R(O,{variant:"ghost",get size(){return e(B)},type:"button",get onclick(){return N()},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{N()&&O(It)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(D,J)},ut=D=>{var J=Cr(),te=C(J);{let fe=$(()=>!e(k)||!h());R(te,{variant:"primary",get size(){return e(j)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());R(pe,{variant:"ghost",get size(){return e(B)},type:"button",get disabled(){return e(fe)},onclick:Ve,children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var Qe=i(pe,2);{var Xe=fe=>{R(fe,{variant:"ghost",get size(){return e(B)},type:"button",get onclick(){return N()},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(Qe,fe=>{N()&&fe(Xe)})}P(J),a(D,J)};K(Le,D=>{e(He)?D(nt):D(ut,-1)})}o(D=>{ot(oe,"id",ce),s(Te,D)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);R(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Ie=I();o(Be=>s(Ie,Be),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Ie)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>Q()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{Q()==="cancelled"?n(F):(Q()==="already-started"||Q()==="failed")&&n(z,1)})}var q=i(y,2);{var G=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(G)})}P(ne)}o(()=>Ft(ne,1,Rt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Ir as G,ir as M,gr as P,sa as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as u,bo as o,bw as p,bp as b,b as g}from"./
|
|
1
|
+
import{t as u,bo as o,bw as p,bp as b,b as g}from"./CDNiWmce.js";import{bs as h,a5 as _,bA as v,W as x,bn as w,aA as l,aB as y}from"./CJxGDkBm.js";import{s as S}from"./CThSE8LQ.js";import{b as A,e as C}from"./J1LWsTd9.js";import{b as k}from"./NtFyWdpR.js";var B=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),N=y("<section><!></section>");function P(c,s){if(new.target)return u({component:P,...c});h(s,!0);let r=o(s,"ref",15,null),a=o(s,"children",7),n=o(s,"class",7),i=b(s,B);var f={get ref(){return r()},set ref(e=null){r(e),l()},get children(){return a()},set children(e){a(e),l()},get class(){return n()},set class(e){n(e),l()},$set:p,$on:(e,d)=>g(s,e,d)},t=N();A(t,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(t);return S(m,a),v(t),k(t,e=>r(e),()=>r()),x(c,t),w(f)}export{P as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./
|
|
1
|
+
import{d as s}from"./D9yIi5KK.js";import{a as t}from"./BdWqymET.js";import{cR as i}from"./Dqi9bJNf.js";import{I_ as a}from"./qD_x_a7m.js";import{setLinkActionMenuLinkedWorkspaces as n}from"./B3bYRRle.js";const c=new t("LinkActionMenuLinkedWorkspaces");async function u(r,e){if(i.select(a.state)?.capabilities.prWorkspaceLookup===1)try{const o=await s.workspaces.findByPullRequest(e);n(r,o)}catch(o){c.debug("PR workspace lookup failed",{url:e,error:o})}}export{u as loadLinkActionMenuLinkedWorkspaces};
|
|
@@ -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"./
|
|
1
|
+
import{t as pt,bo as S,bw as bt,bq as Pt,b as Ct,bm as vt,bs as h}from"./CDNiWmce.js";import{bs as kt,ca as L,aD as n,c9 as i,a7 as E,ay as _,W as w,bn as $t,bS as yt,aA as B,aB as St}from"./CJxGDkBm.js";import{i as J}from"./DEHoDrdd.js";import{k as _t}from"./CXEzZ2hR.js";import{c as wt}from"./DrLx8OXO.js";import{t as Bt}from"./D2MmXC4A.js";import{I_ as u,eB as It,eC as Wt,Jy as Dt,JN as Tt,JD as Ut,vf as Rt,og as V}from"./qD_x_a7m.js";import{g as At}from"./BrMXrCxP.js";import{bL as Ft,bN as Ht,dD as Nt}from"./Dqi9bJNf.js";import{C as f}from"./DypB-Dwi.js";import"./CKwXUgM5.js";import"./J1LWsTd9.js";import"./CThSE8LQ.js";import{bf as Mt}from"./DcR44gq9.js";import"./8VBKAONs.js";/* empty css */import{T as xt}from"./55cMcX02.js";import"./DFNql_nS.js";import{M as qt}from"./BMXpCN2Z.js";import{V as Lt}from"./gHustHEr.js";import{O as Et}from"./BWxyJyKV.js";import{bT as Jt,bN as Vt,b8 as Kt}from"./CYKcOC1a.js";import{i as Ot}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function jt(I,p){if(new.target)return pt({component:jt,...I});kt(p,!0);const W=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),K=()=>h(Z,"$ftCommits$",l),D=()=>h(Q,"$foldUnchanged",l),T=()=>h(z,"$lineWrapping",l),U=()=>h(X,"$diffSideBySide",l),[l,O]=Pt(),G=t=>{Lt(t,{embedded:!0,get foldEnabled(){return D()},onToggleFold:()=>u.dispatch(Ut()),get wrapEnabled(){return T()},onToggleWrap:()=>u.dispatch(Tt()),get splitEnabled(){return U()},onToggleSplit:()=>u.dispatch(Dt())})},j=t=>{var e=Gt(),r=_(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>qt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:zt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};J(s,m=>{n(k)&&m(d)})}w(t,e)},z=Jt(),Q=Vt(),X=Kt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),R=At(),et=Nt(C),nt=i(()=>W()?.worktreePath||W()?.repositoryPath||void 0);L(()=>{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),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),k=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(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 H(t){return!t||n(c)?null:P().find(e=>F(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(!F(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 K())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 N=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(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),M=i(()=>a().data?.branchBaseRef),x=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(x))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(N))return n(N);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(Rt(o(),r))}L(()=>{!R||!b()||R.registerActions({display:G,actions:j})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(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)},q=E(),mt=_(q);{var lt=t=>{var e=E(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>U()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);xt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return D()},get lineWrapping(){return T()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(x)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};J(mt,t=>{a().diffPath&&t(lt)})}w(I,q);var gt=$t(ct);return O(),gt}export{jt as default};
|