nolune 0.1.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/DESIGN.md +1622 -0
- package/LICENSE +21 -0
- package/README.md +226 -0
- package/build/client/_app/immutable/assets/0.CO3c3JBa.css +2 -0
- package/build/client/_app/immutable/assets/0.CO3c3JBa.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CO3c3JBa.css.gz +0 -0
- package/build/client/_app/immutable/assets/10.DiHYpJ-g.css +1 -0
- package/build/client/_app/immutable/assets/10.DiHYpJ-g.css.br +0 -0
- package/build/client/_app/immutable/assets/10.DiHYpJ-g.css.gz +0 -0
- package/build/client/_app/immutable/assets/14.D8mCg27h.css +1 -0
- package/build/client/_app/immutable/assets/14.D8mCg27h.css.br +0 -0
- package/build/client/_app/immutable/assets/14.D8mCg27h.css.gz +0 -0
- package/build/client/_app/immutable/assets/AssistantAvatar.BH1P1JPA.css +1 -0
- package/build/client/_app/immutable/assets/AssistantAvatar.BH1P1JPA.css.br +0 -0
- package/build/client/_app/immutable/assets/AssistantAvatar.BH1P1JPA.css.gz +0 -0
- package/build/client/_app/immutable/assets/AvatarPicker.BWZNEVEv.css +1 -0
- package/build/client/_app/immutable/assets/AvatarPicker.BWZNEVEv.css.br +0 -0
- package/build/client/_app/immutable/assets/AvatarPicker.BWZNEVEv.css.gz +0 -0
- package/build/client/_app/immutable/assets/DotGrid.uBe8QJ6R.css +1 -0
- package/build/client/_app/immutable/assets/DotGrid.uBe8QJ6R.css.br +0 -0
- package/build/client/_app/immutable/assets/DotGrid.uBe8QJ6R.css.gz +0 -0
- package/build/client/_app/immutable/assets/ModelMenu.CfwWh95X.css +1 -0
- package/build/client/_app/immutable/assets/ModelMenu.CfwWh95X.css.br +0 -0
- package/build/client/_app/immutable/assets/ModelMenu.CfwWh95X.css.gz +0 -0
- package/build/client/_app/immutable/assets/confirm.BpBhXN_i.mp3 +0 -0
- package/build/client/_app/immutable/assets/data.9aNBaxbh.json +1 -0
- package/build/client/_app/immutable/assets/data.9aNBaxbh.json.br +0 -0
- package/build/client/_app/immutable/assets/data.9aNBaxbh.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.BF1r6TM-.json +1 -0
- package/build/client/_app/immutable/assets/data.BF1r6TM-.json.br +0 -0
- package/build/client/_app/immutable/assets/data.BF1r6TM-.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.BnNTV_b6.json +1 -0
- package/build/client/_app/immutable/assets/data.BnNTV_b6.json.br +0 -0
- package/build/client/_app/immutable/assets/data.BnNTV_b6.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.CreAftJo.json +1 -0
- package/build/client/_app/immutable/assets/data.CreAftJo.json.br +0 -0
- package/build/client/_app/immutable/assets/data.CreAftJo.json.gz +0 -0
- package/build/client/_app/immutable/assets/data.DKp8PYJD.json +1 -0
- package/build/client/_app/immutable/assets/data.DKp8PYJD.json.br +0 -0
- package/build/client/_app/immutable/assets/data.DKp8PYJD.json.gz +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-ext-wght-italic.Q0qr0lrZ.woff2 +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-ext-wght-normal.DCwSJGxG.woff2 +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-wght-italic.BEAWuiTz.woff2 +0 -0
- package/build/client/_app/immutable/assets/figtree-latin-wght-normal.D_ZTVpCC.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.BJkDdjbt.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.DUd3efVn.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-500-normal.CAy0Dwk2.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-500-normal.CFTSF0cD.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.Co4MVjrD.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.FAIU8e3o.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-500-normal.BDCQVX4y.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-500-normal.BGV2-mDE.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-400-normal.B_0AmgK7.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-400-normal.ftNhKy_S.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-500-normal.DNFqaoqB.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-500-normal.kj_VgxTv.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.BQ5yw6bY.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.Be4g_LSk.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-500-normal.CGPEfoom.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-greek-ext-500-normal.g6G8W_LY.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-400-normal.C3FQ26ho.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-400-normal.DVTTRLHv.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-500-normal.DknboRIW.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-500-normal.Du17Nws8.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.B2gPvaNr.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.CbD3vWRE.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-500-normal.-0AGvlKU.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-latin-ext-500-normal.DPED3Y3R.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-400-normal.C6JptOil.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-400-normal.CpeG9ob9.woff +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-500-normal.0PpNbZw_.woff2 +0 -0
- package/build/client/_app/immutable/assets/fira-mono-symbols2-500-normal.fxu0Prpo.woff +0 -0
- package/build/client/_app/immutable/assets/music.z3ymEIJM.mp3 +0 -0
- package/build/client/_app/immutable/assets/select.CV-KWLNP.css +1 -0
- package/build/client/_app/immutable/assets/select.CV-KWLNP.css.br +1 -0
- package/build/client/_app/immutable/assets/select.CV-KWLNP.css.gz +0 -0
- package/build/client/_app/immutable/assets/wash.BnjShmr3.mp3 +0 -0
- package/build/client/_app/immutable/assets/yap.SNl9LSqC.mp3 +0 -0
- package/build/client/_app/immutable/chunks/-FJ70HB3.js +1 -0
- package/build/client/_app/immutable/chunks/-FJ70HB3.js.br +0 -0
- package/build/client/_app/immutable/chunks/-FJ70HB3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/9J99lH1E.js +4 -0
- package/build/client/_app/immutable/chunks/9J99lH1E.js.br +0 -0
- package/build/client/_app/immutable/chunks/9J99lH1E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B4AK16CS.js +1 -0
- package/build/client/_app/immutable/chunks/B4AK16CS.js.br +0 -0
- package/build/client/_app/immutable/chunks/B4AK16CS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5IRm2KW.js +1 -0
- package/build/client/_app/immutable/chunks/B5IRm2KW.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5IRm2KW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAJE4yH_.js +9 -0
- package/build/client/_app/immutable/chunks/BAJE4yH_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAJE4yH_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDCREBKE.js +1 -0
- package/build/client/_app/immutable/chunks/BDCREBKE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDCREBKE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOf4cn4q.js +16 -0
- package/build/client/_app/immutable/chunks/BOf4cn4q.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOf4cn4q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOixjj3c.js +1 -0
- package/build/client/_app/immutable/chunks/BOixjj3c.js.br +1 -0
- package/build/client/_app/immutable/chunks/BOixjj3c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQb4WE-8.js +1 -0
- package/build/client/_app/immutable/chunks/BQb4WE-8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQb4WE-8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTeK4a_a.js +1 -0
- package/build/client/_app/immutable/chunks/BTeK4a_a.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTeK4a_a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYNjkfU_.js +1 -0
- package/build/client/_app/immutable/chunks/BYNjkfU_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYNjkfU_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BeDhKqx_.js +1 -0
- package/build/client/_app/immutable/chunks/BeDhKqx_.js.br +3 -0
- package/build/client/_app/immutable/chunks/BeDhKqx_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bmf5cCYM.js +1 -0
- package/build/client/_app/immutable/chunks/Bmf5cCYM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bmf5cCYM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo7a0aly.js +1 -0
- package/build/client/_app/immutable/chunks/Bo7a0aly.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo7a0aly.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvAz--0N.js +1 -0
- package/build/client/_app/immutable/chunks/BvAz--0N.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvAz--0N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-5HEoLn.js +1 -0
- package/build/client/_app/immutable/chunks/C-5HEoLn.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-5HEoLn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7dZK71a.js +1 -0
- package/build/client/_app/immutable/chunks/C7dZK71a.js.br +0 -0
- package/build/client/_app/immutable/chunks/C7dZK71a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C98TgtTN.js +1 -0
- package/build/client/_app/immutable/chunks/C98TgtTN.js.br +0 -0
- package/build/client/_app/immutable/chunks/C98TgtTN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C9u9ikCJ.js +1 -0
- package/build/client/_app/immutable/chunks/C9u9ikCJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C9u9ikCJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBy5xNAu.js +1 -0
- package/build/client/_app/immutable/chunks/CBy5xNAu.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBy5xNAu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCDGpt2Z.js +1 -0
- package/build/client/_app/immutable/chunks/CCDGpt2Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCDGpt2Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNU7dyxe.js +1 -0
- package/build/client/_app/immutable/chunks/CNU7dyxe.js.br +3 -0
- package/build/client/_app/immutable/chunks/CNU7dyxe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNij7yXO.js +1 -0
- package/build/client/_app/immutable/chunks/CNij7yXO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNij7yXO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPbGz0nD.js +1 -0
- package/build/client/_app/immutable/chunks/CPbGz0nD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPbGz0nD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ce5rxuHE.js +1 -0
- package/build/client/_app/immutable/chunks/Ce5rxuHE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ce5rxuHE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgJaNa38.js +1 -0
- package/build/client/_app/immutable/chunks/CgJaNa38.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgJaNa38.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgoZLTv2.js +1 -0
- package/build/client/_app/immutable/chunks/CgoZLTv2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgoZLTv2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch-tX5Y1.js +1 -0
- package/build/client/_app/immutable/chunks/Ch-tX5Y1.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch-tX5Y1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkALdgl6.js +1 -0
- package/build/client/_app/immutable/chunks/CkALdgl6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkALdgl6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cn31HPZM.js +1 -0
- package/build/client/_app/immutable/chunks/Cn31HPZM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cn31HPZM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoVud_S-.js +1 -0
- package/build/client/_app/immutable/chunks/CoVud_S-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoVud_S-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CraKVm2C.js +1 -0
- package/build/client/_app/immutable/chunks/CraKVm2C.js.br +0 -0
- package/build/client/_app/immutable/chunks/CraKVm2C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2KG5w4u.js +1 -0
- package/build/client/_app/immutable/chunks/D2KG5w4u.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2KG5w4u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DD7ObTOV.js +1 -0
- package/build/client/_app/immutable/chunks/DD7ObTOV.js.br +0 -0
- package/build/client/_app/immutable/chunks/DD7ObTOV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DD9f1wuL.js +1 -0
- package/build/client/_app/immutable/chunks/DD9f1wuL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DD9f1wuL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFMQ7Wtb.js +1 -0
- package/build/client/_app/immutable/chunks/DFMQ7Wtb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFMQ7Wtb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFO_JKVL.js +1 -0
- package/build/client/_app/immutable/chunks/DFO_JKVL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFO_JKVL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGyl1a-y.js +2 -0
- package/build/client/_app/immutable/chunks/DGyl1a-y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGyl1a-y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DM7BiLiI.js +1 -0
- package/build/client/_app/immutable/chunks/DM7BiLiI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DM7BiLiI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRu3YDxz.js +1 -0
- package/build/client/_app/immutable/chunks/DRu3YDxz.js.br +2 -0
- package/build/client/_app/immutable/chunks/DRu3YDxz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTmdu5jU.js +1 -0
- package/build/client/_app/immutable/chunks/DTmdu5jU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTmdu5jU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DW6oei0W.js +1 -0
- package/build/client/_app/immutable/chunks/DW6oei0W.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW6oei0W.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZ_NkRbw.js +1 -0
- package/build/client/_app/immutable/chunks/DZ_NkRbw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZ_NkRbw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfNBP7nd.js +1 -0
- package/build/client/_app/immutable/chunks/DfNBP7nd.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfNBP7nd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkhXP75k.js +1 -0
- package/build/client/_app/immutable/chunks/DkhXP75k.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkhXP75k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DpugZNaj.js +1 -0
- package/build/client/_app/immutable/chunks/DpugZNaj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DpugZNaj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DuEN1GTI.js +5 -0
- package/build/client/_app/immutable/chunks/DuEN1GTI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DuEN1GTI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DubTk1R0.js +1 -0
- package/build/client/_app/immutable/chunks/DubTk1R0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DubTk1R0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dyxd9rrM.js +5 -0
- package/build/client/_app/immutable/chunks/Dyxd9rrM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dyxd9rrM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/F14uK0sn.js +1 -0
- package/build/client/_app/immutable/chunks/F14uK0sn.js.br +1 -0
- package/build/client/_app/immutable/chunks/F14uK0sn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/GbStyEBD.js +1 -0
- package/build/client/_app/immutable/chunks/GbStyEBD.js.br +0 -0
- package/build/client/_app/immutable/chunks/GbStyEBD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IV6C0355.js +1 -0
- package/build/client/_app/immutable/chunks/IV6C0355.js.br +0 -0
- package/build/client/_app/immutable/chunks/IV6C0355.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KSWUKh8r.js +1 -0
- package/build/client/_app/immutable/chunks/KSWUKh8r.js.br +0 -0
- package/build/client/_app/immutable/chunks/KSWUKh8r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Nhc5CiNi.js +1 -0
- package/build/client/_app/immutable/chunks/Nhc5CiNi.js.br +0 -0
- package/build/client/_app/immutable/chunks/Nhc5CiNi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OrbH09aZ.js +318 -0
- package/build/client/_app/immutable/chunks/OrbH09aZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/OrbH09aZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PnjGAuWf.js +1 -0
- package/build/client/_app/immutable/chunks/PnjGAuWf.js.br +0 -0
- package/build/client/_app/immutable/chunks/PnjGAuWf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZoO6eRK-.js +1 -0
- package/build/client/_app/immutable/chunks/ZoO6eRK-.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZoO6eRK-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/eHlSYfzc.js +67 -0
- package/build/client/_app/immutable/chunks/eHlSYfzc.js.br +0 -0
- package/build/client/_app/immutable/chunks/eHlSYfzc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kUgLbqVN.js +1 -0
- package/build/client/_app/immutable/chunks/kUgLbqVN.js.br +0 -0
- package/build/client/_app/immutable/chunks/kUgLbqVN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kW5akbMY.js +1 -0
- package/build/client/_app/immutable/chunks/kW5akbMY.js.br +0 -0
- package/build/client/_app/immutable/chunks/kW5akbMY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/lOC7RXgz.js +1 -0
- package/build/client/_app/immutable/chunks/lOC7RXgz.js.br +0 -0
- package/build/client/_app/immutable/chunks/lOC7RXgz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/mxa1wXkp.js +3 -0
- package/build/client/_app/immutable/chunks/mxa1wXkp.js.br +0 -0
- package/build/client/_app/immutable/chunks/mxa1wXkp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/q0g666o4.js +6 -0
- package/build/client/_app/immutable/chunks/q0g666o4.js.br +0 -0
- package/build/client/_app/immutable/chunks/q0g666o4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rTK8FScS.js +1 -0
- package/build/client/_app/immutable/chunks/rTK8FScS.js.br +0 -0
- package/build/client/_app/immutable/chunks/rTK8FScS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js +1 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js.br +0 -0
- package/build/client/_app/immutable/chunks/uBIymjUX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vt9Yl3tP.js +1 -0
- package/build/client/_app/immutable/chunks/vt9Yl3tP.js.br +0 -0
- package/build/client/_app/immutable/chunks/vt9Yl3tP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BBB0nTuC.js +2 -0
- package/build/client/_app/immutable/entry/app.BBB0nTuC.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BBB0nTuC.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CmBINDhZ.js +1 -0
- package/build/client/_app/immutable/entry/start.CmBINDhZ.js.br +1 -0
- package/build/client/_app/immutable/entry/start.CmBINDhZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.But357jM.js +1 -0
- package/build/client/_app/immutable/nodes/0.But357jM.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.But357jM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DT8uBymP.js +1 -0
- package/build/client/_app/immutable/nodes/1.DT8uBymP.js.br +4 -0
- package/build/client/_app/immutable/nodes/1.DT8uBymP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BacbVQXe.js +1 -0
- package/build/client/_app/immutable/nodes/10.BacbVQXe.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BacbVQXe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CF-CErr7.js +2 -0
- package/build/client/_app/immutable/nodes/11.CF-CErr7.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CF-CErr7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.CAPJJBGQ.js +1 -0
- package/build/client/_app/immutable/nodes/12.CAPJJBGQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CAPJJBGQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DFyrYJal.js +1 -0
- package/build/client/_app/immutable/nodes/13.DFyrYJal.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DFyrYJal.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.D35Ot9wm.js +46 -0
- package/build/client/_app/immutable/nodes/14.D35Ot9wm.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.D35Ot9wm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.Cp0A6oCa.js +1 -0
- package/build/client/_app/immutable/nodes/15.Cp0A6oCa.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.Cp0A6oCa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DFKUnwHk.js +1 -0
- package/build/client/_app/immutable/nodes/2.DFKUnwHk.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DFKUnwHk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DtSCxjUL.js +1 -0
- package/build/client/_app/immutable/nodes/3.DtSCxjUL.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DtSCxjUL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BY04Tg68.js +2 -0
- package/build/client/_app/immutable/nodes/4.BY04Tg68.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BY04Tg68.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CXq_oj0Q.js +1 -0
- package/build/client/_app/immutable/nodes/5.CXq_oj0Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CXq_oj0Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BVjg5uYT.js +1 -0
- package/build/client/_app/immutable/nodes/6.BVjg5uYT.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BVjg5uYT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BX0HQjn_.js +1 -0
- package/build/client/_app/immutable/nodes/7.BX0HQjn_.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BX0HQjn_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.De0kNeyT.js +4 -0
- package/build/client/_app/immutable/nodes/8.De0kNeyT.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.De0kNeyT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CjcFLNkE.js +1 -0
- package/build/client/_app/immutable/nodes/9.CjcFLNkE.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CjcFLNkE.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/apple-touch-icon.png +0 -0
- package/build/client/favicon.ico +0 -0
- package/build/client/robots.txt +3 -0
- package/build/client/robots.txt.br +0 -0
- package/build/client/robots.txt.gz +0 -0
- package/build/env.js +70 -0
- package/build/handler.js +26 -0
- package/build/index.js +149 -0
- package/build/server/chunks/chunks/AssistantAvatar.js-CR1xF68O.js +294 -0
- package/build/server/chunks/chunks/AvatarPicker.js-DZPhpy7w.js +136 -0
- package/build/server/chunks/chunks/Composer.js-mKR_nJD9.js +332 -0
- package/build/server/chunks/chunks/ComposerDock.js-CCH7a93l.js +58 -0
- package/build/server/chunks/chunks/CopyButton.js-BztgBjPI.js +81 -0
- package/build/server/chunks/chunks/DotGrid.js-CftrAYTh.js +107 -0
- package/build/server/chunks/chunks/LucideIcon.js-B_cwdnXZ.js +19 -0
- package/build/server/chunks/chunks/MemoryChangeItem.js-BBDjCjIq.js +2557 -0
- package/build/server/chunks/chunks/ModelMenu.js-DHccPOZS.js +510 -0
- package/build/server/chunks/chunks/MoveToFolderMenu.js-DI6yuRr_.js +288 -0
- package/build/server/chunks/chunks/NewChatForm.js-BesIRgmI.js +296 -0
- package/build/server/chunks/chunks/NewFolderDialog.js-BTTYnEvA.js +192 -0
- package/build/server/chunks/chunks/Notifications.js-BUIjQEFf.js +762 -0
- package/build/server/chunks/chunks/PageHeader.js-CBhoVn_r.js +59 -0
- package/build/server/chunks/chunks/RenameFolderDialog.js-DRXA1rE1.js +258 -0
- package/build/server/chunks/chunks/Rich.js-DEvHcohw.js +31 -0
- package/build/server/chunks/chunks/StepIcon.js-DbIHgd-j.js +38 -0
- package/build/server/chunks/chunks/TopBar.js-DL3V5e8_.js +34 -0
- package/build/server/chunks/chunks/TypedText.js-CBSV0Eww.js +62 -0
- package/build/server/chunks/chunks/UserAvatar.js-zDozVLYj.js +17 -0
- package/build/server/chunks/chunks/UserMenu.js-CD42Fp5q.js +960 -0
- package/build/server/chunks/chunks/access.js-0oJZgR4f.js +40 -0
- package/build/server/chunks/chunks/after-sleep.js-BBvqb2L4.js +10 -0
- package/build/server/chunks/chunks/alert-dialog.js-DFswoRFb.js +505 -0
- package/build/server/chunks/chunks/articles.js-DmiBPIor.js +16 -0
- package/build/server/chunks/chunks/auth.js-avakWenI.js +20044 -0
- package/build/server/chunks/chunks/avatars.js-CZXD-JBu.js +496 -0
- package/build/server/chunks/chunks/badge.js-CBKfxi1n.js +38 -0
- package/build/server/chunks/chunks/check.js-DlXI7kOF.js +15 -0
- package/build/server/chunks/chunks/chevron-right.js-D2YPHtEd.js +15 -0
- package/build/server/chunks/chunks/chevrons-up-down.js-kIInlPpp.js +15 -0
- package/build/server/chunks/chunks/client.js-DXLagFo3.js +120 -0
- package/build/server/chunks/chunks/clock.js-DLKiHbA7.js +19 -0
- package/build/server/chunks/chunks/collapsible.js-TEhMCaES.js +410 -0
- package/build/server/chunks/chunks/command.js-DYF1chyA.js +2231 -0
- package/build/server/chunks/chunks/core.js-fgH-0YTF.js +6 -0
- package/build/server/chunks/chunks/dialog.js-CSahHfdK.js +544 -0
- package/build/server/chunks/chunks/dist.js-Dgve-3EB.js +600 -0
- package/build/server/chunks/chunks/dist2.js-DzuN_1ds.js +347 -0
- package/build/server/chunks/chunks/dropdown-menu.js-CnOm2iRl.js +2396 -0
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
- package/build/server/chunks/chunks/eraser.js-CwqAwzLd.js +15 -0
- package/build/server/chunks/chunks/exports.js-DPPmkIPk.js +236 -0
- package/build/server/chunks/chunks/factory.js-B2lDZWU5.js +2344 -0
- package/build/server/chunks/chunks/files.js-BTCcxPsy.js +33 -0
- package/build/server/chunks/chunks/folder-input.js-bTjsbAVr.js +19 -0
- package/build/server/chunks/chunks/format.js-D-G-GNZJ.js +57 -0
- package/build/server/chunks/chunks/forms.js-TIFaBiDZ.js +4052 -0
- package/build/server/chunks/chunks/hidden-input.js-3jXOp67_.js +47 -0
- package/build/server/chunks/chunks/http.js-B-SIUg23.js +19 -0
- package/build/server/chunks/chunks/i18n.js-gmnYop5e.js +5049 -0
- package/build/server/chunks/chunks/icons.js-DqrSaQen.js +32087 -0
- package/build/server/chunks/chunks/index-server.js-BgjjN9Dl.js +146 -0
- package/build/server/chunks/chunks/internal.js-CPnM6pod.js +28 -0
- package/build/server/chunks/chunks/internal2.js-BJdu5v6t.js +1135 -0
- package/build/server/chunks/chunks/key-round.js-ALDn8H2Z.js +20 -0
- package/build/server/chunks/chunks/last-profile.js-CGCyMPCt.js +6 -0
- package/build/server/chunks/chunks/media-refs.js-CTbNjDi5.js +129 -0
- package/build/server/chunks/chunks/memory-categories.js-BMxcWbJ1.js +141 -0
- package/build/server/chunks/chunks/memory-export.js-B-0sQxo9.js +126 -0
- package/build/server/chunks/chunks/memory.js-BmjM2yTP.js +25 -0
- package/build/server/chunks/chunks/message-circle.js-Boy7xak8.js +15 -0
- package/build/server/chunks/chunks/motion.js-e6Xy0FvI.js +224 -0
- package/build/server/chunks/chunks/node.js-B1BYsTq2.js +9 -0
- package/build/server/chunks/chunks/node2.js-BoQ3pSBK.js +7 -0
- package/build/server/chunks/chunks/node3.js-DUajZgS1.js +2420 -0
- package/build/server/chunks/chunks/openai.js-usndTuuG.js +20473 -0
- package/build/server/chunks/chunks/paths.js-Dv5_wc5b.js +19 -0
- package/build/server/chunks/chunks/pencil.js-BBTMEZ3O.js +15 -0
- package/build/server/chunks/chunks/plus.js-BEkOQr9Q.js +15 -0
- package/build/server/chunks/chunks/preferences.svelte.js-CzoLtrIH.js +93 -0
- package/build/server/chunks/chunks/remote.js-DRgAwsBW.js +3 -0
- package/build/server/chunks/chunks/rolldown-runtime.js-n5G0F_TW.js +37 -0
- package/build/server/chunks/chunks/routing.js-CQ7vk27s.js +265 -0
- package/build/server/chunks/chunks/schedule.js-22hng-Kw.js +296 -0
- package/build/server/chunks/chunks/sdk.js-CRLWYx_O.js +42918 -0
- package/build/server/chunks/chunks/sdk2.js-Dp6IbCdi.js +13701 -0
- package/build/server/chunks/chunks/sdk3.js-DEwIpbCP.js +4 -0
- package/build/server/chunks/chunks/select.js-DGOA1VL9.js +1965 -0
- package/build/server/chunks/chunks/server.js-XxNf6kVC.js +3907 -0
- package/build/server/chunks/chunks/shared.js-1FwmeXhQ.js +789 -0
- package/build/server/chunks/chunks/sidebar.js-B-PyxBE9.js +1498 -0
- package/build/server/chunks/chunks/square-pen.js-B7nqpNVl.js +20 -0
- package/build/server/chunks/chunks/src.js-Cb-pJk2c.js +25288 -0
- package/build/server/chunks/chunks/state.js-CrwNc-tR.js +67 -0
- package/build/server/chunks/chunks/suggestions.js-DxdV1W1D.js +15 -0
- package/build/server/chunks/chunks/switch.js-CDuy0MzW.js +283 -0
- package/build/server/chunks/chunks/terminal.js-BEi5NMPR.js +15 -0
- package/build/server/chunks/chunks/textarea.js-DnOcXQXd.js +25 -0
- package/build/server/chunks/chunks/tint.js-D75gRPbz.js +165 -0
- package/build/server/chunks/chunks/tooltip.js-0flEKjnb.js +5863 -0
- package/build/server/chunks/chunks/uneval.js-C7SIrMEV.js +536 -0
- package/build/server/chunks/chunks/usage.js-BzKKyzUN.js +27 -0
- package/build/server/chunks/chunks/utils.js-rQQrRQUR.js +1020 -0
- package/build/server/chunks/chunks/utils2.js-BgS8NcJx.js +1167 -0
- package/build/server/chunks/chunks/zod.js-DkbjBCP6.js +18824 -0
- package/build/server/chunks/chunks/zod2.js-FNRC10wS.js +4 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/continue/_server.ts.js-DPkjAoli.js +45 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/effort/_server.ts.js-B8su8yn5.js +46 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/events/_server.ts.js-CLDxKKTx.js +73 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/folder/_server.ts.js-DT3NoKYe.js +54 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/_server.ts.js-bvxQlwcS.js +52 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/messages/_server.ts.js-ClMX8O_R.js +57 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/preset/_server.ts.js-DQ8N5-g_.js +50 -0
- package/build/server/chunks/entries/endpoints/api/c/_id_/stop/_server.ts.js-4v8WbwCB.js +43 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-lUrCowKV.js +78 -0
- package/build/server/chunks/entries/endpoints/api/hooks/_token_/_server.ts.js-CoqUCiud.js +49 -0
- package/build/server/chunks/entries/endpoints/api/icons/_name_/_server.ts.js-k_TzYggq.js +18 -0
- package/build/server/chunks/entries/endpoints/api/models/_server.ts.js-BnE6M4aY.js +56 -0
- package/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/_server.ts.js-7cVqAe1A.js +50 -0
- package/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/_server.ts.js-nebszEA8.js +42 -0
- package/build/server/chunks/entries/endpoints/api/notifications/clear/_server.ts.js-8UNQWqlv.js +43 -0
- package/build/server/chunks/entries/endpoints/api/notifications/seen/_server.ts.js-BigNQ41d.js +43 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_file_/_server.ts.js-CVZofPL8.js +56 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_server.ts.js--huBNcxm.js +57 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_id_/undo/_server.ts.js-DILraLKg.js +57 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/running/_server.ts.js-DysLWyt1.js +79 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/_server.ts.js-B8HQNn05.js +53 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/templates/_id_/cover/_server.ts.js-DCJqd-KE.js +59 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/_server.ts.js-DJh0dkU7.js +44 -0
- package/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_server.ts.js-CQi0je7g.js +72 -0
- package/build/server/chunks/entries/endpoints/logout/_server.ts.js-iwUOTHUJ.js +46 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-BjT9T-qE.js +22 -0
- package/build/server/chunks/entries/hooks.server.js-CA451orY.js +1956 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-DeA1Se1v.js +34 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-Cc0HS5vE.js +77 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-BP9VmKmv.js +20 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-BP2EdQl3.js +5 -0
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-BGy54zg7.js +310 -0
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-DC0lzbwL.js +2092 -0
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-to8Vy4NV.js +42 -0
- package/build/server/chunks/entries/pages/login/_page.svelte.js-CRFRcLqG.js +74 -0
- package/build/server/chunks/entries/pages/p/_slug_/_layout.server.ts.js-BATtKhxU.js +50 -0
- package/build/server/chunks/entries/pages/p/_slug_/_layout.svelte.js-B4A4RVlj.js +1897 -0
- package/build/server/chunks/entries/pages/p/_slug_/_page.server.ts.js-CwhG-rBA.js +71 -0
- package/build/server/chunks/entries/pages/p/_slug_/_page.svelte.js-v85HZSJv.js +132 -0
- package/build/server/chunks/entries/pages/p/_slug_/automations/_page.server.ts.js-BYjEh_94.js +269 -0
- package/build/server/chunks/entries/pages/p/_slug_/automations/_page.svelte.js-C9MxplNZ.js +423 -0
- package/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.server.ts.js-DqYn7Ov8.js +68 -0
- package/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.svelte.js-DO1qyELK.js +2072 -0
- package/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.server.ts.js-DK68gPIS.js +101 -0
- package/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.svelte.js-a31Wj0H5.js +321 -0
- package/build/server/chunks/entries/pages/p/_slug_/images/_page.server.ts.js-DYwxYJjv.js +145 -0
- package/build/server/chunks/entries/pages/p/_slug_/images/_page.svelte.js-H3zU7YA6.js +526 -0
- package/build/server/chunks/entries/pages/p/_slug_/memory/_page.server.ts.js-C6jVrFqG.js +99 -0
- package/build/server/chunks/entries/pages/p/_slug_/memory/_page.svelte.js-D54hFXGF.js +902 -0
- package/build/server/chunks/entries/pages/p/_slug_/settings/_page.server.ts.js-BvhbrusJ.js +106 -0
- package/build/server/chunks/entries/pages/p/_slug_/settings/_page.svelte.js-K9Rx0fue.js +581 -0
- package/build/server/chunks/entries/pages/p/_slug_/skills/_page.server.ts.js-X_toxkHr.js +45 -0
- package/build/server/chunks/entries/pages/p/_slug_/skills/_page.svelte.js-9BpNF-xF.js +132 -0
- package/build/server/chunks/entries/pages/p/_slug_/welcome/_page.server.ts.js-1d4vkOo-.js +129 -0
- package/build/server/chunks/entries/pages/p/_slug_/welcome/_page@.svelte.js-32N16gxF.js +223 -0
- package/build/server/chunks/entries/pages/profiles/_page.server.ts.js-CYu6Uj8H.js +32 -0
- package/build/server/chunks/entries/pages/profiles/_page.svelte.js-Bhw4E_wV.js +89 -0
- package/build/server/chunks/handler-CsXFmZYe.js +1735 -0
- package/build/server/chunks/index.js-kWlRiTFB.js +3700 -0
- package/build/server/chunks/manifest.js-BU_jyr1-.js +314 -0
- package/build/server/chunks/nodes/0.js-D4qm-LVJ.js +42 -0
- package/build/server/chunks/nodes/1.js-Fjtm11_Q.js +9 -0
- package/build/server/chunks/nodes/10.js-C0jWz6L_.js +45 -0
- package/build/server/chunks/nodes/11.js-CvxSawBf.js +45 -0
- package/build/server/chunks/nodes/12.js-CFwkqqPw.js +45 -0
- package/build/server/chunks/nodes/13.js-8e3_MY_4.js +45 -0
- package/build/server/chunks/nodes/14.js-dFhmLvor.js +45 -0
- package/build/server/chunks/nodes/15.js-alFwV-ia.js +45 -0
- package/build/server/chunks/nodes/2.js-DlqVofm5.js +46 -0
- package/build/server/chunks/nodes/3.js-B11kFzfi.js +45 -0
- package/build/server/chunks/nodes/4.js-CJOa-BdF.js +46 -0
- package/build/server/chunks/nodes/5.js-BiasAa82.js +50 -0
- package/build/server/chunks/nodes/6.js-vEMr5YOn.js +47 -0
- package/build/server/chunks/nodes/7.js-BwwcgtyP.js +45 -0
- package/build/server/chunks/nodes/8.js-Mqkjlq-6.js +45 -0
- package/build/server/chunks/nodes/9.js-DtRpQ_En.js +45 -0
- package/build/shims.js +33 -0
- package/dist/chunks/chunk-45BRG6A7.js +85 -0
- package/dist/chunks/chunk-CL6JQXXZ.js +38 -0
- package/dist/chunks/chunk-KZL3QNDA.js +14397 -0
- package/dist/chunks/chunk-N4H4AYCQ.js +20 -0
- package/dist/chunks/chunk-W4U7L4LF.js +47 -0
- package/dist/chunks/io-DMGTB3B7.js +12 -0
- package/dist/chunks/node-4RSVEEU6.js +2233 -0
- package/dist/chunks/node-BBTNNFRQ.js +20 -0
- package/dist/chunks/openai-LNQCFHTY.js +21690 -0
- package/dist/chunks/run-6LM42GJD.js +22287 -0
- package/dist/chunks/sdk-UNMKBESV.js +53 -0
- package/dist/chunks/sdk-Z2WD4F5K.js +30854 -0
- package/dist/chunks/zod-H7KMPIPH.js +19934 -0
- package/dist/cli.js +130 -0
- package/package.json +102 -0
- package/packages/core/drizzle/0000_init.sql +123 -0
- package/packages/core/drizzle/0001_triggers.sql +82 -0
- package/packages/core/drizzle/0002_default_preset.sql +1 -0
- package/packages/core/drizzle/0003_trigger_summary.sql +2 -0
- package/packages/core/drizzle/0004_skill_toggles.sql +1 -0
- package/packages/core/drizzle/0005_media.sql +21 -0
- package/packages/core/drizzle/0006_attachments.sql +25 -0
- package/packages/core/drizzle/0007_folders.sql +35 -0
- package/packages/core/drizzle/0008_avatars.sql +26 -0
- package/packages/core/drizzle/0009_subagents.sql +28 -0
- package/packages/core/drizzle/0010_soul.sql +1 -0
- package/packages/core/drizzle/0011_claude_plan.sql +1 -0
- package/packages/core/drizzle/0012_model_switch.sql +4 -0
- package/packages/core/drizzle/0013_nolune_format.sql +1 -0
- package/packages/core/drizzle/0014_nolune_rename.sql +3 -0
- package/packages/core/drizzle/0015_learn_from_chats.sql +2 -0
- package/packages/core/drizzle/0016_memory_changes.sql +19 -0
- package/packages/core/drizzle/0017_member_person_note.sql +1 -0
- package/packages/core/drizzle/meta/0000_snapshot.json +809 -0
- package/packages/core/drizzle/meta/0001_snapshot.json +1354 -0
- package/packages/core/drizzle/meta/0002_snapshot.json +1362 -0
- package/packages/core/drizzle/meta/0003_snapshot.json +1376 -0
- package/packages/core/drizzle/meta/0004_snapshot.json +1384 -0
- package/packages/core/drizzle/meta/0005_snapshot.json +1523 -0
- package/packages/core/drizzle/meta/0006_snapshot.json +1679 -0
- package/packages/core/drizzle/meta/0007_snapshot.json +1921 -0
- package/packages/core/drizzle/meta/0008_snapshot.json +1929 -0
- package/packages/core/drizzle/meta/0009_snapshot.json +2109 -0
- package/packages/core/drizzle/meta/0010_snapshot.json +2117 -0
- package/packages/core/drizzle/meta/0011_snapshot.json +2124 -0
- package/packages/core/drizzle/meta/0012_snapshot.json +2138 -0
- package/packages/core/drizzle/meta/0013_snapshot.json +2145 -0
- package/packages/core/drizzle/meta/0014_snapshot.json +2145 -0
- package/packages/core/drizzle/meta/0015_snapshot.json +2160 -0
- package/packages/core/drizzle/meta/0016_snapshot.json +2286 -0
- package/packages/core/drizzle/meta/0017_snapshot.json +2293 -0
- package/packages/core/drizzle/meta/_journal.json +132 -0
- package/packages/core/image-templates/app-icon/TEMPLATE.md +37 -0
- package/packages/core/image-templates/app-icon/cover.webp +0 -0
- package/packages/core/image-templates/coloring-page/TEMPLATE.md +14 -0
- package/packages/core/image-templates/coloring-page/cover.webp +0 -0
- package/packages/core/image-templates/concept-art/TEMPLATE.md +46 -0
- package/packages/core/image-templates/concept-art/cover.webp +0 -0
- package/packages/core/image-templates/couple-portrait/TEMPLATE.md +35 -0
- package/packages/core/image-templates/couple-portrait/cover.webp +0 -0
- package/packages/core/image-templates/dream-bouquet/TEMPLATE.md +36 -0
- package/packages/core/image-templates/dream-bouquet/cover.webp +0 -0
- package/packages/core/image-templates/family-crest/TEMPLATE.md +38 -0
- package/packages/core/image-templates/family-crest/cover.webp +0 -0
- package/packages/core/image-templates/nail-art/TEMPLATE.md +32 -0
- package/packages/core/image-templates/nail-art/cover.webp +0 -0
- package/packages/core/image-templates/outfit-board/TEMPLATE.md +46 -0
- package/packages/core/image-templates/outfit-board/cover.webp +0 -0
- package/packages/core/image-templates/party-invitation/TEMPLATE.md +49 -0
- package/packages/core/image-templates/party-invitation/cover.webp +0 -0
- package/packages/core/image-templates/photo-booth/TEMPLATE.md +33 -0
- package/packages/core/image-templates/photo-booth/cover.webp +0 -0
- package/packages/core/image-templates/scribble/TEMPLATE.md +29 -0
- package/packages/core/image-templates/scribble/cover.webp +0 -0
- package/packages/core/image-templates/sprite-sheet/TEMPLATE.md +45 -0
- package/packages/core/image-templates/sprite-sheet/cover.webp +0 -0
- package/packages/core/image-templates/sticker-pack/TEMPLATE.md +37 -0
- package/packages/core/image-templates/sticker-pack/cover.webp +0 -0
- package/packages/core/image-templates/storybook-page/TEMPLATE.md +34 -0
- package/packages/core/image-templates/storybook-page/cover.webp +0 -0
- package/packages/core/image-templates/tattoo/TEMPLATE.md +44 -0
- package/packages/core/image-templates/tattoo/cover.webp +0 -0
- package/packages/core/image-templates/tileable-texture/TEMPLATE.md +34 -0
- package/packages/core/image-templates/tileable-texture/cover.webp +0 -0
- package/packages/core/image-templates/tiny-world/TEMPLATE.md +15 -0
- package/packages/core/image-templates/tiny-world/cover.webp +0 -0
- package/packages/core/image-templates/trip-postcard/TEMPLATE.md +21 -0
- package/packages/core/image-templates/trip-postcard/cover.webp +0 -0
- package/packages/core/image-templates/wanted-poster/TEMPLATE.md +27 -0
- package/packages/core/image-templates/wanted-poster/cover.webp +0 -0
- package/packages/core/skills/automations/SKILL.md +91 -0
- package/packages/core/skills/generate-images/SKILL.md +115 -0
- package/packages/core/skills/nolune/SKILL.md +281 -0
- package/packages/core/skills/subagents/SKILL.md +91 -0
- package/packages/core/skills/view-images/SKILL.md +88 -0
|
@@ -0,0 +1,2231 @@
|
|
|
1
|
+
import { af as spread_props, ag as bind_props, ap as escape_html, ai as props_id, aj as attributes, ax as snapshot, _ as derived, am as clsx, al as attr } from './server.js-XxNf6kVC.js';
|
|
2
|
+
import './client.js-DXLagFo3.js';
|
|
3
|
+
import { c as cn } from './utils2.js-BgS8NcJx.js';
|
|
4
|
+
import { f as createBitsAttrs, k as createId, n as noop, e as boxWith, C as Context, Q as afterTick, h as attachRef, a5 as getFirstNonCommentChild, a2 as ENTER, H as HOME, v as ARROW_LEFT, x as ARROW_UP, A as ARROW_RIGHT, u as ARROW_DOWN, m as mergeProps, w as watch, N as boolToStr, a6 as useId, j as boolToEmptyStrOrUndef } from './tooltip.js-0flEKjnb.js';
|
|
5
|
+
import { s as srOnlyStyles } from './hidden-input.js-3jXOp67_.js';
|
|
6
|
+
import { a as afterSleep } from './after-sleep.js-BBvqb2L4.js';
|
|
7
|
+
import { a as Dialog, b as Dialog_header, c as Dialog_title, d as Dialog_description, e as Dialog_content } from './dialog.js-CSahHfdK.js';
|
|
8
|
+
import { t as tv, I as Input } from './forms.js-TIFaBiDZ.js';
|
|
9
|
+
import { I as Icon } from './AssistantAvatar.js-CR1xF68O.js';
|
|
10
|
+
import { C as Check } from './check.js-DlXI7kOF.js';
|
|
11
|
+
|
|
12
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/utils.js
|
|
13
|
+
function findNextSibling(el, selector) {
|
|
14
|
+
let sibling = el.nextElementSibling;
|
|
15
|
+
while (sibling) {
|
|
16
|
+
if (sibling.matches(selector)) return sibling;
|
|
17
|
+
sibling = sibling.nextElementSibling;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function findPreviousSibling(el, selector) {
|
|
21
|
+
let sibling = el.previousElementSibling;
|
|
22
|
+
while (sibling) {
|
|
23
|
+
if (sibling.matches(selector)) return sibling;
|
|
24
|
+
sibling = sibling.previousElementSibling;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/internal/css-escape.js
|
|
29
|
+
/**
|
|
30
|
+
* https://github.com/mathiasbynens/CSS.escape
|
|
31
|
+
*
|
|
32
|
+
* @param value - The value to escape for use as a CSS identifier
|
|
33
|
+
* @returns The escaped CSS identifier string
|
|
34
|
+
*/
|
|
35
|
+
function cssEscape(value) {
|
|
36
|
+
if (typeof CSS !== "undefined" && typeof CSS.escape === "function") return CSS.escape(value);
|
|
37
|
+
const length = value.length;
|
|
38
|
+
let index = -1;
|
|
39
|
+
let codeUnit;
|
|
40
|
+
let result = "";
|
|
41
|
+
const firstCodeUnit = value.charCodeAt(0);
|
|
42
|
+
if (length === 1 && firstCodeUnit === 45) return "\\" + value;
|
|
43
|
+
while (++index < length) {
|
|
44
|
+
codeUnit = value.charCodeAt(index);
|
|
45
|
+
if (codeUnit === 0) {
|
|
46
|
+
result += "�";
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if (codeUnit >= 1 && codeUnit <= 31 || codeUnit === 127 || index === 0 && codeUnit >= 48 && codeUnit <= 57 || index === 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit === 45) {
|
|
50
|
+
result += "\\" + codeUnit.toString(16) + " ";
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (codeUnit >= 128 || codeUnit === 45 || codeUnit === 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
|
|
54
|
+
result += value.charAt(index);
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
result += "\\" + value.charAt(index);
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/command.svelte.js
|
|
63
|
+
var COMMAND_VALUE_ATTR = "data-value";
|
|
64
|
+
var commandAttrs = createBitsAttrs({
|
|
65
|
+
component: "command",
|
|
66
|
+
parts: [
|
|
67
|
+
"root",
|
|
68
|
+
"list",
|
|
69
|
+
"input",
|
|
70
|
+
"separator",
|
|
71
|
+
"loading",
|
|
72
|
+
"empty",
|
|
73
|
+
"group",
|
|
74
|
+
"group-items",
|
|
75
|
+
"group-heading",
|
|
76
|
+
"item",
|
|
77
|
+
"viewport",
|
|
78
|
+
"input-label"
|
|
79
|
+
]
|
|
80
|
+
});
|
|
81
|
+
var COMMAND_GROUP_SELECTOR = commandAttrs.selector("group");
|
|
82
|
+
var COMMAND_GROUP_ITEMS_SELECTOR = commandAttrs.selector("group-items");
|
|
83
|
+
var COMMAND_GROUP_HEADING_SELECTOR = commandAttrs.selector("group-heading");
|
|
84
|
+
var COMMAND_ITEM_SELECTOR = commandAttrs.selector("item");
|
|
85
|
+
var COMMAND_VALID_ITEM_SELECTOR = `${commandAttrs.selector("item")}:not([aria-disabled="true"])`;
|
|
86
|
+
var CommandRootContext = new Context("Command.Root");
|
|
87
|
+
var CommandListContext = new Context("Command.List");
|
|
88
|
+
var CommandGroupContainerContext = new Context("Command.Group");
|
|
89
|
+
var defaultState = {
|
|
90
|
+
search: "",
|
|
91
|
+
value: "",
|
|
92
|
+
filtered: {
|
|
93
|
+
count: 0,
|
|
94
|
+
items: /* @__PURE__ */ new Map(),
|
|
95
|
+
groups: /* @__PURE__ */ new Set()
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var CommandRootState = class CommandRootState {
|
|
99
|
+
static create(opts) {
|
|
100
|
+
return CommandRootContext.set(new CommandRootState(opts));
|
|
101
|
+
}
|
|
102
|
+
opts;
|
|
103
|
+
attachment;
|
|
104
|
+
#updateScheduled = false;
|
|
105
|
+
#isInitialMount = true;
|
|
106
|
+
sortAfterTick = false;
|
|
107
|
+
sortAndFilterAfterTick = false;
|
|
108
|
+
allItems = /* @__PURE__ */ new Set();
|
|
109
|
+
allGroups = /* @__PURE__ */ new Map();
|
|
110
|
+
allIds = /* @__PURE__ */ new Map();
|
|
111
|
+
key = 0;
|
|
112
|
+
viewportNode = null;
|
|
113
|
+
inputNode = null;
|
|
114
|
+
labelNode = null;
|
|
115
|
+
commandState = defaultState;
|
|
116
|
+
_commandState = defaultState;
|
|
117
|
+
#snapshot() {
|
|
118
|
+
return snapshot(this._commandState);
|
|
119
|
+
}
|
|
120
|
+
#scheduleUpdate() {
|
|
121
|
+
if (this.#updateScheduled) return;
|
|
122
|
+
this.#updateScheduled = true;
|
|
123
|
+
afterTick(() => {
|
|
124
|
+
this.#updateScheduled = false;
|
|
125
|
+
const currentState = this.#snapshot();
|
|
126
|
+
if (!Object.is(this.commandState, currentState)) {
|
|
127
|
+
this.commandState = currentState;
|
|
128
|
+
this.opts.onStateChange?.current?.(currentState);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
setState(key, value, preventScroll) {
|
|
133
|
+
if (Object.is(this._commandState[key], value)) return;
|
|
134
|
+
this._commandState[key] = value;
|
|
135
|
+
if (key === "search") {
|
|
136
|
+
this.#filterItems();
|
|
137
|
+
this.#sort();
|
|
138
|
+
} else if (key === "value") {
|
|
139
|
+
if (!preventScroll) this.#scrollSelectedIntoView();
|
|
140
|
+
}
|
|
141
|
+
this.#scheduleUpdate();
|
|
142
|
+
}
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
this.opts = opts;
|
|
145
|
+
this.attachment = attachRef(this.opts.ref);
|
|
146
|
+
const defaults = {
|
|
147
|
+
...this._commandState,
|
|
148
|
+
value: this.opts.value.current ?? ""
|
|
149
|
+
};
|
|
150
|
+
this._commandState = defaults;
|
|
151
|
+
this.commandState = defaults;
|
|
152
|
+
this.onkeydown = this.onkeydown.bind(this);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Calculates score for an item based on search text and keywords.
|
|
156
|
+
* Higher score = better match.
|
|
157
|
+
*
|
|
158
|
+
* @param value - Item's display text
|
|
159
|
+
* @param keywords - Optional keywords to boost scoring
|
|
160
|
+
* @returns Score from 0-1, where 0 = no match
|
|
161
|
+
*/
|
|
162
|
+
#score(value, keywords) {
|
|
163
|
+
const filter = this.opts.filter.current ?? computeCommandScore;
|
|
164
|
+
return value ? filter(value, this._commandState.search, keywords) : 0;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Sorts items and groups based on search scores.
|
|
168
|
+
* Groups are sorted by their highest scoring item.
|
|
169
|
+
* When no search active, selects first item.
|
|
170
|
+
*/
|
|
171
|
+
#sort() {
|
|
172
|
+
if (!this._commandState.search || this.opts.shouldFilter.current === false) {
|
|
173
|
+
if (!this._commandState.value || !this.#isInitialMount) this.#selectFirstItem();
|
|
174
|
+
else if (this.#isInitialMount && this._commandState.value) this.#scrollInitialValue();
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const scores = this._commandState.filtered.items;
|
|
178
|
+
const groups = [];
|
|
179
|
+
for (const value of this._commandState.filtered.groups) {
|
|
180
|
+
const items = this.allGroups.get(value);
|
|
181
|
+
let max = 0;
|
|
182
|
+
if (!items) {
|
|
183
|
+
groups.push([value, max]);
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
for (const item of items) {
|
|
187
|
+
const score = scores.get(item);
|
|
188
|
+
max = Math.max(score ?? 0, max);
|
|
189
|
+
}
|
|
190
|
+
groups.push([value, max]);
|
|
191
|
+
}
|
|
192
|
+
const listInsertionElement = this.viewportNode;
|
|
193
|
+
const sorted = this.getValidItems().sort((a, b) => {
|
|
194
|
+
const valueA = a.getAttribute("data-value");
|
|
195
|
+
const valueB = b.getAttribute("data-value");
|
|
196
|
+
const scoresA = scores.get(valueA) ?? 0;
|
|
197
|
+
return (scores.get(valueB) ?? 0) - scoresA;
|
|
198
|
+
});
|
|
199
|
+
for (const item of sorted) {
|
|
200
|
+
const group = item.closest(COMMAND_GROUP_ITEMS_SELECTOR);
|
|
201
|
+
if (group) {
|
|
202
|
+
const itemToAppend = item.parentElement === group ? item : item.closest(`${COMMAND_GROUP_ITEMS_SELECTOR} > *`);
|
|
203
|
+
if (itemToAppend) group.appendChild(itemToAppend);
|
|
204
|
+
} else {
|
|
205
|
+
const itemToAppend = item.parentElement === listInsertionElement ? item : item.closest(`${COMMAND_GROUP_ITEMS_SELECTOR} > *`);
|
|
206
|
+
if (itemToAppend) listInsertionElement?.appendChild(itemToAppend);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const sortedGroups = groups.sort((a, b) => b[1] - a[1]);
|
|
210
|
+
for (const group of sortedGroups) {
|
|
211
|
+
const element = listInsertionElement?.querySelector(`${COMMAND_GROUP_SELECTOR}[${COMMAND_VALUE_ATTR}="${cssEscape(group[0])}"]`);
|
|
212
|
+
element?.parentElement?.appendChild(element);
|
|
213
|
+
}
|
|
214
|
+
this.#selectFirstItem();
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Sets current value and triggers re-render if cleared.
|
|
218
|
+
*
|
|
219
|
+
* @param value - New value to set
|
|
220
|
+
*/
|
|
221
|
+
setValue(value, opts) {
|
|
222
|
+
if (value !== this.opts.value.current && value === "") afterTick(() => {
|
|
223
|
+
this.key++;
|
|
224
|
+
});
|
|
225
|
+
this.setState("value", value, opts);
|
|
226
|
+
this.opts.value.current = value;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Selects first non-disabled item on next tick.
|
|
230
|
+
*/
|
|
231
|
+
#selectFirstItem() {
|
|
232
|
+
afterTick(() => {
|
|
233
|
+
const value = this.getValidItems().find((item) => item.getAttribute("aria-disabled") !== "true")?.getAttribute(COMMAND_VALUE_ATTR);
|
|
234
|
+
const shouldPreventScroll = this.#isInitialMount && this.opts.disableInitialScroll.current;
|
|
235
|
+
this.setValue(value ?? "", shouldPreventScroll);
|
|
236
|
+
this.#isInitialMount = false;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Scrolls the initial value into view if it exists and is not the first item.
|
|
241
|
+
* Called during initial mount when a value is provided.
|
|
242
|
+
*/
|
|
243
|
+
#scrollInitialValue() {
|
|
244
|
+
afterTick(() => {
|
|
245
|
+
if (!this.opts.disableInitialScroll.current) this.#scrollSelectedIntoView();
|
|
246
|
+
this.#isInitialMount = false;
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Updates filtered items/groups based on search.
|
|
251
|
+
* Recalculates scores and filtered count.
|
|
252
|
+
*/
|
|
253
|
+
#filterItems() {
|
|
254
|
+
if (!this._commandState.search || this.opts.shouldFilter.current === false) {
|
|
255
|
+
this._commandState.filtered.count = this.allItems.size;
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
this._commandState.filtered.groups = /* @__PURE__ */ new Set();
|
|
259
|
+
let itemCount = 0;
|
|
260
|
+
for (const id of this.allItems) {
|
|
261
|
+
const value = this.allIds.get(id)?.value ?? "";
|
|
262
|
+
const keywords = this.allIds.get(id)?.keywords ?? [];
|
|
263
|
+
const rank = this.#score(value, keywords);
|
|
264
|
+
this._commandState.filtered.items.set(id, rank);
|
|
265
|
+
if (rank > 0) itemCount++;
|
|
266
|
+
}
|
|
267
|
+
for (const [groupId, group] of this.allGroups) for (const itemId of group) {
|
|
268
|
+
const currItem = this._commandState.filtered.items.get(itemId);
|
|
269
|
+
if (currItem && currItem > 0) {
|
|
270
|
+
this._commandState.filtered.groups.add(groupId);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
this._commandState.filtered.count = itemCount;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Gets all non-disabled, visible command items.
|
|
278
|
+
*
|
|
279
|
+
* @returns Array of valid item elements
|
|
280
|
+
* @remarks Exposed for direct item access and bound checking
|
|
281
|
+
*/
|
|
282
|
+
getValidItems() {
|
|
283
|
+
const node = this.opts.ref.current;
|
|
284
|
+
if (!node) return [];
|
|
285
|
+
return Array.from(node.querySelectorAll(COMMAND_VALID_ITEM_SELECTOR)).filter((el) => !!el);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Gets all visible command items.
|
|
289
|
+
*
|
|
290
|
+
* @returns Array of valid item elements
|
|
291
|
+
* @remarks Exposed for direct item access and bound checking
|
|
292
|
+
*/
|
|
293
|
+
getVisibleItems() {
|
|
294
|
+
const node = this.opts.ref.current;
|
|
295
|
+
if (!node) return [];
|
|
296
|
+
return Array.from(node.querySelectorAll(COMMAND_ITEM_SELECTOR)).filter((el) => !!el);
|
|
297
|
+
}
|
|
298
|
+
/** Returns all visible items in a matrix structure
|
|
299
|
+
*
|
|
300
|
+
* @remarks Returns empty if the command isn't configured as a grid
|
|
301
|
+
*
|
|
302
|
+
* @returns
|
|
303
|
+
*/
|
|
304
|
+
get itemsGrid() {
|
|
305
|
+
if (!this.isGrid) return [];
|
|
306
|
+
const columns = this.opts.columns.current ?? 1;
|
|
307
|
+
const items = this.getVisibleItems();
|
|
308
|
+
const grid = [[]];
|
|
309
|
+
let currentGroup = items[0]?.getAttribute("data-group");
|
|
310
|
+
let column = 0;
|
|
311
|
+
let row = 0;
|
|
312
|
+
for (let i = 0; i < items.length; i++) {
|
|
313
|
+
const item = items[i];
|
|
314
|
+
const itemGroup = item?.getAttribute("data-group");
|
|
315
|
+
if (currentGroup !== itemGroup) {
|
|
316
|
+
currentGroup = itemGroup;
|
|
317
|
+
column = 1;
|
|
318
|
+
row++;
|
|
319
|
+
grid.push([{
|
|
320
|
+
index: i,
|
|
321
|
+
firstRowOfGroup: true,
|
|
322
|
+
ref: item
|
|
323
|
+
}]);
|
|
324
|
+
} else {
|
|
325
|
+
column++;
|
|
326
|
+
if (column > columns) {
|
|
327
|
+
row++;
|
|
328
|
+
column = 1;
|
|
329
|
+
grid.push([]);
|
|
330
|
+
}
|
|
331
|
+
grid[row]?.push({
|
|
332
|
+
index: i,
|
|
333
|
+
firstRowOfGroup: grid[row]?.[0]?.firstRowOfGroup ?? i === 0,
|
|
334
|
+
ref: item
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return grid;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Gets currently selected command item.
|
|
342
|
+
*
|
|
343
|
+
* @returns Selected element or undefined
|
|
344
|
+
*/
|
|
345
|
+
#getSelectedItem() {
|
|
346
|
+
const node = this.opts.ref.current;
|
|
347
|
+
if (!node) return;
|
|
348
|
+
const selectedNode = node.querySelector(`${COMMAND_VALID_ITEM_SELECTOR}[data-selected]`);
|
|
349
|
+
if (!selectedNode) return;
|
|
350
|
+
return selectedNode;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Scrolls selected item into view.
|
|
354
|
+
* Special handling for first items in groups.
|
|
355
|
+
*/
|
|
356
|
+
#scrollSelectedIntoView() {
|
|
357
|
+
afterTick(() => {
|
|
358
|
+
const item = this.#getSelectedItem();
|
|
359
|
+
if (!item) return;
|
|
360
|
+
const grandparent = item.parentElement?.parentElement;
|
|
361
|
+
if (!grandparent) return;
|
|
362
|
+
if (this.isGrid) {
|
|
363
|
+
const isFirstRowOfGroup = this.#itemIsFirstRowOfGroup(item);
|
|
364
|
+
item.scrollIntoView({ block: "nearest" });
|
|
365
|
+
if (isFirstRowOfGroup) {
|
|
366
|
+
(item?.closest(COMMAND_GROUP_SELECTOR)?.querySelector(COMMAND_GROUP_HEADING_SELECTOR))?.scrollIntoView({ block: "nearest" });
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
} else {
|
|
370
|
+
const firstChildOfParent = getFirstNonCommentChild(grandparent);
|
|
371
|
+
if (firstChildOfParent && firstChildOfParent.dataset?.value === item.dataset?.value) {
|
|
372
|
+
(item?.closest(COMMAND_GROUP_SELECTOR)?.querySelector(COMMAND_GROUP_HEADING_SELECTOR))?.scrollIntoView({ block: "nearest" });
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
item.scrollIntoView({ block: "nearest" });
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
#itemIsFirstRowOfGroup(item) {
|
|
380
|
+
const grid = this.itemsGrid;
|
|
381
|
+
if (grid.length === 0) return false;
|
|
382
|
+
for (let r = 0; r < grid.length; r++) {
|
|
383
|
+
const row = grid[r];
|
|
384
|
+
if (row === void 0) continue;
|
|
385
|
+
for (let c = 0; c < row.length; c++) {
|
|
386
|
+
const column = row[c];
|
|
387
|
+
if (column === void 0 || column.ref !== item) continue;
|
|
388
|
+
return column.firstRowOfGroup;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Sets selection to item at specified index in valid items array.
|
|
395
|
+
* If index is out of bounds, does nothing.
|
|
396
|
+
*
|
|
397
|
+
* @param index - Zero-based index of item to select
|
|
398
|
+
* @remarks
|
|
399
|
+
* Uses `getValidItems()` to get selectable items, filtering out disabled/hidden ones.
|
|
400
|
+
* Access valid items directly via `getValidItems()` to check bounds before calling.
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* // get valid items length for bounds check
|
|
404
|
+
* const items = getValidItems()
|
|
405
|
+
* if (index < items.length) {
|
|
406
|
+
* updateSelectedToIndex(index)
|
|
407
|
+
* }
|
|
408
|
+
*/
|
|
409
|
+
updateSelectedToIndex(index) {
|
|
410
|
+
const item = this.getValidItems()[index];
|
|
411
|
+
if (!item) return;
|
|
412
|
+
this.setValue(item.getAttribute(COMMAND_VALUE_ATTR) ?? "");
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Updates selected item by moving up/down relative to current selection.
|
|
416
|
+
* Handles wrapping when loop option is enabled.
|
|
417
|
+
*
|
|
418
|
+
* @param change - Direction to move: 1 for next item, -1 for previous item
|
|
419
|
+
* @remarks
|
|
420
|
+
* The loop behavior wraps:
|
|
421
|
+
* - From last item to first when moving next
|
|
422
|
+
* - From first item to last when moving previous
|
|
423
|
+
*
|
|
424
|
+
* Uses `getValidItems()` to get all selectable items, which filters out disabled/hidden items.
|
|
425
|
+
* You can call `getValidItems()` directly to get the current valid items array.
|
|
426
|
+
*
|
|
427
|
+
* @example
|
|
428
|
+
* // select next item
|
|
429
|
+
* updateSelectedByItem(1)
|
|
430
|
+
*
|
|
431
|
+
* // get all valid items
|
|
432
|
+
* const items = getValidItems()
|
|
433
|
+
*/
|
|
434
|
+
updateSelectedByItem(change) {
|
|
435
|
+
const selected = this.#getSelectedItem();
|
|
436
|
+
const items = this.getValidItems();
|
|
437
|
+
const index = items.findIndex((item) => item === selected);
|
|
438
|
+
let newSelected = items[index + change];
|
|
439
|
+
if (this.opts.loop.current) newSelected = index + change < 0 ? items[items.length - 1] : index + change === items.length ? items[0] : items[index + change];
|
|
440
|
+
if (newSelected) this.setValue(newSelected.getAttribute(COMMAND_VALUE_ATTR) ?? "");
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Moves selection to the first valid item in the next/previous group.
|
|
444
|
+
* If no group is found, falls back to selecting the next/previous item globally.
|
|
445
|
+
*
|
|
446
|
+
* @param change - Direction to move: 1 for next group, -1 for previous group
|
|
447
|
+
* @example
|
|
448
|
+
* // move to first item in next group
|
|
449
|
+
* updateSelectedByGroup(1)
|
|
450
|
+
*
|
|
451
|
+
* // move to first item in previous group
|
|
452
|
+
* updateSelectedByGroup(-1)
|
|
453
|
+
*/
|
|
454
|
+
updateSelectedByGroup(change) {
|
|
455
|
+
let group = this.#getSelectedItem()?.closest(COMMAND_GROUP_SELECTOR);
|
|
456
|
+
let item;
|
|
457
|
+
while (group && !item) {
|
|
458
|
+
group = change > 0 ? findNextSibling(group, COMMAND_GROUP_SELECTOR) : findPreviousSibling(group, COMMAND_GROUP_SELECTOR);
|
|
459
|
+
item = group?.querySelector(COMMAND_VALID_ITEM_SELECTOR);
|
|
460
|
+
}
|
|
461
|
+
if (item) this.setValue(item.getAttribute(COMMAND_VALUE_ATTR) ?? "");
|
|
462
|
+
else this.updateSelectedByItem(change);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Maps item id to display value and search keywords.
|
|
466
|
+
* Returns cleanup function to remove mapping.
|
|
467
|
+
*
|
|
468
|
+
* @param id - Unique item identifier
|
|
469
|
+
* @param value - Display text
|
|
470
|
+
* @param keywords - Optional search boost terms
|
|
471
|
+
* @returns Cleanup function
|
|
472
|
+
*/
|
|
473
|
+
registerValue(value, keywords) {
|
|
474
|
+
if (!(value && value === this.allIds.get(value)?.value)) this.allIds.set(value, {
|
|
475
|
+
value,
|
|
476
|
+
keywords
|
|
477
|
+
});
|
|
478
|
+
this._commandState.filtered.items.set(value, this.#score(value, keywords));
|
|
479
|
+
if (!this.sortAfterTick) {
|
|
480
|
+
this.sortAfterTick = true;
|
|
481
|
+
afterTick(() => {
|
|
482
|
+
this.#sort();
|
|
483
|
+
this.sortAfterTick = false;
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
return () => {
|
|
487
|
+
this.allIds.delete(value);
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Registers item in command list and its group.
|
|
492
|
+
* Handles filtering, sorting and selection updates.
|
|
493
|
+
*
|
|
494
|
+
* @param id - Item identifier
|
|
495
|
+
* @param groupId - Optional group to add item to
|
|
496
|
+
* @returns Cleanup function that handles selection
|
|
497
|
+
*/
|
|
498
|
+
registerItem(id, groupId) {
|
|
499
|
+
this.allItems.add(id);
|
|
500
|
+
if (groupId) {
|
|
501
|
+
if (!this.allGroups.has(groupId)) this.allGroups.set(groupId, /* @__PURE__ */ new Set([id]));
|
|
502
|
+
else this.allGroups.get(groupId).add(id);
|
|
503
|
+
}
|
|
504
|
+
if (!this.sortAndFilterAfterTick) {
|
|
505
|
+
this.sortAndFilterAfterTick = true;
|
|
506
|
+
afterTick(() => {
|
|
507
|
+
this.#filterItems();
|
|
508
|
+
this.#sort();
|
|
509
|
+
this.sortAndFilterAfterTick = false;
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
this.#scheduleUpdate();
|
|
513
|
+
return () => {
|
|
514
|
+
const selectedItem = this.#getSelectedItem();
|
|
515
|
+
this.allItems.delete(id);
|
|
516
|
+
this.commandState.filtered.items.delete(id);
|
|
517
|
+
this.#filterItems();
|
|
518
|
+
if (selectedItem?.getAttribute("id") === id) this.#selectFirstItem();
|
|
519
|
+
this.#scheduleUpdate();
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Creates empty group if not exists.
|
|
524
|
+
*
|
|
525
|
+
* @param id - Group identifier
|
|
526
|
+
* @returns Cleanup function
|
|
527
|
+
*/
|
|
528
|
+
registerGroup(id) {
|
|
529
|
+
if (!this.allGroups.has(id)) this.allGroups.set(id, /* @__PURE__ */ new Set());
|
|
530
|
+
return () => {
|
|
531
|
+
this.allIds.delete(id);
|
|
532
|
+
this.allGroups.delete(id);
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
get isGrid() {
|
|
536
|
+
return this.opts.columns.current !== null;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Selects last valid item.
|
|
540
|
+
*/
|
|
541
|
+
#last() {
|
|
542
|
+
return this.updateSelectedToIndex(this.getValidItems().length - 1);
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Handles next item selection:
|
|
546
|
+
* - Meta: Jump to last
|
|
547
|
+
* - Alt: Next group
|
|
548
|
+
* - Default: Next item
|
|
549
|
+
*
|
|
550
|
+
* @param e - Keyboard event
|
|
551
|
+
*/
|
|
552
|
+
#next(e) {
|
|
553
|
+
e.preventDefault();
|
|
554
|
+
if (e.metaKey) this.#last();
|
|
555
|
+
else if (e.altKey) this.updateSelectedByGroup(1);
|
|
556
|
+
else this.updateSelectedByItem(1);
|
|
557
|
+
}
|
|
558
|
+
#down(e) {
|
|
559
|
+
if (this.opts.columns.current === null) return;
|
|
560
|
+
e.preventDefault();
|
|
561
|
+
if (e.metaKey) this.updateSelectedByGroup(1);
|
|
562
|
+
else this.updateSelectedByItem(this.#nextRowColumnOffset(e));
|
|
563
|
+
}
|
|
564
|
+
#getColumn(item, grid) {
|
|
565
|
+
if (grid.length === 0) return null;
|
|
566
|
+
for (let r = 0; r < grid.length; r++) {
|
|
567
|
+
const row = grid[r];
|
|
568
|
+
if (row === void 0) continue;
|
|
569
|
+
for (let c = 0; c < row.length; c++) {
|
|
570
|
+
const column = row[c];
|
|
571
|
+
if (column === void 0 || column.ref !== item) continue;
|
|
572
|
+
return {
|
|
573
|
+
columnIndex: c,
|
|
574
|
+
rowIndex: r
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return null;
|
|
579
|
+
}
|
|
580
|
+
#nextRowColumnOffset(e) {
|
|
581
|
+
const grid = this.itemsGrid;
|
|
582
|
+
const selected = this.#getSelectedItem();
|
|
583
|
+
if (!selected) return 0;
|
|
584
|
+
const column = this.#getColumn(selected, grid);
|
|
585
|
+
if (!column) return 0;
|
|
586
|
+
let newItem = null;
|
|
587
|
+
const skipRows = e.altKey ? 1 : 0;
|
|
588
|
+
if (e.altKey && column.rowIndex === grid.length - 2 && !this.opts.loop.current) newItem = this.#findNextNonDisabledItem({
|
|
589
|
+
start: grid.length - 1,
|
|
590
|
+
end: grid.length,
|
|
591
|
+
expectedColumnIndex: column.columnIndex,
|
|
592
|
+
grid
|
|
593
|
+
});
|
|
594
|
+
else if (column.rowIndex === grid.length - 1) {
|
|
595
|
+
if (!this.opts.loop.current) return 0;
|
|
596
|
+
newItem = this.#findNextNonDisabledItem({
|
|
597
|
+
start: 0 + skipRows,
|
|
598
|
+
end: column.rowIndex,
|
|
599
|
+
expectedColumnIndex: column.columnIndex,
|
|
600
|
+
grid
|
|
601
|
+
});
|
|
602
|
+
} else {
|
|
603
|
+
newItem = this.#findNextNonDisabledItem({
|
|
604
|
+
start: column.rowIndex + 1 + skipRows,
|
|
605
|
+
end: grid.length,
|
|
606
|
+
expectedColumnIndex: column.columnIndex,
|
|
607
|
+
grid
|
|
608
|
+
});
|
|
609
|
+
if (newItem === null && this.opts.loop.current) newItem = this.#findNextNonDisabledItem({
|
|
610
|
+
start: 0,
|
|
611
|
+
end: column.rowIndex,
|
|
612
|
+
expectedColumnIndex: column.columnIndex,
|
|
613
|
+
grid
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
return this.#calculateOffset(selected, newItem);
|
|
617
|
+
}
|
|
618
|
+
/** Attempts to find the next non-disabled column that matches the expected column.
|
|
619
|
+
*
|
|
620
|
+
* @remarks
|
|
621
|
+
* - Skips over disabled columns
|
|
622
|
+
* - When a row is shorter than the expected column it defaults to the last item in the row
|
|
623
|
+
*
|
|
624
|
+
* @param param0
|
|
625
|
+
* @returns
|
|
626
|
+
*/
|
|
627
|
+
#findNextNonDisabledItem({ start, end, grid, expectedColumnIndex }) {
|
|
628
|
+
let newItem = null;
|
|
629
|
+
for (let r = start; r < end; r++) {
|
|
630
|
+
const row = grid[r];
|
|
631
|
+
newItem = row[expectedColumnIndex]?.ref ?? null;
|
|
632
|
+
if (newItem !== null && itemIsDisabled(newItem)) {
|
|
633
|
+
newItem = null;
|
|
634
|
+
continue;
|
|
635
|
+
}
|
|
636
|
+
if (newItem === null) for (let i = row.length - 1; i >= 0; i--) {
|
|
637
|
+
const item = row[row.length - 1];
|
|
638
|
+
if (item === void 0 || itemIsDisabled(item.ref)) continue;
|
|
639
|
+
newItem = item.ref;
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
return newItem;
|
|
645
|
+
}
|
|
646
|
+
#calculateOffset(selected, newSelected) {
|
|
647
|
+
if (newSelected === null) return 0;
|
|
648
|
+
const items = this.getValidItems();
|
|
649
|
+
const ogIndex = items.findIndex((item) => item === selected);
|
|
650
|
+
return items.findIndex((item) => item === newSelected) - ogIndex;
|
|
651
|
+
}
|
|
652
|
+
#up(e) {
|
|
653
|
+
if (this.opts.columns.current === null) return;
|
|
654
|
+
e.preventDefault();
|
|
655
|
+
if (e.metaKey) this.updateSelectedByGroup(-1);
|
|
656
|
+
else this.updateSelectedByItem(this.#previousRowColumnOffset(e));
|
|
657
|
+
}
|
|
658
|
+
#previousRowColumnOffset(e) {
|
|
659
|
+
const grid = this.itemsGrid;
|
|
660
|
+
const selected = this.#getSelectedItem();
|
|
661
|
+
if (selected === void 0) return 0;
|
|
662
|
+
const column = this.#getColumn(selected, grid);
|
|
663
|
+
if (column === null) return 0;
|
|
664
|
+
let newItem = null;
|
|
665
|
+
const skipRows = e.altKey ? 1 : 0;
|
|
666
|
+
if (e.altKey && column.rowIndex === 1 && this.opts.loop.current === false) newItem = this.#findNextNonDisabledItemDesc({
|
|
667
|
+
start: 0,
|
|
668
|
+
end: 0,
|
|
669
|
+
expectedColumnIndex: column.columnIndex,
|
|
670
|
+
grid
|
|
671
|
+
});
|
|
672
|
+
else if (column.rowIndex === 0) {
|
|
673
|
+
if (this.opts.loop.current === false) return 0;
|
|
674
|
+
newItem = this.#findNextNonDisabledItemDesc({
|
|
675
|
+
start: grid.length - 1 - skipRows,
|
|
676
|
+
end: column.rowIndex + 1,
|
|
677
|
+
expectedColumnIndex: column.columnIndex,
|
|
678
|
+
grid
|
|
679
|
+
});
|
|
680
|
+
} else {
|
|
681
|
+
newItem = this.#findNextNonDisabledItemDesc({
|
|
682
|
+
start: column.rowIndex - 1 - skipRows,
|
|
683
|
+
end: 0,
|
|
684
|
+
expectedColumnIndex: column.columnIndex,
|
|
685
|
+
grid
|
|
686
|
+
});
|
|
687
|
+
if (newItem === null && this.opts.loop.current) newItem = this.#findNextNonDisabledItemDesc({
|
|
688
|
+
start: grid.length - 1,
|
|
689
|
+
end: column.rowIndex + 1,
|
|
690
|
+
expectedColumnIndex: column.columnIndex,
|
|
691
|
+
grid
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
return this.#calculateOffset(selected, newItem);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Attempts to find the next non-disabled column that matches the expected column.
|
|
698
|
+
*
|
|
699
|
+
* @remarks
|
|
700
|
+
* - Skips over disabled columns
|
|
701
|
+
* - When a row is shorter than the expected column it defaults to the last item in the row
|
|
702
|
+
*/
|
|
703
|
+
#findNextNonDisabledItemDesc({ start, end, grid, expectedColumnIndex }) {
|
|
704
|
+
let newItem = null;
|
|
705
|
+
for (let r = start; r >= end; r--) {
|
|
706
|
+
const row = grid[r];
|
|
707
|
+
if (row === void 0) continue;
|
|
708
|
+
newItem = row[expectedColumnIndex]?.ref ?? null;
|
|
709
|
+
if (newItem !== null && itemIsDisabled(newItem)) {
|
|
710
|
+
newItem = null;
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
if (newItem === null) for (let i = row.length - 1; i >= 0; i--) {
|
|
714
|
+
const item = row[row.length - 1];
|
|
715
|
+
if (item === void 0 || itemIsDisabled(item.ref)) continue;
|
|
716
|
+
newItem = item.ref;
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
return newItem;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Handles previous item selection:
|
|
725
|
+
* - Meta: Jump to first
|
|
726
|
+
* - Alt: Previous group
|
|
727
|
+
* - Default: Previous item
|
|
728
|
+
*
|
|
729
|
+
* @param e - Keyboard event
|
|
730
|
+
*/
|
|
731
|
+
#prev(e) {
|
|
732
|
+
e.preventDefault();
|
|
733
|
+
if (e.metaKey) this.updateSelectedToIndex(0);
|
|
734
|
+
else if (e.altKey) this.updateSelectedByGroup(-1);
|
|
735
|
+
else this.updateSelectedByItem(-1);
|
|
736
|
+
}
|
|
737
|
+
onkeydown(e) {
|
|
738
|
+
const isVim = this.opts.vimBindings.current && e.ctrlKey;
|
|
739
|
+
switch (e.key) {
|
|
740
|
+
case "n":
|
|
741
|
+
case "j":
|
|
742
|
+
if (isVim) {
|
|
743
|
+
if (this.isGrid) this.#down(e);
|
|
744
|
+
else this.#next(e);
|
|
745
|
+
}
|
|
746
|
+
break;
|
|
747
|
+
case "l":
|
|
748
|
+
if (isVim) {
|
|
749
|
+
if (this.isGrid) this.#next(e);
|
|
750
|
+
}
|
|
751
|
+
break;
|
|
752
|
+
case ARROW_DOWN:
|
|
753
|
+
if (this.isGrid) this.#down(e);
|
|
754
|
+
else this.#next(e);
|
|
755
|
+
break;
|
|
756
|
+
case ARROW_RIGHT:
|
|
757
|
+
if (!this.isGrid) break;
|
|
758
|
+
this.#next(e);
|
|
759
|
+
break;
|
|
760
|
+
case "p":
|
|
761
|
+
case "k":
|
|
762
|
+
if (isVim) {
|
|
763
|
+
if (this.isGrid) this.#up(e);
|
|
764
|
+
else this.#prev(e);
|
|
765
|
+
}
|
|
766
|
+
break;
|
|
767
|
+
case "h":
|
|
768
|
+
if (isVim && this.isGrid) this.#prev(e);
|
|
769
|
+
break;
|
|
770
|
+
case ARROW_UP:
|
|
771
|
+
if (this.isGrid) this.#up(e);
|
|
772
|
+
else this.#prev(e);
|
|
773
|
+
break;
|
|
774
|
+
case ARROW_LEFT:
|
|
775
|
+
if (!this.isGrid) break;
|
|
776
|
+
this.#prev(e);
|
|
777
|
+
break;
|
|
778
|
+
case HOME:
|
|
779
|
+
e.preventDefault();
|
|
780
|
+
this.updateSelectedToIndex(0);
|
|
781
|
+
break;
|
|
782
|
+
case "End":
|
|
783
|
+
e.preventDefault();
|
|
784
|
+
this.#last();
|
|
785
|
+
break;
|
|
786
|
+
case ENTER:
|
|
787
|
+
/**
|
|
788
|
+
* Check if IME composition is finished before triggering the select event.
|
|
789
|
+
* This prevents unwanted triggering while user is still inputting text with IME.
|
|
790
|
+
* e.keyCode === 229 is for the Japanese IME && Safari as `isComposing` does not
|
|
791
|
+
* work with Japanese IME and Safari in combination.
|
|
792
|
+
*/
|
|
793
|
+
if (!e.isComposing && e.keyCode !== 229) {
|
|
794
|
+
e.preventDefault();
|
|
795
|
+
const item = this.#getSelectedItem();
|
|
796
|
+
if (item) item?.click();
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
#props = derived(() => ({
|
|
801
|
+
id: this.opts.id.current,
|
|
802
|
+
role: "application",
|
|
803
|
+
[commandAttrs.root]: "",
|
|
804
|
+
tabindex: -1,
|
|
805
|
+
onkeydown: this.onkeydown,
|
|
806
|
+
...this.attachment
|
|
807
|
+
}));
|
|
808
|
+
get props() {
|
|
809
|
+
return this.#props();
|
|
810
|
+
}
|
|
811
|
+
set props($$value) {
|
|
812
|
+
return this.#props($$value);
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
function itemIsDisabled(item) {
|
|
816
|
+
return item.getAttribute("aria-disabled") === "true";
|
|
817
|
+
}
|
|
818
|
+
var CommandEmptyState = class CommandEmptyState {
|
|
819
|
+
static create(opts) {
|
|
820
|
+
return new CommandEmptyState(opts, CommandRootContext.get());
|
|
821
|
+
}
|
|
822
|
+
opts;
|
|
823
|
+
root;
|
|
824
|
+
attachment;
|
|
825
|
+
#shouldRender = derived(() => {
|
|
826
|
+
return this.root._commandState.filtered.count === 0 && this.#isInitialRender === false || this.opts.forceMount.current;
|
|
827
|
+
});
|
|
828
|
+
get shouldRender() {
|
|
829
|
+
return this.#shouldRender();
|
|
830
|
+
}
|
|
831
|
+
set shouldRender($$value) {
|
|
832
|
+
return this.#shouldRender($$value);
|
|
833
|
+
}
|
|
834
|
+
#isInitialRender = true;
|
|
835
|
+
constructor(opts, root) {
|
|
836
|
+
this.opts = opts;
|
|
837
|
+
this.root = root;
|
|
838
|
+
this.attachment = attachRef(this.opts.ref);
|
|
839
|
+
}
|
|
840
|
+
#props = derived(() => ({
|
|
841
|
+
id: this.opts.id.current,
|
|
842
|
+
role: "presentation",
|
|
843
|
+
[commandAttrs.empty]: "",
|
|
844
|
+
...this.attachment
|
|
845
|
+
}));
|
|
846
|
+
get props() {
|
|
847
|
+
return this.#props();
|
|
848
|
+
}
|
|
849
|
+
set props($$value) {
|
|
850
|
+
return this.#props($$value);
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
var CommandGroupContainerState = class CommandGroupContainerState {
|
|
854
|
+
static create(opts) {
|
|
855
|
+
return CommandGroupContainerContext.set(new CommandGroupContainerState(opts, CommandRootContext.get()));
|
|
856
|
+
}
|
|
857
|
+
opts;
|
|
858
|
+
root;
|
|
859
|
+
attachment;
|
|
860
|
+
#shouldRender = derived(() => {
|
|
861
|
+
if (this.opts.forceMount.current) return true;
|
|
862
|
+
if (this.root.opts.shouldFilter.current === false) return true;
|
|
863
|
+
if (!this.root.commandState.search) return true;
|
|
864
|
+
return this.root._commandState.filtered.groups.has(this.trueValue);
|
|
865
|
+
});
|
|
866
|
+
get shouldRender() {
|
|
867
|
+
return this.#shouldRender();
|
|
868
|
+
}
|
|
869
|
+
set shouldRender($$value) {
|
|
870
|
+
return this.#shouldRender($$value);
|
|
871
|
+
}
|
|
872
|
+
headingNode = null;
|
|
873
|
+
trueValue = "";
|
|
874
|
+
constructor(opts, root) {
|
|
875
|
+
this.opts = opts;
|
|
876
|
+
this.root = root;
|
|
877
|
+
this.attachment = attachRef(this.opts.ref);
|
|
878
|
+
this.trueValue = opts.value.current ?? opts.id.current;
|
|
879
|
+
watch(() => this.trueValue, () => {
|
|
880
|
+
return this.root.registerGroup(this.trueValue);
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
#props = derived(() => ({
|
|
884
|
+
id: this.opts.id.current,
|
|
885
|
+
role: "presentation",
|
|
886
|
+
hidden: this.shouldRender ? void 0 : true,
|
|
887
|
+
"data-value": this.trueValue,
|
|
888
|
+
[commandAttrs.group]: "",
|
|
889
|
+
...this.attachment
|
|
890
|
+
}));
|
|
891
|
+
get props() {
|
|
892
|
+
return this.#props();
|
|
893
|
+
}
|
|
894
|
+
set props($$value) {
|
|
895
|
+
return this.#props($$value);
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
var CommandGroupHeadingState = class CommandGroupHeadingState {
|
|
899
|
+
static create(opts) {
|
|
900
|
+
return new CommandGroupHeadingState(opts, CommandGroupContainerContext.get());
|
|
901
|
+
}
|
|
902
|
+
opts;
|
|
903
|
+
group;
|
|
904
|
+
attachment;
|
|
905
|
+
constructor(opts, group) {
|
|
906
|
+
this.opts = opts;
|
|
907
|
+
this.group = group;
|
|
908
|
+
this.attachment = attachRef(this.opts.ref, (v) => this.group.headingNode = v);
|
|
909
|
+
}
|
|
910
|
+
#props = derived(() => ({
|
|
911
|
+
id: this.opts.id.current,
|
|
912
|
+
[commandAttrs["group-heading"]]: "",
|
|
913
|
+
...this.attachment
|
|
914
|
+
}));
|
|
915
|
+
get props() {
|
|
916
|
+
return this.#props();
|
|
917
|
+
}
|
|
918
|
+
set props($$value) {
|
|
919
|
+
return this.#props($$value);
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
var CommandGroupItemsState = class CommandGroupItemsState {
|
|
923
|
+
static create(opts) {
|
|
924
|
+
return new CommandGroupItemsState(opts, CommandGroupContainerContext.get());
|
|
925
|
+
}
|
|
926
|
+
opts;
|
|
927
|
+
group;
|
|
928
|
+
attachment;
|
|
929
|
+
constructor(opts, group) {
|
|
930
|
+
this.opts = opts;
|
|
931
|
+
this.group = group;
|
|
932
|
+
this.attachment = attachRef(this.opts.ref);
|
|
933
|
+
}
|
|
934
|
+
#props = derived(() => ({
|
|
935
|
+
id: this.opts.id.current,
|
|
936
|
+
role: "group",
|
|
937
|
+
[commandAttrs["group-items"]]: "",
|
|
938
|
+
"aria-labelledby": this.group.headingNode?.id ?? void 0,
|
|
939
|
+
...this.attachment
|
|
940
|
+
}));
|
|
941
|
+
get props() {
|
|
942
|
+
return this.#props();
|
|
943
|
+
}
|
|
944
|
+
set props($$value) {
|
|
945
|
+
return this.#props($$value);
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
var CommandInputState = class CommandInputState {
|
|
949
|
+
static create(opts) {
|
|
950
|
+
return new CommandInputState(opts, CommandRootContext.get());
|
|
951
|
+
}
|
|
952
|
+
opts;
|
|
953
|
+
root;
|
|
954
|
+
attachment;
|
|
955
|
+
#selectedItemId = derived(() => {
|
|
956
|
+
const item = this.root.viewportNode?.querySelector(`${COMMAND_ITEM_SELECTOR}[${COMMAND_VALUE_ATTR}="${cssEscape(this.root.opts.value.current)}"]`);
|
|
957
|
+
if (item === void 0 || item === null) return;
|
|
958
|
+
return item.getAttribute("id") ?? void 0;
|
|
959
|
+
});
|
|
960
|
+
constructor(opts, root) {
|
|
961
|
+
this.opts = opts;
|
|
962
|
+
this.root = root;
|
|
963
|
+
this.attachment = attachRef(this.opts.ref, (v) => this.root.inputNode = v);
|
|
964
|
+
watch(() => this.opts.ref.current, () => {
|
|
965
|
+
const node = this.opts.ref.current;
|
|
966
|
+
if (node && this.opts.autofocus.current) afterSleep(10, () => node.focus());
|
|
967
|
+
});
|
|
968
|
+
watch(() => this.opts.value.current, () => {
|
|
969
|
+
if (this.root.commandState.search !== this.opts.value.current) this.root.setState("search", this.opts.value.current);
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
#props = derived(() => ({
|
|
973
|
+
id: this.opts.id.current,
|
|
974
|
+
type: "text",
|
|
975
|
+
[commandAttrs.input]: "",
|
|
976
|
+
autocomplete: "off",
|
|
977
|
+
autocorrect: "off",
|
|
978
|
+
spellcheck: false,
|
|
979
|
+
"aria-autocomplete": "list",
|
|
980
|
+
role: "combobox",
|
|
981
|
+
"aria-expanded": boolToStr(true),
|
|
982
|
+
"aria-controls": this.root.viewportNode?.id ?? void 0,
|
|
983
|
+
"aria-labelledby": this.root.labelNode?.id ?? void 0,
|
|
984
|
+
"aria-activedescendant": this.#selectedItemId(),
|
|
985
|
+
...this.attachment
|
|
986
|
+
}));
|
|
987
|
+
get props() {
|
|
988
|
+
return this.#props();
|
|
989
|
+
}
|
|
990
|
+
set props($$value) {
|
|
991
|
+
return this.#props($$value);
|
|
992
|
+
}
|
|
993
|
+
};
|
|
994
|
+
var CommandItemState = class CommandItemState {
|
|
995
|
+
static create(opts) {
|
|
996
|
+
const group = CommandGroupContainerContext.getOr(null);
|
|
997
|
+
return new CommandItemState({
|
|
998
|
+
...opts,
|
|
999
|
+
group
|
|
1000
|
+
}, CommandRootContext.get());
|
|
1001
|
+
}
|
|
1002
|
+
opts;
|
|
1003
|
+
root;
|
|
1004
|
+
attachment;
|
|
1005
|
+
#group = null;
|
|
1006
|
+
#trueForceMount = derived(() => {
|
|
1007
|
+
return this.opts.forceMount.current || this.#group?.opts.forceMount.current === true;
|
|
1008
|
+
});
|
|
1009
|
+
#shouldRender = derived(() => {
|
|
1010
|
+
this.opts.ref.current;
|
|
1011
|
+
if (this.#trueForceMount() || this.root.opts.shouldFilter.current === false || !this.root.commandState.search) return true;
|
|
1012
|
+
const currentScore = this.root.commandState.filtered.items.get(this.trueValue);
|
|
1013
|
+
if (currentScore === void 0) return false;
|
|
1014
|
+
return currentScore > 0;
|
|
1015
|
+
});
|
|
1016
|
+
get shouldRender() {
|
|
1017
|
+
return this.#shouldRender();
|
|
1018
|
+
}
|
|
1019
|
+
set shouldRender($$value) {
|
|
1020
|
+
return this.#shouldRender($$value);
|
|
1021
|
+
}
|
|
1022
|
+
#isSelected = derived(() => this.root.opts.value.current === this.trueValue && this.trueValue !== "");
|
|
1023
|
+
get isSelected() {
|
|
1024
|
+
return this.#isSelected();
|
|
1025
|
+
}
|
|
1026
|
+
set isSelected($$value) {
|
|
1027
|
+
return this.#isSelected($$value);
|
|
1028
|
+
}
|
|
1029
|
+
trueValue = "";
|
|
1030
|
+
constructor(opts, root) {
|
|
1031
|
+
this.opts = opts;
|
|
1032
|
+
this.root = root;
|
|
1033
|
+
this.#group = CommandGroupContainerContext.getOr(null);
|
|
1034
|
+
this.trueValue = opts.value.current;
|
|
1035
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1036
|
+
watch([
|
|
1037
|
+
() => this.trueValue,
|
|
1038
|
+
() => this.#group?.trueValue,
|
|
1039
|
+
() => this.opts.forceMount.current
|
|
1040
|
+
], () => {
|
|
1041
|
+
if (this.opts.forceMount.current || !this.trueValue) return;
|
|
1042
|
+
return this.root.registerItem(this.trueValue, this.#group?.trueValue);
|
|
1043
|
+
});
|
|
1044
|
+
watch([() => this.opts.value.current, () => this.opts.ref.current], () => {
|
|
1045
|
+
if (this.opts.value.current) this.trueValue = this.opts.value.current;
|
|
1046
|
+
else if (this.opts.ref.current?.textContent) this.trueValue = this.opts.ref.current.textContent.trim();
|
|
1047
|
+
if (this.trueValue) {
|
|
1048
|
+
this.root.registerValue(this.trueValue, opts.keywords.current.map((kw) => kw.trim()));
|
|
1049
|
+
this.opts.ref.current?.setAttribute(COMMAND_VALUE_ATTR, this.trueValue);
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
this.onclick = this.onclick.bind(this);
|
|
1053
|
+
this.onpointermove = this.onpointermove.bind(this);
|
|
1054
|
+
}
|
|
1055
|
+
#onSelect() {
|
|
1056
|
+
if (this.opts.disabled.current) return;
|
|
1057
|
+
this.#select();
|
|
1058
|
+
this.opts.onSelect?.current();
|
|
1059
|
+
}
|
|
1060
|
+
#select() {
|
|
1061
|
+
if (this.opts.disabled.current) return;
|
|
1062
|
+
this.root.setValue(this.trueValue, true);
|
|
1063
|
+
}
|
|
1064
|
+
onpointermove(_) {
|
|
1065
|
+
if (this.opts.disabled.current || this.root.opts.disablePointerSelection.current) return;
|
|
1066
|
+
this.#select();
|
|
1067
|
+
}
|
|
1068
|
+
onclick(_) {
|
|
1069
|
+
if (this.opts.disabled.current) return;
|
|
1070
|
+
this.#onSelect();
|
|
1071
|
+
}
|
|
1072
|
+
#props = derived(() => ({
|
|
1073
|
+
id: this.opts.id.current,
|
|
1074
|
+
"aria-disabled": boolToStr(this.opts.disabled.current),
|
|
1075
|
+
"aria-selected": boolToStr(this.isSelected),
|
|
1076
|
+
"data-disabled": boolToEmptyStrOrUndef(this.opts.disabled.current),
|
|
1077
|
+
"data-selected": boolToEmptyStrOrUndef(this.isSelected),
|
|
1078
|
+
"data-value": this.trueValue,
|
|
1079
|
+
"data-group": this.#group?.trueValue,
|
|
1080
|
+
[commandAttrs.item]: "",
|
|
1081
|
+
role: "option",
|
|
1082
|
+
onpointermove: this.onpointermove,
|
|
1083
|
+
onclick: this.onclick,
|
|
1084
|
+
...this.attachment
|
|
1085
|
+
}));
|
|
1086
|
+
get props() {
|
|
1087
|
+
return this.#props();
|
|
1088
|
+
}
|
|
1089
|
+
set props($$value) {
|
|
1090
|
+
return this.#props($$value);
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
var CommandLoadingState = class CommandLoadingState {
|
|
1094
|
+
static create(opts) {
|
|
1095
|
+
return new CommandLoadingState(opts);
|
|
1096
|
+
}
|
|
1097
|
+
opts;
|
|
1098
|
+
attachment;
|
|
1099
|
+
constructor(opts) {
|
|
1100
|
+
this.opts = opts;
|
|
1101
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1102
|
+
}
|
|
1103
|
+
#props = derived(() => ({
|
|
1104
|
+
id: this.opts.id.current,
|
|
1105
|
+
role: "progressbar",
|
|
1106
|
+
"aria-valuenow": this.opts.progress.current,
|
|
1107
|
+
"aria-valuemin": 0,
|
|
1108
|
+
"aria-valuemax": 100,
|
|
1109
|
+
"aria-label": "Loading...",
|
|
1110
|
+
[commandAttrs.loading]: "",
|
|
1111
|
+
...this.attachment
|
|
1112
|
+
}));
|
|
1113
|
+
get props() {
|
|
1114
|
+
return this.#props();
|
|
1115
|
+
}
|
|
1116
|
+
set props($$value) {
|
|
1117
|
+
return this.#props($$value);
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
var CommandListState = class CommandListState {
|
|
1121
|
+
static create(opts) {
|
|
1122
|
+
return CommandListContext.set(new CommandListState(opts, CommandRootContext.get()));
|
|
1123
|
+
}
|
|
1124
|
+
opts;
|
|
1125
|
+
root;
|
|
1126
|
+
attachment;
|
|
1127
|
+
constructor(opts, root) {
|
|
1128
|
+
this.opts = opts;
|
|
1129
|
+
this.root = root;
|
|
1130
|
+
this.attachment = attachRef(this.opts.ref);
|
|
1131
|
+
}
|
|
1132
|
+
#props = derived(() => ({
|
|
1133
|
+
id: this.opts.id.current,
|
|
1134
|
+
role: "listbox",
|
|
1135
|
+
"aria-label": this.opts.ariaLabel.current,
|
|
1136
|
+
[commandAttrs.list]: "",
|
|
1137
|
+
...this.attachment
|
|
1138
|
+
}));
|
|
1139
|
+
get props() {
|
|
1140
|
+
return this.#props();
|
|
1141
|
+
}
|
|
1142
|
+
set props($$value) {
|
|
1143
|
+
return this.#props($$value);
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
var CommandLabelState = class CommandLabelState {
|
|
1147
|
+
static create(opts) {
|
|
1148
|
+
return new CommandLabelState(opts, CommandRootContext.get());
|
|
1149
|
+
}
|
|
1150
|
+
opts;
|
|
1151
|
+
root;
|
|
1152
|
+
attachment;
|
|
1153
|
+
constructor(opts, root) {
|
|
1154
|
+
this.opts = opts;
|
|
1155
|
+
this.root = root;
|
|
1156
|
+
this.attachment = attachRef(this.opts.ref, (v) => this.root.labelNode = v);
|
|
1157
|
+
}
|
|
1158
|
+
#props = derived(() => ({
|
|
1159
|
+
id: this.opts.id.current,
|
|
1160
|
+
[commandAttrs["input-label"]]: "",
|
|
1161
|
+
for: this.opts.for?.current,
|
|
1162
|
+
style: srOnlyStyles,
|
|
1163
|
+
...this.attachment
|
|
1164
|
+
}));
|
|
1165
|
+
get props() {
|
|
1166
|
+
return this.#props();
|
|
1167
|
+
}
|
|
1168
|
+
set props($$value) {
|
|
1169
|
+
return this.#props($$value);
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
//#endregion
|
|
1173
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/_command-label.svelte
|
|
1174
|
+
function _command_label($$renderer, $$props) {
|
|
1175
|
+
$$renderer.component(($$renderer) => {
|
|
1176
|
+
const uid = props_id($$renderer);
|
|
1177
|
+
let { id = createId(uid), ref = null, children, $$slots, $$events, ...restProps } = $$props;
|
|
1178
|
+
const labelState = CommandLabelState.create({
|
|
1179
|
+
id: boxWith(() => id),
|
|
1180
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1181
|
+
});
|
|
1182
|
+
const mergedProps = derived(() => mergeProps(restProps, labelState.props));
|
|
1183
|
+
$$renderer.push(`<label${attributes({ ...mergedProps() })}>`);
|
|
1184
|
+
children?.($$renderer);
|
|
1185
|
+
$$renderer.push(`<!----></label>`);
|
|
1186
|
+
bind_props($$props, { ref });
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command.svelte
|
|
1191
|
+
function Command$1($$renderer, $$props) {
|
|
1192
|
+
$$renderer.component(($$renderer) => {
|
|
1193
|
+
const uid = props_id($$renderer);
|
|
1194
|
+
let { id = createId(uid), ref = null, value = "", onValueChange = noop, onStateChange = noop, loop = false, shouldFilter = true, filter = computeCommandScore, label = "", vimBindings = true, disablePointerSelection = false, disableInitialScroll = false, columns = null, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1195
|
+
const rootState = CommandRootState.create({
|
|
1196
|
+
id: boxWith(() => id),
|
|
1197
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1198
|
+
filter: boxWith(() => filter),
|
|
1199
|
+
shouldFilter: boxWith(() => shouldFilter),
|
|
1200
|
+
loop: boxWith(() => loop),
|
|
1201
|
+
value: boxWith(() => value, (v) => {
|
|
1202
|
+
if (value !== v) {
|
|
1203
|
+
value = v;
|
|
1204
|
+
onValueChange(v);
|
|
1205
|
+
}
|
|
1206
|
+
}),
|
|
1207
|
+
vimBindings: boxWith(() => vimBindings),
|
|
1208
|
+
disablePointerSelection: boxWith(() => disablePointerSelection),
|
|
1209
|
+
disableInitialScroll: boxWith(() => disableInitialScroll),
|
|
1210
|
+
onStateChange: boxWith(() => onStateChange),
|
|
1211
|
+
columns: boxWith(() => columns)
|
|
1212
|
+
});
|
|
1213
|
+
/**
|
|
1214
|
+
* Sets selection to item at specified index in valid items array.
|
|
1215
|
+
* If index is out of bounds, does nothing.
|
|
1216
|
+
*
|
|
1217
|
+
* @param index - Zero-based index of item to select
|
|
1218
|
+
* @remarks
|
|
1219
|
+
* Uses `getValidItems()` to get selectable items, filtering out disabled/hidden ones.
|
|
1220
|
+
* Access valid items directly via `getValidItems()` to check bounds before calling.
|
|
1221
|
+
*
|
|
1222
|
+
* @example
|
|
1223
|
+
* // get valid items length for bounds check
|
|
1224
|
+
* const items = getValidItems()
|
|
1225
|
+
* if (index < items.length) {
|
|
1226
|
+
* updateSelectedToIndex(index)
|
|
1227
|
+
* }
|
|
1228
|
+
*/
|
|
1229
|
+
const updateSelectedToIndex = (i) => rootState.updateSelectedToIndex(i);
|
|
1230
|
+
/**
|
|
1231
|
+
* Moves selection to the first valid item in the next/previous group.
|
|
1232
|
+
* If no group is found, falls back to selecting the next/previous item globally.
|
|
1233
|
+
*
|
|
1234
|
+
* @param change - Direction to move: 1 for next group, -1 for previous group
|
|
1235
|
+
* @example
|
|
1236
|
+
* // move to first item in next group
|
|
1237
|
+
* updateSelectedByGroup(1)
|
|
1238
|
+
*
|
|
1239
|
+
* // move to first item in previous group
|
|
1240
|
+
* updateSelectedByGroup(-1)
|
|
1241
|
+
*/
|
|
1242
|
+
const updateSelectedByGroup = (c) => rootState.updateSelectedByGroup(c);
|
|
1243
|
+
/**
|
|
1244
|
+
* Updates selected item by moving up/down relative to current selection.
|
|
1245
|
+
* Handles wrapping when loop option is enabled.
|
|
1246
|
+
*
|
|
1247
|
+
* @param change - Direction to move: 1 for next item, -1 for previous item
|
|
1248
|
+
* @remarks
|
|
1249
|
+
* The loop behavior wraps:
|
|
1250
|
+
* - From last item to first when moving next
|
|
1251
|
+
* - From first item to last when moving previous
|
|
1252
|
+
*
|
|
1253
|
+
* Uses `getValidItems()` to get all selectable items, which filters out disabled/hidden items.
|
|
1254
|
+
* You can call `getValidItems()` directly to get the current valid items array.
|
|
1255
|
+
*
|
|
1256
|
+
* @example
|
|
1257
|
+
* // select next item
|
|
1258
|
+
* updateSelectedByItem(1)
|
|
1259
|
+
*
|
|
1260
|
+
* // get all valid items
|
|
1261
|
+
* const items = getValidItems()
|
|
1262
|
+
*/
|
|
1263
|
+
const updateSelectedByItem = (c) => rootState.updateSelectedByItem(c);
|
|
1264
|
+
/**
|
|
1265
|
+
* Gets all non-disabled, visible command items.
|
|
1266
|
+
*
|
|
1267
|
+
* @returns Array of valid item elements
|
|
1268
|
+
* @remarks Exposed for direct item access and bound checking
|
|
1269
|
+
*/
|
|
1270
|
+
const getValidItems = () => rootState.getValidItems();
|
|
1271
|
+
const mergedProps = derived(() => mergeProps(restProps, rootState.props));
|
|
1272
|
+
function Label($$renderer) {
|
|
1273
|
+
_command_label($$renderer, {
|
|
1274
|
+
children: ($$renderer) => {
|
|
1275
|
+
$$renderer.push(`<!---->${escape_html(label)}`);
|
|
1276
|
+
},
|
|
1277
|
+
$$slots: { default: true }
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
if (child) {
|
|
1281
|
+
$$renderer.push("<!--[0-->");
|
|
1282
|
+
Label($$renderer);
|
|
1283
|
+
$$renderer.push(`<!----> `);
|
|
1284
|
+
child($$renderer, { props: mergedProps() });
|
|
1285
|
+
$$renderer.push(`<!---->`);
|
|
1286
|
+
} else {
|
|
1287
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1288
|
+
Label($$renderer);
|
|
1289
|
+
$$renderer.push(`<!----> `);
|
|
1290
|
+
children?.($$renderer);
|
|
1291
|
+
$$renderer.push(`<!----></div>`);
|
|
1292
|
+
}
|
|
1293
|
+
$$renderer.push(`<!--]-->`);
|
|
1294
|
+
bind_props($$props, {
|
|
1295
|
+
ref,
|
|
1296
|
+
value,
|
|
1297
|
+
updateSelectedToIndex,
|
|
1298
|
+
updateSelectedByGroup,
|
|
1299
|
+
updateSelectedByItem,
|
|
1300
|
+
getValidItems
|
|
1301
|
+
});
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-empty.svelte
|
|
1306
|
+
function Command_empty$1($$renderer, $$props) {
|
|
1307
|
+
$$renderer.component(($$renderer) => {
|
|
1308
|
+
const uid = props_id($$renderer);
|
|
1309
|
+
let { id = createId(uid), ref = null, children, child, forceMount = false, $$slots, $$events, ...restProps } = $$props;
|
|
1310
|
+
const emptyState = CommandEmptyState.create({
|
|
1311
|
+
id: boxWith(() => id),
|
|
1312
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1313
|
+
forceMount: boxWith(() => forceMount)
|
|
1314
|
+
});
|
|
1315
|
+
const mergedProps = derived(() => mergeProps(emptyState.props, restProps));
|
|
1316
|
+
if (emptyState.shouldRender) {
|
|
1317
|
+
$$renderer.push("<!--[0-->");
|
|
1318
|
+
if (child) {
|
|
1319
|
+
$$renderer.push("<!--[0-->");
|
|
1320
|
+
child($$renderer, { props: mergedProps() });
|
|
1321
|
+
$$renderer.push(`<!---->`);
|
|
1322
|
+
} else {
|
|
1323
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1324
|
+
children?.($$renderer);
|
|
1325
|
+
$$renderer.push(`<!----></div>`);
|
|
1326
|
+
}
|
|
1327
|
+
$$renderer.push(`<!--]-->`);
|
|
1328
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1329
|
+
$$renderer.push(`<!--]-->`);
|
|
1330
|
+
bind_props($$props, { ref });
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
//#endregion
|
|
1334
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-group.svelte
|
|
1335
|
+
function Command_group$1($$renderer, $$props) {
|
|
1336
|
+
$$renderer.component(($$renderer) => {
|
|
1337
|
+
const uid = props_id($$renderer);
|
|
1338
|
+
let { id = createId(uid), ref = null, value = "", forceMount = false, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1339
|
+
const groupState = CommandGroupContainerState.create({
|
|
1340
|
+
id: boxWith(() => id),
|
|
1341
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1342
|
+
forceMount: boxWith(() => forceMount),
|
|
1343
|
+
value: boxWith(() => value)
|
|
1344
|
+
});
|
|
1345
|
+
const mergedProps = derived(() => mergeProps(restProps, groupState.props));
|
|
1346
|
+
if (child) {
|
|
1347
|
+
$$renderer.push("<!--[0-->");
|
|
1348
|
+
child($$renderer, { props: mergedProps() });
|
|
1349
|
+
$$renderer.push(`<!---->`);
|
|
1350
|
+
} else {
|
|
1351
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1352
|
+
children?.($$renderer);
|
|
1353
|
+
$$renderer.push(`<!----></div>`);
|
|
1354
|
+
}
|
|
1355
|
+
$$renderer.push(`<!--]-->`);
|
|
1356
|
+
bind_props($$props, { ref });
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-group-heading.svelte
|
|
1361
|
+
function Command_group_heading($$renderer, $$props) {
|
|
1362
|
+
$$renderer.component(($$renderer) => {
|
|
1363
|
+
const uid = props_id($$renderer);
|
|
1364
|
+
let { id = createId(uid), ref = null, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1365
|
+
const headingState = CommandGroupHeadingState.create({
|
|
1366
|
+
id: boxWith(() => id),
|
|
1367
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1368
|
+
});
|
|
1369
|
+
const mergedProps = derived(() => mergeProps(restProps, headingState.props));
|
|
1370
|
+
if (child) {
|
|
1371
|
+
$$renderer.push("<!--[0-->");
|
|
1372
|
+
child($$renderer, { props: mergedProps() });
|
|
1373
|
+
$$renderer.push(`<!---->`);
|
|
1374
|
+
} else {
|
|
1375
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1376
|
+
children?.($$renderer);
|
|
1377
|
+
$$renderer.push(`<!----></div>`);
|
|
1378
|
+
}
|
|
1379
|
+
$$renderer.push(`<!--]-->`);
|
|
1380
|
+
bind_props($$props, { ref });
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-group-items.svelte
|
|
1385
|
+
function Command_group_items($$renderer, $$props) {
|
|
1386
|
+
$$renderer.component(($$renderer) => {
|
|
1387
|
+
const uid = props_id($$renderer);
|
|
1388
|
+
let { id = createId(uid), ref = null, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1389
|
+
const groupItemsState = CommandGroupItemsState.create({
|
|
1390
|
+
id: boxWith(() => id),
|
|
1391
|
+
ref: boxWith(() => ref, (v) => ref = v)
|
|
1392
|
+
});
|
|
1393
|
+
const mergedProps = derived(() => mergeProps(restProps, groupItemsState.props));
|
|
1394
|
+
$$renderer.push(`<div style="display: contents;">`);
|
|
1395
|
+
if (child) {
|
|
1396
|
+
$$renderer.push("<!--[0-->");
|
|
1397
|
+
child($$renderer, { props: mergedProps() });
|
|
1398
|
+
$$renderer.push(`<!---->`);
|
|
1399
|
+
} else {
|
|
1400
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1401
|
+
children?.($$renderer);
|
|
1402
|
+
$$renderer.push(`<!----></div>`);
|
|
1403
|
+
}
|
|
1404
|
+
$$renderer.push(`<!--]--></div>`);
|
|
1405
|
+
bind_props($$props, { ref });
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-input.svelte
|
|
1410
|
+
function Command_input$1($$renderer, $$props) {
|
|
1411
|
+
$$renderer.component(($$renderer) => {
|
|
1412
|
+
const uid = props_id($$renderer);
|
|
1413
|
+
let { value = "", autofocus = false, id = createId(uid), ref = null, child, $$slots, $$events, ...restProps } = $$props;
|
|
1414
|
+
const inputState = CommandInputState.create({
|
|
1415
|
+
id: boxWith(() => id),
|
|
1416
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1417
|
+
value: boxWith(() => value, (v) => {
|
|
1418
|
+
value = v;
|
|
1419
|
+
}),
|
|
1420
|
+
autofocus: boxWith(() => autofocus ?? false)
|
|
1421
|
+
});
|
|
1422
|
+
const mergedProps = derived(() => mergeProps(restProps, inputState.props));
|
|
1423
|
+
if (child) {
|
|
1424
|
+
$$renderer.push("<!--[0-->");
|
|
1425
|
+
child($$renderer, { props: mergedProps() });
|
|
1426
|
+
$$renderer.push(`<!---->`);
|
|
1427
|
+
} else $$renderer.push(`<!--[-1--><input${attributes({
|
|
1428
|
+
...mergedProps(),
|
|
1429
|
+
value
|
|
1430
|
+
}, void 0, void 0, void 0, 4)}/>`);
|
|
1431
|
+
$$renderer.push(`<!--]-->`);
|
|
1432
|
+
bind_props($$props, {
|
|
1433
|
+
value,
|
|
1434
|
+
ref
|
|
1435
|
+
});
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
//#endregion
|
|
1439
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-item.svelte
|
|
1440
|
+
function Command_item$1($$renderer, $$props) {
|
|
1441
|
+
$$renderer.component(($$renderer) => {
|
|
1442
|
+
const uid = props_id($$renderer);
|
|
1443
|
+
let { id = createId(uid), ref = null, value = "", disabled = false, children, child, onSelect = noop, forceMount = false, keywords = [], $$slots, $$events, ...restProps } = $$props;
|
|
1444
|
+
const itemState = CommandItemState.create({
|
|
1445
|
+
id: boxWith(() => id),
|
|
1446
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1447
|
+
value: boxWith(() => value),
|
|
1448
|
+
disabled: boxWith(() => disabled),
|
|
1449
|
+
onSelect: boxWith(() => onSelect),
|
|
1450
|
+
forceMount: boxWith(() => forceMount),
|
|
1451
|
+
keywords: boxWith(() => keywords)
|
|
1452
|
+
});
|
|
1453
|
+
const mergedProps = derived(() => mergeProps(restProps, itemState.props));
|
|
1454
|
+
$$renderer.push(`<!---->`);
|
|
1455
|
+
$$renderer.push(`<div style="display: contents;" data-item-wrapper=""${attr("data-value", itemState.trueValue)}>`);
|
|
1456
|
+
if (itemState.shouldRender) {
|
|
1457
|
+
$$renderer.push("<!--[0-->");
|
|
1458
|
+
if (child) {
|
|
1459
|
+
$$renderer.push("<!--[0-->");
|
|
1460
|
+
child($$renderer, { props: mergedProps() });
|
|
1461
|
+
$$renderer.push(`<!---->`);
|
|
1462
|
+
} else {
|
|
1463
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1464
|
+
children?.($$renderer);
|
|
1465
|
+
$$renderer.push(`<!----></div>`);
|
|
1466
|
+
}
|
|
1467
|
+
$$renderer.push(`<!--]-->`);
|
|
1468
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1469
|
+
$$renderer.push(`<!--]--></div>`);
|
|
1470
|
+
$$renderer.push(`<!---->`);
|
|
1471
|
+
bind_props($$props, { ref });
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
//#endregion
|
|
1475
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-list.svelte
|
|
1476
|
+
function Command_list$1($$renderer, $$props) {
|
|
1477
|
+
$$renderer.component(($$renderer) => {
|
|
1478
|
+
const uid = props_id($$renderer);
|
|
1479
|
+
let { id = createId(uid), ref = null, child, children, "aria-label": ariaLabel, $$slots, $$events, ...restProps } = $$props;
|
|
1480
|
+
const listState = CommandListState.create({
|
|
1481
|
+
id: boxWith(() => id),
|
|
1482
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1483
|
+
ariaLabel: boxWith(() => ariaLabel ?? "Suggestions...")
|
|
1484
|
+
});
|
|
1485
|
+
const mergedProps = derived(() => mergeProps(restProps, listState.props));
|
|
1486
|
+
$$renderer.push(`<!---->`);
|
|
1487
|
+
if (child) {
|
|
1488
|
+
$$renderer.push("<!--[0-->");
|
|
1489
|
+
child($$renderer, { props: mergedProps() });
|
|
1490
|
+
$$renderer.push(`<!---->`);
|
|
1491
|
+
} else {
|
|
1492
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1493
|
+
children?.($$renderer);
|
|
1494
|
+
$$renderer.push(`<!----></div>`);
|
|
1495
|
+
}
|
|
1496
|
+
$$renderer.push(`<!--]-->`);
|
|
1497
|
+
$$renderer.push(`<!---->`);
|
|
1498
|
+
bind_props($$props, { ref });
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
//#endregion
|
|
1502
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/components/command-loading.svelte
|
|
1503
|
+
function Command_loading$1($$renderer, $$props) {
|
|
1504
|
+
$$renderer.component(($$renderer) => {
|
|
1505
|
+
const uid = props_id($$renderer);
|
|
1506
|
+
let { progress = 0, id = createId(uid), ref = null, children, child, $$slots, $$events, ...restProps } = $$props;
|
|
1507
|
+
const loadingState = CommandLoadingState.create({
|
|
1508
|
+
id: boxWith(() => id),
|
|
1509
|
+
ref: boxWith(() => ref, (v) => ref = v),
|
|
1510
|
+
progress: boxWith(() => progress)
|
|
1511
|
+
});
|
|
1512
|
+
const mergedProps = derived(() => mergeProps(restProps, loadingState.props));
|
|
1513
|
+
if (child) {
|
|
1514
|
+
$$renderer.push("<!--[0-->");
|
|
1515
|
+
child($$renderer, { props: mergedProps() });
|
|
1516
|
+
$$renderer.push(`<!---->`);
|
|
1517
|
+
} else {
|
|
1518
|
+
$$renderer.push(`<!--[-1--><div${attributes({ ...mergedProps() })}>`);
|
|
1519
|
+
children?.($$renderer);
|
|
1520
|
+
$$renderer.push(`<!----></div>`);
|
|
1521
|
+
}
|
|
1522
|
+
$$renderer.push(`<!--]-->`);
|
|
1523
|
+
bind_props($$props, { ref });
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
//#endregion
|
|
1527
|
+
//#region node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/command/compute-command-score.js
|
|
1528
|
+
var SCORE_CONTINUE_MATCH = 1;
|
|
1529
|
+
var SCORE_SPACE_WORD_JUMP = .9;
|
|
1530
|
+
var SCORE_NON_SPACE_WORD_JUMP = .8;
|
|
1531
|
+
var SCORE_CHARACTER_JUMP = .17;
|
|
1532
|
+
var SCORE_TRANSPOSITION = .1;
|
|
1533
|
+
var PENALTY_SKIPPED = .999;
|
|
1534
|
+
var PENALTY_CASE_MISMATCH = .9999;
|
|
1535
|
+
var PENALTY_NOT_COMPLETE = .99;
|
|
1536
|
+
var IS_GAP_REGEXP = /[\\/_+.#"@[({&]/;
|
|
1537
|
+
var COUNT_GAPS_REGEXP = /[\\/_+.#"@[({&]/g;
|
|
1538
|
+
var IS_SPACE_REGEXP = /[\s-]/;
|
|
1539
|
+
var COUNT_SPACE_REGEXP = /[\s-]/g;
|
|
1540
|
+
function computeCommandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex, memoizedResults) {
|
|
1541
|
+
if (abbreviationIndex === abbreviation.length) {
|
|
1542
|
+
if (stringIndex === string.length) return SCORE_CONTINUE_MATCH;
|
|
1543
|
+
return PENALTY_NOT_COMPLETE;
|
|
1544
|
+
}
|
|
1545
|
+
const memoizeKey = `${stringIndex},${abbreviationIndex}`;
|
|
1546
|
+
if (memoizedResults[memoizeKey] !== void 0) return memoizedResults[memoizeKey];
|
|
1547
|
+
const abbreviationChar = lowerAbbreviation.charAt(abbreviationIndex);
|
|
1548
|
+
let index = lowerString.indexOf(abbreviationChar, stringIndex);
|
|
1549
|
+
let highScore = 0;
|
|
1550
|
+
let score, transposedScore, wordBreaks, spaceBreaks;
|
|
1551
|
+
while (index >= 0) {
|
|
1552
|
+
score = computeCommandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 1, memoizedResults);
|
|
1553
|
+
if (score > highScore) {
|
|
1554
|
+
if (index === stringIndex) score *= SCORE_CONTINUE_MATCH;
|
|
1555
|
+
else if (IS_GAP_REGEXP.test(string.charAt(index - 1))) {
|
|
1556
|
+
score *= SCORE_NON_SPACE_WORD_JUMP;
|
|
1557
|
+
wordBreaks = string.slice(stringIndex, index - 1).match(COUNT_GAPS_REGEXP);
|
|
1558
|
+
if (wordBreaks && stringIndex > 0) score *= PENALTY_SKIPPED ** wordBreaks.length;
|
|
1559
|
+
} else if (IS_SPACE_REGEXP.test(string.charAt(index - 1))) {
|
|
1560
|
+
score *= SCORE_SPACE_WORD_JUMP;
|
|
1561
|
+
spaceBreaks = string.slice(stringIndex, index - 1).match(COUNT_SPACE_REGEXP);
|
|
1562
|
+
if (spaceBreaks && stringIndex > 0) score *= PENALTY_SKIPPED ** spaceBreaks.length;
|
|
1563
|
+
} else {
|
|
1564
|
+
score *= SCORE_CHARACTER_JUMP;
|
|
1565
|
+
if (stringIndex > 0) score *= PENALTY_SKIPPED ** (index - stringIndex);
|
|
1566
|
+
}
|
|
1567
|
+
if (string.charAt(index) !== abbreviation.charAt(abbreviationIndex)) score *= PENALTY_CASE_MISMATCH;
|
|
1568
|
+
}
|
|
1569
|
+
if (score < SCORE_TRANSPOSITION && lowerString.charAt(index - 1) === lowerAbbreviation.charAt(abbreviationIndex + 1) || lowerAbbreviation.charAt(abbreviationIndex + 1) === lowerAbbreviation.charAt(abbreviationIndex) && lowerString.charAt(index - 1) !== lowerAbbreviation.charAt(abbreviationIndex)) {
|
|
1570
|
+
transposedScore = computeCommandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 2, memoizedResults);
|
|
1571
|
+
if (transposedScore * SCORE_TRANSPOSITION > score) score = transposedScore * SCORE_TRANSPOSITION;
|
|
1572
|
+
}
|
|
1573
|
+
if (score > highScore) highScore = score;
|
|
1574
|
+
index = lowerString.indexOf(abbreviationChar, index + 1);
|
|
1575
|
+
}
|
|
1576
|
+
memoizedResults[memoizeKey] = highScore;
|
|
1577
|
+
return highScore;
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @param string
|
|
1582
|
+
* @returns
|
|
1583
|
+
*/
|
|
1584
|
+
function formatInput(string) {
|
|
1585
|
+
return string.toLowerCase().replace(COUNT_SPACE_REGEXP, " ");
|
|
1586
|
+
}
|
|
1587
|
+
/**
|
|
1588
|
+
* Given a command, a search query, and (optionally) a list of keywords for the command,
|
|
1589
|
+
* computes a score between 0 and 1 that represents how well the search query matches the
|
|
1590
|
+
* abbreviation and keywords. 1 is a perfect match, 0 is no match.
|
|
1591
|
+
*
|
|
1592
|
+
* The score is calculated based on the following rules:
|
|
1593
|
+
* - The scores are arranged so that a continuous match of characters will result in a total
|
|
1594
|
+
* score of 1. The best case, this character is a match, and either this is the start of the string
|
|
1595
|
+
* or the previous character was also a match.
|
|
1596
|
+
* - A new match at the start of a word scores better than a new match elsewhere as it's more likely
|
|
1597
|
+
* that the user will type the starts of fragments.
|
|
1598
|
+
* - Word jumps between spaces are scored slightly higher than slashes, brackets, hyphens, etc.
|
|
1599
|
+
* - A continuous match of characters will result in a total score of 1.
|
|
1600
|
+
* - A new match at the start of a word scores better than a new match elsewhere as it's more likely that the user will type the starts of fragments.
|
|
1601
|
+
* - Any other match isn't ideal, but we include it for completeness.
|
|
1602
|
+
* - If the user transposed two letters, it should be significantly penalized.
|
|
1603
|
+
* - The goodness of a match should decay slightly with each missing character.
|
|
1604
|
+
* - Match higher for letters closer to the beginning of the word.
|
|
1605
|
+
*
|
|
1606
|
+
* @param command - The value to score against the search string (e.g. a command name like "Calculator")
|
|
1607
|
+
* @param search - The search string to score against the value/aliases
|
|
1608
|
+
* @param commandKeywords - An optional list of aliases/keywords to score against the search string - e.g. ["math", "add", "divide", "multiply", "subtract"]
|
|
1609
|
+
* @returns A score between 0 and 1 that represents how well the search string matches the
|
|
1610
|
+
* command (and keywords)
|
|
1611
|
+
*/
|
|
1612
|
+
function computeCommandScore(command, search, commandKeywords) {
|
|
1613
|
+
/**
|
|
1614
|
+
* NOTE: We used to do lower-casing on each recursive call, but this meant that `toLowerCase()`
|
|
1615
|
+
* was the dominating cost in the algorithm. Passing both is a little ugly, but considerably
|
|
1616
|
+
* faster.
|
|
1617
|
+
*/
|
|
1618
|
+
command = commandKeywords && commandKeywords.length > 0 ? `${`${command} ${commandKeywords?.join(" ")}`}` : command;
|
|
1619
|
+
return computeCommandScoreInner(command, search, formatInput(command), formatInput(search), 0, 0, {});
|
|
1620
|
+
}
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/search.svelte
|
|
1623
|
+
function Search($$renderer, $$props) {
|
|
1624
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
1625
|
+
Icon($$renderer, spread_props([props, { icon: {
|
|
1626
|
+
"name": "search",
|
|
1627
|
+
"size": 24,
|
|
1628
|
+
"node": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", {
|
|
1629
|
+
"cx": "11",
|
|
1630
|
+
"cy": "11",
|
|
1631
|
+
"r": "8"
|
|
1632
|
+
}]]
|
|
1633
|
+
} }]));
|
|
1634
|
+
}
|
|
1635
|
+
//#endregion
|
|
1636
|
+
//#region src/lib/components/ui/command/command.svelte
|
|
1637
|
+
function Command($$renderer, $$props) {
|
|
1638
|
+
$$renderer.component(($$renderer) => {
|
|
1639
|
+
let { api = null, ref = null, value = "", class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1640
|
+
let $$settled = true;
|
|
1641
|
+
let $$inner_renderer;
|
|
1642
|
+
function $$render_inner($$renderer) {
|
|
1643
|
+
if (Command$1) {
|
|
1644
|
+
$$renderer.push("<!--[-->");
|
|
1645
|
+
Command$1($$renderer, spread_props([
|
|
1646
|
+
{
|
|
1647
|
+
"data-slot": "command",
|
|
1648
|
+
class: cn("flex size-full flex-col overflow-hidden rounded-4xl bg-popover p-1 text-popover-foreground", className)
|
|
1649
|
+
},
|
|
1650
|
+
restProps,
|
|
1651
|
+
{
|
|
1652
|
+
get value() {
|
|
1653
|
+
return value;
|
|
1654
|
+
},
|
|
1655
|
+
set value($$value) {
|
|
1656
|
+
value = $$value;
|
|
1657
|
+
$$settled = false;
|
|
1658
|
+
},
|
|
1659
|
+
get ref() {
|
|
1660
|
+
return ref;
|
|
1661
|
+
},
|
|
1662
|
+
set ref($$value) {
|
|
1663
|
+
ref = $$value;
|
|
1664
|
+
$$settled = false;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
]));
|
|
1668
|
+
$$renderer.push("<!--]-->");
|
|
1669
|
+
} else {
|
|
1670
|
+
$$renderer.push("<!--[!-->");
|
|
1671
|
+
$$renderer.push("<!--]-->");
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
do {
|
|
1675
|
+
$$settled = true;
|
|
1676
|
+
$$inner_renderer = $$renderer.copy();
|
|
1677
|
+
$$render_inner($$inner_renderer);
|
|
1678
|
+
} while (!$$settled);
|
|
1679
|
+
$$renderer.subsume($$inner_renderer);
|
|
1680
|
+
bind_props($$props, {
|
|
1681
|
+
api,
|
|
1682
|
+
ref,
|
|
1683
|
+
value
|
|
1684
|
+
});
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region src/lib/components/ui/command/command-dialog.svelte
|
|
1689
|
+
function Command_dialog($$renderer, $$props) {
|
|
1690
|
+
$$renderer.component(($$renderer) => {
|
|
1691
|
+
let { open = false, ref = null, value = "", title = "Command Palette", description = "Search for a command to run...", showCloseButton = false, portalProps, children, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1692
|
+
let $$settled = true;
|
|
1693
|
+
let $$inner_renderer;
|
|
1694
|
+
function $$render_inner($$renderer) {
|
|
1695
|
+
if (Dialog) {
|
|
1696
|
+
$$renderer.push("<!--[-->");
|
|
1697
|
+
Dialog($$renderer, spread_props([restProps, {
|
|
1698
|
+
get open() {
|
|
1699
|
+
return open;
|
|
1700
|
+
},
|
|
1701
|
+
set open($$value) {
|
|
1702
|
+
open = $$value;
|
|
1703
|
+
$$settled = false;
|
|
1704
|
+
},
|
|
1705
|
+
children: ($$renderer) => {
|
|
1706
|
+
if (Dialog_header) {
|
|
1707
|
+
$$renderer.push("<!--[-->");
|
|
1708
|
+
Dialog_header($$renderer, {
|
|
1709
|
+
class: "sr-only",
|
|
1710
|
+
children: ($$renderer) => {
|
|
1711
|
+
if (Dialog_title) {
|
|
1712
|
+
$$renderer.push("<!--[-->");
|
|
1713
|
+
Dialog_title($$renderer, {
|
|
1714
|
+
children: ($$renderer) => {
|
|
1715
|
+
$$renderer.push(`<!---->${escape_html(title)}`);
|
|
1716
|
+
},
|
|
1717
|
+
$$slots: { default: true }
|
|
1718
|
+
});
|
|
1719
|
+
$$renderer.push("<!--]-->");
|
|
1720
|
+
} else {
|
|
1721
|
+
$$renderer.push("<!--[!-->");
|
|
1722
|
+
$$renderer.push("<!--]-->");
|
|
1723
|
+
}
|
|
1724
|
+
$$renderer.push(` `);
|
|
1725
|
+
if (Dialog_description) {
|
|
1726
|
+
$$renderer.push("<!--[-->");
|
|
1727
|
+
Dialog_description($$renderer, {
|
|
1728
|
+
children: ($$renderer) => {
|
|
1729
|
+
$$renderer.push(`<!---->${escape_html(description)}`);
|
|
1730
|
+
},
|
|
1731
|
+
$$slots: { default: true }
|
|
1732
|
+
});
|
|
1733
|
+
$$renderer.push("<!--]-->");
|
|
1734
|
+
} else {
|
|
1735
|
+
$$renderer.push("<!--[!-->");
|
|
1736
|
+
$$renderer.push("<!--]-->");
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
$$slots: { default: true }
|
|
1740
|
+
});
|
|
1741
|
+
$$renderer.push("<!--]-->");
|
|
1742
|
+
} else {
|
|
1743
|
+
$$renderer.push("<!--[!-->");
|
|
1744
|
+
$$renderer.push("<!--]-->");
|
|
1745
|
+
}
|
|
1746
|
+
$$renderer.push(` `);
|
|
1747
|
+
if (Dialog_content) {
|
|
1748
|
+
$$renderer.push("<!--[-->");
|
|
1749
|
+
Dialog_content($$renderer, {
|
|
1750
|
+
class: cn("top-1/3 translate-y-0 overflow-hidden rounded-4xl! p-0 p-0", className),
|
|
1751
|
+
showCloseButton,
|
|
1752
|
+
portalProps,
|
|
1753
|
+
children: ($$renderer) => {
|
|
1754
|
+
Command($$renderer, spread_props([restProps, {
|
|
1755
|
+
children,
|
|
1756
|
+
get value() {
|
|
1757
|
+
return value;
|
|
1758
|
+
},
|
|
1759
|
+
set value($$value) {
|
|
1760
|
+
value = $$value;
|
|
1761
|
+
$$settled = false;
|
|
1762
|
+
},
|
|
1763
|
+
get ref() {
|
|
1764
|
+
return ref;
|
|
1765
|
+
},
|
|
1766
|
+
set ref($$value) {
|
|
1767
|
+
ref = $$value;
|
|
1768
|
+
$$settled = false;
|
|
1769
|
+
}
|
|
1770
|
+
}]));
|
|
1771
|
+
},
|
|
1772
|
+
$$slots: { default: true }
|
|
1773
|
+
});
|
|
1774
|
+
$$renderer.push("<!--]-->");
|
|
1775
|
+
} else {
|
|
1776
|
+
$$renderer.push("<!--[!-->");
|
|
1777
|
+
$$renderer.push("<!--]-->");
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
$$slots: { default: true }
|
|
1781
|
+
}]));
|
|
1782
|
+
$$renderer.push("<!--]-->");
|
|
1783
|
+
} else {
|
|
1784
|
+
$$renderer.push("<!--[!-->");
|
|
1785
|
+
$$renderer.push("<!--]-->");
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
do {
|
|
1789
|
+
$$settled = true;
|
|
1790
|
+
$$inner_renderer = $$renderer.copy();
|
|
1791
|
+
$$render_inner($$inner_renderer);
|
|
1792
|
+
} while (!$$settled);
|
|
1793
|
+
$$renderer.subsume($$inner_renderer);
|
|
1794
|
+
bind_props($$props, {
|
|
1795
|
+
open,
|
|
1796
|
+
ref,
|
|
1797
|
+
value
|
|
1798
|
+
});
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1801
|
+
//#endregion
|
|
1802
|
+
//#region src/lib/components/ui/command/command-empty.svelte
|
|
1803
|
+
function Command_empty($$renderer, $$props) {
|
|
1804
|
+
$$renderer.component(($$renderer) => {
|
|
1805
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
1806
|
+
let $$settled = true;
|
|
1807
|
+
let $$inner_renderer;
|
|
1808
|
+
function $$render_inner($$renderer) {
|
|
1809
|
+
if (Command_empty$1) {
|
|
1810
|
+
$$renderer.push("<!--[-->");
|
|
1811
|
+
Command_empty$1($$renderer, spread_props([
|
|
1812
|
+
{
|
|
1813
|
+
"data-slot": "command-empty",
|
|
1814
|
+
class: cn("py-6 text-center text-sm", className)
|
|
1815
|
+
},
|
|
1816
|
+
restProps,
|
|
1817
|
+
{
|
|
1818
|
+
get ref() {
|
|
1819
|
+
return ref;
|
|
1820
|
+
},
|
|
1821
|
+
set ref($$value) {
|
|
1822
|
+
ref = $$value;
|
|
1823
|
+
$$settled = false;
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
]));
|
|
1827
|
+
$$renderer.push("<!--]-->");
|
|
1828
|
+
} else {
|
|
1829
|
+
$$renderer.push("<!--[!-->");
|
|
1830
|
+
$$renderer.push("<!--]-->");
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
do {
|
|
1834
|
+
$$settled = true;
|
|
1835
|
+
$$inner_renderer = $$renderer.copy();
|
|
1836
|
+
$$render_inner($$inner_renderer);
|
|
1837
|
+
} while (!$$settled);
|
|
1838
|
+
$$renderer.subsume($$inner_renderer);
|
|
1839
|
+
bind_props($$props, { ref });
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
//#endregion
|
|
1843
|
+
//#region src/lib/components/ui/command/command-group.svelte
|
|
1844
|
+
function Command_group($$renderer, $$props) {
|
|
1845
|
+
$$renderer.component(($$renderer) => {
|
|
1846
|
+
let { ref = null, class: className, children, heading, value, $$slots, $$events, ...restProps } = $$props;
|
|
1847
|
+
let $$settled = true;
|
|
1848
|
+
let $$inner_renderer;
|
|
1849
|
+
function $$render_inner($$renderer) {
|
|
1850
|
+
if (Command_group$1) {
|
|
1851
|
+
$$renderer.push("<!--[-->");
|
|
1852
|
+
Command_group$1($$renderer, spread_props([
|
|
1853
|
+
{
|
|
1854
|
+
"data-slot": "command-group",
|
|
1855
|
+
class: cn("overflow-hidden p-1.5 text-foreground **:[[cmdk-group-heading]]:px-3 **:[[cmdk-group-heading]]:py-2 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", className),
|
|
1856
|
+
value: value ?? heading ?? `----${useId()}`
|
|
1857
|
+
},
|
|
1858
|
+
restProps,
|
|
1859
|
+
{
|
|
1860
|
+
get ref() {
|
|
1861
|
+
return ref;
|
|
1862
|
+
},
|
|
1863
|
+
set ref($$value) {
|
|
1864
|
+
ref = $$value;
|
|
1865
|
+
$$settled = false;
|
|
1866
|
+
},
|
|
1867
|
+
children: ($$renderer) => {
|
|
1868
|
+
if (heading) {
|
|
1869
|
+
$$renderer.push("<!--[0-->");
|
|
1870
|
+
if (Command_group_heading) {
|
|
1871
|
+
$$renderer.push("<!--[-->");
|
|
1872
|
+
Command_group_heading($$renderer, {
|
|
1873
|
+
class: "px-2 py-1.5 text-xs font-medium text-muted-foreground",
|
|
1874
|
+
children: ($$renderer) => {
|
|
1875
|
+
$$renderer.push(`<!---->${escape_html(heading)}`);
|
|
1876
|
+
},
|
|
1877
|
+
$$slots: { default: true }
|
|
1878
|
+
});
|
|
1879
|
+
$$renderer.push("<!--]-->");
|
|
1880
|
+
} else {
|
|
1881
|
+
$$renderer.push("<!--[!-->");
|
|
1882
|
+
$$renderer.push("<!--]-->");
|
|
1883
|
+
}
|
|
1884
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1885
|
+
$$renderer.push(`<!--]--> `);
|
|
1886
|
+
if (Command_group_items) {
|
|
1887
|
+
$$renderer.push("<!--[-->");
|
|
1888
|
+
Command_group_items($$renderer, { children });
|
|
1889
|
+
$$renderer.push("<!--]-->");
|
|
1890
|
+
} else {
|
|
1891
|
+
$$renderer.push("<!--[!-->");
|
|
1892
|
+
$$renderer.push("<!--]-->");
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
$$slots: { default: true }
|
|
1896
|
+
}
|
|
1897
|
+
]));
|
|
1898
|
+
$$renderer.push("<!--]-->");
|
|
1899
|
+
} else {
|
|
1900
|
+
$$renderer.push("<!--[!-->");
|
|
1901
|
+
$$renderer.push("<!--]-->");
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
do {
|
|
1905
|
+
$$settled = true;
|
|
1906
|
+
$$inner_renderer = $$renderer.copy();
|
|
1907
|
+
$$render_inner($$inner_renderer);
|
|
1908
|
+
} while (!$$settled);
|
|
1909
|
+
$$renderer.subsume($$inner_renderer);
|
|
1910
|
+
bind_props($$props, { ref });
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region src/lib/components/ui/input-group/input-group-addon.svelte
|
|
1915
|
+
var inputGroupAddonVariants = tv({
|
|
1916
|
+
base: "text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-2 py-2 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-3xl **:data-[slot=kbd]:px-1.5 [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none",
|
|
1917
|
+
variants: { align: {
|
|
1918
|
+
"inline-start": "pl-3 has-[>button]:-ml-1 has-[>kbd]:-ml-1 order-first",
|
|
1919
|
+
"inline-end": "pr-3 has-[>button]:-mr-1 has-[>kbd]:-mr-1 order-last",
|
|
1920
|
+
"block-start": "px-3 pt-3 group-has-[>input]/input-group:pt-3.5 [.border-b]:pb-3.5 order-first w-full justify-start",
|
|
1921
|
+
"block-end": "px-3 pb-3 group-has-[>input]/input-group:pb-3.5 [.border-t]:pt-3.5 order-last w-full justify-start"
|
|
1922
|
+
} },
|
|
1923
|
+
defaultVariants: { align: "inline-start" }
|
|
1924
|
+
});
|
|
1925
|
+
function Input_group_addon($$renderer, $$props) {
|
|
1926
|
+
$$renderer.component(($$renderer) => {
|
|
1927
|
+
let { ref = null, class: className, children, align = "inline-start", $$slots, $$events, ...restProps } = $$props;
|
|
1928
|
+
$$renderer.push(`<div${attributes({
|
|
1929
|
+
role: "group",
|
|
1930
|
+
"data-slot": "input-group-addon",
|
|
1931
|
+
"data-align": align,
|
|
1932
|
+
class: clsx(cn(inputGroupAddonVariants({ align }), className)),
|
|
1933
|
+
...restProps
|
|
1934
|
+
})}>`);
|
|
1935
|
+
children?.($$renderer);
|
|
1936
|
+
$$renderer.push(`<!----></div>`);
|
|
1937
|
+
bind_props($$props, { ref });
|
|
1938
|
+
});
|
|
1939
|
+
}
|
|
1940
|
+
tv({
|
|
1941
|
+
base: "gap-2 rounded-4xl text-sm flex items-center shadow-none",
|
|
1942
|
+
variants: { size: {
|
|
1943
|
+
xs: "h-6 gap-1 rounded-xl px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
1944
|
+
sm: "",
|
|
1945
|
+
"icon-xs": "size-6 rounded-xl p-0 has-[>svg]:p-0",
|
|
1946
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
1947
|
+
} },
|
|
1948
|
+
defaultVariants: { size: "xs" }
|
|
1949
|
+
});
|
|
1950
|
+
//#endregion
|
|
1951
|
+
//#region src/lib/components/ui/input-group/input-group-input.svelte
|
|
1952
|
+
function Input_group_input($$renderer, $$props) {
|
|
1953
|
+
$$renderer.component(($$renderer) => {
|
|
1954
|
+
let { ref = null, value = void 0, class: className, $$slots, $$events, ...props } = $$props;
|
|
1955
|
+
let $$settled = true;
|
|
1956
|
+
let $$inner_renderer;
|
|
1957
|
+
function $$render_inner($$renderer) {
|
|
1958
|
+
Input($$renderer, spread_props([
|
|
1959
|
+
{
|
|
1960
|
+
"data-slot": "input-group-control",
|
|
1961
|
+
class: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className)
|
|
1962
|
+
},
|
|
1963
|
+
props,
|
|
1964
|
+
{
|
|
1965
|
+
get ref() {
|
|
1966
|
+
return ref;
|
|
1967
|
+
},
|
|
1968
|
+
set ref($$value) {
|
|
1969
|
+
ref = $$value;
|
|
1970
|
+
$$settled = false;
|
|
1971
|
+
},
|
|
1972
|
+
get value() {
|
|
1973
|
+
return value;
|
|
1974
|
+
},
|
|
1975
|
+
set value($$value) {
|
|
1976
|
+
value = $$value;
|
|
1977
|
+
$$settled = false;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
]));
|
|
1981
|
+
}
|
|
1982
|
+
do {
|
|
1983
|
+
$$settled = true;
|
|
1984
|
+
$$inner_renderer = $$renderer.copy();
|
|
1985
|
+
$$render_inner($$inner_renderer);
|
|
1986
|
+
} while (!$$settled);
|
|
1987
|
+
$$renderer.subsume($$inner_renderer);
|
|
1988
|
+
bind_props($$props, {
|
|
1989
|
+
ref,
|
|
1990
|
+
value
|
|
1991
|
+
});
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
//#endregion
|
|
1995
|
+
//#region src/lib/components/ui/input-group/input-group.svelte
|
|
1996
|
+
function Input_group($$renderer, $$props) {
|
|
1997
|
+
$$renderer.component(($$renderer) => {
|
|
1998
|
+
let { ref = null, class: className, children, $$slots, $$events, ...props } = $$props;
|
|
1999
|
+
$$renderer.push(`<div${attributes({
|
|
2000
|
+
"data-slot": "input-group",
|
|
2001
|
+
role: "group",
|
|
2002
|
+
class: clsx(cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-4xl border border-transparent bg-input/50 transition-[color,box-shadow,background-color] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-3xl has-data-[align=block-start]:rounded-3xl has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[textarea]:rounded-2xl has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className)),
|
|
2003
|
+
...props
|
|
2004
|
+
})}>`);
|
|
2005
|
+
children?.($$renderer);
|
|
2006
|
+
$$renderer.push(`<!----></div>`);
|
|
2007
|
+
bind_props($$props, { ref });
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
//#endregion
|
|
2011
|
+
//#region src/lib/components/ui/command/command-input.svelte
|
|
2012
|
+
function Command_input($$renderer, $$props) {
|
|
2013
|
+
$$renderer.component(($$renderer) => {
|
|
2014
|
+
let { ref = null, class: className, value = "", $$slots, $$events, ...restProps } = $$props;
|
|
2015
|
+
let $$settled = true;
|
|
2016
|
+
let $$inner_renderer;
|
|
2017
|
+
function $$render_inner($$renderer) {
|
|
2018
|
+
$$renderer.push(`<div data-slot="command-input-wrapper" class="p-1 pb-0">`);
|
|
2019
|
+
if (Input_group) {
|
|
2020
|
+
$$renderer.push("<!--[-->");
|
|
2021
|
+
Input_group($$renderer, {
|
|
2022
|
+
class: "h-9 bg-input/50",
|
|
2023
|
+
children: ($$renderer) => {
|
|
2024
|
+
{
|
|
2025
|
+
function child($$renderer, { props }) {
|
|
2026
|
+
if (Input_group_input) {
|
|
2027
|
+
$$renderer.push("<!--[-->");
|
|
2028
|
+
Input_group_input($$renderer, spread_props([props, {
|
|
2029
|
+
get value() {
|
|
2030
|
+
return value;
|
|
2031
|
+
},
|
|
2032
|
+
set value($$value) {
|
|
2033
|
+
value = $$value;
|
|
2034
|
+
$$settled = false;
|
|
2035
|
+
},
|
|
2036
|
+
get ref() {
|
|
2037
|
+
return ref;
|
|
2038
|
+
},
|
|
2039
|
+
set ref($$value) {
|
|
2040
|
+
ref = $$value;
|
|
2041
|
+
$$settled = false;
|
|
2042
|
+
}
|
|
2043
|
+
}]));
|
|
2044
|
+
$$renderer.push("<!--]-->");
|
|
2045
|
+
} else {
|
|
2046
|
+
$$renderer.push("<!--[!-->");
|
|
2047
|
+
$$renderer.push("<!--]-->");
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
if (Command_input$1) {
|
|
2051
|
+
$$renderer.push("<!--[-->");
|
|
2052
|
+
Command_input$1($$renderer, spread_props([
|
|
2053
|
+
{
|
|
2054
|
+
value,
|
|
2055
|
+
"data-slot": "command-input",
|
|
2056
|
+
class: cn("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className)
|
|
2057
|
+
},
|
|
2058
|
+
restProps,
|
|
2059
|
+
{
|
|
2060
|
+
child,
|
|
2061
|
+
$$slots: { child: true }
|
|
2062
|
+
}
|
|
2063
|
+
]));
|
|
2064
|
+
$$renderer.push("<!--]-->");
|
|
2065
|
+
} else {
|
|
2066
|
+
$$renderer.push("<!--[!-->");
|
|
2067
|
+
$$renderer.push("<!--]-->");
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
$$renderer.push(` `);
|
|
2071
|
+
if (Input_group_addon) {
|
|
2072
|
+
$$renderer.push("<!--[-->");
|
|
2073
|
+
Input_group_addon($$renderer, {
|
|
2074
|
+
children: ($$renderer) => {
|
|
2075
|
+
Search($$renderer, { class: "size-4 shrink-0 opacity-50" });
|
|
2076
|
+
},
|
|
2077
|
+
$$slots: { default: true }
|
|
2078
|
+
});
|
|
2079
|
+
$$renderer.push("<!--]-->");
|
|
2080
|
+
} else {
|
|
2081
|
+
$$renderer.push("<!--[!-->");
|
|
2082
|
+
$$renderer.push("<!--]-->");
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
$$slots: { default: true }
|
|
2086
|
+
});
|
|
2087
|
+
$$renderer.push("<!--]-->");
|
|
2088
|
+
} else {
|
|
2089
|
+
$$renderer.push("<!--[!-->");
|
|
2090
|
+
$$renderer.push("<!--]-->");
|
|
2091
|
+
}
|
|
2092
|
+
$$renderer.push(`</div>`);
|
|
2093
|
+
}
|
|
2094
|
+
do {
|
|
2095
|
+
$$settled = true;
|
|
2096
|
+
$$inner_renderer = $$renderer.copy();
|
|
2097
|
+
$$render_inner($$inner_renderer);
|
|
2098
|
+
} while (!$$settled);
|
|
2099
|
+
$$renderer.subsume($$inner_renderer);
|
|
2100
|
+
bind_props($$props, {
|
|
2101
|
+
ref,
|
|
2102
|
+
value
|
|
2103
|
+
});
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2106
|
+
//#endregion
|
|
2107
|
+
//#region src/lib/components/ui/command/command-item.svelte
|
|
2108
|
+
function Command_item($$renderer, $$props) {
|
|
2109
|
+
$$renderer.component(($$renderer) => {
|
|
2110
|
+
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
2111
|
+
let $$settled = true;
|
|
2112
|
+
let $$inner_renderer;
|
|
2113
|
+
function $$render_inner($$renderer) {
|
|
2114
|
+
if (Command_item$1) {
|
|
2115
|
+
$$renderer.push("<!--[-->");
|
|
2116
|
+
Command_item$1($$renderer, spread_props([
|
|
2117
|
+
{
|
|
2118
|
+
"data-slot": "command-item",
|
|
2119
|
+
class: cn("group/command-item relative flex cursor-default items-center gap-2 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none in-data-[slot=dialog-content]:rounded-3xl data-selected:bg-muted data-selected:text-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground", className)
|
|
2120
|
+
},
|
|
2121
|
+
restProps,
|
|
2122
|
+
{
|
|
2123
|
+
get ref() {
|
|
2124
|
+
return ref;
|
|
2125
|
+
},
|
|
2126
|
+
set ref($$value) {
|
|
2127
|
+
ref = $$value;
|
|
2128
|
+
$$settled = false;
|
|
2129
|
+
},
|
|
2130
|
+
children: ($$renderer) => {
|
|
2131
|
+
children?.($$renderer);
|
|
2132
|
+
$$renderer.push(`<!----> `);
|
|
2133
|
+
Check($$renderer, { class: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" });
|
|
2134
|
+
$$renderer.push(`<!---->`);
|
|
2135
|
+
},
|
|
2136
|
+
$$slots: { default: true }
|
|
2137
|
+
}
|
|
2138
|
+
]));
|
|
2139
|
+
$$renderer.push("<!--]-->");
|
|
2140
|
+
} else {
|
|
2141
|
+
$$renderer.push("<!--[!-->");
|
|
2142
|
+
$$renderer.push("<!--]-->");
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
do {
|
|
2146
|
+
$$settled = true;
|
|
2147
|
+
$$inner_renderer = $$renderer.copy();
|
|
2148
|
+
$$render_inner($$inner_renderer);
|
|
2149
|
+
} while (!$$settled);
|
|
2150
|
+
$$renderer.subsume($$inner_renderer);
|
|
2151
|
+
bind_props($$props, { ref });
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
//#endregion
|
|
2155
|
+
//#region src/lib/components/ui/command/command-list.svelte
|
|
2156
|
+
function Command_list($$renderer, $$props) {
|
|
2157
|
+
$$renderer.component(($$renderer) => {
|
|
2158
|
+
let { ref = null, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
2159
|
+
let $$settled = true;
|
|
2160
|
+
let $$inner_renderer;
|
|
2161
|
+
function $$render_inner($$renderer) {
|
|
2162
|
+
if (Command_list$1) {
|
|
2163
|
+
$$renderer.push("<!--[-->");
|
|
2164
|
+
Command_list$1($$renderer, spread_props([
|
|
2165
|
+
{
|
|
2166
|
+
"data-slot": "command-list",
|
|
2167
|
+
class: cn("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className)
|
|
2168
|
+
},
|
|
2169
|
+
restProps,
|
|
2170
|
+
{
|
|
2171
|
+
get ref() {
|
|
2172
|
+
return ref;
|
|
2173
|
+
},
|
|
2174
|
+
set ref($$value) {
|
|
2175
|
+
ref = $$value;
|
|
2176
|
+
$$settled = false;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
]));
|
|
2180
|
+
$$renderer.push("<!--]-->");
|
|
2181
|
+
} else {
|
|
2182
|
+
$$renderer.push("<!--[!-->");
|
|
2183
|
+
$$renderer.push("<!--]-->");
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
do {
|
|
2187
|
+
$$settled = true;
|
|
2188
|
+
$$inner_renderer = $$renderer.copy();
|
|
2189
|
+
$$render_inner($$inner_renderer);
|
|
2190
|
+
} while (!$$settled);
|
|
2191
|
+
$$renderer.subsume($$inner_renderer);
|
|
2192
|
+
bind_props($$props, { ref });
|
|
2193
|
+
});
|
|
2194
|
+
}
|
|
2195
|
+
//#endregion
|
|
2196
|
+
//#region src/lib/components/ui/command/command-loading.svelte
|
|
2197
|
+
function Command_loading($$renderer, $$props) {
|
|
2198
|
+
$$renderer.component(($$renderer) => {
|
|
2199
|
+
let { ref = null, $$slots, $$events, ...restProps } = $$props;
|
|
2200
|
+
let $$settled = true;
|
|
2201
|
+
let $$inner_renderer;
|
|
2202
|
+
function $$render_inner($$renderer) {
|
|
2203
|
+
if (Command_loading$1) {
|
|
2204
|
+
$$renderer.push("<!--[-->");
|
|
2205
|
+
Command_loading$1($$renderer, spread_props([restProps, {
|
|
2206
|
+
get ref() {
|
|
2207
|
+
return ref;
|
|
2208
|
+
},
|
|
2209
|
+
set ref($$value) {
|
|
2210
|
+
ref = $$value;
|
|
2211
|
+
$$settled = false;
|
|
2212
|
+
}
|
|
2213
|
+
}]));
|
|
2214
|
+
$$renderer.push("<!--]-->");
|
|
2215
|
+
} else {
|
|
2216
|
+
$$renderer.push("<!--[!-->");
|
|
2217
|
+
$$renderer.push("<!--]-->");
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
do {
|
|
2221
|
+
$$settled = true;
|
|
2222
|
+
$$inner_renderer = $$renderer.copy();
|
|
2223
|
+
$$render_inner($$inner_renderer);
|
|
2224
|
+
} while (!$$settled);
|
|
2225
|
+
$$renderer.subsume($$inner_renderer);
|
|
2226
|
+
bind_props($$props, { ref });
|
|
2227
|
+
});
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
export { Command_dialog as C, Search as S, Command_input as a, Command_list as b, Command_empty as c, Command_group as d, Command_item as e, Command as f, Command_loading as g };
|
|
2231
|
+
//# sourceMappingURL=command.js-DYF1chyA.js.map
|