1import{c as U}from"./UnKBvQDt.js";import{Ct as _,Ft as P,G as H,I as W,Rt as E,S as R,Vt as g,Wt as n,ot as j,rt as V}from"./E0HN8DqU.js";import{m as D,p as F}from"./Boex6s-H.js";import{T as G,h as M,m as Q,s as q,x as z}from"./JNH0WdS8.js";import{t as w}from"./Da3AdDL-.js";import{t as J}from"./v2W4kh1p.js";import"./DT3Yf0j6.js";import{n as K,r as I,t as X}from"./DdN7bANw2.js";import"./D0PpmwWY2.js";function Y(){const a=I({resolveRefs:!1});return{t:(o,f,C)=>f,te:o=>!1,strategy:"no_prefix",defaultLocale:R(()=>n(a.defaultLocale)||"en"),locale:R(()=>n(a.currentLocale)||n(a.defaultLocale)||"en")}}function Z(a,o="/"){const f=Q(a),C=q(f.pathname),S=(i,d=[])=>{const h=M(i),s=i.pathname||"/";return d.push(h||"/"),s!==o&&s!=="/"&&(i.pathname=s.substring(0,s.lastIndexOf("/")),C&&(i.pathname=z(i.pathname.substring(0,i.pathname.lastIndexOf("/")))),S(i,d)),d};return S(f).reverse()}function ee(a){return a.split("?")[0]}function te(a){return a.replaceAll("-"," ").replace(/\w\S*/g,o=>o.charAt(0).toUpperCase()+o.substr(1).toLowerCase())}var $=Symbol("BreadcrumbCtx");function fe(a={}){const o=U(),f=W(),C=`${a.id||"breadcrumb"}`,S=`${f?.uid||0}`,i=[];let d=f?.parent;for(;d;)i.push(d.uid||0),d=d.parent;const h=E(o.isHydrating);let s=null;if(f){s=H($,null),s||(s=E({}),j($,s));const x=s.value;x[S]=a,s.value=x,V(()=>{const r=g(s.value);delete r[S],s.value=r});{const r=[];r.push(o.hooks.hook("page:start",()=>{h.value=!0})),r.push(o.hooks.hook("page:finish",()=>{o.isHydrating||(h.value=!1)})),r.push(o.hooks.hook("app:error",()=>{h.value=!1})),r.push(o.hooks.hook("app:suspense:resolve",()=>{h.value=!1})),P(()=>{r.forEach(b=>b?.()),r.length=0})}}const O=F(),T=D(),c=Y();X({canonical:!0,absolute:!0});const N=J(`nuxt-seo:breadcrumb:${C}`,()=>[]),A=I(),k=R(()=>{if(h.value)return N.value;const x=n(s)||{},r=[...i,S].map(e=>x[e]).filter(Boolean).reduce((e,l)=>{const t={};Object.entries(l).forEach(([m,L])=>{t[m]=n(L)}),e.hideRoot=typeof t.hideRoot>"u"?e.hideRoot:t.hideRoot,e.hideCurrent=typeof t.hideCurrent>"u"?e.hideCurrent:t.hideCurrent,e.hideNonExisting=typeof t.hideNonExisting>"u"?e.hideNonExisting:t.hideNonExisting,e.rootSegment=e.rootSegment||t.rootSegment,e.path=e.path||t.path,e.overrides=e.overrides||[];const u=g(n(t.overrides));u&&u.forEach((m,L)=>{m!==void 0&&(e.overrides[L]=g(n(m)))});const p=g(n(t.prepend)),v=g(n(t.append));return p&&p.length&&(e.prepend=[...e.prepend||[],...p.map(m=>g(n(m)))].filter(Boolean)),v&&v.length&&(e.append=[...e.append||[],...v.map(m=>g(n(m)))].filter(Boolean)),e},{});let b=r.rootSegment||"/";c&&(c.strategy==="prefix"||c.strategy!=="no_prefix"&&n(c.defaultLocale)!==n(c.locale))&&(b=`${b}${n(c.locale)}`);const B=ee(G(r.path||g(O)?.path||b))||"",y=Z(B,b).map((e,l)=>{let t={to:e};const u=r.overrides?.[l];if(typeof u<"u"){if(u===!1)return!1;t=w(u,t)}return t});return y.unshift(...r.prepend||[]),y.push(...r.append||[]),y.filter(Boolean).map(e=>{let l=te(String((e.to||"").split("/").pop())),t="";const u=e.to?T.resolve(e.to)?.matched?.at(-1):null;if(u){const p=u?.meta||{};p.breadcrumb&&(e=w(e,p.breadcrumb));const v=String(u.name).split("___")?.[0];v==="index"&&(l="Home"),l=p.breadcrumbLabel||p.breadcrumbTitle||p.title||l,l=c.t(`breadcrumb.items.${v}.label`,l,{missingWarn:!1}),t=c.t(`breadcrumb.items.${v}.ariaLabel`,t,{missingWarn:!1})}else if(r.hideNonExisting)return!1;return e.label=e.label||l,e.ariaLabel=e.ariaLabel||t||e.label,e.current=e.current||e.to===B,r.hideCurrent&&e.current?!1:e}).map(e=>e&&e.to&&(e.to=K(A.trailingSlash,e.to),e.to===b&&r.hideRoot)?!1:e).filter(Boolean)});return _(k,x=>{h.value||(N.value=x)},{immediate:!0,flush:"sync"}),typeof a.schemaOrg>"u"||a.schemaOrg,k}export{fe 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.