@recombine-ai/bosun 0.7.0 → 0.8.0
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/bin/bosun.js +12 -9
- package/build/client/_app/immutable/assets/0.CeYdzR0K.css +1 -0
- package/build/client/_app/immutable/assets/0.CeYdzR0K.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CeYdzR0K.css.gz +0 -0
- package/build/client/_app/immutable/assets/Popper.CLTyHc88.css +1 -0
- package/build/client/_app/immutable/assets/Popper.CLTyHc88.css.br +0 -0
- package/build/client/_app/immutable/assets/Popper.CLTyHc88.css.gz +0 -0
- package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css +1 -0
- package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css.br +0 -0
- package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css.gz +0 -0
- package/build/client/_app/immutable/chunks/3HVf2z3Q.js +1 -0
- package/build/client/_app/immutable/chunks/3HVf2z3Q.js.br +0 -0
- package/build/client/_app/immutable/chunks/3HVf2z3Q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8mHyIC1B.js +1 -0
- package/build/client/_app/immutable/chunks/8mHyIC1B.js.br +0 -0
- package/build/client/_app/immutable/chunks/8mHyIC1B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B394X4Dm.js +1 -0
- package/build/client/_app/immutable/chunks/B394X4Dm.js.br +0 -0
- package/build/client/_app/immutable/chunks/B394X4Dm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{inUV6bWj.js → B5pH84aF.js} +1 -1
- package/build/client/_app/immutable/chunks/B5pH84aF.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5pH84aF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7r4ghJg.js +1 -0
- package/build/client/_app/immutable/chunks/B7r4ghJg.js.br +2 -0
- package/build/client/_app/immutable/chunks/B7r4ghJg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BALCah_8.js +2 -0
- package/build/client/_app/immutable/chunks/BALCah_8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BALCah_8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEJ5fU19.js +1 -0
- package/build/client/_app/immutable/chunks/BEJ5fU19.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEJ5fU19.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BFchB-2I.js +1 -0
- package/build/client/_app/immutable/chunks/BFchB-2I.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFchB-2I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DhhcRlSv.js → BRMnbBOX.js} +1 -1
- package/build/client/_app/immutable/chunks/BRMnbBOX.js.br +0 -0
- package/build/client/_app/immutable/chunks/{DhhcRlSv.js.gz → BRMnbBOX.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{BI8g8xqR.js → BfU3a6pG.js} +1 -1
- package/build/client/_app/immutable/chunks/BfU3a6pG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfU3a6pG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bk5z628g.js +1 -0
- package/build/client/_app/immutable/chunks/Bk5z628g.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk5z628g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BmJonxL2.js +1 -0
- package/build/client/_app/immutable/chunks/BmJonxL2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BmJonxL2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CEH18jSl.js → C1rQHXql.js} +1 -1
- package/build/client/_app/immutable/chunks/C1rQHXql.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1rQHXql.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3cmQ-ZQ.js +1 -0
- package/build/client/_app/immutable/chunks/C3cmQ-ZQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3cmQ-ZQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CB3MYTwM.js +2 -0
- package/build/client/_app/immutable/chunks/CB3MYTwM.js.br +0 -0
- package/build/client/_app/immutable/chunks/CB3MYTwM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{V9U6b0dU.js → CJHvtD7r.js} +4 -4
- package/build/client/_app/immutable/chunks/CJHvtD7r.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJHvtD7r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMCi0U-6.js +5 -0
- package/build/client/_app/immutable/chunks/CMCi0U-6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMCi0U-6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMN-Rq6J.js +1 -0
- package/build/client/_app/immutable/chunks/CMN-Rq6J.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMN-Rq6J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CU1-H3C1.js +1 -0
- package/build/client/_app/immutable/chunks/CU1-H3C1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CU1-H3C1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CmatTLDp.js +1 -0
- package/build/client/_app/immutable/chunks/CmatTLDp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmatTLDp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cob_zFH5.js +1 -0
- package/build/client/_app/immutable/chunks/Cob_zFH5.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cob_zFH5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CKAQS_Ig.js → DAyj7AJo.js} +1 -1
- package/build/client/_app/immutable/chunks/DAyj7AJo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAyj7AJo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCT4VKzQ.js +1 -0
- package/build/client/_app/immutable/chunks/DCT4VKzQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCT4VKzQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Deds-Bu4.js → DGK-Y22B.js} +3 -3
- package/build/client/_app/immutable/chunks/DGK-Y22B.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGK-Y22B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJH8-Pxb.js +1 -0
- package/build/client/_app/immutable/chunks/DJH8-Pxb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJH8-Pxb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMtzEpj5.js +2 -0
- package/build/client/_app/immutable/chunks/DMtzEpj5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMtzEpj5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_iTaAhh.js +1 -0
- package/build/client/_app/immutable/chunks/D_iTaAhh.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_iTaAhh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De71gW9B.js +1 -0
- package/build/client/_app/immutable/chunks/De71gW9B.js.br +0 -0
- package/build/client/_app/immutable/chunks/De71gW9B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CfrwacJp.js → Dh5nRfGH.js} +1 -1
- package/build/client/_app/immutable/chunks/Dh5nRfGH.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dh5nRfGH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ddC1NP9R.js +2 -0
- package/build/client/_app/immutable/chunks/ddC1NP9R.js.br +0 -0
- package/build/client/_app/immutable/chunks/ddC1NP9R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BgzmmD_x.js → rHISuZrQ.js} +1 -1
- package/build/client/_app/immutable/chunks/rHISuZrQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/rHISuZrQ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.z0HZlVW2.js +2 -0
- package/build/client/_app/immutable/entry/app.z0HZlVW2.js.br +0 -0
- package/build/client/_app/immutable/entry/app.z0HZlVW2.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BI2d1Cy8.js +1 -0
- package/build/client/_app/immutable/entry/start.BI2d1Cy8.js.br +2 -0
- package/build/client/_app/immutable/entry/start.BI2d1Cy8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.CVdeFtgc.js → 0.K529fk47.js} +1 -1
- package/build/client/_app/immutable/nodes/0.K529fk47.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.K529fk47.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Do0rKYuZ.js +1 -0
- package/build/client/_app/immutable/nodes/1.Do0rKYuZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Do0rKYuZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.IAMYOUml.js +5 -0
- package/build/client/_app/immutable/nodes/10.IAMYOUml.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.IAMYOUml.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.PLVwHmf8.js → 15.DJq8KQca.js} +1 -1
- package/build/client/_app/immutable/nodes/15.DJq8KQca.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DJq8KQca.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.MpUk9w5x.js +1 -0
- package/build/client/_app/immutable/nodes/16.MpUk9w5x.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.MpUk9w5x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DeKTr1ON.js +3 -0
- package/build/client/_app/immutable/nodes/17.DeKTr1ON.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DeKTr1ON.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.IKNR1t1s.js → 18.CCXr28ln.js} +5 -5
- package/build/client/_app/immutable/nodes/18.CCXr28ln.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.CCXr28ln.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.P49VQzwV.js → 2.B6rYWR87.js} +2 -2
- package/build/client/_app/immutable/nodes/2.B6rYWR87.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B6rYWR87.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CFCUpmUO.js +1 -0
- package/build/client/_app/immutable/nodes/3.CFCUpmUO.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CFCUpmUO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BYbOpI2z.js +1 -0
- package/build/client/_app/immutable/nodes/4.BYbOpI2z.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BYbOpI2z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DPO0SD9J.js +1 -0
- package/build/client/_app/immutable/nodes/5.DPO0SD9J.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DPO0SD9J.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.C02zTRTT.js → 6.BJVVMbLC.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BJVVMbLC.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BJVVMbLC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.BYKTckLf.js → 8.BAyrbFTp.js} +1 -1
- package/build/client/_app/immutable/nodes/8.BAyrbFTp.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BAyrbFTp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.C7tk-Wsh.js → 9.BUcdtwTB.js} +2 -2
- package/build/client/_app/immutable/nodes/9.BUcdtwTB.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BUcdtwTB.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-BAKgi60O.js +9 -0
- package/build/server/chunks/{0-DtejLnPd.js.map → 0-BAKgi60O.js.map} +1 -1
- package/build/server/chunks/1-jYHJB-tb.js +9 -0
- package/build/server/chunks/{1-Dw6tCl-K.js.map → 1-jYHJB-tb.js.map} +1 -1
- package/build/server/chunks/10-YF1bugMU.js +9 -0
- package/build/server/chunks/10-YF1bugMU.js.map +1 -0
- package/build/server/chunks/{10-DZjMDIvS.js → 11-D9ueFvgV.js} +3 -3
- package/build/server/chunks/{10-DZjMDIvS.js.map → 11-D9ueFvgV.js.map} +1 -1
- package/build/server/chunks/{11-D6F4I8KX.js → 12-s9qxLZI8.js} +3 -3
- package/build/server/chunks/{11-D6F4I8KX.js.map → 12-s9qxLZI8.js.map} +1 -1
- package/build/server/chunks/{12-2vbUmx0n.js → 13-DSBw3elU.js} +3 -3
- package/build/server/chunks/{12-2vbUmx0n.js.map → 13-DSBw3elU.js.map} +1 -1
- package/build/server/chunks/{13-C067TjV7.js → 14-Dys1MDrz.js} +3 -3
- package/build/server/chunks/{13-C067TjV7.js.map → 14-Dys1MDrz.js.map} +1 -1
- package/build/server/chunks/15-D8gRuCBg.js +9 -0
- package/build/server/chunks/15-D8gRuCBg.js.map +1 -0
- package/build/server/chunks/16-BRBiMoCX.js +20 -0
- package/build/server/chunks/16-BRBiMoCX.js.map +1 -0
- package/build/server/chunks/17-D9vMxjRh.js +9 -0
- package/build/server/chunks/17-D9vMxjRh.js.map +1 -0
- package/build/server/chunks/18-BLN7cTaf.js +9 -0
- package/build/server/chunks/18-BLN7cTaf.js.map +1 -0
- package/build/server/chunks/2-B4P_qP3q.js +9 -0
- package/build/server/chunks/2-B4P_qP3q.js.map +1 -0
- package/build/server/chunks/3-njAy3GOi.js +9 -0
- package/build/server/chunks/3-njAy3GOi.js.map +1 -0
- package/build/server/chunks/4-DPlYm_DX.js +9 -0
- package/build/server/chunks/4-DPlYm_DX.js.map +1 -0
- package/build/server/chunks/5-BcfdXwaX.js +9 -0
- package/build/server/chunks/5-BcfdXwaX.js.map +1 -0
- package/build/server/chunks/6-DtBEsI4e.js +9 -0
- package/build/server/chunks/6-DtBEsI4e.js.map +1 -0
- package/build/server/chunks/{6-B6C38HXu.js → 7-BixmjuY5.js} +3 -3
- package/build/server/chunks/{6-B6C38HXu.js.map → 7-BixmjuY5.js.map} +1 -1
- package/build/server/chunks/8-DVq9JSHT.js +9 -0
- package/build/server/chunks/8-DVq9JSHT.js.map +1 -0
- package/build/server/chunks/9-BMEiMRkj.js +9 -0
- package/build/server/chunks/9-BMEiMRkj.js.map +1 -0
- package/build/server/chunks/{AgentSidebar-BHphbGfv.js → AgentSidebar-BYk5FBc0.js} +5 -5
- package/build/server/chunks/{AgentSidebar-BHphbGfv.js.map → AgentSidebar-BYk5FBc0.js.map} +1 -1
- package/build/server/chunks/{Button-DZYrr6c0.js → Button-CMHzABlu.js} +2 -2
- package/build/server/chunks/{Button-DZYrr6c0.js.map → Button-CMHzABlu.js.map} +1 -1
- package/build/server/chunks/{ChatStepTrace-Dy9ryvqZ.js → ChatStepTrace-BWp_rIDm.js} +6 -6
- package/build/server/chunks/{ChatStepTrace-Dy9ryvqZ.js.map → ChatStepTrace-BWp_rIDm.js.map} +1 -1
- package/build/server/chunks/{ContextEditor-ByGoXY5_.js → ContextEditor-DwSmZH0Y.js} +4 -4
- package/build/server/chunks/{ContextEditor-ByGoXY5_.js.map → ContextEditor-DwSmZH0Y.js.map} +1 -1
- package/build/server/chunks/{Dropdown-Bz9eHilg.js → Dropdown-DroDbZQ6.js} +3 -2
- package/build/server/chunks/Dropdown-DroDbZQ6.js.map +1 -0
- package/build/server/chunks/{Icon-C98HpfFT.js → Icon-DdOrLZIU.js} +2 -2
- package/build/server/chunks/{Icon-C98HpfFT.js.map → Icon-DdOrLZIU.js.map} +1 -1
- package/build/server/chunks/{Input-DZT3Mm_-.js → Input-D-7S8dEO.js} +2 -2
- package/build/server/chunks/{Input-DZT3Mm_-.js.map → Input-D-7S8dEO.js.map} +1 -1
- package/build/server/chunks/{Modal-D4tx0Bdo.js → Modal-CBKUwUGm.js} +5 -5
- package/build/server/chunks/{Modal-D4tx0Bdo.js.map → Modal-CBKUwUGm.js.map} +1 -1
- package/build/server/chunks/{Tab-ClYAMM-e.js → Tab-DMBlstpi.js} +5 -5
- package/build/server/chunks/{Tab-ClYAMM-e.js.map → Tab-DMBlstpi.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-B6NfHVfy.js → _layout.svelte-B3_pVwfN.js} +6 -6
- package/build/server/chunks/{_layout.svelte-B6NfHVfy.js.map → _layout.svelte-B3_pVwfN.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-BoUClC-X.js → _layout.svelte-BnR072vW.js} +15 -14
- package/build/server/chunks/_layout.svelte-BnR072vW.js.map +1 -0
- package/build/server/chunks/_layout.svelte-BnUNGsUV.js +58 -0
- package/build/server/chunks/_layout.svelte-BnUNGsUV.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-DfPEqRLq.js → _layout.svelte-BxARmfhE.js} +17 -17
- package/build/server/chunks/{_layout.svelte-DfPEqRLq.js.map → _layout.svelte-BxARmfhE.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Ck9Utnoc.js → _page.svelte-BB_XBfMx.js} +5 -5
- package/build/server/chunks/{_page.svelte-Ck9Utnoc.js.map → _page.svelte-BB_XBfMx.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CbqAsz26.js → _page.svelte-BaDwHJpC.js} +3 -3
- package/build/server/chunks/{_page.svelte-CbqAsz26.js.map → _page.svelte-BaDwHJpC.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-mAhccGhM.js → _page.svelte-Bqd9YZKg.js} +11 -11
- package/build/server/chunks/{_page.svelte-mAhccGhM.js.map → _page.svelte-Bqd9YZKg.js.map} +1 -1
- package/build/server/chunks/_page.svelte-BzEHuU3o.js +763 -0
- package/build/server/chunks/_page.svelte-BzEHuU3o.js.map +1 -0
- package/build/server/chunks/{_page.svelte-rYYB_tCn.js → _page.svelte-CYLWOoKK.js} +9 -9
- package/build/server/chunks/{_page.svelte-rYYB_tCn.js.map → _page.svelte-CYLWOoKK.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DR3jiCLg.js → _page.svelte-CoCvoIxm.js} +13 -12
- package/build/server/chunks/_page.svelte-CoCvoIxm.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Dl2WmUCF.js → _page.svelte-DKRvXTam.js} +7 -7
- package/build/server/chunks/{_page.svelte-Dl2WmUCF.js.map → _page.svelte-DKRvXTam.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CBh9OOQz.js → _page.svelte-DYCzxw9U.js} +11 -11
- package/build/server/chunks/{_page.svelte-CBh9OOQz.js.map → _page.svelte-DYCzxw9U.js.map} +1 -1
- package/build/server/chunks/_server.ts-CUTB_pVv.js +139 -0
- package/build/server/chunks/_server.ts-CUTB_pVv.js.map +1 -0
- package/build/server/chunks/_server.ts-CbcaMe9z.js +38 -0
- package/build/server/chunks/_server.ts-CbcaMe9z.js.map +1 -0
- package/build/server/chunks/{agents-context-BrlIlkOW.js → agents-context-DJAK2Ml6.js} +2 -2
- package/build/server/chunks/{agents-context-BrlIlkOW.js.map → agents-context-DJAK2Ml6.js.map} +1 -1
- package/build/server/chunks/{source-selection-DJzHsjzD.js → client-tqD_VlIn.js} +3 -107
- package/build/server/chunks/client-tqD_VlIn.js.map +1 -0
- package/build/server/chunks/{context-zH5kvtGY.js → context-B0vutJuA.js} +2 -2
- package/build/server/chunks/{context-zH5kvtGY.js.map → context-B0vutJuA.js.map} +1 -1
- package/build/server/chunks/{edit-workspace-context-OTOIRCI0.js → edit-workspace-context-BQXwYkgE.js} +3 -3
- package/build/server/chunks/{edit-workspace-context-OTOIRCI0.js.map → edit-workspace-context-BQXwYkgE.js.map} +1 -1
- package/build/server/chunks/{error.svelte-DP2oBSvv.js → error.svelte-DZg1sSW2.js} +5 -5
- package/build/server/chunks/{error.svelte-DP2oBSvv.js.map → error.svelte-DZg1sSW2.js.map} +1 -1
- package/build/server/chunks/{events-M0vvlm3M.js → events-Hd1jvlZp.js} +2 -2
- package/build/server/chunks/{events-M0vvlm3M.js.map → events-Hd1jvlZp.js.map} +1 -1
- package/build/server/chunks/{index-DxaLoiKh.js → index-BSa6KzSq.js} +2 -2
- package/build/server/chunks/{index-DxaLoiKh.js.map → index-BSa6KzSq.js.map} +1 -1
- package/build/server/chunks/{index-server-CefdgakO.js → index-server-BI-Ep7Rw.js} +3 -3
- package/build/server/chunks/{index-server-CefdgakO.js.map → index-server-BI-Ep7Rw.js.map} +1 -1
- package/build/server/chunks/{index2-BuOY2QE4.js → index2-BpEbpEAf.js} +3 -3
- package/build/server/chunks/{index2-BuOY2QE4.js.map → index2-BpEbpEAf.js.map} +1 -1
- package/build/server/chunks/{index3-CpMl6FwG.js → index3-Cp9d5nmD.js} +4 -4
- package/build/server/chunks/{index3-CpMl6FwG.js.map → index3-Cp9d5nmD.js.map} +1 -1
- package/build/server/chunks/latency-recordings-CqioXMQl.js +117 -0
- package/build/server/chunks/latency-recordings-CqioXMQl.js.map +1 -0
- package/build/server/chunks/source-selection-hOQHZ-fn.js +109 -0
- package/build/server/chunks/source-selection-hOQHZ-fn.js.map +1 -0
- package/build/server/chunks/{state.svelte-DtOGaiYC.js → state.svelte-DbqYHGBV.js} +2 -2
- package/build/server/chunks/{state.svelte-DtOGaiYC.js.map → state.svelte-DbqYHGBV.js.map} +1 -1
- package/build/server/index.js +32 -10
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +60 -29
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/backend/lib/project-data-dir.spec.ts +19 -0
- package/src/backend/lib/project-data-dir.ts +9 -0
- package/src/backend/roleplay/fs-persistence.ts +5 -4
- package/src/backend/roleplay/router.ts +2 -1
- package/src/backend/traces/latency-recordings.ts +178 -0
- package/build/client/_app/immutable/assets/0.DHvyfZ2Z.css +0 -1
- package/build/client/_app/immutable/assets/0.DHvyfZ2Z.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DHvyfZ2Z.css.gz +0 -0
- package/build/client/_app/immutable/assets/chat-content.NFJFjHv0.css +0 -1
- package/build/client/_app/immutable/assets/chat-content.NFJFjHv0.css.br +0 -0
- package/build/client/_app/immutable/assets/chat-content.NFJFjHv0.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B375rjLA.js +0 -1
- package/build/client/_app/immutable/chunks/B375rjLA.js.br +0 -0
- package/build/client/_app/immutable/chunks/B375rjLA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BI8g8xqR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BI8g8xqR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcH1VEVU.js +0 -1
- package/build/client/_app/immutable/chunks/BcH1VEVU.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcH1VEVU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BgzmmD_x.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgzmmD_x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bv4OM4kB.js +0 -1
- package/build/client/_app/immutable/chunks/Bv4OM4kB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bv4OM4kB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0bQ35Gc.js +0 -1
- package/build/client/_app/immutable/chunks/C0bQ35Gc.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0bQ35Gc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEH18jSl.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEH18jSl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFWooaMM.js +0 -2
- package/build/client/_app/immutable/chunks/CFWooaMM.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFWooaMM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKAQS_Ig.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKAQS_Ig.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfrwacJp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfrwacJp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9tAw4x5.js +0 -1
- package/build/client/_app/immutable/chunks/D9tAw4x5.js.br +0 -2
- package/build/client/_app/immutable/chunks/D9tAw4x5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBgGiJzg.js +0 -5
- package/build/client/_app/immutable/chunks/DBgGiJzg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBgGiJzg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXFUtTrQ.js +0 -1
- package/build/client/_app/immutable/chunks/DXFUtTrQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXFUtTrQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Deds-Bu4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Deds-Bu4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhhcRlSv.js.br +0 -0
- package/build/client/_app/immutable/chunks/DklI6PZ2.js +0 -1
- package/build/client/_app/immutable/chunks/DklI6PZ2.js.br +0 -2
- package/build/client/_app/immutable/chunks/DklI6PZ2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmeFJZBo.js +0 -1
- package/build/client/_app/immutable/chunks/DmeFJZBo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmeFJZBo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dt0j4sZQ.js +0 -2
- package/build/client/_app/immutable/chunks/Dt0j4sZQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dt0j4sZQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxquQJx9.js +0 -1
- package/build/client/_app/immutable/chunks/DxquQJx9.js.br +0 -0
- package/build/client/_app/immutable/chunks/DxquQJx9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/JSHVX3nZ.js +0 -2
- package/build/client/_app/immutable/chunks/JSHVX3nZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/JSHVX3nZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/L6ABQ5uZ.js +0 -1
- package/build/client/_app/immutable/chunks/L6ABQ5uZ.js.br +0 -2
- package/build/client/_app/immutable/chunks/L6ABQ5uZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/NpmsW6m-.js +0 -1
- package/build/client/_app/immutable/chunks/NpmsW6m-.js.br +0 -0
- package/build/client/_app/immutable/chunks/NpmsW6m-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UO83B563.js +0 -1
- package/build/client/_app/immutable/chunks/UO83B563.js.br +0 -0
- package/build/client/_app/immutable/chunks/UO83B563.js.gz +0 -0
- package/build/client/_app/immutable/chunks/V9U6b0dU.js.br +0 -0
- package/build/client/_app/immutable/chunks/V9U6b0dU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WVoYdfwC.js +0 -2
- package/build/client/_app/immutable/chunks/WVoYdfwC.js.br +0 -0
- package/build/client/_app/immutable/chunks/WVoYdfwC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/inUV6bWj.js.br +0 -0
- package/build/client/_app/immutable/chunks/inUV6bWj.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CJ_bsERC.js +0 -2
- package/build/client/_app/immutable/entry/app.CJ_bsERC.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CJ_bsERC.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.9RB9BRtD.js +0 -1
- package/build/client/_app/immutable/entry/start.9RB9BRtD.js.br +0 -2
- package/build/client/_app/immutable/entry/start.9RB9BRtD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CVdeFtgc.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CVdeFtgc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BDChnwm3.js +0 -1
- package/build/client/_app/immutable/nodes/1.BDChnwm3.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BDChnwm3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.PLVwHmf8.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.PLVwHmf8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.IKNR1t1s.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.IKNR1t1s.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.P49VQzwV.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.P49VQzwV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BO8fNoBi.js +0 -1
- package/build/client/_app/immutable/nodes/3.BO8fNoBi.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BO8fNoBi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Ln69Bcug.js +0 -1
- package/build/client/_app/immutable/nodes/4.Ln69Bcug.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Ln69Bcug.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.C02zTRTT.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.C02zTRTT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BYKTckLf.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BYKTckLf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.C7tk-Wsh.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.C7tk-Wsh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DBodeuqK.js +0 -5
- package/build/client/_app/immutable/nodes/9.DBodeuqK.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DBodeuqK.js.gz +0 -0
- package/build/server/chunks/0-DtejLnPd.js +0 -9
- package/build/server/chunks/1-Dw6tCl-K.js +0 -9
- package/build/server/chunks/14-CG4GBZSP.js +0 -9
- package/build/server/chunks/14-CG4GBZSP.js.map +0 -1
- package/build/server/chunks/15-BK7DX1sY.js +0 -9
- package/build/server/chunks/15-BK7DX1sY.js.map +0 -1
- package/build/server/chunks/2-BaJLoZGK.js +0 -9
- package/build/server/chunks/2-BaJLoZGK.js.map +0 -1
- package/build/server/chunks/3-B6LhZPYk.js +0 -9
- package/build/server/chunks/3-B6LhZPYk.js.map +0 -1
- package/build/server/chunks/4-C6AwWXAp.js +0 -9
- package/build/server/chunks/4-C6AwWXAp.js.map +0 -1
- package/build/server/chunks/5-Dev5MSl1.js +0 -9
- package/build/server/chunks/5-Dev5MSl1.js.map +0 -1
- package/build/server/chunks/7-qXoxThoS.js +0 -9
- package/build/server/chunks/7-qXoxThoS.js.map +0 -1
- package/build/server/chunks/8-DHFEzstg.js +0 -9
- package/build/server/chunks/8-DHFEzstg.js.map +0 -1
- package/build/server/chunks/9-CC9KFXZB.js +0 -9
- package/build/server/chunks/9-CC9KFXZB.js.map +0 -1
- package/build/server/chunks/Dropdown-Bz9eHilg.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BoUClC-X.js.map +0 -1
- package/build/server/chunks/_page.svelte-DR3jiCLg.js.map +0 -1
- package/build/server/chunks/source-selection-DJzHsjzD.js.map +0 -1
- /package/build/client/_app/immutable/assets/{9.BX46PfEJ.css → 10.BX46PfEJ.css} +0 -0
- /package/build/client/_app/immutable/assets/{9.BX46PfEJ.css.br → 10.BX46PfEJ.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{9.BX46PfEJ.css.gz → 10.BX46PfEJ.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{15.C5apk4jm.css → 18.C5apk4jm.css} +0 -0
- /package/build/client/_app/immutable/assets/{15.C5apk4jm.css.br → 18.C5apk4jm.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{15.C5apk4jm.css.gz → 18.C5apk4jm.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{4.CZVw96CJ.css → 5.CZVw96CJ.css} +0 -0
- /package/build/client/_app/immutable/assets/{4.CZVw96CJ.css.br → 5.CZVw96CJ.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{4.CZVw96CJ.css.gz → 5.CZVw96CJ.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{8.DlSPCZj0.css → 9.DlSPCZj0.css} +0 -0
- /package/build/client/_app/immutable/assets/{8.DlSPCZj0.css.br → 9.DlSPCZj0.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{8.DlSPCZj0.css.gz → 9.DlSPCZj0.css.gz} +0 -0
- /package/build/client/_app/immutable/nodes/{10.BVI-eEdV.js → 11.BVI-eEdV.js} +0 -0
- /package/build/client/_app/immutable/nodes/{10.BVI-eEdV.js.br → 11.BVI-eEdV.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{10.BVI-eEdV.js.gz → 11.BVI-eEdV.js.gz} +0 -0
- /package/build/client/_app/immutable/nodes/{11.BHSGZYEC.js → 12.BHSGZYEC.js} +0 -0
- /package/build/client/_app/immutable/nodes/{11.BHSGZYEC.js.br → 12.BHSGZYEC.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{11.BHSGZYEC.js.gz → 12.BHSGZYEC.js.gz} +0 -0
- /package/build/client/_app/immutable/nodes/{12.CZ_7M4AF.js → 13.CZ_7M4AF.js} +0 -0
- /package/build/client/_app/immutable/nodes/{12.CZ_7M4AF.js.br → 13.CZ_7M4AF.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{12.CZ_7M4AF.js.gz → 13.CZ_7M4AF.js.gz} +0 -0
- /package/build/client/_app/immutable/nodes/{13.D96_XEm-.js → 14.D96_XEm-.js} +0 -0
- /package/build/client/_app/immutable/nodes/{13.D96_XEm-.js.br → 14.D96_XEm-.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{13.D96_XEm-.js.gz → 14.D96_XEm-.js.gz} +0 -0
- /package/build/client/_app/immutable/nodes/{6.CkeP1yO3.js → 7.CkeP1yO3.js} +0 -0
- /package/build/client/_app/immutable/nodes/{6.CkeP1yO3.js.br → 7.CkeP1yO3.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{6.CkeP1yO3.js.gz → 7.CkeP1yO3.js.gz} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var xr=Object.defineProperty;var _r=Object.getPrototypeOf;var Or=Reflect.get;var Ht=t=>{throw TypeError(t)};var Cr=(t,e,r)=>e in t?xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var
|
|
1
|
+
var xr=Object.defineProperty;var _r=Object.getPrototypeOf;var Or=Reflect.get;var Ht=t=>{throw TypeError(t)};var Cr=(t,e,r)=>e in t?xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var D=(t,e,r)=>Cr(t,typeof e!="symbol"?e+"":e,r),Lt=(t,e,r)=>e.has(t)||Ht("Cannot "+r);var o=(t,e,r)=>(Lt(t,e,"read from private field"),r?r.call(t):e.get(t)),f=(t,e,r)=>e.has(t)?Ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),k=(t,e,r,n)=>(Lt(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),j=(t,e,r)=>(Lt(t,e,"access private method"),r);var zt=(t,e,r)=>Or(_r(t),r,e);import"./CWj6FrbW.js";import{A as Fr,K as Lr,bs as Dr,J as kr,i as O,j as ar,l as S,h as c,u as x,bt as Xt,a0 as Mr,a_ as _e,bu as R,E as Rr,k as se,w as cr,bo as Br,aI as Gt,aH as Ur,z as Wr,p as W,q as C,a as _,b as I,c as K,at as B,f as ge,d as fe,r as he,bn as Kr,bv as jr,s as we,n as Yt,g as qt,t as Vr}from"./BRMnbBOX.js";import{B as Hr,d as zr,a as L,m as Xr,u as Gr,s as Yr}from"./CB3MYTwM.js";import{c as ye}from"./CMN-Rq6J.js";import{p as E,r as xt,b as ut}from"./DCT4VKzQ.js";import{i as ve}from"./BFchB-2I.js";import{a as _t}from"./3HVf2z3Q.js";import{a as Dt}from"./DMtzEpj5.js";function qr(t,e,r){Fr&&Lr();var n=new Hr(t),i=!Dr();kr(()=>{var s=e();i&&s!==null&&typeof s=="object"&&(s={}),n.ensure(s,r)})}function Zr(t){return typeof t=="function"}function Jr(t){return t!==null&&typeof t=="object"}const Qr=["string","number","bigint","boolean"];function kt(t){return t==null||Qr.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>kt(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Ce=Symbol("box"),Bt=Symbol("is-writable");function $r(t){return Jr(t)&&Ce in t}function en(t){return v.isBox(t)&&Bt in t}function v(t){let e=O(ar(t));return{[Ce]:!0,[Bt]:!0,get current(){return c(e)},set current(r){S(e,r,!0)}}}function tn(t,e){const r=x(t);return e?{[Ce]:!0,[Bt]:!0,get current(){return c(r)},set current(n){e(n)}}:{[Ce]:!0,get current(){return t()}}}function rn(t){return v.isBox(t)?t:Zr(t)?v.with(t):v(t)}function nn(t){return Object.entries(t).reduce((e,[r,n])=>v.isBox(n)?(v.isWritableBox(n)?Object.defineProperty(e,r,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function sn(t){return v.isWritableBox(t)?{[Ce]:!0,get current(){return t.current}}:t}v.from=rn;v.with=tn;v.flatten=nn;v.readonly=sn;v.isBox=$r;v.isWritableBox=en;function lr(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var Zt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,on=/\n/g,un=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,cn=/^:\s*/,ln=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,dn=/^[;\s]*/,fn=/^\s+|\s+$/g,hn=`
|
|
2
2
|
`,Jt="/",Qt="*",le="",pn="comment",vn="declaration";function gn(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function i(h){var p=h.match(on);p&&(r+=p.length);var A=h.lastIndexOf(hn);n=~A?h.length-A:n+h.length}function s(){var h={line:r,column:n};return function(p){return p.position=new u(h),g(),p}}function u(h){this.start=h,this.end={line:r,column:n},this.source=e.source}u.prototype.content=t;function a(h){var p=new Error(e.source+":"+r+":"+n+": "+h);if(p.reason=h,p.filename=e.source,p.line=r,p.column=n,p.source=t,!e.silent)throw p}function l(h){var p=h.exec(t);if(p){var A=p[0];return i(A),t=t.slice(A.length),p}}function g(){l(un)}function b(h){var p;for(h=h||[];p=w();)p!==!1&&h.push(p);return h}function w(){var h=s();if(!(Jt!=t.charAt(0)||Qt!=t.charAt(1))){for(var p=2;le!=t.charAt(p)&&(Qt!=t.charAt(p)||Jt!=t.charAt(p+1));)++p;if(p+=2,le===t.charAt(p-1))return a("End of comment missing");var A=t.slice(2,p-2);return n+=2,i(A),t=t.slice(p),n+=2,h({type:pn,comment:A})}}function d(){var h=s(),p=l(an);if(p){if(w(),!l(cn))return a("property missing ':'");var A=l(ln),y=h({type:vn,property:$t(p[0].replace(Zt,le)),value:A?$t(A[0].replace(Zt,le)):le});return l(dn),y}}function m(){var h=[];b(h);for(var p;p=d();)p!==!1&&(h.push(p),b(h));return h}return g(),m()}function $t(t){return t?t.replace(fn,le):le}function mn(t,e){let r=null;if(!t||typeof t!="string")return r;const n=gn(t),i=typeof e=="function";return n.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:a}=s;i?e(u,a,s):a&&(r=r||{},r[u]=a)}),r}const bn=/\d/,yn=["-","_","/","."];function wn(t=""){if(!bn.test(t))return t!==t.toLowerCase()}function En(t){const e=[];let r="",n,i;for(const s of t){const u=yn.includes(s);if(u===!0){e.push(r),r="",n=void 0;continue}const a=wn(s);if(i===!1){if(n===!1&&a===!0){e.push(r),r=s,n=a;continue}if(n===!0&&a===!1&&r.length>1){const l=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=l+s,n=a;continue}}r+=s,n=a,i=u}return e.push(r),e}function dr(t){return t?En(t).map(e=>Tn(e)).join(""):""}function Sn(t){return In(dr(t||""))}function Tn(t){return t?t[0].toUpperCase()+t.slice(1):""}function In(t){return t?t[0].toLowerCase()+t.slice(1):""}function at(t){if(!t)return{};const e={};function r(n,i){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[dr(n)]=i;return}if(n.startsWith("--")){e[n]=i;return}e[Sn(n)]=i}return mn(t,r),e}function pe(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function Nn(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const An=Nn(/[A-Z]/,t=>`-${t.toLowerCase()}`);function Pn(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${An(e)}: ${t[e]};`).join(`
|
|
3
3
|
`)}function fr(t={}){return Pn(t).replace(`
|
|
4
|
-
`," ")}const xn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};fr(xn);function _n(t){var e;return t.length>2&&t.startsWith("on")&&t[2]===((e=t[2])==null?void 0:e.toLowerCase())}function ie(...t){const e={...t[0]};for(let r=1;r<t.length;r++){const n=t[r];for(const i in n){const s=e[i],u=n[i],a=typeof s=="function",l=typeof u=="function";if(a&&_n(i)){const g=s,b=u;e[i]=lr(g,b)}else if(a&&l)e[i]=pe(s,u);else if(i==="class"){const g=kt(s),b=kt(u);g&&b?e[i]=
|
|
5
|
-
`," ")),e.hidden!==!0&&(e.hidden=void 0,delete e.hidden),e.disabled!==!0&&(e.disabled=void 0,delete e.disabled),e}const On=typeof window<"u"?window:void 0;function Cn(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var z,X,q,pt,V,Oe,dt;const jt=class jt extends Map{constructor(r){super();f(this,V);f(this,z,new Map);f(this,X,O(0));f(this,q,O(0));f(this,pt,Xt||-1);if(r){for(var[n,i]of r)super.set(n,i);o(this,q).v=super.size}}has(r){var n=o(this,z),i=n.get(r);if(i===void 0){var s=super.get(r);if(s!==void 0)i=j(this,V,Oe).call(this,0),n.set(r,i);else return c(o(this,X)),!1}return c(i),!0}forEach(r,n){j(this,V,dt).call(this),super.forEach(r,n)}get(r){var n=o(this,z),i=n.get(r);if(i===void 0){var s=super.get(r);if(s!==void 0)i=j(this,V,Oe).call(this,0),n.set(r,i);else{c(o(this,X));return}}return c(i),super.get(r)}set(r,n){var w;var i=o(this,z),s=i.get(r),u=super.get(r),a=super.set(r,n),l=o(this,X);if(s===void 0)s=j(this,V,Oe).call(this,0),i.set(r,s),S(o(this,q),super.size),_e(l);else if(u!==n){_e(s);var g=l.reactions===null?null:new Set(l.reactions),b=g===null||!((w=s.reactions)!=null&&w.every(d=>g.has(d)));b&&_e(l)}return a}delete(r){var n=o(this,z),i=n.get(r),s=super.delete(r);return i!==void 0&&(n.delete(r),S(o(this,q),super.size),S(i,-1),_e(o(this,X))),s}clear(){if(super.size!==0){super.clear();var r=o(this,z);S(o(this,q),0);for(var n of r.values())S(n,-1);_e(o(this,X)),r.clear()}}keys(){return c(o(this,X)),super.keys()}values(){return j(this,V,dt).call(this),super.values()}entries(){return j(this,V,dt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return c(o(this,q)),super.size}};z=new WeakMap,X=new WeakMap,q=new WeakMap,pt=new WeakMap,V=new WeakSet,Oe=function(r){return Xt===o(this,pt)?O(r):Mr(r)},dt=function(){c(o(this,X));var r=o(this,z);if(o(this,q).v!==r.size){for(var n of zt(jt.prototype,this,"keys").call(this))if(!r.has(n)){var i=j(this,V,Oe).call(this,0);r.set(n,i)}}for([,i]of o(this,z))c(i)};let Mt=jt;var Ee,Fe;class Fn{constructor(e={}){f(this,Ee);f(this,Fe);const{window:r=On,document:n=r==null?void 0:r.document}=e;r!==void 0&&(k(this,Ee,n),k(this,Fe,zr(i=>{const s=R(r,"focusin",i),u=R(r,"focusout",i);return()=>{s(),u()}})))}get current(){var e;return(e=o(this,Fe))==null||e.call(this),o(this,Ee)?Cn(o(this,Ee)):null}}Ee=new WeakMap,Fe=new WeakMap;new Fn;function Dn(t,e){switch(t){case"post":se(e);break;case"pre":Rr(e);break}}function hr(t,e,r,n={}){const{lazy:i=!1}=n;let s=!i,u=Array.isArray(t)?[]:void 0;Dn(e,()=>{const a=Array.isArray(t)?t.map(g=>g()):t();if(!s){s=!0,u=a;return}const l=cr(()=>r(a,u));return u=a,l})}function U(t,e,r){hr(t,"post",e,r)}function Ln(t,e,r){hr(t,"pre",e,r)}U.pre=Ln;var De,Le;class kn{constructor(e){f(this,De,O(void 0));f(this,Le);se(()=>{S(o(this,De),o(this,Le),!0),k(this,Le,e())})}get current(){return c(o(this,De))}}De=new WeakMap,Le=new WeakMap;var ke,Z;class pr{constructor(e){f(this,ke);f(this,Z);k(this,ke,e),k(this,Z,Symbol(e))}get key(){return o(this,Z)}exists(){return Br(o(this,Z))}get(){const e=Gt(o(this,Z));if(e===void 0)throw new Error(`Context "${o(this,ke)}" not found`);return e}getOr(e){const r=Gt(o(this,Z));return r===void 0?e:r}set(e){return Ur(o(this,Z),e)}}ke=new WeakMap,Z=new WeakMap;function vr(t){se(()=>()=>{t()})}function me({id:t,ref:e,deps:r=()=>!0,onRefChange:n,getRootNode:i}){U([()=>t.current,r],([s])=>{const u=(i==null?void 0:i())??document,a=u==null?void 0:u.getElementById(s);a?e.current=a:e.current=null,n==null||n(e.current)}),vr(()=>{e.current=null,n==null||n(null)})}function Ut(t,e){return setTimeout(e,t)}function Ot(t){Wr().then(t)}function Mn(t){return t?"open":"closed"}const Rn="Enter",Bn="Escape",Un=" ",Wn="Tab",Wt=typeof document<"u",er=Kn();function Kn(){var t,e;return Wt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Rt(t){return t instanceof HTMLElement}function jn(t){return t instanceof Element}function Vn(t){return t instanceof HTMLInputElement&&"select"in t}function Hn(t,e){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function xe(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}function F(){}function zn(t,e){const r=v(t);function n(s){return e[r.current][s]??r.current}return{state:r,dispatch:s=>{r.current=n(s)}}}function Xn(t,e){let r=O(ar({})),n=O("none");const i=t.current?"mounted":"unmounted";let s=O(null);const u=new kn(()=>t.current);U([()=>e.current,()=>t.current],([d,m])=>{!d||!m||Ot(()=>{S(s,document.getElementById(d),!0)})});const{state:a,dispatch:l}=zn(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});U(()=>t.current,d=>{if(c(s)||S(s,document.getElementById(e.current),!0),!c(s)||!(d!==u.current))return;const h=c(n),p=ct(c(s));d?l("MOUNT"):p==="none"||c(r).display==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT")});function g(d){if(c(s)||S(s,document.getElementById(e.current),!0),!c(s))return;const m=ct(c(s)),h=m.includes(d.animationName)||m==="none";d.target===c(s)&&h&&l("ANIMATION_END")}function b(d){c(s)||S(s,document.getElementById(e.current),!0),c(s)&&d.target===c(s)&&S(n,ct(c(s)),!0)}U(()=>a.current,()=>{if(c(s)||S(s,document.getElementById(e.current),!0),!c(s))return;const d=ct(c(s));S(n,a.current==="mounted"?d:"none",!0)}),U(()=>c(s),d=>{if(d)return S(r,getComputedStyle(d),!0),pe(R(d,"animationstart",b),R(d,"animationcancel",g),R(d,"animationend",g))});const w=x(()=>["mounted","unmountSuspended"].includes(a.current));return{get current(){return c(w)}}}function ct(t){return t&&getComputedStyle(t).animationName||"none"}function gr(t,e){W(e,!0);const r=Xn(v.with(()=>e.present),v.with(()=>e.id));var n=C(),i=_(n);{var s=u=>{var a=C(),l=_(a);D(l,()=>e.presence??B,()=>({present:r})),I(u,a)};ve(i,u=>{(e.forceMount||e.present||r.current)&&u(s)})}I(t,n),K()}function Gn(t){return{content:`data-${t}-content`,trigger:`data-${t}-trigger`,overlay:`data-${t}-overlay`,title:`data-${t}-title`,description:`data-${t}-description`,close:`data-${t}-close`,cancel:`data-${t}-cancel`,action:`data-${t}-action`}}var Me,Re,Be,Ue,We,Ke,je,Ve,He,ze;class Yn{constructor(e){L(this,"opts");f(this,Me,O(null));f(this,Re,O(null));f(this,Be,O(null));f(this,Ue,O(void 0));f(this,We,O(void 0));f(this,Ke,O(void 0));f(this,je,O(void 0));f(this,Ve,O(null));f(this,He,x(()=>Gn(this.opts.variant.current)));f(this,ze,x(()=>({"data-state":Mn(this.opts.open.current)})));this.opts=e,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return c(o(this,Me))}set triggerNode(e){S(o(this,Me),e,!0)}get contentNode(){return c(o(this,Re))}set contentNode(e){S(o(this,Re),e,!0)}get descriptionNode(){return c(o(this,Be))}set descriptionNode(e){S(o(this,Be),e,!0)}get contentId(){return c(o(this,Ue))}set contentId(e){S(o(this,Ue),e,!0)}get titleId(){return c(o(this,We))}set titleId(e){S(o(this,We),e,!0)}get triggerId(){return c(o(this,Ke))}set triggerId(e){S(o(this,Ke),e,!0)}get descriptionId(){return c(o(this,je))}set descriptionId(e){S(o(this,je),e,!0)}get cancelNode(){return c(o(this,Ve))}set cancelNode(e){S(o(this,Ve),e,!0)}get attrs(){return c(o(this,He))}set attrs(e){S(o(this,He),e)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return c(o(this,ze))}set sharedProps(e){S(o(this,ze),e)}}Me=new WeakMap,Re=new WeakMap,Be=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ke=new WeakMap,je=new WeakMap,Ve=new WeakMap,He=new WeakMap,ze=new WeakMap;var vt,Xe;class qn{constructor(e,r){L(this,"opts");L(this,"root");f(this,vt,x(()=>this.root.attrs[this.opts.variant.current]));f(this,Xe,x(()=>({id:this.opts.id.current,[c(o(this,vt))]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps})));this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),me({...e,deps:()=>this.root.opts.open.current})}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Un||e.key===Rn)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(o(this,Xe))}set props(e){S(o(this,Xe),e)}}vt=new WeakMap,Xe=new WeakMap;var Ge;class Zn{constructor(e,r){L(this,"opts");L(this,"root");f(this,Ge,x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps})));this.opts=e,this.root=r,me({...e,onRefChange:n=>{this.root.titleId=n==null?void 0:n.id},deps:()=>this.root.opts.open.current})}get props(){return c(o(this,Ge))}set props(e){S(o(this,Ge),e)}}Ge=new WeakMap;var Ye,qe;class Jn{constructor(e,r){L(this,"opts");L(this,"root");f(this,Ye,x(()=>({open:this.root.opts.open.current})));f(this,qe,x(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps})));this.opts=e,this.root=r,me({...e,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.contentNode=n,this.root.contentId=n==null?void 0:n.id}})}get snippetProps(){return c(o(this,Ye))}set snippetProps(e){S(o(this,Ye),e)}get props(){return c(o(this,qe))}set props(e){S(o(this,qe),e)}}Ye=new WeakMap,qe=new WeakMap;var Ze,Je;class Qn{constructor(e,r){L(this,"opts");L(this,"root");f(this,Ze,x(()=>({open:this.root.opts.open.current})));f(this,Je,x(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps})));this.opts=e,this.root=r,me({...e,deps:()=>this.root.opts.open.current})}get snippetProps(){return c(o(this,Ze))}set snippetProps(e){S(o(this,Ze),e)}get props(){return c(o(this,Je))}set props(e){S(o(this,Je),e)}}Ze=new WeakMap,Je=new WeakMap;const nt=new pr("Dialog.Root");function $n(t){return nt.set(new Yn(t))}function ei(t){return new Zn(t,nt.get())}function ti(t){return new Jn(t,nt.get())}function ri(t){return new Qn(t,nt.get())}function ni(t){return new qn(t,nt.get())}var ii=ge("<div><!></div>");function si(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"ref",15,null),i=E(e,"level",3,2),s=xt(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const u=ei({id:v.with(()=>r()),level:v.with(()=>i()),ref:v.with(()=>n(),d=>n(d))}),a=x(()=>ie(s,u.props));var l=C(),g=_(l);{var b=d=>{var m=C(),h=_(m);D(h,()=>e.child,()=>({props:c(a)})),I(d,m)},w=d=>{var m=ii();_t(m,()=>({...c(a)}));var h=fe(m);D(h,()=>e.children??B),he(m),I(d,m)};ve(g,d=>{e.child?d(b):d(w,!1)})}I(t,l),K()}function oi(t,e){var r=C(),n=_(r);qr(n,()=>e.children,i=>{var s=C(),u=_(s);D(u,()=>e.children??B),I(i,s)}),I(t,r)}function ui(t,e){W(e,!0);let r=E(e,"to",3,"body");const n=Kr();let i=x(s);function s(){if(!Wt||e.disabled)return null;let w=null;return typeof r()=="string"?w=document.querySelector(r()):(r()instanceof HTMLElement||r()instanceof DocumentFragment)&&(w=r()),w}let u;function a(){u&&(Gr(u),u=null)}U([()=>c(i),()=>e.disabled],([w,d])=>{if(!w||d){a();return}return u=Xr(oi,{target:w,props:{children:e.children},context:n}),()=>{a()}});var l=C(),g=_(l);{var b=w=>{var d=C(),m=_(d);D(m,()=>e.children??B),I(w,d)};ve(g,w=>{e.disabled&&w(b)})}I(t,l),K()}function mr(t,e,r,n){const i=Array.isArray(e)?e:[e];return i.forEach(s=>t.addEventListener(s,r,n)),()=>{i.forEach(s=>t.removeEventListener(s,r,n))}}class br{constructor(e,r={bubbles:!0,cancelable:!0}){L(this,"eventName");L(this,"options");this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const i=s=>{r(s)};return R(e,this.eventName,i,n)}}function tr(t,e=500){let r=null;const n=(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Kt(t,e){return t===e||t.contains(e)}function yr(t){return(t==null?void 0:t.ownerDocument)??document}function ai(t,e){const{clientX:r,clientY:n}=t,i=e.getBoundingClientRect();return r<i.left||r>i.right||n<i.top||n>i.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var Se,de,re,Te,Ie,ne,Qe,$e,J,gt,Pe,wr,mt,Ne,bt,yt,wt,Et,et,Er,St,Tt;class ci{constructor(e){f(this,Pe);L(this,"opts");f(this,Se);f(this,de);f(this,re,{pointerdown:!1});f(this,Te,!1);f(this,Ie,!1);L(this,"node",v(null));f(this,ne);f(this,Qe);f(this,$e,O(null));f(this,J,F);f(this,gt,e=>{e.defaultPrevented||this.currNode&&Ot(()=>{var r,n;!this.currNode||o(this,Et).call(this,e.target)||e.target&&!o(this,Ie)&&((n=(r=o(this,Qe)).current)==null||n.call(r,e))})});f(this,mt,e=>{let r=e;r.defaultPrevented&&(r=rr(e)),o(this,Se).current(e)});f(this,Ne,tr(e=>{if(!this.currNode){o(this,J).call(this);return}const r=this.opts.isValidEvent.current(e,this.currNode)||hi(e,this.currNode);if(!o(this,Te)||j(this,Pe,Er).call(this)||!r){o(this,J).call(this);return}let n=e;if(n.defaultPrevented&&(n=rr(n)),o(this,de).current!=="close"&&o(this,de).current!=="defer-otherwise-close"){o(this,J).call(this);return}e.pointerType==="touch"?(o(this,J).call(this),k(this,J,mr(o(this,ne),"click",o(this,mt),{once:!0}))):o(this,Se).current(n)},10));f(this,bt,e=>{o(this,re)[e.type]=!0});f(this,yt,e=>{o(this,re)[e.type]=!1});f(this,wt,()=>{this.node.current&&k(this,Te,fi(this.node.current))});f(this,Et,e=>this.node.current?Kt(this.node.current,e):!1);f(this,et,tr(()=>{for(const e in o(this,re))o(this,re)[e]=!1;k(this,Te,!1)},20));f(this,St,()=>{k(this,Ie,!0)});f(this,Tt,()=>{k(this,Ie,!1)});L(this,"props",{onfocuscapture:o(this,St),onblurcapture:o(this,Tt)});this.opts=e,me({id:e.id,ref:this.node,deps:()=>e.enabled.current,onRefChange:i=>{this.currNode=i}}),k(this,de,e.interactOutsideBehavior),k(this,Se,e.onInteractOutside),k(this,Qe,e.onFocusOutside),se(()=>{k(this,ne,yr(this.currNode))});let r=F;const n=()=>{o(this,et).call(this),globalThis.bitsDismissableLayers.delete(this),o(this,Ne).destroy(),r()};U([()=>this.opts.enabled.current,()=>this.currNode],([i,s])=>{if(!(!i||!s))return Ut(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,o(this,de)),r(),r=j(this,Pe,wr).call(this))}),n}),vr(()=>{o(this,et).destroy(),globalThis.bitsDismissableLayers.delete(this),o(this,Ne).destroy(),o(this,J).call(this),r()})}get currNode(){return c(o(this,$e))}set currNode(e){S(o(this,$e),e,!0)}}Se=new WeakMap,de=new WeakMap,re=new WeakMap,Te=new WeakMap,Ie=new WeakMap,ne=new WeakMap,Qe=new WeakMap,$e=new WeakMap,J=new WeakMap,gt=new WeakMap,Pe=new WeakSet,wr=function(){return pe(R(o(this,ne),"pointerdown",pe(o(this,bt),o(this,wt)),{capture:!0}),R(o(this,ne),"pointerdown",pe(o(this,yt),o(this,Ne))),R(o(this,ne),"focusin",o(this,gt)))},mt=new WeakMap,Ne=new WeakMap,bt=new WeakMap,yt=new WeakMap,wt=new WeakMap,Et=new WeakMap,et=new WeakMap,Er=function(){return Object.values(o(this,re)).some(Boolean)},St=new WeakMap,Tt=new WeakMap;function li(t){return new ci(t)}function di(t){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function fi(t){const e=[...globalThis.bitsDismissableLayers],r=di(e);if(r)return r[0].node.current===t;const[n]=e[0];return n.node.current===t}function hi(t,e){if("button"in t&&t.button>0)return!1;const r=t.target;return jn(r)?yr(r).documentElement.contains(r)&&!Kt(e,r)&&ai(t,e):!1}function rr(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let i=!1;return new Proxy(n,{get:(u,a)=>a==="currentTarget"?e:a==="target"?r:a==="preventDefault"?()=>{i=!0,typeof u.preventDefault=="function"&&u.preventDefault()}:a==="defaultPrevented"?i:a in u?u[a]:t[a]})}function pi(t,e){W(e,!0);let r=E(e,"interactOutsideBehavior",3,"close"),n=E(e,"onInteractOutside",3,F),i=E(e,"onFocusOutside",3,F),s=E(e,"isValidEvent",3,()=>!1);const u=li({id:v.with(()=>e.id),interactOutsideBehavior:v.with(()=>r()),onInteractOutside:v.with(()=>n()),enabled:v.with(()=>e.enabled),onFocusOutside:v.with(()=>i()),isValidEvent:v.with(()=>s())});var a=C(),l=_(a);D(l,()=>e.children??B,()=>({props:u.props})),I(t,a),K()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var It,Nt;class vi{constructor(e){L(this,"opts");f(this,It,()=>R(document,"keydown",o(this,Nt),{passive:!1}));f(this,Nt,e=>{if(e.key!==Bn||!mi(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=e;let r=F;U(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=o(this,It).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}}It=new WeakMap,Nt=new WeakMap;function gi(t){return new vi(t)}function mi(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function bi(t,e){W(e,!0);let r=E(e,"escapeKeydownBehavior",3,"close"),n=E(e,"onEscapeKeydown",3,F);gi({escapeKeydownBehavior:v.with(()=>r()),onEscapeKeydown:v.with(()=>n()),enabled:v.with(()=>e.enabled)});var i=C(),s=_(i);D(s,()=>e.children??B),I(t,i),K()}const ee=v([]);function yi(){return{add(t){const e=ee.current[0];e&&t.id!==e.id&&e.pause(),ee.current=nr(ee.current,t),ee.current.unshift(t)},remove(t){var e;ee.current=nr(ee.current,t),(e=ee.current[0])==null||e.resume()},get current(){return ee.current}}}function wi(){let t=O(!1),e=O(!1);return{id:xe(),get paused(){return c(t)},get isHandlingFocus(){return c(e)},set isHandlingFocus(r){S(e,r,!0)},pause(){S(t,!0)},resume(){S(t,!1)}}}function nr(t,e){return[...t].filter(r=>r.id!==e.id)}function Ei(t){return t.filter(e=>e.tagName!=="A")}function te(t,{select:e=!1}={}){if(!(t&&t.focus)||document.activeElement===t)return;const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Vn(t)&&e&&t.select()}function Si(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(te(n,{select:e}),document.activeElement!==r)return!0}function ir(t,e){for(const r of t)if(!Hn(r,e))return r}function Sr(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Ti(t){const e=Sr(t),r=ir(e,t),n=ir(e.reverse(),t);return[r,n]}/*!
|
|
4
|
+
`," ")}const xn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};fr(xn);function _n(t){var e;return t.length>2&&t.startsWith("on")&&t[2]===((e=t[2])==null?void 0:e.toLowerCase())}function ie(...t){const e={...t[0]};for(let r=1;r<t.length;r++){const n=t[r];for(const i in n){const s=e[i],u=n[i],a=typeof s=="function",l=typeof u=="function";if(a&&_n(i)){const g=s,b=u;e[i]=lr(g,b)}else if(a&&l)e[i]=pe(s,u);else if(i==="class"){const g=kt(s),b=kt(u);g&&b?e[i]=Dt(s,u):g?e[i]=Dt(s):b&&(e[i]=Dt(u))}else if(i==="style"){const g=typeof s=="object",b=typeof u=="object",w=typeof s=="string",d=typeof u=="string";if(g&&b)e[i]={...s,...u};else if(g&&d){const m=at(u);e[i]={...s,...m}}else if(w&&b){const m=at(s);e[i]={...m,...u}}else if(w&&d){const m=at(s),h=at(u);e[i]={...m,...h}}else g?e[i]=s:b?e[i]=u:w?e[i]=s:d&&(e[i]=u)}else e[i]=u!==void 0?u:s}}return typeof e.style=="object"&&(e.style=fr(e.style).replaceAll(`
|
|
5
|
+
`," ")),e.hidden!==!0&&(e.hidden=void 0,delete e.hidden),e.disabled!==!0&&(e.disabled=void 0,delete e.disabled),e}const On=typeof window<"u"?window:void 0;function Cn(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var z,X,q,pt,V,Oe,dt;const jt=class jt extends Map{constructor(r){super();f(this,V);f(this,z,new Map);f(this,X,O(0));f(this,q,O(0));f(this,pt,Xt||-1);if(r){for(var[n,i]of r)super.set(n,i);o(this,q).v=super.size}}has(r){var n=o(this,z),i=n.get(r);if(i===void 0){var s=super.get(r);if(s!==void 0)i=j(this,V,Oe).call(this,0),n.set(r,i);else return c(o(this,X)),!1}return c(i),!0}forEach(r,n){j(this,V,dt).call(this),super.forEach(r,n)}get(r){var n=o(this,z),i=n.get(r);if(i===void 0){var s=super.get(r);if(s!==void 0)i=j(this,V,Oe).call(this,0),n.set(r,i);else{c(o(this,X));return}}return c(i),super.get(r)}set(r,n){var w;var i=o(this,z),s=i.get(r),u=super.get(r),a=super.set(r,n),l=o(this,X);if(s===void 0)s=j(this,V,Oe).call(this,0),i.set(r,s),S(o(this,q),super.size),_e(l);else if(u!==n){_e(s);var g=l.reactions===null?null:new Set(l.reactions),b=g===null||!((w=s.reactions)!=null&&w.every(d=>g.has(d)));b&&_e(l)}return a}delete(r){var n=o(this,z),i=n.get(r),s=super.delete(r);return i!==void 0&&(n.delete(r),S(o(this,q),super.size),S(i,-1),_e(o(this,X))),s}clear(){if(super.size!==0){super.clear();var r=o(this,z);S(o(this,q),0);for(var n of r.values())S(n,-1);_e(o(this,X)),r.clear()}}keys(){return c(o(this,X)),super.keys()}values(){return j(this,V,dt).call(this),super.values()}entries(){return j(this,V,dt).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return c(o(this,q)),super.size}};z=new WeakMap,X=new WeakMap,q=new WeakMap,pt=new WeakMap,V=new WeakSet,Oe=function(r){return Xt===o(this,pt)?O(r):Mr(r)},dt=function(){c(o(this,X));var r=o(this,z);if(o(this,q).v!==r.size){for(var n of zt(jt.prototype,this,"keys").call(this))if(!r.has(n)){var i=j(this,V,Oe).call(this,0);r.set(n,i)}}for([,i]of o(this,z))c(i)};let Mt=jt;var Ee,Fe;class Fn{constructor(e={}){f(this,Ee);f(this,Fe);const{window:r=On,document:n=r==null?void 0:r.document}=e;r!==void 0&&(k(this,Ee,n),k(this,Fe,zr(i=>{const s=R(r,"focusin",i),u=R(r,"focusout",i);return()=>{s(),u()}})))}get current(){var e;return(e=o(this,Fe))==null||e.call(this),o(this,Ee)?Cn(o(this,Ee)):null}}Ee=new WeakMap,Fe=new WeakMap;new Fn;function Ln(t,e){switch(t){case"post":se(e);break;case"pre":Rr(e);break}}function hr(t,e,r,n={}){const{lazy:i=!1}=n;let s=!i,u=Array.isArray(t)?[]:void 0;Ln(e,()=>{const a=Array.isArray(t)?t.map(g=>g()):t();if(!s){s=!0,u=a;return}const l=cr(()=>r(a,u));return u=a,l})}function U(t,e,r){hr(t,"post",e,r)}function Dn(t,e,r){hr(t,"pre",e,r)}U.pre=Dn;var Le,De;class kn{constructor(e){f(this,Le,O(void 0));f(this,De);se(()=>{S(o(this,Le),o(this,De),!0),k(this,De,e())})}get current(){return c(o(this,Le))}}Le=new WeakMap,De=new WeakMap;var ke,Z;class pr{constructor(e){f(this,ke);f(this,Z);k(this,ke,e),k(this,Z,Symbol(e))}get key(){return o(this,Z)}exists(){return Br(o(this,Z))}get(){const e=Gt(o(this,Z));if(e===void 0)throw new Error(`Context "${o(this,ke)}" not found`);return e}getOr(e){const r=Gt(o(this,Z));return r===void 0?e:r}set(e){return Ur(o(this,Z),e)}}ke=new WeakMap,Z=new WeakMap;function vr(t){se(()=>()=>{t()})}function me({id:t,ref:e,deps:r=()=>!0,onRefChange:n,getRootNode:i}){U([()=>t.current,r],([s])=>{const u=(i==null?void 0:i())??document,a=u==null?void 0:u.getElementById(s);a?e.current=a:e.current=null,n==null||n(e.current)}),vr(()=>{e.current=null,n==null||n(null)})}function Ut(t,e){return setTimeout(e,t)}function Ot(t){Wr().then(t)}function Mn(t){return t?"open":"closed"}const Rn="Enter",Bn="Escape",Un=" ",Wn="Tab",Wt=typeof document<"u",er=Kn();function Kn(){var t,e;return Wt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Rt(t){return t instanceof HTMLElement}function jn(t){return t instanceof Element}function Vn(t){return t instanceof HTMLInputElement&&"select"in t}function Hn(t,e){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function xe(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}function F(){}function zn(t,e){const r=v(t);function n(s){return e[r.current][s]??r.current}return{state:r,dispatch:s=>{r.current=n(s)}}}function Xn(t,e){let r=O(ar({})),n=O("none");const i=t.current?"mounted":"unmounted";let s=O(null);const u=new kn(()=>t.current);U([()=>e.current,()=>t.current],([d,m])=>{!d||!m||Ot(()=>{S(s,document.getElementById(d),!0)})});const{state:a,dispatch:l}=zn(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});U(()=>t.current,d=>{if(c(s)||S(s,document.getElementById(e.current),!0),!c(s)||!(d!==u.current))return;const h=c(n),p=ct(c(s));d?l("MOUNT"):p==="none"||c(r).display==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT")});function g(d){if(c(s)||S(s,document.getElementById(e.current),!0),!c(s))return;const m=ct(c(s)),h=m.includes(d.animationName)||m==="none";d.target===c(s)&&h&&l("ANIMATION_END")}function b(d){c(s)||S(s,document.getElementById(e.current),!0),c(s)&&d.target===c(s)&&S(n,ct(c(s)),!0)}U(()=>a.current,()=>{if(c(s)||S(s,document.getElementById(e.current),!0),!c(s))return;const d=ct(c(s));S(n,a.current==="mounted"?d:"none",!0)}),U(()=>c(s),d=>{if(d)return S(r,getComputedStyle(d),!0),pe(R(d,"animationstart",b),R(d,"animationcancel",g),R(d,"animationend",g))});const w=x(()=>["mounted","unmountSuspended"].includes(a.current));return{get current(){return c(w)}}}function ct(t){return t&&getComputedStyle(t).animationName||"none"}function gr(t,e){W(e,!0);const r=Xn(v.with(()=>e.present),v.with(()=>e.id));var n=C(),i=_(n);{var s=u=>{var a=C(),l=_(a);L(l,()=>e.presence??B,()=>({present:r})),I(u,a)};ve(i,u=>{(e.forceMount||e.present||r.current)&&u(s)})}I(t,n),K()}function Gn(t){return{content:`data-${t}-content`,trigger:`data-${t}-trigger`,overlay:`data-${t}-overlay`,title:`data-${t}-title`,description:`data-${t}-description`,close:`data-${t}-close`,cancel:`data-${t}-cancel`,action:`data-${t}-action`}}var Me,Re,Be,Ue,We,Ke,je,Ve,He,ze;class Yn{constructor(e){D(this,"opts");f(this,Me,O(null));f(this,Re,O(null));f(this,Be,O(null));f(this,Ue,O(void 0));f(this,We,O(void 0));f(this,Ke,O(void 0));f(this,je,O(void 0));f(this,Ve,O(null));f(this,He,x(()=>Gn(this.opts.variant.current)));f(this,ze,x(()=>({"data-state":Mn(this.opts.open.current)})));this.opts=e,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return c(o(this,Me))}set triggerNode(e){S(o(this,Me),e,!0)}get contentNode(){return c(o(this,Re))}set contentNode(e){S(o(this,Re),e,!0)}get descriptionNode(){return c(o(this,Be))}set descriptionNode(e){S(o(this,Be),e,!0)}get contentId(){return c(o(this,Ue))}set contentId(e){S(o(this,Ue),e,!0)}get titleId(){return c(o(this,We))}set titleId(e){S(o(this,We),e,!0)}get triggerId(){return c(o(this,Ke))}set triggerId(e){S(o(this,Ke),e,!0)}get descriptionId(){return c(o(this,je))}set descriptionId(e){S(o(this,je),e,!0)}get cancelNode(){return c(o(this,Ve))}set cancelNode(e){S(o(this,Ve),e,!0)}get attrs(){return c(o(this,He))}set attrs(e){S(o(this,He),e)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return c(o(this,ze))}set sharedProps(e){S(o(this,ze),e)}}Me=new WeakMap,Re=new WeakMap,Be=new WeakMap,Ue=new WeakMap,We=new WeakMap,Ke=new WeakMap,je=new WeakMap,Ve=new WeakMap,He=new WeakMap,ze=new WeakMap;var vt,Xe;class qn{constructor(e,r){D(this,"opts");D(this,"root");f(this,vt,x(()=>this.root.attrs[this.opts.variant.current]));f(this,Xe,x(()=>({id:this.opts.id.current,[c(o(this,vt))]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps})));this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),me({...e,deps:()=>this.root.opts.open.current})}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Un||e.key===Rn)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(o(this,Xe))}set props(e){S(o(this,Xe),e)}}vt=new WeakMap,Xe=new WeakMap;var Ge;class Zn{constructor(e,r){D(this,"opts");D(this,"root");f(this,Ge,x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps})));this.opts=e,this.root=r,me({...e,onRefChange:n=>{this.root.titleId=n==null?void 0:n.id},deps:()=>this.root.opts.open.current})}get props(){return c(o(this,Ge))}set props(e){S(o(this,Ge),e)}}Ge=new WeakMap;var Ye,qe;class Jn{constructor(e,r){D(this,"opts");D(this,"root");f(this,Ye,x(()=>({open:this.root.opts.open.current})));f(this,qe,x(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps})));this.opts=e,this.root=r,me({...e,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.contentNode=n,this.root.contentId=n==null?void 0:n.id}})}get snippetProps(){return c(o(this,Ye))}set snippetProps(e){S(o(this,Ye),e)}get props(){return c(o(this,qe))}set props(e){S(o(this,qe),e)}}Ye=new WeakMap,qe=new WeakMap;var Ze,Je;class Qn{constructor(e,r){D(this,"opts");D(this,"root");f(this,Ze,x(()=>({open:this.root.opts.open.current})));f(this,Je,x(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps})));this.opts=e,this.root=r,me({...e,deps:()=>this.root.opts.open.current})}get snippetProps(){return c(o(this,Ze))}set snippetProps(e){S(o(this,Ze),e)}get props(){return c(o(this,Je))}set props(e){S(o(this,Je),e)}}Ze=new WeakMap,Je=new WeakMap;const nt=new pr("Dialog.Root");function $n(t){return nt.set(new Yn(t))}function ei(t){return new Zn(t,nt.get())}function ti(t){return new Jn(t,nt.get())}function ri(t){return new Qn(t,nt.get())}function ni(t){return new qn(t,nt.get())}var ii=ge("<div><!></div>");function si(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"ref",15,null),i=E(e,"level",3,2),s=xt(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const u=ei({id:v.with(()=>r()),level:v.with(()=>i()),ref:v.with(()=>n(),d=>n(d))}),a=x(()=>ie(s,u.props));var l=C(),g=_(l);{var b=d=>{var m=C(),h=_(m);L(h,()=>e.child,()=>({props:c(a)})),I(d,m)},w=d=>{var m=ii();_t(m,()=>({...c(a)}));var h=fe(m);L(h,()=>e.children??B),he(m),I(d,m)};ve(g,d=>{e.child?d(b):d(w,!1)})}I(t,l),K()}function oi(t,e){var r=C(),n=_(r);qr(n,()=>e.children,i=>{var s=C(),u=_(s);L(u,()=>e.children??B),I(i,s)}),I(t,r)}function ui(t,e){W(e,!0);let r=E(e,"to",3,"body");const n=Kr();let i=x(s);function s(){if(!Wt||e.disabled)return null;let w=null;return typeof r()=="string"?w=document.querySelector(r()):(r()instanceof HTMLElement||r()instanceof DocumentFragment)&&(w=r()),w}let u;function a(){u&&(Gr(u),u=null)}U([()=>c(i),()=>e.disabled],([w,d])=>{if(!w||d){a();return}return u=Xr(oi,{target:w,props:{children:e.children},context:n}),()=>{a()}});var l=C(),g=_(l);{var b=w=>{var d=C(),m=_(d);L(m,()=>e.children??B),I(w,d)};ve(g,w=>{e.disabled&&w(b)})}I(t,l),K()}function mr(t,e,r,n){const i=Array.isArray(e)?e:[e];return i.forEach(s=>t.addEventListener(s,r,n)),()=>{i.forEach(s=>t.removeEventListener(s,r,n))}}class br{constructor(e,r={bubbles:!0,cancelable:!0}){D(this,"eventName");D(this,"options");this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const i=s=>{r(s)};return R(e,this.eventName,i,n)}}function tr(t,e=500){let r=null;const n=(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...i)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Kt(t,e){return t===e||t.contains(e)}function yr(t){return(t==null?void 0:t.ownerDocument)??document}function ai(t,e){const{clientX:r,clientY:n}=t,i=e.getBoundingClientRect();return r<i.left||r>i.right||n<i.top||n>i.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var Se,de,re,Te,Ie,ne,Qe,$e,J,gt,Pe,wr,mt,Ne,bt,yt,wt,Et,et,Er,St,Tt;class ci{constructor(e){f(this,Pe);D(this,"opts");f(this,Se);f(this,de);f(this,re,{pointerdown:!1});f(this,Te,!1);f(this,Ie,!1);D(this,"node",v(null));f(this,ne);f(this,Qe);f(this,$e,O(null));f(this,J,F);f(this,gt,e=>{e.defaultPrevented||this.currNode&&Ot(()=>{var r,n;!this.currNode||o(this,Et).call(this,e.target)||e.target&&!o(this,Ie)&&((n=(r=o(this,Qe)).current)==null||n.call(r,e))})});f(this,mt,e=>{let r=e;r.defaultPrevented&&(r=rr(e)),o(this,Se).current(e)});f(this,Ne,tr(e=>{if(!this.currNode){o(this,J).call(this);return}const r=this.opts.isValidEvent.current(e,this.currNode)||hi(e,this.currNode);if(!o(this,Te)||j(this,Pe,Er).call(this)||!r){o(this,J).call(this);return}let n=e;if(n.defaultPrevented&&(n=rr(n)),o(this,de).current!=="close"&&o(this,de).current!=="defer-otherwise-close"){o(this,J).call(this);return}e.pointerType==="touch"?(o(this,J).call(this),k(this,J,mr(o(this,ne),"click",o(this,mt),{once:!0}))):o(this,Se).current(n)},10));f(this,bt,e=>{o(this,re)[e.type]=!0});f(this,yt,e=>{o(this,re)[e.type]=!1});f(this,wt,()=>{this.node.current&&k(this,Te,fi(this.node.current))});f(this,Et,e=>this.node.current?Kt(this.node.current,e):!1);f(this,et,tr(()=>{for(const e in o(this,re))o(this,re)[e]=!1;k(this,Te,!1)},20));f(this,St,()=>{k(this,Ie,!0)});f(this,Tt,()=>{k(this,Ie,!1)});D(this,"props",{onfocuscapture:o(this,St),onblurcapture:o(this,Tt)});this.opts=e,me({id:e.id,ref:this.node,deps:()=>e.enabled.current,onRefChange:i=>{this.currNode=i}}),k(this,de,e.interactOutsideBehavior),k(this,Se,e.onInteractOutside),k(this,Qe,e.onFocusOutside),se(()=>{k(this,ne,yr(this.currNode))});let r=F;const n=()=>{o(this,et).call(this),globalThis.bitsDismissableLayers.delete(this),o(this,Ne).destroy(),r()};U([()=>this.opts.enabled.current,()=>this.currNode],([i,s])=>{if(!(!i||!s))return Ut(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,o(this,de)),r(),r=j(this,Pe,wr).call(this))}),n}),vr(()=>{o(this,et).destroy(),globalThis.bitsDismissableLayers.delete(this),o(this,Ne).destroy(),o(this,J).call(this),r()})}get currNode(){return c(o(this,$e))}set currNode(e){S(o(this,$e),e,!0)}}Se=new WeakMap,de=new WeakMap,re=new WeakMap,Te=new WeakMap,Ie=new WeakMap,ne=new WeakMap,Qe=new WeakMap,$e=new WeakMap,J=new WeakMap,gt=new WeakMap,Pe=new WeakSet,wr=function(){return pe(R(o(this,ne),"pointerdown",pe(o(this,bt),o(this,wt)),{capture:!0}),R(o(this,ne),"pointerdown",pe(o(this,yt),o(this,Ne))),R(o(this,ne),"focusin",o(this,gt)))},mt=new WeakMap,Ne=new WeakMap,bt=new WeakMap,yt=new WeakMap,wt=new WeakMap,Et=new WeakMap,et=new WeakMap,Er=function(){return Object.values(o(this,re)).some(Boolean)},St=new WeakMap,Tt=new WeakMap;function li(t){return new ci(t)}function di(t){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function fi(t){const e=[...globalThis.bitsDismissableLayers],r=di(e);if(r)return r[0].node.current===t;const[n]=e[0];return n.node.current===t}function hi(t,e){if("button"in t&&t.button>0)return!1;const r=t.target;return jn(r)?yr(r).documentElement.contains(r)&&!Kt(e,r)&&ai(t,e):!1}function rr(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let i=!1;return new Proxy(n,{get:(u,a)=>a==="currentTarget"?e:a==="target"?r:a==="preventDefault"?()=>{i=!0,typeof u.preventDefault=="function"&&u.preventDefault()}:a==="defaultPrevented"?i:a in u?u[a]:t[a]})}function pi(t,e){W(e,!0);let r=E(e,"interactOutsideBehavior",3,"close"),n=E(e,"onInteractOutside",3,F),i=E(e,"onFocusOutside",3,F),s=E(e,"isValidEvent",3,()=>!1);const u=li({id:v.with(()=>e.id),interactOutsideBehavior:v.with(()=>r()),onInteractOutside:v.with(()=>n()),enabled:v.with(()=>e.enabled),onFocusOutside:v.with(()=>i()),isValidEvent:v.with(()=>s())});var a=C(),l=_(a);L(l,()=>e.children??B,()=>({props:u.props})),I(t,a),K()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var It,Nt;class vi{constructor(e){D(this,"opts");f(this,It,()=>R(document,"keydown",o(this,Nt),{passive:!1}));f(this,Nt,e=>{if(e.key!==Bn||!mi(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=e;let r=F;U(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=o(this,It).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}}It=new WeakMap,Nt=new WeakMap;function gi(t){return new vi(t)}function mi(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function bi(t,e){W(e,!0);let r=E(e,"escapeKeydownBehavior",3,"close"),n=E(e,"onEscapeKeydown",3,F);gi({escapeKeydownBehavior:v.with(()=>r()),onEscapeKeydown:v.with(()=>n()),enabled:v.with(()=>e.enabled)});var i=C(),s=_(i);L(s,()=>e.children??B),I(t,i),K()}const ee=v([]);function yi(){return{add(t){const e=ee.current[0];e&&t.id!==e.id&&e.pause(),ee.current=nr(ee.current,t),ee.current.unshift(t)},remove(t){var e;ee.current=nr(ee.current,t),(e=ee.current[0])==null||e.resume()},get current(){return ee.current}}}function wi(){let t=O(!1),e=O(!1);return{id:xe(),get paused(){return c(t)},get isHandlingFocus(){return c(e)},set isHandlingFocus(r){S(e,r,!0)},pause(){S(t,!0)},resume(){S(t,!1)}}}function nr(t,e){return[...t].filter(r=>r.id!==e.id)}function Ei(t){return t.filter(e=>e.tagName!=="A")}function te(t,{select:e=!1}={}){if(!(t&&t.focus)||document.activeElement===t)return;const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Vn(t)&&e&&t.select()}function Si(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(te(n,{select:e}),document.activeElement!==r)return!0}function ir(t,e){for(const r of t)if(!Hn(r,e))return r}function Sr(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Ti(t){const e=Sr(t),r=ir(e,t),n=ir(e.reverse(),t);return[r,n]}/*!
|
|
6
6
|
* tabbable 6.3.0
|
|
7
7
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
8
|
-
*/var Ii=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ni=Ii.join(","),Tr=typeof Element>"u",ft=Tr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ht=!Tr&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ir=function(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=i===""||i==="true",u=s||r&&e&&Ir(e.parentNode);return u},Ai=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Pi=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},xi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ai(e))&&!Pi(e)?0:e.tabIndex},Nr=function(e){return e.tagName==="INPUT"},_i=function(e){return Nr(e)&&e.type==="hidden"},Oi=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Ci=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},Fi=function(e){if(!e.name)return!0;var r=e.form||ht(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var s=Ci(i,e.form);return!s||s===e},Di=function(e){return Nr(e)&&e.type==="radio"},Li=function(e){return Di(e)&&!Fi(e)},ki=function(e){var r,n=e&&ht(e),i=(r=n)===null||r===void 0?void 0:r.host,s=!1;if(n&&n!==e){var u,a,l;for(s=!!((u=i)!==null&&u!==void 0&&(a=u.ownerDocument)!==null&&a!==void 0&&a.contains(i)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&i;){var g,b,w;n=ht(i),i=(g=n)===null||g===void 0?void 0:g.host,s=!!((b=i)!==null&&b!==void 0&&(w=b.ownerDocument)!==null&&w!==void 0&&w.contains(i))}}return s},sr=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},Mi=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var u=ft.call(e,"details>summary:first-of-type"),a=u?e.parentElement:e;if(ft.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var l=e;e;){var g=e.parentElement,b=ht(e);if(g&&!g.shadowRoot&&i(g)===!0)return sr(e);e.assignedSlot?e=e.assignedSlot:!g&&b!==e.ownerDocument?e=b.host:e=g}e=l}if(ki(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return sr(e);return!1},Ri=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ft.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},Bi=function(e,r){return!(r.disabled||Ir(r)||_i(r)||Mi(r,e)||Oi(r)||Ri(r))},Ui=function(e,r){return!(Li(r)||xi(r)<0||!Bi(e,r))},Wi=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ft.call(e,Ni)===!1?!1:Ui(r,e)};const Ki=new br("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),ji=new br("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),Vi=new pr("FocusScope");function Hi({id:t,loop:e,enabled:r,onOpenAutoFocus:n,onCloseAutoFocus:i,forceMount:s}){const u=yi(),a=wi(),l=v(null),g=Vi.getOr({ignoreCloseAutoFocus:!1});let b=null;me({id:t,ref:l,deps:()=>r.current});function w(y){if(!(a.paused||!l.current||a.isHandlingFocus)){a.isHandlingFocus=!0;try{const T=y.target;if(!Rt(T))return;const N=l.current.contains(T);if(y.type==="focusin")if(N)b=T;else{if(g.ignoreCloseAutoFocus)return;te(b,{select:!0})}else y.type==="focusout"&&!N&&!g.ignoreCloseAutoFocus&&te(b,{select:!0})}finally{a.isHandlingFocus=!1}}}function d(y){if(!b||!l.current)return;let T=!1;for(const N of y){if(N.type==="childList"&&N.removedNodes.length>0)for(const P of N.removedNodes){if(P===b){T=!0;break}if(P.nodeType===Node.ELEMENT_NODE&&P.contains(b)){T=!0;break}}if(T)break}T&&l.current&&!l.current.contains(document.activeElement)&&te(l.current)}U([()=>l.current,()=>r.current],([y,T])=>{if(!y||!T)return;const N=pe(R(document,"focusin",w),R(document,"focusout",w)),P=new MutationObserver(d);return P.observe(y,{childList:!0,subtree:!0,attributes:!1}),()=>{N(),P.disconnect()}}),U([()=>s.current,()=>l.current],([y,T])=>{if(y)return;const N=document.activeElement;return m(T,N),()=>{T&&h(N)}}),U([()=>s.current,()=>l.current,()=>r.current],([y,T])=>{if(!y)return;const N=document.activeElement;return m(T,N),()=>{T&&h(N)}});function m(y,T){if(y||(y=document.getElementById(t.current)),!y||!r.current)return;if(u.add(a),!y.contains(T)){const P=Ki.createEvent();n.current(P),P.defaultPrevented||Ot(()=>{if(!y)return;Si(Ei(Sr(y)),{select:!0})||te(y)})}}function h(y){var P;const T=ji.createEvent();(P=i.current)==null||P.call(i,T);const N=g.ignoreCloseAutoFocus;Ut(0,()=>{!T.defaultPrevented&&y&&!N&&te(Wi(y)?y:document.body,{select:!0}),u.remove(a)})}function p(y){if(!r.current||!e.current&&!r.current||a.paused)return;const T=y.key===Wn&&!y.ctrlKey&&!y.altKey&&!y.metaKey,N=document.activeElement;if(!(T&&N))return;const P=l.current;if(!P)return;const[M,Q]=Ti(P);M&&Q?!y.shiftKey&&N===Q?(y.preventDefault(),e.current&&te(M,{select:!0})):y.shiftKey&&N===M&&(y.preventDefault(),e.current&&te(Q,{select:!0})):N===P&&y.preventDefault()}const A=x(()=>({id:t.current,tabindex:-1,onkeydown:p}));return{get props(){return c(A)}}}function zi(t,e){W(e,!0);let r=E(e,"trapFocus",3,!1),n=E(e,"loop",3,!1),i=E(e,"onCloseAutoFocus",3,F),s=E(e,"onOpenAutoFocus",3,F),u=E(e,"forceMount",3,!1);const a=Hi({enabled:v.with(()=>r()),loop:v.with(()=>n()),onCloseAutoFocus:v.with(()=>i()),onOpenAutoFocus:v.with(()=>s()),id:v.with(()=>e.id),forceMount:v.with(()=>u())});var l=C(),g=_(l);D(g,()=>e.focusScope??B,()=>({props:a.props})),I(t,l),K()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Ae,tt,At,Ar,Pt,rt;class Xi{constructor(e){f(this,At);L(this,"opts");f(this,Ae,F);f(this,tt,v(null));f(this,Pt,e=>{const r=o(this,tt).current,n=e.target;!Rt(r)||!Rt(n)||!this.opts.enabled.current||!qi(this)||!Kt(r,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&k(this,Ae,Yi(r)))});f(this,rt,()=>{o(this,Ae).call(this),k(this,Ae,F)});this.opts=e,me({id:e.id,ref:o(this,tt),deps:()=>this.opts.enabled.current});let r=F;U(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=j(this,At,Ar).call(this)),()=>{r(),o(this,rt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}Ae=new WeakMap,tt=new WeakMap,At=new WeakSet,Ar=function(){return pe(R(document,"pointerdown",o(this,Pt)),R(document,"pointerup",lr(o(this,rt),this.opts.onPointerUp.current)))},Pt=new WeakMap,rt=new WeakMap;function Gi(t){return new Xi(t)}const or=t=>t.style.userSelect||t.style.webkitUserSelect;function Yi(t){const e=document.body,r=or(e),n=or(t);return lt(e,"none"),lt(t,"text"),()=>{lt(e,r),lt(t,n)}}function lt(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function qi(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function Zi(t,e){W(e,!0);let r=E(e,"preventOverflowTextSelection",3,!0),n=E(e,"onPointerDown",3,F),i=E(e,"onPointerUp",3,F);Gi({id:v.with(()=>e.id),onPointerDown:v.with(()=>n()),onPointerUp:v.with(()=>i()),enabled:v.with(()=>e.enabled&&r())});var s=C(),u=_(s);D(u,()=>e.children??B),I(t,s),K()}function Ji(t){let e=0,r=O(void 0),n;function i(){e-=1,n&&e<=0&&(n(),S(r,void 0),n=void 0)}return(...s)=>(e+=1,c(r)===void 0&&(n=jr(()=>{S(r,t(...s),!0)})),se(()=>()=>{i()}),c(r))}const Qi=Ji(()=>{const t=new Mt,e=x(()=>{for(const s of t.values())if(s)return!0;return!1});let r=O(null),n=null;function i(){Wt&&(document.body.setAttribute("style",c(r)??""),document.body.style.removeProperty("--scrollbar-width"),er&&(n==null||n()))}return se(()=>{const s=c(e);return cr(()=>{if(!s)return;S(r,document.body.getAttribute("style"),!0);const u=getComputedStyle(document.body),a=window.innerWidth-document.documentElement.clientWidth,g={padding:Number.parseInt(u.paddingRight??"0",10)+a,margin:Number.parseInt(u.marginRight??"0",10)};a>0&&(document.body.style.paddingRight=`${g.padding}px`,document.body.style.marginRight=`${g.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),er&&(n=mr(document,"touchmove",b=>{b.target===document.documentElement&&(b.touches.length>1||b.preventDefault())},{passive:!1})),Ot(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),se(()=>()=>{n==null||n()}),{get map(){return t},resetBodyStyle:i}});function $i(t,e=()=>null){const r=xe(),n=Qi();if(!n)return;const i=x(e);n.map.set(r,t??!1);const s=v.with(()=>n.map.get(r)??!1,u=>n.map.set(r,u));return se(()=>()=>{n.map.delete(r),!es(n.map)&&(c(i)===null?requestAnimationFrame(()=>n.resetBodyStyle()):Ut(c(i),()=>n.resetBodyStyle()))}),s}function es(t){for(const[e,r]of t)if(r)return!0;return!1}function ur(t,e){W(e,!0);let r=E(e,"preventScroll",3,!0),n=E(e,"restoreScrollDelay",3,null);$i(r(),()=>n()),K()}function ts({forceMount:t,present:e,trapFocus:r,open:n}){return t?n&&r:e&&r&&n}var rs=ge("<div><!></div>");function ns(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"forceMount",3,!1),i=E(e,"ref",15,null),s=xt(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const u=ri({id:v.with(()=>r()),ref:v.with(()=>i(),l=>i(l))}),a=x(()=>ie(s,u.props));{const l=b=>{var w=C(),d=_(w);{var m=p=>{var A=C(),y=_(A);{let T=x(()=>({props:ie(c(a)),...u.snippetProps}));D(y,()=>e.child,()=>c(T))}I(p,A)},h=p=>{var A=rs();_t(A,T=>({...T}),[()=>ie(c(a))]);var y=fe(A);D(y,()=>e.children??B,()=>u.snippetProps),he(A),I(p,A)};ve(d,p=>{e.child?p(m):p(h,!1)})}I(b,w)};let g=x(()=>u.root.opts.open.current||n());gr(t,{get id(){return r()},get present(){return c(g)},presence:l,$$slots:{presence:!0}})}K()}function is(t,e){W(e,!0);let r=E(e,"open",15,!1),n=E(e,"onOpenChange",3,F);$n({variant:v.with(()=>"dialog"),open:v.with(()=>r(),u=>{r(u),n()(u)})});var i=C(),s=_(i);D(s,()=>e.children??B),I(t,i),K()}var ss=ge("<button><!></button>");function os(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"ref",15,null),i=E(e,"disabled",3,!1),s=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=ni({variant:v.with(()=>"close"),id:v.with(()=>r()),ref:v.with(()=>n(),d=>n(d)),disabled:v.with(()=>!!i())}),a=x(()=>ie(s,u.props));var l=C(),g=_(l);{var b=d=>{var m=C(),h=_(m);D(h,()=>e.child,()=>({props:c(a)})),I(d,m)},w=d=>{var m=ss();_t(m,()=>({...c(a)}));var h=fe(m);D(h,()=>e.children??B),he(m),I(d,m)};ve(g,d=>{e.child?d(b):d(w,!1)})}I(t,l),K()}var us=ge("<!> <!>",1),as=ge("<!> <div><!></div>",1);function cs(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"ref",15,null),i=E(e,"forceMount",3,!1),s=E(e,"onCloseAutoFocus",3,F),u=E(e,"onOpenAutoFocus",3,F),a=E(e,"onEscapeKeydown",3,F),l=E(e,"onInteractOutside",3,F),g=E(e,"trapFocus",3,!0),b=E(e,"preventScroll",3,!0),w=E(e,"restoreScrollDelay",3,null),d=xt(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const m=ti({id:v.with(()=>r()),ref:v.with(()=>n(),p=>n(p))}),h=x(()=>ie(d,m.props));{const p=y=>{{const T=(P,M)=>{let Q=()=>M==null?void 0:M().props;bi(P,ut(()=>c(h),{get enabled(){return m.root.opts.open.current},onEscapeKeydown:oe=>{a()(oe),!oe.defaultPrevented&&m.root.handleClose()},children:(oe,Pr)=>{pi(oe,ut(()=>c(h),{get enabled(){return m.root.opts.open.current},onInteractOutside:ue=>{l()(ue),!ue.defaultPrevented&&m.root.handleClose()},children:(ue,it)=>{Zi(ue,ut(()=>c(h),{get enabled(){return m.root.opts.open.current},children:(st,Vt)=>{var be=C(),Ct=_(be);{var ot=H=>{var G=us(),Y=_(G);{var ae=ce=>{ur(ce,{get preventScroll(){return b()},get restoreScrollDelay(){return w()}})};ve(Y,ce=>{m.root.opts.open.current&&ce(ae)})}var $=we(Y,2);{let ce=x(()=>({props:ie(c(h),Q()),...m.snippetProps}));D($,()=>e.child,()=>c(ce))}I(H,G)},Ft=H=>{var G=as(),Y=_(G);ur(Y,{get preventScroll(){return b()}});var ae=we(Y,2);_t(ae,ce=>({...ce}),[()=>ie(c(h),Q())]);var $=fe(ae);D($,()=>e.children??B),he(ae),I(H,G)};ve(Ct,H=>{e.child?H(ot):H(Ft,!1)})}I(st,be)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))};let N=x(()=>ts({forceMount:i(),present:m.root.opts.open.current,trapFocus:g(),open:m.root.opts.open.current}));zi(y,{loop:!0,get trapFocus(){return c(N)},get onOpenAutoFocus(){return u()},get id(){return r()},onCloseAutoFocus:P=>{var M;s()(P),!P.defaultPrevented&&((M=m.root.triggerNode)==null||M.focus())},focusScope:T,$$slots:{focusScope:!0}})}};let A=x(()=>m.root.opts.open.current||i());gr(t,ut(()=>c(h),{get forceMount(){return i()},get present(){return c(A)},presence:p,$$slots:{presence:!0}}))}K()}var ls=ge('<div class="flex items-center justify-between border-b border-rc-gray-600 px-4 py-3"><!> <!></div> <div class="rc-scroll max-h-[calc(90vh-7rem)] overflow-auto p-4"><!></div> <div class="flex items-center justify-end gap-3 border-t border-rc-gray-600 px-4 py-3"><!></div>',1),ds=ge("<!> <!>",1);function Es(t,e){W(e,!0);let r=E(e,"open",15,!1),n=E(e,"title",3,""),i=E(e,"class",3,"");var s=C(),u=_(s);ye(u,()=>is,(a,l)=>{l(a,{get open(){return r()},set open(g){r(g)},children:(g,b)=>{var w=C(),d=_(w);ye(d,()=>ui,(m,h)=>{h(m,{children:(p,A)=>{var y=ds(),T=_(y);ye(T,()=>ns,(P,M)=>{M(P,{class:"fixed inset-0 z-50 bg-black/60"})});var N=we(T,2);{let P=x(()=>"fixed left-1/2 top-1/2 z-50 max-h-[90vh] w-[95vw] max-w-6xl -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-rc-gray-600 bg-rc-gray-800 shadow-xl "+i());ye(N,()=>cs,(M,Q)=>{Q(M,{get class(){return c(P)},children:(oe,Pr)=>{var ue=ls(),it=_(ue),st=fe(it);ye(st,()=>si,(H,G)=>{G(H,{class:"text-lg font-semibold text-gray-100",children:(Y,ae)=>{Yt();var $=qt();Vr(()=>Yr($,n())),I(Y,$)},$$slots:{default:!0}})});var Vt=we(st,2);ye(Vt,()=>os,(H,G)=>{G(H,{class:"text-gray-400 hover:text-gray-200","aria-label":"Close",children:(Y,ae)=>{Yt();var $=qt("✕");I(Y,$)},$$slots:{default:!0}})}),he(it);var be=we(it,2),Ct=fe(be);D(Ct,()=>e.children??B),he(be);var ot=we(be,2),Ft=fe(ot);D(Ft,()=>e.footer??B),he(ot),I(oe,ue)},$$slots:{default:!0}})})}I(p,y)},$$slots:{default:!0}})}),I(g,w)},$$slots:{default:!0}})}),I(t,s),K()}export{Es as M,qr as k};
|
|
8
|
+
*/var Ii=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ni=Ii.join(","),Tr=typeof Element>"u",ft=Tr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ht=!Tr&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ir=function(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=i===""||i==="true",u=s||r&&e&&Ir(e.parentNode);return u},Ai=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Pi=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},xi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ai(e))&&!Pi(e)?0:e.tabIndex},Nr=function(e){return e.tagName==="INPUT"},_i=function(e){return Nr(e)&&e.type==="hidden"},Oi=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Ci=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},Fi=function(e){if(!e.name)return!0;var r=e.form||ht(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var s=Ci(i,e.form);return!s||s===e},Li=function(e){return Nr(e)&&e.type==="radio"},Di=function(e){return Li(e)&&!Fi(e)},ki=function(e){var r,n=e&&ht(e),i=(r=n)===null||r===void 0?void 0:r.host,s=!1;if(n&&n!==e){var u,a,l;for(s=!!((u=i)!==null&&u!==void 0&&(a=u.ownerDocument)!==null&&a!==void 0&&a.contains(i)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&i;){var g,b,w;n=ht(i),i=(g=n)===null||g===void 0?void 0:g.host,s=!!((b=i)!==null&&b!==void 0&&(w=b.ownerDocument)!==null&&w!==void 0&&w.contains(i))}}return s},sr=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},Mi=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var u=ft.call(e,"details>summary:first-of-type"),a=u?e.parentElement:e;if(ft.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var l=e;e;){var g=e.parentElement,b=ht(e);if(g&&!g.shadowRoot&&i(g)===!0)return sr(e);e.assignedSlot?e=e.assignedSlot:!g&&b!==e.ownerDocument?e=b.host:e=g}e=l}if(ki(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return sr(e);return!1},Ri=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ft.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},Bi=function(e,r){return!(r.disabled||Ir(r)||_i(r)||Mi(r,e)||Oi(r)||Ri(r))},Ui=function(e,r){return!(Di(r)||xi(r)<0||!Bi(e,r))},Wi=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ft.call(e,Ni)===!1?!1:Ui(r,e)};const Ki=new br("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),ji=new br("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),Vi=new pr("FocusScope");function Hi({id:t,loop:e,enabled:r,onOpenAutoFocus:n,onCloseAutoFocus:i,forceMount:s}){const u=yi(),a=wi(),l=v(null),g=Vi.getOr({ignoreCloseAutoFocus:!1});let b=null;me({id:t,ref:l,deps:()=>r.current});function w(y){if(!(a.paused||!l.current||a.isHandlingFocus)){a.isHandlingFocus=!0;try{const T=y.target;if(!Rt(T))return;const N=l.current.contains(T);if(y.type==="focusin")if(N)b=T;else{if(g.ignoreCloseAutoFocus)return;te(b,{select:!0})}else y.type==="focusout"&&!N&&!g.ignoreCloseAutoFocus&&te(b,{select:!0})}finally{a.isHandlingFocus=!1}}}function d(y){if(!b||!l.current)return;let T=!1;for(const N of y){if(N.type==="childList"&&N.removedNodes.length>0)for(const P of N.removedNodes){if(P===b){T=!0;break}if(P.nodeType===Node.ELEMENT_NODE&&P.contains(b)){T=!0;break}}if(T)break}T&&l.current&&!l.current.contains(document.activeElement)&&te(l.current)}U([()=>l.current,()=>r.current],([y,T])=>{if(!y||!T)return;const N=pe(R(document,"focusin",w),R(document,"focusout",w)),P=new MutationObserver(d);return P.observe(y,{childList:!0,subtree:!0,attributes:!1}),()=>{N(),P.disconnect()}}),U([()=>s.current,()=>l.current],([y,T])=>{if(y)return;const N=document.activeElement;return m(T,N),()=>{T&&h(N)}}),U([()=>s.current,()=>l.current,()=>r.current],([y,T])=>{if(!y)return;const N=document.activeElement;return m(T,N),()=>{T&&h(N)}});function m(y,T){if(y||(y=document.getElementById(t.current)),!y||!r.current)return;if(u.add(a),!y.contains(T)){const P=Ki.createEvent();n.current(P),P.defaultPrevented||Ot(()=>{if(!y)return;Si(Ei(Sr(y)),{select:!0})||te(y)})}}function h(y){var P;const T=ji.createEvent();(P=i.current)==null||P.call(i,T);const N=g.ignoreCloseAutoFocus;Ut(0,()=>{!T.defaultPrevented&&y&&!N&&te(Wi(y)?y:document.body,{select:!0}),u.remove(a)})}function p(y){if(!r.current||!e.current&&!r.current||a.paused)return;const T=y.key===Wn&&!y.ctrlKey&&!y.altKey&&!y.metaKey,N=document.activeElement;if(!(T&&N))return;const P=l.current;if(!P)return;const[M,Q]=Ti(P);M&&Q?!y.shiftKey&&N===Q?(y.preventDefault(),e.current&&te(M,{select:!0})):y.shiftKey&&N===M&&(y.preventDefault(),e.current&&te(Q,{select:!0})):N===P&&y.preventDefault()}const A=x(()=>({id:t.current,tabindex:-1,onkeydown:p}));return{get props(){return c(A)}}}function zi(t,e){W(e,!0);let r=E(e,"trapFocus",3,!1),n=E(e,"loop",3,!1),i=E(e,"onCloseAutoFocus",3,F),s=E(e,"onOpenAutoFocus",3,F),u=E(e,"forceMount",3,!1);const a=Hi({enabled:v.with(()=>r()),loop:v.with(()=>n()),onCloseAutoFocus:v.with(()=>i()),onOpenAutoFocus:v.with(()=>s()),id:v.with(()=>e.id),forceMount:v.with(()=>u())});var l=C(),g=_(l);L(g,()=>e.focusScope??B,()=>({props:a.props})),I(t,l),K()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Ae,tt,At,Ar,Pt,rt;class Xi{constructor(e){f(this,At);D(this,"opts");f(this,Ae,F);f(this,tt,v(null));f(this,Pt,e=>{const r=o(this,tt).current,n=e.target;!Rt(r)||!Rt(n)||!this.opts.enabled.current||!qi(this)||!Kt(r,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&k(this,Ae,Yi(r)))});f(this,rt,()=>{o(this,Ae).call(this),k(this,Ae,F)});this.opts=e,me({id:e.id,ref:o(this,tt),deps:()=>this.opts.enabled.current});let r=F;U(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=j(this,At,Ar).call(this)),()=>{r(),o(this,rt).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}Ae=new WeakMap,tt=new WeakMap,At=new WeakSet,Ar=function(){return pe(R(document,"pointerdown",o(this,Pt)),R(document,"pointerup",lr(o(this,rt),this.opts.onPointerUp.current)))},Pt=new WeakMap,rt=new WeakMap;function Gi(t){return new Xi(t)}const or=t=>t.style.userSelect||t.style.webkitUserSelect;function Yi(t){const e=document.body,r=or(e),n=or(t);return lt(e,"none"),lt(t,"text"),()=>{lt(e,r),lt(t,n)}}function lt(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function qi(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function Zi(t,e){W(e,!0);let r=E(e,"preventOverflowTextSelection",3,!0),n=E(e,"onPointerDown",3,F),i=E(e,"onPointerUp",3,F);Gi({id:v.with(()=>e.id),onPointerDown:v.with(()=>n()),onPointerUp:v.with(()=>i()),enabled:v.with(()=>e.enabled&&r())});var s=C(),u=_(s);L(u,()=>e.children??B),I(t,s),K()}function Ji(t){let e=0,r=O(void 0),n;function i(){e-=1,n&&e<=0&&(n(),S(r,void 0),n=void 0)}return(...s)=>(e+=1,c(r)===void 0&&(n=jr(()=>{S(r,t(...s),!0)})),se(()=>()=>{i()}),c(r))}const Qi=Ji(()=>{const t=new Mt,e=x(()=>{for(const s of t.values())if(s)return!0;return!1});let r=O(null),n=null;function i(){Wt&&(document.body.setAttribute("style",c(r)??""),document.body.style.removeProperty("--scrollbar-width"),er&&(n==null||n()))}return se(()=>{const s=c(e);return cr(()=>{if(!s)return;S(r,document.body.getAttribute("style"),!0);const u=getComputedStyle(document.body),a=window.innerWidth-document.documentElement.clientWidth,g={padding:Number.parseInt(u.paddingRight??"0",10)+a,margin:Number.parseInt(u.marginRight??"0",10)};a>0&&(document.body.style.paddingRight=`${g.padding}px`,document.body.style.marginRight=`${g.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),er&&(n=mr(document,"touchmove",b=>{b.target===document.documentElement&&(b.touches.length>1||b.preventDefault())},{passive:!1})),Ot(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),se(()=>()=>{n==null||n()}),{get map(){return t},resetBodyStyle:i}});function $i(t,e=()=>null){const r=xe(),n=Qi();if(!n)return;const i=x(e);n.map.set(r,t??!1);const s=v.with(()=>n.map.get(r)??!1,u=>n.map.set(r,u));return se(()=>()=>{n.map.delete(r),!es(n.map)&&(c(i)===null?requestAnimationFrame(()=>n.resetBodyStyle()):Ut(c(i),()=>n.resetBodyStyle()))}),s}function es(t){for(const[e,r]of t)if(r)return!0;return!1}function ur(t,e){W(e,!0);let r=E(e,"preventScroll",3,!0),n=E(e,"restoreScrollDelay",3,null);$i(r(),()=>n()),K()}function ts({forceMount:t,present:e,trapFocus:r,open:n}){return t?n&&r:e&&r&&n}var rs=ge("<div><!></div>");function ns(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"forceMount",3,!1),i=E(e,"ref",15,null),s=xt(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const u=ri({id:v.with(()=>r()),ref:v.with(()=>i(),l=>i(l))}),a=x(()=>ie(s,u.props));{const l=b=>{var w=C(),d=_(w);{var m=p=>{var A=C(),y=_(A);{let T=x(()=>({props:ie(c(a)),...u.snippetProps}));L(y,()=>e.child,()=>c(T))}I(p,A)},h=p=>{var A=rs();_t(A,T=>({...T}),[()=>ie(c(a))]);var y=fe(A);L(y,()=>e.children??B,()=>u.snippetProps),he(A),I(p,A)};ve(d,p=>{e.child?p(m):p(h,!1)})}I(b,w)};let g=x(()=>u.root.opts.open.current||n());gr(t,{get id(){return r()},get present(){return c(g)},presence:l,$$slots:{presence:!0}})}K()}function is(t,e){W(e,!0);let r=E(e,"open",15,!1),n=E(e,"onOpenChange",3,F);$n({variant:v.with(()=>"dialog"),open:v.with(()=>r(),u=>{r(u),n()(u)})});var i=C(),s=_(i);L(s,()=>e.children??B),I(t,i),K()}var ss=ge("<button><!></button>");function os(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"ref",15,null),i=E(e,"disabled",3,!1),s=xt(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=ni({variant:v.with(()=>"close"),id:v.with(()=>r()),ref:v.with(()=>n(),d=>n(d)),disabled:v.with(()=>!!i())}),a=x(()=>ie(s,u.props));var l=C(),g=_(l);{var b=d=>{var m=C(),h=_(m);L(h,()=>e.child,()=>({props:c(a)})),I(d,m)},w=d=>{var m=ss();_t(m,()=>({...c(a)}));var h=fe(m);L(h,()=>e.children??B),he(m),I(d,m)};ve(g,d=>{e.child?d(b):d(w,!1)})}I(t,l),K()}var us=ge("<!> <!>",1),as=ge("<!> <div><!></div>",1);function cs(t,e){W(e,!0);let r=E(e,"id",19,xe),n=E(e,"ref",15,null),i=E(e,"forceMount",3,!1),s=E(e,"onCloseAutoFocus",3,F),u=E(e,"onOpenAutoFocus",3,F),a=E(e,"onEscapeKeydown",3,F),l=E(e,"onInteractOutside",3,F),g=E(e,"trapFocus",3,!0),b=E(e,"preventScroll",3,!0),w=E(e,"restoreScrollDelay",3,null),d=xt(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const m=ti({id:v.with(()=>r()),ref:v.with(()=>n(),p=>n(p))}),h=x(()=>ie(d,m.props));{const p=y=>{{const T=(P,M)=>{let Q=()=>M==null?void 0:M().props;bi(P,ut(()=>c(h),{get enabled(){return m.root.opts.open.current},onEscapeKeydown:oe=>{a()(oe),!oe.defaultPrevented&&m.root.handleClose()},children:(oe,Pr)=>{pi(oe,ut(()=>c(h),{get enabled(){return m.root.opts.open.current},onInteractOutside:ue=>{l()(ue),!ue.defaultPrevented&&m.root.handleClose()},children:(ue,it)=>{Zi(ue,ut(()=>c(h),{get enabled(){return m.root.opts.open.current},children:(st,Vt)=>{var be=C(),Ct=_(be);{var ot=H=>{var G=us(),Y=_(G);{var ae=ce=>{ur(ce,{get preventScroll(){return b()},get restoreScrollDelay(){return w()}})};ve(Y,ce=>{m.root.opts.open.current&&ce(ae)})}var $=we(Y,2);{let ce=x(()=>({props:ie(c(h),Q()),...m.snippetProps}));L($,()=>e.child,()=>c(ce))}I(H,G)},Ft=H=>{var G=as(),Y=_(G);ur(Y,{get preventScroll(){return b()}});var ae=we(Y,2);_t(ae,ce=>({...ce}),[()=>ie(c(h),Q())]);var $=fe(ae);L($,()=>e.children??B),he(ae),I(H,G)};ve(Ct,H=>{e.child?H(ot):H(Ft,!1)})}I(st,be)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))};let N=x(()=>ts({forceMount:i(),present:m.root.opts.open.current,trapFocus:g(),open:m.root.opts.open.current}));zi(y,{loop:!0,get trapFocus(){return c(N)},get onOpenAutoFocus(){return u()},get id(){return r()},onCloseAutoFocus:P=>{var M;s()(P),!P.defaultPrevented&&((M=m.root.triggerNode)==null||M.focus())},focusScope:T,$$slots:{focusScope:!0}})}};let A=x(()=>m.root.opts.open.current||i());gr(t,ut(()=>c(h),{get forceMount(){return i()},get present(){return c(A)},presence:p,$$slots:{presence:!0}}))}K()}var ls=ge('<div class="flex items-center justify-between border-b border-rc-gray-600 px-4 py-3"><!> <!></div> <div class="rc-scroll max-h-[calc(90vh-7rem)] overflow-auto p-4"><!></div> <div class="flex items-center justify-end gap-3 border-t border-rc-gray-600 px-4 py-3"><!></div>',1),ds=ge("<!> <!>",1);function Es(t,e){W(e,!0);let r=E(e,"open",15,!1),n=E(e,"title",3,""),i=E(e,"class",3,"");var s=C(),u=_(s);ye(u,()=>is,(a,l)=>{l(a,{get open(){return r()},set open(g){r(g)},children:(g,b)=>{var w=C(),d=_(w);ye(d,()=>ui,(m,h)=>{h(m,{children:(p,A)=>{var y=ds(),T=_(y);ye(T,()=>ns,(P,M)=>{M(P,{class:"fixed inset-0 z-50 bg-black/60"})});var N=we(T,2);{let P=x(()=>"fixed left-1/2 top-1/2 z-50 max-h-[90vh] w-[95vw] max-w-6xl -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-rc-gray-600 bg-rc-gray-800 shadow-xl "+i());ye(N,()=>cs,(M,Q)=>{Q(M,{get class(){return c(P)},children:(oe,Pr)=>{var ue=ls(),it=_(ue),st=fe(it);ye(st,()=>si,(H,G)=>{G(H,{class:"text-lg font-semibold text-gray-100",children:(Y,ae)=>{Yt();var $=qt();Vr(()=>Yr($,n())),I(Y,$)},$$slots:{default:!0}})});var Vt=we(st,2);ye(Vt,()=>os,(H,G)=>{G(H,{class:"text-gray-400 hover:text-gray-200","aria-label":"Close",children:(Y,ae)=>{Yt();var $=qt("✕");I(Y,$)},$$slots:{default:!0}})}),he(it);var be=we(it,2),Ct=fe(be);L(Ct,()=>e.children??B),he(be);var ot=we(be,2),Ft=fe(ot);L(Ft,()=>e.footer??B),he(ot),I(oe,ue)},$$slots:{default:!0}})})}I(p,y)},$$slots:{default:!0}})}),I(g,w)},$$slots:{default:!0}})}),I(t,s),K()}export{Es as M,qr as k};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DLQqXQ6R.js","./C1FmrZbK.js","../assets/editor.BMIWPGx3.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import"./CWj6FrbW.js";import{o as ar,b as sr,s as v}from"./CB3MYTwM.js";import{p as qe,h as t,i as Rt,l as rt,k as Ge,f as g,d as r,r as e,t as k,b as i,c as ze,e as nr,a as st,u as b,s as n,n as Dt,g as yt,bq as Tr,q as Se}from"./BRMnbBOX.js";import{i as T}from"./BFchB-2I.js";import{s as Kt,c as Ke}from"./DMtzEpj5.js";import{M as Xe}from"./CJHvtD7r.js";import{T as or,a as Te}from"./C1rQHXql.js";import{B as Qe}from"./DGK-Y22B.js";import{I as ir}from"./BALCah_8.js";import{c as Sr}from"./3HVf2z3Q.js";import{p as Ie}from"./DCT4VKzQ.js";import{_ as lr}from"./C1FmrZbK.js";import{e as we,i as Ce}from"./D_iTaAhh.js";import{b as dr}from"./CmatTLDp.js";import{g as Mr}from"./BfU3a6pG.js";import{t as kr}from"./BEJ5fU19.js";import{c as ur,b as Pr}from"./DJH8-Pxb.js";import{e as fr,a as mr}from"./CxPv-oiS.js";function cr(z={}){const o=z.thresholdPx??4,j=z.dragCursor??"text";let H=0,F=0,D=!1,Z=!1,S=null,U=null;function _(){Z=!1,D=!1,S==null||S.style.removeProperty("cursor"),S=null,U==null||U.abort(),U=null}function V(I){if(typeof window>"u"||I.button!==0)return;U==null||U.abort(),U=null,S==null||S.style.removeProperty("cursor"),H=I.clientX,F=I.clientY,D=!1,Z=!0,S=I.currentTarget instanceof HTMLElement?I.currentTarget:null;const nt=new AbortController;U=nt;const Xt=Ot=>{if(!Z||D)return;const Bt=Math.abs(Ot.clientX-H),At=Math.abs(Ot.clientY-F);Bt+At<o||(D=!0,S==null||S.style.setProperty("cursor",j))},zt=()=>{Z=!1,S==null||S.style.removeProperty("cursor"),S=null,nt.abort(),U===nt&&(U=null)};window.addEventListener("pointermove",Xt,{signal:nt.signal}),window.addEventListener("pointerup",zt,{signal:nt.signal}),window.addEventListener("pointercancel",zt,{signal:nt.signal})}function L(I){return I.detail>0&&D}return{onPointerDown:V,shouldSuppressClick:L,cleanup:_}}var Ar=g('<div><div class="h-full w-full"></div></div>');function Ee(z,o){qe(o,!0);let j=Ie(o,"language",3,"json"),H=Ie(o,"class",3,""),F=null,D=null,Z=Rt(null),S=Rt(!1);ar(()=>{if(!t(Z))return;fr();let V=!1;return lr(()=>import("./DLQqXQ6R.js").then(L=>L.e),__vite__mapDeps([0,1,2]),import.meta.url).then(L=>{V||(mr(L),F=L.editor.create(t(Z),{value:o.value??"",language:j(),theme:"bosun-dark",lineNumbers:"off",readOnly:!0,automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,renderLineHighlight:"none",contextmenu:!1}),D=F.getModel(),rt(S,!0))}).catch(L=>{console.error("ReadOnlyMonaco: failed to init",L)}),()=>{V=!0;const L=D;if(D=null,F){try{F.setModel(null)}catch{}F.dispose(),F=null}try{L==null||L.dispose()}catch{}}}),Ge(()=>{if(!F||!t(S))return;const V=o.value??"";F.getValue()!==V&&F.setValue(V)});var U=Ar(),_=r(U);dr(_,V=>rt(Z,V),()=>t(Z)),e(U),k(()=>Kt(U,1,`overflow-hidden rounded-md border border-rc-gray-700 ${H()}`)),i(z,U),ze()}var Cr=(z,o,j)=>{o.shouldSuppressClick(z)||rt(j,!0)},Er=g('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),Ir=g('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Nr=g("<!> <!>",1),Lr=g('<div class="flex flex-col gap-3"><!> <div class="flex flex-wrap items-center justify-between gap-2 text-sm text-rc-gray-200"><div class="flex flex-wrap items-center gap-x-4 gap-y-1"><div><span class="text-rc-gray-400">Timing:</span> </div> <div><span class="text-rc-gray-400">Response time:</span> </div> <div><span class="text-rc-gray-400">URL:</span> </div></div> <!></div> <div><!> <div class="mt-2 h-[55vh]"><!></div></div></div>'),Dr=g('<button type="button" class="flex w-full cursor-pointer select-text items-baseline gap-2 truncate rounded-md bg-transparent px-2 py-1 text-left text-sm text-rc-gray-200 hover:bg-rc-gray-800/40"><!> <!> <span> </span></button> <!>',1);function Ns(z,o){qe(o,!0);let j=Rt(!1),H=Rt("request");const F=cr();sr(F.cleanup);function D(J){try{if(typeof J=="string"){const N=J.trim();if(!N)return"";const Ct=JSON.parse(N);return JSON.stringify(Ct,null,2)}}catch{}try{return JSON.stringify(J??null,null,2)}catch{return String(J)}}function Z(J){return new Date(J).toISOString()}function S(J){if(typeof J!="number"||!Number.isFinite(J))return null;const N=new Date(J);if(Number.isNaN(N.getTime()))return null;const Ct=String(N.getHours()).padStart(2,"0"),wt=String(N.getMinutes()).padStart(2,"0"),Zt=String(N.getSeconds()).padStart(2,"0");return`${Ct}:${wt}:${Zt}`}const U=b(()=>S(o.trace.createdAt)),_=b(()=>{if(o.trace.error!=null)return o.trace.error;if(!(o.trace.ok===!1||typeof o.trace.status=="number"&&o.trace.status>=400))return;const N=o.trace.response;return N&&typeof N=="object"&&"error"in N&&N.error!=null?N.error:{status:o.trace.status,ok:o.trace.ok}}),V=b(()=>t(_)!=null),L=b(()=>`API: ${o.trace.operationName}`),I=b(()=>o.trace.operationName),nt=b(()=>typeof o.trace.createdAt!="number"?"—":Z(o.trace.createdAt));async function Xt(){const J=D(o.trace);try{await navigator.clipboard.writeText(J)}catch(N){console.error("Failed to copy",N)}}const zt=b(()=>D({method:o.trace.method,path:o.trace.path,baseUrl:o.trace.baseUrl,request:o.trace.request})),Ot=b(()=>D({status:o.trace.status,ok:o.trace.ok,response:o.trace.response,error:t(_)})),Bt=b(()=>t(_)!=null?D(t(_)):"");var At=Dr(),Wt=st(At);Wt.__pointerdown=function(...J){var N;(N=F.onPointerDown)==null||N.apply(this,J)},Wt.__click=[Cr,F,j];var Ht=r(Wt);{let J=b(()=>t(V)?"close":"checkmark"),N=b(()=>t(V)?"self-center text-red-400":"self-center text-rc-green-200");ir(Ht,{get name(){return t(J)},width:18,height:18,get class(){return t(N)}})}var Jt=n(Ht,2);{var Yt=J=>{var N=Er(),Ct=r(N,!0);e(N),k(()=>v(Ct,t(U))),i(J,N)};T(Jt,J=>{t(U)&&J(Yt)})}var bt=n(Jt,2),Qt=r(bt,!0);e(bt),e(Wt);var me=n(Wt,2);{var Me=J=>{Xe(J,{get title(){return t(L)},class:"!w-[85vw] !max-w-5xl",get open(){return t(j)},set open(Ct){rt(j,Ct,!0)},children:Ct=>{var wt=Lr(),Zt=r(wt);{var Pe=Q=>{var Et=Ir(),Mt=r(Et,!0);e(Et),k(()=>v(Mt,t(Bt))),i(Q,Et)};T(Zt,Q=>{t(Bt)&&Q(Pe)})}var ke=n(Zt,2),ge=r(ke),_e=r(ge),de=n(r(_e));e(_e);var ce=n(_e,2),M=n(r(ce));e(ce);var B=n(ce,2),ot=n(r(B));e(B),e(ge);var X=n(ge,2);Qe(X,{variant:"secondary",size:"small",onclick:Xt,children:(Q,Et)=>{Dt();var Mt=yt("Copy raw trace");i(Q,Mt)},$$slots:{default:!0}}),e(ke);var $=n(ke,2),xt=r($);or(xt,{get value(){return t(H)},ariaLabel:"API trace tabs",onChange:({value:Q})=>rt(H,Q,!0),children:(Q,Et)=>{var Mt=Nr(),ve=st(Mt);Te(ve,{value:"request",class:"px-3",children:($t,u)=>{Dt();var l=yt("Request");i($t,l)},$$slots:{default:!0}});var pe=n(ve,2);Te(pe,{value:"response",class:"px-3",children:($t,u)=>{Dt();var l=yt("Response");i($t,l)},$$slots:{default:!0}}),i(Q,Mt)},$$slots:{default:!0}});var it=n(xt,2),ut=r(it);{var lt=Q=>{Ee(Q,{get value(){return t(zt)},language:"json",class:"h-full"})},St=Q=>{Ee(Q,{get value(){return t(Ot)},language:"json",class:"h-full"})};T(ut,Q=>{t(H)==="request"?Q(lt):Q(St,!1)})}e(it),e($),e(wt),k(Q=>{v(de,` ${t(nt)??""}`),v(M,` ${Q??""}`),v(ot,` ${o.trace.path??""}`)},[()=>typeof o.trace.durationMs=="number"?`${Math.round(o.trace.durationMs)}ms`:"—"]),i(Ct,wt)},$$slots:{default:!0}})};T(me,J=>{t(j)&&J(Me)})}k(()=>{Kt(bt,1,Ke(t(V)?"text-red-200":"")),v(Qt,t(I))}),i(z,At),ze()}nr(["pointerdown","click"]);var Rr=g('<div class="mt-2 text-xs text-rc-gray-300"><span class="text-rc-gray-400">Missing:</span> <span class="font-mono"> </span></div>'),Or=g('<li class="font-mono"> </li>'),Hr=g('<div class="mt-2 rounded border border-red-700/60 bg-red-950/30 p-2 text-xs text-red-200"><div class="font-semibold">Problematic reasons</div> <ul class="mt-1 list-disc pl-5"></ul></div>'),jr=g('(+<span class="font-mono text-rc-gray-200"> </span> derived)',1),Fr=g('(<span class="font-mono"> </span> missing/invalid times)',1),Ur=g('(<span class="font-mono"> </span> not displayed)',1),Vr=g('<div class="mb-2 text-xs text-rc-gray-400">Showing <span class="font-mono text-rc-gray-200"> </span> segments from <span class="font-mono text-rc-gray-200"> </span> spans <!> <!> <!></div>'),qr=g('<div class="text-sm text-rc-gray-300">No spans available.</div>'),zr=g('<div class="text-sm text-rc-gray-300">No spans available.</div>'),Br=g('<tr class="border-t border-rc-gray-700/60"><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td></tr>'),Wr=g('<div class="max-h-[35vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">Name</th><th class="p-2">Duration</th><th class="p-2">Start</th><th class="p-2">End</th></tr></thead><tbody></tbody></table></div>'),Jr=g('<div class="flex items-center justify-between gap-2 rounded bg-rc-gray-800/40 px-2 py-1"><div class="font-mono text-rc-gray-300"> </div> <div class="font-mono"> </div></div>'),Yr=g('<div class="mt-1 text-amber-200"> </div>'),Gr=g('<span class="text-amber-200">true</span>'),Kr=g('<span class="text-rc-gray-200">false</span>'),Xr=g('<tr class="border-t border-rc-gray-700/60"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"><!></td></tr>'),Qr=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalEvents:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedEvents:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[28vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">Source</th><th class="p-2">User?</th></tr></thead><tbody></tbody></table></div>',1),Zr=g('<div class="text-sm text-rc-gray-300">No speech-created events captured.</div>'),$r=g('<div class="mt-1 text-amber-200"> </div>'),ta=g('<span class="text-amber-200">true</span>'),ea=g('<span class="text-rc-gray-200">false</span>'),ra=g('<tr class="border-t border-rc-gray-700/60 align-top"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"><!></td><td class="p-2 font-mono"> </td><td class="whitespace-pre-wrap break-words p-2 font-mono"> </td></tr>'),aa=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalMessages:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedMessages:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">totalTextChars:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[35vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">Final</th><th class="p-2">Len</th><th class="p-2">Text</th></tr></thead><tbody></tbody></table></div>',1),sa=g('<div class="text-sm text-rc-gray-300">No STT transcripts captured.</div>'),na=g('<div class="mt-1 text-amber-200"> </div>'),oa=g('<tr class="border-t border-rc-gray-700/60"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td></tr>'),ia=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalEvents:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedEvents:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[28vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">From</th><th class="p-2">To</th></tr></thead><tbody></tbody></table></div>',1),la=g('<div class="text-sm text-rc-gray-300">No user state changes captured.</div>'),da=g('<div class="mt-1 text-amber-200"> </div>'),ca=g('<span class="text-amber-200">true</span>'),va=g('<span class="text-rc-gray-200">false</span>'),ua=g('<tr class="border-t border-rc-gray-700/60"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"><!></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td></tr>'),fa=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalEvents:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedEvents:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[28vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">Type</th><th class="p-2">Speaking</th><th class="p-2">P</th><th class="p-2">Speech</th><th class="p-2">Silence</th><th class="p-2">Infer</th></tr></thead><tbody></tbody></table></div>',1),ma=g('<div class="text-sm text-rc-gray-300">No VAD events captured.</div>'),ga=g('<div class="mt-1 text-amber-200"> </div>'),_a=g('<span class="text-amber-200">true</span>'),pa=g('<span class="text-rc-gray-200">false</span>'),xa=g('<tr class="border-t border-rc-gray-700/60"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"><!></td></tr>'),ha=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalEvents:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedEvents:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[28vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">P</th><th class="p-2">Thr</th><th class="p-2">Delay</th><th class="p-2">Max?</th></tr></thead><tbody></tbody></table></div>',1),ya=g('<div class="text-sm text-rc-gray-300">No EOU model predictions captured.</div>'),ba=g('<div class="mt-1 text-amber-200"> </div>'),wa=g('<tr class="border-t border-rc-gray-700/60"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td></tr>'),Ta=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalEvents:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedEvents:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[28vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">Last speak</th><th class="p-2">EOU</th><th class="p-2">STT</th><th class="p-2">onUserTurn</th></tr></thead><tbody></tbody></table></div>',1),Sa=g('<div class="text-sm text-rc-gray-300">No EOU metrics captured.</div>'),Ma=g('<div class="mt-1 text-amber-200"> </div>'),ka=g('<tr class="border-t border-rc-gray-700/60 align-top"><td class="whitespace-nowrap p-2 font-mono"><div> </div> <div class="text-rc-gray-400"> </div></td><td class="p-2 font-mono"> </td><td class="p-2 font-mono"> </td><td class="whitespace-pre-wrap break-words p-2 font-mono"> </td></tr>'),Pa=g('<div class="mb-2 text-xs text-rc-gray-300"><div class="flex flex-wrap gap-x-6 gap-y-1"><div><span class="text-rc-gray-400">totalMessages:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">droppedMessages:</span> <span class="font-mono"> </span></div> <div><span class="text-rc-gray-400">totalTextChars:</span> <span class="font-mono"> </span></div></div> <!></div> <div class="max-h-[35vh] overflow-auto"><table class="w-full table-auto text-left text-xs text-rc-gray-200"><thead class="sticky top-0 bg-rc-gray-900"><tr class="text-rc-gray-400"><th class="p-2">At</th><th class="p-2">Flush</th><th class="p-2">Len</th><th class="p-2">Text</th></tr></thead><tbody></tbody></table></div>',1),Aa=g('<div class="text-sm text-rc-gray-300">No provider-send messages captured.</div>'),Ca=g('<div class="flex flex-col gap-4"><div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3 text-sm text-rc-gray-100"><div class="flex flex-wrap items-center justify-between gap-2"><div class="font-semibold">LLM-to-audio latency</div> <div class="font-mono"> </div></div> <div class="mt-2 flex flex-wrap gap-x-6 gap-y-2 text-xs text-rc-gray-300"><div><span class="text-rc-gray-400">Problematic:</span> <span> </span></div> <div><span class="text-rc-gray-400">Interrupted:</span> <span> </span></div></div> <!> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">Timeline</div> <!> <!> <div><div class="min-w-[680px] rounded bg-rc-gray-800/40 p-2"><div class="bosun-vis-timeline min-h-[260px] w-full"></div></div></div></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">Spans</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">Raw timing</div> <div class="grid grid-cols-1 gap-1 text-xs text-rc-gray-200 md:grid-cols-2"></div></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">Speech created (LiveKit)</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">STT transcripts</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">User state changes (VAD proxy)</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">VAD events</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">EOU model decisions</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">EOU metrics</div> <!></div> <div class="rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3"><div class="mb-2 text-sm font-semibold text-rc-gray-100">TTS provider sends</div> <!></div></div>');function Ea(z,o){qe(o,!0);let j=Rt(null),H=null,F=Rt(!1),D=null;const Z=b(()=>{var s;const a=(s=o.metrics)==null?void 0:s.spans;return Array.isArray(a)?a:[]}),S=b(()=>{var a;return((a=o.metrics)==null?void 0:a.summary)??{}}),U=b(()=>{var a;return((a=o.metrics)==null?void 0:a.timing)??{}}),_=b(()=>{var a;return((a=o.metrics)==null?void 0:a.debug)??{}});function V(a){return typeof a=="number"&&Number.isFinite(a)?a:null}function L(a){const s=V(a);return s==null?"—":`${Math.round(s)} ms`}function I(a){const s=new Date(a);return Number.isNaN(s.getTime())?String(a):s.toISOString()}function nt(a){return typeof a=="string"&&a.trim()?a.trim():null}const Xt=new Set(["vad.start_of_speech","vad.end_of_speech"]),zt=new Set(["stt.start_of_speech","stt.interim_transcript","stt.preflight_transcript","stt.final_transcript"]),Ot=new Set(["vad.user_speech","vad.endpointing","vad.trailing_silence","stt.endpointing","stt.transcription","stt.turn_commit","stt.until_turn_committed","stt.transcript_to_speech_created","stt.transcript_to_llm_request","stt.transcript_trigger_selected","stt.speech_end_to_trigger_transcript","stt.speech_end_to_final_transcript","stt.trigger_transcript_to_reply_trigger","stt.final_transcript_to_commit","stt.transcript_selected","stt.transcript_final_selected"]);function Bt(a,s){const d=a==null?void 0:a.attributes;return!d||typeof d!="object"?null:d[`bosun.${s}`]??d[`anyvan.${s}`]??null}function At(a,s){return nt(Bt(a,s))}function Wt(a){return At(a,"component")}function Ht(a){const s=nt(a==null?void 0:a.name);return s?!!(Ot.has(s)||s.startsWith("vad.")&&!Xt.has(s)||s.startsWith("stt.")&&!zt.has(s)):!1}function Jt(a,s,d){return{name:a,startTimeUnixMs:s,endTimeUnixMs:s,durationMs:0,startTimeIso:I(s),endTimeIso:I(s),attributes:d}}const Yt=b(()=>{var C,R,K,Y,et;const a=V((C=t(U))==null?void 0:C.ttsAudioStartAtMs),s=m=>a==null||m<=a,d=[];let x=!1,f=!1;return(Array.isArray((K=(R=t(_))==null?void 0:R.vadEvents)==null?void 0:K.events)?t(_).vadEvents.events:[]).forEach((m,q)=>{const O=V(m==null?void 0:m.atMs),h=nt(m==null?void 0:m.type);O==null||!s(O)||h!=="start_of_speech"&&h!=="end_of_speech"||(x=!0,d.push(Jt(`vad.${h}`,O,{"anyvan.component":"vad","anyvan.label":h==="start_of_speech"?"VAD activated":"VAD deactivated","anyvan.description":h==="start_of_speech"?"Raw VAD START_OF_SPEECH event":"Raw VAD END_OF_SPEECH event","anyvan.eventIndex":q,"anyvan.samplesIndex":typeof(m==null?void 0:m.samplesIndex)=="number"?m.samplesIndex:void 0,"anyvan.speechDurationMs":typeof(m==null?void 0:m.speechDurationMs)=="number"?m.speechDurationMs:void 0,"anyvan.silenceDurationMs":typeof(m==null?void 0:m.silenceDurationMs)=="number"?m.silenceDurationMs:void 0})))}),(Array.isArray((et=(Y=t(_))==null?void 0:Y.sttEvents)==null?void 0:et.events)?t(_).sttEvents.events:[]).forEach((m,q)=>{const O=V(m==null?void 0:m.atMs),h=nt(m==null?void 0:m.type);if(O==null||!s(O)||h!=="start_of_speech"&&h!=="interim_transcript"&&h!=="preflight_transcript"&&h!=="final_transcript")return;f=!0;const c=h==="start_of_speech"?"STT start of speech":h==="interim_transcript"?"STT interim transcript":h==="preflight_transcript"?"STT preflight transcript":"STT final transcript";d.push(Jt(`stt.${h}`,O,{"anyvan.component":"stt","anyvan.label":c,"anyvan.description":`Raw STT ${h.toUpperCase()} event`,"anyvan.eventIndex":q,"anyvan.requestId":typeof(m==null?void 0:m.requestId)=="string"?m.requestId:void 0,"anyvan.text":nt(m==null?void 0:m.text),"anyvan.language":typeof(m==null?void 0:m.language)=="string"||(m==null?void 0:m.language)===null?m.language:void 0,"anyvan.speakerId":typeof(m==null?void 0:m.speakerId)=="string"||(m==null?void 0:m.speakerId)===null?m.speakerId:void 0}))}),{spans:d,hasRawVad:x,hasRawStt:f}}),bt=b(()=>[...t(Z).filter(s=>{const d=nt(s==null?void 0:s.name);return d!=null&&d.startsWith("vad.")&&t(Yt).hasRawVad||d!=null&&d.startsWith("stt.")&&t(Yt).hasRawStt?!1:!Ht(s)}),...t(Yt).spans]),Qt=["LLM→Audio start","Trigger","LLM","LLM→TTS","TTS generation","TTS→Audio","STT","VAD","Other"],me=[{label:"Trigger",component:"trigger"},{label:"LLM",names:["llm.request.ttft","llm.streaming"]},{label:"LLM→TTS",names:["llm_to_tts.buffering","llm_to_tts.streaming"]},{label:"TTS generation",names:["tts.generation"]},{label:"TTS→Audio",names:["tts_to_audio.buffering","tts_to_audio.streaming"]},{label:"STT",names:[...zt]},{label:"VAD",names:[...Xt]}],Me=b(()=>{const a=t(bt).map((f,y)=>({s:f,idx:y})),s=new Set,d=me.map(f=>{const y=a.filter(({s:A,idx:C})=>{if(s.has(C))return!1;const R=typeof(A==null?void 0:A.name)=="string"?A.name:"",K=Wt(A),Y=Array.isArray(f.names)&&R!==""&&f.names.includes(R),et=typeof f.component=="string"&&K===f.component;return Y||et}).sort((A,C)=>(V(A.s.startTimeUnixMs)??0)-(V(C.s.startTimeUnixMs)??0));for(const A of y)s.add(A.idx);return{label:f.label,spans:y.map(A=>A.s)}}),x=a.filter(({idx:f})=>!s.has(f)).map(f=>f.s).sort((f,y)=>(V(f.startTimeUnixMs)??0)-(V(y.startTimeUnixMs)??0));return x.length&&d.push({label:"Other",spans:x}),d.filter(f=>f.spans.length)});function J(a){const s=At(a,"label");return s||(typeof(a==null?void 0:a.name)=="string"&&a.name?a.name:"span")}const N={blue:"#569cd6",green:"#93FF6D",greenDark:"#00B58A",orange:"#ce9178",purple:"#81147D",red:"#FF6666",gray:"#767676"};function Ct(a){return Math.max(0,Math.min(255,Math.round(a)))}function wt(a,s){const d=(a??"").trim().replace(/^#/,""),f=d.length===3?d.split("").map(O=>`${O}${O}`).join(""):d;if(f.length!==6||!/^[0-9a-fA-F]+$/.test(f))return a;const y=parseInt(f.slice(0,2),16),A=parseInt(f.slice(2,4),16),C=parseInt(f.slice(4,6),16),R=Math.max(-1,Math.min(1,s)),K=R>=0?255:0,Y=Math.abs(R),et=Ct(y+(K-y)*Y),m=Ct(A+(K-A)*Y),q=Ct(C+(K-C)*Y);return`#${et.toString(16).padStart(2,"0")}${m.toString(16).padStart(2,"0")}${q.toString(16).padStart(2,"0")}`}function Zt(a){const s=typeof(a==null?void 0:a.name)=="string"?a.name:"";if(s==="vad.endpointing")return"vad.endpointing";if(s.startsWith("vad."))return"vad.user_speech";if(s==="llm.request.ttft")return"llm.request";if(s==="llm.streaming")return"llm.streaming";if(s==="llm_to_tts.buffering")return"llm_to_tts.buffering";if(s==="llm_to_tts.streaming")return"llm_to_tts.streaming";if(s==="tts.generation")return"tts.generation";if(s==="tts_to_audio.buffering")return"tts_to_audio.buffering";if(s==="tts_to_audio.streaming")return"tts_to_audio.streaming";if(s.startsWith("stt."))return"stt";if(s.startsWith("trigger."))return"trigger";const d=Wt(a);return d==="vad"?"vad.user_speech":d==="stt"?"stt":d==="trigger"?"trigger":"other"}const Pe={"vad.user_speech":wt(N.purple,.35),"vad.endpointing":wt(N.purple,-.15),"llm.request":wt(N.blue,-.25),"llm.streaming":N.blue,"llm_to_tts.buffering":wt(N.orange,-.25),"llm_to_tts.streaming":N.orange,"tts.generation":wt(N.orange,.25),"tts_to_audio.buffering":wt(N.purple,-.25),"tts_to_audio.streaming":wt(N.purple,.25),"llm_to_audio.ok":N.green,"llm_to_audio.high":N.red,trigger:N.greenDark,stt:wt(N.purple,.2),other:N.gray};function ke(a){const s=Pe[a]??N.gray,d=wt(s,-.25);return`background: ${s}; border-color: ${d};`}function ge(a,s){const d=J(a),x=a==null?void 0:a.durationMs,f=a==null?void 0:a.startTimeIso,y=a==null?void 0:a.endTimeIso,A=At(a,"explain"),C=At(a,"description"),R=At(a,"text");return[d,s&&s!==d?s:"",x!=null?L(x):"",f&&y?`${f} → ${y}`:"",C??"",R?`Text: ${R}`:"",A??""].filter(Y=>typeof Y=="string"&&Y.trim()!=="").join(`
|
|
3
|
+
`)}const _e=b(()=>{var y,A,C;const a=V((y=t(U))==null?void 0:y.llmRequestStartAtMs),s=V((A=t(U))==null?void 0:A.ttsAudioStartAtMs);if(a==null||s==null||s<a)return null;const d=s-a,x=d>800||!!((C=t(S))!=null&&C.problematic),f={name:"llm_to_audio.latency",startTimeUnixMs:a,endTimeUnixMs:s,durationMs:d,startTimeIso:I(a),endTimeIso:I(s),attributes:{"bosun.label":"LLM→Audio start","bosun.description":"LLM request start → agent speaking (first audio frame)","bosun.explain":x?"High latency (>800ms) or problematic timing":"OK"}};return{id:`derived:llm_to_audio:${a}:${s}`,group:"LLM→Audio start",start:a,end:s,colorKey:x?"llm_to_audio.high":"llm_to_audio.ok",span:f,derived:!0}}),de=b(()=>{const a=[];for(const d of t(Me))for(const x of d.spans){const f=V(x.startTimeUnixMs),y=V(x.endTimeUnixMs);if(f==null||y==null||y<f)continue;const A=typeof(x==null?void 0:x.name)=="string"?x.name:"span";a.push({id:`${d.label}:${A}:${f}:${y}`,group:d.label,start:f,end:y,colorKey:Zt(x),span:x,derived:!1})}const s=t(_e);return s&&a.push(s),a}),ce=b(()=>{const a=new Set;for(const s of t(de))a.add(s.group);return[...a].sort((s,d)=>{const x=Qt.indexOf(s),f=Qt.indexOf(d),y=x===-1?Qt.length:x,A=f===-1?Qt.length:f;return y-A||s.localeCompare(d)}).map((s,d)=>({id:s,content:s,order:d}))}),M=b(()=>t(de).map(a=>({id:a.id,group:a.group,content:"",start:a.start,...a.start===a.end?{}:{end:a.end},type:a.start===a.end?"box":"range",className:"bosun-latency-item",style:ke(a.colorKey),title:ge(a.span,a.group)}))),B=b(()=>{let a=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;for(const x of t(de))a=Math.min(a,x.start),s=Math.max(s,x.end);if(!Number.isFinite(a)||!Number.isFinite(s)||s<a)return null;const d=Math.max(100,(s-a)*.05);return{start:a-d,end:s+d}}),ot=b(()=>t(M).length>0),X=b(()=>{let a=0,s=0;for(const d of t(de))d.derived?s++:a++;return{base:a,derived:s,total:a+s}}),$=b(()=>t(bt).filter(a=>{const s=V(a.startTimeUnixMs),d=V(a.endTimeUnixMs);return s!=null&&d!=null&&d>=s}).length??0);ar(()=>{if(!t(j))return;let a=!1;const s=t(j);return lr(()=>import("./B5CoBEt2.js"),[],import.meta.url).then(d=>{if(a)return;const x=t(B),y={autoResize:!0,height:260,maxHeight:260,minHeight:260,groupOrder:"order",stack:!1,selectable:!1,multiselect:!1,moveable:!1,zoomable:!1,showCurrentTime:!1,showMajorLabels:!1,showMinorLabels:!0,showTooltips:!0,tooltip:{followMouse:!0,overflowMethod:"flip",delay:0},xss:{disabled:!1},moment:(...A)=>{const C=d.moment(...A);return typeof(C==null?void 0:C.utc)=="function"?C.utc():C},format:{minorLabels:{millisecond:".SSS",second:":ss",minute:"HH:mm",hour:"HH:mm"},majorLabels:{second:"HH:mm:ss",minute:"HH:mm",hour:"MMM D",day:"MMM D"}},start:x==null?void 0:x.start,end:x==null?void 0:x.end};H=new d.Timeline(s,t(M),t(ce),y),rt(F,!0),typeof ResizeObserver<"u"&&(D=new ResizeObserver(()=>H==null?void 0:H.redraw()),D.observe(s))}).catch(d=>{console.error("LatencyTab: failed to load vis-timeline",d)}),()=>{a=!0,D==null||D.disconnect(),D=null,rt(F,!1),H==null||H.destroy(),H=null}}),Ge(()=>{if(!t(F)||!H)return;H.setData({items:t(M),groups:t(ce)});const s=t(B);s&&H.setWindow(s.start,s.end,{animation:!1}),H.redraw()});var xt=Ca(),it=r(xt),ut=r(it),lt=n(r(ut),2),St=r(lt,!0);e(lt),e(ut);var Q=n(ut,2),Et=r(Q),Mt=n(r(Et),2),ve=r(Mt,!0);e(Mt),e(Et);var pe=n(Et,2),$t=n(r(pe),2),u=r($t,!0);e($t),e(pe),e(Q);var l=n(Q,2);{var p=a=>{var s=Rr(),d=n(r(s),2),x=r(d,!0);e(d),e(s),k(f=>v(x,f),[()=>t(S).missing.join(", ")]),i(a,s)};T(l,a=>{var s;Array.isArray((s=t(S))==null?void 0:s.missing)&&t(S).missing.length&&a(p)})}var w=n(l,2);{var G=a=>{var s=Hr(),d=n(r(s),2);we(d,21,()=>t(_).problematicReasons,Ce,(x,f)=>{var y=Or(),A=r(y,!0);e(y),k(()=>v(A,t(f))),i(x,y)}),e(d),e(s),i(a,s)};T(w,a=>{var s;Array.isArray((s=t(_))==null?void 0:s.problematicReasons)&&t(_).problematicReasons.length&&a(G)})}e(it);var ct=n(it,2),_t=n(r(ct),2);{var pt=a=>{var s=Vr(),d=n(r(s)),x=r(d,!0);e(d);var f=n(d,2),y=r(f,!0);e(f);var A=n(f,2);{var C=m=>{var q=jr(),O=n(st(q)),h=r(O,!0);e(O),Dt(),k(()=>v(h,t(X).derived)),i(m,q)};T(A,m=>{t(X).derived&&m(C)})}var R=n(A,2);{var K=m=>{var q=Fr(),O=n(st(q)),h=r(O,!0);e(O),Dt(),k(()=>v(h,t(bt).length-t($))),i(m,q)};T(R,m=>{t(bt).length!==t($)&&m(K)})}var Y=n(R,2);{var et=m=>{var q=Ur(),O=n(st(q)),h=r(O,!0);e(O),Dt(),k(()=>v(h,t($)-t(X).base)),i(m,q)};T(Y,m=>{t(X).base!==t($)&&m(et)})}e(s),k(()=>{v(x,t(X).base),v(y,t(bt).length)}),i(a,s)};T(_t,a=>{t(bt).length&&a(pt)})}var ie=n(_t,2);{var te=a=>{var s=qr();i(a,s)};T(ie,a=>{t(ot)||a(te)})}var ue=n(ie,2);let tt;var ft=r(ue),Ue=r(ft);dr(Ue,a=>rt(j,a),()=>t(j)),e(ft),e(ue),e(ct);var Ne=n(ct,2),Be=n(r(Ne),2);{var xe=a=>{var s=zr();i(a,s)},mt=a=>{var s=Wr(),d=r(s),x=n(r(d));we(x,23,()=>t(bt),(f,y)=>f.name??y,(f,y)=>{var A=Br(),C=r(A),R=r(C,!0);e(C);var K=n(C),Y=r(K,!0);e(K);var et=n(K),m=r(et,!0);e(et);var q=n(et),O=r(q,!0);e(q),e(A),k((h,c)=>{v(R,h),v(Y,c),v(m,t(y).startTimeIso??"—"),v(O,t(y).endTimeIso??"—")},[()=>J(t(y)),()=>L(t(y).durationMs)]),i(f,A)}),e(x),e(d),e(s),i(a,s)};T(Be,a=>{t(bt).length?a(mt,!1):a(xe)})}e(Ne);var ee=n(Ne,2),fe=n(r(ee),2);we(fe,21,()=>Object.entries(t(U)),([a,s])=>a,(a,s)=>{var d=b(()=>Tr(t(s),2));let x=()=>t(d)[0],f=()=>t(d)[1];var y=Jr(),A=r(y),C=r(A,!0);e(A);var R=n(A,2),K=r(R,!0);e(R),e(y),k(Y=>{v(C,x()),v(K,Y)},[()=>typeof f()=="number"?f():String(f())]),i(a,y)}),e(fe),e(ee);var he=n(ee,2),re=n(r(he),2);{var jt=a=>{var s=Qr(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C),e(x);var Y=n(x,2);{var et=h=>{var c=Yr(),W=r(c,!0);e(c),k(E=>v(W,E),[()=>t(_).speechCreated.notes.join(" ")]),i(h,c)};T(Y,h=>{var c;Array.isArray((c=t(_).speechCreated)==null?void 0:c.notes)&&t(_).speechCreated.notes.length&&h(et)})}e(d);var m=n(d,2),q=r(m),O=n(r(q));we(O,21,()=>t(_).speechCreated.events,Ce,(h,c)=>{var W=Xr(),E=r(W),P=r(E),at=r(P,!0);e(P);var dt=n(P,2),It=r(dt,!0);e(dt),e(E);var gt=n(E),Ft=r(gt,!0);e(gt);var ht=n(gt),Nt=r(ht);{var Ut=Tt=>{var Lt=Gr();i(Tt,Lt)},ne=Tt=>{var Lt=Se(),oe=st(Lt);{var be=vt=>{var Vt=Kr();i(vt,Vt)},Pt=vt=>{var Vt=yt("—");i(vt,Vt)};T(oe,vt=>{t(c).userInitiated===!1?vt(be):vt(Pt,!1)},!0)}i(Tt,Lt)};T(Nt,Tt=>{t(c).userInitiated===!0?Tt(Ut):Tt(ne,!1)})}e(ht),e(W),k(()=>{v(at,t(c).atIso??"—"),v(It,t(c).atMs),v(Ft,t(c).source??"—")}),i(h,W)}),e(O),e(q),e(m),k(()=>{var h,c;v(A,((h=t(_).speechCreated.totals)==null?void 0:h.totalEvents)??"—"),v(K,((c=t(_).speechCreated.totals)==null?void 0:c.droppedEvents)??"—")}),i(a,s)},Le=a=>{var s=Zr();i(a,s)};T(re,a=>{var s;(s=t(_))!=null&&s.speechCreated?a(jt):a(Le,!1)})}e(he);var De=n(he,2),ae=n(r(De),2);{var Ae=a=>{var s=aa(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C);var Y=n(C,2),et=n(r(Y),2),m=r(et,!0);e(et),e(Y),e(x);var q=n(x,2);{var O=E=>{var P=$r(),at=r(P,!0);e(P),k(dt=>v(at,dt),[()=>t(_).sttTranscripts.notes.join(" ")]),i(E,P)};T(q,E=>{var P;Array.isArray((P=t(_).sttTranscripts)==null?void 0:P.notes)&&t(_).sttTranscripts.notes.length&&E(O)})}e(d);var h=n(d,2),c=r(h),W=n(r(c));we(W,21,()=>t(_).sttTranscripts.messages,Ce,(E,P)=>{var at=ra(),dt=r(at),It=r(dt),gt=r(It,!0);e(It);var Ft=n(It,2),ht=r(Ft,!0);e(Ft),e(dt);var Nt=n(dt),Ut=r(Nt);{var ne=vt=>{var Vt=ta();i(vt,Vt)},Tt=vt=>{var Vt=Se(),Ye=st(Vt);{var le=Gt=>{var Fe=ea();i(Gt,Fe)},qt=Gt=>{var Fe=yt("—");i(Gt,Fe)};T(Ye,Gt=>{t(P).isFinal===!1?Gt(le):Gt(qt,!1)},!0)}i(vt,Vt)};T(Ut,vt=>{t(P).isFinal===!0?vt(ne):vt(Tt,!1)})}e(Nt);var Lt=n(Nt),oe=r(Lt,!0);e(Lt);var be=n(Lt),Pt=r(be,!0);e(be),e(at),k(()=>{v(gt,t(P).atIso??"—"),v(ht,t(P).atMs),v(oe,t(P).textLen),v(Pt,t(P).text===""?"<EMPTY>":t(P).text)}),i(E,at)}),e(W),e(c),e(h),k(()=>{var E,P,at;v(A,((E=t(_).sttTranscripts.totals)==null?void 0:E.totalMessages)??"—"),v(K,((P=t(_).sttTranscripts.totals)==null?void 0:P.droppedMessages)??"—"),v(m,((at=t(_).sttTranscripts.totals)==null?void 0:at.totalTextChars)??"—")}),i(a,s)},kt=a=>{var s=sa();i(a,s)};T(ae,a=>{var s;(s=t(_))!=null&&s.sttTranscripts?a(Ae):a(kt,!1)})}e(De);var ye=n(De,2),Re=n(r(ye),2);{var Oe=a=>{var s=ia(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C),e(x);var Y=n(x,2);{var et=h=>{var c=na(),W=r(c,!0);e(c),k(E=>v(W,E),[()=>t(_).userStateChanges.notes.join(" ")]),i(h,c)};T(Y,h=>{var c;Array.isArray((c=t(_).userStateChanges)==null?void 0:c.notes)&&t(_).userStateChanges.notes.length&&h(et)})}e(d);var m=n(d,2),q=r(m),O=n(r(q));we(O,21,()=>t(_).userStateChanges.events,Ce,(h,c)=>{var W=oa(),E=r(W),P=r(E),at=r(P,!0);e(P);var dt=n(P,2),It=r(dt,!0);e(dt),e(E);var gt=n(E),Ft=r(gt,!0);e(gt);var ht=n(gt),Nt=r(ht,!0);e(ht),e(W),k(()=>{v(at,t(c).atIso??"—"),v(It,t(c).atMs),v(Ft,t(c).oldState),v(Nt,t(c).newState)}),i(h,W)}),e(O),e(q),e(m),k(()=>{var h,c;v(A,((h=t(_).userStateChanges.totals)==null?void 0:h.totalEvents)??"—"),v(K,((c=t(_).userStateChanges.totals)==null?void 0:c.droppedEvents)??"—")}),i(a,s)},We=a=>{var s=la();i(a,s)};T(Re,a=>{var s;(s=t(_))!=null&&s.userStateChanges?a(Oe):a(We,!1)})}e(ye);var se=n(ye,2),Ze=n(r(se),2);{var $e=a=>{var s=fa(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C),e(x);var Y=n(x,2);{var et=h=>{var c=da(),W=r(c,!0);e(c),k(E=>v(W,E),[()=>t(_).vadEvents.notes.join(" ")]),i(h,c)};T(Y,h=>{var c;Array.isArray((c=t(_).vadEvents)==null?void 0:c.notes)&&t(_).vadEvents.notes.length&&h(et)})}e(d);var m=n(d,2),q=r(m),O=n(r(q));we(O,21,()=>t(_).vadEvents.events,Ce,(h,c)=>{var W=ua(),E=r(W),P=r(E),at=r(P,!0);e(P);var dt=n(P,2),It=r(dt,!0);e(dt),e(E);var gt=n(E),Ft=r(gt,!0);e(gt);var ht=n(gt),Nt=r(ht);{var Ut=le=>{var qt=ca();i(le,qt)},ne=le=>{var qt=Se(),Gt=st(qt);{var Fe=Ve=>{var rr=va();i(Ve,rr)},wr=Ve=>{var rr=yt("—");i(Ve,rr)};T(Gt,Ve=>{t(c).speaking===!1?Ve(Fe):Ve(wr,!1)},!0)}i(le,qt)};T(Nt,le=>{t(c).speaking===!0?le(Ut):le(ne,!1)})}e(ht);var Tt=n(ht),Lt=r(Tt,!0);e(Tt);var oe=n(Tt),be=r(oe,!0);e(oe);var Pt=n(oe),vt=r(Pt,!0);e(Pt);var Vt=n(Pt),Ye=r(Vt,!0);e(Vt),e(W),k((le,qt,Gt,Fe)=>{v(at,t(c).atIso??"—"),v(It,t(c).atMs),v(Ft,t(c).type??"—"),v(Lt,le),v(be,qt),v(vt,Gt),v(Ye,Fe)},[()=>typeof t(c).probability=="number"?t(c).probability.toFixed(3):"—",()=>L(t(c).speechDurationMs),()=>L(t(c).silenceDurationMs),()=>L(t(c).inferenceDurationMs)]),i(h,W)}),e(O),e(q),e(m),k(()=>{var h,c;v(A,((h=t(_).vadEvents.totals)==null?void 0:h.totalEvents)??"—"),v(K,((c=t(_).vadEvents.totals)==null?void 0:c.droppedEvents)??"—")}),i(a,s)},Je=a=>{var s=ma();i(a,s)};T(Ze,a=>{var s;(s=t(_))!=null&&s.vadEvents?a($e):a(Je,!1)})}e(se);var He=n(se,2),tr=n(r(He),2);{var je=a=>{var s=ha(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C),e(x);var Y=n(x,2);{var et=h=>{var c=ga(),W=r(c,!0);e(c),k(E=>v(W,E),[()=>t(_).eouModelPredictions.notes.join(" ")]),i(h,c)};T(Y,h=>{var c;Array.isArray((c=t(_).eouModelPredictions)==null?void 0:c.notes)&&t(_).eouModelPredictions.notes.length&&h(et)})}e(d);var m=n(d,2),q=r(m),O=n(r(q));we(O,21,()=>t(_).eouModelPredictions.events,Ce,(h,c)=>{var W=xa(),E=r(W),P=r(E),at=r(P,!0);e(P);var dt=n(P,2),It=r(dt,!0);e(dt),e(E);var gt=n(E),Ft=r(gt,!0);e(gt);var ht=n(gt),Nt=r(ht,!0);e(ht);var Ut=n(ht),ne=r(Ut,!0);e(Ut);var Tt=n(Ut),Lt=r(Tt);{var oe=Pt=>{var vt=_a();i(Pt,vt)},be=Pt=>{var vt=Se(),Vt=st(vt);{var Ye=qt=>{var Gt=pa();i(qt,Gt)},le=qt=>{var Gt=yt("—");i(qt,Gt)};T(Vt,qt=>{t(c).useMaxEndpointingDelay===!1?qt(Ye):qt(le,!1)},!0)}i(Pt,vt)};T(Lt,Pt=>{t(c).useMaxEndpointingDelay===!0?Pt(oe):Pt(be,!1)})}e(Tt),e(W),k((Pt,vt,Vt)=>{v(at,t(c).atIso??"—"),v(It,t(c).atMs),v(Ft,Pt),v(Nt,vt),v(ne,Vt)},[()=>typeof t(c).probability=="number"?t(c).probability.toFixed(3):"—",()=>typeof t(c).unlikelyThreshold=="number"?t(c).unlikelyThreshold.toFixed(3):t(c).unlikelyThreshold===null?"null":"—",()=>L(t(c).selectedEndpointingDelayMs)]),i(h,W)}),e(O),e(q),e(m),k(()=>{var h,c;v(A,((h=t(_).eouModelPredictions.totals)==null?void 0:h.totalEvents)??"—"),v(K,((c=t(_).eouModelPredictions.totals)==null?void 0:c.droppedEvents)??"—")}),i(a,s)},gr=a=>{var s=ya();i(a,s)};T(tr,a=>{var s;(s=t(_))!=null&&s.eouModelPredictions?a(je):a(gr,!1)})}e(He);var er=n(He,2),_r=n(r(er),2);{var pr=a=>{var s=Ta(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C),e(x);var Y=n(x,2);{var et=h=>{var c=ba(),W=r(c,!0);e(c),k(E=>v(W,E),[()=>t(_).eouMetrics.notes.join(" ")]),i(h,c)};T(Y,h=>{var c;Array.isArray((c=t(_).eouMetrics)==null?void 0:c.notes)&&t(_).eouMetrics.notes.length&&h(et)})}e(d);var m=n(d,2),q=r(m),O=n(r(q));we(O,21,()=>t(_).eouMetrics.events,Ce,(h,c)=>{var W=wa(),E=r(W),P=r(E),at=r(P,!0);e(P);var dt=n(P,2),It=r(dt,!0);e(dt),e(E);var gt=n(E),Ft=r(gt,!0);e(gt);var ht=n(gt),Nt=r(ht,!0);e(ht);var Ut=n(ht),ne=r(Ut,!0);e(Ut);var Tt=n(Ut),Lt=r(Tt,!0);e(Tt),e(W),k((oe,be,Pt,vt)=>{v(at,t(c).atIso??"—"),v(It,t(c).atMs),v(Ft,oe),v(Nt,be),v(ne,Pt),v(Lt,vt)},[()=>t(c).lastSpeakingAtMs?I(t(c).lastSpeakingAtMs):"—",()=>L(t(c).endOfUtteranceDelayMs),()=>L(t(c).transcriptionDelayMs),()=>L(t(c).onUserTurnCompletedDelayMs)]),i(h,W)}),e(O),e(q),e(m),k(()=>{var h,c;v(A,((h=t(_).eouMetrics.totals)==null?void 0:h.totalEvents)??"—"),v(K,((c=t(_).eouMetrics.totals)==null?void 0:c.droppedEvents)??"—")}),i(a,s)},xr=a=>{var s=Sa();i(a,s)};T(_r,a=>{var s;(s=t(_))!=null&&s.eouMetrics?a(pr):a(xr,!1)})}e(er);var vr=n(er,2),hr=n(r(vr),2);{var yr=a=>{var s=Pa(),d=st(s),x=r(d),f=r(x),y=n(r(f),2),A=r(y,!0);e(y),e(f);var C=n(f,2),R=n(r(C),2),K=r(R,!0);e(R),e(C);var Y=n(C,2),et=n(r(Y),2),m=r(et,!0);e(et),e(Y),e(x);var q=n(x,2);{var O=E=>{var P=Ma(),at=r(P,!0);e(P),k(dt=>v(at,dt),[()=>t(_).ttsProviderTextSends.notes.join(" ")]),i(E,P)};T(q,E=>{var P;Array.isArray((P=t(_).ttsProviderTextSends)==null?void 0:P.notes)&&t(_).ttsProviderTextSends.notes.length&&E(O)})}e(d);var h=n(d,2),c=r(h),W=n(r(c));we(W,21,()=>t(_).ttsProviderTextSends.messages,Ce,(E,P)=>{var at=ka(),dt=r(at),It=r(dt),gt=r(It,!0);e(It);var Ft=n(It,2),ht=r(Ft,!0);e(Ft),e(dt);var Nt=n(dt),Ut=r(Nt,!0);e(Nt);var ne=n(Nt),Tt=r(ne,!0);e(ne);var Lt=n(ne),oe=r(Lt,!0);e(Lt),e(at),k(()=>{v(gt,t(P).atIso??"—"),v(ht,t(P).atMs),v(Ut,t(P).flush?"true":"false"),v(Tt,t(P).textLen),v(oe,t(P).text===""?"<EMPTY>":t(P).text)}),i(E,at)}),e(W),e(c),e(h),k(()=>{var E,P,at;v(A,((E=t(_).ttsProviderTextSends.totals)==null?void 0:E.totalMessages)??"—"),v(K,((P=t(_).ttsProviderTextSends.totals)==null?void 0:P.droppedMessages)??"—"),v(m,((at=t(_).ttsProviderTextSends.totals)==null?void 0:at.totalTextChars)??"—")}),i(a,s)},br=a=>{var s=Aa();i(a,s)};T(hr,a=>{var s;(s=t(_))!=null&&s.ttsProviderTextSends?a(yr):a(br,!1)})}e(vr),e(xt),k((a,s)=>{var d,x,f,y;v(St,a),Kt(Mt,1,Ke((d=t(S))!=null&&d.problematic?"text-red-300":"text-rc-gray-200")),v(ve,(x=t(S))!=null&&x.problematic?"true":"false"),Kt($t,1,Ke((f=t(S))!=null&&f.interrupted?"text-amber-200":"text-rc-gray-200")),v(u,(y=t(S))!=null&&y.interrupted?"true":"false"),tt=Kt(ue,1,"w-full overflow-x-auto",null,tt,s)},[()=>{var a;return L((a=t(S))==null?void 0:a.llmToAudioLatencyMs)},()=>({hidden:!t(ot)})]),i(z,xt),ze()}function Ia(z,o,j,H,F){var D;if(!o.shouldSuppressClick(z)){if(t(j)){(D=H.onSelectInVariantMode)==null||D.call(H,H.trace);return}F()}}var Na=(z,o,j)=>{o.shouldSuppressClick(z)||j()},La=g('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),Da=g('<div class="flex w-full justify-center"><div role="button" tabindex="0"><div class="flex flex-wrap items-baseline gap-x-2 gap-y-0"><!> <div class="min-w-0 break-words"> </div></div></div></div>'),Ra=g('<div class="mr-2 mt-1 flex h-5 w-5 shrink-0 items-center justify-center rounded-sm bg-rc-green-700 text-sm uppercase text-rc-gray-100 backdrop-blur-md"> </div>'),Oa=(z,o)=>{var j;z.stopPropagation(),(j=o.onRevert)==null||j.call(o,o.trace)},Ha=g('<button type="button" title="Revert to before this message" class="mr-2 mt-1 shrink-0 self-start rounded p-1 text-rc-gray-500 opacity-80 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none"><!></button>'),ja=g("<div> </div>"),Fa=g('<div class="absolute bottom-1 left-2 rounded bg-red-950/60 px-2 py-0.5 text-[11px] text-red-200"> </div>'),Ua=(z,o)=>{z.stopPropagation(),o()},Va=g('<button type="button"><!></button>'),qa=(z,o)=>{z.stopPropagation(),o.onAnalyze(o.trace)},za=g('<button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-rc-gray-400">Analyze</button>'),Ba=(z,o)=>{z.stopPropagation(),o.onRegenerate(o.trace)},Wa=g('<button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">Regenerate</button>'),Ja=(z,o)=>{z.stopPropagation(),o.onSeeVariants(o.trace)},Ya=g('<button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">See variants</button>'),Ga=g('<div class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-1"><!> <!> <!> <!></div>'),Ka=g('<!> <!> <div><div role="button" tabindex="0" class="cursor-pointer select-text"><div><div> </div> <!> <!></div></div> <!></div>',1),Xa=g('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Qa=g("<!> <!> <!>",1),Za=g('<div class="whitespace-pre-wrap break-words rounded-md border border-rc-gray-650 bg-rc-gray-900/60 p-3 text-sm text-rc-gray-100"> </div>'),$a=g('<div class="text-sm text-rc-gray-300">No latency metrics present on this trace.</div>'),ts=g('<div class="flex flex-col gap-3"><!> <div class="flex items-center justify-between gap-2 text-sm text-rc-gray-200"><div class="text-rc-gray-400"> </div> <!></div> <div><!> <div class="mt-2 h-[55vh] overflow-auto"><!></div></div></div>'),es=g("<div><!></div> <!>",1);function Ls(z,o){qe(o,!0);let j=Ie(o,"analyzeDisabled",3,!1),H=Ie(o,"showSeeVariants",3,!1),F=Ie(o,"variantSelectionState",3,"none"),D=Ie(o,"suppressActionRow",3,!1),Z=Rt(!1),S=Rt("idle"),U=Rt("content");const _=cr();sr(_.cleanup);function V(M){return M?M.split("/").at(-1)??M:""}function L(M){const B=V(M).trim().charAt(0);return B?B.toUpperCase():"?"}const I=b(()=>o.trace.role==="system"?"system":o.trace.eventName==="finished-main-streaming-step"||o.trace.eventName==="sent-message"?"agent":(o.trace.role==="user","user")),nt=b(()=>t(I)==="agent"?"max-w-[83%]":t(I)==="user"?"max-w-[90%] sm:max-w-[80%] md:max-w-[70%]":t(I)==="system"?"max-w-[90%] sm:max-w-[85%] md:max-w-[75%]":""),Xt=b(()=>{var M;return t(I)==="user"&&!!o.onRevert&&((M=o.trace)==null?void 0:M.bosunPrevStateId)!==void 0}),zt=b(()=>o.trace.error!=null),Ot=b(()=>{var M;return(M=o.trace)==null?void 0:M.metrics}),Bt=b(()=>{var M,B;return(B=(M=t(Ot))==null?void 0:M.summary)==null?void 0:B.llmToAudioLatencyMs}),At=b(()=>typeof t(Bt)=="number"&&t(Bt)>800),Wt=b(()=>F()==="source");function Ht(){rt(Z,!0),rt(U,t(Ot)?"latency":"content",!0)}function Jt(M){if(typeof M!="number"||!Number.isFinite(M))return null;const B=new Date(M);if(Number.isNaN(B.getTime()))return null;const ot=String(B.getHours()).padStart(2,"0"),X=String(B.getMinutes()).padStart(2,"0"),$=String(B.getSeconds()).padStart(2,"0");return`${ot}:${X}:${$}`}const Yt=b(()=>{var M;return Jt((M=o.trace)==null?void 0:M.createdAt)});function bt(M){try{return JSON.stringify(M??null,null,2)}catch{return String(M)}}async function Qt(){try{await navigator.clipboard.writeText(bt(o.trace))}catch(M){console.error("Failed to copy",M)}}function me(){return t(I)==="agent"&&o.trace.eventName!=="transfer-requested"&&!!(o.agentId&&o.agentId.trim())&&(o.trace.eventName==="finished-main-streaming-step"||o.trace.eventName==="sent-message")}function Me(){return t(I)==="agent"&&o.trace.eventName!=="transfer-requested"&&!!(o.agentId&&o.agentId.trim())&&(o.trace.eventName==="finished-main-streaming-step"||o.trace.eventName==="sent-message")}function J(){return Me()}function N(M,B){const ot=(M??"").trim();if(!ot)return"";const X=ot.split(`
|
|
4
|
+
`).map(it=>it.trimEnd()).filter(it=>it.trim()!=="");if(!X.length)return"";const $=X[X.length-1],xt=(B??"").trim();return xt&&$.includes(xt)&&X.pop(),X.join(`
|
|
5
|
+
`)}async function Ct(){try{rt(S,"idle");const M=(o.agentId||"").trim();if(!M)throw new Error("Agent id is not available; cannot add test");const B=ur.indexOf(o.trace);let ot="";if(B!==-1)for(let it=B-1;it>=0;it--){const ut=ur[it];if(Pr(ut)&&typeof ut.stringifiedConversation=="string"){const lt=ut.stringifiedConversation.trim();if(lt){ot=lt;break}}}const X=(o.trace.content??"").trim(),xt={pinned:"TRUE",assertion_type:"llm-rubric",assertion_value:"",conversation:N(ot,X),expected_output:X,similarity_threshold:"60",timeout:"0",context:o.context||{}};await kr.tests.addTest.mutate({agent:M,seed:xt,mergeContexts:!0}),rt(S,"ok"),Mr(`/edit/${encodeURIComponent(M)}/tests`),setTimeout(()=>rt(S,"idle"),3e3)}catch(M){console.error("Failed to add test",M),rt(S,"error"),setTimeout(()=>rt(S,"idle"),4e3)}}var wt=es(),Zt=st(wt);let Pe;var ke=r(Zt);{var ge=M=>{var B=Da(),ot=r(B);ot.__pointerdown=function(...lt){var St;(St=_.onPointerDown)==null||St.apply(this,lt)},ot.__click=[Na,_,Ht];var X=r(ot),$=r(X);{var xt=lt=>{var St=La(),Q=r(St,!0);e(St),k(()=>v(Q,t(Yt))),i(lt,St)};T($,lt=>{t(Yt)&<(xt)})}var it=n($,2),ut=r(it);e(it),e(X),e(ot),e(B),k(()=>{Kt(ot,1,`cursor-pointer select-text rounded-full border border-rc-gray-650 bg-rc-gray-800/40 px-4 py-2 text-sm text-rc-gray-100 ${t(zt)?"border-red-500 bg-red-950/30 text-red-200":""}`),v(ut,`Transfer requested: ${o.trace.content??""}`)}),i(M,B)},_e=M=>{var B=Ka(),ot=st(B);{var X=l=>{var p=Ra(),w=r(p,!0);e(p),k((G,ct)=>{Sr(p,"title",G),v(w,ct)},[()=>V(o.agentId),()=>L(o.agentId)]),i(l,p)};T(ot,l=>{t(I)==="agent"&&o.agentId&&l(X)})}var $=n(ot,2);{var xt=l=>{var p=Ha();p.__click=[Oa,o];var w=r(p);ir(w,{name:"undo",width:16,height:16}),e(p),i(l,p)};T($,l=>{t(Xt)&&l(xt)})}var it=n($,2),ut=r(it);ut.__pointerdown=function(...l){var p;(p=_.onPointerDown)==null||p.apply(this,l)},ut.__click=[Ia,_,Wt,o,Ht];var lt=r(ut),St=r(lt),Q=r(St,!0);e(St);var Et=n(St,2);{var Mt=l=>{var p=ja(),w=r(p,!0);e(p),k(()=>{Kt(p,1,`${t(At)?"absolute bottom-1 right-2":"mt-1 text-right"} text-xs text-rc-gray-200/70`),v(w,t(Yt))}),i(l,p)};T(Et,l=>{t(Yt)&&l(Mt)})}var ve=n(Et,2);{var pe=l=>{var p=Fa(),w=r(p);e(p),k(G=>v(w,`High LLM to audio latency: ${G??""} ms`),[()=>Math.round(t(Bt))]),i(l,p)};T(ve,l=>{t(At)&&l(pe)})}e(lt),e(ut);var $t=n(ut,2);{var u=l=>{var p=Ga(),w=r(p);{var G=tt=>{var ft=Va();ft.__click=[Ua,Ct];var Ue=r(ft);{var Ne=xe=>{var mt=yt("Added");i(xe,mt)},Be=xe=>{var mt=Se(),ee=st(mt);{var fe=re=>{var jt=yt("Failed");i(re,jt)},he=re=>{var jt=yt("Add test");i(re,jt)};T(ee,re=>{t(S)==="error"?re(fe):re(he,!1)},!0)}i(xe,mt)};T(Ue,xe=>{t(S)==="ok"?xe(Ne):xe(Be,!1)})}e(ft),k(()=>Kt(ft,1,`inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 transition-colors focus:outline-none focus-visible:outline-none ${t(S)!=="idle"?"cursor-default text-rc-gray-400":"cursor-pointer text-rc-gray-400 hover:bg-rc-gray-900 hover:text-rc-gray-200"}`)),i(tt,ft)};T(w,tt=>{me()&&tt(G)})}var ct=n(w,2);{var _t=tt=>{var ft=za();ft.__click=[qa,o],k(()=>ft.disabled=j()),i(tt,ft)};T(ct,tt=>{Me()&&o.onAnalyze&&tt(_t)})}var pt=n(ct,2);{var ie=tt=>{var ft=Wa();ft.__click=[Ba,o],i(tt,ft)};T(pt,tt=>{J()&&o.onRegenerate&&tt(ie)})}var te=n(pt,2);{var ue=tt=>{var ft=Ya();ft.__click=[Ja,o],i(tt,ft)};T(te,tt=>{H()&&o.onSeeVariants&&tt(ue)})}e(p),i(l,p)};T($t,l=>{!D()&&(Me()||me()||J()&&o.onRegenerate||H())&&l(u)})}e(it),k(()=>{Kt(it,1,`min-w-0 ${t(nt)??""}`),Kt(lt,1,`rounded-lg ${t(I)==="system"?"justify-between whitespace-pre-line break-words border border-emerald-500 text-emerald-500":t(Wt)?"w-full whitespace-pre-line break-words border border-rc-green-450 bg-transparent backdrop-blur-md hover:bg-rc-green-700":t(I)!=="user"?"w-full whitespace-pre-line break-words bg-rc-green-700 backdrop-blur-md":"whitespace-pre-line break-words bg-rc-gray-700"} ${t(I)==="system"||t(Wt)?"":"border-thin border-rc-gray-110"} p-2 pt-1 text-rc-gray-100 ${t(zt)?"border-red-500 bg-red-950/30 text-red-200":""} ${t(At)?"relative pb-5 ring-1 ring-red-500/60":""} ${t(At)&&!t(zt)?"border-red-500":""}`),v(Q,o.trace.content)}),i(M,B)};T(ke,M=>{o.trace.eventName==="transfer-requested"?M(ge):M(_e,!1)})}e(Zt);var de=n(Zt,2);{var ce=M=>{{const B=X=>{var $=ts(),xt=r($);{var it=l=>{var p=Xa(),w=r(p,!0);e(p),k(G=>v(w,G),[()=>bt(o.trace.error)]),i(l,p)};T(xt,l=>{t(zt)&&l(it)})}var ut=n(xt,2),lt=r(ut),St=r(lt);e(lt);var Q=n(lt,2);Qe(Q,{variant:"secondary",size:"small",onclick:Qt,children:(l,p)=>{Dt();var w=yt("Copy raw trace");i(l,w)},$$slots:{default:!0}}),e(ut);var Et=n(ut,2),Mt=r(Et);or(Mt,{get value(){return t(U)},ariaLabel:"Conversational trace tabs",onChange:({value:l})=>rt(U,l,!0),children:(l,p)=>{var w=Qa(),G=st(w);Te(G,{value:"content",class:"px-3",children:(pt,ie)=>{Dt();var te=yt("Content");i(pt,te)},$$slots:{default:!0}});var ct=n(G,2);{let pt=b(()=>!t(Ot));Te(ct,{value:"latency",class:"px-3",get disabled(){return t(pt)},children:(ie,te)=>{Dt();var ue=yt("Latency");i(ie,ue)},$$slots:{default:!0}})}var _t=n(ct,2);Te(_t,{value:"raw",class:"px-3",children:(pt,ie)=>{Dt();var te=yt("Raw");i(pt,te)},$$slots:{default:!0}}),i(l,w)},$$slots:{default:!0}});var ve=n(Mt,2),pe=r(ve);{var $t=l=>{var p=Za(),w=r(p,!0);e(p),k(()=>v(w,o.trace.content)),i(l,p)},u=l=>{var p=Se(),w=st(p);{var G=_t=>{var pt=Se(),ie=st(pt);{var te=tt=>{Ea(tt,{get metrics(){return t(Ot)}})},ue=tt=>{var ft=$a();i(tt,ft)};T(ie,tt=>{t(Ot)?tt(te):tt(ue,!1)})}i(_t,pt)},ct=_t=>{{let pt=b(()=>bt(o.trace));Ee(_t,{get value(){return t(pt)},language:"json",class:"h-full"})}};T(w,_t=>{t(U)==="latency"?_t(G):_t(ct,!1)},!0)}i(l,p)};T(pe,l=>{t(U)==="content"?l($t):l(u,!1)})}e(ve),e(Et),e($),k(()=>v(St,`${o.trace.role??""} • ${o.trace.medium??""}`)),i(X,$)};let ot=b(()=>`Conversation: ${o.trace.eventName}`);Xe(M,{get title(){return t(ot)},class:"!w-[80vw] !max-w-4xl",get open(){return t(Z)},set open(X){rt(Z,X,!0)},children:B,$$slots:{default:!0}})}};T(de,M=>{t(Z)&&M(ce)})}k(M=>Pe=Kt(Zt,1,"group mb-2 flex w-full items-start",null,Pe,M),[()=>({"justify-end":t(I)==="user"||t(I)==="system"})]),i(z,wt),ze()}nr(["pointerdown","click"]);var rs=g('<div><div class="h-full w-full"></div></div>');function as(z,o){qe(o,!0);let j=Ie(o,"language",3,"markdown"),H=Ie(o,"class",3,""),F=Rt(null),D=null,Z=null,S=null,U=Rt(!1);ar(()=>{if(!t(F))return;fr();let L=!1;return lr(()=>import("./DLQqXQ6R.js").then(I=>I.e),__vite__mapDeps([0,1,2]),import.meta.url).then(I=>{if(L)return;mr(I),Z=I,D=I.editor.createDiffEditor(t(F),{theme:"bosun-dark",readOnly:!0,automaticLayout:!0,lineNumbers:"off",renderSideBySide:!0,renderIndicators:!0,ignoreTrimWhitespace:!1,diffWordWrap:"on",diffAlgorithm:"advanced",maxComputationTime:2e4,renderMarginRevertIcon:!1,renderGutterMenu:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,renderLineHighlight:"none",contextmenu:!1,originalEditable:!1});const nt=I.editor.createModel(o.original??"",j()),Xt=I.editor.createModel(o.modified??"",j());S={original:nt,modified:Xt},D.setModel({original:nt,modified:Xt}),rt(U,!0)}).catch(I=>{console.error("ReadOnlyMonacoDiff: failed to init",I)}),()=>{if(L=!0,D){try{D.setModel(null)}catch{}D.dispose(),D=null}S&&(S.original.dispose(),S.modified.dispose(),S=null),Z=null}}),Ge(()=>{if(!D||!S||!t(U))return;const L=o.original??"",I=o.modified??"";S.original.getValue()!==L&&S.original.setValue(L),S.modified.getValue()!==I&&S.modified.setValue(I)}),Ge(()=>{if(!D||!S||!t(U)||!Z)return;const L=j()||"markdown";S.original.getLanguageId()!==L&&Z.editor.setModelLanguage(S.original,L),S.modified.getLanguageId()!==L&&Z.editor.setModelLanguage(S.modified,L)});var _=rs(),V=r(_);dr(V,L=>rt(F,L),()=>t(F)),e(_),k(()=>Kt(_,1,`overflow-hidden rounded-md border border-rc-gray-700 ${H()}`)),i(z,_),ze()}var ss=(z,o,j)=>{o.shouldSuppressClick(z)||rt(j,!0)},ns=g('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),os=(z,o,j,H)=>{z.stopPropagation(),!o.shouldSuppressClick(z)&&t(j)&&rt(H,!0)},is=g('<span><span class="cursor-pointer" title="Show prompt-cache calc JSON"> </span></span>'),ls=g('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),ds=g("<!> <!> <!> <!> <!>",1),cs=g('<div class="flex h-full flex-col gap-2"><div class="grid grid-cols-2 gap-2"><div class="flex items-center justify-start"><!></div> <div class="flex items-center justify-end"><!></div></div> <!></div>'),vs=g('<div class="flex flex-col gap-3"><!> <div class="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-rc-gray-200"><div><span class="text-rc-gray-400">Timing:</span> </div> <div><span class="text-rc-gray-400">Response time:</span> —</div> <div><span class="text-rc-gray-400">Model:</span> </div></div> <div><!> <div class="mt-2 h-[55vh]"><!></div></div></div>'),us=g('<div class="h-[65vh]"><!></div>'),fs=g('<button type="button" class="flex w-full cursor-pointer select-text items-baseline gap-2 truncate rounded-md bg-transparent px-2 py-1 text-left text-sm text-rc-gray-200 hover:bg-rc-gray-800/40"><!> <!> <span> </span> <!></button> <!> <!>',1);function Ds(z,o){qe(o,!0);let j=Rt(!1),H=Rt(!1),F=Rt("response");const D=cr();sr(D.cleanup);function Z(u){return u&&typeof u.renderedPrompt=="string"?u.renderedPrompt:null}function S(u,l){if(u===l)return u.length;const p=Math.min(u.length,l.length);for(let w=0;w<p;w++)if(u.charCodeAt(w)!==l.charCodeAt(w))return w;return p}function U(u,l){const p=Math.max(u.length,l.length);if(p===0)return 100;const w=S(u,l);return Math.floor(w/p*100)}function _(u,l){const p=u.length,w=l.length,G=S(u,l),ct=Math.max(p,w),_t=ct===0?100:Math.floor(G/ct*100);return{currentLength:p,baselineLength:w,commonPrefixLength:G,denom:ct,similarityPct:_t}}function V(u,l){const G=u.slice(0,600),ct=u.slice(Math.max(G.length,u.length-600)),_t=Math.max(0,u.length-G.length-ct.length);return{length:u.length,head:G,tail:ct,omittedChars:_t}}function L(u){const l=u.llmUsage;return!l||typeof l.promptTokens!="number"||!Number.isFinite(l.promptTokens)||l.promptTokens<=0||typeof l.cachedPromptTokens!="number"||!Number.isFinite(l.cachedPromptTokens)||l.cachedPromptTokens<0?null:Math.max(0,Math.min(100,Math.floor(l.cachedPromptTokens/l.promptTokens*100)))}function I(u){const l=new WeakSet;try{return JSON.stringify(u,(p,w)=>{if(typeof w=="bigint")return w.toString();if(w instanceof Error)return{name:w.name,message:w.message,stack:w.stack};if(typeof w=="object"&&w!==null){if(l.has(w))return"[Circular]";l.add(w)}return w},2)??""}catch{return String(u)}}function nt(u){if(u==null)return"";if(typeof u=="string"){const l=u.trim();if(!l)return"";try{return JSON.stringify(JSON.parse(l),null,2)}catch{return u}}return I(u)}function Xt(u){return new Date(u).toISOString()}function zt(u){if(typeof u!="number"||!Number.isFinite(u))return null;const l=new Date(u);if(Number.isNaN(l.getTime()))return null;const p=String(l.getHours()).padStart(2,"0"),w=String(l.getMinutes()).padStart(2,"0"),G=String(l.getSeconds()).padStart(2,"0");return`${p}:${w}:${G}`}const Ot=b(()=>zt(o.trace.createdAt)),Bt=b(()=>o.trace.error!=null),At=b(()=>`AI: ${o.trace.name}`),Wt=b(()=>o.trace.name),Ht=b(()=>{if(o.trace.name!=="main")return null;const u=Z(o.trace),l=Z(o.compareTrace);return u==null||l==null?null:U(u,l)}),Jt=b(()=>o.trace.name!=="main"?null:L(o.trace)),Yt=90,bt=90,Qt=b(()=>o.trace.name!=="main"?null:t(Jt)!=null?t(Jt)===0&&t(Ht)!=null&&t(Ht)>=bt?{text:"0% tokens cached. Cache miss",className:"text-red-200"}:t(Jt)>=Yt?{text:`${t(Jt)}% tokens cached`,className:"text-rc-gray-400"}:{text:`${t(Jt)}% tokens cached - move dynamic parts of prompt to the bottom`,className:"text-red-200"}:t(Ht)!=null?t(Ht)>=Yt?{text:`${t(Ht)}%`,className:"text-rc-gray-400"}:{text:`${t(Ht)}% cached - move dynamic parts of prompt to the bottom`,className:"text-red-200"}:null),me=b(()=>{var pt;if(o.trace.name!=="main")return null;const u=Z(o.trace),l=Z(o.compareTrace),p=u!=null&&l!=null?_(u,l):null,w=o.trace.llmUsage??null,G=t(Jt),ct=G===0&&(p==null?void 0:p.similarityPct)!=null&&p.similarityPct>=bt;return{version:1,labelSource:G!=null?"llmUsage":t(Ht)!=null?"promptSimilarityFallback":"none",thresholds:{okPct:Yt,cacheMissSimilarityPct:bt},inputs:{llmUsage:w,currentRenderedPrompt:u!=null?V(u):null,baselineRenderedPrompt:l!=null?V(l):null},computed:{cachedTokensPct:G,promptSimilarityPct:(p==null?void 0:p.similarityPct)??null,promptSimilarity:p,cacheMiss:ct},decision:{text:((pt=t(Qt))==null?void 0:pt.text)??null}}}),Me=b(()=>t(me)?I(t(me)):"{}"),J=b(()=>nt(o.trace.response)),N=b(()=>{const u=o.trace.response;if(typeof u!="string")return"json";try{return JSON.parse(u),"json"}catch{return"text"}}),Ct=b(()=>o.trace.stringifiedConversation??""),wt=b(()=>nt(o.trace.renderedPrompt)),Zt=b(()=>nt(o.trace.receivedPrompt)),Pe=b(()=>nt(o.trace.receivedContext)),ke=b(()=>nt(o.trace.schema)),ge=b(()=>o.trace.error?I(o.trace.error):"");function _e(u){return u==null?"":typeof u=="string"?u:I(u)}const de=b(()=>_e(o.trace.receivedPrompt)),ce=b(()=>_e(o.trace.renderedPrompt));let M=Rt(null),B=Rt(null);async function ot(u){try{const l=u==="raw"?t(de):t(ce);await navigator.clipboard.writeText(l),rt(M,u,!0),t(B)&&clearTimeout(t(B)),rt(B,window.setTimeout(()=>{rt(M,null),rt(B,null)},2e3),!0)}catch(l){console.error("Failed to copy prompt",l)}}var X=fs(),$=st(X);$.__pointerdown=function(...u){var l;(l=D.onPointerDown)==null||l.apply(this,u)},$.__click=[ss,D,j];var xt=r($);{let u=b(()=>t(Bt)?"close":"checkmark"),l=b(()=>t(Bt)?"self-center text-red-400":"self-center text-rc-green-200");ir(xt,{get name(){return t(u)},width:18,height:18,get class(){return t(l)}})}var it=n(xt,2);{var ut=u=>{var l=ns(),p=r(l,!0);e(l),k(()=>v(p,t(Ot))),i(u,l)};T(it,u=>{t(Ot)&&u(ut)})}var lt=n(it,2),St=r(lt);e(lt);var Q=n(lt,2);{var Et=u=>{var l=is(),p=r(l);p.__click=[os,D,me,H];var w=r(p,!0);e(p),e(l),k(()=>{Kt(l,1,`shrink-0 text-xs ${t(Qt).className}`),v(w,t(Qt).text)}),i(u,l)};T(Q,u=>{t(Qt)!=null&&u(Et)})}e($);var Mt=n($,2);{var ve=u=>{Xe(u,{get title(){return t(At)},class:"!w-[85vw] !max-w-5xl",get open(){return t(j)},set open(p){rt(j,p,!0)},children:p=>{var w=vs(),G=r(w);{var ct=mt=>{var ee=ls(),fe=r(ee,!0);e(ee),k(()=>v(fe,t(ge))),i(mt,ee)};T(G,mt=>{t(ge)&&mt(ct)})}var _t=n(G,2),pt=r(_t),ie=n(r(pt));e(pt);var te=n(pt,4),ue=n(r(te));e(te),e(_t);var tt=n(_t,2),ft=r(tt);or(ft,{get value(){return t(F)},ariaLabel:"Step trace tabs",onChange:({value:mt})=>rt(F,mt,!0),children:(mt,ee)=>{var fe=ds(),he=st(fe);Te(he,{value:"response",class:"px-3",children:(ae,Ae)=>{Dt();var kt=yt("Response");i(ae,kt)},$$slots:{default:!0}});var re=n(he,2);Te(re,{value:"conversation",class:"px-3",children:(ae,Ae)=>{Dt();var kt=yt("Conversation");i(ae,kt)},$$slots:{default:!0}});var jt=n(re,2);Te(jt,{value:"prompt",class:"px-3",children:(ae,Ae)=>{Dt();var kt=yt("Prompt");i(ae,kt)},$$slots:{default:!0}});var Le=n(jt,2);Te(Le,{value:"context",class:"px-3",children:(ae,Ae)=>{Dt();var kt=yt("Context");i(ae,kt)},$$slots:{default:!0}});var De=n(Le,2);Te(De,{value:"schema",class:"px-3",children:(ae,Ae)=>{Dt();var kt=yt("Schema");i(ae,kt)},$$slots:{default:!0}}),i(mt,fe)},$$slots:{default:!0}});var Ue=n(ft,2),Ne=r(Ue);{var Be=mt=>{Ee(mt,{get value(){return t(J)},get language(){return t(N)},class:"h-full"})},xe=mt=>{var ee=Se(),fe=st(ee);{var he=jt=>{Ee(jt,{get value(){return t(Ct)},language:"text",class:"h-full"})},re=jt=>{var Le=Se(),De=st(Le);{var ae=kt=>{var ye=cs(),Re=r(ye),Oe=r(Re),We=r(Oe);{let Je=b(()=>!t(de).trim());Qe(We,{variant:"secondary",size:"small",get disabled(){return t(Je)},onclick:()=>ot("raw"),children:(He,tr)=>{Dt();var je=yt();k(()=>v(je,t(M)==="raw"?"Copied raw prompt":"Copy raw prompt")),i(He,je)},$$slots:{default:!0}})}e(Oe);var se=n(Oe,2),Ze=r(se);{let Je=b(()=>!t(ce).trim());Qe(Ze,{variant:"secondary",size:"small",get disabled(){return t(Je)},onclick:()=>ot("rendered"),children:(He,tr)=>{Dt();var je=yt();k(()=>v(je,t(M)==="rendered"?"Copied rendered prompt":"Copy rendered prompt")),i(He,je)},$$slots:{default:!0}})}e(se),e(Re);var $e=n(Re,2);as($e,{get original(){return t(Zt)},get modified(){return t(wt)},language:"markdown",class:"min-h-0 flex-1"}),e(ye),i(kt,ye)},Ae=kt=>{var ye=Se(),Re=st(ye);{var Oe=se=>{Ee(se,{get value(){return t(Pe)},language:"json",class:"h-full"})},We=se=>{Ee(se,{get value(){return t(ke)},language:"json",class:"h-full"})};T(Re,se=>{t(F)==="context"?se(Oe):se(We,!1)},!0)}i(kt,ye)};T(De,kt=>{t(F)==="prompt"?kt(ae):kt(Ae,!1)},!0)}i(jt,Le)};T(fe,jt=>{t(F)==="conversation"?jt(he):jt(re,!1)},!0)}i(mt,ee)};T(Ne,mt=>{t(F)==="response"?mt(Be):mt(xe,!1)})}e(Ue),e(tt),e(w),k(mt=>{v(ie,` ${mt??""}`),v(ue,` ${o.trace.model??"—"??""}`)},[()=>typeof o.trace.createdAt=="number"?Xt(o.trace.createdAt):"—"]),i(p,w)},$$slots:{default:!0}})};T(Mt,u=>{t(j)&&u(ve)})}var pe=n(Mt,2);{var $t=u=>{Xe(u,{title:"Prompt cache calc",class:"!w-[85vw] !max-w-5xl",get open(){return t(H)},set open(p){rt(H,p,!0)},children:p=>{var w=us(),G=r(w);Ee(G,{get value(){return t(Me)},language:"json",class:"h-full"}),e(w),i(p,w)},$$slots:{default:!0}})};T(pe,u=>{t(H)&&u($t)})}k(()=>{Kt(lt,1,Ke(t(Bt)?"text-red-200":"")),v(St,`AI: ${t(Wt)??""}`)}),i(z,X),ze()}nr(["pointerdown","click"]);export{Ns as C,Ds as a,Ls as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as s,A as c,K as m,L as i}from"./BRMnbBOX.js";import{B as p}from"./CB3MYTwM.js";function l(n,r,o){c&&m();var e=new p(n);s(()=>{var a=r()??null;e.ensure(a,a&&(t=>o(t,a)))},i)}export{l as c};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{p as m,f as v,b as c,c as d,h,u as b}from"./BRMnbBOX.js";import{a as _}from"./3HVf2z3Q.js";import{b as y}from"./DAyj7AJo.js";import{b as g}from"./CmatTLDp.js";import{p as a,r as x}from"./DCT4VKzQ.js";var I=v("<input/>");function A(r,t){m(t,!0);let s=a(t,"class",3,""),l=a(t,"value",15),o=a(t,"type",3,"text"),n=a(t,"variant",3,"config"),i=a(t,"el",15),u=x(t,["$$slots","$$events","$$legacy","class","value","type","variant","el"]),p=b(()=>n()==="chat"?`input-chat ${s()}`:`input-config ${s()}`);var e=I();_(e,()=>({type:o(),class:h(p),...u}),void 0,void 0,"svelte-8ff5h4",!0),g(e,f=>i(f),()=>i()),y(e,l),c(r,e),d()}export{A as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aj as k,x as t,w as x,ah as S,ak as T}from"./BRMnbBOX.js";function h(r,i){return r===i||(r==null?void 0:r[T])===i}function q(r={},i,a,c){return k(()=>{var f,s;return t(()=>{f=s,s=[],x(()=>{r!==a(...s)&&(i(r,...s),f&&h(a(...f),r)&&i(null,...f))})}),()=>{S(()=>{s&&h(a(...s),r)&&i(null,...s)})}}),r}export{q as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{o as vt,a as dt}from"./CB3MYTwM.js";import{p as ht,k as mt,h as me,i as gt,f as yt,d as bt,r as wt,l as xt,b as Ot,c as Et}from"./BRMnbBOX.js";import{b as At}from"./CmatTLDp.js";import{p as ne}from"./DCT4VKzQ.js";var B="top",L="bottom",M="right",C="left",je="auto",pe=[B,L,M,C],Q="start",se="end",Pt="clippingParents",Ze="viewport",ae="popper",Dt="reference",Ie=pe.reduce(function(t,e){return t.concat([e+"-"+Q,e+"-"+se])},[]),_e=[].concat(pe,[je]).reduce(function(t,e){return t.concat([e,e+"-"+Q,e+"-"+se])},[]),jt="beforeRead",Rt="read",Bt="afterRead",Ct="beforeMain",kt="main",Tt="afterMain",St="beforeWrite",Lt="write",Mt="afterWrite",$t=[jt,Rt,Bt,Ct,kt,Tt,St,Lt,Mt];function V(t){return t?(t.nodeName||"").toLowerCase():null}function T(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function J(t){var e=T(t).Element;return t instanceof e||t instanceof Element}function S(t){var e=T(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Re(t){if(typeof ShadowRoot>"u")return!1;var e=T(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Wt(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var a=e.styles[r]||{},n=e.attributes[r]||{},s=e.elements[r];!S(s)||!V(s)||(Object.assign(s.style,a),Object.keys(n).forEach(function(p){var i=n[p];i===!1?s.removeAttribute(p):s.setAttribute(p,i===!0?"":i)}))})}function Ht(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(a){var n=e.elements[a],s=e.attributes[a]||{},p=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:r[a]),i=p.reduce(function(o,c){return o[c]="",o},{});!S(n)||!V(n)||(Object.assign(n.style,i),Object.keys(s).forEach(function(o){n.removeAttribute(o)}))})}}const Vt={name:"applyStyles",enabled:!0,phase:"write",fn:Wt,effect:Ht,requires:["computeStyles"]};function H(t){return t.split("-")[0]}var G=Math.max,be=Math.min,Z=Math.round;function Pe(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function et(){return!/^((?!chrome|android).)*safari/i.test(Pe())}function _(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var a=t.getBoundingClientRect(),n=1,s=1;e&&S(t)&&(n=t.offsetWidth>0&&Z(a.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Z(a.height)/t.offsetHeight||1);var p=J(t)?T(t):window,i=p.visualViewport,o=!et()&&r,c=(a.left+(o&&i?i.offsetLeft:0))/n,f=(a.top+(o&&i?i.offsetTop:0))/s,h=a.width/n,m=a.height/s;return{width:h,height:m,top:f,right:c+h,bottom:f+m,left:c,x:c,y:f}}function Be(t){var e=_(t),r=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:a}}function tt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Re(r)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function N(t){return T(t).getComputedStyle(t)}function Nt(t){return["table","td","th"].indexOf(V(t))>=0}function q(t){return((J(t)?t.ownerDocument:t.document)||window.document).documentElement}function we(t){return V(t)==="html"?t:t.assignedSlot||t.parentNode||(Re(t)?t.host:null)||q(t)}function Xe(t){return!S(t)||N(t).position==="fixed"?null:t.offsetParent}function Ft(t){var e=/firefox/i.test(Pe()),r=/Trident/i.test(Pe());if(r&&S(t)){var a=N(t);if(a.position==="fixed")return null}var n=we(t);for(Re(n)&&(n=n.host);S(n)&&["html","body"].indexOf(V(n))<0;){var s=N(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function ce(t){for(var e=T(t),r=Xe(t);r&&Nt(r)&&N(r).position==="static";)r=Xe(r);return r&&(V(r)==="html"||V(r)==="body"&&N(r).position==="static")?e:r||Ft(t)||e}function Ce(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function oe(t,e,r){return G(t,be(e,r))}function qt(t,e,r){var a=oe(t,e,r);return a>r?r:a}function rt(){return{top:0,right:0,bottom:0,left:0}}function nt(t){return Object.assign({},rt(),t)}function at(t,e){return e.reduce(function(r,a){return r[a]=t,r},{})}var It=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,nt(typeof e!="number"?e:at(e,pe))};function Xt(t){var e,r=t.state,a=t.name,n=t.options,s=r.elements.arrow,p=r.modifiersData.popperOffsets,i=H(r.placement),o=Ce(i),c=[C,M].indexOf(i)>=0,f=c?"height":"width";if(!(!s||!p)){var h=It(n.padding,r),m=Be(s),u=o==="y"?B:C,b=o==="y"?L:M,l=r.rects.reference[f]+r.rects.reference[o]-p[o]-r.rects.popper[f],d=p[o]-r.rects.reference[o],w=ce(s),O=w?o==="y"?w.clientHeight||0:w.clientWidth||0:0,E=l/2-d/2,v=h[u],g=O-m[f]-h[b],y=O/2-m[f]/2+E,x=oe(v,y,g),D=o;r.modifiersData[a]=(e={},e[D]=x,e.centerOffset=x-y,e)}}function Yt(t){var e=t.state,r=t.options,a=r.element,n=a===void 0?"[data-popper-arrow]":a;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||tt(e.elements.popper,n)&&(e.elements.arrow=n))}const zt={name:"arrow",enabled:!0,phase:"main",fn:Xt,effect:Yt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ee(t){return t.split("-")[1]}var Ut={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gt(t,e){var r=t.x,a=t.y,n=e.devicePixelRatio||1;return{x:Z(r*n)/n||0,y:Z(a*n)/n||0}}function Ye(t){var e,r=t.popper,a=t.popperRect,n=t.placement,s=t.variation,p=t.offsets,i=t.position,o=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,h=t.isFixed,m=p.x,u=m===void 0?0:m,b=p.y,l=b===void 0?0:b,d=typeof f=="function"?f({x:u,y:l}):{x:u,y:l};u=d.x,l=d.y;var w=p.hasOwnProperty("x"),O=p.hasOwnProperty("y"),E=C,v=B,g=window;if(c){var y=ce(r),x="clientHeight",D="clientWidth";if(y===T(r)&&(y=q(r),N(y).position!=="static"&&i==="absolute"&&(x="scrollHeight",D="scrollWidth")),y=y,n===B||(n===C||n===M)&&s===se){v=L;var P=h&&y===g&&g.visualViewport?g.visualViewport.height:y[x];l-=P-a.height,l*=o?1:-1}if(n===C||(n===B||n===L)&&s===se){E=M;var A=h&&y===g&&g.visualViewport?g.visualViewport.width:y[D];u-=A-a.width,u*=o?1:-1}}var j=Object.assign({position:i},c&&Ut),$=f===!0?Gt({x:u,y:l},T(r)):{x:u,y:l};if(u=$.x,l=$.y,o){var R;return Object.assign({},j,(R={},R[v]=O?"0":"",R[E]=w?"0":"",R.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+l+"px)":"translate3d("+u+"px, "+l+"px, 0)",R))}return Object.assign({},j,(e={},e[v]=O?l+"px":"",e[E]=w?u+"px":"",e.transform="",e))}function Jt(t){var e=t.state,r=t.options,a=r.gpuAcceleration,n=a===void 0?!0:a,s=r.adaptive,p=s===void 0?!0:s,i=r.roundOffsets,o=i===void 0?!0:i,c={placement:H(e.placement),variation:ee(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ye(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:p,roundOffsets:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ye(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Kt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jt,data:{}};var ge={passive:!0};function Qt(t){var e=t.state,r=t.instance,a=t.options,n=a.scroll,s=n===void 0?!0:n,p=a.resize,i=p===void 0?!0:p,o=T(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",r.update,ge)}),i&&o.addEventListener("resize",r.update,ge),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",r.update,ge)}),i&&o.removeEventListener("resize",r.update,ge)}}const Zt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qt,data:{}};var _t={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(t){return t.replace(/left|right|bottom|top/g,function(e){return _t[e]})}var er={start:"end",end:"start"};function ze(t){return t.replace(/start|end/g,function(e){return er[e]})}function ke(t){var e=T(t),r=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:r,scrollTop:a}}function Te(t){return _(q(t)).left+ke(t).scrollLeft}function tr(t,e){var r=T(t),a=q(t),n=r.visualViewport,s=a.clientWidth,p=a.clientHeight,i=0,o=0;if(n){s=n.width,p=n.height;var c=et();(c||!c&&e==="fixed")&&(i=n.offsetLeft,o=n.offsetTop)}return{width:s,height:p,x:i+Te(t),y:o}}function rr(t){var e,r=q(t),a=ke(t),n=(e=t.ownerDocument)==null?void 0:e.body,s=G(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),p=G(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-a.scrollLeft+Te(t),o=-a.scrollTop;return N(n||r).direction==="rtl"&&(i+=G(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:p,x:i,y:o}}function Se(t){var e=N(t),r=e.overflow,a=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+a)}function ot(t){return["html","body","#document"].indexOf(V(t))>=0?t.ownerDocument.body:S(t)&&Se(t)?t:ot(we(t))}function ie(t,e){var r;e===void 0&&(e=[]);var a=ot(t),n=a===((r=t.ownerDocument)==null?void 0:r.body),s=T(a),p=n?[s].concat(s.visualViewport||[],Se(a)?a:[]):a,i=e.concat(p);return n?i:i.concat(ie(we(p)))}function De(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nr(t,e){var r=_(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ue(t,e,r){return e===Ze?De(tr(t,r)):J(e)?nr(e,r):De(rr(q(t)))}function ar(t){var e=ie(we(t)),r=["absolute","fixed"].indexOf(N(t).position)>=0,a=r&&S(t)?ce(t):t;return J(a)?e.filter(function(n){return J(n)&&tt(n,a)&&V(n)!=="body"}):[]}function or(t,e,r,a){var n=e==="clippingParents"?ar(t):[].concat(e),s=[].concat(n,[r]),p=s[0],i=s.reduce(function(o,c){var f=Ue(t,c,a);return o.top=G(f.top,o.top),o.right=be(f.right,o.right),o.bottom=be(f.bottom,o.bottom),o.left=G(f.left,o.left),o},Ue(t,p,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function it(t){var e=t.reference,r=t.element,a=t.placement,n=a?H(a):null,s=a?ee(a):null,p=e.x+e.width/2-r.width/2,i=e.y+e.height/2-r.height/2,o;switch(n){case B:o={x:p,y:e.y-r.height};break;case L:o={x:p,y:e.y+e.height};break;case M:o={x:e.x+e.width,y:i};break;case C:o={x:e.x-r.width,y:i};break;default:o={x:e.x,y:e.y}}var c=n?Ce(n):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case Q:o[c]=o[c]-(e[f]/2-r[f]/2);break;case se:o[c]=o[c]+(e[f]/2-r[f]/2);break}}return o}function fe(t,e){e===void 0&&(e={});var r=e,a=r.placement,n=a===void 0?t.placement:a,s=r.strategy,p=s===void 0?t.strategy:s,i=r.boundary,o=i===void 0?Pt:i,c=r.rootBoundary,f=c===void 0?Ze:c,h=r.elementContext,m=h===void 0?ae:h,u=r.altBoundary,b=u===void 0?!1:u,l=r.padding,d=l===void 0?0:l,w=nt(typeof d!="number"?d:at(d,pe)),O=m===ae?Dt:ae,E=t.rects.popper,v=t.elements[b?O:m],g=or(J(v)?v:v.contextElement||q(t.elements.popper),o,f,p),y=_(t.elements.reference),x=it({reference:y,element:E,placement:n}),D=De(Object.assign({},E,x)),P=m===ae?D:y,A={top:g.top-P.top+w.top,bottom:P.bottom-g.bottom+w.bottom,left:g.left-P.left+w.left,right:P.right-g.right+w.right},j=t.modifiersData.offset;if(m===ae&&j){var $=j[n];Object.keys(A).forEach(function(R){var I=[M,L].indexOf(R)>=0?1:-1,X=[B,L].indexOf(R)>=0?"y":"x";A[R]+=$[X]*I})}return A}function ir(t,e){e===void 0&&(e={});var r=e,a=r.placement,n=r.boundary,s=r.rootBoundary,p=r.padding,i=r.flipVariations,o=r.allowedAutoPlacements,c=o===void 0?_e:o,f=ee(a),h=f?i?Ie:Ie.filter(function(b){return ee(b)===f}):pe,m=h.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=h);var u=m.reduce(function(b,l){return b[l]=fe(t,{placement:l,boundary:n,rootBoundary:s,padding:p})[H(l)],b},{});return Object.keys(u).sort(function(b,l){return u[b]-u[l]})}function sr(t){if(H(t)===je)return[];var e=ye(t);return[ze(t),e,ze(e)]}function fr(t){var e=t.state,r=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,p=r.altAxis,i=p===void 0?!0:p,o=r.fallbackPlacements,c=r.padding,f=r.boundary,h=r.rootBoundary,m=r.altBoundary,u=r.flipVariations,b=u===void 0?!0:u,l=r.allowedAutoPlacements,d=e.options.placement,w=H(d),O=w===d,E=o||(O||!b?[ye(d)]:sr(d)),v=[d].concat(E).reduce(function(K,F){return K.concat(H(F)===je?ir(e,{placement:F,boundary:f,rootBoundary:h,padding:c,flipVariations:b,allowedAutoPlacements:l}):F)},[]),g=e.rects.reference,y=e.rects.popper,x=new Map,D=!0,P=v[0],A=0;A<v.length;A++){var j=v[A],$=H(j),R=ee(j)===Q,I=[B,L].indexOf($)>=0,X=I?"width":"height",k=fe(e,{placement:j,boundary:f,rootBoundary:h,altBoundary:m,padding:c}),W=I?R?M:C:R?L:B;g[X]>y[X]&&(W=ye(W));var ue=ye(W),Y=[];if(s&&Y.push(k[$]<=0),i&&Y.push(k[W]<=0,k[ue]<=0),Y.every(function(K){return K})){P=j,D=!1;break}x.set(j,Y)}if(D)for(var le=b?3:1,xe=function(F){var re=v.find(function(de){var z=x.get(de);if(z)return z.slice(0,F).every(function(Oe){return Oe})});if(re)return P=re,"break"},te=le;te>0;te--){var ve=xe(te);if(ve==="break")break}e.placement!==P&&(e.modifiersData[a]._skip=!0,e.placement=P,e.reset=!0)}}const pr={name:"flip",enabled:!0,phase:"main",fn:fr,requiresIfExists:["offset"],data:{_skip:!1}};function Ge(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Je(t){return[B,M,L,C].some(function(e){return t[e]>=0})}function cr(t){var e=t.state,r=t.name,a=e.rects.reference,n=e.rects.popper,s=e.modifiersData.preventOverflow,p=fe(e,{elementContext:"reference"}),i=fe(e,{altBoundary:!0}),o=Ge(p,a),c=Ge(i,n,s),f=Je(o),h=Je(c);e.modifiersData[r]={referenceClippingOffsets:o,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const ur={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cr};function lr(t,e,r){var a=H(t),n=[C,B].indexOf(a)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,p=s[0],i=s[1];return p=p||0,i=(i||0)*n,[C,M].indexOf(a)>=0?{x:i,y:p}:{x:p,y:i}}function vr(t){var e=t.state,r=t.options,a=t.name,n=r.offset,s=n===void 0?[0,0]:n,p=_e.reduce(function(f,h){return f[h]=lr(h,e.rects,s),f},{}),i=p[e.placement],o=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=c),e.modifiersData[a]=p}const dr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vr};function hr(t){var e=t.state,r=t.name;e.modifiersData[r]=it({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const mr={name:"popperOffsets",enabled:!0,phase:"read",fn:hr,data:{}};function gr(t){return t==="x"?"y":"x"}function yr(t){var e=t.state,r=t.options,a=t.name,n=r.mainAxis,s=n===void 0?!0:n,p=r.altAxis,i=p===void 0?!1:p,o=r.boundary,c=r.rootBoundary,f=r.altBoundary,h=r.padding,m=r.tether,u=m===void 0?!0:m,b=r.tetherOffset,l=b===void 0?0:b,d=fe(e,{boundary:o,rootBoundary:c,padding:h,altBoundary:f}),w=H(e.placement),O=ee(e.placement),E=!O,v=Ce(w),g=gr(v),y=e.modifiersData.popperOffsets,x=e.rects.reference,D=e.rects.popper,P=typeof l=="function"?l(Object.assign({},e.rects,{placement:e.placement})):l,A=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(y){if(s){var R,I=v==="y"?B:C,X=v==="y"?L:M,k=v==="y"?"height":"width",W=y[v],ue=W+d[I],Y=W-d[X],le=u?-D[k]/2:0,xe=O===Q?x[k]:D[k],te=O===Q?-D[k]:-x[k],ve=e.elements.arrow,K=u&&ve?Be(ve):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:rt(),re=F[I],de=F[X],z=oe(0,x[k],K[k]),Oe=E?x[k]/2-le-z-re-A.mainAxis:xe-z-re-A.mainAxis,st=E?-x[k]/2+le+z+de+A.mainAxis:te+z+de+A.mainAxis,Ee=e.elements.arrow&&ce(e.elements.arrow),ft=Ee?v==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Le=(R=j==null?void 0:j[v])!=null?R:0,pt=W+Oe-Le-ft,ct=W+st-Le,Me=oe(u?be(ue,pt):ue,W,u?G(Y,ct):Y);y[v]=Me,$[v]=Me-W}if(i){var $e,ut=v==="x"?B:C,lt=v==="x"?L:M,U=y[g],he=g==="y"?"height":"width",We=U+d[ut],He=U-d[lt],Ae=[B,C].indexOf(w)!==-1,Ve=($e=j==null?void 0:j[g])!=null?$e:0,Ne=Ae?We:U-x[he]-D[he]-Ve+A.altAxis,Fe=Ae?U+x[he]+D[he]-Ve-A.altAxis:He,qe=u&&Ae?qt(Ne,U,Fe):oe(u?Ne:We,U,u?Fe:He);y[g]=qe,$[g]=qe-U}e.modifiersData[a]=$}}const br={name:"preventOverflow",enabled:!0,phase:"main",fn:yr,requiresIfExists:["offset"]};function wr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xr(t){return t===T(t)||!S(t)?ke(t):wr(t)}function Or(t){var e=t.getBoundingClientRect(),r=Z(e.width)/t.offsetWidth||1,a=Z(e.height)/t.offsetHeight||1;return r!==1||a!==1}function Er(t,e,r){r===void 0&&(r=!1);var a=S(e),n=S(e)&&Or(e),s=q(e),p=_(t,n,r),i={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(a||!a&&!r)&&((V(e)!=="body"||Se(s))&&(i=xr(e)),S(e)?(o=_(e,!0),o.x+=e.clientLeft,o.y+=e.clientTop):s&&(o.x=Te(s))),{x:p.left+i.scrollLeft-o.x,y:p.top+i.scrollTop-o.y,width:p.width,height:p.height}}function Ar(t){var e=new Map,r=new Set,a=[];t.forEach(function(s){e.set(s.name,s)});function n(s){r.add(s.name);var p=[].concat(s.requires||[],s.requiresIfExists||[]);p.forEach(function(i){if(!r.has(i)){var o=e.get(i);o&&n(o)}}),a.push(s)}return t.forEach(function(s){r.has(s.name)||n(s)}),a}function Pr(t){var e=Ar(t);return $t.reduce(function(r,a){return r.concat(e.filter(function(n){return n.phase===a}))},[])}function Dr(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function jr(t){var e=t.reduce(function(r,a){var n=r[a.name];return r[a.name]=n?Object.assign({},n,a,{options:Object.assign({},n.options,a.options),data:Object.assign({},n.data,a.data)}):a,r},{});return Object.keys(e).map(function(r){return e[r]})}var Ke={placement:"bottom",modifiers:[],strategy:"absolute"};function Qe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Rr(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,a=r===void 0?[]:r,n=e.defaultOptions,s=n===void 0?Ke:n;return function(i,o,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ke,s),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},h=[],m=!1,u={state:f,setOptions:function(w){var O=typeof w=="function"?w(f.options):w;l(),f.options=Object.assign({},s,f.options,O),f.scrollParents={reference:J(i)?ie(i):i.contextElement?ie(i.contextElement):[],popper:ie(o)};var E=Pr(jr([].concat(a,f.options.modifiers)));return f.orderedModifiers=E.filter(function(v){return v.enabled}),b(),u.update()},forceUpdate:function(){if(!m){var w=f.elements,O=w.reference,E=w.popper;if(Qe(O,E)){f.rects={reference:Er(O,ce(E),f.options.strategy==="fixed"),popper:Be(E)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var v=0;v<f.orderedModifiers.length;v++){if(f.reset===!0){f.reset=!1,v=-1;continue}var g=f.orderedModifiers[v],y=g.fn,x=g.options,D=x===void 0?{}:x,P=g.name;typeof y=="function"&&(f=y({state:f,options:D,name:P,instance:u})||f)}}}},update:Dr(function(){return new Promise(function(d){u.forceUpdate(),d(f)})}),destroy:function(){l(),m=!0}};if(!Qe(i,o))return u;u.setOptions(c).then(function(d){!m&&c.onFirstUpdate&&c.onFirstUpdate(d)});function b(){f.orderedModifiers.forEach(function(d){var w=d.name,O=d.options,E=O===void 0?{}:O,v=d.effect;if(typeof v=="function"){var g=v({state:f,name:w,instance:u,options:E}),y=function(){};h.push(g||y)}})}function l(){h.forEach(function(d){return d()}),h=[]}return u}}var Br=[Zt,mr,Kt,Vt,dr,pr,br,zt,ur],Cr=Rr({defaultModifiers:Br}),kr=yt('<div class="popper svelte-1dn0eza"><!></div>');function Wr(t,e){ht(e,!0);let r=ne(e,"referenceEl",3,null),a=ne(e,"placement",3,"bottom-start"),n=ne(e,"offset",19,()=>[0,2]),s=ne(e,"flip",3,!0),p=ne(e,"preventOverflow",3,!0),i=gt(null),o=null;function c(){if(!r()||!me(i))return;const l=[];n()&&l.push({name:"offset",options:{offset:n()}}),s()&&l.push({name:"flip",options:{fallbackPlacements:["top-start","bottom-end","top-end"]}}),p()&&l.push({name:"preventOverflow",options:{padding:8}}),o=Cr(r(),me(i),{placement:a(),modifiers:l})}function f(){o&&o.update()}vt(()=>(c(),()=>{o&&(o.destroy(),o=null)})),mt(()=>(r()&&me(i)&&c(),()=>{o&&(o.destroy(),o=null)}));function h(){f()}var m={update:h},u=kr(),b=bt(u);return dt(b,()=>e.children),wt(u),At(u,l=>xt(i,l),()=>me(i)),Ot(t,u),Et(m)}export{Wr as P};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{v as k,w as t,x as _,y as f,z as m,A as b,B as y}from"./BRMnbBOX.js";function E(e,a,v=a){var c=new WeakSet;k(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=o(e)?u(l):l,v(l),f!==null&&c.add(f),await m(),l!==(l=a())){var h=e.selectionStart,d=e.selectionEnd,n=e.value.length;if(e.value=l??"",d!==null){var s=e.value.length;h===d&&d===n&&s>n?(e.selectionStart=s,e.selectionEnd=s):(e.selectionStart=h,e.selectionEnd=Math.min(d,s))}}}),(b&&e.defaultValue!==e.value||t(a)==null&&e.value)&&(v(o(e)?u(e.value):e.value),f!==null&&c.add(f)),_(()=>{var r=a();if(e===document.activeElement){var l=y??f;if(c.has(l))return}o(e)&&r===u(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function S(e,a,v=a){k(e,"change",c=>{var r=c?e.defaultChecked:e.checked;v(r)}),(b&&e.defaultChecked!==e.checked||t(a)==null)&&v(e.checked),_(()=>{var c=a();e.checked=!!c})}function o(e){var a=e.type;return a==="number"||a==="range"}function u(e){return e===""?null:+e}export{S as a,E as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ar as L,as as N,at as I,_ as B,l as E,h as v,au as P,av as U,aw as j,I as M,N as Y,j as K,ax as $,ae as z,ay as C,az as q,w as F,aA as G,aB as Z,aC as H,aD as J,ak as x,aE as D,aF as d}from"./BRMnbBOX.js";import{s as Q,g as V}from"./B394X4Dm.js";let _=!1,S=Symbol();function ne(e,r,i){const n=i[r]??(i[r]={store:null,source:B(void 0),unsubscribe:I});if(n.store!==e&&!(S in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var t=!0;n.unsubscribe=Q(e,s=>{t?n.source.v=s:E(n.source,s)}),t=!1}return e&&S in i?V(e):v(n.source)}function ie(){const e={};function r(){L(()=>{for(var i in e)e[i].unsubscribe();N(e,S,{enumerable:!1,value:!0})})}return[e,r]}function W(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const X={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function te(e,r,i){return new Proxy({props:e,exclude:r},X)}const k={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let t=e.props[n];d(t)&&(t=t());const s=P(t,r);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const t=P(n,r);return t&&!t.configurable&&(t.configurable=!0),t}}},has(e,r){if(r===x||r===D)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function ue(...e){return new Proxy({props:e},k)}function se(e,r,i,n){var O;var t=!G||(i&Z)!==0,s=(i&q)!==0,R=(i&J)!==0,a=n,b=!0,w=()=>(b&&(b=!1,a=R?F(n):n),a),l;if(s){var m=x in e||D in e;l=((O=P(e,r))==null?void 0:O.set)??(m&&r in e?u=>e[r]=u:void 0)}var o,h=!1;s?[o,h]=W(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=w(),l&&(t&&U(),l(o)));var f;if(t?f=()=>{var u=e[r];return u===void 0?w():(b=!0,u)}:f=()=>{var u=e[r];return u!==void 0&&(a=void 0),u===void 0?a:u},t&&!(i&j))return f;if(l){var A=e.$$legacy;return function(u,p){return arguments.length>0?((!t||!p||A||h)&&l(p?f():u),u):f()}}var g=!1,c=(i&H?M:Y)(()=>(g=!1,f()));s&&v(c);var T=z;return function(u,p){if(arguments.length>0){const y=p?v(c):t&&s?K(u):u;return E(c,y),g=!0,a!==void 0&&(a=y),u}return $&&g||T.f&C?c.v:v(c)}}export{ne as a,ue as b,se as p,te as r,ie as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as f,f as p,b as v,c as h,h as x,
|
|
1
|
+
import"./CWj6FrbW.js";import{p as f,f as p,b as v,c as h,h as x,u as _,d as z,r as C}from"./BRMnbBOX.js";import{a as k}from"./CB3MYTwM.js";import{a as B}from"./3HVf2z3Q.js";import{b as w}from"./CmatTLDp.js";import{p as e,r as N}from"./DCT4VKzQ.js";var j=p("<button><!></button>");function H(s,r){f(r,!0);let n=e(r,"variant",3,"primary"),d=e(r,"size",3,"medium"),i=e(r,"type",3,"button"),a=e(r,"disabled",3,!1),b=e(r,"class",3,""),o=e(r,"el",15),c=N(r,["$$slots","$$events","$$legacy","variant","size","type","disabled","class","children","el"]);const l={primary:"border border-thin border-rc-green-450 backdrop-blur-xl rounded-lg text-rc-gray-100 font-bold bg-rc-green-350 hover:bg-rc-green-250 focus:bg-rc-green-200 focus:outline-none active:bg-rc-green-250",secondary:"border border-thin border-rc-gray-050 backdrop-blur-2xl rounded-lg text-rc-gray-100 font-bold bg-rc-gray-930 hover:bg-double-gradient focus:bg-double-gradient focus:outline-none active:bg-double-gradient",outlined:"border border-rc-gray-500 bg-rc-gray-900 font-semibold hover:bg-rc-gray-700 hover:border-rc-gray-400 focus:outline-none focus:ring-0 focus:border-rc-gray-400 active:border-rc-gray-400",ghost:"bg-transparent rounded-lg hover:text-gray-100 focus:text-gray-100 active:text-gray-100"},g={big:"px-4 py-2 text-base",medium:"px-4 py-2 text-base",small:"px-4 py-2 text-base"};let u=_(()=>`text-gray-200
|
|
2
2
|
rounded
|
|
3
3
|
transition-colors
|
|
4
4
|
${l[n()]}
|
|
5
5
|
${g[d()]}
|
|
6
|
-
${
|
|
6
|
+
${a()?"opacity-50 cursor-not-allowed":"cursor-pointer"}
|
|
7
7
|
${b()}
|
|
8
|
-
`.trim());var t=j();B(t,()=>({type:i(),class:x(u),disabled:
|
|
8
|
+
`.trim());var t=j();B(t,()=>({type:i(),class:x(u),disabled:a(),...c}));var y=z(t);k(y,()=>r.children),C(t),w(t,m=>o(m),()=>o()),v(s,t),h()}export{H as B};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{o as j}from"./CB3MYTwM.js";import{p as q,q as K,a as M,b,c as R,h as t,i as L,l as c,f as W,d as T,r as k,t as B,j as F}from"./BRMnbBOX.js";import{i as G}from"./BFchB-2I.js";import{c as N,s as H}from"./3HVf2z3Q.js";import{b as h}from"./CmatTLDp.js";import{p as i}from"./DCT4VKzQ.js";import{P as I}from"./Cob_zFH5.js";var J=W('<div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><!></div></div>');function te(e,n){q(n,!0);let p=i(n,"open",3,!1),d=i(n,"anchorEl",3,null),w=i(n,"id",3,""),O=i(n,"placement",3,"bottom-start"),x=i(n,"offset",19,()=>[0,2]),z=i(n,"flip",3,!0),A=i(n,"preventOverflow",3,!0),y=i(n,"onClose",3,()=>{}),a=L(null),l=L(null);function g(){y()()}function C(o){if(p()&&t(a)&&d()){const s=o.target;!t(a).contains(s)&&!d().contains(s)&&g()}}function E(o){o.key==="Escape"&&p()&&g()}j(()=>{document.addEventListener("click",C,!0),document.addEventListener("keydown",E);const o=()=>{t(l)&&t(l).update()},s=()=>{t(l)&&t(l).update()};return window.addEventListener("resize",o),window.addEventListener("scroll",s,!0),()=>{document.removeEventListener("click",C,!0),document.removeEventListener("keydown",E),window.removeEventListener("resize",o),window.removeEventListener("scroll",s,!0)}});var _=K(),D=M(_);{var P=o=>{h(I(o,{get referenceEl(){return d()},get placement(){return O()},get offset(){return x()},get flip(){return z()},get preventOverflow(){return A()},children:v=>{var f=J(),u=T(f),S=T(u);n.children(S),k(u),h(u,r=>c(a,r),()=>t(a)),k(f),h(f,r=>c(a,r),()=>t(a)),B(()=>{var r;N(f,"id",w()),N(u,"id",w()),H(u,`min-width:${((r=d())==null?void 0:r.offsetWidth)??0}px`)}),b(v,f)},$$slots:{default:!0}}),v=>c(l,v,!0),()=>t(l))};G(D,o=>{p()&&d()&&o(P)})}b(e,_),R()}let m=F([]);function ie(e){return!Q(e)&&!U(e)}function Q(e){return"operationName"in e&&"method"in e&&"path"in e}function U(e){return"eventName"in e&&"role"in e&&"medium"in e&&"content"in e}function ae(e){m.push(e)}function le(e){console.log("[chat-content] addApiCallTrace",e==null?void 0:e.operationName,e==null?void 0:e.method,e==null?void 0:e.path,e),m.push(e)}function se(e){console.log("[chat-content] addConversationalTrace",e==null?void 0:e.eventName,e==null?void 0:e.role,e==null?void 0:e.medium,e),m.push(e)}function re(){m.length=0}export{te as D,U as a,ie as b,m as c,re as d,ae as e,le as f,se as g,Q as i};
|
|
Binary file
|