@recombine-ai/bosun 0.3.6 → 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/ChatStepTrace.NFJFjHv0.css +1 -0
- package/build/client/_app/immutable/assets/ChatStepTrace.NFJFjHv0.css.br +0 -0
- package/build/client/_app/immutable/assets/ChatStepTrace.NFJFjHv0.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/{CZJlygAJ.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/immutable/workers/css.worker-BRIrhzkG.js +84 -0
- package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.br +0 -0
- package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.gz +0 -0
- package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js +12 -0
- package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.br +0 -0
- package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.gz +0 -0
- package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js +461 -0
- package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.br +0 -0
- package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.gz +0 -0
- package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js +49 -0
- package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.br +0 -0
- package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.gz +0 -0
- package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js +51334 -0
- package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.br +0 -0
- package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.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-BjExyGhw.js.map → 0-CjpeDbMt.js.map} +1 -1
- package/build/server/chunks/1-M0YzuUQM.js +9 -0
- package/build/server/chunks/{1-BwvZ1byr.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-C4H-7WxT.js → AgentSidebar-BB_yQ9s0.js} +4 -4
- package/build/server/chunks/AgentSidebar-BB_yQ9s0.js.map +1 -0
- package/build/server/chunks/{Button-D3mqAVvu.js → Button-Cd4Yzpdy.js} +4 -4
- package/build/server/chunks/Button-Cd4Yzpdy.js.map +1 -0
- package/build/server/chunks/{ChatStepTrace-dfzN1KEN.js → ChatStepTrace-cq26gF4B.js} +229 -14
- 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-D0R0X6Hr.js → Icon-BgknHaZs.js} +2 -2
- package/build/server/chunks/{Icon-D0R0X6Hr.js.map → Icon-BgknHaZs.js.map} +1 -1
- package/build/server/chunks/{Input-C_H479QL.js → Input-BJW36iKz.js} +2 -2
- package/build/server/chunks/{Input-C_H479QL.js.map → Input-BJW36iKz.js.map} +1 -1
- package/build/server/chunks/{Modal-NTInCBwo.js → Modal-D4tx0Bdo.js} +3 -3
- package/build/server/chunks/Modal-D4tx0Bdo.js.map +1 -0
- package/build/server/chunks/{Tab-DAuTmew0.js → Tab-DheAG-QC.js} +3 -3
- package/build/server/chunks/Tab-DheAG-QC.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-DFDvSokt.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-B3Lu_xzt.js → _page.svelte-39hvC6-Q.js} +4 -4
- package/build/server/chunks/{_page.svelte-B3Lu_xzt.js.map → _page.svelte-39hvC6-Q.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-5O44TlMG.js → _page.svelte-BpnUXzfh.js} +40 -25
- package/build/server/chunks/_page.svelte-BpnUXzfh.js.map +1 -0
- package/build/server/chunks/{_page.svelte-N6xQwQzn.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-D9kg5-lo.js → _page.svelte-CbqAsz26.js} +3 -3
- package/build/server/chunks/_page.svelte-CbqAsz26.js.map +1 -0
- package/build/server/chunks/{_page.svelte-ClesenAz.js → _page.svelte-CmsDxzfh.js} +19 -27
- package/build/server/chunks/_page.svelte-CmsDxzfh.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DimeWJh5.js → _page.svelte-DCP-PSh0.js} +293 -433
- 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-Bmdqxv-M.js → index-server-CefdgakO.js} +2 -2
- package/build/server/chunks/index-server-CefdgakO.js.map +1 -0
- package/build/server/chunks/{index2-CHZ7ZFLZ.js → index2-BuOY2QE4.js} +2 -2
- package/build/server/chunks/{index2-CHZ7ZFLZ.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.D_OBtTqU.css +0 -1
- package/build/client/_app/immutable/assets/0.D_OBtTqU.css.br +0 -0
- package/build/client/_app/immutable/assets/0.D_OBtTqU.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.sP9PzBp7.css +0 -1
- package/build/client/_app/immutable/assets/4.sP9PzBp7.css.br +0 -0
- package/build/client/_app/immutable/assets/4.sP9PzBp7.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/BFOPpRqC.js +0 -8
- package/build/client/_app/immutable/chunks/BFOPpRqC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFOPpRqC.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/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/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/CZJlygAJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZJlygAJ.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/Cx_xzGPa.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cx_xzGPa.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/D8e5qIiS.js +0 -33
- package/build/client/_app/immutable/chunks/D8e5qIiS.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8e5qIiS.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/Dxv8gtYg.js +0 -1
- package/build/client/_app/immutable/chunks/Dxv8gtYg.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dxv8gtYg.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/WkRHaFaq.js +0 -4
- package/build/client/_app/immutable/chunks/WkRHaFaq.js.br +0 -0
- package/build/client/_app/immutable/chunks/WkRHaFaq.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.Bo6pBzFD.js +0 -2
- package/build/client/_app/immutable/entry/app.Bo6pBzFD.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Bo6pBzFD.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DvDUBfDS.js +0 -1
- package/build/client/_app/immutable/entry/start.DvDUBfDS.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DvDUBfDS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.zcQ-QMcb.js +0 -3
- package/build/client/_app/immutable/nodes/0.zcQ-QMcb.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.zcQ-QMcb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BX821K1d.js +0 -1
- package/build/client/_app/immutable/nodes/1.BX821K1d.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BX821K1d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.4IvNSQft.js +0 -1
- package/build/client/_app/immutable/nodes/2.4IvNSQft.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.4IvNSQft.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.C6l0CiJD.js +0 -35
- package/build/client/_app/immutable/nodes/4.C6l0CiJD.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C6l0CiJD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.RovJmk8R.js +0 -1
- package/build/client/_app/immutable/nodes/5.RovJmk8R.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.RovJmk8R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.vrBdmqTE.js +0 -5
- package/build/client/_app/immutable/nodes/6.vrBdmqTE.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.vrBdmqTE.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.tDZ3CQE6.js +0 -11
- package/build/client/_app/immutable/nodes/9.tDZ3CQE6.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.tDZ3CQE6.js.gz +0 -0
- package/build/server/chunks/0-BjExyGhw.js +0 -9
- package/build/server/chunks/1-BwvZ1byr.js +0 -9
- package/build/server/chunks/2-DLWqn5zk.js +0 -9
- package/build/server/chunks/2-DLWqn5zk.js.map +0 -1
- package/build/server/chunks/3-Be4gJSbJ.js +0 -9
- package/build/server/chunks/3-Be4gJSbJ.js.map +0 -1
- package/build/server/chunks/4-BQq4QAnS.js +0 -9
- package/build/server/chunks/4-BQq4QAnS.js.map +0 -1
- package/build/server/chunks/5-DM_iNIlm.js +0 -9
- package/build/server/chunks/5-DM_iNIlm.js.map +0 -1
- package/build/server/chunks/6-eSsWX3tm.js +0 -33
- package/build/server/chunks/6-eSsWX3tm.js.map +0 -1
- package/build/server/chunks/7-soEaW5k5.js.map +0 -1
- package/build/server/chunks/8-CA7E96iK.js +0 -9
- package/build/server/chunks/8-CA7E96iK.js.map +0 -1
- package/build/server/chunks/9-D2SkYOhZ.js +0 -9
- package/build/server/chunks/9-D2SkYOhZ.js.map +0 -1
- package/build/server/chunks/AgentSidebar-C4H-7WxT.js.map +0 -1
- package/build/server/chunks/Button-D3mqAVvu.js.map +0 -1
- package/build/server/chunks/ChatStepTrace-dfzN1KEN.js.map +0 -1
- package/build/server/chunks/ContextEditor-ySHjHE1w.js +0 -45
- package/build/server/chunks/ContextEditor-ySHjHE1w.js.map +0 -1
- package/build/server/chunks/Modal-NTInCBwo.js.map +0 -1
- package/build/server/chunks/Tab-DAuTmew0.js.map +0 -1
- package/build/server/chunks/Tab.svelte_svelte_type_style_lang-Bmdqxv-M.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CrT993Da.js.map +0 -1
- package/build/server/chunks/_layout.svelte-DFDvSokt.js.map +0 -1
- package/build/server/chunks/_page.svelte-5O44TlMG.js.map +0 -1
- package/build/server/chunks/_page.svelte-ClesenAz.js.map +0 -1
- package/build/server/chunks/_page.svelte-D9kg5-lo.js.map +0 -1
- package/build/server/chunks/_page.svelte-DimeWJh5.js.map +0 -1
- package/build/server/chunks/_page.svelte-N6xQwQzn.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/{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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.zcQ-QMcb.js","../chunks/CWj6FrbW.js","../chunks/BrDK8TTs.js","../chunks/C-dTPkQy.js","../chunks/CUfDVPpW.js","../chunks/B2gGEZTS.js","../chunks/CZJlygAJ.js","../chunks/Dxv8gtYg.js","../chunks/BUApaBEI.js","../assets/0.D_OBtTqU.css","../nodes/1.BX821K1d.js","../chunks/CInh9KnU.js","../chunks/BgaIh2D4.js","../nodes/2.4IvNSQft.js","../chunks/HBgR5qMR.js","../chunks/FawE95CY.js","../chunks/Bf1oCG9-.js","../chunks/aeuWzujc.js","../chunks/I-mny6CH.js","../assets/Input.NBh3BL7E.css","../chunks/W8E9z4jl.js","../chunks/Bd7SZbXQ.js","../assets/Tab.BxaGw9IG.css","../chunks/D9h7-Y-f.js","../assets/AgentSidebar.QeNZJtLq.css","../assets/2.Dzh7_Q8n.css","../nodes/3.C-B1sGi_.js","../chunks/BEJ5fU19.js","../assets/3.CZVw96CJ.css","../nodes/4.C6l0CiJD.js","../chunks/BFOPpRqC.js","../chunks/BsKQRAyX.js","../assets/Modal.tn0RQdqM.css","../chunks/D8e5qIiS.js","../chunks/WkRHaFaq.js","../assets/4.sP9PzBp7.css","../nodes/5.RovJmk8R.js","../nodes/6.vrBdmqTE.js","../chunks/hp4PFHFv.js","../assets/6.C4C8vBUW.css","../nodes/7.BLozkJCY.js","../nodes/8.BeHRzquW.js","../nodes/9.tDZ3CQE6.js","../assets/9.C5apk4jm.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var H=r=>{throw TypeError(r)};var J=(r,t,e)=>t.has(r)||H("Cannot "+e);var o=(r,t,e)=>(J(r,t,"read from private field"),e?e.call(r):t.get(r)),q=(r,t,e)=>t.has(r)?H("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),G=(r,t,e,n)=>(J(r,t,"write to private field"),n?n.call(r,e):t.set(r,e),e);import{c as T,_ as l}from"../chunks/BsKQRAyX.js";import{k as j,a5 as ot,i as d,af as nt,Q as it,T as ct,p as mt,q as ut,v as _t,e as Q,a9 as dt,f as K,a as P,s as lt,b as v,c as ft,O as R,u as x,d as vt,r as gt,j as ht,t as Et}from"../chunks/C-dTPkQy.js";import{h as yt,m as Pt,u as bt,o as Ot,s as Rt}from"../chunks/BrDK8TTs.js";import"../chunks/CWj6FrbW.js";import{i as k}from"../chunks/CUfDVPpW.js";import{b as D}from"../chunks/aeuWzujc.js";import{p as w}from"../chunks/FawE95CY.js";function At(r){return class extends It{constructor(t){super({component:r,...t})}}}var g,c;class It{constructor(t){q(this,g);q(this,c);var A;var e=new Map,n=(a,s)=>{var f=ct(s,!1,!1);return e.set(a,f),f};const m=new Proxy({...t.props||{},$$events:{}},{get(a,s){return d(e.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===ot?!0:(d(e.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,f){return j(e.get(s)??n(s,f),f),Reflect.set(a,s,f)}});G(this,c,(t.hydrate?yt:Pt)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((A=t==null?void 0:t.props)!=null&&A.$$host)||t.sync===!1)&&nt(),G(this,g,m.$$events);for(const a of Object.keys(o(this,c)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return o(this,c)[a]},set(s){o(this,c)[a]=s},enumerable:!0});o(this,c).$set=a=>{Object.assign(m,a)},o(this,c).$destroy=()=>{bt(o(this,c))}}$set(t){o(this,c).$set(t)}$on(t,e){o(this,g)[t]=o(this,g)[t]||[];const n=(...m)=>e.call(this,...m);return o(this,g)[t].push(n),()=>{o(this,g)[t]=o(this,g)[t].filter(m=>m!==n)}}$destroy(){o(this,c).$destroy()}}g=new WeakMap,c=new WeakMap;const Yt={};var Lt=K('<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=K("<!> <!>",1);function xt(r,t){mt(t,!0);let e=w(t,"components",23,()=>[]),n=w(t,"data_0",3,null),m=w(t,"data_1",3,null),A=w(t,"data_2",3,null);ut(()=>t.stores.page.set(t.page)),_t(()=>{t.stores,t.page,t.constructors,e(),t.form,n(),m(),A(),t.stores.page.notify()});let a=Q(!1),s=Q(!1),f=Q(null);Ot(()=>{const i=t.stores.page.subscribe(()=>{d(a)&&(j(s,!0),dt().then(()=>{j(f,document.title||"untitled page",!0)}))});return j(a,!0),i});const N=x(()=>t.constructors[2]);var Y=Tt(),z=P(Y);{var U=i=>{const h=x(()=>t.constructors[0]);var E=R(),I=P(E);T(I,()=>d(h),(y,b)=>{D(b(y,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(u,kt)=>{var B=R(),$=P(B);{var tt=O=>{const p=x(()=>t.constructors[1]);var L=R(),C=P(L);T(C,()=>d(p),(S,M)=>{D(M(S,{get data(){return m()},get form(){return t.form},get params(){return t.page.params},children:(_,wt)=>{var F=R(),rt=P(F);T(rt,()=>d(N),(at,st)=>{D(st(at,{get data(){return A()},get form(){return t.form},get params(){return t.page.params}}),V=>e()[2]=V,()=>{var V;return(V=e())==null?void 0:V[2]})}),v(_,F)},$$slots:{default:!0}}),_=>e()[1]=_,()=>{var _;return(_=e())==null?void 0:_[1]})}),v(O,L)},et=O=>{const p=x(()=>t.constructors[1]);var L=R(),C=P(L);T(C,()=>d(p),(S,M)=>{D(M(S,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),_=>e()[1]=_,()=>{var _;return(_=e())==null?void 0:_[1]})}),v(O,L)};k($,O=>{t.constructors[2]?O(tt):O(et,!1)})}v(u,B)},$$slots:{default:!0}}),u=>e()[0]=u,()=>{var u;return(u=e())==null?void 0:u[0]})}),v(i,E)},W=i=>{const h=x(()=>t.constructors[0]);var E=R(),I=P(E);T(I,()=>d(h),(y,b)=>{D(b(y,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),u=>e()[0]=u,()=>{var u;return(u=e())==null?void 0:u[0]})}),v(i,E)};k(z,i=>{t.constructors[1]?i(U):i(W,!1)})}var X=lt(z,2);{var Z=i=>{var h=Lt(),E=vt(h);{var I=y=>{var b=ht();Et(()=>Rt(b,d(f))),v(y,b)};k(E,y=>{d(s)&&y(I)})}gt(h),v(i,h)};k(X,i=>{d(a)&&i(Z)})}v(r,Y),ft()}const zt=At(xt),Bt=[()=>l(()=>import("../nodes/0.zcQ-QMcb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>l(()=>import("../nodes/1.BX821K1d.js"),__vite__mapDeps([10,1,11,3,2,12,6,7,8]),import.meta.url),()=>l(()=>import("../nodes/2.4IvNSQft.js"),__vite__mapDeps([13,1,2,3,4,14,15,7,8,6,16,17,18,19,20,21,22,23,24,5,25]),import.meta.url),()=>l(()=>import("../nodes/3.C-B1sGi_.js"),__vite__mapDeps([26,1,2,3,23,4,14,15,24,5,27,28]),import.meta.url),()=>l(()=>import("../nodes/4.C6l0CiJD.js"),__vite__mapDeps([29,1,2,3,4,30,31,15,14,32,7,8,16,17,33,34,21,22,27,18,19,23,24,6,5,35]),import.meta.url),()=>l(()=>import("../nodes/5.RovJmk8R.js"),__vite__mapDeps([36,1,2,3,7,8,6,23,4,14,15,24,5,21,17,22,27]),import.meta.url),()=>l(()=>import("../nodes/6.vrBdmqTE.js"),__vite__mapDeps([37,27,38,8,1,2,3,4,14,15,18,17,19,33,31,16,30,32,7,6,21,22,5,23,24,39]),import.meta.url),()=>l(()=>import("../nodes/7.BLozkJCY.js"),__vite__mapDeps([40,38,8]),import.meta.url),()=>l(()=>import("../nodes/8.BeHRzquW.js"),__vite__mapDeps([41,1,11,3]),import.meta.url),()=>l(()=>import("../nodes/9.tDZ3CQE6.js"),__vite__mapDeps([42,1,11,3,2,4,14,15,12,7,8,20,16,17,30,31,32,34,21,22,27,43]),import.meta.url)],Ft=[],Ht={"/":[3],"/roleplay":[4],"/tests":[5],"/tests/[agent]":[6],"/traces":[7],"/traces/conversations":[8,[2]],"/traces/conversations/[conversationId]/traces":[9,[2]]},Dt={handleError:({error:r})=>{console.error(r)},reroute:()=>{},transport:{}},Vt=Object.fromEntries(Object.entries(Dt.transport).map(([r,t])=>[r,t.decode])),Jt=!1,Kt=(r,t)=>Vt[r](t);export{Kt as decode,Vt as decoders,Ht as dictionary,Jt as hash,Dt as hooks,Yt as matchers,Bt as nodes,zt as root,Ft as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/Dxv8gtYg.js";export{o as load_css,r as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import{o as E,a as _,s as x}from"../chunks/BrDK8TTs.js";import{p as R,f as v,b as m,c as y,k as p,e as C,d as u,s as L,i as f,r as h,t as $}from"../chunks/C-dTPkQy.js";import{i as j}from"../chunks/CUfDVPpW.js";import{s as k}from"../chunks/B2gGEZTS.js";import{p as g}from"../chunks/CZJlygAJ.js";import{g as a}from"../chunks/Dxv8gtYg.js";var I=v(`<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>`),A=v('<main class="h-screen overflow-hidden bg-gray-600"><!> <!></main>');function D(w,c){R(c,!0);let s=C("");function i(e){p(s,e,!0),setTimeout(()=>{p(s,"")},5e3),console.error(e)}k({onAgentSelect:e=>{const r=g.url.pathname.split("/")[1],t=new URLSearchParams(g.url.search).get("step");if(!r||r==="roleplay"){let n=`/roleplay?agent=${encodeURIComponent(e)}`;t&&(n+=`&step=${encodeURIComponent(t)}`),a(n);return}if(r==="tests"){let n=`/tests/${encodeURIComponent(e)}`;t&&(n+=`?step=${encodeURIComponent(t)}`),a(n);return}if(r==="traces"){a("/traces");return}a(`/${r}`)},onError:i}),E(()=>{const e=o=>{var t;console.error(o),i(`Uncaught error: ${((t=o.error)==null?void 0:t.message)||o.message||"Unknown error"}`)},r=o=>{var t;console.error(o),i(`Unhandled promise rejection: ${((t=o.reason)==null?void 0:t.message)||o.reason||"Unknown error"}`)};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",r),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",r)}});var d=A(),l=u(d);_(l,()=>c.children);var b=L(l,2);{var U=e=>{var r=I(),o=u(r,!0);h(r),$(()=>x(o,f(s))),m(e,r)};j(b,e=>{f(s)&&e(U)})}h(d),m(w,d),y()}export{D as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import"../chunks/CInh9KnU.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/C-dTPkQy.js";import{s as p}from"../chunks/BrDK8TTs.js";import{i as x}from"../chunks/BgaIh2D4.js";import{p as m}from"../chunks/CZJlygAJ.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import{o as St,a as kt,s as b}from"../chunks/BrDK8TTs.js";import{m as Ct,p as Pt,e as f,g as Re,f as I,h as Tt,d as s,s as l,t as E,i as t,b as c,c as At,k as o,$ as Lt,a as ve,n as P,j as T,u as ue,r as a,O as Ue}from"../chunks/C-dTPkQy.js";import{i as R}from"../chunks/CUfDVPpW.js";import{b as Ge,s as Qe,e as qe,i as He,I as Nt,c as Dt}from"../chunks/HBgR5qMR.js";import{p as jt}from"../chunks/FawE95CY.js";import{g as A}from"../chunks/Dxv8gtYg.js";import{p as S}from"../chunks/CZJlygAJ.js";import{B as U}from"../chunks/Bf1oCG9-.js";import{I as Et}from"../chunks/I-mny6CH.js";import{T as Mt,p as Je,m as Ft,g as zt}from"../chunks/W8E9z4jl.js";import{T as Bt,a as pe}from"../chunks/Bd7SZbXQ.js";import{A as Ot}from"../chunks/D9h7-Y-f.js";import{g as Rt}from"../chunks/B2gGEZTS.js";async function Ut(v,_,m,g,x){const N=v.target.value;o(_,N,!0),Je(N),m.setSourceId(N),o(g,null),await A("/traces"),await x()}function Gt(v,_,m){const g=v.target.value;o(_,g,!0),o(m,parseInt(t(_),10)||10,!0)}async function Qt(v,_,m,g,x){v==null||v.preventDefault(),v==null||v.stopPropagation(),o(_,""),o(m,[],!0),o(g,null),await x()}var qt=I("<!> <!> <!>",1),Ht=I("<option> </option>"),Jt=I("<option> </option>"),Kt=I('<button type="button" aria-label="Clear search" class="absolute right-2 top-1/2 flex -translate-y-1/2 items-center justify-center rounded p-1 text-rc-gray-200 hover:bg-rc-gray-600 hover:text-rc-gray-100 focus:outline-none"><!></button>'),Vt=I('<p class="py-8 text-center text-rc-gray-200">Loading...</p>'),Wt=I('<p class="py-8 text-center text-rc-gray-300">No conversations found</p>'),Xt=(v,_,m)=>_(t(m),v),Yt=I('<li><div class="flex w-full flex-col gap-2"><div class="flex w-full items-center justify-between"><div class="text-gray-300"> </div> <div class="flex items-center gap-2"><span class="text-xs text-rc-gray-300"> </span> <span class="font-semibold text-rc-gray-100"> </span></div></div> <div class="flex items-center justify-between gap-4"><div class="text-sm"><span class="text-rc-gray-200">Conversation Id:</span> <span class="text-rc-green-200"> </span></div> <p class="text-sm text-gray-400"> </p></div></div></li>'),Zt=I('<ul class="space-y-2"></ul>'),er=v=>v.stopPropagation(),tr=I('<div class="flex h-screen"><!> <div class="flex h-full min-w-0 flex-1 flex-col bg-rc-gray-980 pb-3 pr-4 pt-2"><nav class="mb-3 flex h-14 flex-none items-center justify-between bg-rc-gray-980"><div class="flex items-center"><!></div> <div class="flex items-center gap-4"><div class="flex-1"><label class="block"><div class="flex gap-2"><select class="select svelte-1uk1thp" aria-label="Telescope source"><!></select> <div class="relative"><!><!></div> <!></div></label></div> <div class="hidden items-center gap-2"><div class="text-rc-gray-200">Sort:</div> <!></div> <div class="hidden items-center gap-2"><div class="text-rc-gray-200">Page size:</div> <select class="rounded-sm border border-rc-gray-300 bg-rc-gray-700 p-2 pr-8 text-rc-gray-100"><option>5</option><option>10</option><option>20</option><option>50</option></select></div> <div class="flex items-center gap-3"><div class="flex items-center gap-2"><!> <!> <div class="text-sm text-rc-gray-200"> </div></div></div></div> <div class="ml-3"><span class="text-gray-400">API Mode:</span> <span class="font-semibold text-rc-green-200"> </span></div></nav> <main class="flex flex-1 gap-1 overflow-hidden border-thin border-rc-gray-300/40"><div class="flex h-full w-1/3 flex-col border-r-thin border-r-rc-gray-300 bg-rc-gray-800"><div class="flex-none border-b border-rc-gray-300/40 p-4"><h2 class="text-lg font-semibold text-rc-gray-100">Conversations</h2></div> <div class="rc-scroll flex-1 overflow-scroll px-3 py-4"><!></div></div> <div class="flex h-full w-2/3 flex-col bg-rc-gray-980"><!></div></main></div></div>');function _r(v,_){Pt(_,!0);const m=new Mt(fetch);let g=f(void 0),x=f(null),N=f(""),D=f(""),G=f(10),Q=f("10"),M=f(!0),w=f(Re([])),k=f(null),F=f(!1),q=f(null),fe=f(0),$=f(Re([])),j=f(""),z=f(!1),H=f(null),ge=jt(_,"useMock",3,!1);const{onError:Ke}=Rt();function Ve(e){return new Date(e).toLocaleString()}function We(e){const r=Math.floor(e/60),n=e%60;return`${r}:${String(n).padStart(2,"0")}`}async function Xe(e,r=t(G),n){return ge()?Ft.fetchConversations(r,e,n??void 0):m.getConversations({phoneNumber:e,limit:Number(r),lastConversationId:n??void 0})}async function B(){o(w,[],!0),o(k,null),await J()}async function Ye(){o(z,!0),o(H,null);try{const e=await fetch("/traces/api/sources");if(!e.ok)throw new Error(`Failed to load sources (${e.status})`);const r=await e.json(),n=Array.isArray(r)?r:[];if(o($,n.filter(i=>i&&typeof i.id=="string"&&typeof i.label=="string"),!0),!t($).length)throw new Error("No sources returned");const d=zt(),h=d&&t($).some(i=>i.id===d)?d:t($)[0].id;o(j,h,!0),Je(h),m.setSourceId(h)}catch(e){console.error("Failed to load Telescope sources:",e),o(H,(e==null?void 0:e.message)??"Failed to load Telescope sources",!0),o($,[],!0),o(j,""),m.setSourceId(void 0)}finally{o(z,!1)}}async function J(){o(F,!0),o(q,null);try{const e=await Xe(t(D)||void 0,t(G),t(k)??void 0);let r=Array.isArray(e.items)?e.items.slice():[];r=r.filter(n=>!!(n!=null&&n.phoneNumber)),o(g,{limit:e.limit,items:r,lastConversationId:e.lastConversationId},!0),o(fe,r.length,!0),o(k,e.lastConversationId??null,!0),o(F,!1)}catch(e){o(F,!1),o(q,e.message||"Unknown error",!0),Ke(`Error loading conversations: ${t(q)}`),console.error("Load page error:",e)}}async function Ze(){var e;(e=t(g))!=null&&e.lastConversationId&&(t(w).push(t(g).lastConversationId),o(k,t(g).lastConversationId,!0),await J())}async function et(){t(w).length&&(t(w).pop(),o(k,t(w).length?t(w)[t(w).length-1]:null,!0),await J())}function tt(){var e;o(M,!t(M)),(e=t(g))!=null&&e.items&&t(g).items.sort((r,n)=>t(M)?n.createdAt-r.createdAt:r.createdAt-n.createdAt)}async function rt(e,r){var d;if(r==null||r.stopPropagation(),S.params.conversationId&&S.params.conversationId===e.conversationId||!S.params.conversationId&&((d=t(x))==null?void 0:d.conversationId)===e.conversationId){o(x,null),await A("/traces");return}o(x,e,!0),await A(`/traces/conversations/${e.conversationId}/traces`)}async function _e(){await B()}const me=ue(()=>S.url.pathname.split("/")[1]);function at({value:e}){if(e!==t(me)){if(e==="roleplay")return A("/roleplay");if(e==="tests")return A("/tests");if(e==="traces")return A("/traces");A("/"+e)}}St(()=>{const e=new URLSearchParams(window.location.search);o(N,e.get("agent")??"",!0),(async()=>(await Ye(),await B()))()});var K=tr();Tt(e=>{Lt.title="Bosun: Telescope"});var he=s(K);Ot(he,{agents:[],currentAgent:"",onSelect:()=>{},showAgents:!1,className:"flex-none border-r-thin border-r-rc-gray-600"});var xe=l(he,2),V=s(xe),W=s(V),st=s(W);Bt(st,{get value(){return t(me)},ariaLabel:"Top tabs",onChange:at,children:(e,r)=>{var n=qt(),d=ve(n);pe(d,{value:"roleplay",children:(u,y)=>{P();var p=T("Roleplay");c(u,p)},$$slots:{default:!0}});var h=l(d,2);pe(h,{value:"tests",children:(u,y)=>{P();var p=T("Tests");c(u,p)},$$slots:{default:!0}});var i=l(h,2);pe(i,{value:"traces",children:(u,y)=>{P();var p=T("Traces");c(u,p)},$$slots:{default:!0}}),c(e,n)},$$slots:{default:!0}}),a(W);var X=l(W,2),Y=s(X),ye=s(Y),be=s(ye),C=s(be);C.__change=[Ut,j,m,x,B];var ot=s(C);{var nt=e=>{var r=Ue(),n=ve(r);qe(n,17,()=>t($),He,(d,h)=>{var i=Ht(),u=s(i,!0);a(i);var y={};E(()=>{b(u,t(h).label),y!==(y=t(h).id)&&(i.value=(i.__value=t(h).id)??"")}),c(d,i)}),c(e,r)},lt=e=>{var r=Jt(),n=s(r,!0);a(r),r.value=r.__value="",E(()=>b(n,t(z)?"Loading…":"No sources")),c(e,r)};R(ot,e=>{t($).length?e(nt):e(lt,!1)})}a(C);var Z=l(C,2),we=s(Z);Et(we,{class:"w-56 rounded-r-none !border !border-rc-gray-500 !p-2 !pr-8 hover:border-rc-gray-400",placeholder:"Search by phone...",onkeydown:e=>{e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),_e())},get value(){return t(D)},set value(e){o(D,e,!0)}});var it=l(we);{var ct=e=>{var r=Kt();r.__click=[Qt,D,w,k,B];var n=s(r);Nt(n,{name:"close",width:18,height:18}),a(r),c(e,r)};R(it,e=>{t(D)&&e(ct)})}a(Z);var dt=l(Z,2);U(dt,{onclick:_e,children:(e,r)=>{P();var n=T("Search");c(e,n)},$$slots:{default:!0}}),a(be),a(ye),a(Y);var ee=l(Y,2),vt=l(s(ee),2);U(vt,{onclick:tt,children:(e,r)=>{P();var n=T();E(()=>b(n,t(M)?"Newest first":"Oldest first")),c(e,n)},$$slots:{default:!0}}),a(ee);var te=l(ee,2),O=l(s(te),2);O.__change=[Gt,Q,G];var re=s(O);re.value=re.__value="5";var ae=l(re);ae.value=ae.__value="10";var se=l(ae);se.value=se.__value="20";var Ie=l(se);Ie.value=Ie.__value="50",a(O),a(te);var $e=l(te,2),Se=s($e),ke=s(Se);{let e=ue(()=>t(w).length===0&&!t(k));U(ke,{onclick:et,get disabled(){return t(e)},children:(r,n)=>{P();var d=T("Prev");c(r,d)},$$slots:{default:!0}})}var Ce=l(ke,2);{let e=ue(()=>{var r;return!((r=t(g))!=null&&r.items.length)});U(Ce,{onclick:Ze,get disabled(){return t(e)},children:(r,n)=>{P();var d=T("Next");c(r,d)},$$slots:{default:!0}})}var Pe=l(Ce,2),ut=s(Pe);a(Pe),a(Se),a($e),a(X);var Te=l(X,2),Ae=l(s(Te),2),pt=s(Ae,!0);a(Ae),a(Te),a(V);var Le=l(V,2),oe=s(Le),Ne=l(s(oe),2),ft=s(Ne);{var gt=e=>{var r=Vt();c(e,r)},_t=e=>{var r=Ue(),n=ve(r);{var d=i=>{var u=Wt();c(i,u)},h=i=>{var u=Zt();qe(u,21,()=>t(g).items,He,(y,p)=>{var L=Yt();L.__click=[Xt,rt,p];var De=s(L),le=s(De),ie=s(le),ht=s(ie,!0);a(ie);var je=l(ie,2),ce=s(je),xt=s(ce,!0);a(ce);var Ee=l(ce,2),yt=s(Ee,!0);a(Ee),a(je),a(le);var Me=l(le,2),de=s(Me),Fe=l(s(de),2),bt=s(Fe,!0);a(Fe),a(de);var ze=l(de,2),wt=s(ze);a(ze),a(Me),a(De),a(L),E((It,$t)=>{var Be,Oe;Dt(L,1,`cursor-pointer rounded-lg border border-rc-gray-300 p-3 transition-colors ${(S.params.conversationId?t(p).conversationId===S.params.conversationId:t(p).conversationId===((Be=t(x))==null?void 0:Be.conversationId))?"bg-rc-gray-600":"bg-rc-gray-700"}`,"svelte-1uk1thp"),Qe(L,"aria-selected",S.params.conversationId?t(p).conversationId===S.params.conversationId:t(p).conversationId===((Oe=t(x))==null?void 0:Oe.conversationId)),b(ht,It),b(xt,t(p).medium),b(yt,t(p).phoneNumber),b(bt,t(p).conversationId),b(wt,`Duration: ${$t??""}`)},[()=>Ve(t(p).createdAt),()=>We(t(p).duration??0)]),c(y,L)}),a(u),c(i,u)};R(n,i=>{var u,y;(y=(u=t(g))==null?void 0:u.items)!=null&&y.length?i(h,!1):i(d)},!0)}c(e,r)};R(ft,e=>{t(F)?e(gt):e(_t,!1)})}a(Ne),a(oe);var ne=l(oe,2);ne.__click=[er];var mt=s(ne);kt(mt,()=>_.children),a(ne),a(Le),a(xe),a(K),E(()=>{C.disabled=t(z)||!t($).length,Qe(C,"title",t(H)??"Telescope source"),b(ut,`Items: ${t(fe)??""}`),b(pt,ge()?"Mock (local)":"Live")}),Ge(C,()=>t(j),e=>o(j,e)),Ge(O,()=>t(Q),e=>o(Q,e)),c(v,K),At()}Ct(["change","click"]);export{_r as component};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/DaRvw8c-.js","../chunks/BsKQRAyX.js","../chunks/C-dTPkQy.js","../chunks/BrDK8TTs.js","../assets/editor.BMIWPGx3.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Pn=Object.defineProperty;var Rn=(a,t,n)=>t in a?Pn(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n;var Se=(a,t,n)=>Rn(a,typeof t!="symbol"?t+"":t,n);import"../chunks/CWj6FrbW.js";import{o as ft,a as yn,s as Ke,c as Bn}from"../chunks/BrDK8TTs.js";import{p as tt,v as Ue,i as L,e as ge,f as xe,d as fe,r as ae,k as J,b as ce,c as nt,O as _t,a as Ie,t as Ce,s as ye,u as Oe,m as Et,g as lt,n as Ve,j as Ge,ag as Vt,h as In,$ as Fn}from"../chunks/C-dTPkQy.js";import{i as Ne}from"../chunks/CUfDVPpW.js";import{k as Mn,M as Dn}from"../chunks/BFOPpRqC.js";import{s as Gt,d as bn,I as Yt,c as ze,e as gt,i as Bt,f as Kn}from"../chunks/HBgR5qMR.js";import{g as Lt,r as jn}from"../chunks/Dxv8gtYg.js";import{B as $e}from"../chunks/Bf1oCG9-.js";import{p as Ae}from"../chunks/FawE95CY.js";import{b as et}from"../chunks/aeuWzujc.js";import{P as It,C as $n}from"../chunks/D8e5qIiS.js";import{c as St,i as on,C as Un,d as an,b as Vn,e as At,a as Wn,f as Ct,g as Hn,h as zn,j as Gn}from"../chunks/WkRHaFaq.js";import{I as sn}from"../chunks/I-mny6CH.js";import{t as Ft}from"../chunks/BEJ5fU19.js";import{_ as _n}from"../chunks/BsKQRAyX.js";import{A as Yn}from"../chunks/D9h7-Y-f.js";import{p as Wt}from"../chunks/CZJlygAJ.js";import{T as qn,a as Ht}from"../chunks/Bd7SZbXQ.js";import{g as Jn}from"../chunks/B2gGEZTS.js";var Pe="top",Me="bottom",De="right",Re="left",Xt="auto",kt=[Pe,Me,De,Re],pt="start",wt="end",Xn="clippingParents",wn="viewport",mt="popper",Zn="reference",ln=kt.reduce(function(a,t){return a.concat([t+"-"+pt,t+"-"+wt])},[]),xn=[].concat(kt,[Xt]).reduce(function(a,t){return a.concat([t,t+"-"+pt,t+"-"+wt])},[]),Qn="beforeRead",er="read",tr="afterRead",nr="beforeMain",rr="main",ir="afterMain",or="beforeWrite",ar="write",sr="afterWrite",lr=[Qn,er,tr,nr,rr,ir,or,ar,sr];function He(a){return a?(a.nodeName||"").toLowerCase():null}function Be(a){if(a==null)return window;if(a.toString()!=="[object Window]"){var t=a.ownerDocument;return t&&t.defaultView||window}return a}function ut(a){var t=Be(a).Element;return a instanceof t||a instanceof Element}function Fe(a){var t=Be(a).HTMLElement;return a instanceof t||a instanceof HTMLElement}function Zt(a){if(typeof ShadowRoot>"u")return!1;var t=Be(a).ShadowRoot;return a instanceof t||a instanceof ShadowRoot}function cr(a){var t=a.state;Object.keys(t.elements).forEach(function(n){var g=t.styles[n]||{},d=t.attributes[n]||{},c=t.elements[n];!Fe(c)||!He(c)||(Object.assign(c.style,g),Object.keys(d).forEach(function(w){var s=d[w];s===!1?c.removeAttribute(w):c.setAttribute(w,s===!0?"":s)}))})}function ur(a){var t=a.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(g){var d=t.elements[g],c=t.attributes[g]||{},w=Object.keys(t.styles.hasOwnProperty(g)?t.styles[g]:n[g]),s=w.reduce(function(h,p){return h[p]="",h},{});!Fe(d)||!He(d)||(Object.assign(d.style,s),Object.keys(c).forEach(function(h){d.removeAttribute(h)}))})}}const fr={name:"applyStyles",enabled:!0,phase:"write",fn:cr,effect:ur,requires:["computeStyles"]};function We(a){return a.split("-")[0]}var ct=Math.max,Mt=Math.min,ht=Math.round;function qt(){var a=navigator.userAgentData;return a!=null&&a.brands&&Array.isArray(a.brands)?a.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function En(){return!/^((?!chrome|android).)*safari/i.test(qt())}function dt(a,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var g=a.getBoundingClientRect(),d=1,c=1;t&&Fe(a)&&(d=a.offsetWidth>0&&ht(g.width)/a.offsetWidth||1,c=a.offsetHeight>0&&ht(g.height)/a.offsetHeight||1);var w=ut(a)?Be(a):window,s=w.visualViewport,h=!En()&&n,p=(g.left+(h&&s?s.offsetLeft:0))/d,_=(g.top+(h&&s?s.offsetTop:0))/c,I=g.width/d,R=g.height/c;return{width:I,height:R,top:_,right:p+I,bottom:_+R,left:p,x:p,y:_}}function Qt(a){var t=dt(a),n=a.offsetWidth,g=a.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-g)<=1&&(g=t.height),{x:a.offsetLeft,y:a.offsetTop,width:n,height:g}}function kn(a,t){var n=t.getRootNode&&t.getRootNode();if(a.contains(t))return!0;if(n&&Zt(n)){var g=t;do{if(g&&a.isSameNode(g))return!0;g=g.parentNode||g.host}while(g)}return!1}function Ye(a){return Be(a).getComputedStyle(a)}function pr(a){return["table","td","th"].indexOf(He(a))>=0}function rt(a){return((ut(a)?a.ownerDocument:a.document)||window.document).documentElement}function Kt(a){return He(a)==="html"?a:a.assignedSlot||a.parentNode||(Zt(a)?a.host:null)||rt(a)}function cn(a){return!Fe(a)||Ye(a).position==="fixed"?null:a.offsetParent}function hr(a){var t=/firefox/i.test(qt()),n=/Trident/i.test(qt());if(n&&Fe(a)){var g=Ye(a);if(g.position==="fixed")return null}var d=Kt(a);for(Zt(d)&&(d=d.host);Fe(d)&&["html","body"].indexOf(He(d))<0;){var c=Ye(d);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||t&&c.willChange==="filter"||t&&c.filter&&c.filter!=="none")return d;d=d.parentNode}return null}function Ot(a){for(var t=Be(a),n=cn(a);n&&pr(n)&&Ye(n).position==="static";)n=cn(n);return n&&(He(n)==="html"||He(n)==="body"&&Ye(n).position==="static")?t:n||hr(a)||t}function en(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function yt(a,t,n){return ct(a,Mt(t,n))}function dr(a,t,n){var g=yt(a,t,n);return g>n?n:g}function On(){return{top:0,right:0,bottom:0,left:0}}function Tn(a){return Object.assign({},On(),a)}function Ln(a,t){return t.reduce(function(n,g){return n[g]=a,n},{})}var vr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tn(typeof t!="number"?t:Ln(t,kt))};function mr(a){var t,n=a.state,g=a.name,d=a.options,c=n.elements.arrow,w=n.modifiersData.popperOffsets,s=We(n.placement),h=en(s),p=[Re,De].indexOf(s)>=0,_=p?"height":"width";if(!(!c||!w)){var I=vr(d.padding,n),R=Qt(c),S=h==="y"?Pe:Re,k=h==="y"?Me:De,T=n.rects.reference[_]+n.rects.reference[h]-w[h]-n.rects.popper[_],e=w[h]-n.rects.reference[h],i=Ot(c),o=i?h==="y"?i.clientHeight||0:i.clientWidth||0:0,b=T/2-e/2,v=I[S],y=o-R[_]-I[k],r=o/2-R[_]/2+b,l=yt(v,r,y),m=h;n.modifiersData[g]=(t={},t[m]=l,t.centerOffset=l-r,t)}}function gr(a){var t=a.state,n=a.options,g=n.element,d=g===void 0?"[data-popper-arrow]":g;d!=null&&(typeof d=="string"&&(d=t.elements.popper.querySelector(d),!d)||kn(t.elements.popper,d)&&(t.elements.arrow=d))}const yr={name:"arrow",enabled:!0,phase:"main",fn:mr,effect:gr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(a){return a.split("-")[1]}var br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _r(a,t){var n=a.x,g=a.y,d=t.devicePixelRatio||1;return{x:ht(n*d)/d||0,y:ht(g*d)/d||0}}function un(a){var t,n=a.popper,g=a.popperRect,d=a.placement,c=a.variation,w=a.offsets,s=a.position,h=a.gpuAcceleration,p=a.adaptive,_=a.roundOffsets,I=a.isFixed,R=w.x,S=R===void 0?0:R,k=w.y,T=k===void 0?0:k,e=typeof _=="function"?_({x:S,y:T}):{x:S,y:T};S=e.x,T=e.y;var i=w.hasOwnProperty("x"),o=w.hasOwnProperty("y"),b=Re,v=Pe,y=window;if(p){var r=Ot(n),l="clientHeight",m="clientWidth";if(r===Be(n)&&(r=rt(n),Ye(r).position!=="static"&&s==="absolute"&&(l="scrollHeight",m="scrollWidth")),r=r,d===Pe||(d===Re||d===De)&&c===wt){v=Me;var u=I&&r===y&&y.visualViewport?y.visualViewport.height:r[l];T-=u-g.height,T*=h?1:-1}if(d===Re||(d===Pe||d===Me)&&c===wt){b=De;var f=I&&r===y&&y.visualViewport?y.visualViewport.width:r[m];S-=f-g.width,S*=h?1:-1}}var E=Object.assign({position:s},p&&br),x=_===!0?_r({x:S,y:T},Be(n)):{x:S,y:T};if(S=x.x,T=x.y,h){var P;return Object.assign({},E,(P={},P[v]=o?"0":"",P[b]=i?"0":"",P.transform=(y.devicePixelRatio||1)<=1?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",P))}return Object.assign({},E,(t={},t[v]=o?T+"px":"",t[b]=i?S+"px":"",t.transform="",t))}function wr(a){var t=a.state,n=a.options,g=n.gpuAcceleration,d=g===void 0?!0:g,c=n.adaptive,w=c===void 0?!0:c,s=n.roundOffsets,h=s===void 0?!0:s,p={placement:We(t.placement),variation:vt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:d,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,un(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:w,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,un(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wr,data:{}};var Nt={passive:!0};function Er(a){var t=a.state,n=a.instance,g=a.options,d=g.scroll,c=d===void 0?!0:d,w=g.resize,s=w===void 0?!0:w,h=Be(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&p.forEach(function(_){_.addEventListener("scroll",n.update,Nt)}),s&&h.addEventListener("resize",n.update,Nt),function(){c&&p.forEach(function(_){_.removeEventListener("scroll",n.update,Nt)}),s&&h.removeEventListener("resize",n.update,Nt)}}const kr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Er,data:{}};var Or={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(a){return a.replace(/left|right|bottom|top/g,function(t){return Or[t]})}var Tr={start:"end",end:"start"};function fn(a){return a.replace(/start|end/g,function(t){return Tr[t]})}function tn(a){var t=Be(a),n=t.pageXOffset,g=t.pageYOffset;return{scrollLeft:n,scrollTop:g}}function nn(a){return dt(rt(a)).left+tn(a).scrollLeft}function Lr(a,t){var n=Be(a),g=rt(a),d=n.visualViewport,c=g.clientWidth,w=g.clientHeight,s=0,h=0;if(d){c=d.width,w=d.height;var p=En();(p||!p&&t==="fixed")&&(s=d.offsetLeft,h=d.offsetTop)}return{width:c,height:w,x:s+nn(a),y:h}}function Sr(a){var t,n=rt(a),g=tn(a),d=(t=a.ownerDocument)==null?void 0:t.body,c=ct(n.scrollWidth,n.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),w=ct(n.scrollHeight,n.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),s=-g.scrollLeft+nn(a),h=-g.scrollTop;return Ye(d||n).direction==="rtl"&&(s+=ct(n.clientWidth,d?d.clientWidth:0)-c),{width:c,height:w,x:s,y:h}}function rn(a){var t=Ye(a),n=t.overflow,g=t.overflowX,d=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+d+g)}function Sn(a){return["html","body","#document"].indexOf(He(a))>=0?a.ownerDocument.body:Fe(a)&&rn(a)?a:Sn(Kt(a))}function bt(a,t){var n;t===void 0&&(t=[]);var g=Sn(a),d=g===((n=a.ownerDocument)==null?void 0:n.body),c=Be(g),w=d?[c].concat(c.visualViewport||[],rn(g)?g:[]):g,s=t.concat(w);return d?s:s.concat(bt(Kt(w)))}function Jt(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function Ar(a,t){var n=dt(a,!1,t==="fixed");return n.top=n.top+a.clientTop,n.left=n.left+a.clientLeft,n.bottom=n.top+a.clientHeight,n.right=n.left+a.clientWidth,n.width=a.clientWidth,n.height=a.clientHeight,n.x=n.left,n.y=n.top,n}function pn(a,t,n){return t===wn?Jt(Lr(a,n)):ut(t)?Ar(t,n):Jt(Sr(rt(a)))}function Cr(a){var t=bt(Kt(a)),n=["absolute","fixed"].indexOf(Ye(a).position)>=0,g=n&&Fe(a)?Ot(a):a;return ut(g)?t.filter(function(d){return ut(d)&&kn(d,g)&&He(d)!=="body"}):[]}function Nr(a,t,n,g){var d=t==="clippingParents"?Cr(a):[].concat(t),c=[].concat(d,[n]),w=c[0],s=c.reduce(function(h,p){var _=pn(a,p,g);return h.top=ct(_.top,h.top),h.right=Mt(_.right,h.right),h.bottom=Mt(_.bottom,h.bottom),h.left=ct(_.left,h.left),h},pn(a,w,g));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function An(a){var t=a.reference,n=a.element,g=a.placement,d=g?We(g):null,c=g?vt(g):null,w=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,h;switch(d){case Pe:h={x:w,y:t.y-n.height};break;case Me:h={x:w,y:t.y+t.height};break;case De:h={x:t.x+t.width,y:s};break;case Re:h={x:t.x-n.width,y:s};break;default:h={x:t.x,y:t.y}}var p=d?en(d):null;if(p!=null){var _=p==="y"?"height":"width";switch(c){case pt:h[p]=h[p]-(t[_]/2-n[_]/2);break;case wt:h[p]=h[p]+(t[_]/2-n[_]/2);break}}return h}function xt(a,t){t===void 0&&(t={});var n=t,g=n.placement,d=g===void 0?a.placement:g,c=n.strategy,w=c===void 0?a.strategy:c,s=n.boundary,h=s===void 0?Xn:s,p=n.rootBoundary,_=p===void 0?wn:p,I=n.elementContext,R=I===void 0?mt:I,S=n.altBoundary,k=S===void 0?!1:S,T=n.padding,e=T===void 0?0:T,i=Tn(typeof e!="number"?e:Ln(e,kt)),o=R===mt?Zn:mt,b=a.rects.popper,v=a.elements[k?o:R],y=Nr(ut(v)?v:v.contextElement||rt(a.elements.popper),h,_,w),r=dt(a.elements.reference),l=An({reference:r,element:b,placement:d}),m=Jt(Object.assign({},b,l)),u=R===mt?m:r,f={top:y.top-u.top+i.top,bottom:u.bottom-y.bottom+i.bottom,left:y.left-u.left+i.left,right:u.right-y.right+i.right},E=a.modifiersData.offset;if(R===mt&&E){var x=E[d];Object.keys(f).forEach(function(P){var M=[De,Me].indexOf(P)>=0?1:-1,F=[Pe,Me].indexOf(P)>=0?"y":"x";f[P]+=x[F]*M})}return f}function Pr(a,t){t===void 0&&(t={});var n=t,g=n.placement,d=n.boundary,c=n.rootBoundary,w=n.padding,s=n.flipVariations,h=n.allowedAutoPlacements,p=h===void 0?xn:h,_=vt(g),I=_?s?ln:ln.filter(function(k){return vt(k)===_}):kt,R=I.filter(function(k){return p.indexOf(k)>=0});R.length===0&&(R=I);var S=R.reduce(function(k,T){return k[T]=xt(a,{placement:T,boundary:d,rootBoundary:c,padding:w})[We(T)],k},{});return Object.keys(S).sort(function(k,T){return S[k]-S[T]})}function Rr(a){if(We(a)===Xt)return[];var t=Rt(a);return[fn(a),t,fn(t)]}function Br(a){var t=a.state,n=a.options,g=a.name;if(!t.modifiersData[g]._skip){for(var d=n.mainAxis,c=d===void 0?!0:d,w=n.altAxis,s=w===void 0?!0:w,h=n.fallbackPlacements,p=n.padding,_=n.boundary,I=n.rootBoundary,R=n.altBoundary,S=n.flipVariations,k=S===void 0?!0:S,T=n.allowedAutoPlacements,e=t.options.placement,i=We(e),o=i===e,b=h||(o||!k?[Rt(e)]:Rr(e)),v=[e].concat(b).reduce(function(oe,ne){return oe.concat(We(ne)===Xt?Pr(t,{placement:ne,boundary:_,rootBoundary:I,padding:p,flipVariations:k,allowedAutoPlacements:T}):ne)},[]),y=t.rects.reference,r=t.rects.popper,l=new Map,m=!0,u=v[0],f=0;f<v.length;f++){var E=v[f],x=We(E),P=vt(E)===pt,M=[Pe,Me].indexOf(x)>=0,F=M?"width":"height",K=xt(t,{placement:E,boundary:_,rootBoundary:I,altBoundary:R,padding:p}),$=M?P?De:Re:P?Me:Pe;y[F]>r[F]&&($=Rt($));var A=Rt($),O=[];if(c&&O.push(K[x]<=0),s&&O.push(K[$]<=0,K[A]<=0),O.every(function(oe){return oe})){u=E,m=!1;break}l.set(E,O)}if(m)for(var B=k?3:1,V=function(ne){var de=v.find(function(be){var D=l.get(be);if(D)return D.slice(0,ne).every(function(X){return X})});if(de)return u=de,"break"},U=B;U>0;U--){var ee=V(U);if(ee==="break")break}t.placement!==u&&(t.modifiersData[g]._skip=!0,t.placement=u,t.reset=!0)}}const Ir={name:"flip",enabled:!0,phase:"main",fn:Br,requiresIfExists:["offset"],data:{_skip:!1}};function hn(a,t,n){return n===void 0&&(n={x:0,y:0}),{top:a.top-t.height-n.y,right:a.right-t.width+n.x,bottom:a.bottom-t.height+n.y,left:a.left-t.width-n.x}}function dn(a){return[Pe,De,Me,Re].some(function(t){return a[t]>=0})}function Fr(a){var t=a.state,n=a.name,g=t.rects.reference,d=t.rects.popper,c=t.modifiersData.preventOverflow,w=xt(t,{elementContext:"reference"}),s=xt(t,{altBoundary:!0}),h=hn(w,g),p=hn(s,d,c),_=dn(h),I=dn(p);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:p,isReferenceHidden:_,hasPopperEscaped:I},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":I})}const Mr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fr};function Dr(a,t,n){var g=We(a),d=[Re,Pe].indexOf(g)>=0?-1:1,c=typeof n=="function"?n(Object.assign({},t,{placement:a})):n,w=c[0],s=c[1];return w=w||0,s=(s||0)*d,[Re,De].indexOf(g)>=0?{x:s,y:w}:{x:w,y:s}}function Kr(a){var t=a.state,n=a.options,g=a.name,d=n.offset,c=d===void 0?[0,0]:d,w=xn.reduce(function(_,I){return _[I]=Dr(I,t.rects,c),_},{}),s=w[t.placement],h=s.x,p=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=p),t.modifiersData[g]=w}const jr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kr};function $r(a){var t=a.state,n=a.name;t.modifiersData[n]=An({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ur={name:"popperOffsets",enabled:!0,phase:"read",fn:$r,data:{}};function Vr(a){return a==="x"?"y":"x"}function Wr(a){var t=a.state,n=a.options,g=a.name,d=n.mainAxis,c=d===void 0?!0:d,w=n.altAxis,s=w===void 0?!1:w,h=n.boundary,p=n.rootBoundary,_=n.altBoundary,I=n.padding,R=n.tether,S=R===void 0?!0:R,k=n.tetherOffset,T=k===void 0?0:k,e=xt(t,{boundary:h,rootBoundary:p,padding:I,altBoundary:_}),i=We(t.placement),o=vt(t.placement),b=!o,v=en(i),y=Vr(v),r=t.modifiersData.popperOffsets,l=t.rects.reference,m=t.rects.popper,u=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,f=typeof u=="number"?{mainAxis:u,altAxis:u}:Object.assign({mainAxis:0,altAxis:0},u),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(r){if(c){var P,M=v==="y"?Pe:Re,F=v==="y"?Me:De,K=v==="y"?"height":"width",$=r[v],A=$+e[M],O=$-e[F],B=S?-m[K]/2:0,V=o===pt?l[K]:m[K],U=o===pt?-m[K]:-l[K],ee=t.elements.arrow,oe=S&&ee?Qt(ee):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:On(),de=ne[M],be=ne[F],D=yt(0,l[K],oe[K]),X=b?l[K]/2-B-D-de-f.mainAxis:V-D-de-f.mainAxis,H=b?-l[K]/2+B+D+be+f.mainAxis:U+D+be+f.mainAxis,z=t.elements.arrow&&Ot(t.elements.arrow),q=z?v==="y"?z.clientTop||0:z.clientLeft||0:0,le=(P=E==null?void 0:E[v])!=null?P:0,_e=$+X-le-q,me=$+H-le,Le=yt(S?Mt(A,_e):A,$,S?ct(O,me):O);r[v]=Le,x[v]=Le-$}if(s){var C,j=v==="x"?Pe:Re,Z=v==="x"?Me:De,N=r[y],W=y==="y"?"height":"width",Y=N+e[j],ie=N-e[Z],G=[Pe,Re].indexOf(i)!==-1,Q=(C=E==null?void 0:E[y])!=null?C:0,he=G?Y:N-l[W]-m[W]-Q+f.altAxis,se=G?N+l[W]+m[W]-Q-f.altAxis:ie,we=S&&G?dr(he,N,se):yt(S?he:Y,N,S?se:ie);r[y]=we,x[y]=we-N}t.modifiersData[g]=x}}const Hr={name:"preventOverflow",enabled:!0,phase:"main",fn:Wr,requiresIfExists:["offset"]};function zr(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}function Gr(a){return a===Be(a)||!Fe(a)?tn(a):zr(a)}function Yr(a){var t=a.getBoundingClientRect(),n=ht(t.width)/a.offsetWidth||1,g=ht(t.height)/a.offsetHeight||1;return n!==1||g!==1}function qr(a,t,n){n===void 0&&(n=!1);var g=Fe(t),d=Fe(t)&&Yr(t),c=rt(t),w=dt(a,d,n),s={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(g||!g&&!n)&&((He(t)!=="body"||rn(c))&&(s=Gr(t)),Fe(t)?(h=dt(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):c&&(h.x=nn(c))),{x:w.left+s.scrollLeft-h.x,y:w.top+s.scrollTop-h.y,width:w.width,height:w.height}}function Jr(a){var t=new Map,n=new Set,g=[];a.forEach(function(c){t.set(c.name,c)});function d(c){n.add(c.name);var w=[].concat(c.requires||[],c.requiresIfExists||[]);w.forEach(function(s){if(!n.has(s)){var h=t.get(s);h&&d(h)}}),g.push(c)}return a.forEach(function(c){n.has(c.name)||d(c)}),g}function Xr(a){var t=Jr(a);return lr.reduce(function(n,g){return n.concat(t.filter(function(d){return d.phase===g}))},[])}function Zr(a){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(a())})})),t}}function Qr(a){var t=a.reduce(function(n,g){var d=n[g.name];return n[g.name]=d?Object.assign({},d,g,{options:Object.assign({},d.options,g.options),data:Object.assign({},d.data,g.data)}):g,n},{});return Object.keys(t).map(function(n){return t[n]})}var vn={placement:"bottom",modifiers:[],strategy:"absolute"};function mn(){for(var a=arguments.length,t=new Array(a),n=0;n<a;n++)t[n]=arguments[n];return!t.some(function(g){return!(g&&typeof g.getBoundingClientRect=="function")})}function ei(a){a===void 0&&(a={});var t=a,n=t.defaultModifiers,g=n===void 0?[]:n,d=t.defaultOptions,c=d===void 0?vn:d;return function(s,h,p){p===void 0&&(p=c);var _={placement:"bottom",orderedModifiers:[],options:Object.assign({},vn,c),modifiersData:{},elements:{reference:s,popper:h},attributes:{},styles:{}},I=[],R=!1,S={state:_,setOptions:function(i){var o=typeof i=="function"?i(_.options):i;T(),_.options=Object.assign({},c,_.options,o),_.scrollParents={reference:ut(s)?bt(s):s.contextElement?bt(s.contextElement):[],popper:bt(h)};var b=Xr(Qr([].concat(g,_.options.modifiers)));return _.orderedModifiers=b.filter(function(v){return v.enabled}),k(),S.update()},forceUpdate:function(){if(!R){var i=_.elements,o=i.reference,b=i.popper;if(mn(o,b)){_.rects={reference:qr(o,Ot(b),_.options.strategy==="fixed"),popper:Qt(b)},_.reset=!1,_.placement=_.options.placement,_.orderedModifiers.forEach(function(f){return _.modifiersData[f.name]=Object.assign({},f.data)});for(var v=0;v<_.orderedModifiers.length;v++){if(_.reset===!0){_.reset=!1,v=-1;continue}var y=_.orderedModifiers[v],r=y.fn,l=y.options,m=l===void 0?{}:l,u=y.name;typeof r=="function"&&(_=r({state:_,options:m,name:u,instance:S})||_)}}}},update:Zr(function(){return new Promise(function(e){S.forceUpdate(),e(_)})}),destroy:function(){T(),R=!0}};if(!mn(s,h))return S;S.setOptions(p).then(function(e){!R&&p.onFirstUpdate&&p.onFirstUpdate(e)});function k(){_.orderedModifiers.forEach(function(e){var i=e.name,o=e.options,b=o===void 0?{}:o,v=e.effect;if(typeof v=="function"){var y=v({state:_,name:i,instance:S,options:b}),r=function(){};I.push(y||r)}})}function T(){I.forEach(function(e){return e()}),I=[]}return S}}var ti=[kr,Ur,xr,fr,jr,Ir,Hr,yr,Mr],ni=ei({defaultModifiers:ti}),ri=xe('<div class="popper svelte-1dn0eza"><!></div>');function ii(a,t){tt(t,!0);let n=Ae(t,"referenceEl",3,null),g=Ae(t,"placement",3,"bottom-start"),d=Ae(t,"offset",19,()=>[0,2]),c=Ae(t,"flip",3,!0),w=Ae(t,"preventOverflow",3,!0),s=ge(null),h=null;function p(){if(!n()||!L(s))return;const T=[];d()&&T.push({name:"offset",options:{offset:d()}}),c()&&T.push({name:"flip",options:{fallbackPlacements:["top-start","bottom-end","top-end"]}}),w()&&T.push({name:"preventOverflow",options:{padding:8}}),h=ni(n(),L(s),{placement:g(),modifiers:T})}function _(){h&&h.update()}ft(()=>(p(),()=>{h&&(h.destroy(),h=null)})),Ue(()=>(n()&&L(s)&&p(),()=>{h&&(h.destroy(),h=null)}));function I(){_()}var R={update:I},S=ri(),k=fe(S);return yn(k,()=>t.children),ae(S),et(S,T=>J(s,T),()=>L(s)),ce(a,S),nt(R)}var oi=xe('<div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><!></div></div>');function ai(a,t){tt(t,!0);let n=Ae(t,"open",3,!1),g=Ae(t,"anchorEl",3,null),d=Ae(t,"id",3,""),c=Ae(t,"placement",3,"bottom-start"),w=Ae(t,"offset",19,()=>[0,2]),s=Ae(t,"flip",3,!0),h=Ae(t,"preventOverflow",3,!0),p=Ae(t,"onClose",3,()=>{}),_=ge(null),I=ge(null);function R(){p()()}function S(o){if(n()&&L(_)&&g()){const b=o.target;!L(_).contains(b)&&!g().contains(b)&&R()}}function k(o){o.key==="Escape"&&n()&&R()}ft(()=>{document.addEventListener("click",S,!0),document.addEventListener("keydown",k);const o=()=>{L(I)&&L(I).update()},b=()=>{L(I)&&L(I).update()};return window.addEventListener("resize",o),window.addEventListener("scroll",b,!0),()=>{document.removeEventListener("click",S,!0),document.removeEventListener("keydown",k),window.removeEventListener("resize",o),window.removeEventListener("scroll",b,!0)}});var T=_t(),e=Ie(T);{var i=o=>{et(ii(o,{get referenceEl(){return g()},get placement(){return c()},get offset(){return w()},get flip(){return s()},get preventOverflow(){return h()},children:v=>{var y=oi(),r=fe(y),l=fe(r);t.children(l),ae(r),et(r,m=>J(_,m),()=>L(_)),ae(y),et(y,m=>J(_,m),()=>L(_)),Ce(()=>{var m;Gt(y,"id",d()),Gt(r,"id",d()),bn(r,`min-width:${((m=g())==null?void 0:m.offsetWidth)??0}px`)}),ce(v,y)},$$slots:{default:!0}}),v=>J(I,v,!0),()=>L(I))};Ne(e,o=>{n()&&g()&&o(i)})}ce(a,T),nt()}var si=xe("<span> </span> <!>",1),li=xe('<div class="p-1 text-base font-semibold text-rc-green-200"> </div>'),ci=xe('<div class="p-1 text-base font-semibold text-rc-gray-100"> </div>'),ui=xe('<div class="flex items-start gap-2"><div class="min-w-0"><div class="p-1 text-sm text-rc-gray-300 group-hover:text-rc-gray-200"> </div> <!></div></div>'),fi=xe('<div class="mt-1 max-h-96 w-60 overflow-y-auto rounded-lg border border-rc-gray-110 bg-rc-gray-930 shadow-inner-white-soft backdrop-blur-2xl" role="listbox"></div>'),pi=xe("<div><!> <!></div>");function hi(a,t){tt(t,!0);let n=Ae(t,"class",3,""),g=ge(!1),d=ge(null);function c(){J(g,!L(g))}function w(T){t.onSelectState(T),J(g,!1)}function s(T){const e=T.userMessage;return e==null?"No message":(typeof e=="string"?e:String(e)).trim()||"No message"}function h(T,e=50,i="…"){if(!T)return"";if(T.length<=e)return T;const o=T.slice(0,e+1),b=Math.max(o.lastIndexOf(" "),o.lastIndexOf(" "),o.lastIndexOf(" "),o.lastIndexOf(`
|
|
3
|
-
`),o.lastIndexOf("\r"));return(b>0?o.slice(0,b):T.slice(0,e)).trimEnd()+i}function p(T){T.key==="ArrowDown"&&!L(g)?(J(g,!0),T.preventDefault()):T.key==="ArrowUp"&&L(g)&&(J(g,!1),T.preventDefault())}let _=Oe(()=>t.agentStates.find(T=>T.id===t.currentState)??null),I=Oe(()=>{var T;return((T=L(_))==null?void 0:T.name)??"History"});var R=pi(),S=fe(R);$e(S,{variant:"ghost",get"aria-expanded"(){return L(g)},"aria-haspopup":"listbox","aria-controls":"history-dropdown",onclick:c,onkeydown:p,class:"flex w-60 items-center gap-2 text-nowrap rounded-lg border border-transparent !bg-rc-gray-700 !px-3 !pb-1 !pt-[5px] text-justify text-rc-gray-200 hover:border hover:border-rc-gray-500 focus:outline-none focus:ring-0",get el(){return L(d)},set el(T){J(d,T,!0)},children:(T,e)=>{var i=si(),o=Ie(i),b=fe(o,!0);ae(o);var v=ye(o,2);{let y=Oe(()=>"size-7 text-rc-gray-500 transition-transform duration-200 "+(L(g)?"rotate-180":""));Yt(v,{name:"chevron-down",get class(){return L(y)}})}Ce(()=>Ke(b,L(I))),ce(T,i)},$$slots:{default:!0}});var k=ye(S,2);ai(k,{id:"history-dropdown",get open(){return L(g)},onClose:()=>J(g,!1),get anchorEl(){return L(d)},placement:"bottom-start",offset:[0,1],children:e=>{var i=fi();gt(i,21,()=>t.agentStates.slice().reverse(),Bt,(o,b)=>{{let v=Oe(()=>L(b).id===t.currentState);$e(o,{variant:"ghost",size:"small",role:"option",get"aria-selected"(){return L(v)},onclick:()=>w(L(b).id),class:"group w-full rounded-none border-b border-rc-gray-110 py-2 pr-3 text-left backdrop-blur-2xl last:border-b-0 hover:bg-rc-gray-700 focus:bg-rc-gray-400",children:(y,r)=>{var l=ui(),m=fe(l),u=fe(m),f=fe(u,!0);ae(u);var E=ye(u,2);{var x=M=>{var F=li(),K=fe(F,!0);ae(F),Ce($=>Ke(K,$),[()=>h(s(L(b)))]),ce(M,F)},P=M=>{var F=ci(),K=fe(F,!0);ae(F),Ce($=>Ke(K,$),[()=>h(s(L(b)))]),ce(M,F)};Ne(E,M=>{L(b).id===t.currentState?M(x):M(P,!1)})}ae(m),ae(l),Ce(()=>Ke(f,L(b).name)),ce(y,l)},$$slots:{default:!0}})}}),ae(i),ce(e,i)},$$slots:{default:!0}}),ae(R),Ce(()=>ze(R,1,`relative ${n()}`)),ce(a,R),nt()}Et(["click"]);let Dt=lt([]);function di(a){Dt.push(a)}function Pt(){Dt.length=0}var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var gi=xe('<dialog class="dialog m-auto bg-transparent p-0 text-rc-gray-100 shadow-md svelte-jby388"><!> <!></dialog>');function yi(a,t){tt(t,!0);let n,g=Ae(t,"showCloseButton",3,!1),d=Ae(t,"onClose",3,()=>{}),c=Ae(t,"onOpen",3,()=>{}),w=Ae(t,"isOpen",3,!1);Ue(()=>{w()?(console.log("show"),n==null||n.showModal(),c()()):n!=null&&n.open&&(console.log("close"),n.close())});function s(){d()()}ft(()=>(n.addEventListener("close",s),()=>{n.removeEventListener("close",s)}));function h(S){S.target===n&&n.close()}var p=gi();p.__mousedown=h;var _=fe(p);yn(_,()=>t.children);var I=ye(_,2);{var R=S=>{$e(S,{variant:"ghost",onclick:()=>n.close(),class:"absolute right-2 top-2",children:(k,T)=>{Ve();var e=Ge("✕");ce(k,e)},$$slots:{default:!0}})};Ne(I,S=>{g()&&S(R)})}ae(p),et(p,S=>n=S,()=>n),ce(a,p),nt()}Et(["mousedown"]);function bi(a){if(!Array.isArray(a))return[];const t=[];for(const n of a){if(!n||typeof n!="object")continue;const g=n.text,d=n.lastSeen,c=n.uses;if(typeof g!="string"||typeof d!="number"||!Number.isFinite(d)||typeof c!="number"||!Number.isFinite(c))continue;const w=g.trim();w&&t.push({text:w,lastSeen:d,uses:c})}return t.sort((n,g)=>g.lastSeen-n.lastSeen),t}function _i(a,t,n=2e3){var s;const g=t.trim();if(!g)return a;const d=(((s=a[0])==null?void 0:s.lastSeen)??0)+1,c=a.findIndex(h=>h.text===g);let w;if(c!==-1){const h=a[c];w=[{text:h.text,lastSeen:d,uses:(h.uses??0)+1},...a.slice(0,c),...a.slice(c+1)]}else w=[{text:g,lastSeen:d,uses:1},...a];return w.length>n?w.slice(0,n):w}function wi(a,t,n=2e3){var s,h;if(!t.length)return a;if(!a.length)return t;const g=((s=a[0])==null?void 0:s.lastSeen)??0,c=(((h=t[0])==null?void 0:h.lastSeen)??0)>g?t:t.map((p,_)=>({...p,lastSeen:g+(t.length-_)})),w=new Map;for(const p of a)w.set(p.text,p);for(const p of c){const _=w.get(p.text);if(!_){w.set(p.text,p);continue}w.set(p.text,{text:p.text,lastSeen:Math.max(_.lastSeen,p.lastSeen),uses:_.uses+p.uses})}return Array.from(w.values()).sort((p,_)=>_.lastSeen-p.lastSeen).slice(0,n)}function xi(a,t,n=5){if(!t.length)return[];const d=a.trim().toLowerCase(),c=zt(a,!0),w=zt(a,!1);if(!c)return[];const s=/\s$/u.test(a),h=[];for(const p of t){const _=zt(p.text);if(!_||p.text.trim().toLowerCase()===d||!_.startsWith(w))continue;const I=Ei(p.text,w,s)??a.length;h.push({item:p,prefixEndIndex:Math.max(0,Math.min(p.text.length,I))})}return h.sort((p,_)=>p.item.lastSeen!==_.item.lastSeen?_.item.lastSeen-p.item.lastSeen:p.item.uses!==_.item.uses?_.item.uses-p.item.uses:p.item.text.length-_.item.text.length),h.slice(0,n).slice().reverse().map(p=>({text:p.item.text,prefixEndIndex:p.prefixEndIndex,segments:ki(p.item.text,[[0,p.prefixEndIndex]])}))}function zt(a,t=!0){const n=a.toLowerCase();let g;try{g=n.replace(/[\p{P}\p{S}]/gu," ")}catch{g=n.replace(/[^a-z0-9\s]/gi," ")}const c=g.replace(/\s+/g," ").replace(/^\s+/u,"");return t?c.replace(/\s+$/u,""):c}function Ei(a,t,n){if(!t)return null;let g="",d=!0;for(let c=0;c<a.length;c++){const w=a[c];let s;if(/\s/u.test(w))s=" ";else try{s=/[\p{P}\p{S}]/u.test(w)?" ":w.toLowerCase()}catch{s=/[^a-z0-9\s]/i.test(w)?" ":w.toLowerCase()}if(s===" "){if(d)continue;g+=" ",d=!0}else g+=s,d=!1;if(g.length===t.length){if(g!==t)return null;let h=c+1;if(n&&t.endsWith(" ")){let p=h;for(;p<a.length;){const _=a[p];if(/\s/u.test(_)){p+=1;continue}try{if(/[\p{P}\p{S}]/u.test(_)){p+=1;continue}}catch{if(/[^a-z0-9\s]/i.test(_)){p+=1;continue}}break}h=p}return h}if(g.length>t.length)return null}return null}function ki(a,t){if(!t.length)return[{text:a,matched:!1}];const n=[];let g=0;for(const[d,c]of t)d>g&&n.push({text:a.slice(g,d),matched:!1}),n.push({text:a.slice(d,c),matched:!0}),g=c;return g<a.length&&n.push({text:a.slice(g),matched:!1}),n.filter(d=>d.text.length>0)}var Oi=xe('<form><h2 class="text-l mb-4 text-gray-300">Image URL</h2> <!> <!></form>'),Ti=xe('<div class="my-2 flex w-full justify-center"><div class="rounded-full border border-rc-gray-650 bg-rc-gray-800/40 px-3 py-1 text-xs text-rc-gray-200"> </div></div>'),Li=xe('<!> <div class="log-element"><div><!></div></div>',1),Si=(a,t,n)=>{a.preventDefault(),t(L(n))},Ai=xe("<span> </span>"),Ci=xe('<button type="button" role="option" tabindex="-1"></button>'),Ni=xe('<div class="absolute bottom-full left-0 right-0 mb-1 max-h-60 overflow-y-auto rounded-lg border border-rc-gray-110 bg-rc-gray-930 shadow-inner-white-soft backdrop-blur-2xl" role="listbox"></div>'),Pi=xe('<div class="pointer-events-none absolute inset-0 z-10 overflow-hidden rounded-lg" aria-hidden="true"><div class="whitespace-pre text-rc-gray-400/70"><span class="invisible"> </span><span> </span></div></div>'),Ri=xe('<div class="mb-2 flex flex-wrap items-center justify-end gap-2"><!> <!></div> <div class="rc-scroll flex-1 overflow-y-auto pr-1"></div> <form class="absolute bottom-2 left-2 right-2 z-10 flex gap-2 rounded"><div class="relative flex-1"><!> <!> <!></div> <!> <!></form>',1),Bi=xe("<!> <!>",1);function Ii(a,t){tt(t,!0);let n=lt(new Set),g=ge(""),d=ge(""),c=ge(""),w,s=ge(!1),h=ge(null),p=ge(""),_=ge(lt([])),I=ge(null),R=ge(!1),S=ge(!1),k=ge(null);const T=Oe(()=>xi(L(g),L(_))),e=Oe(()=>L(k)==null?null:L(T)[L(k)]??null),i=Oe(()=>L(e)?L(e).text.slice(L(e).prefixEndIndex):"");Ue(()=>{if(typeof window>"u")return;if(!L(h)){J(p,"");return}const D=window.getComputedStyle(L(h)),X=`calc(${D.paddingTop} + ${D.borderTopWidth})`,H=`calc(${D.paddingRight} + ${D.borderRightWidth})`,z=`calc(${D.paddingBottom} + ${D.borderBottomWidth})`,q=`calc(${D.paddingLeft} + ${D.borderLeftWidth})`;J(p,[`padding:${X} ${H} ${z} ${q}`,`font:${D.font}`,`letter-spacing:${D.letterSpacing}`,`line-height:${D.lineHeight}`,`text-indent:${D.textIndent}`,`text-transform:${D.textTransform}`,`text-align:${D.textAlign}`,`box-sizing:${D.boxSizing}`].join(";"),!0)}),Ue(()=>{L(k)!=null&&L(k)>=L(T).length&&J(k,null)});const o=Oe(()=>!L(R)||L(S)?!1:L(T).length>0);function b(D){J(g,D.text,!0),J(k,null),J(S,!0)}function v(){J(R,!0),J(S,!1)}function y(){J(R,!1),J(k,null),J(S,!1)}function r(){J(k,null),J(S,!1)}function l(D){if(D.key==="Escape"){L(o)&&D.preventDefault(),J(S,!0),J(k,null);return}if(D.key==="ArrowUp"||D.key==="ArrowDown"){if(!L(T).length)return;L(S)&&J(S,!1),D.preventDefault();const X=L(T).length-1;if(L(k)===null)J(k,D.key==="ArrowUp"?X:0,!0);else{const H=D.key==="ArrowUp"?-1:1;J(k,Math.max(0,Math.min(X,L(k)+H)),!0)}return}if(D.key==="Enter"||D.key==="Tab"&&!D.shiftKey){if(L(k)===null)return;const X=L(T)[L(k)];if(!X)return;D.preventDefault(),b(X);return}}Ue(()=>{St.length>0&&m(w)});function m(D){n.has(D)||!D||D.scrollTo({top:D.scrollHeight,behavior:"smooth"})}function u(D){D.scrollTop+D.clientHeight+200>D.scrollHeight?n.delete(D):n.add(D)}function f(D){D.preventDefault(),(L(g)||L(c))&&(J(_,_i(L(_),L(g)),!0),t.onmessage({sender:"user",text:L(g),imageUrl:L(c)}),J(c,""),J(g,""),J(S,!1),J(k,null))}function E(D){D.preventDefault(),J(c,L(d),!0),J(d,""),J(s,!1)}function x(D){return D&&typeof D.renderedPrompt=="string"?D.renderedPrompt:null}function P(D,X){for(let H=X-1;H>=0;H--){const z=D[H];if(At(z)&&z.name==="main"&&x(z))return z}for(let H=X-1;H>=0;H--){const z=D[H];if(At(z)&&z.name==="prewarm"&&x(z))return z}return null}function M(D){return D.eventName==="received-message"||D.eventName==="llm-handler-stream-requested"||D.eventName==="finished-main-streaming-step"||D.eventName==="sent-message"||D.eventName==="transfer-requested"}const F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K(D){if(typeof D!="number"||!Number.isFinite(D))return null;const X=new Date(D);if(Number.isNaN(X.getTime()))return null;const H=X.getFullYear(),z=String(X.getMonth()+1).padStart(2,"0"),q=String(X.getDate()).padStart(2,"0");return`${H}-${z}-${q}`}function $(D){if(typeof D!="number"||!Number.isFinite(D))return null;const X=new Date(D);if(Number.isNaN(X.getTime()))return null;const H=X.getDate(),z=F[X.getMonth()],q=X.getFullYear();return`${H} ${z} ${q}`}const A=Oe(()=>St.filter(D=>on(D)||At(D)?!0:an(D)?M(D):!1));let O=ge(!1),B=ge(!1),V=null,U=null;async function ee(){try{await navigator.clipboard.writeText(JSON.stringify(St,null,2)),J(O,!0),V&&clearTimeout(V),V=window.setTimeout(()=>{J(O,!1),V=null},2e3)}catch(D){console.error("Failed to copy traces",D)}}async function oe(){try{await navigator.clipboard.writeText(JSON.stringify(Dt,null,2)),J(B,!0),U&&clearTimeout(U),U=window.setTimeout(()=>{J(B,!1),U=null},2e3)}catch(D){console.error("Failed to copy logs",D)}}Ue(()=>{if(typeof window>"u")return;const D=(t.agentId??"").trim();if(!D||D===L(I))return;J(I,D,!0),J(_,[],!0);const X=D;Ft.agents.userMessageHistory.query({agentId:X}).then(H=>{if(L(I)!==X)return;const z=bi(H);J(_,wi(z,L(_)),!0),J(k,null)}).catch(H=>{console.error("Failed to load user message history",H),L(I)===X&&(J(_,[],!0),J(k,null))})});var ne=Bi(),de=Ie(ne);yi(de,{get isOpen(){return L(s)},onClose:()=>J(s,!1),showCloseButton:!0,children:(D,X)=>{It(D,{class:"p-4",children:(H,z)=>{var q=Oi(),le=ye(fe(q),2);sn(le,{class:"mb-2 w-80",get value(){return L(d)},set value(me){J(d,me,!0)}});var _e=ye(le,2);$e(_e,{variant:"secondary",type:"submit",class:"ml-2 p-2",children:(me,Le)=>{Ve();var C=Ge("Attach");ce(me,C)},$$slots:{default:!0}}),ae(q),Vt("submit",q,E),ce(H,q)}})},$$slots:{default:!0}});var be=ye(de,2);It(be,{get class(){return`relative flex flex-col p-2 pb-16 ${t.class??""}`},children:(D,X)=>{var H=Ri(),z=Ie(H),q=fe(z);{let G=Oe(()=>!St.length);$e(q,{variant:"secondary",size:"small",get disabled(){return L(G)},onclick:Q=>{Q.stopPropagation(),ee()},children:(Q,he)=>{Ve();var se=Ge();Ce(()=>Ke(se,L(O)?"Copied all traces":"Copy all traces")),ce(Q,se)},$$slots:{default:!0}})}var le=ye(q,2);{let G=Oe(()=>!Dt.length);$e(le,{variant:"secondary",size:"small",get disabled(){return L(G)},onclick:Q=>{Q.stopPropagation(),oe()},children:(Q,he)=>{Ve();var se=Ge();Ce(()=>Ke(se,L(B)?"Copied all logs":"Copy all logs")),ce(Q,se)},$$slots:{default:!0}})}ae(z);var _e=ye(z,2);gt(_e,21,()=>L(A),Bt,(G,Q,he)=>{const se=Oe(()=>K(L(Q).createdAt)),we=Oe(()=>he>0?K(L(A)[he-1].createdAt):null),ke=Oe(()=>$(L(Q).createdAt));var qe=Li(),it=Ie(qe);{var Je=te=>{var pe=Ti(),ue=fe(pe),ve=fe(ue,!0);ae(ue),ae(pe),Ce(()=>Ke(ve,L(ke))),ce(te,pe)};Ne(it,te=>{L(se)&&L(ke)&&L(se)!==L(we)&&te(Je)})}var Xe=ye(it,2),Tt=fe(Xe),Ze=fe(Tt);{var ot=te=>{Un(te,{get trace(){return L(Q)}})},re=te=>{var pe=_t(),ue=Ie(pe);{var ve=Te=>{Vn(Te,{get trace(){return L(Q)},get context(){return t.context},get agentId(){return t.agentId}})},Ee=Te=>{var je=_t(),at=Ie(je);{var jt=Qe=>{{let $t=Oe(()=>L(Q).name==="main"?P(L(A),he):null);Wn(Qe,{get trace(){return L(Q)},get compareTrace(){return L($t)}})}};Ne(at,Qe=>{At(L(Q))&&Qe(jt)},!0)}ce(Te,je)};Ne(ue,Te=>{an(L(Q))?Te(ve):Te(Ee,!1)},!0)}ce(te,pe)};Ne(Ze,te=>{on(L(Q))?te(ot):te(re,!1)})}ae(Tt),ae(Xe),ce(G,qe)}),ae(_e),et(_e,G=>w=G,()=>w);var me=ye(_e,2),Le=fe(me),C=fe(Le);{var j=G=>{var Q=Ni();gt(Q,23,()=>L(T),he=>he.text,(he,se,we)=>{var ke=Ci();ke.__mousedown=[Si,b,se],gt(ke,21,()=>L(se).segments,Bt,(qe,it)=>{var Je=Ai(),Xe=fe(Je,!0);ae(Je),Ce(()=>{ze(Je,1,Kn(L(it).matched?"text-rc-green-200":"")),Ke(Xe,L(it).text)}),ce(qe,Je)}),ae(ke),Ce(()=>{Gt(ke,"aria-selected",L(k)===L(we)),ze(ke,1,`w-full select-none border-b border-rc-gray-110 px-3 py-2 text-left font-semibold text-rc-gray-100 last:border-b-0 hover:bg-rc-gray-700/70 ${L(k)===L(we)?"bg-rc-gray-700/70":""}`)}),ce(he,ke)}),ae(Q),ce(G,Q)};Ne(C,G=>{L(o)&&G(j)})}var Z=ye(C,2);sn(Z,{variant:"chat",placeholder:"Enter user's message...",autocomplete:"off",onfocus:v,onblur:y,oninput:r,onkeydown:l,get value(){return L(g)},set value(G){J(g,G,!0)},get el(){return L(h)},set el(G){J(h,G,!0)}});var N=ye(Z,2);{var W=G=>{var Q=Pi(),he=fe(Q),se=fe(he),we=fe(se,!0);ae(se);var ke=ye(se),qe=fe(ke,!0);ae(ke),ae(he),ae(Q),Ce(()=>{bn(he,L(p)),Ke(we,L(g)),Ke(qe,L(i))}),ce(G,Q)};Ne(N,G=>{L(k)!==null&&L(i)&&G(W)})}ae(Le);var Y=ye(Le,2);$e(Y,{size:"small",variant:"secondary",onclick:()=>J(s,!0),children:(G,Q)=>{Yt(G,{name:"paperclip"})},$$slots:{default:!0}});var ie=ye(Y,2);$e(ie,{size:"small",type:"submit",children:(G,Q)=>{Yt(G,{name:"send"})},$$slots:{default:!0}}),ae(me),Vt("scroll",_e,G=>u(G.target)),Vt("submit",me,f),ce(D,H)}}),ce(a,ne),nt()}Et(["mousedown"]);function Fi(a,t){a.languages.registerCompletionItemProvider("markdown",{triggerCharacters:[" ","."],provideCompletionItems:(n,g)=>{const d=n.getValueInRange({startLineNumber:g.lineNumber,startColumn:1,endLineNumber:g.lineNumber,endColumn:g.column}),c=d.match(/\{%\s*(if|elif|for)\s+([^%]*)$/),w=d.match(/\{\{\s*([^}]*)$/);if(c||w){let h="";c?h=c[2].trim():w&&(h=w[1].trim());const{keys:p,lastPartLength:_}=Mi(t,h);return{suggestions:p.map(R=>({label:R,kind:a.languages.CompletionItemKind.Variable,insertText:R,range:{startLineNumber:g.lineNumber,endLineNumber:g.lineNumber,startColumn:g.column-_,endColumn:g.column}}))}}const s=d.match(/\{%\s*([^%]*)$/);if(s){const h=s[1].trim();return{suggestions:["if","elif","else","endif","for","endfor"].filter(_=>_.startsWith(h)).map((_,I)=>({label:_,kind:a.languages.CompletionItemKind.Keyword,insertText:_,sortText:String(I).padStart(2,"0"),range:{startLineNumber:g.lineNumber,endLineNumber:g.lineNumber,startColumn:g.column-h.length,endColumn:g.column}}))}}return{suggestions:[]}}})}function Mi(a,t){let n=a,g=[],d=0;if(t==="")g=Object.keys(a??{}),d=0;else if(t.includes(".")){const c=t.split("."),w=c.pop()||"";d=w.length;for(const s of c)if(n&&typeof n=="object"&&s in n)n=n[s];else{n=null;break}n&&typeof n=="object"&&(g=Object.keys(n).filter(s=>s.startsWith(w)))}else d=t.length,g=Object.keys(a??{}).filter(c=>c.startsWith(t));return{keys:g,lastPartLength:d}}function Di(a,t){const n=t.createDecorationsCollection();function g(){const c=t.getModel();if(!c)return;const w=[],s=c.getLineCount();for(let h=1;h<=s;h++){const p=c.getLineContent(h),_=/^(#+)\s/.exec(p);if(_){const R=_[1].length;let S="prompt-heading-3";R===1?S="prompt-heading-1":R===2&&(S="prompt-heading-2"),w.push({range:new a.Range(h,1,h,p.length+1),options:{isWholeLine:!0,inlineClassName:S}})}for(let R=1;R<=p.length;R++){const S=p[R-1];(S==="#"||S==="*")&&w.push({range:new a.Range(h,R,h,R+1),options:{inlineClassName:"prompt-symbol"}})}const I=p.match(/^(\s+)(\d+(?:\.\d+)+\.?)(?=[\s)]|$)/);if(I){const R=I[1],S=I[2],k=R.length+1,T=k+S.length;w.push({range:new a.Range(h,k,h,T),options:{inlineClassName:"prompt-subnumber"}})}}n.set(w)}function d(){n.clear()}return{update:g,dispose:d}}const Ki={base:"vs-dark",inherit:!0,rules:[{token:"",foreground:"DDDDDD"},{token:"string.md",foreground:"DDDDDD"},{token:"keyword.md",foreground:"767676"},{token:"strong.md",foreground:"DDDDDD",fontStyle:"bold"},{token:"string.target.md",foreground:"00B58A"},{token:"tag.md",foreground:"00B58A"},{token:"string.link.md",foreground:"569cd6",fontStyle:"underline"}],colors:{"editor.background":"#1D1D1D","editor.foreground":"#AFAFAF","editorLineNumber.foreground":"#636363","editorLineNumber.activeForeground":"#767676","editorCursor.foreground":"#DDDDDD","editor.selectionBackground":"#4B556320","editor.lineHighlightBackground":"#FFFFFF08","editorLineNumber.background":"#1D1D1D"}};var Cn={exports:{}};/*! Browser bundle of nunjucks 3.2.4 */(function(a,t){(function(g,d){a.exports=d()})(typeof self<"u"?self:vi,function(){return function(n){var g={};function d(c){if(g[c])return g[c].exports;var w=g[c]={i:c,l:!1,exports:{}};return n[c].call(w.exports,w,w.exports,d),w.l=!0,w.exports}return d.m=n,d.c=g,d.d=function(c,w,s){d.o(c,w)||Object.defineProperty(c,w,{configurable:!1,enumerable:!0,get:s})},d.n=function(c){var w=c&&c.__esModule?function(){return c.default}:function(){return c};return d.d(w,"a",w),w},d.o=function(c,w){return Object.prototype.hasOwnProperty.call(c,w)},d.p="",d(d.s=11)}([function(n,p,d){var c=Array.prototype,w=Object.prototype,s={"&":"&",'"':""","'":"'","<":"<",">":">","\\":"\"},h=/[&"'<>\\]/g,p=n.exports={};function _(O,B){return w.hasOwnProperty.call(O,B)}p.hasOwnProp=_;function I(O){return s[O]}function R(O,B,V){if(V.Update||(V=new p.TemplateError(V)),V.Update(O),!B){var U=V;V=new Error(U.message),V.name=U.name}return V}p._prettifyError=R;function S(O,B,V){var U,ee;O instanceof Error&&(ee=O,O=ee.name+": "+ee.message),Object.setPrototypeOf?(U=new Error(O),Object.setPrototypeOf(U,S.prototype)):(U=this,Object.defineProperty(U,"message",{enumerable:!1,writable:!0,value:O})),Object.defineProperty(U,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(U,this.constructor);var oe;if(ee){var ne=Object.getOwnPropertyDescriptor(ee,"stack");oe=ne&&(ne.get||function(){return ne.value}),oe||(oe=function(){return ee.stack})}else{var de=new Error(O).stack;oe=function(){return de}}return Object.defineProperty(U,"stack",{get:function(){return oe.call(U)}}),Object.defineProperty(U,"cause",{value:ee}),U.lineno=B,U.colno=V,U.firstUpdate=!0,U.Update=function(D){var X="("+(D||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?X+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(X+=" [Line "+this.lineno+"]")),X+=`
|
|
4
|
-
`,this.firstUpdate&&(X+=" "),this.message=X+(this.message||""),this.firstUpdate=!1,this},U}Object.setPrototypeOf?Object.setPrototypeOf(S.prototype,Error.prototype):S.prototype=Object.create(Error.prototype,{constructor:{value:S}}),p.TemplateError=S;function k(O){return O.replace(h,I)}p.escape=k;function T(O){return w.toString.call(O)==="[object Function]"}p.isFunction=T;function e(O){return w.toString.call(O)==="[object Array]"}p.isArray=e;function i(O){return w.toString.call(O)==="[object String]"}p.isString=i;function o(O){return w.toString.call(O)==="[object Object]"}p.isObject=o;function b(O){return O?typeof O=="string"?O.split("."):[O]:[]}function v(O){var B=b(O);return function(U){for(var ee=U,oe=0;oe<B.length;oe++){var ne=B[oe];if(_(ee,ne))ee=ee[ne];else return}return ee}}p.getAttrGetter=v;function y(O,B,V){for(var U={},ee=T(B)?B:v(B),oe=0;oe<O.length;oe++){var ne=O[oe],de=ee(ne,oe);if(de===void 0&&V===!0)throw new TypeError('groupby: attribute "'+B+'" resolved to undefined');(U[de]||(U[de]=[])).push(ne)}return U}p.groupBy=y;function r(O){return Array.prototype.slice.call(O)}p.toArray=r;function l(O){var B=[];if(!O)return B;for(var V=O.length,U=r(arguments).slice(1),ee=-1;++ee<V;)P(U,O[ee])===-1&&B.push(O[ee]);return B}p.without=l;function m(O,B){for(var V="",U=0;U<B;U++)V+=O;return V}p.repeat=m;function u(O,B,V){if(O!=null){if(c.forEach&&O.forEach===c.forEach)O.forEach(B,V);else if(O.length===+O.length)for(var U=0,ee=O.length;U<ee;U++)B.call(V,O[U],U,O)}}p.each=u;function f(O,B){var V=[];if(O==null)return V;if(c.map&&O.map===c.map)return O.map(B);for(var U=0;U<O.length;U++)V[V.length]=B(O[U],U);return O.length===+O.length&&(V.length=O.length),V}p.map=f;function E(O,B,V){var U=-1;function ee(){U++,U<O.length?B(O[U],U,ee,V):V()}ee()}p.asyncIter=E;function x(O,B,V){var U=M(O||{}),ee=U.length,oe=-1;function ne(){oe++;var de=U[oe];oe<ee?B(de,O[de],oe,ee,ne):V()}ne()}p.asyncFor=x;function P(O,B,V){return Array.prototype.indexOf.call(O||[],B,V)}p.indexOf=P;function M(O){var B=[];for(var V in O)_(O,V)&&B.push(V);return B}p.keys=M;function F(O){return M(O).map(function(B){return[B,O[B]]})}p._entries=F;function K(O){return M(O).map(function(B){return O[B]})}p._values=K;function $(O,B){return O=O||{},M(B).forEach(function(V){O[V]=B[V]}),O}p._assign=p.extend=$;function A(O,B){if(e(B)||i(B))return B.indexOf(O)!==-1;if(o(B))return O in B;throw new Error('Cannot use "in" operator to search for "'+O+'" in unexpected types.')}p.inOperator=A},function(n,g,d){function c(i,o){for(var b=0;b<o.length;b++){var v=o[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,s(v.key),v)}}function w(i,o,b){return o&&c(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i}function s(i){var o=h(i,"string");return typeof o=="symbol"?o:String(o)}function h(i,o){if(typeof i!="object"||i===null)return i;var b=i[Symbol.toPrimitive];if(b!==void 0){var v=b.call(i,o);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}function p(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,_(i,o)}function _(i,o){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,y){return v.__proto__=y,v},_(i,o)}var I=d(16),R=d(0);function S(i,o){return typeof i!="function"||typeof o!="function"?o:function(){var v=this.parent;this.parent=i;var y=o.apply(this,arguments);return this.parent=v,y}}function k(i,o,b){b=b||{},R.keys(b).forEach(function(y){b[y]=S(i.prototype[y],b[y])});var v=function(y){p(r,y);function r(){return y.apply(this,arguments)||this}return w(r,[{key:"typename",get:function(){return o}}]),r}(i);return R._assign(v.prototype,b),v}var T=function(){function i(){this.init.apply(this,arguments)}var o=i.prototype;return o.init=function(){},i.extend=function(v,y){return typeof v=="object"&&(y=v,v="anonymous"),k(this,v,y)},w(i,[{key:"typename",get:function(){return this.constructor.name}}]),i}(),e=function(i){p(o,i);function o(){var v,y;return y=i.call(this)||this,(v=y).init.apply(v,arguments),y}var b=o.prototype;return b.init=function(){},o.extend=function(y,r){return typeof y=="object"&&(r=y,y="anonymous"),k(this,y,r)},w(o,[{key:"typename",get:function(){return this.constructor.name}}]),o}(I);n.exports={Obj:T,EmitterObj:e}},function(n,g,d){var c=d(0),w=Array.from,s=typeof Symbol=="function"&&Symbol.iterator&&typeof w=="function",h=function(){function f(x,P){this.variables=Object.create(null),this.parent=x,this.topLevel=!1,this.isolateWrites=P}var E=f.prototype;return E.set=function(P,M,F){var K=P.split("."),$=this.variables,A=this;if(F&&(A=this.resolve(K[0],!0))){A.set(P,M);return}for(var O=0;O<K.length-1;O++){var B=K[O];$[B]||($[B]={}),$=$[B]}$[K[K.length-1]]=M},E.get=function(P){var M=this.variables[P];return M!==void 0?M:null},E.lookup=function(P){var M=this.parent,F=this.variables[P];return F!==void 0?F:M&&M.lookup(P)},E.resolve=function(P,M){var F=M&&this.isolateWrites?void 0:this.parent,K=this.variables[P];return K!==void 0?this:F&&F.resolve(P)},E.push=function(P){return new f(this,P)},E.pop=function(){return this.parent},f}();function p(f,E,x){return function(){for(var M=arguments.length,F=new Array(M),K=0;K<M;K++)F[K]=arguments[K];var $=S(F),A,O=R(F);if($>f.length)A=F.slice(0,f.length),F.slice(A.length,$).forEach(function(U,ee){ee<E.length&&(O[E[ee]]=U)}),A.push(O);else if($<f.length){A=F.slice(0,$);for(var B=$;B<f.length;B++){var V=f[B];A.push(O[V]),delete O[V]}A.push(O)}else A=F;return x.apply(this,A)}}function _(f){return f.__keywords=!0,f}function I(f){return f&&Object.prototype.hasOwnProperty.call(f,"__keywords")}function R(f){var E=f.length;if(E){var x=f[E-1];if(I(x))return x}return{}}function S(f){var E=f.length;if(E===0)return 0;var x=f[E-1];return I(x)?E-1:E}function k(f){if(typeof f!="string")return f;this.val=f,this.length=f.length}k.prototype=Object.create(String.prototype,{length:{writable:!0,configurable:!0,value:0}}),k.prototype.valueOf=function(){return this.val},k.prototype.toString=function(){return this.val};function T(f,E){return f instanceof k?new k(E):E.toString()}function e(f){var E=typeof f;return E==="string"?new k(f):E!=="function"?f:function(P){var M=f.apply(this,arguments);return typeof M=="string"?new k(M):M}}function i(f,E){return f=f??"",E&&!(f instanceof k)&&(f=c.escape(f.toString())),f}function o(f,E,x){if(f==null)throw new c.TemplateError("attempted to output null or undefined value",E+1,x+1);return f}function b(f,E){if(f!=null)return typeof f[E]=="function"?function(){for(var x=arguments.length,P=new Array(x),M=0;M<x;M++)P[M]=arguments[M];return f[E].apply(f,P)}:f[E]}function v(f,E,x,P){if(f){if(typeof f!="function")throw new Error("Unable to call `"+E+"`, which is not a function")}else throw new Error("Unable to call `"+E+"`, which is undefined or falsey");return f.apply(x,P)}function y(f,E,x){var P=E.lookup(x);return P!==void 0?P:f.lookup(x)}function r(f,E,x){return f.lineno?f:new c.TemplateError(f,E,x)}function l(f,E,x,P){if(c.isArray(f)){var M=f.length;c.asyncIter(f,function(K,$,A){switch(E){case 1:x(K,$,M,A);break;case 2:x(K[0],K[1],$,M,A);break;case 3:x(K[0],K[1],K[2],$,M,A);break;default:K.push($,M,A),x.apply(this,K)}},P)}else c.asyncFor(f,function(K,$,A,O,B){x(K,$,A,O,B)},P)}function m(f,E,x,P){var M=0,F,K;function $(ee,oe){M++,K[ee]=oe,M===F&&P(null,K.join(""))}if(c.isArray(f))if(F=f.length,K=new Array(F),F===0)P(null,"");else for(var A=0;A<f.length;A++){var O=f[A];switch(E){case 1:x(O,A,F,$);break;case 2:x(O[0],O[1],A,F,$);break;case 3:x(O[0],O[1],O[2],A,F,$);break;default:O.push(A,F,$),x.apply(this,O)}}else{var B=c.keys(f||{});if(F=B.length,K=new Array(F),F===0)P(null,"");else for(var V=0;V<B.length;V++){var U=B[V];x(U,f[U],V,F,$)}}}function u(f){return typeof f!="object"||f===null||c.isArray(f)?f:s&&Symbol.iterator in f?w(f):f}n.exports={Frame:h,makeMacro:p,makeKeywordArgs:_,numArgs:S,suppressValue:i,ensureDefined:o,memberLookup:b,contextOrFrameLookup:y,callWrap:v,handleError:r,isArray:c.isArray,keys:c.keys,SafeString:k,copySafeness:T,markSafe:e,asyncEach:l,asyncAll:m,inOperator:c.inOperator,fromIterator:u}},function(n,g,d){function c(re,te){for(var pe=0;pe<te.length;pe++){var ue=te[pe];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(re,s(ue.key),ue)}}function w(re,te,pe){return te&&c(re.prototype,te),Object.defineProperty(re,"prototype",{writable:!1}),re}function s(re){var te=h(re,"string");return typeof te=="symbol"?te:String(te)}function h(re,te){if(typeof re!="object"||re===null)return re;var pe=re[Symbol.toPrimitive];if(pe!==void 0){var ue=pe.call(re,te);if(typeof ue!="object")return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(re)}function p(re,te){re.prototype=Object.create(te.prototype),re.prototype.constructor=re,_(re,te)}function _(re,te){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ue,ve){return ue.__proto__=ve,ue},_(re,te)}var I=d(1),R=I.Obj;function S(re,te,pe){re instanceof te&&pe.push(re),re instanceof k&&re.findAll(te,pe)}var k=function(re){p(te,re);function te(){return re.apply(this,arguments)||this}var pe=te.prototype;return pe.init=function(ve,Ee){for(var Te=arguments,je=this,at=arguments.length,jt=new Array(at>2?at-2:0),Qe=2;Qe<at;Qe++)jt[Qe-2]=arguments[Qe];this.lineno=ve,this.colno=Ee,this.fields.forEach(function($t,Nn){var Ut=Te[Nn+2];Ut===void 0&&(Ut=null),je[$t]=Ut})},pe.findAll=function(ve,Ee){var Te=this;return Ee=Ee||[],this instanceof e?this.children.forEach(function(je){return S(je,ve,Ee)}):this.fields.forEach(function(je){return S(Te[je],ve,Ee)}),Ee},pe.iterFields=function(ve){var Ee=this;this.fields.forEach(function(Te){ve(Ee[Te],Te)})},te}(R),T=function(re){p(te,re);function te(){return re.apply(this,arguments)||this}return w(te,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),te}(k),e=function(re){p(te,re);function te(){return re.apply(this,arguments)||this}var pe=te.prototype;return pe.init=function(ve,Ee,Te){re.prototype.init.call(this,ve,Ee,Te||[])},pe.addChild=function(ve){this.children.push(ve)},w(te,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),te}(k),i=e.extend("Root"),o=T.extend("Literal"),b=T.extend("Symbol"),v=e.extend("Group"),y=e.extend("Array"),r=k.extend("Pair",{fields:["key","value"]}),l=e.extend("Dict"),m=k.extend("LookupVal",{fields:["target","val"]}),u=k.extend("If",{fields:["cond","body","else_"]}),f=u.extend("IfAsync"),E=k.extend("InlineIf",{fields:["cond","body","else_"]}),x=k.extend("For",{fields:["arr","name","body","else_"]}),P=x.extend("AsyncEach"),M=x.extend("AsyncAll"),F=k.extend("Macro",{fields:["name","args","body"]}),K=F.extend("Caller"),$=k.extend("Import",{fields:["template","target","withContext"]}),A=function(re){p(te,re);function te(){return re.apply(this,arguments)||this}var pe=te.prototype;return pe.init=function(ve,Ee,Te,je,at){re.prototype.init.call(this,ve,Ee,Te,je||new e,at)},w(te,[{key:"typename",get:function(){return"FromImport"}},{key:"fields",get:function(){return["template","names","withContext"]}}]),te}(k),O=k.extend("FunCall",{fields:["name","args"]}),B=O.extend("Filter"),V=B.extend("FilterAsync",{fields:["name","args","symbol"]}),U=l.extend("KeywordArgs"),ee=k.extend("Block",{fields:["name","body"]}),oe=k.extend("Super",{fields:["blockName","symbol"]}),ne=k.extend("TemplateRef",{fields:["template"]}),de=ne.extend("Extends"),be=k.extend("Include",{fields:["template","ignoreMissing"]}),D=k.extend("Set",{fields:["targets","value"]}),X=k.extend("Switch",{fields:["expr","cases","default"]}),H=k.extend("Case",{fields:["cond","body"]}),z=e.extend("Output"),q=k.extend("Capture",{fields:["body"]}),le=o.extend("TemplateData"),_e=k.extend("UnaryOp",{fields:["target"]}),me=k.extend("BinOp",{fields:["left","right"]}),Le=me.extend("In"),C=me.extend("Is"),j=me.extend("Or"),Z=me.extend("And"),N=_e.extend("Not"),W=me.extend("Add"),Y=me.extend("Concat"),ie=me.extend("Sub"),G=me.extend("Mul"),Q=me.extend("Div"),he=me.extend("FloorDiv"),se=me.extend("Mod"),we=me.extend("Pow"),ke=_e.extend("Neg"),qe=_e.extend("Pos"),it=k.extend("Compare",{fields:["expr","ops"]}),Je=k.extend("CompareOperand",{fields:["expr","type"]}),Xe=k.extend("CallExtension",{init:function(te,pe,ue,ve){this.parent(),this.extName=te.__name||te,this.prop=pe,this.args=ue||new e,this.contentArgs=ve||[],this.autoescape=te.autoescape},fields:["extName","prop","args","contentArgs"]}),Tt=Xe.extend("CallExtensionAsync");function Ze(re,te,pe){var ue=re.split(`
|
|
5
|
-
`);ue.forEach(function(ve,Ee){ve&&(pe&&Ee>0||!pe)&&process.stdout.write(" ".repeat(te));var Te=Ee===ue.length-1?"":`
|
|
6
|
-
`;process.stdout.write(""+ve+Te)})}function ot(re,te){if(te=te||0,Ze(re.typename+": ",te),re instanceof e)Ze(`
|
|
7
|
-
`),re.children.forEach(function(ve){ot(ve,te+2)});else if(re instanceof Xe)Ze(re.extName+"."+re.prop+`
|
|
8
|
-
`),re.args&&ot(re.args,te+2),re.contentArgs&&re.contentArgs.forEach(function(ve){ot(ve,te+2)});else{var pe=[],ue=null;re.iterFields(function(ve,Ee){ve instanceof k?pe.push([Ee,ve]):(ue=ue||{},ue[Ee]=ve)}),ue?Ze(JSON.stringify(ue,null,2)+`
|
|
9
|
-
`,null,!0):Ze(`
|
|
10
|
-
`),pe.forEach(function(ve){var Ee=ve[0],Te=ve[1];Ze("["+Ee+"] =>",te+2),ot(Te,te+4)})}}n.exports={Node:k,Root:i,NodeList:e,Value:T,Literal:o,Symbol:b,Group:v,Array:y,Pair:r,Dict:l,Output:z,Capture:q,TemplateData:le,If:u,IfAsync:f,InlineIf:E,For:x,AsyncEach:P,AsyncAll:M,Macro:F,Caller:K,Import:$,FromImport:A,FunCall:O,Filter:B,FilterAsync:V,KeywordArgs:U,Block:ee,Super:oe,Extends:de,Include:be,Set:D,Switch:X,Case:H,LookupVal:m,BinOp:me,In:Le,Is:C,Or:j,And:Z,Not:N,Add:W,Concat:Y,Sub:ie,Mul:G,Div:Q,FloorDiv:he,Mod:se,Pow:we,Neg:ke,Pos:qe,Compare:it,CompareOperand:Je,CallExtension:Xe,CallExtensionAsync:Tt,printNodes:ot}},function(n,g){},function(n,g,d){function c(o,b){o.prototype=Object.create(b.prototype),o.prototype.constructor=o,w(o,b)}function w(o,b){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,r){return y.__proto__=r,y},w(o,b)}var s=d(8),h=d(17),p=d(3),_=d(0),I=_.TemplateError,R=d(2),S=R.Frame,k=d(1),T=k.Obj,e={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},i=function(o){c(b,o);function b(){return o.apply(this,arguments)||this}var v=b.prototype;return v.init=function(r,l){this.templateName=r,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=l},v.fail=function(r,l,m){throw l!==void 0&&(l+=1),m!==void 0&&(m+=1),new I(r,l,m)},v._pushBuffer=function(){var r=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=r,this._emit("var "+this.buffer+' = "";'),r},v._popBuffer=function(){this.buffer=this.bufferStack.pop()},v._emit=function(r){this.codebuf.push(r)},v._emitLine=function(r){this._emit(r+`
|
|
11
|
-
`)},v._emitLines=function(){for(var r=this,l=arguments.length,m=new Array(l),u=0;u<l;u++)m[u]=arguments[u];m.forEach(function(f){return r._emitLine(f)})},v._emitFuncBegin=function(r,l){this.buffer="output",this._scopeClosers="",this._emitLine("function "+l+"(env, context, frame, runtime, cb) {"),this._emitLine("var lineno = "+r.lineno+";"),this._emitLine("var colno = "+r.colno+";"),this._emitLine("var "+this.buffer+' = "";'),this._emitLine("try {")},v._emitFuncEnd=function(r){r||this._emitLine("cb(null, "+this.buffer+");"),this._closeScopeLevels(),this._emitLine("} catch (e) {"),this._emitLine(" cb(runtime.handleError(e, lineno, colno));"),this._emitLine("}"),this._emitLine("}"),this.buffer=null},v._addScopeLevel=function(){this._scopeClosers+="})"},v._closeScopeLevels=function(){this._emitLine(this._scopeClosers+";"),this._scopeClosers=""},v._withScopedSyntax=function(r){var l=this._scopeClosers;this._scopeClosers="",r.call(this),this._closeScopeLevels(),this._scopeClosers=l},v._makeCallback=function(r){var l=this._tmpid();return"function("+l+(r?","+r:"")+`) {
|
|
12
|
-
if(`+l+") { cb("+l+"); return; }"},v._tmpid=function(){return this.lastId++,"t_"+this.lastId},v._templateName=function(){return this.templateName==null?"undefined":JSON.stringify(this.templateName)},v._compileChildren=function(r,l){var m=this;r.children.forEach(function(u){m.compile(u,l)})},v._compileAggregate=function(r,l,m,u){var f=this;m&&this._emit(m),r.children.forEach(function(E,x){x>0&&f._emit(","),f.compile(E,l)}),u&&this._emit(u)},v._compileExpression=function(r,l){this.assertType(r,p.Literal,p.Symbol,p.Group,p.Array,p.Dict,p.FunCall,p.Caller,p.Filter,p.LookupVal,p.Compare,p.InlineIf,p.In,p.Is,p.And,p.Or,p.Not,p.Add,p.Concat,p.Sub,p.Mul,p.Div,p.FloorDiv,p.Mod,p.Pow,p.Neg,p.Pos,p.Compare,p.NodeList),this.compile(r,l)},v.assertType=function(r){for(var l=arguments.length,m=new Array(l>1?l-1:0),u=1;u<l;u++)m[u-1]=arguments[u];m.some(function(f){return r instanceof f})||this.fail("assertType: invalid type: "+r.typename,r.lineno,r.colno)},v.compileCallExtension=function(r,l,m){var u=this,f=r.args,E=r.contentArgs,x=typeof r.autoescape=="boolean"?r.autoescape:!0;if(m||this._emit(this.buffer+" += runtime.suppressValue("),this._emit('env.getExtension("'+r.extName+'")["'+r.prop+'"]('),this._emit("context"),(f||E)&&this._emit(","),f&&(f instanceof p.NodeList||this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"),f.children.forEach(function(M,F){u._compileExpression(M,l),(F!==f.children.length-1||E.length)&&u._emit(",")})),E.length&&E.forEach(function(M,F){if(F>0&&u._emit(","),M){u._emitLine("function(cb) {"),u._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var K=u._pushBuffer();u._withScopedSyntax(function(){u.compile(M,l),u._emitLine("cb(null, "+K+");")}),u._popBuffer(),u._emitLine("return "+K+";"),u._emitLine("}")}else u._emit("null")}),m){var P=this._tmpid();this._emitLine(", "+this._makeCallback(P)),this._emitLine(this.buffer+" += runtime.suppressValue("+P+", "+x+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+x+` && env.opts.autoescape);
|
|
13
|
-
`)},v.compileCallExtensionAsync=function(r,l){this.compileCallExtension(r,l,!0)},v.compileNodeList=function(r,l){this._compileChildren(r,l)},v.compileLiteral=function(r){if(typeof r.value=="string"){var l=r.value.replace(/\\/g,"\\\\");l=l.replace(/"/g,'\\"'),l=l.replace(/\n/g,"\\n"),l=l.replace(/\r/g,"\\r"),l=l.replace(/\t/g,"\\t"),l=l.replace(/\u2028/g,"\\u2028"),this._emit('"'+l+'"')}else r.value===null?this._emit("null"):this._emit(r.value.toString())},v.compileSymbol=function(r,l){var m=r.value,u=l.lookup(m);u?this._emit(u):this._emit('runtime.contextOrFrameLookup(context, frame, "'+m+'")')},v.compileGroup=function(r,l){this._compileAggregate(r,l,"(",")")},v.compileArray=function(r,l){this._compileAggregate(r,l,"[","]")},v.compileDict=function(r,l){this._compileAggregate(r,l,"{","}")},v.compilePair=function(r,l){var m=r.key,u=r.value;m instanceof p.Symbol?m=new p.Literal(m.lineno,m.colno,m.value):m instanceof p.Literal&&typeof m.value=="string"||this.fail("compilePair: Dict keys must be strings or names",m.lineno,m.colno),this.compile(m,l),this._emit(": "),this._compileExpression(u,l)},v.compileInlineIf=function(r,l){this._emit("("),this.compile(r.cond,l),this._emit("?"),this.compile(r.body,l),this._emit(":"),r.else_!==null?this.compile(r.else_,l):this._emit('""'),this._emit(")")},v.compileIn=function(r,l){this._emit("runtime.inOperator("),this.compile(r.left,l),this._emit(","),this.compile(r.right,l),this._emit(")")},v.compileIs=function(r,l){var m=r.right.name?r.right.name.value:r.right.value;this._emit('env.getTest("'+m+'").call(context, '),this.compile(r.left,l),r.right.args&&(this._emit(","),this.compile(r.right.args,l)),this._emit(") === true")},v._binOpEmitter=function(r,l,m){this.compile(r.left,l),this._emit(m),this.compile(r.right,l)},v.compileOr=function(r,l){return this._binOpEmitter(r,l," || ")},v.compileAnd=function(r,l){return this._binOpEmitter(r,l," && ")},v.compileAdd=function(r,l){return this._binOpEmitter(r,l," + ")},v.compileConcat=function(r,l){return this._binOpEmitter(r,l,' + "" + ')},v.compileSub=function(r,l){return this._binOpEmitter(r,l," - ")},v.compileMul=function(r,l){return this._binOpEmitter(r,l," * ")},v.compileDiv=function(r,l){return this._binOpEmitter(r,l," / ")},v.compileMod=function(r,l){return this._binOpEmitter(r,l," % ")},v.compileNot=function(r,l){this._emit("!"),this.compile(r.target,l)},v.compileFloorDiv=function(r,l){this._emit("Math.floor("),this.compile(r.left,l),this._emit(" / "),this.compile(r.right,l),this._emit(")")},v.compilePow=function(r,l){this._emit("Math.pow("),this.compile(r.left,l),this._emit(", "),this.compile(r.right,l),this._emit(")")},v.compileNeg=function(r,l){this._emit("-"),this.compile(r.target,l)},v.compilePos=function(r,l){this._emit("+"),this.compile(r.target,l)},v.compileCompare=function(r,l){var m=this;this.compile(r.expr,l),r.ops.forEach(function(u){m._emit(" "+e[u.type]+" "),m.compile(u.expr,l)})},v.compileLookupVal=function(r,l){this._emit("runtime.memberLookup(("),this._compileExpression(r.target,l),this._emit("),"),this._compileExpression(r.val,l),this._emit(")")},v._getNodeName=function(r){switch(r.typename){case"Symbol":return r.value;case"FunCall":return"the return value of ("+this._getNodeName(r.name)+")";case"LookupVal":return this._getNodeName(r.target)+'["'+this._getNodeName(r.val)+'"]';case"Literal":return r.value.toString();default:return"--expression--"}},v.compileFunCall=function(r,l){this._emit("(lineno = "+r.lineno+", colno = "+r.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(r.name,l),this._emit(', "'+this._getNodeName(r.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(r.args,l,"[","])"),this._emit(")")},v.compileFilter=function(r,l){var m=r.name;this.assertType(m,p.Symbol),this._emit('env.getFilter("'+m.value+'").call(context, '),this._compileAggregate(r.args,l),this._emit(")")},v.compileFilterAsync=function(r,l){var m=r.name,u=r.symbol.value;this.assertType(m,p.Symbol),l.set(u,u),this._emit('env.getFilter("'+m.value+'").call(context, '),this._compileAggregate(r.args,l),this._emitLine(", "+this._makeCallback(u)),this._addScopeLevel()},v.compileKeywordArgs=function(r,l){this._emit("runtime.makeKeywordArgs("),this.compileDict(r,l),this._emit(")")},v.compileSet=function(r,l){var m=this,u=[];r.targets.forEach(function(f){var E=f.value,x=l.lookup(E);x==null&&(x=m._tmpid(),m._emitLine("var "+x+";")),u.push(x)}),r.value?(this._emit(u.join(" = ")+" = "),this._compileExpression(r.value,l),this._emitLine(";")):(this._emit(u.join(" = ")+" = "),this.compile(r.body,l),this._emitLine(";")),r.targets.forEach(function(f,E){var x=u[E],P=f.value;m._emitLine('frame.set("'+P+'", '+x+", true);"),m._emitLine("if(frame.topLevel) {"),m._emitLine('context.setVariable("'+P+'", '+x+");"),m._emitLine("}"),P.charAt(0)!=="_"&&(m._emitLine("if(frame.topLevel) {"),m._emitLine('context.addExport("'+P+'", '+x+");"),m._emitLine("}"))})},v.compileSwitch=function(r,l){var m=this;this._emit("switch ("),this.compile(r.expr,l),this._emit(") {"),r.cases.forEach(function(u,f){m._emit("case "),m.compile(u.cond,l),m._emit(": "),m.compile(u.body,l),u.body.children.length&&m._emitLine("break;")}),r.default&&(this._emit("default:"),this.compile(r.default,l)),this._emit("}")},v.compileIf=function(r,l,m){var u=this;this._emit("if("),this._compileExpression(r.cond,l),this._emitLine(") {"),this._withScopedSyntax(function(){u.compile(r.body,l),m&&u._emit("cb()")}),r.else_?(this._emitLine(`}
|
|
14
|
-
else {`),this._withScopedSyntax(function(){u.compile(r.else_,l),m&&u._emit("cb()")})):m&&(this._emitLine(`}
|
|
15
|
-
else {`),this._emit("cb()")),this._emitLine("}")},v.compileIfAsync=function(r,l){this._emit("(function(cb) {"),this.compileIf(r,l,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},v._emitLoopBindings=function(r,l,m,u){var f=this,E=[{name:"index",val:m+" + 1"},{name:"index0",val:m},{name:"revindex",val:u+" - "+m},{name:"revindex0",val:u+" - "+m+" - 1"},{name:"first",val:m+" === 0"},{name:"last",val:m+" === "+u+" - 1"},{name:"length",val:u}];E.forEach(function(x){f._emitLine('frame.set("loop.'+x.name+'", '+x.val+");")})},v.compileFor=function(r,l){var m=this,u=this._tmpid(),f=this._tmpid(),E=this._tmpid();if(l=l.push(),this._emitLine("frame = frame.push();"),this._emit("var "+E+" = "),this._compileExpression(r.arr,l),this._emitLine(";"),this._emit("if("+E+") {"),this._emitLine(E+" = runtime.fromIterator("+E+");"),r.name instanceof p.Array){this._emitLine("var "+u+";"),this._emitLine("if(runtime.isArray("+E+")) {"),this._emitLine("var "+f+" = "+E+".length;"),this._emitLine("for("+u+"=0; "+u+" < "+E+".length; "+u+"++) {"),r.name.children.forEach(function(A,O){var B=m._tmpid();m._emitLine("var "+B+" = "+E+"["+u+"]["+O+"];"),m._emitLine('frame.set("'+A+'", '+E+"["+u+"]["+O+"]);"),l.set(r.name.children[O].value,B)}),this._emitLoopBindings(r,E,u,f),this._withScopedSyntax(function(){m.compile(r.body,l)}),this._emitLine("}"),this._emitLine("} else {");var x=r.name.children,P=x[0],M=x[1],F=this._tmpid(),K=this._tmpid();l.set(P.value,F),l.set(M.value,K),this._emitLine(u+" = -1;"),this._emitLine("var "+f+" = runtime.keys("+E+").length;"),this._emitLine("for(var "+F+" in "+E+") {"),this._emitLine(u+"++;"),this._emitLine("var "+K+" = "+E+"["+F+"];"),this._emitLine('frame.set("'+P.value+'", '+F+");"),this._emitLine('frame.set("'+M.value+'", '+K+");"),this._emitLoopBindings(r,E,u,f),this._withScopedSyntax(function(){m.compile(r.body,l)}),this._emitLine("}"),this._emitLine("}")}else{var $=this._tmpid();l.set(r.name.value,$),this._emitLine("var "+f+" = "+E+".length;"),this._emitLine("for(var "+u+"=0; "+u+" < "+E+".length; "+u+"++) {"),this._emitLine("var "+$+" = "+E+"["+u+"];"),this._emitLine('frame.set("'+r.name.value+'", '+$+");"),this._emitLoopBindings(r,E,u,f),this._withScopedSyntax(function(){m.compile(r.body,l)}),this._emitLine("}")}this._emitLine("}"),r.else_&&(this._emitLine("if (!"+f+") {"),this.compile(r.else_,l),this._emitLine("}")),this._emitLine("frame = frame.pop();")},v._compileAsyncLoop=function(r,l,m){var u=this,f=this._tmpid(),E=this._tmpid(),x=this._tmpid(),P=m?"asyncAll":"asyncEach";if(l=l.push(),this._emitLine("frame = frame.push();"),this._emit("var "+x+" = runtime.fromIterator("),this._compileExpression(r.arr,l),this._emitLine(");"),r.name instanceof p.Array){var M=r.name.children.length;this._emit("runtime."+P+"("+x+", "+M+", function("),r.name.children.forEach(function($){u._emit($.value+",")}),this._emit(f+","+E+",next) {"),r.name.children.forEach(function($){var A=$.value;l.set(A,A),u._emitLine('frame.set("'+A+'", '+A+");")})}else{var F=r.name.value;this._emitLine("runtime."+P+"("+x+", 1, function("+F+", "+f+", "+E+",next) {"),this._emitLine('frame.set("'+F+'", '+F+");"),l.set(F,F)}this._emitLoopBindings(r,x,f,E),this._withScopedSyntax(function(){var $;m&&($=u._pushBuffer()),u.compile(r.body,l),u._emitLine("next("+f+($?","+$:"")+");"),m&&u._popBuffer()});var K=this._tmpid();this._emitLine("}, "+this._makeCallback(K)),this._addScopeLevel(),m&&this._emitLine(this.buffer+" += "+K+";"),r.else_&&(this._emitLine("if (!"+x+".length) {"),this.compile(r.else_,l),this._emitLine("}")),this._emitLine("frame = frame.pop();")},v.compileAsyncEach=function(r,l){this._compileAsyncLoop(r,l)},v.compileAsyncAll=function(r,l){this._compileAsyncLoop(r,l,!0)},v._compileMacro=function(r,l){var m=this,u=[],f=null,E="macro_"+this._tmpid(),x=l!==void 0;r.args.children.forEach(function(A,O){O===r.args.children.length-1&&A instanceof p.Dict?f=A:(m.assertType(A,p.Symbol),u.push(A))});var P=[].concat(u.map(function(A){return"l_"+A.value}),["kwargs"]),M=u.map(function(A){return'"'+A.value+'"'}),F=(f&&f.children||[]).map(function(A){return'"'+A.key.value+'"'}),K;x?K=l.push(!0):K=new S,this._emitLines("var "+E+" = runtime.makeMacro(","["+M.join(", ")+"], ","["+F.join(", ")+"], ","function ("+P.join(", ")+") {","var callerFrame = frame;","frame = "+(x?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),u.forEach(function(A){m._emitLine('frame.set("'+A.value+'", l_'+A.value+");"),K.set(A.value,"l_"+A.value)}),f&&f.children.forEach(function(A){var O=A.key.value;m._emit('frame.set("'+O+'", '),m._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+O+'")'),m._emit(' ? kwargs["'+O+'"] : '),m._compileExpression(A.value,K),m._emit(");")});var $=this._pushBuffer();return this._withScopedSyntax(function(){m.compile(r.body,K)}),this._emitLine("frame = "+(x?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+$+");"),this._emitLine("});"),this._popBuffer(),E},v.compileMacro=function(r,l){var m=this._compileMacro(r),u=r.name.value;l.set(u,m),l.parent?this._emitLine('frame.set("'+u+'", '+m+");"):(r.name.value.charAt(0)!=="_"&&this._emitLine('context.addExport("'+u+'");'),this._emitLine('context.setVariable("'+u+'", '+m+");"))},v.compileCaller=function(r,l){this._emit("(function (){");var m=this._compileMacro(r,l);this._emit("return "+m+";})()")},v._compileGetTemplate=function(r,l,m,u){var f=this._tmpid(),E=this._templateName(),x=this._makeCallback(f),P=m?"true":"false",M=u?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(r.template,l),this._emitLine(", "+P+", "+E+", "+M+", "+x),f},v.compileImport=function(r,l){var m=r.target.value,u=this._compileGetTemplate(r,l,!1,!1);this._addScopeLevel(),this._emitLine(u+".getExported("+(r.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(u)),this._addScopeLevel(),l.set(m,u),l.parent?this._emitLine('frame.set("'+m+'", '+u+");"):this._emitLine('context.setVariable("'+m+'", '+u+");")},v.compileFromImport=function(r,l){var m=this,u=this._compileGetTemplate(r,l,!1,!1);this._addScopeLevel(),this._emitLine(u+".getExported("+(r.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(u)),this._addScopeLevel(),r.names.children.forEach(function(f){var E,x,P=m._tmpid();f instanceof p.Pair?(E=f.key.value,x=f.value.value):(E=f.value,x=E),m._emitLine("if(Object.prototype.hasOwnProperty.call("+u+', "'+E+'")) {'),m._emitLine("var "+P+" = "+u+"."+E+";"),m._emitLine("} else {"),m._emitLine(`cb(new Error("cannot import '`+E+`'")); return;`),m._emitLine("}"),l.set(x,P),l.parent?m._emitLine('frame.set("'+x+'", '+P+");"):m._emitLine('context.setVariable("'+x+'", '+P+");")})},v.compileBlock=function(r){var l=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+r.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(l)),this._emitLine(this.buffer+" += "+l+";"),this._addScopeLevel()},v.compileSuper=function(r,l){var m=r.blockName.value,u=r.symbol.value,f=this._makeCallback(u);this._emitLine('context.getSuper(env, "'+m+'", b_'+m+", frame, runtime, "+f),this._emitLine(u+" = runtime.markSafe("+u+");"),this._addScopeLevel(),l.set(u,u)},v.compileExtends=function(r,l){var m=this._tmpid(),u=this._compileGetTemplate(r,l,!0,!1);this._emitLine("parentTemplate = "+u),this._emitLine("for(var "+m+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+m+", parentTemplate.blocks["+m+"]);"),this._emitLine("}"),this._addScopeLevel()},v.compileInclude=function(r,l){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var m=this._compileGetTemplate(r,l,!1,r.ignoreMissing);this._emitLine("callback(null,"+m+");});"),this._emitLine("});");var u=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(u)),this._emitLine("callback(null,"+u+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},v.compileTemplateData=function(r,l){this.compileLiteral(r,l)},v.compileCapture=function(r,l){var m=this,u=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax(function(){m.compile(r.body,l)}),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=u},v.compileOutput=function(r,l){var m=this,u=r.children;u.forEach(function(f){f instanceof p.TemplateData?f.value&&(m._emit(m.buffer+" += "),m.compileLiteral(f,l),m._emitLine(";")):(m._emit(m.buffer+" += runtime.suppressValue("),m.throwOnUndefined&&m._emit("runtime.ensureDefined("),m.compile(f,l),m.throwOnUndefined&&m._emit(","+r.lineno+","+r.colno+")"),m._emit(`, env.opts.autoescape);
|
|
16
|
-
`))})},v.compileRoot=function(r,l){var m=this;l&&this.fail("compileRoot: root node can't have frame"),l=new S,this._emitFuncBegin(r,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(r,l),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var u=[],f=r.findAll(p.Block);f.forEach(function(E,x){var P=E.name.value;if(u.indexOf(P)!==-1)throw new Error('Block "'+P+'" defined more than once.');u.push(P),m._emitFuncBegin(E,"b_"+P);var M=new S;m._emitLine("var frame = frame.push(true);"),m.compile(E.body,M),m._emitFuncEnd()}),this._emitLine("return {"),f.forEach(function(E,x){var P="b_"+E.name.value;m._emitLine(P+": "+P+",")}),this._emitLine(`root: root
|
|
17
|
-
};`)},v.compile=function(r,l){var m=this["compile"+r.typename];m?m.call(this,r,l):this.fail("compile: Cannot compile node: "+r.typename,r.lineno,r.colno)},v.getCode=function(){return this.codebuf.join("")},b}(T);n.exports={compile:function(b,v,y,r,l){l===void 0&&(l={});var m=new i(r,l.throwOnUndefined),u=(y||[]).map(function(E){return E.preprocess}).filter(function(E){return!!E}),f=u.reduce(function(E,x){return x(E)},b);return m.compile(h.transform(s.parse(f,y,l),v,r)),m.getCode()},Compiler:i}},function(n,g,d){function c(_,I){_.prototype=Object.create(I.prototype),_.prototype.constructor=_,w(_,I)}function w(_,I){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,k){return S.__proto__=k,S},w(_,I)}var s=d(4),h=d(1),p=h.EmitterObj;n.exports=function(_){c(I,_);function I(){return _.apply(this,arguments)||this}var R=I.prototype;return R.resolve=function(k,T){return s.resolve(s.dirname(k),T)},R.isRelative=function(k){return k.indexOf("./")===0||k.indexOf("../")===0},I}(p)},function(n,g,d){function c(M,F){M.prototype=Object.create(F.prototype),M.prototype.constructor=M,w(M,F)}function w(M,F){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,A){return $.__proto__=A,$},w(M,F)}var s=d(12),h=d(15),p=d(0),_=d(5),I=d(18),R=d(10),S=R.FileSystemLoader,k=R.WebLoader,T=R.PrecompiledLoader,e=d(20),i=d(21),o=d(1),b=o.Obj,v=o.EmitterObj,y=d(2),r=y.handleError,l=y.Frame,m=d(22);function u(M,F,K){s(function(){M(F,K)})}var f={type:"code",obj:{root:function(F,K,$,A,O){try{O(null,"")}catch(B){O(r(B,null,null))}}}},E=function(M){c(F,M);function F(){return M.apply(this,arguments)||this}var K=F.prototype;return K.init=function(A,O){var B=this;O=this.opts=O||{},this.opts.dev=!!O.dev,this.opts.autoescape=O.autoescape!=null?O.autoescape:!0,this.opts.throwOnUndefined=!!O.throwOnUndefined,this.opts.trimBlocks=!!O.trimBlocks,this.opts.lstripBlocks=!!O.lstripBlocks,this.loaders=[],A?this.loaders=p.isArray(A)?A:[A]:S?this.loaders=[new S("views")]:k&&(this.loaders=[new k("/views")]),typeof window<"u"&&window.nunjucksPrecompiled&&this.loaders.unshift(new T(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=i(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],p._entries(I).forEach(function(V){var U=V[0],ee=V[1];return B.addFilter(U,ee)}),p._entries(e).forEach(function(V){var U=V[0],ee=V[1];return B.addTest(U,ee)})},K._initLoaders=function(){var A=this;this.loaders.forEach(function(O){O.cache={},typeof O.on=="function"&&(O.on("update",function(B,V){O.cache[B]=null,A.emit("update",B,V,O)}),O.on("load",function(B,V){A.emit("load",B,V,O)}))})},K.invalidateCache=function(){this.loaders.forEach(function(A){A.cache={}})},K.addExtension=function(A,O){return O.__name=A,this.extensions[A]=O,this.extensionsList.push(O),this},K.removeExtension=function(A){var O=this.getExtension(A);O&&(this.extensionsList=p.without(this.extensionsList,O),delete this.extensions[A])},K.getExtension=function(A){return this.extensions[A]},K.hasExtension=function(A){return!!this.extensions[A]},K.addGlobal=function(A,O){return this.globals[A]=O,this},K.getGlobal=function(A){if(typeof this.globals[A]>"u")throw new Error("global not found: "+A);return this.globals[A]},K.addFilter=function(A,O,B){var V=O;return B&&this.asyncFilters.push(A),this.filters[A]=V,this},K.getFilter=function(A){if(!this.filters[A])throw new Error("filter not found: "+A);return this.filters[A]},K.addTest=function(A,O){return this.tests[A]=O,this},K.getTest=function(A){if(!this.tests[A])throw new Error("test not found: "+A);return this.tests[A]},K.resolveTemplate=function(A,O,B){var V=A.isRelative&&O?A.isRelative(B):!1;return V&&A.resolve?A.resolve(O,B):B},K.getTemplate=function(A,O,B,V,U){var ee=this,oe=this,ne=null;if(A&&A.raw&&(A=A.raw),p.isFunction(B)&&(U=B,B=null,O=O||!1),p.isFunction(O)&&(U=O,O=!1),A instanceof P)ne=A;else{if(typeof A!="string")throw new Error("template names must be a string: "+A);for(var de=0;de<this.loaders.length;de++){var be=this.loaders[de];if(ne=be.cache[this.resolveTemplate(be,B,A)],ne)break}}if(ne)if(O&&ne.compile(),U){U(null,ne);return}else return ne;var D,X=function(z,q){if(!q&&!z&&!V&&(z=new Error("template not found: "+A)),z)if(U){U(z);return}else throw z;var le;q?(le=new P(q.src,ee,q.path,O),q.noCache||(q.loader.cache[A]=le)):le=new P(f,ee,"",O),U?U(null,le):D=le};return p.asyncIter(this.loaders,function(H,z,q,le){function _e(me,Le){me?le(me):Le?(Le.loader=H,le(null,Le)):q()}A=oe.resolveTemplate(H,B,A),H.async?H.getSource(A,_e):_e(null,H.getSource(A))},X),D},K.express=function(A){return m(this,A)},K.render=function(A,O,B){p.isFunction(O)&&(B=O,O=null);var V=null;return this.getTemplate(A,function(U,ee){if(U&&B)u(B,U);else{if(U)throw U;V=ee.render(O,B)}}),V},K.renderString=function(A,O,B,V){p.isFunction(B)&&(V=B,B={}),B=B||{};var U=new P(A,this,B.path);return U.render(O,V)},K.waterfall=function(A,O,B){return h(A,O,B)},F}(v),x=function(M){c(F,M);function F(){return M.apply(this,arguments)||this}var K=F.prototype;return K.init=function(A,O,B){var V=this;this.env=B||new E,this.ctx=p.extend({},A),this.blocks={},this.exported=[],p.keys(O).forEach(function(U){V.addBlock(U,O[U])})},K.lookup=function(A){return A in this.env.globals&&!(A in this.ctx)?this.env.globals[A]:this.ctx[A]},K.setVariable=function(A,O){this.ctx[A]=O},K.getVariables=function(){return this.ctx},K.addBlock=function(A,O){return this.blocks[A]=this.blocks[A]||[],this.blocks[A].push(O),this},K.getBlock=function(A){if(!this.blocks[A])throw new Error('unknown block "'+A+'"');return this.blocks[A][0]},K.getSuper=function(A,O,B,V,U,ee){var oe=p.indexOf(this.blocks[O]||[],B),ne=this.blocks[O][oe+1],de=this;if(oe===-1||!ne)throw new Error('no super block available for "'+O+'"');ne(A,de,V,U,ee)},K.addExport=function(A){this.exported.push(A)},K.getExported=function(){var A=this,O={};return this.exported.forEach(function(B){O[B]=A.ctx[B]}),O},F}(b),P=function(M){c(F,M);function F(){return M.apply(this,arguments)||this}var K=F.prototype;return K.init=function(A,O,B,V){if(this.env=O||new E,p.isObject(A))switch(A.type){case"code":this.tmplProps=A.obj;break;case"string":this.tmplStr=A.obj;break;default:throw new Error("Unexpected template object type "+A.type+"; expected 'code', or 'string'")}else if(p.isString(A))this.tmplStr=A;else throw new Error("src must be a string or an object describing the source");if(this.path=B,V)try{this._compile()}catch(U){throw p._prettifyError(this.path,this.env.opts.dev,U)}else this.compiled=!1},K.render=function(A,O,B){var V=this;typeof A=="function"?(B=A,A={}):typeof O=="function"&&(B=O,O=null);var U=!O;try{this.compile()}catch(D){var ee=p._prettifyError(this.path,this.env.opts.dev,D);if(B)return u(B,ee);throw ee}var oe=new x(A||{},this.blocks,this.env),ne=O?O.push(!0):new l;ne.topLevel=!0;var de=null,be=!1;return this.rootRenderFunc(this.env,oe,ne,y,function(D,X){if(!(be&&B&&typeof X<"u"))if(D&&(D=p._prettifyError(V.path,V.env.opts.dev,D),be=!0),B)U?u(B,D,X):B(D,X);else{if(D)throw D;de=X}}),de},K.getExported=function(A,O,B){typeof A=="function"&&(B=A,A={}),typeof O=="function"&&(B=O,O=null);try{this.compile()}catch(ee){if(B)return B(ee);throw ee}var V=O?O.push():new l;V.topLevel=!0;var U=new x(A||{},this.blocks,this.env);this.rootRenderFunc(this.env,U,V,y,function(ee){ee?B(ee,null):B(null,U.getExported())})},K.compile=function(){this.compiled||this._compile()},K._compile=function(){var A;if(this.tmplProps)A=this.tmplProps;else{var O=_.compile(this.tmplStr,this.env.asyncFilters,this.env.extensionsList,this.path,this.env.opts),B=new Function(O);A=B()}this.blocks=this._getBlocks(A),this.rootRenderFunc=A.root,this.compiled=!0},K._getBlocks=function(A){var O={};return p.keys(A).forEach(function(B){B.slice(0,2)==="b_"&&(O[B.slice(2)]=A[B])}),O},F}(b);n.exports={Environment:E,Template:P}},function(n,g,d){function c(R,S){R.prototype=Object.create(S.prototype),R.prototype.constructor=R,w(R,S)}function w(R,S){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,e){return T.__proto__=e,T},w(R,S)}var s=d(9),h=d(3),p=d(1).Obj,_=d(0),I=function(R){c(S,R);function S(){return R.apply(this,arguments)||this}var k=S.prototype;return k.init=function(e){this.tokens=e,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},k.nextToken=function(e){var i;if(this.peeked)if(!e&&this.peeked.type===s.TOKEN_WHITESPACE)this.peeked=null;else return i=this.peeked,this.peeked=null,i;if(i=this.tokens.nextToken(),!e)for(;i&&i.type===s.TOKEN_WHITESPACE;)i=this.tokens.nextToken();return i},k.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},k.pushToken=function(e){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=e},k.error=function(e,i,o){if(i===void 0||o===void 0){var b=this.peekToken()||{};i=b.lineno,o=b.colno}return i!==void 0&&(i+=1),o!==void 0&&(o+=1),new _.TemplateError(e,i,o)},k.fail=function(e,i,o){throw this.error(e,i,o)},k.skip=function(e){var i=this.nextToken();return!i||i.type!==e?(this.pushToken(i),!1):!0},k.expect=function(e){var i=this.nextToken();return i.type!==e&&this.fail("expected "+e+", got "+i.type,i.lineno,i.colno),i},k.skipValue=function(e,i){var o=this.nextToken();return!o||o.type!==e||o.value!==i?(this.pushToken(o),!1):!0},k.skipSymbol=function(e){return this.skipValue(s.TOKEN_SYMBOL,e)},k.advanceAfterBlockEnd=function(e){var i;return e||(i=this.peekToken(),i||this.fail("unexpected end of file"),i.type!==s.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),e=this.nextToken().value),i=this.nextToken(),i&&i.type===s.TOKEN_BLOCK_END?i.value.charAt(0)==="-"&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+e+" statement"),i},k.advanceAfterVariableEnd=function(){var e=this.nextToken();e&&e.type===s.TOKEN_VARIABLE_END?this.dropLeadingWhitespace=e.value.charAt(e.value.length-this.tokens.tags.VARIABLE_END.length-1)==="-":(this.pushToken(e),this.fail("expected variable end"))},k.parseFor=function(){var e=this.peekToken(),i,o;this.skipSymbol("for")?(i=new h.For(e.lineno,e.colno),o="endfor"):this.skipSymbol("asyncEach")?(i=new h.AsyncEach(e.lineno,e.colno),o="endeach"):this.skipSymbol("asyncAll")?(i=new h.AsyncAll(e.lineno,e.colno),o="endall"):this.fail("parseFor: expected for{Async}",e.lineno,e.colno),i.name=this.parsePrimary(),i.name instanceof h.Symbol||this.fail("parseFor: variable name expected for loop");var b=this.peekToken().type;if(b===s.TOKEN_COMMA){var v=i.name;for(i.name=new h.Array(v.lineno,v.colno),i.name.addChild(v);this.skip(s.TOKEN_COMMA);){var y=this.parsePrimary();i.name.addChild(y)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',e.lineno,e.colno),i.arr=this.parseExpression(),this.advanceAfterBlockEnd(e.value),i.body=this.parseUntilBlocks(o,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),i.else_=this.parseUntilBlocks(o)),this.advanceAfterBlockEnd(),i},k.parseMacro=function(){var e=this.peekToken();this.skipSymbol("macro")||this.fail("expected macro");var i=this.parsePrimary(!0),o=this.parseSignature(),b=new h.Macro(e.lineno,e.colno,i,o);return this.advanceAfterBlockEnd(e.value),b.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),b},k.parseCall=function(){var e=this.peekToken();this.skipSymbol("call")||this.fail("expected call");var i=this.parseSignature(!0)||new h.NodeList,o=this.parsePrimary();this.advanceAfterBlockEnd(e.value);var b=this.parseUntilBlocks("endcall");this.advanceAfterBlockEnd();var v=new h.Symbol(e.lineno,e.colno,"caller"),y=new h.Caller(e.lineno,e.colno,v,i,b),r=o.args.children;r[r.length-1]instanceof h.KeywordArgs||r.push(new h.KeywordArgs);var l=r[r.length-1];return l.addChild(new h.Pair(e.lineno,e.colno,v,y)),new h.Output(e.lineno,e.colno,[o])},k.parseWithContext=function(){var e=this.peekToken(),i=null;return this.skipSymbol("with")?i=!0:this.skipSymbol("without")&&(i=!1),i!==null&&(this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",e.lineno,e.colno)),i},k.parseImport=function(){var e=this.peekToken();this.skipSymbol("import")||this.fail("parseImport: expected import",e.lineno,e.colno);var i=this.parseExpression();this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',e.lineno,e.colno);var o=this.parseExpression(),b=this.parseWithContext(),v=new h.Import(e.lineno,e.colno,i,o,b);return this.advanceAfterBlockEnd(e.value),v},k.parseFrom=function(){var e=this.peekToken();this.skipSymbol("from")||this.fail("parseFrom: expected from");var i=this.parseExpression();this.skipSymbol("import")||this.fail("parseFrom: expected import",e.lineno,e.colno);for(var o=new h.NodeList,b;;){var v=this.peekToken();if(v.type===s.TOKEN_BLOCK_END){o.children.length||this.fail("parseFrom: Expected at least one import name",e.lineno,e.colno),v.value.charAt(0)==="-"&&(this.dropLeadingWhitespace=!0),this.nextToken();break}o.children.length>0&&!this.skip(s.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",e.lineno,e.colno);var y=this.parsePrimary();if(y.value.charAt(0)==="_"&&this.fail("parseFrom: names starting with an underscore cannot be imported",y.lineno,y.colno),this.skipSymbol("as")){var r=this.parsePrimary();o.addChild(new h.Pair(y.lineno,y.colno,y,r))}else o.addChild(y);b=this.parseWithContext()}return new h.FromImport(e.lineno,e.colno,i,o,b)},k.parseBlock=function(){var e=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",e.lineno,e.colno);var i=new h.Block(e.lineno,e.colno);i.name=this.parsePrimary(),i.name instanceof h.Symbol||this.fail("parseBlock: variable name expected",e.lineno,e.colno),this.advanceAfterBlockEnd(e.value),i.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(i.name.value);var o=this.peekToken();return o||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(o.value),i},k.parseExtends=function(){var e="extends",i=this.peekToken();this.skipSymbol(e)||this.fail("parseTemplateRef: expected "+e);var o=new h.Extends(i.lineno,i.colno);return o.template=this.parseExpression(),this.advanceAfterBlockEnd(i.value),o},k.parseInclude=function(){var e="include",i=this.peekToken();this.skipSymbol(e)||this.fail("parseInclude: expected "+e);var o=new h.Include(i.lineno,i.colno);return o.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(o.ignoreMissing=!0),this.advanceAfterBlockEnd(i.value),o},k.parseIf=function(){var e=this.peekToken(),i;this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?i=new h.If(e.lineno,e.colno):this.skipSymbol("ifAsync")?i=new h.IfAsync(e.lineno,e.colno):this.fail("parseIf: expected if, elif, or elseif",e.lineno,e.colno),i.cond=this.parseExpression(),this.advanceAfterBlockEnd(e.value),i.body=this.parseUntilBlocks("elif","elseif","else","endif");var o=this.peekToken();switch(o&&o.value){case"elseif":case"elif":i.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),i.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":i.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return i},k.parseSet=function(){var e=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",e.lineno,e.colno);for(var i=new h.Set(e.lineno,e.colno,[]),o;(o=this.parsePrimary())&&(i.targets.push(o),!!this.skip(s.TOKEN_COMMA)););return this.skipValue(s.TOKEN_OPERATOR,"=")?(i.value=this.parseExpression(),this.advanceAfterBlockEnd(e.value)):this.skip(s.TOKEN_BLOCK_END)?(i.body=new h.Capture(e.lineno,e.colno,this.parseUntilBlocks("endset")),i.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",e.lineno,e.colno),i},k.parseSwitch=function(){var e="switch",i="endswitch",o="case",b="default",v=this.peekToken();!this.skipSymbol(e)&&!this.skipSymbol(o)&&!this.skipSymbol(b)&&this.fail('parseSwitch: expected "switch," "case" or "default"',v.lineno,v.colno);var y=this.parseExpression();this.advanceAfterBlockEnd(e),this.parseUntilBlocks(o,b,i);var r=this.peekToken(),l=[],m;do{this.skipSymbol(o);var u=this.parseExpression();this.advanceAfterBlockEnd(e);var f=this.parseUntilBlocks(o,b,i);l.push(new h.Case(r.line,r.col,u,f)),r=this.peekToken()}while(r&&r.value===o);switch(r.value){case b:this.advanceAfterBlockEnd(),m=this.parseUntilBlocks(i),this.advanceAfterBlockEnd();break;case i:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new h.Switch(v.lineno,v.colno,y,l,m)},k.parseStatement=function(){var e=this.peekToken(),i;if(e.type!==s.TOKEN_SYMBOL&&this.fail("tag name expected",e.lineno,e.colno),this.breakOnBlocks&&_.indexOf(this.breakOnBlocks,e.value)!==-1)return null;switch(e.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var o=0;o<this.extensions.length;o++){var b=this.extensions[o];if(_.indexOf(b.tags||[],e.value)!==-1)return b.parse(this,h,s)}this.fail("unknown block tag: "+e.value,e.lineno,e.colno)}return i},k.parseRaw=function(e){e=e||"raw";for(var i="end"+e,o=new RegExp("([\\s\\S]*?){%\\s*("+e+"|"+i+")\\s*(?=%})%}"),b=1,v="",y=null,r=this.advanceAfterBlockEnd();(y=this.tokens._extractRegex(o))&&b>0;){var l=y[0],m=y[1],u=y[2];u===e?b+=1:u===i&&(b-=1),b===0?(v+=m,this.tokens.backN(l.length-m.length)):v+=l}return new h.Output(r.lineno,r.colno,[new h.TemplateData(r.lineno,r.colno,v)])},k.parsePostfix=function(e){for(var i,o=this.peekToken();o;){if(o.type===s.TOKEN_LEFT_PAREN)e=new h.FunCall(o.lineno,o.colno,e,this.parseSignature());else if(o.type===s.TOKEN_LEFT_BRACKET)i=this.parseAggregate(),i.children.length>1&&this.fail("invalid index"),e=new h.LookupVal(o.lineno,o.colno,e,i.children[0]);else if(o.type===s.TOKEN_OPERATOR&&o.value==="."){this.nextToken();var b=this.nextToken();b.type!==s.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+b.value,b.lineno,b.colno),i=new h.Literal(b.lineno,b.colno,b.value),e=new h.LookupVal(o.lineno,o.colno,e,i)}else break;o=this.peekToken()}return e},k.parseExpression=function(){var e=this.parseInlineIf();return e},k.parseInlineIf=function(){var e=this.parseOr();if(this.skipSymbol("if")){var i=this.parseOr(),o=e;e=new h.InlineIf(e.lineno,e.colno),e.body=o,e.cond=i,this.skipSymbol("else")?e.else_=this.parseOr():e.else_=null}return e},k.parseOr=function(){for(var e=this.parseAnd();this.skipSymbol("or");){var i=this.parseAnd();e=new h.Or(e.lineno,e.colno,e,i)}return e},k.parseAnd=function(){for(var e=this.parseNot();this.skipSymbol("and");){var i=this.parseNot();e=new h.And(e.lineno,e.colno,e,i)}return e},k.parseNot=function(){var e=this.peekToken();return this.skipSymbol("not")?new h.Not(e.lineno,e.colno,this.parseNot()):this.parseIn()},k.parseIn=function(){for(var e=this.parseIs();;){var i=this.nextToken();if(!i)break;var o=i.type===s.TOKEN_SYMBOL&&i.value==="not";if(o||this.pushToken(i),this.skipSymbol("in")){var b=this.parseIs();e=new h.In(e.lineno,e.colno,e,b),o&&(e=new h.Not(e.lineno,e.colno,e))}else{o&&this.pushToken(i);break}}return e},k.parseIs=function(){var e=this.parseCompare();if(this.skipSymbol("is")){var i=this.skipSymbol("not"),o=this.parseCompare();e=new h.Is(e.lineno,e.colno,e,o),i&&(e=new h.Not(e.lineno,e.colno,e))}return e},k.parseCompare=function(){for(var e=["==","===","!=","!==","<",">","<=",">="],i=this.parseConcat(),o=[];;){var b=this.nextToken();if(b)if(e.indexOf(b.value)!==-1)o.push(new h.CompareOperand(b.lineno,b.colno,this.parseConcat(),b.value));else{this.pushToken(b);break}else break}return o.length?new h.Compare(o[0].lineno,o[0].colno,i,o):i},k.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(s.TOKEN_TILDE,"~");){var i=this.parseAdd();e=new h.Concat(e.lineno,e.colno,e,i)}return e},k.parseAdd=function(){for(var e=this.parseSub();this.skipValue(s.TOKEN_OPERATOR,"+");){var i=this.parseSub();e=new h.Add(e.lineno,e.colno,e,i)}return e},k.parseSub=function(){for(var e=this.parseMul();this.skipValue(s.TOKEN_OPERATOR,"-");){var i=this.parseMul();e=new h.Sub(e.lineno,e.colno,e,i)}return e},k.parseMul=function(){for(var e=this.parseDiv();this.skipValue(s.TOKEN_OPERATOR,"*");){var i=this.parseDiv();e=new h.Mul(e.lineno,e.colno,e,i)}return e},k.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(s.TOKEN_OPERATOR,"/");){var i=this.parseFloorDiv();e=new h.Div(e.lineno,e.colno,e,i)}return e},k.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(s.TOKEN_OPERATOR,"//");){var i=this.parseMod();e=new h.FloorDiv(e.lineno,e.colno,e,i)}return e},k.parseMod=function(){for(var e=this.parsePow();this.skipValue(s.TOKEN_OPERATOR,"%");){var i=this.parsePow();e=new h.Mod(e.lineno,e.colno,e,i)}return e},k.parsePow=function(){for(var e=this.parseUnary();this.skipValue(s.TOKEN_OPERATOR,"**");){var i=this.parseUnary();e=new h.Pow(e.lineno,e.colno,e,i)}return e},k.parseUnary=function(e){var i=this.peekToken(),o;return this.skipValue(s.TOKEN_OPERATOR,"-")?o=new h.Neg(i.lineno,i.colno,this.parseUnary(!0)):this.skipValue(s.TOKEN_OPERATOR,"+")?o=new h.Pos(i.lineno,i.colno,this.parseUnary(!0)):o=this.parsePrimary(),e||(o=this.parseFilter(o)),o},k.parsePrimary=function(e){var i=this.nextToken(),o,b=null;if(i?i.type===s.TOKEN_STRING?o=i.value:i.type===s.TOKEN_INT?o=parseInt(i.value,10):i.type===s.TOKEN_FLOAT?o=parseFloat(i.value):i.type===s.TOKEN_BOOLEAN?i.value==="true"?o=!0:i.value==="false"?o=!1:this.fail("invalid boolean: "+i.value,i.lineno,i.colno):i.type===s.TOKEN_NONE?o=null:i.type===s.TOKEN_REGEX&&(o=new RegExp(i.value.body,i.value.flags)):this.fail("expected expression, got end of file"),o!==void 0?b=new h.Literal(i.lineno,i.colno,o):i.type===s.TOKEN_SYMBOL?b=new h.Symbol(i.lineno,i.colno,i.value):(this.pushToken(i),b=this.parseAggregate()),e||(b=this.parsePostfix(b)),b)return b;throw this.error("unexpected token: "+i.value,i.lineno,i.colno)},k.parseFilterName=function(){for(var e=this.expect(s.TOKEN_SYMBOL),i=e.value;this.skipValue(s.TOKEN_OPERATOR,".");)i+="."+this.expect(s.TOKEN_SYMBOL).value;return new h.Symbol(e.lineno,e.colno,i)},k.parseFilterArgs=function(e){if(this.peekToken().type===s.TOKEN_LEFT_PAREN){var i=this.parsePostfix(e);return i.args.children}return[]},k.parseFilter=function(e){for(;this.skip(s.TOKEN_PIPE);){var i=this.parseFilterName();e=new h.Filter(i.lineno,i.colno,i,new h.NodeList(i.lineno,i.colno,[e].concat(this.parseFilterArgs(e))))}return e},k.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var i=this.parseFilterName(),o=this.parseFilterArgs(i);this.advanceAfterBlockEnd(e.value);var b=new h.Capture(i.lineno,i.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var v=new h.Filter(i.lineno,i.colno,i,new h.NodeList(i.lineno,i.colno,[b].concat(o)));return new h.Output(i.lineno,i.colno,[v])},k.parseAggregate=function(){var e=this.nextToken(),i;switch(e.type){case s.TOKEN_LEFT_PAREN:i=new h.Group(e.lineno,e.colno);break;case s.TOKEN_LEFT_BRACKET:i=new h.Array(e.lineno,e.colno);break;case s.TOKEN_LEFT_CURLY:i=new h.Dict(e.lineno,e.colno);break;default:return null}for(;;){var o=this.peekToken().type;if(o===s.TOKEN_RIGHT_PAREN||o===s.TOKEN_RIGHT_BRACKET||o===s.TOKEN_RIGHT_CURLY){this.nextToken();break}if(i.children.length>0&&(this.skip(s.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",e.lineno,e.colno)),i instanceof h.Dict){var b=this.parsePrimary();this.skip(s.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",e.lineno,e.colno);var v=this.parseExpression();i.addChild(new h.Pair(b.lineno,b.colno,b,v))}else{var y=this.parseExpression();i.addChild(y)}}return i},k.parseSignature=function(e,i){var o=this.peekToken();if(!i&&o.type!==s.TOKEN_LEFT_PAREN){if(e)return null;this.fail("expected arguments",o.lineno,o.colno)}o.type===s.TOKEN_LEFT_PAREN&&(o=this.nextToken());for(var b=new h.NodeList(o.lineno,o.colno),v=new h.KeywordArgs(o.lineno,o.colno),y=!1;;){if(o=this.peekToken(),!i&&o.type===s.TOKEN_RIGHT_PAREN){this.nextToken();break}else if(i&&o.type===s.TOKEN_BLOCK_END)break;if(y&&!this.skip(s.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",o.lineno,o.colno);else{var r=this.parseExpression();this.skipValue(s.TOKEN_OPERATOR,"=")?v.addChild(new h.Pair(r.lineno,r.colno,r,this.parseExpression())):b.addChild(r)}y=!0}return v.children.length&&b.addChild(v),b},k.parseUntilBlocks=function(){for(var e=this.breakOnBlocks,i=arguments.length,o=new Array(i),b=0;b<i;b++)o[b]=arguments[b];this.breakOnBlocks=o;var v=this.parse();return this.breakOnBlocks=e,v},k.parseNodes=function(){for(var e,i=[];e=this.nextToken();)if(e.type===s.TOKEN_DATA){var o=e.value,b=this.peekToken(),v=b&&b.value;this.dropLeadingWhitespace&&(o=o.replace(/^\s*/,""),this.dropLeadingWhitespace=!1),b&&(b.type===s.TOKEN_BLOCK_START&&v.charAt(v.length-1)==="-"||b.type===s.TOKEN_VARIABLE_START&&v.charAt(this.tokens.tags.VARIABLE_START.length)==="-"||b.type===s.TOKEN_COMMENT&&v.charAt(this.tokens.tags.COMMENT_START.length)==="-")&&(o=o.replace(/\s*$/,"")),i.push(new h.Output(e.lineno,e.colno,[new h.TemplateData(e.lineno,e.colno,o)]))}else if(e.type===s.TOKEN_BLOCK_START){this.dropLeadingWhitespace=!1;var y=this.parseStatement();if(!y)break;i.push(y)}else if(e.type===s.TOKEN_VARIABLE_START){var r=this.parseExpression();this.dropLeadingWhitespace=!1,this.advanceAfterVariableEnd(),i.push(new h.Output(e.lineno,e.colno,[r]))}else e.type===s.TOKEN_COMMENT?this.dropLeadingWhitespace=e.value.charAt(e.value.length-this.tokens.tags.COMMENT_END.length-1)==="-":this.fail("Unexpected token at top-level: "+e.type,e.lineno,e.colno);return i},k.parse=function(){return new h.NodeList(0,0,this.parseNodes())},k.parseAsRoot=function(){return new h.Root(0,0,this.parseNodes())},S}(p);n.exports={parse:function(S,k,T){var e=new I(s.lex(S,T));return k!==void 0&&(e.extensions=k),e.parseAsRoot()},Parser:I}},function(n,g,d){var c=d(0),w=`
|
|
18
|
-
\r `,s="()[]{}%*-+~/#,:|.<>=!",h="0123456789",p="{%",_="%}",I="{{",R="}}",S="{#",k="#}",T="string",e="whitespace",i="data",o="block-start",b="block-end",v="variable-start",y="variable-end",r="comment",l="left-paren",m="right-paren",u="left-bracket",f="right-bracket",E="left-curly",x="right-curly",P="operator",M="comma",F="colon",K="tilde",$="pipe",A="int",O="float",B="boolean",V="none",U="symbol",ee="special",oe="regex";function ne(be,D,X,H){return{type:be,value:D,lineno:X,colno:H}}var de=function(){function be(X,H){this.str=X,this.index=0,this.len=X.length,this.lineno=0,this.colno=0,this.in_code=!1,H=H||{};var z=H.tags||{};this.tags={BLOCK_START:z.blockStart||p,BLOCK_END:z.blockEnd||_,VARIABLE_START:z.variableStart||I,VARIABLE_END:z.variableEnd||R,COMMENT_START:z.commentStart||S,COMMENT_END:z.commentEnd||k},this.trimBlocks=!!H.trimBlocks,this.lstripBlocks=!!H.lstripBlocks}var D=be.prototype;return D.nextToken=function(){var H=this.lineno,z=this.colno,q;if(this.in_code){var le=this.current();if(this.isFinished())return null;if(le==='"'||le==="'")return ne(T,this._parseString(le),H,z);if(q=this._extract(w))return ne(e,q,H,z);if((q=this._extractString(this.tags.BLOCK_END))||(q=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&(le=this.current(),le===`
|
|
19
|
-
`?this.forward():le==="\r"&&(this.forward(),le=this.current(),le===`
|
|
20
|
-
`?this.forward():this.back())),ne(b,q,H,z);if((q=this._extractString(this.tags.VARIABLE_END))||(q=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,ne(y,q,H,z);if(le==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var _e="";!this.isFinished();)if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}else _e+=this.current(),this.forward();for(var me=["g","i","m","y"],Le="";!this.isFinished();){var C=me.indexOf(this.current())!==-1;if(C)Le+=this.current(),this.forward();else break}return ne(oe,{body:_e,flags:Le},H,z)}else if(s.indexOf(le)!==-1){this.forward();var j=["==","===","!=","!==","<=",">=","//","**"],Z=le+this.current(),N;switch(c.indexOf(j,Z)!==-1&&(this.forward(),le=Z,c.indexOf(j,Z+this.current())!==-1&&(le=Z+this.current(),this.forward())),le){case"(":N=l;break;case")":N=m;break;case"[":N=u;break;case"]":N=f;break;case"{":N=E;break;case"}":N=x;break;case",":N=M;break;case":":N=F;break;case"~":N=K;break;case"|":N=$;break;default:N=P}return ne(N,le,H,z)}else if(q=this._extractUntil(w+s),q.match(/^[-+]?[0-9]+$/))if(this.current()==="."){this.forward();var W=this._extract(h);return ne(O,q+"."+W,H,z)}else return ne(A,q,H,z);else{if(q.match(/^(true|false)$/))return ne(B,q,H,z);if(q==="none")return ne(V,q,H,z);if(q==="null")return ne(V,q,H,z);if(q)return ne(U,q,H,z);throw new Error("Unexpected value while parsing: "+q)}}else{var Y=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((q=this._extractString(this.tags.BLOCK_START+"-"))||(q=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,ne(o,q,H,z);if((q=this._extractString(this.tags.VARIABLE_START+"-"))||(q=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,ne(v,q,H,z);q="";var ie,G=!1;for(this._matches(this.tags.COMMENT_START)&&(G=!0,q=this._extractString(this.tags.COMMENT_START));(ie=this._extractUntil(Y))!==null;)if(q+=ie,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!G){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=q.length){var Q=q.slice(-this.colno);if(/^\s+$/.test(Q)&&(q=q.slice(0,-this.colno),!q.length))return this.nextToken()}break}else if(this._matches(this.tags.COMMENT_END)){if(!G)throw new Error("unexpected end of comment");q+=this._extractString(this.tags.COMMENT_END);break}else q+=this.current(),this.forward();if(ie===null&&G)throw new Error("expected end of comment, got end of file");return ne(G?r:i,q,H,z)}},D._parseString=function(H){this.forward();for(var z="";!this.isFinished()&&this.current()!==H;){var q=this.current();if(q==="\\"){switch(this.forward(),this.current()){case"n":z+=`
|
|
21
|
-
`;break;case"t":z+=" ";break;case"r":z+="\r";break;default:z+=this.current()}this.forward()}else z+=q,this.forward()}return this.forward(),z},D._matches=function(H){if(this.index+H.length>this.len)return null;var z=this.str.slice(this.index,this.index+H.length);return z===H},D._extractString=function(H){return this._matches(H)?(this.forwardN(H.length),H):null},D._extractUntil=function(H){return this._extractMatching(!0,H||"")},D._extract=function(H){return this._extractMatching(!1,H)},D._extractMatching=function(H,z){if(this.isFinished())return null;var q=z.indexOf(this.current());if(H&&q===-1||!H&&q!==-1){var le=this.current();this.forward();for(var _e=z.indexOf(this.current());(H&&_e===-1||!H&&_e!==-1)&&!this.isFinished();)le+=this.current(),this.forward(),_e=z.indexOf(this.current());return le}return""},D._extractRegex=function(H){var z=this.currentStr().match(H);return z?(this.forwardN(z[0].length),z):null},D.isFinished=function(){return this.index>=this.len},D.forwardN=function(H){for(var z=0;z<H;z++)this.forward()},D.forward=function(){this.index++,this.previous()===`
|
|
22
|
-
`?(this.lineno++,this.colno=0):this.colno++},D.backN=function(H){for(var z=0;z<H;z++)this.back()},D.back=function(){if(this.index--,this.current()===`
|
|
23
|
-
`){this.lineno--;var H=this.src.lastIndexOf(`
|
|
24
|
-
`,this.index-1);H===-1?this.colno=this.index:this.colno=this.index-H}else this.colno--},D.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},D.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},D.previous=function(){return this.str.charAt(this.index-1)},be}();n.exports={lex:function(D,X){return new de(D,X)},TOKEN_STRING:T,TOKEN_WHITESPACE:e,TOKEN_DATA:i,TOKEN_BLOCK_START:o,TOKEN_BLOCK_END:b,TOKEN_VARIABLE_START:v,TOKEN_VARIABLE_END:y,TOKEN_COMMENT:r,TOKEN_LEFT_PAREN:l,TOKEN_RIGHT_PAREN:m,TOKEN_LEFT_BRACKET:u,TOKEN_RIGHT_BRACKET:f,TOKEN_LEFT_CURLY:E,TOKEN_RIGHT_CURLY:x,TOKEN_OPERATOR:P,TOKEN_COMMA:M,TOKEN_COLON:F,TOKEN_TILDE:K,TOKEN_PIPE:$,TOKEN_INT:A,TOKEN_FLOAT:O,TOKEN_BOOLEAN:B,TOKEN_NONE:V,TOKEN_SYMBOL:U,TOKEN_SPECIAL:ee,TOKEN_REGEX:oe}},function(n,g,d){function c(I,R){I.prototype=Object.create(R.prototype),I.prototype.constructor=I,w(I,R)}function w(I,R){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,T){return k.__proto__=T,k},w(I,R)}var s=d(6),h=d(19),p=h.PrecompiledLoader,_=function(I){c(R,I);function R(k,T){var e;return e=I.call(this)||this,e.baseURL=k||".",T=T||{},e.useCache=!!T.useCache,e.async=!!T.async,e}var S=R.prototype;return S.resolve=function(T,e){throw new Error("relative templates not support in the browser yet")},S.getSource=function(T,e){var i=this,o=this.useCache,b;return this.fetch(this.baseURL+"/"+T,function(v,y){if(v)if(e)e(v.content);else if(v.status===404)b=null;else throw v.content;else b={src:y,path:T,noCache:!o},i.emit("load",T,b),e&&e(null,b)}),b},S.fetch=function(T,e){if(typeof window>"u")throw new Error("WebLoader can only by used in a browser");var i=new XMLHttpRequest,o=!0;i.onreadystatechange=function(){i.readyState===4&&o&&(o=!1,i.status===0||i.status===200?e(null,i.responseText):e({status:i.status,content:i.responseText}))},T+=(T.indexOf("?")===-1?"?":"&")+"s="+new Date().getTime(),i.open("GET",T,this.async),i.send()},R}(s);n.exports={WebLoader:_,PrecompiledLoader:p}},function(n,g,d){var c=d(0),w=d(7),s=w.Environment,h=w.Template,p=d(6),_=d(10),I=d(23),R=d(5),S=d(8),k=d(9),T=d(2),e=d(3),i=d(25),o;function b(v,y){y=y||{},c.isObject(v)&&(y=v,v=null);var r;return _.FileSystemLoader?r=new _.FileSystemLoader(v,{watch:y.watch,noCache:y.noCache}):_.WebLoader&&(r=new _.WebLoader(v,{useCache:y.web&&y.web.useCache,async:y.web&&y.web.async})),o=new s(r,y),y&&y.express&&o.express(y.express),o}n.exports={Environment:s,Template:h,Loader:p,FileSystemLoader:_.FileSystemLoader,NodeResolveLoader:_.NodeResolveLoader,PrecompiledLoader:_.PrecompiledLoader,WebLoader:_.WebLoader,compiler:R,parser:S,lexer:k,runtime:T,lib:c,nodes:e,installJinjaCompat:i,configure:b,reset:function(){o=void 0},compile:function(y,r,l,m){return o||b(),new h(y,r,l,m)},render:function(y,r,l){return o||b(),o.render(y,r,l)},renderString:function(y,r,l){return o||b(),o.renderString(y,r,l)},precompile:I?I.precompile:void 0,precompileString:I?I.precompileString:void 0}},function(n,g,d){var c=d(13),w=[],s=[],h=c.makeRequestCallFromTimer(p);function p(){if(s.length)throw s.shift()}n.exports=_;function _(R){var S;w.length?S=w.pop():S=new I,S.task=R,c(S)}function I(){this.task=null}I.prototype.call=function(){try{this.task.call()}catch(R){_.onerror?_.onerror(R):(s.push(R),h())}finally{this.task=null,w[w.length]=this}}},function(n,g,d){(function(c){n.exports=w;function w(e){s.length||h(),s[s.length]=e}var s=[],h,p=0,_=1024;function I(){for(;p<s.length;){var e=p;if(p=p+1,s[e].call(),p>_){for(var i=0,o=s.length-p;i<o;i++)s[i]=s[i+p];s.length-=p,p=0}}s.length=0,p=0}var R=typeof c<"u"?c:self,S=R.MutationObserver||R.WebKitMutationObserver;typeof S=="function"?h=k(I):h=T(I),w.requestFlush=h;function k(e){var i=1,o=new S(e),b=document.createTextNode("");return o.observe(b,{characterData:!0}),function(){i=-i,b.data=i}}function T(e){return function(){var o=setTimeout(v,0),b=setInterval(v,50);function v(){clearTimeout(o),clearInterval(b),e()}}}w.makeRequestCallFromTimer=T}).call(g,d(14))},function(n,g){var d;d=function(){return this}();try{d=d||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(d=window)}n.exports=d},function(n,g,d){var c,w;(function(s){var h=function(){var S=Array.prototype.slice.call(arguments);typeof S[0]=="function"&&S[0].apply(null,S.splice(1))},p=function(S){typeof setImmediate=="function"?setImmediate(S):typeof process<"u"&&process.nextTick?process.nextTick(S):setTimeout(S,0)},_=function(S){var k=function(T){var e=function(){return S.length&&S[T].apply(null,arguments),e.next()};return e.next=function(){return T<S.length-1?k(T+1):null},e};return k(0)},I=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"},R=function(S,k,T){var e=T?p:h;if(k=k||function(){},!I(S)){var i=new Error("First argument to waterfall must be an array of functions");return k(i)}if(!S.length)return k();var o=function(b){return function(v){if(v)k.apply(null,arguments),k=function(){};else{var y=Array.prototype.slice.call(arguments,1),r=b.next();r?y.push(o(r)):y.push(k),e(function(){b.apply(null,y)})}}};o(_(S))()};c=[],w=(function(){return R}).apply(g,c),w!==void 0&&(n.exports=w)})()},function(n,g,d){var c=typeof Reflect=="object"?Reflect:null,w=c&&typeof c.apply=="function"?c.apply:function(f,E,x){return Function.prototype.apply.call(f,E,x)},s;c&&typeof c.ownKeys=="function"?s=c.ownKeys:Object.getOwnPropertySymbols?s=function(f){return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f))}:s=function(f){return Object.getOwnPropertyNames(f)};function h(u){console&&console.warn&&console.warn(u)}var p=Number.isNaN||function(f){return f!==f};function _(){_.init.call(this)}n.exports=_,n.exports.once=r,_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var I=10;function R(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return I},set:function(u){if(typeof u!="number"||u<0||p(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");I=u}}),_.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_.prototype.setMaxListeners=function(f){if(typeof f!="number"||f<0||p(f))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+f+".");return this._maxListeners=f,this};function S(u){return u._maxListeners===void 0?_.defaultMaxListeners:u._maxListeners}_.prototype.getMaxListeners=function(){return S(this)},_.prototype.emit=function(f){for(var E=[],x=1;x<arguments.length;x++)E.push(arguments[x]);var P=f==="error",M=this._events;if(M!==void 0)P=P&&M.error===void 0;else if(!P)return!1;if(P){var F;if(E.length>0&&(F=E[0]),F instanceof Error)throw F;var K=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw K.context=F,K}var $=M[f];if($===void 0)return!1;if(typeof $=="function")w($,this,E);else for(var A=$.length,O=b($,A),x=0;x<A;++x)w(O[x],this,E);return!0};function k(u,f,E,x){var P,M,F;if(R(E),M=u._events,M===void 0?(M=u._events=Object.create(null),u._eventsCount=0):(M.newListener!==void 0&&(u.emit("newListener",f,E.listener?E.listener:E),M=u._events),F=M[f]),F===void 0)F=M[f]=E,++u._eventsCount;else if(typeof F=="function"?F=M[f]=x?[E,F]:[F,E]:x?F.unshift(E):F.push(E),P=S(u),P>0&&F.length>P&&!F.warned){F.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(f)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=u,K.type=f,K.count=F.length,h(K)}return u}_.prototype.addListener=function(f,E){return k(this,f,E,!1)},_.prototype.on=_.prototype.addListener,_.prototype.prependListener=function(f,E){return k(this,f,E,!0)};function T(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function e(u,f,E){var x={fired:!1,wrapFn:void 0,target:u,type:f,listener:E},P=T.bind(x);return P.listener=E,x.wrapFn=P,P}_.prototype.once=function(f,E){return R(E),this.on(f,e(this,f,E)),this},_.prototype.prependOnceListener=function(f,E){return R(E),this.prependListener(f,e(this,f,E)),this},_.prototype.removeListener=function(f,E){var x,P,M,F,K;if(R(E),P=this._events,P===void 0)return this;if(x=P[f],x===void 0)return this;if(x===E||x.listener===E)--this._eventsCount===0?this._events=Object.create(null):(delete P[f],P.removeListener&&this.emit("removeListener",f,x.listener||E));else if(typeof x!="function"){for(M=-1,F=x.length-1;F>=0;F--)if(x[F]===E||x[F].listener===E){K=x[F].listener,M=F;break}if(M<0)return this;M===0?x.shift():v(x,M),x.length===1&&(P[f]=x[0]),P.removeListener!==void 0&&this.emit("removeListener",f,K||E)}return this},_.prototype.off=_.prototype.removeListener,_.prototype.removeAllListeners=function(f){var E,x,P;if(x=this._events,x===void 0)return this;if(x.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):x[f]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete x[f]),this;if(arguments.length===0){var M=Object.keys(x),F;for(P=0;P<M.length;++P)F=M[P],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(E=x[f],typeof E=="function")this.removeListener(f,E);else if(E!==void 0)for(P=E.length-1;P>=0;P--)this.removeListener(f,E[P]);return this};function i(u,f,E){var x=u._events;if(x===void 0)return[];var P=x[f];return P===void 0?[]:typeof P=="function"?E?[P.listener||P]:[P]:E?y(P):b(P,P.length)}_.prototype.listeners=function(f){return i(this,f,!0)},_.prototype.rawListeners=function(f){return i(this,f,!1)},_.listenerCount=function(u,f){return typeof u.listenerCount=="function"?u.listenerCount(f):o.call(u,f)},_.prototype.listenerCount=o;function o(u){var f=this._events;if(f!==void 0){var E=f[u];if(typeof E=="function")return 1;if(E!==void 0)return E.length}return 0}_.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function b(u,f){for(var E=new Array(f),x=0;x<f;++x)E[x]=u[x];return E}function v(u,f){for(;f+1<u.length;f++)u[f]=u[f+1];u.pop()}function y(u){for(var f=new Array(u.length),E=0;E<f.length;++E)f[E]=u[E].listener||u[E];return f}function r(u,f){return new Promise(function(E,x){function P(F){u.removeListener(f,M),x(F)}function M(){typeof u.removeListener=="function"&&u.removeListener("error",P),E([].slice.call(arguments))}m(u,f,M,{once:!0}),f!=="error"&&l(u,P,{once:!0})})}function l(u,f,E){typeof u.on=="function"&&m(u,"error",f,E)}function m(u,f,E,x){if(typeof u.on=="function")x.once?u.once(f,E):u.on(f,E);else if(typeof u.addEventListener=="function")u.addEventListener(f,function P(M){x.once&&u.removeEventListener(f,P),E(M)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u)}},function(n,g,d){var c=d(3),w=d(0),s=0;function h(){return"hole_"+s++}function p(o,b){for(var v=null,y=0;y<o.length;y++){var r=b(o[y]);r!==o[y]&&(v||(v=o.slice()),v[y]=r)}return v||o}function _(o,b,v){if(!(o instanceof c.Node))return o;if(!v){var y=b(o);if(y&&y!==o)return y}if(o instanceof c.NodeList){var r=p(o.children,function(E){return _(E,b,v)});r!==o.children&&(o=new c[o.typename](o.lineno,o.colno,r))}else if(o instanceof c.CallExtension){var l=_(o.args,b,v),m=p(o.contentArgs,function(E){return _(E,b,v)});(l!==o.args||m!==o.contentArgs)&&(o=new c[o.typename](o.extName,o.prop,l,m))}else{var u=o.fields.map(function(E){return o[E]}),f=p(u,function(E){return _(E,b,v)});f!==u&&(o=new c[o.typename](o.lineno,o.colno),f.forEach(function(E,x){o[o.fields[x]]=E}))}return v&&b(o)||o}function I(o,b){return _(o,b,!0)}function R(o,b,v){var y=[],r=I(v?o[v]:o,function(l){var m;return l instanceof c.Block?l:((l instanceof c.Filter&&w.indexOf(b,l.name.value)!==-1||l instanceof c.CallExtensionAsync)&&(m=new c.Symbol(l.lineno,l.colno,h()),y.push(new c.FilterAsync(l.lineno,l.colno,l.name,l.args,m))),m)});return v?o[v]=r:o=r,y.length?(y.push(o),new c.NodeList(o.lineno,o.colno,y)):o}function S(o,b){return I(o,function(v){return v instanceof c.Output?R(v,b):v instanceof c.Set?R(v,b,"value"):v instanceof c.For?R(v,b,"arr"):v instanceof c.If?R(v,b,"cond"):v instanceof c.CallExtension?R(v,b,"args"):void 0})}function k(o){return _(o,function(b){if(b instanceof c.Block){var v=!1,y=h();b.body=_(b.body,function(r){if(r instanceof c.FunCall&&r.name.value==="super")return v=!0,new c.Symbol(r.lineno,r.colno,y)}),v&&b.body.children.unshift(new c.Super(0,0,b.name,new c.Symbol(0,0,y)))}})}function T(o){return I(o,function(b){if(!(!(b instanceof c.If)&&!(b instanceof c.For))){var v=!1;if(_(b,function(y){if(y instanceof c.FilterAsync||y instanceof c.IfAsync||y instanceof c.AsyncEach||y instanceof c.AsyncAll||y instanceof c.CallExtensionAsync)return v=!0,y}),v){if(b instanceof c.If)return new c.IfAsync(b.lineno,b.colno,b.cond,b.body,b.else_);if(b instanceof c.For&&!(b instanceof c.AsyncAll))return new c.AsyncEach(b.lineno,b.colno,b.arr,b.name,b.body,b.else_)}}})}function e(o,b){return T(k(S(o,b)))}function i(o,b){return e(o,b||[])}n.exports={transform:i}},function(n,s,d){var c=d(0),w=d(2),s=n.exports={};function h(C,j){return C==null||C===!1?j:C}s.abs=Math.abs;function p(C){return C!==C}function _(C,j,Z){var N,W=[],Y=[];for(N=0;N<C.length;N++)N%j===0&&Y.length&&(W.push(Y),Y=[]),Y.push(C[N]);if(Y.length){if(Z)for(N=Y.length;N<j;N++)Y.push(Z);W.push(Y)}return W}s.batch=_;function I(C){C=h(C,"");var j=C.toLowerCase();return w.copySafeness(C,j.charAt(0).toUpperCase()+j.slice(1))}s.capitalize=I;function R(C,j){if(C=h(C,""),j=j||80,C.length>=j)return C;var Z=j-C.length,N=c.repeat(" ",Z/2-Z%2),W=c.repeat(" ",Z/2);return w.copySafeness(C,N+C+W)}s.center=R;function S(C,j,Z){return Z?C||j:C!==void 0?C:j}s.default=S;function k(C,j,Z){if(!c.isObject(C))throw new c.TemplateError("dictsort filter: val must be an object");var N=[];for(var W in C)N.push([W,C[W]]);var Y;if(Z===void 0||Z==="key")Y=0;else if(Z==="value")Y=1;else throw new c.TemplateError("dictsort filter: You can only sort by either key or value");return N.sort(function(ie,G){var Q=ie[Y],he=G[Y];return j||(c.isString(Q)&&(Q=Q.toUpperCase()),c.isString(he)&&(he=he.toUpperCase())),Q>he?1:Q===he?0:-1}),N}s.dictsort=k;function T(C,j){return JSON.stringify(C,null,j)}s.dump=T;function e(C){return C instanceof w.SafeString?C:(C=C??"",w.markSafe(c.escape(C.toString())))}s.escape=e;function i(C){return C instanceof w.SafeString?C:(C=C??"",w.markSafe(C.toString()))}s.safe=i;function o(C){return C[0]}s.first=o;function b(C){return C=C??"",w.markSafe(c.escape(C.toString()))}s.forceescape=b;function v(C,j){return c.groupBy(C,j,this.env.opts.throwOnUndefined)}s.groupby=v;function y(C,j,Z){if(C=h(C,""),C==="")return"";j=j||4;var N=C.split(`
|
|
25
|
-
`),W=c.repeat(" ",j),Y=N.map(function(ie,G){return G===0&&!Z?ie:""+W+ie}).join(`
|
|
26
|
-
`);return w.copySafeness(C,Y)}s.indent=y;function r(C,j,Z){return j=j||"",Z&&(C=c.map(C,function(N){return N[Z]})),C.join(j)}s.join=r;function l(C){return C[C.length-1]}s.last=l;function m(C){var j=h(C,"");return j!==void 0?typeof Map=="function"&&j instanceof Map||typeof Set=="function"&&j instanceof Set?j.size:c.isObject(j)&&!(j instanceof w.SafeString)?c.keys(j).length:j.length:0}s.length=m;function u(C){if(c.isString(C))return C.split("");if(c.isObject(C))return c._entries(C||{}).map(function(j){var Z=j[0],N=j[1];return{key:Z,value:N}});if(c.isArray(C))return C;throw new c.TemplateError("list filter: type not iterable")}s.list=u;function f(C){return C=h(C,""),C.toLowerCase()}s.lower=f;function E(C){return C==null?"":w.copySafeness(C,C.replace(/\r\n|\n/g,`<br />
|
|
27
|
-
`))}s.nl2br=E;function x(C){return C[Math.floor(Math.random()*C.length)]}s.random=x;function P(C){function j(Z,N,W){N===void 0&&(N="truthy");var Y=this,ie=Y.env.getTest(N);return c.toArray(Z).filter(function(Q){return ie.call(Y,Q,W)===C})}return j}s.reject=P(!1);function M(C,j){return C.filter(function(Z){return!Z[j]})}s.rejectattr=M,s.select=P(!0);function F(C,j){return C.filter(function(Z){return!!Z[j]})}s.selectattr=F;function K(C,j,Z,N){var W=C;if(j instanceof RegExp)return C.replace(j,Z);typeof N>"u"&&(N=-1);var Y="";if(typeof j=="number")j=""+j;else if(typeof j!="string")return C;if(typeof C=="number"&&(C=""+C),typeof C!="string"&&!(C instanceof w.SafeString))return C;if(j==="")return Y=Z+C.split("").join(Z)+Z,w.copySafeness(C,Y);var ie=C.indexOf(j);if(N===0||ie===-1)return C;for(var G=0,Q=0;ie>-1&&(N===-1||Q<N);)Y+=C.substring(G,ie)+Z,G=ie+j.length,Q++,ie=C.indexOf(j,G);return G<C.length&&(Y+=C.substring(G)),w.copySafeness(W,Y)}s.replace=K;function $(C){var j;return c.isString(C)?j=u(C):j=c.map(C,function(Z){return Z}),j.reverse(),c.isString(C)?w.copySafeness(C,j.join("")):j}s.reverse=$;function A(C,j,Z){j=j||0;var N=Math.pow(10,j),W;return Z==="ceil"?W=Math.ceil:Z==="floor"?W=Math.floor:W=Math.round,W(C*N)/N}s.round=A;function O(C,j,Z){for(var N=Math.floor(C.length/j),W=C.length%j,Y=[],ie=0,G=0;G<j;G++){var Q=ie+G*N;G<W&&ie++;var he=ie+(G+1)*N,se=C.slice(Q,he);Z&&G>=W&&se.push(Z),Y.push(se)}return Y}s.slice=O;function B(C,j,Z){return Z===void 0&&(Z=0),j&&(C=c.map(C,function(N){return N[j]})),Z+C.reduce(function(N,W){return N+W},0)}s.sum=B,s.sort=w.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(j,Z,N,W){var Y=this,ie=c.map(j,function(Q){return Q}),G=c.getAttrGetter(W);return ie.sort(function(Q,he){var se=W?G(Q):Q,we=W?G(he):he;if(Y.env.opts.throwOnUndefined&&W&&(se===void 0||we===void 0))throw new TypeError('sort: attribute "'+W+'" resolved to undefined');return!N&&c.isString(se)&&c.isString(we)&&(se=se.toLowerCase(),we=we.toLowerCase()),se<we?Z?1:-1:se>we?Z?-1:1:0}),ie});function V(C){return w.copySafeness(C,C)}s.string=V;function U(C,j){C=h(C,"");var Z=/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,N=oe(C.replace(Z,"")),W="";return j?W=N.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,`
|
|
28
|
-
`).replace(/\n\n\n+/g,`
|
|
29
|
-
|
|
30
|
-
`):W=N.replace(/\s+/gi," "),w.copySafeness(C,W)}s.striptags=U;function ee(C){C=h(C,"");var j=C.split(" ").map(function(Z){return I(Z)});return w.copySafeness(C,j.join(" "))}s.title=ee;function oe(C){return w.copySafeness(C,C.replace(/^\s*|\s*$/g,""))}s.trim=oe;function ne(C,j,Z,N){var W=C;if(C=h(C,""),j=j||255,C.length<=j)return C;if(Z)C=C.substring(0,j);else{var Y=C.lastIndexOf(" ",j);Y===-1&&(Y=j),C=C.substring(0,Y)}return C+=N??"...",w.copySafeness(W,C)}s.truncate=ne;function de(C){return C=h(C,""),C.toUpperCase()}s.upper=de;function be(C){var j=encodeURIComponent;if(c.isString(C))return j(C);var Z=c.isArray(C)?C:c._entries(C);return Z.map(function(N){var W=N[0],Y=N[1];return j(W)+"="+j(Y)}).join("&")}s.urlencode=be;var D=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,X=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,H=/^https?:\/\/.*$/,z=/^www\./,q=/\.(?:org|net|com)(?:\:|\/|$)/;function le(C,j,Z){p(j)&&(j=1/0);var N=Z===!0?' rel="nofollow"':"",W=C.split(/(\s+)/).filter(function(Y){return Y&&Y.length}).map(function(Y){var ie=Y.match(D),G=ie?ie[1]:Y,Q=G.substr(0,j);return H.test(G)?'<a href="'+G+'"'+N+">"+Q+"</a>":z.test(G)?'<a href="http://'+G+'"'+N+">"+Q+"</a>":X.test(G)?'<a href="mailto:'+G+'">'+G+"</a>":q.test(G)?'<a href="http://'+G+'"'+N+">"+Q+"</a>":Y});return W.join("")}s.urlize=le;function _e(C){C=h(C,"");var j=C?C.match(/\w+/g):null;return j?j.length:null}s.wordcount=_e;function me(C,j){var Z=parseFloat(C);return p(Z)?j:Z}s.float=me;var Le=w.makeMacro(["value","default","base"],[],function(j,Z,N){N===void 0&&(N=10);var W=parseInt(j,N);return p(W)?Z:W});s.int=Le,s.d=s.default,s.e=s.escape},function(n,g,d){function c(p,_){p.prototype=Object.create(_.prototype),p.prototype.constructor=p,w(p,_)}function w(p,_){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,S){return R.__proto__=S,R},w(p,_)}var s=d(6),h=function(p){c(_,p);function _(R){var S;return S=p.call(this)||this,S.precompiled=R||{},S}var I=_.prototype;return I.getSource=function(S){return this.precompiled[S]?{src:{type:"code",obj:this.precompiled[S]},path:S}:null},_}(s);n.exports={PrecompiledLoader:h}},function(n,g,d){var c=d(2).SafeString;function w(x){return typeof x=="function"}g.callable=w;function s(x){return x!==void 0}g.defined=s;function h(x,P){return x%P===0}g.divisibleby=h;function p(x){return x instanceof c}g.escaped=p;function _(x,P){return x===P}g.equalto=_,g.eq=g.equalto,g.sameas=g.equalto;function I(x){return x%2===0}g.even=I;function R(x){return!x}g.falsy=R;function S(x,P){return x>=P}g.ge=S;function k(x,P){return x>P}g.greaterthan=k,g.gt=g.greaterthan;function T(x,P){return x<=P}g.le=T;function e(x,P){return x<P}g.lessthan=e,g.lt=g.lessthan;function i(x){return x.toLowerCase()===x}g.lower=i;function o(x,P){return x!==P}g.ne=o;function b(x){return x===null}g.null=b;function v(x){return typeof x=="number"}g.number=v;function y(x){return x%2===1}g.odd=y;function r(x){return typeof x=="string"}g.string=r;function l(x){return!!x}g.truthy=l;function m(x){return x===void 0}g.undefined=m;function u(x){return x.toUpperCase()===x}g.upper=u;function f(x){return typeof Symbol<"u"?!!x[Symbol.iterator]:Array.isArray(x)||typeof x=="string"}g.iterable=f;function E(x){var P=x!=null&&typeof x=="object"&&!Array.isArray(x);return Set?P&&!(x instanceof Set):P}g.mapping=E},function(n,g,d){function c(h){var p=-1;return{current:null,reset:function(){p=-1,this.current=null},next:function(){return p++,p>=h.length&&(p=0),this.current=h[p],this.current}}}function w(h){h=h||",";var p=!0;return function(){var _=p?"":h;return p=!1,_}}function s(){return{range:function(p,_,I){typeof _>"u"?(_=p,p=0,I=1):I||(I=1);var R=[];if(I>0)for(var S=p;S<_;S+=I)R.push(S);else for(var k=p;k>_;k+=I)R.push(k);return R},cycler:function(){return c(Array.prototype.slice.call(arguments))},joiner:function(p){return w(p)}}}n.exports=s},function(n,g,d){var c=d(4);n.exports=function(s,h){function p(_,I){if(this.name=_,this.path=_,this.defaultEngine=I.defaultEngine,this.ext=c.extname(_),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=(this.defaultEngine[0]!=="."?".":"")+this.defaultEngine)}return p.prototype.render=function(I,R){s.render(this.name,I,R)},h.set("view",p),h.set("nunjucksEnv",s),s}},function(n,g,d){var c=d(4),w=d(4),s=d(0),h=s._prettifyError,p=d(5),_=d(7),I=_.Environment,R=d(24);function S(i,o){return Array.isArray(o)?o.some(function(b){return i.match(b)}):!1}function k(i,o){o=o||{},o.isString=!0;var b=o.env||new I([]),v=o.wrapper||R;if(!o.name)throw new Error('the "name" option is required when compiling a string');return v([e(i,o.name,b)],o)}function T(i,o){o=o||{};var b=o.env||new I([]),v=o.wrapper||R;if(o.isString)return k(i,o);var y=c.existsSync(i)&&c.statSync(i),r=[],l=[];function m(E){c.readdirSync(E).forEach(function(x){var P=w.join(E,x),M=P.substr(w.join(i,"/").length),F=c.statSync(P);F&&F.isDirectory()?(M+="/",S(M,o.exclude)||m(P)):S(M,o.include)&&l.push(P)})}if(y.isFile())r.push(e(c.readFileSync(i,"utf-8"),o.name||i,b));else if(y.isDirectory()){m(i);for(var u=0;u<l.length;u++){var f=l[u].replace(w.join(i,"/"),"");try{r.push(e(c.readFileSync(l[u],"utf-8"),f,b))}catch(E){if(o.force)console.error(E);else throw E}}}return v(r,o)}function e(i,o,b){b=b||new I([]);var v=b.asyncFilters,y=b.extensionsList,r;o=o.replace(/\\/g,"/");try{r=p.compile(i,v,y,o,b.opts)}catch(l){throw h(o,!1,l)}return{name:o,template:r}}n.exports={precompile:T,precompileString:k}},function(n,g,d){function c(w,s){var h="";s=s||{};for(var p=0;p<w.length;p++){var _=JSON.stringify(w[p].name),I=w[p].template;h+="(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["+_+`] = (function() {
|
|
31
|
-
`+I+`
|
|
32
|
-
})();
|
|
33
|
-
`,s.asFunction&&(h+="return function(ctx, cb) { return nunjucks.render("+_+`, ctx, cb); }
|
|
34
|
-
`),h+=`})();
|
|
35
|
-
`}return h}n.exports=c},function(n,g,d){function c(){var w=this.runtime,s=this.lib,h=this.compiler.Compiler,p=this.parser.Parser,_=this.nodes,I=this.lexer,R=w.contextOrFrameLookup,S=w.memberLookup,k,T;h&&(k=h.prototype.assertType),p&&(T=p.prototype.parseAggregate);function e(){w.contextOrFrameLookup=R,w.memberLookup=S,h&&(h.prototype.assertType=k),p&&(p.prototype.parseAggregate=T)}w.contextOrFrameLookup=function(m,u,f){var E=R.apply(this,arguments);if(E!==void 0)return E;switch(f){case"True":return!0;case"False":return!1;case"None":return null;default:return}};function i(l){return{index:l.index,lineno:l.lineno,colno:l.colno}}if(_&&h&&p){var o=_.Node.extend("Slice",{fields:["start","stop","step"],init:function(m,u,f,E,x){f=f||new _.Literal(m,u,null),E=E||new _.Literal(m,u,null),x=x||new _.Literal(m,u,1),this.parent(m,u,f,E,x)}});h.prototype.assertType=function(m){m instanceof o||k.apply(this,arguments)},h.prototype.compileSlice=function(m,u){this._emit("("),this._compileExpression(m.start,u),this._emit("),("),this._compileExpression(m.stop,u),this._emit("),("),this._compileExpression(m.step,u),this._emit(")")},p.prototype.parseAggregate=function(){var m=this,u=i(this.tokens);u.colno--,u.index--;try{return T.apply(this)}catch($){var f=i(this.tokens),E=function(){return s._assign(m.tokens,f),$};s._assign(this.tokens,u),this.peeked=!1;var x=this.peekToken();if(x.type!==I.TOKEN_LEFT_BRACKET)throw E();this.nextToken();for(var P=new o(x.lineno,x.colno),M=!1,F=0;F<=P.fields.length&&!this.skip(I.TOKEN_RIGHT_BRACKET);F++){if(F===P.fields.length)if(M)this.fail("parseSlice: too many slice components",x.lineno,x.colno);else break;if(this.skip(I.TOKEN_COLON))M=!0;else{var K=P.fields[F];P[K]=this.parseExpression(),M=this.skip(I.TOKEN_COLON)||M}}if(!M)throw E();return new _.Array(x.lineno,x.colno,[P])}}}function b(l,m,u,f){l=l||[],m===null&&(m=f<0?l.length-1:0),u===null?u=f<0?-1:l.length:u<0&&(u+=l.length),m<0&&(m+=l.length);for(var E=[],x=m;!(x<0||x>l.length||f>0&&x>=u||f<0&&x<=u);x+=f)E.push(w.memberLookup(l,x));return E}function v(l,m){return Object.prototype.hasOwnProperty.call(l,m)}var y={pop:function(m){if(m===void 0)return this.pop();if(m>=this.length||m<0)throw new Error("KeyError");return this.splice(m,1)},append:function(m){return this.push(m)},remove:function(m){for(var u=0;u<this.length;u++)if(this[u]===m)return this.splice(u,1);throw new Error("ValueError")},count:function(m){for(var u=0,f=0;f<this.length;f++)this[f]===m&&u++;return u},index:function(m){var u;if((u=this.indexOf(m))===-1)throw new Error("ValueError");return u},find:function(m){return this.indexOf(m)},insert:function(m,u){return this.splice(m,0,u)}},r={items:function(){return s._entries(this)},values:function(){return s._values(this)},keys:function(){return s.keys(this)},get:function(m,u){var f=this[m];return f===void 0&&(f=u),f},has_key:function(m){return v(this,m)},pop:function(m,u){var f=this[m];if(f===void 0&&u!==void 0)f=u;else{if(f===void 0)throw new Error("KeyError");delete this[m]}return f},popitem:function(){var m=s.keys(this);if(!m.length)throw new Error("KeyError");var u=m[0],f=this[u];return delete this[u],[u,f]},setdefault:function(m,u){return u===void 0&&(u=null),m in this||(this[m]=u),this[m]},update:function(m){return s._assign(this,m),null}};return r.iteritems=r.items,r.itervalues=r.values,r.iterkeys=r.keys,w.memberLookup=function(m,u,f){return arguments.length===4?b.apply(this,arguments):(m=m||{},s.isArray(m)&&v(y,u)?y[u].bind(m):s.isObject(m)&&v(r,u)?r[u].bind(m):S.apply(this,arguments))},e}n.exports=c}])})})(Cn);var ji=Cn.exports;const gn=mi(ji);var $i=xe('<div class="flex justify-end"><!></div>'),Ui=xe('<div class="prompt-editor flex h-full flex-col"><div class="relative flex-1"><div class="h-full w-full"></div> <label class="absolute right-6 top-1 z-10 inline-flex cursor-pointer items-center gap-2 bg-transparent text-rc-gray-100 focus:outline-none focus:ring-0"><input type="checkbox" class="checkbox svelte-1br1z62"/> <span>Preview</span></label></div> <!></div>');function Vi(a,t){tt(t,!0);let n=ge(null),g,d=!1,c=null,w=!1;ft(()=>{if(g)return _n(()=>import("../chunks/DaRvw8c-.js").then(R=>R.e),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(R=>{R.editor.defineTheme("bosun-dark",Ki),J(n,R.editor.create(g,{value:"",language:"markdown",theme:"bosun-dark",fontSize:16,fontFamily:'ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',automaticLayout:!0,minimap:{enabled:!1},wordBasedSuggestions:"off",wordWrap:"bounded",wordWrapColumn:75,wrappingStrategy:"advanced",matchBrackets:"never",bracketPairColorization:{enabled:!0},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,unicodeHighlight:{ambiguousCharacters:!1,nonBasicASCII:!1,invisibleCharacters:!1,includeStrings:!1,includeComments:!1},autoClosingQuotes:"never",padding:{top:32}}),!0),Ft.agents.context.query({agentId:t.agentId}).then(T=>{Fi(R,T)}),c=Di(R,L(n));const S=t.prompt??"";d=!0,L(n).setValue(S),d=!1,requestAnimationFrame(()=>{c==null||c.update()});const k=h(t.onPromptChanged,500);L(n).onDidChangeModelContent(()=>{if(L(n)&&(c==null||c.update(),!d))try{const T=L(n).getValue();if(T===t.prompt)return;k(T)}catch(T){console.error("Error updating prompt",T)}}),w=!0}).catch(R=>{console.error("Error initializing Monaco editor:",R)}),()=>{c==null||c.dispose(),L(n)&&(L(n).dispose(),J(n,null))}}),Ue(()=>{if(!L(n)||!w)return;const R=L(n).getValue(),S=t.prompt??"";if(R!==S){d=!0;try{L(n).setValue(S),c==null||c.update()}finally{d=!1}}});let s;function h(R,S=300){return(...k)=>{clearTimeout(s),s=setTimeout(()=>{R(...k)},S)}}function p(R,S){return gn.configure({autoescape:!1,trimBlocks:!0,lstripBlocks:!0}),gn.renderString(R,S||{})}let _="";function I(R){L(n)&&(d=!0,R.currentTarget.checked?(_=L(n).getValue(),Ft.agents.context.query({agentId:t.agentId}).then(S=>{const k=p(_,S||{});L(n)&&(L(n).setValue(k),L(n).updateOptions({readOnly:!0}))})):(_&&(L(n).setValue(_),_="",d=!1),L(n).updateOptions({readOnly:!1})))}It(a,{get class(){return`relative overflow-hidden ${t.class??""}`},children:(R,S)=>{var k=Ui(),T=fe(k),e=fe(T);et(e,y=>g=y,()=>g);var i=ye(e,2),o=fe(i);o.__change=I,Ve(2),ae(i),ae(T);var b=ye(T,2);{var v=y=>{var r=$i(),l=fe(r);$e(l,{variant:"secondary",size:"big",get onclick(){return t.onSchemaClick},class:"absolute bottom-2 right-6 h-12 !text-base !font-medium",children:(m,u)=>{Ve();var f=Ge("Schema");ce(m,f)},$$slots:{default:!0}}),ae(r),ce(y,r)};Ne(b,y=>{t.showSchemaButton&&t.onSchemaClick&&y(v)})}ae(k),ce(R,k)}}),nt()}Et(["change"]);var Wi=xe('<div class="flex h-full flex-col"><div class="h-full w-full"></div></div>');function Hi(a,t){tt(t,!0);let n=ge(null),g;Ue(()=>{if(g)return window.MonacoEnvironment={getWorkerUrl(d,c){return URL.createObjectURL(new Blob([""],{type:"text/javascript"}))}},_n(()=>import("../chunks/DaRvw8c-.js").then(d=>d.e),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(d=>{L(n)?d.editor.setModelLanguage(L(n).getModel(),"typescript"):J(n,d.editor.create(g,{value:t.schema,language:"typescript",theme:"vs-dark",automaticLayout:!0,minimap:{enabled:!1},matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,unicodeHighlight:{ambiguousCharacters:!1,nonBasicASCII:!1,invisibleCharacters:!1,includeStrings:!1,includeComments:!1},autoClosingQuotes:"never"}),!0),L(n).onDidChangeModelContent(()=>{const c=L(n).getValue();c!==t.schema&&t.onChange(c)})}),()=>{L(n)&&L(n).dispose()}}),Ue(()=>{L(n)&&L(n).setValue(t.schema)}),It(a,{get class(){return`overflow-hidden ${t.class??""}`},children:(d,c)=>{var w=Wi(),s=fe(w);et(s,h=>g=h,()=>g),ae(w),ce(d,w)}}),nt()}const zi=globalThis.__sveltekit_ttlwvo.env;class Gi{constructor(t){Se(this,"ws",null);Se(this,"openHandler",null);Se(this,"closeHandler",null);Se(this,"errorHandler",null);Se(this,"messageHandler",null);Se(this,"retries",0);Se(this,"maxRetries",5);Se(this,"retryDelay",500);Se(this,"retryTimeout",null);Se(this,"isOpen",!1);Se(this,"isDestroyed",!1);Se(this,"init",()=>{if(!this.isOpen){console.log(`Initializing websocket connection with [${this.wsUrl}]`);try{this.ws=new WebSocket(this.wsUrl)}catch{this.retryConnect();return}this.isDestroyed=!1,this.ws.onmessage=t=>{var g,d,c,w,s,h,p,_;const n=JSON.parse(t.data);n.channel==="error"?(g=this.errorHandler)==null||g.call(this,n.message):n.channel==="app-events"?console.log("MSG:",n.event.type):n.channel==="log"?console.log(`MSG: log [${n.message.severity}]`,n.message.message):n.channel==="api-call-trace"?console.log("MSG: api-call-trace",(d=n.trace)==null?void 0:d.operationName,(c=n.trace)==null?void 0:c.method,(w=n.trace)==null?void 0:w.path):n.channel==="conversational-trace"&&console.log("MSG: conversational-trace",(s=n.trace)==null?void 0:s.eventName,(h=n.trace)==null?void 0:h.role,(p=n.trace)==null?void 0:p.medium),(_=this.messageHandler)==null||_.call(this,n)},this.ws.onerror=t=>{var n;console.error("Websocket error:",t),(n=this.ws)==null||n.close(),this.retryConnect()},this.ws.onclose=()=>{console.log("Websocket closed"),this.isOpen=!1,this.retryConnect()},this.ws.onopen=()=>{var t;this.retries=0,this.isOpen=!0,this.retryTimeout&&clearTimeout(this.retryTimeout),(t=this.openHandler)==null||t.call(this),console.log("Websocket connected")}}});Se(this,"destroy",()=>{var t;this.isDestroyed=!0,(t=this.ws)==null||t.close()});Se(this,"onOpen",t=>{this.openHandler=t,this.isOpen&&t()});Se(this,"onClose",t=>{this.closeHandler=t,this.isOpen||t()});Se(this,"onError",t=>{this.errorHandler=t});Se(this,"onMessage",t=>{this.messageHandler=t});Se(this,"sendMessage",t=>{var n;t.channel,(n=this.ws)==null||n.send(JSON.stringify(t))});Se(this,"retryConnect",()=>{var t,n;this.isDestroyed||(!this.isOpen&&this.retries<this.maxRetries?(this.retries++,this.init(),this.retryTimeout=setTimeout(this.retryConnect,this.retryDelay)):((t=this.errorHandler)==null||t.call(this,"WebSocket Error, please reload the browser"),(n=this.closeHandler)==null||n.call(this)))});this.wsUrl=t}}const Yi=zi.PUBLIC_WS_HOST??"ws://localhost:8080",st=new Gi(Yi);var qi=xe("<!> <!> <!>",1),Ji=xe('<span class="mr-2 font-semibold leading-5 text-rc-gray-500 hover:text-rc-gray-200">Chat version</span> <!>',1),Xi=(a,t,n)=>t(L(n).name),Zi=xe("<button><span> </span></button>"),Qi=xe("<!> <!>",1),eo=xe("<div>Select an agent on the left panel to start chatting</div>"),to=xe('<div class="flex h-screen"><!> <div class="flex h-full min-w-0 flex-1 flex-col bg-rc-gray-980 pb-3 pr-4 pt-2"><nav class="mb-3 flex h-14 flex-none items-center justify-between bg-rc-gray-980"><div class="flex items-center"><!></div> <div class="ml-auto flex items-baseline gap-2"><!> <!></div></nav> <div class="flex-1 overflow-hidden"><div><div></div> <div><!> <!></div> <!></div> <div><div class="text-rc-gray-100">Connecting...</div></div></div></div></div>');function Eo(a,t){tt(t,!0);const{onAgentSelect:n,onError:g}=Jn();let d=ge(lt([])),c=ge(lt([])),w=ge(null),s=ge(lt([])),h=ge(null),p=ge(null),_=ge(null),I=ge(lt({})),R=ge(!1),S=ge(null),k=ge(!1),T=null,e=ge(!1);function i(N,W){return W?W.get(N):typeof window>"u"?null:new URL(window.location.href).searchParams.get(N)}function o(N,W){if(console.log("setQueryParams",N,W),typeof window>"u")return;const Y=new URL(window.location.href);W===null?Y.searchParams.delete(N):Y.searchParams.set(N,W),jn(Y.toString(),{})}const b=Oe(()=>i("agent",Wt.url.searchParams));ft(()=>{st.onClose(()=>{J(R,!1)}),st.onMessage(N=>{var W,Y,ie,G,Q,he,se;if(N.channel!=="chat")if(N.channel==="app-events"){if(N.event.type==="agents-loaded")J(R,!0),Ct(),Pt();else if(N.event.type==="context-updated")J(p,N.event.context,!0),N.event.promptContext&&J(_,N.event.promptContext,!0);else if(N.event.type==="prompt-updated")J(h,N.event.prompt,!0),J(k,!!L(h),!0);else if(N.event.type==="delayed-actions-updated")J(I,N.event.actions,!0);else if(N.event.type==="update-states"){const we=L(s).length;J(s,N.event.states,!0),(!L(S)&&L(s).length>0||L(s).length>we)&&J(S,L(s)[L(s).length-1].id,!0)}else if(N.event.type==="agent-selected"){console.log("agent-selected, in roleplay"),o("agent",N.event.agent.id),J(c,N.event.agent.steps,!0);const we=L(c).find(ke=>ke.name===i("step"));J(w,we||L(c)[0],!0),y({type:"step-selected",step:(W=L(w))==null?void 0:W.name})}}else N.channel==="log"?di(N.message):N.channel==="step-trace"?Hn(N.trace):N.channel==="api-call-trace"?(console.log("[roleplay] api-call-trace received",(Y=N.trace)==null?void 0:Y.operationName,(ie=N.trace)==null?void 0:ie.method,(G=N.trace)==null?void 0:G.path,N.trace),zn(N.trace)):N.channel==="conversational-trace"?(console.log("[roleplay] conversational-trace received",(Q=N.trace)==null?void 0:Q.eventName,(he=N.trace)==null?void 0:he.role,(se=N.trace)==null?void 0:se.medium,N.trace),Gn(N.trace)):N.channel==="error"&&g(N.message)}),st.onError(g),st.init()}),Bn(()=>{st.destroy()}),Ue(()=>{if(!L(R))return;const N=L(b),W=L(d);if(N){if(!W.length)return;if(!W.includes(N)){console.warn("Agent from URL not in agents list yet:",N);return}v(N)}else v(null)});function v(N){T!==N&&(Ct(),Pt(),J(S,null),J(k,!1),J(c,[],!0),J(w,null),N&&y({type:"select-agent",agent:N}),T=N)}function y(N){st.sendMessage({channel:"app-events",event:N})}function r(N){console.log("Context changed",N),J(_,N,!0),y({type:"context-updated",context:N})}function l(N){y({type:"prompt-updated",prompt:N})}function m(N){n(N)}function u(N){L(b)&&(J(S,N,!0),Ct(),Pt(),y({type:"select-agent",agent:L(b),state:L(S)}))}function f(){L(b)&&(Ct(),Pt(),J(S,null),y({type:"select-agent",agent:L(b),state:L(S)}))}function E(N){J(w,L(c).find(W=>W.name===N)||null,!0),L(w)?o("step",L(w).name):o("step",null),y({type:"step-selected",step:N})}const x=Oe(()=>{var N;return((N=L(w))==null?void 0:N.schema)??null}),P=Oe(()=>{var N,W;return!!((N=L(w))!=null&&N.schema)&&((W=L(w))==null?void 0:W.schema.trim().length)>0}),M=Oe(()=>({sidebar:{width:"flex-[1] min-w-[140px] max-w-xs shrink-0",visibility:"visible"},promptColumn:{width:L(k)?"flex-[3] min-w-0":"hidden",visibility:L(k)?"flex":"hidden"},promptEditor:{width:"w-full h-full min-w-0",visibility:L(k)?"visible":"hidden"},schemaEditor:{width:"w-full h-full min-w-0",visibility:L(P)?"visible":"hidden"},chat:{width:L(k)?"flex-[2] min-w-0":"flex-[4] min-w-0",visibility:"visible"},contextEditor:{width:"flex-[2] min-w-0 max-w-xl",visibility:"visible"}}));function F(){L(x)&&J(e,!0)}function K(N){return encodeURIComponent(N)}function $({value:N}){var ie;if(N==="roleplay")return;const W=i("agent",Wt.url.searchParams),Y=((ie=L(w))==null?void 0:ie.name)??i("step");if(N==="tests"){if(W){const G=`/tests/${K(W)}`,Q=Y?`${G}?step=${K(Y)}`:G;Lt(Q)}else{const G=Y?`/tests?step=${K(Y)}`:"/tests";Lt(G)}return}if(N==="traces"){Lt("/traces");return}Lt("/"+N)}ft(async()=>{J(d,await Ft.agents.list.query(),!0)});var A=to();In(N=>{Fn.title="Bosun: Playground"});var O=fe(A);{let N=Oe(()=>L(b)||"");Yn(O,{className:"flex-none w-16",get agents(){return L(d)},get currentAgent(){return L(N)},onSelect:m})}var B=ye(O,2),V=fe(B),U=fe(V),ee=fe(U);{let N=Oe(()=>Wt.url.pathname.replace(/^\//,""));qn(ee,{get value(){return L(N)},ariaLabel:"Top tabs",onChange:$,children:(W,Y)=>{var ie=qi(),G=Ie(ie);Ht(G,{value:"roleplay",class:"px-3",children:(se,we)=>{Ve();var ke=Ge("Roleplay");ce(se,ke)},$$slots:{default:!0}});var Q=ye(G,2);Ht(Q,{value:"tests",class:"px-3",children:(se,we)=>{Ve();var ke=Ge("Tests");ce(se,ke)},$$slots:{default:!0}});var he=ye(Q,2);Ht(he,{value:"traces",class:"px-3",children:(se,we)=>{Ve();var ke=Ge("Traces");ce(se,ke)},$$slots:{default:!0}}),ce(W,ie)},$$slots:{default:!0}})}ae(U);var oe=ye(U,2),ne=fe(oe);{var de=N=>{var W=Ji(),Y=ye(Ie(W),2);hi(Y,{get agentStates(){return L(s)},get currentState(){return L(S)},onSelectState:u,class:"mr-4 self-baseline"}),ce(N,W)};Ne(ne,N=>{L(s).length>1&&N(de)})}var be=ye(ne,2);$e(be,{onclick:f,class:"self-baseline text-lg font-bold",children:(N,W)=>{Ve();var Y=Ge("New chat");ce(N,Y)},$$slots:{default:!0}}),ae(oe),ae(V);var D=ye(V,2),X=fe(D),H=fe(X);gt(H,21,()=>L(c),Bt,(N,W)=>{var Y=Zi();Y.__click=[Xi,E,W];var ie=fe(Y),G=fe(ie,!0);ae(ie),ae(Y),Ce(()=>{var Q;ze(Y,1,`my-1 ml-2 mr-0 rounded-lg px-3 py-2 text-left hover:bg-rc-gray-700 ${L(W).name===((Q=L(w))==null?void 0:Q.name)?"bg-rc-gray-600":"bg-transparent"}`),Ke(G,L(W).name)}),ce(N,Y)}),ae(H);var z=ye(H,2),q=fe(z);{var le=N=>{var W=_t(),Y=Ie(W);Mn(Y,()=>L(w).name,ie=>{var G=_t(),Q=Ie(G);{var he=se=>{{let we=Oe(()=>L(h)??"");Vi(se,{get class(){return`${L(M).promptEditor.width??""} border-thin border-rc-gray-650 bg-rc-gray-800 shadow-inner-white-soft backdrop-blur-3xl focus:outline-none focus:ring-0`},get prompt(){return L(we)},get agentId(){return L(b)},onPromptChanged:l,get showSchemaButton(){return L(P)},onSchemaClick:F})}};Ne(Q,se=>{L(b)&&se(he)})}ce(ie,G)}),ce(N,W)};Ne(q,N=>{L(w)&&L(k)&&N(le)})}var _e=ye(q,2);{var me=N=>{Dn(N,{title:"Schema",class:"!w-[80vw] !max-w-5xl",get open(){return L(e)},set open(Y){J(e,Y,!0)},children:Y=>{Hi(Y,{class:"h-[70vh] min-w-0",get schema(){return L(x)},onChange:console.log})},$$slots:{default:!0}})};Ne(_e,N=>{L(x)&&N(me)})}ae(z);var Le=ye(z,2);{var C=N=>{var W=Qi(),Y=Ie(W);Ii(Y,{get class(){return`h-full min-w-0 border-thin border-rc-gray-650 shadow-inner-white-soft backdrop-blur-3xl ${L(M).chat.width??""}`},get context(){return L(p)},get agentId(){return L(b)},onmessage:G=>st.sendMessage({channel:"chat",message:G})});var ie=ye(Y,2);$n(ie,{get class(){return`h-full ${L(M).contextEditor.width??""} min-h-0 min-w-0 border-thin border-rc-gray-650 shadow-inner-white-soft backdrop-blur-3xl focus:outline-none focus:ring-0`},get context(){return L(p)},onContextChanged:r}),ce(N,W)},j=N=>{var W=eo();Ce(()=>ze(W,1,`h-full ${L(M).chat.width??""} flex items-start justify-center pt-40 text-rc-gray-200`)),ce(N,W)};Ne(Le,N=>{L(b)?N(C):N(j,!1)})}ae(X);var Z=ye(X,2);ae(D),ae(B),ae(A),Ce(()=>{ze(X,1,`${L(R)?"flex":"hidden"} h-full w-full gap-x-2 focus:outline-none focus:ring-0`),ze(H,1,`flex h-full ${L(M).sidebar.width??""} flex-col text-rc-gray-200`),ze(z,1,`${L(M).promptColumn.visibility??""} ${L(M).promptColumn.width??""} flex h-full flex-col`),ze(Z,1,`${L(R)?"hidden":"flex"} h-full items-center justify-center`)}),ce(a,A),nt()}Et(["click"]);export{Eo as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import{o as F}from"../chunks/BrDK8TTs.js";import{p as U,e as q,g as H,f as A,h as L,i as c,b as r,c as M,$ as N,d as n,s as p,a as z,j as d,u as B,k as D,n as o,r as l}from"../chunks/C-dTPkQy.js";import{g as s}from"../chunks/Dxv8gtYg.js";import{p as G}from"../chunks/CZJlygAJ.js";import{A as I}from"../chunks/D9h7-Y-f.js";import{g as J}from"../chunks/B2gGEZTS.js";import{T as K,a as f}from"../chunks/Bd7SZbXQ.js";import{t as O}from"../chunks/BEJ5fU19.js";var Q=A("<!> <!> <!>",1),V=A('<div class="flex h-screen"><!> <div class="flex h-full min-w-0 flex-1 flex-col bg-rc-gray-980 pb-3 pr-4 pt-2"><nav class="mb-3 flex h-14 flex-none items-center justify-between bg-rc-gray-980"><div class="flex items-center"><!></div></nav> <main class="flex-1 pr-80 pt-40"><div class="flex h-full items-start justify-center text-rc-gray-200">Select an agent on the left panel to start testing</div></main></div></div>');function ne(C,k){U(k,!0);const{onAgentSelect:w,onError:P}=J();let g=q(H([]));const m=B(()=>G.url.pathname.split("/")[1]);function S({value:e}){if(e!==c(m))return e==="traces"?s("/traces"):e==="roleplay"?s("/roleplay"):e==="tests"?s("/tests"):s(`/${e}`)}function j(e){w(e),s(`/tests/${encodeURIComponent(e)}`)}F(async()=>{try{D(g,await O.agents.list.query(),!0)}catch(e){const x=e instanceof Error?e.message:e?String(e):"Unknown error";console.error("Failed to load agents:",e),P(`Failed to load agents: ${x}`)}});var i=V();L(e=>{N.title="Recombine Agents Hub: Tests"});var u=n(i);I(u,{className:"flex-none",get agents(){return c(g)},currentAgent:"",onAgentClick:j});var v=p(u,2),$=n(v),h=n($),R=n(h);K(R,{get value(){return c(m)},ariaLabel:"Top tabs",onChange:S,children:(e,x)=>{var b=Q(),y=z(b);f(y,{value:"roleplay",children:(t,T)=>{o();var a=d("Roleplay");r(t,a)},$$slots:{default:!0}});var _=p(y,2);f(_,{value:"tests",children:(t,T)=>{o();var a=d("Tests");r(t,a)},$$slots:{default:!0}});var E=p(_,2);f(E,{value:"traces",children:(t,T)=>{o();var a=d("Traces");r(t,a)},$$slots:{default:!0}}),r(e,b)},$$slots:{default:!0}}),l(h),l($),o(2),l(v),l(i),r(C,i),M()}export{ne as component};
|
|
Binary file
|
|
Binary file
|