import{aB as y,bU as h,bN as d,aH as l,cZ as m,bS as x,c7 as v}from"./C6MRUCyE.js";import{u as b}from"./ojvnrNtQ.js";const f="__nuxt_component";async function A(p,u){const t=y(),s=d(),n=v(),{fetchKey:o,_fetchKeyBase:r}=n.proxy.$options,c=(typeof o=="function"?o(()=>""):o)||[r,s.fullPath,s.matched.findIndex(i=>Object.values(i.components||{}).includes(n.type))].join(":"),{data:e,error:a}=await b(`options:asyncdata:${c}`,()=>u(t));if(a.value)throw l(a.value);e.value&&typeof e.value=="object"&&Object.assign(await p,m(x(e.value)))}const N=function(...u){const[t,s]=u,{setup:n}=t;return!n&&!t.asyncData&&!t.head?{[f]:!0,...t}:{[f]:!0,_fetchKeyBase:s,...t,setup(o,r){const c=y(),e=n?Promise.resolve(c.runWithContext(()=>n(o,r))).then(i=>i||{}):{},a=[];return t.asyncData&&a.push(A(e,t.asyncData)),t.head&&h(typeof t.head=="function"?()=>t.head(c):t.head),Promise.resolve(e).then(()=>Promise.all(a)).then(()=>e).finally(()=>{a.length=0})}}};export{N as d};