import{E as l,e as i}from"./q-DZlJcqMj.js";import{k as u,v as h,A as d,_ as a,a as f,h as v,F as _,B as m}from"./q-DElv2fU_.js";const x=()=>{if(!u("containerAttributes"))throw new Error("PrefetchServiceWorker component must be rendered on the server.");h();const e=d(i);if(e.value&&e.value.length>0){const c=e.value.length;let n=null;for(let t=c-1;t>=0;t--)e.value[t].default&&(n=a(e.value[t].default,{children:n},1,"0j_0"));return a(_,{children:[n,f("script",{"document:onQCInit$":l,"document:onQInit$":v(()=>{((t,r)=>{var o;if(!t._qcs&&r.scrollRestoration==="manual"){t._qcs=!0;const s=(o=r.state)==null?void 0:o._qCityScroll;s&&t.scrollTo(s.x,s.y),document.dispatchEvent(new Event("qcinit"))}})(window,history)},'()=>{((w,h)=>{if(!w._qcs&&h.scrollRestoration==="manual"){w._qcs=true;const s=h.state?._qCityScroll;if(s){w.scrollTo(s.x,s.y);}document.dispatchEvent(new Event("qcinit"));}})(window,history);}')},null,null,2,"0j_1")]},1,"0j_2")}return m};export{x as s_fWeefbqAhHs};