@intent-hq/web 2.349.1 → 2.350.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BM4kpWSY.js → 1WcgIxhR.js} +1 -1
- package/web/app/immutable/chunks/{BwYW1dkK.js → 286xXFLf.js} +1 -1
- package/web/app/immutable/chunks/{CcWSFJ-V.js → 2B0vRGaJ.js} +1 -1
- package/web/app/immutable/chunks/{Cnd7G5VB.js → 2GRAEVbl.js} +1 -1
- package/web/app/immutable/chunks/{BigHY9es.js → 2cru8yuU.js} +1 -1
- package/web/app/immutable/chunks/{BcDnMnye.js → 2rtvtln4.js} +1 -1
- package/web/app/immutable/chunks/{C20jcbNk.js → 2yJgo8xz.js} +1 -1
- package/web/app/immutable/chunks/{DMJ_kXWl.js → 32pNLDLJ.js} +1 -1
- package/web/app/immutable/chunks/{8j0kVkRN.js → 4M32Nrru.js} +4 -4
- package/web/app/immutable/chunks/{CVXiMOvb.js → 6oPcdkTg.js} +1 -1
- package/web/app/immutable/chunks/{B7l4atYS.js → 71jcCmFL.js} +1 -1
- package/web/app/immutable/chunks/{BvoDzKGD.js → 7fznLbVZ.js} +1 -1
- package/web/app/immutable/chunks/{DAPuPOz3.js → 7uJhY2Ro.js} +1 -1
- package/web/app/immutable/chunks/{BhIO_xHl.js → 9_2ZyZ9L.js} +1 -1
- package/web/app/immutable/chunks/{C-enyvpk.js → Ari-xzJB.js} +1 -1
- package/web/app/immutable/chunks/{Cn5kmzaj.js → B-DRVFcy.js} +1 -1
- package/web/app/immutable/chunks/{C7Wb4_Fy.js → B0tZqpMw.js} +1 -1
- package/web/app/immutable/chunks/{WvnHVkBo.js → B1uWzETW.js} +1 -1
- package/web/app/immutable/chunks/{DJiBCJAD.js → B25aSyPj.js} +1 -1
- package/web/app/immutable/chunks/{_639dNbm.js → B2r-op5b.js} +1 -1
- package/web/app/immutable/chunks/{By_us5QF.js → B3aPtdPQ.js} +1 -1
- package/web/app/immutable/chunks/{D3F3BWsi.js → B3groEj8.js} +1 -1
- package/web/app/immutable/chunks/{qHfU8eWI.js → B45FOkqf.js} +3 -3
- package/web/app/immutable/chunks/{Q_fdFY85.js → B4ny9Nap.js} +1 -1
- package/web/app/immutable/chunks/{BFU2DTxE.js → B79m0-as.js} +1 -1
- package/web/app/immutable/chunks/{B9hnPU_k.js → B8WU5ocP.js} +1 -1
- package/web/app/immutable/chunks/{6px6q2WX.js → B8kZnhwO.js} +1 -1
- package/web/app/immutable/chunks/{xKssrPyL.js → B99vgEcA.js} +1 -1
- package/web/app/immutable/chunks/{8XTh8Ptp.js → BASTKLI1.js} +4 -4
- package/web/app/immutable/chunks/{CQnuk5Vr.js → BBYhh_eX.js} +1 -1
- package/web/app/immutable/chunks/{BjFyT_W2.js → BC51na55.js} +1 -1
- package/web/app/immutable/chunks/{yNVrzlY4.js → BCFqTXC5.js} +1 -1
- package/web/app/immutable/chunks/{CDRTbTrl.js → BCahpYtg.js} +1 -1
- package/web/app/immutable/chunks/{CSHUdNXY.js → BCazrMx2.js} +1 -1
- package/web/app/immutable/chunks/{9YwuUfsE.js → BDh1WR6p.js} +1 -1
- package/web/app/immutable/chunks/{wrzNedDP.js → BE9VuWVi.js} +1 -1
- package/web/app/immutable/chunks/{CO9-9ia5.js → BEVux-ca.js} +1 -1
- package/web/app/immutable/chunks/{CM7GBUHK.js → BHpSEINq.js} +1 -1
- package/web/app/immutable/chunks/{C4SwxIDn.js → BJTb0iPR.js} +1 -1
- package/web/app/immutable/chunks/{BiNDusYZ.js → BJeKKdy7.js} +1 -1
- package/web/app/immutable/chunks/{BnrJBpBN.js → BJpI9lmh.js} +2 -2
- package/web/app/immutable/chunks/{B28teA2c.js → BK62I-uA.js} +1 -1
- package/web/app/immutable/chunks/{CFAFichO.js → BKf74O20.js} +1 -1
- package/web/app/immutable/chunks/{KTJ-30_b.js → BLiGayBi.js} +1 -1
- package/web/app/immutable/chunks/{CAKCzVLn.js → BMcc0dQQ.js} +1 -1
- package/web/app/immutable/chunks/{C9qO9uPq.js → BNuxEAQs.js} +1 -1
- package/web/app/immutable/chunks/{BNGt0CxC.js → BOMdRVXl.js} +1 -1
- package/web/app/immutable/chunks/{BpDC3EqX.js → BQAE7Cab.js} +1 -1
- package/web/app/immutable/chunks/{BJlw6wnz.js → BRWlAcla.js} +1 -1
- package/web/app/immutable/chunks/{BmagX6n5.js → BSSsvY4I.js} +1 -1
- package/web/app/immutable/chunks/{DSWXlbxm.js → BT9NukZQ.js} +1 -1
- package/web/app/immutable/chunks/{C0u2gry7.js → BV_qZ-Kq.js} +1 -1
- package/web/app/immutable/chunks/{B5H_NPK0.js → BVg1wXVp.js} +1 -1
- package/web/app/immutable/chunks/{Bre3E0ap.js → BXSSv3Oq.js} +1 -1
- package/web/app/immutable/chunks/{EMb2ha4n.js → BXpSvmYd.js} +1 -1
- package/web/app/immutable/chunks/{CJyP11U5.js → B_7vJcZK.js} +1 -1
- package/web/app/immutable/chunks/{BzWpnIKh.js → B_EJ_ROK.js} +3 -3
- package/web/app/immutable/chunks/{Cvk4vC60.js → B_Iojn2B.js} +1 -1
- package/web/app/immutable/chunks/{DEGO3t-C.js → BaMaQsqR.js} +1 -1
- package/web/app/immutable/chunks/{D7TRU2iP.js → BaXl9G_p.js} +1 -1
- package/web/app/immutable/chunks/{NSQu1UJa.js → BaneMq5E.js} +1 -1
- package/web/app/immutable/chunks/{63MZi8_J.js → Bb07ib28.js} +1 -1
- package/web/app/immutable/chunks/{snmn_u5-.js → BboZoGK5.js} +2 -2
- package/web/app/immutable/chunks/{CHdwonoT.js → BgCDi7PA.js} +1 -1
- package/web/app/immutable/chunks/{Bcs0F47q.js → BhO09u_O.js} +1 -1
- package/web/app/immutable/chunks/{Gz_dGLcm.js → BjYS0G-V.js} +1 -1
- package/web/app/immutable/chunks/{aQ1wweeY.js → BkMQXe7-.js} +1 -1
- package/web/app/immutable/chunks/{DkJKEJ06.js → BmMUMiCr.js} +1 -1
- package/web/app/immutable/chunks/{B9CbdVRS.js → BmxmL68T.js} +1 -1
- package/web/app/immutable/chunks/{TRV263rQ.js → Bp_k45o-.js} +1 -1
- package/web/app/immutable/chunks/{Bhi7nqvj.js → BpfVRpLO.js} +1 -1
- package/web/app/immutable/chunks/{749Ye7vh.js → BsAcT-SB.js} +1 -1
- package/web/app/immutable/chunks/{-QpofkRx.js → BtEQs3u_.js} +3 -3
- package/web/app/immutable/chunks/{MpnM4XaB.js → Bv8FuKnx.js} +1 -1
- package/web/app/immutable/chunks/{vxHAGoo-.js → BwgrW8yQ.js} +1 -1
- package/web/app/immutable/chunks/{BdArbG4I.js → BxE0TK4z.js} +1 -1
- package/web/app/immutable/chunks/{BRrfv23s.js → BxUPDfJ4.js} +2 -2
- package/web/app/immutable/chunks/{DanhIRZQ.js → BzSSQl6R.js} +1 -1
- package/web/app/immutable/chunks/{BNodOXul.js → C-8EePTi.js} +1 -1
- package/web/app/immutable/chunks/{CcBfSx3w.js → C-Tv9xzP.js} +1 -1
- package/web/app/immutable/chunks/{QQQ2Maz-.js → C1862fgG.js} +1 -1
- package/web/app/immutable/chunks/{DZNKweTG.js → C2olseF2.js} +1 -1
- package/web/app/immutable/chunks/{H0FtMLfI.js → C5_BSKQx.js} +1 -1
- package/web/app/immutable/chunks/{DJkyIBda.js → C6DrVy6-.js} +1 -1
- package/web/app/immutable/chunks/{CEvdwZkh.js → C7LjhbvI.js} +1 -1
- package/web/app/immutable/chunks/{ClLRB7WU.js → C7NptMs7.js} +1 -1
- package/web/app/immutable/chunks/{D4bOZmAv.js → C7uOzB-k.js} +1 -1
- package/web/app/immutable/chunks/{ycNH2fN8.js → C82N7Ttz.js} +1 -1
- package/web/app/immutable/chunks/{VlylMxmA.js → C9CjIm-I.js} +1 -1
- package/web/app/immutable/chunks/{BFllbeCZ.js → CBTiE17j.js} +1 -1
- package/web/app/immutable/chunks/{EuCKSXHB.js → CBVEFL-b.js} +1 -1
- package/web/app/immutable/chunks/{Bkf7F_Qx.js → CClSMHHc.js} +1 -1
- package/web/app/immutable/chunks/{CA0nf0gO.js → CEHfILB1.js} +1 -1
- package/web/app/immutable/chunks/{BJHGBcTU.js → CEI59WUF.js} +1 -1
- package/web/app/immutable/chunks/{JF_LDwpb.js → CEa8rngJ.js} +1 -1
- package/web/app/immutable/chunks/{DNy6UqlX.js → CFE62qf4.js} +1 -1
- package/web/app/immutable/chunks/{Bs3EnmGR.js → CFMV5ANe.js} +1 -1
- package/web/app/immutable/chunks/{CTBZsDJn.js → CH0shWeP.js} +1 -1
- package/web/app/immutable/chunks/{Cq0e_D5i.js → CIFYvyWz.js} +1 -1
- package/web/app/immutable/chunks/{CyhLcHZ_.js → CIwCBz4N.js} +1 -1
- package/web/app/immutable/chunks/{CgQUkF-P.js → CJeZnjZ2.js} +1 -1
- package/web/app/immutable/chunks/{B7lF313M.js → CK2a86W3.js} +1 -1
- package/web/app/immutable/chunks/{BPY5RY-8.js → CKR2Jwr3.js} +1 -1
- package/web/app/immutable/chunks/{C_p41hnk.js → CKe6gKEB.js} +1 -1
- package/web/app/immutable/chunks/{BdyAQuf8.js → CM0lKKPd.js} +1 -1
- package/web/app/immutable/chunks/{0Ys9jF9i.js → CMvvA2dm.js} +1 -1
- package/web/app/immutable/chunks/{DFl_UPDl.js → CNCNgnPl.js} +1 -1
- package/web/app/immutable/chunks/{BaV_HcgG.js → CPFtOnI7.js} +1 -1
- package/web/app/immutable/chunks/{DhNomEqt.js → CUEflbxf.js} +1 -1
- package/web/app/immutable/chunks/{BbjKLyar.js → CUiOtEey.js} +1 -1
- package/web/app/immutable/chunks/{0GoAT2dR.js → CV5WtbgW.js} +1 -1
- package/web/app/immutable/chunks/{ra3YYtwY.js → Ca33AaL6.js} +1 -1
- package/web/app/immutable/chunks/{onT82iSe.js → CaGPKvrg.js} +1 -1
- package/web/app/immutable/chunks/{DpNO08YA.js → CbVK4mzc.js} +1 -1
- package/web/app/immutable/chunks/{Drfn5RRL.js → CbVZZ75K.js} +1 -1
- package/web/app/immutable/chunks/{lbBEThX6.js → Cbr15rLJ.js} +1 -1
- package/web/app/immutable/chunks/{B8EGWXN0.js → CcIb5dHQ.js} +2 -2
- package/web/app/immutable/chunks/{DitwnI8q.js → Ccm9-f52.js} +2 -2
- package/web/app/immutable/chunks/{DXeTlQw4.js → CeeT1t7l.js} +1 -1
- package/web/app/immutable/chunks/{BTUvce_V.js → CfcmMMGe.js} +3 -3
- package/web/app/immutable/chunks/{Bc-78-e9.js → ChdL62OI.js} +2 -2
- package/web/app/immutable/chunks/{DHClt9az.js → ChmnWquS.js} +1 -1
- package/web/app/immutable/chunks/{BnwhVBNM.js → Ci4xycon.js} +1 -1
- package/web/app/immutable/chunks/{B7MNPtN6.js → Cifu9mi9.js} +1 -1
- package/web/app/immutable/chunks/{CaQqYus5.js → CjFrzDwu.js} +1 -1
- package/web/app/immutable/chunks/{D_rHnmLE.js → Cjw1QvKa.js} +1 -1
- package/web/app/immutable/chunks/{B1Q0_YBy.js → ClDVqtGb.js} +1 -1
- package/web/app/immutable/chunks/{Bu9v967D.js → CrGdgRLR.js} +1 -1
- package/web/app/immutable/chunks/{DMDmyjl-.js → CrlYwLEr.js} +1 -1
- package/web/app/immutable/chunks/{B9O5QYHa.js → Cs2fCAnT.js} +1 -1
- package/web/app/immutable/chunks/{BaJNSnZt.js → CsbrChhH.js} +1 -1
- package/web/app/immutable/chunks/{BzJ6PuN9.js → Csp7pCXT.js} +1 -1
- package/web/app/immutable/chunks/{BMbB6G4j.js → CtH7YJ1N.js} +1 -1
- package/web/app/immutable/chunks/{9JxbPwvl.js → CtUmTl5D.js} +1 -1
- package/web/app/immutable/chunks/{Cayy-ftZ.js → Ctvf1zqH.js} +1 -1
- package/web/app/immutable/chunks/{BKZq4PO0.js → Cvv8aJ4r.js} +1 -1
- package/web/app/immutable/chunks/{Du0V4O1Q.js → Cw94LfJC.js} +1 -1
- package/web/app/immutable/chunks/{CiLRDPyT.js → Cwzl8GTd.js} +1 -1
- package/web/app/immutable/chunks/{D9xzAHI_.js → CxF8YFum.js} +1 -1
- package/web/app/immutable/chunks/{DwvH6ihg.js → CxxiwOxz.js} +1 -1
- package/web/app/immutable/chunks/{D0yYfpFT.js → CyRJV2Ki.js} +1 -1
- package/web/app/immutable/chunks/{DBigkuTi.js → CzZDc-Ii.js} +1 -1
- package/web/app/immutable/chunks/{CyZzaZYX.js → D2JEXCBC.js} +1 -1
- package/web/app/immutable/chunks/{CX0FMql8.js → D2rxIP2b.js} +1 -1
- package/web/app/immutable/chunks/{Bw5h0b4B.js → D3HUOTfX.js} +1 -1
- package/web/app/immutable/chunks/{Dgv1nn7D.js → D3v_P2Uq.js} +1 -1
- package/web/app/immutable/chunks/{xmUlEbpq.js → D3wOVtz4.js} +1 -1
- package/web/app/immutable/chunks/{CrMBXfo1.js → D41iEHKy.js} +1 -1
- package/web/app/immutable/chunks/{CMEHU8hk.js → D4gEzra-.js} +1 -1
- package/web/app/immutable/chunks/{DFXV1wIW.js → D4xoTssJ.js} +3 -3
- package/web/app/immutable/chunks/{Dn-5sae7.js → D68W4EG9.js} +1 -1
- package/web/app/immutable/chunks/{VZSwqvuN.js → D6kv6T9Z.js} +1 -1
- package/web/app/immutable/chunks/{UG14BPPT.js → D7KOa2cM.js} +2 -2
- package/web/app/immutable/chunks/{CuK2Zw46.js → D7v0ZhmL.js} +1 -1
- package/web/app/immutable/chunks/{BgUSjvxc.js → D897Deqj.js} +1 -1
- package/web/app/immutable/chunks/{CtiseZKO.js → DBwXC8Tc.js} +1 -1
- package/web/app/immutable/chunks/{CRNEQjon.js → DDlZNhW-.js} +1 -1
- package/web/app/immutable/chunks/{CI2ZJeGm.js → DDmVz0zj.js} +1 -1
- package/web/app/immutable/chunks/{up0Zt_r2.js → DEu6gDAW.js} +3 -3
- package/web/app/immutable/chunks/{BqgkenX2.js → DFxm2U6S.js} +1 -1
- package/web/app/immutable/chunks/{DRXhVu5w.js → DG7MHKfi.js} +1 -1
- package/web/app/immutable/chunks/DGQ1ECsI.js +1 -0
- package/web/app/immutable/chunks/{utDAmz_H.js → DJBAuZjD.js} +1 -1
- package/web/app/immutable/chunks/{DGRH7rrK.js → DJnP7chT.js} +1 -1
- package/web/app/immutable/chunks/{K6Z_l6pq.js → DKPFCCGK.js} +1 -1
- package/web/app/immutable/chunks/{BpftDedA.js → DLbCIONA.js} +1 -1
- package/web/app/immutable/chunks/{BTHEWI_S.js → DM6SW5ie.js} +1 -1
- package/web/app/immutable/chunks/{vw8GizVl.js → DMF8Xnwn.js} +1 -1
- package/web/app/immutable/chunks/{B8O1d-ta.js → DMJnRVJf.js} +1 -1
- package/web/app/immutable/chunks/{D-IkFfCX.js → DNZhZg57.js} +1 -1
- package/web/app/immutable/chunks/{aMVpjO1H.js → DPiLMhQg.js} +1 -1
- package/web/app/immutable/chunks/{B0E92Ur8.js → DT77V-dl.js} +1 -1
- package/web/app/immutable/chunks/{CLd6HNgr.js → DVWomJ3M.js} +2 -2
- package/web/app/immutable/chunks/{CHJZj-fd.js → DVpbdNgF.js} +1 -1
- package/web/app/immutable/chunks/{CmG1GbmA.js → DW8-b4qF.js} +1 -1
- package/web/app/immutable/chunks/{PMKD3h28.js → DWqOehs6.js} +3 -3
- package/web/app/immutable/chunks/{BhFOH57c.js → DYdDm8qg.js} +1 -1
- package/web/app/immutable/chunks/{ClQp3PSY.js → DZ-cwX5R.js} +2 -2
- package/web/app/immutable/chunks/{CgDK6J9C.js → DZ9bPwU4.js} +1 -1
- package/web/app/immutable/chunks/DZgyzAfw.js +1 -0
- package/web/app/immutable/chunks/{BGAqL5Hu.js → DZlVkf9Y.js} +4 -4
- package/web/app/immutable/chunks/{QiHSe7pE.js → DhNmiaLk.js} +1 -1
- package/web/app/immutable/chunks/{D_idmae7.js → DlTJT3V9.js} +1 -1
- package/web/app/immutable/chunks/{CVc3afbh.js → DldD9pcf.js} +2 -2
- package/web/app/immutable/chunks/{QHBZjsP5.js → Dr7kBzFG.js} +1 -1
- package/web/app/immutable/chunks/{C3n2Uabc.js → DsLKXQ10.js} +1 -1
- package/web/app/immutable/chunks/{CN_zBCnB.js → Dt_3gVf3.js} +4 -4
- package/web/app/immutable/chunks/{BHu-B5kJ.js → DukC1Pxj.js} +1 -1
- package/web/app/immutable/chunks/{Dsa4n88U.js → Dw4yJGUy.js} +1 -1
- package/web/app/immutable/chunks/{D49N714C.js → Dw7Mfzwn.js} +1 -1
- package/web/app/immutable/chunks/{lFSDumAY.js → DwJJFAxY.js} +1 -1
- package/web/app/immutable/chunks/{JzdAu8wb.js → DxR7IJ2x.js} +1 -1
- package/web/app/immutable/chunks/{D9tXiVtR.js → DxrW2EIL.js} +1 -1
- package/web/app/immutable/chunks/{nBuK6q0d.js → DzPN4aFg.js} +1 -1
- package/web/app/immutable/chunks/{DSWBNeO8.js → EBvHmS3f.js} +1 -1
- package/web/app/immutable/chunks/H2SodBVA.js +1 -0
- package/web/app/immutable/chunks/{DUoxftgs.js → H_Nm449K.js} +1 -1
- package/web/app/immutable/chunks/Hc3ynozM.js +1 -0
- package/web/app/immutable/chunks/{5SqYTp29.js → LIrM5l7a.js} +1 -1
- package/web/app/immutable/chunks/{B3SGnWra.js → LeGktTWT.js} +1 -1
- package/web/app/immutable/chunks/{CMd41Hnh.js → RMrXit9I.js} +12 -12
- package/web/app/immutable/chunks/{DMhUzoUF.js → SW-tnZ5e.js} +1 -1
- package/web/app/immutable/chunks/{DT_ABoQZ.js → To-GU1hI.js} +1 -1
- package/web/app/immutable/chunks/{Cvl8hYkG.js → UiRD2HCB.js} +1 -1
- package/web/app/immutable/chunks/{BMQAui7e.js → UkpeErAx.js} +2 -2
- package/web/app/immutable/chunks/{D4r0rKFl.js → WydNOMQI.js} +1 -1
- package/web/app/immutable/chunks/{DvwGTmJ3.js → XM11aLg9.js} +1 -1
- package/web/app/immutable/chunks/{B3RsHzWp.js → Xn8V9ehY.js} +1 -1
- package/web/app/immutable/chunks/{DvvIOlOp.js → Y5hz4Ndf.js} +1 -1
- package/web/app/immutable/chunks/{B5G4SPkG.js → YeEGAsBO.js} +1 -1
- package/web/app/immutable/chunks/{5eZIrph_.js → _1y9QH1k.js} +1 -1
- package/web/app/immutable/chunks/{UJ1EpVxt.js → _s2xW34N.js} +1 -1
- package/web/app/immutable/chunks/{BHqqRyT8.js → cHlEaLvO.js} +1 -1
- package/web/app/immutable/chunks/{CUyvQglq.js → d34yYkdR.js} +1 -1
- package/web/app/immutable/chunks/{C17Klvq4.js → dt-eIcjK.js} +1 -1
- package/web/app/immutable/chunks/{jeQJPkPX.js → eIlGg2ZH.js} +1 -1
- package/web/app/immutable/chunks/{Cw3xVp_u.js → fE-kcmYj.js} +1 -1
- package/web/app/immutable/chunks/{DEsZrW9M.js → f_NG7JPv.js} +1 -1
- package/web/app/immutable/chunks/{DBHc62lF.js → fvaRaafM.js} +1 -1
- package/web/app/immutable/chunks/{CZ2C0Bw1.js → gq1gp-va.js} +1 -1
- package/web/app/immutable/chunks/{Cuu_7zcj.js → hHmUU40X.js} +2 -2
- package/web/app/immutable/chunks/{DR-BIfRu.js → iP2vS2hx.js} +1 -1
- package/web/app/immutable/chunks/{yIt8dECo.js → kWL2GjPN.js} +1 -1
- package/web/app/immutable/chunks/{MXYIc7_A.js → kXBIZrMa.js} +1 -1
- package/web/app/immutable/chunks/{Ctp2YBhQ.js → mxwa8yTT.js} +1 -1
- package/web/app/immutable/chunks/{-1WDZF8N.js → nwgFD7pR.js} +2 -2
- package/web/app/immutable/chunks/{DY7nIM_G.js → qT7g0XeC.js} +1 -1
- package/web/app/immutable/chunks/{NSYi6AlX.js → qVFwsb4j.js} +1 -1
- package/web/app/immutable/chunks/{D9BiEPlJ.js → rEoZFmiI.js} +1 -1
- package/web/app/immutable/chunks/{D4LrTene.js → rbrWRnHh.js} +1 -1
- package/web/app/immutable/chunks/{CCoYF4yh.js → vCsRAP9U.js} +1 -1
- package/web/app/immutable/chunks/{BdRSK1yL.js → vQ6gxb4d.js} +1 -1
- package/web/app/immutable/chunks/{Ce3Ams7F.js → xCXPOQKs.js} +1 -1
- package/web/app/immutable/chunks/{5oAr1srr.js → xEQudZps.js} +1 -1
- package/web/app/immutable/chunks/{6uyelIKx.js → zDp2t9TD.js} +1 -1
- package/web/app/immutable/entry/{app.DTfx5CuV.js → app.B3zmyQo-.js} +3 -3
- package/web/app/immutable/entry/start.DL1A5aV6.js +1 -0
- package/web/app/immutable/nodes/{0.3GL3qSES.js → 0.kC9p1Qyh.js} +1 -1
- package/web/app/immutable/nodes/{1.ez5gI658.js → 1.CbKQgLbJ.js} +1 -1
- package/web/app/immutable/nodes/{10.DIxSk9q8.js → 10.nkEgxR4t.js} +1 -1
- package/web/app/immutable/nodes/{11.D_8o4hy2.js → 11.BNBCl9Ko.js} +1 -1
- package/web/app/immutable/nodes/{12.CZZ5SuMc.js → 12.BriSlPZC.js} +1 -1
- package/web/app/immutable/nodes/{13.BCLve-7_.js → 13.QpfX0_5g.js} +3 -3
- package/web/app/immutable/nodes/{14.MpS-kf0C.js → 14.ZJqXSGiE.js} +1 -1
- package/web/app/immutable/nodes/{15.ClAlFdyg.js → 15.DdEMX_Kl.js} +1 -1
- package/web/app/immutable/nodes/{16.CuGK30BG.js → 16.rtMs5JTy.js} +1 -1
- package/web/app/immutable/nodes/{17.D7rHJr6p.js → 17.DDfq3IKN.js} +1 -1
- package/web/app/immutable/nodes/{18.DW5qKw-K.js → 18.Cds1TQEe.js} +2 -2
- package/web/app/immutable/nodes/{2.CLq8rIVr.js → 2.TMV-VJam.js} +4 -4
- package/web/app/immutable/nodes/{3.BSdLkeLH.js → 3.Dy6_DOyf.js} +1 -1
- package/web/app/immutable/nodes/{4.DQIk0T0w.js → 4.CSClZLtr.js} +1 -1
- package/web/app/immutable/nodes/{5.DITRknqM.js → 5.B2fm04nD.js} +1 -1
- package/web/app/immutable/nodes/{6.3WKk43x0.js → 6.wppAoRAf.js} +1 -1
- package/web/app/immutable/nodes/{7.BJ0R8KFY.js → 7.BJEQzlNN.js} +1 -1
- package/web/app/immutable/nodes/{8.DPgSAVJ2.js → 8.bO4mjRsC.js} +12 -12
- package/web/app/immutable/nodes/{9.zTjz59Kl.js → 9.Dz8XAzvL.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +9 -9
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BKdLSL00.js +0 -1
- package/web/app/immutable/chunks/BnJDHHUb.js +0 -1
- package/web/app/immutable/chunks/CT36W95j.js +0 -1
- package/web/app/immutable/chunks/CTY09YkT.js +0 -1
- package/web/app/immutable/entry/start.DueW1FW9.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,bo as P,by as un,bs as On,b as hn,bu as Ke}from"./CT36W95j.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as j,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{i as M}from"./Cn5kmzaj.js";import{g as Pt,i as Hn,I as ir,e as ar}from"./Bw5h0b4B.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./D-IkFfCX.js";import{f as En,s as Ve,g as lr}from"./TRV263rQ.js";import{b as on}from"./BaIAhI85.js";import{Iv as Me,eE as Vs,ev as js,ew as Ks,oA as qs,no as Vt,ns as cr,nr as In,ey as Gs,u_ as Qs,u$ as Xs,v1 as Ys,Gz as Zs,IA as Js,rj as eo,eD as to}from"./BmagX6n5.js";import{c as no}from"./BKdLSL00.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./D_rHnmLE.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./DpNO08YA.js";import{L as pr}from"./CiLRDPyT.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./BaJNSnZt.js";import{q as $e,d as go,g as fo}from"./yNVrzlY4.js";import"./DHClt9az.js";import"./ClQp3PSY.js";import{e as mo}from"./UG14BPPT.js";import{T as Pr}from"./Bs3EnmGR.js";import{g as Nn}from"./MpnM4XaB.js";import{f as ke}from"./D9xzAHI_.js";import{C as po}from"./lbBEThX6.js";import{C as vo}from"./B7lF313M.js";import{s as vr}from"./DvwGTmJ3.js";import{t as Dt}from"./Du0V4O1Q.js";import{P as _o,k as _r}from"./8j0kVkRN.js";import{g as wo}from"./Cw3xVp_u.js";import{af as bo,a3 as yo}from"./BnrJBpBN.js";import{ap as Co}from"./qHfU8eWI.js";import{L as wr}from"./PMKD3h28.js";import{ad as So,ac as xo,ae as ko}from"./CMd41Hnh.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+jt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=jt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=jt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=jt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=jt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function jt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>Ke(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function Kt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,je="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return je==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),je=N(rt),At=N(je);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(je),H(rt),z(Mt=>j(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>j(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,Kt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
1
|
+
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,bo as P,by as un,bs as On,b as hn,bu as Ke}from"./DGQ1ECsI.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as j,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{i as M}from"./B-DRVFcy.js";import{g as Pt,i as Hn,I as ir,e as ar}from"./D3HUOTfX.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./DNZhZg57.js";import{f as En,s as Ve,g as lr}from"./Bp_k45o-.js";import{b as on}from"./BaIAhI85.js";import{Iv as Me,eE as Vs,ev as js,ew as Ks,oA as qs,no as Vt,ns as cr,nr as In,ey as Gs,u_ as Qs,u$ as Xs,v1 as Ys,Gz as Zs,IA as Js,rj as eo,eD as to}from"./BSSsvY4I.js";import{c as no}from"./Hc3ynozM.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./Cjw1QvKa.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./CbVK4mzc.js";import{L as pr}from"./Cwzl8GTd.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./CsbrChhH.js";import{q as $e,d as go,g as fo}from"./BCFqTXC5.js";import"./ChmnWquS.js";import"./DZ-cwX5R.js";import{e as mo}from"./D7KOa2cM.js";import{T as Pr}from"./CFMV5ANe.js";import{g as Nn}from"./Bv8FuKnx.js";import{f as ke}from"./CxF8YFum.js";import{C as po}from"./Cbr15rLJ.js";import{C as vo}from"./CK2a86W3.js";import{s as vr}from"./XM11aLg9.js";import{t as Dt}from"./Cw94LfJC.js";import{P as _o,k as _r}from"./4M32Nrru.js";import{g as wo}from"./fE-kcmYj.js";import{af as bo,a3 as yo}from"./BJpI9lmh.js";import{ap as Co}from"./B45FOkqf.js";import{L as wr}from"./DWqOehs6.js";import{ad as So,ac as xo,ae as ko}from"./RMrXit9I.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+jt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=jt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=jt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=jt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=jt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function jt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>Ke(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function Kt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,je="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return je==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),je=N(rt),At=N(je);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(je),H(rt),z(Mt=>j(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>j(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,Kt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
2
2
|
`):[],a=r?r.split(`
|
|
3
3
|
`):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const y=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:y,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(yr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=yr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),y=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:y,headLines:F-y,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,y,A)=>{let F=y;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const y of b.lines)y.type==="Context"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),r.push(y.content),l.push(y.content),a++,c++):y.type==="Deletion"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),r.push(y.content),a++):y.type==="Addition"&&(y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),l.push(y.content),c++)}return{oldContent:r.join(`
|
|
4
4
|
`),newContent:l.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var qr=Object.defineProperty;var Yt=d=>{throw TypeError(d)};var zr=(d,e,t)=>e in d?qr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var M=(d,e,t)=>zr(d,typeof e!="symbol"?e+"":e,t),xt=(d,e,t)=>e.has(d)||Yt("Cannot "+t);var h=(d,e,t)=>(xt(d,e,"read from private field"),t?t.call(d):e.get(d)),H=(d,e,t)=>e.has(d)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,t),Ie=(d,e,t,r)=>(xt(d,e,"write to private field"),r?r.call(d,t):e.set(d,t),t),Pe=(d,e,t)=>(xt(d,e,"access private method"),t);import{t as te,bq as a,by as re,b as ne,br as be,bt as _e,bo as jt}from"./CT36W95j.js";import{c9 as x,aD as n,bs as oe,a7 as q,ay as K,W as S,bn as se,aA as l,aB as $,bH as k,bV as Y,bi as Gr,ca as ve,cb as Yr,bf as ae,bo as ke,a5 as X,bA as Z,bS as ct,bI as jr,aG as At,c5 as Jr,bl as sr,b_ as Et,bO as Qr,br as Xr,bk as Zr,c0 as Ct}from"./DYhIMPy1.js";import{s as j}from"./DHClt9az.js";import{c as pe}from"./CgQUkF-P.js";import{e as $r,s as en,g as tn,i as rn,f as nn,b as on}from"./BdyAQuf8.js";import{i as Q}from"./Cn5kmzaj.js";import{g as sn,e as Jt}from"./Bw5h0b4B.js";import{aY as an,aQ as de,au as ln,aI as dn,h as Tt,an as Ce,D as yt,i as un,d as le,a as fe,l as pt,a6 as _t,ac as ft,_ as Ht,J as Mt,Z as Rt,E as Vt,aR as ir,aW as ar,aC as lr,ap as dr,aq as Lt,aF as Dt,ar as ur,a$ as me,aN as hn,aU as cn,aH as gn,aG as pn,at as Qt,am as hr,a2 as fn,av as U,ay as vn,m as cr,b as mn,c as bn,a4 as yn,C as wn,g as xn,A as _n,M as Cn,F as Nn,r as In,s as Pn,t as Sn,u as kn,v as On,w as An,x as En,y as Tn,o as Hn,p as Mn,q as Rn,B as Vn,z as Ln,az as ue,aS as J,a0 as gr,$ as pr,aV as Dn,H as Fn,f as Kn,a1 as Bn}from"./D9xzAHI_.js";import{b as ee,e as xe,f as fr,s as vr,c as Wn}from"./TRV263rQ.js";import{F as mr,as as Un,bV as qn,au as zn,aq as Gn}from"./D_rHnmLE.js";import"./ClQp3PSY.js";import{b as Yn}from"./BaIAhI85.js";import{P as jn,u as Jn,b as Xt,a as Qn}from"./BwYW1dkK.js";import{c as Xn,u as Zn,s as $n}from"./DfxQWSVU.js";import"./DBigkuTi.js";import{s as eo,a as to}from"./BsieX9dN.js";const br={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};an(br);var Ee,mt;class ro{constructor(e,t){H(this,Ee,()=>{});H(this,mt,x(()=>h(this,Ee).call(this)));let r;t!==void 0&&(r=t),Ie(this,Ee,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,mt))}}Ee=new WeakMap,mt=new WeakMap;var no=new Set(["$$slots","$$events","$$legacy","value"]),Zt=$("<input/>");function yr(d,e){if(new.target)return te({component:yr,...d});oe(e,!0);let t=a(e,"value",15),r=be(e,no);const s=x(()=>de(r,{"aria-hidden":"true",tabindex:-1,style:{...br,position:"absolute",top:"0",left:"0"}}));var o={get value(){return t()},set value(u){t(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},i=q(),v=K(i);{var _=u=>{var p=Zt();ee(p,()=>({...n(s),value:t()}),void 0,void 0,void 0,void 0,!0),S(u,p)},m=u=>{var p=Zt();ee(p,()=>({...n(s)}),void 0,void 0,void 0,void 0,!0),$r(p,t),S(u,p)};Q(v,u=>{n(s).type==="checkbox"?u(_):u(m,-1)})}return S(d,i),se(o)}var ce,ye,ge;class oo{constructor(e){H(this,ce);H(this,ye,x(()=>h(this,ce).candidateValues()));H(this,ge);Ie(this,ce,e),Ie(this,ge,ln("",{afterMs:1e3,getWindow:h(this,ce).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,ce).enabled()||!n(h(this,ye)).length)return;h(this,ge).current=h(this,ge).current+e;const t=h(this,ce).getCurrentItem(),r=n(h(this,ye)).find(v=>v===t)??"",s=n(h(this,ye)).map(v=>v??""),o=dn(s,h(this,ge).current,r),i=n(h(this,ye)).find(v=>v===o);return i&&h(this,ce).onMatch(i),i}resetTypeahead(){h(this,ge).current=""}}ce=new WeakMap,ye=new WeakMap,ge=new WeakMap;const $t=[mn,cr,bn,yn,wn,xn,_n,Cn,pt,Nn,In,Pn,Sn,kn,On,An,En,Tn,Hn,Mn,Rn],so=[fe,Ht,Mt],io=[le,Rt,Vt],wr=[...so,...io],ao=vn({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ne=new Tt("Select.Root | Combobox.Root"),xr=new Tt("Select.Group | Combobox.Group"),_r=new Tt("Select.Content | Combobox.Content");var Te,He,Me,Re,Ve,Le,De,Fe,Ke,Be,We,Ue;class Cr{constructor(e){M(this,"opts");H(this,Te,Y(!1));H(this,He,Y(null));H(this,Me,Y(null));M(this,"contentPresence");H(this,Re,Y(null));H(this,Ve,Y(null));H(this,Le,Y(null));H(this,De,Y(""));H(this,Fe,Y(null));H(this,Ke,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,Be,x(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,We,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ue,Y(!1));M(this,"isUsingKeyboard",!1);M(this,"isCombobox",!1);M(this,"domContext",new yt(()=>null));M(this,"getBitsAttr",e=>ao.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new fn({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Yr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,Te))}set touchedInput(e){k(h(this,Te),e,!0)}get inputNode(){return n(h(this,He))}set inputNode(e){k(h(this,He),e,!0)}get contentNode(){return n(h(this,Me))}set contentNode(e){k(h(this,Me),e,!0)}get viewportNode(){return n(h(this,Re))}set viewportNode(e){k(h(this,Re),e,!0)}get triggerNode(){return n(h(this,Ve))}set triggerNode(e){k(h(this,Ve),e,!0)}get valueNode(){return n(h(this,Le))}set valueNode(e){k(h(this,Le),e,!0)}get valueId(){return n(h(this,De))}set valueId(e){k(h(this,De),e,!0)}get highlightedNode(){return n(h(this,Fe))}set highlightedNode(e){k(h(this,Fe),e,!0)}get highlightedValue(){return n(h(this,Ke))}set highlightedValue(e){k(h(this,Ke),e)}get highlightedId(){return n(h(this,Be))}set highlightedId(e){k(h(this,Be),e)}get highlightedLabel(){return n(h(this,We))}set highlightedLabel(e){k(h(this,We),e)}get contentIsPositioned(){return n(h(this,Ue))}set contentIsPositioned(e){k(h(this,Ue),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(s=>{if(!this.viewportNode)return!1;const o=s.getBoundingClientRect();return o.right<=r.right&&o.left>=r.left&&o.bottom<=r.bottom&&o.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(s=>s.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const s=r.getAttribute("data-label");return s!==null&&s!==""?s:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Te=new WeakMap,He=new WeakMap,Me=new WeakMap,Re=new WeakMap,Ve=new WeakMap,Le=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap;var qe,ze,Ge,Ye;class lo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!1);H(this,qe,x(()=>this.opts.value.current!==""));H(this,ze,x(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Ge,x(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Ye,x(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,qe))}set hasValue(t){k(h(this,qe),t)}get currentLabel(){return n(h(this,ze))}set currentLabel(t){k(h(this,ze),t)}get candidateLabels(){return n(h(this,Ge))}set candidateLabels(t){k(h(this,Ge),t)}get dataTypeaheadEnabled(){return n(h(this,Ye))}set dataTypeaheadEnabled(t){k(h(this,Ye),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const s=this.includesItem(t)?"":t;this.opts.value.current=s,s!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){hr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Ye=new WeakMap;var je;class uo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!0);H(this,je,x(()=>this.opts.value.current.length>0));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,je))}set hasValue(t){k(h(this,je),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(s=>s!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){hr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}je=new WeakMap;class ho{static create(e){const{type:t,...r}=e,s=t==="single"?new lo(r):new uo(r);return Ne.set(s)}}var Je;const Ft=class Ft{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Je,x(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":ur(this.root.opts.open.current),"data-state":Dt(this.root.opts.open.current),"data-disabled":Lt(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref,r=>this.root.inputNode=r),this.root.domContext=new yt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),me([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,s],[o])=>{s&&(Array.isArray(r)&&Array.isArray(o)?r.length===0&&o.length!==0&&(this.root.opts.inputValue.current=""):r===""&&o!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new Ft(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==cr){if((e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if($t.includes(e.key)||e.key===ft||e.key===Vn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===fe){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===ft){this.root.handleClose();return}if(e.key===pt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),wr.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,s=r?t.indexOf(r):-1,o=this.root.opts.loop.current;let i;if(e.key===fe?i=ir(t,s,o):e.key===le?i=ar(t,s,o):e.key===Rt?i=lr(t,s,10,o):e.key===Ht?i=dr(t,s,10,o):e.key===Mt?i=t[0]:e.key===Vt&&(i=t[t.length-1]),!i)return;this.root.setHighlightedNode(i);return}$t.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Je))}set props(e){k(h(this,Je),e)}};Je=new WeakMap;let er=Ft;var we,Se,he,Nr,It,Pt,Qe;const Kt=class Kt{constructor(e,t){H(this,he);M(this,"opts");M(this,"root");M(this,"attachment");H(this,we);H(this,Se);H(this,Qe,x(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":ur(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Dt(this.root.opts.open.current),"data-disabled":Lt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new yt(e.ref),Ie(this,we,new un({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ie(this,Se,new oo({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(o=>o.label===r);s&&(this.root.opts.value.current=s.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Kt(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===pt||e.key===_t||e.key===fe||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,Se).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(e.key===fe){const v=i[0];this.root.setHighlightedNode(v)}else if(e.key===le){const v=i[i.length-1];this.root.setHighlightedNode(v)}return}if(e.key===ft){this.root.handleClose();return}if((e.key===pt||e.key===_t&&h(this,we).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,he,Pt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),wr.includes(e.key)){e.preventDefault();const i=this.root.getCandidateNodes(),v=this.root.highlightedNode,_=v?i.indexOf(v):-1,m=this.root.opts.loop.current;let u;if(e.key===fe?u=ir(i,_,m):e.key===le?u=ar(i,_,m):e.key===Rt?u=lr(i,_,10,m):e.key===Ht?u=dr(i,_,10,m):e.key===Mt?u=i[0]:e.key===Vt&&(u=i[i.length-1]),!u)return;this.root.setHighlightedNode(u);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,s=e.key===_t,o=this.root.getCandidateNodes();if(e.key!==ft){if(!t&&(r||s)){!h(this,we).handleTypeaheadSearch(e.key,o)&&s&&(e.preventDefault(),Pe(this,he,Pt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,he,It).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,he,It).call(this,e):this.root.handleClose()))}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};we=new WeakMap,Se=new WeakMap,he=new WeakSet,Nr=function(){this.root.opts.open.current=!0,h(this,Se).resetTypeahead(),h(this,we).resetTypeahead()},It=function(e){Pe(this,he,Nr).call(this)},Pt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},Qe=new WeakMap;let Nt=Kt;var Xe,bt,Ze,$e;const Bt=class Bt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Xe,Y(!1));M(this,"domContext");H(this,bt,x(()=>gn(this.root.isCombobox?"combobox":"select")));M(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});M(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});M(this,"onOpenAutoFocus",e=>{e.preventDefault()});M(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,Ze,x(()=>({open:this.root.opts.open.current})));H(this,$e,x(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Dt(this.root.opts.open.current),...pn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,bt))},onpointermove:this.onpointermove,...this.attachment})));M(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ce(e.ref,r=>this.root.contentNode=r),this.domContext=new yt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),cn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),me(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),me([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return _r.set(new Bt(e,Ne.get()))}get isPositioned(){return n(h(this,Xe))}set isPositioned(e){k(h(this,Xe),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,Ze))}set snippetProps(e){k(h(this,Ze),e)}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};Xe=new WeakMap,bt=new WeakMap,Ze=new WeakMap,$e=new WeakMap;let vt=Bt;var et,tt,rt,nt,ot;const Wt=class Wt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,et,x(()=>this.root.includesItem(this.opts.value.current)));H(this,tt,x(()=>this.root.highlightedValue===this.opts.value.current));M(this,"prevHighlighted",new ro(()=>this.isHighlighted));H(this,rt,Y(!1));H(this,nt,x(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,ot,x(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Lt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref),me([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),me(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new Wt(e,Ne.get())}get isSelected(){return n(h(this,et))}set isSelected(e){k(h(this,et),e)}get isHighlighted(){return n(h(this,tt))}set isHighlighted(e){k(h(this,tt),e)}get mounted(){return n(h(this,rt))}set mounted(e){k(h(this,rt),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,nt))}set snippetProps(e){k(h(this,nt),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!hn){Gr(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,ot))}set props(e){k(h(this,ot),e)}};et=new WeakMap,tt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=new WeakMap;let St=Wt;var st,it;const Ut=class Ut{constructor(e,t){M(this,"opts");M(this,"root");H(this,st,Y(null));M(this,"attachment");H(this,it,x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref)}static create(e){return xr.set(new Ut(e,Ne.get()))}get labelNode(){return n(h(this,st))}set labelNode(e){k(h(this,st),e,!0)}get props(){return n(h(this,it))}set props(e){k(h(this,it),e)}};st=new WeakMap,it=new WeakMap;let tr=Ut;var at;const qt=class qt{constructor(e,t){M(this,"opts");M(this,"group");M(this,"attachment");H(this,at,x(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ce(e.ref,r=>this.group.labelNode=r)}static create(e){return new qt(e,xr.get())}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};at=new WeakMap;let rr=qt;var lt,dt;const zt=class zt{constructor(e,t){M(this,"opts");M(this,"root");H(this,lt,x(()=>this.root.opts.name.current!==""));H(this,dt,x(()=>({disabled:Qt(this.root.opts.disabled.current),required:Qt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new zt(e,Ne.get())}get shouldRender(){return n(h(this,lt))}set shouldRender(e){k(h(this,lt),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let kt=zt;var ut,ht;const Gt=class Gt{constructor(e,t){M(this,"opts");M(this,"content");M(this,"root");M(this,"attachment");H(this,ut,Y(0));H(this,ht,x(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ce(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Gt(e,_r.get())}get prevScrollTop(){return n(h(this,ut))}set prevScrollTop(e){k(h(this,ut),e,!0)}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ut=new WeakMap,ht=new WeakMap;let Ot=Gt;function gt(d,e){if(new.target)return te({component:gt,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"autocomplete",7);const s=kt.create({value:U(()=>t())});var o={get value(){return t()},set value(m){t(m),l()},get autocomplete(){return r()},set autocomplete(m){r(m),l()},$set:re,$on:(m,u)=>ne(e,m,u)},i=q(),v=K(i);{var _=m=>{yr(m,_e(()=>s.props,{get autocomplete(){return r()},get value(){return t()},set value(u){t(u)}}))};Q(v,m=>{s.shouldRender&&m(_)})}return S(d,i),se(o)}function Ir(d,e){if(new.target)return te({component:Ir,...d});oe(e,!0);let t=a(e,"id",7),r=a(e,"children",7),s=a(e,"virtualEl",7),o=a(e,"ref",7),i=a(e,"tooltip",7,!1);Ln.create({id:U(()=>t()),virtualEl:U(()=>s()),ref:o()},i());var v={get id(){return t()},set id(u){t(u),l()},get children(){return r()},set children(u){r(u),l()},get virtualEl(){return s()},set virtualEl(u){s(u),l()},get ref(){return o()},set ref(u){o(u),l()},get tooltip(){return i()},set tooltip(u=!1){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);return j(m,()=>r()??ae),S(d,_),se(v)}var co=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),nr=$("<div><div><!></div></div>");function Pr(d,e){const t=ke();if(new.target)return te({component:Pr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"side",7,"bottom"),v=a(e,"onInteractOutside",7,J),_=a(e,"onEscapeKeydown",7,J),m=a(e,"children",7),u=a(e,"child",7),p=a(e,"preventScroll",7,!1),T=a(e,"style",7),O=be(e,co);const C=vt.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),onInteractOutside:U(()=>v()),onEscapeKeydown:U(()=>_())}),N=x(()=>de(O,C.props));var b={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get forceMount(){return o()},set forceMount(c=!1){o(c),l()},get side(){return i()},set side(c="bottom"){i(c),l()},get onInteractOutside(){return v()},set onInteractOutside(c=J){v(c),l()},get onEscapeKeydown(){return _()},set onEscapeKeydown(c=J){_(c),l()},get children(){return m()},set children(c){m(c),l()},get child(){return u()},set child(c){u(c),l()},get preventScroll(){return p()},set preventScroll(c=!1){p(c),l()},get style(){return T()},set style(c){T(c),l()},$set:re,$on:(c,V)=>ne(e,c,V)},R=q(),D=K(R);{var G=c=>{gr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get enabled(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!0,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var L=q(),W=K(L);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,L)},$$slots:{popper:!0}}))},g=c=>{pr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get open(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!1,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var L=q(),W=K(L);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,L)},$$slots:{popper:!0}}))};Q(D,c=>{o()?c(G):o()||c(g,1)})}return S(d,R),se(b)}var go=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),or=$("<div><!></div>");function Sr(d,e){const t=ke();if(new.target)return te({component:Sr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"onInteractOutside",7,J),v=a(e,"onEscapeKeydown",7,J),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"preventScroll",7,!1),p=a(e,"style",7),T=be(e,go);const O=vt.create({id:U(()=>r()),ref:U(()=>s(),g=>s(g)),onInteractOutside:U(()=>i()),onEscapeKeydown:U(()=>v())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(g=ue(t)){r(g),l()},get ref(){return s()},set ref(g=null){s(g),l()},get forceMount(){return o()},set forceMount(g=!1){o(g),l()},get onInteractOutside(){return i()},set onInteractOutside(g=J){i(g),l()},get onEscapeKeydown(){return v()},set onEscapeKeydown(g=J){v(g),l()},get children(){return _()},set children(g){_(g),l()},get child(){return m()},set child(g){m(g),l()},get preventScroll(){return u()},set preventScroll(g=!1){u(g),l()},get style(){return p()},set style(g){p(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},b=q(),R=K(b);{var D=g=>{gr(g,_e(()=>n(C),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return u()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var L=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(L):F(W,-1)})}S(V,B)},$$slots:{popper:!0}}))},G=g=>{pr(g,_e(()=>n(C),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return u()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var L=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(L):F(W,-1)})}S(V,B)},$$slots:{popper:!0}}))};Q(R,g=>{o()?g(D):o()||g(G,1)})}return S(d,b),se(N)}function kr(d,e){if(new.target)return te({component:kr,...d});oe(e,!0);let t=a(e,"mounted",15,!1),r=a(e,"onMountedChange",7,J);Dn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var s={get mounted(){return t()},set mounted(o=!1){t(o),l()},get onMountedChange(){return r()},set onMountedChange(o=J){r(o),l()},$set:re,$on:(o,i)=>ne(e,o,i)};return se(s)}var po=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),fo=$("<div><!></div>"),vo=$("<!> <!>",1);function Or(d,e){const t=ke();if(new.target)return te({component:Or,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"value",7),i=a(e,"label",23,o),v=a(e,"disabled",7,!1),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"onHighlight",7,J),p=a(e,"onUnhighlight",7,J),T=be(e,po);const O=St.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),value:U(()=>o()),disabled:U(()=>v()),label:U(()=>i()),onHighlight:U(()=>u()),onUnhighlight:U(()=>p())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get value(){return o()},set value(c){o(c),l()},get label(){return i()},set label(c=o){i(c),l()},get disabled(){return v()},set disabled(c=!1){v(c),l()},get children(){return _()},set children(c){_(c),l()},get child(){return m()},set child(c){m(c),l()},get onHighlight(){return u()},set onHighlight(c=J){u(c),l()},get onUnhighlight(){return p()},set onUnhighlight(c=J){p(c),l()},$set:re,$on:(c,V)=>ne(e,c,V)},b=vo(),R=K(b);{var D=c=>{var V=q(),I=K(V);{let y=x(()=>({props:n(C),...O.snippetProps}));j(I,m,()=>n(y))}S(c,V)},G=c=>{var V=fo();ee(V,()=>({...n(C)}));var I=X(V);j(I,()=>_()??ae,()=>O.snippetProps),Z(V),S(c,V)};Q(R,c=>{m()?c(D):c(G,-1)})}var g=ct(R,2);return kr(g,{get mounted(){return O.mounted},set mounted(c){O.mounted=c}}),S(d,b),se(N)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),bo=$("<div><!></div>");function Ar(d,e){const t=ke();if(new.target)return te({component:Ar,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"children",7),i=a(e,"child",7),v=be(e,mo);const _=Ot.create({id:U(()=>r()),ref:U(()=>s(),N=>s(N))}),m=x(()=>de(v,_.props));var u={get id(){return r()},set id(N=ue(t)){r(N),l()},get ref(){return s()},set ref(N=null){s(N),l()},get children(){return o()},set children(N){o(N),l()},get child(){return i()},set child(N){i(N),l()},$set:re,$on:(N,b)=>ne(e,N,b)},p=q(),T=K(p);{var O=N=>{var b=q(),R=K(b);j(R,i,()=>({props:n(m)})),S(N,b)},C=N=>{var b=bo();ee(b,()=>({...n(m)}));var R=X(b);j(R,()=>o()??ae),Z(b),S(N,b)};Q(T,N=>{i()?N(O):N(C,-1)})}return S(d,p),se(u)}var yo=$("<!> <!>",1);function Er(d,e){if(new.target)return te({component:Er,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"onValueChange",7,J),s=a(e,"name",7,""),o=a(e,"disabled",7,!1),i=a(e,"type",7),v=a(e,"open",15,!1),_=a(e,"onOpenChange",7,J),m=a(e,"onOpenChangeComplete",7,J),u=a(e,"loop",7,!1),p=a(e,"scrollAlignment",7,"nearest"),T=a(e,"required",7,!1),O=a(e,"items",23,()=>[]),C=a(e,"allowDeselect",7,!1),N=a(e,"autocomplete",7),b=a(e,"children",7);function R(){t()===void 0&&t(i()==="single"?"":[])}R(),me.pre(()=>t(),()=>{R()});let D=Y("");const G=ho.create({type:i(),value:U(()=>t(),f=>{t(f),r()(f)}),disabled:U(()=>o()),required:U(()=>T()),open:U(()=>v(),f=>{v(f),_()(f)}),loop:U(()=>u()),scrollAlignment:U(()=>p()),name:U(()=>s()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>C()),inputValue:U(()=>n(D),f=>k(D,f,!0)),onOpenChangeComplete:U(()=>m())});var g={get value(){return t()},set value(f){t(f),l()},get onValueChange(){return r()},set onValueChange(f=J){r(f),l()},get name(){return s()},set name(f=""){s(f),l()},get disabled(){return o()},set disabled(f=!1){o(f),l()},get type(){return i()},set type(f){i(f),l()},get open(){return v()},set open(f=!1){v(f),l()},get onOpenChange(){return _()},set onOpenChange(f=J){_(f),l()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(f=J){m(f),l()},get loop(){return u()},set loop(f=!1){u(f),l()},get scrollAlignment(){return p()},set scrollAlignment(f="nearest"){p(f),l()},get required(){return T()},set required(f=!1){T(f),l()},get items(){return O()},set items(f=[]){O(f),l()},get allowDeselect(){return C()},set allowDeselect(f=!1){C(f),l()},get autocomplete(){return N()},set autocomplete(f){N(f),l()},get children(){return b()},set children(f){b(f),l()},$set:re,$on:(f,L)=>ne(e,f,L)},c=yo(),V=K(c);Fn(V,{children:(f,L)=>{var W=q(),F=K(W);j(F,()=>b()??ae),S(f,W)},$$slots:{default:!0}});var I=ct(V,2);{var y=f=>{var L=q(),W=K(L);{var F=P=>{gt(P,{get autocomplete(){return N()}})},w=P=>{var A=q(),z=K(A);sn(z,16,()=>G.opts.value.current,ie=>ie,(ie,Oe)=>{gt(ie,{get value(){return Oe},get autocomplete(){return N()}})}),S(P,A)};Q(W,P=>{G.opts.value.current.length===0?P(F):P(w,-1)})}S(f,L)},E=x(()=>Array.isArray(G.opts.value.current)),B=f=>{gt(f,{get autocomplete(){return N()},get value(){return G.opts.value.current},set value(L){G.opts.value.current=L}})};Q(I,f=>{n(E)?f(y):f(B,-1)})}return S(d,c),se(g)}var wo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),xo=$("<button><!></button>");function Tr(d,e){const t=ke();if(new.target)return te({component:Tr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"child",7),i=a(e,"children",7),v=a(e,"type",7,"button"),_=be(e,wo);const m=Nt.create({id:U(()=>r()),ref:U(()=>s(),C=>s(C))}),u=x(()=>de(_,m.props,{type:v()}));var p={get id(){return r()},set id(C=ue(t)){r(C),l()},get ref(){return s()},set ref(C=null){s(C),l()},get child(){return o()},set child(C){o(C),l()},get children(){return i()},set children(C){i(C),l()},get type(){return v()},set type(C="button"){v(C),l()},$set:re,$on:(C,N)=>ne(e,C,N)},T=q(),O=K(T);return pe(O,()=>Ir,(C,N)=>{N(C,{get id(){return r()},get ref(){return m.opts.ref},children:(b,R)=>{var D=q(),G=K(D);{var g=V=>{var I=q(),y=K(I);j(y,o,()=>({props:n(u)})),S(V,I)},c=V=>{var I=xo();ee(I,()=>({...n(u)}));var y=X(I);j(y,()=>i()??ae),Z(I),S(V,I)};Q(G,V=>{o()?V(g):V(c,-1)})}S(b,D)},$$slots:{default:!0}})}),S(d,T),se(p)}var _o=$('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Hr(d,e){const t=ke();if(new.target)return te({component:Hr,...d});oe(e,!0);const r=`${t}-trigger`;let s=Y(r),o=a(e,"value",15,""),i=a(e,"open",15,!1),v=a(e,"items",23,()=>[]),_=a(e,"disabled",7,!1),m=a(e,"invalid",7,!1),u=a(e,"required",7,!1),p=a(e,"name",7),T=a(e,"loop",7,!0),O=a(e,"onchange",7),C=a(e,"onopenchange",7),N=a(e,"children",7),b=a(e,"staticPosition",7,!1);en(()=>{i(!1),C()?.(!1)}),jr("canonical-select",{get triggerId(){return n(s)},registerTriggerId(g){k(s,g??r,!0)},listboxId:`${t}-listbox`,get value(){return o()},get displayValue(){return v().find(g=>g.value===o())?.label??o()},get invalid(){return m()},get open(){return i()},get staticPosition(){return b()},set open(g){i(g)}});var R={get value(){return o()},set value(g=""){o(g),l()},get open(){return i()},set open(g=!1){i(g),l()},get items(){return v()},set items(g=[]){v(g),l()},get disabled(){return _()},set disabled(g=!1){_(g),l()},get invalid(){return m()},set invalid(g=!1){m(g),l()},get required(){return u()},set required(g=!1){u(g),l()},get name(){return p()},set name(g){p(g),l()},get loop(){return T()},set loop(g=!0){T(g),l()},get onchange(){return O()},set onchange(g){O(g),l()},get onopenchange(){return C()},set onopenchange(g){C(g),l()},get children(){return N()},set children(g){N(g),l()},get staticPosition(){return b()},set staticPosition(g=!1){b(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},D=_o(),G=X(D);return pe(G,()=>Er,(g,c)=>{c(g,{type:"single",get items(){return v()},get disabled(){return _()},get required(){return u()},get name(){return p()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return C()},get value(){return o()},set value(V){o(V)},get open(){return i()},set open(V){i(V)},children:(V,I)=>{var y=q(),E=K(y);j(E,()=>N()??ae),S(V,y)},$$slots:{default:!0}})}),Z(D),S(d,D),se(R)}var Co=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),No=$("<!> <!>",1);function Mr(d,e){if(new.target)return te({component:Mr,...d});oe(e,!0);const t=(I,y)=>{let E=()=>(y?.()).props;const B=x(()=>G(E()));var f=q(),L=K(f);{var W=w=>{var P=q(),A=K(P);j(A,i,()=>({props:n(B)})),S(w,P)},F=w=>{Kn(w,_e(()=>n(B),{get variant(){return n(b)},get active(){return p.open},get class(){return n(R)},children:(P,A)=>{var z=No(),ie=K(z);j(ie,()=>o()??ae);var Oe=ct(ie,2);{var wt=Ae=>{mr(Ae,{get icon(){return Un},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};Q(Oe,Ae=>{r()==="default"&&Ae(wt)})}S(P,z)},$$slots:{default:!0}}))};Q(L,w=>{i()?w(W):w(F,-1)})}S(I,f)};let r=a(e,"variant",7,"default"),s=a(e,"class",7,""),o=a(e,"children",7),i=a(e,"child",7),v=a(e,"onclick",7),_=a(e,"id",7),m=a(e,"ref",15,null),u=be(e,Co);const p=At("canonical-select");Jr(()=>p.registerTriggerId(_())),ve(()=>p.registerTriggerId(_()));let T=Y(!1);ve(()=>{const I=p.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(y=>y.htmlFor===I),!0)});const O=x(()=>!u["aria-label"]&&!u["aria-labelledby"]&&!n(T));let C=Y(void 0);ve(()=>{const I=m();if(!n(O)||!I){k(C,void 0);return}const y=()=>{k(C,I.textContent?.trim()||void 0,!0)};y();const E=new MutationObserver(y);return E.observe(I,{childList:!0,characterData:!0,subtree:!0}),()=>E.disconnect()});const N={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},b=x(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),R=x(()=>xe("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) font-medium transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",N[r()],s()));function D(I){I.detail===0&&!p.open&&(p.open=!0),v()?.(I)}function G(I){const{"aria-activedescendant":y,"aria-label":E,...B}=I;return{...B,role:"combobox","aria-label":typeof E=="string"?E:n(C),"aria-activedescendant":p.open&&typeof y=="string"?y:void 0}}var g={get variant(){return r()},set variant(I="default"){r(I),l()},get class(){return s()},set class(I=""){s(I),l()},get children(){return o()},set children(I){o(I),l()},get child(){return i()},set child(I){i(I),l()},get onclick(){return v()},set onclick(I){v(I),l()},get id(){return _()},set id(I){_(I),l()},get ref(){return m()},set ref(I=null){m(I),l()},$set:re,$on:(I,y)=>ne(e,I,y)},c=q(),V=K(c);{let I=x(()=>p.open?p.listboxId:void 0),y=x(()=>p.invalid||void 0);pe(V,()=>Tr,(E,B)=>{B(E,_e(()=>u,{get id(){return p.triggerId},get"aria-controls"(){return n(I)},get class(){return n(R)},get"aria-invalid"(){return n(y)},onclick:D,get child(){return t},get ref(){return m()},set ref(f){m(f)}}))})}return S(d,c),se(g)}var Io=$("<span> </span>");function Rr(d,e){if(new.target)return te({component:Rr,...d});oe(e,!0);let t=a(e,"placeholder",23,()=>jt.ui_select_value_placeholder());const r=At("canonical-select");var s={get placeholder(){return t()},set placeholder(v=jt.ui_select_value_placeholder()){t(v),l()},$set:re,$on:(v,_)=>ne(e,v,_)},o=Io(),i=sr(o,!0);return Et(()=>{fr(o,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),Qr(i,r.displayValue||t())}),S(d,o),se(s)}var Po=$('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Vr(d,e){if(new.target)return te({component:Vr,...d});oe(e,!0);let t=a(e,"activeIndex",7),r=a(e,"onactiveindexchange",7),s=Y(null),o=Y(null),i=Y(Xr([])),v=Y(null),_=Y(!1),m=Y(!1),u;const p='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';ve(()=>{n(o)&&t()===void 0&&n(_)&&n(o).activeIndex!==n(v)&&n(o).setActiveIndex(n(v))}),ve(()=>{!n(o)||t()===void 0||n(o).pointerPosition||n(o).setActiveIndex(t())}),ve(()=>{if(!n(o)?.pointerPosition){u=void 0;return}n(o).activeIndex!==u&&(u=n(o).activeIndex,r()?.(n(o).activeIndex))}),Zr(()=>{const b=n(s)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const R=tn(b,{axis:"xy"});k(o,R);let D=[];const G=w=>w instanceof Element&&(w.matches(p)||w.querySelector(p)),g=w=>w.hasAttribute("data-disabled")||w.getAttribute("aria-disabled")==="true",c=w=>w.dataset.selectionAppearance!=="indicator"&&(w.hasAttribute("data-selected")||w.getAttribute("data-state")==="checked"||w.getAttribute("aria-selected")==="true"||w.getAttribute("aria-checked")==="true"),V=()=>{const w=Array.from(b.querySelectorAll(p)).filter(A=>A.closest("[data-list-overlay]")===b&&!g(A));w.length!==D.length||w.some((A,z)=>A!==D[z])?(D.forEach((A,z)=>R.registerItem(z,null)),D=w,D.forEach((A,z)=>R.registerItem(z,A))):R.measure();const P=D.flatMap((A,z)=>c(A)?[z]:[]);if((P.length!==n(i).length||P.some((A,z)=>A!==n(i)[z]))&&k(i,P,!0),t()===void 0){const A=D.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&R.setActiveIndex(A)}},I=new MutationObserver(w=>{w.some(P=>P.type==="attributes"||[...P.addedNodes,...P.removedNodes].some(G))&&V()});I.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const y=()=>{const w=D.indexOf(document.activeElement);k(v,w>=0?w:null,!0)},E=()=>{k(m,!1),k(_,!0),y(),Ct().then(()=>{n(_)&&y()})},B=()=>{k(_,!1)},f=()=>{k(m,!1),k(_,!0),y()},L=w=>{const P=w.target instanceof Element?w.target.closest(p):null,A=D.indexOf(P);w.button!==0||A<0||(k(_,!1),k(m,!0),R.setActiveIndex(A))},W=()=>{k(m,!1)},F=w=>{const P=D.indexOf(w.target);k(v,P>=0?P:null,!0),P>=0&&R.setActiveIndex(P)};return b.addEventListener("keydown",E,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",f),b.addEventListener("pointerdown",L),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",F),Ct().then(V),()=>{I.disconnect(),b.removeEventListener("keydown",E,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",f),b.removeEventListener("pointerdown",L),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",F),R.destroy(),k(o,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),l()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),l()},$set:re,$on:(b,R)=>ne(e,b,R)},O=Po(),C=X(O);{var N=b=>{{let R=x(()=>n(m)?n(i).includes(n(o).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");jn(b,{get store(){return n(o)},get selectedIndexes(){return n(i)},get hoverClass(){return n(R)}})}};Q(C,b=>{n(o)&&b(N)})}return Z(O),Yn(O,b=>k(s,b),()=>n(s)),Et(()=>vr(O,"data-active-index",n(o)?.activeIndex??void 0)),S(d,O),se(T)}const Lr=8;function Zo(d,e,t=24){if(!d)return!0;const r=d.getBoundingClientRect(),s=e+t+Lr;return r.left>=s||d.ownerDocument.documentElement.clientWidth-r.right>=s}var So=$("<div><!> <!></div>"),ko=$("<div><!></div>"),Oo=$("<div><div><!></div></div>");function Dr(d,e){if(new.target)return te({component:Dr,...d});oe(e,!0);const t=y=>{var E=q(),B=K(E);{const f=(L,W)=>{let F=()=>(W?.()).props;var w=So();ee(w,()=>({...F(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var P=X(w);Vr(P,{});var A=ct(P,2);j(A,()=>T()??ae),Z(w),S(L,w)};pe(B,()=>Ar,(L,W)=>{W(L,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:f,$$slots:{child:!0}})})}S(y,E)},r=(y,E)=>{let B=()=>(E?.()).props;const f=x(()=>D(B()));var L=ko();ee(L,()=>({...n(f),...v()?{id:v()}:{}}));var W=X(L);t(W),Z(L),Jt(L,F=>i?.(F)),S(y,L)},s=(y,E)=>{let B=()=>(E?.()).props,f=()=>(E?.()).wrapperProps;const L=x(()=>D(B()));var W=Oo();ee(W,()=>({...f(),...v()?{id:v()}:{}}));var F=X(W);ee(F,()=>({...n(L)}));var w=X(F);t(w),Z(F),Jt(F,P=>i?.(P)),Z(W),S(y,W)},o=rn(),i=nn();let v=a(e,"wrapperId",7),_=a(e,"class",7,""),m=a(e,"wrapperClass",7,""),u=a(e,"dropUp",7,!1),p=a(e,"portal",7),T=a(e,"children",7);const O=x(()=>u()||p()===!0),C=Jn(),N=Xn(Zn()+2);$n(N);const b=At("canonical-select");async function R(){const y=document.getElementById(b.triggerId);await Ct(),!b.open&&y?.isConnected&&y.focus({preventScroll:!0})}function D(y){const{role:E,tabindex:B,...f}=y;return f}var G={get wrapperId(){return v()},set wrapperId(y){v(y),l()},get class(){return _()},set class(y=""){_(y),l()},get wrapperClass(){return m()},set wrapperClass(y=""){m(y),l()},get dropUp(){return u()},set dropUp(y=!1){u(y),l()},get portal(){return p()},set portal(y){p(y),l()},get children(){return T()},set children(y){T(y),l()},$set:re,$on:(y,E)=>ne(e,y,E)},g=q(),c=K(g);{var V=y=>{var E=q(),B=K(E);{let f=x(()=>xe(Xt(),"w-full max-h-60",_()));pe(B,()=>Sr,(L,W)=>{W(L,{preventScroll:!1,onEscapeKeydown:R,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return N},get class(){return n(f)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}S(y,E)},I=y=>{const E=x(()=>p()===void 0&&!u()?C():void 0);var B=q(),f=K(B);{let L=x(()=>!n(O)&&!n(E)),W=x(()=>n(E)??o?.target());pe(f,()=>Bn,(F,w)=>{w(F,{get disabled(){return n(L)},get to(){return n(W)},children:(P,A)=>{var z=q(),ie=K(z);{let Oe=x(()=>n(E)?"absolute":"fixed"),wt=x(()=>n(E)!==void 0),Ae=x(()=>u()?"top":"bottom"),Br=x(()=>xe(Xt(),"w-(--bits-select-anchor-width) max-h-60",_()));pe(ie,()=>Pr,(Wr,Ur)=>{Ur(Wr,{get strategy(){return n(Oe)},get hideWhenDetached(){return n(wt)},onEscapeKeydown:R,"data-slot":"select-content",get"data-surface-level"(){return N},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Lr},get class(){return n(Br)},style:"max-width: calc(100vw - var(--space-4));",get child(){return s}})})}S(P,z)},$$slots:{default:!0}})})}S(y,B)};Q(c,y=>{b.staticPosition?y(V):y(I,-1)})}return S(d,g),se(G)}var Ao=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Eo=$('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),To=$("<span><!></span>");function Fr(d,e){if(new.target)return te({component:Fr,...d});oe(e,!0);let t=a(e,"state",7),r=a(e,"class",7),s=a(e,"data-slot",7),o=be(e,Ao);var i={get state(){return t()},set state(p){t(p),l()},get class(){return r()},set class(p){r(p),l()},get"data-slot"(){return s()},set"data-slot"(p){s(p),l()},$set:re,$on:(p,T)=>ne(e,p,T)},v=q(),_=K(v);{var m=p=>{var T=Eo();ee(T,N=>({...o,"data-slot":s()??"menu-switch",class:N,"aria-hidden":"true"}),[()=>xe("ml-auto flex h-lh shrink-0 items-center",r())]);var O=X(T),C=sr(O);Z(T),Et(N=>{vr(O,"data-state",t()==="on"?"checked":"unchecked"),fr(C,1,N)},[()=>Wn(xe("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),S(p,T)},u=p=>{var T=To();ee(T,N=>({...o,"data-slot":s()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:N,"aria-hidden":"true"}),[()=>xe(on,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=X(T);{var C=N=>{{let b=x(()=>t()==="mixed"?qn:t()==="submenu"?zn:Gn),R=x(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),D=x(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");mr(N,{get icon(){return n(b)},get size(){return n(R)},get class(){return n(D)}})}};Q(O,N=>{t()!=="empty"&&N(C)})}Z(T),S(p,T)};Q(_,p=>{t()==="on"||t()==="off"?p(m):p(u,-1)})}return S(d,v),se(i)}var Ho=$('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Kr(d,e){if(new.target)return te({component:Kr,...d});oe(e,!0);let t=a(e,"value",7),r=a(e,"label",7),s=a(e,"disabled",7,!1),o=a(e,"children",7),i=a(e,"class",7,"");var v={get value(){return t()},set value(u){t(u),l()},get label(){return r()},set label(u){r(u),l()},get disabled(){return s()},set disabled(u=!1){s(u),l()},get children(){return o()},set children(u){o(u),l()},get class(){return i()},set class(u=""){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);{const u=(C,N)=>{let b=()=>(N?.()).selected;var R=Ho(),D=K(R),G=X(D);j(G,()=>o()??ae),Z(D);var g=ct(D,2);{let c=x(()=>b()?"checked":"empty");Fr(g,{get state(){return n(c)},"data-slot":"select-item-check"})}S(C,R)};let p=x(()=>r()??t()),T=x(()=>s()||void 0),O=x(()=>xe(Qn(),i()));pe(m,()=>Or,(C,N)=>{N(C,{get value(){return t()},get label(){return n(p)},get disabled(){return s()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:u,$$slots:{default:!0}})})}return S(d,_),se(v)}const $o={Root:Hr,Trigger:Mr,Value:Rr,Content:Dr,Item:Kr},Mo=(d,e)=>{let t,r;const s=()=>{t||(t=eo(()=>{t=void 0;const v=d.checkVisibility?.()??!0,_=v?d.clientWidth:0,m=v?d.clientHeight:0,u=_>0&&m>0&&(d.scrollWidth>_||d.scrollHeight>m);r?.(),r=to(()=>{r=void 0,e(u)})}))},o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),i=new MutationObserver(s);return o?.observe(d),i.observe(d,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",s),s(),{update(v){e=v,s()},destroy(){t?.(),r?.(),o?.disconnect(),i.disconnect(),document.fonts?.removeEventListener("loadingdone",s)}}},es=(d,e)=>{let t=e;const r=o=>{t&&(o||t.trim()!==d.textContent?.trim())?d.title=t:d.removeAttribute("title")},s=Mo(d,r);return{update(o){t=o,s?.update?.(r)},destroy(){s?.destroy?.(),d.removeAttribute("title")}}};export{Ir as F,yr as H,Fr as M,Lr as O,$o as S,Vr as a,rr as b,tr as c,er as d,ho as e,Pr as f,Sr as g,gt as h,Or as i,Ar as j,Zo as k,Mo as o,es as t};
|
|
1
|
+
var qr=Object.defineProperty;var Yt=d=>{throw TypeError(d)};var zr=(d,e,t)=>e in d?qr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var M=(d,e,t)=>zr(d,typeof e!="symbol"?e+"":e,t),xt=(d,e,t)=>e.has(d)||Yt("Cannot "+t);var h=(d,e,t)=>(xt(d,e,"read from private field"),t?t.call(d):e.get(d)),H=(d,e,t)=>e.has(d)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,t),Ie=(d,e,t,r)=>(xt(d,e,"write to private field"),r?r.call(d,t):e.set(d,t),t),Pe=(d,e,t)=>(xt(d,e,"access private method"),t);import{t as te,bq as a,by as re,b as ne,br as be,bt as _e,bo as jt}from"./DGQ1ECsI.js";import{c9 as x,aD as n,bs as oe,a7 as q,ay as K,W as S,bn as se,aA as l,aB as $,bH as k,bV as Y,bi as Gr,ca as ve,cb as Yr,bf as ae,bo as ke,a5 as X,bA as Z,bS as ct,bI as jr,aG as At,c5 as Jr,bl as sr,b_ as Et,bO as Qr,br as Xr,bk as Zr,c0 as Ct}from"./DYhIMPy1.js";import{s as j}from"./ChmnWquS.js";import{c as pe}from"./CJeZnjZ2.js";import{e as $r,s as en,g as tn,i as rn,f as nn,b as on}from"./CM0lKKPd.js";import{i as Q}from"./B-DRVFcy.js";import{g as sn,e as Jt}from"./D3HUOTfX.js";import{aY as an,aQ as de,au as ln,aI as dn,h as Tt,an as Ce,D as yt,i as un,d as le,a as fe,l as pt,a6 as _t,ac as ft,_ as Ht,J as Mt,Z as Rt,E as Vt,aR as ir,aW as ar,aC as lr,ap as dr,aq as Lt,aF as Dt,ar as ur,a$ as me,aN as hn,aU as cn,aH as gn,aG as pn,at as Qt,am as hr,a2 as fn,av as U,ay as vn,m as cr,b as mn,c as bn,a4 as yn,C as wn,g as xn,A as _n,M as Cn,F as Nn,r as In,s as Pn,t as Sn,u as kn,v as On,w as An,x as En,y as Tn,o as Hn,p as Mn,q as Rn,B as Vn,z as Ln,az as ue,aS as J,a0 as gr,$ as pr,aV as Dn,H as Fn,f as Kn,a1 as Bn}from"./CxF8YFum.js";import{b as ee,e as xe,f as fr,s as vr,c as Wn}from"./Bp_k45o-.js";import{F as mr,as as Un,bV as qn,au as zn,aq as Gn}from"./Cjw1QvKa.js";import"./DZ-cwX5R.js";import{b as Yn}from"./BaIAhI85.js";import{P as jn,u as Jn,b as Xt,a as Qn}from"./286xXFLf.js";import{c as Xn,u as Zn,s as $n}from"./DfxQWSVU.js";import"./CzZDc-Ii.js";import{s as eo,a as to}from"./BsieX9dN.js";const br={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};an(br);var Ee,mt;class ro{constructor(e,t){H(this,Ee,()=>{});H(this,mt,x(()=>h(this,Ee).call(this)));let r;t!==void 0&&(r=t),Ie(this,Ee,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,mt))}}Ee=new WeakMap,mt=new WeakMap;var no=new Set(["$$slots","$$events","$$legacy","value"]),Zt=$("<input/>");function yr(d,e){if(new.target)return te({component:yr,...d});oe(e,!0);let t=a(e,"value",15),r=be(e,no);const s=x(()=>de(r,{"aria-hidden":"true",tabindex:-1,style:{...br,position:"absolute",top:"0",left:"0"}}));var o={get value(){return t()},set value(u){t(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},i=q(),v=K(i);{var _=u=>{var p=Zt();ee(p,()=>({...n(s),value:t()}),void 0,void 0,void 0,void 0,!0),S(u,p)},m=u=>{var p=Zt();ee(p,()=>({...n(s)}),void 0,void 0,void 0,void 0,!0),$r(p,t),S(u,p)};Q(v,u=>{n(s).type==="checkbox"?u(_):u(m,-1)})}return S(d,i),se(o)}var ce,ye,ge;class oo{constructor(e){H(this,ce);H(this,ye,x(()=>h(this,ce).candidateValues()));H(this,ge);Ie(this,ce,e),Ie(this,ge,ln("",{afterMs:1e3,getWindow:h(this,ce).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,ce).enabled()||!n(h(this,ye)).length)return;h(this,ge).current=h(this,ge).current+e;const t=h(this,ce).getCurrentItem(),r=n(h(this,ye)).find(v=>v===t)??"",s=n(h(this,ye)).map(v=>v??""),o=dn(s,h(this,ge).current,r),i=n(h(this,ye)).find(v=>v===o);return i&&h(this,ce).onMatch(i),i}resetTypeahead(){h(this,ge).current=""}}ce=new WeakMap,ye=new WeakMap,ge=new WeakMap;const $t=[mn,cr,bn,yn,wn,xn,_n,Cn,pt,Nn,In,Pn,Sn,kn,On,An,En,Tn,Hn,Mn,Rn],so=[fe,Ht,Mt],io=[le,Rt,Vt],wr=[...so,...io],ao=vn({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ne=new Tt("Select.Root | Combobox.Root"),xr=new Tt("Select.Group | Combobox.Group"),_r=new Tt("Select.Content | Combobox.Content");var Te,He,Me,Re,Ve,Le,De,Fe,Ke,Be,We,Ue;class Cr{constructor(e){M(this,"opts");H(this,Te,Y(!1));H(this,He,Y(null));H(this,Me,Y(null));M(this,"contentPresence");H(this,Re,Y(null));H(this,Ve,Y(null));H(this,Le,Y(null));H(this,De,Y(""));H(this,Fe,Y(null));H(this,Ke,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,Be,x(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,We,x(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ue,Y(!1));M(this,"isUsingKeyboard",!1);M(this,"isCombobox",!1);M(this,"domContext",new yt(()=>null));M(this,"getBitsAttr",e=>ao.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new fn({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Yr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,Te))}set touchedInput(e){k(h(this,Te),e,!0)}get inputNode(){return n(h(this,He))}set inputNode(e){k(h(this,He),e,!0)}get contentNode(){return n(h(this,Me))}set contentNode(e){k(h(this,Me),e,!0)}get viewportNode(){return n(h(this,Re))}set viewportNode(e){k(h(this,Re),e,!0)}get triggerNode(){return n(h(this,Ve))}set triggerNode(e){k(h(this,Ve),e,!0)}get valueNode(){return n(h(this,Le))}set valueNode(e){k(h(this,Le),e,!0)}get valueId(){return n(h(this,De))}set valueId(e){k(h(this,De),e,!0)}get highlightedNode(){return n(h(this,Fe))}set highlightedNode(e){k(h(this,Fe),e,!0)}get highlightedValue(){return n(h(this,Ke))}set highlightedValue(e){k(h(this,Ke),e)}get highlightedId(){return n(h(this,Be))}set highlightedId(e){k(h(this,Be),e)}get highlightedLabel(){return n(h(this,We))}set highlightedLabel(e){k(h(this,We),e)}get contentIsPositioned(){return n(h(this,Ue))}set contentIsPositioned(e){k(h(this,Ue),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(s=>{if(!this.viewportNode)return!1;const o=s.getBoundingClientRect();return o.right<=r.right&&o.left>=r.left&&o.bottom<=r.bottom&&o.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(s=>s.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const s=r.getAttribute("data-label");return s!==null&&s!==""?s:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Te=new WeakMap,He=new WeakMap,Me=new WeakMap,Re=new WeakMap,Ve=new WeakMap,Le=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap;var qe,ze,Ge,Ye;class lo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!1);H(this,qe,x(()=>this.opts.value.current!==""));H(this,ze,x(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Ge,x(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Ye,x(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,qe))}set hasValue(t){k(h(this,qe),t)}get currentLabel(){return n(h(this,ze))}set currentLabel(t){k(h(this,ze),t)}get candidateLabels(){return n(h(this,Ge))}set candidateLabels(t){k(h(this,Ge),t)}get dataTypeaheadEnabled(){return n(h(this,Ye))}set dataTypeaheadEnabled(t){k(h(this,Ye),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const s=this.includesItem(t)?"":t;this.opts.value.current=s,s!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){hr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Ye=new WeakMap;var je;class uo extends Cr{constructor(t){super(t);M(this,"opts");M(this,"isMulti",!0);H(this,je,x(()=>this.opts.value.current.length>0));this.opts=t,ve(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),me(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,je))}set hasValue(t){k(h(this,je),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(s=>s!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){hr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}je=new WeakMap;class ho{static create(e){const{type:t,...r}=e,s=t==="single"?new lo(r):new uo(r);return Ne.set(s)}}var Je;const Ft=class Ft{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Je,x(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":ur(this.root.opts.open.current),"data-state":Dt(this.root.opts.open.current),"data-disabled":Lt(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref,r=>this.root.inputNode=r),this.root.domContext=new yt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),me([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,s],[o])=>{s&&(Array.isArray(r)&&Array.isArray(o)?r.length===0&&o.length!==0&&(this.root.opts.inputValue.current=""):r===""&&o!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new Ft(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==cr){if((e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if($t.includes(e.key)||e.key===ft||e.key===Vn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===fe){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===ft){this.root.handleClose();return}if(e.key===pt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),wr.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,s=r?t.indexOf(r):-1,o=this.root.opts.loop.current;let i;if(e.key===fe?i=ir(t,s,o):e.key===le?i=ar(t,s,o):e.key===Rt?i=lr(t,s,10,o):e.key===Ht?i=dr(t,s,10,o):e.key===Mt?i=t[0]:e.key===Vt&&(i=t[t.length-1]),!i)return;this.root.setHighlightedNode(i);return}$t.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Je))}set props(e){k(h(this,Je),e)}};Je=new WeakMap;let er=Ft;var we,Se,he,Nr,It,Pt,Qe;const Kt=class Kt{constructor(e,t){H(this,he);M(this,"opts");M(this,"root");M(this,"attachment");H(this,we);H(this,Se);H(this,Qe,x(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":ur(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Dt(this.root.opts.open.current),"data-disabled":Lt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new yt(e.ref),Ie(this,we,new un({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ie(this,Se,new oo({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(o=>o.label===r);s&&(this.root.opts.value.current=s.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Kt(e,Ne.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===fe)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===pt||e.key===_t||e.key===fe||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,Se).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(e.key===fe){const v=i[0];this.root.setHighlightedNode(v)}else if(e.key===le){const v=i[i.length-1];this.root.setHighlightedNode(v)}return}if(e.key===ft){this.root.handleClose();return}if((e.key===pt||e.key===_t&&h(this,we).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,he,Pt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),wr.includes(e.key)){e.preventDefault();const i=this.root.getCandidateNodes(),v=this.root.highlightedNode,_=v?i.indexOf(v):-1,m=this.root.opts.loop.current;let u;if(e.key===fe?u=ir(i,_,m):e.key===le?u=ar(i,_,m):e.key===Rt?u=lr(i,_,10,m):e.key===Ht?u=dr(i,_,10,m):e.key===Mt?u=i[0]:e.key===Vt&&(u=i[i.length-1]),!u)return;this.root.setHighlightedNode(u);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,s=e.key===_t,o=this.root.getCandidateNodes();if(e.key!==ft){if(!t&&(r||s)){!h(this,we).handleTypeaheadSearch(e.key,o)&&s&&(e.preventDefault(),Pe(this,he,Pt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,he,It).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,he,It).call(this,e):this.root.handleClose()))}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};we=new WeakMap,Se=new WeakMap,he=new WeakSet,Nr=function(){this.root.opts.open.current=!0,h(this,Se).resetTypeahead(),h(this,we).resetTypeahead()},It=function(e){Pe(this,he,Nr).call(this)},Pt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},Qe=new WeakMap;let Nt=Kt;var Xe,bt,Ze,$e;const Bt=class Bt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,Xe,Y(!1));M(this,"domContext");H(this,bt,x(()=>gn(this.root.isCombobox?"combobox":"select")));M(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});M(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});M(this,"onOpenAutoFocus",e=>{e.preventDefault()});M(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,Ze,x(()=>({open:this.root.opts.open.current})));H(this,$e,x(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Dt(this.root.opts.open.current),...pn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,bt))},onpointermove:this.onpointermove,...this.attachment})));M(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ce(e.ref,r=>this.root.contentNode=r),this.domContext=new yt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),cn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),me(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),me([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return _r.set(new Bt(e,Ne.get()))}get isPositioned(){return n(h(this,Xe))}set isPositioned(e){k(h(this,Xe),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,Ze))}set snippetProps(e){k(h(this,Ze),e)}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};Xe=new WeakMap,bt=new WeakMap,Ze=new WeakMap,$e=new WeakMap;let vt=Bt;var et,tt,rt,nt,ot;const Wt=class Wt{constructor(e,t){M(this,"opts");M(this,"root");M(this,"attachment");H(this,et,x(()=>this.root.includesItem(this.opts.value.current)));H(this,tt,x(()=>this.root.highlightedValue===this.opts.value.current));M(this,"prevHighlighted",new ro(()=>this.isHighlighted));H(this,rt,Y(!1));H(this,nt,x(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,ot,x(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Lt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref),me([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),me(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new Wt(e,Ne.get())}get isSelected(){return n(h(this,et))}set isSelected(e){k(h(this,et),e)}get isHighlighted(){return n(h(this,tt))}set isHighlighted(e){k(h(this,tt),e)}get mounted(){return n(h(this,rt))}set mounted(e){k(h(this,rt),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,nt))}set snippetProps(e){k(h(this,nt),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!hn){Gr(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,ot))}set props(e){k(h(this,ot),e)}};et=new WeakMap,tt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot=new WeakMap;let St=Wt;var st,it;const Ut=class Ut{constructor(e,t){M(this,"opts");M(this,"root");H(this,st,Y(null));M(this,"attachment");H(this,it,x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ce(e.ref)}static create(e){return xr.set(new Ut(e,Ne.get()))}get labelNode(){return n(h(this,st))}set labelNode(e){k(h(this,st),e,!0)}get props(){return n(h(this,it))}set props(e){k(h(this,it),e)}};st=new WeakMap,it=new WeakMap;let tr=Ut;var at;const qt=class qt{constructor(e,t){M(this,"opts");M(this,"group");M(this,"attachment");H(this,at,x(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ce(e.ref,r=>this.group.labelNode=r)}static create(e){return new qt(e,xr.get())}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};at=new WeakMap;let rr=qt;var lt,dt;const zt=class zt{constructor(e,t){M(this,"opts");M(this,"root");H(this,lt,x(()=>this.root.opts.name.current!==""));H(this,dt,x(()=>({disabled:Qt(this.root.opts.disabled.current),required:Qt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new zt(e,Ne.get())}get shouldRender(){return n(h(this,lt))}set shouldRender(e){k(h(this,lt),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let kt=zt;var ut,ht;const Gt=class Gt{constructor(e,t){M(this,"opts");M(this,"content");M(this,"root");M(this,"attachment");H(this,ut,Y(0));H(this,ht,x(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ce(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Gt(e,_r.get())}get prevScrollTop(){return n(h(this,ut))}set prevScrollTop(e){k(h(this,ut),e,!0)}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ut=new WeakMap,ht=new WeakMap;let Ot=Gt;function gt(d,e){if(new.target)return te({component:gt,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"autocomplete",7);const s=kt.create({value:U(()=>t())});var o={get value(){return t()},set value(m){t(m),l()},get autocomplete(){return r()},set autocomplete(m){r(m),l()},$set:re,$on:(m,u)=>ne(e,m,u)},i=q(),v=K(i);{var _=m=>{yr(m,_e(()=>s.props,{get autocomplete(){return r()},get value(){return t()},set value(u){t(u)}}))};Q(v,m=>{s.shouldRender&&m(_)})}return S(d,i),se(o)}function Ir(d,e){if(new.target)return te({component:Ir,...d});oe(e,!0);let t=a(e,"id",7),r=a(e,"children",7),s=a(e,"virtualEl",7),o=a(e,"ref",7),i=a(e,"tooltip",7,!1);Ln.create({id:U(()=>t()),virtualEl:U(()=>s()),ref:o()},i());var v={get id(){return t()},set id(u){t(u),l()},get children(){return r()},set children(u){r(u),l()},get virtualEl(){return s()},set virtualEl(u){s(u),l()},get ref(){return o()},set ref(u){o(u),l()},get tooltip(){return i()},set tooltip(u=!1){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);return j(m,()=>r()??ae),S(d,_),se(v)}var co=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),nr=$("<div><div><!></div></div>");function Pr(d,e){const t=ke();if(new.target)return te({component:Pr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"side",7,"bottom"),v=a(e,"onInteractOutside",7,J),_=a(e,"onEscapeKeydown",7,J),m=a(e,"children",7),u=a(e,"child",7),p=a(e,"preventScroll",7,!1),T=a(e,"style",7),O=be(e,co);const C=vt.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),onInteractOutside:U(()=>v()),onEscapeKeydown:U(()=>_())}),N=x(()=>de(O,C.props));var b={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get forceMount(){return o()},set forceMount(c=!1){o(c),l()},get side(){return i()},set side(c="bottom"){i(c),l()},get onInteractOutside(){return v()},set onInteractOutside(c=J){v(c),l()},get onEscapeKeydown(){return _()},set onEscapeKeydown(c=J){_(c),l()},get children(){return m()},set children(c){m(c),l()},get child(){return u()},set child(c){u(c),l()},get preventScroll(){return p()},set preventScroll(c=!1){p(c),l()},get style(){return T()},set style(c){T(c),l()},$set:re,$on:(c,V)=>ne(e,c,V)},R=q(),D=K(R);{var G=c=>{gr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get enabled(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!0,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var L=q(),W=K(L);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,L)},$$slots:{popper:!0}}))},g=c=>{pr(c,_e(()=>n(N),()=>C.popperProps,{get ref(){return C.opts.ref},get side(){return i()},get open(){return C.root.opts.open.current},get id(){return r()},get preventScroll(){return p()},forceMount:!1,get shouldRender(){return C.shouldRender},popper:(I,y)=>{let E=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const f=x(()=>de(E(),{style:C.props.style},{style:T()}));var L=q(),W=K(L);{var F=P=>{var A=q(),z=K(A);{let ie=x(()=>({props:n(f),wrapperProps:B(),...C.snippetProps}));j(z,u,()=>n(ie))}S(P,A)},w=P=>{var A=nr();ee(A,()=>({...B()}));var z=X(A);ee(z,()=>({...n(f)}));var ie=X(z);j(ie,()=>m()??ae),Z(z),Z(A),S(P,A)};Q(W,P=>{u()?P(F):P(w,-1)})}S(I,L)},$$slots:{popper:!0}}))};Q(D,c=>{o()?c(G):o()||c(g,1)})}return S(d,R),se(b)}var go=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),or=$("<div><!></div>");function Sr(d,e){const t=ke();if(new.target)return te({component:Sr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"forceMount",7,!1),i=a(e,"onInteractOutside",7,J),v=a(e,"onEscapeKeydown",7,J),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"preventScroll",7,!1),p=a(e,"style",7),T=be(e,go);const O=vt.create({id:U(()=>r()),ref:U(()=>s(),g=>s(g)),onInteractOutside:U(()=>i()),onEscapeKeydown:U(()=>v())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(g=ue(t)){r(g),l()},get ref(){return s()},set ref(g=null){s(g),l()},get forceMount(){return o()},set forceMount(g=!1){o(g),l()},get onInteractOutside(){return i()},set onInteractOutside(g=J){i(g),l()},get onEscapeKeydown(){return v()},set onEscapeKeydown(g=J){v(g),l()},get children(){return _()},set children(g){_(g),l()},get child(){return m()},set child(g){m(g),l()},get preventScroll(){return u()},set preventScroll(g=!1){u(g),l()},get style(){return p()},set style(g){p(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},b=q(),R=K(b);{var D=g=>{gr(g,_e(()=>n(C),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return u()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var L=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(L):F(W,-1)})}S(V,B)},$$slots:{popper:!0}}))},G=g=>{pr(g,_e(()=>n(C),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return u()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,I)=>{let y=()=>(I?.()).props;const E=x(()=>de(y(),{style:O.props.style},{style:p()}));var B=q(),f=K(B);{var L=F=>{var w=q(),P=K(w);{let A=x(()=>({props:n(E),...O.snippetProps}));j(P,m,()=>n(A))}S(F,w)},W=F=>{var w=or();ee(w,()=>({...n(E)}));var P=X(w);j(P,()=>_()??ae),Z(w),S(F,w)};Q(f,F=>{m()?F(L):F(W,-1)})}S(V,B)},$$slots:{popper:!0}}))};Q(R,g=>{o()?g(D):o()||g(G,1)})}return S(d,b),se(N)}function kr(d,e){if(new.target)return te({component:kr,...d});oe(e,!0);let t=a(e,"mounted",15,!1),r=a(e,"onMountedChange",7,J);Dn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var s={get mounted(){return t()},set mounted(o=!1){t(o),l()},get onMountedChange(){return r()},set onMountedChange(o=J){r(o),l()},$set:re,$on:(o,i)=>ne(e,o,i)};return se(s)}var po=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),fo=$("<div><!></div>"),vo=$("<!> <!>",1);function Or(d,e){const t=ke();if(new.target)return te({component:Or,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"value",7),i=a(e,"label",23,o),v=a(e,"disabled",7,!1),_=a(e,"children",7),m=a(e,"child",7),u=a(e,"onHighlight",7,J),p=a(e,"onUnhighlight",7,J),T=be(e,po);const O=St.create({id:U(()=>r()),ref:U(()=>s(),c=>s(c)),value:U(()=>o()),disabled:U(()=>v()),label:U(()=>i()),onHighlight:U(()=>u()),onUnhighlight:U(()=>p())}),C=x(()=>de(T,O.props));var N={get id(){return r()},set id(c=ue(t)){r(c),l()},get ref(){return s()},set ref(c=null){s(c),l()},get value(){return o()},set value(c){o(c),l()},get label(){return i()},set label(c=o){i(c),l()},get disabled(){return v()},set disabled(c=!1){v(c),l()},get children(){return _()},set children(c){_(c),l()},get child(){return m()},set child(c){m(c),l()},get onHighlight(){return u()},set onHighlight(c=J){u(c),l()},get onUnhighlight(){return p()},set onUnhighlight(c=J){p(c),l()},$set:re,$on:(c,V)=>ne(e,c,V)},b=vo(),R=K(b);{var D=c=>{var V=q(),I=K(V);{let y=x(()=>({props:n(C),...O.snippetProps}));j(I,m,()=>n(y))}S(c,V)},G=c=>{var V=fo();ee(V,()=>({...n(C)}));var I=X(V);j(I,()=>_()??ae,()=>O.snippetProps),Z(V),S(c,V)};Q(R,c=>{m()?c(D):c(G,-1)})}var g=ct(R,2);return kr(g,{get mounted(){return O.mounted},set mounted(c){O.mounted=c}}),S(d,b),se(N)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),bo=$("<div><!></div>");function Ar(d,e){const t=ke();if(new.target)return te({component:Ar,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"children",7),i=a(e,"child",7),v=be(e,mo);const _=Ot.create({id:U(()=>r()),ref:U(()=>s(),N=>s(N))}),m=x(()=>de(v,_.props));var u={get id(){return r()},set id(N=ue(t)){r(N),l()},get ref(){return s()},set ref(N=null){s(N),l()},get children(){return o()},set children(N){o(N),l()},get child(){return i()},set child(N){i(N),l()},$set:re,$on:(N,b)=>ne(e,N,b)},p=q(),T=K(p);{var O=N=>{var b=q(),R=K(b);j(R,i,()=>({props:n(m)})),S(N,b)},C=N=>{var b=bo();ee(b,()=>({...n(m)}));var R=X(b);j(R,()=>o()??ae),Z(b),S(N,b)};Q(T,N=>{i()?N(O):N(C,-1)})}return S(d,p),se(u)}var yo=$("<!> <!>",1);function Er(d,e){if(new.target)return te({component:Er,...d});oe(e,!0);let t=a(e,"value",15),r=a(e,"onValueChange",7,J),s=a(e,"name",7,""),o=a(e,"disabled",7,!1),i=a(e,"type",7),v=a(e,"open",15,!1),_=a(e,"onOpenChange",7,J),m=a(e,"onOpenChangeComplete",7,J),u=a(e,"loop",7,!1),p=a(e,"scrollAlignment",7,"nearest"),T=a(e,"required",7,!1),O=a(e,"items",23,()=>[]),C=a(e,"allowDeselect",7,!1),N=a(e,"autocomplete",7),b=a(e,"children",7);function R(){t()===void 0&&t(i()==="single"?"":[])}R(),me.pre(()=>t(),()=>{R()});let D=Y("");const G=ho.create({type:i(),value:U(()=>t(),f=>{t(f),r()(f)}),disabled:U(()=>o()),required:U(()=>T()),open:U(()=>v(),f=>{v(f),_()(f)}),loop:U(()=>u()),scrollAlignment:U(()=>p()),name:U(()=>s()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>C()),inputValue:U(()=>n(D),f=>k(D,f,!0)),onOpenChangeComplete:U(()=>m())});var g={get value(){return t()},set value(f){t(f),l()},get onValueChange(){return r()},set onValueChange(f=J){r(f),l()},get name(){return s()},set name(f=""){s(f),l()},get disabled(){return o()},set disabled(f=!1){o(f),l()},get type(){return i()},set type(f){i(f),l()},get open(){return v()},set open(f=!1){v(f),l()},get onOpenChange(){return _()},set onOpenChange(f=J){_(f),l()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(f=J){m(f),l()},get loop(){return u()},set loop(f=!1){u(f),l()},get scrollAlignment(){return p()},set scrollAlignment(f="nearest"){p(f),l()},get required(){return T()},set required(f=!1){T(f),l()},get items(){return O()},set items(f=[]){O(f),l()},get allowDeselect(){return C()},set allowDeselect(f=!1){C(f),l()},get autocomplete(){return N()},set autocomplete(f){N(f),l()},get children(){return b()},set children(f){b(f),l()},$set:re,$on:(f,L)=>ne(e,f,L)},c=yo(),V=K(c);Fn(V,{children:(f,L)=>{var W=q(),F=K(W);j(F,()=>b()??ae),S(f,W)},$$slots:{default:!0}});var I=ct(V,2);{var y=f=>{var L=q(),W=K(L);{var F=P=>{gt(P,{get autocomplete(){return N()}})},w=P=>{var A=q(),z=K(A);sn(z,16,()=>G.opts.value.current,ie=>ie,(ie,Oe)=>{gt(ie,{get value(){return Oe},get autocomplete(){return N()}})}),S(P,A)};Q(W,P=>{G.opts.value.current.length===0?P(F):P(w,-1)})}S(f,L)},E=x(()=>Array.isArray(G.opts.value.current)),B=f=>{gt(f,{get autocomplete(){return N()},get value(){return G.opts.value.current},set value(L){G.opts.value.current=L}})};Q(I,f=>{n(E)?f(y):f(B,-1)})}return S(d,c),se(g)}var wo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),xo=$("<button><!></button>");function Tr(d,e){const t=ke();if(new.target)return te({component:Tr,...d});oe(e,!0);let r=a(e,"id",23,()=>ue(t)),s=a(e,"ref",15,null),o=a(e,"child",7),i=a(e,"children",7),v=a(e,"type",7,"button"),_=be(e,wo);const m=Nt.create({id:U(()=>r()),ref:U(()=>s(),C=>s(C))}),u=x(()=>de(_,m.props,{type:v()}));var p={get id(){return r()},set id(C=ue(t)){r(C),l()},get ref(){return s()},set ref(C=null){s(C),l()},get child(){return o()},set child(C){o(C),l()},get children(){return i()},set children(C){i(C),l()},get type(){return v()},set type(C="button"){v(C),l()},$set:re,$on:(C,N)=>ne(e,C,N)},T=q(),O=K(T);return pe(O,()=>Ir,(C,N)=>{N(C,{get id(){return r()},get ref(){return m.opts.ref},children:(b,R)=>{var D=q(),G=K(D);{var g=V=>{var I=q(),y=K(I);j(y,o,()=>({props:n(u)})),S(V,I)},c=V=>{var I=xo();ee(I,()=>({...n(u)}));var y=X(I);j(y,()=>i()??ae),Z(I),S(V,I)};Q(G,V=>{o()?V(g):V(c,-1)})}S(b,D)},$$slots:{default:!0}})}),S(d,T),se(p)}var _o=$('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Hr(d,e){const t=ke();if(new.target)return te({component:Hr,...d});oe(e,!0);const r=`${t}-trigger`;let s=Y(r),o=a(e,"value",15,""),i=a(e,"open",15,!1),v=a(e,"items",23,()=>[]),_=a(e,"disabled",7,!1),m=a(e,"invalid",7,!1),u=a(e,"required",7,!1),p=a(e,"name",7),T=a(e,"loop",7,!0),O=a(e,"onchange",7),C=a(e,"onopenchange",7),N=a(e,"children",7),b=a(e,"staticPosition",7,!1);en(()=>{i(!1),C()?.(!1)}),jr("canonical-select",{get triggerId(){return n(s)},registerTriggerId(g){k(s,g??r,!0)},listboxId:`${t}-listbox`,get value(){return o()},get displayValue(){return v().find(g=>g.value===o())?.label??o()},get invalid(){return m()},get open(){return i()},get staticPosition(){return b()},set open(g){i(g)}});var R={get value(){return o()},set value(g=""){o(g),l()},get open(){return i()},set open(g=!1){i(g),l()},get items(){return v()},set items(g=[]){v(g),l()},get disabled(){return _()},set disabled(g=!1){_(g),l()},get invalid(){return m()},set invalid(g=!1){m(g),l()},get required(){return u()},set required(g=!1){u(g),l()},get name(){return p()},set name(g){p(g),l()},get loop(){return T()},set loop(g=!0){T(g),l()},get onchange(){return O()},set onchange(g){O(g),l()},get onopenchange(){return C()},set onopenchange(g){C(g),l()},get children(){return N()},set children(g){N(g),l()},get staticPosition(){return b()},set staticPosition(g=!1){b(g),l()},$set:re,$on:(g,c)=>ne(e,g,c)},D=_o(),G=X(D);return pe(G,()=>Er,(g,c)=>{c(g,{type:"single",get items(){return v()},get disabled(){return _()},get required(){return u()},get name(){return p()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return C()},get value(){return o()},set value(V){o(V)},get open(){return i()},set open(V){i(V)},children:(V,I)=>{var y=q(),E=K(y);j(E,()=>N()??ae),S(V,y)},$$slots:{default:!0}})}),Z(D),S(d,D),se(R)}var Co=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),No=$("<!> <!>",1);function Mr(d,e){if(new.target)return te({component:Mr,...d});oe(e,!0);const t=(I,y)=>{let E=()=>(y?.()).props;const B=x(()=>G(E()));var f=q(),L=K(f);{var W=w=>{var P=q(),A=K(P);j(A,i,()=>({props:n(B)})),S(w,P)},F=w=>{Kn(w,_e(()=>n(B),{get variant(){return n(b)},get active(){return p.open},get class(){return n(R)},children:(P,A)=>{var z=No(),ie=K(z);j(ie,()=>o()??ae);var Oe=ct(ie,2);{var wt=Ae=>{mr(Ae,{get icon(){return Un},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};Q(Oe,Ae=>{r()==="default"&&Ae(wt)})}S(P,z)},$$slots:{default:!0}}))};Q(L,w=>{i()?w(W):w(F,-1)})}S(I,f)};let r=a(e,"variant",7,"default"),s=a(e,"class",7,""),o=a(e,"children",7),i=a(e,"child",7),v=a(e,"onclick",7),_=a(e,"id",7),m=a(e,"ref",15,null),u=be(e,Co);const p=At("canonical-select");Jr(()=>p.registerTriggerId(_())),ve(()=>p.registerTriggerId(_()));let T=Y(!1);ve(()=>{const I=p.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(y=>y.htmlFor===I),!0)});const O=x(()=>!u["aria-label"]&&!u["aria-labelledby"]&&!n(T));let C=Y(void 0);ve(()=>{const I=m();if(!n(O)||!I){k(C,void 0);return}const y=()=>{k(C,I.textContent?.trim()||void 0,!0)};y();const E=new MutationObserver(y);return E.observe(I,{childList:!0,characterData:!0,subtree:!0}),()=>E.disconnect()});const N={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},b=x(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),R=x(()=>xe("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) font-medium transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",N[r()],s()));function D(I){I.detail===0&&!p.open&&(p.open=!0),v()?.(I)}function G(I){const{"aria-activedescendant":y,"aria-label":E,...B}=I;return{...B,role:"combobox","aria-label":typeof E=="string"?E:n(C),"aria-activedescendant":p.open&&typeof y=="string"?y:void 0}}var g={get variant(){return r()},set variant(I="default"){r(I),l()},get class(){return s()},set class(I=""){s(I),l()},get children(){return o()},set children(I){o(I),l()},get child(){return i()},set child(I){i(I),l()},get onclick(){return v()},set onclick(I){v(I),l()},get id(){return _()},set id(I){_(I),l()},get ref(){return m()},set ref(I=null){m(I),l()},$set:re,$on:(I,y)=>ne(e,I,y)},c=q(),V=K(c);{let I=x(()=>p.open?p.listboxId:void 0),y=x(()=>p.invalid||void 0);pe(V,()=>Tr,(E,B)=>{B(E,_e(()=>u,{get id(){return p.triggerId},get"aria-controls"(){return n(I)},get class(){return n(R)},get"aria-invalid"(){return n(y)},onclick:D,get child(){return t},get ref(){return m()},set ref(f){m(f)}}))})}return S(d,c),se(g)}var Io=$("<span> </span>");function Rr(d,e){if(new.target)return te({component:Rr,...d});oe(e,!0);let t=a(e,"placeholder",23,()=>jt.ui_select_value_placeholder());const r=At("canonical-select");var s={get placeholder(){return t()},set placeholder(v=jt.ui_select_value_placeholder()){t(v),l()},$set:re,$on:(v,_)=>ne(e,v,_)},o=Io(),i=sr(o,!0);return Et(()=>{fr(o,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),Qr(i,r.displayValue||t())}),S(d,o),se(s)}var Po=$('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Vr(d,e){if(new.target)return te({component:Vr,...d});oe(e,!0);let t=a(e,"activeIndex",7),r=a(e,"onactiveindexchange",7),s=Y(null),o=Y(null),i=Y(Xr([])),v=Y(null),_=Y(!1),m=Y(!1),u;const p='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';ve(()=>{n(o)&&t()===void 0&&n(_)&&n(o).activeIndex!==n(v)&&n(o).setActiveIndex(n(v))}),ve(()=>{!n(o)||t()===void 0||n(o).pointerPosition||n(o).setActiveIndex(t())}),ve(()=>{if(!n(o)?.pointerPosition){u=void 0;return}n(o).activeIndex!==u&&(u=n(o).activeIndex,r()?.(n(o).activeIndex))}),Zr(()=>{const b=n(s)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const R=tn(b,{axis:"xy"});k(o,R);let D=[];const G=w=>w instanceof Element&&(w.matches(p)||w.querySelector(p)),g=w=>w.hasAttribute("data-disabled")||w.getAttribute("aria-disabled")==="true",c=w=>w.dataset.selectionAppearance!=="indicator"&&(w.hasAttribute("data-selected")||w.getAttribute("data-state")==="checked"||w.getAttribute("aria-selected")==="true"||w.getAttribute("aria-checked")==="true"),V=()=>{const w=Array.from(b.querySelectorAll(p)).filter(A=>A.closest("[data-list-overlay]")===b&&!g(A));w.length!==D.length||w.some((A,z)=>A!==D[z])?(D.forEach((A,z)=>R.registerItem(z,null)),D=w,D.forEach((A,z)=>R.registerItem(z,A))):R.measure();const P=D.flatMap((A,z)=>c(A)?[z]:[]);if((P.length!==n(i).length||P.some((A,z)=>A!==n(i)[z]))&&k(i,P,!0),t()===void 0){const A=D.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&R.setActiveIndex(A)}},I=new MutationObserver(w=>{w.some(P=>P.type==="attributes"||[...P.addedNodes,...P.removedNodes].some(G))&&V()});I.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const y=()=>{const w=D.indexOf(document.activeElement);k(v,w>=0?w:null,!0)},E=()=>{k(m,!1),k(_,!0),y(),Ct().then(()=>{n(_)&&y()})},B=()=>{k(_,!1)},f=()=>{k(m,!1),k(_,!0),y()},L=w=>{const P=w.target instanceof Element?w.target.closest(p):null,A=D.indexOf(P);w.button!==0||A<0||(k(_,!1),k(m,!0),R.setActiveIndex(A))},W=()=>{k(m,!1)},F=w=>{const P=D.indexOf(w.target);k(v,P>=0?P:null,!0),P>=0&&R.setActiveIndex(P)};return b.addEventListener("keydown",E,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",f),b.addEventListener("pointerdown",L),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",F),Ct().then(V),()=>{I.disconnect(),b.removeEventListener("keydown",E,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",f),b.removeEventListener("pointerdown",L),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",F),R.destroy(),k(o,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),l()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),l()},$set:re,$on:(b,R)=>ne(e,b,R)},O=Po(),C=X(O);{var N=b=>{{let R=x(()=>n(m)?n(i).includes(n(o).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");jn(b,{get store(){return n(o)},get selectedIndexes(){return n(i)},get hoverClass(){return n(R)}})}};Q(C,b=>{n(o)&&b(N)})}return Z(O),Yn(O,b=>k(s,b),()=>n(s)),Et(()=>vr(O,"data-active-index",n(o)?.activeIndex??void 0)),S(d,O),se(T)}const Lr=8;function Zo(d,e,t=24){if(!d)return!0;const r=d.getBoundingClientRect(),s=e+t+Lr;return r.left>=s||d.ownerDocument.documentElement.clientWidth-r.right>=s}var So=$("<div><!> <!></div>"),ko=$("<div><!></div>"),Oo=$("<div><div><!></div></div>");function Dr(d,e){if(new.target)return te({component:Dr,...d});oe(e,!0);const t=y=>{var E=q(),B=K(E);{const f=(L,W)=>{let F=()=>(W?.()).props;var w=So();ee(w,()=>({...F(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var P=X(w);Vr(P,{});var A=ct(P,2);j(A,()=>T()??ae),Z(w),S(L,w)};pe(B,()=>Ar,(L,W)=>{W(L,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:f,$$slots:{child:!0}})})}S(y,E)},r=(y,E)=>{let B=()=>(E?.()).props;const f=x(()=>D(B()));var L=ko();ee(L,()=>({...n(f),...v()?{id:v()}:{}}));var W=X(L);t(W),Z(L),Jt(L,F=>i?.(F)),S(y,L)},s=(y,E)=>{let B=()=>(E?.()).props,f=()=>(E?.()).wrapperProps;const L=x(()=>D(B()));var W=Oo();ee(W,()=>({...f(),...v()?{id:v()}:{}}));var F=X(W);ee(F,()=>({...n(L)}));var w=X(F);t(w),Z(F),Jt(F,P=>i?.(P)),Z(W),S(y,W)},o=rn(),i=nn();let v=a(e,"wrapperId",7),_=a(e,"class",7,""),m=a(e,"wrapperClass",7,""),u=a(e,"dropUp",7,!1),p=a(e,"portal",7),T=a(e,"children",7);const O=x(()=>u()||p()===!0),C=Jn(),N=Xn(Zn()+2);$n(N);const b=At("canonical-select");async function R(){const y=document.getElementById(b.triggerId);await Ct(),!b.open&&y?.isConnected&&y.focus({preventScroll:!0})}function D(y){const{role:E,tabindex:B,...f}=y;return f}var G={get wrapperId(){return v()},set wrapperId(y){v(y),l()},get class(){return _()},set class(y=""){_(y),l()},get wrapperClass(){return m()},set wrapperClass(y=""){m(y),l()},get dropUp(){return u()},set dropUp(y=!1){u(y),l()},get portal(){return p()},set portal(y){p(y),l()},get children(){return T()},set children(y){T(y),l()},$set:re,$on:(y,E)=>ne(e,y,E)},g=q(),c=K(g);{var V=y=>{var E=q(),B=K(E);{let f=x(()=>xe(Xt(),"w-full max-h-60",_()));pe(B,()=>Sr,(L,W)=>{W(L,{preventScroll:!1,onEscapeKeydown:R,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return N},get class(){return n(f)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}S(y,E)},I=y=>{const E=x(()=>p()===void 0&&!u()?C():void 0);var B=q(),f=K(B);{let L=x(()=>!n(O)&&!n(E)),W=x(()=>n(E)??o?.target());pe(f,()=>Bn,(F,w)=>{w(F,{get disabled(){return n(L)},get to(){return n(W)},children:(P,A)=>{var z=q(),ie=K(z);{let Oe=x(()=>n(E)?"absolute":"fixed"),wt=x(()=>n(E)!==void 0),Ae=x(()=>u()?"top":"bottom"),Br=x(()=>xe(Xt(),"w-(--bits-select-anchor-width) max-h-60",_()));pe(ie,()=>Pr,(Wr,Ur)=>{Ur(Wr,{get strategy(){return n(Oe)},get hideWhenDetached(){return n(wt)},onEscapeKeydown:R,"data-slot":"select-content",get"data-surface-level"(){return N},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Lr},get class(){return n(Br)},style:"max-width: calc(100vw - var(--space-4));",get child(){return s}})})}S(P,z)},$$slots:{default:!0}})})}S(y,B)};Q(c,y=>{b.staticPosition?y(V):y(I,-1)})}return S(d,g),se(G)}var Ao=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Eo=$('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),To=$("<span><!></span>");function Fr(d,e){if(new.target)return te({component:Fr,...d});oe(e,!0);let t=a(e,"state",7),r=a(e,"class",7),s=a(e,"data-slot",7),o=be(e,Ao);var i={get state(){return t()},set state(p){t(p),l()},get class(){return r()},set class(p){r(p),l()},get"data-slot"(){return s()},set"data-slot"(p){s(p),l()},$set:re,$on:(p,T)=>ne(e,p,T)},v=q(),_=K(v);{var m=p=>{var T=Eo();ee(T,N=>({...o,"data-slot":s()??"menu-switch",class:N,"aria-hidden":"true"}),[()=>xe("ml-auto flex h-lh shrink-0 items-center",r())]);var O=X(T),C=sr(O);Z(T),Et(N=>{vr(O,"data-state",t()==="on"?"checked":"unchecked"),fr(C,1,N)},[()=>Wn(xe("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),S(p,T)},u=p=>{var T=To();ee(T,N=>({...o,"data-slot":s()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:N,"aria-hidden":"true"}),[()=>xe(on,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=X(T);{var C=N=>{{let b=x(()=>t()==="mixed"?qn:t()==="submenu"?zn:Gn),R=x(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),D=x(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");mr(N,{get icon(){return n(b)},get size(){return n(R)},get class(){return n(D)}})}};Q(O,N=>{t()!=="empty"&&N(C)})}Z(T),S(p,T)};Q(_,p=>{t()==="on"||t()==="off"?p(m):p(u,-1)})}return S(d,v),se(i)}var Ho=$('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Kr(d,e){if(new.target)return te({component:Kr,...d});oe(e,!0);let t=a(e,"value",7),r=a(e,"label",7),s=a(e,"disabled",7,!1),o=a(e,"children",7),i=a(e,"class",7,"");var v={get value(){return t()},set value(u){t(u),l()},get label(){return r()},set label(u){r(u),l()},get disabled(){return s()},set disabled(u=!1){s(u),l()},get children(){return o()},set children(u){o(u),l()},get class(){return i()},set class(u=""){i(u),l()},$set:re,$on:(u,p)=>ne(e,u,p)},_=q(),m=K(_);{const u=(C,N)=>{let b=()=>(N?.()).selected;var R=Ho(),D=K(R),G=X(D);j(G,()=>o()??ae),Z(D);var g=ct(D,2);{let c=x(()=>b()?"checked":"empty");Fr(g,{get state(){return n(c)},"data-slot":"select-item-check"})}S(C,R)};let p=x(()=>r()??t()),T=x(()=>s()||void 0),O=x(()=>xe(Qn(),i()));pe(m,()=>Or,(C,N)=>{N(C,{get value(){return t()},get label(){return n(p)},get disabled(){return s()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:u,$$slots:{default:!0}})})}return S(d,_),se(v)}const $o={Root:Hr,Trigger:Mr,Value:Rr,Content:Dr,Item:Kr},Mo=(d,e)=>{let t,r;const s=()=>{t||(t=eo(()=>{t=void 0;const v=d.checkVisibility?.()??!0,_=v?d.clientWidth:0,m=v?d.clientHeight:0,u=_>0&&m>0&&(d.scrollWidth>_||d.scrollHeight>m);r?.(),r=to(()=>{r=void 0,e(u)})}))},o=typeof ResizeObserver>"u"?void 0:new ResizeObserver(s),i=new MutationObserver(s);return o?.observe(d),i.observe(d,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",s),s(),{update(v){e=v,s()},destroy(){t?.(),r?.(),o?.disconnect(),i.disconnect(),document.fonts?.removeEventListener("loadingdone",s)}}},es=(d,e)=>{let t=e;const r=o=>{t&&(o||t.trim()!==d.textContent?.trim())?d.title=t:d.removeAttribute("title")},s=Mo(d,r);return{update(o){t=o,s?.update?.(r)},destroy(){s?.destroy?.(),d.removeAttribute("title")}}};export{Ir as F,yr as H,Fr as M,Lr as O,$o as S,Vr as a,rr as b,tr as c,er as d,ho as e,Pr as f,Sr as g,gt as h,Or as i,Ar as j,Zo as k,Mo as o,es as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as te,aR as re,by as ne,ao as j,_ as q,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Fe,c9 as z,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,bq as m,by as de,br as ce,b as ue}from"./CT36W95j.js";import{i as H}from"./Cn5kmzaj.js";import{b as W,e as R}from"./TRV263rQ.js";import{b as U}from"./BaIAhI85.js";import{s as Be}from"./DHClt9az.js";import{I as G,F as We,c as De}from"./D-IkFfCX.js";import"./D9BiEPlJ.js";import{a_ as Me}from"./D9xzAHI_.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&q();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&q();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var qe=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),He=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,qe);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=He();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",Ue="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??S()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",Ue,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),J(h,f),N(r,h)};H(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};H(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,Ue as o,vt as p,Je as q,ct as s,Ge as t};
|
|
1
|
+
import{b8 as te,aR as re,by as ne,ao as j,_ as q,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Fe,c9 as z,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,bq as m,by as de,br as ce,b as ue}from"./DGQ1ECsI.js";import{i as H}from"./B-DRVFcy.js";import{b as W,e as R}from"./Bp_k45o-.js";import{b as U}from"./BaIAhI85.js";import{s as Be}from"./ChmnWquS.js";import{I as G,F as We,c as De}from"./DNZhZg57.js";import"./rEoZFmiI.js";import{a_ as Me}from"./CxF8YFum.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&q();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&q();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var qe=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),He=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,qe);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=He();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",Ue="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??S()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",Ue,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),U(h,x=>s(x),()=>s()),J(h,f),N(r,h)};H(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};H(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,Ue as o,vt as p,Je as q,ct as s,Ge as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as j,by as q,bu as p,bs as B,b as L}from"./
|
|
1
|
+
import{t as j,by as q,bu as p,bs as B,b as L}from"./DGQ1ECsI.js";import{bs as R,ca as c,bk as W,bn as z}from"./DYhIMPy1.js";import{o as h,m,s as y,k as V}from"./CK2a86W3.js";import"./Bp_k45o-.js";import"./ChmnWquS.js";import"./DZ-cwX5R.js";import"./ChTqQfQN.js";import"./B_7vJcZK.js";import{Iv as t,I1 as b,oD as a,qo as F,j$ as g}from"./BSSsvY4I.js";function G(v,T){if(new.target)return j({component:G,...v});R(T,!0);const r=()=>p(U,"$ownsNotice$",l),D=()=>p(x,"$toastVisible$",l),u=()=>p(O,"$status$",l),S=()=>p(k,"$dismissedAt$",l),[l,N]=B(),o=t.createSelector(s=>{const e=s.machineRail;return!e.enabled||e.shownId===""||e.shownId===s.connections.windowBackendId}),U=o(),x=h(),O=m(),k=y(),A=1440*60*1e3;let i,$;const I=new Set;function _(s){I.add(s),V.dismiss(s)}function f(){if(!o.select(t.state))return;i!==void 0&&_(i);const s=V.update({onDismiss:()=>{i!==s||!o.select(t.state)||(n(),m.select(t.state)==="downloaded"?t.dispatch(g(Date.now())):t.dispatch(a()))},onAutoDismiss:()=>{i!==s||!o.select(t.state)||(n(),t.dispatch(a()))}},{duration:1/0,onDismiss:e=>{if(I.delete(e.id)||i!==e.id||!o.select(t.state))return;if(i=void 0,m.select(t.state)==="downloaded"&&o.select(t.state)){t.dispatch(g(Date.now()));return}t.dispatch(a())}});i=s}function n(){i!==void 0&&(_(i),i=void 0)}c(()=>{r()&&D()&&i===void 0&&f()}),c(()=>{const s=u();if(!r()){n(),$=void 0;return}if(s!==$){if(s==="downloading")i===void 0&&f(),h.select(t.state)||t.dispatch(b());else if(s==="downloaded"){const e=y.select(t.state);e==null||Date.now()-e>=A?(i===void 0&&f(),h.select(t.state)||t.dispatch(b())):(n(),t.dispatch(a()))}s==="idle"&&(n(),t.dispatch(a())),$=s}}),c(()=>{u()==="downloaded"&&!D()&&S()!==null&&n()}),c(()=>{const s=u(),e=S();if(!r()||s!=="downloaded"||e==null)return;const d=Date.now()-e,w=A-d;if(w<=0)return;const E=setTimeout(()=>{m.select(t.state)==="downloaded"&&o.select(t.state)&&(f(),t.dispatch(b()))},w);return()=>clearTimeout(E)}),c(()=>{const s=u();if(r()&&(s==="not-available"||s==="error")){const d=setTimeout(()=>{o.select(t.state)&&(n(),t.dispatch(a()))},s==="error"?5500:3500);return()=>clearTimeout(d)}}),W(()=>(t.dispatch(F()),()=>{n()}));var C={$set:q,$on:(s,e)=>L(T,s,e)},M=z(C);return N(),M}export{G as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Iv as o,lV as C,nx as E,nb as L,IA as W}from"./
|
|
1
|
+
import{Iv as o,lV as C,nx as E,nb as L,IA as W}from"./BSSsvY4I.js";import{w as z}from"./WFvSJ9zU.js";import{dr as b,dv as f}from"./CbVK4mzc.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),G=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),M=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),R=o.createSelector((t,e)=>a.select(t,e).nodes.map),V=o.createSelector((t,e)=>a.select(t,e).isLoading),q=o.createSelector((t,e)=>a.select(t,e).isInitialized),A=o.createSelector((t,e)=>a.select(t,e).error),B=o.createSelector((t,e)=>a.select(t,e).fileCount),K=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=b.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),O=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const J=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),Q=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),T=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),U=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,X=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),I=new Set(s.loadingPaths),v=L(s.nodes,n.children,p,I),{agentFileEdits:y,workspacePath:P,gitStatus:x}=s,S=new Set;for(const r of Object.keys(x)){const i=r.split("/");for(let l=1;l<i.length;l++)S.add(i.slice(0,l).join("/"))}return v.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=y[i],d=l?x[i]:void 0,h=!l&&S.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{A as a,B as b,K as c,O as d,q as e,V as f,R as g,M as h,G as i,a as j,X as k,T as l,J as m,Q as n,U as o,g as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Q,bq as a,bt as T,by as U,br as V,b as X}from"./
|
|
1
|
+
import{t as Q,bq as a,bt as T,by as U,br as V,b as X}from"./DGQ1ECsI.js";import{bo as Y,bs as Z,ay as $,a5 as A,bl as F,bS as j,bA as q,b_ as k,W as l,aD as f,bn as ee,aA as r,c9 as g,aB as z,a7 as te,bO as w,be as ae,b$ as re}from"./DYhIMPy1.js";import{i as S}from"./B-DRVFcy.js";import{s as se}from"./Bp_k45o-.js";import{F as ne}from"./Cjw1QvKa.js";import{i as ie}from"./Cw94LfJC.js";import{aa as de}from"./CxF8YFum.js";var oe=new Set(["$$slots","$$events","$$legacy","icon","iconWeight","label","shortcut","destructive","disabled","disabledReason","aria-describedby"]),le=z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),ce=z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),ue=z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1);function be(B,t){const D=Y();if(new.target)return Q({component:be,...B});Z(t,!0);const I=e=>{var d=te(),x=$(d);{var y=b=>{{let m=g(()=>u()?"size-4 text-current":"size-4 text-muted-foreground");ne(b,{get icon(){return o()},get weight(){return _()},size:16,get class(){return f(m)}})}};S(x,b=>{o()&&b(y)})}l(e,d)};let o=a(t,"icon",7),_=a(t,"iconWeight",7),v=a(t,"label",7),c=a(t,"shortcut",7),u=a(t,"destructive",7,!1),p=a(t,"disabled",7,!1),i=a(t,"disabledReason",7),h=a(t,"aria-describedby",7),O=V(t,oe);const C=`${D}-reason`;var E={get icon(){return o()},set icon(e){o(e),r()},get iconWeight(){return _()},set iconWeight(e){_(e),r()},get label(){return v()},set label(e){v(e),r()},get shortcut(){return c()},set shortcut(e){c(e),r()},get destructive(){return u()},set destructive(e=!1){u(e),r()},get disabled(){return p()},set disabled(e=!1){p(e),r()},get disabledReason(){return i()},set disabledReason(e){i(e),r()},get"aria-describedby"(){return h()},set"aria-describedby"(e){h(e),r()},$set:U,$on:(e,d)=>X(t,e,d)};{let e=g(()=>o()?I:void 0),d=g(()=>p()||i()!==void 0),x=g(()=>[h(),i()?C:void 0].filter(Boolean).join(" ")||void 0);ie(B,T({get destructive(){return u()},get leading(){return f(e)}},()=>O,{get disabled(){return f(d)},get"aria-describedby"(){return f(x)},"data-slot":"menu-command-item",children:(y,b)=>{var m=ue(),W=$(m),M=A(W),G=F(M,!0),H=j(M,2);{var J=s=>{var n=le(),R=F(n,!0);k(()=>{se(n,"id",C),w(R,i())}),l(s,n)};S(H,s=>{i()&&s(J)})}q(W);var K=j(W,2);{var L=s=>{var n=ce(),R=A(n);de(R,{children:(N,me)=>{ae();var P=re();k(()=>w(P,c())),l(N,P)},$$slots:{default:!0}}),q(n),l(s,n)};S(K,s=>{c()&&s(L)})}k(()=>w(G,v())),l(y,m)},$$slots:{default:!0}}))}return ee(E)}export{be as M};
|