@intent-hq/web 2.292.0 → 2.292.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/assets/0.DvlMYzZB.css +1 -0
- package/web/app/immutable/assets/5.DBgC2kSL.css +1 -0
- package/web/app/immutable/chunks/{D0FrwYUQ.js → 06CP606v.js} +1 -1
- package/web/app/immutable/chunks/{xKX_8KWn.js → 0OdOYZJi.js} +1 -1
- package/web/app/immutable/chunks/{BUN1yF1L.js → 0icrH9cf.js} +1 -1
- package/web/app/immutable/chunks/{BHNxqf_R.js → 1cxr91i_.js} +1 -1
- package/web/app/immutable/chunks/{fqEAyqsN.js → 2dp9mihz.js} +1 -1
- package/web/app/immutable/chunks/{C4QILlBJ.js → 4i4DPzKd.js} +1 -1
- package/web/app/immutable/chunks/{Cm5CZ7YY.js → 6P4u1Qpi.js} +1 -1
- package/web/app/immutable/chunks/{Uc38XdXI.js → 8wbw8Mxv.js} +1 -1
- package/web/app/immutable/chunks/{BXWlOAyO.js → 9-D0Q0S6.js} +1 -1
- package/web/app/immutable/chunks/{BDaXmtmH.js → B1Geyr6r.js} +1 -1
- package/web/app/immutable/chunks/{CyFgel5k.js → B3a0tOmN.js} +1 -1
- package/web/app/immutable/chunks/{B3HK-q5A.js → B3tYyD3l.js} +1 -1
- package/web/app/immutable/chunks/{lbGH4X3r.js → B4RJxt1j.js} +1 -1
- package/web/app/immutable/chunks/{DBNNnuPG.js → B57g6nRd.js} +1 -1
- package/web/app/immutable/chunks/{Brep-rEI.js → B5IU8QZY.js} +3 -3
- package/web/app/immutable/chunks/{LldlwJUi.js → B6AHBw_w.js} +1 -1
- package/web/app/immutable/chunks/{a-vNpAtT.js → B6ZWdQk3.js} +1 -1
- package/web/app/immutable/chunks/{BRyWfrpo.js → B6yR2ywv.js} +1 -1
- package/web/app/immutable/chunks/{CRhEb0yi.js → B706oMxy.js} +3 -3
- package/web/app/immutable/chunks/{BTkrC1UW.js → B7U-tfjb.js} +1 -1
- package/web/app/immutable/chunks/{0EWUI_tF.js → BBIRqZm8.js} +1 -1
- package/web/app/immutable/chunks/{C4WMSxMK.js → BBW6O_MW.js} +1 -1
- package/web/app/immutable/chunks/{DVnaYm9M.js → BBZy8W_D.js} +1 -1
- package/web/app/immutable/chunks/{DGzLoy-z.js → BGGu7czf.js} +1 -1
- package/web/app/immutable/chunks/{DCuB-wUt.js → BIYsIqQO.js} +1 -1
- package/web/app/immutable/chunks/{l7ze94qr.js → BJ0eJuEr.js} +1 -1
- package/web/app/immutable/chunks/{CmtSXIlz.js → BJ9BJ5kr.js} +1 -1
- package/web/app/immutable/chunks/{n50bwg6w.js → BJudpy0q.js} +2 -2
- package/web/app/immutable/chunks/BKO5A3Iw.js +324 -0
- package/web/app/immutable/chunks/{BvW_0loN.js → BKrYyTXN.js} +1 -1
- package/web/app/immutable/chunks/{qiHCX_SZ.js → BO7H-py_.js} +1 -1
- package/web/app/immutable/chunks/{BaqlfWKa.js → BRO1WLab.js} +1 -1
- package/web/app/immutable/chunks/{ClioxoZj.js → BS6j7OE5.js} +1 -1
- package/web/app/immutable/chunks/{U2CIkvme.js → BTveGMUJ.js} +1 -1
- package/web/app/immutable/chunks/{D7_sioj1.js → BW2PW2g6.js} +1 -1
- package/web/app/immutable/chunks/{BrbLiL_x.js → BX6z7vlb.js} +1 -1
- package/web/app/immutable/chunks/{BgntEy_5.js → BXOgEfnf.js} +1 -1
- package/web/app/immutable/chunks/{Du8OSMBA.js → BYGgXMOe.js} +1 -1
- package/web/app/immutable/chunks/{DkZNeDFv.js → BZt_MPAk.js} +1 -1
- package/web/app/immutable/chunks/{DKaqc51P.js → B_Ea7vd_.js} +1 -1
- package/web/app/immutable/chunks/{BnQ8VATH.js → B_POKarf.js} +1 -1
- package/web/app/immutable/chunks/{CDGvuOsQ.js → B_yx8Ej4.js} +1 -1
- package/web/app/immutable/chunks/{DsD7VXOH.js → BbJ89n0c.js} +1 -1
- package/web/app/immutable/chunks/{bHHGnVsz.js → BfyhvmiH.js} +1 -1
- package/web/app/immutable/chunks/{ZWPXcFOT.js → BhCkZjyI.js} +1 -1
- package/web/app/immutable/chunks/{DOVovLIq.js → BjDw9Ajo.js} +1 -1
- package/web/app/immutable/chunks/{B5iywc0c.js → BkasMNMq.js} +1 -1
- package/web/app/immutable/chunks/{DvbSI76r.js → Bn4oEwGS.js} +2 -2
- package/web/app/immutable/chunks/{aVsZmAEF.js → BnVbje9V.js} +1 -1
- package/web/app/immutable/chunks/{B-gmfAcJ.js → BoZO-tBm.js} +1 -1
- package/web/app/immutable/chunks/{BW3vrEnw.js → Bp1cd1IE.js} +5 -5
- package/web/app/immutable/chunks/{4tDE6wja.js → BqJBJZqA.js} +1 -1
- package/web/app/immutable/chunks/{C1YheCPG.js → BsDnrJk1.js} +1 -1
- package/web/app/immutable/chunks/{BFY-b65a.js → BxXIBuVD.js} +1 -1
- package/web/app/immutable/chunks/{C99wXtMe.js → Bxg-DNLJ.js} +1 -1
- package/web/app/immutable/chunks/{s0Q29iiv.js → Byw0HZRE.js} +1 -1
- package/web/app/immutable/chunks/{DhCIIOya.js → C-0pU5-0.js} +1 -1
- package/web/app/immutable/chunks/{RKlkXviB.js → C-65lWvx.js} +1 -1
- package/web/app/immutable/chunks/{ZvX5e3AH.js → C0-5oyod.js} +1 -1
- package/web/app/immutable/chunks/{DsSlZ8Hs.js → C16OaEIp.js} +1 -1
- package/web/app/immutable/chunks/{Bn8I_2eM.js → C1xcY5Vk.js} +1 -1
- package/web/app/immutable/chunks/{C2-6X3Z3.js → C235722L.js} +2 -2
- package/web/app/immutable/chunks/{Bp70Vk4U.js → C2XyHZMq.js} +1 -1
- package/web/app/immutable/chunks/{BJrl0upY.js → C2_XBdun.js} +1 -1
- package/web/app/immutable/chunks/{Dm7OUuES.js → C2kcG-kr.js} +1 -1
- package/web/app/immutable/chunks/{CXbFPa4P.js → C2kqq4BW.js} +1 -1
- package/web/app/immutable/chunks/{CW4guVPa.js → C3II6JxD.js} +1 -1
- package/web/app/immutable/chunks/{Xj89EZIy.js → C3pHQ0Lo.js} +1 -1
- package/web/app/immutable/chunks/{BGSYASTg.js → C6Oo8BXq.js} +1 -1
- package/web/app/immutable/chunks/{D0lwnaH3.js → C7GMlsQo.js} +1 -1
- package/web/app/immutable/chunks/{DwDCAMLG.js → C88qqh5O.js} +1 -1
- package/web/app/immutable/chunks/{BRCenWT1.js → CActW8-2.js} +1 -1
- package/web/app/immutable/chunks/{D7mzoI7P.js → CEFUN1Sl.js} +1 -1
- package/web/app/immutable/chunks/{BjdiF3NU.js → CF5fp47H.js} +1 -1
- package/web/app/immutable/chunks/{DQ7w3NbE.js → CFIlMuyb.js} +1 -1
- package/web/app/immutable/chunks/{DWGee_yL.js → CGSuk0Cy.js} +1 -1
- package/web/app/immutable/chunks/{BrdmgcMW.js → CGye2JSh.js} +1 -1
- package/web/app/immutable/chunks/CGzJEpSM.js +1 -0
- package/web/app/immutable/chunks/{B-dUAUrx.js → CHja51xm.js} +1 -1
- package/web/app/immutable/chunks/{C2v5W_yU.js → CIJAu6bi.js} +1 -1
- package/web/app/immutable/chunks/{CsY3AFxY.js → CJhyAq2H.js} +1 -1
- package/web/app/immutable/chunks/{Bdylonvo.js → CLVYtAgH.js} +1 -1
- package/web/app/immutable/chunks/{DHfLNRUe.js → CNIcxzrf.js} +1 -1
- package/web/app/immutable/chunks/{BnbR-3eC.js → CPVCyy9H.js} +1 -1
- package/web/app/immutable/chunks/{lr5ofxhO.js → CPWUKQMq.js} +1 -1
- package/web/app/immutable/chunks/{DP7kbgS0.js → CQ8ioTJp.js} +1 -1
- package/web/app/immutable/chunks/{CNx8jMag.js → CRA4LiiZ.js} +3 -3
- package/web/app/immutable/chunks/{1gqakjEk.js → CTq4Ne1T.js} +1 -1
- package/web/app/immutable/chunks/{Cowgfae1.js → CU6_e7nb.js} +1 -1
- package/web/app/immutable/chunks/{BhHMVKkK.js → CUBgSKLj.js} +1 -1
- package/web/app/immutable/chunks/{CACMvEIk.js → CURoGd7C.js} +1 -1
- package/web/app/immutable/chunks/{B-68oH2S.js → CXfUMyfW.js} +1 -1
- package/web/app/immutable/chunks/CXhBPURx.js +1 -0
- package/web/app/immutable/chunks/{Bebubi_u.js → C_XZ4OIT.js} +2 -2
- package/web/app/immutable/chunks/{D3jsqDWq.js → CaO-jYXw.js} +1 -1
- package/web/app/immutable/chunks/{DWQ1jwFW.js → CbfVN0ay.js} +1 -1
- package/web/app/immutable/chunks/{DI0BmYmu.js → Cbte3-vF.js} +1 -1
- package/web/app/immutable/chunks/{BekOxliD.js → Cg-g09n8.js} +1 -1
- package/web/app/immutable/chunks/{Dj03b8fr.js → Cgqr4kLy.js} +1 -1
- package/web/app/immutable/chunks/{aLb41s5K.js → Ci0Iahfv.js} +1 -1
- package/web/app/immutable/chunks/{CehXkbc-.js → Ck0Y6rq2.js} +1 -1
- package/web/app/immutable/chunks/{Bu8Bi7-A.js → ClloJpHM.js} +1 -1
- package/web/app/immutable/chunks/{CJhZDVuE.js → Clof0uHU.js} +6 -6
- package/web/app/immutable/chunks/{Cxk1hw1U.js → Cn7C61pS.js} +1 -1
- package/web/app/immutable/chunks/{DHSIOEln.js → CnJRK_4k.js} +1 -1
- package/web/app/immutable/chunks/{BSwJfQ4v.js → CpvoaoFn.js} +1 -1
- package/web/app/immutable/chunks/{D_J63Zyl.js → CqR78knd.js} +2 -2
- package/web/app/immutable/chunks/{DYtAwHmE.js → Cr7b2ytM.js} +1 -1
- package/web/app/immutable/chunks/{Corw6Jrh.js → CrDYXSjm.js} +1 -1
- package/web/app/immutable/chunks/{BA_vIobR.js → Cu9PRb5L.js} +1 -1
- package/web/app/immutable/chunks/{C3J1SYpT.js → CuXdjaeB.js} +1 -1
- package/web/app/immutable/chunks/{73DumGL9.js → CyiV6pD0.js} +1 -1
- package/web/app/immutable/chunks/{CabEUy8J.js → Cyt8YDgF.js} +1 -1
- package/web/app/immutable/chunks/{Bw0bJwpw.js → D0pB9PrJ.js} +1 -1
- package/web/app/immutable/chunks/{ObcETXIn.js → D1erkeWj.js} +4 -4
- package/web/app/immutable/chunks/{BEsSRpwf.js → D3RlZ9WF.js} +1 -1
- package/web/app/immutable/chunks/{QwMkFOLD.js → D3ZCs28F.js} +1 -1
- package/web/app/immutable/chunks/{47q6TsqV.js → D3vOZLLK.js} +7 -7
- package/web/app/immutable/chunks/{DBLawIp_.js → D74IXn65.js} +1 -1
- package/web/app/immutable/chunks/{BHL5MsfB.js → D7wJhAnY.js} +1 -1
- package/web/app/immutable/chunks/{Cppe-wSX.js → DBIZsiql.js} +1 -1
- package/web/app/immutable/chunks/{DshT-ERa.js → DBV1CnUE.js} +1 -1
- package/web/app/immutable/chunks/{B2hdZBro.js → DDWW4aEF.js} +1 -1
- package/web/app/immutable/chunks/{DUl0e4O4.js → DE5PIUSw.js} +1 -1
- package/web/app/immutable/chunks/{C4tLIUi-.js → DFes1OFO.js} +1 -1
- package/web/app/immutable/chunks/{DN9Sgz-I.js → DGQD3c01.js} +1 -1
- package/web/app/immutable/chunks/{3Y9y-sdV.js → DHiM-AM5.js} +1 -1
- package/web/app/immutable/chunks/DIZ4FVb2.js +18 -0
- package/web/app/immutable/chunks/{DB0od0be.js → DImKkYU8.js} +1 -1
- package/web/app/immutable/chunks/{-GL8Xg-u.js → DIzn_5le.js} +1 -1
- package/web/app/immutable/chunks/{CwQ4F1Ab.js → DLuzW_sw.js} +1 -1
- package/web/app/immutable/chunks/{Bqwi0BWF.js → DLwjoPi-.js} +1 -1
- package/web/app/immutable/chunks/{Bi0GbwSO.js → DMBgFuVn.js} +1 -1
- package/web/app/immutable/chunks/{o8OJf27v.js → DNbwLiOD.js} +1 -1
- package/web/app/immutable/chunks/{BZNhUzh7.js → DPgIFT9a.js} +1 -1
- package/web/app/immutable/chunks/{CgjVDtx1.js → DPr1KaRP.js} +1 -1
- package/web/app/immutable/chunks/{wozemaTW.js → DQZE5Czs.js} +3 -3
- package/web/app/immutable/chunks/{BGFHZ0Gn.js → DQxz8V0J.js} +1 -1
- package/web/app/immutable/chunks/{D2Fb9aao.js → DShqgEnv.js} +1 -1
- package/web/app/immutable/chunks/{DDghWae5.js → DUl_-rTL.js} +1 -1
- package/web/app/immutable/chunks/{BhEPk3lK.js → DVDkPCJb.js} +1 -1
- package/web/app/immutable/chunks/{C9iz-mkw.js → DV_kwNjV.js} +1 -1
- package/web/app/immutable/chunks/{BcLb4U6k.js → DV_mjaDS.js} +1 -1
- package/web/app/immutable/chunks/{aCBgdpmi.js → DVtTRYro.js} +4 -4
- package/web/app/immutable/chunks/{Vj7OREkP.js → DW8KsuX4.js} +1 -1
- package/web/app/immutable/chunks/{CFBVUms-.js → D_TV1KoB.js} +1 -1
- package/web/app/immutable/chunks/{BdllAkCb.js → Da1sSxnj.js} +1 -1
- package/web/app/immutable/chunks/{Cal0nWOf.js → Da4Iij0H.js} +1 -1
- package/web/app/immutable/chunks/{BGhLlR2Z.js → Dc2cxcpy.js} +1 -1
- package/web/app/immutable/chunks/{CvLqwfko.js → Dc9RwHk1.js} +1 -1
- package/web/app/immutable/chunks/{C5vF3pAx.js → DddS0Lxi.js} +1 -1
- package/web/app/immutable/chunks/{xgWQsr-g.js → De2qZObv.js} +3 -3
- package/web/app/immutable/chunks/{CUtP3PhY.js → Dfq3kecl.js} +1 -1
- package/web/app/immutable/chunks/{DUgG-2k6.js → Di_Co9NR.js} +1 -1
- package/web/app/immutable/chunks/{CeOSarF3.js → Dix5ieD0.js} +1 -1
- package/web/app/immutable/chunks/{Bgg-wBTF.js → DjrWSiZH.js} +1 -1
- package/web/app/immutable/chunks/{9RsJ-LA0.js → Dky-2Jfq.js} +1 -1
- package/web/app/immutable/chunks/{an5t-R7s.js → Dl-1cK26.js} +1 -1
- package/web/app/immutable/chunks/{z5Kqmpp_.js → DlZGWt2o.js} +1 -1
- package/web/app/immutable/chunks/{DKmM0bqR.js → DpVk5aau.js} +1 -1
- package/web/app/immutable/chunks/{DRKAw6pI.js → Dpq4LLhj.js} +1 -1
- package/web/app/immutable/chunks/{CFvkwWFr.js → DprVQ2cA.js} +1 -1
- package/web/app/immutable/chunks/{VIItGFPL.js → Dq9gyYYW.js} +3 -3
- package/web/app/immutable/chunks/{gjFD8LCr.js → Dr8h9pQh.js} +1 -1
- package/web/app/immutable/chunks/{BiTsq1kw.js → DtA3iCKc.js} +1 -1
- package/web/app/immutable/chunks/{BrMgU118.js → DuDV8ZK3.js} +1 -1
- package/web/app/immutable/chunks/{CRtL6sYK.js → DvjdgbnN.js} +1 -1
- package/web/app/immutable/chunks/{CtFCyWOY.js → DyqEo12-.js} +1 -1
- package/web/app/immutable/chunks/{Bc_8WxDl.js → DzDKk1gg.js} +1 -1
- package/web/app/immutable/chunks/{DyJ_15yQ.js → E0mAs65C.js} +1 -1
- package/web/app/immutable/chunks/{D44dgkjW.js → FWWAmx1z.js} +2 -2
- package/web/app/immutable/chunks/{DY3dk38M.js → Ffkre1hG.js} +1 -1
- package/web/app/immutable/chunks/{BL9BSWt_.js → G3nZ7pCW.js} +1 -1
- package/web/app/immutable/chunks/{H0XHH9Lx.js → IXLuPeCo.js} +1 -1
- package/web/app/immutable/chunks/{CIP1ZfWd.js → JdvuJp6h.js} +2 -2
- package/web/app/immutable/chunks/{CdL46F2Z.js → JpmjV7Db.js} +1 -1
- package/web/app/immutable/chunks/{ClCKezvS.js → Jx27GIgX.js} +2 -2
- package/web/app/immutable/chunks/{B7Wb6zTq.js → K1lMPseK.js} +1 -1
- package/web/app/immutable/chunks/{_3D340Va.js → LXOG-o0_.js} +1 -1
- package/web/app/immutable/chunks/{DhMj2plM.js → MTrJWGR3.js} +1 -1
- package/web/app/immutable/chunks/{xO5nwwWo.js → MXy6fSLt.js} +1 -1
- package/web/app/immutable/chunks/{W4t3dmSv.js → MyzIOb1W.js} +1 -1
- package/web/app/immutable/chunks/{D8DZcNyr.js → PTBua5Xh.js} +1 -1
- package/web/app/immutable/chunks/{Dn9JK5a2.js → QM7Mq3rU.js} +1 -1
- package/web/app/immutable/chunks/{BxWSOWVO.js → QOrjinFU.js} +3 -3
- package/web/app/immutable/chunks/{DRkmccaa.js → SrK4MHE8.js} +1 -1
- package/web/app/immutable/chunks/{DDI0uI_H.js → SvwZEEzi.js} +1 -1
- package/web/app/immutable/chunks/{CKHgkzsh.js → U9kPfLYu.js} +1 -1
- package/web/app/immutable/chunks/{FNHey2fE.js → UZLf_gOh.js} +1 -1
- package/web/app/immutable/chunks/{CekHYIsk.js → WEBZ_o06.js} +1 -1
- package/web/app/immutable/chunks/{h1uEjX6Q.js → WcA2iudD.js} +1 -1
- package/web/app/immutable/chunks/{CNB2bBwk.js → XsSJjm3Z.js} +8 -8
- package/web/app/immutable/chunks/{HECvQSCC.js → Z8gxmaiy.js} +1 -1
- package/web/app/immutable/chunks/{h3ky2Xtl.js → ZXJR49AE.js} +1 -1
- package/web/app/immutable/chunks/{DYFkelx6.js → Zy5yxdde.js} +1 -1
- package/web/app/immutable/chunks/{DtYBp20I.js → aum-ppe_.js} +1 -1
- package/web/app/immutable/chunks/{BE4lD4BS.js → dIHdrZ0J.js} +1 -1
- package/web/app/immutable/chunks/{BLqH6j99.js → e4uVi_xz.js} +1 -1
- package/web/app/immutable/chunks/{CHF-Yq0C.js → gZyD4Xgg.js} +1 -1
- package/web/app/immutable/chunks/{EpMOyykO.js → hO5lTYJC.js} +1 -1
- package/web/app/immutable/chunks/{B4RPI3PE.js → iQC_aRCT.js} +1 -1
- package/web/app/immutable/chunks/{IoeO06yf.js → j08cx_T3.js} +1 -1
- package/web/app/immutable/chunks/{Duw-IZjh.js → koCKQeZ_.js} +1 -1
- package/web/app/immutable/chunks/{DNMw7H4R.js → laFj_6My.js} +1 -1
- package/web/app/immutable/chunks/{C6yKW00v.js → ljoDFKjK.js} +1 -1
- package/web/app/immutable/chunks/{WTd8htj2.js → ngC86qBA.js} +1 -1
- package/web/app/immutable/chunks/{D8dxdzMn.js → olmjZOKg.js} +1 -1
- package/web/app/immutable/chunks/{YNqVM6Pn.js → ozsIGez9.js} +1 -1
- package/web/app/immutable/chunks/{kslXii-P.js → p0XTH9N8.js} +1 -1
- package/web/app/immutable/chunks/{DQ0fhYWC.js → pJfd5MmO.js} +1 -1
- package/web/app/immutable/chunks/{DlAbpA5d.js → qKduNlhU.js} +1 -1
- package/web/app/immutable/chunks/{y6VRBo2M.js → qRsIi_ln.js} +1 -1
- package/web/app/immutable/chunks/{B5F8O-gO.js → rbIA3dG7.js} +1 -1
- package/web/app/immutable/chunks/{CWhinB9Y.js → tJ-CDXo8.js} +12 -12
- package/web/app/immutable/chunks/{D1gMbWP8.js → tksjIHll.js} +1 -1
- package/web/app/immutable/chunks/{GM1mBWt-.js → ufjD9HMd.js} +1 -1
- package/web/app/immutable/chunks/{D8a7wHlQ.js → vAfS3WCg.js} +1 -1
- package/web/app/immutable/chunks/{9a62qcQ7.js → vzubbBuY.js} +1 -1
- package/web/app/immutable/chunks/{Tbbe1dbh.js → xP-uKOUF.js} +1 -1
- package/web/app/immutable/entry/{app.D05YlZME.js → app.Dc4YeEY_.js} +2 -2
- package/web/app/immutable/entry/start.PtYCYwR4.js +1 -0
- package/web/app/immutable/nodes/{0.LnuswXdL.js → 0.DbnCL5nQ.js} +1 -1
- package/web/app/immutable/nodes/{1.BBz2p_l7.js → 1.CVS85gWq.js} +1 -1
- package/web/app/immutable/nodes/{10.Bkss7kyV.js → 10.CZl73L63.js} +1 -1
- package/web/app/immutable/nodes/{12.ahtCER6A.js → 12.ovtxIhM8.js} +1 -1
- package/web/app/immutable/nodes/{13.DYGu0QHS.js → 13.Bu_iJM_J.js} +1 -1
- package/web/app/immutable/nodes/{14.CHRRgsAs.js → 14.CT1XXzad.js} +1 -1
- package/web/app/immutable/nodes/{15.De0cpvot.js → 15.LrePapt-.js} +1 -1
- package/web/app/immutable/nodes/{16.DJqmOr4R.js → 16.CVL9-Zg8.js} +2 -2
- package/web/app/immutable/nodes/2.BoJKKzRY.js +9 -0
- package/web/app/immutable/nodes/{3.CjrKR4es.js → 3.DyGbBGpY.js} +1 -1
- package/web/app/immutable/nodes/{4.Cc1Wrh3X.js → 4.Bv-XaVrT.js} +1 -1
- package/web/app/immutable/nodes/{5.riH2s22o.js → 5.D3L4L-Jl.js} +1 -1
- package/web/app/immutable/nodes/{6.DFzfBxxH.js → 6.CCiQpsFo.js} +1 -1
- package/web/app/immutable/nodes/{7.DuBvggKz.js → 7.BmWbhC6E.js} +1 -1
- package/web/app/immutable/nodes/{8.D0_snN-z.js → 8.DqfjoiGI.js} +4 -4
- package/web/app/immutable/nodes/{9.FxuJzZaQ.js → 9.B6Z2Rp8_.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +10 -10
- package/web/app/immutable/assets/0.Hnrlh_nF.css +0 -1
- package/web/app/immutable/assets/5.MJsnOXij.css +0 -1
- package/web/app/immutable/chunks/CZOawK4P.js +0 -18
- package/web/app/immutable/chunks/Cf3hiWsI.js +0 -1
- package/web/app/immutable/chunks/Dmk6CuVf.js +0 -324
- package/web/app/immutable/chunks/l87kbv25.js +0 -1
- package/web/app/immutable/entry/start.CltNpI3_.js +0 -1
- package/web/app/immutable/nodes/2.0WZE4VZ1.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
var mt=Object.defineProperty;var Qe=r=>{throw TypeError(r)};var yt=(r,e,n)=>e in r?mt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var b=(r,e,n)=>yt(r,typeof e!="symbol"?e+"":e,n),bt=(r,e,n)=>e.has(r)||Qe("Cannot "+n);var l=(r,e,n)=>(bt(r,e,"read from private field"),n?n.call(r):e.get(r)),w=(r,e,n)=>e.has(r)?Qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,n);import{aR as B,aP as Ye,aQ as Fe,m as _t,a0 as Ct,l as Ot,ab as Pt,Y as wt,b3 as St,aJ as xt,ad as Nt,bM as Ze,bL as Te,O as $e,bZ as At,w as Et,bN as Ae,bV as R,aD as u,bH as _,c9 as E,bo as _e,bs as L,a7 as I,ay as A,W as O,bn as U,aA as i,a5 as Ce,bf as V,bA as Oe,aB as Y,bS as et,aG as Xe,br as It,ca as kt,bI as it}from"./B8o4lNgr.js";import{B as Ft,t as j,bq as a,a_ as X,by as q,b as z,br as Z,bt as Ee}from"./DMsRLycu.js";import{B as tt,f as Tt,D as Rt}from"./AEjnVR5F.js";import{s as F}from"./BsvsTmot.js";import{c as Pe}from"./ZX1TUMY0.js";import{h as Dt,a6 as rt,aJ as S,bM as Ge,bu as Mt,b1 as Bt,av as we,aS as Kt,b2 as at,aE as Ie,ad as Wt,l as Xt,aT as D,bn as K,bp as k,I as Gt,n as Jt,j as Lt,al as Ut,ag as nt}from"./CNB2bBwk.js";import{c as Vt}from"./i6wjEWTF.js";import{k as jt}from"./C4WMSxMK.js";import{ba as qt}from"./Ba4gy30X.js";function kr(r,e,n,o,v,h){let m=B;B&&Ye();var d=null;B&&Fe.nodeType===_t&&(d=Fe,Ye());var P=B?Fe:r,p=$e,f=new Ft(P,!1);Ct(()=>{const y=e()||null;var C=y==="svg"?Et:void 0;if(y===null){f.ensure(null,null),Ae(!0);return}return f.ensure(y,N=>{if(y){if(d=B?d:Pt(y,C),wt(d,d),o){var x=null;B&&St(y)&&d.append(x=document.createComment(""));var s=B?xt(d):d.appendChild(Nt());B&&(s===null?Ze(!1):Te(s)),tt(p),o(d,s),x?.remove(),tt(null)}$e.nodes.end=d,N.before(d)}B&&Te(N)}),Ae(!0),()=>{y&&Ae(!1)}},Ot),At(()=>{Ae(!0)}),m&&(Ze(!0),Te(P))}const zt=Kt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),J=new Dt("Dialog.Root | AlertDialog.Root");var re,ne,se,oe,ie,ae,le,de,ce,ue,he;const Je=class Je{constructor(e,n){b(this,"opts");w(this,re,R(null));w(this,ne,R(null));w(this,se,R(null));w(this,oe,R(null));w(this,ie,R(void 0));w(this,ae,R(void 0));w(this,le,R(void 0));w(this,de,R(void 0));w(this,ce,R(null));w(this,ue,R(0));b(this,"depth");b(this,"parent");b(this,"contentPresence");b(this,"overlayPresence");b(this,"getBitsAttr",e=>zt.getAttr(e,this.opts.variant.current));w(this,he,E(()=>({"data-state":Bt(this.opts.open.current)})));this.opts=e,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new rt({ref:S(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new rt({ref:S(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Ge(()=>this.opts.open.current,o=>{this.parent&&(o?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Mt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const n=J.getOr(null);return J.set(new Je(e,n))}get triggerNode(){return u(l(this,re))}set triggerNode(e){_(l(this,re),e,!0)}get contentNode(){return u(l(this,ne))}set contentNode(e){_(l(this,ne),e,!0)}get overlayNode(){return u(l(this,se))}set overlayNode(e){_(l(this,se),e,!0)}get descriptionNode(){return u(l(this,oe))}set descriptionNode(e){_(l(this,oe),e,!0)}get contentId(){return u(l(this,ie))}set contentId(e){_(l(this,ie),e,!0)}get titleId(){return u(l(this,ae))}set titleId(e){_(l(this,ae),e,!0)}get triggerId(){return u(l(this,le))}set triggerId(e){_(l(this,le),e,!0)}get descriptionId(){return u(l(this,de))}set descriptionId(e){_(l(this,de),e,!0)}get cancelNode(){return u(l(this,ce))}set cancelNode(e){_(l(this,ce),e,!0)}get nestedOpenCount(){return u(l(this,ue))}set nestedOpenCount(e){_(l(this,ue),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return u(l(this,he))}set sharedProps(e){_(l(this,he),e)}};re=new WeakMap,ne=new WeakMap,se=new WeakMap,oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap,he=new WeakMap;let Re=Je;var pe;const Le=class Le{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,pe,E(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.attachment=we(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Le(e,J.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Wt||e.key===Xt)&&(e.preventDefault(),this.root.handleClose())}get props(){return u(l(this,pe))}set props(e){_(l(this,pe),e)}};pe=new WeakMap;let De=Le;var fe;const Ue=class Ue{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,fe,E(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=we(this.opts.ref),Ge.pre(()=>this.opts.id.current,o=>{this.root.titleId=o})}static create(e){return new Ue(e,J.get())}get props(){return u(l(this,fe))}set props(e){_(l(this,fe),e)}};fe=new WeakMap;let Me=Ue;var ge;const Ve=class Ve{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,ge,E(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=we(this.opts.ref,o=>{this.root.descriptionNode=o}),Ge.pre(()=>this.opts.id.current,o=>{this.root.descriptionId=o})}static create(e){return new Ve(e,J.get())}get props(){return u(l(this,ge))}set props(e){_(l(this,ge),e)}};ge=new WeakMap;let Be=Ve;var ve,me;const je=class je{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,ve,E(()=>({open:this.root.opts.open.current})));w(this,me,E(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...at(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.attachment=we(this.opts.ref,o=>{this.root.contentNode=o,this.root.contentId=o?.id})}static create(e){return new je(e,J.get())}get snippetProps(){return u(l(this,ve))}set snippetProps(e){_(l(this,ve),e)}get props(){return u(l(this,me))}set props(e){_(l(this,me),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};ve=new WeakMap,me=new WeakMap;let Ke=je;var ye,be;const qe=class qe{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,ye,E(()=>({open:this.root.opts.open.current})));w(this,be,E(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...at(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.attachment=we(this.opts.ref,o=>this.root.overlayNode=o)}static create(e){return new qe(e,J.get())}get snippetProps(){return u(l(this,ye))}set snippetProps(e){_(l(this,ye),e)}get props(){return u(l(this,be))}set props(e){_(l(this,be),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};ye=new WeakMap,be=new WeakMap;let We=qe;var Ht=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Qt=Y("<div><!></div>");function Yt(r,e){const n=_e();if(new.target)return j({component:Yt,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"ref",15,null),h=a(e,"child",7),m=a(e,"children",7),d=a(e,"level",7,2),P=Z(e,Ht);const p=Me.create({id:S(()=>o()),level:S(()=>d()),ref:S(()=>v(),t=>v(t))}),f=E(()=>K(P,p.props));var y={get id(){return o()},set id(t=D(n)){o(t),i()},get ref(){return v()},set ref(t=null){v(t),i()},get child(){return h()},set child(t){h(t),i()},get children(){return m()},set children(t){m(t),i()},get level(){return d()},set level(t=2){d(t),i()},$set:q,$on:(t,g)=>z(e,t,g)},C=I(),N=A(C);{var x=t=>{var g=I(),T=A(g);F(T,h,()=>({props:u(f)})),O(t,g)},s=t=>{var g=Qt();Pe(g,()=>({...u(f)}));var T=Ce(g);F(T,()=>m()??V),Oe(g),O(t,g)};X(N,t=>{h()?t(x):t(s,-1)})}return O(r,C),U(y)}var Zt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),$t=Y("<div><!></div>");function er(r,e){const n=_e();if(new.target)return j({component:er,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"forceMount",7,!1),h=a(e,"child",7),m=a(e,"children",7),d=a(e,"ref",15,null),P=Z(e,Zt);const p=We.create({id:S(()=>o()),ref:S(()=>d(),s=>d(s))}),f=E(()=>K(P,p.props));var y={get id(){return o()},set id(s=D(n)){o(s),i()},get forceMount(){return v()},set forceMount(s=!1){v(s),i()},get child(){return h()},set child(s){h(s),i()},get children(){return m()},set children(s){m(s),i()},get ref(){return d()},set ref(s=null){d(s),i()},$set:q,$on:(s,t)=>z(e,s,t)},C=I(),N=A(C);{var x=s=>{var t=I(),g=A(t);{var T=W=>{var M=I(),c=A(M);{let H=E(()=>({props:K(u(f)),...p.snippetProps}));F(c,h,()=>u(H))}O(W,M)},Se=W=>{var M=$t();Pe(M,H=>({...H}),[()=>K(u(f))]);var c=Ce(M);F(c,()=>m()??V,()=>p.snippetProps),Oe(M),O(W,M)};X(g,W=>{h()?W(T):W(Se,-1)})}O(s,t)};X(N,s=>{(p.shouldRender||v())&&s(x)})}return O(r,C),U(y)}var tr=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),rr=Y("<div><!></div>");function nr(r,e){const n=_e();if(new.target)return j({component:nr,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"children",7),h=a(e,"child",7),m=a(e,"ref",15,null),d=Z(e,tr);const P=Be.create({id:S(()=>o()),ref:S(()=>m(),s=>m(s))}),p=E(()=>K(d,P.props));var f={get id(){return o()},set id(s=D(n)){o(s),i()},get children(){return v()},set children(s){v(s),i()},get child(){return h()},set child(s){h(s),i()},get ref(){return m()},set ref(s=null){m(s),i()},$set:q,$on:(s,t)=>z(e,s,t)},y=I(),C=A(y);{var N=s=>{var t=I(),g=A(t);F(g,h,()=>({props:u(p)})),O(s,t)},x=s=>{var t=rr();Pe(t,()=>({...u(p)}));var g=Ce(t);F(g,()=>v()??V),Oe(t),O(s,t)};X(C,s=>{h()?s(N):s(x,-1)})}return O(r,y),U(f)}function lt(r,e){if(new.target)return j({component:lt,...r});L(e,!0);let n=a(e,"open",15,!1),o=a(e,"onOpenChange",7,k),v=a(e,"onOpenChangeComplete",7,k),h=a(e,"children",7);Re.create({variant:S(()=>"dialog"),open:S(()=>n(),p=>{n(p),o()(p)}),onOpenChangeComplete:S(()=>v())});var m={get open(){return n()},set open(p=!1){n(p),i()},get onOpenChange(){return o()},set onOpenChange(p=k){o(p),i()},get onOpenChangeComplete(){return v()},set onOpenChangeComplete(p=k){v(p),i()},get children(){return h()},set children(p){h(p),i()},$set:q,$on:(p,f)=>z(e,p,f)},d=I(),P=A(d);return F(P,()=>h()??V),O(r,d),U(m)}var sr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),or=Y("<button><!></button>");function ir(r,e){const n=_e();if(new.target)return j({component:ir,...r});L(e,!0);let o=a(e,"children",7),v=a(e,"child",7),h=a(e,"id",23,()=>D(n)),m=a(e,"ref",15,null),d=a(e,"disabled",7,!1),P=Z(e,sr);const p=De.create({variant:S(()=>"close"),id:S(()=>h()),ref:S(()=>m(),t=>m(t)),disabled:S(()=>!!d())}),f=E(()=>K(P,p.props));var y={get children(){return o()},set children(t){o(t),i()},get child(){return v()},set child(t){v(t),i()},get id(){return h()},set id(t=D(n)){h(t),i()},get ref(){return m()},set ref(t=null){m(t),i()},get disabled(){return d()},set disabled(t=!1){d(t),i()},$set:q,$on:(t,g)=>z(e,t,g)},C=I(),N=A(C);{var x=t=>{var g=I(),T=A(g);F(T,v,()=>({props:u(f)})),O(t,g)},s=t=>{var g=or();Pe(g,()=>({...u(f)}));var T=Ce(g);F(T,()=>o()??V),Oe(g),O(t,g)};X(N,t=>{v()?t(x):t(s,-1)})}return O(r,C),U(y)}var ar=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),lr=Y("<!> <!>",1),dr=Y("<!> <div><!></div>",1);function cr(r,e){const n=_e();if(new.target)return j({component:cr,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"children",7),h=a(e,"child",7),m=a(e,"ref",15,null),d=a(e,"forceMount",7,!1),P=a(e,"onCloseAutoFocus",7,k),p=a(e,"onOpenAutoFocus",7,k),f=a(e,"onEscapeKeydown",7,k),y=a(e,"onInteractOutside",7,k),C=a(e,"trapFocus",7,!0),N=a(e,"preventScroll",7,!0),x=a(e,"restoreScrollDelay",7,null),s=Z(e,ar);const t=Ke.create({id:S(()=>o()),ref:S(()=>m(),c=>m(c))}),g=E(()=>K(s,t.props));var T={get id(){return o()},set id(c=D(n)){o(c),i()},get children(){return v()},set children(c){v(c),i()},get child(){return h()},set child(c){h(c),i()},get ref(){return m()},set ref(c=null){m(c),i()},get forceMount(){return d()},set forceMount(c=!1){d(c),i()},get onCloseAutoFocus(){return P()},set onCloseAutoFocus(c=k){P(c),i()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(c=k){p(c),i()},get onEscapeKeydown(){return f()},set onEscapeKeydown(c=k){f(c),i()},get onInteractOutside(){return y()},set onInteractOutside(c=k){y(c),i()},get trapFocus(){return C()},set trapFocus(c=!0){C(c),i()},get preventScroll(){return N()},set preventScroll(c=!0){N(c),i()},get restoreScrollDelay(){return x()},set restoreScrollDelay(c=null){x(c),i()},$set:q,$on:(c,H)=>z(e,c,H)},Se=I(),W=A(Se);{var M=c=>{Gt(c,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return C()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return P()},focusScope:(ut,ht)=>{let ze=()=>(ht?.()).props;Jt(ut,Ee(()=>u(g),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:xe=>{f()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,yr)=>{Lt(xe,Ee(()=>u(g),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:Ne=>{y()(Ne),!Ne.defaultPrevented&&t.root.handleClose()},children:(Ne,br)=>{Ut(Ne,Ee(()=>u(g),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(pt,_r)=>{var He=I(),ft=A(He);{var gt=Q=>{var $=lr(),ee=A($);{var te=G=>{nt(G,{get preventScroll(){return N()},get restoreScrollDelay(){return x()}})};X(ee,G=>{t.root.opts.open.current&&G(te)})}var ke=et(ee,2);{let G=E(()=>({props:K(u(g),ze()),...t.snippetProps}));F(ke,h,()=>u(G))}O(Q,$)},vt=Q=>{var $=dr(),ee=A($);nt(ee,{get preventScroll(){return N()}});var te=et(ee,2);Pe(te,G=>({...G}),[()=>K(u(g),ze())]);var ke=Ce(te);F(ke,()=>v()??V),Oe(te),O(Q,$)};X(ft,Q=>{h()?Q(gt):Q(vt,-1)})}O(pt,He)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};X(W,c=>{(t.shouldRender||d())&&c(M)})}return O(r,Se),U(T)}const dt=Symbol("overlay-open"),ct=Symbol("overlay-static"),st={tier:"moderate",x:0,y:0,scale:1,opacity:0},ot={tier:"slow",x:0,y:8,scale:.97,opacity:0},ur={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},Fr={backdrop:{enter:st,exit:st},dialog:{enter:ot,exit:ot},sheet(r){const e={tier:"slow",scale:1,opacity:1,...ur[r]};return{enter:e,exit:e}}};function hr(r){it(dt,r)}function Tr(){const r=Xe(dt);if(!r)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return r}function pr(r){it(ct,r)}function Rr(){return Xe(ct)??(()=>!1)}function Dr(r){let e=R(It(r()));return kt(()=>{if(r()){_(e,!0);return}if(!u(e))return;const n=window.setTimeout(()=>_(e,!1),Tt(Rt.slow));return()=>window.clearTimeout(n)}),{get mounted(){return u(e)},finishExit(){r()||_(e,!1)}}}var fr=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function gr(r,e){if(new.target)return j({component:gr,...r});L(e,!0);let n=a(e,"open",15,!1),o=a(e,"staticPosition",7,!1),v=a(e,"children",7),h=a(e,"onOpenChange",7),m=Z(e,fr);hr(()=>n()),pr(()=>o()),jt(()=>{n(!1),h()?.(!1)});var d={get open(){return n()},set open(f=!1){n(f),i()},get staticPosition(){return o()},set staticPosition(f=!1){o(f),i()},get children(){return v()},set children(f){v(f),i()},get onOpenChange(){return h()},set onOpenChange(f){h(f),i()},$set:q,$on:(f,y)=>z(e,f,y)},P=I(),p=A(P);return Vt(p,()=>lt,(f,y)=>{y(f,Ee({get onOpenChange(){return h()}},()=>m,{get open(){return n()},set open(C){n(C)},children:(C,N)=>{var x=I(),s=A(x);F(s,()=>v()??V),O(C,x)},$$slots:{default:!0}}))}),O(r,P),U(d)}const vr=Symbol("workspace-route-context");function mr(r){return r&&r!=="new"?qt(r):null}function Mr(r,e){return r?.startsWith("/workspace/")?mr(e):null}function Br(){try{return Xe(vr)}catch{return}}export{ir as D,gr as O,vr as W,cr as a,nr as b,er as c,Yt as d,Dr as e,kr as f,Br as g,Rr as h,mr as i,Fr as o,Tr as u,Mr as w};
|
|
1
|
+
var mt=Object.defineProperty;var Qe=r=>{throw TypeError(r)};var yt=(r,e,n)=>e in r?mt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var b=(r,e,n)=>yt(r,typeof e!="symbol"?e+"":e,n),bt=(r,e,n)=>e.has(r)||Qe("Cannot "+n);var l=(r,e,n)=>(bt(r,e,"read from private field"),n?n.call(r):e.get(r)),w=(r,e,n)=>e.has(r)?Qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,n);import{aR as B,aP as Ye,aQ as Fe,m as _t,a0 as Ct,l as Ot,ab as Pt,Y as wt,b3 as St,aJ as xt,ad as Nt,bM as Ze,bL as Te,O as $e,bZ as At,w as Et,bN as Ae,bV as R,aD as u,bH as _,c9 as E,bo as _e,bs as L,a7 as I,ay as A,W as O,bn as U,aA as i,a5 as Ce,bf as V,bA as Oe,aB as Y,bS as et,aG as Xe,br as It,ca as kt,bI as it}from"./B8o4lNgr.js";import{B as Ft,t as j,bq as a,a_ as X,by as q,b as z,br as Z,bt as Ee}from"./DMsRLycu.js";import{B as tt,f as Tt,D as Rt}from"./AEjnVR5F.js";import{s as F}from"./BsvsTmot.js";import{c as Pe}from"./ZX1TUMY0.js";import{h as Dt,a6 as rt,aJ as S,bM as Ge,bu as Mt,b1 as Bt,av as we,aS as Kt,b2 as at,aE as Ie,ad as Wt,l as Xt,aT as D,bn as K,bp as k,I as Gt,n as Jt,j as Lt,al as Ut,ag as nt}from"./XsSJjm3Z.js";import{c as Vt}from"./i6wjEWTF.js";import{k as jt}from"./BBW6O_MW.js";import{ba as qt}from"./Ba4gy30X.js";function kr(r,e,n,o,v,h){let m=B;B&&Ye();var d=null;B&&Fe.nodeType===_t&&(d=Fe,Ye());var P=B?Fe:r,p=$e,f=new Ft(P,!1);Ct(()=>{const y=e()||null;var C=y==="svg"?Et:void 0;if(y===null){f.ensure(null,null),Ae(!0);return}return f.ensure(y,N=>{if(y){if(d=B?d:Pt(y,C),wt(d,d),o){var x=null;B&&St(y)&&d.append(x=document.createComment(""));var s=B?xt(d):d.appendChild(Nt());B&&(s===null?Ze(!1):Te(s)),tt(p),o(d,s),x?.remove(),tt(null)}$e.nodes.end=d,N.before(d)}B&&Te(N)}),Ae(!0),()=>{y&&Ae(!1)}},Ot),At(()=>{Ae(!0)}),m&&(Ze(!0),Te(P))}const zt=Kt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),J=new Dt("Dialog.Root | AlertDialog.Root");var re,ne,se,oe,ie,ae,le,de,ce,ue,he;const Je=class Je{constructor(e,n){b(this,"opts");w(this,re,R(null));w(this,ne,R(null));w(this,se,R(null));w(this,oe,R(null));w(this,ie,R(void 0));w(this,ae,R(void 0));w(this,le,R(void 0));w(this,de,R(void 0));w(this,ce,R(null));w(this,ue,R(0));b(this,"depth");b(this,"parent");b(this,"contentPresence");b(this,"overlayPresence");b(this,"getBitsAttr",e=>zt.getAttr(e,this.opts.variant.current));w(this,he,E(()=>({"data-state":Bt(this.opts.open.current)})));this.opts=e,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new rt({ref:S(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new rt({ref:S(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Ge(()=>this.opts.open.current,o=>{this.parent&&(o?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Mt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const n=J.getOr(null);return J.set(new Je(e,n))}get triggerNode(){return u(l(this,re))}set triggerNode(e){_(l(this,re),e,!0)}get contentNode(){return u(l(this,ne))}set contentNode(e){_(l(this,ne),e,!0)}get overlayNode(){return u(l(this,se))}set overlayNode(e){_(l(this,se),e,!0)}get descriptionNode(){return u(l(this,oe))}set descriptionNode(e){_(l(this,oe),e,!0)}get contentId(){return u(l(this,ie))}set contentId(e){_(l(this,ie),e,!0)}get titleId(){return u(l(this,ae))}set titleId(e){_(l(this,ae),e,!0)}get triggerId(){return u(l(this,le))}set triggerId(e){_(l(this,le),e,!0)}get descriptionId(){return u(l(this,de))}set descriptionId(e){_(l(this,de),e,!0)}get cancelNode(){return u(l(this,ce))}set cancelNode(e){_(l(this,ce),e,!0)}get nestedOpenCount(){return u(l(this,ue))}set nestedOpenCount(e){_(l(this,ue),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return u(l(this,he))}set sharedProps(e){_(l(this,he),e)}};re=new WeakMap,ne=new WeakMap,se=new WeakMap,oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap,he=new WeakMap;let Re=Je;var pe;const Le=class Le{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,pe,E(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.attachment=we(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Le(e,J.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Wt||e.key===Xt)&&(e.preventDefault(),this.root.handleClose())}get props(){return u(l(this,pe))}set props(e){_(l(this,pe),e)}};pe=new WeakMap;let De=Le;var fe;const Ue=class Ue{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,fe,E(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=we(this.opts.ref),Ge.pre(()=>this.opts.id.current,o=>{this.root.titleId=o})}static create(e){return new Ue(e,J.get())}get props(){return u(l(this,fe))}set props(e){_(l(this,fe),e)}};fe=new WeakMap;let Me=Ue;var ge;const Ve=class Ve{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,ge,E(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=we(this.opts.ref,o=>{this.root.descriptionNode=o}),Ge.pre(()=>this.opts.id.current,o=>{this.root.descriptionId=o})}static create(e){return new Ve(e,J.get())}get props(){return u(l(this,ge))}set props(e){_(l(this,ge),e)}};ge=new WeakMap;let Be=Ve;var ve,me;const je=class je{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,ve,E(()=>({open:this.root.opts.open.current})));w(this,me,E(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...at(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.attachment=we(this.opts.ref,o=>{this.root.contentNode=o,this.root.contentId=o?.id})}static create(e){return new je(e,J.get())}get snippetProps(){return u(l(this,ve))}set snippetProps(e){_(l(this,ve),e)}get props(){return u(l(this,me))}set props(e){_(l(this,me),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};ve=new WeakMap,me=new WeakMap;let Ke=je;var ye,be;const qe=class qe{constructor(e,n){b(this,"opts");b(this,"root");b(this,"attachment");w(this,ye,E(()=>({open:this.root.opts.open.current})));w(this,be,E(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...at(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=n,this.attachment=we(this.opts.ref,o=>this.root.overlayNode=o)}static create(e){return new qe(e,J.get())}get snippetProps(){return u(l(this,ye))}set snippetProps(e){_(l(this,ye),e)}get props(){return u(l(this,be))}set props(e){_(l(this,be),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};ye=new WeakMap,be=new WeakMap;let We=qe;var Ht=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Qt=Y("<div><!></div>");function Yt(r,e){const n=_e();if(new.target)return j({component:Yt,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"ref",15,null),h=a(e,"child",7),m=a(e,"children",7),d=a(e,"level",7,2),P=Z(e,Ht);const p=Me.create({id:S(()=>o()),level:S(()=>d()),ref:S(()=>v(),t=>v(t))}),f=E(()=>K(P,p.props));var y={get id(){return o()},set id(t=D(n)){o(t),i()},get ref(){return v()},set ref(t=null){v(t),i()},get child(){return h()},set child(t){h(t),i()},get children(){return m()},set children(t){m(t),i()},get level(){return d()},set level(t=2){d(t),i()},$set:q,$on:(t,g)=>z(e,t,g)},C=I(),N=A(C);{var x=t=>{var g=I(),T=A(g);F(T,h,()=>({props:u(f)})),O(t,g)},s=t=>{var g=Qt();Pe(g,()=>({...u(f)}));var T=Ce(g);F(T,()=>m()??V),Oe(g),O(t,g)};X(N,t=>{h()?t(x):t(s,-1)})}return O(r,C),U(y)}var Zt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),$t=Y("<div><!></div>");function er(r,e){const n=_e();if(new.target)return j({component:er,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"forceMount",7,!1),h=a(e,"child",7),m=a(e,"children",7),d=a(e,"ref",15,null),P=Z(e,Zt);const p=We.create({id:S(()=>o()),ref:S(()=>d(),s=>d(s))}),f=E(()=>K(P,p.props));var y={get id(){return o()},set id(s=D(n)){o(s),i()},get forceMount(){return v()},set forceMount(s=!1){v(s),i()},get child(){return h()},set child(s){h(s),i()},get children(){return m()},set children(s){m(s),i()},get ref(){return d()},set ref(s=null){d(s),i()},$set:q,$on:(s,t)=>z(e,s,t)},C=I(),N=A(C);{var x=s=>{var t=I(),g=A(t);{var T=W=>{var M=I(),c=A(M);{let H=E(()=>({props:K(u(f)),...p.snippetProps}));F(c,h,()=>u(H))}O(W,M)},Se=W=>{var M=$t();Pe(M,H=>({...H}),[()=>K(u(f))]);var c=Ce(M);F(c,()=>m()??V,()=>p.snippetProps),Oe(M),O(W,M)};X(g,W=>{h()?W(T):W(Se,-1)})}O(s,t)};X(N,s=>{(p.shouldRender||v())&&s(x)})}return O(r,C),U(y)}var tr=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),rr=Y("<div><!></div>");function nr(r,e){const n=_e();if(new.target)return j({component:nr,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"children",7),h=a(e,"child",7),m=a(e,"ref",15,null),d=Z(e,tr);const P=Be.create({id:S(()=>o()),ref:S(()=>m(),s=>m(s))}),p=E(()=>K(d,P.props));var f={get id(){return o()},set id(s=D(n)){o(s),i()},get children(){return v()},set children(s){v(s),i()},get child(){return h()},set child(s){h(s),i()},get ref(){return m()},set ref(s=null){m(s),i()},$set:q,$on:(s,t)=>z(e,s,t)},y=I(),C=A(y);{var N=s=>{var t=I(),g=A(t);F(g,h,()=>({props:u(p)})),O(s,t)},x=s=>{var t=rr();Pe(t,()=>({...u(p)}));var g=Ce(t);F(g,()=>v()??V),Oe(t),O(s,t)};X(C,s=>{h()?s(N):s(x,-1)})}return O(r,y),U(f)}function lt(r,e){if(new.target)return j({component:lt,...r});L(e,!0);let n=a(e,"open",15,!1),o=a(e,"onOpenChange",7,k),v=a(e,"onOpenChangeComplete",7,k),h=a(e,"children",7);Re.create({variant:S(()=>"dialog"),open:S(()=>n(),p=>{n(p),o()(p)}),onOpenChangeComplete:S(()=>v())});var m={get open(){return n()},set open(p=!1){n(p),i()},get onOpenChange(){return o()},set onOpenChange(p=k){o(p),i()},get onOpenChangeComplete(){return v()},set onOpenChangeComplete(p=k){v(p),i()},get children(){return h()},set children(p){h(p),i()},$set:q,$on:(p,f)=>z(e,p,f)},d=I(),P=A(d);return F(P,()=>h()??V),O(r,d),U(m)}var sr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),or=Y("<button><!></button>");function ir(r,e){const n=_e();if(new.target)return j({component:ir,...r});L(e,!0);let o=a(e,"children",7),v=a(e,"child",7),h=a(e,"id",23,()=>D(n)),m=a(e,"ref",15,null),d=a(e,"disabled",7,!1),P=Z(e,sr);const p=De.create({variant:S(()=>"close"),id:S(()=>h()),ref:S(()=>m(),t=>m(t)),disabled:S(()=>!!d())}),f=E(()=>K(P,p.props));var y={get children(){return o()},set children(t){o(t),i()},get child(){return v()},set child(t){v(t),i()},get id(){return h()},set id(t=D(n)){h(t),i()},get ref(){return m()},set ref(t=null){m(t),i()},get disabled(){return d()},set disabled(t=!1){d(t),i()},$set:q,$on:(t,g)=>z(e,t,g)},C=I(),N=A(C);{var x=t=>{var g=I(),T=A(g);F(T,v,()=>({props:u(f)})),O(t,g)},s=t=>{var g=or();Pe(g,()=>({...u(f)}));var T=Ce(g);F(T,()=>o()??V),Oe(g),O(t,g)};X(N,t=>{v()?t(x):t(s,-1)})}return O(r,C),U(y)}var ar=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),lr=Y("<!> <!>",1),dr=Y("<!> <div><!></div>",1);function cr(r,e){const n=_e();if(new.target)return j({component:cr,...r});L(e,!0);let o=a(e,"id",23,()=>D(n)),v=a(e,"children",7),h=a(e,"child",7),m=a(e,"ref",15,null),d=a(e,"forceMount",7,!1),P=a(e,"onCloseAutoFocus",7,k),p=a(e,"onOpenAutoFocus",7,k),f=a(e,"onEscapeKeydown",7,k),y=a(e,"onInteractOutside",7,k),C=a(e,"trapFocus",7,!0),N=a(e,"preventScroll",7,!0),x=a(e,"restoreScrollDelay",7,null),s=Z(e,ar);const t=Ke.create({id:S(()=>o()),ref:S(()=>m(),c=>m(c))}),g=E(()=>K(s,t.props));var T={get id(){return o()},set id(c=D(n)){o(c),i()},get children(){return v()},set children(c){v(c),i()},get child(){return h()},set child(c){h(c),i()},get ref(){return m()},set ref(c=null){m(c),i()},get forceMount(){return d()},set forceMount(c=!1){d(c),i()},get onCloseAutoFocus(){return P()},set onCloseAutoFocus(c=k){P(c),i()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(c=k){p(c),i()},get onEscapeKeydown(){return f()},set onEscapeKeydown(c=k){f(c),i()},get onInteractOutside(){return y()},set onInteractOutside(c=k){y(c),i()},get trapFocus(){return C()},set trapFocus(c=!0){C(c),i()},get preventScroll(){return N()},set preventScroll(c=!0){N(c),i()},get restoreScrollDelay(){return x()},set restoreScrollDelay(c=null){x(c),i()},$set:q,$on:(c,H)=>z(e,c,H)},Se=I(),W=A(Se);{var M=c=>{Gt(c,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return C()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return P()},focusScope:(ut,ht)=>{let ze=()=>(ht?.()).props;Jt(ut,Ee(()=>u(g),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:xe=>{f()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,yr)=>{Lt(xe,Ee(()=>u(g),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:Ne=>{y()(Ne),!Ne.defaultPrevented&&t.root.handleClose()},children:(Ne,br)=>{Ut(Ne,Ee(()=>u(g),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(pt,_r)=>{var He=I(),ft=A(He);{var gt=Q=>{var $=lr(),ee=A($);{var te=G=>{nt(G,{get preventScroll(){return N()},get restoreScrollDelay(){return x()}})};X(ee,G=>{t.root.opts.open.current&&G(te)})}var ke=et(ee,2);{let G=E(()=>({props:K(u(g),ze()),...t.snippetProps}));F(ke,h,()=>u(G))}O(Q,$)},vt=Q=>{var $=dr(),ee=A($);nt(ee,{get preventScroll(){return N()}});var te=et(ee,2);Pe(te,G=>({...G}),[()=>K(u(g),ze())]);var ke=Ce(te);F(ke,()=>v()??V),Oe(te),O(Q,$)};X(ft,Q=>{h()?Q(gt):Q(vt,-1)})}O(pt,He)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};X(W,c=>{(t.shouldRender||d())&&c(M)})}return O(r,Se),U(T)}const dt=Symbol("overlay-open"),ct=Symbol("overlay-static"),st={tier:"moderate",x:0,y:0,scale:1,opacity:0},ot={tier:"slow",x:0,y:8,scale:.97,opacity:0},ur={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},Fr={backdrop:{enter:st,exit:st},dialog:{enter:ot,exit:ot},sheet(r){const e={tier:"slow",scale:1,opacity:1,...ur[r]};return{enter:e,exit:e}}};function hr(r){it(dt,r)}function Tr(){const r=Xe(dt);if(!r)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return r}function pr(r){it(ct,r)}function Rr(){return Xe(ct)??(()=>!1)}function Dr(r){let e=R(It(r()));return kt(()=>{if(r()){_(e,!0);return}if(!u(e))return;const n=window.setTimeout(()=>_(e,!1),Tt(Rt.slow));return()=>window.clearTimeout(n)}),{get mounted(){return u(e)},finishExit(){r()||_(e,!1)}}}var fr=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function gr(r,e){if(new.target)return j({component:gr,...r});L(e,!0);let n=a(e,"open",15,!1),o=a(e,"staticPosition",7,!1),v=a(e,"children",7),h=a(e,"onOpenChange",7),m=Z(e,fr);hr(()=>n()),pr(()=>o()),jt(()=>{n(!1),h()?.(!1)});var d={get open(){return n()},set open(f=!1){n(f),i()},get staticPosition(){return o()},set staticPosition(f=!1){o(f),i()},get children(){return v()},set children(f){v(f),i()},get onOpenChange(){return h()},set onOpenChange(f){h(f),i()},$set:q,$on:(f,y)=>z(e,f,y)},P=I(),p=A(P);return Vt(p,()=>lt,(f,y)=>{y(f,Ee({get onOpenChange(){return h()}},()=>m,{get open(){return n()},set open(C){n(C)},children:(C,N)=>{var x=I(),s=A(x);F(s,()=>v()??V),O(C,x)},$$slots:{default:!0}}))}),O(r,P),U(d)}const vr=Symbol("workspace-route-context");function mr(r){return r&&r!=="new"?qt(r):null}function Mr(r,e){return r?.startsWith("/workspace/")?mr(e):null}function Br(){try{return Xe(vr)}catch{return}}export{ir as D,gr as O,vr as W,cr as a,nr as b,er as c,Yt as d,Dr as e,kr as f,Br as g,Rr as h,mr as i,Fr as o,Tr as u,Mr as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as s,c as e,C as t}from"./
|
|
1
|
+
import{s as r,a as s,c as e,C as t}from"./E0mAs65C.js";import{a as i}from"./D3vOZLLK.js";import"./Clof0uHU.js";import"./B1Geyr6r.js";var u={parser:e,get db(){return new t},renderer:s,styles:r,init:i(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./CQ8ioTJp.js";import{p}from"./BZt_MPAk.js";import{f as t,bC as o}from"./Clof0uHU.js";import{M as u,b as c}from"./D4PNghsG.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as le}from"./Dm7OUuES.js";import{p as he}from"./DkZNeDFv.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./CJhZDVuE.js";import{p as Ee}from"./D4PNghsG.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{I as le}from"./C2kcG-kr.js";import{p as he}from"./BZt_MPAk.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./Clof0uHU.js";import{p as Ee}from"./D4PNghsG.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${s-i/2-L/2},${x+R}
|
|
3
3
|
${s-i/2-L/2},${x-R}
|
|
4
4
|
${t.posWithOffset-i/2-L},${x-c-R}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a7 as a,co as M,n as j}from"./
|
|
1
|
+
import{a7 as a,co as M,n as j}from"./Clof0uHU.js";function k(r,u){return u<r?-1:u>r?1:u>=r?0:NaN}function q(r){return r}function B(){var r=q,u=k,s=null,p=a(0),m=a(M),h=a(0);function t(n){var e,l=(n=j(n)).length,f,w,y=0,g=new Array(l),i=new Array(l),c=+p.apply(this,arguments),A=Math.min(M,Math.max(-M,m.apply(this,arguments)-c)),d,N=Math.min(Math.abs(A)/l,h.apply(this,arguments)),V=N*(A<0?-1:1),o;for(e=0;e<l;++e)(o=i[g[e]=e]=+r(n[e],e,n))>0&&(y+=o);for(u!=null?g.sort(function(v,x){return u(i[v],i[x])}):s!=null&&g.sort(function(v,x){return s(n[v],n[x])}),e=0,w=y?(A-l*V)/y:0;e<l;++e,c=d)f=g[e],o=i[f],d=c+(o>0?o*w:0)+V,i[f]={data:n[f],index:e,value:o,startAngle:c,endAngle:d,padAngle:N};return i}return t.value=function(n){return arguments.length?(r=typeof n=="function"?n:a(+n),t):r},t.sortValues=function(n){return arguments.length?(u=n,s=null,t):u},t.sort=function(n){return arguments.length?(s=n,u=null,t):s},t.startAngle=function(n){return arguments.length?(p=typeof n=="function"?n:a(+n),t):p},t.endAngle=function(n){return arguments.length?(m=typeof n=="function"?n:a(+n),t):m},t.padAngle=function(n){return arguments.length?(h=typeof n=="function"?n:a(+n),t):h},t}export{B as d};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var oe=Object.defineProperty;var ce=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ce(e,typeof t!="symbol"?t+"":t,r);import{a as le,i as de}from"./019JoT9w.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./D7gNyfhu.js";import{bo as a,_ as ue}from"./DMsRLycu.js";import{Gt as n,mC as _,mB as m,l6 as pe,wt as R,wu as L,wr as fe,ws as he,qd as Y,we as ge,Gf as me,a2 as be,bT as ve,bS as Se,c5 as ye,c4 as _e,mE as w}from"./Ba4gy30X.js";import{cs as we,bt as ke,c5 as Ee,ck as Re,c7 as Ce,cH as Ae,cL as Me,cB as Q,aw as Te,bP as Pe,cI as Ie}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/PTBua5Xh.js","/app/immutable/chunks/Dky-2Jfq.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/XsSJjm3Z.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var oe=Object.defineProperty;var ce=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ce(e,typeof t!="symbol"?t+"":t,r);import{a as le,i as de}from"./019JoT9w.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./D7gNyfhu.js";import{bo as a,_ as ue}from"./DMsRLycu.js";import{Gt as n,mC as _,mB as m,l6 as pe,wt as R,wu as L,wr as fe,ws as he,qd as Y,we as ge,Gf as me,a2 as be,bT as ve,bS as Se,c5 as ye,c4 as _e,mE as w}from"./Ba4gy30X.js";import{cs as we,bt as ke,c5 as Ee,ck as Re,c7 as Ce,cH as Ae,cL as Me,cB as Q,aw as Te,bP as Pe,cI as Ie}from"./DIZ4FVb2.js";import{n as De}from"./C235722L.js";import{ak as xe,F as $,j as Fe,G as Oe,bv as Le,c as Ue,al as Ne,bg as H,_ as Ve,aB as He,q as J,K as We,ag as qe,bl as Be,J as je,H as Ge,I as ze,bj as Ke}from"./D0pB9PrJ.js";import{t as Ye}from"./FCmf5yeg.js";const x=V("Clipboard");async function Mr(e){let t;if(le())try{const r=await de("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,x.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 x.error("Browser clipboard write failed",r,{electronError:t}),r}throw x.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Qe=n.createSelector(e=>e.githubAuth.mutationRequestId),$e=n.createSelector(e=>e.githubAuth.callbacksCancelled),Je=n.createSelector(e=>e.githubAuth.isDisconnecting),Z=n.createSelector(e=>e.githubAuth.isAuthenticated),Ze=n.createSelector(e=>e.githubAuth.statusSettled===!0),Xe=n.createSelector(e=>e.githubAuth.requiresDaemonAuth),et=n.createSelector(e=>e.githubAuth.user),tt=n.createSelector(e=>e.githubAuth.isAuthenticating),rt=n.createSelector(e=>e.githubAuth.deviceFlow),st=n.createSelector(e=>e.githubAuth.error),Tr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:$e,selectGitHubAuthDeviceFlow:rt,selectGitHubAuthError:st,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:tt,selectGitHubAuthIsDisconnecting:Je,selectGitHubAuthMutationRequestId:Qe,selectGitHubAuthRequiresDaemonAuth:Xe,selectGitHubAuthStatusSettled:Ze,selectGitHubAuthUser:et},Symbol.toStringTag,{value:"Module"})),it=V("WorkspaceValidation");async function Pr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return nt(s)?ot(s):ct(s,t,r)}function nt(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 at(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 ot(e){return at(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function ct(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.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:a.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(it.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Ir(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Dr(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 xr(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Fr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Or(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const v=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:`# Role
|
|
3
3
|
You are a PR review specialist conducting a code review for a pull request.
|
|
4
4
|
|
|
5
5
|
# Objectives
|
|
@@ -419,4 +419,4 @@ Show referenced workspaces as live fenced \`workspace\` blocks with one returned
|
|
|
419
419
|
|
|
420
420
|
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.
|
|
421
421
|
|
|
422
|
-
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."}],X=new Set(["pr-reviewer"]),Lr="developer";function Ur(e){return v.find(t=>t.id===e)}function u(e){return e??""}function lt(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)&<(e.modelOptions,s.modelOptions):!1}const Nr=n.createSelector(e=>e.specialists.bundledSpecialists),dt=n.createSelector(e=>e.specialists.fileSpecialists),Vr=n.createSelector(e=>_(dt.select(e))),Hr=n.createSelector(e=>e.specialists.userOverrides);n.createSelector(e=>e.specialists.overridesLoaded);const Wr=n.createSelector(e=>e.specialists.customSpecialistsLoaded),qr=n.createSelector(e=>e.specialists.fileSpecialistsLoaded),Br=n.createSelector(e=>e.specialists.bundledSpecialistsLoaded),jr=n.createSelector(e=>e.specialists.specialistsFolderPath),Gr=n.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:""});n.createSelector(e=>e.specialists.providerModelOverrides);const F=n.createSelector((e,t)=>!(X.has(t)&&!Z.select(e)));function ut(e,t){return t?e:e.filter(r=>!X.has(r.id))}function pt(e,t){return ut(e,t).filter(r=>!r.hidden)}function zr(e,t){return pt(e,t).filter(r=>r.role!=="internal")}const b=n.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=_(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&F.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)&&F.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)&&F.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),I=l.has(h.id);return S&&I?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!I?-1:!S&&I?1:c.name.localeCompare(h.name)}),o}),Kr=n.createSelector(e=>{const t=b.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]}),ft=n.createSelector((e,t)=>{const r=m(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&&_(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}),Yr=n.createSelector((e,t)=>ft.select(e,t)?.name??null),Qr=n.createSelector((e,t,r)=>{const i=b.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),$r=n.createSelector((e,t,r)=>b.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Jr=n.createSelector((e,t,r)=>b.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Zr=n.createSelector((e,t,r)=>{const i=b.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function C(e,t){return t.some(r=>r.id===e)||v.some(r=>r.id===e)}const Xr=n.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"&&C(t,e.specialists.bundledSpecialists)}return C(t,e.specialists.bundledSpecialists)}),es=n.createSelector((e,t,r)=>r?!!W.select(e,t,r):!!m(e.specialists.fileSpecialists,t)),ts=n.createSelector((e,t,r)=>{if(r){const o=W.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:C(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!C(t,e.specialists.bundledSpecialists))return!1;const i=m(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),W=n.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 m(e.specialists.fileSpecialists,t)}),rs=n.createSelector((e,t,r)=>{const s=W.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}),ss=n.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=m(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}),is=n.createSelector((e,t,r)=>{if(r){const i=b.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ke.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=m(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:ht.select(e,t)}),ht=n.createSelector((e,t)=>{const s=b.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:xe.select(e)?$.select(e):""}),ns=n.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?_(r):[]}),as=n.createSelector((e,t)=>e.specialists.creationByContext?.[t]??pe),os=n.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),gt=["idle","exited"];function mt(e){return e===void 0||!gt.includes(e)}function cs(e){return e.status==="restarting"?"restarting":mt(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function bt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const ls=n.createSelector(e=>e.voiceSettings.isLoading),ds=n.createSelector(e=>e.voiceSettings.available),us=n.createSelector(e=>e.voiceSettings.provider),ps=n.createSelector(e=>e.voiceSettings.engine),fs=n.createSelector(e=>e.voiceSettings.osEngineAvailable),hs=n.createSelector(e=>e.voiceSettings.keyConfigured),gs=n.createSelector(e=>e.voiceSettings.vocabulary),ms=n.createSelector(e=>e.voiceSettings.openaiModel),bs=n.createSelector(e=>e.voiceSettings.language),vs=n.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),Ss=n.createSelector(e=>e.voiceSettings.inputDeviceId),ys=n.createSelector(e=>e.voiceSettings.inputDevices),_s=n.createSelector(e=>e.voiceSettings.busyProvider),ws=n.createSelector(e=>e.voiceSettings.error),ks=n.createSelector(e=>Ee.select(e)?"unavailable":bt(e.voiceSettings)),U="intent.voice.inputDevice";let N;function vt(){if(N!==void 0)return N;try{const e=localStorage.getItem(U);return typeof e=="string"&&e!==""?e:null}catch{return null}}function Es(e){N=e;try{e===null?localStorage.removeItem(U):localStorage.setItem(U,e)}catch{}}let A=null;function Rs(e){A=e}function Cs(){const e=A;return A=null,e}function St(){A=null}const yt=300,_t=300;class wt{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??yt,this.doublePressWindowMs=t.doublePressWindowMs??_t,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 M=null;function As(e){M=e}function Ms(){const e=M;return M=null,e}function kt(){M=null}const Et=12e4,Rt=["audio/webm;codecs=opus","audio/webm"];function Ts(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Ct(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function At(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Rt.find(e=>MediaRecorder.isTypeSupported(e))}class Mt{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??Et,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(Ct(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=At(),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 Tt=300;function Pt(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const It={stopReason:"manual",autoSend:!1};let p=null,g=null,y=0,k=null;const P=new wt({onRecordStart:()=>{k&&Dt(k)},onRecordStop:e=>{ee(k,e)}});function Ps(){return p!==null}function Is(){return p}function Ds(e){k=e,y+=1,y===1&&P.keyDown()}function xs(e){k=e,y!==0&&(y-=1,y===0&&P.keyUp())}function Dt(e){if(p!==null)return;kt(),St();const t=new Mt({deviceId:vt(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(R()),i||P.reset(),r.durationMs<Tt){s.autoSend&&e.dispatch(L());return}e.dispatch(fe({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(R()),e.showHint(Pt(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(he()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(R()),s&&e.dispatch(L())}})}function ee(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(L());return}g=t,r.stop()}function Fs(){ee(null,It)}function Os(e){P.reset(),y=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(R()))}const xt=V("HardwareConsoleVoiceSetupToast"),Ft="hardware-console-voice-setup";let O=null;function Ot(){return O||(O=ue(()=>import("./D8DZcNyr.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)),O}function Lt(){De("/settings?tab=connections#voice").catch(e=>{xt.error("Failed to open voice settings from setup toast",e)})}function Ut(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>Lt()}}function Ls(){Ot().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Ft,action:Ut()})})}const Us=n.createSelector(e=>e.externalEditors.selectedAction),Nt=n.createSelector(e=>e.externalEditors.editors),Vt=n.createSelector(e=>{const t=_(Nt.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))]}),Ns=n.createSelector(e=>e.externalEditors.editorOrder??[]),Vs=n.createSelector(e=>e.externalEditors.loading),Hs=n.createSelector(e=>e.externalEditors.lastFetched),Ht=n.createSelector(e=>e.externalEditors.hiddenEditorIds),Ws=n.createSelector((e,t)=>{if(!(t?Re.select(e,t):Ce.select(e)))return[];const s=Ht.select(e);return Vt.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Wt(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 qs(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 Bs(e,t){return e.reason==="account-folder"?a.chat_modelPicker_remoteAccountFolder_description({backend:t}):a.chat_modelPicker_remoteIncompatible_description()}const qt=1440*60*1e3;function js(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>qt?"stale":"fresh"}const Gs=new Set(["cli-missing","prerequisite-missing"]),Bt=new Set(["signed-out","auth-failed"]);function jt(e){return Bt.has(e)}function zs(e,t){if(Y(t))return!1;const r=ge(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&jt(s.status)}const Gt={macos:"macOS",linux:"Linux",windows:"Windows"},zt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function E(e,t){const r=[e&&(Gt[e]??e),t&&(zt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Kt(e){return e?.placement?.target==="remote"}function Ks(e,t){if(!e||!Kt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=E(e.placement?.os,e.placement?.arch)??E(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||a.remoteAgent_location_unknownMachine(),platform:i,state:o}}function Ys(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:E(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Qs(e){const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function $s(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":e.setup?.state==="failed"?"setup-failed":null}function te(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const r=JSON.parse(e.slice(t+1));if(r&&typeof r=="object"&&typeof r.code=="string")return{message:e.slice(0,t).trim(),data:r}}catch{}return null}function Js(e,t){const r=e.detail??"",s=te(r),i=e.code==="machine-update-required"||s?.data.code==="machine-update-required";return i&&s?.data.reason==="prepared-checkout"?{updateRequired:i,message:a.remoteAgent_updateRequired_preparedCheckout({machine:t})}:{updateRequired:i,message:s?.message||r}}const Yt=["attachments-too-large-for-machine:","node-prompt-too-large:"],Qt="remote-agent-unsupported:";function z(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function Zs(e){const t=te(e)?.message??e;for(const s of Yt){const i=t.indexOf(s);if(i<0)continue;const o=t.slice(i+s.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),l=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(o);return l?a.remoteAgent_attachmentsTooLargeSized_error({size:z(Number(l[1])),limit:z(Number(l[2]))}):o?a.remoteAgent_attachmentsTooLarge_error({detail:o}):a.remoteAgent_attachmentsTooLargeNoDetail_error()}const r=t.indexOf(Qt);return r>=0&&/attachment/i.test(t.slice(r))?a.remoteAgent_attachmentsUnsupported_error():null}const T="",$t=new Set(["connected","disconnected"]);function Jt(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function q(e){return $t.has(e.state)}function Zt({backendLabel:e,backendPlatform:t,machines:r}){return[{id:T,label:e,platform:E(t?.os,t?.arch),disabled:!1},...r.map(s=>{const i=E(s.platform?.os,s.platform?.arch);return q(s)?{id:s.id,label:s.name,platform:i,disabled:!1}:{id:s.id,label:s.name,platform:i,disabled:!0,reason:Jt(s.state)}})]}function Xt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(q)}function er(e,t){if(!e)return T;const r=t.find(s=>s.id===e);return r&&q(r)?r.id:T}function Xs(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function ei({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=me(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 tr=n.createSelector(e=>Ye.select(e)&&e.remoteMachines?.supported===!0),B=n.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),ti=n.createSelector(e=>e.remoteMachines.localFingerprint),ri=n.createSelector(e=>e.remoteMachines.pending),si=n.createSelector(e=>e.remoteMachines.failures),ii=n.createSelector(e=>e.remoteMachines.executorBackends??[]),rr=n.createSelector((e,t)=>{if(t===be)return a.layout_daemonStatus_localConnection_label();const r=m(e.connections.connections,t);return r?Fe(r):t}),sr=n.createSelector(e=>rr.select(e,e.connections.windowBackendId)),ni=n.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),ai=n.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Wt({catalogProfiles:Me.select(e,t),defaultRemoteIncompatibility:Ae.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),oi=n.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),re=n.createSelector(e=>Xt({remoteMachinesVisible:tr.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:B.select(e)}));function ir(e){const t=m(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const ci=n.createSelector(e=>re.select(e)?Zt({backendLabel:sr.select(e),backendPlatform:ir(e),machines:B.select(e)}):[]),li=n.createSelector((e,t)=>re.select(e)?er(t,B.select(e)):T);function di(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 nr=0;function ar(e,t){const r=++nr;return n.dispatch(Se(e,t,r)),r}function ui(e,t,r){n.dispatch(ve(e,t,r))}async function se(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await n.dispatch(ye({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:Q.select(n.state)},{...s,intent:s?.intent??ar(e,t)}))).status==="success"}finally{n.dispatch(_e(i,o))}}async function pi(e,t,r,s,i){return se(e,t,{kind:"effort",effort:r,previous:s},i)}async function fi(e,t,r,s,i){return se(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const or=n.createSelector((e,t)=>_(e.agentModel.mutations).filter(r=>r.consumerId===t)),hi=n.createSelector((e,t)=>or.select(e,t).some(r=>r.status==="pending")),gi=n.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=Le(l),h=c?Ue(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:Q.select(e),canWrite:!!s&&s.workspaceId===r&&!Pe.select(e,r)}});function cr(e,t,r=!1){return e!=="auggie"||t===!0||r}const mi=n.createSelector(e=>Ne.select(e)?null:H.select(e)),lr=n.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),bi=n.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),vi=n.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===lr.select(e)),ie=n.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ie.select(e)),ne=n.createSelector((e,t)=>{if(!t)return $.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=n.createSelector((e,t)=>{if(!t)return Ve.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ae=n.createSelector((e,t)=>{if(!t)return He.select(e);const r=j.select(e,t),s=ne.select(e,t),i=f.select(e,t)?.readiness??{};return ie.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||J(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),Si=n.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:H.select(e);return ie.select(e,t).filter(i=>cr(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),yi=n.createSelector((e,t)=>t?ae.select(e,t):We.select(e)),_i=n.createSelector((e,t)=>b.select(e,t)),wi=n.createSelector((e,t)=>t?!!f.select(e,t):qe.select(e)),ki=n.createSelector((e,t)=>{if(!t)return Be.select(e);const r=f.select(e,t)?.settings??[],s=ne.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:""}),Ei=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):je.select(e)),Ri=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):Ge.select(e)),Ci=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):ze.select(e)),Ai=n.createSelector((e,t,r)=>{if(!r)return Ke.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ae.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&J(o,i?.readiness[o]?.authenticated))}),Mi=n.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:H.select(e)),dr={},Ti=n.createSelector(e=>e.providerSettings?.profiles?.status??dr),Pi=n.createSelector(e=>e.directoryPicker.listing),Ii=n.createSelector(e=>e.directoryPicker.loading),Di=n.createSelector(e=>e.directoryPicker.error),xi=n.createSelector(e=>e.directoryPicker.pathError),Fi=n.createSelector(e=>e.directoryPicker.createError),K={},ur=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Oi=n.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]}),Li=n.createSelector(e=>e.mcpSettings.loading),Ui=n.createSelector(e=>e.mcpSettings.error),Ni=n.createSelector(e=>e.mcpSettings.mutationError??null),Vi=n.createSelector(e=>e.mcpSettings.enabled),pr=n.createSelector(e=>e.mcpSettings.disabledServers),fr=n.createSelector(e=>e.mcpSettings.statusMap),hr=n.createSelector(e=>e.mcpSettings.toolsMap),gr=n.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,w(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),mr=n.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??K:K),Hi=n.createSelector((e,t)=>Object.keys(mr.select(e,t))),Wi=n.createSelector(e=>{const t=ur.select(e),r=fr.select(e),s=hr.select(e),i=pr.select(e),o=gr.select(e);return t.map(l=>{const c=w(l)in i,h=s[w(l)]||[];let S=r[w(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[w(l)]}})});n.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const qi=n.createSelector(e=>e.mcpSettings.lastImportedCount),Bi=n.createSelector(e=>e.mcpSettings.advancedSaveStatus),ji=n.createSelector(e=>e.mcpSettings.advancedSaveError),Gi=["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"],br=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],zi=Object.fromEntries(br.map(e=>[e.path,e.defaultValue]));export{or as $,di as A,G as B,zs as C,Lr as D,Ts as E,br as F,X as G,vt as H,Ys as I,ei as J,E as K,js as L,Gs as M,ar as N,at as O,Js as P,fi as Q,ui as R,v as S,Zs as T,qs as U,Bs as V,bt as W,er as X,Dr as Y,Es as Z,hi as _,zi as a,qi as a$,gi as a0,Nr as a1,Br as a2,rr as a3,yi as a4,ne as a5,j as a6,Si as a7,ae as a8,ie as a9,Vr as aA,qr as aB,W as aC,$e as aD,rt as aE,st as aF,Z as aG,tt as aH,Je as aI,Qe as aJ,Xe as aK,et as aL,ts as aM,Ht as aN,Vt as aO,Ws as aP,Vs as aQ,Xr as aR,es as aS,Hs as aT,ti as aU,ji as aV,Bi as aW,pr as aX,Vi as aY,Ui as aZ,gr as a_,Ri as aa,Ci as ab,Ei as ac,Ai as ad,Mi as ae,wi as af,ki as ag,_i as ah,sr as ai,Wr as aj,oi as ak,Gr as al,Fi as am,Di as an,Pi as ao,Ii as ap,xi as aq,Ns as ar,Zr as as,is as at,Qr as au,li as av,ks as aw,ii as ax,$r as ay,Jr as az,Gi as b,Li as b0,Ni as b1,ur as b2,Wi as b3,fr as b4,hr as b5,Us as b6,Kr as b7,Ti as b8,ni as b9,us as bA,ds as bB,ws as bC,ls as bD,gs as bE,vs as bF,f as bG,lr as bH,vi as bI,bi as bJ,Hi as bK,Oi as bL,Rs as bM,As as bN,Ls as bO,Dt as bP,Fs as bQ,xr as bR,Ir as bS,Fr as bT,Pr as bU,Ut as bV,Mr as bW,si as ba,ri as bb,B as bc,tr as bd,ai as be,mi as bf,ft as bg,as as bh,os as bi,ss as bj,ns as bk,Yr as bl,rs as bm,b as bn,jr as bo,ci as bp,re as bq,Hr as br,_s as bs,ps as bt,Ss as bu,ys as bv,hs as bw,bs as bx,ms as by,fs as bz,T as c,Ks as d,Qs as e,$s as f,pi as g,Os as h,St as i,kt as j,Cs as k,Ms as l,zr as m,pt as n,ut as o,Is as p,Or as q,cs as r,Ur as s,Tr as t,Ds as u,xs as v,Xs as w,mt as x,cr as y,Ps as z};
|
|
422
|
+
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."}],X=new Set(["pr-reviewer"]),Lr="developer";function Ur(e){return v.find(t=>t.id===e)}function u(e){return e??""}function lt(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)&<(e.modelOptions,s.modelOptions):!1}const Nr=n.createSelector(e=>e.specialists.bundledSpecialists),dt=n.createSelector(e=>e.specialists.fileSpecialists),Vr=n.createSelector(e=>_(dt.select(e))),Hr=n.createSelector(e=>e.specialists.userOverrides);n.createSelector(e=>e.specialists.overridesLoaded);const Wr=n.createSelector(e=>e.specialists.customSpecialistsLoaded),qr=n.createSelector(e=>e.specialists.fileSpecialistsLoaded),Br=n.createSelector(e=>e.specialists.bundledSpecialistsLoaded),jr=n.createSelector(e=>e.specialists.specialistsFolderPath),Gr=n.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:""});n.createSelector(e=>e.specialists.providerModelOverrides);const F=n.createSelector((e,t)=>!(X.has(t)&&!Z.select(e)));function ut(e,t){return t?e:e.filter(r=>!X.has(r.id))}function pt(e,t){return ut(e,t).filter(r=>!r.hidden)}function zr(e,t){return pt(e,t).filter(r=>r.role!=="internal")}const b=n.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=_(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&F.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)&&F.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)&&F.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),I=l.has(h.id);return S&&I?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!I?-1:!S&&I?1:c.name.localeCompare(h.name)}),o}),Kr=n.createSelector(e=>{const t=b.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]}),ft=n.createSelector((e,t)=>{const r=m(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&&_(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}),Yr=n.createSelector((e,t)=>ft.select(e,t)?.name??null),Qr=n.createSelector((e,t,r)=>{const i=b.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),$r=n.createSelector((e,t,r)=>b.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Jr=n.createSelector((e,t,r)=>b.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Zr=n.createSelector((e,t,r)=>{const i=b.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function C(e,t){return t.some(r=>r.id===e)||v.some(r=>r.id===e)}const Xr=n.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"&&C(t,e.specialists.bundledSpecialists)}return C(t,e.specialists.bundledSpecialists)}),es=n.createSelector((e,t,r)=>r?!!W.select(e,t,r):!!m(e.specialists.fileSpecialists,t)),ts=n.createSelector((e,t,r)=>{if(r){const o=W.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:C(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!C(t,e.specialists.bundledSpecialists))return!1;const i=m(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),W=n.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 m(e.specialists.fileSpecialists,t)}),rs=n.createSelector((e,t,r)=>{const s=W.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}),ss=n.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=m(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}),is=n.createSelector((e,t,r)=>{if(r){const i=b.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ke.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=m(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:ht.select(e,t)}),ht=n.createSelector((e,t)=>{const s=b.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:xe.select(e)?$.select(e):""}),ns=n.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?_(r):[]}),as=n.createSelector((e,t)=>e.specialists.creationByContext?.[t]??pe),os=n.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),gt=["idle","exited"];function mt(e){return e===void 0||!gt.includes(e)}function cs(e){return e.status==="restarting"?"restarting":mt(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function bt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const ls=n.createSelector(e=>e.voiceSettings.isLoading),ds=n.createSelector(e=>e.voiceSettings.available),us=n.createSelector(e=>e.voiceSettings.provider),ps=n.createSelector(e=>e.voiceSettings.engine),fs=n.createSelector(e=>e.voiceSettings.osEngineAvailable),hs=n.createSelector(e=>e.voiceSettings.keyConfigured),gs=n.createSelector(e=>e.voiceSettings.vocabulary),ms=n.createSelector(e=>e.voiceSettings.openaiModel),bs=n.createSelector(e=>e.voiceSettings.language),vs=n.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),Ss=n.createSelector(e=>e.voiceSettings.inputDeviceId),ys=n.createSelector(e=>e.voiceSettings.inputDevices),_s=n.createSelector(e=>e.voiceSettings.busyProvider),ws=n.createSelector(e=>e.voiceSettings.error),ks=n.createSelector(e=>Ee.select(e)?"unavailable":bt(e.voiceSettings)),U="intent.voice.inputDevice";let N;function vt(){if(N!==void 0)return N;try{const e=localStorage.getItem(U);return typeof e=="string"&&e!==""?e:null}catch{return null}}function Es(e){N=e;try{e===null?localStorage.removeItem(U):localStorage.setItem(U,e)}catch{}}let A=null;function Rs(e){A=e}function Cs(){const e=A;return A=null,e}function St(){A=null}const yt=300,_t=300;class wt{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??yt,this.doublePressWindowMs=t.doublePressWindowMs??_t,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 M=null;function As(e){M=e}function Ms(){const e=M;return M=null,e}function kt(){M=null}const Et=12e4,Rt=["audio/webm;codecs=opus","audio/webm"];function Ts(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Ct(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function At(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Rt.find(e=>MediaRecorder.isTypeSupported(e))}class Mt{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??Et,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(Ct(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=At(),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 Tt=300;function Pt(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const It={stopReason:"manual",autoSend:!1};let p=null,g=null,y=0,k=null;const P=new wt({onRecordStart:()=>{k&&Dt(k)},onRecordStop:e=>{ee(k,e)}});function Ps(){return p!==null}function Is(){return p}function Ds(e){k=e,y+=1,y===1&&P.keyDown()}function xs(e){k=e,y!==0&&(y-=1,y===0&&P.keyUp())}function Dt(e){if(p!==null)return;kt(),St();const t=new Mt({deviceId:vt(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(R()),i||P.reset(),r.durationMs<Tt){s.autoSend&&e.dispatch(L());return}e.dispatch(fe({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(R()),e.showHint(Pt(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(he()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(R()),s&&e.dispatch(L())}})}function ee(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(L());return}g=t,r.stop()}function Fs(){ee(null,It)}function Os(e){P.reset(),y=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(R()))}const xt=V("HardwareConsoleVoiceSetupToast"),Ft="hardware-console-voice-setup";let O=null;function Ot(){return O||(O=ue(()=>import("./PTBua5Xh.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)),O}function Lt(){De("/settings?tab=connections#voice").catch(e=>{xt.error("Failed to open voice settings from setup toast",e)})}function Ut(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>Lt()}}function Ls(){Ot().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Ft,action:Ut()})})}const Us=n.createSelector(e=>e.externalEditors.selectedAction),Nt=n.createSelector(e=>e.externalEditors.editors),Vt=n.createSelector(e=>{const t=_(Nt.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))]}),Ns=n.createSelector(e=>e.externalEditors.editorOrder??[]),Vs=n.createSelector(e=>e.externalEditors.loading),Hs=n.createSelector(e=>e.externalEditors.lastFetched),Ht=n.createSelector(e=>e.externalEditors.hiddenEditorIds),Ws=n.createSelector((e,t)=>{if(!(t?Re.select(e,t):Ce.select(e)))return[];const s=Ht.select(e);return Vt.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Wt(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 qs(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 Bs(e,t){return e.reason==="account-folder"?a.chat_modelPicker_remoteAccountFolder_description({backend:t}):a.chat_modelPicker_remoteIncompatible_description()}const qt=1440*60*1e3;function js(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>qt?"stale":"fresh"}const Gs=new Set(["cli-missing","prerequisite-missing"]),Bt=new Set(["signed-out","auth-failed"]);function jt(e){return Bt.has(e)}function zs(e,t){if(Y(t))return!1;const r=ge(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&jt(s.status)}const Gt={macos:"macOS",linux:"Linux",windows:"Windows"},zt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function E(e,t){const r=[e&&(Gt[e]??e),t&&(zt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Kt(e){return e?.placement?.target==="remote"}function Ks(e,t){if(!e||!Kt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=E(e.placement?.os,e.placement?.arch)??E(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||a.remoteAgent_location_unknownMachine(),platform:i,state:o}}function Ys(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:E(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Qs(e){const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function $s(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":e.setup?.state==="failed"?"setup-failed":null}function te(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const r=JSON.parse(e.slice(t+1));if(r&&typeof r=="object"&&typeof r.code=="string")return{message:e.slice(0,t).trim(),data:r}}catch{}return null}function Js(e,t){const r=e.detail??"",s=te(r),i=e.code==="machine-update-required"||s?.data.code==="machine-update-required";return i&&s?.data.reason==="prepared-checkout"?{updateRequired:i,message:a.remoteAgent_updateRequired_preparedCheckout({machine:t})}:{updateRequired:i,message:s?.message||r}}const Yt=["attachments-too-large-for-machine:","node-prompt-too-large:"],Qt="remote-agent-unsupported:";function z(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function Zs(e){const t=te(e)?.message??e;for(const s of Yt){const i=t.indexOf(s);if(i<0)continue;const o=t.slice(i+s.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),l=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(o);return l?a.remoteAgent_attachmentsTooLargeSized_error({size:z(Number(l[1])),limit:z(Number(l[2]))}):o?a.remoteAgent_attachmentsTooLarge_error({detail:o}):a.remoteAgent_attachmentsTooLargeNoDetail_error()}const r=t.indexOf(Qt);return r>=0&&/attachment/i.test(t.slice(r))?a.remoteAgent_attachmentsUnsupported_error():null}const T="",$t=new Set(["connected","disconnected"]);function Jt(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function q(e){return $t.has(e.state)}function Zt({backendLabel:e,backendPlatform:t,machines:r}){return[{id:T,label:e,platform:E(t?.os,t?.arch),disabled:!1},...r.map(s=>{const i=E(s.platform?.os,s.platform?.arch);return q(s)?{id:s.id,label:s.name,platform:i,disabled:!1}:{id:s.id,label:s.name,platform:i,disabled:!0,reason:Jt(s.state)}})]}function Xt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(q)}function er(e,t){if(!e)return T;const r=t.find(s=>s.id===e);return r&&q(r)?r.id:T}function Xs(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function ei({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=me(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 tr=n.createSelector(e=>Ye.select(e)&&e.remoteMachines?.supported===!0),B=n.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),ti=n.createSelector(e=>e.remoteMachines.localFingerprint),ri=n.createSelector(e=>e.remoteMachines.pending),si=n.createSelector(e=>e.remoteMachines.failures),ii=n.createSelector(e=>e.remoteMachines.executorBackends??[]),rr=n.createSelector((e,t)=>{if(t===be)return a.layout_daemonStatus_localConnection_label();const r=m(e.connections.connections,t);return r?Fe(r):t}),sr=n.createSelector(e=>rr.select(e,e.connections.windowBackendId)),ni=n.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),ai=n.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Wt({catalogProfiles:Me.select(e,t),defaultRemoteIncompatibility:Ae.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),oi=n.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),re=n.createSelector(e=>Xt({remoteMachinesVisible:tr.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:B.select(e)}));function ir(e){const t=m(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const ci=n.createSelector(e=>re.select(e)?Zt({backendLabel:sr.select(e),backendPlatform:ir(e),machines:B.select(e)}):[]),li=n.createSelector((e,t)=>re.select(e)?er(t,B.select(e)):T);function di(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 nr=0;function ar(e,t){const r=++nr;return n.dispatch(Se(e,t,r)),r}function ui(e,t,r){n.dispatch(ve(e,t,r))}async function se(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await n.dispatch(ye({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:Q.select(n.state)},{...s,intent:s?.intent??ar(e,t)}))).status==="success"}finally{n.dispatch(_e(i,o))}}async function pi(e,t,r,s,i){return se(e,t,{kind:"effort",effort:r,previous:s},i)}async function fi(e,t,r,s,i){return se(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const or=n.createSelector((e,t)=>_(e.agentModel.mutations).filter(r=>r.consumerId===t)),hi=n.createSelector((e,t)=>or.select(e,t).some(r=>r.status==="pending")),gi=n.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=Le(l),h=c?Ue(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:Q.select(e),canWrite:!!s&&s.workspaceId===r&&!Pe.select(e,r)}});function cr(e,t,r=!1){return e!=="auggie"||t===!0||r}const mi=n.createSelector(e=>Ne.select(e)?null:H.select(e)),lr=n.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),bi=n.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),vi=n.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===lr.select(e)),ie=n.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ie.select(e)),ne=n.createSelector((e,t)=>{if(!t)return $.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=n.createSelector((e,t)=>{if(!t)return Ve.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ae=n.createSelector((e,t)=>{if(!t)return He.select(e);const r=j.select(e,t),s=ne.select(e,t),i=f.select(e,t)?.readiness??{};return ie.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||J(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),Si=n.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:H.select(e);return ie.select(e,t).filter(i=>cr(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),yi=n.createSelector((e,t)=>t?ae.select(e,t):We.select(e)),_i=n.createSelector((e,t)=>b.select(e,t)),wi=n.createSelector((e,t)=>t?!!f.select(e,t):qe.select(e)),ki=n.createSelector((e,t)=>{if(!t)return Be.select(e);const r=f.select(e,t)?.settings??[],s=ne.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:""}),Ei=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):je.select(e)),Ri=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):Ge.select(e)),Ci=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):ze.select(e)),Ai=n.createSelector((e,t,r)=>{if(!r)return Ke.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ae.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&J(o,i?.readiness[o]?.authenticated))}),Mi=n.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:H.select(e)),dr={},Ti=n.createSelector(e=>e.providerSettings?.profiles?.status??dr),Pi=n.createSelector(e=>e.directoryPicker.listing),Ii=n.createSelector(e=>e.directoryPicker.loading),Di=n.createSelector(e=>e.directoryPicker.error),xi=n.createSelector(e=>e.directoryPicker.pathError),Fi=n.createSelector(e=>e.directoryPicker.createError),K={},ur=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Oi=n.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]}),Li=n.createSelector(e=>e.mcpSettings.loading),Ui=n.createSelector(e=>e.mcpSettings.error),Ni=n.createSelector(e=>e.mcpSettings.mutationError??null),Vi=n.createSelector(e=>e.mcpSettings.enabled),pr=n.createSelector(e=>e.mcpSettings.disabledServers),fr=n.createSelector(e=>e.mcpSettings.statusMap),hr=n.createSelector(e=>e.mcpSettings.toolsMap),gr=n.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,w(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),mr=n.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??K:K),Hi=n.createSelector((e,t)=>Object.keys(mr.select(e,t))),Wi=n.createSelector(e=>{const t=ur.select(e),r=fr.select(e),s=hr.select(e),i=pr.select(e),o=gr.select(e);return t.map(l=>{const c=w(l)in i,h=s[w(l)]||[];let S=r[w(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[w(l)]}})});n.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const qi=n.createSelector(e=>e.mcpSettings.lastImportedCount),Bi=n.createSelector(e=>e.mcpSettings.advancedSaveStatus),ji=n.createSelector(e=>e.mcpSettings.advancedSaveError),Gi=["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"],br=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],zi=Object.fromEntries(br.map(e=>[e.path,e.defaultValue]));export{or as $,di as A,G as B,zs as C,Lr as D,Ts as E,br as F,X as G,vt as H,Ys as I,ei as J,E as K,js as L,Gs as M,ar as N,at as O,Js as P,fi as Q,ui as R,v as S,Zs as T,qs as U,Bs as V,bt as W,er as X,Dr as Y,Es as Z,hi as _,zi as a,qi as a$,gi as a0,Nr as a1,Br as a2,rr as a3,yi as a4,ne as a5,j as a6,Si as a7,ae as a8,ie as a9,Vr as aA,qr as aB,W as aC,$e as aD,rt as aE,st as aF,Z as aG,tt as aH,Je as aI,Qe as aJ,Xe as aK,et as aL,ts as aM,Ht as aN,Vt as aO,Ws as aP,Vs as aQ,Xr as aR,es as aS,Hs as aT,ti as aU,ji as aV,Bi as aW,pr as aX,Vi as aY,Ui as aZ,gr as a_,Ri as aa,Ci as ab,Ei as ac,Ai as ad,Mi as ae,wi as af,ki as ag,_i as ah,sr as ai,Wr as aj,oi as ak,Gr as al,Fi as am,Di as an,Pi as ao,Ii as ap,xi as aq,Ns as ar,Zr as as,is as at,Qr as au,li as av,ks as aw,ii as ax,$r as ay,Jr as az,Gi as b,Li as b0,Ni as b1,ur as b2,Wi as b3,fr as b4,hr as b5,Us as b6,Kr as b7,Ti as b8,ni as b9,us as bA,ds as bB,ws as bC,ls as bD,gs as bE,vs as bF,f as bG,lr as bH,vi as bI,bi as bJ,Hi as bK,Oi as bL,Rs as bM,As as bN,Ls as bO,Dt as bP,Fs as bQ,xr as bR,Ir as bS,Fr as bT,Pr as bU,Ut as bV,Mr as bW,si as ba,ri as bb,B as bc,tr as bd,ai as be,mi as bf,ft as bg,as as bh,os as bi,ss as bj,ns as bk,Yr as bl,rs as bm,b as bn,jr as bo,ci as bp,re as bq,Hr as br,_s as bs,ps as bt,Ss as bu,ys as bv,hs as bw,bs as bx,ms as by,fs as bz,T as c,Ks as d,Qs as e,$s as f,pi as g,Os as h,St as i,kt as j,Cs as k,Ms as l,zr as m,pt as n,ut as o,Is as p,Or as q,cs as r,Ur as s,Tr as t,Ds as u,xs as v,Xs as w,mt as x,cr as y,Ps as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as $}from"./
|
|
1
|
+
import{p as $}from"./B57g6nRd.js";import{p as C}from"./DzDKk1gg.js";import{a as u,j as m,aE as S,r as D,ad as w,aG as P,L as T,aI as E,O as F,K as z,aF as A,M as W,y as _,k as L}from"./D3vOZLLK.js";import{g as M}from"./Clof0uHU.js";var N=_.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=T,this.setDiagramTitle=E,this.getDiagramTitle=F,this.getAccDescription=z,this.setAccDescription=A}getConfig(){const t=m({...N,...W().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){L(),this.packet=[]}},M(b,"PacketDB"),u(b,"PacketDB"),b),I=1e4,O=u((e,t)=>{$(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<I;){const[p,o]=Y({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),Y=u((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:u(async e=>{const t=await C("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),O(t,r)},"parse")},j=u((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=S(t);f.attr("viewBox",`0 0 ${k} ${g}`),D(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())G(f,B,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=u((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),K={draw:j},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=u(({packet:e}={})=>{const t=m(H,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as T}from"./BdrU1VNg.js";import{a as b}from"./BJzHxIyr.js";import{w as M}from"./
|
|
1
|
+
import{C as T}from"./BdrU1VNg.js";import{a as b}from"./BJzHxIyr.js";import{w as M}from"./BqJBJZqA.js";import{Gt as n,BA as v,B3 as E,g as A,tc as _,sQ as C,Ao as O,AG as D,CA as L,As as P}from"./Ba4gy30X.js";import{aX as p}from"./DIZ4FVb2.js";import{d as H}from"./B0Z-1lwJ.js";import{n as R}from"./C235722L.js";import{o as x,e as B}from"./B_POKarf.js";const f=new b("OpenMessage"),S=150,k=15e3,G=2,W=[150,400,800,1500,3e3],q=T;let g;function y(e){return new Promise(t=>setTimeout(t,e))}function w(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function F(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function N(e,t,s){const a=Date.now()+k;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(w(e,t))return!0;if(o>=G&&F(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await y(S)}return!s.aborted&&w(e,t)}async function Y(e,t,s,a){const o=Date.now()+k;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await y(S)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(w(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(O(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,q,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(m=>m.id===t)?!1:(n.dispatch(D(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(L(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},w(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(P(e,c))}}async function j(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===A;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(E(A,a)),n.dispatch(_("chief")));const l=c?"/":B(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await x(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await N(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,m={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of W)setTimeout(()=>{t.aborted||H("chat:open-message",m)},h)}export{j as openMessage,Y as seekConversationToMessage};
|