import{a as f}from"/build/_shared/chunk-PGOH7JLP.js";import{b as n}from"/build/_shared/chunk-UJ53HPD4.js";import{a as i,l as c,v as l}from"/build/_shared/chunk-OQBK2LQE.js";import{c as t}from"/build/_shared/chunk-Q3IECNXJ.js";var p=t(i()),m=p.default.createContext({_:()=>{throw new Error("No TranslateContext provided")},locale:"en",addLocaleToUrl:()=>{throw new Error("No TranslateContext provided")}});var d=t(i());var g=t(f()),s=t(l()),T=e=>{let r=(0,d.useContext)(m);return typeof e=="string"?n(e,r.locale):e instanceof URL?n(e.pathname||"",r.locale)+"?"+e.searchParams.toString():n(e.pathname||"",r.locale)+(e.search?"?"+e.search:"")};function x({children:e,to:r,...o}){let a=T(r);return(0,s.jsx)(c,{to:a,...o,children:e})}function k({children:e,href:r,...o}){let a=T(r);return(0,s.jsx)("a",{href:a,...o,children:e})}export{m as a,x as b,k as c};
