@intent-hq/web 2.362.0 → 2.362.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{jd2Q-_wb.js → 0Go2CbyU.js} +1 -1
- package/web/app/immutable/chunks/{DF45Lcog.js → 1nRBQ8GP.js} +1 -1
- package/web/app/immutable/chunks/{BMwhw1Uq.js → 23XOeMSz.js} +1 -1
- package/web/app/immutable/chunks/{zyhN-MWp.js → 2YXwswD5.js} +1 -1
- package/web/app/immutable/chunks/{D0klBhhG.js → 2hni5UX1.js} +1 -1
- package/web/app/immutable/chunks/{BomJfUuH.js → 4iYH6029.js} +1 -1
- package/web/app/immutable/chunks/{CeVJyslc.js → 55cMcX02.js} +1 -1
- package/web/app/immutable/chunks/{DiqO4Muj.js → 6b8eTysf.js} +1 -1
- package/web/app/immutable/chunks/{DrYNp4pq.js → 6zG0ROGL.js} +1 -1
- package/web/app/immutable/chunks/{Dg1sjsED.js → 8VBKAONs.js} +2 -2
- package/web/app/immutable/chunks/{DrRkoSeq.js → AWaLRNq4.js} +1 -1
- package/web/app/immutable/chunks/{DDVZx1NH.js → B-DzvqX1.js} +1 -1
- package/web/app/immutable/chunks/{u9TRZTyq.js → B1nPoFt8.js} +1 -1
- package/web/app/immutable/chunks/{BILh4U9K.js → B1rImF8u.js} +1 -1
- package/web/app/immutable/chunks/{vVxVtKpW.js → B2U6zHXn.js} +1 -1
- package/web/app/immutable/chunks/{1gFj_z6C.js → B2y4Ey03.js} +1 -1
- package/web/app/immutable/chunks/{ByAb1cmM.js → B3jM95Fp.js} +1 -1
- package/web/app/immutable/chunks/{42eDZto7.js → B3sqRIS9.js} +1 -1
- package/web/app/immutable/chunks/{C8YPd-6H.js → B43yoCDN.js} +1 -1
- package/web/app/immutable/chunks/{B8XPpKv7.js → B5nay5Hl.js} +3 -3
- package/web/app/immutable/chunks/{iQseBcjp.js → B6XV-wYf.js} +1 -1
- package/web/app/immutable/chunks/{B6ovWwJ_.js → B6lDfWDz.js} +1 -1
- package/web/app/immutable/chunks/{nIMiMGnC.js → B6qAtTdf.js} +1 -1
- package/web/app/immutable/chunks/{Bept5Hnm.js → B7ZiQt9B.js} +1 -1
- package/web/app/immutable/chunks/{CvAmKg2X.js → B7he-vwJ.js} +1 -1
- package/web/app/immutable/chunks/{BW6IwFyw.js → BAS5Ei9a.js} +4 -4
- package/web/app/immutable/chunks/{CY5L4aNw.js → BBXi6eZS.js} +1 -1
- package/web/app/immutable/chunks/{DnUPJZ7Y.js → BBeX3tt3.js} +1 -1
- package/web/app/immutable/chunks/{BA1Q6PPR.js → BFNGEzf6.js} +1 -1
- package/web/app/immutable/chunks/{D3YyaVry.js → BIBmWYIa.js} +1 -1
- package/web/app/immutable/chunks/{D9wnkmBu.js → BIQ9eVuf.js} +1 -1
- package/web/app/immutable/chunks/{BWcEoYRV.js → BKSdTbM0.js} +1 -1
- package/web/app/immutable/chunks/{DK8BxGVr.js → BKW-24eH.js} +1 -1
- package/web/app/immutable/chunks/{B2tn4QvC.js → BMXpCN2Z.js} +1 -1
- package/web/app/immutable/chunks/BNq3scG4.js +4 -0
- package/web/app/immutable/chunks/{DQ21wdjk.js → BPWzrv4n.js} +1 -1
- package/web/app/immutable/chunks/{VfrZWr4H.js → BPu2GADH.js} +1 -1
- package/web/app/immutable/chunks/{CRKBkpOe.js → BQi1vxhj.js} +1 -1
- package/web/app/immutable/chunks/{i9nNzXN1.js → BR6IlpMz.js} +1 -1
- package/web/app/immutable/chunks/{DpinIuVV.js → BRPvhipI.js} +2 -2
- package/web/app/immutable/chunks/{DwVWq9Mg.js → BSiWAL4B.js} +1 -1
- package/web/app/immutable/chunks/{BfYNlt8G.js → BTPstSq4.js} +1 -1
- package/web/app/immutable/chunks/{CEJtWBth.js → BULwUgGm.js} +1 -1
- package/web/app/immutable/chunks/{Dc2OgodD.js → BUNb3q2A.js} +1 -1
- package/web/app/immutable/chunks/{T-q_OSSy.js → BU_WdKEZ.js} +1 -1
- package/web/app/immutable/chunks/{Cd0j3msa.js → BUansWOB.js} +1 -1
- package/web/app/immutable/chunks/{qdH_r52r.js → BV4hVkqh.js} +1 -1
- package/web/app/immutable/chunks/{C_DRWbBT.js → BWxyJyKV.js} +1 -1
- package/web/app/immutable/chunks/{D4rtf9eK.js → BZMuFhDq.js} +2 -2
- package/web/app/immutable/chunks/{C2jMmBZH.js → BZaxCCc-.js} +3 -3
- package/web/app/immutable/chunks/{DhHBMk2S.js → B_Qscghg.js} +4 -4
- package/web/app/immutable/chunks/{CTuEdhIK.js → BbNaXeCx.js} +1 -1
- package/web/app/immutable/chunks/{DEz0iQL-.js → Bctp9lP7.js} +1 -1
- package/web/app/immutable/chunks/{BHi5IZAX.js → Bd3N9n0H.js} +1 -1
- package/web/app/immutable/chunks/{BIeyZqbO.js → Be0mmWcA.js} +6 -6
- package/web/app/immutable/chunks/{BLN77Nun.js → BeQ5cBZr.js} +1 -1
- package/web/app/immutable/chunks/{D-HbS-OO.js → BedgIvkT.js} +1 -1
- package/web/app/immutable/chunks/{CGq1dL3z.js → Bei3Ber-.js} +1 -1
- package/web/app/immutable/chunks/{AlKC0Ocb.js → Bg85AeOE.js} +1 -1
- package/web/app/immutable/chunks/{ButwRe61.js → BgO8l4RL.js} +1 -1
- package/web/app/immutable/chunks/{C5gI3OmS.js → Bh9XFM6t.js} +1 -1
- package/web/app/immutable/chunks/{Do-7hUG3.js → Bhsd_vBR.js} +1 -1
- package/web/app/immutable/chunks/{B64Wa5S6.js → Bi_5p9qD.js} +1 -1
- package/web/app/immutable/chunks/{BJBg5aea.js → BjhYYm97.js} +1 -1
- package/web/app/immutable/chunks/{Moy2Fnv7.js → BlbxSj1X.js} +1 -1
- package/web/app/immutable/chunks/{B_F2KAss.js → BluA3DZF.js} +1 -1
- package/web/app/immutable/chunks/{BRRZ-rdF.js → BluWIyqL.js} +1 -1
- package/web/app/immutable/chunks/{ConZf1Xc.js → BmH3z8uN.js} +1 -1
- package/web/app/immutable/chunks/{DGgxtq4s.js → Bo-zVBuZ.js} +1 -1
- package/web/app/immutable/chunks/{fBGaFk7o.js → Bpl_qBuR.js} +3 -3
- package/web/app/immutable/chunks/{Bbp04L_p.js → Bq9n6Tla.js} +1 -1
- package/web/app/immutable/chunks/{CLD_-K5U.js → BqGa1t8L.js} +1 -1
- package/web/app/immutable/chunks/{CHVebKY7.js → BqzT4O7L.js} +3 -3
- package/web/app/immutable/chunks/{BxEYTNET.js → Br53KhNC.js} +1 -1
- package/web/app/immutable/chunks/{alfd90bM.js → BrfrzpId.js} +1 -1
- package/web/app/immutable/chunks/{BhKKK-kE.js → BszkqKbM.js} +1 -1
- package/web/app/immutable/chunks/{BGAw0soA.js → BtoR1PxE.js} +1 -1
- package/web/app/immutable/chunks/{ryY3ARJp.js → Bu1TNEzu.js} +1 -1
- package/web/app/immutable/chunks/{BkJlUIRT.js → BuWwi-OB.js} +1 -1
- package/web/app/immutable/chunks/{Cm_3RFg5.js → BvEWkly-.js} +1 -1
- package/web/app/immutable/chunks/{C_xs3Po8.js → BwV7CRGN.js} +1 -1
- package/web/app/immutable/chunks/{Dv_zibKv.js → BwsZanfL.js} +1 -1
- package/web/app/immutable/chunks/{PgqRte-r.js → Bxs2oudl.js} +1 -1
- package/web/app/immutable/chunks/{BWX_OVAE.js → ByTn8oHf.js} +1 -1
- package/web/app/immutable/chunks/{DJQwKIJU.js → BykIeP0g.js} +1 -1
- package/web/app/immutable/chunks/{Di3oOarF.js → Bz3tuC8r.js} +2 -2
- package/web/app/immutable/chunks/{U10EozJE.js → BzQ3ATRh.js} +2 -2
- package/web/app/immutable/chunks/{BK_ocHH_.js → C-Reftw2.js} +1 -1
- package/web/app/immutable/chunks/{EAmw13pe.js → C-hb5nbb.js} +1 -1
- package/web/app/immutable/chunks/{D24Cy14e.js → C0RmcaXo.js} +1 -1
- package/web/app/immutable/chunks/{CokgYiLR.js → C1T-qy7I.js} +1 -1
- package/web/app/immutable/chunks/{BghGxAUO.js → C1o3spBY.js} +1 -1
- package/web/app/immutable/chunks/C2wAzMR4.js +176 -0
- package/web/app/immutable/chunks/{DHuPiSx5.js → C3UeOegI.js} +1 -1
- package/web/app/immutable/chunks/{DYBIQz8Q.js → C4GIXttQ.js} +1 -1
- package/web/app/immutable/chunks/{n_DC9aJx.js → C4_rKMDp.js} +13 -13
- package/web/app/immutable/chunks/{DA_NmGws.js → C4ndhNfG.js} +1 -1
- package/web/app/immutable/chunks/{DABONrQm.js → C4pyVvwk.js} +1 -1
- package/web/app/immutable/chunks/{CVAjc0yi.js → C6NQnjdC.js} +1 -1
- package/web/app/immutable/chunks/{D19QUWJk.js → C6XOSM-4.js} +1 -1
- package/web/app/immutable/chunks/{CGAW_CqO.js → C6pmzcFd.js} +1 -1
- package/web/app/immutable/chunks/{CLEN2qBh.js → C6sQTdfe.js} +1 -1
- package/web/app/immutable/chunks/{BV6tz7in.js → C6vubJsO.js} +1 -1
- package/web/app/immutable/chunks/{DNbGju-D.js → C7XLe6Fq.js} +1 -1
- package/web/app/immutable/chunks/{2f17jIS_.js → C8b1hAiZ.js} +1 -1
- package/web/app/immutable/chunks/{_yja1RDN.js → C9YJ2_w0.js} +1 -1
- package/web/app/immutable/chunks/{DBzwbLy-.js → C9nffMna.js} +1 -1
- package/web/app/immutable/chunks/{C1rlyspR.js → CAEXUpGf.js} +1 -1
- package/web/app/immutable/chunks/{elqYuZ6s.js → CAqlFYYX.js} +1 -1
- package/web/app/immutable/chunks/{jCb2rWV2.js → CBgqNyOn.js} +1 -1
- package/web/app/immutable/chunks/{B7D3Z-Y4.js → CCBDeIiF.js} +1 -1
- package/web/app/immutable/chunks/{C79wLg62.js → CCDDqQJs.js} +1 -1
- package/web/app/immutable/chunks/{DP4Ph7EA.js → CCm0OKl5.js} +1 -1
- package/web/app/immutable/chunks/CDNiWmce.js +1 -0
- package/web/app/immutable/chunks/{7QQiv-wr.js → CDSuKhpz.js} +1 -1
- package/web/app/immutable/chunks/{BUG9TrVX.js → CE2LFl-Z.js} +1 -1
- package/web/app/immutable/chunks/CE9WteXp.js +1 -0
- package/web/app/immutable/chunks/{Q1GArL_y.js → CFidbeSw.js} +1 -1
- package/web/app/immutable/chunks/{Dw_UfDsA.js → CFtRsKmm.js} +1 -1
- package/web/app/immutable/chunks/{DLLVCgsV.js → CGDxdR4I.js} +1 -1
- package/web/app/immutable/chunks/{DDy_8zbA.js → CH6-PW8d.js} +1 -1
- package/web/app/immutable/chunks/{XHWmx2fo.js → CI4L9sp8.js} +1 -1
- package/web/app/immutable/chunks/{DV6XB2ci.js → CJ9TjlSl.js} +1 -1
- package/web/app/immutable/chunks/{Vm4nXzsi.js → CJAHD8Av.js} +1 -1
- package/web/app/immutable/chunks/{CC7j966i.js → CKwXUgM5.js} +1 -1
- package/web/app/immutable/chunks/{nXQJ8vXX.js → CLDOuGzT.js} +1 -1
- package/web/app/immutable/chunks/{DR2SVCXR.js → CLG5hs6R.js} +1 -1
- package/web/app/immutable/chunks/{C8i00JgJ.js → CMQcQe3J.js} +1 -1
- package/web/app/immutable/chunks/{Be7gn9X-.js → CMmAwBL2.js} +1 -1
- package/web/app/immutable/chunks/{BG3WACU1.js → CORIYKie.js} +1 -1
- package/web/app/immutable/chunks/{Bff_Rbbv.js → CQ0hCG0n.js} +1 -1
- package/web/app/immutable/chunks/{D2jeSuJo.js → CQ2XnxCv.js} +1 -1
- package/web/app/immutable/chunks/{_1FSfiRe.js → CQBcB58U.js} +1 -1
- package/web/app/immutable/chunks/{CiSSCgqR.js → CQocjKjX.js} +1 -1
- package/web/app/immutable/chunks/{CC7Uzavp.js → CR6eaDMw.js} +1 -1
- package/web/app/immutable/chunks/{flRZVSKn.js → CRLV4RHy.js} +1 -1
- package/web/app/immutable/chunks/{8DKB8YcU.js → CTcdcUyj.js} +1 -1
- package/web/app/immutable/chunks/{CXq2AoEa.js → CThSE8LQ.js} +1 -1
- package/web/app/immutable/chunks/{CZlp_xaa.js → CXEzZ2hR.js} +1 -1
- package/web/app/immutable/chunks/{Dkq3_GD2.js → CXfsvSt9.js} +1 -1
- package/web/app/immutable/chunks/{DcS7tCp_.js → CYKcOC1a.js} +1 -1
- package/web/app/immutable/chunks/{CZScRu8r.js → CYP3WRBZ.js} +1 -1
- package/web/app/immutable/chunks/{DbF4GEUt.js → CZLC2BGb.js} +1 -1
- package/web/app/immutable/chunks/{D7W8zNV0.js → Ca-5qIPO.js} +1 -1
- package/web/app/immutable/chunks/{_5QQ1P8H.js → CaD-rr4v.js} +1 -1
- package/web/app/immutable/chunks/{BVZHN8O1.js → CcNWV5oe.js} +1 -1
- package/web/app/immutable/chunks/{DOB06fXT.js → CfsrLxYu.js} +1 -1
- package/web/app/immutable/chunks/CgZG1QkR.js +1 -0
- package/web/app/immutable/chunks/{DI85QvsH.js → Ch4PqakC.js} +1 -1
- package/web/app/immutable/chunks/{BZvzMoRv.js → ChXvhbof.js} +1 -1
- package/web/app/immutable/chunks/{B-7yIMT_.js → ChpnaSsg.js} +1 -1
- package/web/app/immutable/chunks/CiTaZNiG.js +1 -0
- package/web/app/immutable/chunks/{DzsS0_p_.js → CjuG-F5E.js} +1 -1
- package/web/app/immutable/chunks/{DG5HQEoF.js → Ck9E0Ysi.js} +1 -1
- package/web/app/immutable/chunks/{4uhoMHE_.js → Ckre-sgD.js} +1 -1
- package/web/app/immutable/chunks/{CL7qDIdV.js → ClEAI4g1.js} +3 -3
- package/web/app/immutable/chunks/{Cqru5LxS.js → ClI6BjKq.js} +1 -1
- package/web/app/immutable/chunks/{CJeXodn0.js → CmUp-Sqv.js} +1 -1
- package/web/app/immutable/chunks/{C0iYgKNx.js → Cng0L1r4.js} +1 -1
- package/web/app/immutable/chunks/{BvgeBoe1.js → Cp1SIa9c.js} +1 -1
- package/web/app/immutable/chunks/{nPXXKIa-.js → CpUG4uWd.js} +1 -1
- package/web/app/immutable/chunks/{DNmf6q32.js → CqSZC6ch.js} +1 -1
- package/web/app/immutable/chunks/{zB1IXbXb.js → CrgKt6cz.js} +1 -1
- package/web/app/immutable/chunks/{D1BBZ1Su.js → CsC9zelV.js} +1 -1
- package/web/app/immutable/chunks/{EAy3xyVJ.js → CvQjTi4D.js} +2 -2
- package/web/app/immutable/chunks/{CuNeyUoC.js → CyRyIWdG.js} +1 -1
- package/web/app/immutable/chunks/{CvFqJ3aj.js → Cyk2Y411.js} +1 -1
- package/web/app/immutable/chunks/{D01RaHSK.js → D-qx9bcE.js} +1 -1
- package/web/app/immutable/chunks/{ByTueQZz.js → D1tVMvmo.js} +1 -1
- package/web/app/immutable/chunks/{CVBzfNwe.js → D2NUq8UU.js} +1 -1
- package/web/app/immutable/chunks/{DmEF8CQK.js → D2c3A473.js} +1 -1
- package/web/app/immutable/chunks/{CUYJI5X_.js → D31UPrBJ.js} +1 -1
- package/web/app/immutable/chunks/{DVGWHR1H.js → D4nLWqqO.js} +1 -1
- package/web/app/immutable/chunks/{1MVyJ09_.js → D67FZ5Lv.js} +1 -1
- package/web/app/immutable/chunks/{BkDiy3qO.js → D7WbMK4o.js} +1 -1
- package/web/app/immutable/chunks/{CgeqCnG6.js → D7niCCgo.js} +1 -1
- package/web/app/immutable/chunks/{CsQLAzr5.js → D9yIi5KK.js} +1 -1
- package/web/app/immutable/chunks/{D7sOTjCO.js → DA9Mdvxh.js} +1 -1
- package/web/app/immutable/chunks/{DSYQunl3.js → DAw72DZa.js} +1 -1
- package/web/app/immutable/chunks/{BNH_hD0i.js → DC8uF3lu.js} +1 -1
- package/web/app/immutable/chunks/{Zq02JorO.js → DD5eVBJb.js} +1 -1
- package/web/app/immutable/chunks/{CGPTsmEd.js → DDXthoba.js} +1 -1
- package/web/app/immutable/chunks/{CJSinxIK.js → DDaa7h_m.js} +1 -1
- package/web/app/immutable/chunks/{CdNWk-Bu.js → DEHoDrdd.js} +1 -1
- package/web/app/immutable/chunks/{Bo32wczA.js → DFNql_nS.js} +1 -1
- package/web/app/immutable/chunks/{kQoy32cr.js → DFYNZGf0.js} +1 -1
- package/web/app/immutable/chunks/{T940uwQN.js → DHffIWwt.js} +3 -3
- package/web/app/immutable/chunks/{vbGVPT6S.js → DHgdHC6B.js} +1 -1
- package/web/app/immutable/chunks/{C1a72gDa.js → DIKaua7R.js} +1 -1
- package/web/app/immutable/chunks/{DXJvf4ja.js → DIuXteuM.js} +1 -1
- package/web/app/immutable/chunks/{DQloJDQl.js → DJWDj1lZ.js} +1 -1
- package/web/app/immutable/chunks/{-Yzk2rdh.js → DJcIRc5D.js} +1 -1
- package/web/app/immutable/chunks/{NuBvLfzz.js → DK7i7mSH.js} +1 -1
- package/web/app/immutable/chunks/{DywT6cR_.js → DMSGpXyL.js} +2 -2
- package/web/app/immutable/chunks/{CIjzTMjk.js → DOaNjGx3.js} +1 -1
- package/web/app/immutable/chunks/{plzucQew.js → DP1vd71f.js} +1 -1
- package/web/app/immutable/chunks/{BsQjFYUU.js → DQmIdOy5.js} +1 -1
- package/web/app/immutable/chunks/{BNXO9e-K.js → DUa7Jvhz.js} +2 -2
- package/web/app/immutable/chunks/{CdYki3Ne.js → DUaHJCzY.js} +1 -1
- package/web/app/immutable/chunks/{CrG8QfjF.js → DUzPWaFA.js} +1 -1
- package/web/app/immutable/chunks/{D8hpao6N.js → DVxqmkFy.js} +1 -1
- package/web/app/immutable/chunks/{CaFfZGOK.js → DWEDgLOm.js} +1 -1
- package/web/app/immutable/chunks/{DfIwRMMx.js → DWbtFEwH.js} +1 -1
- package/web/app/immutable/chunks/{epeXa5Nl.js → DYaRWcpg.js} +1 -1
- package/web/app/immutable/chunks/{DdQ2Ee-5.js → DZSVN5v8.js} +1 -1
- package/web/app/immutable/chunks/{ClcIbYyp.js → DZtCGZgy.js} +1 -1
- package/web/app/immutable/chunks/{yYJfu2JX.js → DaNGy3D8.js} +1 -1
- package/web/app/immutable/chunks/{CUPNFNnH.js → DcR44gq9.js} +1 -1
- package/web/app/immutable/chunks/{CBM6AzvV.js → DgNEPBVe.js} +1 -1
- package/web/app/immutable/chunks/{Cc_mAvF5.js → Dh1ev8RB.js} +1 -1
- package/web/app/immutable/chunks/{vojGrKrS.js → DizljkHL.js} +1 -1
- package/web/app/immutable/chunks/{COBWKiGh.js → DjY1surq.js} +1 -1
- package/web/app/immutable/chunks/{D-37OIYf.js → DjeFU-Mu.js} +1 -1
- package/web/app/immutable/chunks/{BVZsZXmm.js → Dk5qPA5a.js} +1 -1
- package/web/app/immutable/chunks/{DSQMj_om.js → Dkw1IBph.js} +1 -1
- package/web/app/immutable/chunks/{wsJnb2w5.js → DnDBa5Or.js} +4 -4
- package/web/app/immutable/chunks/{D8JHIZfM.js → Dqi9bJNf.js} +1 -1
- package/web/app/immutable/chunks/{CrrPK0Iv.js → DrLx8OXO.js} +1 -1
- package/web/app/immutable/chunks/{Jbhi_cxP.js → DrSdReTn.js} +1 -1
- package/web/app/immutable/chunks/{Db_IhgBX.js → DrhiSb3J.js} +3 -3
- package/web/app/immutable/chunks/{D-QSPFPS.js → Dtxuz85W.js} +1 -1
- package/web/app/immutable/chunks/{D4ILfrQP.js → Du4MGCS4.js} +2 -2
- package/web/app/immutable/chunks/{BpOFfIvt.js → Du7ytJ4P.js} +1 -1
- package/web/app/immutable/chunks/{CbmUPEyZ.js → DuJdf9UG.js} +1 -1
- package/web/app/immutable/chunks/{CqDJmhHZ.js → DuOIvAqY.js} +2 -2
- package/web/app/immutable/chunks/{D73fvKXP.js → Dv3pGERg.js} +1 -1
- package/web/app/immutable/chunks/{DkPeQV3c.js → DvIus6kU.js} +1 -1
- package/web/app/immutable/chunks/{DwzYDj81.js → DwhPYiCJ.js} +1 -1
- package/web/app/immutable/chunks/{By1IjcbO.js → Dx9DzOqr.js} +1 -1
- package/web/app/immutable/chunks/{KkoOm1V0.js → DxFZ9gq2.js} +1 -1
- package/web/app/immutable/chunks/{C0-eX4eQ.js → DxM_2tEs.js} +1 -1
- package/web/app/immutable/chunks/{CBRPyq3u.js → Dx_cihQo.js} +3 -3
- package/web/app/immutable/chunks/{C8LXsE7b.js → DxgNlamv.js} +1 -1
- package/web/app/immutable/chunks/{LSzEWm4Q.js → DyYAxHE8.js} +1 -1
- package/web/app/immutable/chunks/{3RdDKrNK.js → DzCzYdRR.js} +1 -1
- package/web/app/immutable/chunks/{BVZ3OidP.js → EENIG6sq.js} +1 -1
- package/web/app/immutable/chunks/{B5jBKY1h.js → ETRy7Ggy.js} +1 -1
- package/web/app/immutable/chunks/{CeXu7r8X.js → F4cRH-lc.js} +1 -1
- package/web/app/immutable/chunks/{DMAUyJ2P.js → FkFkR8K2.js} +1 -1
- package/web/app/immutable/chunks/{NOaXnPaj.js → G87kWWA0.js} +2 -2
- package/web/app/immutable/chunks/{BCaye4Uu.js → HRcGzcZS.js} +1 -1
- package/web/app/immutable/chunks/{CrgZFb5y.js → IfYdwdBR.js} +1 -1
- package/web/app/immutable/chunks/{N6kzLiXM.js → J04upo63.js} +1 -1
- package/web/app/immutable/chunks/{DLxYdmRB.js → J1LWsTd9.js} +1 -1
- package/web/app/immutable/chunks/{Bult6xm-.js → JAWGj4Yi.js} +2 -2
- package/web/app/immutable/chunks/{g9ZlPi9F.js → Jf_R-Aac.js} +2 -2
- package/web/app/immutable/chunks/{CE6pj9s3.js → KYr22_OD.js} +1 -1
- package/web/app/immutable/chunks/{oxDrPxDU.js → KilK2UOM.js} +1 -1
- package/web/app/immutable/chunks/{DtvdPXC0.js → LwSSBtxX.js} +1 -1
- package/web/app/immutable/chunks/{BV1K6wKe.js → M2GCPKoA.js} +1 -1
- package/web/app/immutable/chunks/{ByQw5PSS.js → O-SiHQ6R.js} +1 -1
- package/web/app/immutable/chunks/{CoaHiAox.js → Or_TQbr1.js} +1 -1
- package/web/app/immutable/chunks/{D9tcLZ_Y.js → Qb3uerTr.js} +1 -1
- package/web/app/immutable/chunks/{BgyYCiyL.js → Qizor3xZ.js} +1 -1
- package/web/app/immutable/chunks/{CpbmyPj0.js → Qm-MZg2p.js} +1 -1
- package/web/app/immutable/chunks/{zgekXgkJ.js → QnpVdYT5.js} +1 -1
- package/web/app/immutable/chunks/{D2-mq7g4.js → R19W582_.js} +1 -1
- package/web/app/immutable/chunks/{DyCS2A-K.js → RGmB-SjS.js} +1 -1
- package/web/app/immutable/chunks/{BNZHgKSk.js → UWQdg-A2.js} +1 -1
- package/web/app/immutable/chunks/{nK5lgmDU.js → UfUfpfpL.js} +1 -1
- package/web/app/immutable/chunks/{N7qvIOuv.js → W_r4iRxt.js} +1 -1
- package/web/app/immutable/chunks/{0FRtEAk_.js → WvbffGVg.js} +1 -1
- package/web/app/immutable/chunks/{BrQE9aYr.js → Xu7DniMQ.js} +1 -1
- package/web/app/immutable/chunks/{CSRsy1MH.js → XvnVMArq.js} +1 -1
- package/web/app/immutable/chunks/{CIW89ENH.js → ZTWlL5zM.js} +1 -1
- package/web/app/immutable/chunks/{BDq2t_9P.js → _3XbzhXe.js} +1 -1
- package/web/app/immutable/chunks/{Bkg1yy3c.js → aa7X5cNm.js} +1 -1
- package/web/app/immutable/chunks/{Bzd2CMX7.js → awTIGLLj.js} +1 -1
- package/web/app/immutable/chunks/{DM4O8kyl.js → bP8UGzws.js} +1 -1
- package/web/app/immutable/chunks/{CvBqgDaO.js → c4H2cXzd.js} +1 -1
- package/web/app/immutable/chunks/{CPnsz9Hs.js → cH4zbEq8.js} +1 -1
- package/web/app/immutable/chunks/{BChgcxXb.js → cn1R3ng9.js} +3 -3
- package/web/app/immutable/chunks/{DOpB1zPF.js → dDu7RcXM.js} +1 -1
- package/web/app/immutable/chunks/{zAJ7GuqN.js → dVG3dMki.js} +1 -1
- package/web/app/immutable/chunks/{zGpo4Blc.js → dZVNnMZs.js} +3 -3
- package/web/app/immutable/chunks/{9M4Pl7xy.js → dqo-Nkop.js} +1 -1
- package/web/app/immutable/chunks/{CdZoWikL.js → gHustHEr.js} +1 -1
- package/web/app/immutable/chunks/{DlKmdKxb.js → jLuOcx2N.js} +1 -1
- package/web/app/immutable/chunks/{D6iZo_ET.js → jhvKFO58.js} +1 -1
- package/web/app/immutable/chunks/{DCbtEZw8.js → l-VTMc_p.js} +1 -1
- package/web/app/immutable/chunks/{ByW7bxEK.js → qD_x_a7m.js} +1 -1
- package/web/app/immutable/chunks/{BNJBQg5K.js → sYvdi7eG.js} +1 -1
- package/web/app/immutable/chunks/{BQDjmnIn.js → stD6q5ZD.js} +1 -1
- package/web/app/immutable/chunks/{DiCNp-8B.js → u_sm9GBc.js} +1 -1
- package/web/app/immutable/chunks/{DiuuSzCC.js → vf6pveFy.js} +1 -1
- package/web/app/immutable/chunks/{CIu-y8lY.js → wAO5YQrd.js} +1 -1
- package/web/app/immutable/chunks/{hwmpZCuz.js → xQ1tvRyj.js} +1 -1
- package/web/app/immutable/chunks/{wM5E_fWg.js → xnUCUXHt.js} +1 -1
- package/web/app/immutable/chunks/{PtztmcML.js → yQ7GpLm3.js} +1 -1
- package/web/app/immutable/chunks/{1Kd2V6Ma.js → yVGqQrjf.js} +1 -1
- package/web/app/immutable/chunks/{LYm3QdT8.js → yyRLwoJz.js} +1 -1
- package/web/app/immutable/chunks/{DAg74Tfa.js → zHH7Kw4o.js} +1 -1
- package/web/app/immutable/entry/{app.D2bTUfu9.js → app.CMLUt8-K.js} +3 -3
- package/web/app/immutable/entry/start.D1qRxQ8x.js +1 -0
- package/web/app/immutable/nodes/{0.CPawR9BC.js → 0.BYH6vQW3.js} +1 -1
- package/web/app/immutable/nodes/{1.BlDqJU7r.js → 1.BAkbiSMg.js} +1 -1
- package/web/app/immutable/nodes/{10.BAMGMKNX.js → 10.DqnjBdnF.js} +5 -5
- package/web/app/immutable/nodes/{11.-7mABFeH.js → 11.mfKuarNN.js} +1 -1
- package/web/app/immutable/nodes/{12.CjcrqPFZ.js → 12.B8dwNd6E.js} +1 -1
- package/web/app/immutable/nodes/{13.Bc2gRY3E.js → 13.5M8H2X4b.js} +1 -1
- package/web/app/immutable/nodes/{14.W7UKKBbJ.js → 14.BzYka-40.js} +3 -3
- package/web/app/immutable/nodes/15.BcZNrBDb.js +3 -0
- package/web/app/immutable/nodes/{16.nAu8Tcun.js → 16.BZoPxych.js} +1 -1
- package/web/app/immutable/nodes/{17.BmHoggX-.js → 17.Cqw6uBts.js} +1 -1
- package/web/app/immutable/nodes/{18.CDqK9mtR.js → 18.Bhk-SJCV.js} +1 -1
- package/web/app/immutable/nodes/{19.BLC2e5Ym.js → 19.CKvaRxuS.js} +2 -2
- package/web/app/immutable/nodes/{2.CclojtZK.js → 2.BQJHslkB.js} +4 -4
- package/web/app/immutable/nodes/{20.DR7-1biV.js → 20.Dwc7t9AX.js} +1 -1
- package/web/app/immutable/nodes/{3.9s7e_J-v.js → 3.BLUctLcc.js} +1 -1
- package/web/app/immutable/nodes/{4.B6oC0aEI.js → 4.7Oh8cVZj.js} +1 -1
- package/web/app/immutable/nodes/{5.BhdMAH02.js → 5.C8XFrbrE.js} +1 -1
- package/web/app/immutable/nodes/{6.cb_yhLRO.js → 6.BfVTL0z7.js} +1 -1
- package/web/app/immutable/nodes/{7.CW5VpJ10.js → 7.B5PW7bVT.js} +1 -1
- package/web/app/immutable/nodes/{8.BCzBaaLq.js → 8.gpXKsW1b.js} +1 -1
- package/web/app/immutable/nodes/{9.CUYXVSxZ.js → 9.Do91vdif.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B0MfNWkm.js +0 -1
- package/web/app/immutable/chunks/BfX15qhw.js +0 -1
- package/web/app/immutable/chunks/C1QwTBKK.js +0 -176
- package/web/app/immutable/chunks/CBVyphqp.js +0 -1
- package/web/app/immutable/chunks/DDSNlYGe.js +0 -4
- package/web/app/immutable/chunks/Or0TMIv9.js +0 -1
- package/web/app/immutable/entry/start.BjNeM0go.js +0 -1
- package/web/app/immutable/nodes/15.B7EMAryy.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as oe,bo as st,bm as Z,bw as ie,bs as $t,bq as Me,b as ce}from"./
|
|
1
|
+
import{t as oe,bo as st,bm as Z,bw as ie,bs as $t,bq as Me,b as ce}from"./CDNiWmce.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Ne,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./CJxGDkBm.js";import{i as at}from"./DEHoDrdd.js";import{I as ea,g as jt,i as Se}from"./Ca-5qIPO.js";import{f as Xt,g as ne,s as gt,c as se}from"./J1LWsTd9.js";import{b as ba}from"./NtFyWdpR.js";import{f as Ut}from"./BUNb3q2A.js";import"./8VBKAONs.js";import{A as aa,b as na,a as sa}from"./u_sm9GBc.js";import"./CThSE8LQ.js";import{aw as ra,aN as oa,ay as Aa,az as ka,aA as We,ar as ia,b as $a,w as Ta,dI as Ca,aZ as Na,aB as Sa}from"./Dqi9bJNf.js";import{R as Fa}from"./Bctp9lP7.js";import{F as pe,bA as Oa,bf as Ra,aB as Ma,aV as Wa,cD as Da}from"./DcR44gq9.js";import{H as Ba}from"./W_r4iRxt.js";import{A as La}from"./Dkw1IBph.js";import{L as Ea}from"./BAS5Ei9a.js";import{f as Pa}from"./CRLV4RHy.js";import{e as St,I_ as Oe,nM as Ga,fM as za,c1 as ja,sn as Ka,uK as Ha}from"./qD_x_a7m.js";import"./CMQcQe3J.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Za=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Qa=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),N=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Z.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return N()},set onmouseleave(A){N(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ot=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
|
|
2
2
|
hover:shadow transition-all cursor-pointer ${t(A)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return N()},children:(B,Tt)=>{var Rt=an(),Lt=Yt(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Qt=C(Lt,2),_e=K(Qt,!0),Jt=C(Qt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=K(W,!0);$(f);var H=C(f,2);{var nt=z=>{var It=Ua(),ot=K(It,!0);k(()=>D(ot,s().reason)),_(z,It)};at(H,z=>{s().reason&&z(nt)})}var S=C(H,2);{var G=z=>{Fa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(S,z=>{s().timestamp&&z(G)})}$(r),k(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Z.chat_agentCard_attentionBlocker_label():Z.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Za(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=K(M,!0);$(r),k(m=>D(W,m),[()=>Z.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var H=C(m,2);{var nt=Y=>{var Q=Fe(),pt=K(Q,!0);k(Et=>D(pt,Et),[()=>Z.agentOverview_hierarchyCard_thinking_label()]),_(Y,Q)},S=Y=>{var Q=Qa(),pt=K(Q);k(()=>D(pt,`${t(f).verb??""}
|
|
3
3
|
${t(f).subject??""}`)),_(Y,Q)},G=Y=>{var Q=Fe(),pt=K(Q);k(()=>D(pt,`${t(f).verb??""}...`)),_(Y,Q)},z=Y=>{var Q=Fe(),pt=K(Q,!0);k(Et=>D(pt,Et),[()=>Z.agentOverview_hierarchyCard_responding_label()]),_(Y,Q)};at(H,Y=>{i()?Y(nt):t(f)&&t(f).subject?Y(S,1):t(f)?Y(G,2):Y(z,-1)})}$(W);var It=C(W,2);{var ot=Y=>{var Q=Ja(),pt=K(Q,!0);k(()=>D(pt,n().lastResponse)),_(Y,Q)};at(It,Y=>{!t(f)&&n().lastResponse&&Y(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=K(r,!0);k(()=>D(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),k(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ot,2);{var Bt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(Lt=>D(Rt,` ${Lt??""}`),[()=>Z.agentOverview_hierarchyCard_note_label()]),_(A,B)};at(ge,A=>{R()&&u()&&A(Bt)})}$(ht),_(e,ht);var Zt=de(Dt);return l(),Zt}const sn=50;var rn=O('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Ut(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Yt(E),P=K(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),k(()=>D(P,i().name)),_(x,E)},$$slots:{default:!0}});var N=de(b);return d(),N}var re=he('<path fill="none"></path>'),on=O('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=O('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=O('<div class="children-wrapper flex flex-col items-center"></div>'),dn=O('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=O('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=O('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=O('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=O('<div class="text-xs text-subtle capitalize"> </div>'),vn=O('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=O('<span class="text-warning-ink"> </span>'),mn=O('<span class="text-primary-ink"> </span>'),_n=O('<span class="text-green-500"> </span>'),yn=O('<span class="text-red-500"> </span>'),In=O("<span> </span>"),xn=O('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=O('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=O('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=O('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=O('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),H=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),S=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(H),i):[]),z=y(()=>(()=>{const F=[];for(let q=0;q<t(G).length;q+=Tt)F.push(t(G).slice(q,q+Tt));return F})()),It=y(()=>t(z).map(F=>F.reduce((q,J)=>q+J.width,0)+Math.max(0,F.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var Y=dn(),Q=L(Y),pt=L(Q);{var Et=F=>{Re(F,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=F=>{ca(F,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,F=>{t(W)?F(Et):F(we,-1)})}$(Q);var be=C(Q,2);{var U=F=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(S)/2);var xt=ln();jt(xt,21,()=>t(z),Se,(Ht,At,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),Ae=y(()=>(()=>{let ut=0;return t(At).map(j=>{const Nt=ut+j.width/2;return ut+=j.width+i,Nt})})());var ue=cn(),Gt=Yt(ue);gt(Gt,"height",t(S));var qt=L(Gt);{var ke=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} -${Ya} L ${t(ot)/2} ${t(S)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(S)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(ke):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(At),Se,(ut,j,Nt)=>{const vt=y(()=>t(ee)+t(Ae)[Nt]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),kt=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(S)-A:t(S)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Yt(fe);{var va=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(kt)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3}
|
|
4
4
|
L ${t(lt)??""} ${t(et)-t(X)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,r as l,d as t}from"./
|
|
1
|
+
import{g as o,r as l,d as t}from"./CLG5hs6R.js";import{p as m}from"./O-SiHQ6R.js";import{b as n,ay as s}from"./DnDBa5Or.js";import{M as p,d as u}from"./BeQ5cBZr.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bm as n,t as L,bo as i,bw as x,b as B}from"./
|
|
1
|
+
import{bm as n,t as L,bo as i,bw as x,b as B}from"./CDNiWmce.js";import{bs as Q,a5 as U,bS as D,bA as K,b_ as N,aD as f,W as I,bn as P,c9 as A,aA as u,aB as q}from"./CJxGDkBm.js";import{i as E}from"./DEHoDrdd.js";import{f as V,s as _,g as H}from"./J1LWsTd9.js";import{d as R,A as j,a as J}from"./Dkw1IBph.js";import{aL as M}from"./BgO8l4RL.js";import{ny as T,e as m}from"./qD_x_a7m.js";import{e3 as G,O as X,N as Y}from"./Dqi9bJNf.js";function Z(e){switch(e){case"running":return n.layout_activeCard_running_header();case"responding":return n.agentOverview_hierarchyGraph_statusResponding_label();case"unread":return n.layout_activeCard_unread_header();case"completed":return n.agentOverview_hierarchyGraph_statusCompleted_label();case"failed":return n.agentOverview_hierarchyGraph_statusFailed_label();case"question":return n.chat_questionWizard_title();case"waiting":return n.agentOverview_hierarchyGraph_statusWaiting_label();case"needs-permission":return n.events_activity_agentAskedPermission_label();case"attention-discussion":return n.chat_agentCard_attentionDiscussion_label();case"attention-blocker":return n.chat_agentCard_attentionBlocker_label();case"idle":return n.agentOverview_hierarchyGraph_statusIdle_label()}}var $=q('<span class="agent-avatar-unread-dot svelte-v6mebl" data-avatar-unread-dot=""></span>'),ee=q('<span role="img" data-agent-avatar-with-state="" data-agent-avatar-surface=""><!> <!></span>');function te(e,a){if(new.target)return L({component:te,...e});Q(a,!0);let d=i(a,"agentId",7),l=i(a,"specialist",7,null),o=i(a,"icon",7,null),v=i(a,"provider",7,void 0),c=i(a,"variant",7,R),g=i(a,"size",7,void 0),r=i(a,"state",7,"idle"),h=i(a,"class",7,"");const w=A(()=>Z(r())),y=A(()=>g()??J[c()].surface),p=A(()=>g()===void 0);var O={get agentId(){return d()},set agentId(t){d(t),u()},get specialist(){return l()},set specialist(t=null){l(t),u()},get icon(){return o()},set icon(t=null){o(t),u()},get provider(){return v()},set provider(t=void 0){v(t),u()},get variant(){return c()},set variant(t=R){c(t),u()},get size(){return g()},set size(t=void 0){g(t),u()},get state(){return r()},set state(t="idle"){r(t),u()},get class(){return h()},set class(t=""){h(t),u()},$set:x,$on:(t,b)=>B(a,t,b)},s=ee();let C;var k=U(s);j(k,{get agentId(){return d()},get specialist(){return l()},get icon(){return o()},get provider(){return v()},get variant(){return c()},get size(){return g()}});var W=D(k,2);{var F=t=>{var b=$();I(t,b)};E(W,t=>{r()==="unread"&&t(F)})}return K(s),N(()=>{V(s,1,`agent-avatar-with-state agent-avatar-with-state--${r()??""} ${h()??""}`,"svelte-v6mebl"),_(s,"aria-label",f(w)),_(s,"title",f(w)),_(s,"data-avatar-state",r()),_(s,"data-avatar-variant",f(p)?c():void 0),C=H(s,"",C,{width:f(p)?void 0:`${f(y)}px`,height:f(p)?void 0:`${f(y)}px`})}),I(e,s),P(O)}function S(e){return X(e)}function ae(e){return Y(e)}function z(e,a={}){const{hasUnread:d=!1,isActive:l=!1,isCompleted:o=!1,isFailed:v=!1,hasQuestion:c=!1,hasPermissionRequest:g=!1,attentionKind:r=null}=a;return o&&!S(e)?"completed":v||e.status===m.Error||e.status==="failed"?"failed":c?"question":g?"needs-permission":r==="discussion"?"attention-discussion":r==="blocker"?"attention-blocker":ae(e)?"waiting":S(e)?"running":d&&!l?"unread":"idle"}function ce(e,a={}){if(!e)return z({},a);const d=T(e),l=e.status===m.Completed||String(e.status).toLowerCase()==="completed",o=e.status===m.Error||e.status===m.Deleted||String(e.status).toLowerCase()==="failed";return z(G(e),{...a,hasQuestion:M(e)||a.hasQuestion===!0,hasUnread:a.hasUnread??e.hasUnread,isCompleted:a.isCompleted??l,isFailed:a.isFailed??o,attentionKind:a.attentionKind??d?.kind??null})}function ge(e){return e?S(G(e)):!1}export{te as A,z as a,ce as b,Z as g,ge as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./D19QUWJk.js";import{s as Kt}from"./Dv_zibKv.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./wsJnb2w5.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./C6XOSM-4.js";import{s as Kt}from"./BwsZanfL.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./DnDBa5Or.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as n}from"./
|
|
1
|
+
import{g as l,r as m,d as n}from"./CLG5hs6R.js";import{p}from"./O-SiHQ6R.js";import{b as t,ay as o}from"./DnDBa5Or.js";import{M as u,a as f}from"./BeQ5cBZr.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as O}from"./
|
|
1
|
+
import{d as O}from"./BR6IlpMz.js";function b(a,{from:t,to:r},p={}){var{delay:u=0,duration:n=i=>Math.sqrt(i)*120,easing:y=O}=p,s=getComputedStyle(a),d=s.transform==="none"?"":s.transform,[h,v]=s.transformOrigin.split(" ").map(parseFloat);h/=a.clientWidth,v/=a.clientHeight;var c=W(a),f=a.clientWidth/r.width/c,g=a.clientHeight/r.height/c,x=t.left+t.width*h,m=t.top+t.height*v,w=r.left+r.width*h,S=r.top+r.height*v,l=(x-w)*f,o=(m-S)*g,$=t.width/r.width,z=t.height/r.height;return{delay:u,duration:typeof n=="function"?n(Math.sqrt(l*l+o*o)):n,easing:y,css:(i,e)=>{var C=e*l,q=e*o,H=i+e*$,M=i+e*z;return`transform: ${d} translate(${C}px, ${q}px) scale(${H}, ${M});`}}}function W(a){if("currentCSSZoom"in a)return a.currentCSSZoom;for(var t=a,r=1;t!==null;)r*=+getComputedStyle(t).zoom,t=t.parentElement;return r}export{b as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as ct,bo as ae,bw as dt,bp as jt,b as ut,bm as d,br as Pt,bq as xt,bs as Ae}from"./BfX15qhw.js";import{bs as gt,a5 as qe,bf as Dt,bA as Be,W as r,bn as ft,aA as re,aB as H,aD as e,bS as $,c9 as n,a7 as Y,ay as m,be as Qe,b$ as et,aC as pt,bo as $a,bV as ce,br as It,ca as je,bH as b,c5 as kt,b_ as ve,bO as $e,c0 as Nt,bl as at,aw as Gt,cd as St,bz as wa,bj as Ia}from"./CJxGDkBm.js";import{i as Z}from"./CdNWk-Bu.js";import{k as Kt}from"./CZlp_xaa.js";import{h as ka,I as Aa,g as At,e as xa}from"./D7W8zNV0.js";import{c as x}from"./CrrPK0Iv.js";import{b as Xt}from"./NtFyWdpR.js";import{a4 as ya,a5 as Ta,bc as Ca}from"./ClcIbYyp.js";import Sa from"./DJQwKIJU.js";import{D as Ma}from"./BHi5IZAX.js";import{C as zt}from"./BVZ3OidP.js";import{b as Yt,e as Jt,s as Qt,f as Pa}from"./DLxYdmRB.js";import"./CBM6AzvV.js";import{T as ea}from"./EAy3xyVJ.js";import{I_ as J,dM as Da,dN as La,gS as ta,j2 as Ha,BX as Oa,gy as Ba,i$ as aa,i_ as Ra,DT as Fa,DS as Na,DZ as za,Dw as Ea,Dz as Ua,ck as Va,ci as Za,co as Wa,c1 as qa,Dy as ja,cl as Ga,Df as Ka}from"./ByW7bxEK.js";import{g as Xa}from"./BrMXrCxP.js";import{a as Ya}from"./CvBqgDaO.js";import{u as Et}from"./1gFj_z6C.js";import{ax as Ja,aN as Qa,dD as er,c1 as tr,cf as ar,aL as rr,bs as nr,p as or}from"./D8JHIZfM.js";import{a_ as sr,a$ as ir}from"./DcS7tCp_.js";import{a as lr}from"./B-7yIMT_.js";import{c as cr}from"./ChTqQfQN.js";import{c as dr}from"./flRZVSKn.js";import{C as ur}from"./DDSNlYGe.js";import{o as gr}from"./DAsc1V4f.js";import{I as fr}from"./DlKmdKxb.js";import"./DP4Ph7EA.js";import{s as ra}from"./CXq2AoEa.js";import{a1 as pr,f as lt,ae as mr}from"./Dc2OgodD.js";import"./Dg1sjsED.js";import{D as vr,C as na,T as _r,F as hr,H as br,t as $r,R as wr}from"./3RdDKrNK.js";import{aU as Ir,c$ as oa,F as ht,d2 as $t,B as kr,b0 as Ar,bq as xr,cz as yr,a9 as Tr,cA as Cr,a8 as Sr,cw as Mr,at as Pr,aY as Dr,cY as Lr,af as Hr,ck as Or,am as Br,cR as Rr}from"./CUPNFNnH.js";import{a as Mt,m as Fr}from"./Bo32wczA.js";import{b as Nr}from"./8gFeUK_j.js";import{c as Lt,b as Ht,a as Ot,M as Ut,R as zr}from"./CGPTsmEd.js";import{B as Er}from"./C1QwTBKK.js";import{P as Ur,T as Vr}from"./BgyYCiyL.js";import{b as Zr,P as Wr,c as qr,d as jr}from"./D9wnkmBu.js";import"./C5gI3OmS.js";import{b as Gr}from"./DK8BxGVr.js";import{e as Kr}from"./BMwhw1Uq.js";import"./u9TRZTyq.js";import{M as Vt}from"./BghGxAUO.js";import{M as st}from"./B2tn4QvC.js";import{M as Bt}from"./vojGrKrS.js";import{g as Xr}from"./alfd90bM.js";import{y as Zt,k as Yr}from"./7QQiv-wr.js";import{ay as Jr,$ as Qr}from"./T940uwQN.js";import{l as wt,h as en}from"./Dkq3_GD2.js";import{M as mt}from"./BpOFfIvt.js";import{c as tn}from"./Cn4uSlRl.js";import{t as an}from"./D2MmXC4A.js";import{a as rn,e as nn,d as on,i as sn}from"./DOB06fXT.js";import{b as ln,a as cn,M as dn}from"./CIW89ENH.js";var un=new Set(["$$slots","$$events","$$legacy","children","class"]),gn=H("<div><!></div>");function sa(f,i){if(new.target)return ct({component:sa,...f});gt(i,!0);let w=ae(i,"children",7),p=ae(i,"class",7),v=jt(i,un);tn(()=>!1);var T={get children(){return w()},set children(g){w(g),re()},get class(){return p()},set class(g){p(g),re()},$set:dt,$on:(g,P)=>ut(i,g,P)},k=gn();Yt(k,g=>({"data-slot":"menu-footer",class:g,...v}),[()=>Jt("menu-footer type-caption relative z-10 -mx-1.5 -mb-1.5 mt-1.5 border-t border-border bg-muted/20 px-3.5 py-1.5 leading-(--text-caption-line-height) font-normal text-muted-foreground [&_[data-menu-item]]:hover:bg-hover [&_[data-menu-item]]:focus-visible:bg-hover",p())],void 0,void 0,"svelte-1od5b5i");var S=qe(k);return ra(S,()=>w()??Dt),Be(k),r(f,k),ft(T)}var fn=new Set(["$$slots","$$events","$$legacy","children"]),pn=pt('<path d="M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212ZM84,108A12,12,0,0,1,96,96h64a12,12,0,1,1,0,24H96A12,12,0,0,1,84,108Zm0,40a12,12,0,0,1,12-12h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,148Z"></path>'),mn=pt('<path d="M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z" opacity="0.2"></path><path d="M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z"></path>',1),vn=pt('<path d="M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM160,152H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"></path>'),_n=pt('<path d="M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Zm-52-80a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,144Z"></path>'),hn=pt('<path d="M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z"></path>'),bn=pt('<path d="M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Zm-56-80a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,144Z"></path>'),$n=pt('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function ia(f,i){if(new.target)return ct({component:ia,...f});gt(i,!0);const w=ka();let p=ae(i,"children",7),v=jt(i,fn),T=n(()=>i.weight??w.weight??"regular"),k=n(()=>i.color??w.color??"currentColor"),S=n(()=>i.size??w.size??"1em"),g=n(()=>i.mirrored??w.mirrored??!1);function P(o){let{weight:I,color:O,size:Le,mirrored:X,...Ne}=o;return Ne}var q={get children(){return p()},set children(o){p(o),re()},$set:dt,$on:(o,I)=>ut(i,o,I)},R=$n();Yt(R,(o,I)=>({xmlns:"http://www.w3.org/2000/svg",role:"img",width:e(S),height:e(S),fill:e(k),transform:e(g)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...o,...I}),[()=>P(w),()=>P(v)]);var Re=qe(R);{var ne=o=>{var I=Y(),O=m(I);ra(O,p),r(o,I)};Z(Re,o=>{p()&&o(ne)})}var c=$(Re,2);{var z=o=>{var I=pn();r(o,I)},Ce=o=>{var I=mn();Qe(),r(o,I)},Ee=o=>{var I=vn();r(o,I)},Fe=o=>{var I=_n();r(o,I)},K=o=>{var I=hn();r(o,I)},de=o=>{var I=bn();r(o,I)},u=o=>{var I=et();I.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),r(o,I)};Z(c,o=>{e(T)==="bold"?o(z):e(T)==="duotone"?o(Ce,1):e(T)==="fill"?o(Ee,2):e(T)==="light"?o(Fe,3):e(T)==="regular"?o(K,4):e(T)==="thin"?o(de,5):o(u,-1)})}return Be(R),r(f,R),ft(q)}var wn=H('<div class="type-caption flex items-center gap-[var(--space-2)] px-[var(--space-2)] py-[var(--space-1)] text-muted-foreground" data-testid="chat-message-navigator-loading"><!> <span> </span></div>'),In=H('<span class="block min-w-0 max-w-full flex-1 overflow-hidden whitespace-nowrap text-left text-ellipsis font-normal"> </span>'),kn=H('<div role="listbox" class="mt-[var(--space-1)] min-h-0 min-w-0 flex-1 max-h-72 overflow-x-hidden overflow-y-auto overscroll-contain"></div>'),An=H('<div class="type-caption px-2 py-6 text-left text-muted-foreground" data-testid="chat-message-navigator-empty"> </div>'),xn=H('<div class="flex min-h-0 min-w-0 max-h-full flex-1 flex-col overflow-hidden" data-testid="chat-message-navigator-panel"><!> <div role="status" aria-live="polite" class="shrink-0" data-testid="chat-message-navigator-loading-region"><!></div> <!></div>'),Wt=H("<!> <!>",1),yn=H('<div class="flex shrink-0 items-center gap-0.5" data-testid="chat-header-navigation-controls"><!> <!></div>');function la(f,i){const w=$a();if(new.target)return ct({component:la,...f});gt(i,!0);const p=t=>{var h=xn(),F=qe(h);{let N=n(()=>d.chat_messageNavigator_search_ariaLabel()),M=n(()=>e(O).length>0?I:void 0),U=n(()=>d.chat_messageNavigator_search_placeholder());fr(F,{get value(){return e(ne)},oninput:nt,onkeydown:j,role:"combobox",get"aria-label"(){return e(N)},get"aria-controls"(){return e(M)},"aria-expanded":"true","aria-autocomplete":"list",get"aria-activedescendant"(){return e(Le)},autocomplete:"off",get placeholder(){return e(U)},class:"type-caption h-(--control-height-medium) w-full min-w-0 shrink-0 rounded-(--radius-small) border border-border bg-card px-[var(--space-2)] text-foreground caret-foreground outline-none placeholder:text-muted-foreground","data-testid":"chat-message-navigator-search",get ref(){return e(Fe)},set ref(B){b(Fe,B,!0)}})}var G=$(F,2),ee=qe(G);{var ye=N=>{var M=wn(),U=qe(M);Aa(U,{size:16});var B=$(U,2),Ie=at(B,!0);Be(M),ve(D=>$e(Ie,D),[()=>d.chat_messageNavigator_loading_label()]),r(N,M)};Z(ee,N=>{P()&&N(ye)})}Be(G);var se=$(G,2);{var ie=N=>{var M=kn();At(M,23,()=>e(O),U=>U.id,(U,B,Ie)=>{{let D=n(()=>!e(Re)[e(B).id]),y=n(()=>q()?"":"h-(--control-height-large)");mr(U,{get content(){return e(B).text},get disabled(){return e(D)},side:"left",align:"center",delayDuration:300,size:"sm",get class(){return`block w-full min-w-0 max-w-full ${e(y)??""}`},contentClass:"max-w-[min(28rem,calc(100vw-var(--space-4)))] break-words text-left",children:(_e,ge)=>{{let fe=n(()=>X(e(B).id)),Oe=n(()=>e(Ie)===e(c)),Se=n(()=>Jt(Mt(),Nr,"max-w-full cursor-pointer overflow-hidden text-muted-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/40",q()?"font-normal":"font-medium",!q()&&"h-(--control-height-large) min-h-(--control-height-large) max-h-(--control-height-large)",q()?"hover:bg-hover hover:text-foreground":"hover:bg-accent/60 hover:text-accent-foreground",e(Ie)===e(c)&&(q()?"bg-selected text-foreground":"bg-accent text-accent-foreground"))),Me=n(()=>q()||void 0);lt(_e,{type:"button",variant:"plain",labelClass:"overflow-hidden whitespace-nowrap text-left text-ellipsis",get id(){return e(fe)},role:"option",tabindex:-1,get"aria-selected"(){return e(Oe)},get class(){return e(Se)},onclick:()=>void ue(e(B).id),onkeydown:Pe=>{(Pe.key==="Enter"||Pe.key===" ")&&(Pe.preventDefault(),ue(e(B).id))},onpointermove:()=>{(e(c)!==e(Ie)||e(z))&&He(e(Ie))},"data-testid":"chat-message-navigator-result",get"data-navigation-message-id"(){return e(B).id},get"data-panel-menu-row"(){return e(Me)},children:(Pe,le)=>{var Ue=In(),Xe=at(Ue,!0);xa(Ue,(Ye,Ve)=>gr?.(Ye,Ve),()=>Ye=>e(Re)[e(B).id]=Ye),ve(()=>$e(Xe,e(B).text)),r(Pe,Ue)},$$slots:{default:!0}})}},$$slots:{default:!0}})}}),Be(M),ve(()=>Qt(M,"id",I)),Gt("scroll",M,tt),r(N,M)},W=N=>{var M=An(),U=at(M,!0);ve(B=>$e(U,B),[()=>d.chat_messageNavigator_empty_label()]),r(N,M)};Z(se,N=>{e(O).length>0?N(ie):P()||N(W,1)})}Be(h),r(t,h)};let v=ae(i,"messages",7),T=ae(i,"isAtBottom",7),k=ae(i,"onSelectMessage",7),S=ae(i,"onScrollToBottom",7),g=ae(i,"onOpen",7),P=ae(i,"isLoadingIndex",7,!1),q=ae(i,"embedded",7,!1),R=ce(!1),Re=ce(It({})),ne=ce(""),c=ce(0),z=ce(!0),Ce=null,Ee=!1,Fe=ce(null),K=ce(null),de=ce(null),u=ce(It([])),o=ce(!1);const I=`chat-message-navigator-listbox-${w}`,O=n(()=>{const t=e(ne).trim().toLocaleLowerCase();return t?v().filter(h=>h.text.toLocaleLowerCase().includes(t)):v()}),Le=n(()=>e(O)[e(c)]?X(e(O)[e(c)].id):void 0);function X(t){return`${I}-option-${encodeURIComponent(t)}`}function Ne(t){if(b(R,t,!0),!t)return;const h=e(K)?.closest("[data-panel-id]");b(u,h?[h]:[],!0),b(ne,""),b(z,!0),b(c,Math.max(v().length-1,0),!0),g()?.()}function nt(t){b(ne,t.currentTarget.value,!0),b(z,!0),b(c,Math.max(e(O).length-1,0),!0)}function He(t){b(z,!1),b(c,t,!0),Ce=e(O)[t]?.id??null}function tt(){Ee||b(z,!1)}je(()=>{if(!e(R))return;const t=e(O).length;if(t===0)return;if(e(z)){b(c,t-1),Ce=e(O)[t-1].id;return}const h=kt(()=>e(c)),F=Ce===null?-1:e(O).findIndex(G=>G.id===Ce);F>=0?F!==h&&b(c,F,!0):h>=t?(b(c,t-1),Ce=e(O)[t-1].id):Ce=e(O)[h]?.id??null}),je(()=>{if(!e(R)||!e(de)||e(O).length===0)return;const t=e(Le)?document.getElementById(e(Le)):null;t&&(Ee=!0,t.scrollIntoView?.({block:"nearest"}),requestAnimationFrame(()=>{Ee=!1}))});function C(t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),Ne(!e(R)))}function E(t){t.preventDefault(),e(Fe)?.focus()}async function xe(){await Nt(),e(R)&&e(Fe)?.focus()}function we(t){return e(de)?.contains(t)?!0:t instanceof Element?t.closest("[data-chat-message-navigator-content]")?.dataset.chatMessageNavigatorContent===w:!1}function oe(t){!e(R)||!(t.target instanceof Node)||e(K)?.contains(t.target)||we(t.target)||(b(o,!0),Ne(!1))}function Q(t){e(o)&&(t.preventDefault(),b(o,!1))}async function ue(t){b(R,!1),await Nt(),await k()(t)}function j(t){if(q()&&t.stopPropagation(),t.key==="Escape"){t.preventDefault(),b(R,!1);return}e(O).length!==0&&(t.key==="ArrowDown"?(t.preventDefault(),He((e(c)+1)%e(O).length)):t.key==="ArrowUp"?(t.preventDefault(),He((e(c)-1+e(O).length)%e(O).length)):t.key==="Home"?(t.preventDefault(),He(0)):t.key==="End"?(t.preventDefault(),He(e(O).length-1)):t.key==="Enter"&&(t.preventDefault(),ue(e(O)[e(c)].id)))}var te={get messages(){return v()},set messages(t){v(t),re()},get isAtBottom(){return T()},set isAtBottom(t){T(t),re()},get onSelectMessage(){return k()},set onSelectMessage(t){k(t),re()},get onScrollToBottom(){return S()},set onScrollToBottom(t){S(t),re()},get onOpen(){return g()},set onOpen(t){g(t),re()},get isLoadingIndex(){return P()},set isLoadingIndex(t=!1){P(t),re()},get embedded(){return q()},set embedded(t=!1){q(t),re()},$set:dt,$on:(t,h)=>ut(i,t,h)},a=Y(),s=m(a);{var A=t=>{var h=Y(),F=m(h);x(F,()=>Ot,(G,ee)=>{ee(G,{onOpenChange:Ne,get open(){return e(R)},set open(ye){b(R,ye,!0)},children:(ye,se)=>{var ie=Wt(),W=m(ie);x(W,()=>Lt,(M,U)=>{U(M,{get icon(){return Ir},onSelect:xe,"data-testid":"chat-message-navigator-trigger",children:(B,Ie)=>{Qe();var D=et();ve(y=>$e(D,y),[()=>d.chat_messageNavigator_menu_label()]),r(B,D)},$$slots:{default:!0}})});var N=$(W,2);x(N,()=>Ht,(M,U)=>{U(M,{class:"w-[28rem] max-w-[calc(100vw-1rem)]",onOpenAutoFocus:E,get"data-chat-message-navigator-content"(){return w},get ref(){return e(de)},set ref(B){b(de,B,!0)},children:(B,Ie)=>{p(B)},$$slots:{default:!0}})}),r(ye,ie)},$$slots:{default:!0}})}),r(t,h)},_=t=>{var h=yn(),F=qe(h);x(F,()=>Wr,(ee,ye)=>{ye(ee,{onOpenChange:Ne,get open(){return e(R)},set open(se){b(R,se,!0)},children:(se,ie)=>{var W=Wt(),N=m(W);{const U=(B,Ie)=>{let D=()=>(Ie?.()).props;{let y=n(()=>d.chat_messageNavigator_open_ariaLabel()),_e=n(()=>d.chat_messageNavigator_open_ariaLabel());lt(B,Pt(D,{variant:"ghost-light",size:"icon-sm",get active(){return e(R)},get"aria-label"(){return e(y)},get tooltip(){return e(_e)},get tooltipDisabled(){return e(R)},tooltipSide:"bottom",tooltipDelayDuration:300,get"aria-expanded"(){return e(R)},onkeydown:C,"data-testid":"chat-message-navigator-trigger",children:(ge,fe)=>{ia(ge,{get size(){return na.compact},weight:"regular",mirrored:!1,"aria-hidden":"true",class:"size-4!","data-chat-message-navigator-chat-icon":!0})},$$slots:{default:!0}}))}};x(N,()=>Ur,(B,Ie)=>{Ie(B,{get ref(){return e(K)},set ref(D){b(K,D,!0)},child:U,$$slots:{child:!0}})})}var M=$(N,2);x(M,()=>pr,(U,B)=>{B(U,{children:(Ie,D)=>{var y=Y(),_e=m(y);{let ge=n(()=>d.chat_messageNavigator_open_ariaLabel());x(_e,()=>Zr,(fe,Oe)=>{Oe(fe,{role:"dialog",get"aria-label"(){return e(ge)},align:"end",side:"bottom",sideOffset:4,get collisionBoundary(){return e(u)},collisionPadding:8,trapFocus:!1,onOpenAutoFocus:E,onCloseAutoFocus:Q,onFocusOutside:oe,get"data-chat-message-navigator-content"(){return w},get class(){return`${vr} w-[28rem]`},get ref(){return e(de)},set ref(Se){b(de,Se,!0)},children:(Se,Me)=>{p(Se)},$$slots:{default:!0}})})}r(Ie,y)},$$slots:{default:!0}})}),r(se,W)},$$slots:{default:!0}})});var G=$(F,2);Er(G,{get disabled(){return T()},get onclick(){return S()}}),Be(h),r(t,h)};Z(s,t=>{q()?t(A):t(_,-1)})}return r(f,a),ft(te)}function Tn(f,i,w){return[...Object.values(f).flatMap(p=>p.tabs.filter(v=>v.type==="browser"&&v.ownerAgentId===w).map(v=>({tab:v,panelId:p.id,active:p.activeTabId===v.id,hidden:!1}))),...i.filter(p=>p.type==="browser"&&p.ownerAgentId===w).map(p=>({tab:p,active:!1,hidden:!0}))]}const qt=(f,i=Dt)=>{var w=Sn(),p=qe(w);ht(p,{get icon(){return oa},class:"size-(--menu-icon-size) opacity-30"});var v=$(p,2);{var T=k=>{var S=Cn();ve(()=>Qt(S,"src",i().tab.faviconUrl)),Gt("error",S,g=>g.currentTarget.style.display="none"),wa(S),r(k,S)};Z(v,k=>{i().tab.faviconUrl&&k(T)})}Be(w),r(f,w)};var Cn=H('<img alt="" class="absolute inset-0 size-full rounded-sm object-contain"/>'),Sn=H('<span class="relative inline-flex size-(--menu-icon-size) shrink-0 items-center justify-center" aria-hidden="true"><!> <!></span>'),Mn=H('<span class="min-w-0 flex-1 truncate"> </span>'),Pn=H('<span class="inline-flex size-(--menu-icon-size) items-center justify-center" aria-hidden="true"><!></span>'),Dn=H('<div class="flex min-w-0 items-center gap-1"><!> <!></div>'),_t=H("<!> <!>",1),Ln=H('<span class="first-line-icon w-(--menu-icon-size)" aria-hidden="true"><!></span> <span class="min-w-0 flex-1 truncate text-muted-foreground"> </span>',1),Hn=H('<li class="flex min-w-0 items-center gap-1"><!> <!></li>'),On=H("<!> ",1),Bn=H('<div class="my-1 border-t border-border"></div> <!>',1),Rn=H('<ul class="m-0 list-none p-0"></ul> <!>',1);function ca(f,i){if(new.target)return ct({component:ca,...f});gt(i,!0);const w=()=>Ae(R,"$panels$",v),p=()=>Ae(Re,"$hiddenTabs$",v),[v,T]=xt();let k=ae(i,"workspaceId",7),S=ae(i,"agentId",7),g=ae(i,"entries",7),P=ae(i,"embedded",7,!1);const q=St(k());je(()=>q.set(k()));const R=Zt(q),Re=Yr(q),ne=n(()=>Tn(w(),p(),S())),c=n(()=>g()??e(ne)),z=n(()=>e(c).length===1?d.chat_browserTabs_trigger_tooltip_one({count:wt(e(c).length)}):d.chat_browserTabs_trigger_tooltip_many({count:wt(e(c).length)}));function Ce(a){const s=a.tab.title.trim();if(s)return s;if(a.tab.browserUrl)try{return new URL(a.tab.browserUrl).host||a.tab.browserUrl}catch{return a.tab.browserUrl}return d.browser_embedded_noUrl_label()}function Ee(a){if(b(K,!1),!g()){if(a.hidden){const s=Zt.select(J.state,k()),A=Object.values(s).find(_=>_.tabs.some(t=>t.type==="agent"&&t.agentId===S()));J.dispatch(Oa(k(),a.tab.id,A?.id??null))}else if(a.panelId){const s=Xr(k());s.setActiveTab(a.tab.id,a.panelId),o=!0,s.focusPanel(a.panelId)}}}const Fe=crypto.randomUUID();je(()=>{const a=k();if(!(!e(K)||g()))return J.dispatch(Da(a,Fe)),()=>J.dispatch(La(a,Fe))});let K=ce(!1),de=ce(null),u=ce(null),o=!1;function I(a){!o&&!e(X)||(a.preventDefault(),o=!1)}function O(a,s){const A=e(de)?.querySelectorAll('[data-testid="browser-tabs-menu-item"]');if(!A?.length)return;let _;if(a.key==="ArrowDown")_=(s+1)%A.length;else if(a.key==="ArrowUp")_=(s-1+A.length)%A.length;else if(a.key==="Home")_=0;else if(a.key==="End")_=A.length-1;else if(a.key==="ArrowRight"){a.preventDefault(),a.currentTarget.closest("li")?.querySelector('[data-testid="browser-tab-close"]')?.focus();return}else return;a.preventDefault(),A[_].focus()}const Le=n(()=>e(c).filter(a=>a.hidden).length);let X=ce(null);function Ne(a,s){return a.hostClientId===void 0||a.hostClientId===s}function nt(a){const s=Qr.select(J.state,a.hostClientId??"",k());J.dispatch(Ba(a.id,!s.connected))}function He(a){const s=Jr.select(J.state);if(a.kind==="tab"){const{tab:_,panelId:t}=a.entry;Ne(_,s)?J.dispatch(ta(k(),_.id,t,void 0,{destroy:!0})):nt(_);return}const A=e(c).filter(_=>_.hidden&&!Ne(_.tab,s)).map(_=>_.tab);A.length<e(Le)&&J.dispatch(Ha(k(),S(),s));for(const _ of A)nt(_)}async function tt(a){if(!g()){if(b(K,!1),Ja.select(J.state,S())){if(P()){const s=a.kind==="hidden";await Kr({title:s?d.chat_browserTabs_closeHiddenDialog_title():d.chat_browserTabs_closeDialog_title(),description:s?d.chat_browserTabs_closeHiddenDialog_description():d.chat_browserTabs_closeDialog_description(),confirmLabel:s?d.chat_browserTabs_closeHiddenDialog_confirm_label():d.chat_browserTabs_closeDialog_confirm_label(),cancelLabel:d.chat_browserTabs_closeDialog_cancel_label(),destructive:!0})&&He(a)}else b(X,a,!0);return}He(a)}}function C(){const a=e(X);b(X,null),a&&He(a)}function E(){b(X,null)}var xe={get workspaceId(){return k()},set workspaceId(a){k(a),re()},get agentId(){return S()},set agentId(a){S(a),re()},get entries(){return g()},set entries(a){g(a),re()},get embedded(){return P()},set embedded(a=!1){P(a),re()},$set:dt,$on:(a,s)=>ut(i,a,s)},we=_t(),oe=m(we);{var Q=a=>{var s=Y(),A=m(s);x(A,()=>Ot,(_,t)=>{t(_,{get open(){return e(K)},set open(h){b(K,h,!0)},children:(h,F)=>{var G=_t(),ee=m(G);x(ee,()=>Lt,(se,ie)=>{ie(se,{get icon(){return oa},"data-testid":"browser-tabs-trigger",children:(W,N)=>{Qe();var M=et();ve(()=>$e(M,e(z))),r(W,M)},$$slots:{default:!0}})});var ye=$(ee,2);x(ye,()=>Ht,(se,ie)=>{ie(se,{class:"w-64",alignIconColumn:!1,onCloseAutoFocus:I,children:(W,N)=>{var M=_t(),U=m(M);At(U,17,()=>e(c),D=>D.tab.id,(D,y)=>{const _e=n(()=>Ce(e(y)));var ge=Dn(),fe=qe(ge);{const Se=le=>{qt(le,()=>e(y))};let Me=n(()=>e(y).hidden?"opacity-60":""),Pe=n(()=>e(y).hidden||void 0);x(fe,()=>Vt,(le,Ue)=>{Ue(le,{get class(){return`min-w-0 flex-1 ${e(Me)??""}`},get textValue(){return e(_e)},onclick:()=>Ee(e(y)),"data-testid":"browser-tabs-menu-item",get"data-browser-tab-id"(){return e(y).tab.id},get"data-hidden"(){return e(Pe)},leading:Se,children:(Xe,Ye)=>{var Ve=Mn(),ot=at(Ve,!0);ve(()=>$e(ot,e(_e))),r(Xe,Ve)},$$slots:{leading:!0,default:!0}})})}var Oe=$(fe,2);{let Se=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)})),Me=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)})),Pe=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)}));x(Oe,()=>Vt,(le,Ue)=>{Ue(le,{class:"size-7 shrink-0 items-center justify-center p-0",get textValue(){return e(Se)},get"aria-label"(){return e(Me)},get title(){return e(Pe)},onSelect:Xe=>Xe.preventDefault(),onclick:()=>tt({kind:"tab",entry:e(y)}),"data-testid":"browser-tab-close",get"data-browser-tab-id"(){return e(y).tab.id},children:(Xe,Ye)=>{var Ve=Pn(),ot=qe(Ve);ht(ot,{get icon(){return $t},class:"size-(--menu-icon-size)! shrink-0"}),Be(Ve),r(Xe,Ve)},$$slots:{default:!0}})})}Be(ge),r(D,ge)});var B=$(U,2);{var Ie=D=>{var y=_t(),_e=m(y);x(_e,()=>Bt,(fe,Oe)=>{Oe(fe,{})});var ge=$(_e,2);{let fe=n(()=>d.chat_browserTabs_closeHidden_label({count:wt(e(Le))}));x(ge,()=>st,(Oe,Se)=>{Se(Oe,{get icon(){return $t},get label(){return e(fe)},onSelect:Me=>Me.preventDefault(),onclick:()=>tt({kind:"hidden"}),"data-testid":"browser-tabs-close-hidden"})})}r(D,y)};Z(B,D=>{e(Le)>0&&D(Ie)})}r(W,M)},$$slots:{default:!0}})}),r(h,G)},$$slots:{default:!0}})}),r(a,s)},ue=a=>{var s=Y(),A=m(s);x(A,()=>jr,(_,t)=>{t(_,{get open(){return e(K)},set open(h){b(K,h,!0)},children:(h,F)=>{var G=_t(),ee=m(G);{const se=(ie,W)=>{lt(ie,Pt(()=>(W?.()).props,{variant:"ghost-light",size:"icon-sm",get active(){return e(K)},get"aria-label"(){return e(z)},get tooltip(){return e(z)},get tooltipDisabled(){return e(K)},tooltipSide:"bottom",tooltipDelayDuration:300,"data-testid":"browser-tabs-trigger",get ref(){return e(u)},set ref(M){b(u,M,!0)},children:(M,U)=>{kr(M,{get size(){return na.compact},weight:"regular","aria-hidden":"true",class:"size-4!"})},$$slots:{default:!0}}))};x(ee,()=>Vr,(ie,W)=>{W(ie,{child:se,$$slots:{child:!0}})})}var ye=$(ee,2);x(ye,()=>qr,(se,ie)=>{ie(se,{trapFocus:!1,align:"end",side:"bottom",sideOffset:4,class:"min-w-52 max-w-80 max-h-[min(var(--bits-popover-content-available-height,calc(100dvh-1rem)),calc(100dvh-1rem))] overflow-y-auto p-1",role:"dialog",get"aria-label"(){return e(z)},onOpenAutoFocus:W=>{W.preventDefault(),e(de)?.querySelector('[data-testid="browser-tabs-menu-item"]')?.focus()},onCloseAutoFocus:I,children:(W,N)=>{var M=Rn(),U=m(M);At(U,23,()=>e(c),D=>D.tab.id,(D,y,_e)=>{const ge=n(()=>Ce(e(y)));var fe=Hn(),Oe=qe(fe);{let Me=n(Mt),Pe=n(()=>e(y).hidden?"opacity-60":""),le=n(()=>e(y).hidden||void 0);lt(Oe,{variant:"plain",wrapContent:!1,get class(){return`${e(Me)??""} h-auto min-w-0 flex-1 ${e(Pe)??""}`},"data-testid":"browser-tabs-menu-item",get"data-browser-tab-id"(){return e(y).tab.id},get"data-hidden"(){return e(le)},onkeydown:Ue=>O(Ue,e(_e)),onclick:()=>Ee(e(y)),children:(Ue,Xe)=>{var Ye=Ln(),Ve=m(Ye),ot=qe(Ve);qt(ot,()=>e(y)),Be(Ve);var yt=$(Ve,2),bt=at(yt,!0);ve(()=>$e(bt,e(ge))),r(Ue,Ye)},$$slots:{default:!0}})}var Se=$(Oe,2);{let Me=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(ge)})),Pe=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(ge)}));lt(Se,{variant:"plain",size:"icon-compact",type:"button",class:"size-6 shrink-0 focus-visible:ring-1","data-testid":"browser-tab-close",get"data-browser-tab-id"(){return e(y).tab.id},get"aria-label"(){return e(Me)},get title(){return e(Pe)},onkeydown:le=>{le.key!=="Escape"&&le.stopPropagation(),le.key==="ArrowLeft"&&(le.preventDefault(),le.currentTarget.closest("li")?.querySelector('[data-testid="browser-tabs-menu-item"]')?.focus())},onclick:le=>{le.preventDefault(),le.stopPropagation(),tt({kind:"tab",entry:e(y)})},children:(le,Ue)=>{ht(le,{get icon(){return $t},class:"size-3"})},$$slots:{default:!0}})}Be(fe),r(D,fe)}),Be(U),Xt(U,D=>b(de,D),()=>e(de));var B=$(U,2);{var Ie=D=>{var y=Bn(),_e=$(m(y),2);{let ge=n(Mt);lt(_e,{variant:"plain",get class(){return e(ge)},"data-testid":"browser-tabs-close-hidden",onclick:()=>tt({kind:"hidden"}),children:(fe,Oe)=>{var Se=On(),Me=m(Se);ht(Me,{get icon(){return $t},class:"size-3"});var Pe=$(Me);ve(le=>$e(Pe,` ${le??""}`),[()=>d.chat_browserTabs_closeHidden_label({count:wt(e(Le))})]),r(fe,Se)},$$slots:{default:!0}})}r(D,y)};Z(B,D=>{e(Le)>0&&D(Ie)})}r(W,M)},$$slots:{default:!0}})}),r(h,G)},$$slots:{default:!0}})}),r(a,s)};Z(oe,a=>{e(c).length>0&&P()?a(Q):e(c).length>0&&a(ue,1)})}var j=$(oe,2);{let a=n(()=>e(X)!==null),s=n(()=>e(X)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_title():d.chat_browserTabs_closeDialog_title()),A=n(()=>e(X)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_description():d.chat_browserTabs_closeDialog_description()),_=n(()=>d.chat_browserTabs_closeDialog_close_ariaLabel()),t=n(()=>d.chat_browserTabs_closeDialog_cancel_label()),h=n(()=>e(X)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_confirm_label():d.chat_browserTabs_closeDialog_confirm_label());Gr(j,{get open(){return e(a)},size:"sm",get title(){return e(s)},get description(){return e(A)},get closeLabel(){return e(_)},get cancelLabel(){return e(t)},get submitLabel(){return e(h)},submitVariant:"destructive",focusSubmit:!0,onSubmit:C,onCancel:E,onCloseAutoFocus:F=>{F.preventDefault(),e(u)?.focus()}})}r(f,we);var te=ft(xe);return T(),te}var Fn=H("<!> <!>",1);function da(f,i){if(new.target)return ct({component:da,...f});gt(i,!0);const w=()=>Ae(g,"$entry",p),[p,v]=xt();let T=ae(i,"workspaceId",7),k=ae(i,"agentId",7),S=ae(i,"separator",7,!0);const g=ea(kt(()=>T()),kt(()=>k()));je(()=>{J.dispatch(aa(T(),k()))});var P={get workspaceId(){return T()},set workspaceId(c){T(c),re()},get agentId(){return k()},set agentId(c){k(c),re()},get separator(){return S()},set separator(c=!0){S(c),re()},$set:dt,$on:(c,z)=>ut(i,c,z)},q=Y(),R=m(q);{var Re=c=>{var z=Fn(),Ce=m(z);{var Ee=K=>{var de=Y(),u=m(de);x(u,()=>Bt,(o,I)=>{I(o,{})}),r(K,de)};Z(Ce,K=>{S()&&K(Ee)})}var Fe=$(Ce,2);x(Fe,()=>mt,(K,de)=>{de(K,{indicator:"switch",get icon(){return Ar},get checked(){return w().permission.allowed},onSelect:u=>{u.preventDefault();const o=w()?.permission;o&&!w()?.saving&&J.dispatch(Ra(T(),k(),o.computerId,!o.allowed))},children:(u,o)=>{Qe();var I=et();ve(O=>$e(I,O),[()=>d.settings_agentFeatures_desktopControl_label()]),r(u,I)},$$slots:{default:!0}})}),r(c,z)};Z(R,c=>{w()?.permission&&c(Re)})}r(f,q);var ne=ft(P);return v(),ne}var Ct=H("<!> <!>",1),Nn=H("<!> <!> <!>",1),zn=H('<span class="min-w-0 flex-1"> </span> <span> </span>',1),En=H("<!> <!> <!> <!>",1),Un=H("<!> <!> <!> <!> <!>",1);function ua(f,i){if(new.target)return ct({component:ua,...f});gt(i,!0);const w=()=>Ae(de,"$agentSession",S),p=()=>Ae(Ce,"$fontStyle",S),v=()=>Ae(Ee,"$chatContentWidth",S),T=()=>Ae(Fe,"$chatAuroraEnabled",S),k=()=>Ae(K,"$collapseToolRuns",S),[S,g]=xt(),P=C=>{var E=Y(),xe=m(E);x(xe,()=>zr,(we,oe)=>{oe(we,{get value(){return p()},onValueChange:O,children:(Q,ue)=>{var j=Ct(),te=m(j);x(te,()=>Ut,(s,A)=>{A(s,{value:"sans",closeOnSelect:!1,children:(_,t)=>{Qe();var h=et();ve(F=>$e(h,F),[()=>d.settings_fontStyle_sans()]),r(_,h)},$$slots:{default:!0}})});var a=$(te,2);x(a,()=>Ut,(s,A)=>{A(s,{value:"monospace",closeOnSelect:!1,children:(_,t)=>{Qe();var h=et();ve(F=>$e(h,F),[()=>d.settings_fontStyle_mono()]),r(_,h)},$$slots:{default:!0}})}),r(Q,j)},$$slots:{default:!0}})}),r(C,E)},q=C=>{var E=Nn(),xe=m(E);{let Q=n(()=>v()==="full");x(xe,()=>mt,(ue,j)=>{j(ue,{indicator:"switch",get icon(){return Tr},get checked(){return e(Q)},closeOnSelect:!1,onCheckedChange:te=>J.dispatch(Fa(te?"full":"800")),children:(te,a)=>{Qe();var s=et();ve(A=>$e(s,A),[()=>d.settings_appearance_chatContentWidth_label()]),r(te,s)},$$slots:{default:!0}})})}var we=$(xe,2);x(we,()=>mt,(Q,ue)=>{ue(Q,{indicator:"switch",get icon(){return Cr},get checked(){return T()},closeOnSelect:!1,onCheckedChange:j=>J.dispatch(Na(j)),children:(j,te)=>{Qe();var a=et();ve(s=>$e(a,s),[()=>d.settings_appearance_chatAurora_label()]),r(j,a)},$$slots:{default:!0}})});var oe=$(we,2);x(oe,()=>mt,(Q,ue)=>{ue(Q,{indicator:"switch",get icon(){return Sr},get checked(){return k()},closeOnSelect:!1,onCheckedChange:j=>J.dispatch(za(j)),children:(j,te)=>{Qe();var a=et();ve(s=>$e(a,s),[()=>d.settings_appearance_collapseToolRuns_label()]),r(j,a)},$$slots:{default:!0}})}),r(C,E)},R=C=>{var E=Y(),xe=m(E);{var we=oe=>{var Q=Y(),ue=m(Q);x(ue,()=>mt,(j,te)=>{te(j,{indicator:"switch",get icon(){return Mr},get checked(){return e(u)},closeOnSelect:!1,onCheckedChange:a=>J.dispatch(Ua(c(),z(),a?"interactive":"allow")),children:(a,s)=>{Qe();var A=et();ve(_=>$e(A,_),[()=>d.ui_viewSettings_askBeforeTools_label()]),r(a,A)},$$slots:{default:!0}})}),r(oe,Q)};Z(xe,oe=>{e(u)!==void 0&&c()&&z()&&oe(we)})}r(C,E)},Re=C=>{var E=Y(),xe=m(E);{var we=oe=>{var Q=Y(),ue=m(Q);Kt(ue,()=>`${c()}:${z()}`,j=>{{let te=n(()=>!ne());da(j,{get workspaceId(){return c()},get agentId(){return z()},get separator(){return e(te)}})}}),r(oe,Q)};Z(xe,oe=>{c()&&z()&&oe(we)})}r(C,E)};let ne=ae(i,"embedded",7,!1),c=ae(i,"workspaceId",7),z=ae(i,"agentId",7);const Ce=rn(),Ee=nn(),Fe=on(),K=sn(),de=Qa(an(()=>z())),u=n(()=>{const C=w();if(!c()||!C||C.permissionPolicy===void 0)return;const E=C.effectivePermissionPolicy;return typeof E=="string"?E==="interactive":void 0});let o=ce(!1);const I=n(()=>p()==="sans"?d.settings_fontStyle_sans():d.settings_fontStyle_mono());function O(C){C!=="sans"&&C!=="monospace"||J.dispatch(Ea(C))}var Le={get embedded(){return ne()},set embedded(C=!1){ne(C),re()},get workspaceId(){return c()},set workspaceId(C){c(C),re()},get agentId(){return z()},set agentId(C){z(C),re()},$set:dt,$on:(C,E)=>ut(i,C,E)},X=Y(),Ne=m(X);{var nt=C=>{var E=En(),xe=m(E);x(xe,()=>Ot,(ue,j)=>{j(ue,{children:(te,a)=>{var s=Ct(),A=m(s);x(A,()=>Lt,(t,h)=>{h(t,{get icon(){return xr},iconWeight:"regular",children:(F,G)=>{var ee=zn(),ye=m(ee),se=at(ye,!0),ie=$(ye,2),W=at(ie,!0);ve(N=>{$e(se,N),Pa(ie,1,`type-caption ${Fr}`),$e(W,e(I))},[()=>d.ui_viewSettings_font_label()]),r(F,ee)},$$slots:{default:!0}})});var _=$(A,2);{let t=n(()=>d.ui_viewSettings_font_label());x(_,()=>Ht,(h,F)=>{F(h,{get"aria-label"(){return e(t)},children:(G,ee)=>{P(G)},$$slots:{default:!0}})})}r(te,s)},$$slots:{default:!0}})});var we=$(xe,2);q(we);var oe=$(we,2);R(oe);var Q=$(oe,2);Re(Q),r(C,E)},He=C=>{var E=Y(),xe=m(E);x(xe,()=>dn,(we,oe)=>{oe(we,{get open(){return e(o)},set open(Q){b(o,Q,!0)},children:(Q,ue)=>{var j=Ct(),te=m(j);{const s=(A,_)=>{let t=()=>(_?.()).props;{let h=n(()=>d.ui_viewSettings_trigger_tooltip()),F=n(()=>d.ui_viewSettings_trigger_tooltip());lt(A,Pt(t,{variant:"ghost-light",size:"icon-xs",get tooltip(){return e(h)},tooltipSide:"bottom",get"aria-label"(){return e(F)},get"aria-expanded"(){return e(o)},"data-testid":"agent-view-settings-trigger",children:(G,ee)=>{ht(G,{get icon(){return yr},size:"xs"})},$$slots:{default:!0}}))}};x(te,()=>ln,(A,_)=>{_(A,{child:s,$$slots:{child:!0}})})}var a=$(te,2);{let s=n(()=>d.ui_viewSettings_trigger_tooltip());x(a,()=>cn,(A,_)=>{_(A,{align:"end",class:"w-56",get"aria-label"(){return e(s)},children:(t,h)=>{var F=Un(),G=m(F);P(G);var ee=$(G,2);x(ee,()=>Bt,(W,N)=>{N(W,{})});var ye=$(ee,2);q(ye);var se=$(ye,2);R(se);var ie=$(se,2);Re(ie),r(t,F)},$$slots:{default:!0}})})}r(Q,j)},$$slots:{default:!0}})}),r(C,E)};Z(Ne,C=>{ne()?C(nt):C(He,-1)})}r(f,X);var tt=ft(Le);return g(),tt}function vt(f,i=2){if(f==null)return"";if(typeof f=="string")return f;try{return JSON.stringify(f,null,i)}catch{return String(f)}}function Vn(f){const i=f.name||f.toolName||"unknown",w=f.arguments||f.input||f.parameters||{},p=vt(w),v=f.result,T=f.error;let k=`🔧 Tool: ${i}
|
|
1
|
+
import{t as ct,bo as ae,bw as dt,bp as jt,b as ut,bm as d,br as Pt,bq as xt,bs as Ae}from"./CDNiWmce.js";import{bs as gt,a5 as qe,bf as Dt,bA as Be,W as r,bn as ft,aA as re,aB as H,aD as e,bS as $,c9 as n,a7 as Y,ay as m,be as Qe,b$ as et,aC as pt,bo as $a,bV as ce,br as It,ca as je,bH as b,c5 as kt,b_ as ve,bO as $e,c0 as Nt,bl as at,aw as Gt,cd as St,bz as wa,bj as Ia}from"./CJxGDkBm.js";import{i as Z}from"./DEHoDrdd.js";import{k as Kt}from"./CXEzZ2hR.js";import{h as ka,I as Aa,g as At,e as xa}from"./Ca-5qIPO.js";import{c as x}from"./DrLx8OXO.js";import{b as Xt}from"./NtFyWdpR.js";import{a4 as ya,a5 as Ta,bc as Ca}from"./DZtCGZgy.js";import Sa from"./BykIeP0g.js";import{D as Ma}from"./Bd3N9n0H.js";import{C as zt}from"./EENIG6sq.js";import{b as Yt,e as Jt,s as Qt,f as Pa}from"./J1LWsTd9.js";import"./DgNEPBVe.js";import{T as ea}from"./CvQjTi4D.js";import{I_ as J,dM as Da,dN as La,gS as ta,j2 as Ha,BX as Oa,gy as Ba,i$ as aa,i_ as Ra,DT as Fa,DS as Na,DZ as za,Dw as Ea,Dz as Ua,ck as Va,ci as Za,co as Wa,c1 as qa,Dy as ja,cl as Ga,Df as Ka}from"./qD_x_a7m.js";import{g as Xa}from"./BrMXrCxP.js";import{a as Ya}from"./c4H2cXzd.js";import{u as Et}from"./B2y4Ey03.js";import{ax as Ja,aN as Qa,dD as er,c1 as tr,cf as ar,aL as rr,bs as nr,p as or}from"./Dqi9bJNf.js";import{a_ as sr,a$ as ir}from"./CYKcOC1a.js";import{a as lr}from"./ChpnaSsg.js";import{c as cr}from"./ChTqQfQN.js";import{c as dr}from"./CRLV4RHy.js";import{C as ur}from"./BNq3scG4.js";import{o as gr}from"./DAsc1V4f.js";import{I as fr}from"./jLuOcx2N.js";import"./CCm0OKl5.js";import{s as ra}from"./CThSE8LQ.js";import{a1 as pr,f as lt,ae as mr}from"./BUNb3q2A.js";import"./8VBKAONs.js";import{D as vr,C as na,T as _r,F as hr,H as br,t as $r,R as wr}from"./DzCzYdRR.js";import{aU as Ir,c$ as oa,F as ht,d2 as $t,B as kr,b0 as Ar,bq as xr,cz as yr,a9 as Tr,cA as Cr,a8 as Sr,cw as Mr,at as Pr,aY as Dr,cY as Lr,af as Hr,ck as Or,am as Br,cR as Rr}from"./DcR44gq9.js";import{a as Mt,m as Fr}from"./DFNql_nS.js";import{b as Nr}from"./8gFeUK_j.js";import{c as Lt,b as Ht,a as Ot,M as Ut,R as zr}from"./DDXthoba.js";import{B as Er}from"./C2wAzMR4.js";import{P as Ur,T as Vr}from"./Qizor3xZ.js";import{b as Zr,P as Wr,c as qr,d as jr}from"./BIQ9eVuf.js";import"./Bh9XFM6t.js";import{b as Gr}from"./BKW-24eH.js";import{e as Kr}from"./23XOeMSz.js";import"./B1nPoFt8.js";import{M as Vt}from"./C1o3spBY.js";import{M as st}from"./BMXpCN2Z.js";import{M as Bt}from"./DizljkHL.js";import{g as Xr}from"./BrfrzpId.js";import{y as Zt,k as Yr}from"./CDSuKhpz.js";import{ay as Jr,$ as Qr}from"./DHffIWwt.js";import{l as wt,h as en}from"./CXfsvSt9.js";import{M as mt}from"./Du7ytJ4P.js";import{c as tn}from"./Cn4uSlRl.js";import{t as an}from"./D2MmXC4A.js";import{a as rn,e as nn,d as on,i as sn}from"./CfsrLxYu.js";import{b as ln,a as cn,M as dn}from"./ZTWlL5zM.js";var un=new Set(["$$slots","$$events","$$legacy","children","class"]),gn=H("<div><!></div>");function sa(f,i){if(new.target)return ct({component:sa,...f});gt(i,!0);let w=ae(i,"children",7),p=ae(i,"class",7),v=jt(i,un);tn(()=>!1);var T={get children(){return w()},set children(g){w(g),re()},get class(){return p()},set class(g){p(g),re()},$set:dt,$on:(g,P)=>ut(i,g,P)},k=gn();Yt(k,g=>({"data-slot":"menu-footer",class:g,...v}),[()=>Jt("menu-footer type-caption relative z-10 -mx-1.5 -mb-1.5 mt-1.5 border-t border-border bg-muted/20 px-3.5 py-1.5 leading-(--text-caption-line-height) font-normal text-muted-foreground [&_[data-menu-item]]:hover:bg-hover [&_[data-menu-item]]:focus-visible:bg-hover",p())],void 0,void 0,"svelte-1od5b5i");var S=qe(k);return ra(S,()=>w()??Dt),Be(k),r(f,k),ft(T)}var fn=new Set(["$$slots","$$events","$$legacy","children"]),pn=pt('<path d="M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212ZM84,108A12,12,0,0,1,96,96h64a12,12,0,1,1,0,24H96A12,12,0,0,1,84,108Zm0,40a12,12,0,0,1,12-12h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,148Z"></path>'),mn=pt('<path d="M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z" opacity="0.2"></path><path d="M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z"></path>',1),vn=pt('<path d="M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM160,152H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"></path>'),_n=pt('<path d="M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Zm-52-80a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,144Z"></path>'),hn=pt('<path d="M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z"></path>'),bn=pt('<path d="M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Zm-56-80a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,144Z"></path>'),$n=pt('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function ia(f,i){if(new.target)return ct({component:ia,...f});gt(i,!0);const w=ka();let p=ae(i,"children",7),v=jt(i,fn),T=n(()=>i.weight??w.weight??"regular"),k=n(()=>i.color??w.color??"currentColor"),S=n(()=>i.size??w.size??"1em"),g=n(()=>i.mirrored??w.mirrored??!1);function P(o){let{weight:I,color:O,size:Le,mirrored:X,...Ne}=o;return Ne}var q={get children(){return p()},set children(o){p(o),re()},$set:dt,$on:(o,I)=>ut(i,o,I)},R=$n();Yt(R,(o,I)=>({xmlns:"http://www.w3.org/2000/svg",role:"img",width:e(S),height:e(S),fill:e(k),transform:e(g)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...o,...I}),[()=>P(w),()=>P(v)]);var Re=qe(R);{var ne=o=>{var I=Y(),O=m(I);ra(O,p),r(o,I)};Z(Re,o=>{p()&&o(ne)})}var c=$(Re,2);{var z=o=>{var I=pn();r(o,I)},Ce=o=>{var I=mn();Qe(),r(o,I)},Ee=o=>{var I=vn();r(o,I)},Fe=o=>{var I=_n();r(o,I)},K=o=>{var I=hn();r(o,I)},de=o=>{var I=bn();r(o,I)},u=o=>{var I=et();I.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),r(o,I)};Z(c,o=>{e(T)==="bold"?o(z):e(T)==="duotone"?o(Ce,1):e(T)==="fill"?o(Ee,2):e(T)==="light"?o(Fe,3):e(T)==="regular"?o(K,4):e(T)==="thin"?o(de,5):o(u,-1)})}return Be(R),r(f,R),ft(q)}var wn=H('<div class="type-caption flex items-center gap-[var(--space-2)] px-[var(--space-2)] py-[var(--space-1)] text-muted-foreground" data-testid="chat-message-navigator-loading"><!> <span> </span></div>'),In=H('<span class="block min-w-0 max-w-full flex-1 overflow-hidden whitespace-nowrap text-left text-ellipsis font-normal"> </span>'),kn=H('<div role="listbox" class="mt-[var(--space-1)] min-h-0 min-w-0 flex-1 max-h-72 overflow-x-hidden overflow-y-auto overscroll-contain"></div>'),An=H('<div class="type-caption px-2 py-6 text-left text-muted-foreground" data-testid="chat-message-navigator-empty"> </div>'),xn=H('<div class="flex min-h-0 min-w-0 max-h-full flex-1 flex-col overflow-hidden" data-testid="chat-message-navigator-panel"><!> <div role="status" aria-live="polite" class="shrink-0" data-testid="chat-message-navigator-loading-region"><!></div> <!></div>'),Wt=H("<!> <!>",1),yn=H('<div class="flex shrink-0 items-center gap-0.5" data-testid="chat-header-navigation-controls"><!> <!></div>');function la(f,i){const w=$a();if(new.target)return ct({component:la,...f});gt(i,!0);const p=t=>{var h=xn(),F=qe(h);{let N=n(()=>d.chat_messageNavigator_search_ariaLabel()),M=n(()=>e(O).length>0?I:void 0),U=n(()=>d.chat_messageNavigator_search_placeholder());fr(F,{get value(){return e(ne)},oninput:nt,onkeydown:j,role:"combobox",get"aria-label"(){return e(N)},get"aria-controls"(){return e(M)},"aria-expanded":"true","aria-autocomplete":"list",get"aria-activedescendant"(){return e(Le)},autocomplete:"off",get placeholder(){return e(U)},class:"type-caption h-(--control-height-medium) w-full min-w-0 shrink-0 rounded-(--radius-small) border border-border bg-card px-[var(--space-2)] text-foreground caret-foreground outline-none placeholder:text-muted-foreground","data-testid":"chat-message-navigator-search",get ref(){return e(Fe)},set ref(B){b(Fe,B,!0)}})}var G=$(F,2),ee=qe(G);{var ye=N=>{var M=wn(),U=qe(M);Aa(U,{size:16});var B=$(U,2),Ie=at(B,!0);Be(M),ve(D=>$e(Ie,D),[()=>d.chat_messageNavigator_loading_label()]),r(N,M)};Z(ee,N=>{P()&&N(ye)})}Be(G);var se=$(G,2);{var ie=N=>{var M=kn();At(M,23,()=>e(O),U=>U.id,(U,B,Ie)=>{{let D=n(()=>!e(Re)[e(B).id]),y=n(()=>q()?"":"h-(--control-height-large)");mr(U,{get content(){return e(B).text},get disabled(){return e(D)},side:"left",align:"center",delayDuration:300,size:"sm",get class(){return`block w-full min-w-0 max-w-full ${e(y)??""}`},contentClass:"max-w-[min(28rem,calc(100vw-var(--space-4)))] break-words text-left",children:(_e,ge)=>{{let fe=n(()=>X(e(B).id)),Oe=n(()=>e(Ie)===e(c)),Se=n(()=>Jt(Mt(),Nr,"max-w-full cursor-pointer overflow-hidden text-muted-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/40",q()?"font-normal":"font-medium",!q()&&"h-(--control-height-large) min-h-(--control-height-large) max-h-(--control-height-large)",q()?"hover:bg-hover hover:text-foreground":"hover:bg-accent/60 hover:text-accent-foreground",e(Ie)===e(c)&&(q()?"bg-selected text-foreground":"bg-accent text-accent-foreground"))),Me=n(()=>q()||void 0);lt(_e,{type:"button",variant:"plain",labelClass:"overflow-hidden whitespace-nowrap text-left text-ellipsis",get id(){return e(fe)},role:"option",tabindex:-1,get"aria-selected"(){return e(Oe)},get class(){return e(Se)},onclick:()=>void ue(e(B).id),onkeydown:Pe=>{(Pe.key==="Enter"||Pe.key===" ")&&(Pe.preventDefault(),ue(e(B).id))},onpointermove:()=>{(e(c)!==e(Ie)||e(z))&&He(e(Ie))},"data-testid":"chat-message-navigator-result",get"data-navigation-message-id"(){return e(B).id},get"data-panel-menu-row"(){return e(Me)},children:(Pe,le)=>{var Ue=In(),Xe=at(Ue,!0);xa(Ue,(Ye,Ve)=>gr?.(Ye,Ve),()=>Ye=>e(Re)[e(B).id]=Ye),ve(()=>$e(Xe,e(B).text)),r(Pe,Ue)},$$slots:{default:!0}})}},$$slots:{default:!0}})}}),Be(M),ve(()=>Qt(M,"id",I)),Gt("scroll",M,tt),r(N,M)},W=N=>{var M=An(),U=at(M,!0);ve(B=>$e(U,B),[()=>d.chat_messageNavigator_empty_label()]),r(N,M)};Z(se,N=>{e(O).length>0?N(ie):P()||N(W,1)})}Be(h),r(t,h)};let v=ae(i,"messages",7),T=ae(i,"isAtBottom",7),k=ae(i,"onSelectMessage",7),S=ae(i,"onScrollToBottom",7),g=ae(i,"onOpen",7),P=ae(i,"isLoadingIndex",7,!1),q=ae(i,"embedded",7,!1),R=ce(!1),Re=ce(It({})),ne=ce(""),c=ce(0),z=ce(!0),Ce=null,Ee=!1,Fe=ce(null),K=ce(null),de=ce(null),u=ce(It([])),o=ce(!1);const I=`chat-message-navigator-listbox-${w}`,O=n(()=>{const t=e(ne).trim().toLocaleLowerCase();return t?v().filter(h=>h.text.toLocaleLowerCase().includes(t)):v()}),Le=n(()=>e(O)[e(c)]?X(e(O)[e(c)].id):void 0);function X(t){return`${I}-option-${encodeURIComponent(t)}`}function Ne(t){if(b(R,t,!0),!t)return;const h=e(K)?.closest("[data-panel-id]");b(u,h?[h]:[],!0),b(ne,""),b(z,!0),b(c,Math.max(v().length-1,0),!0),g()?.()}function nt(t){b(ne,t.currentTarget.value,!0),b(z,!0),b(c,Math.max(e(O).length-1,0),!0)}function He(t){b(z,!1),b(c,t,!0),Ce=e(O)[t]?.id??null}function tt(){Ee||b(z,!1)}je(()=>{if(!e(R))return;const t=e(O).length;if(t===0)return;if(e(z)){b(c,t-1),Ce=e(O)[t-1].id;return}const h=kt(()=>e(c)),F=Ce===null?-1:e(O).findIndex(G=>G.id===Ce);F>=0?F!==h&&b(c,F,!0):h>=t?(b(c,t-1),Ce=e(O)[t-1].id):Ce=e(O)[h]?.id??null}),je(()=>{if(!e(R)||!e(de)||e(O).length===0)return;const t=e(Le)?document.getElementById(e(Le)):null;t&&(Ee=!0,t.scrollIntoView?.({block:"nearest"}),requestAnimationFrame(()=>{Ee=!1}))});function C(t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),Ne(!e(R)))}function E(t){t.preventDefault(),e(Fe)?.focus()}async function xe(){await Nt(),e(R)&&e(Fe)?.focus()}function we(t){return e(de)?.contains(t)?!0:t instanceof Element?t.closest("[data-chat-message-navigator-content]")?.dataset.chatMessageNavigatorContent===w:!1}function oe(t){!e(R)||!(t.target instanceof Node)||e(K)?.contains(t.target)||we(t.target)||(b(o,!0),Ne(!1))}function Q(t){e(o)&&(t.preventDefault(),b(o,!1))}async function ue(t){b(R,!1),await Nt(),await k()(t)}function j(t){if(q()&&t.stopPropagation(),t.key==="Escape"){t.preventDefault(),b(R,!1);return}e(O).length!==0&&(t.key==="ArrowDown"?(t.preventDefault(),He((e(c)+1)%e(O).length)):t.key==="ArrowUp"?(t.preventDefault(),He((e(c)-1+e(O).length)%e(O).length)):t.key==="Home"?(t.preventDefault(),He(0)):t.key==="End"?(t.preventDefault(),He(e(O).length-1)):t.key==="Enter"&&(t.preventDefault(),ue(e(O)[e(c)].id)))}var te={get messages(){return v()},set messages(t){v(t),re()},get isAtBottom(){return T()},set isAtBottom(t){T(t),re()},get onSelectMessage(){return k()},set onSelectMessage(t){k(t),re()},get onScrollToBottom(){return S()},set onScrollToBottom(t){S(t),re()},get onOpen(){return g()},set onOpen(t){g(t),re()},get isLoadingIndex(){return P()},set isLoadingIndex(t=!1){P(t),re()},get embedded(){return q()},set embedded(t=!1){q(t),re()},$set:dt,$on:(t,h)=>ut(i,t,h)},a=Y(),s=m(a);{var A=t=>{var h=Y(),F=m(h);x(F,()=>Ot,(G,ee)=>{ee(G,{onOpenChange:Ne,get open(){return e(R)},set open(ye){b(R,ye,!0)},children:(ye,se)=>{var ie=Wt(),W=m(ie);x(W,()=>Lt,(M,U)=>{U(M,{get icon(){return Ir},onSelect:xe,"data-testid":"chat-message-navigator-trigger",children:(B,Ie)=>{Qe();var D=et();ve(y=>$e(D,y),[()=>d.chat_messageNavigator_menu_label()]),r(B,D)},$$slots:{default:!0}})});var N=$(W,2);x(N,()=>Ht,(M,U)=>{U(M,{class:"w-[28rem] max-w-[calc(100vw-1rem)]",onOpenAutoFocus:E,get"data-chat-message-navigator-content"(){return w},get ref(){return e(de)},set ref(B){b(de,B,!0)},children:(B,Ie)=>{p(B)},$$slots:{default:!0}})}),r(ye,ie)},$$slots:{default:!0}})}),r(t,h)},_=t=>{var h=yn(),F=qe(h);x(F,()=>Wr,(ee,ye)=>{ye(ee,{onOpenChange:Ne,get open(){return e(R)},set open(se){b(R,se,!0)},children:(se,ie)=>{var W=Wt(),N=m(W);{const U=(B,Ie)=>{let D=()=>(Ie?.()).props;{let y=n(()=>d.chat_messageNavigator_open_ariaLabel()),_e=n(()=>d.chat_messageNavigator_open_ariaLabel());lt(B,Pt(D,{variant:"ghost-light",size:"icon-sm",get active(){return e(R)},get"aria-label"(){return e(y)},get tooltip(){return e(_e)},get tooltipDisabled(){return e(R)},tooltipSide:"bottom",tooltipDelayDuration:300,get"aria-expanded"(){return e(R)},onkeydown:C,"data-testid":"chat-message-navigator-trigger",children:(ge,fe)=>{ia(ge,{get size(){return na.compact},weight:"regular",mirrored:!1,"aria-hidden":"true",class:"size-4!","data-chat-message-navigator-chat-icon":!0})},$$slots:{default:!0}}))}};x(N,()=>Ur,(B,Ie)=>{Ie(B,{get ref(){return e(K)},set ref(D){b(K,D,!0)},child:U,$$slots:{child:!0}})})}var M=$(N,2);x(M,()=>pr,(U,B)=>{B(U,{children:(Ie,D)=>{var y=Y(),_e=m(y);{let ge=n(()=>d.chat_messageNavigator_open_ariaLabel());x(_e,()=>Zr,(fe,Oe)=>{Oe(fe,{role:"dialog",get"aria-label"(){return e(ge)},align:"end",side:"bottom",sideOffset:4,get collisionBoundary(){return e(u)},collisionPadding:8,trapFocus:!1,onOpenAutoFocus:E,onCloseAutoFocus:Q,onFocusOutside:oe,get"data-chat-message-navigator-content"(){return w},get class(){return`${vr} w-[28rem]`},get ref(){return e(de)},set ref(Se){b(de,Se,!0)},children:(Se,Me)=>{p(Se)},$$slots:{default:!0}})})}r(Ie,y)},$$slots:{default:!0}})}),r(se,W)},$$slots:{default:!0}})});var G=$(F,2);Er(G,{get disabled(){return T()},get onclick(){return S()}}),Be(h),r(t,h)};Z(s,t=>{q()?t(A):t(_,-1)})}return r(f,a),ft(te)}function Tn(f,i,w){return[...Object.values(f).flatMap(p=>p.tabs.filter(v=>v.type==="browser"&&v.ownerAgentId===w).map(v=>({tab:v,panelId:p.id,active:p.activeTabId===v.id,hidden:!1}))),...i.filter(p=>p.type==="browser"&&p.ownerAgentId===w).map(p=>({tab:p,active:!1,hidden:!0}))]}const qt=(f,i=Dt)=>{var w=Sn(),p=qe(w);ht(p,{get icon(){return oa},class:"size-(--menu-icon-size) opacity-30"});var v=$(p,2);{var T=k=>{var S=Cn();ve(()=>Qt(S,"src",i().tab.faviconUrl)),Gt("error",S,g=>g.currentTarget.style.display="none"),wa(S),r(k,S)};Z(v,k=>{i().tab.faviconUrl&&k(T)})}Be(w),r(f,w)};var Cn=H('<img alt="" class="absolute inset-0 size-full rounded-sm object-contain"/>'),Sn=H('<span class="relative inline-flex size-(--menu-icon-size) shrink-0 items-center justify-center" aria-hidden="true"><!> <!></span>'),Mn=H('<span class="min-w-0 flex-1 truncate"> </span>'),Pn=H('<span class="inline-flex size-(--menu-icon-size) items-center justify-center" aria-hidden="true"><!></span>'),Dn=H('<div class="flex min-w-0 items-center gap-1"><!> <!></div>'),_t=H("<!> <!>",1),Ln=H('<span class="first-line-icon w-(--menu-icon-size)" aria-hidden="true"><!></span> <span class="min-w-0 flex-1 truncate text-muted-foreground"> </span>',1),Hn=H('<li class="flex min-w-0 items-center gap-1"><!> <!></li>'),On=H("<!> ",1),Bn=H('<div class="my-1 border-t border-border"></div> <!>',1),Rn=H('<ul class="m-0 list-none p-0"></ul> <!>',1);function ca(f,i){if(new.target)return ct({component:ca,...f});gt(i,!0);const w=()=>Ae(R,"$panels$",v),p=()=>Ae(Re,"$hiddenTabs$",v),[v,T]=xt();let k=ae(i,"workspaceId",7),S=ae(i,"agentId",7),g=ae(i,"entries",7),P=ae(i,"embedded",7,!1);const q=St(k());je(()=>q.set(k()));const R=Zt(q),Re=Yr(q),ne=n(()=>Tn(w(),p(),S())),c=n(()=>g()??e(ne)),z=n(()=>e(c).length===1?d.chat_browserTabs_trigger_tooltip_one({count:wt(e(c).length)}):d.chat_browserTabs_trigger_tooltip_many({count:wt(e(c).length)}));function Ce(a){const s=a.tab.title.trim();if(s)return s;if(a.tab.browserUrl)try{return new URL(a.tab.browserUrl).host||a.tab.browserUrl}catch{return a.tab.browserUrl}return d.browser_embedded_noUrl_label()}function Ee(a){if(b(K,!1),!g()){if(a.hidden){const s=Zt.select(J.state,k()),A=Object.values(s).find(_=>_.tabs.some(t=>t.type==="agent"&&t.agentId===S()));J.dispatch(Oa(k(),a.tab.id,A?.id??null))}else if(a.panelId){const s=Xr(k());s.setActiveTab(a.tab.id,a.panelId),o=!0,s.focusPanel(a.panelId)}}}const Fe=crypto.randomUUID();je(()=>{const a=k();if(!(!e(K)||g()))return J.dispatch(Da(a,Fe)),()=>J.dispatch(La(a,Fe))});let K=ce(!1),de=ce(null),u=ce(null),o=!1;function I(a){!o&&!e(X)||(a.preventDefault(),o=!1)}function O(a,s){const A=e(de)?.querySelectorAll('[data-testid="browser-tabs-menu-item"]');if(!A?.length)return;let _;if(a.key==="ArrowDown")_=(s+1)%A.length;else if(a.key==="ArrowUp")_=(s-1+A.length)%A.length;else if(a.key==="Home")_=0;else if(a.key==="End")_=A.length-1;else if(a.key==="ArrowRight"){a.preventDefault(),a.currentTarget.closest("li")?.querySelector('[data-testid="browser-tab-close"]')?.focus();return}else return;a.preventDefault(),A[_].focus()}const Le=n(()=>e(c).filter(a=>a.hidden).length);let X=ce(null);function Ne(a,s){return a.hostClientId===void 0||a.hostClientId===s}function nt(a){const s=Qr.select(J.state,a.hostClientId??"",k());J.dispatch(Ba(a.id,!s.connected))}function He(a){const s=Jr.select(J.state);if(a.kind==="tab"){const{tab:_,panelId:t}=a.entry;Ne(_,s)?J.dispatch(ta(k(),_.id,t,void 0,{destroy:!0})):nt(_);return}const A=e(c).filter(_=>_.hidden&&!Ne(_.tab,s)).map(_=>_.tab);A.length<e(Le)&&J.dispatch(Ha(k(),S(),s));for(const _ of A)nt(_)}async function tt(a){if(!g()){if(b(K,!1),Ja.select(J.state,S())){if(P()){const s=a.kind==="hidden";await Kr({title:s?d.chat_browserTabs_closeHiddenDialog_title():d.chat_browserTabs_closeDialog_title(),description:s?d.chat_browserTabs_closeHiddenDialog_description():d.chat_browserTabs_closeDialog_description(),confirmLabel:s?d.chat_browserTabs_closeHiddenDialog_confirm_label():d.chat_browserTabs_closeDialog_confirm_label(),cancelLabel:d.chat_browserTabs_closeDialog_cancel_label(),destructive:!0})&&He(a)}else b(X,a,!0);return}He(a)}}function C(){const a=e(X);b(X,null),a&&He(a)}function E(){b(X,null)}var xe={get workspaceId(){return k()},set workspaceId(a){k(a),re()},get agentId(){return S()},set agentId(a){S(a),re()},get entries(){return g()},set entries(a){g(a),re()},get embedded(){return P()},set embedded(a=!1){P(a),re()},$set:dt,$on:(a,s)=>ut(i,a,s)},we=_t(),oe=m(we);{var Q=a=>{var s=Y(),A=m(s);x(A,()=>Ot,(_,t)=>{t(_,{get open(){return e(K)},set open(h){b(K,h,!0)},children:(h,F)=>{var G=_t(),ee=m(G);x(ee,()=>Lt,(se,ie)=>{ie(se,{get icon(){return oa},"data-testid":"browser-tabs-trigger",children:(W,N)=>{Qe();var M=et();ve(()=>$e(M,e(z))),r(W,M)},$$slots:{default:!0}})});var ye=$(ee,2);x(ye,()=>Ht,(se,ie)=>{ie(se,{class:"w-64",alignIconColumn:!1,onCloseAutoFocus:I,children:(W,N)=>{var M=_t(),U=m(M);At(U,17,()=>e(c),D=>D.tab.id,(D,y)=>{const _e=n(()=>Ce(e(y)));var ge=Dn(),fe=qe(ge);{const Se=le=>{qt(le,()=>e(y))};let Me=n(()=>e(y).hidden?"opacity-60":""),Pe=n(()=>e(y).hidden||void 0);x(fe,()=>Vt,(le,Ue)=>{Ue(le,{get class(){return`min-w-0 flex-1 ${e(Me)??""}`},get textValue(){return e(_e)},onclick:()=>Ee(e(y)),"data-testid":"browser-tabs-menu-item",get"data-browser-tab-id"(){return e(y).tab.id},get"data-hidden"(){return e(Pe)},leading:Se,children:(Xe,Ye)=>{var Ve=Mn(),ot=at(Ve,!0);ve(()=>$e(ot,e(_e))),r(Xe,Ve)},$$slots:{leading:!0,default:!0}})})}var Oe=$(fe,2);{let Se=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)})),Me=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)})),Pe=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)}));x(Oe,()=>Vt,(le,Ue)=>{Ue(le,{class:"size-7 shrink-0 items-center justify-center p-0",get textValue(){return e(Se)},get"aria-label"(){return e(Me)},get title(){return e(Pe)},onSelect:Xe=>Xe.preventDefault(),onclick:()=>tt({kind:"tab",entry:e(y)}),"data-testid":"browser-tab-close",get"data-browser-tab-id"(){return e(y).tab.id},children:(Xe,Ye)=>{var Ve=Pn(),ot=qe(Ve);ht(ot,{get icon(){return $t},class:"size-(--menu-icon-size)! shrink-0"}),Be(Ve),r(Xe,Ve)},$$slots:{default:!0}})})}Be(ge),r(D,ge)});var B=$(U,2);{var Ie=D=>{var y=_t(),_e=m(y);x(_e,()=>Bt,(fe,Oe)=>{Oe(fe,{})});var ge=$(_e,2);{let fe=n(()=>d.chat_browserTabs_closeHidden_label({count:wt(e(Le))}));x(ge,()=>st,(Oe,Se)=>{Se(Oe,{get icon(){return $t},get label(){return e(fe)},onSelect:Me=>Me.preventDefault(),onclick:()=>tt({kind:"hidden"}),"data-testid":"browser-tabs-close-hidden"})})}r(D,y)};Z(B,D=>{e(Le)>0&&D(Ie)})}r(W,M)},$$slots:{default:!0}})}),r(h,G)},$$slots:{default:!0}})}),r(a,s)},ue=a=>{var s=Y(),A=m(s);x(A,()=>jr,(_,t)=>{t(_,{get open(){return e(K)},set open(h){b(K,h,!0)},children:(h,F)=>{var G=_t(),ee=m(G);{const se=(ie,W)=>{lt(ie,Pt(()=>(W?.()).props,{variant:"ghost-light",size:"icon-sm",get active(){return e(K)},get"aria-label"(){return e(z)},get tooltip(){return e(z)},get tooltipDisabled(){return e(K)},tooltipSide:"bottom",tooltipDelayDuration:300,"data-testid":"browser-tabs-trigger",get ref(){return e(u)},set ref(M){b(u,M,!0)},children:(M,U)=>{kr(M,{get size(){return na.compact},weight:"regular","aria-hidden":"true",class:"size-4!"})},$$slots:{default:!0}}))};x(ee,()=>Vr,(ie,W)=>{W(ie,{child:se,$$slots:{child:!0}})})}var ye=$(ee,2);x(ye,()=>qr,(se,ie)=>{ie(se,{trapFocus:!1,align:"end",side:"bottom",sideOffset:4,class:"min-w-52 max-w-80 max-h-[min(var(--bits-popover-content-available-height,calc(100dvh-1rem)),calc(100dvh-1rem))] overflow-y-auto p-1",role:"dialog",get"aria-label"(){return e(z)},onOpenAutoFocus:W=>{W.preventDefault(),e(de)?.querySelector('[data-testid="browser-tabs-menu-item"]')?.focus()},onCloseAutoFocus:I,children:(W,N)=>{var M=Rn(),U=m(M);At(U,23,()=>e(c),D=>D.tab.id,(D,y,_e)=>{const ge=n(()=>Ce(e(y)));var fe=Hn(),Oe=qe(fe);{let Me=n(Mt),Pe=n(()=>e(y).hidden?"opacity-60":""),le=n(()=>e(y).hidden||void 0);lt(Oe,{variant:"plain",wrapContent:!1,get class(){return`${e(Me)??""} h-auto min-w-0 flex-1 ${e(Pe)??""}`},"data-testid":"browser-tabs-menu-item",get"data-browser-tab-id"(){return e(y).tab.id},get"data-hidden"(){return e(le)},onkeydown:Ue=>O(Ue,e(_e)),onclick:()=>Ee(e(y)),children:(Ue,Xe)=>{var Ye=Ln(),Ve=m(Ye),ot=qe(Ve);qt(ot,()=>e(y)),Be(Ve);var yt=$(Ve,2),bt=at(yt,!0);ve(()=>$e(bt,e(ge))),r(Ue,Ye)},$$slots:{default:!0}})}var Se=$(Oe,2);{let Me=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(ge)})),Pe=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(ge)}));lt(Se,{variant:"plain",size:"icon-compact",type:"button",class:"size-6 shrink-0 focus-visible:ring-1","data-testid":"browser-tab-close",get"data-browser-tab-id"(){return e(y).tab.id},get"aria-label"(){return e(Me)},get title(){return e(Pe)},onkeydown:le=>{le.key!=="Escape"&&le.stopPropagation(),le.key==="ArrowLeft"&&(le.preventDefault(),le.currentTarget.closest("li")?.querySelector('[data-testid="browser-tabs-menu-item"]')?.focus())},onclick:le=>{le.preventDefault(),le.stopPropagation(),tt({kind:"tab",entry:e(y)})},children:(le,Ue)=>{ht(le,{get icon(){return $t},class:"size-3"})},$$slots:{default:!0}})}Be(fe),r(D,fe)}),Be(U),Xt(U,D=>b(de,D),()=>e(de));var B=$(U,2);{var Ie=D=>{var y=Bn(),_e=$(m(y),2);{let ge=n(Mt);lt(_e,{variant:"plain",get class(){return e(ge)},"data-testid":"browser-tabs-close-hidden",onclick:()=>tt({kind:"hidden"}),children:(fe,Oe)=>{var Se=On(),Me=m(Se);ht(Me,{get icon(){return $t},class:"size-3"});var Pe=$(Me);ve(le=>$e(Pe,` ${le??""}`),[()=>d.chat_browserTabs_closeHidden_label({count:wt(e(Le))})]),r(fe,Se)},$$slots:{default:!0}})}r(D,y)};Z(B,D=>{e(Le)>0&&D(Ie)})}r(W,M)},$$slots:{default:!0}})}),r(h,G)},$$slots:{default:!0}})}),r(a,s)};Z(oe,a=>{e(c).length>0&&P()?a(Q):e(c).length>0&&a(ue,1)})}var j=$(oe,2);{let a=n(()=>e(X)!==null),s=n(()=>e(X)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_title():d.chat_browserTabs_closeDialog_title()),A=n(()=>e(X)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_description():d.chat_browserTabs_closeDialog_description()),_=n(()=>d.chat_browserTabs_closeDialog_close_ariaLabel()),t=n(()=>d.chat_browserTabs_closeDialog_cancel_label()),h=n(()=>e(X)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_confirm_label():d.chat_browserTabs_closeDialog_confirm_label());Gr(j,{get open(){return e(a)},size:"sm",get title(){return e(s)},get description(){return e(A)},get closeLabel(){return e(_)},get cancelLabel(){return e(t)},get submitLabel(){return e(h)},submitVariant:"destructive",focusSubmit:!0,onSubmit:C,onCancel:E,onCloseAutoFocus:F=>{F.preventDefault(),e(u)?.focus()}})}r(f,we);var te=ft(xe);return T(),te}var Fn=H("<!> <!>",1);function da(f,i){if(new.target)return ct({component:da,...f});gt(i,!0);const w=()=>Ae(g,"$entry",p),[p,v]=xt();let T=ae(i,"workspaceId",7),k=ae(i,"agentId",7),S=ae(i,"separator",7,!0);const g=ea(kt(()=>T()),kt(()=>k()));je(()=>{J.dispatch(aa(T(),k()))});var P={get workspaceId(){return T()},set workspaceId(c){T(c),re()},get agentId(){return k()},set agentId(c){k(c),re()},get separator(){return S()},set separator(c=!0){S(c),re()},$set:dt,$on:(c,z)=>ut(i,c,z)},q=Y(),R=m(q);{var Re=c=>{var z=Fn(),Ce=m(z);{var Ee=K=>{var de=Y(),u=m(de);x(u,()=>Bt,(o,I)=>{I(o,{})}),r(K,de)};Z(Ce,K=>{S()&&K(Ee)})}var Fe=$(Ce,2);x(Fe,()=>mt,(K,de)=>{de(K,{indicator:"switch",get icon(){return Ar},get checked(){return w().permission.allowed},onSelect:u=>{u.preventDefault();const o=w()?.permission;o&&!w()?.saving&&J.dispatch(Ra(T(),k(),o.computerId,!o.allowed))},children:(u,o)=>{Qe();var I=et();ve(O=>$e(I,O),[()=>d.settings_agentFeatures_desktopControl_label()]),r(u,I)},$$slots:{default:!0}})}),r(c,z)};Z(R,c=>{w()?.permission&&c(Re)})}r(f,q);var ne=ft(P);return v(),ne}var Ct=H("<!> <!>",1),Nn=H("<!> <!> <!>",1),zn=H('<span class="min-w-0 flex-1"> </span> <span> </span>',1),En=H("<!> <!> <!> <!>",1),Un=H("<!> <!> <!> <!> <!>",1);function ua(f,i){if(new.target)return ct({component:ua,...f});gt(i,!0);const w=()=>Ae(de,"$agentSession",S),p=()=>Ae(Ce,"$fontStyle",S),v=()=>Ae(Ee,"$chatContentWidth",S),T=()=>Ae(Fe,"$chatAuroraEnabled",S),k=()=>Ae(K,"$collapseToolRuns",S),[S,g]=xt(),P=C=>{var E=Y(),xe=m(E);x(xe,()=>zr,(we,oe)=>{oe(we,{get value(){return p()},onValueChange:O,children:(Q,ue)=>{var j=Ct(),te=m(j);x(te,()=>Ut,(s,A)=>{A(s,{value:"sans",closeOnSelect:!1,children:(_,t)=>{Qe();var h=et();ve(F=>$e(h,F),[()=>d.settings_fontStyle_sans()]),r(_,h)},$$slots:{default:!0}})});var a=$(te,2);x(a,()=>Ut,(s,A)=>{A(s,{value:"monospace",closeOnSelect:!1,children:(_,t)=>{Qe();var h=et();ve(F=>$e(h,F),[()=>d.settings_fontStyle_mono()]),r(_,h)},$$slots:{default:!0}})}),r(Q,j)},$$slots:{default:!0}})}),r(C,E)},q=C=>{var E=Nn(),xe=m(E);{let Q=n(()=>v()==="full");x(xe,()=>mt,(ue,j)=>{j(ue,{indicator:"switch",get icon(){return Tr},get checked(){return e(Q)},closeOnSelect:!1,onCheckedChange:te=>J.dispatch(Fa(te?"full":"800")),children:(te,a)=>{Qe();var s=et();ve(A=>$e(s,A),[()=>d.settings_appearance_chatContentWidth_label()]),r(te,s)},$$slots:{default:!0}})})}var we=$(xe,2);x(we,()=>mt,(Q,ue)=>{ue(Q,{indicator:"switch",get icon(){return Cr},get checked(){return T()},closeOnSelect:!1,onCheckedChange:j=>J.dispatch(Na(j)),children:(j,te)=>{Qe();var a=et();ve(s=>$e(a,s),[()=>d.settings_appearance_chatAurora_label()]),r(j,a)},$$slots:{default:!0}})});var oe=$(we,2);x(oe,()=>mt,(Q,ue)=>{ue(Q,{indicator:"switch",get icon(){return Sr},get checked(){return k()},closeOnSelect:!1,onCheckedChange:j=>J.dispatch(za(j)),children:(j,te)=>{Qe();var a=et();ve(s=>$e(a,s),[()=>d.settings_appearance_collapseToolRuns_label()]),r(j,a)},$$slots:{default:!0}})}),r(C,E)},R=C=>{var E=Y(),xe=m(E);{var we=oe=>{var Q=Y(),ue=m(Q);x(ue,()=>mt,(j,te)=>{te(j,{indicator:"switch",get icon(){return Mr},get checked(){return e(u)},closeOnSelect:!1,onCheckedChange:a=>J.dispatch(Ua(c(),z(),a?"interactive":"allow")),children:(a,s)=>{Qe();var A=et();ve(_=>$e(A,_),[()=>d.ui_viewSettings_askBeforeTools_label()]),r(a,A)},$$slots:{default:!0}})}),r(oe,Q)};Z(xe,oe=>{e(u)!==void 0&&c()&&z()&&oe(we)})}r(C,E)},Re=C=>{var E=Y(),xe=m(E);{var we=oe=>{var Q=Y(),ue=m(Q);Kt(ue,()=>`${c()}:${z()}`,j=>{{let te=n(()=>!ne());da(j,{get workspaceId(){return c()},get agentId(){return z()},get separator(){return e(te)}})}}),r(oe,Q)};Z(xe,oe=>{c()&&z()&&oe(we)})}r(C,E)};let ne=ae(i,"embedded",7,!1),c=ae(i,"workspaceId",7),z=ae(i,"agentId",7);const Ce=rn(),Ee=nn(),Fe=on(),K=sn(),de=Qa(an(()=>z())),u=n(()=>{const C=w();if(!c()||!C||C.permissionPolicy===void 0)return;const E=C.effectivePermissionPolicy;return typeof E=="string"?E==="interactive":void 0});let o=ce(!1);const I=n(()=>p()==="sans"?d.settings_fontStyle_sans():d.settings_fontStyle_mono());function O(C){C!=="sans"&&C!=="monospace"||J.dispatch(Ea(C))}var Le={get embedded(){return ne()},set embedded(C=!1){ne(C),re()},get workspaceId(){return c()},set workspaceId(C){c(C),re()},get agentId(){return z()},set agentId(C){z(C),re()},$set:dt,$on:(C,E)=>ut(i,C,E)},X=Y(),Ne=m(X);{var nt=C=>{var E=En(),xe=m(E);x(xe,()=>Ot,(ue,j)=>{j(ue,{children:(te,a)=>{var s=Ct(),A=m(s);x(A,()=>Lt,(t,h)=>{h(t,{get icon(){return xr},iconWeight:"regular",children:(F,G)=>{var ee=zn(),ye=m(ee),se=at(ye,!0),ie=$(ye,2),W=at(ie,!0);ve(N=>{$e(se,N),Pa(ie,1,`type-caption ${Fr}`),$e(W,e(I))},[()=>d.ui_viewSettings_font_label()]),r(F,ee)},$$slots:{default:!0}})});var _=$(A,2);{let t=n(()=>d.ui_viewSettings_font_label());x(_,()=>Ht,(h,F)=>{F(h,{get"aria-label"(){return e(t)},children:(G,ee)=>{P(G)},$$slots:{default:!0}})})}r(te,s)},$$slots:{default:!0}})});var we=$(xe,2);q(we);var oe=$(we,2);R(oe);var Q=$(oe,2);Re(Q),r(C,E)},He=C=>{var E=Y(),xe=m(E);x(xe,()=>dn,(we,oe)=>{oe(we,{get open(){return e(o)},set open(Q){b(o,Q,!0)},children:(Q,ue)=>{var j=Ct(),te=m(j);{const s=(A,_)=>{let t=()=>(_?.()).props;{let h=n(()=>d.ui_viewSettings_trigger_tooltip()),F=n(()=>d.ui_viewSettings_trigger_tooltip());lt(A,Pt(t,{variant:"ghost-light",size:"icon-xs",get tooltip(){return e(h)},tooltipSide:"bottom",get"aria-label"(){return e(F)},get"aria-expanded"(){return e(o)},"data-testid":"agent-view-settings-trigger",children:(G,ee)=>{ht(G,{get icon(){return yr},size:"xs"})},$$slots:{default:!0}}))}};x(te,()=>ln,(A,_)=>{_(A,{child:s,$$slots:{child:!0}})})}var a=$(te,2);{let s=n(()=>d.ui_viewSettings_trigger_tooltip());x(a,()=>cn,(A,_)=>{_(A,{align:"end",class:"w-56",get"aria-label"(){return e(s)},children:(t,h)=>{var F=Un(),G=m(F);P(G);var ee=$(G,2);x(ee,()=>Bt,(W,N)=>{N(W,{})});var ye=$(ee,2);q(ye);var se=$(ye,2);R(se);var ie=$(se,2);Re(ie),r(t,F)},$$slots:{default:!0}})})}r(Q,j)},$$slots:{default:!0}})}),r(C,E)};Z(Ne,C=>{ne()?C(nt):C(He,-1)})}r(f,X);var tt=ft(Le);return g(),tt}function vt(f,i=2){if(f==null)return"";if(typeof f=="string")return f;try{return JSON.stringify(f,null,i)}catch{return String(f)}}function Vn(f){const i=f.name||f.toolName||"unknown",w=f.arguments||f.input||f.parameters||{},p=vt(w),v=f.result,T=f.error;let k=`🔧 Tool: ${i}
|
|
2
2
|
Input:
|
|
3
3
|
${p}`;return T?k+=`
|
|
4
4
|
❌ Error: ${typeof T=="string"?T:vt(T)}`:v!==void 0&&(k+=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as le}from"./CLD_-K5U.js";import{p as he}from"./ByQw5PSS.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./wsJnb2w5.js";import{p as Ee}from"./BLN77Nun.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"),We=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"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=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:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,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(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(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"),Ue=h(e=>e.branch,"parseCheckout"),Ke=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,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.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}=P(),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"./BqGa1t8L.js";import{p as he}from"./O-SiHQ6R.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./DnDBa5Or.js";import{p as Ee}from"./BeQ5cBZr.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"),We=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"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=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:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,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(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(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"),Ue=h(e=>e.branch,"parseCheckout"),Ke=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,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.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}=P(),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}
|