import{a as e}from"./chunk-IHX4EDUF.mjs";function I({domain:o,key:r,pretty:m,searchParams:p}){if(!o)return"";let t=`https://${e(o)}${r&&r!=="_root"?`/${e(r)}`:""}`;if(p){let f=new URLSearchParams;for(let[x,n]of Object.entries(p))f.set(x,n);t+=`?${f.toString()}`}return m?t.replace(/^https?:\/\//,""):t}function J({domain:o,key:r}){return`https://${o}${r==="_root"?"":`/${r}`}`}export{I as a,J as b};
