1import{$ as e,Hn as t,M as n,Pn as r,bt as i,o as a}from"./C4fHvSDe.js";import{_t as o,vt as s}from"./BO5yLn7-.js";import{y as c}from"./DlgN9b2i.js";import{It as l,Lt as u}from"./CDInIoUH.js";var d={enabled:`index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1`,disabled:`noindex, nofollow`,index:`index`,noindex:`noindex`,follow:`follow`,nofollow:`nofollow`,none:`none`,all:`all`,noai:`noai`,noimageai:`noimageai`};function f(e){return`max-image-preview:${e}`}function p(e){return`max-snippet:${e}`}function m(e){return`max-video-preview:${e}`}s((e,t,n)=>(Array.isArray(e[t])&&Array.isArray(n)&&(e[t]=Array.from(new Set([...e[t],...n]))),e[t]));function h(e){let t=[];for(let[n,r]of Object.entries(e))r!==!1&&r!=null&&(n in d&&typeof r==`boolean`&&r?t.push(d[n]):n===`max-image-preview`&&typeof r==`string`?t.push(f(r)):n===`max-snippet`&&typeof r==`number`?t.push(p(r)):n===`max-video-preview`&&typeof r==`number`&&t.push(m(r)));return t}function g(s){let d=l(),f=e();if(d){let e=r(document.querySelector(`meta[name="robots"]`)?.getAttribute(`content`)||``),t=d.hooks?.hook(`dom:rendered`,()=>{e.value=document.querySelector(`meta[name="robots"]`)?.getAttribute(`content`)||``});return i(t),e}let p=a(),m=c();function g(e){let n=t(e);if(!m||n===void 0)return;let r;if(typeof n==`boolean`){let e=p[`nuxt-robots`];r=n?e.robotsEnabledValue:e.robotsDisabledValue}else if(typeof n==`object`&&n){let e=p[`nuxt-robots`];r=h(n).join(`, `)||e.robotsEnabledValue}else r=n;m.context.robots.rule=r,p[`nuxt-robots`].header&&o(m,`X-Robots-Tag`,r),f?.type?.__file,u({meta:[{name:`robots`,content:r,"data-hint":void 0}]},{head:d})}return g(s),n({set(e){g(e)},get(){return m?.context?.robots?.rule}})}export{g as t};
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.