@intent-hq/web 2.381.2 → 2.383.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/0.BmwjvpSF.css +1 -0
- package/web/app/immutable/chunks/{BeKKPzED.js → -K3ARgq0.js} +1 -1
- package/web/app/immutable/chunks/{DlZ4XLhX.js → 0HRWclfL.js} +1 -1
- package/web/app/immutable/chunks/{B1TqZZyd.js → 1WR8MecL.js} +3 -3
- package/web/app/immutable/chunks/{BROVaoRF.js → 1mf839wD.js} +1 -1
- package/web/app/immutable/chunks/{zFOAQ-fV.js → 3xK9OOJy.js} +1 -1
- package/web/app/immutable/chunks/{e9FnhdhA.js → 4BrIaRe_.js} +1 -1
- package/web/app/immutable/chunks/{C9RagC2N.js → 518Fef2L.js} +1 -1
- package/web/app/immutable/chunks/{zOXOu59X.js → 6-uYidyP.js} +3 -3
- package/web/app/immutable/chunks/{E-ElQTlm.js → 68Tuqjp3.js} +1 -1
- package/web/app/immutable/chunks/{CuMJ0LCw.js → 6Bqipt1r.js} +1 -1
- package/web/app/immutable/chunks/{CyczJyMt.js → 7UPrdiE9.js} +1 -1
- package/web/app/immutable/chunks/{Cywj8P1v.js → 8r75D0ru.js} +1 -1
- package/web/app/immutable/chunks/{gtC5KXEz.js → 9bukzQMK.js} +1 -1
- package/web/app/immutable/chunks/{H_09C3Qv.js → 9gSjzhYc.js} +1 -1
- package/web/app/immutable/chunks/A9niI_uA.js +1 -0
- package/web/app/immutable/chunks/{CEUJ2SOA.js → AlEhxd2n.js} +1 -1
- package/web/app/immutable/chunks/{B4Uud3OJ.js → B-ef1MlI.js} +1 -1
- package/web/app/immutable/chunks/{DN6qgMae.js → B2Ym4lhl.js} +1 -1
- package/web/app/immutable/chunks/{CDnYwtBR.js → B2f9w8eB.js} +1 -1
- package/web/app/immutable/chunks/{DVHfIJ_U.js → B2kb4xeF.js} +1 -1
- package/web/app/immutable/chunks/{CkEbA_As.js → B2nCyo89.js} +1 -1
- package/web/app/immutable/chunks/{D2MSvsFH.js → B3Bfek34.js} +1 -1
- package/web/app/immutable/chunks/{BmQQcH5z.js → B4SiDSWP.js} +1 -1
- package/web/app/immutable/chunks/{Dq39ODex.js → B4WuQori.js} +1 -1
- package/web/app/immutable/chunks/{B4K17hnI.js → B4xSB_Hx.js} +1 -1
- package/web/app/immutable/chunks/{DRdEaij1.js → B5M0SkuR.js} +1 -1
- package/web/app/immutable/chunks/{BZKoidWB.js → B6S6VNu7.js} +1 -1
- package/web/app/immutable/chunks/{Bg4SPgrZ.js → B6STvYyK.js} +1 -1
- package/web/app/immutable/chunks/{qE-X6VV1.js → B8-Q1tED.js} +1 -1
- package/web/app/immutable/chunks/{BIIYZtt3.js → B9oKJyXc.js} +1 -1
- package/web/app/immutable/chunks/{C-931TJ0.js → BA-rwlhs.js} +1 -1
- package/web/app/immutable/chunks/{BX63FB9x.js → BAKPnd3w.js} +1 -1
- package/web/app/immutable/chunks/{Bt_5d6KS.js → BAOaoX22.js} +1 -1
- package/web/app/immutable/chunks/{D5Rd8qkd.js → BE6Cp7Qp.js} +1 -1
- package/web/app/immutable/chunks/{Ue-wYmxq.js → BETzmOvF.js} +1 -1
- package/web/app/immutable/chunks/{Bmt71DMB.js → BFEzojY2.js} +1 -1
- package/web/app/immutable/chunks/{9mNi8996.js → BFIcslMA.js} +2 -2
- package/web/app/immutable/chunks/{CKFaA258.js → BFeEPayU.js} +1 -1
- package/web/app/immutable/chunks/{BOzF_1jP.js → BG9tvqwj.js} +1 -1
- package/web/app/immutable/chunks/{CVuT-llE.js → BGTRTFMR.js} +1 -1
- package/web/app/immutable/chunks/BIVeXMBl.js +1 -0
- package/web/app/immutable/chunks/{DMhc83bo.js → BJWt3PU_.js} +1 -1
- package/web/app/immutable/chunks/{CL_Wu5hL.js → BJ_CKcUH.js} +1 -1
- package/web/app/immutable/chunks/{bT3v1QYj.js → BO_DS0RP.js} +1 -1
- package/web/app/immutable/chunks/{B3TTR8D_.js → BP3Sccje.js} +1 -1
- package/web/app/immutable/chunks/{DAY78LgA.js → BP4Hm_tD.js} +2 -2
- package/web/app/immutable/chunks/{xlIh55VB.js → BP5uGGO_.js} +1 -1
- package/web/app/immutable/chunks/{BavAnT42.js → BPL5Fo2b.js} +1 -1
- package/web/app/immutable/chunks/{DnbNqDYS.js → BSKFIBj2.js} +1 -1
- package/web/app/immutable/chunks/{BJGbabcl.js → BSKf8bnG.js} +1 -1
- package/web/app/immutable/chunks/{CkyY-zEo.js → BTrqJIJZ.js} +1 -1
- package/web/app/immutable/chunks/{DPCjIvYy.js → BUGeL7WE.js} +1 -1
- package/web/app/immutable/chunks/{vnEDE6VU.js → BUQUek8g.js} +1 -1
- package/web/app/immutable/chunks/{CoHtEoLb.js → BURZJh0r.js} +1 -1
- package/web/app/immutable/chunks/{CgbisBm3.js → BWGnuS1v.js} +1 -1
- package/web/app/immutable/chunks/{Besc4d7d.js → BWYuMy_r.js} +1 -1
- package/web/app/immutable/chunks/{dzRbajCR.js → BX-0SVP7.js} +1 -1
- package/web/app/immutable/chunks/{DZTelE6-.js → BX-LCSle.js} +1 -1
- package/web/app/immutable/chunks/{Bkn9MGZb.js → BYq9VtBF.js} +1 -1
- package/web/app/immutable/chunks/{7Co-pRoL.js → B_LcgbLl.js} +1 -1
- package/web/app/immutable/chunks/{B-wL6Wzy.js → Ba8ctcpl.js} +1 -1
- package/web/app/immutable/chunks/{DQdDAxOz.js → BaujsV9k.js} +1 -1
- package/web/app/immutable/chunks/{s7AiPAor.js → BcpfdNy8.js} +1 -1
- package/web/app/immutable/chunks/{BQyGe_6f.js → BeNn_MBw.js} +1 -1
- package/web/app/immutable/chunks/{BB82Eb4D.js → BeOwB_6G.js} +1 -1
- package/web/app/immutable/chunks/{DDHXn0gy.js → BfojStRz.js} +1 -1
- package/web/app/immutable/chunks/{DtV42LL1.js → BfvZe-kN.js} +6 -6
- package/web/app/immutable/chunks/{jExJ4qw0.js → Bir0Y4gf.js} +2 -2
- package/web/app/immutable/chunks/{pGhuLhmB.js → BlDljC9y.js} +1 -1
- package/web/app/immutable/chunks/{Ah-onPNG.js → BmTMWrby.js} +1 -1
- package/web/app/immutable/chunks/{CLbTxOfk.js → BmUPAQa9.js} +1 -1
- package/web/app/immutable/chunks/{BCl5zPXa.js → Bn880vDO.js} +1 -1
- package/web/app/immutable/chunks/{De9e0mT0.js → Bs2WE18g.js} +1 -1
- package/web/app/immutable/chunks/{D5zGpim8.js → Bs9K_x5H.js} +1 -1
- package/web/app/immutable/chunks/{oLeo92vY.js → BsN2abqQ.js} +1 -1
- package/web/app/immutable/chunks/{HWtwQJMe.js → Bsh6nUhU.js} +1 -1
- package/web/app/immutable/chunks/{CTzwWQun.js → BsrrIQeo.js} +1 -1
- package/web/app/immutable/chunks/{CE-ONoWm.js → BtTA7CNV.js} +1 -1
- package/web/app/immutable/chunks/{BWLItowS.js → Bty1UglO.js} +1 -1
- package/web/app/immutable/chunks/{BORX4QsI.js → Bu7LYnzn.js} +1 -1
- package/web/app/immutable/chunks/{DwzqUxIw.js → Bvi-fRGz.js} +1 -1
- package/web/app/immutable/chunks/{Dpd18D9E.js → BwG2vfja.js} +1 -1
- package/web/app/immutable/chunks/{DLs0Gu12.js → BxEf7uwl.js} +1 -1
- package/web/app/immutable/chunks/{D1BWZmii.js → BxJ6X-Sl.js} +1 -1
- package/web/app/immutable/chunks/{BzWnUeNO.js → BypvqIQM.js} +1 -1
- package/web/app/immutable/chunks/{BEGsYnq4.js → Bz7R1ahj.js} +4 -4
- package/web/app/immutable/chunks/{D2KaVfIR.js → C0I_aIej.js} +2 -2
- package/web/app/immutable/chunks/C0QTy0Sy.js +1 -0
- package/web/app/immutable/chunks/{Bz7B58eG.js → C1EvfTg-.js} +1 -1
- package/web/app/immutable/chunks/{CtJr8Pwg.js → C45U06qp.js} +1 -1
- package/web/app/immutable/chunks/{DVkTXE2a.js → C4JXGtw1.js} +1 -1
- package/web/app/immutable/chunks/{C1hbmGxM.js → C4JbSg3f.js} +1 -1
- package/web/app/immutable/chunks/{Fh9R4BHC.js → C4QKwtCH.js} +1 -1
- package/web/app/immutable/chunks/{BgdV71H8.js → C5yhcKTW.js} +1 -1
- package/web/app/immutable/chunks/{CsY5Dftt.js → C6mS8uZB.js} +1 -1
- package/web/app/immutable/chunks/{B3Muoj7H.js → C7LIHk5_.js} +1 -1
- package/web/app/immutable/chunks/{Cr-iZ9Tf.js → C8HkqBCb.js} +1 -1
- package/web/app/immutable/chunks/{Da_Z6CgM.js → C8y9EItt.js} +1 -1
- package/web/app/immutable/chunks/{B6jOBMKj.js → CAgnBDaV.js} +3 -3
- package/web/app/immutable/chunks/{BE66F_G_.js → CAvYeStH.js} +1 -1
- package/web/app/immutable/chunks/{Dy2ZTySC.js → CCqqosml.js} +1 -1
- package/web/app/immutable/chunks/{KWmquGlL.js → CDK_hSiv.js} +1 -1
- package/web/app/immutable/chunks/{CXCeVP0_.js → CDjpuJh0.js} +1 -1
- package/web/app/immutable/chunks/{3Tv2tBbo.js → CE7VCun2.js} +3 -3
- package/web/app/immutable/chunks/{Yy6hnibL.js → CE7dsja4.js} +1 -1
- package/web/app/immutable/chunks/{CPvBbiM1.js → CEgeN2ws.js} +1 -1
- package/web/app/immutable/chunks/{RNoFqjp6.js → CFny5dMa.js} +1 -1
- package/web/app/immutable/chunks/{DaYz5Oxb.js → CFvBUo4R.js} +3 -3
- package/web/app/immutable/chunks/{C9K8tC7J.js → CHLX1QZz.js} +1 -1
- package/web/app/immutable/chunks/{Bwqr9iPo.js → CJ4Z96pe.js} +1 -1
- package/web/app/immutable/chunks/{CngHTAnD.js → CMrw-y4l.js} +13 -13
- package/web/app/immutable/chunks/{B828qkf6.js → CMu-09q3.js} +1 -1
- package/web/app/immutable/chunks/{CYDXSK8a.js → CNAgTnv2.js} +1 -1
- package/web/app/immutable/chunks/{I_40sZHA.js → CO5zWp8I.js} +1 -1
- package/web/app/immutable/chunks/{b16NDDfn.js → COhRCR9P.js} +2 -2
- package/web/app/immutable/chunks/CPQ-kfy2.js +1 -0
- package/web/app/immutable/chunks/{lEWu7gpF.js → CPTZJWC9.js} +1 -1
- package/web/app/immutable/chunks/{BQzm8t-k.js → CRZZ_hOy.js} +1 -1
- package/web/app/immutable/chunks/{Cy0xJYMG.js → CRs9zG2A.js} +1 -1
- package/web/app/immutable/chunks/{BFjAz9so.js → CSRYV6LQ.js} +1 -1
- package/web/app/immutable/chunks/{C7vw9rpc.js → CSVgdt55.js} +1 -1
- package/web/app/immutable/chunks/{F6tZeezN.js → CU5jKGma.js} +1 -1
- package/web/app/immutable/chunks/{BIGXb0qV.js → CUkDMZwP.js} +1 -1
- package/web/app/immutable/chunks/{B_L3BWUb.js → CXS2Ba3S.js} +1 -1
- package/web/app/immutable/chunks/{wQP9H0b5.js → CY4fyoCV.js} +1 -1
- package/web/app/immutable/chunks/{B_9Y0vrL.js → CYtPXqgK.js} +1 -1
- package/web/app/immutable/chunks/C_1hI7HP.js +1 -0
- package/web/app/immutable/chunks/{CN0TD23u.js → C_78iNNC.js} +1 -1
- package/web/app/immutable/chunks/{B2JbncL-.js → C_KuQ05a.js} +1 -1
- package/web/app/immutable/chunks/{C4Fxj3Dv.js → CbqxWBi7.js} +1 -1
- package/web/app/immutable/chunks/{C9qmiGPA.js → Cf4fmkfL.js} +1 -1
- package/web/app/immutable/chunks/{Cy1eIaf4.js → ChTVnFH2.js} +1 -1
- package/web/app/immutable/chunks/{P-6iyz0U.js → CiMmbOsB.js} +1 -1
- package/web/app/immutable/chunks/{CHDBPeiu.js → CjTo2K46.js} +1 -1
- package/web/app/immutable/chunks/{76a0x163.js → CkA2ItLw.js} +1 -1
- package/web/app/immutable/chunks/{oxrHj9WB.js → Cmq0pZIQ.js} +2 -2
- package/web/app/immutable/chunks/{hOsZO8to.js → CmrjfWYI.js} +1 -1
- package/web/app/immutable/chunks/{CvmogvXF.js → Co4vj0dC.js} +1 -1
- package/web/app/immutable/chunks/{BzpQRjDP.js → Cqa6LF3b.js} +1 -1
- package/web/app/immutable/chunks/CqcqWJoa.js +1 -0
- package/web/app/immutable/chunks/CrD0jtXE.js +1 -0
- package/web/app/immutable/chunks/{CHiOQIO1.js → CrkMZYjb.js} +1 -1
- package/web/app/immutable/chunks/{CVQJ3G9r.js → Cs2lHsyA.js} +1 -1
- package/web/app/immutable/chunks/{B_TGsMEB.js → Csc9ETIC.js} +1 -1
- package/web/app/immutable/chunks/{nMcdiCb6.js → CtNkh9GR.js} +1 -1
- package/web/app/immutable/chunks/{Cgjp6r06.js → Ct_q9q1G.js} +1 -1
- package/web/app/immutable/chunks/{DLncssSx.js → Ctbo6mXV.js} +1 -1
- package/web/app/immutable/chunks/{8OEJW7fY.js → CuW3cq2w.js} +1 -1
- package/web/app/immutable/chunks/{wJF9cAcZ.js → CuewocoW.js} +1 -1
- package/web/app/immutable/chunks/{D_2nAvGE.js → CxOmNieJ.js} +1 -1
- package/web/app/immutable/chunks/D-zjf2Af.js +1 -0
- package/web/app/immutable/chunks/{DhkuGmLb.js → D37getya.js} +1 -1
- package/web/app/immutable/chunks/{BtCfKiJI.js → D3O8Vtuw.js} +1 -1
- package/web/app/immutable/chunks/{BgfkQ05m.js → D3p_bZm7.js} +1 -1
- package/web/app/immutable/chunks/{B6v6locT.js → D51XIZYq.js} +1 -1
- package/web/app/immutable/chunks/{BGr1zUsV.js → D5tDp1i8.js} +1 -1
- package/web/app/immutable/chunks/{SCoe-XeJ.js → D5xMHmv3.js} +1 -1
- package/web/app/immutable/chunks/{DT_2ysGq.js → D6dlPeEM.js} +1 -1
- package/web/app/immutable/chunks/{CMzQ5CXp.js → D73nBZuu.js} +1 -1
- package/web/app/immutable/chunks/{Do7ouyXz.js → D8ohaX19.js} +1 -1
- package/web/app/immutable/chunks/{dnTowHeA.js → D9XKwVJX.js} +3 -3
- package/web/app/immutable/chunks/{B4GJOofT.js → DA5opfEp.js} +1 -1
- package/web/app/immutable/chunks/{BOSZ-Hrc.js → DB7RVYiL.js} +1 -1
- package/web/app/immutable/chunks/{CfRm3l5p.js → DC8keNAk.js} +1 -1
- package/web/app/immutable/chunks/{C8SLclsn.js → DCK8dPAL.js} +1 -1
- package/web/app/immutable/chunks/{Bl3Cuor0.js → DCRuihKm.js} +2 -2
- package/web/app/immutable/chunks/{CxSmnqpJ.js → DE7dSDHO.js} +1 -1
- package/web/app/immutable/chunks/{D2ZHHwj-.js → DEVX5wOm.js} +2 -2
- package/web/app/immutable/chunks/{ByhEuqgY.js → DF2_1gr9.js} +1 -1
- package/web/app/immutable/chunks/{zdyRQTcF.js → DFcppVBl.js} +1 -1
- package/web/app/immutable/chunks/{EW9Oxsda.js → DGa13zF2.js} +1 -1
- package/web/app/immutable/chunks/{CfHaUU8C.js → DIFhl0he.js} +1 -1
- package/web/app/immutable/chunks/{6eBy--fo.js → DIG1mTAN.js} +2 -2
- package/web/app/immutable/chunks/{mg5SY1J3.js → DIKTPgAK.js} +1 -1
- package/web/app/immutable/chunks/{BiKalUOw.js → DK-ttWlY.js} +1 -1
- package/web/app/immutable/chunks/{CnT7X_Ka.js → DKHY8q_S.js} +1 -1
- package/web/app/immutable/chunks/{DJS9lO4g.js → DLbcryNV.js} +1 -1
- package/web/app/immutable/chunks/{C4_TlGj0.js → DLwWVKiF.js} +1 -1
- package/web/app/immutable/chunks/{Bw803iNn.js → DMDFfHqn.js} +3 -3
- package/web/app/immutable/chunks/{3BCA27_7.js → DMQmPhTl.js} +1 -1
- package/web/app/immutable/chunks/{CmLRC7-r.js → DN6OUhsP.js} +1 -1
- package/web/app/immutable/chunks/{BUfNfMkk.js → DO19lrhU.js} +1 -1
- package/web/app/immutable/chunks/{CHyLxrMv.js → DOEI9gYY.js} +1 -1
- package/web/app/immutable/chunks/{CJotcdQg.js → DPA45OJk.js} +1 -1
- package/web/app/immutable/chunks/{tFT894m3.js → DPYlDye0.js} +1 -1
- package/web/app/immutable/chunks/{BLCYnNxp.js → DQ_mNIfK.js} +1 -1
- package/web/app/immutable/chunks/{CZpxXUzD.js → DR4Kh2SL.js} +1 -1
- package/web/app/immutable/chunks/{CpCzAUi8.js → DSbNJBwA.js} +1 -1
- package/web/app/immutable/chunks/{CrtOf2Rt.js → DTuql3Rj.js} +1 -1
- package/web/app/immutable/chunks/{Ckr4n1ss.js → DUIwUF5m.js} +1 -1
- package/web/app/immutable/chunks/{CpxnRRai.js → DVROSXw1.js} +1 -1
- package/web/app/immutable/chunks/{Dk_2gwLu.js → DWWC1JsA.js} +1 -1
- package/web/app/immutable/chunks/{BG_RlrpY.js → DWiU4388.js} +1 -1
- package/web/app/immutable/chunks/{CplGIhI5.js → DX-Wrapd.js} +1 -1
- package/web/app/immutable/chunks/{C1Zw9RUp.js → DXBEIeJu.js} +1 -1
- package/web/app/immutable/chunks/{BKMwkk7g.js → DY0qeQe8.js} +1 -1
- package/web/app/immutable/chunks/{CaBTNP9L.js → D_Xpj-6r.js} +1 -1
- package/web/app/immutable/chunks/{o9vqVVAE.js → D_ovLyyd.js} +1 -1
- package/web/app/immutable/chunks/{CbUxbw3N.js → Db3Wob9h.js} +1 -1
- package/web/app/immutable/chunks/{BD4C_b2Z.js → DdXBqrnq.js} +1 -1
- package/web/app/immutable/chunks/{C__OzIly.js → DeHvIzqj.js} +2 -2
- package/web/app/immutable/chunks/{aDC6CW-9.js → Dfg3lB2h.js} +1 -1
- package/web/app/immutable/chunks/{DqfOHbUh.js → Djp7mdlG.js} +1 -1
- package/web/app/immutable/chunks/{DgQzilAi.js → DjxLojU4.js} +1 -1
- package/web/app/immutable/chunks/{3ozr1vad.js → DlJZrxef.js} +2 -2
- package/web/app/immutable/chunks/{IPb2sVOc.js → DliHiH6M.js} +4 -4
- package/web/app/immutable/chunks/{BZRdDiLW.js → Dlk4BhFg.js} +1 -1
- package/web/app/immutable/chunks/{DCfPUdw9.js → DlliJA4a.js} +3 -3
- package/web/app/immutable/chunks/{D6uQnPIb.js → DnJ4jlPB.js} +1 -1
- package/web/app/immutable/chunks/{gWn9PDXZ.js → DpHn84BV.js} +1 -1
- package/web/app/immutable/chunks/{Cg1tTx8i.js → DpMOdl0E.js} +1 -1
- package/web/app/immutable/chunks/{Bz8C2v0s.js → DpyfxjgC.js} +1 -1
- package/web/app/immutable/chunks/{ko5zX9YA.js → Dqdvt4Zr.js} +1 -1
- package/web/app/immutable/chunks/{CKt7lvPP.js → DrIA1Azf.js} +1 -1
- package/web/app/immutable/chunks/{BX43DT22.js → DrxfcnSy.js} +1 -1
- package/web/app/immutable/chunks/{CE095mBY.js → DsGUBv3k.js} +1 -1
- package/web/app/immutable/chunks/{DtqWU30y.js → Dsr4GELp.js} +1 -1
- package/web/app/immutable/chunks/DtF9DVpp.js +1 -0
- package/web/app/immutable/chunks/{BkliVAqJ.js → DvSURWC2.js} +4 -4
- package/web/app/immutable/chunks/{Gi8kzv-V.js → DvUGkiYP.js} +1 -1
- package/web/app/immutable/chunks/{CLiKsUcS.js → DvYUfzNR.js} +1 -1
- package/web/app/immutable/chunks/{BIon5kwa.js → Dw8wIAFi.js} +1 -1
- package/web/app/immutable/chunks/{D4XZeMXl.js → DwL1A1su.js} +1 -1
- package/web/app/immutable/chunks/{B-4Cm2na.js → DzWZGIya.js} +1 -1
- package/web/app/immutable/chunks/{D81Tox6K.js → EK6zOAHM.js} +1 -1
- package/web/app/immutable/chunks/{CESUeVmp.js → FzlZUztb.js} +1 -1
- package/web/app/immutable/chunks/{rdao0YQj.js → IQ13JH5A.js} +1 -1
- package/web/app/immutable/chunks/{DgW5R9bn.js → J8_M56d9.js} +1 -1
- package/web/app/immutable/chunks/{y7Ugu8WS.js → KHteWVFN.js} +1 -1
- package/web/app/immutable/chunks/{CxRJqvXa.js → KYuLFpkq.js} +1 -1
- package/web/app/immutable/chunks/{5DxHNwZe.js → L4HdMFBq.js} +1 -1
- package/web/app/immutable/chunks/{c5MBfH9F.js → L7j-Q29w.js} +1 -1
- package/web/app/immutable/chunks/{DvQWx7ZN.js → L_tYoUCb.js} +1 -1
- package/web/app/immutable/chunks/{BFqSYY_K.js → M5Dwuu-X.js} +1 -1
- package/web/app/immutable/chunks/{BNrkXLIB.js → No1eCFy3.js} +1 -1
- package/web/app/immutable/chunks/{DEelt7b0.js → OFhgRaUm.js} +1 -1
- package/web/app/immutable/chunks/{Q7XiOE5T.js → OtomGvb3.js} +1 -1
- package/web/app/immutable/chunks/{DIQ23RZn.js → PIgqsYsQ.js} +1 -1
- package/web/app/immutable/chunks/{CV9F7g3O.js → PO_5m99x.js} +1 -1
- package/web/app/immutable/chunks/{BCx2RJGr.js → QeBH-DWE.js} +1 -1
- package/web/app/immutable/chunks/{D7kKwL53.js → RFsxwSsB.js} +1 -1
- package/web/app/immutable/chunks/{Be5foFms.js → S845NCb3.js} +1 -1
- package/web/app/immutable/chunks/{BzJwOhb5.js → S8ugWfAx.js} +1 -1
- package/web/app/immutable/chunks/{DQEQvBuM.js → U9jJmfYa.js} +1 -1
- package/web/app/immutable/chunks/{CfC-LCr9.js → U_OQY9n3.js} +1 -1
- package/web/app/immutable/chunks/{BR1_dE35.js → UhL0ohiG.js} +1 -1
- package/web/app/immutable/chunks/{DkPs4gWX.js → W2WLehNu.js} +1 -1
- package/web/app/immutable/chunks/{DYTNWFlt.js → XCWZeNYo.js} +1 -1
- package/web/app/immutable/chunks/{xAGiw113.js → Y5Ky10uA.js} +1 -1
- package/web/app/immutable/chunks/{Do1K3fjZ.js → _SYFiE9N.js} +1 -1
- package/web/app/immutable/chunks/{DdtN-mI9.js → a3TFelkn.js} +1 -1
- package/web/app/immutable/chunks/{Bxk8XeS_.js → baWz1QxB.js} +1 -1
- package/web/app/immutable/chunks/{Gpf-ce3t.js → bhKPSdq4.js} +1 -1
- package/web/app/immutable/chunks/{CcrFwPvM.js → c5QZsH9t.js} +1 -1
- package/web/app/immutable/chunks/{DYXQ0DvL.js → cebxNJuC.js} +4 -4
- package/web/app/immutable/chunks/{CYodIWBo.js → chjnSxvZ.js} +1 -1
- package/web/app/immutable/chunks/{DYltC5LY.js → duDdSCAT.js} +1 -1
- package/web/app/immutable/chunks/{Bfi3_8Hc.js → eElW3aeh.js} +1 -1
- package/web/app/immutable/chunks/{BdSrsYxv.js → eQVXRlbn.js} +1 -1
- package/web/app/immutable/chunks/{_Juvw-ie.js → eTsHzcIE.js} +3 -3
- package/web/app/immutable/chunks/{CNXu44c3.js → ebbVP0tp.js} +1 -1
- package/web/app/immutable/chunks/{0chz2rsS.js → f24VwgrA.js} +1 -1
- package/web/app/immutable/chunks/{BGozEqB2.js → fiz8N_zQ.js} +1 -1
- package/web/app/immutable/chunks/{Cr4NRN2o.js → hHMYoFyG.js} +1 -1
- package/web/app/immutable/chunks/{Ba-gJiCF.js → haN7a3Sc.js} +1 -1
- package/web/app/immutable/chunks/{J4xkCilS.js → hb4NYXGo.js} +1 -1
- package/web/app/immutable/chunks/{DsbDY3sD.js → jcl0zObl.js} +2 -2
- package/web/app/immutable/chunks/{Dxv5pbru.js → jn4zbMQy.js} +1 -1
- package/web/app/immutable/chunks/k0JmlCVk.js +2 -0
- package/web/app/immutable/chunks/{Cc08a9kX.js → kS6Z7jzP.js} +1 -1
- package/web/app/immutable/chunks/{D5CeMpEM.js → kjxbkPQZ.js} +1 -1
- package/web/app/immutable/chunks/{DwgOf6Jh.js → lJeex2Gh.js} +1 -1
- package/web/app/immutable/chunks/{BTQKLXYi.js → lVh2oAeQ.js} +1 -1
- package/web/app/immutable/chunks/{DVIpt_-b.js → lwlI9u_5.js} +1 -1
- package/web/app/immutable/chunks/{DQzjOLwV.js → nXfD7jHz.js} +2 -2
- package/web/app/immutable/chunks/{C5BT0KwE.js → ozVAo4aX.js} +1 -1
- package/web/app/immutable/chunks/{EfOpqeLT.js → p9X2tUBM.js} +1 -1
- package/web/app/immutable/chunks/{COWdAscC.js → pYQh_Bw_.js} +1 -1
- package/web/app/immutable/chunks/{CDGdQPZ3.js → puJFvQs5.js} +1 -1
- package/web/app/immutable/chunks/{DwlFFy2U.js → pwJelZzH.js} +1 -1
- package/web/app/immutable/chunks/{Bf8Z3F34.js → sdV4t8T0.js} +1 -1
- package/web/app/immutable/chunks/{VtSYBFwm.js → tZyAiGvb.js} +1 -1
- package/web/app/immutable/chunks/{9xo585Vy.js → tr-2J8Mf.js} +1 -1
- package/web/app/immutable/chunks/{DhKLQ_6L.js → ujhgjK1k.js} +1 -1
- package/web/app/immutable/chunks/{CCHulQ4M.js → v0ybYtGc.js} +1 -1
- package/web/app/immutable/chunks/{Cf9FKQ2t.js → viB2mzAd.js} +1 -1
- package/web/app/immutable/chunks/{CFhJzMqD.js → wIMcEpgB.js} +1 -1
- package/web/app/immutable/chunks/{BnV5imkg.js → wUSGg9l9.js} +1 -1
- package/web/app/immutable/chunks/{DQGxxGZP.js → wl2qP2wF.js} +1 -1
- package/web/app/immutable/chunks/{DZldOwzL.js → yFcbscNn.js} +1 -1
- package/web/app/immutable/entry/app.PfV9Bd5g.js +4 -0
- package/web/app/immutable/entry/start.kviRYMjm.js +1 -0
- package/web/app/immutable/nodes/{0.XjTeJo8S.js → 0.N3QFhxpx.js} +1 -1
- package/web/app/immutable/nodes/{1.WAn52SGO.js → 1.Cuki-Q-c.js} +1 -1
- package/web/app/immutable/nodes/{10.BCt95gGF.js → 10.CzZBTiyD.js} +5 -5
- package/web/app/immutable/nodes/{11.D9nZjMrf.js → 11.Cc53X5P2.js} +1 -1
- package/web/app/immutable/nodes/{12.J0j9wF8Z.js → 12.BpXDHhXi.js} +1 -1
- package/web/app/immutable/nodes/{13.BGHXM182.js → 13.CCKyw-_o.js} +1 -1
- package/web/app/immutable/nodes/{14.BpDGhzOE.js → 14.BD92xFv4.js} +3 -3
- package/web/app/immutable/nodes/{15.DTHSLR65.js → 15.D2GMHiSb.js} +1 -1
- package/web/app/immutable/nodes/{16.WKc2P4l3.js → 16.CVCm-nfj.js} +1 -1
- package/web/app/immutable/nodes/{17.f0RTyi1E.js → 17.CjKvJw8X.js} +1 -1
- package/web/app/immutable/nodes/{18.BCr1DqlF.js → 18.DDY8Eqsn.js} +1 -1
- package/web/app/immutable/nodes/{19.kyknfcua.js → 19.DvFJngD4.js} +2 -2
- package/web/app/immutable/nodes/{2.BhjQOmpc.js → 2.B94-26jU.js} +4 -4
- package/web/app/immutable/nodes/{20.DJSk2vW3.js → 20.CLsq1QLL.js} +1 -1
- package/web/app/immutable/nodes/{3.B5ONUR90.js → 3.D7lbuuWp.js} +1 -1
- package/web/app/immutable/nodes/{4.9E3WAn5x.js → 4.YSZzuDIT.js} +1 -1
- package/web/app/immutable/nodes/5.ymicNL_Y.js +1 -0
- package/web/app/immutable/nodes/{6.DC2CoHu2.js → 6.CtS0PFqR.js} +1 -1
- package/web/app/immutable/nodes/{7.ipL23qll.js → 7.BVAyauMB.js} +1 -1
- package/web/app/immutable/nodes/{8.H6jtZ1r2.js → 8.CHlBOO6u.js} +1 -1
- package/web/app/immutable/nodes/9.CNAqB0x1.js +14 -0
- package/web/app/immutable/workers/html-file-preview.worker-BfFljPK-.js +1 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +46 -46
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.MRSSdFvi.css +0 -1
- package/web/app/immutable/chunks/B8JLAqaa.js +0 -1
- package/web/app/immutable/chunks/BEwMx-58.js +0 -1
- package/web/app/immutable/chunks/ChxY4HYP.js +0 -1
- package/web/app/immutable/chunks/DRhX_2TI.js +0 -1
- package/web/app/immutable/chunks/DWOJ689M.js +0 -1
- package/web/app/immutable/chunks/LCTocMEs.js +0 -1
- package/web/app/immutable/chunks/LNBns0B-.js +0 -1
- package/web/app/immutable/chunks/RXLk0Kpm.js +0 -1
- package/web/app/immutable/chunks/_FHZ2hc1.js +0 -2
- package/web/app/immutable/chunks/lZXQR9AV.js +0 -1
- package/web/app/immutable/entry/app.C9XhrjLK.js +0 -4
- package/web/app/immutable/entry/start.CkQDADa5.js +0 -1
- package/web/app/immutable/nodes/5.51b5Mc5a.js +0 -1
- package/web/app/immutable/nodes/9.qiIDO-mm.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as xt}from"./
|
|
1
|
+
import{p as xt}from"./ChTVnFH2.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./cebxNJuC.js";import{p as Bt}from"./BFeEPayU.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
|
|
2
2
|
.cynefinDomain {
|
|
3
3
|
stroke: none;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bW as b,ds as _,dA as P,bQ as k,b2 as v}from"./
|
|
1
|
+
import{bW as b,ds as _,dA as P,bQ as k,b2 as v}from"./BaujsV9k.js";import{c as C}from"./ChTqQfQN.js";import{bm as m}from"./C0QTy0Sy.js";import{Jv as y}from"./tr-2J8Mf.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=C("PresetExecutor");async function H(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=v.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{H as applyContentPreset};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var F=Object.defineProperty;var $=(c,e,r)=>e in c?F(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r;var u=(c,e,r)=>$(c,typeof e!="symbol"?e+"":e,r);import{l as _}from"./ChTqQfQN.js";import{bm as b,_ as y}from"./BEwMx-58.js";import{Jv as k,CE as M}from"./9xo585Vy.js";import{h as O}from"./Bl3Cuor0.js";import{O as W}from"./CnT7X_Ka.js";import{cO as L}from"./CpxnRRai.js";import{v as x,b7 as U,be as j}from"./EfOpqeLT.js";import{a as z}from"./DhKLQ_6L.js";const D={USE_DEFAULT_CONTEXT:{id:"use-default-context",type:"command",get label(){return b.chat_mentions_useDefaultContext_label()},get description(){return b.chat_mentions_useDefaultContext_description()},icon:"🔄",uri:"devspace://command/use-default-context"},CLEAR_CONTEXT:{id:"clear-context",type:"command",get label(){return b.chat_mentions_clearContext_label()},get description(){return b.chat_mentions_clearContext_description()},icon:"🗑️",uri:"devspace://command/clear-context"}};function ke(c){return"items"in c||"subgroups"in c}function B(c){if(!c||typeof c!="object")return!1;const e=c;return!(typeof e.id!="string"||typeof e.label!="string"||typeof e.uri!="string"||typeof e.type!="string"||e.subtitle!==void 0&&typeof e.subtitle!="string"||e.description!==void 0&&typeof e.description!="string"||e.icon!==void 0&&typeof e.icon!="string"||e.score!==void 0&&typeof e.score!="number"||e.group!==void 0&&typeof e.group!="string")}function g(c,e){if(!c||!e)return null;const r=c.toLowerCase(),s=e.toLowerCase();let t=0;for(let a=0;a<s.length&&t<r.length;a++)s[a]===r[t]&&t++;if(t!==r.length)return null;const i=K(r,s);return i?{score:V(r,s,i),matches:i}:null}function K(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;for(let a=s;a<e.length;a++)if(e[a]===i){r.push(a),s=a+1,n=!0;break}if(!n)return null}return r}function V(c,e,r){let s=0;s+=1;let t=0;for(let l=1;l<r.length;l++)r[l]===r[l-1]+1&&(t+=.1);s+=t;let i=0;for(const l of r)(l===0||J(e,l))&&(i+=.15);s+=i,r[0]===0&&(s+=.2);const a=(r[r.length-1]-r[0])/e.length*.3;return s-=a,Math.min(s/2.5,1)}function J(c,e){if(e===0)return!0;const r=c[e],s=c[e-1];return r===r.toUpperCase()&&s===s.toLowerCase()||!/[a-z0-9]/i.test(s)}function G(c,e){if(!c||!e)return null;if(!c.includes("/"))return g(c,e);const r=c.split("/").filter(n=>n.length>0),s=e.split("/").filter(n=>n.length>0);if(r.length===0||s.length===0)return null;const t=H(r,s);return t?{score:X(r,s,t),matches:[]}:null}function H(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;const a=t===c.length-1;for(let o=s;o<e.length;o++){const l=e[o];if(g(i,l)){r.push(o),s=o+1,n=!0;break}if(a){const p=l.split(".")[0],m=l.includes(".")?l.split(".").pop():"";if(m&&g(i,m)){r.push(o),s=o+1,n=!0;break}if(p&&g(i,p)){r.push(o),s=o+1,n=!0;break}}}if(!n)return null}return r}function X(c,e,r){let s=0;s+=1,s+=r.length*.2;let t=0;for(let n=1;n<r.length;n++)r[n]===r[n-1]+1&&(t+=.15);s+=t,r.length>0&&r[r.length-1]===e.length-1&&(s+=.3);for(let n=0;n<c.length&&n<r.length;n++){const a=c[n],o=e[r[n]];a.toLowerCase()===o.toLowerCase()&&(s+=.2)}return Math.min(s/3,1)}function R(c,e,r){return JSON.stringify({query:c,workspaceId:r.workspaceId,repoPath:r.repoPath,currentFile:r.currentFile,currentNote:r.currentNote,providers:e.map(s=>[s.id,s.getCacheKey?.(r)])})}const N="*",Ce=["member","note","agent","file","folder","script","terminal",N,"specialist"];function Q(c,e){if(e.length===0)return[...c].sort((t,i)=>(i.score??0)-(t.score??0));const r=new Map(e.map((t,i)=>[t,i])),s=r.get(N)??e.length;return c.map(t=>({candidate:t,rank:r.get(t.type)??s})).sort((t,i)=>t.rank-i.rank||(i.candidate.score??0)-(t.candidate.score??0)).map(({candidate:t})=>t)}function Y(c,e){const r=new Map;return c.filter(s=>{const t=r.get(s.type)??0;return r.set(s.type,t+1),t<e})}class Ie{constructor(e={}){u(this,"searchDebounceTimer",null);u(this,"currentAbortController",null);u(this,"cache",new Map);u(this,"config");u(this,"isSearching",!1);this.config={debounceMs:e.debounceMs??100,maxResults:e.maxResults??50,cacheMaxAge:e.cacheMaxAge??3e4,enableSemantic:e.enableSemantic??!1,enableLivePreview:e.enableLivePreview??!0,enableCollaboration:e.enableCollaboration??!1,typeOrder:e.typeOrder??[],maxResultsPerKind:e.maxResultsPerKind??20}}async search(e,r,s){this.cancelPendingSearch();const t=R(e,r,s),i=this.cache.get(t);if(i&&!this.isCacheExpired(i))return _.debug("[SearchService] Returning cached results for:",e),i.results;const n=new AbortController;this.currentAbortController=n;const a=n.signal;return new Promise((o,l)=>{this.isSearching=!0;let p=!1;const m=()=>{a.removeEventListener("abort",v),this.currentAbortController===n&&(this.currentAbortController=null,this.searchDebounceTimer=null,this.isSearching=!1)},w=f=>{p||(p=!0,m(),o(f))},d=f=>{p||(p=!0,m(),l(f))},v=()=>d(new DOMException("Search cancelled","AbortError"));a.addEventListener("abort",v,{once:!0});const h=async()=>{try{if(a.aborted){d(new DOMException("Search cancelled","AbortError"));return}_.debug("[SearchService] Searching with providers:",r.map(C=>C.id));const f=R(e,r,s),P=await Promise.all(r.map(C=>this.searchWithProvider(C,e,s,a)));if(a.aborted)return;if(f!==R(e,r,s)){w([]);return}const S=this.combineResults(P.flat()).filter(C=>B(C)),E=this.applyFuzzyMatching(e,S),A=Q(E,this.config.typeOrder),T=this.config.typeOrder.length>0?Y(A,this.config.maxResultsPerKind):A.slice(0,this.config.maxResults);this.cache.set(f,{results:T,timestamp:Date.now()}),_.debug(`[SearchService] Found ${T.length} results`),w(T)}catch(f){a.aborted?d(new DOMException("Search cancelled","AbortError")):(_.error("[SearchService] Search error:",f),d(f instanceof Error?f:new Error(String(f))))}};e?this.searchDebounceTimer=setTimeout(h,this.config.debounceMs):h()})}async searchWithProvider(e,r,s,t){try{const i={...s,signal:t},n=await e.search(r,i),a=e.scoreRelevance?.bind(e);return a?n.map(o=>({...o,score:a(o,s)})):n}catch(i){return t.aborted||_.error(`[SearchService] Provider ${e.id} search failed:`,i),[]}}combineResults(e){const r=new Set,s=[];for(const t of e){const i=`${t.type}:${t.uri}`;r.has(i)||(r.add(i),s.push(t))}return s}applyFuzzyMatching(e,r){if(!e||e.length===0)return r;const t=r.map(i=>{let n=0;const a=i.meta?.path||i.meta?.fullPath||(i.subtitle?`${i.subtitle}/${i.label}`:i.label);if(a){const l=G(e,a);l&&(n=Math.max(n,l.score*1.8))}const o=g(e,i.label);if(o&&(n=Math.max(n,o.score*1.5)),i.subtitle){const l=g(e,i.subtitle);l&&(n=Math.max(n,l.score))}if(i.description){const l=g(e,i.description);l&&(n=Math.max(n,l.score*.5))}return{...i,score:n>0?n:i.score??0}}).filter(i=>i.score>0);return t.length>0?t:r}cancelPendingSearch(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=null),this.currentAbortController&&(this.currentAbortController.abort(),this.currentAbortController=null)}isCacheExpired(e){return Date.now()-e.timestamp>this.config.cacheMaxAge}clearCache(){this.cache.clear()}isLoading(){return this.isSearching}destroy(){this.cancelPendingSearch(),this.clearCache()}}class Z{constructor(){u(this,"id","file");u(this,"triggers",["@file","@f"]);u(this,"default",!0);u(this,"supportsRanges",!0);u(this,"supportsLivePreview",!0);u(this,"recentFiles",new Set);u(this,"fileIconMap",{ts:"📘",tsx:"⚛️",js:"📜",jsx:"⚛️",svelte:"🔥",vue:"💚",py:"🐍",rs:"🦀",go:"🐹",java:"☕",cpp:"⚙️",c:"⚙️",h:"📎",md:"📝",json:"📋",yaml:"📋",yml:"📋",toml:"📋",xml:"📋",html:"🌐",css:"🎨",scss:"🎨",sass:"🎨",less:"🎨",sql:"🗃️",sh:"🖥️",bash:"🖥️",zsh:"🖥️",fish:"🖥️",dockerfile:"🐳",docker:"🐳",gitignore:"🚫",env:"🔐",lock:"🔒",test:"🧪",spec:"🧪"})}async search(e,r){_.debug("[FileProvider] Searching for:",{query:e,context:{workspaceId:r.workspaceId}});const s=r.workspaceId;if(!s)return[];try{const t=await O("search.fileNames",{workspaceId:s,pattern:e||"",limit:10}),n=(Array.isArray(t?.files)?t.files:[]).map(a=>{const o=a.split("/").pop()||a,l=o.split(".").pop()||"";return{id:`file-${a}`,label:o,type:"file",uri:`file:${a}`,description:a,subtitle:a,score:.5,meta:{path:a,fullPath:a,relativePath:a,extension:l,language:this.getLanguageFromExtension(l)}}});return this.deduplicateAndDistinguish(n)}catch(t){return _.error("[FileProvider] Search failed:",t),[]}}async searchRecent(e,r){if(!r.recentFiles||r.recentFiles.length===0)return[];const s=await Promise.all(r.recentFiles.filter(t=>e?g(e,t)!==null:!0).slice(0,3).map(t=>{const i=t.split("/").pop()||t,n=i.split(".").pop()||"";return this.fileToCandidate({path:t,name:i,extension:n})}));return s.forEach(t=>{this.recentFiles.add(t.uri)}),s}async searchContextual(e,r){return r.currentFile?[]:[]}async fileToCandidate(e){const r=this.getFileIcon(e.extension),s=e.path,t=this.formatPath(s);return{id:`file-${e.path}`,type:"file",label:e.name,subtitle:t,description:s,icon:r,uri:`devspace://file/${encodeURIComponent(e.path)}`,meta:{path:s,fullPath:e.path,lastModified:e.lastModified,size:e.size,language:e.language||this.getLanguageFromExtension(e.extension)}}}combineResults(...e){const r=new Set,s=[];for(const t of e)for(const i of t)r.has(i.uri)||(r.add(i.uri),s.push(i));return this.deduplicateAndDistinguish(s)}deduplicateAndDistinguish(e){const r=new Map;for(const t of e){const i=t.label;let n=r.get(i);n||(n=[],r.set(i,n)),n.push(t)}const s=[];for(const[t,i]of r.entries())if(i.length===1)s.push(i[0]);else{const n=this.distinguishDuplicates(i);s.push(...n)}return s}distinguishDuplicates(e){const r=e.map(t=>t.description||t.meta?.path||"");return e.map((t,i)=>{const n=r[i],a=r.filter((p,m)=>m!==i),o=n.split("/");let l="";for(let p=o.length;p>0;p--){const m=o.slice(-p).join("/");if(!a.some(d=>d.split("/").slice(-p).join("/")===m)||p===1){l=m;break}}return{...t,subtitle:l}})}groupResults(e){const r={recent:[],relevant:[],other:[]};for(const t of e)this.recentFiles.has(t.uri)?r.recent.push(t):(t.score??0)>.7?r.relevant.push(t):r.other.push(t);const s=[];return r.recent.length>0&&s.push(...r.recent.slice(0,3).map(t=>({...t,group:b.chat_mentions_recentFiles_group()}))),r.relevant.length>0&&s.push(...r.relevant.slice(0,5).map(t=>({...t,group:b.chat_mentions_mostRelevant_group()}))),r.other.length>0&&s.push(...r.other.slice(0,10).map(t=>({...t,group:b.chat_mentions_otherFiles_group()}))),s}scoreRelevance(e,r){let s=.5;if(this.recentFiles.has(e.uri)&&(s+=.2),r.currentFile&&e.meta?.path){const t=r.currentFile.substring(0,r.currentFile.lastIndexOf("/")),i=e.meta.path.substring(0,e.meta.path.lastIndexOf("/"));t===i&&(s+=.15)}return r.imports?.includes(e.meta?.path||"")&&(s+=.25),r.currentFile?.includes(".test.")&&e.meta?.path?.includes(".test.")&&(s+=.1),Math.min(s,1)}getGroups(){return[{id:"files-recent",label:b.chat_mentions_recentFiles_group(),icon:"🕐"},{id:"files-all",label:b.chat_mentions_allFiles_group(),icon:"📁"},{id:"files-tests",label:b.chat_mentions_testFiles_group(),icon:"🧪"}]}getFileIcon(e){return this.fileIconMap[e.toLowerCase()]||"📄"}formatPath(e){if(e.length>40){const r=e.split("/");if(r.length>2)return`.../${r.slice(-2).join("/")}`}return e}getLanguageFromExtension(e){return{ts:"typescript",tsx:"typescriptreact",js:"javascript",jsx:"javascriptreact",py:"python",rs:"rust",go:"go",java:"java",cpp:"cpp",c:"c",svelte:"svelte",vue:"vue",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",html:"html",css:"css",scss:"scss",sql:"sql",sh:"shellscript"}[e.toLowerCase()]||"plaintext"}}class q{constructor(){u(this,"id","member")}getCacheKey(e){const r=k.state;return JSON.stringify({backendId:W.select(r),ownPrincipalId:r.presence.ownPrincipalId,members:e.workspaceId?L.select(r,e.workspaceId):[]})}async search(e,r){const{workspaceId:s}=r;if(!s)return[];const t=e.replace(/^@/,"").toLowerCase();return L.select(k.state,s).filter(i=>i.login.toLowerCase().includes(t)).map(i=>({id:`member-${i.principalId}`,type:"member",label:i.login,subtitle:i.identity?`${i.identity.provider==="github"?"GitHub":"GitLab"} · ${i.identity.host}`:void 0,description:i.displayName??void 0,icon:"👤",uri:`devspace://member/${encodeURIComponent(i.principalId)}?workspaceId=${encodeURIComponent(s)}`,score:.8,meta:{workspaceId:s,principalId:i.principalId,identity:i.identity,avatarUrl:i.avatarUrl??void 0}}))}}class ee{constructor(){u(this,"id","folder");u(this,"triggers",["@folder","@dir"])}async search(e,r){const s=r.workspaceId;if(!s)return[];try{const{backendRequest:t}=await y(async()=>{const{backendRequest:o}=await import("./Bl3Cuor0.js").then(l=>l.j);return{backendRequest:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),i=await t("search.fileNames",{workspaceId:s,pattern:e||"",limit:200}),n=Array.isArray(i?.files)?i.files:[],a=new Set;for(const o of n){const l=o.split("/");for(let p=1;p<l.length;p++)a.add(l.slice(0,p).join("/"))}return[...a].filter(o=>e?g(e,o.split("/").pop()||o)!==null:!0).slice(0,10).map(o=>({id:`folder-${o}`,type:"folder",label:o.split("/").pop()||o,description:o,icon:"📁",uri:`devspace://folder/${encodeURIComponent(o)}`,meta:{path:o,fullPath:o,relativePath:o}}))}catch(t){return _.debug("[FolderProvider] Failed to get folders:",t),[]}}}const te=10,re=.3;function se(c){const e=c.toLowerCase().split(/\s+/).filter(Boolean);return(r,s)=>{const t=r?g(c,r):null;if(t)return 1+t.score;if(s){const i=s.toLowerCase();if(e.every(n=>i.includes(n)))return re}return 0}}class ie{constructor(){u(this,"id","note");u(this,"triggers",["@note","@n"]);u(this,"supportsRanges",!0);u(this,"cachedNotes",[]);u(this,"lastCacheUpdate",0);u(this,"cacheTimeout",5e3)}async getSiblingWorkspaces(e){if(!e)return[];try{const[{store:r},{selectWorkspaceItems:s}]=await Promise.all([y(()=>import("./CHDBPeiu.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./DQdDAxOz.js").then(n=>n.ee),__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url)]),t=s.select(r.state),i=t.find(n=>n.id===e);return!i||!i.repositoryPath?[]:t.filter(n=>n.id!==e&&n.repositoryPath===i.repositoryPath)}catch(r){return _.debug("[NoteProvider] Failed to get sibling workspaces:",r),[]}}async fetchNotesFromWorkspace(e,r){try{const[{store:s},{listSlimNotesRequested:t}]=await Promise.all([y(()=>import("./CHDBPeiu.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./9xo585Vy.js").then(n=>n.MD),__vite__mapDeps([12,13,2,14,15,4,8,1,16,6,3]),import.meta.url)]);return(await s.dispatch(t(e))).map(n=>({note:n,workspaceId:e,workspaceTitle:r}))}catch(s){_.debug(`[NoteProvider] Failed to fetch notes from workspace ${e}:`,s)}return[]}async search(e,r){if(!r.workspaceId)return[];const s=e.trim(),t=s?se(s):null;try{const i=await this.fetchNotesFromWorkspace(r.workspaceId),a=(await this.getSiblingWorkspaces(r.workspaceId)).map(d=>this.fetchNotesFromWorkspace(d.id,d.title)),l=(await Promise.all(a)).flat(),p=[...i,...l],w=(t?p.map(d=>({entry:d,score:t(d.note.title,d.note.content||d.note.contentPreview)})).filter(({score:d})=>d>0).sort((d,v)=>v.score-d.score):p.map(d=>({entry:d,score:void 0}))).slice(0,te).map(({entry:{note:d,workspaceId:v,workspaceTitle:h},score:f})=>{const P=v===r.workspaceId,I=P?void 0:b.chat_mentions_fromWorkspace_subtitle({workspace:h||v}),S=d.content||d.contentPreview;return{candidate:{id:d.id,type:"note",label:d.title||d.id||b.chat_mentions_untitledNote_label(),subtitle:I,description:S?`${S.substring(0,100)}...`:"",icon:"📝",uri:`devspace://note/${d.id}`,meta:{preview:S?.substring(0,200)||"",workspaceId:v,...P?{}:{isExternalLink:!0}}},score:f}});if(this.cachedNotes=w.map(({candidate:d})=>d),this.lastCacheUpdate=Date.now(),w.length>0)return w.map(({candidate:d,score:v})=>v!==void 0?{...d,score:v}:d)}catch(i){_.debug("[NoteProvider] Failed to fetch notes:",i)}return this.cachedNotes.length>0?t?this.cachedNotes.map(i=>({...i,score:t(i.label,i.meta?.preview)})).filter(i=>i.score>0).sort((i,n)=>n.score-i.score):this.cachedNotes:[]}getCachedNotes(){return Date.now()-this.lastCacheUpdate>this.cacheTimeout?[]:this.cachedNotes}}class ne{constructor(){u(this,"id","external");u(this,"triggers",["@docs","@external"])}async search(e,r){return[{id:"react-docs",label:"React Documentation",url:"https://react.dev",description:"Official React documentation"},{id:"mdn",label:"MDN Web Docs",url:"https://developer.mozilla.org",description:"Web technology documentation"},{id:"typescript",label:"TypeScript Handbook",url:"https://www.typescriptlang.org/docs/",description:"TypeScript documentation"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`external-${t.id}`,type:"external-source",label:t.label,description:t.description,icon:"📚",uri:`devspace://external/${t.id}`,meta:{url:t.url}}))}}class oe{constructor(){u(this,"id","rule");u(this,"triggers",["@rule","@intent"])}async search(e,r){return[{path:".intent/rules/cli.md",label:"CLI Rules"},{path:".intent/rules/frontend.md",label:"Frontend Rules"},{path:".intent/rules/python.md",label:"Python Rules"},{path:".intent/rules/sidecar.md",label:"Sidecar Rules"},{path:".intent/rules/systems.md",label:"Systems Rules"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:t.path,type:"rule",label:t.label,subtitle:t.path,icon:"📚",uri:`devspace://rule/${encodeURIComponent(t.path)}`,meta:{path:t.path}}))}}class ae{constructor(){u(this,"id","task");u(this,"triggers",["@task","@todo"])}async search(e,r){return[{id:"task-1",label:"Implement authentication",status:"in_progress",assignee:"John Doe"},{id:"task-2",label:"Write tests",status:"not_started",assignee:"Jane Smith"},{id:"task-3",label:"Deploy to production",status:"completed",assignee:"Bob Johnson"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`task-${t.id}`,type:"task",label:t.label,subtitle:`${t.status} • ${t.assignee}`,icon:"📋",uri:`devspace://task/${t.id}`,meta:{taskStatus:t.status,assignee:t.assignee}}))}}class ce{constructor(){u(this,"id","personality");u(this,"triggers",["@personality","@persona"]);u(this,"personalities",[{id:"auggie-personality-agent-default",name:"Agent Auggie",description:"Default helpful AI assistant",icon:"🤖",temperature:.7,model:"default",promptToken:"auggie-personality-agent-default"},{id:"auggie-personality-prototyper",name:"Prototyper Auggie",description:"Specialized in rapid prototyping",icon:"⚡",temperature:.7,model:"default",promptToken:"auggie-personality-prototyper"},{id:"auggie-personality-brainstorm",name:"Brainstorm Auggie",description:"Creative ideation and exploration",icon:"💡",temperature:.7,model:"default",promptToken:"auggie-personality-brainstorm"},{id:"auggie-personality-reviewer",name:"Reviewer Auggie",description:"Code review and feedback",icon:"🔍",temperature:.7,model:"default",promptToken:"auggie-personality-reviewer"}])}async search(e,r){return this.personalities.filter(s=>!e||g(e,s.name)!==null).map(s=>({id:s.id,type:"personality",label:s.name,subtitle:`${s.model}`,description:s.description,icon:s.icon,uri:`devspace://personality/${s.id}`,meta:{promptToken:s.promptToken}}))}}class le{constructor(){u(this,"id","command");u(this,"triggers",["@cmd","@command"])}async search(e,r){return[D.USE_DEFAULT_CONTEXT,D.CLEAR_CONTEXT].filter(t=>!e||t.label.toLowerCase().includes(e.toLowerCase()))}}class ue{constructor(){u(this,"id","terminal");u(this,"triggers",["@terminal","@term"])}async search(e,r){try{const{terminalManager:s}=await y(async()=>{const{terminalManager:h}=await import("./zOXOu59X.js").then(f=>f.b);return{terminalManager:h}},__vite__mapDeps([27,2,1,28,29,3,4,30,31,12,13,14,15,8,16,6,0,5,7,9,10,32,24,33,34,35,36,37,38,39,40,25,41,42]),import.meta.url),{selectTerminals:t,selectTerminalDisplayName:i}=await y(async()=>{const{selectTerminals:h,selectTerminalDisplayName:f}=await import("./DIQ23RZn.js").then(P=>P.i);return{selectTerminals:h,selectTerminalDisplayName:f}},__vite__mapDeps([41,12,13,2,14,15,4,8,1,16,6,3]),import.meta.url),a=k.state;if(!r.workspaceId)return[];const o=t.select(a,r.workspaceId),l=s.loadTerminalMetadata(r.workspaceId),p=new Set,m=[];for(const h of o)p.add(h.id),m.push({id:h.id,name:i.select(a,r.workspaceId,h.id)});for(const h of l)p.has(h.terminalId)||(p.add(h.terminalId),m.push({id:h.terminalId,name:h.title||b.terminal_quakeOverlay_terminal_fallback()}));if(m.length===0)return[];const d=e?["terminal","term"].some(h=>h.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(h)):!1;return(e&&!d?m.filter(h=>g(e,h.name)!==null):m).slice(0,10).map((h,f)=>({id:h.id,type:"terminal",label:h.name,subtitle:b.chat_mentions_terminalIndex_subtitle({index:f+1}),description:b.chat_mentions_terminalOutput_description(),icon:"💻",uri:`devspace://terminal/${encodeURIComponent(h.id)}`,meta:{workspaceId:r.workspaceId}}))}catch(s){return _.debug("[TerminalProvider] Failed to get terminals:",s),[]}}}class de{constructor(){u(this,"id","script");u(this,"triggers",["@script","@scripts"])}async search(e,r){try{const{selectScriptEntries:s}=await y(async()=>{const{selectScriptEntries:o}=await import("./Bt_5d6KS.js");return{selectScriptEntries:o}},__vite__mapDeps([43,12,13,2,14,15,4,8,1,16,6,3,44,45,22,7,9,46,47,23,0,5,10,21,48,26,49,50,20,51,52,53,54,19,24,25,55,29,28,56,57,58,59,33,60,61,31]),import.meta.url);if(!r.workspaceId)return[];const t=s.select(k.state,r.workspaceId);if(t.length===0)return[];const n=e?["script","scripts"].some(o=>o.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(o)):!1;return(e&&!n?t.filter(o=>g(e,o.name)!==null||g(e,M(o))!==null):t).slice(0,10).map(o=>{const l=o.runtime.status,p=x(l)?b.chat_mentions_scriptRunning_label():l==="exited"?b.chat_mentions_scriptExited_label():b.chat_mentions_scriptIdle_label();return{id:o.id,type:"script",label:o.name,subtitle:`${p} · ${M(o)}`,description:b.chat_mentions_scriptOutput_description(),icon:"▶️",uri:`devspace://script/${encodeURIComponent(o.id)}`,meta:{workspaceId:r.workspaceId,command:o.command,status:x(l)?"ok":l==="exited"?"warning":void 0}}})}catch(s){return _.debug("[ScriptProvider] Failed to get scripts:",s),[]}}}class pe{constructor(){u(this,"id","specialist");u(this,"triggers",["@specialist","@spec"])}async search(e,r){try{const s=j.select(k.state);return!s||s.length===0?[]:s.filter(t=>e?g(e,t.name)!==null||g(e,t.id)!==null||g(e,t.description)!==null||g(e,"specialist")!==null:!0).map(t=>({id:`specialist-${t.id}`,type:"specialist",label:t.name,subtitle:t.description,description:t.description,icon:"👤",uri:`devspace://specialist/${encodeURIComponent(t.id)}`,group:"Specialists",score:.8,meta:{promptToken:`specialist/${t.id}`}})).slice(0,10)}catch(s){return _.debug("[SpecialistProvider] Failed to get specialists:",s),[]}}}class he{constructor(){u(this,"id","agent");u(this,"triggers",["@agent"])}async search(e,r){try{const{selectAllWorkspaceAgents:s}=await y(async()=>{const{selectAllWorkspaceAgents:a}=await import("./DQdDAxOz.js").then(o=>o.eb);return{selectAllWorkspaceAgents:a}},__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url),t=r.workspaceId;if(!t)return[];const i=s.select(k.state,t);if(i.length===0)return[];const n=[];for(const a of i){const o=a.id,l=a.name||o,p=a.metadata?.specialist||"";let m=a.metadata?.specialistName||"";if(p&&!m){const f=U.select(k.state,p);f&&(m=f.name)}if(e){const f=g(e,l)!==null,P=g(e,"agent")!==null,I=m&&g(e,m)!==null,S=p&&g(e,p)!==null;if(!f&&!P&&!I&&!S)continue}const w=a.isStreaming?"responding":a.status||"active",d=[];m?d.push(m):d.push("Agent"),d.push(w);const v=a.messages?.length||0;v>0&&d.push(`${v} msg${v!==1?"s":""}`);const h=a.lastActivity||a.lastModified;h&&!a.isStreaming&&d.push(z(new Date(h))),n.push({id:o,type:"agent",label:l,subtitle:d.join(" · "),description:m?b.chat_mentions_specialistAgentInWorkspace_description({specialist:m}):b.chat_mentions_agentInWorkspace_description(),icon:"🤖",uri:`devspace://agent/${encodeURIComponent(o)}`,group:b.chat_mentions_agents_group(),score:.7,meta:{workspaceId:t}})}return n.slice(0,10)}catch(s){return _.debug("[AgentProvider] Failed to get agents:",s),[]}}}class me{constructor(){u(this,"providers",new Map);u(this,"defaultProviders",[]);this.register(new Z),this.register(new ee),this.register(new ie),this.register(new ne),this.register(new oe),this.register(new ae),this.register(new ce),this.register(new le),this.register(new ue),this.register(new de),this.register(new he),this.register(new pe),this.register(new q),this.defaultProviders=["file","folder","note","terminal","script","agent","specialist","member"]}register(e){this.providers.set(e.id,e),_.debug("[ProviderRegistry] Registered provider:",e.id)}unregister(e){this.providers.delete(e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getDefault(){return this.defaultProviders.map(e=>this.providers.get(e)).filter(Boolean)}getByTrigger(e){return Array.from(this.providers.values()).filter(r=>r.triggers?.includes(e))}async searchAll(e,r){const s=e.startsWith("@")?this.getByTrigger(e.split(" ")[0]):this.getDefault();return(await Promise.all(s.map(i=>i.search(e,r)))).flat()}}const Te=new me;export{Ie as D,Ce as M,Q as a,ke as i,Te as p,R as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CjTo2K46.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/6-uYidyP.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/C8y9EItt.js","/app/immutable/chunks/DXBEIeJu.js","/app/immutable/chunks/BX-0SVP7.js","/app/immutable/chunks/1WR8MecL.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/PIgqsYsQ.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/BAOaoX22.js","/app/immutable/chunks/p9X2tUBM.js","/app/immutable/chunks/BmTMWrby.js","/app/immutable/chunks/FzlZUztb.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/B4SiDSWP.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/COhRCR9P.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DKHY8q_S.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/DCK8dPAL.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F=Object.defineProperty;var $=(c,e,r)=>e in c?F(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r;var u=(c,e,r)=>$(c,typeof e!="symbol"?e+"":e,r);import{l as _}from"./ChTqQfQN.js";import{bm as b,_ as y}from"./C0QTy0Sy.js";import{Jv as k,CE as M}from"./tr-2J8Mf.js";import{h as O}from"./DCRuihKm.js";import{O as W}from"./DKHY8q_S.js";import{cO as L}from"./DVROSXw1.js";import{v as x,b7 as U,be as j}from"./p9X2tUBM.js";import{a as z}from"./ujhgjK1k.js";const D={USE_DEFAULT_CONTEXT:{id:"use-default-context",type:"command",get label(){return b.chat_mentions_useDefaultContext_label()},get description(){return b.chat_mentions_useDefaultContext_description()},icon:"🔄",uri:"devspace://command/use-default-context"},CLEAR_CONTEXT:{id:"clear-context",type:"command",get label(){return b.chat_mentions_clearContext_label()},get description(){return b.chat_mentions_clearContext_description()},icon:"🗑️",uri:"devspace://command/clear-context"}};function ke(c){return"items"in c||"subgroups"in c}function B(c){if(!c||typeof c!="object")return!1;const e=c;return!(typeof e.id!="string"||typeof e.label!="string"||typeof e.uri!="string"||typeof e.type!="string"||e.subtitle!==void 0&&typeof e.subtitle!="string"||e.description!==void 0&&typeof e.description!="string"||e.icon!==void 0&&typeof e.icon!="string"||e.score!==void 0&&typeof e.score!="number"||e.group!==void 0&&typeof e.group!="string")}function g(c,e){if(!c||!e)return null;const r=c.toLowerCase(),s=e.toLowerCase();let t=0;for(let a=0;a<s.length&&t<r.length;a++)s[a]===r[t]&&t++;if(t!==r.length)return null;const i=K(r,s);return i?{score:V(r,s,i),matches:i}:null}function K(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;for(let a=s;a<e.length;a++)if(e[a]===i){r.push(a),s=a+1,n=!0;break}if(!n)return null}return r}function V(c,e,r){let s=0;s+=1;let t=0;for(let l=1;l<r.length;l++)r[l]===r[l-1]+1&&(t+=.1);s+=t;let i=0;for(const l of r)(l===0||J(e,l))&&(i+=.15);s+=i,r[0]===0&&(s+=.2);const a=(r[r.length-1]-r[0])/e.length*.3;return s-=a,Math.min(s/2.5,1)}function J(c,e){if(e===0)return!0;const r=c[e],s=c[e-1];return r===r.toUpperCase()&&s===s.toLowerCase()||!/[a-z0-9]/i.test(s)}function G(c,e){if(!c||!e)return null;if(!c.includes("/"))return g(c,e);const r=c.split("/").filter(n=>n.length>0),s=e.split("/").filter(n=>n.length>0);if(r.length===0||s.length===0)return null;const t=H(r,s);return t?{score:X(r,s,t),matches:[]}:null}function H(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;const a=t===c.length-1;for(let o=s;o<e.length;o++){const l=e[o];if(g(i,l)){r.push(o),s=o+1,n=!0;break}if(a){const p=l.split(".")[0],m=l.includes(".")?l.split(".").pop():"";if(m&&g(i,m)){r.push(o),s=o+1,n=!0;break}if(p&&g(i,p)){r.push(o),s=o+1,n=!0;break}}}if(!n)return null}return r}function X(c,e,r){let s=0;s+=1,s+=r.length*.2;let t=0;for(let n=1;n<r.length;n++)r[n]===r[n-1]+1&&(t+=.15);s+=t,r.length>0&&r[r.length-1]===e.length-1&&(s+=.3);for(let n=0;n<c.length&&n<r.length;n++){const a=c[n],o=e[r[n]];a.toLowerCase()===o.toLowerCase()&&(s+=.2)}return Math.min(s/3,1)}function R(c,e,r){return JSON.stringify({query:c,workspaceId:r.workspaceId,repoPath:r.repoPath,currentFile:r.currentFile,currentNote:r.currentNote,providers:e.map(s=>[s.id,s.getCacheKey?.(r)])})}const N="*",Ce=["member","note","agent","file","folder","script","terminal",N,"specialist"];function Q(c,e){if(e.length===0)return[...c].sort((t,i)=>(i.score??0)-(t.score??0));const r=new Map(e.map((t,i)=>[t,i])),s=r.get(N)??e.length;return c.map(t=>({candidate:t,rank:r.get(t.type)??s})).sort((t,i)=>t.rank-i.rank||(i.candidate.score??0)-(t.candidate.score??0)).map(({candidate:t})=>t)}function Y(c,e){const r=new Map;return c.filter(s=>{const t=r.get(s.type)??0;return r.set(s.type,t+1),t<e})}class Ie{constructor(e={}){u(this,"searchDebounceTimer",null);u(this,"currentAbortController",null);u(this,"cache",new Map);u(this,"config");u(this,"isSearching",!1);this.config={debounceMs:e.debounceMs??100,maxResults:e.maxResults??50,cacheMaxAge:e.cacheMaxAge??3e4,enableSemantic:e.enableSemantic??!1,enableLivePreview:e.enableLivePreview??!0,enableCollaboration:e.enableCollaboration??!1,typeOrder:e.typeOrder??[],maxResultsPerKind:e.maxResultsPerKind??20}}async search(e,r,s){this.cancelPendingSearch();const t=R(e,r,s),i=this.cache.get(t);if(i&&!this.isCacheExpired(i))return _.debug("[SearchService] Returning cached results for:",e),i.results;const n=new AbortController;this.currentAbortController=n;const a=n.signal;return new Promise((o,l)=>{this.isSearching=!0;let p=!1;const m=()=>{a.removeEventListener("abort",v),this.currentAbortController===n&&(this.currentAbortController=null,this.searchDebounceTimer=null,this.isSearching=!1)},w=f=>{p||(p=!0,m(),o(f))},d=f=>{p||(p=!0,m(),l(f))},v=()=>d(new DOMException("Search cancelled","AbortError"));a.addEventListener("abort",v,{once:!0});const h=async()=>{try{if(a.aborted){d(new DOMException("Search cancelled","AbortError"));return}_.debug("[SearchService] Searching with providers:",r.map(C=>C.id));const f=R(e,r,s),P=await Promise.all(r.map(C=>this.searchWithProvider(C,e,s,a)));if(a.aborted)return;if(f!==R(e,r,s)){w([]);return}const S=this.combineResults(P.flat()).filter(C=>B(C)),E=this.applyFuzzyMatching(e,S),A=Q(E,this.config.typeOrder),T=this.config.typeOrder.length>0?Y(A,this.config.maxResultsPerKind):A.slice(0,this.config.maxResults);this.cache.set(f,{results:T,timestamp:Date.now()}),_.debug(`[SearchService] Found ${T.length} results`),w(T)}catch(f){a.aborted?d(new DOMException("Search cancelled","AbortError")):(_.error("[SearchService] Search error:",f),d(f instanceof Error?f:new Error(String(f))))}};e?this.searchDebounceTimer=setTimeout(h,this.config.debounceMs):h()})}async searchWithProvider(e,r,s,t){try{const i={...s,signal:t},n=await e.search(r,i),a=e.scoreRelevance?.bind(e);return a?n.map(o=>({...o,score:a(o,s)})):n}catch(i){return t.aborted||_.error(`[SearchService] Provider ${e.id} search failed:`,i),[]}}combineResults(e){const r=new Set,s=[];for(const t of e){const i=`${t.type}:${t.uri}`;r.has(i)||(r.add(i),s.push(t))}return s}applyFuzzyMatching(e,r){if(!e||e.length===0)return r;const t=r.map(i=>{let n=0;const a=i.meta?.path||i.meta?.fullPath||(i.subtitle?`${i.subtitle}/${i.label}`:i.label);if(a){const l=G(e,a);l&&(n=Math.max(n,l.score*1.8))}const o=g(e,i.label);if(o&&(n=Math.max(n,o.score*1.5)),i.subtitle){const l=g(e,i.subtitle);l&&(n=Math.max(n,l.score))}if(i.description){const l=g(e,i.description);l&&(n=Math.max(n,l.score*.5))}return{...i,score:n>0?n:i.score??0}}).filter(i=>i.score>0);return t.length>0?t:r}cancelPendingSearch(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=null),this.currentAbortController&&(this.currentAbortController.abort(),this.currentAbortController=null)}isCacheExpired(e){return Date.now()-e.timestamp>this.config.cacheMaxAge}clearCache(){this.cache.clear()}isLoading(){return this.isSearching}destroy(){this.cancelPendingSearch(),this.clearCache()}}class Z{constructor(){u(this,"id","file");u(this,"triggers",["@file","@f"]);u(this,"default",!0);u(this,"supportsRanges",!0);u(this,"supportsLivePreview",!0);u(this,"recentFiles",new Set);u(this,"fileIconMap",{ts:"📘",tsx:"⚛️",js:"📜",jsx:"⚛️",svelte:"🔥",vue:"💚",py:"🐍",rs:"🦀",go:"🐹",java:"☕",cpp:"⚙️",c:"⚙️",h:"📎",md:"📝",json:"📋",yaml:"📋",yml:"📋",toml:"📋",xml:"📋",html:"🌐",css:"🎨",scss:"🎨",sass:"🎨",less:"🎨",sql:"🗃️",sh:"🖥️",bash:"🖥️",zsh:"🖥️",fish:"🖥️",dockerfile:"🐳",docker:"🐳",gitignore:"🚫",env:"🔐",lock:"🔒",test:"🧪",spec:"🧪"})}async search(e,r){_.debug("[FileProvider] Searching for:",{query:e,context:{workspaceId:r.workspaceId}});const s=r.workspaceId;if(!s)return[];try{const t=await O("search.fileNames",{workspaceId:s,pattern:e||"",limit:10}),n=(Array.isArray(t?.files)?t.files:[]).map(a=>{const o=a.split("/").pop()||a,l=o.split(".").pop()||"";return{id:`file-${a}`,label:o,type:"file",uri:`file:${a}`,description:a,subtitle:a,score:.5,meta:{path:a,fullPath:a,relativePath:a,extension:l,language:this.getLanguageFromExtension(l)}}});return this.deduplicateAndDistinguish(n)}catch(t){return _.error("[FileProvider] Search failed:",t),[]}}async searchRecent(e,r){if(!r.recentFiles||r.recentFiles.length===0)return[];const s=await Promise.all(r.recentFiles.filter(t=>e?g(e,t)!==null:!0).slice(0,3).map(t=>{const i=t.split("/").pop()||t,n=i.split(".").pop()||"";return this.fileToCandidate({path:t,name:i,extension:n})}));return s.forEach(t=>{this.recentFiles.add(t.uri)}),s}async searchContextual(e,r){return r.currentFile?[]:[]}async fileToCandidate(e){const r=this.getFileIcon(e.extension),s=e.path,t=this.formatPath(s);return{id:`file-${e.path}`,type:"file",label:e.name,subtitle:t,description:s,icon:r,uri:`devspace://file/${encodeURIComponent(e.path)}`,meta:{path:s,fullPath:e.path,lastModified:e.lastModified,size:e.size,language:e.language||this.getLanguageFromExtension(e.extension)}}}combineResults(...e){const r=new Set,s=[];for(const t of e)for(const i of t)r.has(i.uri)||(r.add(i.uri),s.push(i));return this.deduplicateAndDistinguish(s)}deduplicateAndDistinguish(e){const r=new Map;for(const t of e){const i=t.label;let n=r.get(i);n||(n=[],r.set(i,n)),n.push(t)}const s=[];for(const[t,i]of r.entries())if(i.length===1)s.push(i[0]);else{const n=this.distinguishDuplicates(i);s.push(...n)}return s}distinguishDuplicates(e){const r=e.map(t=>t.description||t.meta?.path||"");return e.map((t,i)=>{const n=r[i],a=r.filter((p,m)=>m!==i),o=n.split("/");let l="";for(let p=o.length;p>0;p--){const m=o.slice(-p).join("/");if(!a.some(d=>d.split("/").slice(-p).join("/")===m)||p===1){l=m;break}}return{...t,subtitle:l}})}groupResults(e){const r={recent:[],relevant:[],other:[]};for(const t of e)this.recentFiles.has(t.uri)?r.recent.push(t):(t.score??0)>.7?r.relevant.push(t):r.other.push(t);const s=[];return r.recent.length>0&&s.push(...r.recent.slice(0,3).map(t=>({...t,group:b.chat_mentions_recentFiles_group()}))),r.relevant.length>0&&s.push(...r.relevant.slice(0,5).map(t=>({...t,group:b.chat_mentions_mostRelevant_group()}))),r.other.length>0&&s.push(...r.other.slice(0,10).map(t=>({...t,group:b.chat_mentions_otherFiles_group()}))),s}scoreRelevance(e,r){let s=.5;if(this.recentFiles.has(e.uri)&&(s+=.2),r.currentFile&&e.meta?.path){const t=r.currentFile.substring(0,r.currentFile.lastIndexOf("/")),i=e.meta.path.substring(0,e.meta.path.lastIndexOf("/"));t===i&&(s+=.15)}return r.imports?.includes(e.meta?.path||"")&&(s+=.25),r.currentFile?.includes(".test.")&&e.meta?.path?.includes(".test.")&&(s+=.1),Math.min(s,1)}getGroups(){return[{id:"files-recent",label:b.chat_mentions_recentFiles_group(),icon:"🕐"},{id:"files-all",label:b.chat_mentions_allFiles_group(),icon:"📁"},{id:"files-tests",label:b.chat_mentions_testFiles_group(),icon:"🧪"}]}getFileIcon(e){return this.fileIconMap[e.toLowerCase()]||"📄"}formatPath(e){if(e.length>40){const r=e.split("/");if(r.length>2)return`.../${r.slice(-2).join("/")}`}return e}getLanguageFromExtension(e){return{ts:"typescript",tsx:"typescriptreact",js:"javascript",jsx:"javascriptreact",py:"python",rs:"rust",go:"go",java:"java",cpp:"cpp",c:"c",svelte:"svelte",vue:"vue",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",html:"html",css:"css",scss:"scss",sql:"sql",sh:"shellscript"}[e.toLowerCase()]||"plaintext"}}class q{constructor(){u(this,"id","member")}getCacheKey(e){const r=k.state;return JSON.stringify({backendId:W.select(r),ownPrincipalId:r.presence.ownPrincipalId,members:e.workspaceId?L.select(r,e.workspaceId):[]})}async search(e,r){const{workspaceId:s}=r;if(!s)return[];const t=e.replace(/^@/,"").toLowerCase();return L.select(k.state,s).filter(i=>i.login.toLowerCase().includes(t)).map(i=>({id:`member-${i.principalId}`,type:"member",label:i.login,subtitle:i.identity?`${i.identity.provider==="github"?"GitHub":"GitLab"} · ${i.identity.host}`:void 0,description:i.displayName??void 0,icon:"👤",uri:`devspace://member/${encodeURIComponent(i.principalId)}?workspaceId=${encodeURIComponent(s)}`,score:.8,meta:{workspaceId:s,principalId:i.principalId,identity:i.identity,avatarUrl:i.avatarUrl??void 0}}))}}class ee{constructor(){u(this,"id","folder");u(this,"triggers",["@folder","@dir"])}async search(e,r){const s=r.workspaceId;if(!s)return[];try{const{backendRequest:t}=await y(async()=>{const{backendRequest:o}=await import("./DCRuihKm.js").then(l=>l.j);return{backendRequest:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),i=await t("search.fileNames",{workspaceId:s,pattern:e||"",limit:200}),n=Array.isArray(i?.files)?i.files:[],a=new Set;for(const o of n){const l=o.split("/");for(let p=1;p<l.length;p++)a.add(l.slice(0,p).join("/"))}return[...a].filter(o=>e?g(e,o.split("/").pop()||o)!==null:!0).slice(0,10).map(o=>({id:`folder-${o}`,type:"folder",label:o.split("/").pop()||o,description:o,icon:"📁",uri:`devspace://folder/${encodeURIComponent(o)}`,meta:{path:o,fullPath:o,relativePath:o}}))}catch(t){return _.debug("[FolderProvider] Failed to get folders:",t),[]}}}const te=10,re=.3;function se(c){const e=c.toLowerCase().split(/\s+/).filter(Boolean);return(r,s)=>{const t=r?g(c,r):null;if(t)return 1+t.score;if(s){const i=s.toLowerCase();if(e.every(n=>i.includes(n)))return re}return 0}}class ie{constructor(){u(this,"id","note");u(this,"triggers",["@note","@n"]);u(this,"supportsRanges",!0);u(this,"cachedNotes",[]);u(this,"lastCacheUpdate",0);u(this,"cacheTimeout",5e3)}async getSiblingWorkspaces(e){if(!e)return[];try{const[{store:r},{selectWorkspaceItems:s}]=await Promise.all([y(()=>import("./CjTo2K46.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./BaujsV9k.js").then(n=>n.ee),__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url)]),t=s.select(r.state),i=t.find(n=>n.id===e);return!i||!i.repositoryPath?[]:t.filter(n=>n.id!==e&&n.repositoryPath===i.repositoryPath)}catch(r){return _.debug("[NoteProvider] Failed to get sibling workspaces:",r),[]}}async fetchNotesFromWorkspace(e,r){try{const[{store:s},{listSlimNotesRequested:t}]=await Promise.all([y(()=>import("./CjTo2K46.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./tr-2J8Mf.js").then(n=>n.MD),__vite__mapDeps([12,13,2,14,15,4,8,1,16,6,3]),import.meta.url)]);return(await s.dispatch(t(e))).map(n=>({note:n,workspaceId:e,workspaceTitle:r}))}catch(s){_.debug(`[NoteProvider] Failed to fetch notes from workspace ${e}:`,s)}return[]}async search(e,r){if(!r.workspaceId)return[];const s=e.trim(),t=s?se(s):null;try{const i=await this.fetchNotesFromWorkspace(r.workspaceId),a=(await this.getSiblingWorkspaces(r.workspaceId)).map(d=>this.fetchNotesFromWorkspace(d.id,d.title)),l=(await Promise.all(a)).flat(),p=[...i,...l],w=(t?p.map(d=>({entry:d,score:t(d.note.title,d.note.content||d.note.contentPreview)})).filter(({score:d})=>d>0).sort((d,v)=>v.score-d.score):p.map(d=>({entry:d,score:void 0}))).slice(0,te).map(({entry:{note:d,workspaceId:v,workspaceTitle:h},score:f})=>{const P=v===r.workspaceId,I=P?void 0:b.chat_mentions_fromWorkspace_subtitle({workspace:h||v}),S=d.content||d.contentPreview;return{candidate:{id:d.id,type:"note",label:d.title||d.id||b.chat_mentions_untitledNote_label(),subtitle:I,description:S?`${S.substring(0,100)}...`:"",icon:"📝",uri:`devspace://note/${d.id}`,meta:{preview:S?.substring(0,200)||"",workspaceId:v,...P?{}:{isExternalLink:!0}}},score:f}});if(this.cachedNotes=w.map(({candidate:d})=>d),this.lastCacheUpdate=Date.now(),w.length>0)return w.map(({candidate:d,score:v})=>v!==void 0?{...d,score:v}:d)}catch(i){_.debug("[NoteProvider] Failed to fetch notes:",i)}return this.cachedNotes.length>0?t?this.cachedNotes.map(i=>({...i,score:t(i.label,i.meta?.preview)})).filter(i=>i.score>0).sort((i,n)=>n.score-i.score):this.cachedNotes:[]}getCachedNotes(){return Date.now()-this.lastCacheUpdate>this.cacheTimeout?[]:this.cachedNotes}}class ne{constructor(){u(this,"id","external");u(this,"triggers",["@docs","@external"])}async search(e,r){return[{id:"react-docs",label:"React Documentation",url:"https://react.dev",description:"Official React documentation"},{id:"mdn",label:"MDN Web Docs",url:"https://developer.mozilla.org",description:"Web technology documentation"},{id:"typescript",label:"TypeScript Handbook",url:"https://www.typescriptlang.org/docs/",description:"TypeScript documentation"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`external-${t.id}`,type:"external-source",label:t.label,description:t.description,icon:"📚",uri:`devspace://external/${t.id}`,meta:{url:t.url}}))}}class oe{constructor(){u(this,"id","rule");u(this,"triggers",["@rule","@intent"])}async search(e,r){return[{path:".intent/rules/cli.md",label:"CLI Rules"},{path:".intent/rules/frontend.md",label:"Frontend Rules"},{path:".intent/rules/python.md",label:"Python Rules"},{path:".intent/rules/sidecar.md",label:"Sidecar Rules"},{path:".intent/rules/systems.md",label:"Systems Rules"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:t.path,type:"rule",label:t.label,subtitle:t.path,icon:"📚",uri:`devspace://rule/${encodeURIComponent(t.path)}`,meta:{path:t.path}}))}}class ae{constructor(){u(this,"id","task");u(this,"triggers",["@task","@todo"])}async search(e,r){return[{id:"task-1",label:"Implement authentication",status:"in_progress",assignee:"John Doe"},{id:"task-2",label:"Write tests",status:"not_started",assignee:"Jane Smith"},{id:"task-3",label:"Deploy to production",status:"completed",assignee:"Bob Johnson"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`task-${t.id}`,type:"task",label:t.label,subtitle:`${t.status} • ${t.assignee}`,icon:"📋",uri:`devspace://task/${t.id}`,meta:{taskStatus:t.status,assignee:t.assignee}}))}}class ce{constructor(){u(this,"id","personality");u(this,"triggers",["@personality","@persona"]);u(this,"personalities",[{id:"auggie-personality-agent-default",name:"Agent Auggie",description:"Default helpful AI assistant",icon:"🤖",temperature:.7,model:"default",promptToken:"auggie-personality-agent-default"},{id:"auggie-personality-prototyper",name:"Prototyper Auggie",description:"Specialized in rapid prototyping",icon:"⚡",temperature:.7,model:"default",promptToken:"auggie-personality-prototyper"},{id:"auggie-personality-brainstorm",name:"Brainstorm Auggie",description:"Creative ideation and exploration",icon:"💡",temperature:.7,model:"default",promptToken:"auggie-personality-brainstorm"},{id:"auggie-personality-reviewer",name:"Reviewer Auggie",description:"Code review and feedback",icon:"🔍",temperature:.7,model:"default",promptToken:"auggie-personality-reviewer"}])}async search(e,r){return this.personalities.filter(s=>!e||g(e,s.name)!==null).map(s=>({id:s.id,type:"personality",label:s.name,subtitle:`${s.model}`,description:s.description,icon:s.icon,uri:`devspace://personality/${s.id}`,meta:{promptToken:s.promptToken}}))}}class le{constructor(){u(this,"id","command");u(this,"triggers",["@cmd","@command"])}async search(e,r){return[D.USE_DEFAULT_CONTEXT,D.CLEAR_CONTEXT].filter(t=>!e||t.label.toLowerCase().includes(e.toLowerCase()))}}class ue{constructor(){u(this,"id","terminal");u(this,"triggers",["@terminal","@term"])}async search(e,r){try{const{terminalManager:s}=await y(async()=>{const{terminalManager:h}=await import("./6-uYidyP.js").then(f=>f.b);return{terminalManager:h}},__vite__mapDeps([27,2,1,28,29,3,4,30,31,12,13,14,15,8,16,6,0,5,7,9,10,32,24,33,34,35,36,37,38,39,40,25,41,42]),import.meta.url),{selectTerminals:t,selectTerminalDisplayName:i}=await y(async()=>{const{selectTerminals:h,selectTerminalDisplayName:f}=await import("./PIgqsYsQ.js").then(P=>P.i);return{selectTerminals:h,selectTerminalDisplayName:f}},__vite__mapDeps([41,12,13,2,14,15,4,8,1,16,6,3]),import.meta.url),a=k.state;if(!r.workspaceId)return[];const o=t.select(a,r.workspaceId),l=s.loadTerminalMetadata(r.workspaceId),p=new Set,m=[];for(const h of o)p.add(h.id),m.push({id:h.id,name:i.select(a,r.workspaceId,h.id)});for(const h of l)p.has(h.terminalId)||(p.add(h.terminalId),m.push({id:h.terminalId,name:h.title||b.terminal_quakeOverlay_terminal_fallback()}));if(m.length===0)return[];const d=e?["terminal","term"].some(h=>h.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(h)):!1;return(e&&!d?m.filter(h=>g(e,h.name)!==null):m).slice(0,10).map((h,f)=>({id:h.id,type:"terminal",label:h.name,subtitle:b.chat_mentions_terminalIndex_subtitle({index:f+1}),description:b.chat_mentions_terminalOutput_description(),icon:"💻",uri:`devspace://terminal/${encodeURIComponent(h.id)}`,meta:{workspaceId:r.workspaceId}}))}catch(s){return _.debug("[TerminalProvider] Failed to get terminals:",s),[]}}}class de{constructor(){u(this,"id","script");u(this,"triggers",["@script","@scripts"])}async search(e,r){try{const{selectScriptEntries:s}=await y(async()=>{const{selectScriptEntries:o}=await import("./BAOaoX22.js");return{selectScriptEntries:o}},__vite__mapDeps([43,12,13,2,14,15,4,8,1,16,6,3,44,45,22,7,9,46,47,23,0,5,10,21,48,26,49,50,20,51,52,53,54,19,24,25,55,29,28,56,57,58,59,33,60,61,31]),import.meta.url);if(!r.workspaceId)return[];const t=s.select(k.state,r.workspaceId);if(t.length===0)return[];const n=e?["script","scripts"].some(o=>o.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(o)):!1;return(e&&!n?t.filter(o=>g(e,o.name)!==null||g(e,M(o))!==null):t).slice(0,10).map(o=>{const l=o.runtime.status,p=x(l)?b.chat_mentions_scriptRunning_label():l==="exited"?b.chat_mentions_scriptExited_label():b.chat_mentions_scriptIdle_label();return{id:o.id,type:"script",label:o.name,subtitle:`${p} · ${M(o)}`,description:b.chat_mentions_scriptOutput_description(),icon:"▶️",uri:`devspace://script/${encodeURIComponent(o.id)}`,meta:{workspaceId:r.workspaceId,command:o.command,status:x(l)?"ok":l==="exited"?"warning":void 0}}})}catch(s){return _.debug("[ScriptProvider] Failed to get scripts:",s),[]}}}class pe{constructor(){u(this,"id","specialist");u(this,"triggers",["@specialist","@spec"])}async search(e,r){try{const s=j.select(k.state);return!s||s.length===0?[]:s.filter(t=>e?g(e,t.name)!==null||g(e,t.id)!==null||g(e,t.description)!==null||g(e,"specialist")!==null:!0).map(t=>({id:`specialist-${t.id}`,type:"specialist",label:t.name,subtitle:t.description,description:t.description,icon:"👤",uri:`devspace://specialist/${encodeURIComponent(t.id)}`,group:"Specialists",score:.8,meta:{promptToken:`specialist/${t.id}`}})).slice(0,10)}catch(s){return _.debug("[SpecialistProvider] Failed to get specialists:",s),[]}}}class he{constructor(){u(this,"id","agent");u(this,"triggers",["@agent"])}async search(e,r){try{const{selectAllWorkspaceAgents:s}=await y(async()=>{const{selectAllWorkspaceAgents:a}=await import("./BaujsV9k.js").then(o=>o.eb);return{selectAllWorkspaceAgents:a}},__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,7,9,23,24,0,5,10,25,26]),import.meta.url),t=r.workspaceId;if(!t)return[];const i=s.select(k.state,t);if(i.length===0)return[];const n=[];for(const a of i){const o=a.id,l=a.name||o,p=a.metadata?.specialist||"";let m=a.metadata?.specialistName||"";if(p&&!m){const f=U.select(k.state,p);f&&(m=f.name)}if(e){const f=g(e,l)!==null,P=g(e,"agent")!==null,I=m&&g(e,m)!==null,S=p&&g(e,p)!==null;if(!f&&!P&&!I&&!S)continue}const w=a.isStreaming?"responding":a.status||"active",d=[];m?d.push(m):d.push("Agent"),d.push(w);const v=a.messages?.length||0;v>0&&d.push(`${v} msg${v!==1?"s":""}`);const h=a.lastActivity||a.lastModified;h&&!a.isStreaming&&d.push(z(new Date(h))),n.push({id:o,type:"agent",label:l,subtitle:d.join(" · "),description:m?b.chat_mentions_specialistAgentInWorkspace_description({specialist:m}):b.chat_mentions_agentInWorkspace_description(),icon:"🤖",uri:`devspace://agent/${encodeURIComponent(o)}`,group:b.chat_mentions_agents_group(),score:.7,meta:{workspaceId:t}})}return n.slice(0,10)}catch(s){return _.debug("[AgentProvider] Failed to get agents:",s),[]}}}class me{constructor(){u(this,"providers",new Map);u(this,"defaultProviders",[]);this.register(new Z),this.register(new ee),this.register(new ie),this.register(new ne),this.register(new oe),this.register(new ae),this.register(new ce),this.register(new le),this.register(new ue),this.register(new de),this.register(new he),this.register(new pe),this.register(new q),this.defaultProviders=["file","folder","note","terminal","script","agent","specialist","member"]}register(e){this.providers.set(e.id,e),_.debug("[ProviderRegistry] Registered provider:",e.id)}unregister(e){this.providers.delete(e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getDefault(){return this.defaultProviders.map(e=>this.providers.get(e)).filter(Boolean)}getByTrigger(e){return Array.from(this.providers.values()).filter(r=>r.triggers?.includes(e))}async searchAll(e,r){const s=e.startsWith("@")?this.getByTrigger(e.split(" ")[0]):this.getDefault();return(await Promise.all(s.map(i=>i.search(e,r)))).flat()}}const Te=new me;export{Ie as D,Ce as M,Q as a,ke as i,Te as p,R as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ft=Object.defineProperty;var Ze=s=>{throw TypeError(s)};var gt=(s,e,t)=>e in s?ft(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var R=(s,e,t)=>gt(s,typeof e!="symbol"?e+"":e,t),We=(s,e,t)=>e.has(s)||Ze("Cannot "+t);var u=(s,e,t)=>(We(s,e,"read from private field"),t?t.call(s):e.get(s)),F=(s,e,t)=>e.has(s)?Ze("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),X=(s,e,t,i)=>(We(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),K=(s,e,t)=>(We(s,e,"access private method"),t);import{t as xe,bo as r,bw as Ee,b as He,br as Z,bp as Ve}from"./BEwMx-58.js";import{c9 as x,aD as c,bH as Q,bV as oe,bo as nt,bs as Te,a7 as P,ay as y,W as d,bn as De,aA as n,a5 as he,bf as $,bA as de,aB as st,ca as vt}from"./3SdAC2_C.js";import{s as G}from"./LNBns0B-.js";import{c as Ce}from"./BIGXb0qV.js";import{s as mt,i as Ct,h as Pt}from"./BX63FB9x.js";import{p as yt,u as Ot}from"./BmQQcH5z.js";import{h as _t,an as it,a8 as wt,aK as Be,aO as At,aP as Ke,aG as Ft,aF as at,a2 as $e,av as V,a$ as lt,D as bt,l as St,a6 as It,ar as xt,ay as Et,az as ke,aS as b,a0 as ut,$ as ct,aQ as ge,aH as Me,H as Ht,a1 as Tt}from"./CESUeVmp.js";import{i as ue}from"./Gpf-ce3t.js";import{b as fe,e as Dt}from"./CyczJyMt.js";import{b as Nt}from"./BCx2RJGr.js";import{c as Kt,u as kt,s as Mt}from"./D9tVylVS.js";import{O as et}from"./CXCeVP0_.js";const Ge=Et({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ye=new _t("Popover.Root");var Pe,ye,Oe,_e,we,Ae,Fe,ne,se,J,re;const je=class je{constructor(e){F(this,J);R(this,"opts");F(this,Pe,oe(null));R(this,"contentPresence");F(this,ye,oe(null));F(this,Oe,oe(null));R(this,"overlayPresence");F(this,_e,oe(!1));F(this,we,oe(!1));F(this,Ae,oe(!1));F(this,Fe,oe(0));F(this,ne,null);F(this,se,null);this.opts=e,this.contentPresence=new $e({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $e({ref:V(()=>this.overlayNode),open:this.opts.open}),lt(()=>this.opts.open.current,t=>{t||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,K(this,J,re).call(this))})}static create(e){return Ye.set(new je(e))}get contentNode(){return c(u(this,Pe))}set contentNode(e){Q(u(this,Pe),e,!0)}get triggerNode(){return c(u(this,ye))}set triggerNode(e){Q(u(this,ye),e,!0)}get overlayNode(){return c(u(this,Oe))}set overlayNode(e){Q(u(this,Oe),e,!0)}get openedViaHover(){return c(u(this,_e))}set openedViaHover(e){Q(u(this,_e),e,!0)}get hasInteractedWithContent(){return c(u(this,we))}set hasInteractedWithContent(e){Q(u(this,we),e,!0)}get hoverCooldown(){return c(u(this,Ae))}set hoverCooldown(e){Q(u(this,Ae),e,!0)}get closeDelay(){return c(u(this,Fe))}set closeDelay(e){Q(u(this,Fe),e,!0)}setDomContext(e){X(this,se,e)}toggleOpen(){K(this,J,re).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){K(this,J,re).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){K(this,J,re).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(K(this,J,re).call(this),this.closeDelay<=0?this.opts.open.current=!1:u(this,se)&&X(this,ne,u(this,se).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),X(this,ne,null)},this.closeDelay))))}cancelDelayedClose(){K(this,J,re).call(this)}markInteraction(){this.hasInteractedWithContent=!0,K(this,J,re).call(this)}};Pe=new WeakMap,ye=new WeakMap,Oe=new WeakMap,_e=new WeakMap,we=new WeakMap,Ae=new WeakMap,Fe=new WeakMap,ne=new WeakMap,se=new WeakMap,J=new WeakSet,re=function(){u(this,ne)!==null&&u(this,se)&&(u(this,se).clearTimeout(u(this,ne)),X(this,ne,null))};let qe=je;var ie,ve,le,q,ze,Le,Qe,pt,be;const Je=class Je{constructor(e,t){F(this,q);R(this,"opts");R(this,"root");R(this,"attachment");R(this,"domContext");F(this,ie,null);F(this,ve,null);F(this,le,oe(!1));F(this,be,x(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":xt(this.root.opts.open.current),"data-state":at(this.root.opts.open.current),"aria-controls":K(this,q,pt).call(this),[Ge.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.triggerNode=i),this.domContext=new bt(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),lt(()=>this.opts.closeDelay.current,i=>{this.root.closeDelay=i})}static create(e){return new Je(e,Ye.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ke(e)||(Q(u(this,le),!0),K(this,q,Le).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():X(this,ie,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),X(this,ie,null)},t))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Ke(e)||(Q(u(this,le),!1),K(this,q,ze).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(K(this,q,Qe).call(this),c(u(this,le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}c(u(this,le))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===St||e.key===It)&&(e.preventDefault(),K(this,q,Qe).call(this),this.root.toggleOpen())}get props(){return c(u(this,be))}set props(e){Q(u(this,be),e)}};ie=new WeakMap,ve=new WeakMap,le=new WeakMap,q=new WeakSet,ze=function(){u(this,ie)!==null&&(this.domContext.clearTimeout(u(this,ie)),X(this,ie,null))},Le=function(){u(this,ve)!==null&&(this.domContext.clearTimeout(u(this,ve)),X(this,ve,null))},Qe=function(){K(this,q,ze).call(this),K(this,q,Le).call(this)},pt=function(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id},be=new WeakMap;let tt=Je;var Se,Ie;const Xe=class Xe{constructor(e,t){R(this,"opts");R(this,"root");R(this,"attachment");R(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Be(e.target))return;const t=e.target.closest(Ge.selector("trigger"));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Be(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const i=document.querySelector(this.opts.customAnchor.current);if(i&&i.contains(e.target))return}}this.root.handleClose()}});R(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});F(this,Se,x(()=>({open:this.root.opts.open.current})));F(this,Ie,x(()=>({id:this.opts.id.current,tabindex:-1,"data-state":at(this.root.opts.open.current),...Ft(this.root.contentPresence.transitionStatus),[Ge.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));R(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.contentNode=i),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new wt({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Xe(e,Ye.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const t=e.target;Be(t)&&At(t)&&this.root.markInteraction()}onpointerenter(e){Ke(e)||this.root.cancelDelayedClose()}onpointerleave(e){Ke(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return c(u(this,Se))}set snippetProps(e){Q(u(this,Se),e)}get props(){return c(u(this,Ie))}set props(e){Q(u(this,Ie),e)}};Se=new WeakMap,Ie=new WeakMap;let Re=Xe;var Rt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),ot=st("<div><div><!></div></div>");function Ue(s,e){const t=nt();if(new.target)return xe({component:Ue,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onOpenAutoFocus",7,b),w=r(e,"onCloseAutoFocus",7,b),h=r(e,"onEscapeKeydown",7,b),E=r(e,"onInteractOutside",7,b),k=r(e,"trapFocus",7,!0),z=r(e,"preventScroll",7,!1),L=r(e,"customAnchor",7,null),g=r(e,"style",7),ee=Ve(e,Rt);const S=Re.create({id:V(()=>O()),ref:V(()=>f(),o=>f(o)),onInteractOutside:V(()=>E()),onEscapeKeydown:V(()=>h()),customAnchor:V(()=>L())}),te=x(()=>ge(ee,S.props)),ce=x(()=>k()&&S.shouldTrapFocus);function pe(o){S.shouldTrapFocus||o.preventDefault(),_()(o)}var me={get child(){return i()},set child(o){i(o),n()},get children(){return m()},set children(o){m(o),n()},get ref(){return f()},set ref(o=null){f(o),n()},get id(){return O()},set id(o=ke(t)){O(o),n()},get forceMount(){return p()},set forceMount(o=!1){p(o),n()},get onOpenAutoFocus(){return _()},set onOpenAutoFocus(o=b){_(o),n()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(o=b){w(o),n()},get onEscapeKeydown(){return h()},set onEscapeKeydown(o=b){h(o),n()},get onInteractOutside(){return E()},set onInteractOutside(o=b){E(o),n()},get trapFocus(){return k()},set trapFocus(o=!0){k(o),n()},get preventScroll(){return z()},set preventScroll(o=!1){z(o),n()},get customAnchor(){return L()},set customAnchor(o=null){L(o),n()},get style(){return g()},set style(o){g(o),n()},$set:Ee,$on:(o,N)=>He(e,o,N)},a=P(),l=y(a);{var H=o=>{ut(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!0,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))},U=o=>{ct(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get open(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!1,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))};ue(l,o=>{p()?o(H):p()||o(U,1)})}return d(s,a),De(me)}var Vt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","style"]),rt=st("<div><!></div>");function ht(s,e){const t=nt();if(new.target)return xe({component:ht,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onCloseAutoFocus",7,b),w=r(e,"onEscapeKeydown",7,b),h=r(e,"onInteractOutside",7,b),E=r(e,"trapFocus",7,!0),k=r(e,"preventScroll",7,!1),z=r(e,"style",7),L=Ve(e,Vt);const g=Re.create({id:V(()=>O()),ref:V(()=>f(),a=>f(a)),onInteractOutside:V(()=>h()),onEscapeKeydown:V(()=>w()),customAnchor:V(()=>null)}),ee=x(()=>ge(L,g.props));var S={get child(){return i()},set child(a){i(a),n()},get children(){return m()},set children(a){m(a),n()},get ref(){return f()},set ref(a=null){f(a),n()},get id(){return O()},set id(a=ke(t)){O(a),n()},get forceMount(){return p()},set forceMount(a=!1){p(a),n()},get onCloseAutoFocus(){return _()},set onCloseAutoFocus(a=b){_(a),n()},get onEscapeKeydown(){return w()},set onEscapeKeydown(a=b){w(a),n()},get onInteractOutside(){return h()},set onInteractOutside(a=b){h(a),n()},get trapFocus(){return E()},set trapFocus(a=!0){E(a),n()},get preventScroll(){return k()},set preventScroll(a=!1){k(a),n()},get style(){return z()},set style(a){z(a),n()},$set:Ee,$on:(a,l)=>He(e,a,l)},te=P(),ce=y(te);{var pe=a=>{ut(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get enabled(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!0,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))},me=a=>{ct(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get open(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!1,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))};ue(ce,a=>{p()?a(pe):p()||a(me,1)})}return d(s,te),De(S)}function dt(s,e){if(new.target)return xe({component:dt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"onOpenChange",7,b),m=r(e,"onOpenChangeComplete",7,b),f=r(e,"children",7);qe.create({open:V(()=>t(),p=>{t(p),i()(p)}),onOpenChangeComplete:V(()=>m())});var O={get open(){return t()},set open(p=!1){t(p),n()},get onOpenChange(){return i()},set onOpenChange(p=b){i(p),n()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(p=b){m(p),n()},get children(){return f()},set children(p){f(p),n()},$set:Ee,$on:(p,_)=>He(e,p,_)};return Ht(s,{children:(p,_)=>{var w=P(),h=y(w);G(h,()=>f()??$),d(p,w)},$$slots:{default:!0}}),De(O)}var Wt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Bt(s,e){if(new.target)return xe({component:Bt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"staticPosition",7,!1),m=r(e,"children",7),f=r(e,"onOpenChange",7),O=Ve(e,Wt);yt(()=>i()),mt(()=>{t(!1),f()?.(!1)});var p={get open(){return t()},set open(h=!1){t(h),n()},get staticPosition(){return i()},set staticPosition(h=!1){i(h),n()},get children(){return m()},set children(h){m(h),n()},get onOpenChange(){return f()},set onOpenChange(h){f(h),n()},$set:Ee,$on:(h,E)=>He(e,h,E)},_=P(),w=y(_);return Ce(w,()=>dt,(h,E)=>{E(h,Z({get onOpenChange(){return f()}},()=>O,{get open(){return t()},set open(k){t(k)},children:(k,z)=>{var L=P(),g=y(L);G(g,()=>m()??$),d(k,L)},$$slots:{default:!0}}))}),d(s,_),De(p)}var Gt=new Set(["$$slots","$$events","$$legacy","ref","class","portal","portalProps","staticPosition","sideOffset","collisionPadding","children"]);function qt(s,e){if(new.target)return xe({component:qt,...s});Te(e,!0);let t=r(e,"ref",15,null),i=r(e,"class",7),m=r(e,"portal",7,!0),f=r(e,"portalProps",7),O=r(e,"staticPosition",7),p=r(e,"sideOffset",7,4),_=r(e,"collisionPadding",7,et),w=r(e,"children",7),h=Ve(e,Gt);const E=Ct(),k=Pt();vt(()=>{const l=t();if(!(!l||!E))return E.register(l,k)});const z=Ot(),L=x(()=>O()??z()),g=Kt(kt()+2);Mt(g);const ee=x(()=>Dt(Nt(),i()));var S={get ref(){return t()},set ref(l=null){t(l),n()},get class(){return i()},set class(l){i(l),n()},get portal(){return m()},set portal(l=!0){m(l),n()},get portalProps(){return f()},set portalProps(l){f(l),n()},get staticPosition(){return O()},set staticPosition(l){O(l),n()},get sideOffset(){return p()},set sideOffset(l=4){p(l),n()},get collisionPadding(){return _()},set collisionPadding(l=et){_(l),n()},get children(){return w()},set children(l){w(l),n()},$set:Ee,$on:(l,H)=>He(e,l,H)},te=P(),ce=y(te);{var pe=l=>{var H=P(),U=y(H);Ce(U,()=>ht,(o,N)=>{N(o,Z({preventScroll:!1,trapFocus:!1,"data-slot":"popover-content","data-static-position":!0,get"data-surface-level"(){return g},get class(){return c(ee)}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)},me=l=>{var H=P(),U=y(H);{let o=x(()=>f()?.to??E?.target());Ce(U,()=>Tt,(N,A)=>{A(N,Z(f,{get to(){return c(o)},children:(W,M)=>{var T=P(),C=y(T);Ce(C,()=>Ue,(v,B)=>{B(v,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(Y){t(Y)},children:(Y,Ne)=>{var D=P(),I=y(D);G(I,()=>w()??$),d(Y,D)},$$slots:{default:!0}}))}),d(W,T)},$$slots:{default:!0}}))})}d(l,H)},a=l=>{var H=P(),U=y(H);Ce(U,()=>Ue,(o,N)=>{N(o,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)};ue(ce,l=>{c(L)?l(pe):m()?l(me,1):l(a,-1)})}return d(s,te),De(S)}export{dt as P,tt as a,Ue as b,qt as c,Bt as d};
|
|
1
|
+
var ft=Object.defineProperty;var Ze=s=>{throw TypeError(s)};var gt=(s,e,t)=>e in s?ft(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var R=(s,e,t)=>gt(s,typeof e!="symbol"?e+"":e,t),We=(s,e,t)=>e.has(s)||Ze("Cannot "+t);var u=(s,e,t)=>(We(s,e,"read from private field"),t?t.call(s):e.get(s)),F=(s,e,t)=>e.has(s)?Ze("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),X=(s,e,t,i)=>(We(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),K=(s,e,t)=>(We(s,e,"access private method"),t);import{t as xe,bo as r,bw as Ee,b as He,br as Z,bp as Ve}from"./C0QTy0Sy.js";import{c9 as x,aD as c,bH as Q,bV as oe,bo as nt,bs as Te,a7 as P,ay as y,W as d,bn as De,aA as n,a5 as he,bf as $,bA as de,aB as st,ca as vt}from"./3SdAC2_C.js";import{t as G}from"./CrD0jtXE.js";import{c as Ce}from"./CUkDMZwP.js";import{s as mt,i as Ct,h as Pt}from"./BAKPnd3w.js";import{p as yt,u as Ot}from"./B4SiDSWP.js";import{h as _t,an as it,a8 as wt,aK as Be,aO as At,aP as Ke,aG as Ft,aF as at,a2 as $e,av as V,a$ as lt,D as bt,l as St,a6 as It,ar as xt,ay as Et,az as ke,aS as b,a0 as ut,$ as ct,aQ as ge,aH as Me,H as Ht,a1 as Tt}from"./FzlZUztb.js";import{i as ue}from"./bhKPSdq4.js";import{b as fe,e as Dt}from"./7UPrdiE9.js";import{b as Nt}from"./QeBH-DWE.js";import{c as Kt,u as kt,s as Mt}from"./D9tVylVS.js";import{O as et}from"./CDjpuJh0.js";const Ge=Et({component:"popover",parts:["root","trigger","content","close","overlay"]}),Ye=new _t("Popover.Root");var Pe,ye,Oe,_e,we,Ae,Fe,ne,se,J,re;const je=class je{constructor(e){F(this,J);R(this,"opts");F(this,Pe,oe(null));R(this,"contentPresence");F(this,ye,oe(null));F(this,Oe,oe(null));R(this,"overlayPresence");F(this,_e,oe(!1));F(this,we,oe(!1));F(this,Ae,oe(!1));F(this,Fe,oe(0));F(this,ne,null);F(this,se,null);this.opts=e,this.contentPresence=new $e({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $e({ref:V(()=>this.overlayNode),open:this.opts.open}),lt(()=>this.opts.open.current,t=>{t||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,K(this,J,re).call(this))})}static create(e){return Ye.set(new je(e))}get contentNode(){return c(u(this,Pe))}set contentNode(e){Q(u(this,Pe),e,!0)}get triggerNode(){return c(u(this,ye))}set triggerNode(e){Q(u(this,ye),e,!0)}get overlayNode(){return c(u(this,Oe))}set overlayNode(e){Q(u(this,Oe),e,!0)}get openedViaHover(){return c(u(this,_e))}set openedViaHover(e){Q(u(this,_e),e,!0)}get hasInteractedWithContent(){return c(u(this,we))}set hasInteractedWithContent(e){Q(u(this,we),e,!0)}get hoverCooldown(){return c(u(this,Ae))}set hoverCooldown(e){Q(u(this,Ae),e,!0)}get closeDelay(){return c(u(this,Fe))}set closeDelay(e){Q(u(this,Fe),e,!0)}setDomContext(e){X(this,se,e)}toggleOpen(){K(this,J,re).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){K(this,J,re).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){K(this,J,re).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(K(this,J,re).call(this),this.closeDelay<=0?this.opts.open.current=!1:u(this,se)&&X(this,ne,u(this,se).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),X(this,ne,null)},this.closeDelay))))}cancelDelayedClose(){K(this,J,re).call(this)}markInteraction(){this.hasInteractedWithContent=!0,K(this,J,re).call(this)}};Pe=new WeakMap,ye=new WeakMap,Oe=new WeakMap,_e=new WeakMap,we=new WeakMap,Ae=new WeakMap,Fe=new WeakMap,ne=new WeakMap,se=new WeakMap,J=new WeakSet,re=function(){u(this,ne)!==null&&u(this,se)&&(u(this,se).clearTimeout(u(this,ne)),X(this,ne,null))};let qe=je;var ie,ve,le,q,ze,Le,Qe,pt,be;const Je=class Je{constructor(e,t){F(this,q);R(this,"opts");R(this,"root");R(this,"attachment");R(this,"domContext");F(this,ie,null);F(this,ve,null);F(this,le,oe(!1));F(this,be,x(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":xt(this.root.opts.open.current),"data-state":at(this.root.opts.open.current),"aria-controls":K(this,q,pt).call(this),[Ge.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.triggerNode=i),this.domContext=new bt(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),lt(()=>this.opts.closeDelay.current,i=>{this.root.closeDelay=i})}static create(e){return new Je(e,Ye.get())}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ke(e)||(Q(u(this,le),!0),K(this,q,Le).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():X(this,ie,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),X(this,ie,null)},t))}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Ke(e)||(Q(u(this,le),!1),K(this,q,ze).call(this),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(K(this,q,Qe).call(this),c(u(this,le))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}c(u(this,le))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===St||e.key===It)&&(e.preventDefault(),K(this,q,Qe).call(this),this.root.toggleOpen())}get props(){return c(u(this,be))}set props(e){Q(u(this,be),e)}};ie=new WeakMap,ve=new WeakMap,le=new WeakMap,q=new WeakSet,ze=function(){u(this,ie)!==null&&(this.domContext.clearTimeout(u(this,ie)),X(this,ie,null))},Le=function(){u(this,ve)!==null&&(this.domContext.clearTimeout(u(this,ve)),X(this,ve,null))},Qe=function(){K(this,q,ze).call(this),K(this,q,Le).call(this)},pt=function(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id},be=new WeakMap;let tt=Je;var Se,Ie;const Xe=class Xe{constructor(e,t){R(this,"opts");R(this,"root");R(this,"attachment");R(this,"onInteractOutside",e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!Be(e.target))return;const t=e.target.closest(Ge.selector("trigger"));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(Be(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const i=document.querySelector(this.opts.customAnchor.current);if(i&&i.contains(e.target))return}}this.root.handleClose()}});R(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});F(this,Se,x(()=>({open:this.root.opts.open.current})));F(this,Ie,x(()=>({id:this.opts.id.current,tabindex:-1,"data-state":at(this.root.opts.open.current),...Ft(this.root.contentPresence.transitionStatus),[Ge.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));R(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=e,this.root=t,this.attachment=it(this.opts.ref,i=>this.root.contentNode=i),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new wt({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(e){return new Xe(e,Ye.get())}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const t=e.target;Be(t)&&At(t)&&this.root.markInteraction()}onpointerenter(e){Ke(e)||this.root.cancelDelayedClose()}onpointerleave(e){Ke(e)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return c(u(this,Se))}set snippetProps(e){Q(u(this,Se),e)}get props(){return c(u(this,Ie))}set props(e){Q(u(this,Ie),e)}};Se=new WeakMap,Ie=new WeakMap;let Re=Xe;var Rt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),ot=st("<div><div><!></div></div>");function Ue(s,e){const t=nt();if(new.target)return xe({component:Ue,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onOpenAutoFocus",7,b),w=r(e,"onCloseAutoFocus",7,b),h=r(e,"onEscapeKeydown",7,b),E=r(e,"onInteractOutside",7,b),k=r(e,"trapFocus",7,!0),z=r(e,"preventScroll",7,!1),L=r(e,"customAnchor",7,null),g=r(e,"style",7),ee=Ve(e,Rt);const S=Re.create({id:V(()=>O()),ref:V(()=>f(),o=>f(o)),onInteractOutside:V(()=>E()),onEscapeKeydown:V(()=>h()),customAnchor:V(()=>L())}),te=x(()=>ge(ee,S.props)),ce=x(()=>k()&&S.shouldTrapFocus);function pe(o){S.shouldTrapFocus||o.preventDefault(),_()(o)}var me={get child(){return i()},set child(o){i(o),n()},get children(){return m()},set children(o){m(o),n()},get ref(){return f()},set ref(o=null){f(o),n()},get id(){return O()},set id(o=ke(t)){O(o),n()},get forceMount(){return p()},set forceMount(o=!1){p(o),n()},get onOpenAutoFocus(){return _()},set onOpenAutoFocus(o=b){_(o),n()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(o=b){w(o),n()},get onEscapeKeydown(){return h()},set onEscapeKeydown(o=b){h(o),n()},get onInteractOutside(){return E()},set onInteractOutside(o=b){E(o),n()},get trapFocus(){return k()},set trapFocus(o=!0){k(o),n()},get preventScroll(){return z()},set preventScroll(o=!1){z(o),n()},get customAnchor(){return L()},set customAnchor(o=null){L(o),n()},get style(){return g()},set style(o){g(o),n()},$set:Ee,$on:(o,N)=>He(e,o,N)},a=P(),l=y(a);{var H=o=>{ut(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!0,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))},U=o=>{ct(o,Z(()=>c(te),()=>S.popperProps,{get ref(){return S.opts.ref},get open(){return S.root.opts.open.current},get id(){return O()},get trapFocus(){return c(ce)},get preventScroll(){return z()},loop:!0,forceMount:!1,get customAnchor(){return L()},onOpenAutoFocus:pe,get onCloseAutoFocus(){return w()},get shouldRender(){return S.shouldRender},popper:(A,W)=>{let M=()=>(W?.()).props,T=()=>(W?.()).wrapperProps;const C=x(()=>ge(M(),{style:Me("popover")},{style:g()}));var v=P(),B=y(v);{var Y=D=>{var I=P(),j=y(I);{let ae=x(()=>({props:c(C),wrapperProps:T(),...S.snippetProps}));G(j,i,()=>c(ae))}d(D,I)},Ne=D=>{var I=ot();fe(I,()=>({...T()}));var j=he(I);fe(j,()=>({...c(C)}));var ae=he(j);G(ae,()=>m()??$),de(j),de(I),d(D,I)};ue(B,D=>{i()?D(Y):D(Ne,-1)})}d(A,v)},$$slots:{popper:!0}}))};ue(l,o=>{p()?o(H):p()||o(U,1)})}return d(s,a),De(me)}var Vt=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","style"]),rt=st("<div><!></div>");function ht(s,e){const t=nt();if(new.target)return xe({component:ht,...s});Te(e,!0);let i=r(e,"child",7),m=r(e,"children",7),f=r(e,"ref",15,null),O=r(e,"id",23,()=>ke(t)),p=r(e,"forceMount",7,!1),_=r(e,"onCloseAutoFocus",7,b),w=r(e,"onEscapeKeydown",7,b),h=r(e,"onInteractOutside",7,b),E=r(e,"trapFocus",7,!0),k=r(e,"preventScroll",7,!1),z=r(e,"style",7),L=Ve(e,Vt);const g=Re.create({id:V(()=>O()),ref:V(()=>f(),a=>f(a)),onInteractOutside:V(()=>h()),onEscapeKeydown:V(()=>w()),customAnchor:V(()=>null)}),ee=x(()=>ge(L,g.props));var S={get child(){return i()},set child(a){i(a),n()},get children(){return m()},set children(a){m(a),n()},get ref(){return f()},set ref(a=null){f(a),n()},get id(){return O()},set id(a=ke(t)){O(a),n()},get forceMount(){return p()},set forceMount(a=!1){p(a),n()},get onCloseAutoFocus(){return _()},set onCloseAutoFocus(a=b){_(a),n()},get onEscapeKeydown(){return w()},set onEscapeKeydown(a=b){w(a),n()},get onInteractOutside(){return h()},set onInteractOutside(a=b){h(a),n()},get trapFocus(){return E()},set trapFocus(a=!0){E(a),n()},get preventScroll(){return k()},set preventScroll(a=!1){k(a),n()},get style(){return z()},set style(a){z(a),n()},$set:Ee,$on:(a,l)=>He(e,a,l)},te=P(),ce=y(te);{var pe=a=>{ut(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get enabled(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!0,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))},me=a=>{ct(a,Z(()=>c(ee),()=>g.popperProps,{get ref(){return g.opts.ref},isStatic:!0,get open(){return g.root.opts.open.current},get id(){return O()},get trapFocus(){return E()},get preventScroll(){return k()},loop:!0,forceMount:!1,get onCloseAutoFocus(){return _()},get shouldRender(){return g.shouldRender},popper:(H,U)=>{let o=()=>(U?.()).props;const N=x(()=>ge(o(),{style:Me("popover")},{style:z()}));var A=P(),W=y(A);{var M=C=>{var v=P(),B=y(v);{let Y=x(()=>({props:c(N),...g.snippetProps}));G(B,i,()=>c(Y))}d(C,v)},T=C=>{var v=rt();fe(v,()=>({...c(N)}));var B=he(v);G(B,()=>m()??$),de(v),d(C,v)};ue(W,C=>{i()?C(M):C(T,-1)})}d(H,A)},$$slots:{popper:!0}}))};ue(ce,a=>{p()?a(pe):p()||a(me,1)})}return d(s,te),De(S)}function dt(s,e){if(new.target)return xe({component:dt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"onOpenChange",7,b),m=r(e,"onOpenChangeComplete",7,b),f=r(e,"children",7);qe.create({open:V(()=>t(),p=>{t(p),i()(p)}),onOpenChangeComplete:V(()=>m())});var O={get open(){return t()},set open(p=!1){t(p),n()},get onOpenChange(){return i()},set onOpenChange(p=b){i(p),n()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(p=b){m(p),n()},get children(){return f()},set children(p){f(p),n()},$set:Ee,$on:(p,_)=>He(e,p,_)};return Ht(s,{children:(p,_)=>{var w=P(),h=y(w);G(h,()=>f()??$),d(p,w)},$$slots:{default:!0}}),De(O)}var Wt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Bt(s,e){if(new.target)return xe({component:Bt,...s});Te(e,!0);let t=r(e,"open",15,!1),i=r(e,"staticPosition",7,!1),m=r(e,"children",7),f=r(e,"onOpenChange",7),O=Ve(e,Wt);yt(()=>i()),mt(()=>{t(!1),f()?.(!1)});var p={get open(){return t()},set open(h=!1){t(h),n()},get staticPosition(){return i()},set staticPosition(h=!1){i(h),n()},get children(){return m()},set children(h){m(h),n()},get onOpenChange(){return f()},set onOpenChange(h){f(h),n()},$set:Ee,$on:(h,E)=>He(e,h,E)},_=P(),w=y(_);return Ce(w,()=>dt,(h,E)=>{E(h,Z({get onOpenChange(){return f()}},()=>O,{get open(){return t()},set open(k){t(k)},children:(k,z)=>{var L=P(),g=y(L);G(g,()=>m()??$),d(k,L)},$$slots:{default:!0}}))}),d(s,_),De(p)}var Gt=new Set(["$$slots","$$events","$$legacy","ref","class","portal","portalProps","staticPosition","sideOffset","collisionPadding","children"]);function qt(s,e){if(new.target)return xe({component:qt,...s});Te(e,!0);let t=r(e,"ref",15,null),i=r(e,"class",7),m=r(e,"portal",7,!0),f=r(e,"portalProps",7),O=r(e,"staticPosition",7),p=r(e,"sideOffset",7,4),_=r(e,"collisionPadding",7,et),w=r(e,"children",7),h=Ve(e,Gt);const E=Ct(),k=Pt();vt(()=>{const l=t();if(!(!l||!E))return E.register(l,k)});const z=Ot(),L=x(()=>O()??z()),g=Kt(kt()+2);Mt(g);const ee=x(()=>Dt(Nt(),i()));var S={get ref(){return t()},set ref(l=null){t(l),n()},get class(){return i()},set class(l){i(l),n()},get portal(){return m()},set portal(l=!0){m(l),n()},get portalProps(){return f()},set portalProps(l){f(l),n()},get staticPosition(){return O()},set staticPosition(l){O(l),n()},get sideOffset(){return p()},set sideOffset(l=4){p(l),n()},get collisionPadding(){return _()},set collisionPadding(l=et){_(l),n()},get children(){return w()},set children(l){w(l),n()},$set:Ee,$on:(l,H)=>He(e,l,H)},te=P(),ce=y(te);{var pe=l=>{var H=P(),U=y(H);Ce(U,()=>ht,(o,N)=>{N(o,Z({preventScroll:!1,trapFocus:!1,"data-slot":"popover-content","data-static-position":!0,get"data-surface-level"(){return g},get class(){return c(ee)}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)},me=l=>{var H=P(),U=y(H);{let o=x(()=>f()?.to??E?.target());Ce(U,()=>Tt,(N,A)=>{A(N,Z(f,{get to(){return c(o)},children:(W,M)=>{var T=P(),C=y(T);Ce(C,()=>Ue,(v,B)=>{B(v,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(Y){t(Y)},children:(Y,Ne)=>{var D=P(),I=y(D);G(I,()=>w()??$),d(Y,D)},$$slots:{default:!0}}))}),d(W,T)},$$slots:{default:!0}}))})}d(l,H)},a=l=>{var H=P(),U=y(H);Ce(U,()=>Ue,(o,N)=>{N(o,Z({"data-slot":"popover-content",get"data-surface-level"(){return g},get class(){return c(ee)},get sideOffset(){return p()},get collisionPadding(){return _()}},()=>h,{get ref(){return t()},set ref(A){t(A)},children:(A,W)=>{var M=P(),T=y(M);G(T,()=>w()??$),d(A,M)},$$slots:{default:!0}}))}),d(l,H)};ue(ce,l=>{c(L)?l(pe):m()?l(me,1):l(a,-1)})}return d(s,te),De(S)}export{dt as P,tt as a,Ue as b,qt as c,Bt as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as Q,e as ke,aK as oe,bM as le,bL as ie,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./
|
|
1
|
+
import{aR as Q,e as ke,aK as oe,bM as le,bL as ie,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./C0QTy0Sy.js";import{i as re}from"./bhKPSdq4.js";import{c as ue}from"./CUkDMZwP.js";import{s as Le}from"./7UPrdiE9.js";import{t as Y}from"./CiMmbOsB.js";import{f as fe}from"./FzlZUztb.js";import"./DCRuihKm.js";import{k as De}from"./-K3ARgq0.js";import{t as We}from"./CrD0jtXE.js";import{Jv as ve,tY as Se,ph as Re}from"./tr-2J8Mf.js";import{s as ze,W as Ne}from"./CO5zWp8I.js";import{i as Oe,n as Be,d as je}from"./BxEf7uwl.js";import{t as qe,s as Ve,l as Je,u as Ge}from"./BfojStRz.js";function yt(l,n){let e=null,u=Q;var v;if(Q){e=Me;for(var s=Pe(document.head);s!==null&&(s.nodeType!==ke||s.data!==l);)s=oe(s);if(s===null)le(!1);else{var p=oe(s);s.remove(),ie(p)}}Q||(v=document.head.appendChild(Ie()));try{Ce(()=>{var i=Te(()=>n(v));i.f|=Ae,Q||(i.nodes===null?i.nodes={start:v,end:v,a:null,t:null}:i.nodes.end=v)})}finally{u&&(le(!0),ie(e))}}const we=3e4,Ke=3;function G(l){return l.type==="browser"&&typeof l.ownerAgentId=="string"&&l.ownerAgentId.length>0}function wt(l,n,e,u,v){return l?Xe(new Map,n,e,u,v):new Map}const Qe={ttlMs:we,maxInactiveTabs:Ke};function Ue(l={}){return{...Qe,...l}}function ht(l,n){if(l.size!==n.size)return!1;for(const[e,u]of l)if(n.get(e)!==u)return!1;return!0}function Xe(l,n,e,u,v){const{ttlMs:s,maxInactiveTabs:p}=Ue(v),i=new Set(n.map(a=>a.id)),d=new Set(n.filter(a=>a.type==="browser").map(a=>a.id)),m=new Set(n.filter(G).map(a=>a.id)),c=new Map;for(const[a,k]of l)i.has(a)&&c.set(a,k);e&&i.has(e)&&c.set(e,u);for(const a of m)c.has(a)||c.set(a,u);for(const[a,k]of c)a!==e&&!d.has(a)&&u-k>=s&&c.delete(a);const g=Array.from(c.entries()).filter(([a])=>a!==e&&!d.has(a)).sort(([,a],[,k])=>a-k);for(;g.length>p;){const a=g.shift();a&&c.delete(a[0])}return c}function xt(l,n,e,u=we,v=[]){const s=new Set(v.filter(i=>i.type==="browser").map(i=>i.id));let p=null;for(const[i,d]of l){if(i===n||s.has(i))continue;const m=Math.max(0,u-(e-d));p=p===null?m:Math.min(p,m)}return p}var Ye=B('<div class="absolute inset-0 z-10 overflow-hidden bg-background"><!></div>'),Ze=B('<div class="relative flex h-full min-h-0 w-full flex-col" data-workspace-home-panel-gate=""><div class="flex min-h-0 w-full flex-1 flex-col"><!></div> <!></div>');function he(l,n){if(new.target)return ge({component:he,...l});pe(n,!0);const e=()=>X(a,"$view$",p),u=()=>X(K,"$loaded$",p),v=()=>X(k,"$canMove$",p),s=()=>X(W,"$waiting$",p),[p,i]=Ee();let d=M(n,"workspaceId",7),m=M(n,"children",7),c=M(n,"clock",23,()=>Date.now);const g=$e(ae(()=>d()));me(()=>{g.set(d())});const a=qe(g),k=Ve(g),W=Je(g),K=Ge(g),S=J(e);let P=O(Fe(Oe)),j=O(!1);ze({markContentLoaded:()=>{y(j,!0)}}),He(()=>{const o={workspaceId:d(),loaded:u(),unavailable:r(S)?.unavailable===!0,contentLoaded:r(j),now:c()()},f=Be(ae(()=>r(P)),o);f.generation!==ae(()=>r(P)).generation&&y(j,!1),y(P,f,!0)});var te={get workspaceId(){return d()},set workspaceId(o){d(o),A()},get children(){return m()},set children(o){m(o),A()},get clock(){return c()},set clock(o=Date.now){c(o),A()},$set:be,$on:(o,f)=>ye(n,o,f)},q=Ze(),t=L(q),h=L(t);De(h,()=>r(P).generation,o=>{var f=Z(),I=ee(f);We(I,m),w(o,f)}),D(t);var $=V(t,2);{var C=o=>{var f=Ye(),I=L(f);Ne(I,{get view(){return r(S)},get canMove(){return v()},get waiting(){return s()},onWait:()=>ve.dispatch(Re(d())),onMove:()=>ve.dispatch(Se(d()))}),D(f),w(o,f)};re($,o=>{r(S)?.unavailable&&o(C)})}D(q),N(()=>t.inert=r(S)?.unavailable?!0:void 0),w(l,q);var F=_e(te);return i(),F}var et=B('<div class="flex h-full flex-col items-center justify-center gap-3 text-subtle"><p> </p> <!></div>'),tt=B('<div class="flex h-full w-full items-center justify-center" role="status"><div class="size-5 animate-pulse rounded-full bg-muted motion-reduce:animate-none"></div></div>'),at=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p> <!></div></div>'),rt=B('<div class="panel-content-renderer h-full w-full overflow-hidden svelte-1ed760w"><!></div>');function nt(l,n){if(new.target)return ge({component:nt,...l});pe(n,!0);let e=M(n,"tab",7),u=M(n,"workspaceId",7),v=M(n,"layoutId",7),s=M(n,"isActive",7,!0),p=M(n,"isPanelFocused",7,!1),i=M(n,"onFocus",7),d=O(0),m=O(null),c=O(void 0),g=O(!1);const a=J(()=>(r(d),Y.get(e().type))),k=J(()=>(r(d),Y.getLoadedComponent(e().type))),W=J(()=>r(m)===e().type&&r(c)?r(c):s()||G(e())?r(k):void 0);me(()=>{const t=e().type,$=s()||G(e()),C=r(d),F=r(a),o=r(k);let f=!1;if((!F||r(m)!==t)&&(y(m,null),y(c,void 0),y(g,!1)),!(!F||!$)){if(o){y(m,t,!0),y(c,o,!0);return}if(!(r(m)===t&&r(c)))return y(g,!1),Y.loadComponent(t).then(I=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||(y(m,t,!0),y(c,I,!0))},()=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||y(g,!0)}),()=>{f=!0}}});function K(){Y.resetComponentLoad(e().type),y(d,r(d)+1)}var S={get tab(){return e()},set tab(t){e(t),A()},get workspaceId(){return u()},set workspaceId(t){u(t),A()},get layoutId(){return v()},set layoutId(t){v(t),A()},get isActive(){return s()},set isActive(t=!0){s(t),A()},get isPanelFocused(){return p()},set isPanelFocused(t=!1){p(t),A()},get onFocus(){return i()},set onFocus(t){i(t),A()},$set:be,$on:(t,h)=>ye(n,t,h)},P=rt(),j=L(P);{var te=t=>{var h=Z(),$=ee(h);{var C=_=>{he(_,{get workspaceId(){return u()},children:(b,x)=>{var T=Z(),H=ee(T);ue(H,()=>r(W),(E,ne)=>{ne(E,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(b,T)},$$slots:{default:!0}})},F=J(()=>r(W)&&je(e())),o=_=>{var b=Z(),x=ee(b);ue(x,()=>r(W),(T,H)=>{H(T,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(_,b)},f=_=>{var b=et(),x=L(b),T=U(x,!0),H=V(x,2);fe(H,{variant:"outline",size:"sm",onclick:K,children:(E,ne)=>{de();var se=ce();N(xe=>R(se,xe),[()=>z.ui_errorToast_retry_label()]),w(E,se)},$$slots:{default:!0}}),D(b),N(E=>R(T,E),[()=>z.error_boundary_title()]),w(_,b)},I=_=>{var b=tt();N(x=>Le(b,"aria-label",x),[()=>z.workspace_hoverCard_loading_label()]),w(_,b)};re($,_=>{r(F)?_(C):r(W)?_(o,1):s()&&r(g)?_(f,2):s()&&_(I,3)})}w(t,h)},q=t=>{var h=at(),$=L(h),C=L($),F=U(C,!0),o=V(C,2),f=U(o,!0),I=V(o,2),_=U(I,!0),b=V(I,2);fe(b,{class:"mt-4",variant:"outline",size:"sm",onclick:K,children:(x,T)=>{de();var H=ce();N(E=>R(H,E),[()=>z.ui_errorToast_retry_label()]),w(x,H)},$$slots:{default:!0}}),D($),D(h),N((x,T)=>{R(F,e().title),R(f,x),R(_,T)},[()=>z.layout_panelContent_typeLabel({type:e().type}),()=>z.layout_panelContent_notImplemented_label()]),w(t,h)};re(j,t=>{r(a)?t(te):t(q,-1)})}return D(P),w(l,P),_e(S)}export{Ke as M,we as P,he as W,nt as a,ht as b,xt as g,yt as h,wt as i,Xe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./BEwMx-58.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./Gpf-ce3t.js";import{H as ur}from"./C4Fxj3Dv.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./CESUeVmp.js";import{s as K}from"./LNBns0B-.js";import{b as et}from"./CyczJyMt.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({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":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!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&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(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=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.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(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!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&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(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=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({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":Se(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=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>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(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
|
|
1
|
+
var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./C0QTy0Sy.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./bhKPSdq4.js";import{H as ur}from"./CbqxWBi7.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./FzlZUztb.js";import{t as K}from"./CrD0jtXE.js";import{b as et}from"./7UPrdiE9.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({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":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!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&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(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=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.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(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!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&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(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=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({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":Se(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=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>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(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
|