import{bi as i,a4 as f,z as p,C as l,bj as h}from"./B7Ee6uH9.js";const d=async(e,t)=>$fetch(e,{onResponse:async n=>{t(n.response.status)}}),m=(e,t)=>{t.meta.status=e},x=i(async(e,t)=>{let n,o;const s=f("middlewareRouteInfo",()=>{}),{$getUrl:a}=p();if(e.path===t.path&&s.value){e.meta=t.meta;return}if(!a)throw new Error("Missing function $getUrl in nuxt context. Please check if you have proper nuxt config.");try{const r=a(l.ROUTING,"/czy-jest-route",{route:decodeURIComponent(e.path)}),u=([n,o]=h(()=>d(r,c=>m(c,e))),n=await n,o(),n);e.meta.routeInfo=u,e.meta.popstate=!1,s.value=u}catch{}});export{x as default};
//# sourceMappingURL=BcwfdZtk.js.map
