sass-template-common 0.3.126 → 0.3.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1130,6 +1130,7 @@ const At = (e, t) => {
|
|
|
1130
1130
|
return s ? "src" : t + n;
|
|
1131
1131
|
}, b9 = async (e, t, n, s) => {
|
|
1132
1132
|
const { FETCH_TAG_BASED_RELATED_NEWS: o = !1, FETCH_SIZE_RELATED_NEWS: r = 10 } = W();
|
|
1133
|
+
if (!e) return [];
|
|
1133
1134
|
try {
|
|
1134
1135
|
if (e.related && e.related?.automatic === !1 && e.related?.news && e.related?.news.length > 0)
|
|
1135
1136
|
return (await n.getNewsListPath(
|
|
@@ -10,7 +10,7 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
|
10
10
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
11
11
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
12
12
|
})(window,document,'script','dataLayer','${e}');
|
|
13
|
-
`}}),t.jsx("noscript",{children:t.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},Xa=()=>{const{ANALYTICS_marfeel:e}=W();return e&&t.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}})};function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={exports:{}},Wr=Xt.exports,Ra;function eo(){return Ra||(Ra=1,(function(e,n){(function(a,o){e.exports=o()})(Wr,(function(){var a=1e3,o=6e4,s=36e5,r="millisecond",i="second",c="minute",h="hour",l="day",d="week",u="month",f="quarter",g="year",m="date",p="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var L=["th","st","nd","rd"],k=j%100;return"["+j+(L[(k-20)%10]||L[k]||L[0])+"]"}},_=function(j,L,k){var $=String(j);return!$||$.length>=L?j:""+Array(L+1-$.length).join(k)+j},I={s:_,z:function(j){var L=-j.utcOffset(),k=Math.abs(L),$=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+_($,2,"0")+":"+_(x,2,"0")},m:function j(L,k){if(L.date()<k.date())return-j(k,L);var $=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add($,u),F=k-x<0,w=L.clone().add($+(F?-1:1),u);return+(-($+(k-x)/(F?x-w:w-x))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:u,y:g,w:d,d:l,D:m,h,m:c,s:i,ms:r,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},b="en",T={};T[b]=S;var M="$isDayjsObject",Q=function(j){return j instanceof ee||!(!j||!j[M])},K=function j(L,k,$){var x;if(!L)return b;if(typeof L=="string"){var F=L.toLowerCase();T[F]&&(x=F),k&&(T[F]=k,x=F);var w=L.split("-");if(!x&&w.length>1)return j(w[0])}else{var N=L.name;T[N]=L,x=N}return!$&&x&&(b=x),x||!$&&b},H=function(j,L){if(Q(j))return j.clone();var k=typeof L=="object"?L:{};return k.date=j,k.args=arguments,new ee(k)},O=I;O.l=K,O.i=Q,O.w=function(j,L){return H(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var ee=(function(){function j(k){this.$L=K(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[M]=!0}var L=j.prototype;return L.parse=function(k){this.$d=(function($){var x=$.date,F=$.utc;if(x===null)return new Date(NaN);if(O.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var w=x.match(A);if(w){var N=w[2]-1||0,B=(w[7]||"0").substring(0,3);return F?new Date(Date.UTC(w[1],N,w[3]||1,w[4]||0,w[5]||0,w[6]||0,B)):new Date(w[1],N,w[3]||1,w[4]||0,w[5]||0,w[6]||0,B)}}return new Date(x)})(k),this.init()},L.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},L.$utils=function(){return O},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(k,$){var x=H(k);return this.startOf($)<=x&&x<=this.endOf($)},L.isAfter=function(k,$){return H(k)<this.startOf($)},L.isBefore=function(k,$){return this.endOf($)<H(k)},L.$g=function(k,$,x){return O.u(k)?this[$]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,$){var x=this,F=!!O.u($)||$,w=O.p(k),N=function(R,J){var ie=O.w(x.$u?Date.UTC(x.$y,J,R):new Date(x.$y,J,R),x);return F?ie:ie.endOf(l)},B=function(R,J){return O.w(x.toDate()[R].apply(x.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(J)),x)},G=this.$W,D=this.$M,z=this.$D,V="set"+(this.$u?"UTC":"");switch(w){case g:return F?N(1,0):N(31,11);case u:return F?N(1,D):N(0,D+1);case d:var Y=this.$locale().weekStart||0,X=(G<Y?G+7:G)-Y;return N(F?z-X:z+(6-X),D);case l:case m:return B(V+"Hours",0);case h:return B(V+"Minutes",1);case c:return B(V+"Seconds",2);case i:return B(V+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,$){var x,F=O.p(k),w="set"+(this.$u?"UTC":""),N=(x={},x[l]=w+"Date",x[m]=w+"Date",x[u]=w+"Month",x[g]=w+"FullYear",x[h]=w+"Hours",x[c]=w+"Minutes",x[i]=w+"Seconds",x[r]=w+"Milliseconds",x)[F],B=F===l?this.$D+($-this.$W):$;if(F===u||F===g){var G=this.clone().set(m,1);G.$d[N](B),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](B);return this.init(),this},L.set=function(k,$){return this.clone().$set(k,$)},L.get=function(k){return this[O.p(k)]()},L.add=function(k,$){var x,F=this;k=Number(k);var w=O.p($),N=function(D){var z=H(F);return O.w(z.date(z.date()+Math.round(D*k)),F)};if(w===u)return this.set(u,this.$M+k);if(w===g)return this.set(g,this.$y+k);if(w===l)return N(1);if(w===d)return N(7);var B=(x={},x[c]=o,x[h]=s,x[i]=a,x)[w]||1,G=this.$d.getTime()+k*B;return O.w(G,this)},L.subtract=function(k,$){return this.add(-1*k,$)},L.format=function(k){var $=this,x=this.$locale();if(!this.isValid())return x.invalidDate||p;var F=k||"YYYY-MM-DDTHH:mm:ssZ",w=O.z(this),N=this.$H,B=this.$m,G=this.$M,D=x.weekdays,z=x.months,V=x.meridiem,Y=function(J,ie,P,ye){return J&&(J[ie]||J($,F))||P[ie].slice(0,ye)},X=function(J){return O.s(N%12||12,J,"0")},R=V||function(J,ie,P){var ye=J<12?"AM":"PM";return P?ye.toLowerCase():ye};return F.replace(y,(function(J,ie){return ie||(function(P){switch(P){case"YY":return String($.$y).slice(-2);case"YYYY":return O.s($.$y,4,"0");case"M":return G+1;case"MM":return O.s(G+1,2,"0");case"MMM":return Y(x.monthsShort,G,z,3);case"MMMM":return Y(z,G);case"D":return $.$D;case"DD":return O.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Y(x.weekdaysMin,$.$W,D,2);case"ddd":return Y(x.weekdaysShort,$.$W,D,3);case"dddd":return D[$.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return R(N,B,!0);case"A":return R(N,B,!1);case"m":return String(B);case"mm":return O.s(B,2,"0");case"s":return String($.$s);case"ss":return O.s($.$s,2,"0");case"SSS":return O.s($.$ms,3,"0");case"Z":return w}return null})(J)||w.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,$,x){var F,w=this,N=O.p($),B=H(k),G=(B.utcOffset()-this.utcOffset())*o,D=this-B,z=function(){return O.m(w,B)};switch(N){case g:F=z()/12;break;case u:F=z();break;case f:F=z()/3;break;case d:F=(D-G)/6048e5;break;case l:F=(D-G)/864e5;break;case h:F=D/s;break;case c:F=D/o;break;case i:F=D/a;break;default:F=D}return x?F:O.a(F)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return T[this.$L]},L.locale=function(k,$){if(!k)return this.$L;var x=this.clone(),F=K(k,$,!0);return F&&(x.$L=F),x},L.clone=function(){return O.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},j})(),ce=ee.prototype;return H.prototype=ce,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",l],["$M",u],["$y",g],["$D",m]].forEach((function(j){ce[j[1]]=function(L){return this.$g(L,j[0],j[1])}})),H.extend=function(j,L){return j.$i||(j(L,ee,H),j.$i=!0),H},H.locale=K,H.isDayjs=Q,H.unix=function(j){return H(1e3*j)},H.en=T[b],H.Ls=T,H.p={},H}))})(Xt)),Xt.exports}var Yr=eo();const Se=yt(Yr);var Rt={exports:{}},Kr=Rt.exports,to;function Jr(){return to||(to=1,(function(e,n){(function(a,o){e.exports=o()})(Kr,(function(){return function(a,o,s){a=a||{};var r=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(l,d,u,f){return r.fromToBase(l,d,u,f)}s.en.relativeTime=i,r.fromToBase=function(l,d,u,f,g){for(var m,p,A,y=u.$locale().relativeTime||i,S=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=S.length,I=0;I<_;I+=1){var b=S[I];b.d&&(m=f?s(l).diff(u,b.d,!0):u.diff(l,b.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=b.r||!b.r){T<=1&&I>0&&(b=S[I-1]);var M=y[b.l];g&&(T=g(""+T)),p=typeof M=="string"?M.replace("%d",T):M(T,d,b.l,A);break}}if(d)return p;var Q=A?y.future:y.past;return typeof Q=="function"?Q(p):Q.replace("%s",p)},r.to=function(l,d){return c(l,d,this,!0)},r.from=function(l,d){return c(l,d,this)};var h=function(l){return l.$u?s.utc():s()};r.toNow=function(l){return this.to(h(this),l)},r.fromNow=function(l){return this.from(h(this),l)}}}))})(Rt)),Rt.exports}var Zr=Jr();const Xr=yt(Zr);var en={exports:{}},Rr=en.exports,no;function ei(){return no||(no=1,(function(e,n){(function(a,o){e.exports=o(eo())})(Rr,(function(a){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var s=o(a),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return s.default.locale(r,null,!0),r}))})(en)),en.exports}ei();var tn={exports:{}},ti=tn.exports,ao;function ni(){return ao||(ao=1,(function(e,n){(function(a,o){e.exports=o()})(ti,(function(){var a="minute",o=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(p){var A={date:p,utc:!0,args:arguments};return new i(A)},h.utc=function(p){var A=c(this.toDate(),{locale:this.$L,utc:!0});return p?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var l=h.parse;h.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),l.call(this,p)};var d=h.init;h.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else d.call(this)};var u=h.utcOffset;h.utcOffset=function(p,A){var y=this.$utils().u;if(y(p))return this.$u?0:y(this.$offset)?u.call(this):this.$offset;if(typeof p=="string"&&(p=(function(b){b===void 0&&(b="");var T=b.match(o);if(!T)return null;var M=(""+T[0]).match(s)||["-",0,0],Q=M[0],K=60*+M[1]+ +M[2];return K===0?0:Q==="+"?K:-K})(p),p===null))return this;var S=Math.abs(p)<=16?60*p:p;if(S===0)return this.utc(A);var _=this.clone();if(A)return _.$offset=S,_.$u=!1,_;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(S+I,a)).$offset=S,_.$x.$localOffset=I,_};var f=h.format;h.format=function(p){var A=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var g=h.toDate;h.toDate=function(p){return p==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var m=h.diff;h.diff=function(p,A,y){if(p&&this.$u===p.$u)return m.call(this,p,A,y);var S=this.local(),_=c(p).local();return m.call(S,_,A,y)}}}))})(tn)),tn.exports}var ai=ni();const oi=yt(ai);var nn={exports:{}},si=nn.exports,oo;function ri(){return oo||(oo=1,(function(e,n){(function(a,o){e.exports=o()})(si,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(s,r,i){var c,h=function(f,g,m){m===void 0&&(m={});var p=new Date(f),A=(function(y,S){S===void 0&&(S={});var _=S.timeZoneName||"short",I=y+"|"+_,b=o[I];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),o[I]=b),b})(g,m);return A.formatToParts(p)},l=function(f,g){for(var m=h(f,g),p=[],A=0;A<m.length;A+=1){var y=m[A],S=y.type,_=y.value,I=a[S];I>=0&&(p[I]=parseInt(_,10))}var b=p[3],T=b===24?0:b,M=p[0]+"-"+p[1]+"-"+p[2]+" "+T+":"+p[4]+":"+p[5]+":000",Q=+f;return(i.utc(M).valueOf()-(Q-=Q%1e3))/6e4},d=r.prototype;d.tz=function(f,g){f===void 0&&(f=c);var m,p=this.utcOffset(),A=this.toDate(),y=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(y))/1e3/60),_=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(_))m=this.utcOffset(0,g);else if(m=i(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),g){var I=m.utcOffset();m=m.add(p-I,"minute")}return m.$x.$timezone=f,m},d.offsetName=function(f){var g=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),g,{timeZoneName:f}).find((function(p){return p.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=d.startOf;d.startOf=function(f,g){if(!this.$x||!this.$x.$timezone)return u.call(this,f,g);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,g).tz(this.$x.$timezone,!0)},i.tz=function(f,g,m){var p=m&&g,A=m||g||c,y=l(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,M,Q){var K=T-60*M*1e3,H=l(K,Q);if(M===H)return[K,M];var O=l(K-=60*(H-M)*1e3,Q);return H===O?[K,H]:[T-60*Math.min(H,O)*1e3,Math.max(H,O)]})(i.utc(f,p).valueOf(),y,A),_=S[0],I=S[1],b=i(_).utcOffset(I);return b.$x.$timezone=A,b},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(nn)),nn.exports}var ii=ri();const ci=yt(ii);Se.extend(oi),Se.extend(ci),Se.extend(Xr);const an=e=>e==="en"?"en":"es",Le=(e,n)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:o}=n||W(),s=an(a??"es");return Se.tz(e,o).locale(s).format("DD MMMM YYYY")},on=e=>{const{PUBLIC_LNG:n,DATE_TIMEZONE:a}=W(),o=an(n??"es");return Se.tz(e,a).locale(o).format(o==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},so=e=>{const{PUBLIC_LNG:n,DATE_TIMEZONE:a}=W(),o=an(n??"es");return Se.tz(e,a).locale(o).format("MM/DD/YYYY [•] HH:mm [HS]")},li=e=>{const{PUBLIC_LNG:n,DATE_TIMEZONE:a}=W(),o=an(n??"es");return Se.tz(e,a).locale(o).format("dddd DD [de] MMMM YYYY")},qe=(e,n=136)=>e&&e.length>n?`${e.substring(0,n)}...`:e;function it(e){return e&&e.status==="fulfilled"?e.value.data:null}function ro(e){return e&&e.status==="fulfilled"?e.value:null}const bt=(e,n,a,o)=>({authors:e.main.author?[{firstname:"",lastname:"",fullname:e.main.author?e.main.author.toString():"Redacción",image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...e?.info.date,lastpublish:0,firstpublish:0,date:""},link:e?.info.link},preview:{sizes:e?.main.image.sizes,description:e?.main.image.description},config:{showtime:n,showsubtitle:a,showauthor:!!(o&&e.main.author)},main:{title:{article:e?.main.title,home:e?.main.title,seo:e?.main.title,section:e?.main.title},subtitle:{rendered:e?.main.description,striped:e?.main.description},tags:[]}});function Yn(e){if(!e||!e.body||!e.body.rendered)return[];const n=e?.body?.rendered,a=[],o=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let s;for(;(s=o.exec(n))!==null;){const r=s[2];r&&a.push([r])}return a}const io=async(e,n)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=n({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>it(r)?.data)},xt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:n,PUBLIC_ASSETS_URL:a}=W();return e=="local"?n:a&&a!=="false"?a:""},di=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:n}=W();return e==="local"?n:""},hi=e=>{if(!e?.preview?.length)return null;const n=e.preview;return n.find(a=>a.format==="1.91:1")??n[n.length-1]},co=({schemaImage:e,socialImage:n,fallbackImage:a,prefix:o,defaultWidth:s,defaultHeight:r})=>e?.url?{url:o+e.url,width:e.width,height:e.height}:{url:o+(n??a??""),width:s,height:r},lo=(e,n,a)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:o,PUBLIC_API_FRONT:s}=W(),r=Kn(e.keywords)??"",i=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",c=(o!=="false"?o:s)??"",h=hi(a),l=co({schemaImage:h,socialImage:e?.social?.images?.facebook,fallbackImage:i,prefix:c,defaultWidth:n.landscapeLogo.width,defaultHeight:n.landscapeLogo.height}),d=co({schemaImage:h,socialImage:e?.social?.images?.twitter,fallbackImage:i,prefix:c,defaultWidth:n.twitterSummaryCard.width,defaultHeight:n.twitterSummaryCard.height});return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(n.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:r,keywords:r,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[l],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:n.siteUrl,description:e?.main?.subtitle?.striped??"",images:[d]}}},Kn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(n=>n.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ho=e=>{const n=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return n?{slug:n[1]??"",path:n[2]??""}:{slug:"",path:""}},uo=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),ui={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},fo=e=>{const n=[];let a=0;const o=i=>n.push(i);return e.title&&typeof e.title=="string"&&o(t.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(ui).forEach(([i,c])=>{const h=i.split(".").reduce((l,d)=>l?.[d],e);h&&o(t.jsx("meta",{[c.attr]:c.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?o(t.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&o(t.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&o(t.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&o(t.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?o(t.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&o(t.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&o(t.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&o(t.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`))))}),e.alternates?.canonical&&o(t.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&o(t.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&o(t.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&o(typeof c=="string"?t.jsx("link",{rel:"icon",href:c},`icon-${a++}`):t.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&o(t.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),n},de=async e=>{const n=xt()??"",a=e;return a?.startsWith("http")||a?.includes(n)||n===""?a:n+a},sn=(e,n)=>{const a=e||"";return n?a.replaceAll("[section_replace]",n["[section_replace]"]??"").replaceAll("[tag_replace]",n["[tag_replace]"]??"").replaceAll("[url_replace]",n["[url_replace]"]??"").replaceAll("[author_replace]",n["[author_replace]"]??"")||"":a||""},Jn=e=>{const n=e.banners.find(r=>r.key===e.name);if(!n||!n.show)return null;const a=sn(n.value||"",e.replaces),o=/<script([^>]*)>([\s\S]*?)<\/script\s*>/gi,s=[...a.matchAll(o)];return t.jsx(t.Fragment,{children:s.map((r,i)=>{const c=r[1]||"",h=r[2]?.trim()||"",l=c.match(/src=["']([^"']+)["']/i);if(l){const d=l[1];return t.jsx("script",{src:d,async:!0},i)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:h}},i)})})},mo=e=>{const n=e.banners.find(s=>s.key===e.name);if(!n||!n.show)return null;const o=sn(n.value||"",e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);return t.jsx(t.Fragment,{children:o.map((s,r)=>{const i=s.match(/<script([^>]*)>([\s\S]*?)<\/script\s*>/i);if(i){const c=i[1]||"",h=i[2]?.trim()||"",l=c.match(/src=["']([^"']+)["']/i);if(l){const d=l[1];return t.jsx("script",{src:d,async:!0},r)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:h}},r)}else if(s.trim())return t.jsx("div",{dangerouslySetInnerHTML:{__html:s}},r);return null})})},Lt=(e,n,a)=>{let o=e.siteUrl;return n.forEach((s,r)=>{r>0&&(o+=`/${s}`)}),`${o}/page/${a+1}`},qt=(e,n,a)=>{let o=e.siteUrl;return n.forEach((s,r)=>{r>0&&(o+=`/${s}`)}),`${o}/page/${a-1}`};function fi(e){const n=e.length;return n>1&&e.charCodeAt(n-1)===47?e.slice(0,n-1):e}const go=()=>{const{PUBLIC_ASSETS_URL:e}=W();return e&&e!=="false"&&t.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Zn}=W(),mi=Zn&&Zn!=="false"?Zn:"",Xn=({images:e})=>t.jsx(t.Fragment,{children:e.map((n,a)=>n.href!==""&&t.jsx("link",{rel:"preload",href:mi+n.href,media:n.media??"",as:"image",fetchPriority:n.fetchPriority??"high"},a))}),po=(e,n)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=W();return{title:e?.main?.title+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:n.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.landscapeLogo.width,height:n.landscapeLogo.height}],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:n.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.twitterSummaryCard.width,height:n.twitterSummaryCard.height}]}}},gi=e=>{let n="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),o=a[a.length-1]??"",s=o.substring(1,9),r=o.substring(9,13);n=`/listas/${Se(s).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),o=a[a.length-1]??"",s=o.substring(2,10),r=o.substring(10,14);n=`/liveblog/${Se(s).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const o=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(o)&&(n=`/contenidos/${Se(o[o.length-2]).format("YYYY/MM/DD")}/noticia_${o[o.length-1]}.html`)}return e.config.servicePrefix+n};function pi(e){const n=e.lastIndexOf("-"),a=n>=0?[e.slice(0,n),e.slice(n+1)]:[e],o=a[a.length-1]?.split("."),s=o&&o[0]?o[0]:"",r=s.substring(0,2),i=s.substring(2,10),c=s.substring(10);return{path:{vy:l=>`/videos/video-youtube/${Se(i).format("YYYY/MM/DD")}/videoYouTube_${l}.lnk`,ve:l=>`/videos/video-embedded/${Se(i).format("YYYY/MM/DD")}/videoEmbedded_${l}.lnk`,vf:l=>`/videos/video-flash/${Se(i).format("YYYY/MM/DD")}/${a[0]}.${l}`}[r]?.(c)??"",op:r}}const et=(e,n)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return n?.tema?`/${n.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},Ai=e=>{const{AssetsPrefix:n="",AssetsPath:a="src",isDev:o=!1}=e;return o?"src":n+a},wi=async(e,n,a,o)=>{const{FETCH_TAG_BASED_RELATED_NEWS:s=!1,FETCH_SIZE_RELATED_NEWS:r=10}=W();try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:o.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&s?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:o.md,size:11}):await a.getNewsItemsRelated(n.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(l=>l.info.link.internal!==n.split("/").join("|"))}}catch(i){console.log(i)}},yi="https://recaptchaenterprise.googleapis.com/v1/projects",bi=async({projectID:e,recaptchaKey:n,token:a,recaptchaAction:o,apiKey:s,userAgent:r,userIpAddress:i})=>{if(!e||!n||!a||!s)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${yi}/${e}/assessments?key=${s}`,h={event:{token:a,siteKey:n,expectedAction:o,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const l=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!l.ok)return console.error("createAssessment API error:",l.status,await l.text()),null;const d=await l.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==o)return console.log("La acción en reCAPTCHA no coincide con la esperada:",o),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(l){return console.error("createAssessment error:",l),null}},Ao={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},wo={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},Ci={Home:Ao,Common:wo},yo=({active:e,type:n,customSpeculation:a})=>e&&t.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??Ci[n])}}),rn=async(e,n,a)=>{if(a)return a.get(`/schemas${n}`,{params:e}).catch(o=>{console.log(`[/schemas${n}] Error: ${o.message}`)})},_i={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},bo=async({config:e,axiosApi:n,pathname:a,ROUTE:o})=>{const{PUBLIC_PUBLICATION_ID:s=""}=W();let r=[];const i=a==="/"||a==="/index.html"?void 0:Io(Eo[o]({pathname:a,config:e})),c=_i[o]??void 0,h={newstype:e.newsType,publication:Number(s),...i&&c?{query:`${c}:('${i}')`}:{}};try{const l=await rn(h,"/news-list-summary",n);l?.data?.data?r=l.data.data:console.warn("getSchemas responded but did not contain expected data:",l)}catch(l){console.log("Error fetching schemas:",l)}return Object.keys(r).length>0&&t.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function cn(e){const{PUBLIC_ASSETS_URL:n}=W();if(!n||n==="false")return e;const a=n.replace(/\/+$/,""),o=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(o,(s,r)=>`${a}/${r}/`)}const Co=async({realPath:e,config:n,BASE_URL:a,axiosApi:o})=>{const{PUBLIC_SERVICE_PREFIX:s,PUBLIC_IS_SUB_PUBLICATION:r}=W();let i=[];try{const c=n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,h=n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,l={path:e,image:h,logo:c,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:a+"/autor/"},d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=n.paths.tema!==""?"/"+n.paths.tema:n.paths.tema,g=s!=="false"&&r!=="false"?"/"+s+f:f;i=(await Promise.all(u.map(async p=>{const A=p==="/news-breadcrumb"?{...l,prefixtag:g}:l;return await rn(A,p,o)}))).map(p=>p?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:cn(JSON.stringify(c))}},h))},_o=({config:e,socials:n})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(n).filter(o=>n[o]?.show).map(o=>n[o]?.url)};return(!e.description||e.description==="")&&delete a.description,t.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},vo=({config:e})=>{const n={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return t.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})},So=async({realPath:e,config:n,axiosApi:a})=>{try{const o={path:e,image:n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,logo:n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:`${n.siteUrl}/autor/`},r=(await rn(o,"/videos",a))?.data.data;return r?t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:cn(JSON.stringify(r))}}):void 0}catch(o){return console.error("Error fetching video schemas:",o),null}},No=({config:e})=>{const n=`@font-face {
|
|
13
|
+
`}}),t.jsx("noscript",{children:t.jsx("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})},Xa=()=>{const{ANALYTICS_marfeel:e}=W();return e&&t.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.defer=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,${e},{})}();`}})};function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={exports:{}},Wr=Xt.exports,Ra;function eo(){return Ra||(Ra=1,(function(e,n){(function(a,o){e.exports=o()})(Wr,(function(){var a=1e3,o=6e4,s=36e5,r="millisecond",i="second",c="minute",h="hour",l="day",d="week",u="month",f="quarter",g="year",m="date",p="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var L=["th","st","nd","rd"],k=j%100;return"["+j+(L[(k-20)%10]||L[k]||L[0])+"]"}},_=function(j,L,k){var $=String(j);return!$||$.length>=L?j:""+Array(L+1-$.length).join(k)+j},I={s:_,z:function(j){var L=-j.utcOffset(),k=Math.abs(L),$=Math.floor(k/60),x=k%60;return(L<=0?"+":"-")+_($,2,"0")+":"+_(x,2,"0")},m:function j(L,k){if(L.date()<k.date())return-j(k,L);var $=12*(k.year()-L.year())+(k.month()-L.month()),x=L.clone().add($,u),F=k-x<0,w=L.clone().add($+(F?-1:1),u);return+(-($+(k-x)/(F?x-w:w-x))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:u,y:g,w:d,d:l,D:m,h,m:c,s:i,ms:r,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},b="en",T={};T[b]=S;var M="$isDayjsObject",Q=function(j){return j instanceof ee||!(!j||!j[M])},K=function j(L,k,$){var x;if(!L)return b;if(typeof L=="string"){var F=L.toLowerCase();T[F]&&(x=F),k&&(T[F]=k,x=F);var w=L.split("-");if(!x&&w.length>1)return j(w[0])}else{var N=L.name;T[N]=L,x=N}return!$&&x&&(b=x),x||!$&&b},H=function(j,L){if(Q(j))return j.clone();var k=typeof L=="object"?L:{};return k.date=j,k.args=arguments,new ee(k)},O=I;O.l=K,O.i=Q,O.w=function(j,L){return H(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var ee=(function(){function j(k){this.$L=K(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[M]=!0}var L=j.prototype;return L.parse=function(k){this.$d=(function($){var x=$.date,F=$.utc;if(x===null)return new Date(NaN);if(O.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var w=x.match(A);if(w){var N=w[2]-1||0,B=(w[7]||"0").substring(0,3);return F?new Date(Date.UTC(w[1],N,w[3]||1,w[4]||0,w[5]||0,w[6]||0,B)):new Date(w[1],N,w[3]||1,w[4]||0,w[5]||0,w[6]||0,B)}}return new Date(x)})(k),this.init()},L.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},L.$utils=function(){return O},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(k,$){var x=H(k);return this.startOf($)<=x&&x<=this.endOf($)},L.isAfter=function(k,$){return H(k)<this.startOf($)},L.isBefore=function(k,$){return this.endOf($)<H(k)},L.$g=function(k,$,x){return O.u(k)?this[$]:this.set(x,k)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(k,$){var x=this,F=!!O.u($)||$,w=O.p(k),N=function(R,J){var ie=O.w(x.$u?Date.UTC(x.$y,J,R):new Date(x.$y,J,R),x);return F?ie:ie.endOf(l)},B=function(R,J){return O.w(x.toDate()[R].apply(x.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(J)),x)},G=this.$W,D=this.$M,z=this.$D,V="set"+(this.$u?"UTC":"");switch(w){case g:return F?N(1,0):N(31,11);case u:return F?N(1,D):N(0,D+1);case d:var Y=this.$locale().weekStart||0,X=(G<Y?G+7:G)-Y;return N(F?z-X:z+(6-X),D);case l:case m:return B(V+"Hours",0);case h:return B(V+"Minutes",1);case c:return B(V+"Seconds",2);case i:return B(V+"Milliseconds",3);default:return this.clone()}},L.endOf=function(k){return this.startOf(k,!1)},L.$set=function(k,$){var x,F=O.p(k),w="set"+(this.$u?"UTC":""),N=(x={},x[l]=w+"Date",x[m]=w+"Date",x[u]=w+"Month",x[g]=w+"FullYear",x[h]=w+"Hours",x[c]=w+"Minutes",x[i]=w+"Seconds",x[r]=w+"Milliseconds",x)[F],B=F===l?this.$D+($-this.$W):$;if(F===u||F===g){var G=this.clone().set(m,1);G.$d[N](B),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else N&&this.$d[N](B);return this.init(),this},L.set=function(k,$){return this.clone().$set(k,$)},L.get=function(k){return this[O.p(k)]()},L.add=function(k,$){var x,F=this;k=Number(k);var w=O.p($),N=function(D){var z=H(F);return O.w(z.date(z.date()+Math.round(D*k)),F)};if(w===u)return this.set(u,this.$M+k);if(w===g)return this.set(g,this.$y+k);if(w===l)return N(1);if(w===d)return N(7);var B=(x={},x[c]=o,x[h]=s,x[i]=a,x)[w]||1,G=this.$d.getTime()+k*B;return O.w(G,this)},L.subtract=function(k,$){return this.add(-1*k,$)},L.format=function(k){var $=this,x=this.$locale();if(!this.isValid())return x.invalidDate||p;var F=k||"YYYY-MM-DDTHH:mm:ssZ",w=O.z(this),N=this.$H,B=this.$m,G=this.$M,D=x.weekdays,z=x.months,V=x.meridiem,Y=function(J,ie,P,ye){return J&&(J[ie]||J($,F))||P[ie].slice(0,ye)},X=function(J){return O.s(N%12||12,J,"0")},R=V||function(J,ie,P){var ye=J<12?"AM":"PM";return P?ye.toLowerCase():ye};return F.replace(y,(function(J,ie){return ie||(function(P){switch(P){case"YY":return String($.$y).slice(-2);case"YYYY":return O.s($.$y,4,"0");case"M":return G+1;case"MM":return O.s(G+1,2,"0");case"MMM":return Y(x.monthsShort,G,z,3);case"MMMM":return Y(z,G);case"D":return $.$D;case"DD":return O.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Y(x.weekdaysMin,$.$W,D,2);case"ddd":return Y(x.weekdaysShort,$.$W,D,3);case"dddd":return D[$.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return R(N,B,!0);case"A":return R(N,B,!1);case"m":return String(B);case"mm":return O.s(B,2,"0");case"s":return String($.$s);case"ss":return O.s($.$s,2,"0");case"SSS":return O.s($.$ms,3,"0");case"Z":return w}return null})(J)||w.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(k,$,x){var F,w=this,N=O.p($),B=H(k),G=(B.utcOffset()-this.utcOffset())*o,D=this-B,z=function(){return O.m(w,B)};switch(N){case g:F=z()/12;break;case u:F=z();break;case f:F=z()/3;break;case d:F=(D-G)/6048e5;break;case l:F=(D-G)/864e5;break;case h:F=D/s;break;case c:F=D/o;break;case i:F=D/a;break;default:F=D}return x?F:O.a(F)},L.daysInMonth=function(){return this.endOf(u).$D},L.$locale=function(){return T[this.$L]},L.locale=function(k,$){if(!k)return this.$L;var x=this.clone(),F=K(k,$,!0);return F&&(x.$L=F),x},L.clone=function(){return O.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},j})(),ce=ee.prototype;return H.prototype=ce,[["$ms",r],["$s",i],["$m",c],["$H",h],["$W",l],["$M",u],["$y",g],["$D",m]].forEach((function(j){ce[j[1]]=function(L){return this.$g(L,j[0],j[1])}})),H.extend=function(j,L){return j.$i||(j(L,ee,H),j.$i=!0),H},H.locale=K,H.isDayjs=Q,H.unix=function(j){return H(1e3*j)},H.en=T[b],H.Ls=T,H.p={},H}))})(Xt)),Xt.exports}var Yr=eo();const Se=yt(Yr);var Rt={exports:{}},Kr=Rt.exports,to;function Jr(){return to||(to=1,(function(e,n){(function(a,o){e.exports=o()})(Kr,(function(){return function(a,o,s){a=a||{};var r=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(l,d,u,f){return r.fromToBase(l,d,u,f)}s.en.relativeTime=i,r.fromToBase=function(l,d,u,f,g){for(var m,p,A,y=u.$locale().relativeTime||i,S=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],_=S.length,I=0;I<_;I+=1){var b=S[I];b.d&&(m=f?s(l).diff(u,b.d,!0):u.diff(l,b.d,!0));var T=(a.rounding||Math.round)(Math.abs(m));if(A=m>0,T<=b.r||!b.r){T<=1&&I>0&&(b=S[I-1]);var M=y[b.l];g&&(T=g(""+T)),p=typeof M=="string"?M.replace("%d",T):M(T,d,b.l,A);break}}if(d)return p;var Q=A?y.future:y.past;return typeof Q=="function"?Q(p):Q.replace("%s",p)},r.to=function(l,d){return c(l,d,this,!0)},r.from=function(l,d){return c(l,d,this)};var h=function(l){return l.$u?s.utc():s()};r.toNow=function(l){return this.to(h(this),l)},r.fromNow=function(l){return this.from(h(this),l)}}}))})(Rt)),Rt.exports}var Zr=Jr();const Xr=yt(Zr);var en={exports:{}},Rr=en.exports,no;function ei(){return no||(no=1,(function(e,n){(function(a,o){e.exports=o(eo())})(Rr,(function(a){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var s=o(a),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(i){return i+"º"}};return s.default.locale(r,null,!0),r}))})(en)),en.exports}ei();var tn={exports:{}},ti=tn.exports,ao;function ni(){return ao||(ao=1,(function(e,n){(function(a,o){e.exports=o()})(ti,(function(){var a="minute",o=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(r,i,c){var h=i.prototype;c.utc=function(p){var A={date:p,utc:!0,args:arguments};return new i(A)},h.utc=function(p){var A=c(this.toDate(),{locale:this.$L,utc:!0});return p?A.add(this.utcOffset(),a):A},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var l=h.parse;h.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),l.call(this,p)};var d=h.init;h.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else d.call(this)};var u=h.utcOffset;h.utcOffset=function(p,A){var y=this.$utils().u;if(y(p))return this.$u?0:y(this.$offset)?u.call(this):this.$offset;if(typeof p=="string"&&(p=(function(b){b===void 0&&(b="");var T=b.match(o);if(!T)return null;var M=(""+T[0]).match(s)||["-",0,0],Q=M[0],K=60*+M[1]+ +M[2];return K===0?0:Q==="+"?K:-K})(p),p===null))return this;var S=Math.abs(p)<=16?60*p:p;if(S===0)return this.utc(A);var _=this.clone();if(A)return _.$offset=S,_.$u=!1,_;var I=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(S+I,a)).$offset=S,_.$x.$localOffset=I,_};var f=h.format;h.format=function(p){var A=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,A)},h.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var g=h.toDate;h.toDate=function(p){return p==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var m=h.diff;h.diff=function(p,A,y){if(p&&this.$u===p.$u)return m.call(this,p,A,y);var S=this.local(),_=c(p).local();return m.call(S,_,A,y)}}}))})(tn)),tn.exports}var ai=ni();const oi=yt(ai);var nn={exports:{}},si=nn.exports,oo;function ri(){return oo||(oo=1,(function(e,n){(function(a,o){e.exports=o()})(si,(function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(s,r,i){var c,h=function(f,g,m){m===void 0&&(m={});var p=new Date(f),A=(function(y,S){S===void 0&&(S={});var _=S.timeZoneName||"short",I=y+"|"+_,b=o[I];return b||(b=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:y,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:_}),o[I]=b),b})(g,m);return A.formatToParts(p)},l=function(f,g){for(var m=h(f,g),p=[],A=0;A<m.length;A+=1){var y=m[A],S=y.type,_=y.value,I=a[S];I>=0&&(p[I]=parseInt(_,10))}var b=p[3],T=b===24?0:b,M=p[0]+"-"+p[1]+"-"+p[2]+" "+T+":"+p[4]+":"+p[5]+":000",Q=+f;return(i.utc(M).valueOf()-(Q-=Q%1e3))/6e4},d=r.prototype;d.tz=function(f,g){f===void 0&&(f=c);var m,p=this.utcOffset(),A=this.toDate(),y=A.toLocaleString("en-US",{timeZone:f}),S=Math.round((A-new Date(y))/1e3/60),_=15*-Math.round(A.getTimezoneOffset()/15)-S;if(!Number(_))m=this.utcOffset(0,g);else if(m=i(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(_,!0),g){var I=m.utcOffset();m=m.add(p-I,"minute")}return m.$x.$timezone=f,m},d.offsetName=function(f){var g=this.$x.$timezone||i.tz.guess(),m=h(this.valueOf(),g,{timeZoneName:f}).find((function(p){return p.type.toLowerCase()==="timezonename"}));return m&&m.value};var u=d.startOf;d.startOf=function(f,g){if(!this.$x||!this.$x.$timezone)return u.call(this,f,g);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(m,f,g).tz(this.$x.$timezone,!0)},i.tz=function(f,g,m){var p=m&&g,A=m||g||c,y=l(+i(),A);if(typeof f!="string")return i(f).tz(A);var S=(function(T,M,Q){var K=T-60*M*1e3,H=l(K,Q);if(M===H)return[K,M];var O=l(K-=60*(H-M)*1e3,Q);return H===O?[K,H]:[T-60*Math.min(H,O)*1e3,Math.max(H,O)]})(i.utc(f,p).valueOf(),y,A),_=S[0],I=S[1],b=i(_).utcOffset(I);return b.$x.$timezone=A,b},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){c=f}}}))})(nn)),nn.exports}var ii=ri();const ci=yt(ii);Se.extend(oi),Se.extend(ci),Se.extend(Xr);const an=e=>e==="en"?"en":"es",Le=(e,n)=>{const{PUBLIC_LNG:a,DATE_TIMEZONE:o}=n||W(),s=an(a??"es");return Se.tz(e,o).locale(s).format("DD MMMM YYYY")},on=e=>{const{PUBLIC_LNG:n,DATE_TIMEZONE:a}=W(),o=an(n??"es");return Se.tz(e,a).locale(o).format(o==="en"?"MMMM DD YYYY [•] HH:mm [hs]":"DD [de] MMMM YYYY [•] HH:mm [hs]")},so=e=>{const{PUBLIC_LNG:n,DATE_TIMEZONE:a}=W(),o=an(n??"es");return Se.tz(e,a).locale(o).format("MM/DD/YYYY [•] HH:mm [HS]")},li=e=>{const{PUBLIC_LNG:n,DATE_TIMEZONE:a}=W(),o=an(n??"es");return Se.tz(e,a).locale(o).format("dddd DD [de] MMMM YYYY")},qe=(e,n=136)=>e&&e.length>n?`${e.substring(0,n)}...`:e;function it(e){return e&&e.status==="fulfilled"?e.value.data:null}function ro(e){return e&&e.status==="fulfilled"?e.value:null}const bt=(e,n,a,o)=>({authors:e.main.author?[{firstname:"",lastname:"",fullname:e.main.author?e.main.author.toString():"Redacción",image:{sizes:[],description:""},name:"",internaluser:!1}]:[],social:{description:"",images:{facebook:"",twitter:""},title:""},info:{date:{...e?.info.date,lastpublish:0,firstpublish:0,date:""},link:e?.info.link},preview:{sizes:e?.main.image.sizes,description:e?.main.image.description},config:{showtime:n,showsubtitle:a,showauthor:!!(o&&e.main.author)},main:{title:{article:e?.main.title,home:e?.main.title,seo:e?.main.title,section:e?.main.title},subtitle:{rendered:e?.main.description,striped:e?.main.description},tags:[]}});function Yn(e){if(!e||!e.body||!e.body.rendered)return[];const n=e?.body?.rendered,a=[],o=/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>([\s\S]*?)<span\b[^>]*data-src=["']([^"']+)["'][^>]*>[\s\S]*?<\/span>/gi;let s;for(;(s=o.exec(n))!==null;){const r=s[2];r&&a.push([r])}return a}const io=async(e,n)=>{const a=[];return e.forEach(r=>{r.forEach(i=>{const c=n({path:i.replaceAll("|","/"),imagesizes:"w:212,h:142,t:2;w:100,h:100,t:2",exclude:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel"});c&&a.push(c)})}),(await Promise.allSettled(a)).map(r=>it(r)?.data)},xt=()=>{const{PUBLIC_ENV:e,PUBLIC_API_HOST:n,PUBLIC_ASSETS_URL:a}=W();return e=="local"?n:a&&a!=="false"?a:""},di=()=>{const{PUBLIC_ENV:e,PUBLIC_API_FRONT:n}=W();return e==="local"?n:""},hi=e=>{if(!e?.preview?.length)return null;const n=e.preview;return n.find(a=>a.format==="1.91:1")??n[n.length-1]},co=({schemaImage:e,socialImage:n,fallbackImage:a,prefix:o,defaultWidth:s,defaultHeight:r})=>e?.url?{url:o+e.url,width:e.width,height:e.height}:{url:o+(n??a??""),width:s,height:r},lo=(e,n,a)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:o,PUBLIC_API_FRONT:s}=W(),r=Kn(e.keywords)??"",i=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",c=(o!=="false"?o:s)??"",h=hi(a),l=co({schemaImage:h,socialImage:e?.social?.images?.facebook,fallbackImage:i,prefix:c,defaultWidth:n.landscapeLogo.width,defaultHeight:n.landscapeLogo.height}),d=co({schemaImage:h,socialImage:e?.social?.images?.twitter,fallbackImage:i,prefix:c,defaultWidth:n.twitterSummaryCard.width,defaultHeight:n.twitterSummaryCard.height});return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(n.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:r,keywords:r,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[l],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:n.siteUrl,description:e?.main?.subtitle?.striped??"",images:[d]}}},Kn=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(n=>n.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),ho=e=>{const n=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return n?{slug:n[1]??"",path:n[2]??""}:{slug:"",path:""}},uo=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),ui={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},fo=e=>{const n=[];let a=0;const o=i=>n.push(i);return e.title&&typeof e.title=="string"&&o(t.jsx("title",{children:e.title},`title-${a++}`)),Object.entries(ui).forEach(([i,c])=>{const h=i.split(".").reduce((l,d)=>l?.[d],e);h&&o(t.jsx("meta",{[c.attr]:c.value,content:String(h)},`meta-${a++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?o(t.jsx("meta",{property:"og:image",content:i},`og-img-${a++}`)):(i.url&&o(t.jsx("meta",{property:"og:image",content:i.url},`og-img-${a++}`)),i.width&&o(t.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${a++}`)),i.height&&o(t.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${a++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{i&&(typeof i=="string"?o(t.jsx("meta",{name:"twitter:image",content:i},`tw-img-${a++}`)):(i.url&&o(t.jsx("meta",{name:"twitter:image",content:i.url},`tw-img-${a++}`)),i.width&&o(t.jsx("meta",{name:"twitter:image:width",content:String(i.width)},`tw-img-w-${a++}`)),i.height&&o(t.jsx("meta",{name:"twitter:image:height",content:String(i.height)},`tw-img-h-${a++}`))))}),e.alternates?.canonical&&o(t.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${a++}`)),e.manifest&&o(t.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${a++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&o(t.jsx("link",{rel:"alternate",type:i,href:c},`alt-${a++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&o(typeof c=="string"?t.jsx("link",{rel:"icon",href:c},`icon-${a++}`):t.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${a++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&o(t.jsx("meta",{name:i,content:String(c)},`other-${a++}`))}),n},de=async e=>{const n=xt()??"",a=e;return a?.startsWith("http")||a?.includes(n)||n===""?a:n+a},sn=(e,n)=>{const a=e||"";return n?a.replaceAll("[section_replace]",n["[section_replace]"]??"").replaceAll("[tag_replace]",n["[tag_replace]"]??"").replaceAll("[url_replace]",n["[url_replace]"]??"").replaceAll("[author_replace]",n["[author_replace]"]??"")||"":a||""},Jn=e=>{const n=e.banners.find(r=>r.key===e.name);if(!n||!n.show)return null;const a=sn(n.value||"",e.replaces),o=/<script([^>]*)>([\s\S]*?)<\/script\s*>/gi,s=[...a.matchAll(o)];return t.jsx(t.Fragment,{children:s.map((r,i)=>{const c=r[1]||"",h=r[2]?.trim()||"",l=c.match(/src=["']([^"']+)["']/i);if(l){const d=l[1];return t.jsx("script",{src:d,async:!0},i)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:h}},i)})})},mo=e=>{const n=e.banners.find(s=>s.key===e.name);if(!n||!n.show)return null;const o=sn(n.value||"",e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);return t.jsx(t.Fragment,{children:o.map((s,r)=>{const i=s.match(/<script([^>]*)>([\s\S]*?)<\/script\s*>/i);if(i){const c=i[1]||"",h=i[2]?.trim()||"",l=c.match(/src=["']([^"']+)["']/i);if(l){const d=l[1];return t.jsx("script",{src:d,async:!0},r)}else return t.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:h}},r)}else if(s.trim())return t.jsx("div",{dangerouslySetInnerHTML:{__html:s}},r);return null})})},Lt=(e,n,a)=>{let o=e.siteUrl;return n.forEach((s,r)=>{r>0&&(o+=`/${s}`)}),`${o}/page/${a+1}`},qt=(e,n,a)=>{let o=e.siteUrl;return n.forEach((s,r)=>{r>0&&(o+=`/${s}`)}),`${o}/page/${a-1}`};function fi(e){const n=e.length;return n>1&&e.charCodeAt(n-1)===47?e.slice(0,n-1):e}const go=()=>{const{PUBLIC_ASSETS_URL:e}=W();return e&&e!=="false"&&t.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},{PUBLIC_ASSETS_URL:Zn}=W(),mi=Zn&&Zn!=="false"?Zn:"",Xn=({images:e})=>t.jsx(t.Fragment,{children:e.map((n,a)=>n.href!==""&&t.jsx("link",{rel:"preload",href:mi+n.href,media:n.media??"",as:"image",fetchPriority:n.fetchPriority??"high"},a))}),po=(e,n)=>{if(!e)return{};const{PUBLIC_API_FRONT:a}=W();return{title:e?.main?.title+" | "+n.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:n.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.landscapeLogo.width,height:n.landscapeLogo.height}],siteName:n.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:n.siteUrl,description:e?.main.description??"",images:[{url:(a??"")+e?.main.image.sizes[0]?.url,width:n.twitterSummaryCard.width,height:n.twitterSummaryCard.height}]}}},gi=e=>{let n="";if(e.params.news.match(/.*t[0-9]*.html/g)){const a=e.params.news.split("-"),o=a[a.length-1]??"",s=o.substring(1,9),r=o.substring(9,13);n=`/listas/${Se(s).format("YYYY/MM/DD")}/lista_${r}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const a=e.params.news.split("-"),o=a[a.length-1]??"",s=o.substring(2,10),r=o.substring(10,14);n=`/liveblog/${Se(s).format("YYYY/MM/DD")}/liveblog_${r}.html`}else{const o=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(o)&&(n=`/contenidos/${Se(o[o.length-2]).format("YYYY/MM/DD")}/noticia_${o[o.length-1]}.html`)}return e.config.servicePrefix+n};function pi(e){const n=e.lastIndexOf("-"),a=n>=0?[e.slice(0,n),e.slice(n+1)]:[e],o=a[a.length-1]?.split("."),s=o&&o[0]?o[0]:"",r=s.substring(0,2),i=s.substring(2,10),c=s.substring(10);return{path:{vy:l=>`/videos/video-youtube/${Se(i).format("YYYY/MM/DD")}/videoYouTube_${l}.lnk`,ve:l=>`/videos/video-embedded/${Se(i).format("YYYY/MM/DD")}/videoEmbedded_${l}.lnk`,vf:l=>`/videos/video-flash/${Se(i).format("YYYY/MM/DD")}/${a[0]}.${l}`}[r]?.(c)??"",op:r}}const et=(e,n)=>{const a=e.name.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ñ/g,"n").replace(/Ñ/g,"n").replace(/[^\w\s]/gi,"").replaceAll(" ","-").toLowerCase();return n?.tema?`/${n.tema}/${a}-t${e.id}`:`/${a}-t${e.id}`},Ai=e=>{const{AssetsPrefix:n="",AssetsPath:a="src",isDev:o=!1}=e;return o?"src":n+a},wi=async(e,n,a,o)=>{const{FETCH_TAG_BASED_RELATED_NEWS:s=!1,FETCH_SIZE_RELATED_NEWS:r=10}=W();if(!e)return[];try{if(e.related&&e.related?.automatic===!1&&e.related?.news&&e.related?.news.length>0)return(await a.getNewsListPath({path:e.related.news.map(c=>c.path).join(";"),exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:o.md}))?.data?.data??[];{const i=e&&e.keywords&&e.keywords.tags&&e.keywords.tags[0];return((e?i&&s?await a.getNewsListAvanced({query:'claves:("'+e.keywords?.tags[0].name+'")',exclude:"gallery,related,relatedexternal,external,customfields",imagesizes:o.md,size:11}):await a.getNewsItemsRelated(n.split("/").join("|"),{size:r}):null)?.data?.data??[]).filter(l=>l.info.link.internal!==n.split("/").join("|"))}}catch(i){console.log(i)}},yi="https://recaptchaenterprise.googleapis.com/v1/projects",bi=async({projectID:e,recaptchaKey:n,token:a,recaptchaAction:o,apiKey:s,userAgent:r,userIpAddress:i})=>{if(!e||!n||!a||!s)return console.warn("createAssessment: faltan parámetros requeridos"),null;const c=`${yi}/${e}/assessments?key=${s}`,h={event:{token:a,siteKey:n,expectedAction:o,...r&&{userAgent:r},...i&&{userIpAddress:i}}};try{const l=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!l.ok)return console.error("createAssessment API error:",l.status,await l.text()),null;const d=await l.json();if(!d?.tokenProperties?.valid)return console.log(`CreateAssessment falló - token inválido: ${d?.tokenProperties?.invalidReason??"unknown"}`),null;if(d.tokenProperties.action!==o)return console.log("La acción en reCAPTCHA no coincide con la esperada:",o),null;const u=d?.riskAnalysis?.score;return u!==void 0&&(console.log("reCAPTCHA score:",u),d?.riskAnalysis?.reasons?.forEach(f=>console.log(f))),typeof u=="number"?u:null}catch(l){return console.error("createAssessment error:",l),null}},Ao={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"}]},wo={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"moderate"},{eagerness:"moderate",urls:["/"]}]},Ci={Home:Ao,Common:wo},yo=({active:e,type:n,customSpeculation:a})=>e&&t.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(a??Ci[n])}}),rn=async(e,n,a)=>{if(a)return a.get(`/schemas${n}`,{params:e}).catch(o=>{console.log(`[/schemas${n}] Error: ${o.message}`)})},_i={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},bo=async({config:e,axiosApi:n,pathname:a,ROUTE:o})=>{const{PUBLIC_PUBLICATION_ID:s=""}=W();let r=[];const i=a==="/"||a==="/index.html"?void 0:Io(Eo[o]({pathname:a,config:e})),c=_i[o]??void 0,h={newstype:e.newsType,publication:Number(s),...i&&c?{query:`${c}:('${i}')`}:{}};try{const l=await rn(h,"/news-list-summary",n);l?.data?.data?r=l.data.data:console.warn("getSchemas responded but did not contain expected data:",l)}catch(l){console.log("Error fetching schemas:",l)}return Object.keys(r).length>0&&t.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})};function cn(e){const{PUBLIC_ASSETS_URL:n}=W();if(!n||n==="false")return e;const a=n.replace(/\/+$/,""),o=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(o,(s,r)=>`${a}/${r}/`)}const Co=async({realPath:e,config:n,BASE_URL:a,axiosApi:o})=>{const{PUBLIC_SERVICE_PREFIX:s,PUBLIC_IS_SUB_PUBLICATION:r}=W();let i=[];try{const c=n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,h=n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,l={path:e,image:h,logo:c,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:a+"/autor/"},d=e.split("/")[1],u=d=="liveblogs"||d=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"],f=n.paths.tema!==""?"/"+n.paths.tema:n.paths.tema,g=s!=="false"&&r!=="false"?"/"+s+f:f;i=(await Promise.all(u.map(async p=>{const A=p==="/news-breadcrumb"?{...l,prefixtag:g}:l;return await rn(A,p,o)}))).map(p=>p?.data?.data??[])}catch(c){console.log("Error fetching schemas:",c)}return i.map((c,h)=>t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:cn(JSON.stringify(c))}},h))},_o=({config:e,socials:n})=>{const a={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(n).filter(o=>n[o]?.show).map(o=>n[o]?.url)};return(!e.description||e.description==="")&&delete a.description,t.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})},vo=({config:e})=>{const n={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return t.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})},So=async({realPath:e,config:n,axiosApi:a})=>{try{const o={path:e,image:n.landscapeLogo?.url?new URL(n.landscapeLogo.url).pathname:void 0,logo:n.socialBlockLogo?.url?new URL(n.socialBlockLogo.url).pathname:void 0,url:n.siteUrl,name:n.name,logow:n.socialBlockLogo?.width,logoh:n.socialBlockLogo?.height,authorurl:`${n.siteUrl}/autor/`},r=(await rn(o,"/videos",a))?.data.data;return r?t.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:cn(JSON.stringify(r))}}):void 0}catch(o){return console.error("Error fetching video schemas:",o),null}},No=({config:e})=>{const n=`@font-face {
|
|
14
14
|
font-family: '${e.fontName}';
|
|
15
15
|
font-style: normal;
|
|
16
16
|
font-weight: ${e.fontWeight};
|