import{h as e}from"./i18n-DfIivedY.js";function t(e,{resetPage:t=!1,pageParamName:n=`page`}={}){let r=new URLSearchParams(window.location.search);t&&r.delete(n),Object.entries(e).forEach(([e,t])=>{let n=t?.trim();if(!n){r.delete(e);return}r.set(e,n)});let i=r.toString();return window.location.pathname+(i===``?``:`?${i}`)}function n(n,r={}){e.get(t(n,r),void 0,{preserveScroll:!0,preserveState:!0,replace:!0,only:r.only})}export{n as t};