@recombine-ai/bosun 0.3.7 → 0.3.9
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/build/client/_app/immutable/assets/0.XjKA4GPF.css +1 -0
- package/build/client/_app/immutable/assets/0.XjKA4GPF.css.br +0 -0
- package/build/client/_app/immutable/assets/0.XjKA4GPF.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.DOE0DQ6H.css +1 -0
- package/build/client/_app/immutable/assets/2.DOE0DQ6H.css.br +0 -0
- package/build/client/_app/immutable/assets/2.DOE0DQ6H.css.gz +0 -0
- package/build/client/_app/immutable/assets/7.DlSPCZj0.css +1 -0
- package/build/client/_app/immutable/assets/7.DlSPCZj0.css.br +0 -0
- package/build/client/_app/immutable/assets/7.DlSPCZj0.css.gz +0 -0
- package/build/client/_app/immutable/assets/8.DoLA3Mkm.css +1 -0
- package/build/client/_app/immutable/assets/8.DoLA3Mkm.css.br +0 -0
- package/build/client/_app/immutable/assets/8.DoLA3Mkm.css.gz +0 -0
- package/build/client/_app/immutable/assets/{Tab.BxaGw9IG.css → Tab.jOjMVh6j.css} +1 -1
- package/build/client/_app/immutable/assets/Tab.jOjMVh6j.css.br +0 -0
- package/build/client/_app/immutable/assets/Tab.jOjMVh6j.css.gz +0 -0
- package/build/client/_app/immutable/chunks/7wcu2ga1.js +1 -0
- package/build/client/_app/immutable/chunks/7wcu2ga1.js.br +0 -0
- package/build/client/_app/immutable/chunks/7wcu2ga1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3K88SyC.js +1 -0
- package/build/client/_app/immutable/chunks/B3K88SyC.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3K88SyC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D5fGPlBk.js → BGEE3mf3.js} +1 -1
- package/build/client/_app/immutable/chunks/BGEE3mf3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BGEE3mf3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BOQMymse.js → BH7VBnJ7.js} +1 -1
- package/build/client/_app/immutable/chunks/BH7VBnJ7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BH7VBnJ7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHkx8tAH.js +1 -0
- package/build/client/_app/immutable/chunks/BHkx8tAH.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHkx8tAH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMwJcaLS.js +1 -0
- package/build/client/_app/immutable/chunks/BMwJcaLS.js.br +2 -0
- package/build/client/_app/immutable/chunks/BMwJcaLS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CfKHaDCm.js → BOrnwyTp.js} +1 -1
- package/build/client/_app/immutable/chunks/BOrnwyTp.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOrnwyTp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BbaH2eDw.js +1 -0
- package/build/client/_app/immutable/chunks/BbaH2eDw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbaH2eDw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C769zFCl.js → Bub2VLj9.js} +1 -1
- package/build/client/_app/immutable/chunks/Bub2VLj9.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bub2VLj9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{yOR3vtRx.js → ByppsbS-.js} +1 -1
- package/build/client/_app/immutable/chunks/ByppsbS-.js.br +0 -0
- package/build/client/_app/immutable/chunks/ByppsbS-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0mQlu7J.js +1 -0
- package/build/client/_app/immutable/chunks/C0mQlu7J.js.br +1 -0
- package/build/client/_app/immutable/chunks/C0mQlu7J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0pV4x1v.js +1 -0
- package/build/client/_app/immutable/chunks/C0pV4x1v.js.br +2 -0
- package/build/client/_app/immutable/chunks/C0pV4x1v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0sQKHpE.js +1 -0
- package/build/client/_app/immutable/chunks/C0sQKHpE.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0sQKHpE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CRlLKhPr.js → CFcfsVkY.js} +1 -1
- package/build/client/_app/immutable/chunks/CFcfsVkY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFcfsVkY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BHL1bMOV.js → CYkx2jgw.js} +1 -1
- package/build/client/_app/immutable/chunks/CYkx2jgw.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYkx2jgw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZ6iREyA.js +8 -0
- package/build/client/_app/immutable/chunks/CZ6iREyA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZ6iREyA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbCJfhin.js +1 -0
- package/build/client/_app/immutable/chunks/CbCJfhin.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbCJfhin.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DaRvw8c-.js → CdTjAjKm.js} +7 -7
- package/build/client/_app/immutable/chunks/CdTjAjKm.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdTjAjKm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{4PztAao_.js → CmPVG-ki.js} +1 -1
- package/build/client/_app/immutable/chunks/CmPVG-ki.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmPVG-ki.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DJ_lsF0V.js → Cnr0cZA4.js} +1 -1
- package/build/client/_app/immutable/chunks/Cnr0cZA4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cnr0cZA4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CojkI8AD.js +33 -0
- package/build/client/_app/immutable/chunks/CojkI8AD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CojkI8AD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cp_hX0eh.js +1 -0
- package/build/client/_app/immutable/chunks/Cp_hX0eh.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cp_hX0eh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cv6CwVfk.js +3 -0
- package/build/client/_app/immutable/chunks/Cv6CwVfk.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv6CwVfk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DAfsp-82.js → D8qEOlWC.js} +1 -1
- package/build/client/_app/immutable/chunks/D8qEOlWC.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8qEOlWC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bf1oCG9-.js → DOMF1VtZ.js} +1 -1
- package/build/client/_app/immutable/chunks/DOMF1VtZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOMF1VtZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bd7SZbXQ.js → DRaGXt8e.js} +1 -1
- package/build/client/_app/immutable/chunks/DRaGXt8e.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRaGXt8e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bw2f0Pmg.js → DU-D8S0B.js} +1 -1
- package/build/client/_app/immutable/chunks/DU-D8S0B.js.br +0 -0
- package/build/client/_app/immutable/chunks/DU-D8S0B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Culo9hD6.js → DadWvtYR.js} +1 -1
- package/build/client/_app/immutable/chunks/DadWvtYR.js.br +0 -0
- package/build/client/_app/immutable/chunks/DadWvtYR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cx_xzGPa.js → DbYdNz4J.js} +1 -1
- package/build/client/_app/immutable/chunks/DbYdNz4J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DbYdNz4J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DiFAgw_s.js +1 -0
- package/build/client/_app/immutable/chunks/DiFAgw_s.js.br +0 -0
- package/build/client/_app/immutable/chunks/DiFAgw_s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrMdBz9b.js +1 -0
- package/build/client/_app/immutable/chunks/DrMdBz9b.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrMdBz9b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{qXu78w_4.js → DsvX5v5e.js} +1 -1
- package/build/client/_app/immutable/chunks/DsvX5v5e.js.br +0 -0
- package/build/client/_app/immutable/chunks/DsvX5v5e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Y0ymTIHd.js +1 -0
- package/build/client/_app/immutable/chunks/Y0ymTIHd.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y0ymTIHd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_HWrJCgx.js +1 -0
- package/build/client/_app/immutable/chunks/_HWrJCgx.js.br +0 -0
- package/build/client/_app/immutable/chunks/_HWrJCgx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CRTtd6by.js → qPgPowuc.js} +1 -1
- package/build/client/_app/immutable/chunks/qPgPowuc.js.br +0 -0
- package/build/client/_app/immutable/chunks/qPgPowuc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ri5tqg4N.js +1 -0
- package/build/client/_app/immutable/chunks/ri5tqg4N.js.br +0 -0
- package/build/client/_app/immutable/chunks/ri5tqg4N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Codln_pl.js → sdLD1XcR.js} +1 -1
- package/build/client/_app/immutable/chunks/sdLD1XcR.js.br +0 -0
- package/build/client/_app/immutable/chunks/sdLD1XcR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/t1v2-usS.js +4 -0
- package/build/client/_app/immutable/chunks/t1v2-usS.js.br +0 -0
- package/build/client/_app/immutable/chunks/t1v2-usS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tLFXBP7P.js +2 -0
- package/build/client/_app/immutable/chunks/tLFXBP7P.js.br +0 -0
- package/build/client/_app/immutable/chunks/tLFXBP7P.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.jP0Pyfdy.js +2 -0
- package/build/client/_app/immutable/entry/app.jP0Pyfdy.js.br +0 -0
- package/build/client/_app/immutable/entry/app.jP0Pyfdy.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.KD1JZMOT.js +1 -0
- package/build/client/_app/immutable/entry/start.KD1JZMOT.js.br +2 -0
- package/build/client/_app/immutable/entry/start.KD1JZMOT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.ByrdmeSo.js +3 -0
- package/build/client/_app/immutable/nodes/0.ByrdmeSo.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.ByrdmeSo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.VLeq38lN.js +1 -0
- package/build/client/_app/immutable/nodes/1.VLeq38lN.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.VLeq38lN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BHSGZYEC.js +1 -0
- package/build/client/_app/immutable/nodes/10.BHSGZYEC.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BHSGZYEC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CZ_7M4AF.js +1 -0
- package/build/client/_app/immutable/nodes/11.CZ_7M4AF.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CZ_7M4AF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DRr2l3NZ.js +1 -0
- package/build/client/_app/immutable/nodes/12.DRr2l3NZ.js.br +2 -0
- package/build/client/_app/immutable/nodes/12.DRr2l3NZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DetV1tDO.js +1 -0
- package/build/client/_app/immutable/nodes/13.DetV1tDO.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DetV1tDO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.I-eiMWQu.js +11 -0
- package/build/client/_app/immutable/nodes/14.I-eiMWQu.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.I-eiMWQu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DX9U9zLg.js +35 -0
- package/build/client/_app/immutable/nodes/2.DX9U9zLg.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DX9U9zLg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Bh8il5iy.js +1 -0
- package/build/client/_app/immutable/nodes/3.Bh8il5iy.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bh8il5iy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.C-B1sGi_.js → 4.CtzHYc6x.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CtzHYc6x.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CtzHYc6x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.B4dlomkV.js +1 -0
- package/build/client/_app/immutable/nodes/5.B4dlomkV.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.B4dlomkV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CPYhLc46.js +1 -0
- package/build/client/_app/immutable/nodes/6.CPYhLc46.js.br +4 -0
- package/build/client/_app/immutable/nodes/6.CPYhLc46.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CBPrYfFp.js +2 -0
- package/build/client/_app/immutable/nodes/7.CBPrYfFp.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CBPrYfFp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.4NTWYv4c.js +6 -0
- package/build/client/_app/immutable/nodes/8.4NTWYv4c.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.4NTWYv4c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BVI-eEdV.js +1 -0
- package/build/client/_app/immutable/nodes/9.BVI-eEdV.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BVI-eEdV.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/0-CjpeDbMt.js +9 -0
- package/build/server/chunks/{0-CqdHgLFy.js.map → 0-CjpeDbMt.js.map} +1 -1
- package/build/server/chunks/1-M0YzuUQM.js +9 -0
- package/build/server/chunks/{1-CptSbbsC.js.map → 1-M0YzuUQM.js.map} +1 -1
- package/build/server/chunks/{7-soEaW5k5.js → 10-C7WLHR92.js} +5 -5
- package/build/server/chunks/10-C7WLHR92.js.map +1 -0
- package/build/server/chunks/11-CPYwUx-7.js +21 -0
- package/build/server/chunks/11-CPYwUx-7.js.map +1 -0
- package/build/server/chunks/12-C5OSs5Op.js +20 -0
- package/build/server/chunks/12-C5OSs5Op.js.map +1 -0
- package/build/server/chunks/13-BQ9R_Ex-.js +9 -0
- package/build/server/chunks/13-BQ9R_Ex-.js.map +1 -0
- package/build/server/chunks/14-BFsI6u_W.js +9 -0
- package/build/server/chunks/14-BFsI6u_W.js.map +1 -0
- package/build/server/chunks/2-Cjh0UTU6.js +9 -0
- package/build/server/chunks/2-Cjh0UTU6.js.map +1 -0
- package/build/server/chunks/3-VrGFs76T.js +9 -0
- package/build/server/chunks/3-VrGFs76T.js.map +1 -0
- package/build/server/chunks/4-CSgrzh2F.js +9 -0
- package/build/server/chunks/4-CSgrzh2F.js.map +1 -0
- package/build/server/chunks/5-zKehYil3.js +9 -0
- package/build/server/chunks/5-zKehYil3.js.map +1 -0
- package/build/server/chunks/6-uS_X9B0s.js +21 -0
- package/build/server/chunks/6-uS_X9B0s.js.map +1 -0
- package/build/server/chunks/7-DewREBAN.js +9 -0
- package/build/server/chunks/7-DewREBAN.js.map +1 -0
- package/build/server/chunks/8-Dk3ms3jm.js +9 -0
- package/build/server/chunks/8-Dk3ms3jm.js.map +1 -0
- package/build/server/chunks/9-W6XYayeK.js +25 -0
- package/build/server/chunks/9-W6XYayeK.js.map +1 -0
- package/build/server/chunks/{AgentSidebar-BIVt78i3.js → AgentSidebar-BB_yQ9s0.js} +4 -4
- package/build/server/chunks/AgentSidebar-BB_yQ9s0.js.map +1 -0
- package/build/server/chunks/{Button-ZjVPI4zo.js → Button-Cd4Yzpdy.js} +4 -4
- package/build/server/chunks/Button-Cd4Yzpdy.js.map +1 -0
- package/build/server/chunks/{CopyTracesDropdown-B8MjGOwT.js → ChatStepTrace-cq26gF4B.js} +162 -145
- package/build/server/chunks/ChatStepTrace-cq26gF4B.js.map +1 -0
- package/build/server/chunks/ContextEditor-CfjBPLpI.js +67 -0
- package/build/server/chunks/ContextEditor-CfjBPLpI.js.map +1 -0
- package/build/server/chunks/{Icon-Csjrnozq.js → Icon-BgknHaZs.js} +2 -2
- package/build/server/chunks/{Icon-Csjrnozq.js.map → Icon-BgknHaZs.js.map} +1 -1
- package/build/server/chunks/{Input-BCU2QEQ2.js → Input-BJW36iKz.js} +2 -2
- package/build/server/chunks/{Input-BCU2QEQ2.js.map → Input-BJW36iKz.js.map} +1 -1
- package/build/server/chunks/{Modal-bmttP-F1.js → Modal-D4tx0Bdo.js} +3 -3
- package/build/server/chunks/Modal-D4tx0Bdo.js.map +1 -0
- package/build/server/chunks/{Tab-Jw_OwV7Q.js → Tab-DheAG-QC.js} +3 -3
- package/build/server/chunks/Tab-DheAG-QC.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-GwcIlDHC.js → _layout.svelte-BL8XnK1E.js} +23 -28
- package/build/server/chunks/_layout.svelte-BL8XnK1E.js.map +1 -0
- package/build/server/chunks/_layout.svelte-DHgaGTP_.js +844 -0
- package/build/server/chunks/_layout.svelte-DHgaGTP_.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-CrT993Da.js → _layout.svelte-Svi5xbzP.js} +1 -14
- package/build/server/chunks/_layout.svelte-Svi5xbzP.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CVO2CdmB.js → _page.svelte-39hvC6-Q.js} +4 -4
- package/build/server/chunks/{_page.svelte-CVO2CdmB.js.map → _page.svelte-39hvC6-Q.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-D8d07zd0.js → _page.svelte-BpnUXzfh.js} +25 -10
- package/build/server/chunks/_page.svelte-BpnUXzfh.js.map +1 -0
- package/build/server/chunks/{_page.svelte--l_LvFv_.js → _page.svelte-C1YaC_Qg.js} +498 -496
- package/build/server/chunks/_page.svelte-C1YaC_Qg.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BAi74pJ3.js → _page.svelte-CbqAsz26.js} +3 -3
- package/build/server/chunks/_page.svelte-CbqAsz26.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BOzS_rqK.js → _page.svelte-CmsDxzfh.js} +19 -27
- package/build/server/chunks/_page.svelte-CmsDxzfh.js.map +1 -0
- package/build/server/chunks/{_page.svelte-d8hJxmZl.js → _page.svelte-DCP-PSh0.js} +243 -379
- package/build/server/chunks/_page.svelte-DCP-PSh0.js.map +1 -0
- package/build/server/chunks/edit-workspace-context-OTOIRCI0.js +13 -0
- package/build/server/chunks/edit-workspace-context-OTOIRCI0.js.map +1 -0
- package/build/server/chunks/hooks-BJphIAi-.js +8 -0
- package/build/server/chunks/hooks-BJphIAi-.js.map +1 -0
- package/build/server/chunks/{Tab.svelte_svelte_type_style_lang-ByZ0KVzO.js → index-server-CefdgakO.js} +2 -2
- package/build/server/chunks/index-server-CefdgakO.js.map +1 -0
- package/build/server/chunks/{index2-C572SQM_.js → index2-BuOY2QE4.js} +2 -2
- package/build/server/chunks/{index2-C572SQM_.js.map → index2-BuOY2QE4.js.map} +1 -1
- package/build/server/chunks/log-content.svelte-B3ZvaoLs.js +20 -0
- package/build/server/chunks/log-content.svelte-B3ZvaoLs.js.map +1 -0
- package/build/server/index.js +3 -2
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +51 -18
- package/build/server/manifest.js.map +1 -1
- package/package.json +3 -1
- package/src/backend/lib/decode-html-entities.spec.ts +29 -0
- package/src/backend/lib/decode-html-entities.ts +25 -0
- package/src/backend/roleplay/router.ts +31 -0
- package/src/backend/tests/academy.ts +353 -115
- package/src/backend/tests/analyze.ts +357 -0
- package/src/backend/tests/data.ts +48 -12
- package/src/backend/tests/emulate-agents.ts +39 -4
- package/src/backend/tests/prompt-issues.ts +204 -0
- package/src/backend/tests/router.ts +51 -4
- package/build/client/_app/immutable/assets/0.BPqDeVAI.css +0 -1
- package/build/client/_app/immutable/assets/0.BPqDeVAI.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BPqDeVAI.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.BIrSikaZ.css +0 -1
- package/build/client/_app/immutable/assets/4.BIrSikaZ.css.br +0 -0
- package/build/client/_app/immutable/assets/4.BIrSikaZ.css.gz +0 -0
- package/build/client/_app/immutable/assets/6.C4C8vBUW.css +0 -1
- package/build/client/_app/immutable/assets/6.C4C8vBUW.css.br +0 -0
- package/build/client/_app/immutable/assets/6.C4C8vBUW.css.gz +0 -0
- package/build/client/_app/immutable/assets/Tab.BxaGw9IG.css.br +0 -0
- package/build/client/_app/immutable/assets/Tab.BxaGw9IG.css.gz +0 -0
- package/build/client/_app/immutable/chunks/4PztAao_.js.br +0 -0
- package/build/client/_app/immutable/chunks/4PztAao_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2gGEZTS.js +0 -1
- package/build/client/_app/immutable/chunks/B2gGEZTS.js.br +0 -2
- package/build/client/_app/immutable/chunks/B2gGEZTS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHL1bMOV.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHL1bMOV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOQMymse.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOQMymse.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bd7SZbXQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bd7SZbXQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bf1oCG9-.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bf1oCG9-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BgaIh2D4.js +0 -1
- package/build/client/_app/immutable/chunks/BgaIh2D4.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgaIh2D4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrDK8TTs.js +0 -2
- package/build/client/_app/immutable/chunks/BrDK8TTs.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrDK8TTs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BsKQRAyX.js +0 -1
- package/build/client/_app/immutable/chunks/BsKQRAyX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsKQRAyX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bw2f0Pmg.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bw2f0Pmg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BzAx_Qn3.js +0 -1
- package/build/client/_app/immutable/chunks/BzAx_Qn3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BzAx_Qn3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-dTPkQy.js +0 -1
- package/build/client/_app/immutable/chunks/C-dTPkQy.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-dTPkQy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C769zFCl.js.br +0 -0
- package/build/client/_app/immutable/chunks/C769zFCl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7FjDhij.js +0 -4
- package/build/client/_app/immutable/chunks/C7FjDhij.js.br +0 -0
- package/build/client/_app/immutable/chunks/C7FjDhij.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CInh9KnU.js +0 -1
- package/build/client/_app/immutable/chunks/CInh9KnU.js.br +0 -2
- package/build/client/_app/immutable/chunks/CInh9KnU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRTtd6by.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRTtd6by.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRlLKhPr.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRlLKhPr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CUfDVPpW.js +0 -1
- package/build/client/_app/immutable/chunks/CUfDVPpW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUfDVPpW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfKHaDCm.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfKHaDCm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Codln_pl.js.br +0 -0
- package/build/client/_app/immutable/chunks/Codln_pl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Culo9hD6.js.br +0 -0
- package/build/client/_app/immutable/chunks/Culo9hD6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CxDLEL1d.js +0 -8
- package/build/client/_app/immutable/chunks/CxDLEL1d.js.br +0 -0
- package/build/client/_app/immutable/chunks/CxDLEL1d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cx_xzGPa.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cx_xzGPa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-51TRqM.js +0 -33
- package/build/client/_app/immutable/chunks/D-51TRqM.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-51TRqM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5fGPlBk.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5fGPlBk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9h7-Y-f.js +0 -1
- package/build/client/_app/immutable/chunks/D9h7-Y-f.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9h7-Y-f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAfsp-82.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAfsp-82.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJ_lsF0V.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJ_lsF0V.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DaRvw8c-.js.br +0 -0
- package/build/client/_app/immutable/chunks/DaRvw8c-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FawE95CY.js +0 -1
- package/build/client/_app/immutable/chunks/FawE95CY.js.br +0 -0
- package/build/client/_app/immutable/chunks/FawE95CY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HBgR5qMR.js +0 -3
- package/build/client/_app/immutable/chunks/HBgR5qMR.js.br +0 -0
- package/build/client/_app/immutable/chunks/HBgR5qMR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I-mny6CH.js +0 -1
- package/build/client/_app/immutable/chunks/I-mny6CH.js.br +0 -0
- package/build/client/_app/immutable/chunks/I-mny6CH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/aeuWzujc.js +0 -1
- package/build/client/_app/immutable/chunks/aeuWzujc.js.br +0 -2
- package/build/client/_app/immutable/chunks/aeuWzujc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qXu78w_4.js.br +0 -0
- package/build/client/_app/immutable/chunks/qXu78w_4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yOR3vtRx.js.br +0 -0
- package/build/client/_app/immutable/chunks/yOR3vtRx.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Dd7V5oBZ.js +0 -2
- package/build/client/_app/immutable/entry/app.Dd7V5oBZ.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Dd7V5oBZ.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.I6276KWl.js +0 -1
- package/build/client/_app/immutable/entry/start.I6276KWl.js.br +0 -2
- package/build/client/_app/immutable/entry/start.I6276KWl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DgVTcUxG.js +0 -3
- package/build/client/_app/immutable/nodes/0.DgVTcUxG.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DgVTcUxG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1._3H1cdWd.js +0 -1
- package/build/client/_app/immutable/nodes/1._3H1cdWd.js.br +0 -0
- package/build/client/_app/immutable/nodes/1._3H1cdWd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BO0WBJz3.js +0 -1
- package/build/client/_app/immutable/nodes/2.BO0WBJz3.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BO0WBJz3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C-B1sGi_.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C-B1sGi_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.SsrvuMXV.js +0 -35
- package/build/client/_app/immutable/nodes/4.SsrvuMXV.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.SsrvuMXV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DM_0dw43.js +0 -1
- package/build/client/_app/immutable/nodes/5.DM_0dw43.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DM_0dw43.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BLcf1-sM.js +0 -5
- package/build/client/_app/immutable/nodes/6.BLcf1-sM.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BLcf1-sM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BLozkJCY.js +0 -1
- package/build/client/_app/immutable/nodes/7.BLozkJCY.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BLozkJCY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BeHRzquW.js +0 -1
- package/build/client/_app/immutable/nodes/8.BeHRzquW.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BeHRzquW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.B1qNbiqD.js +0 -11
- package/build/client/_app/immutable/nodes/9.B1qNbiqD.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B1qNbiqD.js.gz +0 -0
- package/build/server/chunks/0-CqdHgLFy.js +0 -9
- package/build/server/chunks/1-CptSbbsC.js +0 -9
- package/build/server/chunks/2-CVrU1q5e.js +0 -9
- package/build/server/chunks/2-CVrU1q5e.js.map +0 -1
- package/build/server/chunks/3-Bi3FZgxy.js +0 -9
- package/build/server/chunks/3-Bi3FZgxy.js.map +0 -1
- package/build/server/chunks/4-Cg81z1QT.js +0 -9
- package/build/server/chunks/4-Cg81z1QT.js.map +0 -1
- package/build/server/chunks/5-BDZ8fU2l.js +0 -9
- package/build/server/chunks/5-BDZ8fU2l.js.map +0 -1
- package/build/server/chunks/6-_jdLZ_Lr.js +0 -33
- package/build/server/chunks/6-_jdLZ_Lr.js.map +0 -1
- package/build/server/chunks/7-soEaW5k5.js.map +0 -1
- package/build/server/chunks/8-Yp_dUmRS.js +0 -9
- package/build/server/chunks/8-Yp_dUmRS.js.map +0 -1
- package/build/server/chunks/9-Cb4lmLGK.js +0 -9
- package/build/server/chunks/9-Cb4lmLGK.js.map +0 -1
- package/build/server/chunks/AgentSidebar-BIVt78i3.js.map +0 -1
- package/build/server/chunks/Button-ZjVPI4zo.js.map +0 -1
- package/build/server/chunks/ContextEditor-Dgs8Ax9B.js +0 -45
- package/build/server/chunks/ContextEditor-Dgs8Ax9B.js.map +0 -1
- package/build/server/chunks/CopyTracesDropdown-B8MjGOwT.js.map +0 -1
- package/build/server/chunks/Modal-bmttP-F1.js.map +0 -1
- package/build/server/chunks/Tab-Jw_OwV7Q.js.map +0 -1
- package/build/server/chunks/Tab.svelte_svelte_type_style_lang-ByZ0KVzO.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CrT993Da.js.map +0 -1
- package/build/server/chunks/_layout.svelte-GwcIlDHC.js.map +0 -1
- package/build/server/chunks/_page.svelte--l_LvFv_.js.map +0 -1
- package/build/server/chunks/_page.svelte-BAi74pJ3.js.map +0 -1
- package/build/server/chunks/_page.svelte-BOzS_rqK.js.map +0 -1
- package/build/server/chunks/_page.svelte-D8d07zd0.js.map +0 -1
- package/build/server/chunks/_page.svelte-d8hJxmZl.js.map +0 -1
- /package/build/client/_app/immutable/assets/{9.C5apk4jm.css → 14.C5apk4jm.css} +0 -0
- /package/build/client/_app/immutable/assets/{9.C5apk4jm.css.br → 14.C5apk4jm.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{9.C5apk4jm.css.gz → 14.C5apk4jm.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{2.Dzh7_Q8n.css → 3.Dzh7_Q8n.css} +0 -0
- /package/build/client/_app/immutable/assets/{2.Dzh7_Q8n.css.br → 3.Dzh7_Q8n.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{2.Dzh7_Q8n.css.gz → 3.Dzh7_Q8n.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{3.CZVw96CJ.css → 4.CZVw96CJ.css} +0 -0
- /package/build/client/_app/immutable/assets/{3.CZVw96CJ.css.br → 4.CZVw96CJ.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{3.CZVw96CJ.css.gz → 4.CZVw96CJ.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{CopyTracesDropdown.NFJFjHv0.css → ChatStepTrace.NFJFjHv0.css} +0 -0
- /package/build/client/_app/immutable/assets/{CopyTracesDropdown.NFJFjHv0.css.br → ChatStepTrace.NFJFjHv0.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{CopyTracesDropdown.NFJFjHv0.css.gz → ChatStepTrace.NFJFjHv0.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{Modal.tn0RQdqM.css → bosun-theme.tn0RQdqM.css} +0 -0
- /package/build/client/_app/immutable/assets/{Modal.tn0RQdqM.css.br → bosun-theme.tn0RQdqM.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{Modal.tn0RQdqM.css.gz → bosun-theme.tn0RQdqM.css.gz} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CdTjAjKm.js","./ri5tqg4N.js","./Cp_hX0eh.js","./tLFXBP7P.js","../assets/editor.BMIWPGx3.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import"./CWj6FrbW.js";import{p as Le,u as st,h as s,e as ae,f as J,d as _,r as O,i as H,b,c as Ne,T as Ge,a as ge,t as G,s as L,l as B,k as Z,n as me,A as kt}from"./Cp_hX0eh.js";import{i as Y}from"./_HWrJCgx.js";import{p as te}from"./BbaH2eDw.js";import{B as Ve}from"./DOMF1VtZ.js";import{o as mt,a as lr,s as K}from"./tLFXBP7P.js";import{s as _t,d as cr,I as Et,c as Ae,f as Ut}from"./Cv6CwVfk.js";import{b as Ke}from"./C0mQlu7J.js";import{e as Jt,a as Xt,M as At}from"./CZ6iREyA.js";import{T as Yt,a as ze}from"./DRaGXt8e.js";import{g as dr}from"./BHkx8tAH.js";import{t as ur}from"./BEJ5fU19.js";import{c as Lt,b as fr}from"./CbCJfhin.js";import{_ as Gt}from"./ri5tqg4N.js";var ve="top",we="bottom",_e="right",pe="left",Ct="auto",dt=[ve,we,_e,pe],Qe="start",lt="end",vr="clippingParents",Kt="viewport",nt="popper",pr="reference",Nt=dt.reduce(function(t,e){return t.concat([e+"-"+Qe,e+"-"+lt])},[]),Qt=[].concat(dt,[Ct]).reduce(function(t,e){return t.concat([e,e+"-"+Qe,e+"-"+lt])},[]),mr="beforeRead",gr="read",hr="afterRead",yr="beforeMain",xr="main",br="afterMain",wr="beforeWrite",_r="write",Or="afterWrite",Pr=[mr,gr,hr,yr,xr,br,wr,_r,Or];function Te(t){return t?(t.nodeName||"").toLowerCase():null}function he(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ue(t){var e=he(t).Element;return t instanceof e||t instanceof Element}function be(t){var e=he(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Tt(t){if(typeof ShadowRoot>"u")return!1;var e=he(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function kr(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},l=e.elements[r];!be(l)||!Te(l)||(Object.assign(l.style,n),Object.keys(a).forEach(function(d){var o=a[d];o===!1?l.removeAttribute(d):l.setAttribute(d,o===!0?"":o)}))})}function Er(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],l=e.attributes[n]||{},d=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),o=d.reduce(function(i,u){return i[u]="",i},{});!be(a)||!Te(a)||(Object.assign(a.style,o),Object.keys(l).forEach(function(i){a.removeAttribute(i)}))})}}const Ar={name:"applyStyles",enabled:!0,phase:"write",fn:kr,effect:Er,requires:["computeStyles"]};function Ce(t){return t.split("-")[0]}var qe=Math.max,pt=Math.min,Ze=Math.round;function Ot(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zt(){return!/^((?!chrome|android).)*safari/i.test(Ot())}function $e(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,l=1;e&&be(t)&&(a=t.offsetWidth>0&&Ze(n.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Ze(n.height)/t.offsetHeight||1);var d=Ue(t)?he(t):window,o=d.visualViewport,i=!Zt()&&r,u=(n.left+(i&&o?o.offsetLeft:0))/a,c=(n.top+(i&&o?o.offsetTop:0))/l,f=n.width/a,h=n.height/l;return{width:f,height:h,top:c,right:u+f,bottom:c+h,left:u,x:u,y:c}}function St(t){var e=$e(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function $t(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Tt(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function je(t){return he(t).getComputedStyle(t)}function Cr(t){return["table","td","th"].indexOf(Te(t))>=0}function Be(t){return((Ue(t)?t.ownerDocument:t.document)||window.document).documentElement}function gt(t){return Te(t)==="html"?t:t.assignedSlot||t.parentNode||(Tt(t)?t.host:null)||Be(t)}function Bt(t){return!be(t)||je(t).position==="fixed"?null:t.offsetParent}function Tr(t){var e=/firefox/i.test(Ot()),r=/Trident/i.test(Ot());if(r&&be(t)){var n=je(t);if(n.position==="fixed")return null}var a=gt(t);for(Tt(a)&&(a=a.host);be(a)&&["html","body"].indexOf(Te(a))<0;){var l=je(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function ut(t){for(var e=he(t),r=Bt(t);r&&Cr(r)&&je(r).position==="static";)r=Bt(r);return r&&(Te(r)==="html"||Te(r)==="body"&&je(r).position==="static")?e:r||Tr(t)||e}function Rt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ot(t,e,r){return qe(t,pt(e,r))}function Sr(t,e,r){var n=ot(t,e,r);return n>r?r:n}function er(){return{top:0,right:0,bottom:0,left:0}}function tr(t){return Object.assign({},er(),t)}function rr(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Rr=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,tr(typeof e!="number"?e:rr(e,dt))};function Dr(t){var e,r=t.state,n=t.name,a=t.options,l=r.elements.arrow,d=r.modifiersData.popperOffsets,o=Ce(r.placement),i=Rt(o),u=[pe,_e].indexOf(o)>=0,c=u?"height":"width";if(!(!l||!d)){var f=Rr(a.padding,r),h=St(l),g=i==="y"?ve:pe,C=i==="y"?we:_e,x=r.rects.reference[c]+r.rects.reference[i]-d[i]-r.rects.popper[c],S=d[i]-r.rects.reference[i],R=ut(l),k=R?i==="y"?R.clientHeight||0:R.clientWidth||0:0,P=x/2-S/2,w=f[g],j=k-h[c]-f[C],D=k/2-h[c]/2+P,W=ot(w,D,j),N=i;r.modifiersData[n]=(e={},e[N]=W,e.centerOffset=W-D,e)}}function jr(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||$t(e.elements.popper,a)&&(e.elements.arrow=a))}const Mr={name:"arrow",enabled:!0,phase:"main",fn:Dr,effect:jr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(t){return t.split("-")[1]}var Lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nr(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Ze(r*a)/a||0,y:Ze(n*a)/a||0}}function Ht(t){var e,r=t.popper,n=t.popperRect,a=t.placement,l=t.variation,d=t.offsets,o=t.position,i=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,h=d.x,g=h===void 0?0:h,C=d.y,x=C===void 0?0:C,S=typeof c=="function"?c({x:g,y:x}):{x:g,y:x};g=S.x,x=S.y;var R=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),P=pe,w=ve,j=window;if(u){var D=ut(r),W="clientHeight",N="clientWidth";if(D===he(r)&&(D=Be(r),je(D).position!=="static"&&o==="absolute"&&(W="scrollHeight",N="scrollWidth")),D=D,a===ve||(a===pe||a===_e)&&l===lt){w=we;var m=f&&D===j&&j.visualViewport?j.visualViewport.height:D[W];x-=m-n.height,x*=i?1:-1}if(a===pe||(a===ve||a===we)&&l===lt){P=_e;var p=f&&D===j&&j.visualViewport?j.visualViewport.width:D[N];g-=p-n.width,g*=i?1:-1}}var y=Object.assign({position:o},u&&Lr),T=c===!0?Nr({x:g,y:x},he(r)):{x:g,y:x};if(g=T.x,x=T.y,i){var M;return Object.assign({},y,(M={},M[w]=k?"0":"",M[P]=R?"0":"",M.transform=(j.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",M))}return Object.assign({},y,(e={},e[w]=k?x+"px":"",e[P]=R?g+"px":"",e.transform="",e))}function Br(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,l=r.adaptive,d=l===void 0?!0:l,o=r.roundOffsets,i=o===void 0?!0:o,u={placement:Ce(e.placement),variation:et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ht(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:d,roundOffsets:i})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ht(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Hr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Br,data:{}};var ft={passive:!0};function Ir(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,l=a===void 0?!0:a,d=n.resize,o=d===void 0?!0:d,i=he(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&u.forEach(function(c){c.addEventListener("scroll",r.update,ft)}),o&&i.addEventListener("resize",r.update,ft),function(){l&&u.forEach(function(c){c.removeEventListener("scroll",r.update,ft)}),o&&i.removeEventListener("resize",r.update,ft)}}const Wr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ir,data:{}};var zr={left:"right",right:"left",bottom:"top",top:"bottom"};function vt(t){return t.replace(/left|right|bottom|top/g,function(e){return zr[e]})}var Fr={start:"end",end:"start"};function It(t){return t.replace(/start|end/g,function(e){return Fr[e]})}function Dt(t){var e=he(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function jt(t){return $e(Be(t)).left+Dt(t).scrollLeft}function Vr(t,e){var r=he(t),n=Be(t),a=r.visualViewport,l=n.clientWidth,d=n.clientHeight,o=0,i=0;if(a){l=a.width,d=a.height;var u=Zt();(u||!u&&e==="fixed")&&(o=a.offsetLeft,i=a.offsetTop)}return{width:l,height:d,x:o+jt(t),y:i}}function qr(t){var e,r=Be(t),n=Dt(t),a=(e=t.ownerDocument)==null?void 0:e.body,l=qe(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=qe(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+jt(t),i=-n.scrollTop;return je(a||r).direction==="rtl"&&(o+=qe(r.clientWidth,a?a.clientWidth:0)-l),{width:l,height:d,x:o,y:i}}function Mt(t){var e=je(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ar(t){return["html","body","#document"].indexOf(Te(t))>=0?t.ownerDocument.body:be(t)&&Mt(t)?t:ar(gt(t))}function it(t,e){var r;e===void 0&&(e=[]);var n=ar(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),l=he(n),d=a?[l].concat(l.visualViewport||[],Mt(n)?n:[]):n,o=e.concat(d);return a?o:o.concat(it(gt(d)))}function Pt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ur(t,e){var r=$e(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Wt(t,e,r){return e===Kt?Pt(Vr(t,r)):Ue(e)?Ur(e,r):Pt(qr(Be(t)))}function Jr(t){var e=it(gt(t)),r=["absolute","fixed"].indexOf(je(t).position)>=0,n=r&&be(t)?ut(t):t;return Ue(n)?e.filter(function(a){return Ue(a)&&$t(a,n)&&Te(a)!=="body"}):[]}function Xr(t,e,r,n){var a=e==="clippingParents"?Jr(t):[].concat(e),l=[].concat(a,[r]),d=l[0],o=l.reduce(function(i,u){var c=Wt(t,u,n);return i.top=qe(c.top,i.top),i.right=pt(c.right,i.right),i.bottom=pt(c.bottom,i.bottom),i.left=qe(c.left,i.left),i},Wt(t,d,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function nr(t){var e=t.reference,r=t.element,n=t.placement,a=n?Ce(n):null,l=n?et(n):null,d=e.x+e.width/2-r.width/2,o=e.y+e.height/2-r.height/2,i;switch(a){case ve:i={x:d,y:e.y-r.height};break;case we:i={x:d,y:e.y+e.height};break;case _e:i={x:e.x+e.width,y:o};break;case pe:i={x:e.x-r.width,y:o};break;default:i={x:e.x,y:e.y}}var u=a?Rt(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(l){case Qe:i[u]=i[u]-(e[c]/2-r[c]/2);break;case lt:i[u]=i[u]+(e[c]/2-r[c]/2);break}}return i}function ct(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,l=r.strategy,d=l===void 0?t.strategy:l,o=r.boundary,i=o===void 0?vr:o,u=r.rootBoundary,c=u===void 0?Kt:u,f=r.elementContext,h=f===void 0?nt:f,g=r.altBoundary,C=g===void 0?!1:g,x=r.padding,S=x===void 0?0:x,R=tr(typeof S!="number"?S:rr(S,dt)),k=h===nt?pr:nt,P=t.rects.popper,w=t.elements[C?k:h],j=Xr(Ue(w)?w:w.contextElement||Be(t.elements.popper),i,c,d),D=$e(t.elements.reference),W=nr({reference:D,element:P,placement:a}),N=Pt(Object.assign({},P,W)),m=h===nt?N:D,p={top:j.top-m.top+R.top,bottom:m.bottom-j.bottom+R.bottom,left:j.left-m.left+R.left,right:m.right-j.right+R.right},y=t.modifiersData.offset;if(h===nt&&y){var T=y[a];Object.keys(p).forEach(function(M){var X=[_e,we].indexOf(M)>=0?1:-1,V=[ve,we].indexOf(M)>=0?"y":"x";p[M]+=T[V]*X})}return p}function Yr(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,l=r.rootBoundary,d=r.padding,o=r.flipVariations,i=r.allowedAutoPlacements,u=i===void 0?Qt:i,c=et(n),f=c?o?Nt:Nt.filter(function(C){return et(C)===c}):dt,h=f.filter(function(C){return u.indexOf(C)>=0});h.length===0&&(h=f);var g=h.reduce(function(C,x){return C[x]=ct(t,{placement:x,boundary:a,rootBoundary:l,padding:d})[Ce(x)],C},{});return Object.keys(g).sort(function(C,x){return g[C]-g[x]})}function Gr(t){if(Ce(t)===Ct)return[];var e=vt(t);return[It(t),e,It(e)]}function Kr(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,l=a===void 0?!0:a,d=r.altAxis,o=d===void 0?!0:d,i=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,h=r.altBoundary,g=r.flipVariations,C=g===void 0?!0:g,x=r.allowedAutoPlacements,S=e.options.placement,R=Ce(S),k=R===S,P=i||(k||!C?[vt(S)]:Gr(S)),w=[S].concat(P).reduce(function(oe,v){return oe.concat(Ce(v)===Ct?Yr(e,{placement:v,boundary:c,rootBoundary:f,padding:u,flipVariations:C,allowedAutoPlacements:x}):v)},[]),j=e.rects.reference,D=e.rects.popper,W=new Map,N=!0,m=w[0],p=0;p<w.length;p++){var y=w[p],T=Ce(y),M=et(y)===Qe,X=[ve,we].indexOf(T)>=0,V=X?"width":"height",z=ct(e,{placement:y,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),q=X?M?_e:pe:M?we:ve;j[V]>D[V]&&(q=vt(q));var ne=vt(q),$=[];if(l&&$.push(z[T]<=0),o&&$.push(z[q]<=0,z[ne]<=0),$.every(function(oe){return oe})){m=y,N=!1;break}W.set(y,$)}if(N)for(var ce=C?3:1,Q=function(v){var E=w.find(function(F){var A=W.get(F);if(A)return A.slice(0,v).every(function(de){return de})});if(E)return m=E,"break"},U=ce;U>0;U--){var ee=Q(U);if(ee==="break")break}e.placement!==m&&(e.modifiersData[n]._skip=!0,e.placement=m,e.reset=!0)}}const Qr={name:"flip",enabled:!0,phase:"main",fn:Kr,requiresIfExists:["offset"],data:{_skip:!1}};function zt(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Ft(t){return[ve,_e,we,pe].some(function(e){return t[e]>=0})}function Zr(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,l=e.modifiersData.preventOverflow,d=ct(e,{elementContext:"reference"}),o=ct(e,{altBoundary:!0}),i=zt(d,n),u=zt(o,a,l),c=Ft(i),f=Ft(u);e.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const $r={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function ea(t,e,r){var n=Ce(t),a=[pe,ve].indexOf(n)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,d=l[0],o=l[1];return d=d||0,o=(o||0)*a,[pe,_e].indexOf(n)>=0?{x:o,y:d}:{x:d,y:o}}function ta(t){var e=t.state,r=t.options,n=t.name,a=r.offset,l=a===void 0?[0,0]:a,d=Qt.reduce(function(c,f){return c[f]=ea(f,e.rects,l),c},{}),o=d[e.placement],i=o.x,u=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=d}const ra={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ta};function aa(t){var e=t.state,r=t.name;e.modifiersData[r]=nr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const na={name:"popperOffsets",enabled:!0,phase:"read",fn:aa,data:{}};function oa(t){return t==="x"?"y":"x"}function ia(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,l=a===void 0?!0:a,d=r.altAxis,o=d===void 0?!1:d,i=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,h=r.tether,g=h===void 0?!0:h,C=r.tetherOffset,x=C===void 0?0:C,S=ct(e,{boundary:i,rootBoundary:u,padding:f,altBoundary:c}),R=Ce(e.placement),k=et(e.placement),P=!k,w=Rt(R),j=oa(w),D=e.modifiersData.popperOffsets,W=e.rects.reference,N=e.rects.popper,m=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,p=typeof m=="number"?{mainAxis:m,altAxis:m}:Object.assign({mainAxis:0,altAxis:0},m),y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(D){if(l){var M,X=w==="y"?ve:pe,V=w==="y"?we:_e,z=w==="y"?"height":"width",q=D[w],ne=q+S[X],$=q-S[V],ce=g?-N[z]/2:0,Q=k===Qe?W[z]:N[z],U=k===Qe?-N[z]:-W[z],ee=e.elements.arrow,oe=g&&ee?St(ee):{width:0,height:0},v=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:er(),E=v[X],F=v[V],A=ot(0,W[z],oe[z]),de=P?W[z]/2-ce-A-E-p.mainAxis:Q-A-E-p.mainAxis,ue=P?-W[z]/2+ce+A+F+p.mainAxis:U+A+F+p.mainAxis,I=e.elements.arrow&&ut(e.elements.arrow),ie=I?w==="y"?I.clientTop||0:I.clientLeft||0:0,se=(M=y==null?void 0:y[w])!=null?M:0,Se=q+de-se-ie,He=q+ue-se,Oe=ot(g?pt(ne,Se):ne,q,g?qe($,He):$);D[w]=Oe,T[w]=Oe-q}if(o){var fe,ye=w==="x"?ve:pe,ht=w==="x"?we:_e,Re=D[j],Je=j==="y"?"height":"width",re=Re+S[ye],ke=Re-S[ht],Ee=[ve,pe].indexOf(R)!==-1,Ie=(fe=y==null?void 0:y[j])!=null?fe:0,We=Ee?re:Re-W[Je]-N[Je]-Ie+p.altAxis,xe=Ee?Re+W[Je]+N[Je]-Ie-p.altAxis:ke,Me=g&&Ee?Sr(We,Re,xe):ot(g?We:re,Re,g?xe:ke);D[j]=Me,T[j]=Me-Re}e.modifiersData[n]=T}}const sa={name:"preventOverflow",enabled:!0,phase:"main",fn:ia,requiresIfExists:["offset"]};function la(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ca(t){return t===he(t)||!be(t)?Dt(t):la(t)}function da(t){var e=t.getBoundingClientRect(),r=Ze(e.width)/t.offsetWidth||1,n=Ze(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ua(t,e,r){r===void 0&&(r=!1);var n=be(e),a=be(e)&&da(e),l=Be(e),d=$e(t,a,r),o={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(n||!n&&!r)&&((Te(e)!=="body"||Mt(l))&&(o=ca(e)),be(e)?(i=$e(e,!0),i.x+=e.clientLeft,i.y+=e.clientTop):l&&(i.x=jt(l))),{x:d.left+o.scrollLeft-i.x,y:d.top+o.scrollTop-i.y,width:d.width,height:d.height}}function fa(t){var e=new Map,r=new Set,n=[];t.forEach(function(l){e.set(l.name,l)});function a(l){r.add(l.name);var d=[].concat(l.requires||[],l.requiresIfExists||[]);d.forEach(function(o){if(!r.has(o)){var i=e.get(o);i&&a(i)}}),n.push(l)}return t.forEach(function(l){r.has(l.name)||a(l)}),n}function va(t){var e=fa(t);return Pr.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function pa(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ma(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Vt={placement:"bottom",modifiers:[],strategy:"absolute"};function qt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ga(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,a=e.defaultOptions,l=a===void 0?Vt:a;return function(o,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vt,l),modifiersData:{},elements:{reference:o,popper:i},attributes:{},styles:{}},f=[],h=!1,g={state:c,setOptions:function(R){var k=typeof R=="function"?R(c.options):R;x(),c.options=Object.assign({},l,c.options,k),c.scrollParents={reference:Ue(o)?it(o):o.contextElement?it(o.contextElement):[],popper:it(i)};var P=va(ma([].concat(n,c.options.modifiers)));return c.orderedModifiers=P.filter(function(w){return w.enabled}),C(),g.update()},forceUpdate:function(){if(!h){var R=c.elements,k=R.reference,P=R.popper;if(qt(k,P)){c.rects={reference:ua(k,ut(P),c.options.strategy==="fixed"),popper:St(P)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(p){return c.modifiersData[p.name]=Object.assign({},p.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var j=c.orderedModifiers[w],D=j.fn,W=j.options,N=W===void 0?{}:W,m=j.name;typeof D=="function"&&(c=D({state:c,options:N,name:m,instance:g})||c)}}}},update:pa(function(){return new Promise(function(S){g.forceUpdate(),S(c)})}),destroy:function(){x(),h=!0}};if(!qt(o,i))return g;g.setOptions(u).then(function(S){!h&&u.onFirstUpdate&&u.onFirstUpdate(S)});function C(){c.orderedModifiers.forEach(function(S){var R=S.name,k=S.options,P=k===void 0?{}:k,w=S.effect;if(typeof w=="function"){var j=w({state:c,name:R,instance:g,options:P}),D=function(){};f.push(j||D)}})}function x(){f.forEach(function(S){return S()}),f=[]}return g}}var ha=[Wr,na,Hr,Ar,ra,Qr,sa,Mr,$r],ya=ga({defaultModifiers:ha}),xa=J('<div class="popper svelte-1dn0eza"><!></div>');function ba(t,e){Le(e,!0);let r=te(e,"referenceEl",3,null),n=te(e,"placement",3,"bottom-start"),a=te(e,"offset",19,()=>[0,2]),l=te(e,"flip",3,!0),d=te(e,"preventOverflow",3,!0),o=ae(null),i=null;function u(){if(!r()||!s(o))return;const x=[];a()&&x.push({name:"offset",options:{offset:a()}}),l()&&x.push({name:"flip",options:{fallbackPlacements:["top-start","bottom-end","top-end"]}}),d()&&x.push({name:"preventOverflow",options:{padding:8}}),i=ya(r(),s(o),{placement:n(),modifiers:x})}function c(){i&&i.update()}mt(()=>(u(),()=>{i&&(i.destroy(),i=null)})),st(()=>(r()&&s(o)&&u(),()=>{i&&(i.destroy(),i=null)}));function f(){c()}var h={update:f},g=xa(),C=_(g);return lr(C,()=>e.children),O(g),Ke(g,x=>H(o,x),()=>s(o)),b(t,g),Ne(h)}var wa=J('<div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><!></div></div>');function _a(t,e){Le(e,!0);let r=te(e,"open",3,!1),n=te(e,"anchorEl",3,null),a=te(e,"id",3,""),l=te(e,"placement",3,"bottom-start"),d=te(e,"offset",19,()=>[0,2]),o=te(e,"flip",3,!0),i=te(e,"preventOverflow",3,!0),u=te(e,"onClose",3,()=>{}),c=ae(null),f=ae(null);function h(){u()()}function g(k){if(r()&&s(c)&&n()){const P=k.target;!s(c).contains(P)&&!n().contains(P)&&h()}}function C(k){k.key==="Escape"&&r()&&h()}mt(()=>{document.addEventListener("click",g,!0),document.addEventListener("keydown",C);const k=()=>{s(f)&&s(f).update()},P=()=>{s(f)&&s(f).update()};return window.addEventListener("resize",k),window.addEventListener("scroll",P,!0),()=>{document.removeEventListener("click",g,!0),document.removeEventListener("keydown",C),window.removeEventListener("resize",k),window.removeEventListener("scroll",P,!0)}});var x=Ge(),S=ge(x);{var R=k=>{Ke(ba(k,{get referenceEl(){return n()},get placement(){return l()},get offset(){return d()},get flip(){return o()},get preventOverflow(){return i()},children:w=>{var j=wa(),D=_(j),W=_(D);e.children(W),O(D),Ke(D,N=>H(c,N),()=>s(c)),O(j),Ke(j,N=>H(c,N),()=>s(c)),G(()=>{var N;_t(j,"id",a()),_t(D,"id",a()),cr(D,`min-width:${((N=n())==null?void 0:N.offsetWidth)??0}px`)}),b(w,j)},$$slots:{default:!0}}),w=>H(f,w,!0),()=>s(f))};Y(S,k=>{r()&&n()&&k(R)})}b(t,x),Ne()}var Oa=J("<!> <!>",1),Pa=J('<div class="mt-1 overflow-hidden rounded-lg border border-rc-gray-110 bg-rc-gray-930 shadow-inner-white-soft backdrop-blur-2xl" role="listbox"><!> <!></div>'),ka=J("<div><!> <!></div>");function xn(t,e){Le(e,!0);let r=te(e,"disabled",3,!1),n=te(e,"dropdownId",3,"copy-traces-dropdown"),a=ae(!1),l=ae(null),d=ae(null),o=ae(null);st(()=>{r()&&s(a)&&H(a,!1)});async function i(h){try{const g=h==="with-prompts"?e.getWithPromptsText():e.getWithoutPromptsText();await navigator.clipboard.writeText(g),H(d,h,!0),s(o)&&clearTimeout(s(o)),H(o,window.setTimeout(()=>{H(d,null),H(o,null)},2e3),!0)}catch(g){console.error("Failed to copy traces",g)}}var u=ka(),c=_(u);Ve(c,{variant:"secondary",size:"small",get disabled(){return r()},get"aria-expanded"(){return s(a)},"aria-haspopup":"listbox",get"aria-controls"(){return n()},onclick:h=>{h.stopPropagation(),H(a,!s(a))},class:"flex items-center gap-1",get el(){return s(l)},set el(h){H(l,h,!0)},children:(h,g)=>{var C=Oa(),x=ge(C);{var S=P=>{var w=Z("Copied traces (without prompts)");b(P,w)},R=P=>{var w=Ge(),j=ge(w);{var D=N=>{var m=Z("Copied traces (with prompts)");b(N,m)},W=N=>{var m=Z("Copy traces");b(N,m)};Y(j,N=>{s(d)==="with-prompts"?N(D):N(W,!1)},!0)}b(P,w)};Y(x,P=>{s(d)==="without-prompts"?P(S):P(R,!1)})}var k=L(x,2);{let P=B(()=>"size-5 text-rc-gray-400 transition-transform duration-200 "+(s(a)?"rotate-180":""));Et(k,{name:"chevron-down",get class(){return s(P)}})}b(h,C)},$$slots:{default:!0}});var f=L(c,2);_a(f,{get id(){return n()},get open(){return s(a)},onClose:()=>H(a,!1),get anchorEl(){return s(l)},placement:"bottom-end",offset:[0,1],children:g=>{var C=Pa(),x=_(C);Ve(x,{variant:"ghost",size:"small",role:"option",onclick:R=>{R.stopPropagation(),H(a,!1),i("without-prompts")},class:"w-full rounded-none border-b border-rc-gray-110 py-2 pr-3 text-left backdrop-blur-2xl hover:bg-rc-gray-700 focus:bg-rc-gray-400",children:(R,k)=>{me();var P=Z("Without prompts");b(R,P)},$$slots:{default:!0}});var S=L(x,2);Ve(S,{variant:"ghost",size:"small",role:"option",onclick:R=>{R.stopPropagation(),H(a,!1),i("with-prompts")},class:"w-full rounded-none py-2 pr-3 text-left backdrop-blur-2xl hover:bg-rc-gray-700 focus:bg-rc-gray-400",children:(R,k)=>{me();var P=Z("With prompts");b(R,P)},$$slots:{default:!0}}),O(C),b(g,C)},$$slots:{default:!0}}),O(u),b(t,u),Ne()}var Ea=J('<div><div class="h-full w-full"></div></div>');function Fe(t,e){Le(e,!0);let r=te(e,"language",3,"json"),n=te(e,"class",3,""),a=null,l=null,d=ae(null),o=ae(!1);mt(()=>{if(!s(d))return;Jt();let c=!1;return Gt(()=>import("./CdTjAjKm.js").then(f=>f.e),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(f=>{c||(Xt(f),a=f.editor.create(s(d),{value:e.value??"",language:r(),theme:"bosun-dark",lineNumbers:"off",readOnly:!0,automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,renderLineHighlight:"none",contextmenu:!1}),l=a.getModel(),H(o,!0))}).catch(f=>{console.error("ReadOnlyMonaco: failed to init",f)}),()=>{c=!0;const f=l;if(l=null,a){try{a.setModel(null)}catch{}a.dispose(),a=null}try{f==null||f.dispose()}catch{}}}),st(()=>{if(!a||!s(o))return;const c=e.value??"";a.getValue()!==c&&a.setValue(c)});var i=Ea(),u=_(i);Ke(u,c=>H(d,c),()=>s(d)),O(i),G(()=>Ae(i,1,`overflow-hidden rounded-md border border-rc-gray-700 ${n()}`)),b(t,i),Ne()}var Aa=(t,e)=>H(e,!0),Ca=J('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),Ta=J('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Sa=J("<!> <!>",1),Ra=J('<div class="flex flex-col gap-3"><!> <div class="flex flex-wrap items-center justify-between gap-2 text-sm text-rc-gray-200"><div class="flex flex-wrap items-center gap-x-4 gap-y-1"><div><span class="text-rc-gray-400">Timing:</span> </div> <div><span class="text-rc-gray-400">Response time:</span> </div> <div><span class="text-rc-gray-400">URL:</span> </div></div> <!></div> <div><!> <div class="mt-2 h-[55vh]"><!></div></div></div>'),Da=J('<button type="button" class="flex w-full items-baseline gap-2 truncate rounded-md bg-transparent px-2 py-1 text-left text-sm text-rc-gray-200 hover:bg-rc-gray-800/40"><!> <!> <span> </span></button> <!>',1);function bn(t,e){Le(e,!0);let r=ae(!1),n=ae("request");function a(p){try{if(typeof p=="string"){const y=p.trim();if(!y)return"";const T=JSON.parse(y);return JSON.stringify(T,null,2)}}catch{}try{return JSON.stringify(p??null,null,2)}catch{return String(p)}}function l(p){return new Date(p).toISOString()}function d(p){if(typeof p!="number"||!Number.isFinite(p))return null;const y=new Date(p);if(Number.isNaN(y.getTime()))return null;const T=String(y.getHours()).padStart(2,"0"),M=String(y.getMinutes()).padStart(2,"0"),X=String(y.getSeconds()).padStart(2,"0");return`${T}:${M}:${X}`}const o=B(()=>d(e.trace.createdAt)),i=B(()=>{if(e.trace.error!=null)return e.trace.error;if(!(e.trace.ok===!1||typeof e.trace.status=="number"&&e.trace.status>=400))return;const y=e.trace.response;return y&&typeof y=="object"&&"error"in y&&y.error!=null?y.error:{status:e.trace.status,ok:e.trace.ok}}),u=B(()=>s(i)!=null),c=B(()=>`API: ${e.trace.operationName}`),f=B(()=>e.trace.operationName),h=B(()=>typeof e.trace.createdAt!="number"?"—":l(e.trace.createdAt));async function g(){const p=a(e.trace);try{await navigator.clipboard.writeText(p)}catch(y){console.error("Failed to copy",y)}}const C=B(()=>a({method:e.trace.method,path:e.trace.path,baseUrl:e.trace.baseUrl,request:e.trace.request})),x=B(()=>a({status:e.trace.status,ok:e.trace.ok,response:e.trace.response,error:s(i)})),S=B(()=>s(i)!=null?a(s(i)):"");var R=Da(),k=ge(R);k.__click=[Aa,r];var P=_(k);{let p=B(()=>s(u)?"close":"checkmark"),y=B(()=>s(u)?"self-center text-red-400":"self-center text-rc-green-200");Et(P,{get name(){return s(p)},width:18,height:18,get class(){return s(y)}})}var w=L(P,2);{var j=p=>{var y=Ca(),T=_(y,!0);O(y),G(()=>K(T,s(o))),b(p,y)};Y(w,p=>{s(o)&&p(j)})}var D=L(w,2),W=_(D,!0);O(D),O(k);var N=L(k,2);{var m=p=>{At(p,{get title(){return s(c)},class:"!w-[85vw] !max-w-5xl",get open(){return s(r)},set open(T){H(r,T,!0)},children:T=>{var M=Ra(),X=_(M);{var V=I=>{var ie=Ta(),se=_(ie,!0);O(ie),G(()=>K(se,s(S))),b(I,ie)};Y(X,I=>{s(S)&&I(V)})}var z=L(X,2),q=_(z),ne=_(q),$=L(_(ne));O(ne);var ce=L(ne,2),Q=L(_(ce));O(ce);var U=L(ce,2),ee=L(_(U));O(U),O(q);var oe=L(q,2);Ve(oe,{variant:"secondary",size:"small",onclick:g,children:(I,ie)=>{me();var se=Z("Copy raw trace");b(I,se)},$$slots:{default:!0}}),O(z);var v=L(z,2),E=_(v);Yt(E,{get value(){return s(n)},ariaLabel:"API trace tabs",onChange:({value:I})=>H(n,I,!0),children:(I,ie)=>{var se=Sa(),Se=ge(se);ze(Se,{value:"request",class:"px-3",children:(Oe,fe)=>{me();var ye=Z("Request");b(Oe,ye)},$$slots:{default:!0}});var He=L(Se,2);ze(He,{value:"response",class:"px-3",children:(Oe,fe)=>{me();var ye=Z("Response");b(Oe,ye)},$$slots:{default:!0}}),b(I,se)},$$slots:{default:!0}});var F=L(E,2),A=_(F);{var de=I=>{Fe(I,{get value(){return s(C)},language:"json",class:"h-full"})},ue=I=>{Fe(I,{get value(){return s(x)},language:"json",class:"h-full"})};Y(A,I=>{s(n)==="request"?I(de):I(ue,!1)})}O(F),O(v),O(M),G(I=>{K($,` ${s(h)??""}`),K(Q,` ${I??""}`),K(ee,` ${e.trace.path??""}`)},[()=>typeof e.trace.durationMs=="number"?`${Math.round(e.trace.durationMs)}ms`:"—"]),b(T,M)},$$slots:{default:!0}})};Y(N,p=>{s(r)&&p(m)})}G(()=>{Ae(D,1,Ut(s(u)?"text-red-200":"")),K(W,s(f))}),b(t,R),Ne()}kt(["click"]);var ja=(t,e)=>H(e,!0),Ma=J('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),La=J('<div class="flex w-full justify-center"><div role="button" tabindex="0"><div class="flex flex-wrap items-baseline gap-x-2 gap-y-0"><!> <div class="min-w-0 break-words"> </div></div></div></div>'),Na=J('<div class="mr-2 mt-1 flex h-5 w-5 shrink-0 items-center justify-center rounded-sm bg-rc-green-700 text-sm uppercase text-rc-gray-100 backdrop-blur-md"> </div>'),Ba=(t,e)=>H(e,!0),Ha=J('<div class="mt-1 text-right text-xs text-rc-gray-200/70"> </div>'),Ia=(t,e)=>{t.stopPropagation(),e()},Wa=J('<button type="button"><!></button>'),za=(t,e)=>{t.stopPropagation(),e.onAnalyze(e.trace)},Fa=J('<button type="button" class="cursor-pointer border-0 bg-transparent text-nowrap pb-1 pl-3 pr-1 text-rc-gray-300 transition-colors hover:text-rc-green-200 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:text-rc-gray-400 disabled:hover:text-rc-gray-400">Analyze</button>'),Va=J('<div class="ml-0 flex flex-col items-start"><!> <!></div>'),qa=J('<!> <div role="button" tabindex="0"><div><div> </div> <!></div></div> <!>',1),Ua=J('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Ja=J('<div class="flex flex-col gap-3"><!> <div class="flex items-center justify-between gap-2 text-sm text-rc-gray-200"><div class="text-rc-gray-400"> </div> <!></div> <div class="h-[55vh]"><!></div></div>'),Xa=J("<div><!></div> <!>",1);function wn(t,e){Le(e,!0);let r=te(e,"analyzeDisabled",3,!1),n=ae(!1),a=ae("idle");function l(m){return m?m.split("/").at(-1)??m:""}function d(m){const p=l(m).trim().charAt(0);return p?p.toUpperCase():"?"}const o=B(()=>e.trace.role==="system"?"system":e.trace.eventName==="finished-main-streaming-step"||e.trace.eventName==="sent-message"?"agent":(e.trace.role==="user","user")),i=B(()=>e.trace.error!=null);function u(m){if(typeof m!="number"||!Number.isFinite(m))return null;const p=new Date(m);if(Number.isNaN(p.getTime()))return null;const y=String(p.getHours()).padStart(2,"0"),T=String(p.getMinutes()).padStart(2,"0"),M=String(p.getSeconds()).padStart(2,"0");return`${y}:${T}:${M}`}const c=B(()=>{var m;return u((m=e.trace)==null?void 0:m.createdAt)});function f(m){try{return JSON.stringify(m??null,null,2)}catch{return String(m)}}async function h(){try{await navigator.clipboard.writeText(f(e.trace))}catch(m){console.error("Failed to copy",m)}}function g(){return s(o)==="agent"&&e.trace.eventName!=="transfer-requested"&&!!(e.agentId&&e.agentId.trim())&&(e.trace.eventName==="finished-main-streaming-step"||e.trace.eventName==="sent-message")}function C(){return s(o)==="agent"&&e.trace.eventName!=="transfer-requested"&&!!(e.agentId&&e.agentId.trim())&&(e.trace.eventName==="finished-main-streaming-step"||e.trace.eventName==="sent-message")}function x(m,p){const y=(m??"").trim();if(!y)return"";const T=y.split(`
|
|
3
|
+
`).map(V=>V.trimEnd()).filter(V=>V.trim()!=="");if(!T.length)return"";const M=T[T.length-1],X=(p??"").trim();return X&&M.includes(X)&&T.pop(),T.join(`
|
|
4
|
+
`)}async function S(){try{H(a,"idle");const m=(e.agentId||"").trim();if(!m)throw new Error("Agent id is not available; cannot add test");const p=Lt.indexOf(e.trace);let y="";if(p!==-1)for(let V=p-1;V>=0;V--){const z=Lt[V];if(fr(z)&&typeof z.stringifiedConversation=="string"){const q=z.stringifiedConversation.trim();if(q){y=q;break}}}const T=(e.trace.content??"").trim(),X={pinned:"TRUE",assertion_type:"llm-rubric",assertion_value:"",conversation:x(y,T),expected_output:T,similarity_threshold:"60",timeout:"0",context:e.context||{}};await ur.tests.addTest.mutate({agent:m,seed:X,mergeContexts:!0}),H(a,"ok"),dr(`/edit/${encodeURIComponent(m)}/tests`),setTimeout(()=>H(a,"idle"),3e3)}catch(m){console.error("Failed to add test",m),H(a,"error"),setTimeout(()=>H(a,"idle"),4e3)}}var R=Xa(),k=ge(R);let P;var w=_(k);{var j=m=>{var p=La(),y=_(p);y.__click=[ja,n];var T=_(y),M=_(T);{var X=q=>{var ne=Ma(),$=_(ne,!0);O(ne),G(()=>K($,s(c))),b(q,ne)};Y(M,q=>{s(c)&&q(X)})}var V=L(M,2),z=_(V);O(V),O(T),O(y),O(p),G(()=>{Ae(y,1,`rounded-full border border-rc-gray-650 bg-rc-gray-800/40 px-4 py-2 text-sm text-rc-gray-100 ${s(i)?"border-red-500 bg-red-950/30 text-red-200":""}`),K(z,`Transfer requested: ${e.trace.content??""}`)}),b(m,p)},D=m=>{var p=qa(),y=ge(p);{var T=Q=>{var U=Na(),ee=_(U,!0);O(U),G((oe,v)=>{_t(U,"title",oe),K(ee,v)},[()=>l(e.agentId),()=>d(e.agentId)]),b(Q,U)};Y(y,Q=>{s(o)==="agent"&&e.agentId&&Q(T)})}var M=L(y,2);M.__click=[Ba,n];var X=_(M),V=_(X),z=_(V,!0);O(V);var q=L(V,2);{var ne=Q=>{var U=Ha(),ee=_(U,!0);O(U),G(()=>K(ee,s(c))),b(Q,U)};Y(q,Q=>{s(c)&&Q(ne)})}O(X),O(M);var $=L(M,2);{var ce=Q=>{var U=Va(),ee=_(U);{var oe=F=>{var A=Wa();A.__click=[Ia,S];var de=_(A);{var ue=ie=>{var se=Z("Added");b(ie,se)},I=ie=>{var se=Ge(),Se=ge(se);{var He=fe=>{var ye=Z("Failed");b(fe,ye)},Oe=fe=>{var ye=Z("Add test");b(fe,ye)};Y(Se,fe=>{s(a)==="error"?fe(He):fe(Oe,!1)},!0)}b(ie,se)};Y(de,ie=>{s(a)==="ok"?ie(ue):ie(I,!1)})}O(A),G(()=>Ae(A,1,`cursor-pointer border-0 bg-transparent text-nowrap pb-1 pl-3 pr-1 transition-colors focus:outline-none focus-visible:outline-none ${s(a)!=="idle"?"text-rc-gray-400":"text-rc-gray-300 hover:text-rc-green-200"}`)),b(F,A)};Y(ee,F=>{g()&&F(oe)})}var v=L(ee,2);{var E=F=>{var A=Fa();A.__click=[za,e],G(()=>A.disabled=r()),b(F,A)};Y(v,F=>{C()&&e.onAnalyze&&F(E)})}O(U),b(Q,U)};Y($,Q=>{(C()||g())&&Q(ce)})}G(()=>{Ae(M,1,`min-w-0 ${s(o)==="agent"?"max-w-[83%]":""}`),Ae(X,1,`rounded-lg ${s(o)==="system"?"justify-between whitespace-pre-line break-words border border-emerald-500 text-emerald-500":s(o)!=="user"?"w-full whitespace-pre-line break-words bg-rc-green-700 backdrop-blur-md":"max-w5/6 justify-self-end bg-rc-gray-700"} border-thin border-rc-gray-110 p-2 pt-1 text-rc-gray-100 ${s(i)?"border-red-500 bg-red-950/30 text-red-200":""}`),K(z,e.trace.content)}),b(m,p)};Y(w,m=>{e.trace.eventName==="transfer-requested"?m(j):m(D,!1)})}O(k);var W=L(k,2);{var N=m=>{{const p=T=>{var M=Ja(),X=_(M);{var V=U=>{var ee=Ua(),oe=_(ee,!0);O(ee),G(v=>K(oe,v),[()=>f(e.trace.error)]),b(U,ee)};Y(X,U=>{s(i)&&U(V)})}var z=L(X,2),q=_(z),ne=_(q);O(q);var $=L(q,2);Ve($,{variant:"secondary",size:"small",onclick:h,children:(U,ee)=>{me();var oe=Z("Copy raw trace");b(U,oe)},$$slots:{default:!0}}),O(z);var ce=L(z,2),Q=_(ce);{let U=B(()=>f(e.trace));Fe(Q,{get value(){return s(U)},language:"json",class:"h-full"})}O(ce),O(M),G(()=>K(ne,`${e.trace.role??""} • ${e.trace.medium??""}`)),b(T,M)};let y=B(()=>`Conversation: ${e.trace.eventName}`);At(m,{get title(){return s(y)},class:"!w-[80vw] !max-w-4xl",get open(){return s(n)},set open(T){H(n,T,!0)},children:p,$$slots:{default:!0}})}};Y(W,m=>{s(n)&&m(N)})}G(m=>P=Ae(k,1,"group mb-2 flex w-full items-center",null,P,m),[()=>({"justify-end":s(o)==="user"||s(o)==="system"})]),b(t,R),Ne()}kt(["click"]);var Ya=J('<div><div class="h-full w-full"></div></div>');function Ga(t,e){Le(e,!0);let r=te(e,"language",3,"markdown"),n=te(e,"class",3,""),a=ae(null),l=null,d=null,o=null,i=ae(!1);mt(()=>{if(!s(a))return;Jt();let f=!1;return Gt(()=>import("./CdTjAjKm.js").then(h=>h.e),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(h=>{if(f)return;Xt(h),d=h,l=h.editor.createDiffEditor(s(a),{theme:"bosun-dark",readOnly:!0,automaticLayout:!0,lineNumbers:"off",renderSideBySide:!0,renderIndicators:!0,ignoreTrimWhitespace:!1,diffWordWrap:"on",diffAlgorithm:"advanced",maxComputationTime:2e4,renderMarginRevertIcon:!1,renderGutterMenu:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,renderLineHighlight:"none",contextmenu:!1,originalEditable:!1});const g=h.editor.createModel(e.original??"",r()),C=h.editor.createModel(e.modified??"",r());o={original:g,modified:C},l.setModel({original:g,modified:C}),H(i,!0)}).catch(h=>{console.error("ReadOnlyMonacoDiff: failed to init",h)}),()=>{if(f=!0,l){try{l.setModel(null)}catch{}l.dispose(),l=null}o&&(o.original.dispose(),o.modified.dispose(),o=null),d=null}}),st(()=>{if(!l||!o||!s(i))return;const f=e.original??"",h=e.modified??"";o.original.getValue()!==f&&o.original.setValue(f),o.modified.getValue()!==h&&o.modified.setValue(h)}),st(()=>{if(!l||!o||!s(i)||!d)return;const f=r()||"markdown";o.original.getLanguageId()!==f&&d.editor.setModelLanguage(o.original,f),o.modified.getLanguageId()!==f&&d.editor.setModelLanguage(o.modified,f)});var u=Ya(),c=_(u);Ke(c,f=>H(a,f),()=>s(a)),O(u),G(()=>Ae(u,1,`overflow-hidden rounded-md border border-rc-gray-700 ${n()}`)),b(t,u),Ne()}var Ka=(t,e)=>H(e,!0),Qa=J('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),Za=J("<span><!></span>"),$a=J('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),en=J("<!> <!> <!> <!> <!>",1),tn=J('<div class="flex h-full flex-col gap-2"><div class="grid grid-cols-2 gap-2"><div class="flex items-center justify-start"><!></div> <div class="flex items-center justify-end"><!></div></div> <!></div>'),rn=J('<div class="flex flex-col gap-3"><!> <div class="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-rc-gray-200"><div><span class="text-rc-gray-400">Timing:</span> </div> <div><span class="text-rc-gray-400">Response time:</span> —</div> <div><span class="text-rc-gray-400">Model:</span> </div></div> <div><!> <div class="mt-2 h-[55vh]"><!></div></div></div>'),an=J('<button type="button" class="flex w-full items-baseline gap-2 truncate rounded-md bg-transparent px-2 py-1 text-left text-sm text-rc-gray-200 hover:bg-rc-gray-800/40"><!> <!> <span> </span> <!></button> <!>',1);function _n(t,e){Le(e,!0);let r=ae(!1),n=ae("response");function a(v){return v&&typeof v.renderedPrompt=="string"?v.renderedPrompt:null}function l(v,E){if(v===E)return v.length;const F=Math.min(v.length,E.length);for(let A=0;A<F;A++)if(v.charCodeAt(A)!==E.charCodeAt(A))return A;return F}function d(v,E){const F=Math.max(v.length,E.length);if(F===0)return 100;const A=l(v,E);return Math.floor(A/F*100)}function o(v){const E=new WeakSet;try{return JSON.stringify(v,(F,A)=>{if(typeof A=="bigint")return A.toString();if(A instanceof Error)return{name:A.name,message:A.message,stack:A.stack};if(typeof A=="object"&&A!==null){if(E.has(A))return"[Circular]";E.add(A)}return A},2)??""}catch{return String(v)}}function i(v){if(v==null)return"";if(typeof v=="string"){const E=v.trim();if(!E)return"";try{return JSON.stringify(JSON.parse(E),null,2)}catch{return v}}return o(v)}function u(v){return new Date(v).toISOString()}function c(v){if(typeof v!="number"||!Number.isFinite(v))return null;const E=new Date(v);if(Number.isNaN(E.getTime()))return null;const F=String(E.getHours()).padStart(2,"0"),A=String(E.getMinutes()).padStart(2,"0"),de=String(E.getSeconds()).padStart(2,"0");return`${F}:${A}:${de}`}const f=B(()=>c(e.trace.createdAt)),h=B(()=>e.trace.error!=null),g=B(()=>`AI: ${e.trace.name}`),C=B(()=>e.trace.name),x=B(()=>{if(e.trace.name!=="main")return null;const v=a(e.trace),E=a(e.compareTrace);return v==null||E==null?null:d(v,E)}),S=B(()=>i(e.trace.response)),R=B(()=>{const v=e.trace.response;if(typeof v!="string")return"json";try{return JSON.parse(v),"json"}catch{return"text"}}),k=B(()=>e.trace.stringifiedConversation??""),P=B(()=>i(e.trace.renderedPrompt)),w=B(()=>i(e.trace.receivedPrompt)),j=B(()=>i(e.trace.receivedContext)),D=B(()=>i(e.trace.schema)),W=B(()=>e.trace.error?o(e.trace.error):"");function N(v){return v==null?"":typeof v=="string"?v:o(v)}const m=B(()=>N(e.trace.receivedPrompt)),p=B(()=>N(e.trace.renderedPrompt));let y=ae(null),T=ae(null);async function M(v){try{const E=v==="raw"?s(m):s(p);await navigator.clipboard.writeText(E),H(y,v,!0),s(T)&&clearTimeout(s(T)),H(T,window.setTimeout(()=>{H(y,null),H(T,null)},2e3),!0)}catch(E){console.error("Failed to copy prompt",E)}}var X=an(),V=ge(X);V.__click=[Ka,r];var z=_(V);{let v=B(()=>s(h)?"close":"checkmark"),E=B(()=>s(h)?"self-center text-red-400":"self-center text-rc-green-200");Et(z,{get name(){return s(v)},width:18,height:18,get class(){return s(E)}})}var q=L(z,2);{var ne=v=>{var E=Qa(),F=_(E,!0);O(E),G(()=>K(F,s(f))),b(v,E)};Y(q,v=>{s(f)&&v(ne)})}var $=L(q,2),ce=_($);O($);var Q=L($,2);{var U=v=>{var E=Za(),F=_(E);{var A=ue=>{var I=Z();G(()=>K(I,`${s(x)??""}% cached - move dynamic parts of prompt to the bottom`)),b(ue,I)},de=ue=>{var I=Z();G(()=>K(I,`${s(x)??""}%`)),b(ue,I)};Y(F,ue=>{s(x)<80?ue(A):ue(de,!1)})}O(E),G(()=>Ae(E,1,`shrink-0 text-xs ${s(x)<80?"text-red-200":"text-rc-gray-400"}`)),b(v,E)};Y(Q,v=>{s(x)!=null&&v(U)})}O(V);var ee=L(V,2);{var oe=v=>{At(v,{get title(){return s(g)},class:"!w-[85vw] !max-w-5xl",get open(){return s(r)},set open(F){H(r,F,!0)},children:F=>{var A=rn(),de=_(A);{var ue=re=>{var ke=$a(),Ee=_(ke,!0);O(ke),G(()=>K(Ee,s(W))),b(re,ke)};Y(de,re=>{s(W)&&re(ue)})}var I=L(de,2),ie=_(I),se=L(_(ie));O(ie);var Se=L(ie,4),He=L(_(Se));O(Se),O(I);var Oe=L(I,2),fe=_(Oe);Yt(fe,{get value(){return s(n)},ariaLabel:"Step trace tabs",onChange:({value:re})=>H(n,re,!0),children:(re,ke)=>{var Ee=en(),Ie=ge(Ee);ze(Ie,{value:"response",class:"px-3",children:(Pe,Xe)=>{me();var le=Z("Response");b(Pe,le)},$$slots:{default:!0}});var We=L(Ie,2);ze(We,{value:"conversation",class:"px-3",children:(Pe,Xe)=>{me();var le=Z("Conversation");b(Pe,le)},$$slots:{default:!0}});var xe=L(We,2);ze(xe,{value:"prompt",class:"px-3",children:(Pe,Xe)=>{me();var le=Z("Prompt");b(Pe,le)},$$slots:{default:!0}});var Me=L(xe,2);ze(Me,{value:"context",class:"px-3",children:(Pe,Xe)=>{me();var le=Z("Context");b(Pe,le)},$$slots:{default:!0}});var yt=L(Me,2);ze(yt,{value:"schema",class:"px-3",children:(Pe,Xe)=>{me();var le=Z("Schema");b(Pe,le)},$$slots:{default:!0}}),b(re,Ee)},$$slots:{default:!0}});var ye=L(fe,2),ht=_(ye);{var Re=re=>{Fe(re,{get value(){return s(S)},get language(){return s(R)},class:"h-full"})},Je=re=>{var ke=Ge(),Ee=ge(ke);{var Ie=xe=>{Fe(xe,{get value(){return s(k)},language:"text",class:"h-full"})},We=xe=>{var Me=Ge(),yt=ge(Me);{var Pe=le=>{var Ye=tn(),tt=_(Ye),rt=_(tt),xt=_(rt);{let bt=B(()=>!s(m).trim());Ve(xt,{variant:"secondary",size:"small",get disabled(){return s(bt)},onclick:()=>M("raw"),children:(wt,sr)=>{me();var at=Z();G(()=>K(at,s(y)==="raw"?"Copied raw prompt":"Copy raw prompt")),b(wt,at)},$$slots:{default:!0}})}O(rt);var De=L(rt,2),or=_(De);{let bt=B(()=>!s(p).trim());Ve(or,{variant:"secondary",size:"small",get disabled(){return s(bt)},onclick:()=>M("rendered"),children:(wt,sr)=>{me();var at=Z();G(()=>K(at,s(y)==="rendered"?"Copied rendered prompt":"Copy rendered prompt")),b(wt,at)},$$slots:{default:!0}})}O(De),O(tt);var ir=L(tt,2);Ga(ir,{get original(){return s(w)},get modified(){return s(P)},language:"markdown",class:"min-h-0 flex-1"}),O(Ye),b(le,Ye)},Xe=le=>{var Ye=Ge(),tt=ge(Ye);{var rt=De=>{Fe(De,{get value(){return s(j)},language:"json",class:"h-full"})},xt=De=>{Fe(De,{get value(){return s(D)},language:"json",class:"h-full"})};Y(tt,De=>{s(n)==="context"?De(rt):De(xt,!1)},!0)}b(le,Ye)};Y(yt,le=>{s(n)==="prompt"?le(Pe):le(Xe,!1)},!0)}b(xe,Me)};Y(Ee,xe=>{s(n)==="conversation"?xe(Ie):xe(We,!1)},!0)}b(re,ke)};Y(ht,re=>{s(n)==="response"?re(Re):re(Je,!1)})}O(ye),O(Oe),O(A),G(re=>{K(se,` ${re??""}`),K(He,` ${e.trace.model??"—"??""}`)},[()=>typeof e.trace.createdAt=="number"?u(e.trace.createdAt):"—"]),b(F,A)},$$slots:{default:!0}})};Y(ee,v=>{s(r)&&v(oe)})}G(()=>{Ae($,1,Ut(s(h)?"text-red-200":"")),K(ce,`AI: ${s(C)??""}`)}),b(t,X),Ne()}kt(["click"]);export{xn as C,_a as D,bn as a,_n as b,wn as c};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var je=Object.defineProperty;var ge=t=>{throw TypeError(t)};var Ue=(t,e,n)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ce=(t,e,n)=>Ue(t,typeof e!="symbol"?e+"":e,n),le=(t,e,n)=>e.has(t)||ge("Cannot "+n);var s=(t,e,n)=>(le(t,e,"read from private field"),n?n.call(t):e.get(t)),u=(t,e,n)=>e.has(t)?ge("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),o=(t,e,n,i)=>(le(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),v=(t,e,n)=>(le(t,e,"access private method"),n);import{aj as Ye,h as Se,ak as Ae,v as $e,q as H,al as me,I as Re,am as N,y as O,an as ze,a2 as X,J as Ce,K as De,ao as pe,N as He,ap as R,aq as G,ar as Z,as as ne,at as ye,au as J,av as Ee,aw as We,ax as ie,B as g,ay as Ne,az as Ge,aA as U,P as ae,n as Je,O as Ke,aB as we,aC as Qe,L as Oe,aD as Xe,aE as Ze,aF as et,aG as ue,aH as Me,aI as tt,aJ as st,aK as fe,Q as K,aL as nt,aM as it,aN as at,aO as rt,aP as ke,aQ as ot,aR as Q,aS as ct,p as lt,aT as xe,aU as ut,aV as ft,c as ht,w as Te,aW as dt,aX as _t,aY as pt,U as vt,W as ee,aZ as bt,a_ as W,u as gt,a$ as mt,b0 as yt,b1 as Fe,a5 as Et,m as wt,ai as kt,b2 as Tt,ae as St,b3 as At,ad as Rt,b4 as Ct,x as Dt}from"./Cp_hX0eh.js";function Nt(t){let e=0,n=Ae(0),i;return()=>{Ye()&&(Se(n),$e(()=>(e===0&&(i=H(()=>t(()=>me(n)))),e+=1,()=>{Re(()=>{e-=1,e===0&&(i==null||i(),i=void 0,me(n))})})))}}var Ot=Oe|Xe|Ze;function Mt(t,e,n){new xt(t,e,n)}var y,b,Y,k,P,T,E,_,S,C,M,L,x,V,F,re,oe,h,Ie,Pe,he,te,se,de;class xt{constructor(e,n,i){u(this,h);ce(this,"parent");u(this,y,!1);u(this,b);u(this,Y,O?N:null);u(this,k);u(this,P);u(this,T);u(this,E,null);u(this,_,null);u(this,S,null);u(this,C,null);u(this,M,null);u(this,L,0);u(this,x,0);u(this,V,!1);u(this,F,null);u(this,re,()=>{s(this,F)&&ze(s(this,F),s(this,L))});u(this,oe,Nt(()=>(o(this,F,Ae(s(this,L))),()=>{o(this,F,null)})));o(this,b,e),o(this,k,n),o(this,P,i),this.parent=X.b,o(this,y,!!s(this,k).pending),o(this,T,Ce(()=>{if(X.b=this,O){const a=s(this,Y);De(),a.nodeType===pe&&a.data===He?v(this,h,Pe).call(this):v(this,h,Ie).call(this)}else{var r=v(this,h,he).call(this);try{o(this,E,R(()=>i(r)))}catch(a){this.error(a)}s(this,x)>0?v(this,h,se).call(this):o(this,y,!1)}return()=>{var a;(a=s(this,M))==null||a.remove()}},Ot)),O&&o(this,b,N)}is_pending(){return s(this,y)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!s(this,k).pending}update_pending_count(e){v(this,h,de).call(this,e),o(this,L,s(this,L)+e),Ge.add(s(this,re))}get_effect_pending(){return s(this,oe).call(this),Se(s(this,F))}error(e){var n=s(this,k).onerror;let i=s(this,k).failed;if(s(this,V)||!n&&!i)throw e;s(this,E)&&(U(s(this,E)),o(this,E,null)),s(this,_)&&(U(s(this,_)),o(this,_,null)),s(this,S)&&(U(s(this,S)),o(this,S,null)),O&&(ae(s(this,Y)),Je(),ae(Ke()));var r=!1,a=!1;const l=()=>{if(r){et();return}r=!0,a&&Qe(),G.ensure(),o(this,L,0),s(this,S)!==null&&Z(s(this,S),()=>{o(this,S,null)}),o(this,y,this.has_pending_snippet()),o(this,E,v(this,h,te).call(this,()=>(o(this,V,!1),R(()=>s(this,P).call(this,s(this,b)))))),s(this,x)>0?v(this,h,se).call(this):o(this,y,!1)};var c=ie;try{J(null),a=!0,n==null||n(e,l),a=!1}catch(f){we(f,s(this,T)&&s(this,T).parent)}finally{J(c)}i&&Re(()=>{o(this,S,v(this,h,te).call(this,()=>{G.ensure(),o(this,V,!0);try{return R(()=>{i(s(this,b),()=>e,()=>l)})}catch(f){return we(f,s(this,T).parent),null}finally{o(this,V,!1)}}))})}}y=new WeakMap,b=new WeakMap,Y=new WeakMap,k=new WeakMap,P=new WeakMap,T=new WeakMap,E=new WeakMap,_=new WeakMap,S=new WeakMap,C=new WeakMap,M=new WeakMap,L=new WeakMap,x=new WeakMap,V=new WeakMap,F=new WeakMap,re=new WeakMap,oe=new WeakMap,h=new WeakSet,Ie=function(){try{o(this,E,R(()=>s(this,P).call(this,s(this,b))))}catch(e){this.error(e)}o(this,y,!1)},Pe=function(){const e=s(this,k).pending;e&&(o(this,_,R(()=>e(s(this,b)))),G.enqueue(()=>{var n=v(this,h,he).call(this);o(this,E,v(this,h,te).call(this,()=>(G.ensure(),R(()=>s(this,P).call(this,n))))),s(this,x)>0?v(this,h,se).call(this):(Z(s(this,_),()=>{o(this,_,null)}),o(this,y,!1))}))},he=function(){var e=s(this,b);return s(this,y)&&(o(this,M,ne()),s(this,b).before(s(this,M)),e=s(this,M)),e},te=function(e){var n=X,i=ie,r=g;ye(s(this,T)),J(s(this,T)),Ee(s(this,T).ctx);try{return e()}catch(a){return We(a),null}finally{ye(n),J(i),Ee(r)}},se=function(){const e=s(this,k).pending;s(this,E)!==null&&(o(this,C,document.createDocumentFragment()),s(this,C).append(s(this,M)),Ne(s(this,E),s(this,C))),s(this,_)===null&&o(this,_,R(()=>e(s(this,b))))},de=function(e){var n;if(!this.has_pending_snippet()){this.parent&&v(n=this.parent,h,de).call(n,e);return}o(this,x,s(this,x)+e),s(this,x)===0&&(o(this,y,!1),s(this,_)&&Z(s(this,_),()=>{o(this,_,null)}),s(this,C)&&(s(this,b).before(s(this,C)),o(this,C,null)))};function Qt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Ft=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xt(t){return Ft.includes(t)}const It={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Zt(t){return t=t.toLowerCase(),It[t]??t}const Pt=["touchstart","touchmove"];function Lt(t){return Pt.includes(t)}function es(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=n,t.nodeValue=n+"")}function Le(t,e){return Ve(t,e)}function Vt(t,e){ue(),e.intro=e.intro??!1;const n=e.target,i=O,r=N;try{for(var a=Me(n);a&&(a.nodeType!==pe||a.data!==tt);)a=st(a);if(!a)throw fe;K(!0),ae(a);const l=Ve(t,{...e,anchor:a});return K(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw l;return l!==fe&&console.warn("Failed to hydrate: ",l),e.recover===!1&&nt(),ue(),it(n),K(!1),Le(t,e)}finally{K(i),ae(r),ct()}}const B=new Map;function Ve(t,{target:e,anchor:n,props:i={},events:r,context:a,intro:l=!0}){ue();var c=new Set,f=I=>{for(var m=0;m<I.length;m++){var p=I[m];if(!c.has(p)){c.add(p);var j=Lt(p);e.addEventListener(p,Q,{passive:j});var be=B.get(p);be===void 0?(document.addEventListener(p,Q,{passive:j}),B.set(p,1)):B.set(p,be+1)}}};f(at(rt)),ke.add(f);var d=void 0,qe=ot(()=>{var I=n??e.appendChild(ne());return Mt(I,{pending:()=>{}},m=>{if(a){lt({});var p=g;p.c=a}if(r&&(i.$$events=r),O&&xe(m,null),d=t(m,i)||{},O&&(X.nodes_end=N,N===null||N.nodeType!==pe||N.data!==ut))throw ft(),fe;a&&ht()}),()=>{var j;for(var m of c){e.removeEventListener(m,Q);var p=B.get(m);--p===0?(document.removeEventListener(m,Q),B.delete(m)):B.set(m,p)}ke.delete(f),I!==n&&((j=I.parentNode)==null||j.removeChild(I))}});return _e.set(d,qe),d}let _e=new WeakMap;function Bt(t,e){const n=_e.get(t);return n?(_e.delete(t),n(e)):Promise.resolve()}var D,A,w,$,z;class qt{constructor(e,n=!0){ce(this,"anchor");u(this,D,new Map);u(this,A,new Map);u(this,w,new Map);u(this,$,!0);u(this,z,()=>{var e=Te;if(s(this,D).has(e)){var n=s(this,D).get(e),i=s(this,A).get(n);if(i)dt(i);else{var r=s(this,w).get(n);r&&(s(this,A).set(n,r.effect),s(this,w).delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[a,l]of s(this,D)){if(s(this,D).delete(a),a===e)break;const c=s(this,w).get(l);c&&(U(c.effect),s(this,w).delete(l))}for(const[a,l]of s(this,A)){if(a===n)continue;const c=()=>{if(Array.from(s(this,D).values()).includes(a)){var d=document.createDocumentFragment();Ne(l,d),d.append(ne()),s(this,w).set(a,{effect:l,fragment:d})}else U(l);s(this,A).delete(a)};s(this,$)||!i?Z(l,c,!1):c()}}});this.anchor=e,o(this,$,n)}ensure(e,n){var i=Te,r=_t();if(n&&!s(this,A).has(e)&&!s(this,w).has(e))if(r){var a=document.createDocumentFragment(),l=ne();a.append(l),s(this,w).set(e,{effect:R(()=>n(l)),fragment:a})}else s(this,A).set(e,R(()=>n(this.anchor)));if(s(this,D).set(i,e),r){for(const[c,f]of s(this,A))c===e?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[c,f]of s(this,w))c===e?i.skipped_effects.delete(f.effect):i.skipped_effects.add(f.effect);i.add_callback(s(this,z))}else O&&(this.anchor=N),s(this,z).call(this)}}D=new WeakMap,A=new WeakMap,w=new WeakMap,$=new WeakMap,z=new WeakMap;function ts(t,e,...n){var i=new qt(t);Ce(()=>{const r=e()??null;i.ensure(r,r&&(a=>r(a,...n)))},Oe)}function jt(t){return(e,...n)=>{var f;var i=t(...n),r;if(O)r=N,De();else{var a=i.render().trim(),l=pt(a);r=Me(l),e.before(r)}const c=(f=i.setup)==null?void 0:f.call(i,r);xe(r,r),typeof c=="function"&&vt(c)}}function Ut(t,e,n){if(t==null)return e(void 0),ee;const i=H(()=>t.subscribe(e,n));return i.unsubscribe?()=>i.unsubscribe():i}const q=[];function ss(t,e=ee){let n=null;const i=new Set;function r(c){if(bt(t,c)&&(t=c,n)){const f=!q.length;for(const d of i)d[1](),q.push(d,t);if(f){for(let d=0;d<q.length;d+=2)q[d][0](q[d+1]);q.length=0}}}function a(c){r(c(t))}function l(c,f=ee){const d=[c,f];return i.add(d),i.size===1&&(n=e(r,a)||ee),c(t),()=>{i.delete(d),i.size===0&&n&&(n(),n=null)}}return{set:r,update:a,subscribe:l}}function ns(t){let e;return Ut(t,n=>e=n)(),e}function Yt(){var t;return ie===null&&mt(),((t=ie).ac??(t.ac=new AbortController)).signal}function Be(t){g===null&&W(),Et&&g.l!==null?ve(g).m.push(t):gt(()=>{const e=H(t);if(typeof e=="function")return e})}function $t(t){g===null&&W(),Be(()=>()=>H(t))}function zt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function Ht(){const t=g;return t===null&&W(),(e,n,i)=>{var a;const r=(a=t.s.$$events)==null?void 0:a[e];if(r){const l=yt(r)?r.slice():[r],c=zt(e,n,i);for(const f of l)f.call(t.x,c);return!c.defaultPrevented}return!0}}function Wt(t){g===null&&W(),g.l===null&&Fe(),ve(g).b.push(t)}function Gt(t){g===null&&W(),g.l===null&&Fe(),ve(g).a.push(t)}function ve(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const is=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:Gt,beforeUpdate:Wt,createContext:wt,createEventDispatcher:Ht,createRawSnippet:jt,flushSync:kt,getAbortSignal:Yt,getAllContexts:Tt,getContext:St,hasContext:At,hydrate:Vt,mount:Le,onDestroy:$t,onMount:Be,setContext:Rt,settled:Ct,tick:Dt,unmount:Bt,untrack:H},Symbol.toStringTag,{value:"Module"}));export{qt as B,ts as a,Ut as b,$t as c,Xt as d,Nt as e,is as f,ns as g,Vt as h,Qt as i,Le as m,Zt as n,Be as o,es as s,Bt as u,ss as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.ByrdmeSo.js","../chunks/CWj6FrbW.js","../chunks/tLFXBP7P.js","../chunks/Cp_hX0eh.js","../chunks/_HWrJCgx.js","../chunks/BMwJcaLS.js","../chunks/CYkx2jgw.js","../chunks/BHkx8tAH.js","../chunks/BUApaBEI.js","../assets/0.XjKA4GPF.css","../nodes/1.VLeq38lN.js","../chunks/C0pV4x1v.js","../chunks/Y0ymTIHd.js","../nodes/2.DX9U9zLg.js","../chunks/CZ6iREyA.js","../chunks/ri5tqg4N.js","../chunks/BbaH2eDw.js","../chunks/Cv6CwVfk.js","../assets/bosun-theme.tn0RQdqM.css","../chunks/C0sQKHpE.js","../chunks/DiFAgw_s.js","../chunks/DOMF1VtZ.js","../chunks/C0mQlu7J.js","../chunks/DRaGXt8e.js","../assets/Tab.jOjMVh6j.css","../chunks/CojkI8AD.js","../chunks/BEJ5fU19.js","../chunks/B3K88SyC.js","../assets/AgentSidebar.QeNZJtLq.css","../chunks/CbCJfhin.js","../chunks/7wcu2ga1.js","../assets/2.DOE0DQ6H.css","../nodes/3.Bh8il5iy.js","../chunks/DrMdBz9b.js","../assets/Input.NBh3BL7E.css","../chunks/W8E9z4jl.js","../assets/3.Dzh7_Q8n.css","../nodes/4.CtzHYc6x.js","../assets/4.CZVw96CJ.css","../nodes/5.B4dlomkV.js","../nodes/6.CPYhLc46.js","../chunks/hp4PFHFv.js","../nodes/7.CBPrYfFp.js","../chunks/t1v2-usS.js","../assets/ChatStepTrace.NFJFjHv0.css","../assets/7.DlSPCZj0.css","../nodes/8.4NTWYv4c.js","../assets/8.DoLA3Mkm.css","../nodes/9.BVI-eEdV.js","../nodes/10.BHSGZYEC.js","../nodes/11.CZ_7M4AF.js","../nodes/12.DRr2l3NZ.js","../nodes/13.DetV1tDO.js","../nodes/14.I-eiMWQu.js","../assets/14.C5apk4jm.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F=r=>{throw TypeError(r)};var H=(r,t,e)=>t.has(r)||F("Cannot "+e);var n=(r,t,e)=>(H(r,t,"read from private field"),e?e.call(r):t.get(r)),G=(r,t,e)=>t.has(r)?F("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),W=(r,t,e,i)=>(H(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{c as L,_ as o}from"../chunks/ri5tqg4N.js";import{i as k,a9 as ot,h as l,ai as nt,V as it,X as _t,p as mt,C as ut,u as ct,e as X,x as dt,f as J,a as y,s as lt,b as v,c as ft,T as p,l as T,d as vt,r as gt,k as ht,t as Et}from"../chunks/Cp_hX0eh.js";import{h as Pt,m as yt,u as Rt,o as Ot,s as pt}from"../chunks/tLFXBP7P.js";import"../chunks/CWj6FrbW.js";import{i as x}from"../chunks/_HWrJCgx.js";import{b as V}from"../chunks/C0mQlu7J.js";import{p as w}from"../chunks/BbaH2eDw.js";function bt(r){return class extends At{constructor(t){super({component:r,...t})}}}var g,m;class At{constructor(t){G(this,g);G(this,m);var b;var e=new Map,i=(a,s)=>{var f=_t(s,!1,!1);return e.set(a,f),f};const u=new Proxy({...t.props||{},$$events:{}},{get(a,s){return l(e.get(s)??i(s,Reflect.get(a,s)))},has(a,s){return s===ot?!0:(l(e.get(s)??i(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,f){return k(e.get(s)??i(s,f),f),Reflect.set(a,s,f)}});W(this,m,(t.hydrate?Pt:yt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((b=t==null?void 0:t.props)!=null&&b.$$host)||t.sync===!1)&&nt(),W(this,g,u.$$events);for(const a of Object.keys(n(this,m)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return n(this,m)[a]},set(s){n(this,m)[a]=s},enumerable:!0});n(this,m).$set=a=>{Object.assign(u,a)},n(this,m).$destroy=()=>{Rt(n(this,m))}}$set(t){n(this,m).$set(t)}$on(t,e){n(this,g)[t]=n(this,g)[t]||[];const i=(...u)=>e.call(this,...u);return n(this,g)[t].push(i),()=>{n(this,g)[t]=n(this,g)[t].filter(u=>u!==i)}}$destroy(){n(this,m).$destroy()}}g=new WeakMap,m=new WeakMap;const It=({url:r})=>{const t=r.pathname;if(t.startsWith("/view"))return t.replace(/^\/view(?=\/|$)/,"/traces")},qt={};var Lt=J('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Tt=J("<!> <!>",1);function Vt(r,t){mt(t,!0);let e=w(t,"components",23,()=>[]),i=w(t,"data_0",3,null),u=w(t,"data_1",3,null),b=w(t,"data_2",3,null);ut(()=>t.stores.page.set(t.page)),ct(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),b(),t.stores.page.notify()});let a=X(!1),s=X(!1),f=X(null);Ot(()=>{const _=t.stores.page.subscribe(()=>{l(a)&&(k(s,!0),dt().then(()=>{k(f,document.title||"untitled page",!0)}))});return k(a,!0),_});const K=T(()=>t.constructors[2]);var Y=Tt(),q=y(Y);{var N=_=>{const h=T(()=>t.constructors[0]);var E=p(),A=y(E);L(A,()=>l(h),(P,R)=>{V(R(P,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(c,wt)=>{var z=p(),$=y(z);{var tt=O=>{const C=T(()=>t.constructors[1]);var I=p(),j=y(I);L(j,()=>l(C),(S,M)=>{V(M(S,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(d,kt)=>{var B=p(),rt=y(B);L(rt,()=>l(K),(at,st)=>{V(st(at,{get data(){return b()},get form(){return t.form},get params(){return t.page.params}}),D=>e()[2]=D,()=>{var D;return(D=e())==null?void 0:D[2]})}),v(d,B)},$$slots:{default:!0}}),d=>e()[1]=d,()=>{var d;return(d=e())==null?void 0:d[1]})}),v(O,I)},et=O=>{const C=T(()=>t.constructors[1]);var I=p(),j=y(I);L(j,()=>l(C),(S,M)=>{V(M(S,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[1]=d,()=>{var d;return(d=e())==null?void 0:d[1]})}),v(O,I)};x($,O=>{t.constructors[2]?O(tt):O(et,!1)})}v(c,z)},$$slots:{default:!0}}),c=>e()[0]=c,()=>{var c;return(c=e())==null?void 0:c[0]})}),v(_,E)},Q=_=>{const h=T(()=>t.constructors[0]);var E=p(),A=y(E);L(A,()=>l(h),(P,R)=>{V(R(P,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),c=>e()[0]=c,()=>{var c;return(c=e())==null?void 0:c[0]})}),v(_,E)};x(q,_=>{t.constructors[1]?_(N):_(Q,!1)})}var U=lt(q,2);{var Z=_=>{var h=Lt(),E=vt(h);{var A=P=>{var R=ht();Et(()=>pt(R,l(f))),v(P,R)};x(E,P=>{l(s)&&P(A)})}gt(h),v(_,h)};x(U,_=>{l(a)&&_(Z)})}v(r,Y),ft()}const zt=bt(Vt),Bt=[()=>o(()=>import("../nodes/0.ByrdmeSo.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>o(()=>import("../nodes/1.VLeq38lN.js"),__vite__mapDeps([10,1,11,3,2,12,6,7,8]),import.meta.url),()=>o(()=>import("../nodes/2.DX9U9zLg.js"),__vite__mapDeps([13,1,2,3,4,14,15,16,17,18,19,20,21,22,23,24,25,7,8,6,26,27,28,5,11,12,29,30,31]),import.meta.url),()=>o(()=>import("../nodes/3.Bh8il5iy.js"),__vite__mapDeps([32,1,2,3,4,17,16,7,8,6,21,22,33,19,34,35,23,24,27,28,5,36]),import.meta.url),()=>o(()=>import("../nodes/4.CtzHYc6x.js"),__vite__mapDeps([37,1,2,3,27,4,17,16,28,5,26,38]),import.meta.url),()=>o(()=>import("../nodes/5.B4dlomkV.js"),__vite__mapDeps([39,1,2,3,7,8,5,26,27,4,17,16,28,23,22,24,6]),import.meta.url),()=>o(()=>import("../nodes/6.CPYhLc46.js"),__vite__mapDeps([40,41,8]),import.meta.url),()=>o(()=>import("../nodes/7.CBPrYfFp.js"),__vite__mapDeps([42,1,3,2,4,21,17,16,22,43,14,15,18,23,24,7,8,26,29,44,20,33,19,34,30,45]),import.meta.url),()=>o(()=>import("../nodes/8.4NTWYv4c.js"),__vite__mapDeps([46,1,2,3,4,14,15,16,17,18,19,20,21,22,25,33,34,26,47]),import.meta.url),()=>o(()=>import("../nodes/9.BVI-eEdV.js"),__vite__mapDeps([48,41,8]),import.meta.url),()=>o(()=>import("../nodes/10.BHSGZYEC.js"),__vite__mapDeps([49,41,8]),import.meta.url),()=>o(()=>import("../nodes/11.CZ_7M4AF.js"),__vite__mapDeps([50,41,8]),import.meta.url),()=>o(()=>import("../nodes/12.DRr2l3NZ.js"),__vite__mapDeps([51,41,8]),import.meta.url),()=>o(()=>import("../nodes/13.DetV1tDO.js"),__vite__mapDeps([52,1,11,3]),import.meta.url),()=>o(()=>import("../nodes/14.I-eiMWQu.js"),__vite__mapDeps([53,1,11,3,2,4,17,16,12,7,8,35,21,22,43,14,15,18,23,24,26,29,44,54]),import.meta.url)],Ft=[],Ht={"/":[4],"/edit":[5],"/edit/[agent]":[6,[2]],"/edit/[agent]/roleplay":[7,[2]],"/edit/[agent]/tests":[8,[2]],"/roleplay":[9],"/tests":[10],"/tests/[agent]":[11],"/traces":[12],"/traces/conversations":[13,[3]],"/traces/conversations/[conversationId]/traces":[14,[3]]},Dt={handleError:({error:r})=>{console.error(r)},reroute:It||(()=>{}),transport:{}},xt=Object.fromEntries(Object.entries(Dt.transport).map(([r,t])=>[r,t.decode])),Jt=!1,Kt=(r,t)=>xt[r](t);export{Kt as decode,xt as decoders,Ht as dictionary,Jt as hash,Dt as hooks,qt as matchers,Bt as nodes,zt as root,Ft as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BHkx8tAH.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import{o as w,a as b,s as U}from"../chunks/tLFXBP7P.js";import{p as E,f as u,b as m,c as _,i as c,e as x,d as l,s as L,h as p,r as h,t as j}from"../chunks/Cp_hX0eh.js";import{i as y}from"../chunks/_HWrJCgx.js";import{s as R}from"../chunks/BMwJcaLS.js";import{p as k}from"../chunks/CYkx2jgw.js";import{g as C}from"../chunks/BHkx8tAH.js";var A=u(`<div class="
|
|
2
|
+
absolute bottom-0 right-0 z-50 m-4 rounded-sm border border-red-500 bg-red-50
|
|
3
|
+
px-4 py-2 text-red-800 focus:outline-none focus:ring-0"> </div>`),I=u('<main class="h-screen overflow-hidden bg-gray-600"><!> <!></main>');function B(f,i){E(i,!0);let t=x("");function s(r){c(t,r,!0),setTimeout(()=>{c(t,"")},5e3),console.error(r)}R({onAgentSelect:r=>{const e=new URLSearchParams(k.url.search).get("step");let o=`/edit/${encodeURIComponent(r)}/roleplay`;e&&(o+=`?step=${encodeURIComponent(e)}`),C(o)},onError:s}),w(()=>{const r=e=>{var o;console.error(e),s(`Uncaught error: ${((o=e.error)==null?void 0:o.message)||e.message||"Unknown error"}`)},n=e=>{var o;console.error(e),s(`Unhandled promise rejection: ${((o=e.reason)==null?void 0:o.message)||e.reason||"Unknown error"}`)};return window.addEventListener("error",r),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",n)}});var a=I(),d=l(a);b(d,()=>i.children);var g=L(d,2);{var v=r=>{var n=A(),e=l(n,!0);h(n),j(()=>U(e,p(t))),m(r,n)};y(g,r=>{p(t)&&r(v)})}h(a),m(f,a),_()}export{B as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import"../chunks/C0pV4x1v.js";import{p as c,f as l,a as v,t as u,b as _,c as d,d as e,r as o,s as g}from"../chunks/Cp_hX0eh.js";import{s as p}from"../chunks/tLFXBP7P.js";import{i as x}from"../chunks/Y0ymTIHd.js";import{p as m}from"../chunks/CYkx2jgw.js";var b=l("<h1> </h1> <p> </p>",1);function z(i,f){c(f,!1),x();var t=b(),r=v(t),n=e(r,!0);o(r);var a=g(r,2),h=e(a,!0);o(a),u(()=>{var s;p(n,m.status),p(h,(s=m.error)==null?void 0:s.message)}),_(i,t),d()}export{z as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"../chunks/hp4PFHFv.js";function o(){e(307,"/edit")}const t=Object.freeze(Object.defineProperty({__proto__:null,load:o},Symbol.toStringTag,{value:"Module"}));export{t as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"../chunks/hp4PFHFv.js";function s({url:o,params:n}){const e=o.searchParams.get("step"),t=`/edit/${encodeURIComponent(n.agent)}/tests`;r(307,e?`${t}?step=${encodeURIComponent(e)}`:t)}const c=Object.freeze(Object.defineProperty({__proto__:null,load:s},Symbol.toStringTag,{value:"Module"}));export{c as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o}from"../chunks/hp4PFHFv.js";function r({url:e}){const t=e.pathname.startsWith("/view")?"/view":"/traces";o(307,`${t}/conversations`)}const n=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{n as universal};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import"../chunks/C0pV4x1v.js";import{A as a,f as r,j as t,b as c,$ as l}from"../chunks/Cp_hX0eh.js";var s=e=>e.stopPropagation(),i=r('<div class="flex h-full w-full flex-col bg-rc-gray-980"><div class="flex-none border-b border-rc-gray-300/40 p-4"><h2 class="text-lg font-semibold text-rc-gray-100">Traces</h2></div> <div class="min-h-0 flex-1 overflow-auto p-4"><div class="py-8 text-center text-rc-gray-300">Select a conversation to view traces</div></div></div>');function f(e){var o=i();t(n=>{l.title="Bosun: Telescope"}),o.__click=[s],c(e,o)}a(["click"]);export{f as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import"../chunks/C0pV4x1v.js";import{s as E,o as Se}from"../chunks/tLFXBP7P.js";import{A as ce,p as ue,T as at,a as j,b as c,c as de,q as f,f as S,d as h,r as y,s as A,t as M,F as Lt,h as t,a0 as tt,k as z,ab as ie,ac as $e,j as Ne,$ as we,i as g,X as q,n as ut}from"../chunks/Cp_hX0eh.js";import{i as x}from"../chunks/_HWrJCgx.js";import{c as St,e as ee,i as se,h as oe,s as Ae}from"../chunks/Cv6CwVfk.js";import{i as fe}from"../chunks/Y0ymTIHd.js";import{p as G,s as Pe,a as ke}from"../chunks/BbaH2eDw.js";import{s as Ce}from"../chunks/BHkx8tAH.js";import{T as Le,g as Ie,m as Oe}from"../chunks/W8E9z4jl.js";import{B as dt}from"../chunks/DOMF1VtZ.js";import{C as Me,a as Je,b as je,c as Re}from"../chunks/t1v2-usS.js";import{M as le}from"../chunks/CZ6iREyA.js";const Ee=()=>{const J=Ce;return{page:{subscribe:J.page.subscribe},navigating:{subscribe:J.navigating.subscribe},updated:J.updated}},Fe={subscribe(J){return Ee().page.subscribe(J)}};function Ue(J,P,C){P()&&J.stopPropagation(),C(!C())}function De(J,P){P()&&J.stopPropagation()}var qe=S("<div> </div>"),ze=S('<div class="mt-1 whitespace-pre-wrap break-words text-xs italic text-rc-gray-200"> </div>'),Be=S("<div><!> <!> <!></div>"),He=S("<div><div><div> </div> <div><!> <!></div> <!></div></div>"),Ke=S('<div class="space-y-3"></div>'),Ye=S('<div class="whitespace-pre-wrap break-words"><!></div>'),We=S('<button class="inline-flex text-sm text-rc-green-200 hover:text-rc-green-100"> </button>'),Ge=S('<div><span class="whitespace-pre-wrap break-words"><!></span> <!></div>');function Ve(J,P){ue(P,!1);let C=G(P,"value",8,""),It=G(P,"limit",8,200),ft=G(P,"maxLines",8,null),Ot=G(P,"className",8,""),vt=G(P,"collapsedLabel",8,"...more"),U=G(P,"initiallyExpanded",8,!1),B=G(P,"stopPropagation",8,!0),nt=G(P,"expanded",28,U),it=G(P,"treatPlainText",8,!1),et=G(P,"highlightPrompt",8,!1);function H(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function st(i){const s=w(i);let r=H(s);const d=[];return r=r.replace(/(\{+[\s\S]*?\}+)/g,_=>{const v=d.length;return d.push(_),`__CURLY${v}__`}),r=r.replace(/^(\s*#.*)$/gm,'<span class="prompt-heading">$1</span>'),r=r.replace(/(<[^&]*?>)/g,'<span class="mtk8">$1</span>'),r=r.replace(/^(\s*)(\d+)([.)])(\s+)/gm,(_,v,T,R,p)=>`${v}<span class="mtk8">${T}${R}</span>${p}`),d.forEach((_,v)=>{const T=`<span class="mtk5">${_}</span>`;r=r.replace(`__CURLY${v}__`,T)}),r=r.replace(/\n/g,"<br/>"),r}function w(i){let s=i.replace(/\r\n/g,`
|
|
2
|
+
`);return s=s.replace(/\\n/g,`
|
|
3
|
+
`),s}function $(i){try{if(Array.isArray(i)){const s=i.map(r=>(r==null?void 0:r.text)??(r==null?void 0:r.content)??JSON.stringify(r)).join(" ");return w(s)}if(typeof i=="string")try{const s=JSON.parse(i);if(Array.isArray(s)){const r=s.map(d=>(d==null?void 0:d.text)??(d==null?void 0:d.content)??JSON.stringify(d)).join(" ");return w(r)}return w(i)}catch{return w(i)}return w(JSON.stringify(i))}catch{return w(String(i??""))}}function $t(i){try{if(Array.isArray(i)){const s=i.map(r=>(r==null?void 0:r.text)??(r==null?void 0:r.content)??JSON.stringify(r)).join(`
|
|
4
|
+
`);return w(s)}if(typeof i=="string")try{const s=JSON.parse(i);if(Array.isArray(s)){const r=s.map(d=>(d==null?void 0:d.text)??(d==null?void 0:d.content)??JSON.stringify(d)).join(`
|
|
5
|
+
`);return w(r)}return w(i)}catch{return w(i)}return w(JSON.stringify(i,null,2))}catch{return w(String(i??""))}}function pt(i){const r=w(i).split(/\n+/).map(T=>T.trim()).filter(T=>T.length>0),d=[];let _,v="";for(const T of r){const R=T.match(/^(user|assistant|system|customer|caller|tool|model|agent)\s*[:\-]\s*(.*)$/i);R?(v&&d.push({text:v,role:_}),_=R[1].toLowerCase(),v=R[2]??""):v?v+=`
|
|
6
|
+
`+T:v=T}return v&&d.push({text:v,role:_}),d}function rt(i){try{let s=i;if(typeof i=="string")try{s=JSON.parse(i)}catch{return it()?pt(i):[]}if(!Array.isArray(s))if(Array.isArray(s==null?void 0:s.messages))s=s.messages;else return[];return s.map(r=>{let d;return(r==null?void 0:r.text)!=null?d=String(r.text):(r==null?void 0:r.content)!=null?Array.isArray(r.content)?d=r.content.map(_=>{var v;return typeof _=="string"?_:typeof(_==null?void 0:_.text)=="string"?_.text:typeof((v=_==null?void 0:_.text)==null?void 0:v.value)=="string"?_.text.value:JSON.stringify(_)}).join(" "):typeof r.content=="string"?d=r.content:d=JSON.stringify(r.content):typeof r=="string"?d=r:d=JSON.stringify(r),{text:w(d),role:r==null?void 0:r.role,time:r==null?void 0:r.time,duration:r==null?void 0:r.duration}}).filter(r=>r.text&&String(r.text).trim().length>0)}catch{return[]}}const K=()=>$(C()),Y=()=>$t(C()),ot=()=>K().split(`
|
|
7
|
+
`),Nt=()=>rt(C()),Mt=()=>Nt().length>0,wt=()=>ft()!=null?ot().length>ft():K().length>It(),Jt=()=>{const i=K();return wt()?ft()!=null?ot().slice(0,ft()).join(`
|
|
8
|
+
`):i.slice(0,It()):i};function jt(i){if(!i)return null;try{const s=new Date(i);return Number.isNaN(s.getTime())?i:s.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return i}}function Rt(i){if(i==null||!Number.isFinite(i))return null;const s=Number(i),r=Math.floor(s),d=Math.floor(r/60),_=r%60,v=String(d).padStart(2,"0"),T=String(_).padStart(2,"0");return`${v}:${T}`}function Et(i){if(!i)return"Assistant";const s=i.trim();return s?s.charAt(0).toUpperCase()+s.slice(1):"Assistant"}function Bt(i){const s=(i==null?void 0:i.toLowerCase())??"";return s==="user"||s==="customer"||s==="caller"}function Ft(i){const s=[];return{main:i.replace(/<([^>]+)>/g,(d,_)=>{const v=String(_).trim();return v&&s.push(v),""}).trim(),system:s}}fe();var At=at(),Ht=j(At);{var Kt=i=>{var s=at(),r=j(s);{var d=v=>{var T=Ke();ee(T,5,()=>f(Nt),se,(R,p)=>{const N=tt(()=>(t(p),f(()=>Bt(t(p).role)))),k=tt(()=>(t(p),f(()=>(t(p).role??"").toLowerCase()==="system"))),O=tt(()=>(t(p),f(()=>Ft(t(p).text)))),V=tt(()=>(t(p),f(()=>jt(t(p).time)))),mt=tt(()=>(t(p),f(()=>Rt(t(p).duration))));var gt=He(),Pt=h(gt),_t=h(Pt),Wt=h(_t,!0);y(_t);var yt=A(_t,2),kt=h(yt);{var Gt=F=>{var D=qe(),X=h(D,!0);y(D),M(()=>E(X,(Lt(t(O)),f(()=>t(O).main)))),c(F,D)};x(kt,F=>{Lt(t(O)),f(()=>t(O).main)&&F(Gt)})}var Vt=A(kt,2);ee(Vt,1,()=>(Lt(t(O)),f(()=>t(O).system)),se,(F,D)=>{var X=ze(),e=h(X);y(X),M(()=>E(e,`<${t(D)??""}>`)),c(F,X)}),y(yt);var Xt=A(yt,2);{var Ut=F=>{var D=Be(),X=h(D);{var e=u=>{var m=z();M(()=>E(m,t(V))),c(u,m)};x(X,u=>{t(V)&&u(e)})}var a=A(X,2);{var n=u=>{var m=z("·");c(u,m)};x(a,u=>{t(V)&&t(mt)&&u(n)})}var o=A(a,2);{var l=u=>{var m=z();M(()=>E(m,t(mt))),c(u,m)};x(o,u=>{t(mt)&&u(l)})}y(D),M(()=>St(D,1,`mt-1 text-xs text-rc-gray-300 ${t(N)?"text-right":"text-left"}`)),c(F,D)};x(Xt,F=>{(t(V)||t(mt))&&F(Ut)})}y(Pt),y(gt),M(F=>{St(gt,1,`flex ${t(N)?"justify-end":"justify-start"}`),St(Pt,1,`max-w-[70%] break-words rounded-md px-3 py-2 text-sm shadow-sm ${t(N)?"bg-rc-gray-600 text-rc-gray-100":"bg-rc-gray-700 text-rc-gray-100"}`),St(_t,1,`my-1 text-xs font-semibold uppercase ${t(k)?"text-rc-blue "+(t(N)?"text-right":"text-left"):"text-rc-green-200 "+(t(N)?"text-right":"text-left")}`),E(Wt,F),St(yt,1,`whitespace-pre-wrap break-words py-1 text-sm ${t(N)?"text-justify":"text-left"} ${t(k)?"italic text-rc-gray-200":""}`)},[()=>(t(p),f(()=>Et(t(p).role)))]),c(R,gt)}),y(T),c(v,T)},_=v=>{var T=Ye(),R=h(T);{var p=k=>{var O=at(),V=j(O);oe(V,()=>f(()=>st(Y()))),c(k,O)},N=k=>{var O=z();M(V=>E(O,V),[()=>f(Y)]),c(k,O)};x(R,k=>{et()?k(p):k(N,!1)})}y(T),c(v,T)};x(r,v=>{f(Mt)?v(d):v(_,!1)})}c(i,s)},Yt=i=>{var s=Ge();s.__click=[De,B];var r=h(s),d=h(r);{var _=p=>{var N=at(),k=j(N);oe(k,()=>f(()=>st(Jt()))),c(p,N)},v=p=>{var N=z();M(k=>E(N,k),[()=>f(Jt)]),c(p,N)};x(d,p=>{et()?p(_):p(v,!1)})}y(r);var T=A(r,2);{var R=p=>{var N=We();N.__click=[Ue,B,nt];var k=h(N,!0);y(N),M(()=>E(k,vt())),c(p,N)};x(T,p=>{f(wt)&&p(R)})}y(s),M(()=>St(s,1,`mt-1 cursor-text select-text rounded bg-rc-gray-900 p-2 text-sm text-rc-gray-200 ${Ot()}`)),c(i,s)};x(Ht,i=>{nt()?i(Kt):i(Yt,!1)})}c(J,At),de()}ce(["click"]);var Xe=J=>J.stopPropagation(),Qe=S('<span class="text-rc-gray-100">for conversation Id:</span> <span class="text-rc-green-200"> </span>',1),Ze=S('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),tr=S('<div class="mt-2 text-sm text-rc-gray-400">Loading call details…</div>'),er=S('<div class="mt-2 text-sm text-rc-gray-300"> </div>'),rr=S('<div class="py-8 text-center text-rc-gray-300">No conversation selected</div>'),ar=S('<div class="py-8 text-center text-rc-gray-200">Loading traces...</div>'),nr=S('<div class="z-50 py-8 text-center text-red-400"> </div>'),ir=S('<div class="py-8 text-center text-rc-gray-300">No traces found</div>'),sr=S('<div class="my-3 flex w-full justify-center"><div class="rounded-full border border-rc-gray-650 bg-rc-gray-900/40 px-3 py-1 text-xs text-rc-gray-200"> </div></div>'),or=S("<!> <!>",1),lr=S('<div class="mt-3 flex justify-center"><!></div>'),cr=S("<div></div> <!>",1),ur=S('<audio class="w-full" controls></audio> <div class="mt-3 break-all text-sm text-rc-gray-300"> </div>',1),dr=S("<!> <!>",1),fr=S('<div class="rc-scroll flex max-h-[60vh] flex-col gap-4 overflow-scroll p-2"><!></div>'),vr=S('<div class="flex w-full items-center justify-end gap-5"><!> <!></div>'),pr=S('<div class="flex h-full w-full flex-col bg-rc-gray-700"><div class="flex-none border-b border-rc-gray-300/40 p-4"><div class="flex flex-wrap items-start justify-between gap-3"><h2 class="text-lg font-semibold text-rc-gray-100">Traces <!></h2> <!></div> <!></div> <div class="rc-scroll min-h-0 flex-1 overflow-scroll p-4"><!></div></div> <!> <!>',1);function Pr(J,P){ue(P,!1);const C=()=>ke(Fe,"$page",It),[It,ft]=Pe();let Ot=G(P,"useMock",8,!1);const vt=new Le(fetch);vt.setSourceId(Ie()??void 0);let U=q([]),B=q([]),nt=q(!1),it=q(!1),et=q(null),H=q(null),st=null,w=q(!1),$=q(null),$t=q(!1),pt=q(null),rt=q(!1),K=q(!1),Y=0,ot=0;const Nt=new WeakMap;let Mt=0;function wt(e){if(typeof e!="string")return null;const a=e.trim();return a||null}function Jt(e){const a=wt(e==null?void 0:e.traceId);if(a)return a;const n=Nt.get(e);if(n)return n;Mt+=1;const o=`synthetic-${e.traceType}-${e.createdAt}-${Mt}`;return Nt.set(e,o),o}function jt(e){const a=new Set;return e.filter(n=>{const o=wt(n==null?void 0:n.traceId);return o?a.has(o)?!1:(a.add(o),!0):!0})}function Rt(e){return e?t(U):t(U).map(a=>{if(a.traceType!=="STEP")return a;const{receivedPrompt:n,renderedPrompt:o,...l}=a;return l})}function Et(e){return e&&typeof e.renderedPrompt=="string"?e.renderedPrompt:null}function Bt(e,a){for(let n=a-1;n>=0;n--){const o=e[n];if(o.traceType!=="STEP")continue;const l=o;if(l.name==="main"&&Et(l))return l}for(let n=a-1;n>=0;n--){const o=e[n];if(o.traceType!=="STEP")continue;const l=o;if(l.name==="prewarm"&&Et(l))return l}return null}function Ft(e){return!!(e!=null&&e.audioUrl&&String(e.audioUrl).trim())}function At(e){const a=e==null?void 0:e.transcript;return typeof a=="string"?a.trim()!=="":Array.isArray(a)?a.length>0:!1}function Ht(e){const a=e==null?void 0:e.transcript;return a?typeof a=="string"?a:Array.isArray(a)?a.map(n=>{const o=typeof(n==null?void 0:n.time)=="string"?n.time:"",l=typeof(n==null?void 0:n.role)=="string"?n.role:"",u=typeof(n==null?void 0:n.text)=="string"?n.text:"",m=[o,l].filter(Boolean).join(" • ");return m?`${m}
|
|
9
|
+
${u}`:u}).join(`
|
|
10
|
+
|
|
11
|
+
`):"":""}async function Kt(){try{await navigator.clipboard.writeText(Ht(t($)))}catch(e){console.error("Failed to copy transcript",e)}}async function Yt(){var e;try{const a=(e=t($))==null?void 0:e.audioUrl;if(!a)return;await navigator.clipboard.writeText(a)}catch(a){console.error("Failed to copy recording URL",a)}}function i(e){return e.traceType!=="CONVERSATIONAL"?!1:e.eventName==="received-message"||e.eventName==="llm-handler-stream-requested"||e.eventName==="finished-main-streaming-step"||e.eventName==="sent-message"||e.eventName==="transfer-requested"}const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function r(e){if(typeof e!="number"||!Number.isFinite(e))return null;const a=new Date(e);if(Number.isNaN(a.getTime()))return null;const n=a.getFullYear(),o=String(a.getMonth()+1).padStart(2,"0"),l=String(a.getDate()).padStart(2,"0");return`${n}-${o}-${l}`}function d(e){if(typeof e!="number"||!Number.isFinite(e))return null;const a=new Date(e);if(Number.isNaN(a.getTime()))return null;const n=a.getDate(),o=s[a.getMonth()],l=a.getFullYear();return`${n} ${o} ${l}`}async function _(e){const a=++ot;g($t,!0),g(pt,null),g($,null);try{if(Ot())return;const n=await vt.getConversation(e);if(a!==ot)return;g($,n)}catch(n){if(a!==ot)return;g(pt,n.message),g($,null)}finally{if(a!==ot)return;g($t,!1)}}async function v(e){if(!e||e===t(H))return;const a=++Y;g(H,e),g(nt,!0),g(it,!1),g(et,null),st=null,g(w,!1),g(rt,!1),g(K,!1),_(e);try{let n=[],o=null,l=!1;if(Ot())n=(await Oe.fetchTraces(e)).items??[];else{const u=await vt.getTraces(e,200);n=u.items??[],o=u.lastTraceId??null,l=o!=null}if(a!==Y)return;st=o,g(w,l),g(U,jt(n).slice().sort((u,m)=>u.createdAt-m.createdAt))}catch(n){if(a!==Y)return;g(et,n.message),g(U,[]),console.error("Failed to load traces:",n)}finally{if(a!==Y)return;g(nt,!1)}}async function T(){if(!t(H)||!st||t(it))return;const e=t(H),a=Y;g(it,!0),g(et,null);try{const n=await vt.getTraces(e,200,st),o=n.items??[];if(e!==t(H)||a!==Y)return;const l=n.lastTraceId??null;st=l,g(w,l!=null),g(U,jt(t(U).concat(o)).slice().sort((u,m)=>u.createdAt-m.createdAt))}catch(n){if(e!==t(H)||a!==Y)return;g(et,n.message),console.error("Failed to load more traces:",n)}finally{if(e!==t(H)||a!==Y)return;g(it,!1)}}Se(()=>{const e=C().params.conversationId;e&&v(e)}),ie(()=>t(U),()=>{g(B,t(U).filter(e=>e.traceType==="API_CALL"||e.traceType==="STEP"||i(e)))}),ie(()=>(C(),t(H)),()=>{const e=C().params.conversationId;e&&e!==t(H)&&v(e)}),$e(),fe();var R=pr();Ne(e=>{we.title="Bosun: Telescope"});var p=j(R);p.__click=[Xe];var N=h(p),k=h(N),O=h(k),V=A(h(O));{var mt=e=>{var a=Qe(),n=A(j(a),2),o=h(n,!0);y(n),M(()=>E(o,(C(),f(()=>C().params.conversationId)))),c(e,a)};x(V,e=>{C(),f(()=>C().params.conversationId)&&e(mt)})}y(O);var gt=A(O,2);{var Pt=e=>{var a=Ze(),n=h(a);{var o=b=>{dt(b,{variant:"secondary",size:"small",onclick:()=>g(rt,!0),children:(L,W)=>{ut();var Q=z("Recording");c(L,Q)},$$slots:{default:!0}})};x(n,b=>{t($),f(()=>Ft(t($)))&&b(o)})}var l=A(n,2);{var u=b=>{dt(b,{variant:"secondary",size:"small",onclick:()=>g(K,!0),children:(L,W)=>{ut();var Q=z("Transcript");c(L,Q)},$$slots:{default:!0}})};x(l,b=>{t($),f(()=>At(t($)))&&b(u)})}var m=A(l,2);{let b=tt(()=>(t(U),t(nt),f(()=>!t(U).length||t(nt))));Me(m,{get disabled(){return t(b)},getWithPromptsText:()=>JSON.stringify(Rt(!0),null,2),getWithoutPromptsText:()=>JSON.stringify(Rt(!1),null,2)})}y(a),c(e,a)};x(gt,e=>{C(),f(()=>C().params.conversationId)&&e(Pt)})}y(k);var _t=A(k,2);{var Wt=e=>{var a=tr();c(e,a)},yt=e=>{var a=at(),n=j(a);{var o=l=>{var u=er(),m=h(u);y(u),M(()=>E(m,`Call details unavailable: ${t(pt)??""}`)),c(l,u)};x(n,l=>{t(pt)&&l(o)},!0)}c(e,a)};x(_t,e=>{t($t)?e(Wt):e(yt,!1)})}y(N);var kt=A(N,2),Gt=h(kt);{var Vt=e=>{var a=rr();c(e,a)},Xt=e=>{var a=at(),n=j(a);{var o=u=>{var m=ar();c(u,m)},l=u=>{var m=at(),b=j(m);{var L=Q=>{var xt=nr(),Qt=h(xt);y(xt),M(()=>E(Qt,`Error: ${t(et)??""}`)),c(Q,xt)},W=Q=>{var xt=at(),Qt=j(xt);{var ve=ht=>{var Dt=ir();c(ht,Dt)},pe=ht=>{var Dt=cr(),Zt=j(Dt);ee(Zt,7,()=>t(B),lt=>Jt(lt),(lt,I,ct)=>{const qt=tt(()=>(t(I),f(()=>r(t(I).createdAt)))),re=tt(()=>(Lt(t(ct)),t(B),f(()=>t(ct)>0?r(t(B)[t(ct)-1].createdAt):null))),Ct=tt(()=>(t(I),f(()=>d(t(I).createdAt))));var ae=or(),ne=j(ae);{var _e=Z=>{var Tt=sr(),zt=h(Tt),te=h(zt,!0);y(zt),y(Tt),M(()=>E(te,t(Ct))),c(Z,Tt)};x(ne,Z=>{t(qt)&&t(Ct)&&t(qt)!==t(re)&&Z(_e)})}var ye=A(ne,2);{var xe=Z=>{Je(Z,{get trace(){return t(I)}})},he=Z=>{var Tt=at(),zt=j(Tt);{var te=bt=>{{let be=tt(()=>(t(I),t(B),Lt(t(ct)),f(()=>t(I).name==="main"?Bt(t(B),t(ct)):null)));je(bt,{get trace(){return t(I)},get compareTrace(){return t(be)}})}},Te=bt=>{Re(bt,{get trace(){return t(I)},context:null,agentId:void 0})};x(zt,bt=>{t(I),f(()=>t(I).traceType==="STEP")?bt(te):bt(Te,!1)},!0)}c(Z,Tt)};x(ye,Z=>{t(I),f(()=>t(I).traceType==="API_CALL")?Z(xe):Z(he,!1)})}c(lt,ae)}),y(Zt);var me=A(Zt,2);{var ge=lt=>{var I=lr(),ct=h(I);dt(ct,{variant:"secondary",size:"small",get disabled(){return t(it)},onclick:T,children:(qt,re)=>{ut();var Ct=z();M(()=>E(Ct,t(it)?"Loading more…":"Load more")),c(qt,Ct)},$$slots:{default:!0}}),y(I),c(lt,I)};x(me,lt=>{t(w)&<(ge)})}c(ht,Dt)};x(Qt,ht=>{t(B),f(()=>!t(B).length)?ht(ve):ht(pe,!1)},!0)}c(Q,xt)};x(b,Q=>{t(et)?Q(L):Q(W,!1)},!0)}c(u,m)};x(n,u=>{t(nt)?u(o):u(l,!1)},!0)}c(e,a)};x(Gt,e=>{C(),f(()=>!C().params.conversationId)?e(Vt):e(Xt,!1)})}y(kt),y(p);var Ut=A(p,2);{var F=e=>{le(e,{title:"Recording",class:"!max-w-3xl",get open(){return t(rt)},set open(o){g(rt,o)},children:o=>{var l=ur(),u=j(l),m=A(u,2),b=h(m,!0);y(m),M(()=>{Ae(u,"src",(t($),f(()=>{var L;return(L=t($))==null?void 0:L.audioUrl}))),E(b,(t($),f(()=>{var L;return(L=t($))==null?void 0:L.audioUrl})))}),c(o,l)},footer:o=>{var l=dr(),u=j(l);dt(u,{variant:"secondary",size:"small",onclick:Yt,children:(b,L)=>{ut();var W=z("Copy URL");c(b,W)},$$slots:{default:!0}});var m=A(u,2);dt(m,{variant:"secondary",size:"small",onclick:()=>g(rt,!1),children:(b,L)=>{ut();var W=z("Close");c(b,W)},$$slots:{default:!0}}),c(o,l)},$$slots:{default:!0,footer:!0},$$legacy:!0})};x(Ut,e=>{t(rt),t($),f(()=>t(rt)&&Ft(t($)))&&e(F)})}var D=A(Ut,2);{var X=e=>{le(e,{title:"Transcript",class:"!max-w-4xl",get open(){return t(K)},set open(o){g(K,o)},children:o=>{var l=fr(),u=h(l);{var m=b=>{Ve(b,{get value(){return t($),f(()=>t($).transcript)},limit:500,expanded:!0})};x(u,b=>{t($),f(()=>{var L;return typeof((L=t($))==null?void 0:L.transcript)=="string"})&&b(m)})}y(l),c(o,l)},footer:o=>{var l=vr(),u=h(l);dt(u,{onclick:Kt,children:(b,L)=>{ut();var W=z("Copy transcript");c(b,W)},$$slots:{default:!0}});var m=A(u,2);dt(m,{variant:"secondary",onclick:()=>g(K,!1),children:(b,L)=>{ut();var W=z("Close");c(b,W)},$$slots:{default:!0}}),y(l),c(o,l)},$$slots:{default:!0,footer:!0},$$legacy:!0})};x(D,e=>{t(K),t($),f(()=>t(K)&&At(t($)))&&e(X)})}c(J,R),de(),ft()}ce(["click"]);export{Pr as component};
|
|
Binary file
|
|
Binary file
|