(function(g){var window=this;'use strict';var TSj=function(q){if(q.runs)for(var Z=0;Z=0);g.hK(q.element,"ytp-scroll-max",Z<=F)},bPe=function(q,Z){g.w.call(this,{Y:"a", rU:["ytp-impression-link"],L:{target:"{{target}}",href:"{{url}}","aria-label":"Mirar en YouTube"},T:[{Y:"div",W:"ytp-impression-link-content",L:{"aria-hidden":"true"},T:[{Y:"div",W:"ytp-impression-link-text",Ka:"Mirar en"},{Y:"div",W:"ytp-impression-link-logo",Ka:"{{logoSvg}}"}]}]});this.api=q;this.D=Z;this.updateValue("target",q.C().PG);this.N(q,"videodatachange",this.onVideoDataChange);this.N(this.api,"presentingplayerstatechange",this.Qc);this.N(this.api,"videoplayerreset",this.Ys);this.N(this.element, "click",this.onClick);this.onVideoDataChange();this.Ys()},NzE=function(q){q.D||(q.S=5E3,q.G=(0,g.Le)(),q.D=new g.S2(function(){BzB(q)},null),BzB(q))},DC_=function(q){var Z=q.B; q=!!Z.isEmbedsShortsMode();g.hK(Z.getRootNode(),"ytp-shorts-mode",q);if(Z=Z.getVideoData())Z.r5=q},gTE=function(q){q.mutedAutoplay=!1; q.endSeconds=NaN;q.limitedPlaybackDurationInSeconds=NaN;g.On(q)},fLu=function(q){g.w.call(this,{Y:"div", W:"ytp-related-on-error-overlay"});var Z=this;this.api=q;this.Z=this.K=0;this.G=new g.pO(this);this.D=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.w({Y:"h2",W:"ytp-related-title",Ka:"{{title}}"});this.previous=new g.w({Y:"button",rU:["ytp-button","ytp-previous"],L:{"aria-label":"Mostrar videos sugeridos anteriores"},T:[g.Jn()]});this.V=new g.YJ(function(D){Z.suggestions.element.scrollLeft=-D}); this.S=this.scrollPosition=0;this.j=!0;this.next=new g.w({Y:"button",rU:["ytp-button","ytp-next"],L:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},T:[g.Fc()]});g.y(this,this.G);q=q.C();this.X=q.G;g.y(this,this.title);this.title.R_(this.element);this.suggestions=new g.w({Y:"div",W:"ytp-suggestions"});g.y(this,this.suggestions);this.suggestions.R_(this.element);g.y(this,this.previous);this.previous.R_(this.element);this.previous.listen("click",this.Un,this);g.y(this,this.V);for(var F={w0:0};F.w0< 16;F={w0:F.w0},F.w0++){var B=new g.w({Y:"a",W:"ytp-suggestion-link",L:{href:"{{link}}",target:q.PG,"aria-label":"{{aria_label}}"},T:[{Y:"div",W:"ytp-suggestion-image",T:[{Y:"div",L:{"data-is-live":"{{is_live}}"},W:"ytp-suggestion-duration",Ka:"{{duration}}"}]},{Y:"div",W:"ytp-suggestion-title",L:{title:"{{hover_title}}"},Ka:"{{title}}"},{Y:"div",W:"ytp-suggestion-author",Ka:"{{views_or_author}}"}]});g.y(this,B);B.R_(this.suggestions.element);var f=B.cG("ytp-suggestion-link");g.u$(f,"transitionDelay", F.w0/20+"s");this.G.N(f,"click",function(D){return function(G){var n=D.w0,b=Z.suggestionData[n],N=b.sessionData;g.FQ(Z.api.C())&&Z.api.U("web_player_log_click_before_generating_ve_conversion_params")?(Z.api.logClick(Z.D[n].element),n=b.Le(),b={},g.NH(Z.api,b),n=g.gJ(n,b),g.SC(n,Z.api,G)):g.lD(G,Z.api,Z.X,N||void 0)&&Z.api.TQ(b.videoId,N,b.playlistId)}}(F)); this.D.push(B)}g.y(this,this.next);this.next.R_(this.element);this.next.listen("click",this.wN,this);this.G.N(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.Ca().getPlayerSize());this.onVideoDataChange();this.show()},Sb6=function(){return{Y:"svg", L:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},T:[{Y:"path",L:{d:"M58.37 41.39H62.79V27.23C62.79 23.03 62.69 18.69 62.43 13.59H62.93L63.69 16.89L68.67 41.39H73.17L78.07 16.89L78.89 13.59H79.37C79.15 18.45 79.03 22.89 79.03 27.23V41.39H83.45V8.79H75.95L73.41 20.81C72.35 25.85 71.51 32.01 71.01 35.19H70.73C70.33 31.95 69.49 25.81 68.41 20.85L65.81 8.79H58.37V41.39Z",fill:"white"}},{Y:"path",L:{d:"M91.45 41.73C93.91 41.73 95.83 40.59 97.17 38.13H97.35L97.69 41.39H101.43V17.73H96.47V36.61C95.91 37.67 94.81 38.29 93.73 38.29C92.33 38.29 91.89 37.17 91.89 35.13V17.73H86.93V35.43C86.93 39.49 88.19 41.73 91.45 41.73Z", fill:"white"}},{Y:"path",L:{d:"M110.79 41.89C115.15 41.89 117.75 39.83 117.75 35.65C117.75 31.79 115.93 30.39 111.85 27.47C109.67 25.91 108.39 25.09 108.39 22.95C108.39 21.47 109.27 20.61 110.89 20.61C112.69 20.61 113.33 21.81 113.33 25.29L117.45 25.07C117.77 19.57 115.71 17.23 110.97 17.23C106.57 17.23 104.17 19.27 104.17 23.45C104.17 27.25 105.97 28.83 108.93 31.03C111.89 33.23 113.55 34.53 113.55 36.23C113.55 37.75 112.51 38.61 111.01 38.61C109.13 38.61 108.11 36.97 108.29 34.41L104.21 34.49C103.51 39.25 105.89 41.89 110.79 41.89Z", fill:"white"}},{Y:"path",L:{d:"M122.5 14.59C124.22 14.59 125.04 13.99 125.04 11.59C125.04 9.33 124.16 8.65 122.5 8.65C120.84 8.65 119.94 9.27 119.94 11.59C119.94 13.99 120.82 14.59 122.5 14.59ZM120.2 41.39H125V17.73H120.2V41.39Z",fill:"white"}},{Y:"path",L:{d:"M134.95 41.79C137.31 41.79 138.63 41.49 139.71 40.47C141.31 39.01 141.97 36.63 141.85 33.11L137.41 32.87C137.41 36.87 136.81 38.45 135.03 38.45C133.13 38.45 132.77 36.45 132.77 31.97V27.21C132.77 22.41 133.23 20.51 135.07 20.51C136.67 20.51 137.29 22.01 137.29 26.47L141.65 26.15C141.97 22.93 141.59 20.29 140.09 18.83C139.01 17.77 137.37 17.29 135.15 17.29C129.65 17.29 127.75 20.73 127.75 28.03V31.17C127.75 38.47 129.23 41.79 134.95 41.79Z", fill:"white"}},{Y:"path",L:{"clip-rule":"evenodd",d:"M24.99 49C29.74 49.00 34.38 47.59 38.32 44.95C42.27 42.32 45.35 38.57 47.17 34.18C48.98 29.80 49.46 24.97 48.53 20.32C47.61 15.66 45.32 11.38 41.97 8.03C38.61 4.67 34.33 2.38 29.68 1.46C25.02 .53 20.20 1.01 15.81 2.82C11.43 4.64 7.68 7.71 5.04 11.66C2.40 15.61 1 20.25 1 25C0.99 28.15 1.61 31.27 2.82 34.18C4.03 37.09 5.79 39.74 8.02 41.97C10.25 44.19 12.89 45.96 15.81 47.17C18.72 48.37 21.84 49 24.99 49ZM24.99 12.36C27.49 12.36 29.94 13.10 32.02 14.48C34.10 15.87 35.72 17.84 36.68 20.15C37.64 22.46 37.89 25.01 37.41 27.46C36.92 29.91 35.72 32.17 33.95 33.94C32.18 35.70 29.93 36.91 27.48 37.40C25.02 37.89 22.48 37.64 20.17 36.68C17.86 35.72 15.88 34.10 14.50 32.02C13.11 29.94 12.37 27.50 12.37 25C12.37 21.65 13.70 18.44 16.07 16.07C18.43 13.70 21.64 12.37 24.99 12.36ZM24.99 10.43C22.11 10.43 19.29 11.28 16.89 12.88C14.50 14.48 12.63 16.76 11.53 19.42C10.42 22.09 10.13 25.02 10.70 27.85C11.26 30.67 12.65 33.27 14.69 35.31C16.73 37.35 19.32 38.73 22.15 39.30C24.98 39.86 27.91 39.57 30.57 38.46C33.23 37.36 35.51 35.49 37.11 33.09C38.71 30.70 39.57 27.88 39.56 25C39.56 23.08 39.19 21.19 38.46 19.42C37.72 17.65 36.65 16.04 35.30 14.69C33.94 13.34 32.34 12.27 30.57 11.53C28.80 10.80 26.90 10.43 24.99 10.43ZM32.63 24.99L20.36 32.09V17.91L32.63 24.99Z", fill:"white","fill-rule":"evenodd"}}]}},lL_=function(q,Z){q.cG("ytp-error-content").style.paddingTop="0px"; var F=q.cG("ytp-error-content"),B=F.clientHeight;q.D&&q.D.resize(Z,Z.height-B);F.style.paddingTop=(Z.height-(q.D?q.D.element.clientHeight:0))/2-B/2+"px"},UCm=function(q){q.zb&&q.D&&(q.D.show(),q.S.start())},uo5=function(q){var Z=g.qs6(q.B); Z!==q.PG&&(q.PG=Z,q.Z&&(q.Z.dispose(),q.Z=null),q.S&&(q.S.dispose(),q.S=null),q.G&&(q.G.dispose(),q.G=null),q.K&&(q.K.stop(),q.K.dispose(),q.K=null),Z&&(Z=g.jR(q.B),q.B.isEmbedsShortsMode()&&(q.G=new g.w({Y:"div",W:"ytp-pause-overlay-backdrop",L:{tabIndex:"-1"}}),g.y(q,q.G),g.C5(q.B,q.G.element,4),q.K=new g.L3(q.G,1E3,!1,100),g.y(q,q.K),q.G.hide()),q.Z=new g.w({Y:"div",W:"ytp-pause-overlay-container",L:{tabIndex:"-1"}}),g.y(q,q.Z),q.S=new BJ(q.B,Z),g.y(q,q.S),q.S.R_(q.Z.element),g.C5(q.B,q.Z.element, 4),MzB(q,q.B.getPlayerStateObject())))},rb5=function(q){g.w.call(this,{Y:"div", W:"ytp-muted-autoplay-overlay",T:[{Y:"div",W:"ytp-muted-autoplay-bottom-buttons",T:[{Y:"button",rU:["ytp-muted-autoplay-equalizer","ytp-button"],L:{"aria-label":"Indicador de reproducci\u00f3n silenciada"},T:[{Y:"div",rU:["ytp-muted-autoplay-equalizer-icon"],T:[{Y:"svg",L:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},T:[{Y:"g",L:{fill:"#fff"},T:[{Y:"rect",W:"ytp-equalizer-bar-left",L:{height:"9",width:"4",x:"1",y:"7"}},{Y:"rect",W:"ytp-equalizer-bar-middle",L:{height:"14",width:"4", x:"6",y:"2"}},{Y:"rect",W:"ytp-equalizer-bar-right",L:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var Z=this;this.api=q;this.bottomButtons=this.cG("ytp-muted-autoplay-bottom-buttons");this.S=new g.im(this.IP,4E3,this);this.K=!1;q.createClientVe(this.element,this,39306);this.N(q,"presentingplayerstatechange",this.qN);this.N(q,"onMutedAutoplayStarts",function(){Pb8(Z);Z.qN();UCm(Z);Z.K=!1}); this.N(q,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.N(q,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();q.isMutedByEmbedsMutedAutoplay()&&(Pb8(this),this.qN(),UCm(this));g.y(this,this.S)},wTm=function(q){var Z={}; g.ct(q.api,"addEmbedsConversionTrackingParams",[Z]);q=q.api.getVideoUrl();return q=g.gJ(q,Z)},Wse=function(q){var Z=q.api.getVideoData(),F=q.api.C().bb&&!g.p(q.state,2)&&!q.api.getVideoData(1).z3; Z.mutedAutoplay||q.hZ(F);q.api.logVisibility(q.element,F)},BJ=function(q){g.w.call(this,{Y:"div", W:"ytp-pause-overlay",L:{tabIndex:"-1"}});var Z=this;this.api=q;this.S=new g.pO(this);this.fade=new g.L3(this,1E3,!1,100,function(){Z.D.K=!1},function(){Z.D.K=!0}); this.K=!1;this.expandButton=new g.w({Y:"button",rU:["ytp-button","ytp-expand"],Ka:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"});q.C().controlsType==="0"&&g.e$(q.getRootNode(),"ytp-pause-overlay-controls-hidden");g.y(this,this.S);g.y(this,this.fade);var F=new g.w({Y:"button",rU:["ytp-button","ytp-collapse"],L:{"aria-label":this.api.isEmbedsShortsMode()?"Ocultar m\u00e1s Shorts":"Ocultar M\u00e1s videos"},T:[{Y:"div",W:"ytp-collapse-icon",T:[g.rnK()]}]});g.y(this,F);F.R_(this.element); F.listen("click",this.G,this);g.y(this,this.expandButton);this.expandButton.R_(this.element);this.expandButton.listen("click",this.Z,this);this.D=new g.tn(q);g.y(this,this.D);this.D.K=!1;this.D.R_(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.S.N(this.api,"presentingplayerstatechange",this.ys);this.S.N(this.api,"videodatachange",this.ys);this.hide()},qbE=function(q,Z){q=g.jm("A",q); for(var F=0;F=650,D=q.width<480||q.height<290,G=Math.min(this.suggestionData.length,this.D.length);if(Math.min(q.width,q.height)<=150||G===0||!F.X3)this.hide();else{var n;if(f){var b=n=28;this.K=16}else this.K=b=n=8;if(D){var N=6;f=14;var S=12;D=24;F=12}else N=8,f=18,S=16,D=36,F=16;q=q.width-(48+n+b);n=Math.ceil(q/150);n=Math.min(3,n);b=q/n-this.K;var l=Math.floor(b/B);Z&&l+100>Z&&b>50&&(l=Math.max(Z,50/B),n=Math.ceil(q/(B*(l-100)+this.K)),b=q/n-this.K, l=Math.floor(b/B));b<50||g.SH(this.api)?this.hide():this.show();for(Z=0;Z