import{b as o,G as u,a9 as f,l,aj as p,a7 as h}from"./BvNnk7SS.js";const H=(i,a=f())=>{const c=o(i),r=h();u(()=>o(i),(t=c)=>{if(!a.path||!t)return;const e=Object.assign({},t?.head||{});e.meta=[...e.meta||[]],e.link=[...e.link||[]];const n=e.title||t?.title;n&&(e.title=n),r.public.content.host;const s=e?.description||t?.description;s&&e.meta.filter(m=>m.name==="description").length===0&&e.meta.push({name:"description",content:s}),e?.image||t?.image,l(()=>p(e))},{immediate:!0})};export{H as u};
