import{aW as o,r as u,X as f,T as d,aX as v,e as l,aE as i,an as h,a4 as m}from"./CairwAfu.js";function U(t,a={}){const e=a.head||o();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=u(!1),n=u({});f(()=>{n.value=s.value?{}:v(a)});const r=t.push(n.value,e);return d(n,c=>{r.patch(c)}),m()&&(l(()=>{r.dispose()}),i(()=>{s.value=!0}),h(()=>{s.value=!1})),r}export{U as u};
