import{h as i,y as p}from"./hooks.module.BrsKpn_h.js";const u=()=>{const[o,r]=i({host:"",protocol:"",origin:"",pathname:"",search:"",hash:""});return p(()=>{if(window){const t=new URL(window.location.href),{host:h,protocol:n,origin:s,pathname:a,search:e,hash:c}=t;r({host:h,protocol:n,origin:s,pathname:a,search:e,hash:c})}},[]),{host:o.host,protocol:o.protocol,hash:o.hash,origin:o.origin,pathname:o.pathname,search:o.search}};export{u};