import{Y as e}from"./BW-sf0N4.js";function t(t,n={}){let r=new URLSearchParams;return t.q&&r.set(`q`,t.q),t.type&&r.set(`type`,t.type),t.tags&&r.set(`tags`,t.tags),t.repos&&r.set(`repos`,t.repos),t.mode&&r.set(`mode`,t.mode),e(`/api/search?${r.toString()}`,{signal:n.signal})}export{t};