1import{aC as C,b as d,aD as P,aE as w,a7 as b,a5 as m,w as x,aB as O,aF as B,g as k,aG as z}from"./entry.269cfa77.js";function E(...s){var h;const l=typeof s[s.length-1]=="string"?s.pop():void 0;typeof s[0]!="string"&&s.unshift(l);let[a,c,e={}]=s;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof c!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const t=O(),D=()=>null,v=()=>t.isHydrating?t.payload.data[a]:t.static.data[a];e.server=e.server??!0,e.default=e.default??D,e.getCachedData=e.getCachedData??v,e.lazy=e.lazy??!1,e.immediate=e.immediate??!0,e.deep=e.deep??C.deep;const f=()=>![null,void 0].includes(e.getCachedData(a));if(!t._asyncData[a]||!e.immediate){(h=t.payload._errors)[a]??(h[a]=null);const i=e.deep?d:P;t._asyncData[a]={data:i(e.getCachedData(a)??e.default()),pending:d(!f()),error:w(t.payload._errors,a),status:d("idle")}}const n={...t._asyncData[a]};n.refresh=n.execute=(i={})=>{if(t._asyncDataPromises[a]){if(i.dedupe===!1)return t._asyncDataPromises[a];t._asyncDataPromises[a].cancelled=!0}if((i._initial||t.isHydrating&&i._initial!==!1)&&f())return Promise.resolve(e.getCachedData(a));n.pending.value=!0,n.status.value="pending";const u=new Promise((r,o)=>{try{r(c(t))}catch(g){o(g)}}).then(r=>{if(u.cancelled)return t._asyncDataPromises[a];let o=r;e.transform&&(o=e.transform(r)),e.pick&&(o=M(o,e.pick)),t.payload.data[a]=o,n.data.value=o,n.error.value=null,n.status.value="success"}).catch(r=>{if(u.cancelled)return t._asyncDataPromises[a];n.error.value=B(r),n.data.value=k(e.default()),n.status.value="error"}).finally(()=>{u.cancelled||(n.pending.value=!1,delete t._asyncDataPromises[a])});return t._asyncDataPromises[a]=u,t._asyncDataPromises[a]};const y=()=>n.refresh({_initial:!0}),_=e.server!==!1&&t.payload.serverRendered;{const i=z();if(i&&!i._nuxtOnBeforeMountCbs){i._nuxtOnBeforeMountCbs=[];const r=i._nuxtOnBeforeMountCbs;i&&(b(()=>{r.forEach(o=>{o()}),r.splice(0,r.length)}),m(()=>r.splice(0,r.length)))}_&&t.isHydrating&&(n.error.value||f())?(n.pending.value=!1,n.status.value=n.error.value?"error":"success"):i&&(t.payload.serverRendered&&t.isHydrating||e.lazy)&&e.immediate?i._nuxtOnBeforeMountCbs.push(y):e.immediate&&y(),e.watch&&x(e.watch,()=>n.refresh());const u=t.hook("app:data:refresh",async r=>{(!r||r.includes(a))&&await n.refresh()});i&&m(u)}const p=Promise.resolve(t._asyncDataPromises[a]).then(()=>n);return Object.assign(p,n),p}function R(...s){const l=typeof s[s.length-1]=="string"?s.pop():void 0;typeof s[0]!="string"&&s.unshift(l);const[a,c,e]=s;return E(a,c,{...e,lazy:!0},null)}function M(s,l){const a={};for(const c of l)a[c]=s[c];return a}export{E as a,R as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.