import{a as f}from"./chunk-CP4WO7MM.mjs";import{a as m}from"./chunk-IHX4EDUF.mjs";var a=(r,o,{sameOrder:p=!1}={})=>r.length!==o.length?!1:p?r.every((t,e)=>t===o[e]):r.every(t=>o.includes(t));function v({domain:r,key:o,pretty:p,searchParams:t}){if(!r)return"";let e=`https://${m(r)}${o&&o!=="_root"?`/${m(o)}`:""}`;if(t){let n=new URLSearchParams;for(let[x,i]of Object.entries(t))n.set(x,i);e+=`?${n.toString()}`}return p?e.replace(/^https?:\/\//,""):e}function w({domain:r,key:o}){return`https://${r}${o==="_root"?"":`/${o}`}`}var dr=r=>!r.periodStart||!r.periodEnd?"-":`${f(r.periodStart,{month:"short",year:new Date(r.periodStart).getUTCFullYear()===new Date(r.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${f(r.periodEnd,{month:"short",timeZone:"utc"})}`;export{a,dr as b,v as c,w as d};
