import"./xihTtKlq.mjs";import{Ft as e,J as t,Jt as n,Lt as r,Mt as i,P as a,Qt as o,St as s,U as c,W as l,Zt as u,c as d,dn as f,et as p,fn as m,gt as h,kt as g,l as _,nt as v,tt as y,u as b,vn as ee,w as x}from"./DRAiiyBy.mjs";import{c as S,r as C,t as w}from"./2rg_Hy9V.mjs";import{i as te,n as T,r as E}from"./Curf-Vo-.mjs";import{t as D}from"./BF6TA2-F.mjs";import{t as O}from"./C3-3c3M6.mjs";import{t as k}from"./Da3zqOpz.mjs";import{t as A}from"./BCWwEbR0.mjs";import{a as j,i as ne,n as re,r as ie}from"./1d4UEy2t.mjs";var ae=v(``),M=v(``),oe=v(` `,1),se=v(``),ce=v(``),N=v(``),P=v(``),le=v(``),ue=v(``),de=v(``),fe=v(``),pe=v(``),me=v(``),he=v(``),ge=v(` `,1),_e=v(``),ve=v(``),ye=v(``),be=v(` `,1),xe=v(` `,1),Se=v(` `,1),Ce=v(``),we=v(``),Te=v(``),Ee=v(``),De=v(``),Oe=v(` `,1),ke=v(` `,1);function F(_,v){m(v,!0);let b=()=>o(S,`$page`,I),F=()=>o(O,`$i18n`,I),[I,L]=u(),R=d(v,`title`,3,``),z=d(v,`description`,3,``),Ae=d(v,`noindex`,3,!1),je=d(v,`nofollow`,3,!1),B=d(v,`openGraph`,19,()=>({title:R(),description:z()})),V=d(v,`twitter`,3,void 0),Me=d(v,`hreflangList`,19,()=>[]),H=d(v,`sanitizedJsonLd`,3,void 0),U=d(v,`generatedJsonLd`,3,void 0),Ne=d(v,`robots`,3,void 0),W=d(v,`canonical`,3,void 0),Pe=n(()=>ne(b().params.lang)),G=ie()===`default-language-only`,Fe=re(),K=n(()=>j({allowIndexing:!!D,lang:b().params.lang,robots:Ne(),noindex:Ae(),nofollow:je()})),q=n(()=>W()??`${k.canonicalURL.slice(0,-1)}${b().url.pathname}`),Ie=n(()=>!h(K).includes(`noindex`)),J=n(()=>h(q)?w(h(q),b().params.lang):void 0),Y=n(()=>h(q)?C(h(q)):void 0),Le=A(),X=n(()=>(Me()??[]).filter((e,t,n)=>n.findIndex(t=>t?.hreflangName===e?.hreflangName)===t)),Z=n(()=>E(b().url.pathname,k.supportedLanguages)),Q=n(()=>b().data.hreflang),Re=n(()=>h(Q)&&h(Q).path===h(Z)?h(Q).alternates:[]),ze=n(()=>T(h(Z),k.canonicalURL)??[]),$=n(()=>h(K).includes(`noindex`)),Be=n(()=>h(X).length?h(X):h($)?[]:h(Re)),Ve=e=>{try{let t=new URL(e,k.canonicalURL),[n]=t.pathname.split(`/`).filter(Boolean);return t.origin===new URL(k.canonicalURL).origin&&k.supportedLanguages.includes(n)}catch{return!1}},He=n(()=>G?h(Be).filter(e=>!e?.href||!Ve(e.href)):h(Be)),Ue=n(()=>{if(!W())return!1;try{let e=new URL(W(),b().url.origin);return e.origin!==b().url.origin||E(e.pathname,k.supportedLanguages)!==h(Z)}catch{return!1}});a(`h50eu3`,n=>{var a=ke(),o=e(a),u=e=>{var t=ae();g(()=>x(t,`href`,h(J))),p(e,t)};t(o,e=>{h(Ie)&&h(J)&&e(u)});var d=r(o,2),f=n=>{var i=y(),a=e(i),o=t=>{var n=y(),r=e(n);l(r,17,()=>h(He),e=>e?.hreflangName,(e,t)=>{var n=M();g(()=>{x(n,`hreflang`,h(t)?.hreflangName),x(n,`href`,h(t)?.href)}),p(e,n)}),p(t,n)},s=t=>{var n=y(),r=e(n);l(r,17,()=>h(ze),e=>e.hreflangName,(e,t)=>{var n=M();g(()=>{x(n,`hreflang`,h(t).hreflangName),x(n,`href`,h(t).href)}),p(e,n)}),p(t,n)},c=t=>{var n=oe(),i=e(n),a=r(i,2);l(a,16,()=>k.supportedLanguages,e=>e,(e,t)=>{var n=M();g(e=>{x(n,`hreflang`,te[t]),x(n,`href`,e)},[()=>t===k.defaultLanguage?h(Y):w(h(Y),t)]),p(e,n)}),g(()=>x(i,`href`,h(Y))),p(t,n)};t(a,e=>{h(He).length?e(o):!h($)&&h(ze).length?e(s,1):!h($)&&h(Y)&&k.supportedLanguages.length>1&&!G&&e(c,2)}),p(n,i)};t(d,e=>{Fe&&!h(Ue)&&e(f)});var m=r(d,2),_=t=>{var n=y(),r=e(n);c(r,U),p(t,n)};t(m,e=>{U()&&e(_)});var v=r(m,2),b=t=>{var n=y(),r=e(n);c(r,H),p(t,n)};t(v,e=>{H()&&e(b)});var S=r(v,2),C=e=>{var t=se();g(()=>x(t,`content`,h(K))),p(e,t)};t(S,e=>{h(Pe)||e(C)});var T=r(S,2),E=e=>{var t=ce();g(e=>x(t,`content`,e),[()=>F()._(z())]),p(e,t)};t(T,e=>{z()&&e(E)});var D=r(T,2),O=n=>{var i=Se(),a=e(i),o=e=>{var t=N();g(e=>x(t,`content`,e),[()=>F()._(B().title)]),p(e,t)},s=e=>{var t=N();g(e=>x(t,`content`,e),[()=>F()._(R())]),p(e,t)};t(a,e=>{B().title?e(o):R()&&e(s,1)});var c=r(a,2),u=e=>{var t=P();g(e=>x(t,`content`,e),[()=>F()._(B().description)]),p(e,t)},d=e=>{var t=P();g(e=>x(t,`content`,e),[()=>F()._(z())]),p(e,t)};t(c,e=>{B().description?e(u):z()&&e(d,1)});var f=r(c,2),m=e=>{var t=le();g(()=>x(t,`content`,B().url||h(J))),p(e,t)};t(f,e=>{(B().url||h(J))&&e(m)});var _=r(f,2),v=r(_,2),b=n=>{var i=ge(),a=e(i),o=e=>{var t=ue();g(()=>x(t,`content`,B().article.publishedTime)),p(e,t)};t(a,e=>{B().article.publishedTime&&e(o)});var s=r(a,2),c=e=>{var t=de();g(()=>x(t,`content`,B().article.modifiedTime)),p(e,t)};t(s,e=>{B().article.modifiedTime&&e(c)});var u=r(s,2),d=e=>{var t=fe();g(()=>x(t,`content`,B().article.expirationTime)),p(e,t)};t(u,e=>{B().article.expirationTime&&e(d)});var f=r(u,2),m=e=>{var t=pe();g(()=>x(t,`content`,B().article.section)),p(e,t)};t(f,e=>{B().article.section&&e(m)});var h=r(f,2),_=t=>{var n=y(),r=e(n);l(r,16,()=>B().article.authors,e=>e,(e,t)=>{var n=me();g(()=>x(n,`content`,t)),p(e,n)}),p(t,n)};t(h,e=>{B().article.authors&&B().article.authors.length&&e(_)});var v=r(h,2),b=t=>{var n=y(),r=e(n);l(r,16,()=>B().article.tags,e=>e,(e,t)=>{var n=he();g(()=>x(n,`content`,t)),p(e,n)}),p(t,n)};t(v,e=>{B().article.tags&&B().article.tags.length&&e(b)}),p(n,i)};t(v,e=>{B().article&&e(b)});var S=r(v,2),C=n=>{var i=y(),a=e(i);l(a,17,()=>B().images,e=>e.url,(n,i)=>{var a=be(),o=e(a),s=r(o,2),c=e=>{var t=_e();g(()=>x(t,`content`,h(i).alt)),p(e,t)};t(s,e=>{h(i).alt&&e(c)});var l=r(s,2),u=e=>{var t=ve();g(e=>x(t,`content`,e),[()=>h(i).width.toString()]),p(e,t)};t(l,e=>{h(i).width&&e(u)});var d=r(l,2),f=e=>{var t=ye();g(e=>x(t,`content`,e),[()=>h(i).height.toString()]),p(e,t)};t(d,e=>{h(i).height&&e(f)}),g(()=>x(o,`content`,h(i).url)),p(n,a)}),p(n,i)},w=t=>{var n=xe(),r=e(n);ee(2),g(()=>x(r,`content`,Le)),p(t,n)};t(S,e=>{B().images&&B().images.length?e(C):e(w,-1)}),g(e=>x(_,`content`,e),[()=>B().type?B().type.toLowerCase():`website`]),p(n,i)};t(D,e=>{B()&&e(O)});var A=r(D,2),j=n=>{var i=Oe(),a=r(e(i),2),o=e=>{var t=Ce();g(()=>x(t,`content`,V().site)),p(e,t)};t(a,e=>{V().site&&e(o)});var s=r(a,2),c=e=>{var t=we();g(()=>x(t,`content`,V().title)),p(e,t)};t(s,e=>{V().title&&e(c)});var l=r(s,2),u=e=>{var t=Te();g(()=>x(t,`content`,V().description)),p(e,t)};t(l,e=>{V().description&&e(u)});var d=r(l,2),f=e=>{var t=Ee();g(()=>x(t,`content`,V().image)),p(e,t)};t(d,e=>{V().image&&e(f)});var m=r(d,2),h=e=>{var t=De();g(()=>x(t,`content`,V().imageAlt)),p(e,t)};t(m,e=>{V().imageAlt&&e(h)}),p(n,i)};t(A,e=>{V()&&e(j)}),s(e=>{i.title=e??``},[()=>F()._(R())]),p(n,a)}),f(),L()}var I=new Set([`$$slots`,`$$events`,`$$legacy`,`seo`]);function L(r,i){m(i,!0);let a=_(i,I),o=n(()=>i.seo&&`noindex`in i.seo?i.seo.noindex??!1:!1),s=n(()=>i.seo&&`nofollow`in i.seo?i.seo.nofollow??!1:!1),c=n(()=>i.seo&&`hreflangList`in i.seo&&i.seo.hreflangList?i.seo.hreflangList.flatMap(e=>e?.href&&e?.hreflangName?[{href:e.href,hreflangName:e.hreflangName}]:[]):[]),l=n(()=>i.seo&&`robots`in i.seo?i.seo.robots??void 0:void 0);var u=y(),d=e(u),g=e=>{{let t=n(()=>i.seo.title??``),r=n(()=>i.seo.description??``);F(e,b(()=>i.seo,{get title(){return h(t)},get description(){return h(r)},get noindex(){return h(o)},get nofollow(){return h(s)},get hreflangList(){return h(c)},get robots(){return h(l)}},()=>a))}};t(d,e=>{i.seo&&e(g)}),p(r,u),f()}export{L as t};