1import{a as r}from"./chunk-XS6OYBCG.js";import{b as p,c as d}from"./chunk-MRCLTOLR.js";import{Z as s,cd as m,da as a}from"./chunk-P6F3PPPU.js";var h=class o{document=a(m);meta=a(p);titlePage=a(d);updateCanonicalUrl(t=""){let e=this.document.querySelector("link[rel='canonical']")||null;e||(e=this.document.createElement("link")),e.setAttribute("rel","canonical"),t?e.setAttribute("href",t):e.setAttribute("href",this.document.URL.replace("http:","https:")),this.document.head.appendChild(e)}setUpMetaTags(t,e,i,n){if(t){let l="";t.canonical&&(l=t.canonical);let u=l||this.document.URL.replace("http:","https:");if(this.updateCanonicalUrl(l),this.titlePage.setTitle(t.title),this.meta.updateTag({name:"description",content:t.description}),this.document.location.hostname.includes("portalwebdesarrollo.ucv.edu.pe")?this.meta.updateTag({name:"robots",content:"noindex,nofollow"}):this.meta.updateTag({name:"robots",content:t.robots}),e&&(this.document.documentElement.lang=e),this.meta.updateTag({property:"og:title",content:t.og_title}),this.meta.updateTag({property:"og:description",content:t.og_description}),this.meta.updateTag({property:"og:url",content:t.og_url||u}),this.meta.updateTag({property:"og:image:secure_url",content:t.og_image}),this.meta.updateTag({property:"og:image",content:t.og_image}),this.meta.updateTag({property:"og:image:width",content:"1200"}),this.meta.updateTag({name:"twitter:card",content:"summary_large_image"}),this.meta.updateTag({name:"twitter:title",content:t.og_title}),this.meta.updateTag({name:"twitter:description",content:t.og_description}),this.meta.updateTag({name:"twitter:image",content:t.og_image}),n){if(n.es){let c=n.es.replace(/\/home$/,"");this.updateHrefLang("es",c),this.updateHrefLang("x-default",c)}else this.updateHrefLang("es",r.SITE_HREFLANG_ES+this.document.location.pathname),this.updateHrefLang("x-default",r.SITE_HREFLANG_ES+this.document.location.pathname);n.en?this.updateHrefLang("en",n.en.replace(/\/home$/,"")):this.updateHrefLang("en",r.SITE_HREFLANG_EN)}this.moveMetasUp()}}updateHrefLang(t,e){let i=`link[rel="alternate"][hreflang="${t}"]`,n=this.document.head.querySelector(i);n||(n=this.document.createElement("link"),n.setAttribute("rel","alternate"),n.setAttribute("hreflang",t),this.document.head.appendChild(n)),n.setAttribute("href",e)}setHtmlLang(t){t===""&&(t="es"),this.document.documentElement.setAttribute("lang",t)}moveMetasUp(){let t=this.document.head;if(!t)return;Array.from(t.querySelectorAll("title, meta")).reverse().forEach(i=>{t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)})}static \u0275fac=function(e){return new(e||o)};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{h as a};
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.