@intent-hq/web 2.280.0 → 2.280.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/{CqWjEg_w.js → -CwTNgWz.js} +1 -1
- package/web/app/immutable/chunks/{gb654U7I.js → 2jlj3Ler.js} +1 -1
- package/web/app/immutable/chunks/{N6QJHIhO.js → 3jOBMSa2.js} +1 -1
- package/web/app/immutable/chunks/{C90yTaYt.js → 4_muao6M.js} +1 -1
- package/web/app/immutable/chunks/{DXBMViP_.js → 68rxuoyq.js} +1 -1
- package/web/app/immutable/chunks/{hkbK0uGm.js → 6WgKbzWn.js} +1 -1
- package/web/app/immutable/chunks/{C7i9B-ha.js → 9hy801AX.js} +1 -1
- package/web/app/immutable/chunks/{DnhUO3WC.js → A03aFnAi.js} +1 -1
- package/web/app/immutable/chunks/{DY3OgpfJ.js → A9wPt9W8.js} +1 -1
- package/web/app/immutable/chunks/{CSWj16FD.js → AxG32tEq.js} +1 -1
- package/web/app/immutable/chunks/{BvY26mms.js → B2K72oo5.js} +1 -1
- package/web/app/immutable/chunks/{ZEBhSR5D.js → B45awpwY.js} +6 -6
- package/web/app/immutable/chunks/{DuEMgIMk.js → B4FELDN8.js} +1 -1
- package/web/app/immutable/chunks/{CcncgTgR.js → B4m64te4.js} +1 -1
- package/web/app/immutable/chunks/{DYYnXH8M.js → B6ZTfeOu.js} +2 -2
- package/web/app/immutable/chunks/{BjT2fyp4.js → B898Thex.js} +1 -1
- package/web/app/immutable/chunks/{B3HWhL7f.js → BAKCy1ct.js} +1 -1
- package/web/app/immutable/chunks/{CEwq2icc.js → BBzV6xv4.js} +1 -1
- package/web/app/immutable/chunks/{T2cz-xly.js → BDjsvDcb.js} +2 -2
- package/web/app/immutable/chunks/{NPEQPSOM.js → BEl--qal.js} +1 -1
- package/web/app/immutable/chunks/{BhWpP6Em.js → BFT1DBam.js} +1 -1
- package/web/app/immutable/chunks/{URngKIcX.js → BHgv1zSY.js} +1 -1
- package/web/app/immutable/chunks/{CTzUuaPY.js → BLSSZOMv.js} +1 -1
- package/web/app/immutable/chunks/{DKzibOTp.js → BP9ZIbzc.js} +1 -1
- package/web/app/immutable/chunks/{8a4VhuXU.js → BPNaYp5g.js} +1 -1
- package/web/app/immutable/chunks/{nBH4tfK0.js → BPQzmBfs.js} +1 -1
- package/web/app/immutable/chunks/{CAwhk8oQ.js → BPSTu_LB.js} +1 -1
- package/web/app/immutable/chunks/{DfgY-kiD.js → BPU_rzFz.js} +1 -1
- package/web/app/immutable/chunks/{B4LsznIm.js → BQ-dHdWP.js} +1 -1
- package/web/app/immutable/chunks/{CJ-1Nicc.js → BQHODbmu.js} +1 -1
- package/web/app/immutable/chunks/BT84ap5K.js +1 -0
- package/web/app/immutable/chunks/{BMMv1dT9.js → BTM_WGL_.js} +1 -1
- package/web/app/immutable/chunks/{DoyPrFXR.js → BU0pqKbR.js} +1 -1
- package/web/app/immutable/chunks/{DfNuJ6oL.js → BVKhCVH9.js} +1 -1
- package/web/app/immutable/chunks/{YHdlsWct.js → BVXynvnn.js} +1 -1
- package/web/app/immutable/chunks/{B_NbPKl3.js → BW-plizF.js} +1 -1
- package/web/app/immutable/chunks/{CtJg7u1A.js → BW8TPfRW.js} +3 -3
- package/web/app/immutable/chunks/{Dm0QgRo-.js → BXciywVo.js} +1 -1
- package/web/app/immutable/chunks/{eQM-IxZX.js → BY0FrRuN.js} +5 -5
- package/web/app/immutable/chunks/{DOrHUF0y.js → BYkwlyOx.js} +1 -1
- package/web/app/immutable/chunks/BZ8IpxwP.js +1 -0
- package/web/app/immutable/chunks/{DAtbkiMc.js → BZLCAaA0.js} +1 -1
- package/web/app/immutable/chunks/{C93vPsHK.js → BZux1no-.js} +1 -1
- package/web/app/immutable/chunks/{3riJ9IqO.js → B_b2DFb_.js} +1 -1
- package/web/app/immutable/chunks/{CDYpj3Wv.js → B_gYec_y.js} +1 -1
- package/web/app/immutable/chunks/{BkBahiMY.js → Baw2yANm.js} +1 -1
- package/web/app/immutable/chunks/{DKp6jlON.js → Bbx7keP6.js} +1 -1
- package/web/app/immutable/chunks/{DZLfTd9v.js → Bc1u6HH9.js} +1 -1
- package/web/app/immutable/chunks/{BwKTpHLe.js → BceFI8C_.js} +1 -1
- package/web/app/immutable/chunks/{Bx952p7Q.js → BfwUFrB0.js} +1 -1
- package/web/app/immutable/chunks/{DLqv0Ikg.js → BgNO_1M2.js} +1 -1
- package/web/app/immutable/chunks/{BPNyirUe.js → BguE5B0x.js} +1 -1
- package/web/app/immutable/chunks/{B_eTXuFT.js → BhDJcXuT.js} +1 -1
- package/web/app/immutable/chunks/{DvaVsSuU.js → BjBETkWC.js} +1 -1
- package/web/app/immutable/chunks/{stotUVND.js → Bl0HJ17r.js} +3 -3
- package/web/app/immutable/chunks/{BLUcjUGa.js → Bm52rc6Y.js} +1 -1
- package/web/app/immutable/chunks/{N7fhICzs.js → Bmb9f-vS.js} +1 -1
- package/web/app/immutable/chunks/{DkJZ6qt_.js → BmdFGxql.js} +1 -1
- package/web/app/immutable/chunks/{B4VMxRrC.js → BmyBU_d0.js} +1 -1
- package/web/app/immutable/chunks/{clVAYYi3.js → BoGQvi6r.js} +1 -1
- package/web/app/immutable/chunks/{DkOgrmDO.js → BoqFUVbe.js} +1 -1
- package/web/app/immutable/chunks/{CQWH6H5Q.js → BrW2Z0Ue.js} +1 -1
- package/web/app/immutable/chunks/{9nkBC1Gf.js → BtNv1rB8.js} +1 -1
- package/web/app/immutable/chunks/{xYBj3dw3.js → Bu2f_xik.js} +1 -1
- package/web/app/immutable/chunks/{BP0nvB-r.js → BvugS_th.js} +1 -1
- package/web/app/immutable/chunks/{y8oZX4sf.js → BxG24Fz6.js} +1 -1
- package/web/app/immutable/chunks/{Dvrl4uc9.js → BzSqqrdV.js} +1 -1
- package/web/app/immutable/chunks/{UQoGZ5qq.js → C-3IOyFr.js} +1 -1
- package/web/app/immutable/chunks/{B__WlfRy.js → C-YIgYgI.js} +3 -3
- package/web/app/immutable/chunks/{N6Oy5HNi.js → C1A6QIyB.js} +1 -1
- package/web/app/immutable/chunks/{BZSrLoH0.js → C1F9VBVR.js} +1 -1
- package/web/app/immutable/chunks/{CQB9d6Yf.js → C3uzPV7c.js} +1 -1
- package/web/app/immutable/chunks/{BlWy-Yyj.js → C7uEROnA.js} +3 -3
- package/web/app/immutable/chunks/C82p3eaN.js +410 -0
- package/web/app/immutable/chunks/{CqMqlLWW.js → C87twKUp.js} +1 -1
- package/web/app/immutable/chunks/{Dz9B-9IH.js → C8BD21JK.js} +1 -1
- package/web/app/immutable/chunks/{CdjxL29Q.js → C8Ri7767.js} +1 -1
- package/web/app/immutable/chunks/{nSxzXlBd.js → CAvR_m9C.js} +1 -1
- package/web/app/immutable/chunks/{BC5uKK7w.js → CBGnfmpX.js} +1 -1
- package/web/app/immutable/chunks/{vpnNwaI3.js → CBQ-NG4P.js} +1 -1
- package/web/app/immutable/chunks/{DXT5rgnn.js → CBWj5Yn9.js} +1 -1
- package/web/app/immutable/chunks/{BVt6P2Dk.js → CE_2ADe7.js} +1 -1
- package/web/app/immutable/chunks/{CMAGQJUI.js → CH6MdBMX.js} +1 -1
- package/web/app/immutable/chunks/{C-WnhoQ3.js → CJ17D0UC.js} +1 -1
- package/web/app/immutable/chunks/{DERVpCl4.js → CLst9ImY.js} +1 -1
- package/web/app/immutable/chunks/CN6Xgdqp.js +1 -0
- package/web/app/immutable/chunks/{eQHw-9b6.js → COGdwXWC.js} +2 -2
- package/web/app/immutable/chunks/{B7f90q4s.js → CPRrGZdb.js} +1 -1
- package/web/app/immutable/chunks/{BndTIIgb.js → CRK47dBR.js} +1 -1
- package/web/app/immutable/chunks/{CJ0FjS97.js → CSZ4_RTQ.js} +2 -2
- package/web/app/immutable/chunks/{CongIN9X.js → CS_zvIHS.js} +1 -1
- package/web/app/immutable/chunks/{Te3M5bc7.js → CVgZfK3-.js} +1 -1
- package/web/app/immutable/chunks/{Cz4cjwfL.js → CX9zash3.js} +1 -1
- package/web/app/immutable/chunks/{uA-GSod5.js → CYmzMH2T.js} +1 -1
- package/web/app/immutable/chunks/{CeNnTXT3.js → C_FFOKOn.js} +1 -1
- package/web/app/immutable/chunks/{D0X3JVqD.js → CcMBhJ58.js} +1 -1
- package/web/app/immutable/chunks/{Bp5ygEp6.js → CdJoXoLx.js} +1 -1
- package/web/app/immutable/chunks/{6mfqT9F0.js → CeCzBIMM.js} +1 -1
- package/web/app/immutable/chunks/{BAw6o6lJ.js → CfBY2vbK.js} +1 -1
- package/web/app/immutable/chunks/{DGsBebnq.js → CfBpHiou.js} +1 -1
- package/web/app/immutable/chunks/{rrF5Hl_J.js → CgGQ3Slz.js} +1 -1
- package/web/app/immutable/chunks/{BUxfGI8Z.js → ChBxJ_T2.js} +1 -1
- package/web/app/immutable/chunks/{Df1cVjK1.js → CiShviCo.js} +4 -4
- package/web/app/immutable/chunks/{BGVlzHwy.js → CkFE8VfK.js} +1 -1
- package/web/app/immutable/chunks/{Q2u3rFY1.js → ClR-TTMN.js} +2 -2
- package/web/app/immutable/chunks/{Yip29sR2.js → Cmf1A7_B.js} +1 -1
- package/web/app/immutable/chunks/{CEIySDvB.js → Cmr6Xpw3.js} +1 -1
- package/web/app/immutable/chunks/{BvP_3Sy4.js → Cmzu4CqY.js} +1 -1
- package/web/app/immutable/chunks/{CS36kkvG.js → Com4THH3.js} +1 -1
- package/web/app/immutable/chunks/{UFzyo4ne.js → CqF12LNt.js} +1 -1
- package/web/app/immutable/chunks/{B6Rs6hHm.js → Cql2yasp.js} +1 -1
- package/web/app/immutable/chunks/{t7BMdiLm.js → Cr_gbuBh.js} +1 -1
- package/web/app/immutable/chunks/{BJfxejEG.js → CrarsPv2.js} +1 -1
- package/web/app/immutable/chunks/{CDSYYpwa.js → CriyUZJv.js} +1 -1
- package/web/app/immutable/chunks/{CwSIKtqo.js → CszhQy-T.js} +1 -1
- package/web/app/immutable/chunks/{mklnjf4_.js → CtfKkjtt.js} +1 -1
- package/web/app/immutable/chunks/{C33zLAon.js → CwW1BUBB.js} +1 -1
- package/web/app/immutable/chunks/{BkVUImC4.js → D5SukII7.js} +1 -1
- package/web/app/immutable/chunks/{w-RLNdGr.js → D5nEFEMU.js} +1 -1
- package/web/app/immutable/chunks/{C1r_dvAi.js → D8KNd2JX.js} +1 -1
- package/web/app/immutable/chunks/{D5DS8MOZ.js → DACKa6C3.js} +1 -1
- package/web/app/immutable/chunks/{oLkbmMHL.js → DB_7wrc7.js} +1 -1
- package/web/app/immutable/chunks/{lF96b5e4.js → DBct6Vvn.js} +1 -1
- package/web/app/immutable/chunks/{CJGDfIog.js → DC6J5sZ-.js} +1 -1
- package/web/app/immutable/chunks/DCU5S8Gd.js +1 -0
- package/web/app/immutable/chunks/{DiXg0x-W.js → DD57Mp8Z.js} +1 -1
- package/web/app/immutable/chunks/{D3jilL3b.js → DDK55OAB.js} +1 -1
- package/web/app/immutable/chunks/{Jw-22-gH.js → DFKo1ZAJ.js} +1 -1
- package/web/app/immutable/chunks/{HoeZnZ3h.js → DFxsImeG.js} +1 -1
- package/web/app/immutable/chunks/{CbO_toqh.js → DFz-Vr9a.js} +1 -1
- package/web/app/immutable/chunks/{EzR2MUkx.js → DGC3jX9C.js} +3 -3
- package/web/app/immutable/chunks/{CB2itZPT.js → DGrFhzHu.js} +2 -2
- package/web/app/immutable/chunks/{Bq0kEo6t.js → DGsKwFeF.js} +1 -1
- package/web/app/immutable/chunks/{DH71XKkM.js → DHM3GVKY.js} +1 -1
- package/web/app/immutable/chunks/{LK9i1Fgb.js → DHMcsnK1.js} +1 -1
- package/web/app/immutable/chunks/{C9fQIDg9.js → DHt5Qx-W.js} +1 -1
- package/web/app/immutable/chunks/{bTkQsu94.js → DIGRq3Np.js} +1 -1
- package/web/app/immutable/chunks/{Cr8O6b9X.js → DJxE8cOI.js} +4 -4
- package/web/app/immutable/chunks/{DTULcguA.js → DM3bYLxj.js} +1 -1
- package/web/app/immutable/chunks/{C19ZZHpm.js → DOqOxnjD.js} +1 -1
- package/web/app/immutable/chunks/{CtxR6yc7.js → DOsLfX1h.js} +3 -3
- package/web/app/immutable/chunks/{DeqDTWfs.js → DPMpx6lS.js} +1 -1
- package/web/app/immutable/chunks/{Cp73wfaC.js → DPsGF2i5.js} +1 -1
- package/web/app/immutable/chunks/{6Ys1q35u.js → DS_3tw6q.js} +1 -1
- package/web/app/immutable/chunks/{DjeJHedD.js → DSvMjM09.js} +1 -1
- package/web/app/immutable/chunks/{B3-959pn.js → DTOf9l3E.js} +1 -1
- package/web/app/immutable/chunks/{Dukd5fsq.js → DTd1YpaC.js} +1 -1
- package/web/app/immutable/chunks/{BVb5pfaA.js → DTpHCyDe.js} +1 -1
- package/web/app/immutable/chunks/{C8n2AuxQ.js → DUOglMHy.js} +1 -1
- package/web/app/immutable/chunks/{BH9ttt95.js → DVh97JfW.js} +1 -1
- package/web/app/immutable/chunks/{DI5BNHva.js → DVqZmj-R.js} +1 -1
- package/web/app/immutable/chunks/{CbKxMrMY.js → D_qXZ-ka.js} +3 -3
- package/web/app/immutable/chunks/{CgDKiC6v.js → Dayd4Wgp.js} +2 -2
- package/web/app/immutable/chunks/{ElkcFG4d.js → De0AF9gl.js} +1 -1
- package/web/app/immutable/chunks/{BXrUMWsR.js → DePQKdPz.js} +1 -1
- package/web/app/immutable/chunks/{DACPyPs7.js → DgFsji4g.js} +1 -1
- package/web/app/immutable/chunks/{D1Ntri6z.js → Di6uZPiF.js} +1 -1
- package/web/app/immutable/chunks/{IJ5h6xZ4.js → DkNxxzmT.js} +1 -1
- package/web/app/immutable/chunks/{Dzimjbdi.js → DkxKadFP.js} +1 -1
- package/web/app/immutable/chunks/{BANaLpH3.js → DnE5aVuv.js} +1 -1
- package/web/app/immutable/chunks/{BuN1aIUI.js → DnEM5LKJ.js} +1 -1
- package/web/app/immutable/chunks/{CiLfhM-B.js → Do7HQr7r.js} +2 -2
- package/web/app/immutable/chunks/{C-uox8N9.js → DpQUJ1uI.js} +1 -1
- package/web/app/immutable/chunks/{Cnhc2tSL.js → Dp_sBH9q.js} +1 -1
- package/web/app/immutable/chunks/{B3vK-R-o.js → DrooRzRX.js} +1 -1
- package/web/app/immutable/chunks/{Dm2prBtG.js → Ds0y9W2N.js} +1 -1
- package/web/app/immutable/chunks/{D6EF8Ce7.js → Ds641dV5.js} +1 -1
- package/web/app/immutable/chunks/{waekWt8I.js → DsB3GaMq.js} +1 -1
- package/web/app/immutable/chunks/{CpA81uUD.js → DuJ8M51r.js} +1 -1
- package/web/app/immutable/chunks/{CMlYEClg.js → Duy6Dp7J.js} +1 -1
- package/web/app/immutable/chunks/{BNa1xVO7.js → Dwp3N9DW.js} +1 -1
- package/web/app/immutable/chunks/{Aq_hvPuk.js → DxrVr4Z-.js} +1 -1
- package/web/app/immutable/chunks/{DtDJkmRR.js → DzBqr5Ds.js} +1 -1
- package/web/app/immutable/chunks/{UEOyoIDp.js → DzTcsuyr.js} +1 -1
- package/web/app/immutable/chunks/{BUkZ_wc0.js → EYJa5XI2.js} +1 -1
- package/web/app/immutable/chunks/{DQ1jf8rv.js → F78VMou9.js} +2 -2
- package/web/app/immutable/chunks/{CGZwKPOh.js → GHkZED_H.js} +1 -1
- package/web/app/immutable/chunks/{FJwDbpvw.js → H0GxNKO6.js} +1 -1
- package/web/app/immutable/chunks/{6PSZ6lUf.js → HnBTNAMz.js} +1 -1
- package/web/app/immutable/chunks/{e95iwXST.js → IsiJ9INb.js} +1 -1
- package/web/app/immutable/chunks/{CBOwO-Mt.js → Jp68-Q2x.js} +1 -1
- package/web/app/immutable/chunks/{s9eau3Xa.js → Jy9V3N_7.js} +1 -1
- package/web/app/immutable/chunks/{DenIsJVL.js → K0azdCX9.js} +1 -1
- package/web/app/immutable/chunks/{BM_-VfIm.js → Kk07D7VE.js} +1 -1
- package/web/app/immutable/chunks/{DMWrQCj4.js → LXk8sd0A.js} +1 -1
- package/web/app/immutable/chunks/{D6xwyO9X.js → Lr6hvseQ.js} +1 -1
- package/web/app/immutable/chunks/{CE4Q63si.js → MQaqCR4A.js} +1 -1
- package/web/app/immutable/chunks/{DYk_WT-b.js → Njxs8gUf.js} +1 -1
- package/web/app/immutable/chunks/{BzC1GMNV.js → OiX-SxC_.js} +1 -1
- package/web/app/immutable/chunks/{A0CZ88DG.js → OwL7thrT.js} +1 -1
- package/web/app/immutable/chunks/{BxMZftIo.js → PWYpp4hZ.js} +1 -1
- package/web/app/immutable/chunks/{fxbWd_e1.js → UJwgGUj4.js} +1 -1
- package/web/app/immutable/chunks/{qMMt4K52.js → UgfAVREY.js} +1 -1
- package/web/app/immutable/chunks/{Cv5hE_ED.js → XUEHMX7O.js} +1 -1
- package/web/app/immutable/chunks/{BLPQXyX_.js → Z6bOeoYv.js} +1 -1
- package/web/app/immutable/chunks/{D51GwsQ1.js → ZOO6Vfpu.js} +1 -1
- package/web/app/immutable/chunks/{BI00pPJ1.js → a8E6fbkW.js} +1 -1
- package/web/app/immutable/chunks/{UOvnclhB.js → aZQ0-tdp.js} +4 -4
- package/web/app/immutable/chunks/{DtIgh-Wb.js → bxUMV0oT.js} +1 -1
- package/web/app/immutable/chunks/{BQM-54by.js → c3Abb5qo.js} +1 -1
- package/web/app/immutable/chunks/{BsLu-N-o.js → cOSCr41c.js} +1 -1
- package/web/app/immutable/chunks/{B05_pVBL.js → caVSTeyS.js} +1 -1
- package/web/app/immutable/chunks/{CKaz-nQX.js → cfpFgXT5.js} +1 -1
- package/web/app/immutable/chunks/{D8hmEpbp.js → e0v3-ZIG.js} +1 -1
- package/web/app/immutable/chunks/{CVma05vh.js → i9DY-0TX.js} +1 -1
- package/web/app/immutable/chunks/{4c21rJgy.js → kSHx_2s_.js} +1 -1
- package/web/app/immutable/chunks/{Dqugp38s.js → qasXuzlR.js} +1 -1
- package/web/app/immutable/chunks/{Dcg7SWi9.js → qj5yCt7h.js} +1 -1
- package/web/app/immutable/chunks/{Ci0AQ6w8.js → qkfs_BCa.js} +1 -1
- package/web/app/immutable/chunks/{C6HFp_sK.js → qqmEa9H6.js} +1 -1
- package/web/app/immutable/chunks/{BrgQitGU.js → sSa7Wn7K.js} +1 -1
- package/web/app/immutable/chunks/{D5DbIKBx.js → sXvRCqUb.js} +1 -1
- package/web/app/immutable/chunks/{BjM2Qc64.js → tdATXSHH.js} +1 -1
- package/web/app/immutable/chunks/{CR9OjoGG.js → tuQscXjh.js} +1 -1
- package/web/app/immutable/chunks/{DWTk7BzJ.js → uYOEUrhQ.js} +1 -1
- package/web/app/immutable/chunks/{DnQbQ1Ee.js → vJt7gt7x.js} +7 -7
- package/web/app/immutable/chunks/{CkoWrmIy.js → y3HzT_To.js} +1 -1
- package/web/app/immutable/chunks/{DrDKCvwv.js → yL59xdGf.js} +1 -1
- package/web/app/immutable/chunks/{CZvE7cU6.js → yvuwpbPL.js} +1 -1
- package/web/app/immutable/chunks/{BAR8yUHQ.js → zd6Cuy6l.js} +1 -1
- package/web/app/immutable/entry/app.DY99f_Ty.js +4 -0
- package/web/app/immutable/entry/start.BcYitP96.js +1 -0
- package/web/app/immutable/nodes/{0.BoxQzHDp.js → 0.C4LmvMoM.js} +1 -1
- package/web/app/immutable/nodes/{1.DU9opyfh.js → 1.BYE5bJSa.js} +1 -1
- package/web/app/immutable/nodes/{10.eExevNYJ.js → 10.BrKhL_G6.js} +1 -1
- package/web/app/immutable/nodes/{12.DyoMTbCQ.js → 12.BGqWnph6.js} +1 -1
- package/web/app/immutable/nodes/{13.C0iYfqVI.js → 13.vfNjr05l.js} +1 -1
- package/web/app/immutable/nodes/{14.KEg9Fqc4.js → 14.U6Ne_Zng.js} +1 -1
- package/web/app/immutable/nodes/{15.F8zDHy08.js → 15.DHcLeO2-.js} +1 -1
- package/web/app/immutable/nodes/{16.dAZs6dYD.js → 16.Brkz5pXG.js} +2 -2
- package/web/app/immutable/nodes/{2.BrvzcNmI.js → 2.BsPWX-pi.js} +4 -4
- package/web/app/immutable/nodes/{3.ByPIR3CM.js → 3.CYtb_dsh.js} +1 -1
- package/web/app/immutable/nodes/{4.JEfjf0UF.js → 4.DWQJjc9i.js} +1 -1
- package/web/app/immutable/nodes/{5.BUymCG_x.js → 5.BrUyXV_u.js} +1 -1
- package/web/app/immutable/nodes/{6.Btna6Yhq.js → 6.CA6jFqpu.js} +1 -1
- package/web/app/immutable/nodes/{7.BHmutzAv.js → 7.BYZ_h1_W.js} +1 -1
- package/web/app/immutable/nodes/{8.Ctc8SBWw.js → 8.ie9sNdo3.js} +4 -4
- package/web/app/immutable/nodes/{9.Cwg6B2vl.js → 9.nBlKsA0T.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +11 -10
- package/web/app/immutable/chunks/BH6SkDfK.js +0 -1
- package/web/app/immutable/chunks/CmlEVTR3.js +0 -410
- package/web/app/immutable/chunks/DK5QZ1vP.js +0 -1
- package/web/app/immutable/chunks/DW3Zf5Ax.js +0 -1
- package/web/app/immutable/entry/app.b6gE4ET2.js +0 -4
- package/web/app/immutable/entry/start.BoRhInyV.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var ae=Object.defineProperty;var ne=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ne(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./DN3mapzL.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./CbVPen4y.js";import{bo as n,_ as le}from"./GWL2EpD7.js";import{G0 as a,mu as y,mt as b,k$ as de,w7 as E,w8 as N,w5 as ue,w6 as pe,q0 as Y,vU as fe,FO as he,a2 as ge,bR as me,bQ as ve,c3 as be,c2 as Se,mw as _}from"./C2YltVuJ.js";import{cr as we,bs as ye,c4 as _e,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as K,av as Te,bO as Ie,cH as Ae}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DTOf9l3E.js","/app/immutable/chunks/C8BD21JK.js","/app/immutable/chunks/GWL2EpD7.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/CYiv-51w.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Dayd4Wgp.js","/app/immutable/chunks/vOveF3fP.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/DJCBi8x9.js","/app/immutable/chunks/BeYie-c5.js","/app/immutable/chunks/CsjyI82U.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/bocWuth7.js","/app/immutable/chunks/QjTmIbp0.js","/app/immutable/chunks/C2YltVuJ.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BM7uH7Bn.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ae=Object.defineProperty;var ne=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ne(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./DN3mapzL.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./CbVPen4y.js";import{bo as n,_ as le}from"./GWL2EpD7.js";import{G0 as a,mu as y,mt as b,k$ as de,w7 as E,w8 as N,w5 as ue,w6 as pe,q0 as Y,vU as fe,FO as he,a2 as ge,bR as me,bQ as ve,c3 as be,c2 as Se,mw as _}from"./C2YltVuJ.js";import{cr as we,bs as ye,c4 as _e,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as K,av as Te,bO as Ie,cH as Ae}from"./6WgKbzWn.js";import{n as Pe}from"./COGdwXWC.js";import{ak as Me,F as Q,j as De,G as Oe,bv as xe,c as Fe,al as Ne,bg as W,_ as Le,aB as Ue,q as $,K as Ve,ag as We,bl as He,J as Be,H as qe,I as je,bj as Ge}from"./DkNxxzmT.js";import{r as ze}from"./C6YXNiX1.js";const O=V("Clipboard");async function yr(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,O.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw O.error("Browser clipboard write failed",r,{electronError:t}),r}throw O.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ye=a.createSelector(e=>e.githubAuth.mutationRequestId),Ke=a.createSelector(e=>e.githubAuth.callbacksCancelled),Qe=a.createSelector(e=>e.githubAuth.isDisconnecting),Z=a.createSelector(e=>e.githubAuth.isAuthenticated),$e=a.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=a.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=a.createSelector(e=>e.githubAuth.user),Xe=a.createSelector(e=>e.githubAuth.isAuthenticating),et=a.createSelector(e=>e.githubAuth.deviceFlow),tt=a.createSelector(e=>e.githubAuth.error),_r=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Ke,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Qe,selectGitHubAuthMutationRequestId:Ye,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function kr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_repoPathRequired_error(),suggestion:n.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?at(s):nt(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function at(e){return it(e)?{valid:!0,warning:n.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:n.workspace_validation_invalidGithubUrl_error(),suggestion:n.workspace_validation_invalidGithubUrl_suggestion()}}async function nt(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:n.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:n.workspace_validation_pathNotAbsolute_error(),suggestion:n.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:n.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:n.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:n.workspace_validation_notDirectory_error(),suggestion:n.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?n.workspace_repoSelector_notGitRepository_label():n.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:n.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:n.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Er(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchPrefixInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:n.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:n.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:n.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Rr(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Cr(e){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchNameInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:n.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:n.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchNameLock_error()}:{valid:!0}}function Tr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:n.workspace_validation_promptTooLong_error(),suggestion:n.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Ir(e){const t=e.toLowerCase();return t.includes("maxbuffer")?n.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?n.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?n.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?n.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?n.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?n.workspace_gitError_cloneAuth():n.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?n.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?n.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_readPermission():e:t.includes("permission denied")?n.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?n.workspace_gitError_notFound():t.includes("already exists")?n.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?n.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:n.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?n.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?n.workspace_gitError_diskSpace():e}const v=[{id:"spec-writer",role:"orchestrator",teamAgents:["implementor","verifier"],icon:"coordinator",get name(){return n.specialists_builtin_coordinator_name()},get description(){return n.specialists_builtin_coordinator_description()},defaultBehaviorPrompt:`## Coordinator
|
|
3
3
|
|
|
4
4
|
You plan, delegate, and verify. You do NOT implement code yourself. You NEVER edit files directly.
|
|
5
5
|
**You have no file editing tools available. Delegation to implementor agents is the ONLY way code gets written.**
|
|
@@ -531,4 +531,4 @@ Show referenced workspaces as live fenced \`workspace\` blocks with one returned
|
|
|
531
531
|
|
|
532
532
|
For cross-workspace agents, use attributed send for one-way requests, ask when an answer is requested, and waitFor for completion watches. After ask or waitFor, end the turn; do not poll or treat interim messages as completion. On the completion wake, read the specified agent's conversation once and relay its last assistant message with a nonempty message ID. Link that reply as [Workspace Title](intent://local/{workspaceId}/agent/{agentId}/message/{messageId}), taking all IDs and the title from the conversation read, never the outgoing request or a user message. This exact-message source link is the exception to workspace cards. Omit the link if no assistant message ID exists; report missing or failed results honestly.
|
|
533
533
|
|
|
534
|
-
Keep ordinary recommendations to supported features ready for users. Discuss an experiment honestly and label its status only when explicitly asked or when the user is developing or testing it.`,roleReminder:"You are the built-in Assistant. Help with app tasks using ws.app.* and current app guidance. Keep changes reviewable through proposal or confirmation cards, with cards last. Show workspaces as live cards; never use a workspace ID slug as a label. Use the discovered canonical route including its hash fragment. End the turn after registering an agent completion watch; on completion, link the returned assistant reply using its exact message ID."}],J=new Set(["pr-reviewer"]),Ar="developer";function Pr(e){return v.find(t=>t.id===e)}function u(e){return e??""}function ot(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function G(e,t,r){if(e.source!=="user"||!r?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const s=t.find(i=>i.id===e.id)??v.find(i=>i.id===e.id);return s?u(e.name)===u(s.name)&&u(e.description)===u(s.description)&&u(e.behaviorPrompt)===u(s.defaultBehaviorPrompt)&&u(e.roleReminder)===u(s.roleReminder)&&u(e.reasoningEffort)===u(s.reasoningEffort)&&ot(e.modelOptions,s.modelOptions):!1}const Mr=a.createSelector(e=>e.specialists.bundledSpecialists),ct=a.createSelector(e=>e.specialists.fileSpecialists),Dr=a.createSelector(e=>y(ct.select(e))),Or=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const xr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Fr=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Nr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Lr=a.createSelector(e=>e.specialists.specialistsFolderPath),Ur=a.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(J.has(t)&&!Z.select(e)));function lt(e,t){return t?e:e.filter(r=>!J.has(r.id))}function dt(e,t){return lt(e,t).filter(r=>!r.hidden)}function Vr(e,t){return dt(e,t).filter(r=>r.role!=="internal")}const m=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of v)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of v)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,h)=>{const S=l.has(c.id),M=l.has(h.id);return S&&M?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!M?-1:!S&&M?1:c.name.localeCompare(h.name)}),o}),Wr=a.createSelector(e=>{const t=m.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...v.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),ut=a.createSelector((e,t)=>{const r=b(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&y(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=v.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),Hr=a.createSelector((e,t)=>ut.select(e,t)?.name??null),Br=a.createSelector((e,t,r)=>{const i=m.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),qr=a.createSelector((e,t,r)=>m.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),jr=a.createSelector((e,t,r)=>m.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Gr=a.createSelector((e,t,r)=>{const i=m.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function R(e,t){return t.some(r=>r.id===e)||v.some(r=>r.id===e)}const zr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&R(t,e.specialists.bundledSpecialists)}return R(t,e.specialists.bundledSpecialists)}),Yr=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!b(e.specialists.fileSpecialists,t)),Kr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:R(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!R(t,e.specialists.bundledSpecialists))return!1;const i=b(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return b(e.specialists.fileSpecialists,t)}),Qr=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),$r=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=b(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),Zr=a.createSelector((e,t,r)=>{if(r){const i=m.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ye.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=b(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:pt.select(e,t)}),pt=a.createSelector((e,t)=>{const s=m.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Me.select(e)?Q.select(e):""}),Jr=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),Xr=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??de),es=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[]));function ft(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const ts=a.createSelector(e=>e.voiceSettings.isLoading),rs=a.createSelector(e=>e.voiceSettings.available),ss=a.createSelector(e=>e.voiceSettings.provider),is=a.createSelector(e=>e.voiceSettings.engine),as=a.createSelector(e=>e.voiceSettings.osEngineAvailable),ns=a.createSelector(e=>e.voiceSettings.keyConfigured),os=a.createSelector(e=>e.voiceSettings.vocabulary),cs=a.createSelector(e=>e.voiceSettings.openaiModel),ls=a.createSelector(e=>e.voiceSettings.language),ds=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),us=a.createSelector(e=>e.voiceSettings.inputDeviceId),ps=a.createSelector(e=>e.voiceSettings.inputDevices),fs=a.createSelector(e=>e.voiceSettings.busyProvider),hs=a.createSelector(e=>e.voiceSettings.error),gs=a.createSelector(e=>_e.select(e)?"unavailable":ft(e.voiceSettings)),L="intent.voice.inputDevice";let U;function ht(){if(U!==void 0)return U;try{const e=localStorage.getItem(L);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ms(e){U=e;try{e===null?localStorage.removeItem(L):localStorage.setItem(L,e)}catch{}}let C=null;function vs(e){C=e}function bs(){const e=C;return C=null,e}function gt(){C=null}const mt=300,vt=300;class bt{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??mt,this.doublePressWindowMs=t.doublePressWindowMs??vt,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let T=null;function Ss(e){T=e}function ws(){const e=T;return T=null,e}function St(){T=null}const wt=12e4,yt=["audio/webm;codecs=opus","audio/webm"];function ys(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function _t(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function kt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return yt.find(e=>MediaRecorder.isTypeSupported(e))}class Et{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??wt,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(_t(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=kt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Rt=300;function Ct(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Tt={stopReason:"manual",autoSend:!1};let p=null,g=null,w=0,k=null;const P=new bt({onRecordStart:()=>{k&&It(k)},onRecordStop:e=>{X(k,e)}});function _s(){return p!==null}function ks(){return p}function Es(e){k=e,w+=1,w===1&&P.keyDown()}function Rs(e){k=e,w!==0&&(w-=1,w===0&&P.keyUp())}function It(e){if(p!==null)return;St(),gt();const t=new Et({deviceId:ht(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(E()),i||P.reset(),r.durationMs<Rt){s.autoSend&&e.dispatch(N());return}e.dispatch(ue({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(E()),e.showHint(Ct(r)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(pe()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(E()),s&&e.dispatch(N())}})}function X(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(N());return}g=t,r.stop()}function Cs(){X(null,Tt)}function Ts(e){P.reset(),w=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(E()))}const At=V("HardwareConsoleVoiceSetupToast"),Pt="hardware-console-voice-setup";let F=null;function Mt(){return F||(F=le(()=>import("./B3-959pn.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.notify)),F}function Dt(){Pe("/settings?tab=connections#voice").catch(e=>{At.error("Failed to open voice settings from setup toast",e)})}function Ot(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>Dt()}}function Is(){Mt().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Pt,action:Ot()})})}const As=a.createSelector(e=>e.externalEditors.selectedAction),xt=a.createSelector(e=>e.externalEditors.editors),Ft=a.createSelector(e=>{const t=y(xt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),Ps=a.createSelector(e=>e.externalEditors.editorOrder??[]),Ms=a.createSelector(e=>e.externalEditors.loading),Ds=a.createSelector(e=>e.externalEditors.lastFetched),Nt=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Os=a.createSelector((e,t)=>{if(!(t?ke.select(e,t):Ee.select(e)))return[];const s=Nt.select(e);return Ft.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Lt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function xs(e,t,r){if(Y(e)){const s=t.find(i=>i.providerRef===e);return s?.remoteCompatible!==!1?null:s.remoteIncompatibility??{reason:"unknown",keys:[]}}return r?.[e]??null}function Fs(e,t){return e.reason==="account-folder"?n.chat_modelPicker_remoteAccountFolder_description({backend:t}):n.chat_modelPicker_remoteIncompatible_description()}const Ut=1440*60*1e3;function Ns(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>Ut?"stale":"fresh"}const Ls=new Set(["cli-missing","prerequisite-missing"]),Vt=new Set(["signed-out","auth-failed"]);function Wt(e){return Vt.has(e)}function Us(e,t){if(Y(t))return!1;const r=fe(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&Wt(s.status)}const Ht={macos:"macOS",linux:"Linux",windows:"Windows"},Bt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function I(e,t){const r=[e&&(Ht[e]??e),t&&(Bt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function qt(e){return e?.placement?.target==="remote"}function Vs(e,t){if(!e||!qt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=I(e.placement?.os,e.placement?.arch)??I(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||n.remoteAgent_location_unknownMachine(),platform:i,state:o}}function Ws(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||n.remoteAgent_location_unknownMachine(),platform:I(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Hs(e){const t=e.platform?n.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):n.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_unreachable_label()});case"revoked":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_revoked_label()});default:return t}}function Bs(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":null}const A="",jt=new Set(["connected","disconnected"]);function Gt(e){switch(e){case"unreachable":return n.remoteMachines_state_unreachable_label();case"revoked":return n.remoteMachines_state_revoked_label();case"update-required":return n.remoteMachines_state_updateRequired_label();default:return}}function B(e){return jt.has(e.state)}function zt({backendLabel:e,machines:t}){return[{id:A,label:e,platform:null,disabled:!1},...t.map(r=>{const s=I(r.platform?.os,r.platform?.arch);return B(r)?{id:r.id,label:r.name,platform:s,disabled:!1}:{id:r.id,label:r.name,platform:s,disabled:!0,reason:Gt(r.state)}})]}function Yt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(B)}function Kt(e,t){if(!e)return A;const r=t.find(s=>s.id===e);return r&&B(r)?r.id:A}function qs(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function js({groups:e,providerRef:t,model:r}){const s=l=>l.options.filter(c=>!c.disabled),i=e.find(l=>l.key===t),o=i?s(i):[];if(r){const l=he(r).modelId;if(o.some(c=>c.value===l))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const l of e){if(l.key==="default")continue;const c=s(l);if(c.length>0)return{providerId:l.key,modelId:c[0].value}}return null}const Qt=a.createSelector(e=>ze.select(e)&&e.remoteMachines?.supported===!0),q=a.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Gs=a.createSelector(e=>e.remoteMachines.localFingerprint),zs=a.createSelector(e=>e.remoteMachines.pending),Ys=a.createSelector(e=>e.remoteMachines.failures),Ks=a.createSelector(e=>e.remoteMachines.executorBackends??[]),$t=a.createSelector((e,t)=>{if(t===ge)return n.layout_daemonStatus_localConnection_label();const r=b(e.connections.connections,t);return r?De(r):t}),Zt=a.createSelector(e=>$t.select(e,e.connections.windowBackendId)),Qs=a.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),$s=a.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Lt({catalogProfiles:Ce.select(e,t),defaultRemoteIncompatibility:Re.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),Zs=a.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ee=a.createSelector(e=>Yt({remoteMachinesVisible:Qt.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:q.select(e)})),Js=a.createSelector(e=>ee.select(e)?zt({backendLabel:Zt.select(e),machines:q.select(e)}):[]),Xs=a.createSelector((e,t)=>ee.select(e)?Kt(t,q.select(e)):A);function ei(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let Jt=0;function Xt(e,t){const r=++Jt;return a.dispatch(ve(e,t,r)),r}function ti(e,t,r){a.dispatch(me(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(be({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:K.select(a.state)},{...s,intent:s?.intent??Xt(e,t)}))).status==="success"}finally{a.dispatch(Se(i,o))}}async function ri(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function si(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const er=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),ii=a.createSelector((e,t)=>er.select(e,t).some(r=>r.status==="pending")),ai=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=Te.select(e,t),o=Oe.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=xe(l),h=c?Fe(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:K.select(e),canWrite:!!s&&s.workspaceId===r&&!Ie.select(e,r)}});function tr(e,t,r=!1){return e!=="auggie"||t===!0||r}const ni=a.createSelector(e=>Ne.select(e)?null:W.select(e)),rr=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),oi=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),ci=a.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===rr.select(e)),re=a.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ae.select(e)),se=a.createSelector((e,t)=>{if(!t)return Q.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ue.select(e);const r=j.select(e,t),s=se.select(e,t),i=f.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||$(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),li=a.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:W.select(e);return re.select(e,t).filter(i=>tr(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),di=a.createSelector((e,t)=>t?ie.select(e,t):Ve.select(e)),ui=a.createSelector((e,t)=>m.select(e,t)),pi=a.createSelector((e,t)=>t?!!f.select(e,t):We.select(e)),fi=a.createSelector((e,t)=>{if(!t)return He.select(e);const r=f.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),hi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):Be.select(e)),gi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):qe.select(e)),mi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):je.select(e)),vi=a.createSelector((e,t,r)=>{if(!r)return Ge.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$(o,i?.readiness[o]?.authenticated))}),bi=a.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:W.select(e)),sr={},Si=a.createSelector(e=>e.providerSettings?.profiles?.status??sr),wi=a.createSelector(e=>e.directoryPicker.listing),yi=a.createSelector(e=>e.directoryPicker.loading),_i=a.createSelector(e=>e.directoryPicker.error),ki=a.createSelector(e=>e.directoryPicker.pathError),Ei=a.createSelector(e=>e.directoryPicker.createError),z={},ir=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Ri=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Ci=a.createSelector(e=>e.mcpSettings.loading),Ti=a.createSelector(e=>e.mcpSettings.error),Ii=a.createSelector(e=>e.mcpSettings.mutationError??null),Ai=a.createSelector(e=>e.mcpSettings.enabled),ar=a.createSelector(e=>e.mcpSettings.disabledServers),nr=a.createSelector(e=>e.mcpSettings.statusMap),or=a.createSelector(e=>e.mcpSettings.toolsMap),cr=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,_(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),lr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??z:z),Pi=a.createSelector((e,t)=>Object.keys(lr.select(e,t))),Mi=a.createSelector(e=>{const t=ir.select(e),r=nr.select(e),s=or.select(e),i=ar.select(e),o=cr.select(e);return t.map(l=>{const c=_(l)in i,h=s[_(l)]||[];let S=r[_(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[_(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Di=a.createSelector(e=>e.mcpSettings.lastImportedCount),Oi=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),xi=a.createSelector(e=>e.mcpSettings.advancedSaveError),Fi=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],dr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Ni=Object.fromEntries(dr.map(e=>[e.path,e.defaultValue]));export{di as $,Us as A,ys as B,ht as C,Ar as D,Ws as E,dr as F,J as G,js as H,Ns as I,Xt as J,it as K,si as L,Ls as M,ti as N,xs as O,Fs as P,ft as Q,Kt as R,v as S,Rr as T,ms as U,ii as V,er as W,ai as X,Mr as Y,Nr as Z,$t as _,Ni as a,nr as a$,se as a0,j as a1,li as a2,ie as a3,re as a4,gi as a5,mi as a6,hi as a7,vi as a8,bi as a9,tt as aA,Z as aB,Xe as aC,Qe as aD,Ye as aE,Ze as aF,Je as aG,Kr as aH,Nt as aI,Ft as aJ,Os as aK,Ms as aL,zr as aM,Yr as aN,Ds as aO,Gs as aP,xi as aQ,Oi as aR,ar as aS,Ai as aT,Ti as aU,cr as aV,Di as aW,Ci as aX,Ii as aY,ir as aZ,Mi as a_,pi as aa,fi as ab,ui as ac,Zt as ad,xr as ae,Zs as af,Ur as ag,Ei as ah,_i as ai,wi as aj,yi as ak,ki as al,Ps as am,Gr as an,Zr as ao,Br as ap,Xs as aq,gs as ar,Ks as as,qr as at,jr as au,Dr as av,Fr as aw,H as ax,Ke as ay,et as az,Fi as b,or as b0,As as b1,Wr as b2,Si as b3,Qs as b4,Ys as b5,zs as b6,q as b7,Qt as b8,$s as b9,ds as bA,f as bB,rr as bC,ci as bD,oi as bE,Pi as bF,Ri as bG,vs as bH,Ss as bI,Is as bJ,It as bK,Cs as bL,Cr as bM,Er as bN,Tr as bO,kr as bP,Ot as bQ,yr as bR,ni as ba,ut as bb,Xr as bc,es as bd,$r as be,Jr as bf,Hr as bg,Qr as bh,m as bi,Lr as bj,Js as bk,ee as bl,Or as bm,fs as bn,is as bo,us as bp,ps as bq,ns as br,ls as bs,cs as bt,as as bu,ss as bv,rs as bw,hs as bx,ts as by,os as bz,A as c,Vs as d,Hs as e,Bs as f,ri as g,Ts as h,gt as i,St as j,bs as k,ws as l,Vr as m,dt as n,lt as o,ks as p,Ir as q,Pr as r,_r as s,Es as t,Rs as u,qs as v,tr as w,_s as x,ei as y,G as z};
|
|
534
|
+
Keep ordinary recommendations to supported features ready for users. Discuss an experiment honestly and label its status only when explicitly asked or when the user is developing or testing it.`,roleReminder:"You are the built-in Assistant. Help with app tasks using ws.app.* and current app guidance. Keep changes reviewable through proposal or confirmation cards, with cards last. Show workspaces as live cards; never use a workspace ID slug as a label. Use the discovered canonical route including its hash fragment. End the turn after registering an agent completion watch; on completion, link the returned assistant reply using its exact message ID."}],J=new Set(["pr-reviewer"]),Ar="developer";function Pr(e){return v.find(t=>t.id===e)}function u(e){return e??""}function ot(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function G(e,t,r){if(e.source!=="user"||!r?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const s=t.find(i=>i.id===e.id)??v.find(i=>i.id===e.id);return s?u(e.name)===u(s.name)&&u(e.description)===u(s.description)&&u(e.behaviorPrompt)===u(s.defaultBehaviorPrompt)&&u(e.roleReminder)===u(s.roleReminder)&&u(e.reasoningEffort)===u(s.reasoningEffort)&&ot(e.modelOptions,s.modelOptions):!1}const Mr=a.createSelector(e=>e.specialists.bundledSpecialists),ct=a.createSelector(e=>e.specialists.fileSpecialists),Dr=a.createSelector(e=>y(ct.select(e))),Or=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const xr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Fr=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Nr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Lr=a.createSelector(e=>e.specialists.specialistsFolderPath),Ur=a.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(J.has(t)&&!Z.select(e)));function lt(e,t){return t?e:e.filter(r=>!J.has(r.id))}function dt(e,t){return lt(e,t).filter(r=>!r.hidden)}function Vr(e,t){return dt(e,t).filter(r=>r.role!=="internal")}const m=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of v)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of v)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,h)=>{const S=l.has(c.id),M=l.has(h.id);return S&&M?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!M?-1:!S&&M?1:c.name.localeCompare(h.name)}),o}),Wr=a.createSelector(e=>{const t=m.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...v.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),ut=a.createSelector((e,t)=>{const r=b(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&y(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=v.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),Hr=a.createSelector((e,t)=>ut.select(e,t)?.name??null),Br=a.createSelector((e,t,r)=>{const i=m.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),qr=a.createSelector((e,t,r)=>m.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),jr=a.createSelector((e,t,r)=>m.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Gr=a.createSelector((e,t,r)=>{const i=m.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function R(e,t){return t.some(r=>r.id===e)||v.some(r=>r.id===e)}const zr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&R(t,e.specialists.bundledSpecialists)}return R(t,e.specialists.bundledSpecialists)}),Yr=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!b(e.specialists.fileSpecialists,t)),Kr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:R(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!R(t,e.specialists.bundledSpecialists))return!1;const i=b(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return b(e.specialists.fileSpecialists,t)}),Qr=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),$r=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=b(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),Zr=a.createSelector((e,t,r)=>{if(r){const i=m.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ye.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=b(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:pt.select(e,t)}),pt=a.createSelector((e,t)=>{const s=m.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Me.select(e)?Q.select(e):""}),Jr=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),Xr=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??de),es=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[]));function ft(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const ts=a.createSelector(e=>e.voiceSettings.isLoading),rs=a.createSelector(e=>e.voiceSettings.available),ss=a.createSelector(e=>e.voiceSettings.provider),is=a.createSelector(e=>e.voiceSettings.engine),as=a.createSelector(e=>e.voiceSettings.osEngineAvailable),ns=a.createSelector(e=>e.voiceSettings.keyConfigured),os=a.createSelector(e=>e.voiceSettings.vocabulary),cs=a.createSelector(e=>e.voiceSettings.openaiModel),ls=a.createSelector(e=>e.voiceSettings.language),ds=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),us=a.createSelector(e=>e.voiceSettings.inputDeviceId),ps=a.createSelector(e=>e.voiceSettings.inputDevices),fs=a.createSelector(e=>e.voiceSettings.busyProvider),hs=a.createSelector(e=>e.voiceSettings.error),gs=a.createSelector(e=>_e.select(e)?"unavailable":ft(e.voiceSettings)),L="intent.voice.inputDevice";let U;function ht(){if(U!==void 0)return U;try{const e=localStorage.getItem(L);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ms(e){U=e;try{e===null?localStorage.removeItem(L):localStorage.setItem(L,e)}catch{}}let C=null;function vs(e){C=e}function bs(){const e=C;return C=null,e}function gt(){C=null}const mt=300,vt=300;class bt{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??mt,this.doublePressWindowMs=t.doublePressWindowMs??vt,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let T=null;function Ss(e){T=e}function ws(){const e=T;return T=null,e}function St(){T=null}const wt=12e4,yt=["audio/webm;codecs=opus","audio/webm"];function ys(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function _t(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function kt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return yt.find(e=>MediaRecorder.isTypeSupported(e))}class Et{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??wt,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(_t(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=kt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Rt=300;function Ct(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Tt={stopReason:"manual",autoSend:!1};let p=null,g=null,w=0,k=null;const P=new bt({onRecordStart:()=>{k&&It(k)},onRecordStop:e=>{X(k,e)}});function _s(){return p!==null}function ks(){return p}function Es(e){k=e,w+=1,w===1&&P.keyDown()}function Rs(e){k=e,w!==0&&(w-=1,w===0&&P.keyUp())}function It(e){if(p!==null)return;St(),gt();const t=new Et({deviceId:ht(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(E()),i||P.reset(),r.durationMs<Rt){s.autoSend&&e.dispatch(N());return}e.dispatch(ue({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(E()),e.showHint(Ct(r)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(pe()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(E()),s&&e.dispatch(N())}})}function X(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(N());return}g=t,r.stop()}function Cs(){X(null,Tt)}function Ts(e){P.reset(),w=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(E()))}const At=V("HardwareConsoleVoiceSetupToast"),Pt="hardware-console-voice-setup";let F=null;function Mt(){return F||(F=le(()=>import("./DTOf9l3E.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.notify)),F}function Dt(){Pe("/settings?tab=connections#voice").catch(e=>{At.error("Failed to open voice settings from setup toast",e)})}function Ot(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>Dt()}}function Is(){Mt().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Pt,action:Ot()})})}const As=a.createSelector(e=>e.externalEditors.selectedAction),xt=a.createSelector(e=>e.externalEditors.editors),Ft=a.createSelector(e=>{const t=y(xt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),Ps=a.createSelector(e=>e.externalEditors.editorOrder??[]),Ms=a.createSelector(e=>e.externalEditors.loading),Ds=a.createSelector(e=>e.externalEditors.lastFetched),Nt=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Os=a.createSelector((e,t)=>{if(!(t?ke.select(e,t):Ee.select(e)))return[];const s=Nt.select(e);return Ft.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Lt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function xs(e,t,r){if(Y(e)){const s=t.find(i=>i.providerRef===e);return s?.remoteCompatible!==!1?null:s.remoteIncompatibility??{reason:"unknown",keys:[]}}return r?.[e]??null}function Fs(e,t){return e.reason==="account-folder"?n.chat_modelPicker_remoteAccountFolder_description({backend:t}):n.chat_modelPicker_remoteIncompatible_description()}const Ut=1440*60*1e3;function Ns(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>Ut?"stale":"fresh"}const Ls=new Set(["cli-missing","prerequisite-missing"]),Vt=new Set(["signed-out","auth-failed"]);function Wt(e){return Vt.has(e)}function Us(e,t){if(Y(t))return!1;const r=fe(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&Wt(s.status)}const Ht={macos:"macOS",linux:"Linux",windows:"Windows"},Bt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function I(e,t){const r=[e&&(Ht[e]??e),t&&(Bt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function qt(e){return e?.placement?.target==="remote"}function Vs(e,t){if(!e||!qt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=I(e.placement?.os,e.placement?.arch)??I(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||n.remoteAgent_location_unknownMachine(),platform:i,state:o}}function Ws(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||n.remoteAgent_location_unknownMachine(),platform:I(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Hs(e){const t=e.platform?n.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):n.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_unreachable_label()});case"revoked":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_revoked_label()});default:return t}}function Bs(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":null}const A="",jt=new Set(["connected","disconnected"]);function Gt(e){switch(e){case"unreachable":return n.remoteMachines_state_unreachable_label();case"revoked":return n.remoteMachines_state_revoked_label();case"update-required":return n.remoteMachines_state_updateRequired_label();default:return}}function B(e){return jt.has(e.state)}function zt({backendLabel:e,machines:t}){return[{id:A,label:e,platform:null,disabled:!1},...t.map(r=>{const s=I(r.platform?.os,r.platform?.arch);return B(r)?{id:r.id,label:r.name,platform:s,disabled:!1}:{id:r.id,label:r.name,platform:s,disabled:!0,reason:Gt(r.state)}})]}function Yt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(B)}function Kt(e,t){if(!e)return A;const r=t.find(s=>s.id===e);return r&&B(r)?r.id:A}function qs(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function js({groups:e,providerRef:t,model:r}){const s=l=>l.options.filter(c=>!c.disabled),i=e.find(l=>l.key===t),o=i?s(i):[];if(r){const l=he(r).modelId;if(o.some(c=>c.value===l))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const l of e){if(l.key==="default")continue;const c=s(l);if(c.length>0)return{providerId:l.key,modelId:c[0].value}}return null}const Qt=a.createSelector(e=>ze.select(e)&&e.remoteMachines?.supported===!0),q=a.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Gs=a.createSelector(e=>e.remoteMachines.localFingerprint),zs=a.createSelector(e=>e.remoteMachines.pending),Ys=a.createSelector(e=>e.remoteMachines.failures),Ks=a.createSelector(e=>e.remoteMachines.executorBackends??[]),$t=a.createSelector((e,t)=>{if(t===ge)return n.layout_daemonStatus_localConnection_label();const r=b(e.connections.connections,t);return r?De(r):t}),Zt=a.createSelector(e=>$t.select(e,e.connections.windowBackendId)),Qs=a.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),$s=a.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Lt({catalogProfiles:Ce.select(e,t),defaultRemoteIncompatibility:Re.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),Zs=a.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ee=a.createSelector(e=>Yt({remoteMachinesVisible:Qt.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:q.select(e)})),Js=a.createSelector(e=>ee.select(e)?zt({backendLabel:Zt.select(e),machines:q.select(e)}):[]),Xs=a.createSelector((e,t)=>ee.select(e)?Kt(t,q.select(e)):A);function ei(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let Jt=0;function Xt(e,t){const r=++Jt;return a.dispatch(ve(e,t,r)),r}function ti(e,t,r){a.dispatch(me(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(be({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:K.select(a.state)},{...s,intent:s?.intent??Xt(e,t)}))).status==="success"}finally{a.dispatch(Se(i,o))}}async function ri(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function si(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const er=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),ii=a.createSelector((e,t)=>er.select(e,t).some(r=>r.status==="pending")),ai=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=Te.select(e,t),o=Oe.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=xe(l),h=c?Fe(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:K.select(e),canWrite:!!s&&s.workspaceId===r&&!Ie.select(e,r)}});function tr(e,t,r=!1){return e!=="auggie"||t===!0||r}const ni=a.createSelector(e=>Ne.select(e)?null:W.select(e)),rr=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),oi=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),ci=a.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===rr.select(e)),re=a.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ae.select(e)),se=a.createSelector((e,t)=>{if(!t)return Q.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ue.select(e);const r=j.select(e,t),s=se.select(e,t),i=f.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||$(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),li=a.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:W.select(e);return re.select(e,t).filter(i=>tr(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),di=a.createSelector((e,t)=>t?ie.select(e,t):Ve.select(e)),ui=a.createSelector((e,t)=>m.select(e,t)),pi=a.createSelector((e,t)=>t?!!f.select(e,t):We.select(e)),fi=a.createSelector((e,t)=>{if(!t)return He.select(e);const r=f.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),hi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):Be.select(e)),gi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):qe.select(e)),mi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):je.select(e)),vi=a.createSelector((e,t,r)=>{if(!r)return Ge.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$(o,i?.readiness[o]?.authenticated))}),bi=a.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:W.select(e)),sr={},Si=a.createSelector(e=>e.providerSettings?.profiles?.status??sr),wi=a.createSelector(e=>e.directoryPicker.listing),yi=a.createSelector(e=>e.directoryPicker.loading),_i=a.createSelector(e=>e.directoryPicker.error),ki=a.createSelector(e=>e.directoryPicker.pathError),Ei=a.createSelector(e=>e.directoryPicker.createError),z={},ir=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Ri=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Ci=a.createSelector(e=>e.mcpSettings.loading),Ti=a.createSelector(e=>e.mcpSettings.error),Ii=a.createSelector(e=>e.mcpSettings.mutationError??null),Ai=a.createSelector(e=>e.mcpSettings.enabled),ar=a.createSelector(e=>e.mcpSettings.disabledServers),nr=a.createSelector(e=>e.mcpSettings.statusMap),or=a.createSelector(e=>e.mcpSettings.toolsMap),cr=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,_(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),lr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??z:z),Pi=a.createSelector((e,t)=>Object.keys(lr.select(e,t))),Mi=a.createSelector(e=>{const t=ir.select(e),r=nr.select(e),s=or.select(e),i=ar.select(e),o=cr.select(e);return t.map(l=>{const c=_(l)in i,h=s[_(l)]||[];let S=r[_(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[_(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Di=a.createSelector(e=>e.mcpSettings.lastImportedCount),Oi=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),xi=a.createSelector(e=>e.mcpSettings.advancedSaveError),Fi=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],dr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Ni=Object.fromEntries(dr.map(e=>[e.path,e.defaultValue]));export{di as $,Us as A,ys as B,ht as C,Ar as D,Ws as E,dr as F,J as G,js as H,Ns as I,Xt as J,it as K,si as L,Ls as M,ti as N,xs as O,Fs as P,ft as Q,Kt as R,v as S,Rr as T,ms as U,ii as V,er as W,ai as X,Mr as Y,Nr as Z,$t as _,Ni as a,nr as a$,se as a0,j as a1,li as a2,ie as a3,re as a4,gi as a5,mi as a6,hi as a7,vi as a8,bi as a9,tt as aA,Z as aB,Xe as aC,Qe as aD,Ye as aE,Ze as aF,Je as aG,Kr as aH,Nt as aI,Ft as aJ,Os as aK,Ms as aL,zr as aM,Yr as aN,Ds as aO,Gs as aP,xi as aQ,Oi as aR,ar as aS,Ai as aT,Ti as aU,cr as aV,Di as aW,Ci as aX,Ii as aY,ir as aZ,Mi as a_,pi as aa,fi as ab,ui as ac,Zt as ad,xr as ae,Zs as af,Ur as ag,Ei as ah,_i as ai,wi as aj,yi as ak,ki as al,Ps as am,Gr as an,Zr as ao,Br as ap,Xs as aq,gs as ar,Ks as as,qr as at,jr as au,Dr as av,Fr as aw,H as ax,Ke as ay,et as az,Fi as b,or as b0,As as b1,Wr as b2,Si as b3,Qs as b4,Ys as b5,zs as b6,q as b7,Qt as b8,$s as b9,ds as bA,f as bB,rr as bC,ci as bD,oi as bE,Pi as bF,Ri as bG,vs as bH,Ss as bI,Is as bJ,It as bK,Cs as bL,Cr as bM,Er as bN,Tr as bO,kr as bP,Ot as bQ,yr as bR,ni as ba,ut as bb,Xr as bc,es as bd,$r as be,Jr as bf,Hr as bg,Qr as bh,m as bi,Lr as bj,Js as bk,ee as bl,Or as bm,fs as bn,is as bo,us as bp,ps as bq,ns as br,ls as bs,cs as bt,as as bu,ss as bv,rs as bw,hs as bx,ts as by,os as bz,A as c,Vs as d,Hs as e,Bs as f,ri as g,Ts as h,gt as i,St as j,bs as k,ws as l,Vr as m,dt as n,lt as o,ks as p,Ir as q,Pr as r,_r as s,Es as t,Rs as u,qs as v,tr as w,_s as x,ei as y,G as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as O,bq as s,a_ as W,by as Y,br as G,b as J}from"./GWL2EpD7.js";import{bo as L,bs as Q,ca as U,aD as i,ay as V,bx as X,bS as Z,W as w,bn as $,c9 as n,aA as r,be as ee,b$ as te,b_ as ae,bO as se,aB as re}from"./B8o4lNgr.js";import{c as ie,f as ne}from"./CYiv-51w.js";import{n as oe,t as de,m as ue,e as le,a as ce}from"./
|
|
1
|
+
import{t as O,bq as s,a_ as W,by as Y,br as G,b as J}from"./GWL2EpD7.js";import{bo as L,bs as Q,ca as U,aD as i,ay as V,bx as X,bS as Z,W as w,bn as $,c9 as n,aA as r,be as ee,b$ as te,b_ as ae,bO as se,aB as re}from"./B8o4lNgr.js";import{c as ie,f as ne}from"./CYiv-51w.js";import{n as oe,t as de,m as ue,e as le,a as ce}from"./Com4THH3.js";import{b as ge}from"./D2g8BuR1.js";import"./BlBijATU.js";import{bK as fe}from"./Dayd4Wgp.js";var me=new Set(["$$slots","$$events","$$legacy","ref","id","class","value","doesExpandToFit","autoResize","minHeight","maxHeight","noFocusStyle","size","message","error","messageId","aria-describedby","aria-invalid"]),he=re("<textarea></textarea> <!>",1);function xe(S,t){const E=L();if(new.target)return O({component:xe,...S});Q(t,!0);const B=fe();let a=s(t,"ref",15),m=s(t,"id",7),h=s(t,"class",7),c=s(t,"value",15),x=s(t,"doesExpandToFit",7,!1),b=s(t,"autoResize",7,!1),g=s(t,"minHeight",7,80),o=s(t,"maxHeight",7,400),v=s(t,"noFocusStyle",7,!1),y=s(t,"size",7),_=s(t,"message",7),d=s(t,"error",7),f=s(t,"messageId",23,()=>`${E}-message`),z=s(t,"aria-describedby",7),p=s(t,"aria-invalid",7),M=G(t,me);const C=n(()=>y()??B),u=n(()=>b()||x()),H=n(()=>d()??_()),j=n(()=>[z(),i(H)?f():void 0].filter(Boolean).join(" ")||void 0),k=n(()=>d()?!0:p());function A(){a()?.focus()}function D(){a()?.blur()}function I(){if(!i(u)||!a())return;a(a().style.height="auto",!0);const e=Math.min(Math.max(a().scrollHeight,g()),o());a(a().style.height=`${e}px`,!0),a(a().style.overflowY=a().scrollHeight>o()?"auto":"hidden",!0)}U(()=>{i(u)&&a()&&c()!==void 0&&I()});var P={focus:A,blur:D,get ref(){return a()},set ref(e){a(e),r()},get id(){return m()},set id(e){m(e),r()},get class(){return h()},set class(e){h(e),r()},get value(){return c()},set value(e){c(e),r()},get doesExpandToFit(){return x()},set doesExpandToFit(e=!1){x(e),r()},get autoResize(){return b()},set autoResize(e=!1){b(e),r()},get minHeight(){return g()},set minHeight(e=80){g(e),r()},get maxHeight(){return o()},set maxHeight(e=400){o(e),r()},get noFocusStyle(){return v()},set noFocusStyle(e=!1){v(e),r()},get size(){return y()},set size(e){y(e),r()},get message(){return _()},set message(e){_(e),r()},get error(){return d()},set error(e){d(e),r()},get messageId(){return f()},set messageId(e=`${E}-message`){f(e),r()},get"aria-describedby"(){return z()},set"aria-describedby"(e){z(e),r()},get"aria-invalid"(){return p()},set"aria-invalid"(e){p(e),r()},$set:Y,$on:(e,F)=>J(t,e,F)},R=he(),l=V(R);X(l),ie(l,e=>({id:m(),"data-slot":"textarea","data-size":i(C),oninput:i(u)?I:void 0,"aria-describedby":i(j),"aria-invalid":i(k),class:e,style:i(u)?`min-height: ${g()}px; max-height: ${o()}px`:void 0,autocorrect:"off",autocapitalize:"off",spellcheck:"false",...M}),[()=>ne("type-caption text-foreground placeholder:text-muted-foreground flex w-full rounded-(--radius-medium) border px-3",ue,de,i(C)==="compact"?"py-1.5":"py-2",i(u)?"resize-none overflow-hidden":"min-h-20",v()&&oe,h())]),ge(l,e=>a(e),()=>a());var q=Z(l,2);{var K=e=>{{let F=n(()=>d()?"error":"helper");ce(e,{get id(){return f()},get tone(){return i(F)},children:(N,be)=>{ee();var T=te();ae(()=>se(T,i(H))),w(N,T)},$$slots:{default:!0}})}};W(q,e=>{i(H)&&e(K)})}return le(l,c),w(S,R),$(P)}export{xe as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Ke,bq as k,a_ as z,bo as Se,by as Ve,b as Ue,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./GWL2EpD7.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{mv as Rr,G0 as ct,lD as Wt,d_ as Mr,ei as Pr,ej as Lr}from"./C2YltVuJ.js";import{H as De,C as Oe,y as Ir,h as at}from"./bocWuth7.js";import{di as Ar,bc as Er}from"./
|
|
1
|
+
import{t as Ke,bq as k,a_ as z,bo as Se,by as Ve,b as Ue,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./GWL2EpD7.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{mv as Rr,G0 as ct,lD as Wt,d_ as Mr,ei as Pr,ej as Lr}from"./C2YltVuJ.js";import{H as De,C as Oe,y as Ir,h as at}from"./bocWuth7.js";import{di as Ar,bc as Er}from"./6WgKbzWn.js";import{a4 as jt}from"./BW8TPfRW.js";import{I as it,k as ze,h as Be,i as Lt,s as zr}from"./CYiv-51w.js";import{f as xe}from"./Dayd4Wgp.js";import"./vOveF3fP.js";import{F as fe,a0 as Hr,cE as Dr,as as ot,at as pt,bV as Tr,aP as Wr,bF as jr,bz as Fr,b3 as Gr,cJ as Br,cc as Or,b0 as Ct,cO as Rt,cg as _t,bi as Kr,ct as Vr,aq as Ur}from"./BM7uH7Bn.js";import{e as Jr}from"./C82p3eaN.js";import{Q as Ft,B as qr}from"./B6ZTfeOu.js";import{H as Gt}from"./CoZ28bOB.js";import{I as Ut}from"./Com4THH3.js";import"./BlBijATU.js";import{M as Mt}from"./DJxE8cOI.js";import{w as St}from"./CRK47dBR.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
|
|
2
2
|
`);let m=null,b=0,u=0;const W=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){W(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):Qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Xr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),W=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||W()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return W()},set isSending(I=!1){W(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ve,$on:(I,he)=>Ue(r,I,he)},w=Xr(),H=be(w),de=o(H);{let I=_(()=>Se.codeReview_inlineComment_askLine_placeholder());Ut(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return W()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){L(J,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||W());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),C=be(_e);{var E=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};z(C,me=>{W()?me(E):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>S(Ne,_e),[()=>Se.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(H);var te=n(H,2),ke=O(te,!0);return M(I=>{ze(H,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),S(ke,I)},[()=>Se.codeReview_inlineComment_inputHint_label()]),i($,w),qe(q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),W=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),J=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),q=we(""),w=we(!1),H=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(q).trim()||h()||(W()?.(e(q).trim(),m(),b()),L(q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(q)?L(q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Gr;case"context":return Fr;case"explanation":default:return jr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Ir(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return W()},set onSendMessage(a){W(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ve,$on:(a,T)=>Ue(r,a,T)},_e=ln(),C=o(_e),E=o(C),Ie=o(E);{let a=_(()=>te(d().type)),T=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(T)??""}`}})}s(E);var me=n(E,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var X=a=>{var T=Zr(),Z=O(T,!0);M(ee=>S(Z,ee),[()=>I(K())]),i(a,T)};z(A,a=>{K()&&a(X)})}s(me);var ie=n(me,2);{var $e=a=>{{let T=_(()=>Se.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(T)},children:(Z,ee)=>{fe(Z,{get icon(){return Dr}})},$$slots:{default:!0}})}};z(ie,a=>{P()&&a($e)})}s(C);var Ce=n(C,2);{var ye=a=>{var T=nn(),Z=o(T);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(H,!e(H)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(Q,se)=>{var Y=en(),c=be(Y),p=O(c,!0),G=n(c,2);{let ue=_(()=>e(H)?ot:pt);fe(G,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>S(p,ue),[()=>Se.codeReview_commentThread_suggestedChanges_label()]),i(Q,Y)},$$slots:{default:!0}});var ee=n(Z,2);{var re=Q=>{var se=rn();Be(se,21,u,Y=>Y.id,(Y,c)=>{var p=tn(),G=o(p),ue=o(G);{let g=_(()=>e(c).type==="user"?Br:Or),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(G);var Re=n(G,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>ze(G,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),De(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Y,p)}),s(se),De(3,se,()=>Oe,()=>({tier:"moderate"})),i(Q,se)};z(ee,Q=>{e(H)&&Q(re)})}s(T),i(a,T)};z(Ce,a=>{e(he)&&a(ye)})}var V=n(Ce,2);{var j=a=>{var T=an(),Z=o(T);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(T),M(Q=>S(re,Q),[()=>Se.codeReview_commentThread_agentResponding_label()]),i(a,T)};z(V,a=>{J()&&a(j)})}var f=n(V,2),D=o(f);{var F=a=>{var T=sn(),Z=be(T),ee=o(Z);{let c=_(()=>Se.codeReview_commentThread_followUp_placeholder());Ut(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(q)},set value(p){L(q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,G)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Tr},class:"h-3 w-3"})};z(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var Q=n(re,2);xe(Q,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var G=et();M(ue=>S(G,ue),[()=>Se.codeReview_commentThread_cancel_label()]),i(c,G)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),Y=O(se,!0);M(c=>S(Y,c),[()=>Se.codeReview_commentThread_inputHint_label()]),De(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,T)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(T,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Wr},class:"h-3 w-3"});var Q=n(re,2),se=O(Q,!0);M(Y=>S(se,Y),[()=>Se.codeReview_commentThread_askQuestion_label()]),i(T,ee)},$$slots:{default:!0}})};z(D,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>ze(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),De(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Bt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Je(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),W=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),J=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),q=k(r,"class",7,"");const w=_(()=>Yr(m())),H=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(H)||e(H)==="text"||e(H)==="plaintext"||!Gt.getLanguage(e(H))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const B=N.content||"",U=`${N.oldNum}-${N.newNum}`;g.push({content:B,key:U})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
|
|
3
3
|
`),U=Gt.highlight(N,{language:e(H)}).value.split(`
|
|
4
4
|
`);g.forEach((ne,oe)=>{oe<U.length&&t.set(ne.key,U[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const B=e(w)[t];if(!B)return!1;for(let U=Math.max(0,l-W());U<=Math.min(B.lines.length-1,l+W());U++){const ne=B.lines[U];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const U of e(ae)){const[ne,oe,ve]=U.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let B=0;B<l.lines.length;B++){const U=Ne(t,B,l.lines[B]);!U&&N===null?N=B:U&&N!==null&&(g.push({startIndex:N,endIndex:B-1,count:B-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function C(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function E(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];C(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function X(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Ce(t){L(te,t,!0)}function ye(){L(te,null)}function V(t,l,g){P()?.(t,l,g),L(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),D=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let B=0;B<N.lines.length&&l.length<3;B++){const U=N.lines[B];(U.type==="addition"||U.type==="deletion")&&l.push({line:U,hunkIndex:g,lineIndex:B})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function T(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(T(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return W()},set contextLines(t=3){W(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return J()},set additions(t=0){J(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return q()},set class(t=""){q(t),y()},$set:Ve,$on:(t,l)=>Ue(r,t,l)},re=wn(),Q=o(re),se=o(Q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var B=n(N,4),U=o(B),ne=O(U,!0),oe=n(U,2),ve=O(oe,!0);s(B);var Me=n(B,2),Ae=o(Me);{var Te=Le=>{var Ee=dn(),Fe=O(Ee);M(()=>S(Fe,`+${J()+K()}`)),i(Le,Ee)};z(Ae,Le=>{(J()>0||K()>0)&&Le(Te)})}s(Me),M((Le,Ee)=>{S(ne,Le),S(ve,Ee)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Y=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>S(N,pe())),i(t,l)};z(Y,t=>{pe()&&t(c)})}s(Q);var p=n(Q,2);{var G=t=>{var l=gn(),g=o(l),N=o(g);Be(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),Te=o(Ae),Le=O(Te,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),We=n(Ee,2),ge=o(We);Ft(ge,()=>me(ve()),!0),s(ge),s(We),s(Me),M((Qe,Ye,Xe,tt)=>{ze(Me,1,`flex ${Qe??""}`),ze(Ae,1,`w-12 shrink-0 flex select-none ${Ye??""} border-r border-border`),S(Le,ve().newNum??ve().oldNum??""),ze(Ee,1,`w-5 shrink-0 text-center select-none ${Xe??""}`),S(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>X(ve())]),i(ne,Me)});var B=n(N,2);{var U=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>S(Me,Ae),[()=>Se.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};z(B,ne=>{e(le)>e(F).length&&ne(U)})}s(g),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(p,t=>{e(ce)&&e(F).length>0&&t(G)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:E,children:(Te,Le)=>{st();var Ee=et();M(Fe=>S(Ee,Fe),[()=>Se.codeReview_fileDiff_expandAll_label()]),i(Te,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=Te=>{var Le=fn(),Ee=n(be(Le),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,We)=>{st();var ge=et();M(Qe=>S(ge,Qe),[()=>Se.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(Te,Le)};z(Me,Te=>{e(ae).size>0&&Te(Ae)})}s(oe),i(ne,oe)};z(g,ne=>{e(D)&&ne(N)})}var B=n(g,2),U=o(B);Be(U,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(We=>We.startIndex===0));var Te=xn(),Le=be(Te);{var Ee=We=>{xe(We,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>C(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,Qe)=>{var Ye=Bt(),Xe=be(Ye);fe(Xe,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Xe,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>S(xt,ut),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Ye)},$$slots:{default:!0}})};z(Le,We=>{e(Ae)&&We(Ee)})}var Fe=n(Le,2);Be(Fe,19,()=>e(oe).lines,(We,ge)=>`${ve}-${ge}`,(We,ge,Qe)=>{const Ye=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Xe=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Ye)),xt=_(()=>Ne(ve,e(Qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(Qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),zt=n(bt,2),wt=o(zt),Ht=o(wt);Ft(Ht,()=>me(e(ge)),!0),s(Ht),s(wt);var or=n(wt,2);{var ir=Pe=>{{let He=_(()=>Se.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Ce(e(Ye)),get title(){return e(He)},children:(je,Ge)=>{fe(je,{get icon(){return Ct}})},$$slots:{default:!0}})}};z(or,Pe=>{P()&&Pe(ir)})}s(zt),s(vt);var Dt=n(vt,2);Be(Dt,19,()=>e(Xe),(Pe,He)=>`${Pe.line}-${He}`,(Pe,He)=>{var je=mn(),Ge=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(He)));qt(Ge,{get annotation(){return e(He)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>V(kt,yt,$t),get isSending(){return h()}})}s(je),De(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Tt=n(Dt,2);{var lr=Pe=>{var He=pn(),je=o(He),Ge=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Ge,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:V,onClose:ye,get isSending(){return h()}})}s(je),s(He),i(Pe,He)};z(Tt,Pe=>{e(tt)&&e(Xe).length===0&&Pe(lr)})}var dr=n(Tt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>C(ve,e(rt).startIndex,e(rt).endIndex),children:(He,je)=>{var Ge=Bt(),nt=be(Ge);fe(nt,{get icon(){return Ct},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return Ct},class:"h-2.5 w-2.5"}),M($t=>S(kt,$t),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(He,Ge)},$$slots:{default:!0}})};z(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,He,je,Ge)=>{ze(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),ze(gt,1,`w-20 shrink-0 flex select-none ${He??""} border-r border-border`),S(rr,e(ge).oldNum??""),S(ar,e(ge).newNum??""),ze(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),S(sr,Ge)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>X(e(ge))]),i(lt,At)};z(er,lt=>{e(xt)&<(tr)})}i(We,ut)}),i(ne,Te)}),s(U),s(B),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>ze(re,1,`walkthrough-file-diff overflow-hidden bg-card ${q()??""}`)),i($,re),qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const H=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return H[w%H.length]}function W(w){const H=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return H[w%H.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ve,$on:(w,H)=>Ue(r,w,H)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var q=n(J,2);return Be(q,21,d,Lt,(w,H,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),C=O(_e,!0),E=n(_e,2),Ie=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,X)=>{ze(he,0,`h-5 w-5 ${A??""}`),S(C,e(H).title),S(Ie,e(H).description),S(R,X)},[()=>W(de),()=>e(H).files.length===1?Se.codeReview_categoriesGrid_fileCount_one({count:e(H).files.length}):Se.codeReview_categoriesGrid_fileCount_many({count:e(H).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(q),s(h),M(w=>{ze(h,1,`walkthrough-categories-grid ${b()??""}`),S(pe,w)},[()=>Se.codeReview_categoriesGrid_whatChanged_title()]),i($,h),qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Cn=x('<p class="text-sm text-subtle mt-2"> </p>'),Sn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),W=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(C){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[C%E.length]}const K=_(()=>d().files.map(C=>{const E=b().get(C.path);return{...C,patch:E?.patch,additions:E?.additions??0,deletions:E?.deletions??0}}));var pe={get category(){return d()},set category(C){d(C),y()},get categoryIndex(){return m()},set categoryIndex(C){m(C),y()},get filePatchMap(){return b()},set filePatchMap(C){b(C),y()},get isLast(){return u()},set isLast(C=!1){u(C),y()},get onSendMessage(){return W()},set onSendMessage(C){W(C),y()},get isSending(){return P()},set isSending(C=!1){P(C),y()},get class(){return h()},set class(C=""){h(C),y()},$set:Ve,$on:(C,E)=>Ue(r,C,E)},q=Rn(),w=o(q),H=o(w),de=o(H),ce=n(de,2);{var ae=C=>{var E=$n();i(C,E)};z(ce,C=>{(!u()||e(K).length>0)&&C(ae)})}s(H);var te=n(H,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Be(_e,23,()=>e(K),(C,E)=>`${m()}-${E}`,(C,E,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),X=o(A);{var ie=Ce=>{It(Ce,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return W()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Ce=>{var ye=Sn(),V=o(ye),j=n(o(V),2),f=O(j,!0);s(V);var D=n(V,2);{var F=le=>{var a=Cn(),T=O(a,!0);M(()=>S(T,e(E).summary)),i(le,a)};z(D,le=>{e(E).summary&&le(F)})}s(ye),M(()=>S(f,e(E).path)),i(Ce,ye)};z(X,Ce=>{e(E).patch?Ce(ie):Ce($e,-1)})}s(A),s(me),M(()=>ze(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(C,me)}),s(_e),s(q),M(C=>{ze(q,1,`walkthrough-category-section ${h()??""}`),zr(q,"id",`category-${m()??""}`),ze(de,1,`w-3 h-3 rounded-full ${C??""} ring-4 ring-background shrink-0`),S(I,d().title),S(Ne,d().description)},[()=>J(m())]),i($,q),qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),En=x('<div class="space-y-8 pt-4"></div>'),zn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),Hn=x('<div class="space-y-3 pt-2"></div>'),Dn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Tn=x('<div class="flex justify-end pt-2"><!></div>'),Wn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),W=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),J=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const q=_(()=>m()==="running"),w=_(()=>m()==="complete"),H=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((X,ie)=>X.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((X,ie)=>X.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Ze(()=>{if(!d()||!W())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const X=Ne(R,A.oldContent,A.newContent);if(X){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:X,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const X=R.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./GWL2EpD7.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./CYiv-51w.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as $o,aB as bn}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./GWL2EpD7.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./CYiv-51w.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as $o,aB as bn}from"./DOsLfX1h.js";import{F as vi,b$ as jo,bc as qo,at as Ko,as as Xo}from"./BM7uH7Bn.js";import{f as Di}from"./Dayd4Wgp.js";import{f as Yo}from"./C6YXNiX1.js";import{d as Qo}from"./QjTmIbp0.js";import{P as Jo}from"./CiShviCo.js";import{t as Sn}from"./bocWuth7.js";class Zo extends Ao{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|