@intent-hq/web 2.312.0 → 2.313.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/package.json +1 -1
- package/web/app/immutable/chunks/{B2aHvKzW.js → -URcs0EB.js} +2 -2
- package/web/app/immutable/chunks/{BVEbTxE_.js → 04XFWhBd.js} +1 -1
- package/web/app/immutable/chunks/{C46TnD1H.js → 19F8thw1.js} +1 -1
- package/web/app/immutable/chunks/{bcv2TMVC.js → 28aV1Wzl.js} +1 -1
- package/web/app/immutable/chunks/{C6_fF-vn.js → 2O2vJlPl.js} +1 -1
- package/web/app/immutable/chunks/{lGuvxH0P.js → 2bp47GFs.js} +1 -1
- package/web/app/immutable/chunks/{DiN36N-2.js → 2g3BKwo_.js} +2 -2
- package/web/app/immutable/chunks/2zKcFAvZ.js +1 -0
- package/web/app/immutable/chunks/3V4Tx4nH.js +1 -0
- package/web/app/immutable/chunks/{DMiVWfnj.js → 4CMzT_BI.js} +1 -1
- package/web/app/immutable/chunks/{DFo_icpD.js → 6uLD17LP.js} +1 -1
- package/web/app/immutable/chunks/{onlOqkEU.js → 77JHYRqp.js} +22 -22
- package/web/app/immutable/chunks/{Ddfj4iOJ.js → 7IyNIHph.js} +1 -1
- package/web/app/immutable/chunks/{CiN55CeC.js → 7ZJvg7ev.js} +1 -1
- package/web/app/immutable/chunks/{B63GdhMJ.js → 992RyGqf.js} +1 -1
- package/web/app/immutable/chunks/{ChqSx7V8.js → 9sI_nbHm.js} +1 -1
- package/web/app/immutable/chunks/{BDPd3Gxs.js → AGSVFpXc.js} +1 -1
- package/web/app/immutable/chunks/{B1Yylqx8.js → B-agcRbG.js} +1 -1
- package/web/app/immutable/chunks/{Dwxm4mRs.js → B-rSL5ZP.js} +2 -2
- package/web/app/immutable/chunks/{D25S3m8c.js → B-xGvc_0.js} +1 -1
- package/web/app/immutable/chunks/{DB5R3D7Y.js → B0qtRhuw.js} +1 -1
- package/web/app/immutable/chunks/{BnAX9yTi.js → B1Rrvp0b.js} +1 -1
- package/web/app/immutable/chunks/{LnbsKux_.js → B2RRuLl5.js} +1 -1
- package/web/app/immutable/chunks/{8ZUxx0Co.js → B3nB6DWs.js} +1 -1
- package/web/app/immutable/chunks/{CWKTWYM7.js → B6mHy78M.js} +1 -1
- package/web/app/immutable/chunks/{Yu0gam1U.js → B6oQfzis.js} +1 -1
- package/web/app/immutable/chunks/{CLevwIvK.js → B7-651e2.js} +1 -1
- package/web/app/immutable/chunks/{Co6qQZL7.js → B721JIop.js} +2 -2
- package/web/app/immutable/chunks/{BXmFIcIP.js → B8VhjfbW.js} +1 -1
- package/web/app/immutable/chunks/{Z5fbCd-X.js → B9F8nd-t.js} +4 -4
- package/web/app/immutable/chunks/{CddrLe5o.js → B9pAuhbK.js} +1 -1
- package/web/app/immutable/chunks/{BqddjWz6.js → BAQDI3wv.js} +1 -1
- package/web/app/immutable/chunks/BAqR9jtB.js +1 -0
- package/web/app/immutable/chunks/{ZjB_ER6s.js → BBRz8JFJ.js} +1 -1
- package/web/app/immutable/chunks/{li27w4Od.js → BCDWZbwh.js} +1 -1
- package/web/app/immutable/chunks/{B195Jf7v.js → BCoW5DN6.js} +3 -3
- package/web/app/immutable/chunks/{CVVkCR3K.js → BDGDJyji.js} +1 -1
- package/web/app/immutable/chunks/{C6AEaqMK.js → BDICjj7k.js} +1 -1
- package/web/app/immutable/chunks/{DGjSXQQ8.js → BDXCy3lH.js} +1 -1
- package/web/app/immutable/chunks/{htWd8PdL.js → BE-b7v7R.js} +1 -1
- package/web/app/immutable/chunks/{BlvwJgNV.js → BEVpCf6b.js} +1 -1
- package/web/app/immutable/chunks/{DaUwNiAB.js → BFETMHTz.js} +3 -3
- package/web/app/immutable/chunks/{uxsR8mHg.js → BFpzDysH.js} +1 -1
- package/web/app/immutable/chunks/{-g2yD8nW.js → BGGxKX5q.js} +1 -1
- package/web/app/immutable/chunks/{CcoNUQ4q.js → BGYaMCAp.js} +1 -1
- package/web/app/immutable/chunks/{B1fMeJph.js → BHqHNrOT.js} +1 -1
- package/web/app/immutable/chunks/{CpLMWsmF.js → BKTydVIY.js} +1 -1
- package/web/app/immutable/chunks/{BJ9Pk-Qc.js → BLDT4lze.js} +1 -1
- package/web/app/immutable/chunks/{BlzuC8vd.js → BM7ZHc1t.js} +2 -2
- package/web/app/immutable/chunks/{Cu9hF6Lj.js → BMkc6ng0.js} +1 -1
- package/web/app/immutable/chunks/{66T_vlm_.js → BN6Sv1MY.js} +1 -1
- package/web/app/immutable/chunks/{C8M-Eryf.js → BNHRvqeQ.js} +1 -1
- package/web/app/immutable/chunks/{BY5CEwGM.js → BNasdn-P.js} +1 -1
- package/web/app/immutable/chunks/{DU64vtBR.js → BPk16bSc.js} +1 -1
- package/web/app/immutable/chunks/{Dm_KenRX.js → BQFqw3YD.js} +1 -1
- package/web/app/immutable/chunks/{Bk-q0J3W.js → BR8jrnEs.js} +1 -1
- package/web/app/immutable/chunks/{CcnOA9dj.js → BRNfUSNR.js} +1 -1
- package/web/app/immutable/chunks/{DaA44xVk.js → BSwWMzab.js} +5 -5
- package/web/app/immutable/chunks/{B1LFg8Ni.js → BUjtm23k.js} +1 -1
- package/web/app/immutable/chunks/{K1Aj4aiz.js → BVkJyN1U.js} +2 -2
- package/web/app/immutable/chunks/{DEA2ISnw.js → BXMFG8vW.js} +1 -1
- package/web/app/immutable/chunks/{CmZ4R63v.js → BZ90Gl9e.js} +1 -1
- package/web/app/immutable/chunks/{qCTbBtmS.js → B_CpN824.js} +1 -1
- package/web/app/immutable/chunks/{D6Tu0KcL.js → B_ifqSee.js} +6 -6
- package/web/app/immutable/chunks/{3xBR6H3M.js → BaWcyleE.js} +1 -1
- package/web/app/immutable/chunks/{DNPjjQTW.js → Bc-8qHYh.js} +1 -1
- package/web/app/immutable/chunks/{Bg-wwj8e.js → Bc2zOKbx.js} +1 -1
- package/web/app/immutable/chunks/{wFaVm_je.js → BcVu_y1Z.js} +1 -1
- package/web/app/immutable/chunks/{Db_s6atq.js → BdetxH0g.js} +1 -1
- package/web/app/immutable/chunks/{Bgo6QmNg.js → Bf1tCDQg.js} +1 -1
- package/web/app/immutable/chunks/{Cts5KPIk.js → BfxxnTgV.js} +1 -1
- package/web/app/immutable/chunks/{0BDej8J9.js → BgUzpkp7.js} +1 -1
- package/web/app/immutable/chunks/{D728aNnl.js → BgyuoEGq.js} +1 -1
- package/web/app/immutable/chunks/{BUhKOoKe.js → BiMGZT5w.js} +2 -2
- package/web/app/immutable/chunks/BkKnMUvE.js +1 -0
- package/web/app/immutable/chunks/{Brz_LsyP.js → Bl_iEh1f.js} +1 -1
- package/web/app/immutable/chunks/{CFKI_75v.js → BlfjnWuH.js} +3 -3
- package/web/app/immutable/chunks/{B4eSJ_b5.js → Bops7MsY.js} +29 -29
- package/web/app/immutable/chunks/{RGxIilBQ.js → Bpy6Muvw.js} +4 -4
- package/web/app/immutable/chunks/Br5d6l04.js +1 -0
- package/web/app/immutable/chunks/{DHQetc-m.js → BtAYzBSd.js} +1 -1
- package/web/app/immutable/chunks/{Bj1XwsOw.js → Bvq2wF7r.js} +7 -7
- package/web/app/immutable/chunks/{cLppJexf.js → BwK5Bace.js} +1 -1
- package/web/app/immutable/chunks/{CwAr2bfc.js → BxiJOwnz.js} +1 -1
- package/web/app/immutable/chunks/{Civ86Ers.js → C0VJEx2v.js} +1 -1
- package/web/app/immutable/chunks/{BUJT8nbP.js → C11wqToa.js} +1 -1
- package/web/app/immutable/chunks/{D8Iqos3S.js → C1XicA-w.js} +1 -1
- package/web/app/immutable/chunks/{B95izTqM.js → C2L4VLjE.js} +1 -1
- package/web/app/immutable/chunks/C3X16aYc.js +1 -0
- package/web/app/immutable/chunks/{YdCQJnUj.js → C48G3Oh4.js} +1 -1
- package/web/app/immutable/chunks/{DwCiT34L.js → C4XQStEU.js} +1 -1
- package/web/app/immutable/chunks/{Q3Bjy5v7.js → C58wlt4Q.js} +2 -2
- package/web/app/immutable/chunks/{B6tJ7e7m.js → C5EEwI0-.js} +2 -2
- package/web/app/immutable/chunks/{CKcLU7Ix.js → C5Nz-crT.js} +1 -1
- package/web/app/immutable/chunks/{CHk37LgR.js → C5c-LdLT.js} +1 -1
- package/web/app/immutable/chunks/{C8G4GKsE.js → C6L7wkhi.js} +1 -1
- package/web/app/immutable/chunks/{QiI6ZCof.js → C8_w7W1W.js} +4 -4
- package/web/app/immutable/chunks/{BP22EbgY.js → C8reKsm7.js} +1 -1
- package/web/app/immutable/chunks/{D7b_n5fi.js → C9gP-gRX.js} +3 -3
- package/web/app/immutable/chunks/{DhmDkL56.js → CAK2j9T_.js} +1 -1
- package/web/app/immutable/chunks/{0KiNbR5l.js → CBwn70Pq.js} +1 -1
- package/web/app/immutable/chunks/{5jwgbfJ7.js → CBzaXebB.js} +1 -1
- package/web/app/immutable/chunks/{BIsm3Ahi.js → CCIxcA5l.js} +1 -1
- package/web/app/immutable/chunks/{3U-mPo_x.js → CCxcLQdk.js} +1 -1
- package/web/app/immutable/chunks/{DUIaBcOd.js → CDE88Tgk.js} +2 -2
- package/web/app/immutable/chunks/{GiRbWuMt.js → CEWfqweJ.js} +1 -1
- package/web/app/immutable/chunks/{Bqekhi5h.js → CHtSQ3Rg.js} +1 -1
- package/web/app/immutable/chunks/{BNn2h7IG.js → CJCZCJxO.js} +1 -1
- package/web/app/immutable/chunks/{19JeQ6BX.js → CKJYXvLT.js} +1 -1
- package/web/app/immutable/chunks/{M4M675TN.js → CM7ZaQP_.js} +1 -1
- package/web/app/immutable/chunks/{DsKjRYyi.js → CNMS2KOf.js} +1 -1
- package/web/app/immutable/chunks/CPfTSiRI.js +1 -0
- package/web/app/immutable/chunks/{BG1ODLUu.js → CPzgXxXu.js} +1 -1
- package/web/app/immutable/chunks/{T-DUA-1O.js → CRgLy9Dv.js} +1 -1
- package/web/app/immutable/chunks/{CFyiOaFx.js → CVvtz86e.js} +3 -3
- package/web/app/immutable/chunks/{Bh9tHAiY.js → CYlqp1HL.js} +49 -49
- package/web/app/immutable/chunks/{U838LLRH.js → CYtxGPAf.js} +1 -1
- package/web/app/immutable/chunks/CZI4_vlI.js +1 -0
- package/web/app/immutable/chunks/{CXqStKXr.js → C_73TJPq.js} +1 -1
- package/web/app/immutable/chunks/{D08RO1VG.js → CatH1hIe.js} +1 -1
- package/web/app/immutable/chunks/{BFbKEECb.js → Cb7SCycF.js} +1 -1
- package/web/app/immutable/chunks/{B6RmASgD.js → Ccf4dYFA.js} +1 -1
- package/web/app/immutable/chunks/{CWlg1b-s.js → CeQYwwry.js} +1 -1
- package/web/app/immutable/chunks/CgAzfuNr.js +1 -0
- package/web/app/immutable/chunks/{DPHQ6GUU.js → CnfYogWn.js} +1 -1
- package/web/app/immutable/chunks/{Z7mWElPD.js → Cnihm-Nc.js} +1 -1
- package/web/app/immutable/chunks/{BYLg_iMr.js → CoKEteoj.js} +1 -1
- package/web/app/immutable/chunks/{BsLhCljI.js → Cop9b2dY.js} +1 -1
- package/web/app/immutable/chunks/{OeYTP1p9.js → Cpw4G06I.js} +1 -1
- package/web/app/immutable/chunks/{BNVixDQg.js → Cpwl5RRn.js} +1 -1
- package/web/app/immutable/chunks/{BawsvKy-.js → CqzZhYYx.js} +1 -1
- package/web/app/immutable/chunks/{CPy8SeUf.js → Cw6SlTJ6.js} +2 -2
- package/web/app/immutable/chunks/{CIx9_tZJ.js → CxPdVa60.js} +1 -1
- package/web/app/immutable/chunks/{DRwfCI3n.js → CzRl1R1n.js} +1 -1
- package/web/app/immutable/chunks/{C1SG0POo.js → D-XHjwsv.js} +1 -1
- package/web/app/immutable/chunks/{CwwcEFDp.js → D-rJNj43.js} +1 -1
- package/web/app/immutable/chunks/{CgIYxUJQ.js → D0Dsw2tV.js} +1 -1
- package/web/app/immutable/chunks/{BPvrn9n_.js → D0NG9Gzz.js} +2 -2
- package/web/app/immutable/chunks/{DQpR_z9x.js → D0tEEJ7X.js} +1 -1
- package/web/app/immutable/chunks/{C3ePiQWu.js → D6DsI_Sr.js} +1 -1
- package/web/app/immutable/chunks/{ffaoYO6L.js → D9SqGY86.js} +1 -1
- package/web/app/immutable/chunks/{vOfkzWZD.js → DBfJXlLJ.js} +1 -1
- package/web/app/immutable/chunks/{Ba7aiW_M.js → DCcgbj-g.js} +1 -1
- package/web/app/immutable/chunks/{xXCdIyF3.js → DD-f8Y3V.js} +1 -1
- package/web/app/immutable/chunks/{D4dn9g8x.js → DE32xZOO.js} +1 -1
- package/web/app/immutable/chunks/{BtTToJTU.js → DEfnfMIS.js} +3 -3
- package/web/app/immutable/chunks/{CJ4_4cNv.js → DFq6CFhq.js} +1 -1
- package/web/app/immutable/chunks/{EyZ0nhwB.js → DFzMoFQx.js} +4 -4
- package/web/app/immutable/chunks/{BRYVEoAL.js → DGAww3vc.js} +1 -1
- package/web/app/immutable/chunks/{B_mg6-Vc.js → DH9gMPGd.js} +1 -1
- package/web/app/immutable/chunks/{wV3lKTnH.js → DJCJ21BX.js} +1 -1
- package/web/app/immutable/chunks/{C44r02pn.js → DKPwGUzq.js} +1 -1
- package/web/app/immutable/chunks/{vV7Eo_ua.js → DKXEy5Lq.js} +1 -1
- package/web/app/immutable/chunks/{DlM5T-ri.js → DKhv0I45.js} +1 -1
- package/web/app/immutable/chunks/{Bl-s542_.js → DNo4fphO.js} +1 -1
- package/web/app/immutable/chunks/{BVNJnx5b.js → DO2cS8JO.js} +1 -1
- package/web/app/immutable/chunks/{Bd8zPJ0R.js → DOzphY7c.js} +1 -1
- package/web/app/immutable/chunks/{QfXYPrZH.js → DPcbMgdd.js} +2 -2
- package/web/app/immutable/chunks/{CR_HWuhj.js → DPiGMYKs.js} +1 -1
- package/web/app/immutable/chunks/{rpm2NzpE.js → DQRxUuCh.js} +1 -1
- package/web/app/immutable/chunks/{Pow4u-14.js → DSRwOSd4.js} +1 -1
- package/web/app/immutable/chunks/{CIL9eyec.js → DTMKqgRU.js} +1 -1
- package/web/app/immutable/chunks/{CwBMLcFF.js → DW9ZR5Up.js} +1 -1
- package/web/app/immutable/chunks/{BMoOyvL9.js → DY6JypjK.js} +1 -1
- package/web/app/immutable/chunks/{BlZonKZY.js → DZ64qqlL.js} +1 -1
- package/web/app/immutable/chunks/{BIwSEl2U.js → DZuInc-o.js} +1 -1
- package/web/app/immutable/chunks/{Cee62BOx.js → D_uOXHFE.js} +1 -1
- package/web/app/immutable/chunks/{dzprHFyK.js → DaWdrOD0.js} +1 -1
- package/web/app/immutable/chunks/{CsQu3MKC.js → DcYvv2Iw.js} +1 -1
- package/web/app/immutable/chunks/{ZaVuh6Ie.js → DeBw56y4.js} +1 -1
- package/web/app/immutable/chunks/{BGpTsVFh.js → DfTvRpFp.js} +1 -1
- package/web/app/immutable/chunks/{BBg1ABUj.js → DgJXm20t.js} +1 -1
- package/web/app/immutable/chunks/{xQjZTcxq.js → DhAv1XMF.js} +1 -1
- package/web/app/immutable/chunks/{BPso9ZTU.js → DhXr1ZqD.js} +1 -1
- package/web/app/immutable/chunks/{C9Ba8Wsx.js → DiCMHWTR.js} +1 -1
- package/web/app/immutable/chunks/{tA5hPyrR.js → DiVHUgRZ.js} +2 -2
- package/web/app/immutable/chunks/{CMmlAySy.js → DijSalri.js} +1 -1
- package/web/app/immutable/chunks/{C1-APN-K.js → DkrnUdRW.js} +1 -1
- package/web/app/immutable/chunks/{CHKw7UrD.js → DmsGklpx.js} +1 -1
- package/web/app/immutable/chunks/{DCYjhyno.js → DoCNcHnE.js} +3 -3
- package/web/app/immutable/chunks/{CQolNqfo.js → DqLOhjhM.js} +8 -8
- package/web/app/immutable/chunks/{ZS63KZzT.js → DqTygHNa.js} +4 -4
- package/web/app/immutable/chunks/{X868iZaW.js → DsU6W5Yf.js} +1 -1
- package/web/app/immutable/chunks/{i6q5e9Bi.js → Dt9TrzFG.js} +1 -1
- package/web/app/immutable/chunks/{CMNPJIlE.js → DuRHazc8.js} +1 -1
- package/web/app/immutable/chunks/{CtZpQlR0.js → DuVelotc.js} +2 -2
- package/web/app/immutable/chunks/{sbHX8DXH.js → DvC622kv.js} +1 -1
- package/web/app/immutable/chunks/{aHlukoGt.js → DvExZ34Y.js} +1 -1
- package/web/app/immutable/chunks/{CUhYwYxv.js → DwbQaKgL.js} +1 -1
- package/web/app/immutable/chunks/{Co9bnw2t.js → DwdStl3H.js} +11 -11
- package/web/app/immutable/chunks/{B1XZ9Wy8.js → Dxpr5NqS.js} +1 -1
- package/web/app/immutable/chunks/{BwN9PPwq.js → DzfdD6YD.js} +1 -1
- package/web/app/immutable/chunks/EEJgvLyS.js +1 -0
- package/web/app/immutable/chunks/{BqAelQe2.js → IB-HmS7d.js} +1 -1
- package/web/app/immutable/chunks/{-dq3wJnW.js → Io79CQwx.js} +1 -1
- package/web/app/immutable/chunks/{CjJ2aG8c.js → KFwqetYG.js} +1 -1
- package/web/app/immutable/chunks/{BqK5afB2.js → LoSFphII.js} +1 -1
- package/web/app/immutable/chunks/{CXsLrVJH.js → OS5fDMId.js} +1 -1
- package/web/app/immutable/chunks/{OAsZcRpW.js → P4NanOkc.js} +1 -1
- package/web/app/immutable/chunks/{Frujgmwq.js → PTzYQcOR.js} +1 -1
- package/web/app/immutable/chunks/{DYe4BNIz.js → QCq950da.js} +1 -1
- package/web/app/immutable/chunks/{8rrBGDgQ.js → UuiGcpAE.js} +1 -1
- package/web/app/immutable/chunks/{SU_Zxid7.js → V553m0MO.js} +1 -1
- package/web/app/immutable/chunks/{CWlxHxOH.js → X-W6j8OD.js} +1 -1
- package/web/app/immutable/chunks/{CpbXsTys.js → XzWc0fs1.js} +1 -1
- package/web/app/immutable/chunks/{rWFIPcdV.js → Y6LratEc.js} +1 -1
- package/web/app/immutable/chunks/{DFV_t0gv.js → YH3VI7O_.js} +1 -1
- package/web/app/immutable/chunks/{ICkI56ZY.js → _4p7wl12.js} +1 -1
- package/web/app/immutable/chunks/{CDGEKoBr.js → aegF9YRH.js} +1 -1
- package/web/app/immutable/chunks/{URtDzPe4.js → cUCU_6OD.js} +1 -1
- package/web/app/immutable/chunks/{BDF6V5e0.js → dKjrvSqn.js} +1 -1
- package/web/app/immutable/chunks/{17TgXovQ.js → gqVNwlAV.js} +1 -1
- package/web/app/immutable/chunks/{BEBrFxQu.js → h4HcKsDl.js} +1 -1
- package/web/app/immutable/chunks/{C6JSYFyu.js → hacdNVQl.js} +1 -1
- package/web/app/immutable/chunks/{DjeoEINQ.js → hcpthRFf.js} +1 -1
- package/web/app/immutable/chunks/{SAR1HpYu.js → i92hRJko.js} +3 -3
- package/web/app/immutable/chunks/{DyLPqvAi.js → jvw1Fn3k.js} +1 -1
- package/web/app/immutable/chunks/{BP56q1O2.js → kRmfkT9J.js} +2 -2
- package/web/app/immutable/chunks/{BwRcoxdV.js → ldCNaZ5F.js} +1 -1
- package/web/app/immutable/chunks/{daIBqHmL.js → n2a_8s79.js} +1 -1
- package/web/app/immutable/chunks/{DexjcGy5.js → nt8jKVrH.js} +1 -1
- package/web/app/immutable/chunks/{HHVVLLOo.js → okmbexJZ.js} +1 -1
- package/web/app/immutable/chunks/{DdRYjUTh.js → qHcHiO2c.js} +1 -1
- package/web/app/immutable/chunks/{BioErF0E.js → sLnx1Tu5.js} +1 -1
- package/web/app/immutable/chunks/{I6iBDGZz.js → tuNJ429u.js} +1 -1
- package/web/app/immutable/chunks/{BeJPCJYr.js → um4u3A9l.js} +6 -6
- package/web/app/immutable/chunks/{DPQGeIyJ.js → xlntbOPQ.js} +2 -2
- package/web/app/immutable/chunks/{BjPJabzV.js → yNufUFm8.js} +1 -1
- package/web/app/immutable/entry/{app.zU9yYpXi.js → app.Co8E4L03.js} +3 -3
- package/web/app/immutable/entry/start.CBL0QUZV.js +1 -0
- package/web/app/immutable/nodes/{0.CpVAzuif.js → 0.BucKx3Zo.js} +1 -1
- package/web/app/immutable/nodes/{1.DRuW-6VC.js → 1.-v_Vj9ip.js} +1 -1
- package/web/app/immutable/nodes/{10.DKrkS2Ck.js → 10.BnlxMSMI.js} +4 -4
- package/web/app/immutable/nodes/{11.C3gubzv3.js → 11.BtNxR4dm.js} +1 -1
- package/web/app/immutable/nodes/{12.DwCDRGkT.js → 12.DQmthXqN.js} +1 -1
- package/web/app/immutable/nodes/{13.CUd5S4Yi.js → 13.pfWPVnQT.js} +3 -3
- package/web/app/immutable/nodes/{14.u0qAwLFY.js → 14.Ca9GXwJ0.js} +2 -2
- package/web/app/immutable/nodes/{15.D5mdZsCG.js → 15.CkuJDDnR.js} +1 -1
- package/web/app/immutable/nodes/{16.Di9o_NeI.js → 16.Dk1EKS3B.js} +2 -2
- package/web/app/immutable/nodes/2.Bazc0fR2.js +9 -0
- package/web/app/immutable/nodes/{3.BdPudEJY.js → 3.CCsh91Fv.js} +1 -1
- package/web/app/immutable/nodes/4.C_FHoeDU.js +1 -0
- package/web/app/immutable/nodes/5.DegIKxsI.js +5 -0
- package/web/app/immutable/nodes/{6.TDtUMw8i.js → 6.F6OlLFwi.js} +1 -1
- package/web/app/immutable/nodes/{7.heLExSUY.js → 7.quuP6x8b.js} +1 -1
- package/web/app/immutable/nodes/{8.iXetk1_-.js → 8.xtRgDwRj.js} +4 -4
- package/web/app/immutable/nodes/{9.Bq9HwFsC.js → 9.DFsNNJdd.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/7FhPODJU.js +0 -1
- package/web/app/immutable/chunks/B-EQoMaE.js +0 -1
- package/web/app/immutable/chunks/BV49_RX-.js +0 -1
- package/web/app/immutable/chunks/BzwgImum.js +0 -1
- package/web/app/immutable/chunks/C-BI-o7z.js +0 -1
- package/web/app/immutable/chunks/CGtpSJYQ.js +0 -1
- package/web/app/immutable/chunks/CHmKgzDw.js +0 -1
- package/web/app/immutable/chunks/CfR8DHmm.js +0 -1
- package/web/app/immutable/chunks/CqtVr5NT.js +0 -1
- package/web/app/immutable/chunks/D1jYkFlI.js +0 -1
- package/web/app/immutable/entry/start.DtsLJnWx.js +0 -1
- package/web/app/immutable/nodes/2.CjuG4Yin.js +0 -9
- package/web/app/immutable/nodes/4.DvwRKOcg.js +0 -1
- package/web/app/immutable/nodes/5.gCklR-Wk.js +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var ep=Object.defineProperty;var tp=Object.getPrototypeOf;var np=Reflect.get;var vu=t=>{throw TypeError(t)};var rp=(t,e,n)=>e in t?ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var P=(t,e,n)=>rp(t,typeof e!="symbol"?e+"":e,n),ll=(t,e,n)=>e.has(t)||vu("Cannot "+n);var l=(t,e,n)=>(ll(t,e,"read from private field"),n?n.call(t):e.get(t)),C=(t,e,n)=>e.has(t)?vu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),I=(t,e,n,r)=>(ll(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),F=(t,e,n)=>(ll(t,e,"access private method"),n);var yu=(t,e,n,r)=>({set _(o){I(t,e,o,n)},get _(){return l(t,e,r)}}),wu=(t,e,n)=>np(tp(t),n,e);import{t as Te,bq as h,by as Ee,b as Oe,a_ as Ne,bt as So,br as Cr,bo as V,_ as as}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/4CMzT_BI.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/DijSalri.js","/app/immutable/chunks/C8_w7W1W.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C11wqToa.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/CzRl1R1n.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BtAYzBSd.js","/app/immutable/chunks/BPk16bSc.js","/app/immutable/assets/spinner.D_TRo5Hy.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ep=Object.defineProperty;var tp=Object.getPrototypeOf;var np=Reflect.get;var vu=t=>{throw TypeError(t)};var rp=(t,e,n)=>e in t?ep(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var P=(t,e,n)=>rp(t,typeof e!="symbol"?e+"":e,n),ll=(t,e,n)=>e.has(t)||vu("Cannot "+n);var l=(t,e,n)=>(ll(t,e,"read from private field"),n?n.call(t):e.get(t)),C=(t,e,n)=>e.has(t)?vu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),I=(t,e,n,r)=>(ll(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),F=(t,e,n)=>(ll(t,e,"access private method"),n);var yu=(t,e,n,r)=>({set _(o){I(t,e,o,n)},get _(){return l(t,e,r)}}),wu=(t,e,n)=>np(tp(t),n,e);import{t as Te,bq as h,by as Ee,b as Oe,a_ as Ne,bt as So,br as Cr,bo as V,_ as as}from"./BAqR9jtB.js";import{A as op,bV as oe,c8 as Cu,ao as $n,bY as kr,bU as ip,b5 as bs,aD as w,bH as N,aV as ao,c9 as U,br as Hn,aa as xd,bi as Ie,aM as sp,aG as Ol,bI as ap,cb as lp,ca as Le,c5 as ko,c0 as cp,bs as Pe,a7 as ue,ay as se,bf as xe,W as Z,bn as _e,aA as p,aF as up,bb as dp,c3 as fp,at as Sd,bk as hp,bS as mn,aB as Ke,bo as Sc,a5 as He,bA as Fe,b$ as kd,b_ as br,bO as Pl,bl as pp,be as gp}from"./DYhIMPy1.js";import{s as ye}from"./DiCMHWTR.js";import{e as cl,c as Jt,f as Kn,d as Us,k as vo,h as mp,p as kc,I as bp}from"./BPk16bSc.js";import{b as Ad}from"./BaIAhI85.js";import{c as lo}from"./B2RRuLl5.js";import{E as vp,S as Td,M as yp,b as Hs,c as wp,I as Ka,w as Ed,L as Od,e as Cp,r as xp,f as Sp,J as kp,n as Ap,o as Tp,l as Ep,m as Op,C as Pp,d as _p,i as Ip,h as Mp,g as Rp,k as Np,x as Dp,z as Fp}from"./UuiGcpAE.js";import{o as D,l as ne,c as Ae,b as $e,s as L,_ as et,g as Lp,e as yo,n as gn,d as bt}from"./UyBYtOpv.js";import{f as Or,P as Bp,B as Ce,R as zp,e as Vp,c as Wp,r as Up,s as Hp}from"./C11wqToa.js";import{e as Ac,R as Kp,c as Qr,a as ro,E as ja,f as jp,s as Gp,m as kn,d as qp}from"./BlOn95cv.js";function Yp(){return Symbol(op)}var Ut,kt,Ht,aa,Mt,po,Os;const Qc=class Qc extends Map{constructor(n){super();C(this,Mt);C(this,Ut,new Map);C(this,kt,oe(0));C(this,Ht,oe(0));C(this,aa,Cu||-1);if($n&&(n=new Map(n),kr(l(this,kt),"SvelteMap version"),kr(l(this,Ht),"SvelteMap.size")),n){for(var[r,o]of n)super.set(r,o);l(this,Ht).v=super.size}}has(n){var r=l(this,Ut),o=r.get(n);if(o===void 0)if(super.has(n))o=F(this,Mt,po).call(this,0),$n&&kr(o,`SvelteMap get(${bs(n)})`),r.set(n,o);else return w(l(this,kt)),!1;return w(o),!0}forEach(n,r){F(this,Mt,Os).call(this),super.forEach(n,r)}get(n){var r=l(this,Ut),o=r.get(n);if(o===void 0)if(super.has(n))o=F(this,Mt,po).call(this,0),$n&&kr(o,`SvelteMap get(${bs(n)})`),r.set(n,o);else{w(l(this,kt));return}return w(o),super.get(n)}getOrInsert(n,r){return super.has(n)||this.set(n,r),this.get(n)}getOrInsertComputed(n,r){return super.has(n)||this.set(n,r(n)),this.get(n)}set(n,r){var o=l(this,Ut),i=o.get(n),s=super.get(n),a=super.set(n,r),c=l(this,kt);if(i===void 0)i=F(this,Mt,po).call(this,0),$n&&kr(i,`SvelteMap get(${bs(n)})`),o.set(n,i),N(l(this,Ht),super.size),ao(c);else if(s!==r){ao(i);var u=c.reactions===null?null:new Set(c.reactions),d=u===null||!i.reactions?.every(f=>u.has(f));d&&ao(c)}return a}delete(n){var r=l(this,Ut),o=r.get(n),i=super.delete(n);return o!==void 0&&(r.delete(n),N(o,-1)),i&&(N(l(this,Ht),super.size),ao(l(this,kt))),i}clear(){if(super.size!==0){super.clear();var n=l(this,Ut);N(l(this,Ht),0);for(var r of n.values())N(r,-1);ao(l(this,kt)),n.clear()}}keys(){return w(l(this,kt)),super.keys()}values(){return F(this,Mt,Os).call(this),super.values()}entries(){return F(this,Mt,Os).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return w(l(this,Ht)),super.size}};Ut=new WeakMap,kt=new WeakMap,Ht=new WeakMap,aa=new WeakMap,Mt=new WeakSet,po=function(n){return Cu===l(this,aa)?oe(n):ip(n)},Os=function(){w(l(this,kt));var n=l(this,Ut);if(l(this,Ht).v!==n.size){for(var r of wu(Qc.prototype,this,"keys").call(this))if(!n.has(r)){var o=F(this,Mt,po).call(this,0);$n&&kr(o,`SvelteMap get(${bs(r)})`),n.set(r,o)}}for([,o]of l(this,Ut))w(o)};let _l=Qc;function Xp(t){return typeof t=="function"}function ls(t){return t!==null&&typeof t=="object"}const Zp=["string","number","bigint","boolean"];function Il(t){return t==null||Zp.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>Il(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const $r=Symbol("box"),Ga=Symbol("is-writable");function G(t,e){const n=U(t);return e?{[$r]:!0,[Ga]:!0,get current(){return w(n)},set current(r){e(r)}}:{[$r]:!0,get current(){return t()}}}function cs(t){return ls(t)&&$r in t}function Tc(t){return cs(t)&&Ga in t}function Pd(t){return cs(t)?t:Xp(t)?G(t):Ct(t)}function Jp(t){return Object.entries(t).reduce((e,[n,r])=>cs(r)?(Tc(r)?Object.defineProperty(e,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(e,n,{get(){return r.current}}),e):Object.assign(e,{[n]:r}),{})}function Qp(t){return Tc(t)?{[$r]:!0,get current(){return t.current}}:t}function Ct(t){let e=oe(Hn(t));return{[$r]:!0,[Ga]:!0,get current(){return w(e)},set current(n){N(e,n,!0)}}}function xr(t){let e=oe(Hn(t));return{[$r]:!0,[Ga]:!0,get current(){return w(e)},set current(n){N(e,n,!0)}}}xr.from=Pd;xr.with=G;xr.flatten=Jp;xr.readonly=Qp;xr.isBox=cs;xr.isWritableBox=Tc;function _d(...t){return function(e){for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):n.current?.call(this,e)}}}var xu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$p=/\n/g,eg=/^\s*/,tg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ng=/^:\s*/,rg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,og=/^[;\s]*/,ig=/^\s+|\s+$/g,sg=`
|
|
3
3
|
`,Su="/",ku="*",er="",ag="comment",lg="declaration";function cg(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(v){var m=v.match($p);m&&(n+=m.length);var E=v.lastIndexOf(sg);r=~E?v.length-E:r+v.length}function i(){var v={line:n,column:r};return function(m){return m.position=new s(v),u(),m}}function s(v){this.start=v,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function a(v){var m=new Error(e.source+":"+n+":"+r+": "+v);if(m.reason=v,m.filename=e.source,m.line=n,m.column=r,m.source=t,!e.silent)throw m}function c(v){var m=v.exec(t);if(m){var E=m[0];return o(E),t=t.slice(E.length),m}}function u(){c(eg)}function d(v){var m;for(v=v||[];m=f();)m!==!1&&v.push(m);return v}function f(){var v=i();if(!(Su!=t.charAt(0)||ku!=t.charAt(1))){for(var m=2;er!=t.charAt(m)&&(ku!=t.charAt(m)||Su!=t.charAt(m+1));)++m;if(m+=2,er===t.charAt(m-1))return a("End of comment missing");var E=t.slice(2,m-2);return r+=2,o(E),t=t.slice(m),r+=2,v({type:ag,comment:E})}}function g(){var v=i(),m=c(tg);if(m){if(f(),!c(ng))return a("property missing ':'");var E=c(rg),T=v({type:lg,property:Au(m[0].replace(xu,er)),value:E?Au(E[0].replace(xu,er)):er});return c(og),T}}function b(){var v=[];d(v);for(var m;m=g();)m!==!1&&(v.push(m),d(v));return v}return u(),b()}function Au(t){return t?t.replace(ig,er):er}function ug(t,e){let n=null;if(!t||typeof t!="string")return n;const r=cg(t),o=typeof e=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:s,value:a}=i;o?e(s,a,i):a&&(n=n||{},n[s]=a)}),n}const dg=/\d/,fg=["-","_","/","."];function hg(t=""){if(!dg.test(t))return t!==t.toLowerCase()}function pg(t){const e=[];let n="",r,o;for(const i of t){const s=fg.includes(i);if(s===!0){e.push(n),n="",r=void 0;continue}const a=hg(i);if(o===!1){if(r===!1&&a===!0){e.push(n),n=i,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);e.push(n.slice(0,Math.max(0,n.length-1))),n=c+i,r=a;continue}}n+=i,r=a,o=s}return e.push(n),e}function Id(t){return t?pg(t).map(e=>mg(e)).join(""):""}function gg(t){return bg(Id(t||""))}function mg(t){return t?t[0].toUpperCase()+t.slice(1):""}function bg(t){return t?t[0].toLowerCase()+t.slice(1):""}function go(t){if(!t)return{};const e={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){e[Id(r)]=o;return}if(r.startsWith("--")){e[r]=o;return}e[gg(r)]=o}return ug(t,n),e}function Pr(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}function vg(t,e){const n=RegExp(t,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,e):r}}const yg=vg(/[A-Z]/,t=>`-${t.toLowerCase()}`);function wg(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=>`${yg(e)}: ${t[e]};`).join(`
|
|
4
4
|
`)}function Md(t={}){return wg(t).replace(`
|
|
5
5
|
`," ")}const Cg=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],xg=new Set(Cg);function Sg(t){return xg.has(t)}function Zt(...t){const e={...t[0]};for(let n=1;n<t.length;n++){const r=t[n];if(r){for(const o of Object.keys(r)){const i=e[o],s=r[o],a=typeof i=="function",c=typeof s=="function";if(a&&Sg(o)){const u=i,d=s;e[o]=_d(u,d)}else if(a&&c)e[o]=Pr(i,s);else if(o==="class"){const u=Il(i),d=Il(s);u&&d?e[o]=cl(i,s):u?e[o]=cl(i):d&&(e[o]=cl(s))}else if(o==="style"){const u=typeof i=="object",d=typeof s=="object",f=typeof i=="string",g=typeof s=="string";if(u&&d)e[o]={...i,...s};else if(u&&g){const b=go(s);e[o]={...i,...b}}else if(f&&d){const b=go(i);e[o]={...b,...s}}else if(f&&g){const b=go(i),v=go(s);e[o]={...b,...v}}else u?e[o]=i:d?e[o]=s:f?e[o]=i:g&&(e[o]=s)}else e[o]=s!==void 0?s:i}for(const o of Object.getOwnPropertySymbols(r)){const i=e[o],s=r[o];e[o]=s!==void 0?s:i}}}return typeof e.style=="object"&&(e.style=Md(e.style).replaceAll(`
|
|
6
6
|
`," ")),e.hidden===!1&&(e.hidden=void 0,delete e.hidden),e.disabled===!1&&(e.disabled=void 0,delete e.disabled),e}const Rd=typeof window<"u"?window:void 0;function kg(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}var Mr,Po;class Ag{constructor(e={}){C(this,Mr);C(this,Po);const{window:n=Rd,document:r=n?.document}=e;n!==void 0&&(I(this,Mr,r),I(this,Po,xd(o=>{const i=Ie(n,"focusin",o),s=Ie(n,"focusout",o);return()=>{i(),s()}})))}get current(){var e;return(e=l(this,Po))==null||e.call(this),l(this,Mr)?kg(l(this,Mr)):null}}Mr=new WeakMap,Po=new WeakMap;new Ag;function Tg(t){return typeof t=="function"}var _o,on;class xt{constructor(e){C(this,_o);C(this,on);I(this,_o,e),I(this,on,Symbol(e))}get key(){return l(this,on)}exists(){return sp(l(this,on))}get(){const e=Ol(l(this,on));if(e===void 0)throw new Error(`Context "${l(this,_o)}" not found`);return e}getOr(e){const n=Ol(l(this,on));return n===void 0?e:n}set(e){return ap(l(this,on),e)}}_o=new WeakMap,on=new WeakMap;function Eg(t,e){switch(t){case"post":Le(e);break;case"pre":lp(e);break}}function Nd(t,e,n,r={}){const{lazy:o=!1}=r;let i=!o,s=Array.isArray(t)?[]:void 0;Eg(e,()=>{const a=Array.isArray(t)?t.map(u=>u()):t();if(!i){i=!0,s=a;return}const c=ko(()=>n(a,s));return s=a,c})}function ke(t,e,n){Nd(t,"post",e,n)}function Og(t,e,n){Nd(t,"pre",e,n)}ke.pre=Og;function Tu(t){return Tg(t)?t():t}var Tn,Rr,Nr,Dr,En,la,ca,Fr;class Pg{constructor(e,n={box:"border-box"}){C(this,Tn,{width:0,height:0});C(this,Rr,!1);C(this,Nr);C(this,Dr);C(this,En);C(this,la,U(()=>(w(l(this,Fr))?.(),this.getSize().width)));C(this,ca,U(()=>(w(l(this,Fr))?.(),this.getSize().height)));C(this,Fr,U(()=>{const e=Tu(l(this,Dr));if(e)return xd(n=>{if(!l(this,En))return;const r=new(l(this,En)).ResizeObserver(o=>{I(this,Rr,!0);for(const i of o){const s=l(this,Nr).box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];l(this,Tn).width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),l(this,Tn).height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(e),()=>{I(this,Rr,!1),r.disconnect()}})}));I(this,En,n.window??Rd),I(this,Nr,n),I(this,Dr,e),I(this,Tn,{width:0,height:0})}calculateSize(){const e=Tu(l(this,Dr));if(!e||!l(this,En))return;const n=e.offsetWidth,r=e.offsetHeight;if(l(this,Nr).box==="border-box")return{width:n,height:r};const o=l(this,En).getComputedStyle(e),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=n-i-a,d=r-s-c;return{width:u,height:d}}getSize(){return l(this,Rr)?l(this,Tn):this.calculateSize()??l(this,Tn)}get current(){return w(l(this,Fr))?.(),this.getSize()}get width(){return w(l(this,la))}get height(){return w(l(this,ca))}}Tn=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,Dr=new WeakMap,En=new WeakMap,la=new WeakMap,ca=new WeakMap,Fr=new WeakMap;function wn(t){Le(()=>()=>{t()})}function Ec(t){Le(()=>ko(()=>t()))}function _g(t,e){return setTimeout(e,t)}function _t(t){cp().then(t)}const Ig=1,Mg=9,Rg=11;function Ml(t){return ls(t)&&t.nodeType===Ig&&typeof t.nodeName=="string"}function Dd(t){return ls(t)&&t.nodeType===Mg}function Ng(t){return ls(t)&&t.constructor?.name==="VisualViewport"}function Dg(t){return ls(t)&&t.nodeType!==void 0}function Fd(t){return Dg(t)&&t.nodeType===Rg&&"host"in t}function Fg(t,e){if(!t||!e||!Ml(t)||!Ml(e))return!1;const n=e.getRootNode?.();if(t===e||t.contains(e))return!0;if(n&&Fd(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function oo(t){return Dd(t)?t:Ng(t)?t.document:t?.ownerDocument??document}function Ld(t){return Fd(t)?Ld(t.host):Dd(t)?t.defaultView??window:Ml(t)?t.ownerDocument?.defaultView??window:window}function Lg(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}var Io;class qa{constructor(e){P(this,"element");C(this,Io,U(()=>this.element.current?this.element.current.getRootNode()??document:document));P(this,"getDocument",()=>oo(this.root));P(this,"getWindow",()=>this.getDocument().defaultView??window);P(this,"getActiveElement",()=>Lg(this.root));P(this,"isActiveElement",e=>e===this.getActiveElement());P(this,"querySelector",e=>this.root?this.root.querySelector(e):null);P(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);P(this,"setTimeout",(e,n)=>this.getWindow().setTimeout(e,n));P(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=G(e):this.element=e}get root(){return w(l(this,Io))}set root(e){N(l(this,Io),e)}getElementById(e){return this.root.getElementById(e)}}Io=new WeakMap;function ft(t,e){return{[Yp()]:n=>cs(t)?(t.current=n,ko(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t.current=null,e?.(null))}):(t(n),ko(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t(null),e?.(null))})}}function Oc(t){return t?"true":"false"}function qC(t){return t?"true":void 0}function Ya(t){return t?"":void 0}function YC(t){return t?!0:void 0}function Pc(t){return t?"open":"closed"}function XC(t){return t?"checked":"unchecked"}function Bd(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}function zd(t,e){return e?"mixed":t?"true":"false"}var Lr,Mo;class Bg{constructor(e){C(this,Lr);C(this,Mo);P(this,"attrs");I(this,Lr,e.getVariant?e.getVariant():null),I(this,Mo,l(this,Lr)?`data-${l(this,Lr)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(n=>[n,this.getAttr(n)]))}getAttr(e,n){return n?`data-${n}-${e}`:`${l(this,Mo)}${e}`}selector(e,n){return`[${this.getAttr(e,n)}]`}}Lr=new WeakMap,Mo=new WeakMap;function Vd(t){const e=new Bg(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const ZC="Alt",Ao="ArrowDown",us="ArrowLeft",ds="ArrowRight",Ks="ArrowUp",JC="Backspace",QC="CapsLock",$C="Control",Wd="End",Ud="Enter",zg="Escape",ex="F1",tx="F10",nx="F11",rx="F12",ox="F2",ix="F3",sx="F4",ax="F5",lx="F6",cx="F7",ux="F8",dx="F9",Hd="Home",fx="Meta",Vg="PageDown",Wg="PageUp",hx="Shift",Xa=" ",Ug="Tab";function Hg(t){return window.getComputedStyle(t).getPropertyValue("direction")}function Kg(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?us:ds,vertical:Ao}[e]}function jg(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?ds:us,vertical:Ks}[e]}function Gg(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:Kg(t,e),prevKey:jg(t,e)}}const Kd=typeof document<"u",Eu=qg();function qg(){return Kd&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function bn(t){return t instanceof HTMLElement}function It(t){return t instanceof Element}function jd(t){return t instanceof Element||t instanceof SVGElement}function px(t){return t.pointerType==="touch"}function Yg(t){return t.matches(":focus-visible")}function Xg(t){return t!==null}function Zg(t){return t instanceof HTMLInputElement&&"select"in t}var Je,sn;class Jg{constructor(e){C(this,Je);C(this,sn,xr(null));I(this,Je,e)}getCandidateNodes(){return l(this,Je).rootNode.current?l(this,Je).candidateSelector?Array.from(l(this,Je).rootNode.current.querySelectorAll(l(this,Je).candidateSelector)):l(this,Je).candidateAttr?Array.from(l(this,Je).rootNode.current.querySelectorAll(`[${l(this,Je).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,n,r=!1){const o=l(this,Je).rootNode.current;if(!o||!e)return;const i=this.getCandidateNodes();if(!i.length)return;const s=i.indexOf(e),a=Hg(o),{nextKey:c,prevKey:u}=Gg(a,l(this,Je).orientation.current),d=l(this,Je).loop.current,f={[c]:s+1,[u]:s-1,[Hd]:0,[Wd]:i.length-1};if(r){const v=c===Ao?ds:Ao,m=u===Ks?us:Ks;f[v]=s+1,f[m]=s-1}let g=f[n.key];if(g===void 0)return;n.preventDefault(),g<0&&d?g=i.length-1:g===i.length&&d&&(g=0);const b=i[g];if(b)return b.focus(),l(this,sn).current=b.id,l(this,Je).onCandidateFocus?.(b),b}getTabIndex(e){const n=this.getCandidateNodes(),r=l(this,sn).current!==null;return e&&!r&&n[0]===e?(l(this,sn).current=e.id,0):e?.id===l(this,sn).current?0:-1}setCurrentTabStopId(e){l(this,sn).current=e}focusCurrentTabStop(){const e=l(this,sn).current;if(!e)return;const n=l(this,Je).rootNode.current?.querySelector(`#${e}`);!n||!bn(n)||n.focus()}}Je=new WeakMap,sn=new WeakMap;var rr,Kt,an,At,qn,Rl,Nl;class Qg{constructor(e){C(this,qn);C(this,rr);C(this,Kt,null);C(this,an,null);C(this,At,0);I(this,rr,e),wn(()=>F(this,qn,Rl).call(this))}run(e){F(this,qn,Rl).call(this);const n=l(this,rr).ref.current;if(!n)return;if(typeof n.getAnimations!="function"){F(this,qn,Nl).call(this,e);return}const r=l(this,At),o=()=>{r===l(this,At)&&F(this,qn,Nl).call(this,e)},i=()=>{if(r!==l(this,At))return;const a=n.getAnimations();if(a.length===0){o();return}Promise.all(a.map(c=>c.finished)).then(()=>{o()}).catch(()=>{if(r!==l(this,At))return;if(n.getAnimations().some(d=>d.pending||d.playState!=="finished")){i();return}o()})},s=()=>{I(this,Kt,window.requestAnimationFrame(()=>{I(this,Kt,null),i()}))};if(!l(this,rr).afterTick.current){s();return}I(this,Kt,window.requestAnimationFrame(()=>{I(this,Kt,null);const a="data-starting-style";if(!n.hasAttribute(a)){s();return}I(this,an,new MutationObserver(()=>{r===l(this,At)&&(n.hasAttribute(a)||(l(this,an)?.disconnect(),I(this,an,null),s()))})),l(this,an).observe(n,{attributes:!0,attributeFilter:[a]})}))}}rr=new WeakMap,Kt=new WeakMap,an=new WeakMap,At=new WeakMap,qn=new WeakSet,Rl=function(){l(this,Kt)!==null&&(window.cancelAnimationFrame(l(this,Kt)),I(this,Kt,null)),l(this,an)?.disconnect(),I(this,an,null),yu(this,At)._++},Nl=function(e){const n=l(this,At),r=()=>{n===l(this,At)&&e()};l(this,rr).afterTick?_t(r):r()};var st,Ro,No,ln,cn,Do,On,Fo,Dl;class Gd{constructor(e){C(this,Fo);C(this,st);C(this,Ro);C(this,No);C(this,ln,oe(!1));C(this,cn,oe(void 0));C(this,Do,!1);C(this,On,null);I(this,st,e),N(l(this,ln),e.open.current,!0),I(this,Ro,e.enabled??!0),I(this,No,new Qg({ref:l(this,st).ref,afterTick:l(this,st).open})),wn(()=>F(this,Fo,Dl).call(this)),ke(()=>l(this,st).open.current,n=>{if(!l(this,Do)){I(this,Do,!0);return}if(F(this,Fo,Dl).call(this),!n&&l(this,st).shouldSkipExitAnimation?.()){N(l(this,ln),!1),N(l(this,cn),void 0),l(this,st).onComplete?.();return}if(n&&N(l(this,ln),!0),N(l(this,cn),n?"starting":"ending",!0),n&&I(this,On,window.requestAnimationFrame(()=>{I(this,On,null),l(this,st).open.current&&N(l(this,cn),void 0)})),!l(this,Ro)){n||N(l(this,ln),!1),N(l(this,cn),void 0),l(this,st).onComplete?.();return}l(this,No).run(()=>{n===l(this,st).open.current&&(l(this,st).open.current||N(l(this,ln),!1),N(l(this,cn),void 0),l(this,st).onComplete?.())})})}get shouldRender(){return w(l(this,ln))}get transitionStatus(){return w(l(this,cn))}}st=new WeakMap,Ro=new WeakMap,No=new WeakMap,ln=new WeakMap,cn=new WeakMap,Do=new WeakMap,On=new WeakMap,Fo=new WeakSet,Dl=function(){l(this,On)!==null&&(window.cancelAnimationFrame(l(this,On)),I(this,On,null))};function me(){}function js(t,e){return`bits-${t}`}function qd(t,e){if(new.target)return Te({component:qd,...t});Pe(e,!0);const n=h(e,"children",7);var r={get children(){return n()},set children(s){n(s),p()},$set:Ee,$on:(s,a)=>Oe(e,s,a)},o=ue(),i=se(o);return vp(i,n,s=>{var a=ue(),c=se(a);ye(c,()=>n()??xe),Z(s,a)}),Z(t,o),_e(r)}const $g=new xt("BitsConfig");function em(){const t=new tm(null,{});return $g.getOr(t).opts}class tm{constructor(e,n){P(this,"opts");const r=nm(e,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function nm(t,e){return n=>G(()=>{const o=n(e)?.current;if(o!==void 0)return o;if(t!==null)return n(t.opts)?.current})}function rm(t,e){return n=>{const r=em();return G(()=>{const o=n();if(o!==void 0)return o;const i=t(r).current;return i!==void 0?i:e})}}const om=rm(t=>t.defaultPortalTo,"body");function Yd(t,e){if(new.target)return Te({component:Yd,...t});Pe(e,!0);let n=h(e,"to",7),r=h(e,"children",7),o=h(e,"disabled",7);const i=om(()=>n()),s=up();let a=U(c);function c(){if(!Kd||o())return null;let m=null;if(typeof i.current=="string"){const E=document.querySelector(i.current);if($n&&E===null)throw new Error(`Target element "${i.current}" not found.`);m=E}else m=i.current;if($n&&!(m instanceof Element)){const E=m===null?"null":typeof m;throw new TypeError(`Unknown portal target type: ${E}. Allowed types: string (query selector) or Element.`)}return m}let u;function d(){u&&(fp(u),u=null)}ke([()=>w(a),()=>o()],([m,E])=>{if(!m||E){d();return}return u=dp(qd,{target:m,props:{children:r()},context:s}),()=>{d()}});var f={get to(){return n()},set to(m){n(m),p()},get children(){return r()},set children(m){r(m),p()},get disabled(){return o()},set disabled(m){o(m),p()},$set:Ee,$on:(m,E)=>Oe(e,m,E)},g=ue(),b=se(g);{var v=m=>{var E=ue(),T=se(E);ye(T,()=>r()??xe),Z(m,E)};Ne(b,m=>{o()&&m(v)})}return Z(t,g),_e(f)}class im{constructor(e,n={bubbles:!0,cancelable:!0}){P(this,"eventName");P(this,"options");this.eventName=e,this.options=n}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,n){const r=this.createEvent(n);return e.dispatchEvent(r),r}listen(e,n,r){const o=i=>{n(i)};return Ie(e,this.eventName,o,r)}}function Ou(t,e=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...o)},e)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Xd(t,e){return t===e||t.contains(e)}function Zd(t){return t?.ownerDocument??document}function sm(t,e){const{clientX:n,clientY:r}=t,o=e.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Fl=[Ud,Xa],am=[Ao,Wg,Hd],Jd=[Ks,Vg,Wd],lm=[...am,...Jd],cm={ltr:[...Fl,ds],rtl:[...Fl,us]},gx={ltr:[us],rtl:[ds]};function um(t){return t==="indeterminate"}function Qd(t){return um(t)?"indeterminate":t?"checked":"unchecked"}function Pt(t){return t.pointerType==="mouse"}function dm(t,{select:e=!1}={}){if(!t||!t.focus)return;const n=oo(t);if(n.activeElement===t)return;const r=n.activeElement;t.focus({preventScroll:!0}),t!==r&&Zg(t)&&e&&t.select()}function fm(t,{select:e=!1}={},n){const r=n();for(const o of t)if(dm(o,{select:e}),n()!==r)return!0}let co=oe(!1);const Wt=class Wt{constructor(){Le(()=>(Wt._refs===0&&(Wt._cleanup=Sd(()=>{const e=[],n=o=>{N(co,!1)},r=o=>{N(co,!0)};return e.push(Ie(document,"pointerdown",n,{capture:!0}),Ie(document,"pointermove",n,{capture:!0}),Ie(document,"keydown",r,{capture:!0})),Pr(...e)})),Wt._refs++,()=>{Wt._refs--,Wt._refs===0&&(N(co,!1),Wt._cleanup?.())}))}get current(){return w(co)}set current(e){N(co,e,!0)}};P(Wt,"_refs",0),P(Wt,"_cleanup");let Ll=Wt;/*!
|
|
7
7
|
* tabbable 6.4.0
|
|
8
8
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
9
|
-
*/var $d=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Gs=$d.join(","),ef=typeof Element>"u",vr=ef?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qs=!ef&&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?.ownerDocument},Ys=function(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Ys(e.parentNode));return s},hm=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},tf=function(e,n,r){if(Ys(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Gs));return n&&vr.call(e,Gs)&&o.unshift(e),o=o.filter(r),o},Xs=function(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Ys(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=Xs(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var d=vr.call(s,Gs);d&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),g=!Ys(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&g){var b=Xs(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,b):o.push({scopeParent:s,candidates:b})}else i.unshift.apply(i,s.children)}}return o},nf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},rf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||hm(e))&&!nf(e)?0:e.tabIndex},pm=function(e,n){var r=rf(e);return r<0&&n&&!nf(e)?0:r},gm=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},of=function(e){return e.tagName==="INPUT"},mm=function(e){return of(e)&&e.type==="hidden"},bm=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},vm=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},ym=function(e){if(!e.name)return!0;var n=e.form||qs(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(s){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",s.message),!1}var i=vm(o,e.form);return!i||i===e},wm=function(e){return of(e)&&e.type==="radio"},Cm=function(e){return wm(e)&&!ym(e)},xm=function(e){var n,r=e&&qs(e),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,a,c;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!i&&o;){var u,d,f;r=qs(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Pu=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Sm=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(e).visibility==="hidden")return!0;var s=vr.call(e,"details>summary:first-of-type"),a=s?e.parentElement:e;if(vr.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=e;e;){var u=e.parentElement,d=qs(e);if(u&&!u.shadowRoot&&o(u)===!0)return Pu(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(xm(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pu(e);return!1},km=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return vr.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},Zs=function(e,n){return!(n.disabled||mm(n)||Sm(n,e)||bm(n)||km(n))},Bl=function(e,n){return!(Cm(n)||rf(n)<0||!Zs(e,n))},Am=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},sf=function(e){var n=[],r=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,c=pm(a,s),u=s?sf(o.candidates):a;c===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:i,tabIndex:c,item:o,isScope:s,content:u})}),r.sort(gm).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},af=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Xs([e],n.includeContainer,{filter:Bl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Am}):r=tf(e,n.includeContainer,Bl.bind(null,n)),sf(r)},lf=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Xs([e],n.includeContainer,{filter:Zs.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=tf(e,n.includeContainer,Zs.bind(null,n)),r},_c=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return vr.call(e,Gs)===!1?!1:Bl(n,e)},Tm=$d.concat("iframe:not([inert]):not([inert] *)").join(","),cf=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return vr.call(e,Tm)===!1?!1:Zs(n,e)};function wo(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Em(t,e){if(!_c(t,wo()))return Om(t,e);const n=oo(t),r=af(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1)[0]}function Om(t,e){const n=oo(t);if(!cf(t,wo()))return n.body;const r=lf(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1).find(s=>_c(s,wo()))??n.body}function mx(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===t.length-1?n?t[0]:void 0:t[e+1]}function bx(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===0?n?t[t.length-1]:void 0:t[e-1]}function vx(t,e,n,r=!0){if(t.length===0||e<0||e>=t.length)return;let o=e+n;return r?o=(o%t.length+t.length)%t.length:o=Math.max(0,Math.min(o,t.length-1)),t[o]}function yx(t,e,n,r=!0){if(t.length===0||e<0||e>=t.length)return;let o=e-n;return r?o=(o%t.length+t.length)%t.length:o=Math.max(0,Math.min(o,t.length-1)),t[o]}function uf(t,e,n){const r=e.toLowerCase();if(r.endsWith(" ")){const f=r.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(f)).length<=1)return uf(t,f,n);const b=n?.toLowerCase();if(b&&b.startsWith(f)&&b.charAt(f.length)===" "&&e.trim()===f)return n;const v=t.filter(m=>m.toLowerCase().startsWith(r));if(v.length>0){const m=n?t.indexOf(n):-1;return _u(v,Math.max(m,0)).find(O=>O!==n)||n}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,s=i.toLowerCase(),a=n?t.indexOf(n):-1;let c=_u(t,Math.max(a,0));i.length===1&&(c=c.filter(f=>f!==n));const d=c.find(f=>f?.toLowerCase().startsWith(s));return d!==n?d:void 0}function _u(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const Pm={afterMs:1e4,onChange:me};function _m(t,e){const{afterMs:n,onChange:r,getWindow:o}={...Pm,...e};let i=null,s=oe(Hn(t));function a(){return o().setTimeout(()=>{N(s,t,!0),r?.(t)},n)}return Le(()=>()=>{i&&o().clearTimeout(i)}),G(()=>w(s),c=>{N(s,c,!0),r?.(c),i&&o().clearTimeout(i),i=a()})}var un,dn,ua,da;class Im{constructor(e){C(this,un);C(this,dn);C(this,ua,U(()=>l(this,un).onMatch?l(this,un).onMatch:e=>e.focus()));C(this,da,U(()=>l(this,un).getCurrentItem?l(this,un).getCurrentItem:l(this,un).getActiveElement));I(this,un,e),I(this,dn,_m("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,n){if(!n.length)return;l(this,dn).current=l(this,dn).current+e;const r=w(l(this,da))(),o=n.find(c=>c===r)?.textContent?.trim()??"",i=n.map(c=>c.textContent?.trim()??""),s=uf(i,l(this,dn).current,o),a=n.find(c=>c.textContent?.trim()===s);return a&&w(l(this,ua))(a),a}resetTypeahead(){l(this,dn).current=""}get search(){return l(this,dn).current}}un=new WeakMap,dn=new WeakMap,ua=new WeakMap,da=new WeakMap;const Mm="data-context-menu-trigger",Rm="data-context-menu-content",Ic=new xt("Menu.Root"),eo=new xt("Menu.Root | Menu.Sub"),fs=new xt("Menu.Content"),Mc=new xt("Menu.Group | Menu.RadioGroup"),Rc=new xt("Menu.RadioGroup"),Nm=new xt("Menu.CheckboxGroup"),df=new im("bitsmenuopen",{bubbles:!1,cancelable:!0}),Dm=Vd({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Se,or,Pn,at,vt,ir,fn,Br,Q,ff,Ps,zl,Vl,Wl,_n,mo,_s,bo,Is,hf,Lo,pf,Ms,Rs,Tr,Ns;class Fm{constructor(e){C(this,Q);C(this,Se);C(this,or,null);C(this,Pn,null);C(this,at,!1);C(this,vt,null);C(this,ir,null);C(this,fn,null);C(this,Br,null);C(this,_n,null);C(this,Lo,e=>{if(!l(this,at)||!l(this,vt)||!Pt(e))return;const n=l(this,Se).triggerNode(),r=l(this,Se).contentNode();if(!n||!r){F(this,Q,bo).call(this);return}F(this,Q,Tr).call(this);const o={x:e.clientX,y:e.clientY};I(this,fn,o);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(l(this,vt)==="content"&&Mu(o,s)){F(this,Q,mo).call(this);return}if(l(this,vt)==="trigger"&&Lm(o,i,4)){F(this,Q,mo).call(this);return}if(F(this,Q,hf).call(this,o)){F(this,Q,Rs).call(this);return}const a=F(this,Q,Ps).call(this,o,l(this,vt));if(!a){F(this,Q,bo).call(this);return}if(F(this,Q,zl).call(this,o,a.corridor,a.intent)){F(this,Q,Rs).call(this);return}F(this,Q,bo).call(this)});I(this,Se,e),ke([e.triggerNode,e.contentNode,e.enabled],([n,r,o])=>{if(F(this,Q,Is).call(this),!n||!r||!o)return;const i=f=>{Pt(f)&&(I(this,Br,{x:f.clientX,y:f.clientY}),l(this,at)||F(this,Q,Vl).call(this,f,"content"))},s=f=>{Pt(f)&&F(this,Q,Wl).call(this,f,"content")},a=f=>{Pt(f)&&(l(this,at)||F(this,Q,Vl).call(this,f,"trigger"))},c=f=>{if(Pt(f)){if(It(f.relatedTarget)){const g=l(this,Se).subContentSelector(),b=f.relatedTarget.closest(g);if(b&&b!==r&&b.id&&!!r.querySelector(`[aria-controls="${b.id}"]`))return}F(this,Q,Wl).call(this,f,"trigger")}},u=f=>{Pt(f)&&F(this,Q,mo).call(this)},d=f=>{Pt(f)&&F(this,Q,mo).call(this)};return n.addEventListener("pointermove",i),n.addEventListener("pointerleave",s),n.addEventListener("pointerenter",u),r.addEventListener("pointermove",a),r.addEventListener("pointerleave",c),r.addEventListener("pointerenter",d),()=>{n.removeEventListener("pointermove",i),n.removeEventListener("pointerleave",s),n.removeEventListener("pointerenter",u),r.removeEventListener("pointermove",a),r.removeEventListener("pointerleave",c),r.removeEventListener("pointerenter",d),F(this,Q,Is).call(this)}}),wn(()=>{F(this,Q,Is).call(this)})}}Se=new WeakMap,or=new WeakMap,Pn=new WeakMap,at=new WeakMap,vt=new WeakMap,ir=new WeakMap,fn=new WeakMap,Br=new WeakMap,Q=new WeakSet,ff=function(){const e=l(this,Se).parentContentNode();return e?e.getBoundingClientRect():l(this,Se).triggerNode()?.getBoundingClientRect()??null},Ps=function(e,n){const r=l(this,Se).triggerNode(),o=l(this,Se).contentNode();if(!r||!o)return null;const i=r.getBoundingClientRect(),s=o.getBoundingClientRect(),a=Bm(i,s);let c,u,d;return n==="content"?(c=l(this,at)?l(this,ir)??e:e,u=s):(c=l(this,Br)??e,u=F(this,Q,ff).call(this)??i,d=s),I(this,ir,c),{corridor:zm(i,s,a),intent:Vm(c,u,a,n,d),targetRect:u,side:a}},zl=function(e,n,r){return Iu(e,n)||Iu(e,r)},Vl=function(e,n){const r={x:e.clientX,y:e.clientY};F(this,Q,Ps).call(this,r,n)&&(I(this,vt,n),I(this,fn,r))},Wl=function(e,n){if(!l(this,Se).enabled())return;const r=l(this,Se).triggerNode(),o=l(this,Se).contentNode();if(!r||!o)return;const i=e.relatedTarget;if(It(i)&&(n==="content"&&o.contains(i)||n==="trigger"&&r.contains(i)))return;const s={x:e.clientX,y:e.clientY},a=F(this,Q,Ps).call(this,s,n);if(a){if(!Mu(s,a.targetRect)&&!F(this,Q,zl).call(this,s,a.corridor,a.intent)){F(this,Q,Ns).call(this);return}I(this,at,!0),I(this,vt,n),I(this,fn,s),l(this,Se).setIsPointerInTransit(!0),F(this,Q,pf).call(this),F(this,Q,Rs).call(this)}},_n=new WeakMap,mo=function(){if(!l(this,at))return;const e=l(this,vt)==="trigger";F(this,Q,Ms).call(this),F(this,Q,Tr).call(this),I(this,at,!1),F(this,Q,Ns).call(this),e?(F(this,Q,_s).call(this),I(this,_n,setTimeout(()=>{I(this,_n,null),l(this,Se).setIsPointerInTransit(!1)},100))):l(this,Se).setIsPointerInTransit(!1)},_s=function(){l(this,_n)!==null&&(clearTimeout(l(this,_n)),I(this,_n,null))},bo=function(){const e=l(this,fn);F(this,Q,Ms).call(this),F(this,Q,Tr).call(this),F(this,Q,_s).call(this),I(this,at,!1),l(this,Se).setIsPointerInTransit(!1),F(this,Q,Ns).call(this),l(this,Se).onIntentExit(e)},Is=function(){F(this,Q,Ms).call(this),F(this,Q,Tr).call(this),F(this,Q,_s).call(this),l(this,at)&&l(this,Se).setIsPointerInTransit(!1),I(this,at,!1),I(this,vt,null),I(this,ir,null),I(this,fn,null),I(this,Br,null)},hf=function(e){const n=l(this,Se).contentNode();if(!n)return!1;const o=n.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const i=l(this,Se).subContentSelector(),s=o.closest(i);return!s||s===n?!1:s.id?!!n.querySelector(`[aria-controls="${s.id}"]`):!1},Lo=new WeakMap,pf=function(){if(l(this,or))return;const e=oo(l(this,Se).triggerNode()??l(this,Se).contentNode());e&&(e.addEventListener("pointermove",l(this,Lo),!0),I(this,or,()=>{e.removeEventListener("pointermove",l(this,Lo),!0),I(this,or,null)}))},Ms=function(){var e;(e=l(this,or))==null||e.call(this)},Rs=function(){F(this,Q,Tr).call(this),I(this,Pn,setTimeout(()=>{I(this,Pn,null),l(this,at)&&F(this,Q,bo).call(this)},500))},Tr=function(){l(this,Pn)!==null&&(clearTimeout(l(this,Pn)),I(this,Pn,null))},Ns=function(){I(this,vt,null),I(this,ir,null),I(this,fn,null)};function Iu(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i].x,c=e[i].y,u=e[s].x,d=e[s].y;c>r!=d>r&&n<(u-a)*(r-c)/(d-c)+a&&(o=!o)}return o}function Mu(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function Lm(t,e,n){return t.x>=e.left+n&&t.x<=e.right-n&&t.y>=e.top+n&&t.y<=e.bottom-n}function Bm(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,i=e.top+e.height/2,s=o-n,a=i-r;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}function zm(t,e,n){switch(n){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function Vm(t,e,n,r,o){const s=r==="trigger"?Wm(n):n,a=o?Math.min(e.top,o.top)-8:e.top-8,c=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,d=o?Math.max(e.right,o.right)+8:e.right+8;switch(s){case"right":return[t,{x:e.left,y:a},{x:e.left,y:c}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:c}];case"bottom":return[t,{x:u,y:e.top},{x:d,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:d,y:e.bottom}]}}function Wm(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Bo,zo;const $c=class $c{constructor(e){P(this,"opts");P(this,"isUsingKeyboard",new Ll);C(this,Bo,oe(!1));C(this,zo,oe(!1));P(this,"getBitsAttr",e=>Dm.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const n=new $c(e);return Ic.set(n)}get ignoreCloseAutoFocus(){return w(l(this,Bo))}set ignoreCloseAutoFocus(e){N(l(this,Bo),e,!0)}get isPointerInTransit(){return w(l(this,zo))}set isPointerInTransit(e){N(l(this,zo),e,!0)}};Bo=new WeakMap,zo=new WeakMap;let Ru=$c;var Vo,Wo;const eu=class eu{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"parentMenu");P(this,"contentId",G(()=>""));C(this,Vo,oe(null));P(this,"contentPresence");C(this,Wo,oe(null));this.opts=e,this.root=n,this.parentMenu=r,this.contentPresence=new Gd({ref:G(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),r&&ke(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}static create(e,n){return eo.set(new eu(e,n,null))}get contentNode(){return w(l(this,Vo))}set contentNode(e){N(l(this,Vo),e,!0)}get triggerNode(){return w(l(this,Wo))}set triggerNode(e){N(l(this,Wo),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Vo=new WeakMap,Wo=new WeakMap;let Ul=eu;var Uo,Ho,Ko,jo,Go,en,gf,Ds,mf,qo,Yo;const tu=class tu{constructor(e,n){C(this,en);P(this,"opts");P(this,"parentMenu");P(this,"rovingFocusGroup");P(this,"domContext");P(this,"attachment");C(this,Uo,oe(""));C(this,Ho,0);C(this,Ko);C(this,jo,oe(!1));C(this,Go);P(this,"onCloseAutoFocus",e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||l(this,Go))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&_c(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});C(this,qo,U(()=>({open:this.parentMenu.opts.open.current})));C(this,Yo,U(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Pc(this.parentMenu.opts.open.current),...Bd(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));P(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=n,this.domContext=new qa(e.ref),this.attachment=ft(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=e.id,I(this,Go,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Fm({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:r=>{this.parentMenu.opts.open.current=!1,F(this,en,mf).call(this,r)},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),I(this,Ko,new Im({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new Jg({rootNode:G(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:G(()=>"vertical")}),ke(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{_t(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return df.listen(r,o)}),Le(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,Ho))})}static create(e){return fs.set(new tu(e,eo.get()))}get search(){return w(l(this,Uo))}set search(e){N(l(this,Uo),e,!0)}get mounted(){return w(l(this,jo))}set mounted(e){N(l(this,jo),e,!0)}handleTabKeyDown(e){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;e.preventDefault();const r=Em(n.triggerNode,e.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),_t(()=>{r.focus(),_t(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===Ug){this.handleTabKeyDown(e);return}const n=e.target,r=e.currentTarget;if(!bn(n)||!bn(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,s=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,e)||e.code==="Space")return;const c=F(this,en,gf).call(this);o&&!i&&s&&l(this,Ko).call(this,e.key,c),e.target?.id===this.parentMenu.contentId.current&&lm.includes(e.key)&&(e.preventDefault(),Jd.includes(e.key)&&c.reverse(),fm(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){It(e.currentTarget)&&It(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(l(this,Ho)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&_t(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return F(this,en,Ds).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||F(this,en,Ds).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!F(this,en,Ds).call(this)}handleInteractOutside(e){if(!jd(e.target))return;const n=this.parentMenu.triggerNode?.id;if(e.target.id===n){e.preventDefault();return}if(e.target.closest(`#${n}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,_t(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return w(l(this,qo))}set snippetProps(e){N(l(this,qo),e)}get props(){return w(l(this,Yo))}set props(e){N(l(this,Yo),e)}};Uo=new WeakMap,Ho=new WeakMap,Ko=new WeakMap,jo=new WeakMap,Go=new WeakMap,en=new WeakSet,gf=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},Ds=function(){return this.parentMenu.root.isPointerInTransit},mf=function(e){if(!e)return;const n=this.parentMenu.parentMenu?.contentNode;if(!n)return;const r=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!It(r))return;const o=r.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!n.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},qo=new WeakMap,Yo=new WeakMap;let Nu=tu;var zr,Xo;class Za{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,zr,oe(!1));C(this,Xo,U(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Oc(this.opts.disabled.current),"data-disabled":Ya(this.opts.disabled.current),"data-highlighted":w(l(this,zr))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=n,this.attachment=ft(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&Pt(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const r=e.currentTarget;if(!bn(r))return;r.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||Pt(e)&&this.content.onItemLeave(e)}onfocus(e){_t(()=>{e.defaultPrevented||this.opts.disabled.current||N(l(this,zr),!0)})}onblur(e){_t(()=>{e.defaultPrevented||N(l(this,zr),!1)})}get props(){return w(l(this,Xo))}set props(e){N(l(this,Xo),e)}}zr=new WeakMap,Xo=new WeakMap;var Zo,fa,bf,Jo;const nu=class nu{constructor(e,n){C(this,fa);P(this,"opts");P(this,"item");P(this,"root");C(this,Zo,!1);C(this,Jo,U(()=>Zt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const n=new Za(e,fs.get());return new nu(e,n)}onkeydown(e){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&e.key===Xa)&&Fl.includes(e.key)){if(!bn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||F(this,fa,bf).call(this)}onpointerup(e){if(!e.defaultPrevented&&!l(this,Zo)){if(!bn(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){I(this,Zo,!0)}get props(){return w(l(this,Jo))}set props(e){N(l(this,Jo),e)}};Zo=new WeakMap,fa=new WeakSet,bf=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Jo=new WeakMap;let Js=nu;var hn,In,Er,Qo;const ru=class ru{constructor(e,n,r,o){C(this,In);P(this,"opts");P(this,"item");P(this,"content");P(this,"submenu");P(this,"attachment");C(this,hn,null);C(this,Qo,U(()=>Zt({"aria-haspopup":"menu","aria-expanded":Oc(this.submenu.opts.open.current),"data-state":Pc(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props)));this.opts=e,this.item=n,this.content=r,this.submenu=o,this.attachment=ft(this.opts.ref,i=>this.submenu.triggerNode=i),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),wn(()=>{F(this,In,Er).call(this)})}static create(e){const n=fs.get(),r=new Za(e,n),o=eo.get();return new ru(e,r,n,o)}onpointermove(e){if(Pt(e)){if(this.submenu.root.isPointerInTransit){l(this,hn)!==null&&F(this,In,Er).call(this);return}if(!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!l(this,hn)){const n=this.opts.openDelay.current;if(n<=0){this.submenu.onOpen();return}I(this,hn,this.content.domContext.setTimeout(()=>{if(this.submenu.root.isPointerInTransit){F(this,In,Er).call(this);return}this.submenu.onOpen(),F(this,In,Er).call(this)},n))}}}onpointerleave(e){Pt(e)&&F(this,In,Er).call(this)}onkeydown(e){const n=this.content.search!=="";this.item.opts.disabled.current||n&&e.key===Xa||cm[this.submenu.root.opts.dir.current].includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}onclick(e){if(this.item.opts.disabled.current||!bn(e.currentTarget))return;e.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),_t(()=>{const r=this.submenu.contentNode;r&&df.dispatch(r)}))}get props(){return w(l(this,Qo))}set props(e){N(l(this,Qo),e)}};hn=new WeakMap,In=new WeakSet,Er=function(){l(this,hn)!==null&&(this.content.domContext.getWindow().clearTimeout(l(this,hn)),I(this,hn,null))},Qo=new WeakMap;let Du=ru;var $o,ei;const ou=class ou{constructor(e,n,r=null){P(this,"opts");P(this,"item");P(this,"group");C(this,$o,U(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));C(this,ei,U(()=>({...this.item.props,role:"menuitemcheckbox","aria-checked":zd(this.opts.checked.current,this.opts.indeterminate.current),"data-state":Qd(this.opts.checked.current),[this.item.root.getBitsAttr("checkbox-item")]:""})));this.opts=e,this.item=n,this.group=r,this.group&&(ke(()=>this.group.opts.value.current,o=>{this.opts.checked.current=o.includes(this.opts.value.current)}),ke(()=>this.opts.checked.current,o=>{o?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}static create(e,n){const r=new Js(e,new Za(e,fs.get()));return new ou(e,r,n)}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}get snippetProps(){return w(l(this,$o))}set snippetProps(e){N(l(this,$o),e)}get props(){return w(l(this,ei))}set props(e){N(l(this,ei),e)}};$o=new WeakMap,ei=new WeakMap;let Fu=ou;var ti,ni;const iu=class iu{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,ti,oe(void 0));C(this,ni,U(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=ft(this.opts.ref)}static create(e){return Mc.set(new iu(e,Ic.get()))}get groupHeadingId(){return w(l(this,ti))}set groupHeadingId(e){N(l(this,ti),e,!0)}get props(){return w(l(this,ni))}set props(e){N(l(this,ni),e)}};ti=new WeakMap,ni=new WeakMap;let Lu=iu;var ri;const xo=class xo{constructor(e,n){P(this,"opts");P(this,"group");P(this,"attachment");C(this,ri,U(()=>({id:this.opts.id.current,role:"group",[this.group.root.getBitsAttr("group-heading")]:"",...this.attachment})));this.opts=e,this.group=n,this.attachment=ft(this.opts.ref,r=>this.group.groupHeadingId=r?.id)}static create(e){const n=Nm.getOr(null);if(n)return new xo(e,n);const r=Rc.getOr(null);return r?new xo(e,r):new xo(e,Mc.get())}get props(){return w(l(this,ri))}set props(e){N(l(this,ri),e)}};ri=new WeakMap;let Bu=xo;var oi;const su=class su{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,oi,U(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=ft(this.opts.ref)}static create(e){return new su(e,Ic.get())}get props(){return w(l(this,oi))}set props(e){N(l(this,oi),e)}};oi=new WeakMap;let zu=su;var ii,si;const au=class au{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,ii,oe(null));P(this,"root");C(this,si,U(()=>({id:this.opts.id.current,[this.root.getBitsAttr("radio-group")]:"",role:"group","aria-labelledby":this.groupHeadingId,...this.attachment})));this.opts=e,this.content=n,this.root=n.parentMenu.root,this.attachment=ft(this.opts.ref)}static create(e){return Mc.set(Rc.set(new au(e,fs.get())))}get groupHeadingId(){return w(l(this,ii))}set groupHeadingId(e){N(l(this,ii),e,!0)}setValue(e){this.opts.value.current=e}get props(){return w(l(this,si))}set props(e){N(l(this,si),e)}};ii=new WeakMap,si=new WeakMap;let Vu=au;var ai,li;const lu=class lu{constructor(e,n,r){P(this,"opts");P(this,"item");P(this,"group");P(this,"attachment");C(this,ai,U(()=>this.group.opts.value.current===this.opts.value.current));C(this,li,U(()=>({[this.group.root.getBitsAttr("radio-item")]:"",...this.item.props,role:"menuitemradio","aria-checked":zd(this.isChecked,!1),"data-state":Qd(this.isChecked),...this.attachment})));this.opts=e,this.item=n,this.group=r,this.attachment=ft(this.opts.ref)}static create(e){const n=Rc.get(),r=new Za(e,n.content),o=new Js(e,r);return new lu(e,o,n)}get isChecked(){return w(l(this,ai))}set isChecked(e){N(l(this,ai),e)}selectValue(){this.group.setValue(this.opts.value.current)}get props(){return w(l(this,li))}set props(e){N(l(this,li),e)}};ai=new WeakMap,li=new WeakMap;let Wu=lu;var ha,ci;const cu=class cu{constructor(e,n){P(this,"opts");P(this,"parentMenu");P(this,"attachment");P(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});P(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});P(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});P(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Xa||e.key===Ud){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Ao&&(this.parentMenu.onOpen(),e.preventDefault())}});C(this,ha,U(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));C(this,ci,U(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Oc(this.parentMenu.opts.open.current),"aria-controls":w(l(this,ha)),"data-disabled":Ya(this.opts.disabled.current),"data-state":Pc(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=n,this.attachment=ft(this.opts.ref,r=>this.parentMenu.triggerNode=r)}static create(e){return new cu(e,eo.get())}get props(){return w(l(this,ci))}set props(e){N(l(this,ci),e)}};ha=new WeakMap,ci=new WeakMap;let Uu=cu;class wx{static create(e){const n=eo.get();return eo.set(new Ul(e,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;var Mn,sr,Rn,Vr,Wr,Nn,Ur,Tt,pa,no,vf,ga,Hr,ma,ba,va,ya,ui,yf,wa,Ca;const uu=class uu{constructor(e){C(this,no);P(this,"opts");C(this,Mn);C(this,sr);C(this,Rn,{pointerdown:!1});C(this,Vr,!1);C(this,Wr,!1);C(this,Nn);C(this,Ur);C(this,Tt,me);C(this,pa,e=>{e.defaultPrevented||this.opts.ref.current&&_t(()=>{if(!(!this.opts.ref.current||l(this,ya).call(this,e.target))&&e.target&&!l(this,Wr)){if(typeof l(this,Ur)?.current!="function")return;l(this,Ur).current(e)}})});C(this,ga,e=>{let n=e;n.defaultPrevented&&(n=Hu(e)),typeof l(this,Mn)?.current=="function"&&l(this,Mn).current(e)});C(this,Hr,Ou(e=>{if(!this.opts.ref.current){l(this,Tt).call(this);return}if(typeof this.opts.isValidEvent?.current!="function"){l(this,Tt).call(this);return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||Km(e,this.opts.ref.current);if(!l(this,Vr)||F(this,no,yf).call(this)||!n){l(this,Tt).call(this);return}let r=e;if(r.defaultPrevented&&(r=Hu(r)),l(this,sr).current!=="close"&&l(this,sr).current!=="defer-otherwise-close"){l(this,Tt).call(this);return}if(e.pointerType==="touch")l(this,Tt).call(this),I(this,Tt,Ie(l(this,Nn),"click",l(this,ga),{once:!0}));else{if(typeof l(this,Mn)?.current!="function"){l(this,Tt).call(this);return}l(this,Mn).current(r)}},10));C(this,ma,e=>{l(this,Rn)[e.type]=!0});C(this,ba,e=>{l(this,Rn)[e.type]=!1});C(this,va,()=>{this.opts.ref.current&&I(this,Vr,Hm(this.opts.ref.current))});C(this,ya,e=>this.opts.ref.current?Xd(this.opts.ref.current,e):!1);C(this,ui,Ou(()=>{for(const e in l(this,Rn))l(this,Rn)[e]=!1;I(this,Vr,!1)},20));C(this,wa,()=>{I(this,Wr,!0)});C(this,Ca,()=>{I(this,Wr,!1)});P(this,"props",{onfocuscapture:l(this,wa),onblurcapture:l(this,Ca)});this.opts=e,I(this,sr,e.interactOutsideBehavior),I(this,Mn,e.onInteractOutside),I(this,Ur,e.onFocusOutside),Le(()=>{I(this,Nn,Zd(this.opts.ref.current))});let n=me,r;const o=()=>{clearTimeout(r),l(this,ui).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),n()};ke([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return r=_g(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,l(this,sr)),n(),n=F(this,no,vf).call(this))}),o}),wn(()=>{l(this,ui).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),l(this,Tt).call(this),n()})}static create(e){return new uu(e)}};Mn=new WeakMap,sr=new WeakMap,Rn=new WeakMap,Vr=new WeakMap,Wr=new WeakMap,Nn=new WeakMap,Ur=new WeakMap,Tt=new WeakMap,pa=new WeakMap,no=new WeakSet,vf=function(){return Pr(Ie(l(this,Nn),"pointerdown",Pr(l(this,ma),l(this,va)),{capture:!0}),Ie(l(this,Nn),"pointerdown",Pr(l(this,ba),l(this,Hr))),Ie(l(this,Nn),"focusin",l(this,pa)))},ga=new WeakMap,Hr=new WeakMap,ma=new WeakMap,ba=new WeakMap,va=new WeakMap,ya=new WeakMap,ui=new WeakMap,yf=function(){return Object.values(l(this,Rn)).some(Boolean)},wa=new WeakMap,Ca=new WeakMap;let Hl=uu;function Um(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function Hm(t){const e=[...globalThis.bitsDismissableLayers],n=Um(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}function Km(t,e){const n=t.target;if(!jd(n))return!1;const r=!!n.closest(`[${Mm}]`),o=!!e.closest(`[${Rm}]`);return"button"in t&&t.button>0&&!r?!1:"button"in t&&t.button===0&&r&&o?!0:r&&o?!1:Zd(n).documentElement.contains(n)&&!Xd(e,n)&&sm(t,e)}function Hu(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(r,{get:(s,a)=>a==="currentTarget"?e:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:a==="defaultPrevented"?o:a in s?s[a]:t[a]})}function wf(t,e){if(new.target)return Te({component:wf,...t});Pe(e,!0);let n=h(e,"interactOutsideBehavior",7,"close"),r=h(e,"onInteractOutside",7,me),o=h(e,"onFocusOutside",7,me),i=h(e,"id",7),s=h(e,"children",7),a=h(e,"enabled",7),c=h(e,"isValidEvent",7,()=>!1),u=h(e,"ref",7);const d=Hl.create({id:G(()=>i()),interactOutsideBehavior:G(()=>n()),onInteractOutside:G(()=>r()),enabled:G(()=>a()),onFocusOutside:G(()=>o()),isValidEvent:G(()=>c()),ref:u()});var f={get interactOutsideBehavior(){return n()},set interactOutsideBehavior(v="close"){n(v),p()},get onInteractOutside(){return r()},set onInteractOutside(v=me){r(v),p()},get onFocusOutside(){return o()},set onFocusOutside(v=me){o(v),p()},get id(){return i()},set id(v){i(v),p()},get children(){return s()},set children(v){s(v),p()},get enabled(){return a()},set enabled(v){a(v),p()},get isValidEvent(){return c()},set isValidEvent(v=()=>!1){c(v),p()},get ref(){return u()},set ref(v){u(v),p()},$set:Ee,$on:(v,m)=>Oe(e,v,m)},g=ue(),b=se(g);return ye(b,()=>s()??xe,()=>({props:d.props})),Z(t,g),_e(f)}globalThis.bitsEscapeLayers??=new Map;var xa,Sa;const du=class du{constructor(e){P(this,"opts");P(this,"domContext");C(this,xa,()=>Ie(this.domContext.getDocument(),"keydown",l(this,Sa),{passive:!1}));C(this,Sa,e=>{if(e.key!==zg||!jm(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)});this.opts=e,this.domContext=new qa(this.opts.ref);let n=me;ke(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=l(this,xa).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new du(e)}};xa=new WeakMap,Sa=new WeakMap;let Kl=du;function jm(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function Cf(t,e){if(new.target)return Te({component:Cf,...t});Pe(e,!0);let n=h(e,"escapeKeydownBehavior",7,"close"),r=h(e,"onEscapeKeydown",7,me),o=h(e,"children",7),i=h(e,"enabled",7),s=h(e,"ref",7);Kl.create({escapeKeydownBehavior:G(()=>n()),onEscapeKeydown:G(()=>r()),enabled:G(()=>i()),ref:s()});var a={get escapeKeydownBehavior(){return n()},set escapeKeydownBehavior(d="close"){n(d),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(d=me){r(d),p()},get children(){return o()},set children(d){o(d),p()},get enabled(){return i()},set enabled(d){i(d),p()},get ref(){return s()},set ref(d){s(d),p()},$set:Ee,$on:(d,f)=>Oe(e,d,f)},c=ue(),u=se(c);return ye(u,()=>o()??xe),Z(t,c),_e(a)}var pn,di,ar;const ka=class ka{constructor(){C(this,pn,Ct([]));C(this,di,new WeakMap);C(this,ar,new WeakMap)}static getInstance(){return this.instance||(this.instance=new ka),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=document.activeElement;r&&r!==document.body&&l(this,ar).set(e,r),l(this,pn).current=l(this,pn).current.filter(o=>o!==e),l(this,pn).current.unshift(e)}unregister(e){l(this,pn).current=l(this,pn).current.filter(r=>r!==e);const n=this.getActive();n&&n.resume()}getActive(){return l(this,pn).current[0]}setFocusMemory(e,n){l(this,di).set(e,n)}getFocusMemory(e){return l(this,di).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){l(this,ar).set(e,n)}getPreFocusMemory(e){return l(this,ar).get(e)}clearPreFocusMemory(e){l(this,ar).delete(e)}};pn=new WeakMap,di=new WeakMap,ar=new WeakMap,P(ka,"instance");let jl=ka;var Dn,Qe,lt,lr,Fn,Be,xf,Sf,kf,Af,ql,Fs,Yl;const fu=class fu{constructor(e){C(this,Be);C(this,Dn,!1);C(this,Qe,null);C(this,lt,jl.getInstance());C(this,lr,[]);C(this,Fn);I(this,Fn,e)}get paused(){return l(this,Dn)}pause(){I(this,Dn,!0)}resume(){I(this,Dn,!1)}mount(e){l(this,Qe)&&this.unmount(),I(this,Qe,e),l(this,lt).register(this),F(this,Be,Af).call(this),F(this,Be,Sf).call(this)}unmount(){l(this,Qe)&&(F(this,Be,xf).call(this),F(this,Be,kf).call(this),l(this,lt).unregister(this),l(this,lt).clearPreFocusMemory(this),I(this,Qe,null))}static use(e){let n=null;return ke([()=>e.ref.current,()=>e.enabled.current],([r,o])=>{r&&o?(n||(n=new fu(e)),n.mount(r)):n&&(n.unmount(),n=null)}),wn(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};Dn=new WeakMap,Qe=new WeakMap,lt=new WeakMap,lr=new WeakMap,Fn=new WeakMap,Be=new WeakSet,xf=function(){for(const e of l(this,lr))e();I(this,lr,[])},Sf=function(){if(!l(this,Qe))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Fn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Qe))return;const n=F(this,Be,Fs).call(this);n?(n.focus(),l(this,lt).setFocusMemory(this,n)):l(this,Qe).focus()})},kf=function(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(l(this,Fn).onCloseAutoFocus.current?.(e),!e.defaultPrevented){const n=l(this,lt).getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}},Af=function(){if(!l(this,Qe)||!l(this,Fn).trap.current)return;const e=l(this,Qe),n=e.ownerDocument,r=s=>{if(l(this,Dn)||!l(this,lt).isActiveScope(this))return;const a=s.target;if(!a)return;if(e.contains(a))l(this,lt).setFocusMemory(this,a);else{const u=l(this,lt).getFocusMemory(this);if(u&&e.contains(u)&&cf(u))s.preventDefault(),u.focus();else{const d=F(this,Be,Fs).call(this),f=F(this,Be,Yl).call(this)[0];(d||f||e).focus()}}},o=s=>{if(!l(this,Fn).loop||l(this,Dn)||s.key!=="Tab"||!l(this,lt).isActiveScope(this))return;const a=F(this,Be,ql).call(this);if(a.length===0)return;const c=a[0],u=a[a.length-1];!s.shiftKey&&n.activeElement===u?(s.preventDefault(),c.focus()):s.shiftKey&&n.activeElement===c&&(s.preventDefault(),u.focus())};l(this,lr).push(Ie(n,"focusin",r,{capture:!0}),Ie(e,"keydown",o));const i=new MutationObserver(()=>{const s=l(this,lt).getFocusMemory(this);if(s&&!e.contains(s)){const a=F(this,Be,Fs).call(this),c=F(this,Be,Yl).call(this)[0],u=a||c;u?(u.focus(),l(this,lt).setFocusMemory(this,u)):e.focus()}});i.observe(e,{childList:!0,subtree:!0}),l(this,lr).push(()=>i.disconnect())},ql=function(){return l(this,Qe)?af(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]},Fs=function(){return F(this,Be,ql).call(this)[0]||null},Yl=function(){return l(this,Qe)?lf(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]};let Gl=fu;function Tf(t,e){if(new.target)return Te({component:Tf,...t});Pe(e,!0);let n=h(e,"enabled",7,!1),r=h(e,"trapFocus",7,!1),o=h(e,"loop",7,!1),i=h(e,"onCloseAutoFocus",7,me),s=h(e,"onOpenAutoFocus",7,me),a=h(e,"focusScope",7),c=h(e,"ref",7);const u=Gl.use({enabled:G(()=>n()),trap:G(()=>r()),loop:o(),onCloseAutoFocus:G(()=>i()),onOpenAutoFocus:G(()=>s()),ref:c()});var d={get enabled(){return n()},set enabled(b=!1){n(b),p()},get trapFocus(){return r()},set trapFocus(b=!1){r(b),p()},get loop(){return o()},set loop(b=!1){o(b),p()},get onCloseAutoFocus(){return i()},set onCloseAutoFocus(b=me){i(b),p()},get onOpenAutoFocus(){return s()},set onOpenAutoFocus(b=me){s(b),p()},get focusScope(){return a()},set focusScope(b){a(b),p()},get ref(){return c()},set ref(b){c(b),p()},$set:Ee,$on:(b,v)=>Oe(e,b,v)},f=ue(),g=se(f);return ye(g,()=>a()??xe,()=>({props:u.props})),Z(t,f),_e(d)}const Ku=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Kr,jr,fi,hi,Aa,Ef,Ta,Ea,pi;const hu=class hu{constructor(e){C(this,Aa);P(this,"opts");P(this,"domContext");C(this,Kr,me);C(this,jr,!1);C(this,fi,Ku);C(this,hi,Ku);C(this,Ta,e=>{l(this,hi).call(this,e)});C(this,Ea,e=>{const n=this.opts.ref.current,r=e.target;!bn(n)||!bn(r)||!l(this,jr)||!qm(this)||!Fg(n,r)||(l(this,fi).call(this,e),!e.defaultPrevented&&I(this,Kr,Gm(n,this.domContext.getDocument().body)))});C(this,pi,()=>{l(this,Kr).call(this),I(this,Kr,me)});this.opts=e,this.domContext=new qa(e.ref);let n=me;ke(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,o,i])=>(I(this,jr,r),I(this,fi,o),I(this,hi,i),r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=F(this,Aa,Ef).call(this)),()=>{I(this,jr,!1),n(),l(this,pi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new hu(e)}};Kr=new WeakMap,jr=new WeakMap,fi=new WeakMap,hi=new WeakMap,Aa=new WeakSet,Ef=function(){return Pr(Ie(this.domContext.getDocument(),"pointerdown",l(this,Ea)),Ie(this.domContext.getDocument(),"pointerup",_d(l(this,pi),l(this,Ta))))},Ta=new WeakMap,Ea=new WeakMap,pi=new WeakMap;let Xl=hu;const ju=t=>t.style.userSelect||t.style.webkitUserSelect;function Gm(t,e){const n=ju(e),r=ju(t);return vs(e,"none"),vs(t,"text"),()=>{vs(e,n),vs(t,r)}}function vs(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function qm(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function Of(t,e){if(new.target)return Te({component:Of,...t});Pe(e,!0);let n=h(e,"preventOverflowTextSelection",7,!0),r=h(e,"onPointerDown",7,me),o=h(e,"onPointerUp",7,me),i=h(e,"id",7),s=h(e,"children",7),a=h(e,"enabled",7),c=h(e,"ref",7);Xl.create({id:G(()=>i()),onPointerDown:G(()=>r()),onPointerUp:G(()=>o()),enabled:G(()=>a()&&n()),ref:c()});var u={get preventOverflowTextSelection(){return n()},set preventOverflowTextSelection(g=!0){n(g),p()},get onPointerDown(){return r()},set onPointerDown(g=me){r(g),p()},get onPointerUp(){return o()},set onPointerUp(g=me){o(g),p()},get id(){return i()},set id(g){i(g),p()},get children(){return s()},set children(g){s(g),p()},get enabled(){return a()},set enabled(g){a(g),p()},get ref(){return c()},set ref(g){c(g),p()},$set:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>s()??xe),Z(t,d),_e(u)}globalThis.bitsIdCounter??={current:0};function Qs(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var gi,Gr,cr,ur,Oa,Pf;class Ym{constructor(e){C(this,Oa);C(this,gi);C(this,Gr,0);C(this,cr,oe());C(this,ur);I(this,gi,e)}get(...e){return I(this,Gr,l(this,Gr)+1),w(l(this,cr))===void 0&&I(this,ur,Sd(()=>{N(l(this,cr),l(this,gi).call(this,...e),!0)})),Le(()=>()=>{F(this,Oa,Pf).call(this)}),w(l(this,cr))}}gi=new WeakMap,Gr=new WeakMap,cr=new WeakMap,ur=new WeakMap,Oa=new WeakSet,Pf=function(){I(this,Gr,l(this,Gr)-1),l(this,ur)&&l(this,Gr)<=0&&(l(this,ur).call(this),N(l(this,cr),void 0),I(this,ur,void 0))};const Ls=new _l;let ys=oe(null),ul=null,uo=null,fo=!1;const Gu=G(()=>{for(const t of Ls.values())if(t)return!0;return!1});let dl=null;const Xm=new Ym(()=>{function t(){typeof document>"u"||(document.body.setAttribute("style",w(ys)??""),document.body.style.removeProperty("--scrollbar-width"),Eu&&ul?.(),N(ys,null))}function e(){uo!==null&&(window.clearTimeout(uo),uo=null)}function n(o,i){e(),fo=!0,dl=Date.now();const s=dl,a=()=>{uo=null,dl===s&&(_f(Ls)?fo=!1:(fo=!1,i()))},c=o===null?24:o;uo=window.setTimeout(a,c)}function r(){w(ys)===null&&Ls.size===0&&!fo&&N(ys,document.body.getAttribute("style"),!0)}return ke(()=>Gu.current,()=>{if(!Gu.current)return;r(),fo=!1;const o=getComputedStyle(document.documentElement),i=getComputedStyle(document.body),s=o.scrollbarGutter?.includes("stable")||i.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(i.paddingRight??"0",10)+a,margin:Number.parseInt(i.marginRight??"0",10)};a>0&&!s&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Eu&&(ul=Ie(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),_t(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),wn(()=>()=>{e(),t(),ul?.()}),{get lockMap(){return Ls},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:e,ensureInitialStyleCaptured:r}});var dr,mi,bi,ct;class Zm{constructor(e,n=()=>null){C(this,dr,Qs());C(this,mi);C(this,bi,()=>null);C(this,ct);P(this,"locked");I(this,mi,e),I(this,bi,n),I(this,ct,Xm.get()),l(this,ct)&&(l(this,ct).cancelPendingCleanup(),l(this,ct).ensureInitialStyleCaptured(),l(this,ct).lockMap.set(l(this,dr),l(this,mi)??!1),this.locked=G(()=>l(this,ct).lockMap.get(l(this,dr))??!1,r=>l(this,ct).lockMap.set(l(this,dr),r)),wn(()=>{if(l(this,ct).lockMap.delete(l(this,dr)),_f(l(this,ct).lockMap))return;const r=l(this,bi).call(this);l(this,ct).scheduleCleanupIfNoNewLocks(r,()=>{l(this,ct).resetBodyStyle()})}))}}dr=new WeakMap,mi=new WeakMap,bi=new WeakMap,ct=new WeakMap;function _f(t){for(const[e,n]of t)if(n)return!0;return!1}function Zl(t,e){if(new.target)return Te({component:Zl,...t});Pe(e,!0);let n=h(e,"preventScroll",7,!0),r=h(e,"restoreScrollDelay",7,null);n()&&new Zm(n(),()=>r());var o={get preventScroll(){return n()},set preventScroll(i=!0){n(i),p()},get restoreScrollDelay(){return r()},set restoreScrollDelay(i=null){r(i),p()},$set:Ee,$on:(i,s)=>Oe(e,i,s)};return _e(o)}const Jm=["top","right","bottom","left"],jn=Math.min,gt=Math.max,$s=Math.round,ws=Math.floor,$t=t=>({x:t,y:t}),Qm={left:"right",right:"left",bottom:"top",top:"bottom"};function Jl(t,e,n){return gt(t,jn(e,n))}function vn(t,e){return typeof t=="function"?t(e):t}function yn(t){return t.split("-")[0]}function io(t){return t.split("-")[1]}function Nc(t){return t==="x"?"y":"x"}function Dc(t){return t==="y"?"height":"width"}function Qt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Fc(t){return Nc(Qt(t))}function $m(t,e,n){n===void 0&&(n=!1);const r=io(t),o=Fc(t),i=Dc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ea(s)),[s,ea(s)]}function eb(t){const e=ea(t);return[Ql(t),e,Ql(e)]}function Ql(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const qu=["left","right"],Yu=["right","left"],tb=["top","bottom"],nb=["bottom","top"];function rb(t,e,n){switch(t){case"top":case"bottom":return n?e?Yu:qu:e?qu:Yu;case"left":case"right":return e?tb:nb;default:return[]}}function ob(t,e,n,r){const o=io(t);let i=rb(yn(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(Ql)))),i}function ea(t){const e=yn(t);return Qm[e]+t.slice(e.length)}function ib(t){return{top:0,right:0,bottom:0,left:0,...t}}function If(t){return typeof t!="number"?ib(t):{top:t,right:t,bottom:t,left:t}}function ta(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Xu(t,e,n){let{reference:r,floating:o}=t;const i=Qt(e),s=Fc(e),a=Dc(s),c=yn(e),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let b;switch(c){case"top":b={x:d,y:r.y-o.height};break;case"bottom":b={x:d,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:f};break;case"left":b={x:r.x-o.width,y:f};break;default:b={x:r.x,y:r.y}}switch(io(e)){case"start":b[s]-=g*(n&&u?-1:1);break;case"end":b[s]+=g*(n&&u?-1:1);break}return b}async function sb(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:b=0}=vn(e,t),v=If(b),E=a[g?f==="floating"?"reference":"floating":f],T=ta(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),O=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),y=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},x=ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:A,strategy:c}):O);return{top:(T.top-x.top+v.top)/y.y,bottom:(x.bottom-T.bottom+v.bottom)/y.y,left:(T.left-x.left+v.left)/y.x,right:(x.right-T.right+v.right)/y.x}}const ab=50,lb=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:sb},c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:f}=Xu(u,r,c),g=r,b=0;const v={};for(let m=0;m<i.length;m++){const E=i[m];if(!E)continue;const{name:T,fn:O}=E,{x:A,y,data:x,reset:k}=await O({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:t,floating:e}});d=A??d,f=y??f,v[T]={...v[T],...x},k&&b<ab&&(b++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):k.rects),{x:d,y:f}=Xu(u,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:v}},cb=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:u,padding:d=0}=vn(t,e)||{};if(u==null)return{};const f=If(d),g={x:n,y:r},b=Fc(o),v=Dc(b),m=await s.getDimensions(u),E=b==="y",T=E?"top":"left",O=E?"bottom":"right",A=E?"clientHeight":"clientWidth",y=i.reference[v]+i.reference[b]-g[b]-i.floating[v],x=g[b]-i.reference[b],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=k?k[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(k)))&&(R=a.floating[A]||i.floating[v]);const M=y/2-x/2,K=R/2-m[v]/2-1,j=jn(f[T],K),$=jn(f[O],K),z=j,Y=R-m[v]-$,B=R/2-m[v]/2+M,J=Jl(z,B,Y),re=!c.arrow&&io(o)!=null&&B!==J&&i.reference[v]/2-(B<z?j:$)-m[v]/2<0,ee=re?B<z?B-z:B-Y:0;return{[b]:g[b]+ee,data:{[b]:J,centerOffset:B-J-ee,...re&&{alignmentOffset:ee}},reset:re}}}),ub=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...E}=vn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const T=yn(o),O=Qt(a),A=yn(a)===a,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=g||(A||!m?[ea(a)]:eb(a)),k=v!=="none";!g&&k&&x.push(...ob(a,m,v,y));const R=[a,...x],M=await c.detectOverflow(e,E),K=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&K.push(M[T]),f){const B=$m(o,s,y);K.push(M[B[0]],M[B[1]])}if(j=[...j,{placement:o,overflows:K}],!K.every(B=>B<=0)){var $,z;const B=((($=i.flip)==null?void 0:$.index)||0)+1,J=R[B];if(J&&(!(f==="alignment"?O!==Qt(J):!1)||j.every(ie=>Qt(ie.placement)===O?ie.overflows[0]>0:!0)))return{data:{index:B,overflows:j},reset:{placement:J}};let re=(z=j.filter(ee=>ee.overflows[0]<=0).sort((ee,ie)=>ee.overflows[1]-ie.overflows[1])[0])==null?void 0:z.placement;if(!re)switch(b){case"bestFit":{var Y;const ee=(Y=j.filter(ie=>{if(k){const he=Qt(ie.placement);return he===O||he==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(he=>he>0).reduce((he,_)=>he+_,0)]).sort((ie,he)=>ie[1]-he[1])[0])==null?void 0:Y[0];ee&&(re=ee);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Zu(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ju(t){return Jm.some(e=>t[e]>=0)}const db=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:o="referenceHidden",...i}=vn(t,e);switch(o){case"referenceHidden":{const s=await r.detectOverflow(e,{...i,elementContext:"reference"}),a=Zu(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ju(a)}}}case"escaped":{const s=await r.detectOverflow(e,{...i,altBoundary:!0}),a=Zu(s,n.floating);return{data:{escapedOffsets:a,escaped:Ju(a)}}}default:return{}}}}},Mf=new Set(["left","top"]);async function fb(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=yn(n),a=io(n),c=Qt(n)==="y",u=Mf.has(s)?-1:1,d=i&&c?-1:1,f=vn(e,t);let{mainAxis:g,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(b=a==="end"?v*-1:v),c?{x:b*d,y:g*u}:{x:g*u,y:b*d}}const hb=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=e,c=await fb(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},pb=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:O,y:A}=T;return{x:O,y:A}}},...u}=vn(t,e),d={x:n,y:r},f=await i.detectOverflow(e,u),g=Qt(yn(o)),b=Nc(g);let v=d[b],m=d[g];if(s){const T=b==="y"?"top":"left",O=b==="y"?"bottom":"right",A=v+f[T],y=v-f[O];v=Jl(A,v,y)}if(a){const T=g==="y"?"top":"left",O=g==="y"?"bottom":"right",A=m+f[T],y=m-f[O];m=Jl(A,m,y)}const E=c.fn({...e,[b]:v,[g]:m});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[b]:s,[g]:a}}}}}},gb=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=vn(t,e),d={x:n,y:r},f=Qt(o),g=Nc(f);let b=d[g],v=d[f];const m=vn(a,e),E=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const A=g==="y"?"height":"width",y=i.reference[g]-i.floating[A]+E.mainAxis,x=i.reference[g]+i.reference[A]-E.mainAxis;b<y?b=y:b>x&&(b=x)}if(u){var T,O;const A=g==="y"?"width":"height",y=Mf.has(yn(o)),x=i.reference[f]-i.floating[A]+(y&&((T=s.offset)==null?void 0:T[f])||0)+(y?0:E.crossAxis),k=i.reference[f]+i.reference[A]+(y?0:((O=s.offset)==null?void 0:O[f])||0)-(y?E.crossAxis:0);v<x?v=x:v>k&&(v=k)}return{[g]:b,[f]:v}}}},mb=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:s,elements:a}=e,{apply:c=()=>{},...u}=vn(t,e),d=await s.detectOverflow(e,u),f=yn(o),g=io(o),b=Qt(o)==="y",{width:v,height:m}=i.floating;let E,T;f==="top"||f==="bottom"?(E=f,T=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(T=f,E=g==="end"?"top":"bottom");const O=m-d.top-d.bottom,A=v-d.left-d.right,y=jn(m-d[E],O),x=jn(v-d[T],A),k=!e.middlewareData.shift;let R=y,M=x;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=A),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(R=O),k&&!g){const j=gt(d.left,0),$=gt(d.right,0),z=gt(d.top,0),Y=gt(d.bottom,0);b?M=v-2*(j!==0||$!==0?j+$:gt(d.left,d.right)):R=m-2*(z!==0||Y!==0?z+Y:gt(d.top,d.bottom))}await c({...e,availableWidth:M,availableHeight:R});const K=await s.getDimensions(a.floating);return v!==K.width||m!==K.height?{reset:{rects:!0}}:{}}}};function Ja(){return typeof window<"u"}function so(t){return Rf(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tn(t){var e;return(e=(Rf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rf(t){return Ja()?t instanceof Node||t instanceof mt(t).Node:!1}function Rt(t){return Ja()?t instanceof Element||t instanceof mt(t).Element:!1}function Cn(t){return Ja()?t instanceof HTMLElement||t instanceof mt(t).HTMLElement:!1}function Qu(t){return!Ja()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function hs(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function bb(t){return/^(table|td|th)$/.test(so(t))}function Qa(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const vb=/transform|translate|scale|rotate|perspective|filter/,yb=/paint|layout|strict|content/,Zn=t=>!!t&&t!=="none";let fl;function Lc(t){const e=Rt(t)?Nt(t):t;return Zn(e.transform)||Zn(e.translate)||Zn(e.scale)||Zn(e.rotate)||Zn(e.perspective)||!Bc()&&(Zn(e.backdropFilter)||Zn(e.filter))||vb.test(e.willChange||"")||yb.test(e.contain||"")}function wb(t){let e=Gn(t);for(;Cn(e)&&!to(e);){if(Lc(e))return e;if(Qa(e))return null;e=Gn(e)}return null}function Bc(){return fl==null&&(fl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fl}function to(t){return/^(html|body|#document)$/.test(so(t))}function Nt(t){return mt(t).getComputedStyle(t)}function $a(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gn(t){if(so(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qu(t)&&t.host||tn(t);return Qu(e)?e.host:e}function Nf(t){const e=Gn(t);return to(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&hs(e)?e:Nf(e)}function To(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Nf(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=mt(o);if(i){const a=$l(s);return e.concat(s,s.visualViewport||[],hs(o)?o:[],a&&n?To(a):[])}else return e.concat(o,To(o,[],n))}function $l(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Df(t){const e=Nt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Cn(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,a=$s(n)!==i||$s(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function zc(t){return Rt(t)?t:t.contextElement}function _r(t){const e=zc(t);if(!Cn(e))return $t(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Df(e);let s=(i?$s(n.width):n.width)/r,a=(i?$s(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Cb=$t(0);function Ff(t){const e=mt(t);return!Bc()||!e.visualViewport?Cb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==mt(t)?!1:e}function yr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=zc(t);let s=$t(1);e&&(r?Rt(r)&&(s=_r(r)):s=_r(t));const a=xb(i,n,r)?Ff(i):$t(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const g=mt(i),b=r&&Rt(r)?mt(r):r;let v=g,m=$l(v);for(;m&&r&&b!==v;){const E=_r(m),T=m.getBoundingClientRect(),O=Nt(m),A=T.left+(m.clientLeft+parseFloat(O.paddingLeft))*E.x,y=T.top+(m.clientTop+parseFloat(O.paddingTop))*E.y;c*=E.x,u*=E.y,d*=E.x,f*=E.y,c+=A,u+=y,v=mt(m),m=$l(v)}}return ta({width:d,height:f,x:c,y:u})}function el(t,e){const n=$a(t).scrollLeft;return e?e.left+n:yr(tn(t)).left+n}function Lf(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-el(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function Sb(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=tn(r),a=e?Qa(e.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=$t(1);const d=$t(0),f=Cn(r);if((f||!f&&!i)&&((so(r)!=="body"||hs(s))&&(c=$a(r)),f)){const b=yr(r);u=_r(r),d.x=b.x+r.clientLeft,d.y=b.y+r.clientTop}const g=s&&!f&&!i?Lf(s,c):$t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function kb(t){return Array.from(t.getClientRects())}function Ab(t){const e=tn(t),n=$a(t),r=t.ownerDocument.body,o=gt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=gt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+el(t);const a=-n.scrollTop;return Nt(r).direction==="rtl"&&(s+=gt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const $u=25;function Tb(t,e){const n=mt(t),r=tn(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Bc();(!d||d&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=el(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),b=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-b);v<=$u&&(i-=v)}else u<=$u&&(i+=u);return{width:i,height:s,x:a,y:c}}function Eb(t,e){const n=yr(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Cn(t)?_r(t):$t(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function ed(t,e,n){let r;if(e==="viewport")r=Tb(t,n);else if(e==="document")r=Ab(tn(t));else if(Rt(e))r=Eb(e,n);else{const o=Ff(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ta(r)}function Bf(t,e){const n=Gn(t);return n===e||!Rt(n)||to(n)?!1:Nt(n).position==="fixed"||Bf(n,e)}function Ob(t,e){const n=e.get(t);if(n)return n;let r=To(t,[],!1).filter(a=>Rt(a)&&so(a)!=="body"),o=null;const i=Nt(t).position==="fixed";let s=i?Gn(t):t;for(;Rt(s)&&!to(s);){const a=Nt(s),c=Lc(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||hs(s)&&!c&&Bf(t,s))?r=r.filter(d=>d!==s):o=a,s=Gn(s)}return e.set(t,r),r}function Pb(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?Qa(e)?[]:Ob(e,this._c):[].concat(n),r],a=ed(e,s[0],o);let c=a.top,u=a.right,d=a.bottom,f=a.left;for(let g=1;g<s.length;g++){const b=ed(e,s[g],o);c=gt(b.top,c),u=jn(b.right,u),d=jn(b.bottom,d),f=gt(b.left,f)}return{width:u-f,height:d-c,x:f,y:c}}function _b(t){const{width:e,height:n}=Df(t);return{width:e,height:n}}function Ib(t,e,n){const r=Cn(e),o=tn(e),i=n==="fixed",s=yr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=$t(0);function u(){c.x=el(o)}if(r||!r&&!i)if((so(e)!=="body"||hs(o))&&(a=$a(e)),r){const b=yr(e,!0,i,e);c.x=b.x+e.clientLeft,c.y=b.y+e.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Lf(o,a):$t(0),f=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function hl(t){return Nt(t).position==="static"}function td(t,e){if(!Cn(t)||Nt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return tn(t)===n&&(n=n.ownerDocument.body),n}function zf(t,e){const n=mt(t);if(Qa(t))return n;if(!Cn(t)){let o=Gn(t);for(;o&&!to(o);){if(Rt(o)&&!hl(o))return o;o=Gn(o)}return n}let r=td(t,e);for(;r&&bb(r)&&hl(r);)r=td(r,e);return r&&to(r)&&hl(r)&&!Lc(r)?n:r||wb(t)||n}const Mb=async function(t){const e=this.getOffsetParent||zf,n=this.getDimensions,r=await n(t.floating);return{reference:Ib(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rb(t){return Nt(t).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:Sb,getDocumentElement:tn,getClippingRect:Pb,getOffsetParent:zf,getElementRects:Mb,getClientRects:kb,getDimensions:_b,getScale:_r,isElement:Rt,isRTL:Rb};function Vf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Db(t,e){let n=null,r;const o=tn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:f,width:g,height:b}=u;if(a||e(),!g||!b)return;const v=ws(f),m=ws(o.clientWidth-(d+g)),E=ws(o.clientHeight-(f+b)),T=ws(d),A={rootMargin:-v+"px "+-m+"px "+-E+"px "+-T+"px",threshold:gt(0,jn(1,c))||1};let y=!0;function x(k){const R=k[0].intersectionRatio;if(R!==c){if(!y)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Vf(u,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(x,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,A)}n.observe(t)}return s(!0),i}function Fb(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=zc(t),d=o||i?[...u?To(u):[],...e?To(e):[]]:[];d.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),i&&T.addEventListener("resize",n)});const f=u&&a?Db(u,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(T=>{let[O]=T;O&&O.target===u&&b&&e&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(e)})),n()}),u&&!c&&b.observe(u),e&&b.observe(e));let v,m=c?yr(t):null;c&&E();function E(){const T=yr(t);m&&!Vf(m,T)&&n(),m=T,v=requestAnimationFrame(E)}return n(),()=>{var T;d.forEach(O=>{o&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f?.(),(T=b)==null||T.disconnect(),b=null,c&&cancelAnimationFrame(v)}}const Lb=hb,Bb=pb,zb=ub,Vb=mb,Wb=db,Ub=cb,Hb=gb,Kb=(t,e,n)=>{const r=new Map,o={platform:Nb,...n},i={...o.platform,_c:r};return lb(t,e,{...o,platform:i})};function Jn(t){return typeof t=="function"?t():t}function Wf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function nd(t,e){const n=Wf(t);return Math.round(e*n)/n}function rd(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function jb(t){const e=t.whileElementsMounted,n=U(()=>Jn(t.open)??!0),r=U(()=>Jn(t.middleware)),o=U(()=>Jn(t.transform)??!0),i=U(()=>Jn(t.placement)??"bottom"),s=U(()=>Jn(t.strategy)??"absolute"),a=U(()=>Jn(t.sideOffset)??0),c=U(()=>Jn(t.alignOffset)??0),u=t.reference;let d=oe(0),f=oe(0);const g=Ct(null);let b=oe(Hn(w(s))),v=oe(Hn(w(i))),m=oe(Hn({})),E=oe(!1),T=!1,O=0;const A=U(()=>{const j=g.current?nd(g.current,w(d)):w(d),$=g.current?nd(g.current,w(f)):w(f);return w(o)?{position:w(b),left:"0",top:"0",transform:`translate(${j}px, ${$}px)`,...g.current&&Wf(g.current)>=1.5&&{willChange:"transform"}}:{position:w(b),left:`${j}px`,top:`${$}px`}});let y;function x(){if(u.current===null||g.current===null)return;const j=u.current,$=g.current,z=++O;Kb(j,$,{middleware:w(r),placement:w(i),strategy:w(s)}).then(Y=>{if(z!==O||u.current!==j||g.current!==$)return;if(Gb(j)){N(m,{...w(m),hide:{...w(m).hide,referenceHidden:!0}},!0);return}if(!w(n)&&w(d)!==0&&w(f)!==0){const J=Math.max(Math.abs(w(a)),Math.abs(w(c)),15);if(Y.x<=J&&Y.y<=J)return}N(d,Y.x,!0),N(f,Y.y,!0),N(b,Y.strategy,!0),N(v,Y.placement,!0),N(m,Y.middlewareData,!0),N(E,!0)})}function k(){typeof y=="function"&&(y(),y=void 0),O++}function R(){if(k(),e===void 0){x();return}w(n)&&(u.current===null||g.current===null||(y=e(u.current,g.current,x)))}function M(){!w(n)&&g.current===null&&N(E,!1)}function K(){return[w(r),w(i),w(s),w(a),w(c),w(n)]}return Le(()=>{e===void 0&&w(n)&&x()}),Le(R),Le(()=>{if(e!==void 0){if(K(),!w(n)){T=!1;return}if(!w(E)){T=!1;return}if(!T){T=!0;return}x()}}),Le(M),Le(()=>k),{floating:g,reference:u,get strategy(){return w(b)},get placement(){return w(v)},get middlewareData(){return w(m)},get isPositioned(){return w(E)},get floatingStyles(){return w(A)},get update(){return x}}}function Gb(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const qb={top:"bottom",right:"left",bottom:"top",left:"right"},Vc=new xt("Floating.Root"),ec=new xt("Floating.Content"),Wc=new xt("Floating.Root");class na{constructor(){P(this,"anchorNode",Ct(null));P(this,"customAnchorNode",Ct(null));P(this,"triggerNode",Ct(null));Le(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Wc.set(new na):Vc.set(new na)}}var vi,yi,wi,Pa,Ci,_a,xi,Si,ki,Ai,Ti,Ei,Oi,Pi,_i,Ii,Mi,Ri,Ni,Di,Fi,Li,Bi,zi;const Ia=class Ia{constructor(e,n){P(this,"opts");P(this,"root");P(this,"contentRef",Ct(null));P(this,"wrapperRef",Ct(null));P(this,"arrowRef",Ct(null));P(this,"contentAttachment",ft(this.contentRef));P(this,"wrapperAttachment",ft(this.wrapperRef));P(this,"arrowAttachment",ft(this.arrowRef));P(this,"arrowId",Ct(Qs()));C(this,vi,U(()=>{if(typeof this.opts.style=="string")return go(this.opts.style);if(!this.opts.style)return{}}));C(this,yi);C(this,wi,new Pg(()=>this.arrowRef.current??void 0));C(this,Pa,U(()=>l(this,wi)?.width??0));C(this,Ci,U(()=>l(this,wi)?.height??0));C(this,_a,U(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")));C(this,xi,U(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));C(this,Si,U(()=>w(l(this,xi)).length>0));C(this,ki,U(()=>({padding:this.opts.collisionPadding.current,boundary:w(l(this,xi)).filter(Xg),altBoundary:this.hasExplicitBoundaries})));C(this,Ai,oe(void 0));C(this,Ti,oe(void 0));C(this,Ei,oe(void 0));C(this,Oi,oe(void 0));C(this,Pi,U(()=>[Lb({mainAxis:this.opts.sideOffset.current+w(l(this,Ci)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Bb({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Hb():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&zb({...this.detectOverflowOptions}),Vb({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference;N(l(this,Ai),n,!0),N(l(this,Ti),r,!0),N(l(this,Ei),o,!0),N(l(this,Oi),i,!0)}}),this.arrowRef.current&&Ub({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Yb({arrowWidth:w(l(this,Pa)),arrowHeight:w(l(this,Ci))}),this.opts.hideWhenDetached.current&&Wb({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));P(this,"floating");C(this,_i,U(()=>Xb(this.floating.placement)));C(this,Ii,U(()=>Zb(this.floating.placement)));C(this,Mi,U(()=>this.floating.middlewareData.arrow?.x??0));C(this,Ri,U(()=>this.floating.middlewareData.arrow?.y??0));C(this,Ni,U(()=>this.floating.middlewareData.arrow?.centerOffset!==0));C(this,Di,oe());C(this,Fi,U(()=>qb[this.placedSide]));C(this,Li,U(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${w(l(this,Ai))}px`,"--bits-floating-available-height":`${w(l(this,Ti))}px`,"--bits-floating-anchor-width":`${w(l(this,Ei))}px`,"--bits-floating-anchor-height":`${w(l(this,Oi))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...w(l(this,vi))},dir:this.opts.dir.current,...this.wrapperAttachment})));C(this,Bi,U(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Md({...w(l(this,vi))}),...this.contentAttachment})));C(this,zi,U(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=n,I(this,yi,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ke(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=jb({strategy:()=>this.opts.strategy.current,placement:()=>w(l(this,_a)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Fb(...r,{animationFrame:l(this,yi)?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Le(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ke(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Ld(r),i=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const s=o.getComputedStyle(r).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{o.cancelAnimationFrame(i)}}),Le(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,n=!1){return n?ec.set(new Ia(e,Wc.get())):ec.set(new Ia(e,Vc.get()))}get hasExplicitBoundaries(){return w(l(this,Si))}set hasExplicitBoundaries(e){N(l(this,Si),e)}get detectOverflowOptions(){return w(l(this,ki))}set detectOverflowOptions(e){N(l(this,ki),e)}get middleware(){return w(l(this,Pi))}set middleware(e){N(l(this,Pi),e)}get placedSide(){return w(l(this,_i))}set placedSide(e){N(l(this,_i),e)}get placedAlign(){return w(l(this,Ii))}set placedAlign(e){N(l(this,Ii),e)}get arrowX(){return w(l(this,Mi))}set arrowX(e){N(l(this,Mi),e)}get arrowY(){return w(l(this,Ri))}set arrowY(e){N(l(this,Ri),e)}get cannotCenterArrow(){return w(l(this,Ni))}set cannotCenterArrow(e){N(l(this,Ni),e)}get contentZIndex(){return w(l(this,Di))}set contentZIndex(e){N(l(this,Di),e,!0)}get arrowBaseSide(){return w(l(this,Fi))}set arrowBaseSide(e){N(l(this,Fi),e)}get wrapperProps(){return w(l(this,Li))}set wrapperProps(e){N(l(this,Li),e)}get props(){return w(l(this,Bi))}set props(e){N(l(this,Bi),e)}get arrowStyle(){return w(l(this,zi))}set arrowStyle(e){N(l(this,zi),e)}};vi=new WeakMap,yi=new WeakMap,wi=new WeakMap,Pa=new WeakMap,Ci=new WeakMap,_a=new WeakMap,xi=new WeakMap,Si=new WeakMap,ki=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,_i=new WeakMap,Ii=new WeakMap,Mi=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,Di=new WeakMap,Fi=new WeakMap,Li=new WeakMap,Bi=new WeakMap,zi=new WeakMap;let tc=Ia;var Vi;const pu=class pu{constructor(e,n){P(this,"opts");P(this,"content");C(this,Vi,U(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment})));this.opts=e,this.content=n}static create(e){return new pu(e,ec.get())}get props(){return w(l(this,Vi))}set props(e){N(l(this,Vi),e)}};Vi=new WeakMap;let od=pu;class nc{constructor(e,n){P(this,"opts");P(this,"root");this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=Pd(e.virtualEl.current):n.triggerNode=e.ref}static create(e,n=!1){return n?new nc(e,Wc.get()):new nc(e,Vc.get())}}function Yb(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,s=o.arrow?.centerOffset!==0,a=s?0:t.arrowWidth,c=s?0:t.arrowHeight,[u,d]=Uc(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(o.arrow?.x??0)+a/2,b=(o.arrow?.y??0)+c/2;let v="",m="";return u==="bottom"?(v=s?f:`${g}px`,m=`${-c}px`):u==="top"?(v=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?f:`${b}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?f:`${b}px`),{data:{x:v,y:m}}}}}function Uc(t){const[e,n="center"]=t.split("-");return[e,n]}function Xb(t){return Uc(t)[0]}function Zb(t){return Uc(t)[1]}function Uf(t,e){if(new.target)return Te({component:Uf,...t});Pe(e,!0);let n=h(e,"children",7),r=h(e,"tooltip",7,!1);na.create(r());var o={get children(){return n()},set children(a){n(a),p()},get tooltip(){return r()},set tooltip(a=!1){r(a),p()},$set:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe),Z(t,i),_e(o)}function Hf(t,e){if(new.target)return Te({component:Hf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"side",7,"bottom"),o=h(e,"sideOffset",7,0),i=h(e,"align",7,"center"),s=h(e,"alignOffset",7,0),a=h(e,"id",7),c=h(e,"arrowPadding",7,0),u=h(e,"avoidCollisions",7,!0),d=h(e,"collisionBoundary",23,()=>[]),f=h(e,"collisionPadding",7,0),g=h(e,"hideWhenDetached",7,!1),b=h(e,"onPlaced",7,()=>{}),v=h(e,"sticky",7,"partial"),m=h(e,"updatePositionStrategy",7,"optimized"),E=h(e,"strategy",7,"fixed"),T=h(e,"dir",7,"ltr"),O=h(e,"style",23,()=>({})),A=h(e,"wrapperId",23,Qs),y=h(e,"customAnchor",7,null),x=h(e,"enabled",7),k=h(e,"tooltip",7,!1);const R=tc.create({side:G(()=>r()),sideOffset:G(()=>o()),align:G(()=>i()),alignOffset:G(()=>s()),id:G(()=>a()),arrowPadding:G(()=>c()),avoidCollisions:G(()=>u()),collisionBoundary:G(()=>d()),collisionPadding:G(()=>f()),hideWhenDetached:G(()=>g()),onPlaced:G(()=>b()),sticky:G(()=>v()),updatePositionStrategy:G(()=>m()),strategy:G(()=>E()),dir:G(()=>T()),style:G(()=>O()),enabled:G(()=>x()),wrapperId:G(()=>A()),customAnchor:G(()=>y())},k()),M=U(()=>Zt(R.wrapperProps,{style:{pointerEvents:"auto"}}));var K={get content(){return n()},set content(z){n(z),p()},get side(){return r()},set side(z="bottom"){r(z),p()},get sideOffset(){return o()},set sideOffset(z=0){o(z),p()},get align(){return i()},set align(z="center"){i(z),p()},get alignOffset(){return s()},set alignOffset(z=0){s(z),p()},get id(){return a()},set id(z){a(z),p()},get arrowPadding(){return c()},set arrowPadding(z=0){c(z),p()},get avoidCollisions(){return u()},set avoidCollisions(z=!0){u(z),p()},get collisionBoundary(){return d()},set collisionBoundary(z=[]){d(z),p()},get collisionPadding(){return f()},set collisionPadding(z=0){f(z),p()},get hideWhenDetached(){return g()},set hideWhenDetached(z=!1){g(z),p()},get onPlaced(){return b()},set onPlaced(z=()=>{}){b(z),p()},get sticky(){return v()},set sticky(z="partial"){v(z),p()},get updatePositionStrategy(){return m()},set updatePositionStrategy(z="optimized"){m(z),p()},get strategy(){return E()},set strategy(z="fixed"){E(z),p()},get dir(){return T()},set dir(z="ltr"){T(z),p()},get style(){return O()},set style(z={}){O(z),p()},get wrapperId(){return A()},set wrapperId(z=Qs()){A(z),p()},get customAnchor(){return y()},set customAnchor(z=null){y(z),p()},get enabled(){return x()},set enabled(z){x(z),p()},get tooltip(){return k()},set tooltip(z=!1){k(z),p()},$set:Ee,$on:(z,Y)=>Oe(e,z,Y)},j=ue(),$=se(j);return ye($,()=>n()??xe,()=>({props:R.props,wrapperProps:w(M)})),Z(t,j),_e(K)}function Kf(t,e){if(new.target)return Te({component:Kf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"onPlaced",7);hp(()=>{r()?.()});var o={get content(){return n()},set content(a){n(a),p()},get onPlaced(){return r()},set onPlaced(a){r(a),p()},$set:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe,()=>({props:{},wrapperProps:{}})),Z(t,i),_e(o)}var Jb=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function jf(t,e){if(new.target)return Te({component:jf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"isStatic",7,!1),o=h(e,"onPlaced",7),i=Cr(e,Jb);var s={get content(){return n()},set content(f){n(f),p()},get isStatic(){return r()},set isStatic(f=!1){r(f),p()},get onPlaced(){return o()},set onPlaced(f){o(f),p()},$set:Ee,$on:(f,g)=>Oe(e,f,g)},a=ue(),c=se(a);{var u=f=>{Kf(f,{get content(){return n()},get onPlaced(){return o()}})},d=f=>{Hf(f,So({get content(){return n()},get onPlaced(){return o()}},()=>i))};Ne(c,f=>{r()?f(u):f(d,-1)})}return Z(t,a),_e(s)}var Qb=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),$b=Ke("<!> <!>",1);function Hc(t,e){if(new.target)return Te({component:Hc,...t});Pe(e,!0);let n=h(e,"popper",7),r=h(e,"onEscapeKeydown",7),o=h(e,"escapeKeydownBehavior",7),i=h(e,"preventOverflowTextSelection",7),s=h(e,"id",7),a=h(e,"onPointerDown",7),c=h(e,"onPointerUp",7),u=h(e,"side",7),d=h(e,"sideOffset",7),f=h(e,"align",7),g=h(e,"alignOffset",7),b=h(e,"arrowPadding",7),v=h(e,"avoidCollisions",7),m=h(e,"collisionBoundary",7),E=h(e,"collisionPadding",7),T=h(e,"sticky",7),O=h(e,"hideWhenDetached",7),A=h(e,"updatePositionStrategy",7),y=h(e,"strategy",7),x=h(e,"dir",7),k=h(e,"preventScroll",7),R=h(e,"wrapperId",7),M=h(e,"style",7),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=h(e,"ref",7),be=h(e,"tooltip",7,!1),W=h(e,"contentPointerEvents",7,"auto"),Me=Cr(e,Qb);const pe=U(()=>k()??!0),ve=U(()=>y()??(w(pe)?"fixed":"absolute"));var we={get popper(){return n()},set popper(S){n(S),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(S){r(S),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(S){o(S),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(S){i(S),p()},get id(){return s()},set id(S){s(S),p()},get onPointerDown(){return a()},set onPointerDown(S){a(S),p()},get onPointerUp(){return c()},set onPointerUp(S){c(S),p()},get side(){return u()},set side(S){u(S),p()},get sideOffset(){return d()},set sideOffset(S){d(S),p()},get align(){return f()},set align(S){f(S),p()},get alignOffset(){return g()},set alignOffset(S){g(S),p()},get arrowPadding(){return b()},set arrowPadding(S){b(S),p()},get avoidCollisions(){return v()},set avoidCollisions(S){v(S),p()},get collisionBoundary(){return m()},set collisionBoundary(S){m(S),p()},get collisionPadding(){return E()},set collisionPadding(S){E(S),p()},get sticky(){return T()},set sticky(S){T(S),p()},get hideWhenDetached(){return O()},set hideWhenDetached(S){O(S),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(S){A(S),p()},get strategy(){return y()},set strategy(S){y(S),p()},get dir(){return x()},set dir(S){x(S),p()},get preventScroll(){return k()},set preventScroll(S){k(S),p()},get wrapperId(){return R()},set wrapperId(S){R(S),p()},get style(){return M()},set style(S){M(S),p()},get onPlaced(){return K()},set onPlaced(S){K(S),p()},get onInteractOutside(){return j()},set onInteractOutside(S){j(S),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(S){$(S),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(S){z(S),p()},get onFocusOutside(){return Y()},set onFocusOutside(S){Y(S),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(S="close"){B(S),p()},get loop(){return J()},set loop(S){J(S),p()},get trapFocus(){return re()},set trapFocus(S=!0){re(S),p()},get isValidEvent(){return ee()},set isValidEvent(S=()=>!1){ee(S),p()},get customAnchor(){return ie()},set customAnchor(S=null){ie(S),p()},get isStatic(){return he()},set isStatic(S=!1){he(S),p()},get enabled(){return _()},set enabled(S){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get tooltip(){return be()},set tooltip(S=!1){be(S),p()},get contentPointerEvents(){return W()},set contentPointerEvents(S="auto"){W(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)};return jf(t,{get isStatic(){return he()},get id(){return s()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return g()},get arrowPadding(){return b()},get avoidCollisions(){return v()},get collisionBoundary(){return m()},get collisionPadding(){return E()},get sticky(){return T()},get hideWhenDetached(){return O()},get updatePositionStrategy(){return A()},get strategy(){return w(ve)},get dir(){return x()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return K()},get customAnchor(){return ie()},get enabled(){return _()},get tooltip(){return be()},content:(ae,H)=>{let Re=()=>(H?.()).props,rt=()=>(H?.()).wrapperProps;var ht=$b(),Ge=se(ht);{var qe=ge=>{Zl(ge,{get preventScroll(){return w(pe)}})},ze=ge=>{Zl(ge,{get preventScroll(){return w(pe)}})};Ne(Ge,ge=>{e.forceMount&&_()?ge(qe):e.forceMount||ge(ze,1)})}var pt=mn(Ge,2);{const ge=(Dt,Ft)=>{let Xn=()=>(Ft?.()).props;Cf(Dt,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get enabled(){return _()},get ref(){return de()},children:(Lt,xn)=>{wf(Lt,{get id(){return s()},get onInteractOutside(){return j()},get onFocusOutside(){return Y()},get interactOutsideBehavior(){return B()},get isValidEvent(){return ee()},get enabled(){return _()},get ref(){return de()},children:(St,Xe)=>{let it=()=>(Xe?.()).props;Of(St,{get id(){return s()},get preventOverflowTextSelection(){return i()},get onPointerDown(){return a()},get onPointerUp(){return c()},get enabled(){return _()},get ref(){return de()},children:(nn,ol)=>{var ms=ue(),il=se(ms);{let sl=U(()=>({props:Zt(Me,Re(),it(),Xn(),{style:{pointerEvents:W()}}),wrapperProps:rt()}));ye(il,()=>n()??xe,()=>w(sl))}Z(nn,ms)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};let Ye=U(()=>_()&&!be());Tf(pt,{get onOpenAutoFocus(){return z()},get onCloseAutoFocus(){return $()},get loop(){return J()},get enabled(){return w(Ye)},get trapFocus(){return re()},get forceMount(){return e.forceMount},get ref(){return de()},focusScope:ge,$$slots:{focusScope:!0}})}Z(ae,ht)},$$slots:{content:!0}}),_e(we)}var ev=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function Gf(t,e){if(new.target)return Te({component:Gf,...t});Pe(e,!0);let n=h(e,"popper",7),r=h(e,"open",7),o=h(e,"onEscapeKeydown",7),i=h(e,"escapeKeydownBehavior",7),s=h(e,"preventOverflowTextSelection",7),a=h(e,"id",7),c=h(e,"onPointerDown",7),u=h(e,"onPointerUp",7),d=h(e,"side",7),f=h(e,"sideOffset",7),g=h(e,"align",7),b=h(e,"alignOffset",7),v=h(e,"arrowPadding",7),m=h(e,"avoidCollisions",7),E=h(e,"collisionBoundary",7),T=h(e,"collisionPadding",7),O=h(e,"sticky",7),A=h(e,"hideWhenDetached",7),y=h(e,"updatePositionStrategy",7),x=h(e,"strategy",7),k=h(e,"dir",7),R=h(e,"preventScroll",7),M=h(e,"wrapperId",7),K=h(e,"style",7),j=h(e,"onPlaced",7),$=h(e,"onInteractOutside",7),z=h(e,"onCloseAutoFocus",7),Y=h(e,"onOpenAutoFocus",7),B=h(e,"onFocusOutside",7),J=h(e,"interactOutsideBehavior",7,"close"),re=h(e,"loop",7),ee=h(e,"trapFocus",7,!0),ie=h(e,"isValidEvent",7,()=>!1),he=h(e,"customAnchor",7,null),_=h(e,"isStatic",7,!1),de=h(e,"ref",7),be=h(e,"shouldRender",7),W=Cr(e,ev);var Me={get popper(){return n()},set popper(S){n(S),p()},get open(){return r()},set open(S){r(S),p()},get onEscapeKeydown(){return o()},set onEscapeKeydown(S){o(S),p()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(S){i(S),p()},get preventOverflowTextSelection(){return s()},set preventOverflowTextSelection(S){s(S),p()},get id(){return a()},set id(S){a(S),p()},get onPointerDown(){return c()},set onPointerDown(S){c(S),p()},get onPointerUp(){return u()},set onPointerUp(S){u(S),p()},get side(){return d()},set side(S){d(S),p()},get sideOffset(){return f()},set sideOffset(S){f(S),p()},get align(){return g()},set align(S){g(S),p()},get alignOffset(){return b()},set alignOffset(S){b(S),p()},get arrowPadding(){return v()},set arrowPadding(S){v(S),p()},get avoidCollisions(){return m()},set avoidCollisions(S){m(S),p()},get collisionBoundary(){return E()},set collisionBoundary(S){E(S),p()},get collisionPadding(){return T()},set collisionPadding(S){T(S),p()},get sticky(){return O()},set sticky(S){O(S),p()},get hideWhenDetached(){return A()},set hideWhenDetached(S){A(S),p()},get updatePositionStrategy(){return y()},set updatePositionStrategy(S){y(S),p()},get strategy(){return x()},set strategy(S){x(S),p()},get dir(){return k()},set dir(S){k(S),p()},get preventScroll(){return R()},set preventScroll(S){R(S),p()},get wrapperId(){return M()},set wrapperId(S){M(S),p()},get style(){return K()},set style(S){K(S),p()},get onPlaced(){return j()},set onPlaced(S){j(S),p()},get onInteractOutside(){return $()},set onInteractOutside(S){$(S),p()},get onCloseAutoFocus(){return z()},set onCloseAutoFocus(S){z(S),p()},get onOpenAutoFocus(){return Y()},set onOpenAutoFocus(S){Y(S),p()},get onFocusOutside(){return B()},set onFocusOutside(S){B(S),p()},get interactOutsideBehavior(){return J()},set interactOutsideBehavior(S="close"){J(S),p()},get loop(){return re()},set loop(S){re(S),p()},get trapFocus(){return ee()},set trapFocus(S=!0){ee(S),p()},get isValidEvent(){return ie()},set isValidEvent(S=()=>!1){ie(S),p()},get customAnchor(){return he()},set customAnchor(S=null){he(S),p()},get isStatic(){return _()},set isStatic(S=!1){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get shouldRender(){return be()},set shouldRender(S){be(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)},pe=ue(),ve=se(pe);{var we=S=>{Hc(S,So({get popper(){return n()},get onEscapeKeydown(){return o()},get escapeKeydownBehavior(){return i()},get preventOverflowTextSelection(){return s()},get id(){return a()},get onPointerDown(){return c()},get onPointerUp(){return u()},get side(){return d()},get sideOffset(){return f()},get align(){return g()},get alignOffset(){return b()},get arrowPadding(){return v()},get avoidCollisions(){return m()},get collisionBoundary(){return E()},get collisionPadding(){return T()},get sticky(){return O()},get hideWhenDetached(){return A()},get updatePositionStrategy(){return y()},get strategy(){return x()},get dir(){return k()},get preventScroll(){return R()},get wrapperId(){return M()},get style(){return K()},get onPlaced(){return j()},get customAnchor(){return he()},get isStatic(){return _()},get enabled(){return r()},get onInteractOutside(){return $()},get onCloseAutoFocus(){return z()},get onOpenAutoFocus(){return Y()},get interactOutsideBehavior(){return J()},get loop(){return re()},get trapFocus(){return ee()},get isValidEvent(){return ie()},get onFocusOutside(){return B()},forceMount:!1,get ref(){return de()}},()=>W))};Ne(ve,S=>{be()&&S(we)})}return Z(t,pe),_e(Me)}var tv=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function qf(t,e){if(new.target)return Te({component:qf,...t});Pe(e,!0);let n=h(e,"popper",7),r=h(e,"onEscapeKeydown",7),o=h(e,"escapeKeydownBehavior",7),i=h(e,"preventOverflowTextSelection",7),s=h(e,"id",7),a=h(e,"onPointerDown",7),c=h(e,"onPointerUp",7),u=h(e,"side",7),d=h(e,"sideOffset",7),f=h(e,"align",7),g=h(e,"alignOffset",7),b=h(e,"arrowPadding",7),v=h(e,"avoidCollisions",7),m=h(e,"collisionBoundary",7),E=h(e,"collisionPadding",7),T=h(e,"sticky",7),O=h(e,"hideWhenDetached",7),A=h(e,"updatePositionStrategy",7),y=h(e,"strategy",7),x=h(e,"dir",7),k=h(e,"preventScroll",7),R=h(e,"wrapperId",7),M=h(e,"style",7),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=Cr(e,tv);var be={get popper(){return n()},set popper(W){n(W),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(W){r(W),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(W){o(W),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(W){i(W),p()},get id(){return s()},set id(W){s(W),p()},get onPointerDown(){return a()},set onPointerDown(W){a(W),p()},get onPointerUp(){return c()},set onPointerUp(W){c(W),p()},get side(){return u()},set side(W){u(W),p()},get sideOffset(){return d()},set sideOffset(W){d(W),p()},get align(){return f()},set align(W){f(W),p()},get alignOffset(){return g()},set alignOffset(W){g(W),p()},get arrowPadding(){return b()},set arrowPadding(W){b(W),p()},get avoidCollisions(){return v()},set avoidCollisions(W){v(W),p()},get collisionBoundary(){return m()},set collisionBoundary(W){m(W),p()},get collisionPadding(){return E()},set collisionPadding(W){E(W),p()},get sticky(){return T()},set sticky(W){T(W),p()},get hideWhenDetached(){return O()},set hideWhenDetached(W){O(W),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(W){A(W),p()},get strategy(){return y()},set strategy(W){y(W),p()},get dir(){return x()},set dir(W){x(W),p()},get preventScroll(){return k()},set preventScroll(W){k(W),p()},get wrapperId(){return R()},set wrapperId(W){R(W),p()},get style(){return M()},set style(W){M(W),p()},get onPlaced(){return K()},set onPlaced(W){K(W),p()},get onInteractOutside(){return j()},set onInteractOutside(W){j(W),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(W){$(W),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(W){z(W),p()},get onFocusOutside(){return Y()},set onFocusOutside(W){Y(W),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(W="close"){B(W),p()},get loop(){return J()},set loop(W){J(W),p()},get trapFocus(){return re()},set trapFocus(W=!0){re(W),p()},get isValidEvent(){return ee()},set isValidEvent(W=()=>!1){ee(W),p()},get customAnchor(){return ie()},set customAnchor(W=null){ie(W),p()},get isStatic(){return he()},set isStatic(W=!1){he(W),p()},get enabled(){return _()},set enabled(W){_(W),p()},$set:Ee,$on:(W,Me)=>Oe(e,W,Me)};return Hc(t,So({get popper(){return n()},get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get preventOverflowTextSelection(){return i()},get id(){return s()},get onPointerDown(){return a()},get onPointerUp(){return c()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return g()},get arrowPadding(){return b()},get avoidCollisions(){return v()},get collisionBoundary(){return m()},get collisionPadding(){return E()},get sticky(){return T()},get hideWhenDetached(){return O()},get updatePositionStrategy(){return A()},get strategy(){return y()},get dir(){return x()},get preventScroll(){return k()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return K()},get customAnchor(){return ie()},get isStatic(){return he()},get enabled(){return _()},get onInteractOutside(){return j()},get onCloseAutoFocus(){return $()},get onOpenAutoFocus(){return z()},get interactOutsideBehavior(){return B()},get loop(){return J()},get trapFocus(){return re()},get isValidEvent(){return ee()},get onFocusOutside(){return Y()}},()=>de,{forceMount:!0})),_e(be)}function pl(t,e){const[n,r]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[c,u]=e[s]??[0,0],[d,f]=e[a]??[0,0];u>=r!=f>=r&&n<=(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function gl(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function id(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,i=e.top+e.height/2,s=o-n,a=i-r;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}var Ln,qr,Yr,jt,ut,fr,hr,Bn,zn,fe,Bs,rc,oc,Yf,Xf,Vt,ic,Zf,Jf;class nv{constructor(e){C(this,fe);C(this,Ln);C(this,qr);C(this,Yr);C(this,jt,null);C(this,ut,null);C(this,fr,[]);C(this,hr,null);C(this,Bn,null);C(this,zn,null);I(this,Ln,e),I(this,qr,e.buffer??1);const n=e.transitIntentTimeout;I(this,Yr,typeof n=="number"&&n>0?n:null),ke([e.triggerNode,e.contentNode,e.enabled],([r,o,i])=>{if(!r||!o||!i){I(this,hr,null),F(this,fe,Vt).call(this);return}l(this,hr)&&l(this,hr)!==r&&F(this,fe,Vt).call(this),I(this,hr,r);const s=oo(r),a=g=>{F(this,fe,Xf).call(this,[g.clientX,g.clientY],r,o)},c=g=>{const b=g.relatedTarget;if(It(b)&&o.contains(b))return;const v=l(this,Ln).ignoredTargets?.()??[];It(b)&&v.some(m=>m===b||m.contains(b))||(I(this,fr,It(b)&&v.length>0?v.filter(m=>b.contains(m)):[]),I(this,jt,[g.clientX,g.clientY]),I(this,ut,"content"),F(this,fe,rc).call(this))},u=()=>{F(this,fe,Vt).call(this)},d=()=>{F(this,fe,Vt).call(this)},f=g=>{const b=g.relatedTarget;It(b)&&r.contains(b)||(I(this,jt,[g.clientX,g.clientY]),I(this,ut,"trigger"),F(this,fe,rc).call(this))};return[Ie(s,"pointermove",a),Ie(r,"pointerleave",c),Ie(r,"pointerenter",u),Ie(o,"pointerenter",d),Ie(o,"pointerleave",f)].reduce((g,b)=>()=>{g(),b()},()=>{})})}}Ln=new WeakMap,qr=new WeakMap,Yr=new WeakMap,jt=new WeakMap,ut=new WeakMap,fr=new WeakMap,hr=new WeakMap,Bn=new WeakMap,zn=new WeakMap,fe=new WeakSet,Bs=function(){l(this,Bn)!==null&&(cancelAnimationFrame(l(this,Bn)),I(this,Bn,null))},rc=function(){F(this,fe,Bs).call(this),I(this,Bn,requestAnimationFrame(()=>{I(this,Bn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())}))},oc=function(){l(this,zn)!==null&&(clearTimeout(l(this,zn)),I(this,zn,null))},Yf=function(){l(this,Yr)!==null&&(F(this,fe,oc).call(this),I(this,zn,window.setTimeout(()=>{I(this,zn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},l(this,Yr))))},Xf=function(e,n,r){if(!l(this,jt)||!l(this,ut))return;F(this,fe,Bs).call(this),F(this,fe,Yf).call(this);const o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(l(this,ut)==="content"&&gl(e,i)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="trigger"&&gl(e,o)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="content"&&l(this,fr).length>0)for(const d of l(this,fr)){const f=d.getBoundingClientRect();if(gl(e,f))return;const g=id(o,f),b=F(this,fe,ic).call(this,o,f,g);if(b&&pl(e,b))return}const s=id(o,i),a=F(this,fe,ic).call(this,o,i,s);if(a&&pl(e,a))return;const c=l(this,ut)==="content"?i:o,u=F(this,fe,Zf).call(this,l(this,jt),c,s,l(this,ut));pl(e,u)||(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},Vt=function(){I(this,jt,null),I(this,ut,null),I(this,fr,[]),F(this,fe,Bs).call(this),F(this,fe,oc).call(this)},ic=function(e,n,r){const o=l(this,qr);switch(r){case"top":return[[Math.min(e.left,n.left)-o,e.top],[Math.min(e.left,n.left)-o,n.bottom],[Math.max(e.right,n.right)+o,n.bottom],[Math.max(e.right,n.right)+o,e.top]];case"bottom":return[[Math.min(e.left,n.left)-o,e.bottom],[Math.min(e.left,n.left)-o,n.top],[Math.max(e.right,n.right)+o,n.top],[Math.max(e.right,n.right)+o,e.bottom]];case"left":return[[e.left,Math.min(e.top,n.top)-o],[n.right,Math.min(e.top,n.top)-o],[n.right,Math.max(e.bottom,n.bottom)+o],[e.left,Math.max(e.bottom,n.bottom)+o]];case"right":return[[e.right,Math.min(e.top,n.top)-o],[n.left,Math.min(e.top,n.top)-o],[n.left,Math.max(e.bottom,n.bottom)+o],[e.right,Math.max(e.bottom,n.bottom)+o]]}},Zf=function(e,n,r,o){const i=l(this,qr)*4,[s,a]=e;switch(o==="trigger"?F(this,fe,Jf).call(this,r):r){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}},Jf=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};var Wi,Ui,Vn,Hi,ac;class sc{constructor(e,n){C(this,Hi);C(this,Wi);C(this,Ui);C(this,Vn,null);I(this,Ui,e),I(this,Wi,n),this.stop=this.stop.bind(this),this.start=this.start.bind(this),wn(this.stop)}stop(){F(this,Hi,ac).call(this)}start(...e){F(this,Hi,ac).call(this),I(this,Vn,window.setTimeout(()=>{I(this,Vn,null),l(this,Ui).call(this,...e)},l(this,Wi)))}}Wi=new WeakMap,Ui=new WeakMap,Vn=new WeakMap,Hi=new WeakSet,ac=function(){l(this,Vn)!==null&&(window.clearTimeout(l(this,Vn)),I(this,Vn,null))};const Qf=Vd({component:"tooltip",parts:["content","trigger"]}),$f=new xt("Tooltip.Provider"),Kc=new xt("Tooltip.Root");var Ki,ji,Gi,qi,Yi;class eh{constructor(){C(this,Ki,oe(Hn(new Map)));C(this,ji,oe(null));C(this,Gi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null}));C(this,qi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null}));P(this,"register",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Yi).call(this)});P(this,"update",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Yi).call(this)});P(this,"unregister",e=>{if(!this.triggers.has(e))return;const n=new Map(this.triggers);n.delete(e),this.triggers=n,this.activeTriggerId===e&&(this.activeTriggerId=null)});P(this,"setActiveTrigger",e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e});P(this,"get",e=>this.triggers.get(e));P(this,"has",e=>this.triggers.has(e));P(this,"getFirstTriggerId",()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]});C(this,Yi,()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))})}get triggers(){return w(l(this,Ki))}set triggers(e){N(l(this,Ki),e,!0)}get activeTriggerId(){return w(l(this,ji))}set activeTriggerId(e){N(l(this,ji),e,!0)}get activeTriggerNode(){return w(l(this,Gi))}set activeTriggerNode(e){N(l(this,Gi),e)}get activePayload(){return w(l(this,qi))}set activePayload(e){N(l(this,qi),e)}}Ki=new WeakMap,ji=new WeakMap,Gi=new WeakMap,qi=new WeakMap,Yi=new WeakMap;var Xi;class rv{constructor(){P(this,"registry",new eh);C(this,Xi,oe(null))}get root(){return w(l(this,Xi))}set root(e){N(l(this,Xi),e,!0)}}Xi=new WeakMap;var Gt;class ov{constructor(){C(this,Gt,new rv)}get state(){return l(this,Gt)}open(e){l(this,Gt).registry.has(e)&&(l(this,Gt).registry.setActiveTrigger(e),l(this,Gt).root?.setActiveTrigger(e),l(this,Gt).root?.handleOpen())}close(){l(this,Gt).root?.handleClose()}get isOpen(){return l(this,Gt).root?.opts.open.current??!1}}Gt=new WeakMap;function iv(){return new ov}var Zi,Xr,Et,Ma,Ra;const gu=class gu{constructor(e){P(this,"opts");C(this,Zi,oe(!0));P(this,"isPointerInTransit",Ct(!1));C(this,Xr);C(this,Et,oe(null));C(this,Ma,()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else l(this,Xr).start()});C(this,Ra,()=>{l(this,Xr).stop()});P(this,"onOpen",e=>{w(l(this,Et))&&w(l(this,Et))!==e&&w(l(this,Et)).handleClose(),l(this,Ra).call(this),this.isOpenDelayed=!1,N(l(this,Et),e,!0)});P(this,"onClose",e=>{w(l(this,Et))===e&&(N(l(this,Et),null),l(this,Ma).call(this))});P(this,"isTooltipOpen",e=>w(l(this,Et))===e);this.opts=e,I(this,Xr,new sc(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)),Ec(()=>Ie(window,"scroll",n=>{const r=w(l(this,Et));if(!r)return;const o=r.triggerNode;if(!o)return;const i=n.target;(i instanceof Element||i instanceof Document)&&i.contains(o)&&r.handleClose()}))}static create(e){return $f.set(new gu(e))}get isOpenDelayed(){return w(l(this,Zi))}set isOpenDelayed(e){N(l(this,Zi),e,!0)}};Zi=new WeakMap,Xr=new WeakMap,Et=new WeakMap,Ma=new WeakMap,Ra=new WeakMap;let lc=gu;var Ji,Qi,$i,es,ts,ns,Wn,qt,rs,Na;const mu=class mu{constructor(e,n){P(this,"opts");P(this,"provider");C(this,Ji,U(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current));C(this,Qi,U(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current));C(this,$i,U(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current));C(this,es,U(()=>this.opts.disabled.current??this.provider.opts.disabled.current));C(this,ts,U(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current));P(this,"registry");P(this,"tether");C(this,ns,oe(null));P(this,"contentPresence");C(this,Wn,oe(!1));C(this,qt);C(this,rs,U(()=>this.opts.open.current?w(l(this,Wn))?"delayed-open":"instant-open":"closed"));P(this,"handleOpen",()=>{l(this,qt).stop(),N(l(this,Wn),!1),this.ensureActiveTrigger(),this.opts.open.current=!0});P(this,"handleClose",()=>{l(this,qt).stop(),this.opts.open.current=!1});C(this,Na,()=>{l(this,qt).stop();const e=!this.provider.isOpenDelayed,n=this.delayDuration??0;e||n===0?(N(l(this,Wn),!1),this.opts.open.current=!0):l(this,qt).start()});P(this,"onTriggerEnter",e=>{this.setActiveTrigger(e),l(this,Na).call(this)});P(this,"onTriggerLeave",()=>{this.disableHoverableContent?this.handleClose():l(this,qt).stop()});P(this,"ensureActiveTrigger",()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)});P(this,"setActiveTrigger",e=>{this.registry.setActiveTrigger(e)});P(this,"registerTrigger",e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"updateTrigger",e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"unregisterTrigger",e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()});P(this,"isActiveTrigger",e=>this.registry.activeTriggerId===e);this.opts=e,this.provider=n,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new eh,I(this,qt,new sc(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration??0)),this.tether&&(this.tether.root=this,Ec(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new Gd({open:this.opts.open,ref:G(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ke(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&I(this,qt,new sc(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration))}),ke(()=>this.opts.open.current,r=>{r?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),ke(()=>this.opts.triggerId.current,r=>{r!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(r)}),ke(()=>this.registry.activeTriggerId,r=>{this.opts.triggerId.current!==r&&(this.opts.triggerId.current=r)})}static create(e){return Kc.set(new mu(e,$f.get()))}get delayDuration(){return w(l(this,Ji))}set delayDuration(e){N(l(this,Ji),e)}get disableHoverableContent(){return w(l(this,Qi))}set disableHoverableContent(e){N(l(this,Qi),e)}get disableCloseOnTriggerClick(){return w(l(this,$i))}set disableCloseOnTriggerClick(e){N(l(this,$i),e)}get disabled(){return w(l(this,es))}set disabled(e){N(l(this,es),e)}get ignoreNonKeyboardFocus(){return w(l(this,ts))}set ignoreNonKeyboardFocus(e){N(l(this,ts),e)}get contentNode(){return w(l(this,ns))}set contentNode(e){N(l(this,ns),e,!0)}get stateAttr(){return w(l(this,rs))}set stateAttr(e){N(l(this,rs),e)}get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}};Ji=new WeakMap,Qi=new WeakMap,$i=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,Wn=new WeakMap,qt=new WeakMap,rs=new WeakMap,Na=new WeakMap;let cc=mu;var pr,Ot,gr,Zr,Yt,dt,yt,Un,Jr,Da,Fa,La,Ba,za,Va,Wa,Ua,os;const Ha=class Ha{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"tether");P(this,"attachment");C(this,pr,Ct(!1));C(this,Ot,oe(!1));P(this,"domContext");C(this,gr,null);C(this,Zr,!1);C(this,Yt,null);C(this,dt,()=>this.tether?.root??this.root);C(this,yt,()=>{const e=l(this,dt).call(this);return this.opts.disabled.current||!!e?.disabled});C(this,Un,e=>{if(!l(this,Zr))return;const n=this.opts.id.current,r=this.opts.payload.current,o=this.opts.disabled.current;if(l(this,Yt)&&l(this,Yt)!==n){const a=l(this,dt).call(this);this.tether?this.tether.registry.unregister(l(this,Yt)):a?.unregisterTrigger(l(this,Yt))}const i={id:n,node:e,payload:r,disabled:o},s=l(this,dt).call(this);this.tether?(this.tether.registry.has(n)?this.tether.registry.update(i):this.tether.registry.register(i),o&&this.tether.registry.activeTriggerId===n&&s?.opts.open.current&&s.handleClose()):s?.registry.has(n)?s.updateTrigger(i):s?.registerTrigger(i),I(this,Yt,n)});C(this,Jr,()=>{l(this,gr)!==null&&(clearTimeout(l(this,gr)),I(this,gr,null))});P(this,"handlePointerUp",()=>{l(this,pr).current=!1});C(this,Da,()=>{l(this,yt).call(this)||(l(this,pr).current=!1)});C(this,Fa,()=>{l(this,yt).call(this)||(l(this,pr).current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))});C(this,La,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){l(this,Jr).call(this),I(this,gr,window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0))},250));return}n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)}}});C(this,Ba,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(w(l(this,Ot))||(l(this,Jr).call(this),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)))}});C(this,za,e=>{const n=l(this,dt).call(this);if(!n||l(this,yt).call(this))return;if(l(this,Jr).call(this),!n.isActiveTrigger(this.opts.id.current)){N(l(this,Ot),!1);return}const r=e.relatedTarget;if(It(r)){for(const o of n.registry.triggers.values())if(o.node===r){if(n.provider.opts.skipDelayDuration.current>0){N(l(this,Ot),!1);return}n.handleClose(),N(l(this,Ot),!1);return}}n.onTriggerLeave(),N(l(this,Ot),!1)});C(this,Va,e=>{const n=l(this,dt).call(this);if(n&&!l(this,pr).current){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!Yg(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}});C(this,Wa,()=>{const e=l(this,dt).call(this);!e||l(this,yt).call(this)||e.handleClose()});C(this,Ua,()=>{const e=l(this,dt).call(this);!e||e.disableCloseOnTriggerClick||l(this,yt).call(this)||e.handleClose()});C(this,os,U(()=>{const e=l(this,dt).call(this),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),r=l(this,yt).call(this);return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":Ya(r),"data-delay-duration":`${e?.delayDuration??0}`,[Qf.trigger]:"",tabindex:r?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:l(this,Da),onpointerdown:l(this,Fa),onpointerenter:l(this,La),onpointermove:l(this,Ba),onpointerleave:l(this,za),onfocus:l(this,Va),onblur:l(this,Wa),onclick:l(this,Ua),...this.attachment}}));this.opts=e,this.root=n,this.tether=r,this.domContext=new qa(e.ref),this.attachment=ft(this.opts.ref,o=>l(this,Un).call(this,o)),ke(()=>this.opts.id.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.payload.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.disabled.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Ec(()=>(I(this,Zr,!0),l(this,Un).call(this,this.opts.ref.current),()=>{const o=l(this,dt).call(this),i=l(this,Yt);i&&(this.tether?this.tether.registry.unregister(i):o?.unregisterTrigger(i)),I(this,Yt,null),I(this,Zr,!1)}))}static create(e){return e.tether.current?new Ha(e,null,e.tether.current.state):new Ha(e,Kc.get(),null)}get props(){return w(l(this,os))}set props(e){N(l(this,os),e)}};pr=new WeakMap,Ot=new WeakMap,gr=new WeakMap,Zr=new WeakMap,Yt=new WeakMap,dt=new WeakMap,yt=new WeakMap,Un=new WeakMap,Jr=new WeakMap,Da=new WeakMap,Fa=new WeakMap,La=new WeakMap,Ba=new WeakMap,za=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,os=new WeakMap;let uc=Ha;var is,ss;const bu=class bu{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");P(this,"onInteractOutside",e=>{if(It(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onOpenAutoFocus",e=>{e.preventDefault()});P(this,"onCloseAutoFocus",e=>{e.preventDefault()});C(this,is,U(()=>({open:this.root.opts.open.current})));C(this,ss,U(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Ya(this.root.disabled),...Bd(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Qf.content]:"",...this.attachment})));P(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus});this.opts=e,this.root=n,this.attachment=ft(this.opts.ref,r=>this.root.contentNode=r),new nv({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const r=[],o=this.root.triggerNode;for(const i of this.root.registry.triggers.values())i.node&&i.node!==o&&r.push(i.node);return r},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}static create(e){return new bu(e,Kc.get())}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return w(l(this,is))}set snippetProps(e){N(l(this,is),e)}get props(){return w(l(this,ss))}set props(e){N(l(this,ss),e)}};is=new WeakMap,ss=new WeakMap;let dc=bu;function th(t,e){if(new.target)return Te({component:th,...t});Pe(e,!0);let n=h(e,"open",15,!1),r=h(e,"triggerId",15,null),o=h(e,"onOpenChange",7,me),i=h(e,"onOpenChangeComplete",7,me),s=h(e,"disabled",7),a=h(e,"delayDuration",7),c=h(e,"disableCloseOnTriggerClick",7),u=h(e,"disableHoverableContent",7),d=h(e,"ignoreNonKeyboardFocus",7),f=h(e,"tether",7),g=h(e,"children",7);const b=cc.create({open:G(()=>n(),m=>{n(m),o()(m)}),triggerId:G(()=>r(),m=>{r(m)}),delayDuration:G(()=>a()),disableCloseOnTriggerClick:G(()=>c()),disableHoverableContent:G(()=>u()),ignoreNonKeyboardFocus:G(()=>d()),disabled:G(()=>s()),onOpenChangeComplete:G(()=>i()),tether:G(()=>f())});var v={get open(){return n()},set open(m=!1){n(m),p()},get triggerId(){return r()},set triggerId(m=null){r(m),p()},get onOpenChange(){return o()},set onOpenChange(m=me){o(m),p()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(m=me){i(m),p()},get disabled(){return s()},set disabled(m){s(m),p()},get delayDuration(){return a()},set delayDuration(m){a(m),p()},get disableCloseOnTriggerClick(){return c()},set disableCloseOnTriggerClick(m){c(m),p()},get disableHoverableContent(){return u()},set disableHoverableContent(m){u(m),p()},get ignoreNonKeyboardFocus(){return d()},set ignoreNonKeyboardFocus(m){d(m),p()},get tether(){return f()},set tether(m){f(m),p()},get children(){return g()},set children(m){g(m),p()},$set:Ee,$on:(m,E)=>Oe(e,m,E)};return Uf(t,{tooltip:!0,children:(m,E)=>{var T=ue(),O=se(T);ye(O,()=>g()??xe,()=>({open:b.opts.open.current,triggerId:b.activeTriggerId,payload:b.activePayload})),Z(m,T)},$$slots:{default:!0}}),_e(v)}var sv=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),sd=Ke("<div><div><!></div></div>");function nh(t,e){const n=Sc();if(new.target)return Te({component:nh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>js(n)),s=h(e,"ref",15,null),a=h(e,"side",7,"top"),c=h(e,"sideOffset",7,0),u=h(e,"align",7,"center"),d=h(e,"avoidCollisions",7,!0),f=h(e,"arrowPadding",7,0),g=h(e,"sticky",7,"partial"),b=h(e,"strategy",7),v=h(e,"hideWhenDetached",7,!1),m=h(e,"customAnchor",7),E=h(e,"collisionPadding",7,0),T=h(e,"onInteractOutside",7,me),O=h(e,"onEscapeKeydown",7,me),A=h(e,"forceMount",7,!1),y=h(e,"style",7),x=Cr(e,sv);const k=dc.create({id:G(()=>i()),ref:G(()=>s(),B=>s(B)),onInteractOutside:G(()=>T()),onEscapeKeydown:G(()=>O())}),R=U(()=>({side:a(),sideOffset:c(),align:u(),avoidCollisions:d(),arrowPadding:f(),sticky:g(),hideWhenDetached:v(),collisionPadding:E(),strategy:b(),customAnchor:m()??k.root.triggerNode})),M=U(()=>Zt(x,w(R),k.props));var K={get children(){return r()},set children(B){r(B),p()},get child(){return o()},set child(B){o(B),p()},get id(){return i()},set id(B=js(n)){i(B),p()},get ref(){return s()},set ref(B=null){s(B),p()},get side(){return a()},set side(B="top"){a(B),p()},get sideOffset(){return c()},set sideOffset(B=0){c(B),p()},get align(){return u()},set align(B="center"){u(B),p()},get avoidCollisions(){return d()},set avoidCollisions(B=!0){d(B),p()},get arrowPadding(){return f()},set arrowPadding(B=0){f(B),p()},get sticky(){return g()},set sticky(B="partial"){g(B),p()},get strategy(){return b()},set strategy(B){b(B),p()},get hideWhenDetached(){return v()},set hideWhenDetached(B=!1){v(B),p()},get customAnchor(){return m()},set customAnchor(B){m(B),p()},get collisionPadding(){return E()},set collisionPadding(B=0){E(B),p()},get onInteractOutside(){return T()},set onInteractOutside(B=me){T(B),p()},get onEscapeKeydown(){return O()},set onEscapeKeydown(B=me){O(B),p()},get forceMount(){return A()},set forceMount(B=!1){A(B),p()},get style(){return y()},set style(B){y(B),p()},$set:Ee,$on:(B,J)=>Oe(e,B,J)},j=ue(),$=se(j);{var z=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:rd("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=sd();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");qf(B,So(()=>w(M),()=>k.popperProps,{get enabled(){return k.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return k.opts.ref},tooltip:!0,get shouldRender(){return k.shouldRender},get contentPointerEvents(){return w(re)},popper:J,$$slots:{popper:!0}}))}},Y=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:rd("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=sd();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");Gf(B,So(()=>w(M),()=>k.popperProps,{get open(){return k.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return k.opts.ref},tooltip:!0,get shouldRender(){return k.shouldRender},get contentPointerEvents(){return w(re)},popper:J,$$slots:{popper:!0}}))}};Ne($,B=>{A()?B(z):A()||B(Y,1)})}return Z(t,j),_e(K)}var av=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),lv=Ke("<button><!></button>");function rh(t,e){const n=Sc();if(new.target)return Te({component:rh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>js(n)),s=h(e,"disabled",7,!1),a=h(e,"payload",7),c=h(e,"tether",7),u=h(e,"type",7,"button"),d=h(e,"tabindex",7,0),f=h(e,"ref",15,null),g=Cr(e,av);const b=uc.create({id:G(()=>i()),disabled:G(()=>s()??!1),tabindex:G(()=>d()??0),payload:G(()=>a()),tether:G(()=>c()),ref:G(()=>f(),y=>f(y))}),v=U(()=>Zt(g,b.props,{type:u()}));var m={get children(){return r()},set children(y){r(y),p()},get child(){return o()},set child(y){o(y),p()},get id(){return i()},set id(y=js(n)){i(y),p()},get disabled(){return s()},set disabled(y=!1){s(y),p()},get payload(){return a()},set payload(y){a(y),p()},get tether(){return c()},set tether(y){c(y),p()},get type(){return u()},set type(y="button"){u(y),p()},get tabindex(){return d()},set tabindex(y=0){d(y),p()},get ref(){return f()},set ref(y=null){f(y),p()},$set:Ee,$on:(y,x)=>Oe(e,y,x)},E=ue(),T=se(E);{var O=y=>{var x=ue(),k=se(x);ye(k,o,()=>({props:w(v)})),Z(y,x)},A=y=>{var x=lv();Jt(x,()=>({...w(v)}));var k=He(x);ye(k,()=>r()??xe),Fe(x),Z(y,x)};Ne(T,y=>{o()?y(O):y(A,-1)})}return Z(t,E),_e(m)}function oh(t,e){if(new.target)return Te({component:oh,...t});Pe(e,!0);let n=h(e,"children",7),r=h(e,"delayDuration",7,700),o=h(e,"disableCloseOnTriggerClick",7,!1),i=h(e,"disableHoverableContent",7,!1),s=h(e,"disabled",7,!1),a=h(e,"ignoreNonKeyboardFocus",7,!1),c=h(e,"skipDelayDuration",7,300);lc.create({delayDuration:G(()=>r()),disableCloseOnTriggerClick:G(()=>o()),disableHoverableContent:G(()=>i()),disabled:G(()=>s()),ignoreNonKeyboardFocus:G(()=>a()),skipDelayDuration:G(()=>c())});var u={get children(){return n()},set children(g){n(g),p()},get delayDuration(){return r()},set delayDuration(g=700){r(g),p()},get disableCloseOnTriggerClick(){return o()},set disableCloseOnTriggerClick(g=!1){o(g),p()},get disableHoverableContent(){return i()},set disableHoverableContent(g=!1){i(g),p()},get disabled(){return s()},set disabled(g=!1){s(g),p()},get ignoreNonKeyboardFocus(){return a()},set ignoreNonKeyboardFocus(g=!1){a(g),p()},get skipDelayDuration(){return c()},set skipDelayDuration(g=300){c(g),p()},$set:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>n()??xe),Z(t,d),_e(u)}var cv=Ke("<span><!></span>");function ih(t,e){if(new.target)return Te({component:ih,...t});Pe(e,!0);let n=h(e,"triggerProps",7),r=h(e,"children",7);const o=["button","a[href]",'input:not([type="hidden"])',"select","textarea",'[role="button"]','[tabindex]:not([tabindex="-1"])'].join(","),i=["aria-describedby","data-state","data-delay-duration","data-tooltip-trigger"];let s=oe(null),a=oe(!1),c=oe(!1),u=[];const d=new WeakMap,f=U(()=>{const{disabled:y,type:x,tabindex:k,class:R,"aria-describedby":M,"data-state":K,"data-disabled":j,"data-delay-duration":$,"data-tooltip-trigger":z,...Y}=n();return Y});function g(y,x){let k=d.get(y);return k||(k=new Map,d.set(y,k)),k.has(x)||k.set(x,y.getAttribute(x)),k.get(x)??null}function b(y){for(const x of i){const k=g(y,x);x==="data-state"&&k!==null||(k===null?y.removeAttribute(x):y.setAttribute(x,k))}}function v(y){for(const x of i){const k=g(y,x);if(x==="data-state"&&k!==null)continue;const R=n()[x];if(R==null||R===!1){k===null?y.removeAttribute(x):y.setAttribute(x,k);continue}const M=R===!0?"":String(R);y.setAttribute(x,x==="aria-describedby"&&k?`${k} ${M}`:M)}}Le(()=>{if(!w(s))return;N(c,w(s).closest('[role="menu"], [role="menuitem"]')!==null);const y=Array.from(w(s).querySelectorAll(o));for(const x of u)y.includes(x)||b(x);u=y,N(a,y.length>0);for(const x of y)v(x)});function m(y){!w(a)||y.target===w(s)||n().onfocus?.(y)}function E(y){!w(a)||w(s)?.contains(y.relatedTarget)||n().onblur?.(y)}var T={get triggerProps(){return n()},set triggerProps(y){n(y),p()},get children(){return r()},set children(y){r(y),p()},$set:Ee,$on:(y,x)=>Oe(e,y,x)},O=cv();Jt(O,()=>({...w(f),class:n().class,role:w(a)||w(c)?void 0:"button",tabindex:w(a)?-1:w(c)?void 0:n().tabindex,"aria-disabled":w(a)||w(c)?void 0:n().disabled||void 0,"aria-describedby":w(a)?void 0:n()["aria-describedby"],"data-state":w(a)?void 0:n()["data-state"],"data-disabled":w(a)?void 0:n()["data-disabled"],"data-delay-duration":w(a)?void 0:n()["data-delay-duration"],"data-tooltip-trigger":w(a)?void 0:n()["data-tooltip-trigger"],onfocusin:m,onfocusout:E}));var A=He(O);return ye(A,()=>r()??xe),Fe(O),Ad(O,y=>N(s,y),()=>w(s)),Z(t,O),_e(T)}var uv=Ke("<div></div>"),dv=Ke("<div><div><!> <!></div></div>"),fv=Ke("<!> <!>",1);function sh(t,e){const n=Sc();if(new.target)return Te({component:sh,...t});Pe(e,!0);let r=h(e,"content",7,""),o=h(e,"side",7,"top"),i=h(e,"align",7,"center"),s=h(e,"sideOffset",7,4),a=h(e,"alignOffset",7,0),c=h(e,"delayDuration",7,0),u=h(e,"disableHoverableContent",7,!0),d=h(e,"disableCloseOnTriggerClick",7,!1),f=h(e,"disabled",7,!1),g=h(e,"open",15,!1),b=h(e,"onOpenChange",7),v=h(e,"portalTarget",7),m=h(e,"class",7,""),E=h(e,"contentClass",7,""),T=h(e,"arrowClass",7,""),O=h(e,"showArrow",7,!1),A=h(e,"variant",7,"default"),y=h(e,"size",7,"default"),x=h(e,"children",7),k=h(e,"trigger",7),R=h(e,"onclick",7),M=oe(null);const K=iv(),j={default:"surface-inverse",secondary:"bg-secondary text-secondary-foreground border border-border",destructive:"bg-danger text-danger-background border border-danger",outline:"bg-transparent text-foreground ring-1 ring-inset ring-border"},$={sm:"type-caption px-2 py-1",default:"type-caption px-2 py-1",lg:"type-title px-4 py-2"},z=U(()=>Kn("tooltip-motion overlay-surface z-(--layer-tooltip) w-fit max-w-xs whitespace-pre-wrap text-balance",j[A()],$[y()],E()));function Y(_){g(_),b()?.(_)}function B(_){d()||_ instanceof KeyboardEvent&&_.key!=="Enter"&&_.key!==" "||K.close()}Le(()=>{f()&&g()&&Y(!1)});let J;Le(()=>{const _=f(),de=J===!0&&!_;J=_,de&&ko(re)});function re(){if(!r()||g())return;const _=document.activeElement,de=w(M);!de?.id||!(_ instanceof HTMLElement)||!de.contains(_)||_.matches(":focus-visible")&&K.open(de.id)}var ee={get content(){return r()},set content(_=""){r(_),p()},get side(){return o()},set side(_="top"){o(_),p()},get align(){return i()},set align(_="center"){i(_),p()},get sideOffset(){return s()},set sideOffset(_=4){s(_),p()},get alignOffset(){return a()},set alignOffset(_=0){a(_),p()},get delayDuration(){return c()},set delayDuration(_=0){c(_),p()},get disableHoverableContent(){return u()},set disableHoverableContent(_=!0){u(_),p()},get disableCloseOnTriggerClick(){return d()},set disableCloseOnTriggerClick(_=!1){d(_),p()},get disabled(){return f()},set disabled(_=!1){f(_),p()},get open(){return g()},set open(_=!1){g(_),p()},get onOpenChange(){return b()},set onOpenChange(_){b(_),p()},get portalTarget(){return v()},set portalTarget(_){v(_),p()},get class(){return m()},set class(_=""){m(_),p()},get contentClass(){return E()},set contentClass(_=""){E(_),p()},get arrowClass(){return T()},set arrowClass(_=""){T(_),p()},get showArrow(){return O()},set showArrow(_=!1){O(_),p()},get variant(){return A()},set variant(_="default"){A(_),p()},get size(){return y()},set size(_="default"){y(_),p()},get children(){return x()},set children(_){x(_),p()},get trigger(){return k()},set trigger(_){k(_),p()},get onclick(){return R()},set onclick(_){R(_),p()},$set:Ee,$on:(_,de)=>Oe(e,_,de)},ie=ue(),he=se(ie);return lo(he,()=>oh,(_,de)=>{de(_,{get delayDuration(){return c()},children:(be,W)=>{var Me=ue(),pe=se(Me);lo(pe,()=>th,(ve,we)=>{we(ve,{onOpenChange:Y,get delayDuration(){return c()},get disableHoverableContent(){return u()},get disableCloseOnTriggerClick(){return d()},get tether(){return K},get open(){return g()},set open(S){g(S)},children:(S,ae)=>{var H=fv(),Re=se(H);{const Ge=(ze,pt)=>{let ge=()=>(pt?.()).props;ih(ze,{get triggerProps(){return ge()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{var Lt=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>k()??xe),Z(ot,St)},xn=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>x()??xe),Z(ot,St)};Ne(Xn,ot=>{k()?ot(Lt):x()&&ot(xn,1)})}Z(Ye,Ft)},$$slots:{default:!0}})};let qe=U(()=>Kn("inline-flex",m()));lo(Re,()=>rh,(ze,pt)=>{pt(ze,{get class(){return w(qe)},get disabled(){return f()},get onclick(){return R()},onpointerdown:B,onkeydown:B,"data-tooltip-trigger":!0,get ref(){return w(M)},set ref(ge){N(M,ge,!0)},child:Ge,$$slots:{child:!0}})})}var rt=mn(Re,2);{var ht=Ge=>{var qe=ue(),ze=se(qe);lo(ze,()=>Yd,(pt,ge)=>{ge(pt,{get to(){return v()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{const Lt=(xn,ot)=>{let St=()=>(ot?.()).props,Xe=()=>(ot?.()).wrapperProps;var it=dv();Jt(it,()=>({...Xe()}));var nn=He(it);Jt(nn,()=>({...St(),id:n}));var ol=He(nn);{var ms=Bt=>{var Sn=kd();br(()=>Pl(Sn,r())),Z(Bt,Sn)},il=Bt=>{var Sn=ue(),al=se(Sn);ye(al,()=>r()??xe),Z(Bt,Sn)};Ne(ol,Bt=>{typeof r()=="string"?Bt(ms):r()&&typeof r()=="function"&&Bt(il,1)})}var sl=mn(ol,2);{var $h=Bt=>{var Sn=uv();br(al=>vo(Sn,1,al),[()=>Us(Kn("absolute bg-border",o()==="top"&&"w-px h-1.5 -bottom-1.5",o()==="bottom"&&"w-px h-1.5 -top-1.5",(o()==="top"||o()==="bottom")&&i()==="center"&&"left-1/2 -translate-x-1/2",(o()==="top"||o()==="bottom")&&i()==="start"&&"left-1.5",(o()==="top"||o()==="bottom")&&i()==="end"&&"right-1.5",o()==="left"&&"h-px w-1.5 -right-1.5",o()==="right"&&"h-px w-1.5 -left-1.5",(o()==="left"||o()==="right")&&i()==="center"&&"top-1/2 -translate-y-1/2",(o()==="left"||o()==="right")&&i()==="start"&&"top-1.5",(o()==="left"||o()==="right")&&i()==="end"&&"bottom-1.5",T()))]),Z(Bt,Sn)};Ne(sl,Bt=>{O()&&Bt($h)})}Fe(nn),Fe(it),Z(xn,it)};lo(Xn,()=>nh,(xn,ot)=>{ot(xn,{get id(){return n},role:"tooltip",get side(){return o()},get align(){return i()},get sideOffset(){return s()},get alignOffset(){return a()},get class(){return w(z)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},child:Lt,$$slots:{child:!0}})})}Z(Ye,Ft)},$$slots:{default:!0}})}),Z(Ge,qe)};Ne(rt,Ge=>{r()&&!f()&&Ge(ht)})}Z(S,H)},$$slots:{default:!0}})}),Z(be,Me)},$$slots:{default:!0}})}),Z(t,ie),_e(ee)}const nr=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Cx(t){return Array.isArray(t)?t.map(ad).join(" "):t.split("+").map(e=>ad(e.trim())).join(nr?"":"+")}function ad(t){const e=t.toLowerCase();return e==="cmd"||e==="meta"||e==="mod"?nr?"⌘":"Ctrl":e==="ctrl"||e==="control"?nr?"⌃":"Ctrl":e==="alt"||e==="option"?nr?"⌥":"Alt":e==="shift"?nr?"⇧":"Shift":e==="enter"||e==="return"?"↵":e==="esc"||e==="escape"?"Esc":e==="tab"?"⇥":e==="backspace"?"⌫":e==="delete"?"⌦":e==="space"?"␣":e==="up"||e==="arrowup"?"↑":e==="down"||e==="arrowdown"?"↓":e==="left"||e==="arrowleft"?"←":e==="right"||e==="arrowright"?"→":e==="pageup"?"PgUp":e==="pagedown"?"PgDn":t==="["?"[":t==="]"?"]":t.toUpperCase()}function Ve(t,e){return{key:Td[t],get label(){return e()}}}const De={NEW_TAB:Ve("navigation.new-tab",()=>V.ui_shortcuts_newTab_label()),CLOSE_TAB:Ve("navigation.close-tab",()=>V.workspace_shortcuts_closePanelTab_description()),CLOSE_WORKSPACE_TAB:Ve("navigation.close-space-tab",()=>V.workspace_shortcuts_closeSpaceTab_description()),GO_BACK:{key:"mod+←",get label(){return V.ui_shortcuts_goBack_label()}},GO_FORWARD:{key:"mod+→",get label(){return V.ui_shortcuts_goForward_label()}},MOVE_SPACE_TAB_LEFT:Ve("navigation.move-space-tab-left",()=>V.ui_shortcuts_moveSpaceTabLeft_label()),MOVE_SPACE_TAB_RIGHT:Ve("navigation.move-space-tab-right",()=>V.ui_shortcuts_moveSpaceTabRight_label()),NEW_AGENT:Ve("workspace.new-agent",()=>V.ui_shortcuts_newAgent_label()),NEW_NOTE:Ve("workspace.new-note",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_note_label()})),NEW_TERMINAL:Ve("workspace.new-terminal",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_terminal_label()})),NEW_BROWSER:Ve("workspace.new-browser",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_browser_label()})),SEND:Ve("chat.send",()=>V.ui_shortcuts_sendMessage_label()),TOGGLE_TASK_LIST:Ve("editor.toggle-task-list",()=>V.ui_shortcuts_toggleTaskList_label()),CONFIRM:{key:"enter",get label(){return V.ui_shortcuts_confirm_label()}},TOGGLE_SIDEBAR:Ve("panel.toggle-sidebar",()=>V.ui_shortcuts_toggleSidebar_label()),PREVIOUS_PANE:Ve("panel.previous-pane",()=>V.ui_shortcuts_prevTab_label()),NEXT_PANE:Ve("panel.next-pane",()=>V.ui_shortcuts_nextTab_label()),FOCUS_PREVIOUS_COLUMN:Ve("panel.focus-previous-column",()=>V.ui_shortcuts_prevPanel_label()),FOCUS_NEXT_COLUMN:Ve("panel.focus-next-column",()=>V.ui_shortcuts_nextPanel_label()),MOVE_PANE_PREVIOUS_COLUMN:Ve("panel.move-pane-previous-column",()=>V.ui_shortcuts_movePanePreviousColumn_label()),MOVE_PANE_NEXT_COLUMN:Ve("panel.move-pane-next-column",()=>V.ui_shortcuts_movePaneNextColumn_label()),CREATE_COLUMN_RIGHT:Ve("panel.create-column-right",()=>V.ui_shortcuts_splitPanelHorizontal_label())};function xx(t,e=nr){const n=De[t].key.toLowerCase().split("+");return{key:n.at(-1)??"",meta:n.includes("meta")||n.includes("cmd")||e&&n.includes("mod"),ctrl:n.includes("ctrl")||!e&&n.includes("mod"),shift:n.includes("shift"),alt:n.includes("alt")||n.includes("option")}}function hv(){return nr}function te(t,e,n){return{id:t,key:Td[t],get label(){return e()},...n&&{contexts:n}}}const ah={global:{get title(){return V.ui_shortcuts_globalCategory_title()},shortcuts:[te("global.command-palette",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.settings",()=>V.ui_shortcuts_settings_label(),["global"]),te("global.keyboard-shortcuts",()=>V.ui_shortcuts_keyboardShortcuts_label(),["global"]),te("global.command-palette-alt",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.toggle-spaces",()=>V.home_navigation_description(),["global"]),te("global.new-space",()=>V.workspace_page_newSpace_title(),["global"]),te("global.search",()=>V.ui_shortcuts_search_label(),["global"]),te("global.next-space",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space",()=>V.ui_shortcuts_prevSpace_label(),["global"]),te("global.next-space-alt",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space-alt",()=>V.ui_shortcuts_prevSpace_label(),["global"])]},navigation:{get title(){return V.ui_shortcuts_navigationCategory_title()},shortcuts:[te("navigation.go-to-tab",()=>V.ui_shortcuts_goToTab_label(),["global"]),te("navigation.new-tab",()=>De.NEW_TAB.label,["global"]),te("navigation.close-tab",()=>De.CLOSE_TAB.label,["global"]),te("navigation.close-space-tab",()=>De.CLOSE_WORKSPACE_TAB.label,["global"]),te("navigation.reopen-tab",()=>V.ui_shortcuts_reopenTab_label(),["global"]),te("navigation.move-space-tab-left",()=>De.MOVE_SPACE_TAB_LEFT.label,["global"]),te("navigation.move-space-tab-right",()=>De.MOVE_SPACE_TAB_RIGHT.label,["global"]),te("workspace.new-agent",()=>De.NEW_AGENT.label,["global"]),te("workspace.new-note",()=>De.NEW_NOTE.label,["global"]),te("workspace.new-terminal",()=>De.NEW_TERMINAL.label,["global"]),te("workspace.new-browser",()=>De.NEW_BROWSER.label,["global"]),te("workspace.set-aside",()=>V.home_setAside_shortcut_label())]},chat:{get title(){return V.ui_shortcuts_chatCategory_title()},shortcuts:[te("chat.send",()=>De.SEND.label,["chat"]),te("chat.force-send",()=>V.ui_shortcuts_forceSend_label(),["chat"]),te("chat.new-line",()=>V.ui_shortcuts_newLine_label(),["chat"]),te("chat.focus-input",()=>V.ui_shortcuts_focusInput_label(),["chat"]),te("chat.mention-context",()=>V.ui_shortcuts_mentionContext_label(),["chat"])]},editor:{get title(){return V.ui_shortcuts_editorCategory_title()},shortcuts:[te("editor.go-to-line",()=>V.ui_shortcuts_goToLine_label(),["editor"]),te("editor.save",()=>V.ui_shortcuts_save_label(),["editor"]),te("editor.undo",()=>V.ui_shortcuts_undo_label(),["editor"]),te("editor.redo",()=>V.ui_shortcuts_redo_label(),["editor"]),te("editor.toggle-task-list",()=>De.TOGGLE_TASK_LIST.label,["editor"]),te("editor.toggle-word-wrap",()=>V.ui_shortcuts_toggleWordWrap_label(),["editor"]),te("editor.copy",()=>V.ui_shortcuts_copy_label(),["editor"]),te("editor.select-all",()=>V.ui_shortcuts_selectAll_label(),["editor"])]},panel:{get title(){return V.ui_shortcuts_panelCategory_title()},shortcuts:[te("panel.toggle-sidebar",()=>De.TOGGLE_SIDEBAR.label,["panel"]),te("panel.create-column-right",()=>De.CREATE_COLUMN_RIGHT.label,["global"]),te("panel.focus-next-column",()=>De.FOCUS_NEXT_COLUMN.label,["global"]),te("panel.maximize",()=>V.ui_shortcuts_maximizePanel_label(),["global"]),te("panel.focus-previous-column",()=>De.FOCUS_PREVIOUS_COLUMN.label,["global"]),te("panel.next-pane",()=>De.NEXT_PANE.label,["global"]),te("panel.previous-pane",()=>De.PREVIOUS_PANE.label,["global"]),te("panel.move-pane-next-column",()=>De.MOVE_PANE_NEXT_COLUMN.label,["global"]),te("panel.move-pane-previous-column",()=>De.MOVE_PANE_PREVIOUS_COLUMN.label,["global"]),te("panel.copy-browser-url",()=>V.ui_shortcuts_copyBrowserUrl_label(),["panel"])]},leader:{get title(){return V.ui_shortcuts_leaderCategory_title()},shortcuts:[te("leader.navigate-panels",()=>V.ui_shortcuts_navigatePanels_label(),["panel"]),te("leader.resize-panels",()=>V.ui_shortcuts_resizePanels_label(),["panel"]),te("leader.split-right",()=>V.ui_shortcuts_splitRight_label(),["panel"]),te("leader.toggle-zoom",()=>V.ui_shortcuts_toggleZoom_label(),["panel"]),te("leader.close-panel",()=>V.ui_shortcuts_closePanel_label(),["panel"]),te("leader.next-previous-panel",()=>V.ui_shortcuts_nextPrevPanel_label(),["panel"]),te("leader.equalize-sizes",()=>V.ui_shortcuts_equalizeSizes_label(),["panel"]),te("leader.jump-to-panel",()=>V.ui_shortcuts_jumpToPanel_label(),["panel"]),te("leader.cycle-layout",()=>V.ui_shortcuts_cycleLayout_label(),["panel"])]}},Sx=Object.entries(ah).flatMap(([t,e])=>e.shortcuts.map(n=>({id:n.id,category:t,defaultKey:n.key,key:n.key,get label(){return n.label},contexts:n.contexts})));function kx(t={}){return Object.fromEntries(Object.entries(ah).map(([e,n])=>[e,{title:n.title,shortcuts:n.shortcuts.map(r=>({...r,key:yp(r.id,t)}))}]))}var pv=Ke('<kbd data-slot="shortcut-chip" style="font-family: var(--font-ui);"><!></kbd>');function lh(t,e){if(new.target)return Te({component:lh,...t});Pe(e,!0);let n=h(e,"class",7),r=h(e,"children",7);var o={get class(){return n()},set class(a){n(a),p()},get children(){return r()},set children(a){r(a),p()},$set:Ee,$on:(a,c)=>Oe(e,a,c)},i=pv(),s=He(i);return ye(s,()=>r()??xe),Fe(i),br(a=>vo(i,1,a),[()=>Us(Kn("type-caption shrink-0 font-normal leading-none text-shortcut-foreground",n()))]),Z(t,i),_e(o)}const ml=(t,e=xe,n=xe)=>{var r=mv(),o=se(r),i=pp(o,!0),s=mn(o,2);{var a=c=>{var u=gv();mp(u,23,n,(d,f)=>`key-${f}-${d}`,(d,f)=>{lh(d,{children:(g,b)=>{gp();var v=kd();br(()=>Pl(v,w(f))),Z(g,v)},$$slots:{default:!0}})}),Fe(u),Z(c,u)};Ne(s,c=>{n().length>0&&c(a)})}br(()=>Pl(i,e())),Z(t,r)};var gv=Ke('<div class="flex items-center gap-1 text-muted-foreground"></div>'),mv=Ke('<span class="type-caption"> </span> <!>',1),bv=Ke('<div class="flex items-center justify-between gap-3"><!></div> <div class="flex items-center justify-between gap-3"><!></div>',1);function ch(t,e){if(new.target)return Te({component:ch,...t});Pe(e,!0);let n=h(e,"label",7),r=h(e,"shortcut",7),o=h(e,"secondary",7),i=h(e,"side",7,"top"),s=h(e,"align",7,"center"),a=h(e,"sideOffset",7,4),c=h(e,"delayDuration",7,500),u=h(e,"disabled",7,!1),d=h(e,"portalTarget",7),f=h(e,"class",7,""),g=h(e,"contentClass",7,""),b=h(e,"children",7),v=h(e,"trigger",7);const m=hv();function E(x){const k={mod:m?"⌘":"Ctrl",cmd:m?"⌘":"Ctrl",command:m?"⌘":"Ctrl",ctrl:m?"⌃":"Ctrl",control:m?"⌃":"Ctrl",alt:m?"⌥":"Alt",option:m?"⌥":"Alt",shift:m?"⇧":"Shift",enter:"↵",return:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",esc:"Esc",tab:"⇥",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",pageup:"PgUp",pagedown:"PgDn",home:"Home",end:"End"},R=x.toLowerCase();return k[R]||x.toUpperCase()}function T(x){return Array.isArray(x)?x.map(E):x.split("+").map(k=>E(k.trim()))}const O=U(()=>r()?T(r()):[]),A=U(()=>o()?T(o().shortcut):[]);var y={get label(){return n()},set label(x){n(x),p()},get shortcut(){return r()},set shortcut(x){r(x),p()},get secondary(){return o()},set secondary(x){o(x),p()},get side(){return i()},set side(x="top"){i(x),p()},get align(){return s()},set align(x="center"){s(x),p()},get sideOffset(){return a()},set sideOffset(x=4){a(x),p()},get delayDuration(){return c()},set delayDuration(x=500){c(x),p()},get disabled(){return u()},set disabled(x=!1){u(x),p()},get portalTarget(){return d()},set portalTarget(x){d(x),p()},get class(){return f()},set class(x=""){f(x),p()},get contentClass(){return g()},set contentClass(x=""){g(x),p()},get children(){return b()},set children(x){b(x),p()},get trigger(){return v()},set trigger(x){v(x),p()},$set:Ee,$on:(x,k)=>Oe(e,x,k)};{const x=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=ue(),J=se(B);ye(J,()=>b()??xe),Z(Y,B)},z=Y=>{x()?.(Y)};Ne(j,Y=>{b()?Y($):x()&&Y(z,1)})}Z(M,K)},k=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=bv(),J=se(B),re=He(J);ml(re,n,()=>w(O)),Fe(J);var ee=mn(J,2),ie=He(ee);ml(ie,()=>o().label,()=>w(A)),Fe(ee),Z(Y,B)},z=Y=>{ml(Y,n,()=>w(O))};Ne(j,Y=>{o()?Y($):Y(z,-1)})}Z(M,K)};let R=U(()=>Kn(o()?"flex flex-col items-stretch gap-1.5":"flex items-center gap-3",g()));sh(t,{get side(){return i()},get align(){return s()},get sideOffset(){return a()},get delayDuration(){return c()},get disabled(){return u()},get portalTarget(){return d()},get class(){return f()},get contentClass(){return w(R)},trigger:x,content:k,$$slots:{trigger:!0,content:!0}})}return _e(y)}const vv=D({provider:ne("github"),protocol:ne("https"),host:ne("github.com"),managedHelperEnabled:Ae(),setting:ne("sourceControl.github.exposeGitCredentialToChildren")}),Ax=D({defaultProviderId:L().nullable(),defaultModelId:L().nullable(),enabledProviderIds:$e(L().min(1)).optional(),repositoryConnections:$e(D({provider:et(["github","gitlab"]),host:L(),configured:Ae()})),gitCredentialPolicy:vv}),yv=D({resource:et(["git","ai"]),reason:et(["missing","rejected","insufficient-scope"]),providerId:L().nullable(),host:L().nullable(),recovery:D({actor:ne("host-owner"),action:et(["check-git-authorization","check-ai-authorization"]),setting:ne("sourceControl.github.exposeGitCredentialToChildren").optional()})});function wv(t){const e=yv.safeParse(t);if(!e.success)return null;const{resource:n,reason:r,recovery:o}=e.data,i=n==="ai"?"AI":"Git",s=r==="missing"?V.hostExecution_missingAuthorization_description({resource:i}):r==="insufficient-scope"?V.hostExecution_insufficientScope_description({resource:i}):V.hostExecution_rejectedAuthorization_description({resource:i});return o.setting?`${s} ${V.hostExecution_disabledHelper_description({setting:o.setting})}`:s}function uh(t,e){if(!e.agentNodes||!wp.safeParse(t).success&&e.agentPlatformRouting!==!0||t.target==="local"&&(t.checkout??"isolated")==="isolated"&&!e.localNodeIsolation)throw new Error(V.agent_placement_unavailable())}const dh=D({workspaceId:L().min(1),agentId:L().min(1),requestId:Lp()}).strict(),Cv=dh.extend({checkpointId:L().min(1)}),xv=D({ok:ne(!0),status:et(["merged","conflict","blocked"]),commitRange:L().optional(),canonicalHead:L().optional(),conflictingPaths:$e(L()).optional(),reason:L().optional(),overlappingPaths:$e(L()).optional()});class Sv{constructor(e,n,r){this.request=e,this.remoteEnabled=n,this.observeCapabilities=r}async capabilities(){const n=(await this.observeCapabilities())?.server?.capabilities;return{agentNodes:n?.agentNodes===1,...n?.agentNodes===1&&n?.agentPlatformRouting===1?{agentPlatformRouting:!0}:{},localNodeIsolation:n?.agentNodes===1&&n?.localNodeIsolation===1}}async preparePlacement(e){const n=Hs.parse(e),r=()=>{if((n.target==="remote"||n.target==="e2b"||n.exclusive===!0)&&!this.remoteEnabled())throw new Error(V.agent_placement_labsRequired())};r();const o=await this.capabilities();return r(),uh(n,o),n}async requireHub(){if(!(await this.capabilities()).agentNodes)throw new Error(V.agent_placement_unavailable())}async merge(e){const n=Cv.parse(e);return await this.requireHub(),xv.parse(await this.request("hub.merge",n))}async discard(e){const n=dh.parse(e);return await this.requireHub(),D({ok:ne(!0)}).parse(await this.request("hub.discard",n))}}function Ue(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function fh(t){return t==="workspace.create"?"initialAgent":t==="agent.wakeOrCreate"?"create":void 0}function kv(t,e){return["agent.create","agent.delegate","agent.wakeOrCreate","workspace.create"].includes(t)||t==="workspace.update"&&"defaultAgentPlacement"in Ue(e)}async function Av(t,e){const n=Ue(await e()),r=Ue(Ue(n.server).capabilities);if(r.agentNodes===1||r.remoteMachines!==1||r.remoteInitialAgent!==1)return!1;const o=Hs.parse(t);if(o.exclusive===!0)throw new Error(V.agent_placement_unavailable());if(o.target==="e2b"&&r.cloudMachines!==1)throw new Error(V.agent_placement_unavailable());if(o.cloudMachineId!==void 0&&r.cloudMachineEntries!==1)throw new Error(V.agent_placement_unavailable());return!0}async function hh(t,e,n,r,o){const i=Ue(e);if(t==="agent.delegate"&&Array.isArray(i.tasks)){const v=[];for(const T of i.tasks){const O=typeof T=="string"?{taskNoteId:T}:Ue(T),A=Ue(await hh(t,{...i,tasks:void 0,...O},n,r,o));v.push({...O,...A.placement?{placement:A.placement}:{}})}const{placement:m,...E}=i;return{...E,tasks:v}}const s=new Sv(n,r,o);if(t==="workspace.update")return i.defaultAgentPlacement!=null&&await s.preparePlacement(Hs.parse(i.defaultAgentPlacement)),e;const a=fh(t);if(a==="initialAgent"&&!i[a])return e;const c=a?Ue(i[a]):i;if(c.isolation==="cow")throw new Error(V.agent_placement_retiredIsolation());if(c.placement!==void 0&&c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());if(a==="initialAgent"&&c.placement!=null&&Ue(c.placement).target!=="local"&&await Av(c.placement,o)){if(!r())throw new Error(V.agent_placement_labsRequired());return e}let u=c.placement,d=await s.capabilities(),f=!1;if(u===void 0){const v=i.workspaceId;let m;const E=async()=>{if(!m){f=!0;const O=Ue(await n("workspace.get",{workspaceId:v}));m=Ue(O.workspace??O)}return m},T=c.specialistId??c.specialist;if(t==="agent.delegate"&&(typeof T!="string"||!T))return e;if(typeof T=="string"&&T){f=!0;const O=c.workspacePath??i.workspacePath;let A=typeof O=="string"&&O?O:void 0;if(!A&&typeof v=="string"){const x=await E(),k=x.worktreePath??x.repositoryPath;typeof k=="string"&&k&&(A=k)}const y=Ue(await n("specialist.get",{id:T,...v?{workspaceId:v}:{},...A?{workspacePath:A}:{}}));if(!y.specialist)throw new Error(V.agent_placement_specialistUnavailable());u=Ue(y.specialist).runsOn}u==null&&typeof v=="string"&&(u=(await E()).defaultAgentPlacement)}if(!d.agentNodes){if(u!=null)throw new Error(V.agent_placement_unavailable());return e}const g=u==null?void 0:Hs.parse(u);if(!r()&&(g?.target==="remote"||g?.target==="e2b"||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(f&&(d=await s.capabilities()),g)uh(g,d);else if(!d.agentNodes)throw new Error(V.agent_placement_unavailable());if(!r()&&(g?.target==="remote"||g?.target==="e2b"||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(!g)return e;if(c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());const b={...c,placement:g};return a?{...i,[a]:b}:b}function Tv(t,e,n){if(n)return;const r=Ue(e),o=fh(t),i=o?Ue(r[o]):r,s=Array.isArray(i.tasks)?i.tasks.map(a=>Ue(a).placement??i.placement):[i.placement];if(s.push(r.defaultAgentPlacement),s.some(a=>Ue(a).target==="remote"||Ue(a).target==="e2b"||Ue(a).exclusive===!0))throw new Error(V.agent_placement_labsRequired())}function Ev(t,e={}){const n=Ka.BACKEND.PR_MONITOR;return async r=>{const o=t(),i=()=>new Ce({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});if(!o)throw i();const s=Or(e.reviewMonitoring)&&Or(o.reviewMonitoring)?Math.min(e.reviewMonitoring,o.reviewMonitoring):void 0;let a,c=!1,u=!1;const d=new Set,f=new Set,g=new Set,b=()=>{if(!c){c=!0;for(const O of[...f])O();f.clear()}},v=o.on(n.RETIRED,O=>{const A=D({id:L()}).safeParse(O);if(!A.success)return b();a?A.data.id===a&&b():(d.add(A.data.id),d.size>256&&b())}),m=o.on(n.NOTIFICATION,O=>{const A=D({id:L(),notification:D({method:L(),params:yo().optional()})}).safeParse(O);if(!c&&t()===o&&A.success&&A.data.id===a)for(const y of g)y(A.data.notification)}),E=O=>{const A=D({ok:Ae(),result:yo().optional(),error:D({code:L(),message:L(),rpcCode:gn().optional(),data:yo().optional()}).optional()}).parse(O);if(!A.ok)throw A.error?new Ce(A.error):i();return A.result},T=async()=>{if(!u&&(u=!0,b(),o.offById(n.RETIRED,v),o.offById(n.NOTIFICATION,m),a))try{await o.invoke(n.RELEASE,{id:a,workspaceId:r})}catch{}};try{const O=D({origin:Bp,support:et(["supported","unsupported","consumer-pending"])}).parse(E(await o.invoke(n.CAPTURE,{workspaceId:r,...s===void 0?{}:{reviewMonitoring:s}})));if(a=O.origin.sessionId,(d.has(a)||t()!==o)&&b(),c||O.origin.workspaceId!==r)throw i();return{...O,onNotification(A){return g.add(A),()=>{g.delete(A)}},onRetired(A){return c?(A(),()=>{}):(f.add(A),()=>{f.delete(A)})},async request(A,y){if(t()!==o&&b(),c||y.workspaceId!==r)throw i();const x=await o.invoke(n.REQUEST,{id:a,workspaceId:r,method:A,params:y});if(t()!==o&&b(),c)throw i();return E(x)},release:T}}catch(O){throw await T(),O}}}const ld=D({repository:Ac,providerProjectId:L().nullable(),connection:Kp.nullable().optional(),branch:L()}),Ov=D({remoteName:L(),fetchUrls:$e(L()),pushUrls:$e(L())}),jc=D({operationId:L(),scope:ja,contextRevision:ro,root:Qr,worktreeId:L(),source:ld,target:ld,localHeadSha:L().nullable(),transport:Ov.nullable()}),Pv=bt("stage",[D({stage:ne("commit"),commitHash:L()}),D({stage:ne("push"),pushedSha:L()})]),fc=et(["commit","push","create-pr"]),_v=et(["open","locked","closed","merged"]),cd=D({provider:Ac.shape.provider,instanceBaseUrl:L(),projectId:L(),projectPath:L().nullable(),branch:L()}),hc=D({resource:jp,url:L(),title:L(),body:L().nullable(),state:_v.nullable(),draft:Ae().nullable(),sourceBranch:L().nullable(),targetBranch:L().nullable(),source:cd.nullable(),target:cd.nullable(),author:L().nullable(),mergeable:Ae().nullable(),mergeableState:L().nullable(),headSha:L().nullable(),createdAt:L().nullable(),updatedAt:L().nullable()}),Iv=bt("status",[D({status:ne("not-attempted")}),D({status:ne("created"),review:hc}),D({status:ne("reused"),review:hc}),D({status:ne("failed"),stage:fc,code:L().nullable(),message:L()}),D({status:ne("uncertain"),stage:fc,message:L()})]),Mv=bt("state",[D({state:ne("included"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("local-ahead"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("diverged"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("remote-branch-missing"),localHeadSha:L().nullable()}),D({state:ne("unknown"),localHeadSha:L().nullable(),remoteSourceSha:L().nullable()})]),ph=D({requestId:L(),preparation:jc,gitReceipts:$e(Pv),outcome:Iv,publication:Mv});D({reviewPreparation:jc.optional()}).passthrough();D({reviewExecution:ph.optional()}).passthrough();const ps=L().min(1).max(4096),gh=ro.shape.sequence,gs=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]),Rv=D({workspaceId:ps,action:fc,files:$e(L()).nullish(),options:D({stageUnstaged:Ae().optional(),pushAfterCommit:Ae().optional(),createPRAfterPush:Ae().optional()}).strict().optional(),review:D({root:gs,choice:bt("kind",[D({kind:ne("saved")}).strict(),D({kind:ne("explicitTarget"),target:Ac.strict()}).strict()]),targetBranch:L().nullish(),pushRemote:L().nullish(),companion:D({kind:ne("create-pr")}).strict().optional()}).strict()}).strict().refine(t=>t.workspaceId===t.review.root.workspaceId&&(!Object.hasOwn(t.review,"companion")||t.review.companion!==void 0&&t.action==="commit"&&!Object.hasOwn(t,"files")&&!Object.hasOwn(t,"options")&&!Object.hasOwn(t.review,"pushRemote")&&typeof t.review.targetBranch=="string"&&t.review.targetBranch.length>0)&&(t.action==="commit"||t.files==null&&!t.options?.stageUnstaged&&!t.options?.pushAfterCommit&&!t.options?.createPRAfterPush)),Nv=D({commitMessage:L().nullish(),prTitle:L().nullish(),prBody:L().nullish()}).strict(),mh={valid:Ae(),warnings:$e(L()),errors:$e(L()),suggestedCommitMessage:L().optional(),suggestedPRTitle:L().optional(),suggestedPRBody:L().optional(),filesCount:gn().int().nonnegative(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative(),files:$e(D({path:L(),staged:Ae(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative()}).strict()),reviewPreparation:jc};D({...mh,reviewOperation:D({operationId:ps,root:gs,retirementSequence:gh,expiresAfterMs:ne(3e5)}).strict()}).strict();const Dv=D({...mh,root:gs,expiresAfterMs:ne(3e5)}).strict(),bh={operationId:ps,root:gs,state:et(["prepared","pending","settled"]),reviewExecution:ph.optional()},vh=t=>t.state==="settled"==(t.reviewExecution!==void 0),Fv=D(bh).strict().refine(vh),Lv=D({...bh,state:et(["pending","settled"]),success:Ae(),steps:$e(D({id:L(),name:L(),status:et(["pending","running","completed","failed"]),message:L().optional(),error:L().optional()}).strict()),result:D({commitHash:L().optional(),pushedSha:L().optional(),prNumber:gn().int().nonnegative().optional(),prUrl:L().optional()}).strict().optional(),error:L().optional()}).strict().refine(vh);D({operationIds:$e(ps).max(64),sequence:gh,allRetired:Ae(),terminal:Ae()}).strict();const Bv=D({current:Ae(),uncertain:Ae(),execute:Lv.nullable(),reconciliation:Fv.nullable()}).strict(),Tx=D({attemptId:ps,root:gs,admission:L().nullable(),hostContext:L().nullable()}).strict(),tl=L().min(1).max(128).refine(t=>!/[\u0000-\u001f\u007f]/.test(t)),Co=ro.shape.sequence,Gc=gn().int().positive().safe(),zv=D({workspaceId:tl}).strict(),ra=D({repository:D({provider:ne("gitlab"),instanceBaseUrl:L().max(2048).refine(Ed),projectPath:L().min(1).max(1024).refine(t=>{const e=t.split("/");return e.length>=2&&e[0]!=="groups"&&e.every(n=>/^[A-Za-z0-9_.-]+$/.test(n)&&![".","..","-"].includes(n))})}).strict(),kind:et(["merge-request","issue"]),number:Gc}).strict(),Vv=D({readLifetimeId:tl,scope:ja.strict(),revision:ro.strict(),expiresAfterMs:ne(3e5),retirementSequence:Co,instances:$e(D({provider:ne("gitlab"),instanceBaseUrl:L().max(2048).refine(Ed),availability:ne("connected")}).strict()).max(64)}).strict(),Wv=et(["authentication","project-denied","resource-denied","optional-restricted","optional-unavailable","rate-limited","transient","unavailable","unknown"]),Uv=D({number:Gc,title:L(),body:L().nullable(),state:L(),url:L(),author:L(),createdAt:L(),updatedAt:L()}).strict(),Hv=D({resource:ra,prNumber:Gc,details:hc.extend({resource:ra}).strict()}).strip(),Kv=D({readLifetimeId:tl,scope:ja.strict(),revision:ro.strict(),target:ra,outcome:bt("kind",[D({kind:ne("merge-request"),snapshot:Hv}).strict(),D({kind:ne("issue"),issue:Uv}).strict(),D({kind:ne("failure"),code:Wv,status:gn().int().min(100).max(599).nullable()}).strict()]),quota:D({resetAt:Co.nullable(),remaining:Co.nullable(),limit:Co.nullable()}).strict()}).strict();D({readLifetimeIds:$e(tl).max(64),sequence:Co,allRetired:Ae(),terminal:Ae()}).strict();const jv=D({target:ra,refresh:Ae().optional()}).strict();function Gv(t,e,n){if(t.readLifetimeId!==e.readLifetimeId||!Gp(t.scope,e.scope)||t.revision.epoch!==e.revision.epoch||t.revision.sequence!==e.revision.sequence||kn(t.target)!==kn(n))return!1;const r=t.outcome;if(r.kind==="failure")return!0;if(r.kind!==n.kind)return!1;const o=r.kind==="issue"?r.issue.url:r.snapshot.details.url,i=Od(o,e.instances);return!i||kn(i)!==kn(n)?!1:r.kind==="issue"?r.issue.number===n.number:r.snapshot.prNumber===n.number&&kn(r.snapshot.resource)===kn(n)&&kn(r.snapshot.details.resource)===kn(n)}function qv(t){const e=Ka.BACKEND.REPOSITORY_RESOURCE,n=()=>new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).strict().safeParse(o);if(!i.success)throw n();return i.data.result};return async o=>{const i=zv.parse({workspaceId:o}),s=t();if(!s)throw n();let a,c=!1,u=!1;const d=new Set,f=new Set,g=()=>{if(!c){c=!0;for(const E of[...f])try{E()}catch{}f.clear()}},b=s.on(e.RETIRED,E=>{const T=D({id:L().min(1).max(128)}).strict().safeParse(E);if(!T.success){g();return}a===void 0?(d.add(T.data.id),d.size>64&&(d.clear(),g())):a===T.data.id&&g()}),v=async()=>{if(!u&&(u=!0,g(),s.offById(e.RETIRED,b),a))try{await s.invoke(e.RELEASE,{...i,id:a})}catch{}},m=()=>(t()!==s&&g(),!c&&!u);try{const E=r(await s.invoke(e.CAPTURE,i)),T=D({id:L().min(1).max(128)}).safeParse(E);T.success&&(a=T.data.id);const O=D({id:L().min(1).max(128),capture:Vv}).strict().parse(E);if(a=O.id,d.has(a)&&g(),d.clear(),!m())throw n();const A=O.capture;return{capture:A,onRetired(y){return m()?(f.add(y),()=>{f.delete(y)}):(y(),()=>{})},async detail(y,x=!1){if(!m())throw n();const{target:k}=jv.parse({target:y,refresh:x});try{const R=Kv.parse(r(await s.invoke(e.DETAIL,{...i,id:a,target:k,refresh:x})));if(!m()||!Gv(R,A,k))throw n();return R}catch{throw await v(),n()}},release:v}}catch(E){throw await v(),E}}}const bl=L().min(1).max(128),Cs=()=>({status:"unavailable",reason:"retired"});function Yv(t){const e=Ka.BACKEND.REPOSITORY_CHECKOUT,n=()=>new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).strict().safeParse(o);if(!i.success)throw n();return i.data.result};return async o=>{const i=Cp.parse(o),s=t();if(!s)throw n();let a,c=!1,u=!1;const d=new Set,f=new Set,g=()=>{if(!c){c=!0;for(const E of[...f])try{E()}catch{}f.clear()}},b=s.on(e.RETIRED,E=>{const T=D({id:bl}).strict().safeParse(E);if(!T.success){g();return}a===void 0?(d.add(T.data.id),d.size>64&&(d.clear(),g())):a===T.data.id&&g()}),v=async()=>{if(!u&&(u=!0,g(),s.offById(e.RETIRED,b),a!==void 0))try{await s.invoke(e.RELEASE,{id:a})}catch{}},m=()=>(t()!==s&&g(),!c&&!u);try{const E=r(await s.invoke(e.CAPTURE,i)),T=D({value:D({id:bl})}).safeParse(E);T.success&&(a=T.data.value.id);const O=xp(D({id:bl,capture:Sp,repoConfigSupported:Ae().optional()}).strict()).parse(E);if(O.status==="unavailable")return await v(),O;if(a=O.value.id,d.has(a)&&g(),d.clear(),!m())throw n();const A=Object.freeze(O.value.capture),y=async(x,k,R)=>{if(!m())return Cs();try{const M=kp(R,r(await s.invoke(e.REQUEST,{id:a,kind:x,params:k})));return m()?M:Cs()}catch(M){throw await v(),M}};return{status:"ready",value:{capture:A,onRetired(x){return m()?(f.add(x),()=>{f.delete(x)}):(x(),()=>{})},projects:x=>y("projects",Rp.parse(x),Np),project:x=>y("project",Ip.parse(x),Mp),branches:x=>y("branches",Pp.parse(x),_p),...O.value.repoConfigSupported===!0?{repoConfig:async x=>{const k=Ep.parse(x);if(k.checkoutId!==A.checkoutId||k.revision!==A.revision)return Cs();const R=await y("repoConfig",k,Op);if(R.status==="ready"&&(R.value.projectPath!==k.projectPath||R.value.branch!==k.branch||R.value.commitSha!==k.commitSha))throw await v(),n();return R}}:{},async warm(x){const k=Ap.parse(x);if(k.checkoutId!==A.checkoutId||k.revision!==A.revision)return Cs();const R=await y("warm",k,Tp);if(R.status==="ready"&&(R.value.projectPath!==k.projectPath||R.value.branch!==k.branch||R.value.commitSha!==k.commitSha))throw await v(),n();return R},release:v}}}catch(E){throw await v(),E}}}const Eo=ro.shape.sequence,Oo=L().min(1).max(4096),nl=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]);D({workspaceId:Oo,gitRootId:Oo.nullish()}).strict();const Xv=bt("mode",[D({mode:ne("automatic")}).strict(),D({mode:ne("explicit-remote"),remoteName:L().min(1).refine(t=>!/^\p{White_Space}|\p{White_Space}$/u.test(t)&&!/\p{Cc}/u.test(t)&&!/[\uD800-\uDFFF]/u.test(t)&&new TextEncoder().encode(t).length<=1024)}).strict()]),Zv=bt("kind",[D({kind:ne("save"),choice:Xv}).strict(),D({kind:ne("reset")}).strict()]),zs=D({root:nl,rootIncarnation:Eo,selectionRevision:Eo,selection:bt("kind",[D({kind:ne("neverSaved")}).strict(),D({kind:ne("reset")}).strict(),D({kind:ne("saved"),value:qp}).strict()])}).strict(),yh=D({scope:ja.strict(),root:nl,snapshot:zs,expiresAfterMs:ne(3e5)}).strict();yh.extend({selectionId:Oo,retirementSequence:Eo}).strict();const Jv=D({result:bt("kind",[D({kind:ne("applied"),snapshot:zs}).strict(),D({kind:ne("unchanged"),snapshot:zs}).strict(),D({kind:ne("conflict"),snapshot:zs}).strict(),D({kind:ne("missingRoot")}).strict(),D({kind:ne("failed"),code:et(["admission-retired","authority-unavailable","storage-failed","completion-unobserved"])}).strict()]),persistence:bt("kind",[D({kind:ne("notAttempted")}).strict(),D({kind:ne("noEffect")}).strict(),D({kind:ne("committed"),selectionRevision:Eo}).strict(),D({kind:ne("unknown")}).strict()])}).strict(),wh=bt("status",[D({status:ne("notStarted")}).strict(),D({status:ne("pending")}).strict(),D({status:ne("settled"),receipt:Jv}).strict()]);D({selectionId:Oo,root:nl,attempt:wh}).strict();D({selectionIds:$e(Oo).max(64),sequence:Eo,allRetired:Ae(),terminal:Ae()}).strict();const Qv=D({current:Ae(),attempt:wh.nullable(),uncertain:Ae()}).strict(),tt=Ka.BACKEND;function ce(){return typeof window<"u"?window.electronAPI:void 0}function Xt(t){if(!t||!t.ok)throw new Ce(t?.error??{code:"TRANSPORT_ERROR",message:"Backend request failed"});return t.result}function vl(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))}const pc=new Set;function Ex(){const t=new Map;for(const e of pc)t.set(e.channel,(t.get(e.channel)??0)+e.size());return Object.fromEntries([...t].sort(([e],[n])=>e.localeCompare(n)))}function yl(t,e){const n=new Set;let r=null;const o={channel:t,size:()=>n.size};return{subscribe(i,s){if(!r){const c=i.on(t,u=>{for(const d of[...n])try{d(u)}catch(f){console.warn(`[electron-ipc-transport] ${e} handler threw`,f)}});r={api:i,id:c}}n.add(s),pc.add(o);let a=!1;return()=>{a||(a=!0,n.delete(s),!(n.size>0)&&(pc.delete(o),r&&(r.api.offById(t,r.id),r=null)))}}}}function ud(t={}){const e=yl(tt.STATUS,"onReconnected"),n=yl(tt.NOTIFICATION,"onNotification"),r=yl(tt.PR_MONITOR.READY,"onMonitorReconnected");return{onMonitorReconnected(o){const i=ce();if(!i)return()=>{};const s=r.subscribe(i,o),a=e.subscribe(i,c=>{c?.status==="connected"&&c.reconnected&&o()});return()=>{s(),a()}},capturePrMonitorSession:Ev(ce,t),captureRepositorySelection:$v,async readPrincipal(){const o=ce();if(!o)throw new Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.READ_PRINCIPAL);if(ce()!==o)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},async observeNodeCapabilities(){const o=ce();if(!o)throw new Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.NODE_CAPABILITIES);if(ce()!==o)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},prepareNativeReview:ey,captureRepositoryResource:qv(ce),captureRepositoryCheckout:Yv(ce),async captureRepositoryRoute(o){const i=ce(),s=()=>new Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"});if(!i)throw s();const a=Object.freeze(Qr.parse(o));let c,u=!1,d=!1,f=!1;const g=new Set,b=new Set,v=()=>{if(!d){d=!0;for(const T of[...b])try{T()}catch{}b.clear()}},m=i.on(tt.REPOSITORY.RETIRED,T=>{!T||typeof T!="object"||!("id"in T)||typeof T.id!="string"||(c===void 0&&!f?(g.add(T.id),g.size>32&&(f=!0,g.clear(),v())):T.id===c&&v())}),E=async()=>{if(!u&&(u=!0,v(),i.offById(tt.REPOSITORY.RETIRED,m),!!c))try{await i.invoke(tt.REPOSITORY.RELEASE,{id:c,root:a})}catch{}};try{const T=Xt(await i.invoke(tt.REPOSITORY.CAPTURE,{root:a}));if(typeof T.id!="string"||!T.id||(c=T.id,g.has(c)&&v(),g.clear(),ce()!==i||f||d))throw s()}catch(T){throw await E(),T}return{onRetired(T){return u||d||ce()!==i?(T(),()=>{}):(b.add(T),()=>{b.delete(T)})},async request(T,O,A){if(u||d||ce()!==i||A&&"localMachine"in A)throw s();const y=Xt(await i.invoke(tt.REPOSITORY.REQUEST,{id:c,root:a,method:T,params:vl(O),...A?.timeoutMs===void 0?{}:{timeoutMs:A.timeoutMs}}));return{...y,current:y.current&&!u&&!d&&ce()===i}},release:E}},isAvailable(){return!!ce()},async request(o,i,s){const a=ce();if(!a)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const c={method:o,params:vl(i)};s?.timeoutMs!==void 0&&(c.timeoutMs=s.timeoutMs),s?.localMachine&&(c.localMachine=!0),!s?.localMachine&&zp.has(o)&&Or(t.reviewMonitoring)&&Or(a.reviewMonitoring)&&(c.reviewMonitoring=Math.min(t.reviewMonitoring,a.reviewMonitoring));const u=await a.invoke(tt.REQUEST,c);return Xt(u)},async subscribe(o){const i=ce();if(!i)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const s=await i.invoke(tt.SUBSCRIBE,vl(o));return Xt(s)},async unsubscribe(o,i){const s=ce();if(s)try{await s.invoke(tt.UNSUBSCRIBE,{subscriptionId:o,...i!==void 0?{workspaceId:i}:{}})}catch{}},onNotification(o){const i=ce();return i?n.subscribe(i,s=>o(s)):()=>{}},onReconnected(o){const i=ce();if(!i)return()=>{};const s=Or(t.reviewMonitoring)&&Or(i.reviewMonitoring)?r.subscribe(i,c=>{c&&typeof c=="object"&&"attachment"in c&&c.attachment===!0&&o()}):()=>{},a=e.subscribe(i,c=>{c?.status!=="connected"||c.reconnected!==!0||o()});return()=>{s(),a()}}}}async function $v(t){const e=ce(),n=nl.parse(t),r=()=>new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"});if(!e)throw r();const o=tt.REPOSITORY_SELECTION;let i,s=!1,a,c=!1;const u=new Map,d=new Set,f=A=>{if(!(a==="closed"||a===A)){a=A;for(const y of[...d])try{y(A)}catch{}A==="closed"&&d.clear()}},g=e.on(o.RETIRED,A=>{const y=D({id:L().min(1),kind:et(["admission","closed"])}).strict().safeParse(A);y.success&&(i===void 0?(u.get(y.data.id)!=="closed"&&u.set(y.data.id,y.data.kind),u.size>32&&(c=!0,u.clear(),f("closed"))):y.data.id===i&&f(y.data.kind))}),b=async()=>{if(!s&&(s=!0,f("closed"),e.offById(o.RETIRED,g),i))try{await e.invoke(o.RELEASE,{id:i,root:n})}catch{}};let v;try{const A=Xt(await e.invoke(o.CAPTURE,{root:n})),y=D({id:L().min(1).max(4096)}).safeParse(A);y.success&&(i=y.data.id);const x=D({id:L().min(1),preview:yh}).strict().parse(A);i=x.id,v=x.preview;const k=u.get(i);if(u.clear(),k&&f(k),s||c||a||ce()!==e||JSON.stringify(v.root)!==JSON.stringify(n))throw r()}catch(A){throw await b(),A}let m,E,T;const O=A=>{if(s||a==="closed"||ce()!==e||T)return Promise.reject(r());const y=(async()=>{try{const x=Qv.parse(Xt(await A()));m?.attempt?.status!=="settled"&&(m=x)}catch{m={...m??{attempt:null,current:!1},uncertain:m?.attempt?.status!=="settled"}}return{...m,current:!!m.current&&!s&&!a&&ce()===e}})();return T=y,y.finally(()=>{T===y&&(T=void 0)}),y};return{preview:v,onRetired(A){return(s||ce()!==e)&&f("closed"),a&&A(a),a!=="closed"&&d.add(A),()=>{d.delete(A)}},confirm(A){const y=Zv.parse(A),x=JSON.stringify(y);return E!==void 0?E!==x?Promise.reject(r()):T??Promise.resolve({...m??{attempt:null,uncertain:!0},current:!!m?.current&&!s&&!a&&ce()===e}):a||s||T||ce()!==e?Promise.reject(r()):(E=x,O(()=>e.invoke(o.CONFIRM,{id:i,root:n,command:y})))},reconcile:()=>O(()=>e.invoke(o.RECONCILE,{id:i,root:n})),release:b}}async function ey(t){const e=ce(),n=Rv.parse(t);if(!e)throw new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});return Ch(e,n.review.root,{input:n},!!n.review.companion)}async function Ch(t,e,n,r=!1){const o=()=>new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});if(ce()!==t)throw o();const i=tt.NATIVE_REVIEW;let s,a=!1,c,u;const d=()=>c==="closed";let f=!1;const g=new Map,b=new Set,v=k=>{if(!(c==="closed"||c===k)){c=k;for(const R of[...b])try{R(k)}catch{}k==="closed"&&b.clear()}},m=t.on(i.RETIRED,k=>{const R=D({id:L().min(1),kind:et(["admission","closed"])}).strict().safeParse(k);R.success&&(s===void 0?(g.get(R.data.id)!=="closed"&&g.set(R.data.id,R.data.kind),g.size>32&&(f=!0,g.clear(),v("closed"))):R.data.id===s&&v(R.data.kind))}),E=async()=>{if(!a&&(a=!0,v("closed"),t.offById(i.RETIRED,m),u?.then(k=>k.release(),()=>{}),s))try{await t.invoke(i.RELEASE,{id:s,root:e})}catch{}};let T;try{const k=Xt(await t.invoke(i.PREPARE,n)),R=D({id:L().min(1).max(4096)}).safeParse(k);R.success&&(s=R.data.id);const M=D({id:L().min(1),preview:Dv}).strict().parse(k);s=M.id,T=M.preview;const K=g.get(s);if(g.clear(),K&&v(K),a||f||c||ce()!==t||JSON.stringify(T.root)!==JSON.stringify(e))throw o()}catch(k){throw await E(),k}let O,A,y;const x=k=>{if(a||c==="closed"||ce()!==t||y)return Promise.reject(o());let R;const M=new Promise(K=>{R=K});return y=M,(async()=>{try{O=Bv.parse(Xt(await k()))}catch{O={...O??{execute:null,reconciliation:null,current:!1},uncertain:O?.uncertain||O?.execute?.state!=="settled"&&O?.reconciliation?.state!=="settled"}}return{...O,current:!!O.current&&!a&&!c&&ce()===t}})().then(R,()=>R({...O??{execute:null,reconciliation:null},current:!1,uncertain:!0})),M.finally(()=>{y===M&&(y=void 0)}),M};return{...r?{prepareCompanion(){return u||(u=Promise.resolve().then(async()=>{if(!s||a||c==="closed"||y||ce()!==t)throw o();const k=await Ch(t,e,{companionOf:s,root:e});if(a||d()||ce()!==t)throw await k.release(),o();return k}),u)}}:{},preview:T,onRetired(k){return(a||ce()!==t)&&v("closed"),c&&k(c),c!=="closed"&&b.add(k),()=>{b.delete(k)}},confirm(k){const R=Nv.parse(k),M=JSON.stringify(R);return A!==void 0?A!==M?Promise.reject(o()):y??Promise.resolve({...O??{execute:null,reconciliation:null,uncertain:!0},current:!!O?.current&&!a&&!c&&ce()===t}):c||a||y||ce()!==t?Promise.reject(o()):(A=M,x(()=>t.invoke(i.EXECUTE,{id:s,root:e,command:R})))},reconcile:()=>x(()=>t.invoke(i.RECONCILE,{id:s,root:e})),release:E}}let wl=null;function ty(){if(Dp())return ud();const t=Vp();if(t){const e=Wp({url:t});return Up({getStatus:()=>e.getConnectionStatus(),getTarget:()=>Hp(t),onStatusChange:n=>e.onConnectionStatusChange(n),getStartupState:()=>e.getStartupState(),onStartupChange:n=>e.onStartupChange(n),onReconnected:n=>e.onReconnected(n)}),e}return ud()}function je(){return wl||(wl=ty()),wl}function ny(t){const e=je();return e.captureRepositoryResource?e.captureRepositoryResource(t):Promise.reject(new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}))}function ry(t){const e=je();return e.captureRepositoryRoute?e.captureRepositoryRoute(t):Promise.reject(new Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"}))}function oy(t){const e=je();return e.captureRepositorySelection?e.captureRepositorySelection(t):Promise.reject(new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"}))}async function xh(t,e,n){try{const r=je();if(kv(t,e)){const{store:o}=await as(async()=>{const{store:d}=await import("./DMiVWfnj.js");return{store:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),i=()=>o.state.userPreferences?.labsRemoteAgentsEnabled===!0,s=o.state.daemonHealth?.connectionGeneration,a=()=>{if(r!==je()||s!==o.state.daemonHealth?.connectionGeneration)throw new Error(V.agent_placement_backendChanged())};e=await hh(t,e,async(d,f)=>{a();const g=await r.request(d,f);return a(),g},i,async()=>{if(a(),!r.observeNodeCapabilities)throw new Error(V.agent_placement_unavailable());const d=await r.observeNodeCapabilities();return a(),d}),a(),Tv(t,e,i())}return await r.request(t,e,n)}catch(r){if(r instanceof Ce){const o=wv(r.data?.executionAuthorization);if(o)throw new Ce({code:r.code,rpcCode:r.rpcCode,data:r.data,message:o})}throw r}}async function iy(){const t=je();if(!t.readPrincipal)throw new Ce({code:"UNAVAILABLE",message:"Principal discovery unavailable"});const e=await t.readPrincipal();if(t!==je())throw new Ce({code:"UNAVAILABLE",message:"Backend transport changed"});return e}async function sy(){const t=je(),{store:e}=await as(async()=>{const{store:o}=await import("./DMiVWfnj.js");return{store:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),n=e.state.daemonHealth?.connectionGeneration;if(!t.observeNodeCapabilities)throw new Error(V.agent_placement_unavailable());const r=await t.observeNodeCapabilities();if(t!==je()||n!==e.state.daemonHealth?.connectionGeneration)throw new Error(V.agent_placement_backendChanged());return r}async function ay(t){return je().subscribe(t)}async function ly(t,e){return je().unsubscribe(t,e)}let Cl=null;function cy(){return Cl||(Cl=xh("client.hello",{}).then(t=>t?.server?.capabilities?.liveState===!0).catch(()=>!1)),Cl}function uy(t){return je().onNotification(t)}function Sh(t){return je().onReconnected(t)}function dy(t){const e=je();return e.prepareNativeReview?e.prepareNativeReview(t):Promise.reject(new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"}))}function fy(t){const e=je();return e.captureRepositoryCheckout?e.captureRepositoryCheckout(t):Promise.reject(new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}))}function hy(t){const e=je();return e.capturePrMonitorSession?e.capturePrMonitorSession(t):Promise.reject(new Ce({code:"PR_MONITOR_SESSION_UNAVAILABLE",message:"Monitor transport unavailable"}))}function py(){return je().prMonitorBackendId?.()}function gy(t){const e=je();return e.onMonitorReconnected?e.onMonitorReconnected(t):e.onReconnected(t)}const Ox=Object.freeze(Object.defineProperty({__proto__:null,backendRequest:xh,backendSubscribe:ay,backendUnsubscribe:ly,captureBackendRepositoryCheckout:fy,captureBackendRepositoryResource:ny,captureBackendRepositoryRoute:ry,captureBackendRepositorySelection:oy,capturePrMonitorSession:hy,detectLiveStateCapability:cy,electronAPI:ce,observeBackendNodeCapabilities:sy,onBackendNotification:uy,onBackendReconnected:Sh,onMonitorReconnected:gy,prMonitorBackendId:py,prepareBackendNativeReview:dy,readBackendPrincipal:iy},Symbol.toStringTag,{value:"Module"}));let xl=0,dd=!1;function kh(t){dd||(Sh(()=>{xl+=1}),dd=!0);const e=xl;return{workspaceId:t,key:JSON.stringify([e,t??null]),isCurrent:()=>e===xl}}function Px(){return Promise.resolve()}const my=["show-choices","open-in-browser","open-in-app","copy-link","start-workspace"];function _x(t){return my.includes(t)}function Ix(t){const e=t.match(/^(.+?)#L(\d+)(?:-\d+|C(\d+))?$/);if(e)return{path:e[1],line:Number.parseInt(e[2],10),...e[3]?{column:Number.parseInt(e[3],10)}:{}};const n=t.match(/^(.+?):L(\d+)(?:-\d+)?$/);if(n&&(n[1].includes(".")||n[1].includes("/")))return{path:n[1],line:Number.parseInt(n[2],10)};const r=t.match(/^(.+?):(\d+)(?::(\d+))?$/);return r&&!/:\d+$/.test(r[1])&&(r[1].includes(".")||r[1].includes("/"))?{path:r[1],line:Number.parseInt(r[2],10),...r[3]?{column:Number.parseInt(r[3],10)}:{}}:{path:t}}const by=["/oauth","/authorize","/login/oauth","/auth/"];function Mx(t){try{const{pathname:e}=new URL(t),n=e.toLowerCase();return by.some(r=>n.includes(r))}catch{return!1}}function Rx(t){try{const{hostname:e}=new URL(t);return e==="github.com"||e.endsWith(".github.com")}catch{return!1}}function Ah(t){try{const e=new URL(t);if(e.hostname!=="github.com"&&e.hostname!=="www.github.com")return null;const n=e.pathname.split("/").filter(Boolean);if(n.length<4)return null;const[r,o,i,s]=n,a=i==="issues"?"issue":i==="pull"?"pr":null;return!a||!/^\d+$/.test(s)?null:{owner:r,repo:o,number:Number.parseInt(s,10),kind:a}}catch{return null}}function Nx(t,e=typeof navigator<"u"?navigator.platform:void 0){const n=t.modifiers??t.event??{};return typeof e=="string"&&e.toUpperCase().includes("MAC")?!!n.metaKey:!!n.ctrlKey}function vy(t,e,n,r){let o=!0,i,s,a=null;const c=()=>{o&&(o=!1,s?.(),i?.release())};return!e||!Fp(t)?(n({status:"idle"}),c):((async()=>{const u=(await as(async()=>{const{appClient:b}=await import("./QiI6ZCof.js").then(v=>v.Z);return{appClient:b}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;if(!o)return;if(i=await u.captureRepositoryResource(e),!o){await i.release();return}if(s=i.onRetired(()=>{o&&(n({status:"idle"}),c())}),!o){s();return}if(a=Od(t,i.capture.instances),!a){n({status:"idle"}),c();return}n({status:"loading",resource:a});const d=await i.detail(a);if(!o)return;const f=d.outcome;if(f.kind==="failure"){n({status:"error",resource:a,reason:f.code});return}if(f.kind==="issue"){n({status:"ready",data:{...f.issue,provider:"gitlab",resource:a,kind:"issue",headRef:null,baseRef:null}});return}const g=f.snapshot.details;n({status:"ready",data:{provider:"gitlab",resource:a,kind:"pr",number:a.number,title:g.title,url:g.url,state:g.state==="open"&&g.draft===!0?"draft":g.state??"unknown",author:g.author,createdAt:g.createdAt,updatedAt:g.updatedAt,headRef:g.sourceBranch,baseRef:g.targetBranch}})})().catch(()=>{o&&(n(a?{status:"error",resource:a,reason:"unavailable"}:{status:"idle"}),c())}),c)}function yy(t){if(t&&typeof t=="object"&&"data"in t){const e=t.data;if(e&&typeof e=="object"&&"code"in e&&e.code==="rate-limited")return"rate-limited"}return"unavailable"}const fd=new WeakMap;let wy=0;const xs=new Map;function Cy(t){return`${t.owner}/${t.repo}#${t.number}/${t.kind}`}async function xy(t,e,n){const r=e??(await as(async()=>{const{appClient:i}=await import("./QiI6ZCof.js").then(s=>s.Z);return{appClient:i}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;return t.kind==="pr"?{kind:"pr",...await r.githubPullRequest(t.owner,t.repo,t.number,...n===void 0?[]:[n])}:{kind:"issue",...await r.githubIssue(t.owner,t.repo,t.number,...n===void 0?[]:[n])}}function Sy(){return new DOMException("The GitHub link preview request was aborted.","AbortError")}function ky(t,e){return new Promise((n,r)=>{const o=()=>r(Sy());if(t.then(n,r).finally(()=>e.removeEventListener("abort",o)),e.aborted){o();return}e.addEventListener("abort",o,{once:!0})})}async function Ay(t,e={}){const n=Ah(t);if(!n)return null;const r=kh(e.workspaceId),o=e.client??(await as(async()=>{const{appClient:c}=await import("./QiI6ZCof.js").then(u=>u.Z);return{appClient:c}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;let i=fd.get(o);i===void 0&&(i=++wy,fd.set(o,i));const s=JSON.stringify([r.key,i,Cy(n)]);let a=xs.get(s);return a||(a=xy(n,o,r.workspaceId).finally(()=>{xs.get(s)===a&&xs.delete(s)}),xs.set(s,a)),e.signal?ky(a,e.signal):a}function Ty(){let t=0;return{next(){const e=++t;return{get isCurrent(){return e===t}}},invalidate(){t++}}}const Ze=Hn({visible:!1,url:"",x:0,y:0,anchorBottom:0,copied:!1,preview:{status:"idle"}});let Ir=null;const oa=Ty();let mr,ia;function Ey(t,e){const n=kh(e);mr?.(),mr=void 0;const r=oa.next();if(!Ah(t)){Ze.preview={status:"idle"},mr=vy(t,e,o=>{r.isCurrent&&(Ze.preview=o)});return}Ze.preview={status:"loading"},Ay(t,{workspaceId:e}).then(o=>{!r.isCurrent||!n.isCurrent()||(Ze.preview=o?{status:"ready",data:o}:{status:"idle"})},o=>{!r.isCurrent||!n.isCurrent()||(Ze.preview={status:"error",reason:yy(o)})})}function Oy(t){try{const e=new URL(t),n=e.host+e.pathname,r=n.endsWith("/")?n.slice(0,-1):n;if(r.length<=50)return r;const o=r.split("/");let i=o[0];for(let s=1;s<o.length;s++){const a=i+"/"+o[s];if(a.length>47)return i+"/…";i=a}return i}catch{return t.length>50?t.slice(0,47)+"…":t}}function Py(t,e,n){Ir&&clearTimeout(Ir),oa.invalidate(),mr?.(),mr=void 0,ia?.(),Ze.preview={status:"idle"};const r=t.closest("[data-workspace-surface]"),o=n??r?.dataset.workspaceSurface,i=t.href,s=()=>t.isConnected&&t.href===i&&(!r||r.contains(t)&&r.dataset.workspaceSurface===o),a=new MutationObserver(()=>{s()||gc()});a.observe(t.ownerDocument.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-workspace-surface","href"]}),ia=()=>a.disconnect(),Ze.copied=!1,Ir=setTimeout(()=>{if(!s()){gc();return}const c=t.getBoundingClientRect();Ze.visible=!0,Ze.url=e,Ze.x=c.left+c.width/2,Ze.y=c.top,Ze.anchorBottom=c.bottom,Ey(e,o)},300)}function gc(){if(ia?.(),ia=void 0,mr?.(),mr=void 0,Ir&&(clearTimeout(Ir),Ir=null),Ze.copied){Ze.preview={status:"idle"},oa.invalidate();return}Ze.visible=!1,oa.invalidate(),Ze.preview={status:"idle"}}const Dx=Object.freeze(Object.defineProperty({__proto__:null,formatUrlForDisplay:Oy,hideLinkTooltip:gc,showLinkTooltip:Py,state:Ze},Symbol.toStringTag,{value:"Module"})),_y=Symbol("ui-size");function Iy(){return Ol(_y)??"default"}var My=Array.isArray,rl=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(My(t)){const n=t.length;for(let r=0;r<n;r++){const o=t[r];if(!o&&o!==0&&o!==0n)continue;const i=typeof o=="string"?o:rl(o);i&&(e&&(e+=" "),e+=i)}return e}if(typeof t=="object")for(const n in t)t[n]&&(e&&(e+=" "),e+=n);return e},Ry=/\s+/g,mc=Array.isArray,Ny=t=>typeof t!="string"||!t?t:t.replace(Ry," ").trim(),Dy=t=>{const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0),r=t.charCodeAt(e-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let o=0;o<e;o++){const i=t.charCodeAt(o);if(i>=9&&i<=13||i===160||i===32&&o+1<e&&t.charCodeAt(o+1)===32)return!0}return!1},Vs=(...t)=>{const e=rl(t);if(e)return Dy(e)?Ny(e):e},bc=t=>t===!1?"false":t===!0?"true":t===0?"0":t,wt=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},Th=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const n=t,r=e,o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;for(let s=0;s<o.length;s++){const a=o[s];if(!i.includes(a)||n[a]!==r[a])return!1}return!0},Fy=(t,e)=>{const n=t;for(const r in e)if(Object.hasOwn(e,r)){const o=e[r];r in n?n[r]=Vs(n[r],o):n[r]=o}return t},Eh=(t,e)=>{for(let n=0;n<t.length;n++){const r=t[n];mc(r)?Eh(r,e):r&&e.push(r)}},vc=(...t)=>{const e=[];Eh(t,e);const n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n},qc=(t,e)=>{const n=t,r=e,o={};for(const i in n){const s=n[i];if(i in r){const a=r[i];mc(s)||mc(a)?o[i]=vc(a,s):typeof s=="object"&&typeof a=="object"&&s&&a?o[i]=qc(s,a):o[i]=a+" "+s}else o[i]=s}for(const i in r)i in n||(o[i]=r[i]);return o},Ly={twMerge:!0,twMergeConfig:{}},Oh=256,By=128,wr=Symbol("tv-cache-miss"),zy=t=>t?.class!=null&&t.class!==""||t?.className!=null&&t.className!=="",hd=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=bc(t),n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return String(e);if(n==="object")try{return JSON.stringify(e)}catch{return null}return null},Ar=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},Ph=(t,e,n,r)=>{let o="";const i=Object.create(null);for(let a=0;a<t.length;a++){const c=t[a];i[c]=1;let u=e[c];n&&n[c]!==void 0&&(u=n[c]);const d=hd(u);if(d===null)return null;o+=c+":"+d+";"}const s=[];for(const a in e)a==="class"||a==="className"||i[a]||(i[a]=1,s.push(a));if(n)for(const a in n)a==="class"||a==="className"||i[a]||n[a]===void 0||(i[a]=1,s.push(a));s.length>1&&s.sort();for(let a=0;a<s.length;a++){const c=s[a];let u=e[c];n&&n[c]!==void 0&&(u=n[c]);const d=hd(u);if(d===null)return null;o+=c+":"+d+";"}return o},_h=(t,e)=>{let n="";for(let r=0;r<t.length;r++){const{conditionKeys:o,source:i}=t[r];for(let s=0;s<o.length;s++){const a=o[s];n+=a+"=",n=Ar(n,i[a]),n+=","}n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(n,i.className),n+=";"}for(let r=0;r<e.length;r++){const{conditionKeys:o,source:i}=e[r];for(let s=0;s<o.length;s++){const a=o[s];n+=a+"=",n=Ar(n,i[a]),n+=","}Array.isArray(i.slots)&&(n+="slots="+i.slots.join(",")+","),n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(n,i.className),n+=";"}return n},Ih=(t=Oh)=>{let e=new Map,n=null;return{get(r){if(e.has(r))return e.get(r);if(n?.has(r)){const o=n.get(r);return e.set(r,o),o}return wr},set(r,o){e.size>=t&&(n=e,e=new Map),e.set(r,o)}}},Vy=(t=Oh)=>{const e=Ih(t);return{get(n){return e.get(n)},set(n,r){e.set(n,r)}}},Wy=(t=By)=>{let e=new Map,n=null,r=0;return{get(o,i){const s=e.get(o);if(s){const a=s.get(i);if(a!==void 0||s.has(i))return a}if(n){const a=n.get(o);if(a){const c=a.get(i);if(c!==void 0||a.has(i)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(i)||r++,u.set(i,c),c}}}return wr},set(o,i,s){r>=t&&(n=e,e=new Map,r=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(i)||r++,a.set(i,s)}}},Yc=(t,e)=>{let n=null;return(r,o)=>{if(!zy(o))return r;const i=o.class,s=o.className;if(i!=null&&i!==""&&typeof i!="string"||s!=null&&s!==""&&typeof s!="string")return t(e,r,i,s);n??=Wy();const a=r??"",c=(typeof i=="string"?i:"")+"\0"+(typeof s=="string"?s:""),u=n.get(a,c);if(u!==wr)return u;const d=t(e,r,i,s);return n.set(a,c,d),d}};function Uy(){let t=null,e={},n=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(r){t=r},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(r){e=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){t=null,e={},n=!1}}}var nt=Uy(),Hy=t=>{!wt(t.twMergeConfig)&&!Th(t.twMergeConfig,nt.cachedTwMergeConfig)&&(nt.didTwMergeConfigChange=!0,nt.cachedTwMergeConfig=t.twMergeConfig)},Ky=(t,e)=>{const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[o];n.push({key:o,values:i,isEmpty:wt(i)})}return n},jy=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const i in r)i!=="class"&&i!=="className"&&o.push(i);e.push({conditionKeys:o,source:r})}return e},Gy=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const i in r)i!=="slots"&&i!=="class"&&i!=="className"&&o.push(i);e.push({conditionKeys:o,source:r})}return e},qy=t=>{const e={};for(let n=0;n<t.length;n++){const r=t[n],o=r.source.slots;if(Array.isArray(o))for(let i=0;i<o.length;i++){const s=o[i];e[s]||(e[s]=[]),e[s].push(r)}}return e},Yy=(t,e)=>{const{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=t,c={...Ly,...e},u=t.slots!==void 0,d=n?.base?Vs(n.base,t?.base):t?.base,f=n?.variants&&!wt(n.variants)?qc(o,n.variants):o,g=n?.defaultVariants&&!wt(n.defaultVariants)?{...n.defaultVariants,...a}:a;Hy(c);const b=!n?.slots||wt(n.slots),v=u?b&&n?.base?Vs(t?.base,n.base):typeof t?.base=="string"||t?.base==null?t.base:Vs(t.base):void 0,m=u?{base:v,...r}:{},E=b?m:Fy({...n?.slots},wt(m)?{base:t?.base}:m),T=!n?.compoundVariants||wt(n.compoundVariants)?i:vc(n?.compoundVariants,i),O=!n?.compoundSlots||wt(n.compoundSlots)?s:vc(n?.compoundSlots,s),A=Object.keys(f),y=T&&!Array.isArray(T)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof T}`):O&&!Array.isArray(O)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof O}`):null,x=u||!b?"slots":A.length===0?"plain":"variants";return{config:c,extend:n,base:d,variants:f,defaultVariants:g,slots:E,compoundVariants:T,compoundSlots:O,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:y,mode:x,slotKeys:null,variantKeys:A}},Mh=t=>(t.compiledVariants!==null||(t.compiledVariants=Ky(t.variants,t.variantKeys),t.compiledCompoundVariants=jy(t.compoundVariants),t.compiledCompoundSlots=Gy(t.compoundSlots),t.compiledCompoundSlotsBySlot=qy(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),yc=[],Rh=[],Xy=[],Zy=[],Jy=[],Nh=(t,e,n)=>{const r={};for(const o in t)r[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(r[o]=e[o]);if(n)for(const o in n)n[o]!==void 0&&(r[o]=n[o]);return r},Ss=t=>t==null||t===!1,Qy=(t,e)=>{if(!Array.isArray(t))return t===e||Ss(t)&&Ss(e);for(let n=0;n<t.length;n++){const r=t[n];if(r===e||Ss(r)&&Ss(e))return!0}return!1},Dh=(t,e,n,r)=>{if(t.isEmpty)return null;const o=r?.[t.key]??n?.[t.key];if(o===null)return null;const i=bc(o);if(typeof i=="object")return null;const s=e?.[t.key],a=i??bc(s);return t.values[a||"false"]},Xc=(t,e)=>{const{conditionKeys:n,source:r}=t;for(let o=0;o<n.length;o++){const i=n[o];if(!Qy(r[i],e[i]))return!1}return!0},pd=(t,e,n)=>{typeof n=="string"?e==="base"&&t.push(n):n&&typeof n=="object"&&n[e]&&t.push(n[e])},$y=(t,e,n)=>{const r=Rh;r.length=0;for(let o=0;o<t.length;o++){const i=Dh(t[o],e,n);i&&r.push(i)}return r},ew=(t,e,n,r,o)=>{const i=Rh;i.length=0;for(let s=0;s<e.length;s++){const a=Dh(e[s],n,r,o),c=t==="base"&&typeof a=="string"?a:a&&a[t];c&&i.push(c)}return i},tw=(t,e)=>{const n=Xy;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Xc(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},nw=(t,e,n)=>{const r=Zy;r.length=0;for(let o=0;o<e.length;o++){const i=e[o];Xc(i,n)&&(pd(r,t,i.source.class),pd(r,t,i.source.className))}return r},rw=(t,e)=>{const n=Jy;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Xc(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},ow=(t,e)=>{const{base:n,config:r}=t;let o=wr;const i=Yc(e,r);return(s=>(o===wr&&(o=e(r,n)),i(o,s)))},iw=(t,e)=>{const{base:n,config:r,defaultVariants:o,deferredError:i,variantKeys:s}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,u=yc,d=null;const f=Yc(e,r);let g=1;const b=v=>{const m=a.length>0?tw(a,Nh(o,v)):void 0;return e(r,n,$y(c,o,v),m)};return(v=>{if(i)throw i;(c===null||a===null)&&(Mh(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??yc);let m;if(g>0)g--,m=b(v);else{d??=Vy();const E=Ph(s,o,v);if(E!==null){const T=a.length>0||u.length>0?_h(a,u):"",O=E+"#"+T,A=d.get(O);A!==wr?m=A:(m=b(v),d.set(O,m))}else m=b(v)}return f(m,v)})},sw=(t,e)=>{const{config:n,defaultVariants:r,deferredError:o,slots:i,variantKeys:s}=t;let a=null,c=null,u=null,d=null,f=!1,g=null,b=null,v=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&Mh(t);const T=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const O=t.compiledCompoundSlotsBySlot;u=t.slotKeys,f=a.length>0||c.length>0,g=Yc(e,n);const A=new Array(u.length);for(let y=0;y<u.length;y++){const x=u[y],k=O[x]??yc;A[y]=(R,M)=>{const K=f?Nh(r,R,M):void 0,j=K?nw(x,a,K):void 0,$=K?rw(k,K):void 0;return e(n,i[x],ew(x,T,r,R,M),j,$)}}d=A},E=T=>{const O=u,A=d,y=g,x={};for(let k=0;k<O.length;k++){const R=A[k],M=R(T);x[O[k]]=K=>{if(K==null)return M;let j=!1;for(const $ in K)if(!($==="class"||$==="className")&&K[$]!==void 0){j=!0;break}return y(j?R(T,K):M,K)}}return x};return(T=>{if(o)throw o;if(m(),v>0)return v--,E(T);const O=Ph(s,r,T);if(O===null)return E(T);const A=f?_h(a,c):"",y=O+"#"+A;b??=Ih();const x=b.get(y);if(x!==wr)return x;const k=E(T);return b.set(y,k),k})},aw=(t,e)=>{if(t.mode==="plain")return ow(t,e);let n;return(r=>(n??=t.mode==="slots"?sw(t,e):iw(t,e),n(r)))},lw=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},cw=t=>{const e=(r,o)=>{const i=Yy(r,o),s=aw(i,t);return lw(s,i),s};return{tv:e,createTV:r=>(o,i)=>e(o,i?qc(r,i):r)}},uw=(t,e)=>{const n=t.length,r=e.length,o=new Array(n+r);for(let i=0;i<n;i++)o[i]=t[i];for(let i=0;i<r;i++)o[n+i]=e[i];return o},dw=(t,e)=>({classGroupId:t,validator:e}),Fh=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),sa="-",gd=[],fw="arbitrary..",hw=t=>{const e=gw(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:s=>{if(s[0]==="["&&s[s.length-1]==="]")return pw(s);const a=s.split(sa),c=a[0]===""&&a.length>1?1:0;return Lh(a,c,e)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],u=n[s];return c?u?uw(u,c):c:u||gd}return n[s]||gd}}},Lh=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],i=n.nextPart.get(o);if(i){const u=Lh(t,e+1,i);if(u)return u}const s=n.validators;if(s===null)return;const a=e===0?t.join(sa):t.slice(e).join(sa),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(a))return d.classGroupId}},pw=t=>{const e=t.slice(1,-1),n=e.indexOf(":");if(n===-1)return;const r=e.slice(0,n);return r?fw+r:void 0},gw=t=>{const{theme:e,classGroups:n}=t;return mw(n,e)},mw=(t,e)=>{const n=Fh();for(const r in t){const o=t[r];Zc(o,n,r,e)}return n},Zc=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const s=t[i];bw(s,e,n,r)}},bw=(t,e,n,r)=>{if(typeof t=="string"){vw(t,e,n);return}if(typeof t=="function"){yw(t,e,n,r);return}ww(t,e,n,r)},vw=(t,e,n)=>{const r=t===""?e:Bh(e,t);r.classGroupId=n},yw=(t,e,n,r)=>{if(Cw(t)){Zc(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(dw(n,t))},ww=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];Zc(c,Bh(e,a),n,r)}},Bh=(t,e)=>{let n=t;const r=e.split(sa),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Fh(),n.nextPart.set(s,a)),n=a}return n},Cw=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,xw="!",Sw=58,kw=47,Aw=91,Tw=93,Ew=40,Ow=41,md=33,Pw=(t,e,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),bd=t=>{const e=[];let n=0,r=0,o=0,i;const s=t.length;for(let g=0;g<s;g++){const b=t.charCodeAt(g);if(n===0&&r===0){if(b===Sw){e.push(t.slice(o,g)),o=g+1;continue}if(b===kw){i=g;continue}}b===Aw?n++:b===Tw?n--:b===Ew?r++:b===Ow&&r--}const a=e.length===0?t:t.slice(o);let c=a,u=!1;const d=a.length-1;a.charCodeAt(d)===md?(c=a.slice(0,-1),u=!0):a.charCodeAt(0)===md&&(c=a.slice(1),u=!0);const f=i&&i>o?i-o:void 0;return Pw(e,u,c,f)},_w=t=>{const e=new Set(t.orderSensitiveModifiers);return n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=e.has(s);if(a||c){if(o.length>0){o.sort();for(let u=0;u<o.length;u++)r.push(o[u]);o=[]}r.push(s)}else o.push(s)}if(o.length>0){o.sort();for(let i=0;i<o.length;i++)r.push(o[i])}return r}},Sl={isExternal:!0,classId:-1,conflictIds:[]},Iw=4096,Mw=16384,Rw=t=>{const e=_w(t),n=Nw(t),{getClassGroupId:r,getConflictingClassGroupIds:o}=hw(t);let i=Object.create(null),s=Object.create(null),a=0,c=new Int32Array(256),u=0,d=new Uint8Array(64),f=!1;const g=A=>{const y=[],x=A.length;let k=-1;f=!1;for(let R=0;R<x;R++){const M=A.charCodeAt(R);M===32?k!==-1&&(y.push(A.slice(k,R)),k=-1):M>=9&&M<=13?(f=!0,k!==-1&&(y.push(A.slice(k,R)),k=-1)):k===-1&&(k=R)}return k!==-1&&y.push(A.slice(k)),y},b=new Map;let v=0;const m=A=>{let y=b.get(A);if(y===void 0&&(y=v++,b.set(A,y),y>=c.length)){const x=new Int32Array(c.length*2);x.set(c),c=x}return y},E=A=>{const{isExternal:y,modifiers:x,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:M}=bd(A);if(y)return Sl;let K=!!M,j;if(K){const J=R.substring(0,M);j=r(J);const re=j&&n[j]?r(R):void 0;re&&re!==j&&(j=re,K=!1)}else j=r(R);if(!j){if(!K||(j=r(R),!j))return Sl;K=!1}const $=x.length===0?"":x.length===1?x[0]:e(x).join(":"),z=k?$+xw:$,Y=o(j,K),B=[];for(let J=0;J<Y.length;J++)B.push(m(z+Y[J]));return{isExternal:!1,classId:m(z+j),conflictIds:B}},T=A=>{let y=i[A];return y!==void 0||(y=s[A],y===void 0&&(y=E(A)),i[A]=y,++a>Iw&&(a=0,s=i,i=Object.create(null))),y};return{parseClassName:bd,sortModifiers:e,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:o,getClassDescriptor:T,mergeClassList:A=>{const y=g(A),x=y.length;if(x===1)return y[0];v>Mw&&(b.clear(),v=0,i=Object.create(null),s=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const k=u;if(x>d.length){let j=d.length;for(;j<x;)j*=2;d=new Uint8Array(j)}let R=!1,M=0;for(let j=x-1;j>=0;j-=1){const $=y[j];M+=$.length;const z=T($);if(z.isExternal){d[j]=1;continue}const Y=z.classId;if(c[Y]===k){d[j]=0,R=!0;continue}c[Y]=k;const B=z.conflictIds;for(let J=0;J<B.length;J++)c[B[J]]=k;d[j]=1}if(!R&&!f&&A.length===M+x-1)return A;let K="";for(let j=0;j<x;j++)d[j]===1&&(K&&(K+=" "),K+=y[j]);return K}}},Nw=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},Dw=500,vd=t=>{let e,n,r=Object.create(null),o=Object.create(null),i=0;const s=u=>(e=Rw(t()),n=e.mergeClassList,c.mergeString=a,a(u)),a=u=>{let d=r[u];return d!==void 0||(d=o[u],d===void 0&&(d=n(u)),r[u]=d,++i>Dw&&(i=0,o=r,r=Object.create(null))),d},c=(...u)=>c.mergeString(rl(u));return c.mergeString=s,c},Fw=[],We=t=>{const e=n=>n[t]||Fw;return e.isThemeGetter=!0,e},zh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ww=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wh=Number,Hw=Number.isNaN,Kw=Number.isInteger,An=t=>Lw.test(t),le=t=>!!t&&!Hw(Wh(t)),zt=t=>!!t&&Kw(Wh(t)),kl=t=>t.endsWith("%")&&le(t.slice(0,-1)),rn=t=>Bw.test(t),Uh=()=>!0,jw=t=>zw.test(t)&&!Vw.test(t),Jc=()=>!1,Gw=t=>Ww.test(t),qw=t=>Uw.test(t),Yw=t=>!q(t)&&!X(t),Xw=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Zw=t=>Yn(t,jh,Jc),q=t=>zh.test(t),Qn=t=>Yn(t,Gh,jw),yd=t=>Yn(t,oC,le),Jw=t=>Yn(t,Yh,Uh),Qw=t=>Yn(t,qh,Jc),wd=t=>Yn(t,Hh,Jc),$w=t=>Yn(t,Kh,qw),ks=t=>Yn(t,Xh,Gw),X=t=>Vh.test(t),ho=t=>Sr(t,Gh),eC=t=>Sr(t,qh),Cd=t=>Sr(t,Hh),tC=t=>Sr(t,jh),nC=t=>Sr(t,Kh),As=t=>Sr(t,Xh,!0),rC=t=>Sr(t,Yh,!0),Yn=(t,e,n)=>{const r=zh.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Sr=(t,e,n=!1)=>{const r=Vh.exec(t);return r?r[1]?e(r[1]):n:!1},Hh=t=>t==="position"||t==="percentage",Kh=t=>t==="image"||t==="url",jh=t=>t==="length"||t==="size"||t==="bg-size",Gh=t=>t==="length",oC=t=>t==="number",qh=t=>t==="family-name",Yh=t=>t==="number"||t==="weight",Xh=t=>t==="shadow",Al=()=>{const t=We("color"),e=We("font"),n=We("text"),r=We("font-weight"),o=We("tracking"),i=We("leading"),s=We("breakpoint"),a=We("container"),c=We("spacing"),u=We("radius"),d=We("shadow"),f=We("inset-shadow"),g=We("text-shadow"),b=We("drop-shadow"),v=We("blur"),m=We("perspective"),E=We("aspect"),T=We("ease"),O=We("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...y(),X,q],k=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],M=()=>[X,q,c],K=()=>[An,"full","auto",...M()],j=()=>[zt,"none","subgrid",X,q],$=()=>["auto",{span:["full",zt,X,q]},zt,X,q],z=()=>[zt,"auto",X,q],Y=()=>["auto","min","max","fr",X,q],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...M()],ee=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ie=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...M()],he=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],_=()=>[t,X,q],de=()=>[...y(),Cd,wd,{position:[X,q]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",tC,Zw,{size:[X,q]}],Me=()=>[kl,ho,Qn],pe=()=>["","none","full",u,X,q],ve=()=>["",le,ho,Qn],we=()=>["solid","dashed","dotted","double"],S=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[le,kl,Cd,wd],H=()=>["","none",v,X,q],Re=()=>["none",le,X,q],rt=()=>["none",le,X,q],ht=()=>[le,X,q],Ge=()=>[An,"full",...M()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rn],breakpoint:[rn],color:[Uh],container:[rn],"drop-shadow":[rn],ease:["in","out","in-out"],font:[Yw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rn],shadow:[rn],spacing:["px",le],text:[rn],"text-shadow":[rn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,q,X,E]}],container:["container"],"container-type":[{"@container":["","normal","size",X,q]}],"container-named":[Xw],columns:[{columns:[le,q,X,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[zt,"auto",X,q]}],basis:[{basis:[An,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[le,An,"auto","initial","none",q]}],grow:[{grow:["",le,X,q]}],shrink:[{shrink:["",le,X,q]}],order:[{order:[zt,"first","last","none",X,q]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,ho,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,rC,Jw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kl,q]}],"font-family":[{font:[eC,Qw,e]}],"font-features":[{"font-features":[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,X,q]}],"line-clamp":[{"line-clamp":[le,"none",X,yd]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",X,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",X,Qn]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[le,"auto",X,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[zt,X,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zt,X,q],radial:["",X,q],conic:[zt,X,q]},nC,$w]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Me()}],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-bs":[{"border-bs":ve()}],"border-w-be":[{"border-be":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,X,q]}],"outline-w":[{outline:["",le,ho,Qn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,As,ks]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,As,ks]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[le,Qn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",g,As,ks]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[le,X,q]}],"mix-blend":[{"mix-blend":[...S(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":S()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,q]}],filter:[{filter:["","none",X,q]}],blur:[{blur:H()}],brightness:[{brightness:[le,X,q]}],contrast:[{contrast:[le,X,q]}],"drop-shadow":[{"drop-shadow":["","none",b,As,ks]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",le,X,q]}],"hue-rotate":[{"hue-rotate":[le,X,q]}],invert:[{invert:["",le,X,q]}],saturate:[{saturate:[le,X,q]}],sepia:[{sepia:["",le,X,q]}],"backdrop-filter":[{"backdrop-filter":["","none",X,q]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[le,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[le,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",le,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[le,X,q]}],"backdrop-invert":[{"backdrop-invert":["",le,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[le,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[le,X,q]}],"backdrop-sepia":[{"backdrop-sepia":["",le,X,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[le,"initial",X,q]}],ease:[{ease:["linear","initial",T,X,q]}],delay:[{delay:[le,X,q]}],animate:[{animate:["none",O,X,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:ht()}],"skew-x":[{"skew-x":ht()}],"skew-y":[{"skew-y":ht()}],transform:[{transform:[X,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[zt,X,q]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,q]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[le,ho,Qn,yd]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iC=(t,{extend:e={},override:n={}})=>(Ts(t.theme,n.theme),Ts(t.classGroups,n.classGroups),Ts(t.conflictingClassGroups,n.conflictingClassGroups),Ts(t.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),wc(t,"postfixLookupClassGroups",n.postfixLookupClassGroups),wc(t,"orderSensitiveModifiers",n.orderSensitiveModifiers),Es(t.theme,e.theme),Es(t.classGroups,e.classGroups),Es(t.conflictingClassGroups,e.conflictingClassGroups),Es(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),Cc(t,e,"postfixLookupClassGroups"),Cc(t,e,"orderSensitiveModifiers"),t),wc=(t,e,n)=>{n!==void 0&&(t[e]=n)},Ts=(t,e)=>{if(e)for(const n in e)wc(t,n,e[n])},Es=(t,e)=>{if(e)for(const n in e)Cc(t,e,n)},Cc=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},Zh=t=>vd(t?typeof t=="function"?()=>t(Al()):()=>iC(Al(),t):Al),sC=t=>{if(wt(t))return;const e=t,n={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&n[o]===void 0&&(n[o]=e[o]);const r={};if(Object.keys(n).length>0&&(r.extend=n),e.override!=null&&!wt(e.override)&&(r.override=e.override),!(!r.extend&&!r.override))return r},aC=t=>{const e=sC(t),n=Zh(e);return r=>n.mergeString(r)},Ws,lC=()=>(Ws||(Ws=Zh()),Ws),cC=()=>((!nt.cachedTwMerge||nt.didTwMergeConfigChange)&&(nt.didTwMergeConfigChange=!1,nt.cachedTwMerge=aC(nt.cachedTwMergeConfig)),nt.cachedTwMerge),uC=t=>{const e=t?.twMergeConfig;!e||wt(e)||Th(e,nt.cachedTwMergeConfig)||(nt.cachedTwMergeConfig=e,nt.didTwMergeConfigChange=!0)},dC=t=>rl(t),fC=nt.reset.bind(nt);nt.reset=()=>{Ws=void 0,fC()};var hC=(t,e)=>{const n=dC(t);return!n||!(e?.twMerge??!0)?n||void 0:n.indexOf(" ")===-1?n:(uC(e),(!!(e?.twMergeConfig&&!wt(e.twMergeConfig))?cC():lC().mergeString)(n)||void 0)},pC=(t,...e)=>hC(e,t),gC=cw(pC),Jh=gC.tv;const Fx={gray:"hsl(var(--accent))",red:"var(--color-red-500)",orange:"var(--color-orange-500)",amber:"var(--color-amber-500)",yellow:"var(--color-yellow-500)",lime:"var(--color-lime-500)",green:"var(--color-green-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)",cyan:"var(--color-cyan-500)",blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",purple:"var(--color-purple-500)",fuchsia:"var(--color-fuchsia-500)",pink:"var(--color-pink-500)",rose:"var(--color-rose-500)"},mC={default:{variant:"solid",color:"gray"},secondary:{variant:"solid",color:"gray"},outline:{variant:"dot",color:"gray"},destructive:{variant:"solid",color:"red"},success:{variant:"solid",color:"green"},info:{variant:"solid",color:"blue"}};function Lx(t="solid",e){const n=t==="solid"||t==="dot"?{variant:t,color:"gray"}:mC[t];return{...n,color:e??n.color}}const Bx=Jh({base:"inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-(--radius-medium) font-medium text-foreground transition-[background-color,color,box-shadow] duration-spring-fast ease-spring-fast motion-reduce:transition-none [&_svg]:pointer-events-none [&_svg]:size-3",variants:{variant:{solid:"",dot:"border border-border"},size:{default:"h-6 px-2.5 text-[12px] gap-1.5",compact:"h-5 px-2 text-[11px] gap-1"}},defaultVariants:{variant:"solid",size:"default"}}),bC=[{id:"skeleton-state-matrix",title:"Skeleton loading states",states:["default","line","avatar","card","shimmer","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];kc({id:"skeleton",source:"src/lib/components/ui/skeleton/skeleton.svelte",publicImport:"$lib/components/ui/skeleton",legacyImports:["$lib/components/ui/skeleton/index.js","$lib/components/ui/skeleton/skeleton.svelte"],exports:["Root","Skeleton","skeletonMetadata"],category:"primitive",owner:"007-B1",callers:["src/features/discussions/components/DiscussionSkeleton.svelte","src/features/file-tracking/components/diff/TrackedChangeDiffViewer.svelte","src/features/home/HomeLoading.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/tab-types/FileTabType.svelte","src/features/layout/tab-types/NoteTabType.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/chat/ChatChangesPanel.svelte","src/lib/components/chat/ChatPanel.svelte","src/lib/components/code-review/CodeReviewTabContent.svelte","src/lib/components/file-explorer/file-tree-view.svelte","src/lib/components/notes/primitives/ReferenceBlock.svelte","src/lib/components/patterns/screen/LoadingState.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte","src/lib/components/ui/tooltip/GitHubLinkCard.svelte","src/lib/components/workspace/CheckoutModePill.svelte","src/lib/components/workspace/ContentSkeleton.svelte","src/lib/components/workspace/NoteWithComments.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/SidebarSkeleton.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte","src/lib/components/workspace/WorkspaceHoverCard.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/SecondaryRootChangesView.svelte","src/lib/components/workspace/sidebar/SidebarChangesPanel.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/skeleton/skeleton.test.ts",removalGate:"Retain while exported and loading, reduced-motion, and fixture tests pass.",dynamicImports:[],fixtures:bC});const tr=class tr{constructor(){P(this,"subscribers",new Map([["second",new Set],["minute",new Set],["hour",new Set],["day",new Set]]));P(this,"intervals",new Map([["second",null],["minute",null],["hour",null],["day",null]]));P(this,"INTERVALS",{second:1e3,minute:60*1e3,hour:3600*1e3,day:1440*60*1e3})}static getInstance(){return tr.instance||(tr.instance=new tr),tr.instance}getBucket(e){const n=Math.abs(Date.now()-e.getTime()),r=Math.floor(n/6e4);return r<1?"second":r<60?"minute":r<1440?"hour":"day"}ensureInterval(e){if(this.intervals.get(e))return;const n=setInterval(()=>{const r=this.subscribers.get(e);r&&r.forEach(o=>{o.callback();const i=this.getBucket(o.targetDate);i!==e&&(r.delete(o),this.subscribers.get(i)?.add(o),this.ensureInterval(i),this.cleanupIntervalIfEmpty(e))})},this.INTERVALS[e]);this.intervals.set(e,n)}cleanupIntervalIfEmpty(e){const n=this.subscribers.get(e);if(n&&n.size===0){const r=this.intervals.get(e);r&&(clearInterval(r),this.intervals.set(e,null))}}subscribe(e,n){const r=this.getBucket(e),o={callback:n,targetDate:e};return this.subscribers.get(r)?.add(o),this.ensureInterval(r),()=>{for(const[i,s]of this.subscribers)if(s.has(o)){s.delete(o),this.cleanupIntervalIfEmpty(i);break}}}getSubscriberCount(){let e=0;for(const n of this.subscribers.values())e+=n.size;return e}getActiveIntervalCount(){let e=0;for(const n of this.intervals.values())n&&e++;return e}};P(tr,"instance",null);let xc=tr;const zx=xc.getInstance(),vC=[{id:"tooltip-interaction",title:"Tooltip interaction and content states",states:["closed","open","hover-delay","keyboard-focus","escape-dismiss","portal","arrow","disabled","rich-content","shortcut","spring-enter","crisp-exit","long-content","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0},{id:"tooltip-open-state",title:"Tooltip open state",states:["open-on-mount","portal","arrow","escape-dismiss","trigger-focus-preserved"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];kc({id:"tooltip",source:"src/lib/components/ui/tooltip/index.ts",publicImport:"$lib/components/ui/tooltip",legacyImports:["$lib/components/ui/tooltip/LinkTooltip.svelte","$lib/components/ui/tooltip/Tooltip.svelte","$lib/components/ui/tooltip/TooltipRich.svelte","$lib/components/ui/tooltip/index.js","$lib/components/ui/tooltip/link-tooltip-state.svelte"],exports:["Content","LinkTooltip","Portal","Provider","Root","Tooltip","TooltipContent","TooltipPortal","TooltipProvider","TooltipRich","TooltipRoot","TooltipShortcut","TooltipTrigger","Trigger","formatUrlForDisplay","hideLinkTooltip","showLinkTooltip","tooltipMetadata"],usage:`<script lang="ts">
|
|
9
|
+
*/var $d=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Gs=$d.join(","),ef=typeof Element>"u",vr=ef?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qs=!ef&&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?.ownerDocument},Ys=function(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Ys(e.parentNode));return s},hm=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},tf=function(e,n,r){if(Ys(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Gs));return n&&vr.call(e,Gs)&&o.unshift(e),o=o.filter(r),o},Xs=function(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Ys(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=Xs(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var d=vr.call(s,Gs);d&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),g=!Ys(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&g){var b=Xs(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,b):o.push({scopeParent:s,candidates:b})}else i.unshift.apply(i,s.children)}}return o},nf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},rf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||hm(e))&&!nf(e)?0:e.tabIndex},pm=function(e,n){var r=rf(e);return r<0&&n&&!nf(e)?0:r},gm=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},of=function(e){return e.tagName==="INPUT"},mm=function(e){return of(e)&&e.type==="hidden"},bm=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},vm=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},ym=function(e){if(!e.name)return!0;var n=e.form||qs(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(s){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",s.message),!1}var i=vm(o,e.form);return!i||i===e},wm=function(e){return of(e)&&e.type==="radio"},Cm=function(e){return wm(e)&&!ym(e)},xm=function(e){var n,r=e&&qs(e),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,a,c;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!i&&o;){var u,d,f;r=qs(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Pu=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Sm=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(e).visibility==="hidden")return!0;var s=vr.call(e,"details>summary:first-of-type"),a=s?e.parentElement:e;if(vr.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=e;e;){var u=e.parentElement,d=qs(e);if(u&&!u.shadowRoot&&o(u)===!0)return Pu(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(xm(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pu(e);return!1},km=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return vr.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},Zs=function(e,n){return!(n.disabled||mm(n)||Sm(n,e)||bm(n)||km(n))},Bl=function(e,n){return!(Cm(n)||rf(n)<0||!Zs(e,n))},Am=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},sf=function(e){var n=[],r=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,c=pm(a,s),u=s?sf(o.candidates):a;c===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:i,tabIndex:c,item:o,isScope:s,content:u})}),r.sort(gm).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},af=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Xs([e],n.includeContainer,{filter:Bl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Am}):r=tf(e,n.includeContainer,Bl.bind(null,n)),sf(r)},lf=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Xs([e],n.includeContainer,{filter:Zs.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=tf(e,n.includeContainer,Zs.bind(null,n)),r},_c=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return vr.call(e,Gs)===!1?!1:Bl(n,e)},Tm=$d.concat("iframe:not([inert]):not([inert] *)").join(","),cf=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return vr.call(e,Tm)===!1?!1:Zs(n,e)};function wo(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Em(t,e){if(!_c(t,wo()))return Om(t,e);const n=oo(t),r=af(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1)[0]}function Om(t,e){const n=oo(t);if(!cf(t,wo()))return n.body;const r=lf(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1).find(s=>_c(s,wo()))??n.body}function mx(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===t.length-1?n?t[0]:void 0:t[e+1]}function bx(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===0?n?t[t.length-1]:void 0:t[e-1]}function vx(t,e,n,r=!0){if(t.length===0||e<0||e>=t.length)return;let o=e+n;return r?o=(o%t.length+t.length)%t.length:o=Math.max(0,Math.min(o,t.length-1)),t[o]}function yx(t,e,n,r=!0){if(t.length===0||e<0||e>=t.length)return;let o=e-n;return r?o=(o%t.length+t.length)%t.length:o=Math.max(0,Math.min(o,t.length-1)),t[o]}function uf(t,e,n){const r=e.toLowerCase();if(r.endsWith(" ")){const f=r.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(f)).length<=1)return uf(t,f,n);const b=n?.toLowerCase();if(b&&b.startsWith(f)&&b.charAt(f.length)===" "&&e.trim()===f)return n;const v=t.filter(m=>m.toLowerCase().startsWith(r));if(v.length>0){const m=n?t.indexOf(n):-1;return _u(v,Math.max(m,0)).find(O=>O!==n)||n}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,s=i.toLowerCase(),a=n?t.indexOf(n):-1;let c=_u(t,Math.max(a,0));i.length===1&&(c=c.filter(f=>f!==n));const d=c.find(f=>f?.toLowerCase().startsWith(s));return d!==n?d:void 0}function _u(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const Pm={afterMs:1e4,onChange:me};function _m(t,e){const{afterMs:n,onChange:r,getWindow:o}={...Pm,...e};let i=null,s=oe(Hn(t));function a(){return o().setTimeout(()=>{N(s,t,!0),r?.(t)},n)}return Le(()=>()=>{i&&o().clearTimeout(i)}),G(()=>w(s),c=>{N(s,c,!0),r?.(c),i&&o().clearTimeout(i),i=a()})}var un,dn,ua,da;class Im{constructor(e){C(this,un);C(this,dn);C(this,ua,U(()=>l(this,un).onMatch?l(this,un).onMatch:e=>e.focus()));C(this,da,U(()=>l(this,un).getCurrentItem?l(this,un).getCurrentItem:l(this,un).getActiveElement));I(this,un,e),I(this,dn,_m("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,n){if(!n.length)return;l(this,dn).current=l(this,dn).current+e;const r=w(l(this,da))(),o=n.find(c=>c===r)?.textContent?.trim()??"",i=n.map(c=>c.textContent?.trim()??""),s=uf(i,l(this,dn).current,o),a=n.find(c=>c.textContent?.trim()===s);return a&&w(l(this,ua))(a),a}resetTypeahead(){l(this,dn).current=""}get search(){return l(this,dn).current}}un=new WeakMap,dn=new WeakMap,ua=new WeakMap,da=new WeakMap;const Mm="data-context-menu-trigger",Rm="data-context-menu-content",Ic=new xt("Menu.Root"),eo=new xt("Menu.Root | Menu.Sub"),fs=new xt("Menu.Content"),Mc=new xt("Menu.Group | Menu.RadioGroup"),Rc=new xt("Menu.RadioGroup"),Nm=new xt("Menu.CheckboxGroup"),df=new im("bitsmenuopen",{bubbles:!1,cancelable:!0}),Dm=Vd({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Se,or,Pn,at,vt,ir,fn,Br,Q,ff,Ps,zl,Vl,Wl,_n,mo,_s,bo,Is,hf,Lo,pf,Ms,Rs,Tr,Ns;class Fm{constructor(e){C(this,Q);C(this,Se);C(this,or,null);C(this,Pn,null);C(this,at,!1);C(this,vt,null);C(this,ir,null);C(this,fn,null);C(this,Br,null);C(this,_n,null);C(this,Lo,e=>{if(!l(this,at)||!l(this,vt)||!Pt(e))return;const n=l(this,Se).triggerNode(),r=l(this,Se).contentNode();if(!n||!r){F(this,Q,bo).call(this);return}F(this,Q,Tr).call(this);const o={x:e.clientX,y:e.clientY};I(this,fn,o);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(l(this,vt)==="content"&&Mu(o,s)){F(this,Q,mo).call(this);return}if(l(this,vt)==="trigger"&&Lm(o,i,4)){F(this,Q,mo).call(this);return}if(F(this,Q,hf).call(this,o)){F(this,Q,Rs).call(this);return}const a=F(this,Q,Ps).call(this,o,l(this,vt));if(!a){F(this,Q,bo).call(this);return}if(F(this,Q,zl).call(this,o,a.corridor,a.intent)){F(this,Q,Rs).call(this);return}F(this,Q,bo).call(this)});I(this,Se,e),ke([e.triggerNode,e.contentNode,e.enabled],([n,r,o])=>{if(F(this,Q,Is).call(this),!n||!r||!o)return;const i=f=>{Pt(f)&&(I(this,Br,{x:f.clientX,y:f.clientY}),l(this,at)||F(this,Q,Vl).call(this,f,"content"))},s=f=>{Pt(f)&&F(this,Q,Wl).call(this,f,"content")},a=f=>{Pt(f)&&(l(this,at)||F(this,Q,Vl).call(this,f,"trigger"))},c=f=>{if(Pt(f)){if(It(f.relatedTarget)){const g=l(this,Se).subContentSelector(),b=f.relatedTarget.closest(g);if(b&&b!==r&&b.id&&!!r.querySelector(`[aria-controls="${b.id}"]`))return}F(this,Q,Wl).call(this,f,"trigger")}},u=f=>{Pt(f)&&F(this,Q,mo).call(this)},d=f=>{Pt(f)&&F(this,Q,mo).call(this)};return n.addEventListener("pointermove",i),n.addEventListener("pointerleave",s),n.addEventListener("pointerenter",u),r.addEventListener("pointermove",a),r.addEventListener("pointerleave",c),r.addEventListener("pointerenter",d),()=>{n.removeEventListener("pointermove",i),n.removeEventListener("pointerleave",s),n.removeEventListener("pointerenter",u),r.removeEventListener("pointermove",a),r.removeEventListener("pointerleave",c),r.removeEventListener("pointerenter",d),F(this,Q,Is).call(this)}}),wn(()=>{F(this,Q,Is).call(this)})}}Se=new WeakMap,or=new WeakMap,Pn=new WeakMap,at=new WeakMap,vt=new WeakMap,ir=new WeakMap,fn=new WeakMap,Br=new WeakMap,Q=new WeakSet,ff=function(){const e=l(this,Se).parentContentNode();return e?e.getBoundingClientRect():l(this,Se).triggerNode()?.getBoundingClientRect()??null},Ps=function(e,n){const r=l(this,Se).triggerNode(),o=l(this,Se).contentNode();if(!r||!o)return null;const i=r.getBoundingClientRect(),s=o.getBoundingClientRect(),a=Bm(i,s);let c,u,d;return n==="content"?(c=l(this,at)?l(this,ir)??e:e,u=s):(c=l(this,Br)??e,u=F(this,Q,ff).call(this)??i,d=s),I(this,ir,c),{corridor:zm(i,s,a),intent:Vm(c,u,a,n,d),targetRect:u,side:a}},zl=function(e,n,r){return Iu(e,n)||Iu(e,r)},Vl=function(e,n){const r={x:e.clientX,y:e.clientY};F(this,Q,Ps).call(this,r,n)&&(I(this,vt,n),I(this,fn,r))},Wl=function(e,n){if(!l(this,Se).enabled())return;const r=l(this,Se).triggerNode(),o=l(this,Se).contentNode();if(!r||!o)return;const i=e.relatedTarget;if(It(i)&&(n==="content"&&o.contains(i)||n==="trigger"&&r.contains(i)))return;const s={x:e.clientX,y:e.clientY},a=F(this,Q,Ps).call(this,s,n);if(a){if(!Mu(s,a.targetRect)&&!F(this,Q,zl).call(this,s,a.corridor,a.intent)){F(this,Q,Ns).call(this);return}I(this,at,!0),I(this,vt,n),I(this,fn,s),l(this,Se).setIsPointerInTransit(!0),F(this,Q,pf).call(this),F(this,Q,Rs).call(this)}},_n=new WeakMap,mo=function(){if(!l(this,at))return;const e=l(this,vt)==="trigger";F(this,Q,Ms).call(this),F(this,Q,Tr).call(this),I(this,at,!1),F(this,Q,Ns).call(this),e?(F(this,Q,_s).call(this),I(this,_n,setTimeout(()=>{I(this,_n,null),l(this,Se).setIsPointerInTransit(!1)},100))):l(this,Se).setIsPointerInTransit(!1)},_s=function(){l(this,_n)!==null&&(clearTimeout(l(this,_n)),I(this,_n,null))},bo=function(){const e=l(this,fn);F(this,Q,Ms).call(this),F(this,Q,Tr).call(this),F(this,Q,_s).call(this),I(this,at,!1),l(this,Se).setIsPointerInTransit(!1),F(this,Q,Ns).call(this),l(this,Se).onIntentExit(e)},Is=function(){F(this,Q,Ms).call(this),F(this,Q,Tr).call(this),F(this,Q,_s).call(this),l(this,at)&&l(this,Se).setIsPointerInTransit(!1),I(this,at,!1),I(this,vt,null),I(this,ir,null),I(this,fn,null),I(this,Br,null)},hf=function(e){const n=l(this,Se).contentNode();if(!n)return!1;const o=n.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const i=l(this,Se).subContentSelector(),s=o.closest(i);return!s||s===n?!1:s.id?!!n.querySelector(`[aria-controls="${s.id}"]`):!1},Lo=new WeakMap,pf=function(){if(l(this,or))return;const e=oo(l(this,Se).triggerNode()??l(this,Se).contentNode());e&&(e.addEventListener("pointermove",l(this,Lo),!0),I(this,or,()=>{e.removeEventListener("pointermove",l(this,Lo),!0),I(this,or,null)}))},Ms=function(){var e;(e=l(this,or))==null||e.call(this)},Rs=function(){F(this,Q,Tr).call(this),I(this,Pn,setTimeout(()=>{I(this,Pn,null),l(this,at)&&F(this,Q,bo).call(this)},500))},Tr=function(){l(this,Pn)!==null&&(clearTimeout(l(this,Pn)),I(this,Pn,null))},Ns=function(){I(this,vt,null),I(this,ir,null),I(this,fn,null)};function Iu(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i].x,c=e[i].y,u=e[s].x,d=e[s].y;c>r!=d>r&&n<(u-a)*(r-c)/(d-c)+a&&(o=!o)}return o}function Mu(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function Lm(t,e,n){return t.x>=e.left+n&&t.x<=e.right-n&&t.y>=e.top+n&&t.y<=e.bottom-n}function Bm(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,i=e.top+e.height/2,s=o-n,a=i-r;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}function zm(t,e,n){switch(n){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function Vm(t,e,n,r,o){const s=r==="trigger"?Wm(n):n,a=o?Math.min(e.top,o.top)-8:e.top-8,c=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,d=o?Math.max(e.right,o.right)+8:e.right+8;switch(s){case"right":return[t,{x:e.left,y:a},{x:e.left,y:c}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:c}];case"bottom":return[t,{x:u,y:e.top},{x:d,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:d,y:e.bottom}]}}function Wm(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Bo,zo;const $c=class $c{constructor(e){P(this,"opts");P(this,"isUsingKeyboard",new Ll);C(this,Bo,oe(!1));C(this,zo,oe(!1));P(this,"getBitsAttr",e=>Dm.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const n=new $c(e);return Ic.set(n)}get ignoreCloseAutoFocus(){return w(l(this,Bo))}set ignoreCloseAutoFocus(e){N(l(this,Bo),e,!0)}get isPointerInTransit(){return w(l(this,zo))}set isPointerInTransit(e){N(l(this,zo),e,!0)}};Bo=new WeakMap,zo=new WeakMap;let Ru=$c;var Vo,Wo;const eu=class eu{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"parentMenu");P(this,"contentId",G(()=>""));C(this,Vo,oe(null));P(this,"contentPresence");C(this,Wo,oe(null));this.opts=e,this.root=n,this.parentMenu=r,this.contentPresence=new Gd({ref:G(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),r&&ke(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}static create(e,n){return eo.set(new eu(e,n,null))}get contentNode(){return w(l(this,Vo))}set contentNode(e){N(l(this,Vo),e,!0)}get triggerNode(){return w(l(this,Wo))}set triggerNode(e){N(l(this,Wo),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Vo=new WeakMap,Wo=new WeakMap;let Ul=eu;var Uo,Ho,Ko,jo,Go,en,gf,Ds,mf,qo,Yo;const tu=class tu{constructor(e,n){C(this,en);P(this,"opts");P(this,"parentMenu");P(this,"rovingFocusGroup");P(this,"domContext");P(this,"attachment");C(this,Uo,oe(""));C(this,Ho,0);C(this,Ko);C(this,jo,oe(!1));C(this,Go);P(this,"onCloseAutoFocus",e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||l(this,Go))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&_c(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});C(this,qo,U(()=>({open:this.parentMenu.opts.open.current})));C(this,Yo,U(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Pc(this.parentMenu.opts.open.current),...Bd(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));P(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=n,this.domContext=new qa(e.ref),this.attachment=ft(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=e.id,I(this,Go,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Fm({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:r=>{this.parentMenu.opts.open.current=!1,F(this,en,mf).call(this,r)},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),I(this,Ko,new Im({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new Jg({rootNode:G(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:G(()=>"vertical")}),ke(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{_t(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return df.listen(r,o)}),Le(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,Ho))})}static create(e){return fs.set(new tu(e,eo.get()))}get search(){return w(l(this,Uo))}set search(e){N(l(this,Uo),e,!0)}get mounted(){return w(l(this,jo))}set mounted(e){N(l(this,jo),e,!0)}handleTabKeyDown(e){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;e.preventDefault();const r=Em(n.triggerNode,e.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),_t(()=>{r.focus(),_t(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===Ug){this.handleTabKeyDown(e);return}const n=e.target,r=e.currentTarget;if(!bn(n)||!bn(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,s=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,e)||e.code==="Space")return;const c=F(this,en,gf).call(this);o&&!i&&s&&l(this,Ko).call(this,e.key,c),e.target?.id===this.parentMenu.contentId.current&&lm.includes(e.key)&&(e.preventDefault(),Jd.includes(e.key)&&c.reverse(),fm(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){It(e.currentTarget)&&It(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(l(this,Ho)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&_t(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return F(this,en,Ds).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||F(this,en,Ds).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!F(this,en,Ds).call(this)}handleInteractOutside(e){if(!jd(e.target))return;const n=this.parentMenu.triggerNode?.id;if(e.target.id===n){e.preventDefault();return}if(e.target.closest(`#${n}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,_t(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return w(l(this,qo))}set snippetProps(e){N(l(this,qo),e)}get props(){return w(l(this,Yo))}set props(e){N(l(this,Yo),e)}};Uo=new WeakMap,Ho=new WeakMap,Ko=new WeakMap,jo=new WeakMap,Go=new WeakMap,en=new WeakSet,gf=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},Ds=function(){return this.parentMenu.root.isPointerInTransit},mf=function(e){if(!e)return;const n=this.parentMenu.parentMenu?.contentNode;if(!n)return;const r=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!It(r))return;const o=r.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!n.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},qo=new WeakMap,Yo=new WeakMap;let Nu=tu;var zr,Xo;class Za{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,zr,oe(!1));C(this,Xo,U(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Oc(this.opts.disabled.current),"data-disabled":Ya(this.opts.disabled.current),"data-highlighted":w(l(this,zr))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=n,this.attachment=ft(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&Pt(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const r=e.currentTarget;if(!bn(r))return;r.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||Pt(e)&&this.content.onItemLeave(e)}onfocus(e){_t(()=>{e.defaultPrevented||this.opts.disabled.current||N(l(this,zr),!0)})}onblur(e){_t(()=>{e.defaultPrevented||N(l(this,zr),!1)})}get props(){return w(l(this,Xo))}set props(e){N(l(this,Xo),e)}}zr=new WeakMap,Xo=new WeakMap;var Zo,fa,bf,Jo;const nu=class nu{constructor(e,n){C(this,fa);P(this,"opts");P(this,"item");P(this,"root");C(this,Zo,!1);C(this,Jo,U(()=>Zt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const n=new Za(e,fs.get());return new nu(e,n)}onkeydown(e){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&e.key===Xa)&&Fl.includes(e.key)){if(!bn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||F(this,fa,bf).call(this)}onpointerup(e){if(!e.defaultPrevented&&!l(this,Zo)){if(!bn(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){I(this,Zo,!0)}get props(){return w(l(this,Jo))}set props(e){N(l(this,Jo),e)}};Zo=new WeakMap,fa=new WeakSet,bf=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Jo=new WeakMap;let Js=nu;var hn,In,Er,Qo;const ru=class ru{constructor(e,n,r,o){C(this,In);P(this,"opts");P(this,"item");P(this,"content");P(this,"submenu");P(this,"attachment");C(this,hn,null);C(this,Qo,U(()=>Zt({"aria-haspopup":"menu","aria-expanded":Oc(this.submenu.opts.open.current),"data-state":Pc(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props)));this.opts=e,this.item=n,this.content=r,this.submenu=o,this.attachment=ft(this.opts.ref,i=>this.submenu.triggerNode=i),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),wn(()=>{F(this,In,Er).call(this)})}static create(e){const n=fs.get(),r=new Za(e,n),o=eo.get();return new ru(e,r,n,o)}onpointermove(e){if(Pt(e)){if(this.submenu.root.isPointerInTransit){l(this,hn)!==null&&F(this,In,Er).call(this);return}if(!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!l(this,hn)){const n=this.opts.openDelay.current;if(n<=0){this.submenu.onOpen();return}I(this,hn,this.content.domContext.setTimeout(()=>{if(this.submenu.root.isPointerInTransit){F(this,In,Er).call(this);return}this.submenu.onOpen(),F(this,In,Er).call(this)},n))}}}onpointerleave(e){Pt(e)&&F(this,In,Er).call(this)}onkeydown(e){const n=this.content.search!=="";this.item.opts.disabled.current||n&&e.key===Xa||cm[this.submenu.root.opts.dir.current].includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}onclick(e){if(this.item.opts.disabled.current||!bn(e.currentTarget))return;e.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),_t(()=>{const r=this.submenu.contentNode;r&&df.dispatch(r)}))}get props(){return w(l(this,Qo))}set props(e){N(l(this,Qo),e)}};hn=new WeakMap,In=new WeakSet,Er=function(){l(this,hn)!==null&&(this.content.domContext.getWindow().clearTimeout(l(this,hn)),I(this,hn,null))},Qo=new WeakMap;let Du=ru;var $o,ei;const ou=class ou{constructor(e,n,r=null){P(this,"opts");P(this,"item");P(this,"group");C(this,$o,U(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));C(this,ei,U(()=>({...this.item.props,role:"menuitemcheckbox","aria-checked":zd(this.opts.checked.current,this.opts.indeterminate.current),"data-state":Qd(this.opts.checked.current),[this.item.root.getBitsAttr("checkbox-item")]:""})));this.opts=e,this.item=n,this.group=r,this.group&&(ke(()=>this.group.opts.value.current,o=>{this.opts.checked.current=o.includes(this.opts.value.current)}),ke(()=>this.opts.checked.current,o=>{o?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}static create(e,n){const r=new Js(e,new Za(e,fs.get()));return new ou(e,r,n)}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}get snippetProps(){return w(l(this,$o))}set snippetProps(e){N(l(this,$o),e)}get props(){return w(l(this,ei))}set props(e){N(l(this,ei),e)}};$o=new WeakMap,ei=new WeakMap;let Fu=ou;var ti,ni;const iu=class iu{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,ti,oe(void 0));C(this,ni,U(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=ft(this.opts.ref)}static create(e){return Mc.set(new iu(e,Ic.get()))}get groupHeadingId(){return w(l(this,ti))}set groupHeadingId(e){N(l(this,ti),e,!0)}get props(){return w(l(this,ni))}set props(e){N(l(this,ni),e)}};ti=new WeakMap,ni=new WeakMap;let Lu=iu;var ri;const xo=class xo{constructor(e,n){P(this,"opts");P(this,"group");P(this,"attachment");C(this,ri,U(()=>({id:this.opts.id.current,role:"group",[this.group.root.getBitsAttr("group-heading")]:"",...this.attachment})));this.opts=e,this.group=n,this.attachment=ft(this.opts.ref,r=>this.group.groupHeadingId=r?.id)}static create(e){const n=Nm.getOr(null);if(n)return new xo(e,n);const r=Rc.getOr(null);return r?new xo(e,r):new xo(e,Mc.get())}get props(){return w(l(this,ri))}set props(e){N(l(this,ri),e)}};ri=new WeakMap;let Bu=xo;var oi;const su=class su{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,oi,U(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=ft(this.opts.ref)}static create(e){return new su(e,Ic.get())}get props(){return w(l(this,oi))}set props(e){N(l(this,oi),e)}};oi=new WeakMap;let zu=su;var ii,si;const au=class au{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,ii,oe(null));P(this,"root");C(this,si,U(()=>({id:this.opts.id.current,[this.root.getBitsAttr("radio-group")]:"",role:"group","aria-labelledby":this.groupHeadingId,...this.attachment})));this.opts=e,this.content=n,this.root=n.parentMenu.root,this.attachment=ft(this.opts.ref)}static create(e){return Mc.set(Rc.set(new au(e,fs.get())))}get groupHeadingId(){return w(l(this,ii))}set groupHeadingId(e){N(l(this,ii),e,!0)}setValue(e){this.opts.value.current=e}get props(){return w(l(this,si))}set props(e){N(l(this,si),e)}};ii=new WeakMap,si=new WeakMap;let Vu=au;var ai,li;const lu=class lu{constructor(e,n,r){P(this,"opts");P(this,"item");P(this,"group");P(this,"attachment");C(this,ai,U(()=>this.group.opts.value.current===this.opts.value.current));C(this,li,U(()=>({[this.group.root.getBitsAttr("radio-item")]:"",...this.item.props,role:"menuitemradio","aria-checked":zd(this.isChecked,!1),"data-state":Qd(this.isChecked),...this.attachment})));this.opts=e,this.item=n,this.group=r,this.attachment=ft(this.opts.ref)}static create(e){const n=Rc.get(),r=new Za(e,n.content),o=new Js(e,r);return new lu(e,o,n)}get isChecked(){return w(l(this,ai))}set isChecked(e){N(l(this,ai),e)}selectValue(){this.group.setValue(this.opts.value.current)}get props(){return w(l(this,li))}set props(e){N(l(this,li),e)}};ai=new WeakMap,li=new WeakMap;let Wu=lu;var ha,ci;const cu=class cu{constructor(e,n){P(this,"opts");P(this,"parentMenu");P(this,"attachment");P(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});P(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});P(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});P(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Xa||e.key===Ud){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Ao&&(this.parentMenu.onOpen(),e.preventDefault())}});C(this,ha,U(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));C(this,ci,U(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Oc(this.parentMenu.opts.open.current),"aria-controls":w(l(this,ha)),"data-disabled":Ya(this.opts.disabled.current),"data-state":Pc(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=n,this.attachment=ft(this.opts.ref,r=>this.parentMenu.triggerNode=r)}static create(e){return new cu(e,eo.get())}get props(){return w(l(this,ci))}set props(e){N(l(this,ci),e)}};ha=new WeakMap,ci=new WeakMap;let Uu=cu;class wx{static create(e){const n=eo.get();return eo.set(new Ul(e,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;var Mn,sr,Rn,Vr,Wr,Nn,Ur,Tt,pa,no,vf,ga,Hr,ma,ba,va,ya,ui,yf,wa,Ca;const uu=class uu{constructor(e){C(this,no);P(this,"opts");C(this,Mn);C(this,sr);C(this,Rn,{pointerdown:!1});C(this,Vr,!1);C(this,Wr,!1);C(this,Nn);C(this,Ur);C(this,Tt,me);C(this,pa,e=>{e.defaultPrevented||this.opts.ref.current&&_t(()=>{if(!(!this.opts.ref.current||l(this,ya).call(this,e.target))&&e.target&&!l(this,Wr)){if(typeof l(this,Ur)?.current!="function")return;l(this,Ur).current(e)}})});C(this,ga,e=>{let n=e;n.defaultPrevented&&(n=Hu(e)),typeof l(this,Mn)?.current=="function"&&l(this,Mn).current(e)});C(this,Hr,Ou(e=>{if(!this.opts.ref.current){l(this,Tt).call(this);return}if(typeof this.opts.isValidEvent?.current!="function"){l(this,Tt).call(this);return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||Km(e,this.opts.ref.current);if(!l(this,Vr)||F(this,no,yf).call(this)||!n){l(this,Tt).call(this);return}let r=e;if(r.defaultPrevented&&(r=Hu(r)),l(this,sr).current!=="close"&&l(this,sr).current!=="defer-otherwise-close"){l(this,Tt).call(this);return}if(e.pointerType==="touch")l(this,Tt).call(this),I(this,Tt,Ie(l(this,Nn),"click",l(this,ga),{once:!0}));else{if(typeof l(this,Mn)?.current!="function"){l(this,Tt).call(this);return}l(this,Mn).current(r)}},10));C(this,ma,e=>{l(this,Rn)[e.type]=!0});C(this,ba,e=>{l(this,Rn)[e.type]=!1});C(this,va,()=>{this.opts.ref.current&&I(this,Vr,Hm(this.opts.ref.current))});C(this,ya,e=>this.opts.ref.current?Xd(this.opts.ref.current,e):!1);C(this,ui,Ou(()=>{for(const e in l(this,Rn))l(this,Rn)[e]=!1;I(this,Vr,!1)},20));C(this,wa,()=>{I(this,Wr,!0)});C(this,Ca,()=>{I(this,Wr,!1)});P(this,"props",{onfocuscapture:l(this,wa),onblurcapture:l(this,Ca)});this.opts=e,I(this,sr,e.interactOutsideBehavior),I(this,Mn,e.onInteractOutside),I(this,Ur,e.onFocusOutside),Le(()=>{I(this,Nn,Zd(this.opts.ref.current))});let n=me,r;const o=()=>{clearTimeout(r),l(this,ui).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),n()};ke([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return r=_g(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,l(this,sr)),n(),n=F(this,no,vf).call(this))}),o}),wn(()=>{l(this,ui).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),l(this,Tt).call(this),n()})}static create(e){return new uu(e)}};Mn=new WeakMap,sr=new WeakMap,Rn=new WeakMap,Vr=new WeakMap,Wr=new WeakMap,Nn=new WeakMap,Ur=new WeakMap,Tt=new WeakMap,pa=new WeakMap,no=new WeakSet,vf=function(){return Pr(Ie(l(this,Nn),"pointerdown",Pr(l(this,ma),l(this,va)),{capture:!0}),Ie(l(this,Nn),"pointerdown",Pr(l(this,ba),l(this,Hr))),Ie(l(this,Nn),"focusin",l(this,pa)))},ga=new WeakMap,Hr=new WeakMap,ma=new WeakMap,ba=new WeakMap,va=new WeakMap,ya=new WeakMap,ui=new WeakMap,yf=function(){return Object.values(l(this,Rn)).some(Boolean)},wa=new WeakMap,Ca=new WeakMap;let Hl=uu;function Um(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function Hm(t){const e=[...globalThis.bitsDismissableLayers],n=Um(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}function Km(t,e){const n=t.target;if(!jd(n))return!1;const r=!!n.closest(`[${Mm}]`),o=!!e.closest(`[${Rm}]`);return"button"in t&&t.button>0&&!r?!1:"button"in t&&t.button===0&&r&&o?!0:r&&o?!1:Zd(n).documentElement.contains(n)&&!Xd(e,n)&&sm(t,e)}function Hu(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(r,{get:(s,a)=>a==="currentTarget"?e:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:a==="defaultPrevented"?o:a in s?s[a]:t[a]})}function wf(t,e){if(new.target)return Te({component:wf,...t});Pe(e,!0);let n=h(e,"interactOutsideBehavior",7,"close"),r=h(e,"onInteractOutside",7,me),o=h(e,"onFocusOutside",7,me),i=h(e,"id",7),s=h(e,"children",7),a=h(e,"enabled",7),c=h(e,"isValidEvent",7,()=>!1),u=h(e,"ref",7);const d=Hl.create({id:G(()=>i()),interactOutsideBehavior:G(()=>n()),onInteractOutside:G(()=>r()),enabled:G(()=>a()),onFocusOutside:G(()=>o()),isValidEvent:G(()=>c()),ref:u()});var f={get interactOutsideBehavior(){return n()},set interactOutsideBehavior(v="close"){n(v),p()},get onInteractOutside(){return r()},set onInteractOutside(v=me){r(v),p()},get onFocusOutside(){return o()},set onFocusOutside(v=me){o(v),p()},get id(){return i()},set id(v){i(v),p()},get children(){return s()},set children(v){s(v),p()},get enabled(){return a()},set enabled(v){a(v),p()},get isValidEvent(){return c()},set isValidEvent(v=()=>!1){c(v),p()},get ref(){return u()},set ref(v){u(v),p()},$set:Ee,$on:(v,m)=>Oe(e,v,m)},g=ue(),b=se(g);return ye(b,()=>s()??xe,()=>({props:d.props})),Z(t,g),_e(f)}globalThis.bitsEscapeLayers??=new Map;var xa,Sa;const du=class du{constructor(e){P(this,"opts");P(this,"domContext");C(this,xa,()=>Ie(this.domContext.getDocument(),"keydown",l(this,Sa),{passive:!1}));C(this,Sa,e=>{if(e.key!==zg||!jm(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)});this.opts=e,this.domContext=new qa(this.opts.ref);let n=me;ke(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=l(this,xa).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new du(e)}};xa=new WeakMap,Sa=new WeakMap;let Kl=du;function jm(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function Cf(t,e){if(new.target)return Te({component:Cf,...t});Pe(e,!0);let n=h(e,"escapeKeydownBehavior",7,"close"),r=h(e,"onEscapeKeydown",7,me),o=h(e,"children",7),i=h(e,"enabled",7),s=h(e,"ref",7);Kl.create({escapeKeydownBehavior:G(()=>n()),onEscapeKeydown:G(()=>r()),enabled:G(()=>i()),ref:s()});var a={get escapeKeydownBehavior(){return n()},set escapeKeydownBehavior(d="close"){n(d),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(d=me){r(d),p()},get children(){return o()},set children(d){o(d),p()},get enabled(){return i()},set enabled(d){i(d),p()},get ref(){return s()},set ref(d){s(d),p()},$set:Ee,$on:(d,f)=>Oe(e,d,f)},c=ue(),u=se(c);return ye(u,()=>o()??xe),Z(t,c),_e(a)}var pn,di,ar;const ka=class ka{constructor(){C(this,pn,Ct([]));C(this,di,new WeakMap);C(this,ar,new WeakMap)}static getInstance(){return this.instance||(this.instance=new ka),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=document.activeElement;r&&r!==document.body&&l(this,ar).set(e,r),l(this,pn).current=l(this,pn).current.filter(o=>o!==e),l(this,pn).current.unshift(e)}unregister(e){l(this,pn).current=l(this,pn).current.filter(r=>r!==e);const n=this.getActive();n&&n.resume()}getActive(){return l(this,pn).current[0]}setFocusMemory(e,n){l(this,di).set(e,n)}getFocusMemory(e){return l(this,di).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){l(this,ar).set(e,n)}getPreFocusMemory(e){return l(this,ar).get(e)}clearPreFocusMemory(e){l(this,ar).delete(e)}};pn=new WeakMap,di=new WeakMap,ar=new WeakMap,P(ka,"instance");let jl=ka;var Dn,Qe,lt,lr,Fn,Be,xf,Sf,kf,Af,ql,Fs,Yl;const fu=class fu{constructor(e){C(this,Be);C(this,Dn,!1);C(this,Qe,null);C(this,lt,jl.getInstance());C(this,lr,[]);C(this,Fn);I(this,Fn,e)}get paused(){return l(this,Dn)}pause(){I(this,Dn,!0)}resume(){I(this,Dn,!1)}mount(e){l(this,Qe)&&this.unmount(),I(this,Qe,e),l(this,lt).register(this),F(this,Be,Af).call(this),F(this,Be,Sf).call(this)}unmount(){l(this,Qe)&&(F(this,Be,xf).call(this),F(this,Be,kf).call(this),l(this,lt).unregister(this),l(this,lt).clearPreFocusMemory(this),I(this,Qe,null))}static use(e){let n=null;return ke([()=>e.ref.current,()=>e.enabled.current],([r,o])=>{r&&o?(n||(n=new fu(e)),n.mount(r)):n&&(n.unmount(),n=null)}),wn(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};Dn=new WeakMap,Qe=new WeakMap,lt=new WeakMap,lr=new WeakMap,Fn=new WeakMap,Be=new WeakSet,xf=function(){for(const e of l(this,lr))e();I(this,lr,[])},Sf=function(){if(!l(this,Qe))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Fn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Qe))return;const n=F(this,Be,Fs).call(this);n?(n.focus(),l(this,lt).setFocusMemory(this,n)):l(this,Qe).focus()})},kf=function(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(l(this,Fn).onCloseAutoFocus.current?.(e),!e.defaultPrevented){const n=l(this,lt).getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}},Af=function(){if(!l(this,Qe)||!l(this,Fn).trap.current)return;const e=l(this,Qe),n=e.ownerDocument,r=s=>{if(l(this,Dn)||!l(this,lt).isActiveScope(this))return;const a=s.target;if(!a)return;if(e.contains(a))l(this,lt).setFocusMemory(this,a);else{const u=l(this,lt).getFocusMemory(this);if(u&&e.contains(u)&&cf(u))s.preventDefault(),u.focus();else{const d=F(this,Be,Fs).call(this),f=F(this,Be,Yl).call(this)[0];(d||f||e).focus()}}},o=s=>{if(!l(this,Fn).loop||l(this,Dn)||s.key!=="Tab"||!l(this,lt).isActiveScope(this))return;const a=F(this,Be,ql).call(this);if(a.length===0)return;const c=a[0],u=a[a.length-1];!s.shiftKey&&n.activeElement===u?(s.preventDefault(),c.focus()):s.shiftKey&&n.activeElement===c&&(s.preventDefault(),u.focus())};l(this,lr).push(Ie(n,"focusin",r,{capture:!0}),Ie(e,"keydown",o));const i=new MutationObserver(()=>{const s=l(this,lt).getFocusMemory(this);if(s&&!e.contains(s)){const a=F(this,Be,Fs).call(this),c=F(this,Be,Yl).call(this)[0],u=a||c;u?(u.focus(),l(this,lt).setFocusMemory(this,u)):e.focus()}});i.observe(e,{childList:!0,subtree:!0}),l(this,lr).push(()=>i.disconnect())},ql=function(){return l(this,Qe)?af(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]},Fs=function(){return F(this,Be,ql).call(this)[0]||null},Yl=function(){return l(this,Qe)?lf(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]};let Gl=fu;function Tf(t,e){if(new.target)return Te({component:Tf,...t});Pe(e,!0);let n=h(e,"enabled",7,!1),r=h(e,"trapFocus",7,!1),o=h(e,"loop",7,!1),i=h(e,"onCloseAutoFocus",7,me),s=h(e,"onOpenAutoFocus",7,me),a=h(e,"focusScope",7),c=h(e,"ref",7);const u=Gl.use({enabled:G(()=>n()),trap:G(()=>r()),loop:o(),onCloseAutoFocus:G(()=>i()),onOpenAutoFocus:G(()=>s()),ref:c()});var d={get enabled(){return n()},set enabled(b=!1){n(b),p()},get trapFocus(){return r()},set trapFocus(b=!1){r(b),p()},get loop(){return o()},set loop(b=!1){o(b),p()},get onCloseAutoFocus(){return i()},set onCloseAutoFocus(b=me){i(b),p()},get onOpenAutoFocus(){return s()},set onOpenAutoFocus(b=me){s(b),p()},get focusScope(){return a()},set focusScope(b){a(b),p()},get ref(){return c()},set ref(b){c(b),p()},$set:Ee,$on:(b,v)=>Oe(e,b,v)},f=ue(),g=se(f);return ye(g,()=>a()??xe,()=>({props:u.props})),Z(t,f),_e(d)}const Ku=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Kr,jr,fi,hi,Aa,Ef,Ta,Ea,pi;const hu=class hu{constructor(e){C(this,Aa);P(this,"opts");P(this,"domContext");C(this,Kr,me);C(this,jr,!1);C(this,fi,Ku);C(this,hi,Ku);C(this,Ta,e=>{l(this,hi).call(this,e)});C(this,Ea,e=>{const n=this.opts.ref.current,r=e.target;!bn(n)||!bn(r)||!l(this,jr)||!qm(this)||!Fg(n,r)||(l(this,fi).call(this,e),!e.defaultPrevented&&I(this,Kr,Gm(n,this.domContext.getDocument().body)))});C(this,pi,()=>{l(this,Kr).call(this),I(this,Kr,me)});this.opts=e,this.domContext=new qa(e.ref);let n=me;ke(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,o,i])=>(I(this,jr,r),I(this,fi,o),I(this,hi,i),r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=F(this,Aa,Ef).call(this)),()=>{I(this,jr,!1),n(),l(this,pi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new hu(e)}};Kr=new WeakMap,jr=new WeakMap,fi=new WeakMap,hi=new WeakMap,Aa=new WeakSet,Ef=function(){return Pr(Ie(this.domContext.getDocument(),"pointerdown",l(this,Ea)),Ie(this.domContext.getDocument(),"pointerup",_d(l(this,pi),l(this,Ta))))},Ta=new WeakMap,Ea=new WeakMap,pi=new WeakMap;let Xl=hu;const ju=t=>t.style.userSelect||t.style.webkitUserSelect;function Gm(t,e){const n=ju(e),r=ju(t);return vs(e,"none"),vs(t,"text"),()=>{vs(e,n),vs(t,r)}}function vs(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function qm(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function Of(t,e){if(new.target)return Te({component:Of,...t});Pe(e,!0);let n=h(e,"preventOverflowTextSelection",7,!0),r=h(e,"onPointerDown",7,me),o=h(e,"onPointerUp",7,me),i=h(e,"id",7),s=h(e,"children",7),a=h(e,"enabled",7),c=h(e,"ref",7);Xl.create({id:G(()=>i()),onPointerDown:G(()=>r()),onPointerUp:G(()=>o()),enabled:G(()=>a()&&n()),ref:c()});var u={get preventOverflowTextSelection(){return n()},set preventOverflowTextSelection(g=!0){n(g),p()},get onPointerDown(){return r()},set onPointerDown(g=me){r(g),p()},get onPointerUp(){return o()},set onPointerUp(g=me){o(g),p()},get id(){return i()},set id(g){i(g),p()},get children(){return s()},set children(g){s(g),p()},get enabled(){return a()},set enabled(g){a(g),p()},get ref(){return c()},set ref(g){c(g),p()},$set:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>s()??xe),Z(t,d),_e(u)}globalThis.bitsIdCounter??={current:0};function Qs(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var gi,Gr,cr,ur,Oa,Pf;class Ym{constructor(e){C(this,Oa);C(this,gi);C(this,Gr,0);C(this,cr,oe());C(this,ur);I(this,gi,e)}get(...e){return I(this,Gr,l(this,Gr)+1),w(l(this,cr))===void 0&&I(this,ur,Sd(()=>{N(l(this,cr),l(this,gi).call(this,...e),!0)})),Le(()=>()=>{F(this,Oa,Pf).call(this)}),w(l(this,cr))}}gi=new WeakMap,Gr=new WeakMap,cr=new WeakMap,ur=new WeakMap,Oa=new WeakSet,Pf=function(){I(this,Gr,l(this,Gr)-1),l(this,ur)&&l(this,Gr)<=0&&(l(this,ur).call(this),N(l(this,cr),void 0),I(this,ur,void 0))};const Ls=new _l;let ys=oe(null),ul=null,uo=null,fo=!1;const Gu=G(()=>{for(const t of Ls.values())if(t)return!0;return!1});let dl=null;const Xm=new Ym(()=>{function t(){typeof document>"u"||(document.body.setAttribute("style",w(ys)??""),document.body.style.removeProperty("--scrollbar-width"),Eu&&ul?.(),N(ys,null))}function e(){uo!==null&&(window.clearTimeout(uo),uo=null)}function n(o,i){e(),fo=!0,dl=Date.now();const s=dl,a=()=>{uo=null,dl===s&&(_f(Ls)?fo=!1:(fo=!1,i()))},c=o===null?24:o;uo=window.setTimeout(a,c)}function r(){w(ys)===null&&Ls.size===0&&!fo&&N(ys,document.body.getAttribute("style"),!0)}return ke(()=>Gu.current,()=>{if(!Gu.current)return;r(),fo=!1;const o=getComputedStyle(document.documentElement),i=getComputedStyle(document.body),s=o.scrollbarGutter?.includes("stable")||i.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(i.paddingRight??"0",10)+a,margin:Number.parseInt(i.marginRight??"0",10)};a>0&&!s&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Eu&&(ul=Ie(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),_t(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),wn(()=>()=>{e(),t(),ul?.()}),{get lockMap(){return Ls},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:e,ensureInitialStyleCaptured:r}});var dr,mi,bi,ct;class Zm{constructor(e,n=()=>null){C(this,dr,Qs());C(this,mi);C(this,bi,()=>null);C(this,ct);P(this,"locked");I(this,mi,e),I(this,bi,n),I(this,ct,Xm.get()),l(this,ct)&&(l(this,ct).cancelPendingCleanup(),l(this,ct).ensureInitialStyleCaptured(),l(this,ct).lockMap.set(l(this,dr),l(this,mi)??!1),this.locked=G(()=>l(this,ct).lockMap.get(l(this,dr))??!1,r=>l(this,ct).lockMap.set(l(this,dr),r)),wn(()=>{if(l(this,ct).lockMap.delete(l(this,dr)),_f(l(this,ct).lockMap))return;const r=l(this,bi).call(this);l(this,ct).scheduleCleanupIfNoNewLocks(r,()=>{l(this,ct).resetBodyStyle()})}))}}dr=new WeakMap,mi=new WeakMap,bi=new WeakMap,ct=new WeakMap;function _f(t){for(const[e,n]of t)if(n)return!0;return!1}function Zl(t,e){if(new.target)return Te({component:Zl,...t});Pe(e,!0);let n=h(e,"preventScroll",7,!0),r=h(e,"restoreScrollDelay",7,null);n()&&new Zm(n(),()=>r());var o={get preventScroll(){return n()},set preventScroll(i=!0){n(i),p()},get restoreScrollDelay(){return r()},set restoreScrollDelay(i=null){r(i),p()},$set:Ee,$on:(i,s)=>Oe(e,i,s)};return _e(o)}const Jm=["top","right","bottom","left"],jn=Math.min,gt=Math.max,$s=Math.round,ws=Math.floor,$t=t=>({x:t,y:t}),Qm={left:"right",right:"left",bottom:"top",top:"bottom"};function Jl(t,e,n){return gt(t,jn(e,n))}function vn(t,e){return typeof t=="function"?t(e):t}function yn(t){return t.split("-")[0]}function io(t){return t.split("-")[1]}function Nc(t){return t==="x"?"y":"x"}function Dc(t){return t==="y"?"height":"width"}function Qt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Fc(t){return Nc(Qt(t))}function $m(t,e,n){n===void 0&&(n=!1);const r=io(t),o=Fc(t),i=Dc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ea(s)),[s,ea(s)]}function eb(t){const e=ea(t);return[Ql(t),e,Ql(e)]}function Ql(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const qu=["left","right"],Yu=["right","left"],tb=["top","bottom"],nb=["bottom","top"];function rb(t,e,n){switch(t){case"top":case"bottom":return n?e?Yu:qu:e?qu:Yu;case"left":case"right":return e?tb:nb;default:return[]}}function ob(t,e,n,r){const o=io(t);let i=rb(yn(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(Ql)))),i}function ea(t){const e=yn(t);return Qm[e]+t.slice(e.length)}function ib(t){return{top:0,right:0,bottom:0,left:0,...t}}function If(t){return typeof t!="number"?ib(t):{top:t,right:t,bottom:t,left:t}}function ta(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Xu(t,e,n){let{reference:r,floating:o}=t;const i=Qt(e),s=Fc(e),a=Dc(s),c=yn(e),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let b;switch(c){case"top":b={x:d,y:r.y-o.height};break;case"bottom":b={x:d,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:f};break;case"left":b={x:r.x-o.width,y:f};break;default:b={x:r.x,y:r.y}}switch(io(e)){case"start":b[s]-=g*(n&&u?-1:1);break;case"end":b[s]+=g*(n&&u?-1:1);break}return b}async function sb(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:b=0}=vn(e,t),v=If(b),E=a[g?f==="floating"?"reference":"floating":f],T=ta(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),O=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),y=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},x=ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:A,strategy:c}):O);return{top:(T.top-x.top+v.top)/y.y,bottom:(x.bottom-T.bottom+v.bottom)/y.y,left:(T.left-x.left+v.left)/y.x,right:(x.right-T.right+v.right)/y.x}}const ab=50,lb=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:sb},c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:f}=Xu(u,r,c),g=r,b=0;const v={};for(let m=0;m<i.length;m++){const E=i[m];if(!E)continue;const{name:T,fn:O}=E,{x:A,y,data:x,reset:k}=await O({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:t,floating:e}});d=A??d,f=y??f,v[T]={...v[T],...x},k&&b<ab&&(b++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):k.rects),{x:d,y:f}=Xu(u,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:v}},cb=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:u,padding:d=0}=vn(t,e)||{};if(u==null)return{};const f=If(d),g={x:n,y:r},b=Fc(o),v=Dc(b),m=await s.getDimensions(u),E=b==="y",T=E?"top":"left",O=E?"bottom":"right",A=E?"clientHeight":"clientWidth",y=i.reference[v]+i.reference[b]-g[b]-i.floating[v],x=g[b]-i.reference[b],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=k?k[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(k)))&&(R=a.floating[A]||i.floating[v]);const M=y/2-x/2,K=R/2-m[v]/2-1,j=jn(f[T],K),$=jn(f[O],K),z=j,Y=R-m[v]-$,B=R/2-m[v]/2+M,J=Jl(z,B,Y),re=!c.arrow&&io(o)!=null&&B!==J&&i.reference[v]/2-(B<z?j:$)-m[v]/2<0,ee=re?B<z?B-z:B-Y:0;return{[b]:g[b]+ee,data:{[b]:J,centerOffset:B-J-ee,...re&&{alignmentOffset:ee}},reset:re}}}),ub=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...E}=vn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const T=yn(o),O=Qt(a),A=yn(a)===a,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=g||(A||!m?[ea(a)]:eb(a)),k=v!=="none";!g&&k&&x.push(...ob(a,m,v,y));const R=[a,...x],M=await c.detectOverflow(e,E),K=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&K.push(M[T]),f){const B=$m(o,s,y);K.push(M[B[0]],M[B[1]])}if(j=[...j,{placement:o,overflows:K}],!K.every(B=>B<=0)){var $,z;const B=((($=i.flip)==null?void 0:$.index)||0)+1,J=R[B];if(J&&(!(f==="alignment"?O!==Qt(J):!1)||j.every(ie=>Qt(ie.placement)===O?ie.overflows[0]>0:!0)))return{data:{index:B,overflows:j},reset:{placement:J}};let re=(z=j.filter(ee=>ee.overflows[0]<=0).sort((ee,ie)=>ee.overflows[1]-ie.overflows[1])[0])==null?void 0:z.placement;if(!re)switch(b){case"bestFit":{var Y;const ee=(Y=j.filter(ie=>{if(k){const he=Qt(ie.placement);return he===O||he==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(he=>he>0).reduce((he,_)=>he+_,0)]).sort((ie,he)=>ie[1]-he[1])[0])==null?void 0:Y[0];ee&&(re=ee);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Zu(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ju(t){return Jm.some(e=>t[e]>=0)}const db=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:o="referenceHidden",...i}=vn(t,e);switch(o){case"referenceHidden":{const s=await r.detectOverflow(e,{...i,elementContext:"reference"}),a=Zu(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ju(a)}}}case"escaped":{const s=await r.detectOverflow(e,{...i,altBoundary:!0}),a=Zu(s,n.floating);return{data:{escapedOffsets:a,escaped:Ju(a)}}}default:return{}}}}},Mf=new Set(["left","top"]);async function fb(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=yn(n),a=io(n),c=Qt(n)==="y",u=Mf.has(s)?-1:1,d=i&&c?-1:1,f=vn(e,t);let{mainAxis:g,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(b=a==="end"?v*-1:v),c?{x:b*d,y:g*u}:{x:g*u,y:b*d}}const hb=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=e,c=await fb(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},pb=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:O,y:A}=T;return{x:O,y:A}}},...u}=vn(t,e),d={x:n,y:r},f=await i.detectOverflow(e,u),g=Qt(yn(o)),b=Nc(g);let v=d[b],m=d[g];if(s){const T=b==="y"?"top":"left",O=b==="y"?"bottom":"right",A=v+f[T],y=v-f[O];v=Jl(A,v,y)}if(a){const T=g==="y"?"top":"left",O=g==="y"?"bottom":"right",A=m+f[T],y=m-f[O];m=Jl(A,m,y)}const E=c.fn({...e,[b]:v,[g]:m});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[b]:s,[g]:a}}}}}},gb=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=vn(t,e),d={x:n,y:r},f=Qt(o),g=Nc(f);let b=d[g],v=d[f];const m=vn(a,e),E=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const A=g==="y"?"height":"width",y=i.reference[g]-i.floating[A]+E.mainAxis,x=i.reference[g]+i.reference[A]-E.mainAxis;b<y?b=y:b>x&&(b=x)}if(u){var T,O;const A=g==="y"?"width":"height",y=Mf.has(yn(o)),x=i.reference[f]-i.floating[A]+(y&&((T=s.offset)==null?void 0:T[f])||0)+(y?0:E.crossAxis),k=i.reference[f]+i.reference[A]+(y?0:((O=s.offset)==null?void 0:O[f])||0)-(y?E.crossAxis:0);v<x?v=x:v>k&&(v=k)}return{[g]:b,[f]:v}}}},mb=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:s,elements:a}=e,{apply:c=()=>{},...u}=vn(t,e),d=await s.detectOverflow(e,u),f=yn(o),g=io(o),b=Qt(o)==="y",{width:v,height:m}=i.floating;let E,T;f==="top"||f==="bottom"?(E=f,T=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(T=f,E=g==="end"?"top":"bottom");const O=m-d.top-d.bottom,A=v-d.left-d.right,y=jn(m-d[E],O),x=jn(v-d[T],A),k=!e.middlewareData.shift;let R=y,M=x;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=A),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(R=O),k&&!g){const j=gt(d.left,0),$=gt(d.right,0),z=gt(d.top,0),Y=gt(d.bottom,0);b?M=v-2*(j!==0||$!==0?j+$:gt(d.left,d.right)):R=m-2*(z!==0||Y!==0?z+Y:gt(d.top,d.bottom))}await c({...e,availableWidth:M,availableHeight:R});const K=await s.getDimensions(a.floating);return v!==K.width||m!==K.height?{reset:{rects:!0}}:{}}}};function Ja(){return typeof window<"u"}function so(t){return Rf(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tn(t){var e;return(e=(Rf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rf(t){return Ja()?t instanceof Node||t instanceof mt(t).Node:!1}function Rt(t){return Ja()?t instanceof Element||t instanceof mt(t).Element:!1}function Cn(t){return Ja()?t instanceof HTMLElement||t instanceof mt(t).HTMLElement:!1}function Qu(t){return!Ja()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function hs(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function bb(t){return/^(table|td|th)$/.test(so(t))}function Qa(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const vb=/transform|translate|scale|rotate|perspective|filter/,yb=/paint|layout|strict|content/,Zn=t=>!!t&&t!=="none";let fl;function Lc(t){const e=Rt(t)?Nt(t):t;return Zn(e.transform)||Zn(e.translate)||Zn(e.scale)||Zn(e.rotate)||Zn(e.perspective)||!Bc()&&(Zn(e.backdropFilter)||Zn(e.filter))||vb.test(e.willChange||"")||yb.test(e.contain||"")}function wb(t){let e=Gn(t);for(;Cn(e)&&!to(e);){if(Lc(e))return e;if(Qa(e))return null;e=Gn(e)}return null}function Bc(){return fl==null&&(fl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fl}function to(t){return/^(html|body|#document)$/.test(so(t))}function Nt(t){return mt(t).getComputedStyle(t)}function $a(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gn(t){if(so(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qu(t)&&t.host||tn(t);return Qu(e)?e.host:e}function Nf(t){const e=Gn(t);return to(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&hs(e)?e:Nf(e)}function To(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Nf(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=mt(o);if(i){const a=$l(s);return e.concat(s,s.visualViewport||[],hs(o)?o:[],a&&n?To(a):[])}else return e.concat(o,To(o,[],n))}function $l(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Df(t){const e=Nt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Cn(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,a=$s(n)!==i||$s(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function zc(t){return Rt(t)?t:t.contextElement}function _r(t){const e=zc(t);if(!Cn(e))return $t(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Df(e);let s=(i?$s(n.width):n.width)/r,a=(i?$s(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Cb=$t(0);function Ff(t){const e=mt(t);return!Bc()||!e.visualViewport?Cb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==mt(t)?!1:e}function yr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=zc(t);let s=$t(1);e&&(r?Rt(r)&&(s=_r(r)):s=_r(t));const a=xb(i,n,r)?Ff(i):$t(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const g=mt(i),b=r&&Rt(r)?mt(r):r;let v=g,m=$l(v);for(;m&&r&&b!==v;){const E=_r(m),T=m.getBoundingClientRect(),O=Nt(m),A=T.left+(m.clientLeft+parseFloat(O.paddingLeft))*E.x,y=T.top+(m.clientTop+parseFloat(O.paddingTop))*E.y;c*=E.x,u*=E.y,d*=E.x,f*=E.y,c+=A,u+=y,v=mt(m),m=$l(v)}}return ta({width:d,height:f,x:c,y:u})}function el(t,e){const n=$a(t).scrollLeft;return e?e.left+n:yr(tn(t)).left+n}function Lf(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-el(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function Sb(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=tn(r),a=e?Qa(e.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=$t(1);const d=$t(0),f=Cn(r);if((f||!f&&!i)&&((so(r)!=="body"||hs(s))&&(c=$a(r)),f)){const b=yr(r);u=_r(r),d.x=b.x+r.clientLeft,d.y=b.y+r.clientTop}const g=s&&!f&&!i?Lf(s,c):$t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function kb(t){return Array.from(t.getClientRects())}function Ab(t){const e=tn(t),n=$a(t),r=t.ownerDocument.body,o=gt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=gt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+el(t);const a=-n.scrollTop;return Nt(r).direction==="rtl"&&(s+=gt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const $u=25;function Tb(t,e){const n=mt(t),r=tn(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Bc();(!d||d&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=el(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),b=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-b);v<=$u&&(i-=v)}else u<=$u&&(i+=u);return{width:i,height:s,x:a,y:c}}function Eb(t,e){const n=yr(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Cn(t)?_r(t):$t(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function ed(t,e,n){let r;if(e==="viewport")r=Tb(t,n);else if(e==="document")r=Ab(tn(t));else if(Rt(e))r=Eb(e,n);else{const o=Ff(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ta(r)}function Bf(t,e){const n=Gn(t);return n===e||!Rt(n)||to(n)?!1:Nt(n).position==="fixed"||Bf(n,e)}function Ob(t,e){const n=e.get(t);if(n)return n;let r=To(t,[],!1).filter(a=>Rt(a)&&so(a)!=="body"),o=null;const i=Nt(t).position==="fixed";let s=i?Gn(t):t;for(;Rt(s)&&!to(s);){const a=Nt(s),c=Lc(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||hs(s)&&!c&&Bf(t,s))?r=r.filter(d=>d!==s):o=a,s=Gn(s)}return e.set(t,r),r}function Pb(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?Qa(e)?[]:Ob(e,this._c):[].concat(n),r],a=ed(e,s[0],o);let c=a.top,u=a.right,d=a.bottom,f=a.left;for(let g=1;g<s.length;g++){const b=ed(e,s[g],o);c=gt(b.top,c),u=jn(b.right,u),d=jn(b.bottom,d),f=gt(b.left,f)}return{width:u-f,height:d-c,x:f,y:c}}function _b(t){const{width:e,height:n}=Df(t);return{width:e,height:n}}function Ib(t,e,n){const r=Cn(e),o=tn(e),i=n==="fixed",s=yr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=$t(0);function u(){c.x=el(o)}if(r||!r&&!i)if((so(e)!=="body"||hs(o))&&(a=$a(e)),r){const b=yr(e,!0,i,e);c.x=b.x+e.clientLeft,c.y=b.y+e.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Lf(o,a):$t(0),f=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function hl(t){return Nt(t).position==="static"}function td(t,e){if(!Cn(t)||Nt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return tn(t)===n&&(n=n.ownerDocument.body),n}function zf(t,e){const n=mt(t);if(Qa(t))return n;if(!Cn(t)){let o=Gn(t);for(;o&&!to(o);){if(Rt(o)&&!hl(o))return o;o=Gn(o)}return n}let r=td(t,e);for(;r&&bb(r)&&hl(r);)r=td(r,e);return r&&to(r)&&hl(r)&&!Lc(r)?n:r||wb(t)||n}const Mb=async function(t){const e=this.getOffsetParent||zf,n=this.getDimensions,r=await n(t.floating);return{reference:Ib(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rb(t){return Nt(t).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:Sb,getDocumentElement:tn,getClippingRect:Pb,getOffsetParent:zf,getElementRects:Mb,getClientRects:kb,getDimensions:_b,getScale:_r,isElement:Rt,isRTL:Rb};function Vf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Db(t,e){let n=null,r;const o=tn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:f,width:g,height:b}=u;if(a||e(),!g||!b)return;const v=ws(f),m=ws(o.clientWidth-(d+g)),E=ws(o.clientHeight-(f+b)),T=ws(d),A={rootMargin:-v+"px "+-m+"px "+-E+"px "+-T+"px",threshold:gt(0,jn(1,c))||1};let y=!0;function x(k){const R=k[0].intersectionRatio;if(R!==c){if(!y)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Vf(u,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(x,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,A)}n.observe(t)}return s(!0),i}function Fb(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=zc(t),d=o||i?[...u?To(u):[],...e?To(e):[]]:[];d.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),i&&T.addEventListener("resize",n)});const f=u&&a?Db(u,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(T=>{let[O]=T;O&&O.target===u&&b&&e&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(e)})),n()}),u&&!c&&b.observe(u),e&&b.observe(e));let v,m=c?yr(t):null;c&&E();function E(){const T=yr(t);m&&!Vf(m,T)&&n(),m=T,v=requestAnimationFrame(E)}return n(),()=>{var T;d.forEach(O=>{o&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f?.(),(T=b)==null||T.disconnect(),b=null,c&&cancelAnimationFrame(v)}}const Lb=hb,Bb=pb,zb=ub,Vb=mb,Wb=db,Ub=cb,Hb=gb,Kb=(t,e,n)=>{const r=new Map,o={platform:Nb,...n},i={...o.platform,_c:r};return lb(t,e,{...o,platform:i})};function Jn(t){return typeof t=="function"?t():t}function Wf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function nd(t,e){const n=Wf(t);return Math.round(e*n)/n}function rd(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function jb(t){const e=t.whileElementsMounted,n=U(()=>Jn(t.open)??!0),r=U(()=>Jn(t.middleware)),o=U(()=>Jn(t.transform)??!0),i=U(()=>Jn(t.placement)??"bottom"),s=U(()=>Jn(t.strategy)??"absolute"),a=U(()=>Jn(t.sideOffset)??0),c=U(()=>Jn(t.alignOffset)??0),u=t.reference;let d=oe(0),f=oe(0);const g=Ct(null);let b=oe(Hn(w(s))),v=oe(Hn(w(i))),m=oe(Hn({})),E=oe(!1),T=!1,O=0;const A=U(()=>{const j=g.current?nd(g.current,w(d)):w(d),$=g.current?nd(g.current,w(f)):w(f);return w(o)?{position:w(b),left:"0",top:"0",transform:`translate(${j}px, ${$}px)`,...g.current&&Wf(g.current)>=1.5&&{willChange:"transform"}}:{position:w(b),left:`${j}px`,top:`${$}px`}});let y;function x(){if(u.current===null||g.current===null)return;const j=u.current,$=g.current,z=++O;Kb(j,$,{middleware:w(r),placement:w(i),strategy:w(s)}).then(Y=>{if(z!==O||u.current!==j||g.current!==$)return;if(Gb(j)){N(m,{...w(m),hide:{...w(m).hide,referenceHidden:!0}},!0);return}if(!w(n)&&w(d)!==0&&w(f)!==0){const J=Math.max(Math.abs(w(a)),Math.abs(w(c)),15);if(Y.x<=J&&Y.y<=J)return}N(d,Y.x,!0),N(f,Y.y,!0),N(b,Y.strategy,!0),N(v,Y.placement,!0),N(m,Y.middlewareData,!0),N(E,!0)})}function k(){typeof y=="function"&&(y(),y=void 0),O++}function R(){if(k(),e===void 0){x();return}w(n)&&(u.current===null||g.current===null||(y=e(u.current,g.current,x)))}function M(){!w(n)&&g.current===null&&N(E,!1)}function K(){return[w(r),w(i),w(s),w(a),w(c),w(n)]}return Le(()=>{e===void 0&&w(n)&&x()}),Le(R),Le(()=>{if(e!==void 0){if(K(),!w(n)){T=!1;return}if(!w(E)){T=!1;return}if(!T){T=!0;return}x()}}),Le(M),Le(()=>k),{floating:g,reference:u,get strategy(){return w(b)},get placement(){return w(v)},get middlewareData(){return w(m)},get isPositioned(){return w(E)},get floatingStyles(){return w(A)},get update(){return x}}}function Gb(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const qb={top:"bottom",right:"left",bottom:"top",left:"right"},Vc=new xt("Floating.Root"),ec=new xt("Floating.Content"),Wc=new xt("Floating.Root");class na{constructor(){P(this,"anchorNode",Ct(null));P(this,"customAnchorNode",Ct(null));P(this,"triggerNode",Ct(null));Le(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Wc.set(new na):Vc.set(new na)}}var vi,yi,wi,Pa,Ci,_a,xi,Si,ki,Ai,Ti,Ei,Oi,Pi,_i,Ii,Mi,Ri,Ni,Di,Fi,Li,Bi,zi;const Ia=class Ia{constructor(e,n){P(this,"opts");P(this,"root");P(this,"contentRef",Ct(null));P(this,"wrapperRef",Ct(null));P(this,"arrowRef",Ct(null));P(this,"contentAttachment",ft(this.contentRef));P(this,"wrapperAttachment",ft(this.wrapperRef));P(this,"arrowAttachment",ft(this.arrowRef));P(this,"arrowId",Ct(Qs()));C(this,vi,U(()=>{if(typeof this.opts.style=="string")return go(this.opts.style);if(!this.opts.style)return{}}));C(this,yi);C(this,wi,new Pg(()=>this.arrowRef.current??void 0));C(this,Pa,U(()=>l(this,wi)?.width??0));C(this,Ci,U(()=>l(this,wi)?.height??0));C(this,_a,U(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")));C(this,xi,U(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));C(this,Si,U(()=>w(l(this,xi)).length>0));C(this,ki,U(()=>({padding:this.opts.collisionPadding.current,boundary:w(l(this,xi)).filter(Xg),altBoundary:this.hasExplicitBoundaries})));C(this,Ai,oe(void 0));C(this,Ti,oe(void 0));C(this,Ei,oe(void 0));C(this,Oi,oe(void 0));C(this,Pi,U(()=>[Lb({mainAxis:this.opts.sideOffset.current+w(l(this,Ci)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Bb({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Hb():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&zb({...this.detectOverflowOptions}),Vb({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference;N(l(this,Ai),n,!0),N(l(this,Ti),r,!0),N(l(this,Ei),o,!0),N(l(this,Oi),i,!0)}}),this.arrowRef.current&&Ub({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Yb({arrowWidth:w(l(this,Pa)),arrowHeight:w(l(this,Ci))}),this.opts.hideWhenDetached.current&&Wb({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));P(this,"floating");C(this,_i,U(()=>Xb(this.floating.placement)));C(this,Ii,U(()=>Zb(this.floating.placement)));C(this,Mi,U(()=>this.floating.middlewareData.arrow?.x??0));C(this,Ri,U(()=>this.floating.middlewareData.arrow?.y??0));C(this,Ni,U(()=>this.floating.middlewareData.arrow?.centerOffset!==0));C(this,Di,oe());C(this,Fi,U(()=>qb[this.placedSide]));C(this,Li,U(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${w(l(this,Ai))}px`,"--bits-floating-available-height":`${w(l(this,Ti))}px`,"--bits-floating-anchor-width":`${w(l(this,Ei))}px`,"--bits-floating-anchor-height":`${w(l(this,Oi))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...w(l(this,vi))},dir:this.opts.dir.current,...this.wrapperAttachment})));C(this,Bi,U(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Md({...w(l(this,vi))}),...this.contentAttachment})));C(this,zi,U(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=n,I(this,yi,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ke(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=jb({strategy:()=>this.opts.strategy.current,placement:()=>w(l(this,_a)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Fb(...r,{animationFrame:l(this,yi)?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Le(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ke(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Ld(r),i=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const s=o.getComputedStyle(r).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{o.cancelAnimationFrame(i)}}),Le(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,n=!1){return n?ec.set(new Ia(e,Wc.get())):ec.set(new Ia(e,Vc.get()))}get hasExplicitBoundaries(){return w(l(this,Si))}set hasExplicitBoundaries(e){N(l(this,Si),e)}get detectOverflowOptions(){return w(l(this,ki))}set detectOverflowOptions(e){N(l(this,ki),e)}get middleware(){return w(l(this,Pi))}set middleware(e){N(l(this,Pi),e)}get placedSide(){return w(l(this,_i))}set placedSide(e){N(l(this,_i),e)}get placedAlign(){return w(l(this,Ii))}set placedAlign(e){N(l(this,Ii),e)}get arrowX(){return w(l(this,Mi))}set arrowX(e){N(l(this,Mi),e)}get arrowY(){return w(l(this,Ri))}set arrowY(e){N(l(this,Ri),e)}get cannotCenterArrow(){return w(l(this,Ni))}set cannotCenterArrow(e){N(l(this,Ni),e)}get contentZIndex(){return w(l(this,Di))}set contentZIndex(e){N(l(this,Di),e,!0)}get arrowBaseSide(){return w(l(this,Fi))}set arrowBaseSide(e){N(l(this,Fi),e)}get wrapperProps(){return w(l(this,Li))}set wrapperProps(e){N(l(this,Li),e)}get props(){return w(l(this,Bi))}set props(e){N(l(this,Bi),e)}get arrowStyle(){return w(l(this,zi))}set arrowStyle(e){N(l(this,zi),e)}};vi=new WeakMap,yi=new WeakMap,wi=new WeakMap,Pa=new WeakMap,Ci=new WeakMap,_a=new WeakMap,xi=new WeakMap,Si=new WeakMap,ki=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,_i=new WeakMap,Ii=new WeakMap,Mi=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,Di=new WeakMap,Fi=new WeakMap,Li=new WeakMap,Bi=new WeakMap,zi=new WeakMap;let tc=Ia;var Vi;const pu=class pu{constructor(e,n){P(this,"opts");P(this,"content");C(this,Vi,U(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment})));this.opts=e,this.content=n}static create(e){return new pu(e,ec.get())}get props(){return w(l(this,Vi))}set props(e){N(l(this,Vi),e)}};Vi=new WeakMap;let od=pu;class nc{constructor(e,n){P(this,"opts");P(this,"root");this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=Pd(e.virtualEl.current):n.triggerNode=e.ref}static create(e,n=!1){return n?new nc(e,Wc.get()):new nc(e,Vc.get())}}function Yb(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,s=o.arrow?.centerOffset!==0,a=s?0:t.arrowWidth,c=s?0:t.arrowHeight,[u,d]=Uc(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(o.arrow?.x??0)+a/2,b=(o.arrow?.y??0)+c/2;let v="",m="";return u==="bottom"?(v=s?f:`${g}px`,m=`${-c}px`):u==="top"?(v=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?f:`${b}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?f:`${b}px`),{data:{x:v,y:m}}}}}function Uc(t){const[e,n="center"]=t.split("-");return[e,n]}function Xb(t){return Uc(t)[0]}function Zb(t){return Uc(t)[1]}function Uf(t,e){if(new.target)return Te({component:Uf,...t});Pe(e,!0);let n=h(e,"children",7),r=h(e,"tooltip",7,!1);na.create(r());var o={get children(){return n()},set children(a){n(a),p()},get tooltip(){return r()},set tooltip(a=!1){r(a),p()},$set:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe),Z(t,i),_e(o)}function Hf(t,e){if(new.target)return Te({component:Hf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"side",7,"bottom"),o=h(e,"sideOffset",7,0),i=h(e,"align",7,"center"),s=h(e,"alignOffset",7,0),a=h(e,"id",7),c=h(e,"arrowPadding",7,0),u=h(e,"avoidCollisions",7,!0),d=h(e,"collisionBoundary",23,()=>[]),f=h(e,"collisionPadding",7,0),g=h(e,"hideWhenDetached",7,!1),b=h(e,"onPlaced",7,()=>{}),v=h(e,"sticky",7,"partial"),m=h(e,"updatePositionStrategy",7,"optimized"),E=h(e,"strategy",7,"fixed"),T=h(e,"dir",7,"ltr"),O=h(e,"style",23,()=>({})),A=h(e,"wrapperId",23,Qs),y=h(e,"customAnchor",7,null),x=h(e,"enabled",7),k=h(e,"tooltip",7,!1);const R=tc.create({side:G(()=>r()),sideOffset:G(()=>o()),align:G(()=>i()),alignOffset:G(()=>s()),id:G(()=>a()),arrowPadding:G(()=>c()),avoidCollisions:G(()=>u()),collisionBoundary:G(()=>d()),collisionPadding:G(()=>f()),hideWhenDetached:G(()=>g()),onPlaced:G(()=>b()),sticky:G(()=>v()),updatePositionStrategy:G(()=>m()),strategy:G(()=>E()),dir:G(()=>T()),style:G(()=>O()),enabled:G(()=>x()),wrapperId:G(()=>A()),customAnchor:G(()=>y())},k()),M=U(()=>Zt(R.wrapperProps,{style:{pointerEvents:"auto"}}));var K={get content(){return n()},set content(z){n(z),p()},get side(){return r()},set side(z="bottom"){r(z),p()},get sideOffset(){return o()},set sideOffset(z=0){o(z),p()},get align(){return i()},set align(z="center"){i(z),p()},get alignOffset(){return s()},set alignOffset(z=0){s(z),p()},get id(){return a()},set id(z){a(z),p()},get arrowPadding(){return c()},set arrowPadding(z=0){c(z),p()},get avoidCollisions(){return u()},set avoidCollisions(z=!0){u(z),p()},get collisionBoundary(){return d()},set collisionBoundary(z=[]){d(z),p()},get collisionPadding(){return f()},set collisionPadding(z=0){f(z),p()},get hideWhenDetached(){return g()},set hideWhenDetached(z=!1){g(z),p()},get onPlaced(){return b()},set onPlaced(z=()=>{}){b(z),p()},get sticky(){return v()},set sticky(z="partial"){v(z),p()},get updatePositionStrategy(){return m()},set updatePositionStrategy(z="optimized"){m(z),p()},get strategy(){return E()},set strategy(z="fixed"){E(z),p()},get dir(){return T()},set dir(z="ltr"){T(z),p()},get style(){return O()},set style(z={}){O(z),p()},get wrapperId(){return A()},set wrapperId(z=Qs()){A(z),p()},get customAnchor(){return y()},set customAnchor(z=null){y(z),p()},get enabled(){return x()},set enabled(z){x(z),p()},get tooltip(){return k()},set tooltip(z=!1){k(z),p()},$set:Ee,$on:(z,Y)=>Oe(e,z,Y)},j=ue(),$=se(j);return ye($,()=>n()??xe,()=>({props:R.props,wrapperProps:w(M)})),Z(t,j),_e(K)}function Kf(t,e){if(new.target)return Te({component:Kf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"onPlaced",7);hp(()=>{r()?.()});var o={get content(){return n()},set content(a){n(a),p()},get onPlaced(){return r()},set onPlaced(a){r(a),p()},$set:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe,()=>({props:{},wrapperProps:{}})),Z(t,i),_e(o)}var Jb=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function jf(t,e){if(new.target)return Te({component:jf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"isStatic",7,!1),o=h(e,"onPlaced",7),i=Cr(e,Jb);var s={get content(){return n()},set content(f){n(f),p()},get isStatic(){return r()},set isStatic(f=!1){r(f),p()},get onPlaced(){return o()},set onPlaced(f){o(f),p()},$set:Ee,$on:(f,g)=>Oe(e,f,g)},a=ue(),c=se(a);{var u=f=>{Kf(f,{get content(){return n()},get onPlaced(){return o()}})},d=f=>{Hf(f,So({get content(){return n()},get onPlaced(){return o()}},()=>i))};Ne(c,f=>{r()?f(u):f(d,-1)})}return Z(t,a),_e(s)}var Qb=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),$b=Ke("<!> <!>",1);function Hc(t,e){if(new.target)return Te({component:Hc,...t});Pe(e,!0);let n=h(e,"popper",7),r=h(e,"onEscapeKeydown",7),o=h(e,"escapeKeydownBehavior",7),i=h(e,"preventOverflowTextSelection",7),s=h(e,"id",7),a=h(e,"onPointerDown",7),c=h(e,"onPointerUp",7),u=h(e,"side",7),d=h(e,"sideOffset",7),f=h(e,"align",7),g=h(e,"alignOffset",7),b=h(e,"arrowPadding",7),v=h(e,"avoidCollisions",7),m=h(e,"collisionBoundary",7),E=h(e,"collisionPadding",7),T=h(e,"sticky",7),O=h(e,"hideWhenDetached",7),A=h(e,"updatePositionStrategy",7),y=h(e,"strategy",7),x=h(e,"dir",7),k=h(e,"preventScroll",7),R=h(e,"wrapperId",7),M=h(e,"style",7),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=h(e,"ref",7),be=h(e,"tooltip",7,!1),W=h(e,"contentPointerEvents",7,"auto"),Me=Cr(e,Qb);const pe=U(()=>k()??!0),ve=U(()=>y()??(w(pe)?"fixed":"absolute"));var we={get popper(){return n()},set popper(S){n(S),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(S){r(S),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(S){o(S),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(S){i(S),p()},get id(){return s()},set id(S){s(S),p()},get onPointerDown(){return a()},set onPointerDown(S){a(S),p()},get onPointerUp(){return c()},set onPointerUp(S){c(S),p()},get side(){return u()},set side(S){u(S),p()},get sideOffset(){return d()},set sideOffset(S){d(S),p()},get align(){return f()},set align(S){f(S),p()},get alignOffset(){return g()},set alignOffset(S){g(S),p()},get arrowPadding(){return b()},set arrowPadding(S){b(S),p()},get avoidCollisions(){return v()},set avoidCollisions(S){v(S),p()},get collisionBoundary(){return m()},set collisionBoundary(S){m(S),p()},get collisionPadding(){return E()},set collisionPadding(S){E(S),p()},get sticky(){return T()},set sticky(S){T(S),p()},get hideWhenDetached(){return O()},set hideWhenDetached(S){O(S),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(S){A(S),p()},get strategy(){return y()},set strategy(S){y(S),p()},get dir(){return x()},set dir(S){x(S),p()},get preventScroll(){return k()},set preventScroll(S){k(S),p()},get wrapperId(){return R()},set wrapperId(S){R(S),p()},get style(){return M()},set style(S){M(S),p()},get onPlaced(){return K()},set onPlaced(S){K(S),p()},get onInteractOutside(){return j()},set onInteractOutside(S){j(S),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(S){$(S),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(S){z(S),p()},get onFocusOutside(){return Y()},set onFocusOutside(S){Y(S),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(S="close"){B(S),p()},get loop(){return J()},set loop(S){J(S),p()},get trapFocus(){return re()},set trapFocus(S=!0){re(S),p()},get isValidEvent(){return ee()},set isValidEvent(S=()=>!1){ee(S),p()},get customAnchor(){return ie()},set customAnchor(S=null){ie(S),p()},get isStatic(){return he()},set isStatic(S=!1){he(S),p()},get enabled(){return _()},set enabled(S){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get tooltip(){return be()},set tooltip(S=!1){be(S),p()},get contentPointerEvents(){return W()},set contentPointerEvents(S="auto"){W(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)};return jf(t,{get isStatic(){return he()},get id(){return s()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return g()},get arrowPadding(){return b()},get avoidCollisions(){return v()},get collisionBoundary(){return m()},get collisionPadding(){return E()},get sticky(){return T()},get hideWhenDetached(){return O()},get updatePositionStrategy(){return A()},get strategy(){return w(ve)},get dir(){return x()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return K()},get customAnchor(){return ie()},get enabled(){return _()},get tooltip(){return be()},content:(ae,H)=>{let Re=()=>(H?.()).props,rt=()=>(H?.()).wrapperProps;var ht=$b(),Ge=se(ht);{var qe=ge=>{Zl(ge,{get preventScroll(){return w(pe)}})},ze=ge=>{Zl(ge,{get preventScroll(){return w(pe)}})};Ne(Ge,ge=>{e.forceMount&&_()?ge(qe):e.forceMount||ge(ze,1)})}var pt=mn(Ge,2);{const ge=(Dt,Ft)=>{let Xn=()=>(Ft?.()).props;Cf(Dt,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get enabled(){return _()},get ref(){return de()},children:(Lt,xn)=>{wf(Lt,{get id(){return s()},get onInteractOutside(){return j()},get onFocusOutside(){return Y()},get interactOutsideBehavior(){return B()},get isValidEvent(){return ee()},get enabled(){return _()},get ref(){return de()},children:(St,Xe)=>{let it=()=>(Xe?.()).props;Of(St,{get id(){return s()},get preventOverflowTextSelection(){return i()},get onPointerDown(){return a()},get onPointerUp(){return c()},get enabled(){return _()},get ref(){return de()},children:(nn,ol)=>{var ms=ue(),il=se(ms);{let sl=U(()=>({props:Zt(Me,Re(),it(),Xn(),{style:{pointerEvents:W()}}),wrapperProps:rt()}));ye(il,()=>n()??xe,()=>w(sl))}Z(nn,ms)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};let Ye=U(()=>_()&&!be());Tf(pt,{get onOpenAutoFocus(){return z()},get onCloseAutoFocus(){return $()},get loop(){return J()},get enabled(){return w(Ye)},get trapFocus(){return re()},get forceMount(){return e.forceMount},get ref(){return de()},focusScope:ge,$$slots:{focusScope:!0}})}Z(ae,ht)},$$slots:{content:!0}}),_e(we)}var ev=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function Gf(t,e){if(new.target)return Te({component:Gf,...t});Pe(e,!0);let n=h(e,"popper",7),r=h(e,"open",7),o=h(e,"onEscapeKeydown",7),i=h(e,"escapeKeydownBehavior",7),s=h(e,"preventOverflowTextSelection",7),a=h(e,"id",7),c=h(e,"onPointerDown",7),u=h(e,"onPointerUp",7),d=h(e,"side",7),f=h(e,"sideOffset",7),g=h(e,"align",7),b=h(e,"alignOffset",7),v=h(e,"arrowPadding",7),m=h(e,"avoidCollisions",7),E=h(e,"collisionBoundary",7),T=h(e,"collisionPadding",7),O=h(e,"sticky",7),A=h(e,"hideWhenDetached",7),y=h(e,"updatePositionStrategy",7),x=h(e,"strategy",7),k=h(e,"dir",7),R=h(e,"preventScroll",7),M=h(e,"wrapperId",7),K=h(e,"style",7),j=h(e,"onPlaced",7),$=h(e,"onInteractOutside",7),z=h(e,"onCloseAutoFocus",7),Y=h(e,"onOpenAutoFocus",7),B=h(e,"onFocusOutside",7),J=h(e,"interactOutsideBehavior",7,"close"),re=h(e,"loop",7),ee=h(e,"trapFocus",7,!0),ie=h(e,"isValidEvent",7,()=>!1),he=h(e,"customAnchor",7,null),_=h(e,"isStatic",7,!1),de=h(e,"ref",7),be=h(e,"shouldRender",7),W=Cr(e,ev);var Me={get popper(){return n()},set popper(S){n(S),p()},get open(){return r()},set open(S){r(S),p()},get onEscapeKeydown(){return o()},set onEscapeKeydown(S){o(S),p()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(S){i(S),p()},get preventOverflowTextSelection(){return s()},set preventOverflowTextSelection(S){s(S),p()},get id(){return a()},set id(S){a(S),p()},get onPointerDown(){return c()},set onPointerDown(S){c(S),p()},get onPointerUp(){return u()},set onPointerUp(S){u(S),p()},get side(){return d()},set side(S){d(S),p()},get sideOffset(){return f()},set sideOffset(S){f(S),p()},get align(){return g()},set align(S){g(S),p()},get alignOffset(){return b()},set alignOffset(S){b(S),p()},get arrowPadding(){return v()},set arrowPadding(S){v(S),p()},get avoidCollisions(){return m()},set avoidCollisions(S){m(S),p()},get collisionBoundary(){return E()},set collisionBoundary(S){E(S),p()},get collisionPadding(){return T()},set collisionPadding(S){T(S),p()},get sticky(){return O()},set sticky(S){O(S),p()},get hideWhenDetached(){return A()},set hideWhenDetached(S){A(S),p()},get updatePositionStrategy(){return y()},set updatePositionStrategy(S){y(S),p()},get strategy(){return x()},set strategy(S){x(S),p()},get dir(){return k()},set dir(S){k(S),p()},get preventScroll(){return R()},set preventScroll(S){R(S),p()},get wrapperId(){return M()},set wrapperId(S){M(S),p()},get style(){return K()},set style(S){K(S),p()},get onPlaced(){return j()},set onPlaced(S){j(S),p()},get onInteractOutside(){return $()},set onInteractOutside(S){$(S),p()},get onCloseAutoFocus(){return z()},set onCloseAutoFocus(S){z(S),p()},get onOpenAutoFocus(){return Y()},set onOpenAutoFocus(S){Y(S),p()},get onFocusOutside(){return B()},set onFocusOutside(S){B(S),p()},get interactOutsideBehavior(){return J()},set interactOutsideBehavior(S="close"){J(S),p()},get loop(){return re()},set loop(S){re(S),p()},get trapFocus(){return ee()},set trapFocus(S=!0){ee(S),p()},get isValidEvent(){return ie()},set isValidEvent(S=()=>!1){ie(S),p()},get customAnchor(){return he()},set customAnchor(S=null){he(S),p()},get isStatic(){return _()},set isStatic(S=!1){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get shouldRender(){return be()},set shouldRender(S){be(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)},pe=ue(),ve=se(pe);{var we=S=>{Hc(S,So({get popper(){return n()},get onEscapeKeydown(){return o()},get escapeKeydownBehavior(){return i()},get preventOverflowTextSelection(){return s()},get id(){return a()},get onPointerDown(){return c()},get onPointerUp(){return u()},get side(){return d()},get sideOffset(){return f()},get align(){return g()},get alignOffset(){return b()},get arrowPadding(){return v()},get avoidCollisions(){return m()},get collisionBoundary(){return E()},get collisionPadding(){return T()},get sticky(){return O()},get hideWhenDetached(){return A()},get updatePositionStrategy(){return y()},get strategy(){return x()},get dir(){return k()},get preventScroll(){return R()},get wrapperId(){return M()},get style(){return K()},get onPlaced(){return j()},get customAnchor(){return he()},get isStatic(){return _()},get enabled(){return r()},get onInteractOutside(){return $()},get onCloseAutoFocus(){return z()},get onOpenAutoFocus(){return Y()},get interactOutsideBehavior(){return J()},get loop(){return re()},get trapFocus(){return ee()},get isValidEvent(){return ie()},get onFocusOutside(){return B()},forceMount:!1,get ref(){return de()}},()=>W))};Ne(ve,S=>{be()&&S(we)})}return Z(t,pe),_e(Me)}var tv=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function qf(t,e){if(new.target)return Te({component:qf,...t});Pe(e,!0);let n=h(e,"popper",7),r=h(e,"onEscapeKeydown",7),o=h(e,"escapeKeydownBehavior",7),i=h(e,"preventOverflowTextSelection",7),s=h(e,"id",7),a=h(e,"onPointerDown",7),c=h(e,"onPointerUp",7),u=h(e,"side",7),d=h(e,"sideOffset",7),f=h(e,"align",7),g=h(e,"alignOffset",7),b=h(e,"arrowPadding",7),v=h(e,"avoidCollisions",7),m=h(e,"collisionBoundary",7),E=h(e,"collisionPadding",7),T=h(e,"sticky",7),O=h(e,"hideWhenDetached",7),A=h(e,"updatePositionStrategy",7),y=h(e,"strategy",7),x=h(e,"dir",7),k=h(e,"preventScroll",7),R=h(e,"wrapperId",7),M=h(e,"style",7),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=Cr(e,tv);var be={get popper(){return n()},set popper(W){n(W),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(W){r(W),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(W){o(W),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(W){i(W),p()},get id(){return s()},set id(W){s(W),p()},get onPointerDown(){return a()},set onPointerDown(W){a(W),p()},get onPointerUp(){return c()},set onPointerUp(W){c(W),p()},get side(){return u()},set side(W){u(W),p()},get sideOffset(){return d()},set sideOffset(W){d(W),p()},get align(){return f()},set align(W){f(W),p()},get alignOffset(){return g()},set alignOffset(W){g(W),p()},get arrowPadding(){return b()},set arrowPadding(W){b(W),p()},get avoidCollisions(){return v()},set avoidCollisions(W){v(W),p()},get collisionBoundary(){return m()},set collisionBoundary(W){m(W),p()},get collisionPadding(){return E()},set collisionPadding(W){E(W),p()},get sticky(){return T()},set sticky(W){T(W),p()},get hideWhenDetached(){return O()},set hideWhenDetached(W){O(W),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(W){A(W),p()},get strategy(){return y()},set strategy(W){y(W),p()},get dir(){return x()},set dir(W){x(W),p()},get preventScroll(){return k()},set preventScroll(W){k(W),p()},get wrapperId(){return R()},set wrapperId(W){R(W),p()},get style(){return M()},set style(W){M(W),p()},get onPlaced(){return K()},set onPlaced(W){K(W),p()},get onInteractOutside(){return j()},set onInteractOutside(W){j(W),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(W){$(W),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(W){z(W),p()},get onFocusOutside(){return Y()},set onFocusOutside(W){Y(W),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(W="close"){B(W),p()},get loop(){return J()},set loop(W){J(W),p()},get trapFocus(){return re()},set trapFocus(W=!0){re(W),p()},get isValidEvent(){return ee()},set isValidEvent(W=()=>!1){ee(W),p()},get customAnchor(){return ie()},set customAnchor(W=null){ie(W),p()},get isStatic(){return he()},set isStatic(W=!1){he(W),p()},get enabled(){return _()},set enabled(W){_(W),p()},$set:Ee,$on:(W,Me)=>Oe(e,W,Me)};return Hc(t,So({get popper(){return n()},get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get preventOverflowTextSelection(){return i()},get id(){return s()},get onPointerDown(){return a()},get onPointerUp(){return c()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return g()},get arrowPadding(){return b()},get avoidCollisions(){return v()},get collisionBoundary(){return m()},get collisionPadding(){return E()},get sticky(){return T()},get hideWhenDetached(){return O()},get updatePositionStrategy(){return A()},get strategy(){return y()},get dir(){return x()},get preventScroll(){return k()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return K()},get customAnchor(){return ie()},get isStatic(){return he()},get enabled(){return _()},get onInteractOutside(){return j()},get onCloseAutoFocus(){return $()},get onOpenAutoFocus(){return z()},get interactOutsideBehavior(){return B()},get loop(){return J()},get trapFocus(){return re()},get isValidEvent(){return ee()},get onFocusOutside(){return Y()}},()=>de,{forceMount:!0})),_e(be)}function pl(t,e){const[n,r]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[c,u]=e[s]??[0,0],[d,f]=e[a]??[0,0];u>=r!=f>=r&&n<=(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function gl(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function id(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,i=e.top+e.height/2,s=o-n,a=i-r;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}var Ln,qr,Yr,jt,ut,fr,hr,Bn,zn,fe,Bs,rc,oc,Yf,Xf,Vt,ic,Zf,Jf;class nv{constructor(e){C(this,fe);C(this,Ln);C(this,qr);C(this,Yr);C(this,jt,null);C(this,ut,null);C(this,fr,[]);C(this,hr,null);C(this,Bn,null);C(this,zn,null);I(this,Ln,e),I(this,qr,e.buffer??1);const n=e.transitIntentTimeout;I(this,Yr,typeof n=="number"&&n>0?n:null),ke([e.triggerNode,e.contentNode,e.enabled],([r,o,i])=>{if(!r||!o||!i){I(this,hr,null),F(this,fe,Vt).call(this);return}l(this,hr)&&l(this,hr)!==r&&F(this,fe,Vt).call(this),I(this,hr,r);const s=oo(r),a=g=>{F(this,fe,Xf).call(this,[g.clientX,g.clientY],r,o)},c=g=>{const b=g.relatedTarget;if(It(b)&&o.contains(b))return;const v=l(this,Ln).ignoredTargets?.()??[];It(b)&&v.some(m=>m===b||m.contains(b))||(I(this,fr,It(b)&&v.length>0?v.filter(m=>b.contains(m)):[]),I(this,jt,[g.clientX,g.clientY]),I(this,ut,"content"),F(this,fe,rc).call(this))},u=()=>{F(this,fe,Vt).call(this)},d=()=>{F(this,fe,Vt).call(this)},f=g=>{const b=g.relatedTarget;It(b)&&r.contains(b)||(I(this,jt,[g.clientX,g.clientY]),I(this,ut,"trigger"),F(this,fe,rc).call(this))};return[Ie(s,"pointermove",a),Ie(r,"pointerleave",c),Ie(r,"pointerenter",u),Ie(o,"pointerenter",d),Ie(o,"pointerleave",f)].reduce((g,b)=>()=>{g(),b()},()=>{})})}}Ln=new WeakMap,qr=new WeakMap,Yr=new WeakMap,jt=new WeakMap,ut=new WeakMap,fr=new WeakMap,hr=new WeakMap,Bn=new WeakMap,zn=new WeakMap,fe=new WeakSet,Bs=function(){l(this,Bn)!==null&&(cancelAnimationFrame(l(this,Bn)),I(this,Bn,null))},rc=function(){F(this,fe,Bs).call(this),I(this,Bn,requestAnimationFrame(()=>{I(this,Bn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())}))},oc=function(){l(this,zn)!==null&&(clearTimeout(l(this,zn)),I(this,zn,null))},Yf=function(){l(this,Yr)!==null&&(F(this,fe,oc).call(this),I(this,zn,window.setTimeout(()=>{I(this,zn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},l(this,Yr))))},Xf=function(e,n,r){if(!l(this,jt)||!l(this,ut))return;F(this,fe,Bs).call(this),F(this,fe,Yf).call(this);const o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(l(this,ut)==="content"&&gl(e,i)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="trigger"&&gl(e,o)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="content"&&l(this,fr).length>0)for(const d of l(this,fr)){const f=d.getBoundingClientRect();if(gl(e,f))return;const g=id(o,f),b=F(this,fe,ic).call(this,o,f,g);if(b&&pl(e,b))return}const s=id(o,i),a=F(this,fe,ic).call(this,o,i,s);if(a&&pl(e,a))return;const c=l(this,ut)==="content"?i:o,u=F(this,fe,Zf).call(this,l(this,jt),c,s,l(this,ut));pl(e,u)||(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},Vt=function(){I(this,jt,null),I(this,ut,null),I(this,fr,[]),F(this,fe,Bs).call(this),F(this,fe,oc).call(this)},ic=function(e,n,r){const o=l(this,qr);switch(r){case"top":return[[Math.min(e.left,n.left)-o,e.top],[Math.min(e.left,n.left)-o,n.bottom],[Math.max(e.right,n.right)+o,n.bottom],[Math.max(e.right,n.right)+o,e.top]];case"bottom":return[[Math.min(e.left,n.left)-o,e.bottom],[Math.min(e.left,n.left)-o,n.top],[Math.max(e.right,n.right)+o,n.top],[Math.max(e.right,n.right)+o,e.bottom]];case"left":return[[e.left,Math.min(e.top,n.top)-o],[n.right,Math.min(e.top,n.top)-o],[n.right,Math.max(e.bottom,n.bottom)+o],[e.left,Math.max(e.bottom,n.bottom)+o]];case"right":return[[e.right,Math.min(e.top,n.top)-o],[n.left,Math.min(e.top,n.top)-o],[n.left,Math.max(e.bottom,n.bottom)+o],[e.right,Math.max(e.bottom,n.bottom)+o]]}},Zf=function(e,n,r,o){const i=l(this,qr)*4,[s,a]=e;switch(o==="trigger"?F(this,fe,Jf).call(this,r):r){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}},Jf=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};var Wi,Ui,Vn,Hi,ac;class sc{constructor(e,n){C(this,Hi);C(this,Wi);C(this,Ui);C(this,Vn,null);I(this,Ui,e),I(this,Wi,n),this.stop=this.stop.bind(this),this.start=this.start.bind(this),wn(this.stop)}stop(){F(this,Hi,ac).call(this)}start(...e){F(this,Hi,ac).call(this),I(this,Vn,window.setTimeout(()=>{I(this,Vn,null),l(this,Ui).call(this,...e)},l(this,Wi)))}}Wi=new WeakMap,Ui=new WeakMap,Vn=new WeakMap,Hi=new WeakSet,ac=function(){l(this,Vn)!==null&&(window.clearTimeout(l(this,Vn)),I(this,Vn,null))};const Qf=Vd({component:"tooltip",parts:["content","trigger"]}),$f=new xt("Tooltip.Provider"),Kc=new xt("Tooltip.Root");var Ki,ji,Gi,qi,Yi;class eh{constructor(){C(this,Ki,oe(Hn(new Map)));C(this,ji,oe(null));C(this,Gi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null}));C(this,qi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null}));P(this,"register",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Yi).call(this)});P(this,"update",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Yi).call(this)});P(this,"unregister",e=>{if(!this.triggers.has(e))return;const n=new Map(this.triggers);n.delete(e),this.triggers=n,this.activeTriggerId===e&&(this.activeTriggerId=null)});P(this,"setActiveTrigger",e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e});P(this,"get",e=>this.triggers.get(e));P(this,"has",e=>this.triggers.has(e));P(this,"getFirstTriggerId",()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]});C(this,Yi,()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))})}get triggers(){return w(l(this,Ki))}set triggers(e){N(l(this,Ki),e,!0)}get activeTriggerId(){return w(l(this,ji))}set activeTriggerId(e){N(l(this,ji),e,!0)}get activeTriggerNode(){return w(l(this,Gi))}set activeTriggerNode(e){N(l(this,Gi),e)}get activePayload(){return w(l(this,qi))}set activePayload(e){N(l(this,qi),e)}}Ki=new WeakMap,ji=new WeakMap,Gi=new WeakMap,qi=new WeakMap,Yi=new WeakMap;var Xi;class rv{constructor(){P(this,"registry",new eh);C(this,Xi,oe(null))}get root(){return w(l(this,Xi))}set root(e){N(l(this,Xi),e,!0)}}Xi=new WeakMap;var Gt;class ov{constructor(){C(this,Gt,new rv)}get state(){return l(this,Gt)}open(e){l(this,Gt).registry.has(e)&&(l(this,Gt).registry.setActiveTrigger(e),l(this,Gt).root?.setActiveTrigger(e),l(this,Gt).root?.handleOpen())}close(){l(this,Gt).root?.handleClose()}get isOpen(){return l(this,Gt).root?.opts.open.current??!1}}Gt=new WeakMap;function iv(){return new ov}var Zi,Xr,Et,Ma,Ra;const gu=class gu{constructor(e){P(this,"opts");C(this,Zi,oe(!0));P(this,"isPointerInTransit",Ct(!1));C(this,Xr);C(this,Et,oe(null));C(this,Ma,()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else l(this,Xr).start()});C(this,Ra,()=>{l(this,Xr).stop()});P(this,"onOpen",e=>{w(l(this,Et))&&w(l(this,Et))!==e&&w(l(this,Et)).handleClose(),l(this,Ra).call(this),this.isOpenDelayed=!1,N(l(this,Et),e,!0)});P(this,"onClose",e=>{w(l(this,Et))===e&&(N(l(this,Et),null),l(this,Ma).call(this))});P(this,"isTooltipOpen",e=>w(l(this,Et))===e);this.opts=e,I(this,Xr,new sc(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)),Ec(()=>Ie(window,"scroll",n=>{const r=w(l(this,Et));if(!r)return;const o=r.triggerNode;if(!o)return;const i=n.target;(i instanceof Element||i instanceof Document)&&i.contains(o)&&r.handleClose()}))}static create(e){return $f.set(new gu(e))}get isOpenDelayed(){return w(l(this,Zi))}set isOpenDelayed(e){N(l(this,Zi),e,!0)}};Zi=new WeakMap,Xr=new WeakMap,Et=new WeakMap,Ma=new WeakMap,Ra=new WeakMap;let lc=gu;var Ji,Qi,$i,es,ts,ns,Wn,qt,rs,Na;const mu=class mu{constructor(e,n){P(this,"opts");P(this,"provider");C(this,Ji,U(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current));C(this,Qi,U(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current));C(this,$i,U(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current));C(this,es,U(()=>this.opts.disabled.current??this.provider.opts.disabled.current));C(this,ts,U(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current));P(this,"registry");P(this,"tether");C(this,ns,oe(null));P(this,"contentPresence");C(this,Wn,oe(!1));C(this,qt);C(this,rs,U(()=>this.opts.open.current?w(l(this,Wn))?"delayed-open":"instant-open":"closed"));P(this,"handleOpen",()=>{l(this,qt).stop(),N(l(this,Wn),!1),this.ensureActiveTrigger(),this.opts.open.current=!0});P(this,"handleClose",()=>{l(this,qt).stop(),this.opts.open.current=!1});C(this,Na,()=>{l(this,qt).stop();const e=!this.provider.isOpenDelayed,n=this.delayDuration??0;e||n===0?(N(l(this,Wn),!1),this.opts.open.current=!0):l(this,qt).start()});P(this,"onTriggerEnter",e=>{this.setActiveTrigger(e),l(this,Na).call(this)});P(this,"onTriggerLeave",()=>{this.disableHoverableContent?this.handleClose():l(this,qt).stop()});P(this,"ensureActiveTrigger",()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)});P(this,"setActiveTrigger",e=>{this.registry.setActiveTrigger(e)});P(this,"registerTrigger",e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"updateTrigger",e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"unregisterTrigger",e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()});P(this,"isActiveTrigger",e=>this.registry.activeTriggerId===e);this.opts=e,this.provider=n,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new eh,I(this,qt,new sc(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration??0)),this.tether&&(this.tether.root=this,Ec(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new Gd({open:this.opts.open,ref:G(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ke(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&I(this,qt,new sc(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration))}),ke(()=>this.opts.open.current,r=>{r?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),ke(()=>this.opts.triggerId.current,r=>{r!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(r)}),ke(()=>this.registry.activeTriggerId,r=>{this.opts.triggerId.current!==r&&(this.opts.triggerId.current=r)})}static create(e){return Kc.set(new mu(e,$f.get()))}get delayDuration(){return w(l(this,Ji))}set delayDuration(e){N(l(this,Ji),e)}get disableHoverableContent(){return w(l(this,Qi))}set disableHoverableContent(e){N(l(this,Qi),e)}get disableCloseOnTriggerClick(){return w(l(this,$i))}set disableCloseOnTriggerClick(e){N(l(this,$i),e)}get disabled(){return w(l(this,es))}set disabled(e){N(l(this,es),e)}get ignoreNonKeyboardFocus(){return w(l(this,ts))}set ignoreNonKeyboardFocus(e){N(l(this,ts),e)}get contentNode(){return w(l(this,ns))}set contentNode(e){N(l(this,ns),e,!0)}get stateAttr(){return w(l(this,rs))}set stateAttr(e){N(l(this,rs),e)}get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}};Ji=new WeakMap,Qi=new WeakMap,$i=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,Wn=new WeakMap,qt=new WeakMap,rs=new WeakMap,Na=new WeakMap;let cc=mu;var pr,Ot,gr,Zr,Yt,dt,yt,Un,Jr,Da,Fa,La,Ba,za,Va,Wa,Ua,os;const Ha=class Ha{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"tether");P(this,"attachment");C(this,pr,Ct(!1));C(this,Ot,oe(!1));P(this,"domContext");C(this,gr,null);C(this,Zr,!1);C(this,Yt,null);C(this,dt,()=>this.tether?.root??this.root);C(this,yt,()=>{const e=l(this,dt).call(this);return this.opts.disabled.current||!!e?.disabled});C(this,Un,e=>{if(!l(this,Zr))return;const n=this.opts.id.current,r=this.opts.payload.current,o=this.opts.disabled.current;if(l(this,Yt)&&l(this,Yt)!==n){const a=l(this,dt).call(this);this.tether?this.tether.registry.unregister(l(this,Yt)):a?.unregisterTrigger(l(this,Yt))}const i={id:n,node:e,payload:r,disabled:o},s=l(this,dt).call(this);this.tether?(this.tether.registry.has(n)?this.tether.registry.update(i):this.tether.registry.register(i),o&&this.tether.registry.activeTriggerId===n&&s?.opts.open.current&&s.handleClose()):s?.registry.has(n)?s.updateTrigger(i):s?.registerTrigger(i),I(this,Yt,n)});C(this,Jr,()=>{l(this,gr)!==null&&(clearTimeout(l(this,gr)),I(this,gr,null))});P(this,"handlePointerUp",()=>{l(this,pr).current=!1});C(this,Da,()=>{l(this,yt).call(this)||(l(this,pr).current=!1)});C(this,Fa,()=>{l(this,yt).call(this)||(l(this,pr).current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))});C(this,La,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){l(this,Jr).call(this),I(this,gr,window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0))},250));return}n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)}}});C(this,Ba,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(w(l(this,Ot))||(l(this,Jr).call(this),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)))}});C(this,za,e=>{const n=l(this,dt).call(this);if(!n||l(this,yt).call(this))return;if(l(this,Jr).call(this),!n.isActiveTrigger(this.opts.id.current)){N(l(this,Ot),!1);return}const r=e.relatedTarget;if(It(r)){for(const o of n.registry.triggers.values())if(o.node===r){if(n.provider.opts.skipDelayDuration.current>0){N(l(this,Ot),!1);return}n.handleClose(),N(l(this,Ot),!1);return}}n.onTriggerLeave(),N(l(this,Ot),!1)});C(this,Va,e=>{const n=l(this,dt).call(this);if(n&&!l(this,pr).current){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!Yg(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}});C(this,Wa,()=>{const e=l(this,dt).call(this);!e||l(this,yt).call(this)||e.handleClose()});C(this,Ua,()=>{const e=l(this,dt).call(this);!e||e.disableCloseOnTriggerClick||l(this,yt).call(this)||e.handleClose()});C(this,os,U(()=>{const e=l(this,dt).call(this),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),r=l(this,yt).call(this);return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":Ya(r),"data-delay-duration":`${e?.delayDuration??0}`,[Qf.trigger]:"",tabindex:r?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:l(this,Da),onpointerdown:l(this,Fa),onpointerenter:l(this,La),onpointermove:l(this,Ba),onpointerleave:l(this,za),onfocus:l(this,Va),onblur:l(this,Wa),onclick:l(this,Ua),...this.attachment}}));this.opts=e,this.root=n,this.tether=r,this.domContext=new qa(e.ref),this.attachment=ft(this.opts.ref,o=>l(this,Un).call(this,o)),ke(()=>this.opts.id.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.payload.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.disabled.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Ec(()=>(I(this,Zr,!0),l(this,Un).call(this,this.opts.ref.current),()=>{const o=l(this,dt).call(this),i=l(this,Yt);i&&(this.tether?this.tether.registry.unregister(i):o?.unregisterTrigger(i)),I(this,Yt,null),I(this,Zr,!1)}))}static create(e){return e.tether.current?new Ha(e,null,e.tether.current.state):new Ha(e,Kc.get(),null)}get props(){return w(l(this,os))}set props(e){N(l(this,os),e)}};pr=new WeakMap,Ot=new WeakMap,gr=new WeakMap,Zr=new WeakMap,Yt=new WeakMap,dt=new WeakMap,yt=new WeakMap,Un=new WeakMap,Jr=new WeakMap,Da=new WeakMap,Fa=new WeakMap,La=new WeakMap,Ba=new WeakMap,za=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,os=new WeakMap;let uc=Ha;var is,ss;const bu=class bu{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");P(this,"onInteractOutside",e=>{if(It(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onOpenAutoFocus",e=>{e.preventDefault()});P(this,"onCloseAutoFocus",e=>{e.preventDefault()});C(this,is,U(()=>({open:this.root.opts.open.current})));C(this,ss,U(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Ya(this.root.disabled),...Bd(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Qf.content]:"",...this.attachment})));P(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus});this.opts=e,this.root=n,this.attachment=ft(this.opts.ref,r=>this.root.contentNode=r),new nv({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const r=[],o=this.root.triggerNode;for(const i of this.root.registry.triggers.values())i.node&&i.node!==o&&r.push(i.node);return r},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}static create(e){return new bu(e,Kc.get())}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return w(l(this,is))}set snippetProps(e){N(l(this,is),e)}get props(){return w(l(this,ss))}set props(e){N(l(this,ss),e)}};is=new WeakMap,ss=new WeakMap;let dc=bu;function th(t,e){if(new.target)return Te({component:th,...t});Pe(e,!0);let n=h(e,"open",15,!1),r=h(e,"triggerId",15,null),o=h(e,"onOpenChange",7,me),i=h(e,"onOpenChangeComplete",7,me),s=h(e,"disabled",7),a=h(e,"delayDuration",7),c=h(e,"disableCloseOnTriggerClick",7),u=h(e,"disableHoverableContent",7),d=h(e,"ignoreNonKeyboardFocus",7),f=h(e,"tether",7),g=h(e,"children",7);const b=cc.create({open:G(()=>n(),m=>{n(m),o()(m)}),triggerId:G(()=>r(),m=>{r(m)}),delayDuration:G(()=>a()),disableCloseOnTriggerClick:G(()=>c()),disableHoverableContent:G(()=>u()),ignoreNonKeyboardFocus:G(()=>d()),disabled:G(()=>s()),onOpenChangeComplete:G(()=>i()),tether:G(()=>f())});var v={get open(){return n()},set open(m=!1){n(m),p()},get triggerId(){return r()},set triggerId(m=null){r(m),p()},get onOpenChange(){return o()},set onOpenChange(m=me){o(m),p()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(m=me){i(m),p()},get disabled(){return s()},set disabled(m){s(m),p()},get delayDuration(){return a()},set delayDuration(m){a(m),p()},get disableCloseOnTriggerClick(){return c()},set disableCloseOnTriggerClick(m){c(m),p()},get disableHoverableContent(){return u()},set disableHoverableContent(m){u(m),p()},get ignoreNonKeyboardFocus(){return d()},set ignoreNonKeyboardFocus(m){d(m),p()},get tether(){return f()},set tether(m){f(m),p()},get children(){return g()},set children(m){g(m),p()},$set:Ee,$on:(m,E)=>Oe(e,m,E)};return Uf(t,{tooltip:!0,children:(m,E)=>{var T=ue(),O=se(T);ye(O,()=>g()??xe,()=>({open:b.opts.open.current,triggerId:b.activeTriggerId,payload:b.activePayload})),Z(m,T)},$$slots:{default:!0}}),_e(v)}var sv=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),sd=Ke("<div><div><!></div></div>");function nh(t,e){const n=Sc();if(new.target)return Te({component:nh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>js(n)),s=h(e,"ref",15,null),a=h(e,"side",7,"top"),c=h(e,"sideOffset",7,0),u=h(e,"align",7,"center"),d=h(e,"avoidCollisions",7,!0),f=h(e,"arrowPadding",7,0),g=h(e,"sticky",7,"partial"),b=h(e,"strategy",7),v=h(e,"hideWhenDetached",7,!1),m=h(e,"customAnchor",7),E=h(e,"collisionPadding",7,0),T=h(e,"onInteractOutside",7,me),O=h(e,"onEscapeKeydown",7,me),A=h(e,"forceMount",7,!1),y=h(e,"style",7),x=Cr(e,sv);const k=dc.create({id:G(()=>i()),ref:G(()=>s(),B=>s(B)),onInteractOutside:G(()=>T()),onEscapeKeydown:G(()=>O())}),R=U(()=>({side:a(),sideOffset:c(),align:u(),avoidCollisions:d(),arrowPadding:f(),sticky:g(),hideWhenDetached:v(),collisionPadding:E(),strategy:b(),customAnchor:m()??k.root.triggerNode})),M=U(()=>Zt(x,w(R),k.props));var K={get children(){return r()},set children(B){r(B),p()},get child(){return o()},set child(B){o(B),p()},get id(){return i()},set id(B=js(n)){i(B),p()},get ref(){return s()},set ref(B=null){s(B),p()},get side(){return a()},set side(B="top"){a(B),p()},get sideOffset(){return c()},set sideOffset(B=0){c(B),p()},get align(){return u()},set align(B="center"){u(B),p()},get avoidCollisions(){return d()},set avoidCollisions(B=!0){d(B),p()},get arrowPadding(){return f()},set arrowPadding(B=0){f(B),p()},get sticky(){return g()},set sticky(B="partial"){g(B),p()},get strategy(){return b()},set strategy(B){b(B),p()},get hideWhenDetached(){return v()},set hideWhenDetached(B=!1){v(B),p()},get customAnchor(){return m()},set customAnchor(B){m(B),p()},get collisionPadding(){return E()},set collisionPadding(B=0){E(B),p()},get onInteractOutside(){return T()},set onInteractOutside(B=me){T(B),p()},get onEscapeKeydown(){return O()},set onEscapeKeydown(B=me){O(B),p()},get forceMount(){return A()},set forceMount(B=!1){A(B),p()},get style(){return y()},set style(B){y(B),p()},$set:Ee,$on:(B,J)=>Oe(e,B,J)},j=ue(),$=se(j);{var z=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:rd("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=sd();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");qf(B,So(()=>w(M),()=>k.popperProps,{get enabled(){return k.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return k.opts.ref},tooltip:!0,get shouldRender(){return k.shouldRender},get contentPointerEvents(){return w(re)},popper:J,$$slots:{popper:!0}}))}},Y=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:rd("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=sd();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");Gf(B,So(()=>w(M),()=>k.popperProps,{get open(){return k.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return k.opts.ref},tooltip:!0,get shouldRender(){return k.shouldRender},get contentPointerEvents(){return w(re)},popper:J,$$slots:{popper:!0}}))}};Ne($,B=>{A()?B(z):A()||B(Y,1)})}return Z(t,j),_e(K)}var av=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),lv=Ke("<button><!></button>");function rh(t,e){const n=Sc();if(new.target)return Te({component:rh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>js(n)),s=h(e,"disabled",7,!1),a=h(e,"payload",7),c=h(e,"tether",7),u=h(e,"type",7,"button"),d=h(e,"tabindex",7,0),f=h(e,"ref",15,null),g=Cr(e,av);const b=uc.create({id:G(()=>i()),disabled:G(()=>s()??!1),tabindex:G(()=>d()??0),payload:G(()=>a()),tether:G(()=>c()),ref:G(()=>f(),y=>f(y))}),v=U(()=>Zt(g,b.props,{type:u()}));var m={get children(){return r()},set children(y){r(y),p()},get child(){return o()},set child(y){o(y),p()},get id(){return i()},set id(y=js(n)){i(y),p()},get disabled(){return s()},set disabled(y=!1){s(y),p()},get payload(){return a()},set payload(y){a(y),p()},get tether(){return c()},set tether(y){c(y),p()},get type(){return u()},set type(y="button"){u(y),p()},get tabindex(){return d()},set tabindex(y=0){d(y),p()},get ref(){return f()},set ref(y=null){f(y),p()},$set:Ee,$on:(y,x)=>Oe(e,y,x)},E=ue(),T=se(E);{var O=y=>{var x=ue(),k=se(x);ye(k,o,()=>({props:w(v)})),Z(y,x)},A=y=>{var x=lv();Jt(x,()=>({...w(v)}));var k=He(x);ye(k,()=>r()??xe),Fe(x),Z(y,x)};Ne(T,y=>{o()?y(O):y(A,-1)})}return Z(t,E),_e(m)}function oh(t,e){if(new.target)return Te({component:oh,...t});Pe(e,!0);let n=h(e,"children",7),r=h(e,"delayDuration",7,700),o=h(e,"disableCloseOnTriggerClick",7,!1),i=h(e,"disableHoverableContent",7,!1),s=h(e,"disabled",7,!1),a=h(e,"ignoreNonKeyboardFocus",7,!1),c=h(e,"skipDelayDuration",7,300);lc.create({delayDuration:G(()=>r()),disableCloseOnTriggerClick:G(()=>o()),disableHoverableContent:G(()=>i()),disabled:G(()=>s()),ignoreNonKeyboardFocus:G(()=>a()),skipDelayDuration:G(()=>c())});var u={get children(){return n()},set children(g){n(g),p()},get delayDuration(){return r()},set delayDuration(g=700){r(g),p()},get disableCloseOnTriggerClick(){return o()},set disableCloseOnTriggerClick(g=!1){o(g),p()},get disableHoverableContent(){return i()},set disableHoverableContent(g=!1){i(g),p()},get disabled(){return s()},set disabled(g=!1){s(g),p()},get ignoreNonKeyboardFocus(){return a()},set ignoreNonKeyboardFocus(g=!1){a(g),p()},get skipDelayDuration(){return c()},set skipDelayDuration(g=300){c(g),p()},$set:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>n()??xe),Z(t,d),_e(u)}var cv=Ke("<span><!></span>");function ih(t,e){if(new.target)return Te({component:ih,...t});Pe(e,!0);let n=h(e,"triggerProps",7),r=h(e,"children",7);const o=["button","a[href]",'input:not([type="hidden"])',"select","textarea",'[role="button"]','[tabindex]:not([tabindex="-1"])'].join(","),i=["aria-describedby","data-state","data-delay-duration","data-tooltip-trigger"];let s=oe(null),a=oe(!1),c=oe(!1),u=[];const d=new WeakMap,f=U(()=>{const{disabled:y,type:x,tabindex:k,class:R,"aria-describedby":M,"data-state":K,"data-disabled":j,"data-delay-duration":$,"data-tooltip-trigger":z,...Y}=n();return Y});function g(y,x){let k=d.get(y);return k||(k=new Map,d.set(y,k)),k.has(x)||k.set(x,y.getAttribute(x)),k.get(x)??null}function b(y){for(const x of i){const k=g(y,x);x==="data-state"&&k!==null||(k===null?y.removeAttribute(x):y.setAttribute(x,k))}}function v(y){for(const x of i){const k=g(y,x);if(x==="data-state"&&k!==null)continue;const R=n()[x];if(R==null||R===!1){k===null?y.removeAttribute(x):y.setAttribute(x,k);continue}const M=R===!0?"":String(R);y.setAttribute(x,x==="aria-describedby"&&k?`${k} ${M}`:M)}}Le(()=>{if(!w(s))return;N(c,w(s).closest('[role="menu"], [role="menuitem"]')!==null);const y=Array.from(w(s).querySelectorAll(o));for(const x of u)y.includes(x)||b(x);u=y,N(a,y.length>0);for(const x of y)v(x)});function m(y){!w(a)||y.target===w(s)||n().onfocus?.(y)}function E(y){!w(a)||w(s)?.contains(y.relatedTarget)||n().onblur?.(y)}var T={get triggerProps(){return n()},set triggerProps(y){n(y),p()},get children(){return r()},set children(y){r(y),p()},$set:Ee,$on:(y,x)=>Oe(e,y,x)},O=cv();Jt(O,()=>({...w(f),class:n().class,role:w(a)||w(c)?void 0:"button",tabindex:w(a)?-1:w(c)?void 0:n().tabindex,"aria-disabled":w(a)||w(c)?void 0:n().disabled||void 0,"aria-describedby":w(a)?void 0:n()["aria-describedby"],"data-state":w(a)?void 0:n()["data-state"],"data-disabled":w(a)?void 0:n()["data-disabled"],"data-delay-duration":w(a)?void 0:n()["data-delay-duration"],"data-tooltip-trigger":w(a)?void 0:n()["data-tooltip-trigger"],onfocusin:m,onfocusout:E}));var A=He(O);return ye(A,()=>r()??xe),Fe(O),Ad(O,y=>N(s,y),()=>w(s)),Z(t,O),_e(T)}var uv=Ke("<div></div>"),dv=Ke("<div><div><!> <!></div></div>"),fv=Ke("<!> <!>",1);function sh(t,e){const n=Sc();if(new.target)return Te({component:sh,...t});Pe(e,!0);let r=h(e,"content",7,""),o=h(e,"side",7,"top"),i=h(e,"align",7,"center"),s=h(e,"sideOffset",7,4),a=h(e,"alignOffset",7,0),c=h(e,"delayDuration",7,0),u=h(e,"disableHoverableContent",7,!0),d=h(e,"disableCloseOnTriggerClick",7,!1),f=h(e,"disabled",7,!1),g=h(e,"open",15,!1),b=h(e,"onOpenChange",7),v=h(e,"portalTarget",7),m=h(e,"class",7,""),E=h(e,"contentClass",7,""),T=h(e,"arrowClass",7,""),O=h(e,"showArrow",7,!1),A=h(e,"variant",7,"default"),y=h(e,"size",7,"default"),x=h(e,"children",7),k=h(e,"trigger",7),R=h(e,"onclick",7),M=oe(null);const K=iv(),j={default:"surface-inverse",secondary:"bg-secondary text-secondary-foreground border border-border",destructive:"bg-danger text-danger-background border border-danger",outline:"bg-transparent text-foreground ring-1 ring-inset ring-border"},$={sm:"type-caption px-2 py-1",default:"type-caption px-2 py-1",lg:"type-title px-4 py-2"},z=U(()=>Kn("tooltip-motion overlay-surface z-(--layer-tooltip) w-fit max-w-xs whitespace-pre-wrap text-balance",j[A()],$[y()],E()));function Y(_){g(_),b()?.(_)}function B(_){d()||_ instanceof KeyboardEvent&&_.key!=="Enter"&&_.key!==" "||K.close()}Le(()=>{f()&&g()&&Y(!1)});let J;Le(()=>{const _=f(),de=J===!0&&!_;J=_,de&&ko(re)});function re(){if(!r()||g())return;const _=document.activeElement,de=w(M);!de?.id||!(_ instanceof HTMLElement)||!de.contains(_)||_.matches(":focus-visible")&&K.open(de.id)}var ee={get content(){return r()},set content(_=""){r(_),p()},get side(){return o()},set side(_="top"){o(_),p()},get align(){return i()},set align(_="center"){i(_),p()},get sideOffset(){return s()},set sideOffset(_=4){s(_),p()},get alignOffset(){return a()},set alignOffset(_=0){a(_),p()},get delayDuration(){return c()},set delayDuration(_=0){c(_),p()},get disableHoverableContent(){return u()},set disableHoverableContent(_=!0){u(_),p()},get disableCloseOnTriggerClick(){return d()},set disableCloseOnTriggerClick(_=!1){d(_),p()},get disabled(){return f()},set disabled(_=!1){f(_),p()},get open(){return g()},set open(_=!1){g(_),p()},get onOpenChange(){return b()},set onOpenChange(_){b(_),p()},get portalTarget(){return v()},set portalTarget(_){v(_),p()},get class(){return m()},set class(_=""){m(_),p()},get contentClass(){return E()},set contentClass(_=""){E(_),p()},get arrowClass(){return T()},set arrowClass(_=""){T(_),p()},get showArrow(){return O()},set showArrow(_=!1){O(_),p()},get variant(){return A()},set variant(_="default"){A(_),p()},get size(){return y()},set size(_="default"){y(_),p()},get children(){return x()},set children(_){x(_),p()},get trigger(){return k()},set trigger(_){k(_),p()},get onclick(){return R()},set onclick(_){R(_),p()},$set:Ee,$on:(_,de)=>Oe(e,_,de)},ie=ue(),he=se(ie);return lo(he,()=>oh,(_,de)=>{de(_,{get delayDuration(){return c()},children:(be,W)=>{var Me=ue(),pe=se(Me);lo(pe,()=>th,(ve,we)=>{we(ve,{onOpenChange:Y,get delayDuration(){return c()},get disableHoverableContent(){return u()},get disableCloseOnTriggerClick(){return d()},get tether(){return K},get open(){return g()},set open(S){g(S)},children:(S,ae)=>{var H=fv(),Re=se(H);{const Ge=(ze,pt)=>{let ge=()=>(pt?.()).props;ih(ze,{get triggerProps(){return ge()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{var Lt=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>k()??xe),Z(ot,St)},xn=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>x()??xe),Z(ot,St)};Ne(Xn,ot=>{k()?ot(Lt):x()&&ot(xn,1)})}Z(Ye,Ft)},$$slots:{default:!0}})};let qe=U(()=>Kn("inline-flex",m()));lo(Re,()=>rh,(ze,pt)=>{pt(ze,{get class(){return w(qe)},get disabled(){return f()},get onclick(){return R()},onpointerdown:B,onkeydown:B,"data-tooltip-trigger":!0,get ref(){return w(M)},set ref(ge){N(M,ge,!0)},child:Ge,$$slots:{child:!0}})})}var rt=mn(Re,2);{var ht=Ge=>{var qe=ue(),ze=se(qe);lo(ze,()=>Yd,(pt,ge)=>{ge(pt,{get to(){return v()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{const Lt=(xn,ot)=>{let St=()=>(ot?.()).props,Xe=()=>(ot?.()).wrapperProps;var it=dv();Jt(it,()=>({...Xe()}));var nn=He(it);Jt(nn,()=>({...St(),id:n}));var ol=He(nn);{var ms=Bt=>{var Sn=kd();br(()=>Pl(Sn,r())),Z(Bt,Sn)},il=Bt=>{var Sn=ue(),al=se(Sn);ye(al,()=>r()??xe),Z(Bt,Sn)};Ne(ol,Bt=>{typeof r()=="string"?Bt(ms):r()&&typeof r()=="function"&&Bt(il,1)})}var sl=mn(ol,2);{var $h=Bt=>{var Sn=uv();br(al=>vo(Sn,1,al),[()=>Us(Kn("absolute bg-border",o()==="top"&&"w-px h-1.5 -bottom-1.5",o()==="bottom"&&"w-px h-1.5 -top-1.5",(o()==="top"||o()==="bottom")&&i()==="center"&&"left-1/2 -translate-x-1/2",(o()==="top"||o()==="bottom")&&i()==="start"&&"left-1.5",(o()==="top"||o()==="bottom")&&i()==="end"&&"right-1.5",o()==="left"&&"h-px w-1.5 -right-1.5",o()==="right"&&"h-px w-1.5 -left-1.5",(o()==="left"||o()==="right")&&i()==="center"&&"top-1/2 -translate-y-1/2",(o()==="left"||o()==="right")&&i()==="start"&&"top-1.5",(o()==="left"||o()==="right")&&i()==="end"&&"bottom-1.5",T()))]),Z(Bt,Sn)};Ne(sl,Bt=>{O()&&Bt($h)})}Fe(nn),Fe(it),Z(xn,it)};lo(Xn,()=>nh,(xn,ot)=>{ot(xn,{get id(){return n},role:"tooltip",get side(){return o()},get align(){return i()},get sideOffset(){return s()},get alignOffset(){return a()},get class(){return w(z)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},child:Lt,$$slots:{child:!0}})})}Z(Ye,Ft)},$$slots:{default:!0}})}),Z(Ge,qe)};Ne(rt,Ge=>{r()&&!f()&&Ge(ht)})}Z(S,H)},$$slots:{default:!0}})}),Z(be,Me)},$$slots:{default:!0}})}),Z(t,ie),_e(ee)}const nr=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function Cx(t){return Array.isArray(t)?t.map(ad).join(" "):t.split("+").map(e=>ad(e.trim())).join(nr?"":"+")}function ad(t){const e=t.toLowerCase();return e==="cmd"||e==="meta"||e==="mod"?nr?"⌘":"Ctrl":e==="ctrl"||e==="control"?nr?"⌃":"Ctrl":e==="alt"||e==="option"?nr?"⌥":"Alt":e==="shift"?nr?"⇧":"Shift":e==="enter"||e==="return"?"↵":e==="esc"||e==="escape"?"Esc":e==="tab"?"⇥":e==="backspace"?"⌫":e==="delete"?"⌦":e==="space"?"␣":e==="up"||e==="arrowup"?"↑":e==="down"||e==="arrowdown"?"↓":e==="left"||e==="arrowleft"?"←":e==="right"||e==="arrowright"?"→":e==="pageup"?"PgUp":e==="pagedown"?"PgDn":t==="["?"[":t==="]"?"]":t.toUpperCase()}function Ve(t,e){return{key:Td[t],get label(){return e()}}}const De={NEW_TAB:Ve("navigation.new-tab",()=>V.ui_shortcuts_newTab_label()),CLOSE_TAB:Ve("navigation.close-tab",()=>V.workspace_shortcuts_closePanelTab_description()),CLOSE_WORKSPACE_TAB:Ve("navigation.close-space-tab",()=>V.workspace_shortcuts_closeSpaceTab_description()),GO_BACK:{key:"mod+←",get label(){return V.ui_shortcuts_goBack_label()}},GO_FORWARD:{key:"mod+→",get label(){return V.ui_shortcuts_goForward_label()}},MOVE_SPACE_TAB_LEFT:Ve("navigation.move-space-tab-left",()=>V.ui_shortcuts_moveSpaceTabLeft_label()),MOVE_SPACE_TAB_RIGHT:Ve("navigation.move-space-tab-right",()=>V.ui_shortcuts_moveSpaceTabRight_label()),NEW_AGENT:Ve("workspace.new-agent",()=>V.ui_shortcuts_newAgent_label()),NEW_NOTE:Ve("workspace.new-note",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_note_label()})),NEW_TERMINAL:Ve("workspace.new-terminal",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_terminal_label()})),NEW_BROWSER:Ve("workspace.new-browser",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_browser_label()})),SEND:Ve("chat.send",()=>V.ui_shortcuts_sendMessage_label()),TOGGLE_TASK_LIST:Ve("editor.toggle-task-list",()=>V.ui_shortcuts_toggleTaskList_label()),CONFIRM:{key:"enter",get label(){return V.ui_shortcuts_confirm_label()}},TOGGLE_SIDEBAR:Ve("panel.toggle-sidebar",()=>V.ui_shortcuts_toggleSidebar_label()),PREVIOUS_PANE:Ve("panel.previous-pane",()=>V.ui_shortcuts_prevTab_label()),NEXT_PANE:Ve("panel.next-pane",()=>V.ui_shortcuts_nextTab_label()),FOCUS_PREVIOUS_COLUMN:Ve("panel.focus-previous-column",()=>V.ui_shortcuts_prevPanel_label()),FOCUS_NEXT_COLUMN:Ve("panel.focus-next-column",()=>V.ui_shortcuts_nextPanel_label()),MOVE_PANE_PREVIOUS_COLUMN:Ve("panel.move-pane-previous-column",()=>V.ui_shortcuts_movePanePreviousColumn_label()),MOVE_PANE_NEXT_COLUMN:Ve("panel.move-pane-next-column",()=>V.ui_shortcuts_movePaneNextColumn_label()),CREATE_COLUMN_RIGHT:Ve("panel.create-column-right",()=>V.ui_shortcuts_splitPanelHorizontal_label())};function xx(t,e=nr){const n=De[t].key.toLowerCase().split("+");return{key:n.at(-1)??"",meta:n.includes("meta")||n.includes("cmd")||e&&n.includes("mod"),ctrl:n.includes("ctrl")||!e&&n.includes("mod"),shift:n.includes("shift"),alt:n.includes("alt")||n.includes("option")}}function hv(){return nr}function te(t,e,n){return{id:t,key:Td[t],get label(){return e()},...n&&{contexts:n}}}const ah={global:{get title(){return V.ui_shortcuts_globalCategory_title()},shortcuts:[te("global.command-palette",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.settings",()=>V.ui_shortcuts_settings_label(),["global"]),te("global.keyboard-shortcuts",()=>V.ui_shortcuts_keyboardShortcuts_label(),["global"]),te("global.command-palette-alt",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.toggle-spaces",()=>V.home_navigation_description(),["global"]),te("global.new-space",()=>V.workspace_page_newSpace_title(),["global"]),te("global.search",()=>V.ui_shortcuts_search_label(),["global"]),te("global.next-space",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space",()=>V.ui_shortcuts_prevSpace_label(),["global"]),te("global.next-space-alt",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space-alt",()=>V.ui_shortcuts_prevSpace_label(),["global"])]},navigation:{get title(){return V.ui_shortcuts_navigationCategory_title()},shortcuts:[te("navigation.go-to-tab",()=>V.ui_shortcuts_goToTab_label(),["global"]),te("navigation.new-tab",()=>De.NEW_TAB.label,["global"]),te("navigation.close-tab",()=>De.CLOSE_TAB.label,["global"]),te("navigation.close-space-tab",()=>De.CLOSE_WORKSPACE_TAB.label,["global"]),te("navigation.reopen-tab",()=>V.ui_shortcuts_reopenTab_label(),["global"]),te("navigation.move-space-tab-left",()=>De.MOVE_SPACE_TAB_LEFT.label,["global"]),te("navigation.move-space-tab-right",()=>De.MOVE_SPACE_TAB_RIGHT.label,["global"]),te("workspace.new-agent",()=>De.NEW_AGENT.label,["global"]),te("workspace.new-note",()=>De.NEW_NOTE.label,["global"]),te("workspace.new-terminal",()=>De.NEW_TERMINAL.label,["global"]),te("workspace.new-browser",()=>De.NEW_BROWSER.label,["global"]),te("workspace.set-aside",()=>V.home_setAside_shortcut_label())]},chat:{get title(){return V.ui_shortcuts_chatCategory_title()},shortcuts:[te("chat.send",()=>De.SEND.label,["chat"]),te("chat.force-send",()=>V.ui_shortcuts_forceSend_label(),["chat"]),te("chat.new-line",()=>V.ui_shortcuts_newLine_label(),["chat"]),te("chat.focus-input",()=>V.ui_shortcuts_focusInput_label(),["chat"]),te("chat.mention-context",()=>V.ui_shortcuts_mentionContext_label(),["chat"])]},editor:{get title(){return V.ui_shortcuts_editorCategory_title()},shortcuts:[te("editor.go-to-line",()=>V.ui_shortcuts_goToLine_label(),["editor"]),te("editor.save",()=>V.ui_shortcuts_save_label(),["editor"]),te("editor.undo",()=>V.ui_shortcuts_undo_label(),["editor"]),te("editor.redo",()=>V.ui_shortcuts_redo_label(),["editor"]),te("editor.toggle-task-list",()=>De.TOGGLE_TASK_LIST.label,["editor"]),te("editor.toggle-word-wrap",()=>V.ui_shortcuts_toggleWordWrap_label(),["editor"]),te("editor.copy",()=>V.ui_shortcuts_copy_label(),["editor"]),te("editor.select-all",()=>V.ui_shortcuts_selectAll_label(),["editor"])]},panel:{get title(){return V.ui_shortcuts_panelCategory_title()},shortcuts:[te("panel.toggle-sidebar",()=>De.TOGGLE_SIDEBAR.label,["panel"]),te("panel.create-column-right",()=>De.CREATE_COLUMN_RIGHT.label,["global"]),te("panel.focus-next-column",()=>De.FOCUS_NEXT_COLUMN.label,["global"]),te("panel.maximize",()=>V.ui_shortcuts_maximizePanel_label(),["global"]),te("panel.focus-previous-column",()=>De.FOCUS_PREVIOUS_COLUMN.label,["global"]),te("panel.next-pane",()=>De.NEXT_PANE.label,["global"]),te("panel.previous-pane",()=>De.PREVIOUS_PANE.label,["global"]),te("panel.move-pane-next-column",()=>De.MOVE_PANE_NEXT_COLUMN.label,["global"]),te("panel.move-pane-previous-column",()=>De.MOVE_PANE_PREVIOUS_COLUMN.label,["global"]),te("panel.copy-browser-url",()=>V.ui_shortcuts_copyBrowserUrl_label(),["panel"])]},leader:{get title(){return V.ui_shortcuts_leaderCategory_title()},shortcuts:[te("leader.navigate-panels",()=>V.ui_shortcuts_navigatePanels_label(),["panel"]),te("leader.resize-panels",()=>V.ui_shortcuts_resizePanels_label(),["panel"]),te("leader.split-right",()=>V.ui_shortcuts_splitRight_label(),["panel"]),te("leader.toggle-zoom",()=>V.ui_shortcuts_toggleZoom_label(),["panel"]),te("leader.close-panel",()=>V.ui_shortcuts_closePanel_label(),["panel"]),te("leader.next-previous-panel",()=>V.ui_shortcuts_nextPrevPanel_label(),["panel"]),te("leader.equalize-sizes",()=>V.ui_shortcuts_equalizeSizes_label(),["panel"]),te("leader.jump-to-panel",()=>V.ui_shortcuts_jumpToPanel_label(),["panel"]),te("leader.cycle-layout",()=>V.ui_shortcuts_cycleLayout_label(),["panel"])]}},Sx=Object.entries(ah).flatMap(([t,e])=>e.shortcuts.map(n=>({id:n.id,category:t,defaultKey:n.key,key:n.key,get label(){return n.label},contexts:n.contexts})));function kx(t={}){return Object.fromEntries(Object.entries(ah).map(([e,n])=>[e,{title:n.title,shortcuts:n.shortcuts.map(r=>({...r,key:yp(r.id,t)}))}]))}var pv=Ke('<kbd data-slot="shortcut-chip" style="font-family: var(--font-ui);"><!></kbd>');function lh(t,e){if(new.target)return Te({component:lh,...t});Pe(e,!0);let n=h(e,"class",7),r=h(e,"children",7);var o={get class(){return n()},set class(a){n(a),p()},get children(){return r()},set children(a){r(a),p()},$set:Ee,$on:(a,c)=>Oe(e,a,c)},i=pv(),s=He(i);return ye(s,()=>r()??xe),Fe(i),br(a=>vo(i,1,a),[()=>Us(Kn("type-caption shrink-0 font-normal leading-none text-shortcut-foreground",n()))]),Z(t,i),_e(o)}const ml=(t,e=xe,n=xe)=>{var r=mv(),o=se(r),i=pp(o,!0),s=mn(o,2);{var a=c=>{var u=gv();mp(u,23,n,(d,f)=>`key-${f}-${d}`,(d,f)=>{lh(d,{children:(g,b)=>{gp();var v=kd();br(()=>Pl(v,w(f))),Z(g,v)},$$slots:{default:!0}})}),Fe(u),Z(c,u)};Ne(s,c=>{n().length>0&&c(a)})}br(()=>Pl(i,e())),Z(t,r)};var gv=Ke('<div class="flex items-center gap-1 text-muted-foreground"></div>'),mv=Ke('<span class="type-caption"> </span> <!>',1),bv=Ke('<div class="flex items-center justify-between gap-3"><!></div> <div class="flex items-center justify-between gap-3"><!></div>',1);function ch(t,e){if(new.target)return Te({component:ch,...t});Pe(e,!0);let n=h(e,"label",7),r=h(e,"shortcut",7),o=h(e,"secondary",7),i=h(e,"side",7,"top"),s=h(e,"align",7,"center"),a=h(e,"sideOffset",7,4),c=h(e,"delayDuration",7,500),u=h(e,"disabled",7,!1),d=h(e,"portalTarget",7),f=h(e,"class",7,""),g=h(e,"contentClass",7,""),b=h(e,"children",7),v=h(e,"trigger",7);const m=hv();function E(x){const k={mod:m?"⌘":"Ctrl",cmd:m?"⌘":"Ctrl",command:m?"⌘":"Ctrl",ctrl:m?"⌃":"Ctrl",control:m?"⌃":"Ctrl",alt:m?"⌥":"Alt",option:m?"⌥":"Alt",shift:m?"⇧":"Shift",enter:"↵",return:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",esc:"Esc",tab:"⇥",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",pageup:"PgUp",pagedown:"PgDn",home:"Home",end:"End"},R=x.toLowerCase();return k[R]||x.toUpperCase()}function T(x){return Array.isArray(x)?x.map(E):x.split("+").map(k=>E(k.trim()))}const O=U(()=>r()?T(r()):[]),A=U(()=>o()?T(o().shortcut):[]);var y={get label(){return n()},set label(x){n(x),p()},get shortcut(){return r()},set shortcut(x){r(x),p()},get secondary(){return o()},set secondary(x){o(x),p()},get side(){return i()},set side(x="top"){i(x),p()},get align(){return s()},set align(x="center"){s(x),p()},get sideOffset(){return a()},set sideOffset(x=4){a(x),p()},get delayDuration(){return c()},set delayDuration(x=500){c(x),p()},get disabled(){return u()},set disabled(x=!1){u(x),p()},get portalTarget(){return d()},set portalTarget(x){d(x),p()},get class(){return f()},set class(x=""){f(x),p()},get contentClass(){return g()},set contentClass(x=""){g(x),p()},get children(){return b()},set children(x){b(x),p()},get trigger(){return v()},set trigger(x){v(x),p()},$set:Ee,$on:(x,k)=>Oe(e,x,k)};{const x=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=ue(),J=se(B);ye(J,()=>b()??xe),Z(Y,B)},z=Y=>{x()?.(Y)};Ne(j,Y=>{b()?Y($):x()&&Y(z,1)})}Z(M,K)},k=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=bv(),J=se(B),re=He(J);ml(re,n,()=>w(O)),Fe(J);var ee=mn(J,2),ie=He(ee);ml(ie,()=>o().label,()=>w(A)),Fe(ee),Z(Y,B)},z=Y=>{ml(Y,n,()=>w(O))};Ne(j,Y=>{o()?Y($):Y(z,-1)})}Z(M,K)};let R=U(()=>Kn(o()?"flex flex-col items-stretch gap-1.5":"flex items-center gap-3",g()));sh(t,{get side(){return i()},get align(){return s()},get sideOffset(){return a()},get delayDuration(){return c()},get disabled(){return u()},get portalTarget(){return d()},get class(){return f()},get contentClass(){return w(R)},trigger:x,content:k,$$slots:{trigger:!0,content:!0}})}return _e(y)}const vv=D({provider:ne("github"),protocol:ne("https"),host:ne("github.com"),managedHelperEnabled:Ae(),setting:ne("sourceControl.github.exposeGitCredentialToChildren")}),Ax=D({defaultProviderId:L().nullable(),defaultModelId:L().nullable(),enabledProviderIds:$e(L().min(1)).optional(),repositoryConnections:$e(D({provider:et(["github","gitlab"]),host:L(),configured:Ae()})),gitCredentialPolicy:vv}),yv=D({resource:et(["git","ai"]),reason:et(["missing","rejected","insufficient-scope"]),providerId:L().nullable(),host:L().nullable(),recovery:D({actor:ne("host-owner"),action:et(["check-git-authorization","check-ai-authorization"]),setting:ne("sourceControl.github.exposeGitCredentialToChildren").optional()})});function wv(t){const e=yv.safeParse(t);if(!e.success)return null;const{resource:n,reason:r,recovery:o}=e.data,i=n==="ai"?"AI":"Git",s=r==="missing"?V.hostExecution_missingAuthorization_description({resource:i}):r==="insufficient-scope"?V.hostExecution_insufficientScope_description({resource:i}):V.hostExecution_rejectedAuthorization_description({resource:i});return o.setting?`${s} ${V.hostExecution_disabledHelper_description({setting:o.setting})}`:s}function uh(t,e){if(!e.agentNodes||!wp.safeParse(t).success&&e.agentPlatformRouting!==!0||t.target==="local"&&(t.checkout??"isolated")==="isolated"&&!e.localNodeIsolation)throw new Error(V.agent_placement_unavailable())}const dh=D({workspaceId:L().min(1),agentId:L().min(1),requestId:Lp()}).strict(),Cv=dh.extend({checkpointId:L().min(1)}),xv=D({ok:ne(!0),status:et(["merged","conflict","blocked"]),commitRange:L().optional(),canonicalHead:L().optional(),conflictingPaths:$e(L()).optional(),reason:L().optional(),overlappingPaths:$e(L()).optional()});class Sv{constructor(e,n,r){this.request=e,this.remoteEnabled=n,this.observeCapabilities=r}async capabilities(){const n=(await this.observeCapabilities())?.server?.capabilities;return{agentNodes:n?.agentNodes===1,...n?.agentNodes===1&&n?.agentPlatformRouting===1?{agentPlatformRouting:!0}:{},localNodeIsolation:n?.agentNodes===1&&n?.localNodeIsolation===1}}async preparePlacement(e){const n=Hs.parse(e),r=()=>{if((n.target==="remote"||n.target==="e2b"||n.exclusive===!0)&&!this.remoteEnabled())throw new Error(V.agent_placement_labsRequired())};r();const o=await this.capabilities();return r(),uh(n,o),n}async requireHub(){if(!(await this.capabilities()).agentNodes)throw new Error(V.agent_placement_unavailable())}async merge(e){const n=Cv.parse(e);return await this.requireHub(),xv.parse(await this.request("hub.merge",n))}async discard(e){const n=dh.parse(e);return await this.requireHub(),D({ok:ne(!0)}).parse(await this.request("hub.discard",n))}}function Ue(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function fh(t){return t==="workspace.create"?"initialAgent":t==="agent.wakeOrCreate"?"create":void 0}function kv(t,e){return["agent.create","agent.delegate","agent.wakeOrCreate","workspace.create"].includes(t)||t==="workspace.update"&&"defaultAgentPlacement"in Ue(e)}async function Av(t,e){const n=Ue(await e()),r=Ue(Ue(n.server).capabilities);if(r.agentNodes===1||r.remoteMachines!==1||r.remoteInitialAgent!==1)return!1;const o=Hs.parse(t);if(o.exclusive===!0)throw new Error(V.agent_placement_unavailable());if(o.target==="e2b"&&r.cloudMachines!==1)throw new Error(V.agent_placement_unavailable());if(o.cloudMachineId!==void 0&&r.cloudMachineEntries!==1)throw new Error(V.agent_placement_unavailable());return!0}async function hh(t,e,n,r,o){const i=Ue(e);if(t==="agent.delegate"&&Array.isArray(i.tasks)){const v=[];for(const T of i.tasks){const O=typeof T=="string"?{taskNoteId:T}:Ue(T),A=Ue(await hh(t,{...i,tasks:void 0,...O},n,r,o));v.push({...O,...A.placement?{placement:A.placement}:{}})}const{placement:m,...E}=i;return{...E,tasks:v}}const s=new Sv(n,r,o);if(t==="workspace.update")return i.defaultAgentPlacement!=null&&await s.preparePlacement(Hs.parse(i.defaultAgentPlacement)),e;const a=fh(t);if(a==="initialAgent"&&!i[a])return e;const c=a?Ue(i[a]):i;if(c.isolation==="cow")throw new Error(V.agent_placement_retiredIsolation());if(c.placement!==void 0&&c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());if(a==="initialAgent"&&c.placement!=null&&Ue(c.placement).target!=="local"&&await Av(c.placement,o)){if(!r())throw new Error(V.agent_placement_labsRequired());return e}let u=c.placement,d=await s.capabilities(),f=!1;if(u===void 0){const v=i.workspaceId;let m;const E=async()=>{if(!m){f=!0;const O=Ue(await n("workspace.get",{workspaceId:v}));m=Ue(O.workspace??O)}return m},T=c.specialistId??c.specialist;if(t==="agent.delegate"&&(typeof T!="string"||!T))return e;if(typeof T=="string"&&T){f=!0;const O=c.workspacePath??i.workspacePath;let A=typeof O=="string"&&O?O:void 0;if(!A&&typeof v=="string"){const x=await E(),k=x.worktreePath??x.repositoryPath;typeof k=="string"&&k&&(A=k)}const y=Ue(await n("specialist.get",{id:T,...v?{workspaceId:v}:{},...A?{workspacePath:A}:{}}));if(!y.specialist)throw new Error(V.agent_placement_specialistUnavailable());u=Ue(y.specialist).runsOn}u==null&&typeof v=="string"&&(u=(await E()).defaultAgentPlacement)}if(!d.agentNodes){if(u!=null)throw new Error(V.agent_placement_unavailable());return e}const g=u==null?void 0:Hs.parse(u);if(!r()&&(g?.target==="remote"||g?.target==="e2b"||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(f&&(d=await s.capabilities()),g)uh(g,d);else if(!d.agentNodes)throw new Error(V.agent_placement_unavailable());if(!r()&&(g?.target==="remote"||g?.target==="e2b"||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(!g)return e;if(c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());const b={...c,placement:g};return a?{...i,[a]:b}:b}function Tv(t,e,n){if(n)return;const r=Ue(e),o=fh(t),i=o?Ue(r[o]):r,s=Array.isArray(i.tasks)?i.tasks.map(a=>Ue(a).placement??i.placement):[i.placement];if(s.push(r.defaultAgentPlacement),s.some(a=>Ue(a).target==="remote"||Ue(a).target==="e2b"||Ue(a).exclusive===!0))throw new Error(V.agent_placement_labsRequired())}function Ev(t,e={}){const n=Ka.BACKEND.PR_MONITOR;return async r=>{const o=t(),i=()=>new Ce({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});if(!o)throw i();const s=Or(e.reviewMonitoring)&&Or(o.reviewMonitoring)?Math.min(e.reviewMonitoring,o.reviewMonitoring):void 0;let a,c=!1,u=!1;const d=new Set,f=new Set,g=new Set,b=()=>{if(!c){c=!0;for(const O of[...f])O();f.clear()}},v=o.on(n.RETIRED,O=>{const A=D({id:L()}).safeParse(O);if(!A.success)return b();a?A.data.id===a&&b():(d.add(A.data.id),d.size>256&&b())}),m=o.on(n.NOTIFICATION,O=>{const A=D({id:L(),notification:D({method:L(),params:yo().optional()})}).safeParse(O);if(!c&&t()===o&&A.success&&A.data.id===a)for(const y of g)y(A.data.notification)}),E=O=>{const A=D({ok:Ae(),result:yo().optional(),error:D({code:L(),message:L(),rpcCode:gn().optional(),data:yo().optional()}).optional()}).parse(O);if(!A.ok)throw A.error?new Ce(A.error):i();return A.result},T=async()=>{if(!u&&(u=!0,b(),o.offById(n.RETIRED,v),o.offById(n.NOTIFICATION,m),a))try{await o.invoke(n.RELEASE,{id:a,workspaceId:r})}catch{}};try{const O=D({origin:Bp,support:et(["supported","unsupported","consumer-pending"])}).parse(E(await o.invoke(n.CAPTURE,{workspaceId:r,...s===void 0?{}:{reviewMonitoring:s}})));if(a=O.origin.sessionId,(d.has(a)||t()!==o)&&b(),c||O.origin.workspaceId!==r)throw i();return{...O,onNotification(A){return g.add(A),()=>{g.delete(A)}},onRetired(A){return c?(A(),()=>{}):(f.add(A),()=>{f.delete(A)})},async request(A,y){if(t()!==o&&b(),c||y.workspaceId!==r)throw i();const x=await o.invoke(n.REQUEST,{id:a,workspaceId:r,method:A,params:y});if(t()!==o&&b(),c)throw i();return E(x)},release:T}}catch(O){throw await T(),O}}}const ld=D({repository:Ac,providerProjectId:L().nullable(),connection:Kp.nullable().optional(),branch:L()}),Ov=D({remoteName:L(),fetchUrls:$e(L()),pushUrls:$e(L())}),jc=D({operationId:L(),scope:ja,contextRevision:ro,root:Qr,worktreeId:L(),source:ld,target:ld,localHeadSha:L().nullable(),transport:Ov.nullable()}),Pv=bt("stage",[D({stage:ne("commit"),commitHash:L()}),D({stage:ne("push"),pushedSha:L()})]),fc=et(["commit","push","create-pr"]),_v=et(["open","locked","closed","merged"]),cd=D({provider:Ac.shape.provider,instanceBaseUrl:L(),projectId:L(),projectPath:L().nullable(),branch:L()}),hc=D({resource:jp,url:L(),title:L(),body:L().nullable(),state:_v.nullable(),draft:Ae().nullable(),sourceBranch:L().nullable(),targetBranch:L().nullable(),source:cd.nullable(),target:cd.nullable(),author:L().nullable(),mergeable:Ae().nullable(),mergeableState:L().nullable(),headSha:L().nullable(),createdAt:L().nullable(),updatedAt:L().nullable()}),Iv=bt("status",[D({status:ne("not-attempted")}),D({status:ne("created"),review:hc}),D({status:ne("reused"),review:hc}),D({status:ne("failed"),stage:fc,code:L().nullable(),message:L()}),D({status:ne("uncertain"),stage:fc,message:L()})]),Mv=bt("state",[D({state:ne("included"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("local-ahead"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("diverged"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("remote-branch-missing"),localHeadSha:L().nullable()}),D({state:ne("unknown"),localHeadSha:L().nullable(),remoteSourceSha:L().nullable()})]),ph=D({requestId:L(),preparation:jc,gitReceipts:$e(Pv),outcome:Iv,publication:Mv});D({reviewPreparation:jc.optional()}).passthrough();D({reviewExecution:ph.optional()}).passthrough();const ps=L().min(1).max(4096),gh=ro.shape.sequence,gs=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]),Rv=D({workspaceId:ps,action:fc,files:$e(L()).nullish(),options:D({stageUnstaged:Ae().optional(),pushAfterCommit:Ae().optional(),createPRAfterPush:Ae().optional()}).strict().optional(),review:D({root:gs,choice:bt("kind",[D({kind:ne("saved")}).strict(),D({kind:ne("explicitTarget"),target:Ac.strict()}).strict()]),targetBranch:L().nullish(),pushRemote:L().nullish(),companion:D({kind:ne("create-pr")}).strict().optional()}).strict()}).strict().refine(t=>t.workspaceId===t.review.root.workspaceId&&(!Object.hasOwn(t.review,"companion")||t.review.companion!==void 0&&t.action==="commit"&&!Object.hasOwn(t,"files")&&!Object.hasOwn(t,"options")&&!Object.hasOwn(t.review,"pushRemote")&&typeof t.review.targetBranch=="string"&&t.review.targetBranch.length>0)&&(t.action==="commit"||t.files==null&&!t.options?.stageUnstaged&&!t.options?.pushAfterCommit&&!t.options?.createPRAfterPush)),Nv=D({commitMessage:L().nullish(),prTitle:L().nullish(),prBody:L().nullish()}).strict(),mh={valid:Ae(),warnings:$e(L()),errors:$e(L()),suggestedCommitMessage:L().optional(),suggestedPRTitle:L().optional(),suggestedPRBody:L().optional(),filesCount:gn().int().nonnegative(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative(),files:$e(D({path:L(),staged:Ae(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative()}).strict()),reviewPreparation:jc};D({...mh,reviewOperation:D({operationId:ps,root:gs,retirementSequence:gh,expiresAfterMs:ne(3e5)}).strict()}).strict();const Dv=D({...mh,root:gs,expiresAfterMs:ne(3e5)}).strict(),bh={operationId:ps,root:gs,state:et(["prepared","pending","settled"]),reviewExecution:ph.optional()},vh=t=>t.state==="settled"==(t.reviewExecution!==void 0),Fv=D(bh).strict().refine(vh),Lv=D({...bh,state:et(["pending","settled"]),success:Ae(),steps:$e(D({id:L(),name:L(),status:et(["pending","running","completed","failed"]),message:L().optional(),error:L().optional()}).strict()),result:D({commitHash:L().optional(),pushedSha:L().optional(),prNumber:gn().int().nonnegative().optional(),prUrl:L().optional()}).strict().optional(),error:L().optional()}).strict().refine(vh);D({operationIds:$e(ps).max(64),sequence:gh,allRetired:Ae(),terminal:Ae()}).strict();const Bv=D({current:Ae(),uncertain:Ae(),execute:Lv.nullable(),reconciliation:Fv.nullable()}).strict(),Tx=D({attemptId:ps,root:gs,admission:L().nullable(),hostContext:L().nullable()}).strict(),tl=L().min(1).max(128).refine(t=>!/[\u0000-\u001f\u007f]/.test(t)),Co=ro.shape.sequence,Gc=gn().int().positive().safe(),zv=D({workspaceId:tl}).strict(),ra=D({repository:D({provider:ne("gitlab"),instanceBaseUrl:L().max(2048).refine(Ed),projectPath:L().min(1).max(1024).refine(t=>{const e=t.split("/");return e.length>=2&&e[0]!=="groups"&&e.every(n=>/^[A-Za-z0-9_.-]+$/.test(n)&&![".","..","-"].includes(n))})}).strict(),kind:et(["merge-request","issue"]),number:Gc}).strict(),Vv=D({readLifetimeId:tl,scope:ja.strict(),revision:ro.strict(),expiresAfterMs:ne(3e5),retirementSequence:Co,instances:$e(D({provider:ne("gitlab"),instanceBaseUrl:L().max(2048).refine(Ed),availability:ne("connected")}).strict()).max(64)}).strict(),Wv=et(["authentication","project-denied","resource-denied","optional-restricted","optional-unavailable","rate-limited","transient","unavailable","unknown"]),Uv=D({number:Gc,title:L(),body:L().nullable(),state:L(),url:L(),author:L(),createdAt:L(),updatedAt:L()}).strict(),Hv=D({resource:ra,prNumber:Gc,details:hc.extend({resource:ra}).strict()}).strip(),Kv=D({readLifetimeId:tl,scope:ja.strict(),revision:ro.strict(),target:ra,outcome:bt("kind",[D({kind:ne("merge-request"),snapshot:Hv}).strict(),D({kind:ne("issue"),issue:Uv}).strict(),D({kind:ne("failure"),code:Wv,status:gn().int().min(100).max(599).nullable()}).strict()]),quota:D({resetAt:Co.nullable(),remaining:Co.nullable(),limit:Co.nullable()}).strict()}).strict();D({readLifetimeIds:$e(tl).max(64),sequence:Co,allRetired:Ae(),terminal:Ae()}).strict();const jv=D({target:ra,refresh:Ae().optional()}).strict();function Gv(t,e,n){if(t.readLifetimeId!==e.readLifetimeId||!Gp(t.scope,e.scope)||t.revision.epoch!==e.revision.epoch||t.revision.sequence!==e.revision.sequence||kn(t.target)!==kn(n))return!1;const r=t.outcome;if(r.kind==="failure")return!0;if(r.kind!==n.kind)return!1;const o=r.kind==="issue"?r.issue.url:r.snapshot.details.url,i=Od(o,e.instances);return!i||kn(i)!==kn(n)?!1:r.kind==="issue"?r.issue.number===n.number:r.snapshot.prNumber===n.number&&kn(r.snapshot.resource)===kn(n)&&kn(r.snapshot.details.resource)===kn(n)}function qv(t){const e=Ka.BACKEND.REPOSITORY_RESOURCE,n=()=>new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).strict().safeParse(o);if(!i.success)throw n();return i.data.result};return async o=>{const i=zv.parse({workspaceId:o}),s=t();if(!s)throw n();let a,c=!1,u=!1;const d=new Set,f=new Set,g=()=>{if(!c){c=!0;for(const E of[...f])try{E()}catch{}f.clear()}},b=s.on(e.RETIRED,E=>{const T=D({id:L().min(1).max(128)}).strict().safeParse(E);if(!T.success){g();return}a===void 0?(d.add(T.data.id),d.size>64&&(d.clear(),g())):a===T.data.id&&g()}),v=async()=>{if(!u&&(u=!0,g(),s.offById(e.RETIRED,b),a))try{await s.invoke(e.RELEASE,{...i,id:a})}catch{}},m=()=>(t()!==s&&g(),!c&&!u);try{const E=r(await s.invoke(e.CAPTURE,i)),T=D({id:L().min(1).max(128)}).safeParse(E);T.success&&(a=T.data.id);const O=D({id:L().min(1).max(128),capture:Vv}).strict().parse(E);if(a=O.id,d.has(a)&&g(),d.clear(),!m())throw n();const A=O.capture;return{capture:A,onRetired(y){return m()?(f.add(y),()=>{f.delete(y)}):(y(),()=>{})},async detail(y,x=!1){if(!m())throw n();const{target:k}=jv.parse({target:y,refresh:x});try{const R=Kv.parse(r(await s.invoke(e.DETAIL,{...i,id:a,target:k,refresh:x})));if(!m()||!Gv(R,A,k))throw n();return R}catch{throw await v(),n()}},release:v}}catch(E){throw await v(),E}}}const bl=L().min(1).max(128),Cs=()=>({status:"unavailable",reason:"retired"});function Yv(t){const e=Ka.BACKEND.REPOSITORY_CHECKOUT,n=()=>new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).strict().safeParse(o);if(!i.success)throw n();return i.data.result};return async o=>{const i=Cp.parse(o),s=t();if(!s)throw n();let a,c=!1,u=!1;const d=new Set,f=new Set,g=()=>{if(!c){c=!0;for(const E of[...f])try{E()}catch{}f.clear()}},b=s.on(e.RETIRED,E=>{const T=D({id:bl}).strict().safeParse(E);if(!T.success){g();return}a===void 0?(d.add(T.data.id),d.size>64&&(d.clear(),g())):a===T.data.id&&g()}),v=async()=>{if(!u&&(u=!0,g(),s.offById(e.RETIRED,b),a!==void 0))try{await s.invoke(e.RELEASE,{id:a})}catch{}},m=()=>(t()!==s&&g(),!c&&!u);try{const E=r(await s.invoke(e.CAPTURE,i)),T=D({value:D({id:bl})}).safeParse(E);T.success&&(a=T.data.value.id);const O=xp(D({id:bl,capture:Sp,repoConfigSupported:Ae().optional()}).strict()).parse(E);if(O.status==="unavailable")return await v(),O;if(a=O.value.id,d.has(a)&&g(),d.clear(),!m())throw n();const A=Object.freeze(O.value.capture),y=async(x,k,R)=>{if(!m())return Cs();try{const M=kp(R,r(await s.invoke(e.REQUEST,{id:a,kind:x,params:k})));return m()?M:Cs()}catch(M){throw await v(),M}};return{status:"ready",value:{capture:A,onRetired(x){return m()?(f.add(x),()=>{f.delete(x)}):(x(),()=>{})},projects:x=>y("projects",Rp.parse(x),Np),project:x=>y("project",Ip.parse(x),Mp),branches:x=>y("branches",Pp.parse(x),_p),...O.value.repoConfigSupported===!0?{repoConfig:async x=>{const k=Ep.parse(x);if(k.checkoutId!==A.checkoutId||k.revision!==A.revision)return Cs();const R=await y("repoConfig",k,Op);if(R.status==="ready"&&(R.value.projectPath!==k.projectPath||R.value.branch!==k.branch||R.value.commitSha!==k.commitSha))throw await v(),n();return R}}:{},async warm(x){const k=Ap.parse(x);if(k.checkoutId!==A.checkoutId||k.revision!==A.revision)return Cs();const R=await y("warm",k,Tp);if(R.status==="ready"&&(R.value.projectPath!==k.projectPath||R.value.branch!==k.branch||R.value.commitSha!==k.commitSha))throw await v(),n();return R},release:v}}}catch(E){throw await v(),E}}}const Eo=ro.shape.sequence,Oo=L().min(1).max(4096),nl=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]);D({workspaceId:Oo,gitRootId:Oo.nullish()}).strict();const Xv=bt("mode",[D({mode:ne("automatic")}).strict(),D({mode:ne("explicit-remote"),remoteName:L().min(1).refine(t=>!/^\p{White_Space}|\p{White_Space}$/u.test(t)&&!/\p{Cc}/u.test(t)&&!/[\uD800-\uDFFF]/u.test(t)&&new TextEncoder().encode(t).length<=1024)}).strict()]),Zv=bt("kind",[D({kind:ne("save"),choice:Xv}).strict(),D({kind:ne("reset")}).strict()]),zs=D({root:nl,rootIncarnation:Eo,selectionRevision:Eo,selection:bt("kind",[D({kind:ne("neverSaved")}).strict(),D({kind:ne("reset")}).strict(),D({kind:ne("saved"),value:qp}).strict()])}).strict(),yh=D({scope:ja.strict(),root:nl,snapshot:zs,expiresAfterMs:ne(3e5)}).strict();yh.extend({selectionId:Oo,retirementSequence:Eo}).strict();const Jv=D({result:bt("kind",[D({kind:ne("applied"),snapshot:zs}).strict(),D({kind:ne("unchanged"),snapshot:zs}).strict(),D({kind:ne("conflict"),snapshot:zs}).strict(),D({kind:ne("missingRoot")}).strict(),D({kind:ne("failed"),code:et(["admission-retired","authority-unavailable","storage-failed","completion-unobserved"])}).strict()]),persistence:bt("kind",[D({kind:ne("notAttempted")}).strict(),D({kind:ne("noEffect")}).strict(),D({kind:ne("committed"),selectionRevision:Eo}).strict(),D({kind:ne("unknown")}).strict()])}).strict(),wh=bt("status",[D({status:ne("notStarted")}).strict(),D({status:ne("pending")}).strict(),D({status:ne("settled"),receipt:Jv}).strict()]);D({selectionId:Oo,root:nl,attempt:wh}).strict();D({selectionIds:$e(Oo).max(64),sequence:Eo,allRetired:Ae(),terminal:Ae()}).strict();const Qv=D({current:Ae(),attempt:wh.nullable(),uncertain:Ae()}).strict(),tt=Ka.BACKEND;function ce(){return typeof window<"u"?window.electronAPI:void 0}function Xt(t){if(!t||!t.ok)throw new Ce(t?.error??{code:"TRANSPORT_ERROR",message:"Backend request failed"});return t.result}function vl(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))}const pc=new Set;function Ex(){const t=new Map;for(const e of pc)t.set(e.channel,(t.get(e.channel)??0)+e.size());return Object.fromEntries([...t].sort(([e],[n])=>e.localeCompare(n)))}function yl(t,e){const n=new Set;let r=null;const o={channel:t,size:()=>n.size};return{subscribe(i,s){if(!r){const c=i.on(t,u=>{for(const d of[...n])try{d(u)}catch(f){console.warn(`[electron-ipc-transport] ${e} handler threw`,f)}});r={api:i,id:c}}n.add(s),pc.add(o);let a=!1;return()=>{a||(a=!0,n.delete(s),!(n.size>0)&&(pc.delete(o),r&&(r.api.offById(t,r.id),r=null)))}}}}function ud(t={}){const e=yl(tt.STATUS,"onReconnected"),n=yl(tt.NOTIFICATION,"onNotification"),r=yl(tt.PR_MONITOR.READY,"onMonitorReconnected");return{onMonitorReconnected(o){const i=ce();if(!i)return()=>{};const s=r.subscribe(i,o),a=e.subscribe(i,c=>{c?.status==="connected"&&c.reconnected&&o()});return()=>{s(),a()}},capturePrMonitorSession:Ev(ce,t),captureRepositorySelection:$v,async readPrincipal(){const o=ce();if(!o)throw new Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.READ_PRINCIPAL);if(ce()!==o)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},async observeNodeCapabilities(){const o=ce();if(!o)throw new Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.NODE_CAPABILITIES);if(ce()!==o)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},prepareNativeReview:ey,captureRepositoryResource:qv(ce),captureRepositoryCheckout:Yv(ce),async captureRepositoryRoute(o){const i=ce(),s=()=>new Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"});if(!i)throw s();const a=Object.freeze(Qr.parse(o));let c,u=!1,d=!1,f=!1;const g=new Set,b=new Set,v=()=>{if(!d){d=!0;for(const T of[...b])try{T()}catch{}b.clear()}},m=i.on(tt.REPOSITORY.RETIRED,T=>{!T||typeof T!="object"||!("id"in T)||typeof T.id!="string"||(c===void 0&&!f?(g.add(T.id),g.size>32&&(f=!0,g.clear(),v())):T.id===c&&v())}),E=async()=>{if(!u&&(u=!0,v(),i.offById(tt.REPOSITORY.RETIRED,m),!!c))try{await i.invoke(tt.REPOSITORY.RELEASE,{id:c,root:a})}catch{}};try{const T=Xt(await i.invoke(tt.REPOSITORY.CAPTURE,{root:a}));if(typeof T.id!="string"||!T.id||(c=T.id,g.has(c)&&v(),g.clear(),ce()!==i||f||d))throw s()}catch(T){throw await E(),T}return{onRetired(T){return u||d||ce()!==i?(T(),()=>{}):(b.add(T),()=>{b.delete(T)})},async request(T,O,A){if(u||d||ce()!==i||A&&"localMachine"in A)throw s();const y=Xt(await i.invoke(tt.REPOSITORY.REQUEST,{id:c,root:a,method:T,params:vl(O),...A?.timeoutMs===void 0?{}:{timeoutMs:A.timeoutMs}}));return{...y,current:y.current&&!u&&!d&&ce()===i}},release:E}},isAvailable(){return!!ce()},async request(o,i,s){const a=ce();if(!a)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const c={method:o,params:vl(i)};s?.timeoutMs!==void 0&&(c.timeoutMs=s.timeoutMs),s?.localMachine&&(c.localMachine=!0),!s?.localMachine&&zp.has(o)&&Or(t.reviewMonitoring)&&Or(a.reviewMonitoring)&&(c.reviewMonitoring=Math.min(t.reviewMonitoring,a.reviewMonitoring));const u=await a.invoke(tt.REQUEST,c);return Xt(u)},async subscribe(o){const i=ce();if(!i)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const s=await i.invoke(tt.SUBSCRIBE,vl(o));return Xt(s)},async unsubscribe(o,i){const s=ce();if(s)try{await s.invoke(tt.UNSUBSCRIBE,{subscriptionId:o,...i!==void 0?{workspaceId:i}:{}})}catch{}},onNotification(o){const i=ce();return i?n.subscribe(i,s=>o(s)):()=>{}},onReconnected(o){const i=ce();if(!i)return()=>{};const s=Or(t.reviewMonitoring)&&Or(i.reviewMonitoring)?r.subscribe(i,c=>{c&&typeof c=="object"&&"attachment"in c&&c.attachment===!0&&o()}):()=>{},a=e.subscribe(i,c=>{c?.status!=="connected"||c.reconnected!==!0||o()});return()=>{s(),a()}}}}async function $v(t){const e=ce(),n=nl.parse(t),r=()=>new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"});if(!e)throw r();const o=tt.REPOSITORY_SELECTION;let i,s=!1,a,c=!1;const u=new Map,d=new Set,f=A=>{if(!(a==="closed"||a===A)){a=A;for(const y of[...d])try{y(A)}catch{}A==="closed"&&d.clear()}},g=e.on(o.RETIRED,A=>{const y=D({id:L().min(1),kind:et(["admission","closed"])}).strict().safeParse(A);y.success&&(i===void 0?(u.get(y.data.id)!=="closed"&&u.set(y.data.id,y.data.kind),u.size>32&&(c=!0,u.clear(),f("closed"))):y.data.id===i&&f(y.data.kind))}),b=async()=>{if(!s&&(s=!0,f("closed"),e.offById(o.RETIRED,g),i))try{await e.invoke(o.RELEASE,{id:i,root:n})}catch{}};let v;try{const A=Xt(await e.invoke(o.CAPTURE,{root:n})),y=D({id:L().min(1).max(4096)}).safeParse(A);y.success&&(i=y.data.id);const x=D({id:L().min(1),preview:yh}).strict().parse(A);i=x.id,v=x.preview;const k=u.get(i);if(u.clear(),k&&f(k),s||c||a||ce()!==e||JSON.stringify(v.root)!==JSON.stringify(n))throw r()}catch(A){throw await b(),A}let m,E,T;const O=A=>{if(s||a==="closed"||ce()!==e||T)return Promise.reject(r());const y=(async()=>{try{const x=Qv.parse(Xt(await A()));m?.attempt?.status!=="settled"&&(m=x)}catch{m={...m??{attempt:null,current:!1},uncertain:m?.attempt?.status!=="settled"}}return{...m,current:!!m.current&&!s&&!a&&ce()===e}})();return T=y,y.finally(()=>{T===y&&(T=void 0)}),y};return{preview:v,onRetired(A){return(s||ce()!==e)&&f("closed"),a&&A(a),a!=="closed"&&d.add(A),()=>{d.delete(A)}},confirm(A){const y=Zv.parse(A),x=JSON.stringify(y);return E!==void 0?E!==x?Promise.reject(r()):T??Promise.resolve({...m??{attempt:null,uncertain:!0},current:!!m?.current&&!s&&!a&&ce()===e}):a||s||T||ce()!==e?Promise.reject(r()):(E=x,O(()=>e.invoke(o.CONFIRM,{id:i,root:n,command:y})))},reconcile:()=>O(()=>e.invoke(o.RECONCILE,{id:i,root:n})),release:b}}async function ey(t){const e=ce(),n=Rv.parse(t);if(!e)throw new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});return Ch(e,n.review.root,{input:n},!!n.review.companion)}async function Ch(t,e,n,r=!1){const o=()=>new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});if(ce()!==t)throw o();const i=tt.NATIVE_REVIEW;let s,a=!1,c,u;const d=()=>c==="closed";let f=!1;const g=new Map,b=new Set,v=k=>{if(!(c==="closed"||c===k)){c=k;for(const R of[...b])try{R(k)}catch{}k==="closed"&&b.clear()}},m=t.on(i.RETIRED,k=>{const R=D({id:L().min(1),kind:et(["admission","closed"])}).strict().safeParse(k);R.success&&(s===void 0?(g.get(R.data.id)!=="closed"&&g.set(R.data.id,R.data.kind),g.size>32&&(f=!0,g.clear(),v("closed"))):R.data.id===s&&v(R.data.kind))}),E=async()=>{if(!a&&(a=!0,v("closed"),t.offById(i.RETIRED,m),u?.then(k=>k.release(),()=>{}),s))try{await t.invoke(i.RELEASE,{id:s,root:e})}catch{}};let T;try{const k=Xt(await t.invoke(i.PREPARE,n)),R=D({id:L().min(1).max(4096)}).safeParse(k);R.success&&(s=R.data.id);const M=D({id:L().min(1),preview:Dv}).strict().parse(k);s=M.id,T=M.preview;const K=g.get(s);if(g.clear(),K&&v(K),a||f||c||ce()!==t||JSON.stringify(T.root)!==JSON.stringify(e))throw o()}catch(k){throw await E(),k}let O,A,y;const x=k=>{if(a||c==="closed"||ce()!==t||y)return Promise.reject(o());let R;const M=new Promise(K=>{R=K});return y=M,(async()=>{try{O=Bv.parse(Xt(await k()))}catch{O={...O??{execute:null,reconciliation:null,current:!1},uncertain:O?.uncertain||O?.execute?.state!=="settled"&&O?.reconciliation?.state!=="settled"}}return{...O,current:!!O.current&&!a&&!c&&ce()===t}})().then(R,()=>R({...O??{execute:null,reconciliation:null},current:!1,uncertain:!0})),M.finally(()=>{y===M&&(y=void 0)}),M};return{...r?{prepareCompanion(){return u||(u=Promise.resolve().then(async()=>{if(!s||a||c==="closed"||y||ce()!==t)throw o();const k=await Ch(t,e,{companionOf:s,root:e});if(a||d()||ce()!==t)throw await k.release(),o();return k}),u)}}:{},preview:T,onRetired(k){return(a||ce()!==t)&&v("closed"),c&&k(c),c!=="closed"&&b.add(k),()=>{b.delete(k)}},confirm(k){const R=Nv.parse(k),M=JSON.stringify(R);return A!==void 0?A!==M?Promise.reject(o()):y??Promise.resolve({...O??{execute:null,reconciliation:null,uncertain:!0},current:!!O?.current&&!a&&!c&&ce()===t}):c||a||y||ce()!==t?Promise.reject(o()):(A=M,x(()=>t.invoke(i.EXECUTE,{id:s,root:e,command:R})))},reconcile:()=>x(()=>t.invoke(i.RECONCILE,{id:s,root:e})),release:E}}let wl=null;function ty(){if(Dp())return ud();const t=Vp();if(t){const e=Wp({url:t});return Up({getStatus:()=>e.getConnectionStatus(),getTarget:()=>Hp(t),onStatusChange:n=>e.onConnectionStatusChange(n),getStartupState:()=>e.getStartupState(),onStartupChange:n=>e.onStartupChange(n),onReconnected:n=>e.onReconnected(n)}),e}return ud()}function je(){return wl||(wl=ty()),wl}function ny(t){const e=je();return e.captureRepositoryResource?e.captureRepositoryResource(t):Promise.reject(new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}))}function ry(t){const e=je();return e.captureRepositoryRoute?e.captureRepositoryRoute(t):Promise.reject(new Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"}))}function oy(t){const e=je();return e.captureRepositorySelection?e.captureRepositorySelection(t):Promise.reject(new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"}))}async function xh(t,e,n){try{const r=je();if(kv(t,e)){const{store:o}=await as(async()=>{const{store:d}=await import("./4CMzT_BI.js");return{store:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),i=()=>o.state.userPreferences?.labsRemoteAgentsEnabled===!0,s=o.state.daemonHealth?.connectionGeneration,a=()=>{if(r!==je()||s!==o.state.daemonHealth?.connectionGeneration)throw new Error(V.agent_placement_backendChanged())};e=await hh(t,e,async(d,f)=>{a();const g=await r.request(d,f);return a(),g},i,async()=>{if(a(),!r.observeNodeCapabilities)throw new Error(V.agent_placement_unavailable());const d=await r.observeNodeCapabilities();return a(),d}),a(),Tv(t,e,i())}return await r.request(t,e,n)}catch(r){if(r instanceof Ce){const o=wv(r.data?.executionAuthorization);if(o)throw new Ce({code:r.code,rpcCode:r.rpcCode,data:r.data,message:o})}throw r}}async function iy(){const t=je();if(!t.readPrincipal)throw new Ce({code:"UNAVAILABLE",message:"Principal discovery unavailable"});const e=await t.readPrincipal();if(t!==je())throw new Ce({code:"UNAVAILABLE",message:"Backend transport changed"});return e}async function sy(){const t=je(),{store:e}=await as(async()=>{const{store:o}=await import("./4CMzT_BI.js");return{store:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),n=e.state.daemonHealth?.connectionGeneration;if(!t.observeNodeCapabilities)throw new Error(V.agent_placement_unavailable());const r=await t.observeNodeCapabilities();if(t!==je()||n!==e.state.daemonHealth?.connectionGeneration)throw new Error(V.agent_placement_backendChanged());return r}async function ay(t){return je().subscribe(t)}async function ly(t,e){return je().unsubscribe(t,e)}let Cl=null;function cy(){return Cl||(Cl=xh("client.hello",{}).then(t=>t?.server?.capabilities?.liveState===!0).catch(()=>!1)),Cl}function uy(t){return je().onNotification(t)}function Sh(t){return je().onReconnected(t)}function dy(t){const e=je();return e.prepareNativeReview?e.prepareNativeReview(t):Promise.reject(new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"}))}function fy(t){const e=je();return e.captureRepositoryCheckout?e.captureRepositoryCheckout(t):Promise.reject(new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}))}function hy(t){const e=je();return e.capturePrMonitorSession?e.capturePrMonitorSession(t):Promise.reject(new Ce({code:"PR_MONITOR_SESSION_UNAVAILABLE",message:"Monitor transport unavailable"}))}function py(){return je().prMonitorBackendId?.()}function gy(t){const e=je();return e.onMonitorReconnected?e.onMonitorReconnected(t):e.onReconnected(t)}const Ox=Object.freeze(Object.defineProperty({__proto__:null,backendRequest:xh,backendSubscribe:ay,backendUnsubscribe:ly,captureBackendRepositoryCheckout:fy,captureBackendRepositoryResource:ny,captureBackendRepositoryRoute:ry,captureBackendRepositorySelection:oy,capturePrMonitorSession:hy,detectLiveStateCapability:cy,electronAPI:ce,observeBackendNodeCapabilities:sy,onBackendNotification:uy,onBackendReconnected:Sh,onMonitorReconnected:gy,prMonitorBackendId:py,prepareBackendNativeReview:dy,readBackendPrincipal:iy},Symbol.toStringTag,{value:"Module"}));let xl=0,dd=!1;function kh(t){dd||(Sh(()=>{xl+=1}),dd=!0);const e=xl;return{workspaceId:t,key:JSON.stringify([e,t??null]),isCurrent:()=>e===xl}}function Px(){return Promise.resolve()}const my=["show-choices","open-in-browser","open-in-app","copy-link","start-workspace"];function _x(t){return my.includes(t)}function Ix(t){const e=t.match(/^(.+?)#L(\d+)(?:-\d+|C(\d+))?$/);if(e)return{path:e[1],line:Number.parseInt(e[2],10),...e[3]?{column:Number.parseInt(e[3],10)}:{}};const n=t.match(/^(.+?):L(\d+)(?:-\d+)?$/);if(n&&(n[1].includes(".")||n[1].includes("/")))return{path:n[1],line:Number.parseInt(n[2],10)};const r=t.match(/^(.+?):(\d+)(?::(\d+))?$/);return r&&!/:\d+$/.test(r[1])&&(r[1].includes(".")||r[1].includes("/"))?{path:r[1],line:Number.parseInt(r[2],10),...r[3]?{column:Number.parseInt(r[3],10)}:{}}:{path:t}}const by=["/oauth","/authorize","/login/oauth","/auth/"];function Mx(t){try{const{pathname:e}=new URL(t),n=e.toLowerCase();return by.some(r=>n.includes(r))}catch{return!1}}function Rx(t){try{const{hostname:e}=new URL(t);return e==="github.com"||e.endsWith(".github.com")}catch{return!1}}function Ah(t){try{const e=new URL(t);if(e.hostname!=="github.com"&&e.hostname!=="www.github.com")return null;const n=e.pathname.split("/").filter(Boolean);if(n.length<4)return null;const[r,o,i,s]=n,a=i==="issues"?"issue":i==="pull"?"pr":null;return!a||!/^\d+$/.test(s)?null:{owner:r,repo:o,number:Number.parseInt(s,10),kind:a}}catch{return null}}function Nx(t,e=typeof navigator<"u"?navigator.platform:void 0){const n=t.modifiers??t.event??{};return typeof e=="string"&&e.toUpperCase().includes("MAC")?!!n.metaKey:!!n.ctrlKey}function vy(t,e,n,r){let o=!0,i,s,a=null;const c=()=>{o&&(o=!1,s?.(),i?.release())};return!e||!Fp(t)?(n({status:"idle"}),c):((async()=>{const u=(await as(async()=>{const{appClient:b}=await import("./C8_w7W1W.js").then(v=>v.Z);return{appClient:b}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;if(!o)return;if(i=await u.captureRepositoryResource(e),!o){await i.release();return}if(s=i.onRetired(()=>{o&&(n({status:"idle"}),c())}),!o){s();return}if(a=Od(t,i.capture.instances),!a){n({status:"idle"}),c();return}n({status:"loading",resource:a});const d=await i.detail(a);if(!o)return;const f=d.outcome;if(f.kind==="failure"){n({status:"error",resource:a,reason:f.code});return}if(f.kind==="issue"){n({status:"ready",data:{...f.issue,provider:"gitlab",resource:a,kind:"issue",headRef:null,baseRef:null}});return}const g=f.snapshot.details;n({status:"ready",data:{provider:"gitlab",resource:a,kind:"pr",number:a.number,title:g.title,url:g.url,state:g.state==="open"&&g.draft===!0?"draft":g.state??"unknown",author:g.author,createdAt:g.createdAt,updatedAt:g.updatedAt,headRef:g.sourceBranch,baseRef:g.targetBranch}})})().catch(()=>{o&&(n(a?{status:"error",resource:a,reason:"unavailable"}:{status:"idle"}),c())}),c)}function yy(t){if(t&&typeof t=="object"&&"data"in t){const e=t.data;if(e&&typeof e=="object"&&"code"in e&&e.code==="rate-limited")return"rate-limited"}return"unavailable"}const fd=new WeakMap;let wy=0;const xs=new Map;function Cy(t){return`${t.owner}/${t.repo}#${t.number}/${t.kind}`}async function xy(t,e,n){const r=e??(await as(async()=>{const{appClient:i}=await import("./C8_w7W1W.js").then(s=>s.Z);return{appClient:i}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;return t.kind==="pr"?{kind:"pr",...await r.githubPullRequest(t.owner,t.repo,t.number,...n===void 0?[]:[n])}:{kind:"issue",...await r.githubIssue(t.owner,t.repo,t.number,...n===void 0?[]:[n])}}function Sy(){return new DOMException("The GitHub link preview request was aborted.","AbortError")}function ky(t,e){return new Promise((n,r)=>{const o=()=>r(Sy());if(t.then(n,r).finally(()=>e.removeEventListener("abort",o)),e.aborted){o();return}e.addEventListener("abort",o,{once:!0})})}async function Ay(t,e={}){const n=Ah(t);if(!n)return null;const r=kh(e.workspaceId),o=e.client??(await as(async()=>{const{appClient:c}=await import("./C8_w7W1W.js").then(u=>u.Z);return{appClient:c}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;let i=fd.get(o);i===void 0&&(i=++wy,fd.set(o,i));const s=JSON.stringify([r.key,i,Cy(n)]);let a=xs.get(s);return a||(a=xy(n,o,r.workspaceId).finally(()=>{xs.get(s)===a&&xs.delete(s)}),xs.set(s,a)),e.signal?ky(a,e.signal):a}function Ty(){let t=0;return{next(){const e=++t;return{get isCurrent(){return e===t}}},invalidate(){t++}}}const Ze=Hn({visible:!1,url:"",x:0,y:0,anchorBottom:0,copied:!1,preview:{status:"idle"}});let Ir=null;const oa=Ty();let mr,ia;function Ey(t,e){const n=kh(e);mr?.(),mr=void 0;const r=oa.next();if(!Ah(t)){Ze.preview={status:"idle"},mr=vy(t,e,o=>{r.isCurrent&&(Ze.preview=o)});return}Ze.preview={status:"loading"},Ay(t,{workspaceId:e}).then(o=>{!r.isCurrent||!n.isCurrent()||(Ze.preview=o?{status:"ready",data:o}:{status:"idle"})},o=>{!r.isCurrent||!n.isCurrent()||(Ze.preview={status:"error",reason:yy(o)})})}function Oy(t){try{const e=new URL(t),n=e.host+e.pathname,r=n.endsWith("/")?n.slice(0,-1):n;if(r.length<=50)return r;const o=r.split("/");let i=o[0];for(let s=1;s<o.length;s++){const a=i+"/"+o[s];if(a.length>47)return i+"/…";i=a}return i}catch{return t.length>50?t.slice(0,47)+"…":t}}function Py(t,e,n){Ir&&clearTimeout(Ir),oa.invalidate(),mr?.(),mr=void 0,ia?.(),Ze.preview={status:"idle"};const r=t.closest("[data-workspace-surface]"),o=n??r?.dataset.workspaceSurface,i=t.href,s=()=>t.isConnected&&t.href===i&&(!r||r.contains(t)&&r.dataset.workspaceSurface===o),a=new MutationObserver(()=>{s()||gc()});a.observe(t.ownerDocument.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-workspace-surface","href"]}),ia=()=>a.disconnect(),Ze.copied=!1,Ir=setTimeout(()=>{if(!s()){gc();return}const c=t.getBoundingClientRect();Ze.visible=!0,Ze.url=e,Ze.x=c.left+c.width/2,Ze.y=c.top,Ze.anchorBottom=c.bottom,Ey(e,o)},300)}function gc(){if(ia?.(),ia=void 0,mr?.(),mr=void 0,Ir&&(clearTimeout(Ir),Ir=null),Ze.copied){Ze.preview={status:"idle"},oa.invalidate();return}Ze.visible=!1,oa.invalidate(),Ze.preview={status:"idle"}}const Dx=Object.freeze(Object.defineProperty({__proto__:null,formatUrlForDisplay:Oy,hideLinkTooltip:gc,showLinkTooltip:Py,state:Ze},Symbol.toStringTag,{value:"Module"})),_y=Symbol("ui-size");function Iy(){return Ol(_y)??"default"}var My=Array.isArray,rl=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(My(t)){const n=t.length;for(let r=0;r<n;r++){const o=t[r];if(!o&&o!==0&&o!==0n)continue;const i=typeof o=="string"?o:rl(o);i&&(e&&(e+=" "),e+=i)}return e}if(typeof t=="object")for(const n in t)t[n]&&(e&&(e+=" "),e+=n);return e},Ry=/\s+/g,mc=Array.isArray,Ny=t=>typeof t!="string"||!t?t:t.replace(Ry," ").trim(),Dy=t=>{const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0),r=t.charCodeAt(e-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let o=0;o<e;o++){const i=t.charCodeAt(o);if(i>=9&&i<=13||i===160||i===32&&o+1<e&&t.charCodeAt(o+1)===32)return!0}return!1},Vs=(...t)=>{const e=rl(t);if(e)return Dy(e)?Ny(e):e},bc=t=>t===!1?"false":t===!0?"true":t===0?"0":t,wt=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},Th=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const n=t,r=e,o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;for(let s=0;s<o.length;s++){const a=o[s];if(!i.includes(a)||n[a]!==r[a])return!1}return!0},Fy=(t,e)=>{const n=t;for(const r in e)if(Object.hasOwn(e,r)){const o=e[r];r in n?n[r]=Vs(n[r],o):n[r]=o}return t},Eh=(t,e)=>{for(let n=0;n<t.length;n++){const r=t[n];mc(r)?Eh(r,e):r&&e.push(r)}},vc=(...t)=>{const e=[];Eh(t,e);const n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n},qc=(t,e)=>{const n=t,r=e,o={};for(const i in n){const s=n[i];if(i in r){const a=r[i];mc(s)||mc(a)?o[i]=vc(a,s):typeof s=="object"&&typeof a=="object"&&s&&a?o[i]=qc(s,a):o[i]=a+" "+s}else o[i]=s}for(const i in r)i in n||(o[i]=r[i]);return o},Ly={twMerge:!0,twMergeConfig:{}},Oh=256,By=128,wr=Symbol("tv-cache-miss"),zy=t=>t?.class!=null&&t.class!==""||t?.className!=null&&t.className!=="",hd=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=bc(t),n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return String(e);if(n==="object")try{return JSON.stringify(e)}catch{return null}return null},Ar=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},Ph=(t,e,n,r)=>{let o="";const i=Object.create(null);for(let a=0;a<t.length;a++){const c=t[a];i[c]=1;let u=e[c];n&&n[c]!==void 0&&(u=n[c]);const d=hd(u);if(d===null)return null;o+=c+":"+d+";"}const s=[];for(const a in e)a==="class"||a==="className"||i[a]||(i[a]=1,s.push(a));if(n)for(const a in n)a==="class"||a==="className"||i[a]||n[a]===void 0||(i[a]=1,s.push(a));s.length>1&&s.sort();for(let a=0;a<s.length;a++){const c=s[a];let u=e[c];n&&n[c]!==void 0&&(u=n[c]);const d=hd(u);if(d===null)return null;o+=c+":"+d+";"}return o},_h=(t,e)=>{let n="";for(let r=0;r<t.length;r++){const{conditionKeys:o,source:i}=t[r];for(let s=0;s<o.length;s++){const a=o[s];n+=a+"=",n=Ar(n,i[a]),n+=","}n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(n,i.className),n+=";"}for(let r=0;r<e.length;r++){const{conditionKeys:o,source:i}=e[r];for(let s=0;s<o.length;s++){const a=o[s];n+=a+"=",n=Ar(n,i[a]),n+=","}Array.isArray(i.slots)&&(n+="slots="+i.slots.join(",")+","),n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(n,i.className),n+=";"}return n},Ih=(t=Oh)=>{let e=new Map,n=null;return{get(r){if(e.has(r))return e.get(r);if(n?.has(r)){const o=n.get(r);return e.set(r,o),o}return wr},set(r,o){e.size>=t&&(n=e,e=new Map),e.set(r,o)}}},Vy=(t=Oh)=>{const e=Ih(t);return{get(n){return e.get(n)},set(n,r){e.set(n,r)}}},Wy=(t=By)=>{let e=new Map,n=null,r=0;return{get(o,i){const s=e.get(o);if(s){const a=s.get(i);if(a!==void 0||s.has(i))return a}if(n){const a=n.get(o);if(a){const c=a.get(i);if(c!==void 0||a.has(i)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(i)||r++,u.set(i,c),c}}}return wr},set(o,i,s){r>=t&&(n=e,e=new Map,r=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(i)||r++,a.set(i,s)}}},Yc=(t,e)=>{let n=null;return(r,o)=>{if(!zy(o))return r;const i=o.class,s=o.className;if(i!=null&&i!==""&&typeof i!="string"||s!=null&&s!==""&&typeof s!="string")return t(e,r,i,s);n??=Wy();const a=r??"",c=(typeof i=="string"?i:"")+"\0"+(typeof s=="string"?s:""),u=n.get(a,c);if(u!==wr)return u;const d=t(e,r,i,s);return n.set(a,c,d),d}};function Uy(){let t=null,e={},n=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(r){t=r},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(r){e=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){t=null,e={},n=!1}}}var nt=Uy(),Hy=t=>{!wt(t.twMergeConfig)&&!Th(t.twMergeConfig,nt.cachedTwMergeConfig)&&(nt.didTwMergeConfigChange=!0,nt.cachedTwMergeConfig=t.twMergeConfig)},Ky=(t,e)=>{const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[o];n.push({key:o,values:i,isEmpty:wt(i)})}return n},jy=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const i in r)i!=="class"&&i!=="className"&&o.push(i);e.push({conditionKeys:o,source:r})}return e},Gy=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const i in r)i!=="slots"&&i!=="class"&&i!=="className"&&o.push(i);e.push({conditionKeys:o,source:r})}return e},qy=t=>{const e={};for(let n=0;n<t.length;n++){const r=t[n],o=r.source.slots;if(Array.isArray(o))for(let i=0;i<o.length;i++){const s=o[i];e[s]||(e[s]=[]),e[s].push(r)}}return e},Yy=(t,e)=>{const{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=t,c={...Ly,...e},u=t.slots!==void 0,d=n?.base?Vs(n.base,t?.base):t?.base,f=n?.variants&&!wt(n.variants)?qc(o,n.variants):o,g=n?.defaultVariants&&!wt(n.defaultVariants)?{...n.defaultVariants,...a}:a;Hy(c);const b=!n?.slots||wt(n.slots),v=u?b&&n?.base?Vs(t?.base,n.base):typeof t?.base=="string"||t?.base==null?t.base:Vs(t.base):void 0,m=u?{base:v,...r}:{},E=b?m:Fy({...n?.slots},wt(m)?{base:t?.base}:m),T=!n?.compoundVariants||wt(n.compoundVariants)?i:vc(n?.compoundVariants,i),O=!n?.compoundSlots||wt(n.compoundSlots)?s:vc(n?.compoundSlots,s),A=Object.keys(f),y=T&&!Array.isArray(T)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof T}`):O&&!Array.isArray(O)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof O}`):null,x=u||!b?"slots":A.length===0?"plain":"variants";return{config:c,extend:n,base:d,variants:f,defaultVariants:g,slots:E,compoundVariants:T,compoundSlots:O,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:y,mode:x,slotKeys:null,variantKeys:A}},Mh=t=>(t.compiledVariants!==null||(t.compiledVariants=Ky(t.variants,t.variantKeys),t.compiledCompoundVariants=jy(t.compoundVariants),t.compiledCompoundSlots=Gy(t.compoundSlots),t.compiledCompoundSlotsBySlot=qy(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),yc=[],Rh=[],Xy=[],Zy=[],Jy=[],Nh=(t,e,n)=>{const r={};for(const o in t)r[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(r[o]=e[o]);if(n)for(const o in n)n[o]!==void 0&&(r[o]=n[o]);return r},Ss=t=>t==null||t===!1,Qy=(t,e)=>{if(!Array.isArray(t))return t===e||Ss(t)&&Ss(e);for(let n=0;n<t.length;n++){const r=t[n];if(r===e||Ss(r)&&Ss(e))return!0}return!1},Dh=(t,e,n,r)=>{if(t.isEmpty)return null;const o=r?.[t.key]??n?.[t.key];if(o===null)return null;const i=bc(o);if(typeof i=="object")return null;const s=e?.[t.key],a=i??bc(s);return t.values[a||"false"]},Xc=(t,e)=>{const{conditionKeys:n,source:r}=t;for(let o=0;o<n.length;o++){const i=n[o];if(!Qy(r[i],e[i]))return!1}return!0},pd=(t,e,n)=>{typeof n=="string"?e==="base"&&t.push(n):n&&typeof n=="object"&&n[e]&&t.push(n[e])},$y=(t,e,n)=>{const r=Rh;r.length=0;for(let o=0;o<t.length;o++){const i=Dh(t[o],e,n);i&&r.push(i)}return r},ew=(t,e,n,r,o)=>{const i=Rh;i.length=0;for(let s=0;s<e.length;s++){const a=Dh(e[s],n,r,o),c=t==="base"&&typeof a=="string"?a:a&&a[t];c&&i.push(c)}return i},tw=(t,e)=>{const n=Xy;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Xc(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},nw=(t,e,n)=>{const r=Zy;r.length=0;for(let o=0;o<e.length;o++){const i=e[o];Xc(i,n)&&(pd(r,t,i.source.class),pd(r,t,i.source.className))}return r},rw=(t,e)=>{const n=Jy;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Xc(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},ow=(t,e)=>{const{base:n,config:r}=t;let o=wr;const i=Yc(e,r);return(s=>(o===wr&&(o=e(r,n)),i(o,s)))},iw=(t,e)=>{const{base:n,config:r,defaultVariants:o,deferredError:i,variantKeys:s}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,u=yc,d=null;const f=Yc(e,r);let g=1;const b=v=>{const m=a.length>0?tw(a,Nh(o,v)):void 0;return e(r,n,$y(c,o,v),m)};return(v=>{if(i)throw i;(c===null||a===null)&&(Mh(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??yc);let m;if(g>0)g--,m=b(v);else{d??=Vy();const E=Ph(s,o,v);if(E!==null){const T=a.length>0||u.length>0?_h(a,u):"",O=E+"#"+T,A=d.get(O);A!==wr?m=A:(m=b(v),d.set(O,m))}else m=b(v)}return f(m,v)})},sw=(t,e)=>{const{config:n,defaultVariants:r,deferredError:o,slots:i,variantKeys:s}=t;let a=null,c=null,u=null,d=null,f=!1,g=null,b=null,v=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&Mh(t);const T=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const O=t.compiledCompoundSlotsBySlot;u=t.slotKeys,f=a.length>0||c.length>0,g=Yc(e,n);const A=new Array(u.length);for(let y=0;y<u.length;y++){const x=u[y],k=O[x]??yc;A[y]=(R,M)=>{const K=f?Nh(r,R,M):void 0,j=K?nw(x,a,K):void 0,$=K?rw(k,K):void 0;return e(n,i[x],ew(x,T,r,R,M),j,$)}}d=A},E=T=>{const O=u,A=d,y=g,x={};for(let k=0;k<O.length;k++){const R=A[k],M=R(T);x[O[k]]=K=>{if(K==null)return M;let j=!1;for(const $ in K)if(!($==="class"||$==="className")&&K[$]!==void 0){j=!0;break}return y(j?R(T,K):M,K)}}return x};return(T=>{if(o)throw o;if(m(),v>0)return v--,E(T);const O=Ph(s,r,T);if(O===null)return E(T);const A=f?_h(a,c):"",y=O+"#"+A;b??=Ih();const x=b.get(y);if(x!==wr)return x;const k=E(T);return b.set(y,k),k})},aw=(t,e)=>{if(t.mode==="plain")return ow(t,e);let n;return(r=>(n??=t.mode==="slots"?sw(t,e):iw(t,e),n(r)))},lw=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},cw=t=>{const e=(r,o)=>{const i=Yy(r,o),s=aw(i,t);return lw(s,i),s};return{tv:e,createTV:r=>(o,i)=>e(o,i?qc(r,i):r)}},uw=(t,e)=>{const n=t.length,r=e.length,o=new Array(n+r);for(let i=0;i<n;i++)o[i]=t[i];for(let i=0;i<r;i++)o[n+i]=e[i];return o},dw=(t,e)=>({classGroupId:t,validator:e}),Fh=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),sa="-",gd=[],fw="arbitrary..",hw=t=>{const e=gw(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:s=>{if(s[0]==="["&&s[s.length-1]==="]")return pw(s);const a=s.split(sa),c=a[0]===""&&a.length>1?1:0;return Lh(a,c,e)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],u=n[s];return c?u?uw(u,c):c:u||gd}return n[s]||gd}}},Lh=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],i=n.nextPart.get(o);if(i){const u=Lh(t,e+1,i);if(u)return u}const s=n.validators;if(s===null)return;const a=e===0?t.join(sa):t.slice(e).join(sa),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(a))return d.classGroupId}},pw=t=>{const e=t.slice(1,-1),n=e.indexOf(":");if(n===-1)return;const r=e.slice(0,n);return r?fw+r:void 0},gw=t=>{const{theme:e,classGroups:n}=t;return mw(n,e)},mw=(t,e)=>{const n=Fh();for(const r in t){const o=t[r];Zc(o,n,r,e)}return n},Zc=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const s=t[i];bw(s,e,n,r)}},bw=(t,e,n,r)=>{if(typeof t=="string"){vw(t,e,n);return}if(typeof t=="function"){yw(t,e,n,r);return}ww(t,e,n,r)},vw=(t,e,n)=>{const r=t===""?e:Bh(e,t);r.classGroupId=n},yw=(t,e,n,r)=>{if(Cw(t)){Zc(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(dw(n,t))},ww=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];Zc(c,Bh(e,a),n,r)}},Bh=(t,e)=>{let n=t;const r=e.split(sa),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Fh(),n.nextPart.set(s,a)),n=a}return n},Cw=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,xw="!",Sw=58,kw=47,Aw=91,Tw=93,Ew=40,Ow=41,md=33,Pw=(t,e,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),bd=t=>{const e=[];let n=0,r=0,o=0,i;const s=t.length;for(let g=0;g<s;g++){const b=t.charCodeAt(g);if(n===0&&r===0){if(b===Sw){e.push(t.slice(o,g)),o=g+1;continue}if(b===kw){i=g;continue}}b===Aw?n++:b===Tw?n--:b===Ew?r++:b===Ow&&r--}const a=e.length===0?t:t.slice(o);let c=a,u=!1;const d=a.length-1;a.charCodeAt(d)===md?(c=a.slice(0,-1),u=!0):a.charCodeAt(0)===md&&(c=a.slice(1),u=!0);const f=i&&i>o?i-o:void 0;return Pw(e,u,c,f)},_w=t=>{const e=new Set(t.orderSensitiveModifiers);return n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=e.has(s);if(a||c){if(o.length>0){o.sort();for(let u=0;u<o.length;u++)r.push(o[u]);o=[]}r.push(s)}else o.push(s)}if(o.length>0){o.sort();for(let i=0;i<o.length;i++)r.push(o[i])}return r}},Sl={isExternal:!0,classId:-1,conflictIds:[]},Iw=4096,Mw=16384,Rw=t=>{const e=_w(t),n=Nw(t),{getClassGroupId:r,getConflictingClassGroupIds:o}=hw(t);let i=Object.create(null),s=Object.create(null),a=0,c=new Int32Array(256),u=0,d=new Uint8Array(64),f=!1;const g=A=>{const y=[],x=A.length;let k=-1;f=!1;for(let R=0;R<x;R++){const M=A.charCodeAt(R);M===32?k!==-1&&(y.push(A.slice(k,R)),k=-1):M>=9&&M<=13?(f=!0,k!==-1&&(y.push(A.slice(k,R)),k=-1)):k===-1&&(k=R)}return k!==-1&&y.push(A.slice(k)),y},b=new Map;let v=0;const m=A=>{let y=b.get(A);if(y===void 0&&(y=v++,b.set(A,y),y>=c.length)){const x=new Int32Array(c.length*2);x.set(c),c=x}return y},E=A=>{const{isExternal:y,modifiers:x,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:M}=bd(A);if(y)return Sl;let K=!!M,j;if(K){const J=R.substring(0,M);j=r(J);const re=j&&n[j]?r(R):void 0;re&&re!==j&&(j=re,K=!1)}else j=r(R);if(!j){if(!K||(j=r(R),!j))return Sl;K=!1}const $=x.length===0?"":x.length===1?x[0]:e(x).join(":"),z=k?$+xw:$,Y=o(j,K),B=[];for(let J=0;J<Y.length;J++)B.push(m(z+Y[J]));return{isExternal:!1,classId:m(z+j),conflictIds:B}},T=A=>{let y=i[A];return y!==void 0||(y=s[A],y===void 0&&(y=E(A)),i[A]=y,++a>Iw&&(a=0,s=i,i=Object.create(null))),y};return{parseClassName:bd,sortModifiers:e,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:o,getClassDescriptor:T,mergeClassList:A=>{const y=g(A),x=y.length;if(x===1)return y[0];v>Mw&&(b.clear(),v=0,i=Object.create(null),s=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const k=u;if(x>d.length){let j=d.length;for(;j<x;)j*=2;d=new Uint8Array(j)}let R=!1,M=0;for(let j=x-1;j>=0;j-=1){const $=y[j];M+=$.length;const z=T($);if(z.isExternal){d[j]=1;continue}const Y=z.classId;if(c[Y]===k){d[j]=0,R=!0;continue}c[Y]=k;const B=z.conflictIds;for(let J=0;J<B.length;J++)c[B[J]]=k;d[j]=1}if(!R&&!f&&A.length===M+x-1)return A;let K="";for(let j=0;j<x;j++)d[j]===1&&(K&&(K+=" "),K+=y[j]);return K}}},Nw=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},Dw=500,vd=t=>{let e,n,r=Object.create(null),o=Object.create(null),i=0;const s=u=>(e=Rw(t()),n=e.mergeClassList,c.mergeString=a,a(u)),a=u=>{let d=r[u];return d!==void 0||(d=o[u],d===void 0&&(d=n(u)),r[u]=d,++i>Dw&&(i=0,o=r,r=Object.create(null))),d},c=(...u)=>c.mergeString(rl(u));return c.mergeString=s,c},Fw=[],We=t=>{const e=n=>n[t]||Fw;return e.isThemeGetter=!0,e},zh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Bw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ww=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wh=Number,Hw=Number.isNaN,Kw=Number.isInteger,An=t=>Lw.test(t),le=t=>!!t&&!Hw(Wh(t)),zt=t=>!!t&&Kw(Wh(t)),kl=t=>t.endsWith("%")&&le(t.slice(0,-1)),rn=t=>Bw.test(t),Uh=()=>!0,jw=t=>zw.test(t)&&!Vw.test(t),Jc=()=>!1,Gw=t=>Ww.test(t),qw=t=>Uw.test(t),Yw=t=>!q(t)&&!X(t),Xw=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Zw=t=>Yn(t,jh,Jc),q=t=>zh.test(t),Qn=t=>Yn(t,Gh,jw),yd=t=>Yn(t,oC,le),Jw=t=>Yn(t,Yh,Uh),Qw=t=>Yn(t,qh,Jc),wd=t=>Yn(t,Hh,Jc),$w=t=>Yn(t,Kh,qw),ks=t=>Yn(t,Xh,Gw),X=t=>Vh.test(t),ho=t=>Sr(t,Gh),eC=t=>Sr(t,qh),Cd=t=>Sr(t,Hh),tC=t=>Sr(t,jh),nC=t=>Sr(t,Kh),As=t=>Sr(t,Xh,!0),rC=t=>Sr(t,Yh,!0),Yn=(t,e,n)=>{const r=zh.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Sr=(t,e,n=!1)=>{const r=Vh.exec(t);return r?r[1]?e(r[1]):n:!1},Hh=t=>t==="position"||t==="percentage",Kh=t=>t==="image"||t==="url",jh=t=>t==="length"||t==="size"||t==="bg-size",Gh=t=>t==="length",oC=t=>t==="number",qh=t=>t==="family-name",Yh=t=>t==="number"||t==="weight",Xh=t=>t==="shadow",Al=()=>{const t=We("color"),e=We("font"),n=We("text"),r=We("font-weight"),o=We("tracking"),i=We("leading"),s=We("breakpoint"),a=We("container"),c=We("spacing"),u=We("radius"),d=We("shadow"),f=We("inset-shadow"),g=We("text-shadow"),b=We("drop-shadow"),v=We("blur"),m=We("perspective"),E=We("aspect"),T=We("ease"),O=We("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...y(),X,q],k=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],M=()=>[X,q,c],K=()=>[An,"full","auto",...M()],j=()=>[zt,"none","subgrid",X,q],$=()=>["auto",{span:["full",zt,X,q]},zt,X,q],z=()=>[zt,"auto",X,q],Y=()=>["auto","min","max","fr",X,q],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...M()],ee=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ie=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...M()],he=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],_=()=>[t,X,q],de=()=>[...y(),Cd,wd,{position:[X,q]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",tC,Zw,{size:[X,q]}],Me=()=>[kl,ho,Qn],pe=()=>["","none","full",u,X,q],ve=()=>["",le,ho,Qn],we=()=>["solid","dashed","dotted","double"],S=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[le,kl,Cd,wd],H=()=>["","none",v,X,q],Re=()=>["none",le,X,q],rt=()=>["none",le,X,q],ht=()=>[le,X,q],Ge=()=>[An,"full",...M()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rn],breakpoint:[rn],color:[Uh],container:[rn],"drop-shadow":[rn],ease:["in","out","in-out"],font:[Yw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rn],shadow:[rn],spacing:["px",le],text:[rn],"text-shadow":[rn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,q,X,E]}],container:["container"],"container-type":[{"@container":["","normal","size",X,q]}],"container-named":[Xw],columns:[{columns:[le,q,X,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[zt,"auto",X,q]}],basis:[{basis:[An,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[le,An,"auto","initial","none",q]}],grow:[{grow:["",le,X,q]}],shrink:[{shrink:["",le,X,q]}],order:[{order:[zt,"first","last","none",X,q]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,ho,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,rC,Jw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kl,q]}],"font-family":[{font:[eC,Qw,e]}],"font-features":[{"font-features":[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,X,q]}],"line-clamp":[{"line-clamp":[le,"none",X,yd]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",X,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",X,Qn]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[le,"auto",X,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[zt,X,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zt,X,q],radial:["",X,q],conic:[zt,X,q]},nC,$w]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Me()}],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-bs":[{"border-bs":ve()}],"border-w-be":[{"border-be":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,X,q]}],"outline-w":[{outline:["",le,ho,Qn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,As,ks]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,As,ks]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[le,Qn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",g,As,ks]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[le,X,q]}],"mix-blend":[{"mix-blend":[...S(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":S()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,q]}],filter:[{filter:["","none",X,q]}],blur:[{blur:H()}],brightness:[{brightness:[le,X,q]}],contrast:[{contrast:[le,X,q]}],"drop-shadow":[{"drop-shadow":["","none",b,As,ks]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",le,X,q]}],"hue-rotate":[{"hue-rotate":[le,X,q]}],invert:[{invert:["",le,X,q]}],saturate:[{saturate:[le,X,q]}],sepia:[{sepia:["",le,X,q]}],"backdrop-filter":[{"backdrop-filter":["","none",X,q]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[le,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[le,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",le,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[le,X,q]}],"backdrop-invert":[{"backdrop-invert":["",le,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[le,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[le,X,q]}],"backdrop-sepia":[{"backdrop-sepia":["",le,X,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[le,"initial",X,q]}],ease:[{ease:["linear","initial",T,X,q]}],delay:[{delay:[le,X,q]}],animate:[{animate:["none",O,X,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:ht()}],"skew-x":[{"skew-x":ht()}],"skew-y":[{"skew-y":ht()}],transform:[{transform:[X,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[zt,X,q]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,q]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[le,ho,Qn,yd]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iC=(t,{extend:e={},override:n={}})=>(Ts(t.theme,n.theme),Ts(t.classGroups,n.classGroups),Ts(t.conflictingClassGroups,n.conflictingClassGroups),Ts(t.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),wc(t,"postfixLookupClassGroups",n.postfixLookupClassGroups),wc(t,"orderSensitiveModifiers",n.orderSensitiveModifiers),Es(t.theme,e.theme),Es(t.classGroups,e.classGroups),Es(t.conflictingClassGroups,e.conflictingClassGroups),Es(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),Cc(t,e,"postfixLookupClassGroups"),Cc(t,e,"orderSensitiveModifiers"),t),wc=(t,e,n)=>{n!==void 0&&(t[e]=n)},Ts=(t,e)=>{if(e)for(const n in e)wc(t,n,e[n])},Es=(t,e)=>{if(e)for(const n in e)Cc(t,e,n)},Cc=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},Zh=t=>vd(t?typeof t=="function"?()=>t(Al()):()=>iC(Al(),t):Al),sC=t=>{if(wt(t))return;const e=t,n={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&n[o]===void 0&&(n[o]=e[o]);const r={};if(Object.keys(n).length>0&&(r.extend=n),e.override!=null&&!wt(e.override)&&(r.override=e.override),!(!r.extend&&!r.override))return r},aC=t=>{const e=sC(t),n=Zh(e);return r=>n.mergeString(r)},Ws,lC=()=>(Ws||(Ws=Zh()),Ws),cC=()=>((!nt.cachedTwMerge||nt.didTwMergeConfigChange)&&(nt.didTwMergeConfigChange=!1,nt.cachedTwMerge=aC(nt.cachedTwMergeConfig)),nt.cachedTwMerge),uC=t=>{const e=t?.twMergeConfig;!e||wt(e)||Th(e,nt.cachedTwMergeConfig)||(nt.cachedTwMergeConfig=e,nt.didTwMergeConfigChange=!0)},dC=t=>rl(t),fC=nt.reset.bind(nt);nt.reset=()=>{Ws=void 0,fC()};var hC=(t,e)=>{const n=dC(t);return!n||!(e?.twMerge??!0)?n||void 0:n.indexOf(" ")===-1?n:(uC(e),(!!(e?.twMergeConfig&&!wt(e.twMergeConfig))?cC():lC().mergeString)(n)||void 0)},pC=(t,...e)=>hC(e,t),gC=cw(pC),Jh=gC.tv;const Fx={gray:"hsl(var(--accent))",red:"var(--color-red-500)",orange:"var(--color-orange-500)",amber:"var(--color-amber-500)",yellow:"var(--color-yellow-500)",lime:"var(--color-lime-500)",green:"var(--color-green-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)",cyan:"var(--color-cyan-500)",blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",purple:"var(--color-purple-500)",fuchsia:"var(--color-fuchsia-500)",pink:"var(--color-pink-500)",rose:"var(--color-rose-500)"},mC={default:{variant:"solid",color:"gray"},secondary:{variant:"solid",color:"gray"},outline:{variant:"dot",color:"gray"},destructive:{variant:"solid",color:"red"},success:{variant:"solid",color:"green"},info:{variant:"solid",color:"blue"}};function Lx(t="solid",e){const n=t==="solid"||t==="dot"?{variant:t,color:"gray"}:mC[t];return{...n,color:e??n.color}}const Bx=Jh({base:"inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-(--radius-medium) font-medium text-foreground transition-[background-color,color,box-shadow] duration-spring-fast ease-spring-fast motion-reduce:transition-none [&_svg]:pointer-events-none [&_svg]:size-3",variants:{variant:{solid:"",dot:"border border-border"},size:{default:"h-6 px-2.5 text-[12px] gap-1.5",compact:"h-5 px-2 text-[11px] gap-1"}},defaultVariants:{variant:"solid",size:"default"}}),bC=[{id:"skeleton-state-matrix",title:"Skeleton loading states",states:["default","line","avatar","card","shimmer","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];kc({id:"skeleton",source:"src/lib/components/ui/skeleton/skeleton.svelte",publicImport:"$lib/components/ui/skeleton",legacyImports:["$lib/components/ui/skeleton/index.js","$lib/components/ui/skeleton/skeleton.svelte"],exports:["Root","Skeleton","skeletonMetadata"],category:"primitive",owner:"007-B1",callers:["src/features/discussions/components/DiscussionSkeleton.svelte","src/features/file-tracking/components/diff/TrackedChangeDiffViewer.svelte","src/features/home/HomeLoading.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/tab-types/FileTabType.svelte","src/features/layout/tab-types/NoteTabType.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/chat/ChatChangesPanel.svelte","src/lib/components/chat/ChatPanel.svelte","src/lib/components/code-review/CodeReviewTabContent.svelte","src/lib/components/file-explorer/file-tree-view.svelte","src/lib/components/notes/primitives/ReferenceBlock.svelte","src/lib/components/patterns/screen/LoadingState.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte","src/lib/components/ui/tooltip/GitHubLinkCard.svelte","src/lib/components/workspace/CheckoutModePill.svelte","src/lib/components/workspace/ContentSkeleton.svelte","src/lib/components/workspace/NoteWithComments.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/SidebarSkeleton.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte","src/lib/components/workspace/WorkspaceHoverCard.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/SecondaryRootChangesView.svelte","src/lib/components/workspace/sidebar/SidebarChangesPanel.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/skeleton/skeleton.test.ts",removalGate:"Retain while exported and loading, reduced-motion, and fixture tests pass.",dynamicImports:[],fixtures:bC});const tr=class tr{constructor(){P(this,"subscribers",new Map([["second",new Set],["minute",new Set],["hour",new Set],["day",new Set]]));P(this,"intervals",new Map([["second",null],["minute",null],["hour",null],["day",null]]));P(this,"INTERVALS",{second:1e3,minute:60*1e3,hour:3600*1e3,day:1440*60*1e3})}static getInstance(){return tr.instance||(tr.instance=new tr),tr.instance}getBucket(e){const n=Math.abs(Date.now()-e.getTime()),r=Math.floor(n/6e4);return r<1?"second":r<60?"minute":r<1440?"hour":"day"}ensureInterval(e){if(this.intervals.get(e))return;const n=setInterval(()=>{const r=this.subscribers.get(e);r&&r.forEach(o=>{o.callback();const i=this.getBucket(o.targetDate);i!==e&&(r.delete(o),this.subscribers.get(i)?.add(o),this.ensureInterval(i),this.cleanupIntervalIfEmpty(e))})},this.INTERVALS[e]);this.intervals.set(e,n)}cleanupIntervalIfEmpty(e){const n=this.subscribers.get(e);if(n&&n.size===0){const r=this.intervals.get(e);r&&(clearInterval(r),this.intervals.set(e,null))}}subscribe(e,n){const r=this.getBucket(e),o={callback:n,targetDate:e};return this.subscribers.get(r)?.add(o),this.ensureInterval(r),()=>{for(const[i,s]of this.subscribers)if(s.has(o)){s.delete(o),this.cleanupIntervalIfEmpty(i);break}}}getSubscriberCount(){let e=0;for(const n of this.subscribers.values())e+=n.size;return e}getActiveIntervalCount(){let e=0;for(const n of this.intervals.values())n&&e++;return e}};P(tr,"instance",null);let xc=tr;const zx=xc.getInstance(),vC=[{id:"tooltip-interaction",title:"Tooltip interaction and content states",states:["closed","open","hover-delay","keyboard-focus","escape-dismiss","portal","arrow","disabled","rich-content","shortcut","spring-enter","crisp-exit","long-content","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0},{id:"tooltip-open-state",title:"Tooltip open state",states:["open-on-mount","portal","arrow","escape-dismiss","trigger-focus-preserved"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];kc({id:"tooltip",source:"src/lib/components/ui/tooltip/index.ts",publicImport:"$lib/components/ui/tooltip",legacyImports:["$lib/components/ui/tooltip/LinkTooltip.svelte","$lib/components/ui/tooltip/Tooltip.svelte","$lib/components/ui/tooltip/TooltipRich.svelte","$lib/components/ui/tooltip/index.js","$lib/components/ui/tooltip/link-tooltip-state.svelte"],exports:["Content","LinkTooltip","Portal","Provider","Root","Tooltip","TooltipContent","TooltipPortal","TooltipProvider","TooltipRich","TooltipRoot","TooltipShortcut","TooltipTrigger","Trigger","formatUrlForDisplay","hideLinkTooltip","showLinkTooltip","tooltipMetadata"],usage:`<script lang="ts">
|
|
10
10
|
import * as Tooltip from '$lib/components/ui/tooltip';
|
|
11
11
|
<\/script>
|
|
12
12
|
|