(function(g){var window=this;'use strict';var mG=function(f){f.mutedAutoplay=!1;f.endSeconds=NaN;f.limitedPlaybackDurationInSeconds=NaN;g.d7(f)},U6=function(){return{L:"svg", O:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},j:[{L:"path",ev:!0,B:"ytp-svg-fill",O:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}}, HR2=function(){return{L:"svg", O:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},j:[{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{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"}},{L:"path",O:{"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"}}]}},NF=function(f,e){if(f.api.S().Y("web_player_log_click_before_generating_ve_conversion_params")){var B=Math.floor(-f.scrollPosition/(f.J+f.G)); const n=Math.min(B+f.columns,f.suggestionData.length)-1;for(;B<=n;B++)f.api.logVisibility(f.C[B].element,e)}},hP=function(f){f.next.element.style.bottom=`${f.W}px`; f.previous.element.style.bottom=`${f.W}px`;const e=f.scrollPosition,B=f.containerWidth-f.suggestionData.length*(f.J+f.G);g.h(f.element,"ytp-scroll-min",e>=0);g.h(f.element,"ytp-scroll-max",e<=B)},k$L=function(f){let e=0; for(;e{CWu(f,d,L)})),e&&L.setAttribute("target",e),B=g.BN("DIV"),B.appendChild(L),n.appendChild(B)))}},g9=function(f){if(f.runs)for(let e=0;e{Si(f)},null),Si(f))},E6=function(f){var e=f.Z; f=!!e.isEmbedsShortsMode();g.h(e.getRootNode(),"ytp-shorts-mode",f);if(e=e.getVideoData())e.ZI=f},YNB=function(f){const e=g.U40(f.Z); e!==f.N&&(f.N=e,f.W&&(f.W.dispose(),f.W=null),f.J&&(f.J.dispose(),f.J=null),f.V&&(f.V.dispose(),f.V=null),f.G&&(f.G.stop(),f.G.dispose(),f.G=null),e&&(g.n_(f.Z),f.Z.isEmbedsShortsMode()&&(f.V=new g.y({L:"div",B:"ytp-pause-overlay-backdrop",O:{tabIndex:"-1"}}),g.A(f,f.V),g.qX(f.Z,f.V.element,4),f.G=new g.Ob(f.V,1E3,!1,100),g.A(f,f.G),f.V.hide()),f.W=new g.y({L:"div",B:"ytp-pause-overlay-container",O:{tabIndex:"-1"}}),g.A(f,f.W),f.J=new pDg(f.Z),g.A(f,f.J),f.J.di(f.W.element),g.qX(f.Z,f.W.element,4), cGI(f,f.Z.getPlayerStateObject())))},cGI=function(f,e){f.G&&(!e.C(4)&&!e.C(2)||e.C(1024)?f.G.hide():f.G.show())},Qn=function(f,e){const B=f.Z.S(); f={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:f.Z.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":f.Z.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.re(f.Z.S().loaderUrl),eventType:e,youtubeHost:g.BT(f.Z.S().vE)||""};f.embeddedPlayerMode=B.eI;g.t$("embedsAdEvent",f)},AGG=class extends g.y{constructor(f){super({L:"div", B:"ytp-related-on-error-overlay"});this.api=f;this.W=this.G=0;this.V=new g.ep(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.y({L:"h2",B:"ytp-related-title",Ga:"{{title}}"});this.previous=new g.y({L:"button",y9:["ytp-button","ytp-previous"],O:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},j:[g.d_()]});this.K=new g.SMe(e=>{this.suggestions.element.scrollLeft=-e}); this.J=this.scrollPosition=0;this.U=!0;this.next=new g.y({L:"button",y9:["ytp-button","ytp-next"],O:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},j:[g.tX()]});g.A(this,this.V);f=f.S();this.X=f.V;g.A(this,this.title);this.title.di(this.element);this.suggestions=new g.y({L:"div",B:"ytp-suggestions"});g.A(this,this.suggestions);this.suggestions.di(this.element);g.A(this,this.previous);this.previous.di(this.element);this.previous.listen("click",this.A,this);g.A(this,this.K);for(let e=0;e<16;e++){const B= new g.y({L:"a",B:"ytp-suggestion-link",O:{href:"{{link}}",target:f.N,"aria-label":"{{aria_label}}"},j:[{L:"div",B:"ytp-suggestion-image",j:[{L:"div",O:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration",Ga:"{{duration}}"}]},{L:"div",B:"ytp-suggestion-title",O:{title:"{{hover_title}}"},Ga:"{{title}}"},{L:"div",B:"ytp-suggestion-author",Ga:"{{views_or_author}}"}]});g.A(this,B);B.di(this.suggestions.element);const n=B.JL("ytp-suggestion-link");g.uc(n,"transitionDelay",`${e/20}s`);this.V.D(n,"click", r=>{var L=e,d=this.suggestionData[L];const t=d.sessionData;g.XY(this.api.S())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(this.api.logClick(this.C[L].element),L=d.Q7(),d={},g.Z5(this.api,d),L=g.vT(L,d),g.Ur(L,this.api,r)):g.mv(r,this.api,this.X,t||void 0)&&this.api.P6(d.videoId,t,d.playlistId)}); this.C.push(B)}g.A(this,this.next);this.next.di(this.element);this.next.listen("click",this.N,this);this.V.D(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.AL().getPlayerSize());this.onVideoDataChange();this.show()}hide(){this.U=!0;super.hide();NF(this,!1)}show(){this.U=!1;super.show();NF(this,!0)}isHidden(){return this.U}N(){this.scrollTo(this.scrollPosition-this.containerWidth)}A(){this.scrollTo(this.scrollPosition+this.containerWidth)}resize(f,e){var B=this.api.S(),n=16/ 9,r=f.width>=650,L=f.width<480||f.height<290,d=Math.min(this.suggestionData.length,this.C.length);if(Math.min(f.width,f.height)<=150||d===0||!B.Mk)this.hide();else{var t;if(r){var H=t=28;this.G=16}else this.G=H=t=8;if(L){var k=6;r=14;var C=12;L=24;B=12}else k=8,r=18,C=16,L=36,B=16;f=f.width-(48+t+H);t=Math.ceil(f/150);t=Math.min(3,t);H=f/t-this.G;var w=Math.floor(H/n);e&&w+100>e&&H>50&&(w=Math.max(e,50/n),t=Math.ceil(f/(n*(w-100)+this.G)),H=f/t-this.G,w=Math.floor(H/n));H<50||g.bS(this.api)?this.hide(): this.show();for(e=0;eB&&!B.playlistId):this.suggestionData.length=0; k$L(this);f.AF?this.title.update({title:g.RT("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:f.author})}):this.title.update({title:"Mais v\u00eddeos no YouTube"})}scrollTo(f){f=g.ch(f,this.containerWidth-this.suggestionData.length*(this.J+this.G),0);this.K.start(this.scrollPosition,f,1E3);this.scrollPosition=f;hP(this);NF(this,!0)}};var jUB=class extends g.vag{constructor(f){super(f);this.C=null;const e=f.S(),B={target:e.N},n=["ytp-small-redirect"];if(e.J)n.push("no-link");else{const L=g.C3(e);B.href=L;B["aria-label"]="Acesse o YouTube para pesquisar mais v\u00eddeos"}const r=new g.y({L:"a",y9:n,O:B,j:[{L:"svg",O:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{L:"path",O:{d:"M0 0h24v24H0V0z",fill:"none"}},{L:"path",O:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}]}); r.di(this.element);f.createClientVe(r.element,this,178053);this.D(r.element,"click",L=>{CWu(this,L,r.element)}); g.A(this,r);e.J||e.disableOrganicUi||(this.C=new AGG(f),this.C.di(this.element),g.A(this,this.C));this.D(f,"videodatachange",()=>{this.show()}); this.resize(this.api.AL().getPlayerSize())}show(){super.show();wDT(this,this.api.AL().getPlayerSize())}resize(f){super.resize(f);this.C&&(wDT(this,f),g.h(this.element,"related-on-error-overlay-visible",!this.C.isHidden()))}G(f){super.G(f);const e=this.api.getVideoData();if(e.O1||e.playerErrorMessageRenderer)(f=e.O1)?bRM(this,f):e.playerErrorMessageRenderer&&bRM(this,e.playerErrorMessageRenderer);else{let B;f.YZ&&(e.ai?g9(e.ai)?B=g.r_(e.ai):B=g.Mk(g.nS(e.ai)):B=g.Mk(f.YZ),this.setContent(B,"subreason"))}}};var ORB=class extends g.y{constructor(f,e){super({L:"a",y9:["ytp-impression-link"],O:{target:"{{target}}",href:"{{url}}","aria-label":"Assistir no YouTube"},j:[{L:"div",B:"ytp-impression-link-content",O:{"aria-hidden":"true"},j:[{L:"div",B:"ytp-impression-link-text",Ga:"Assistir no"},{L:"div",B:"ytp-impression-link-logo",Ga:"{{logoSvg}}"}]}]});this.api=f;this.G=e;this.updateValue("target",f.S().N);this.D(f,"videodatachange",this.onVideoDataChange);this.D(this.api,"presentingplayerstatechange",this.lT); this.D(this.api,"videoplayerreset",this.C);this.D(this.element,"click",this.onClick);this.onVideoDataChange();this.C()}onVideoDataChange(){const f=this.api.getVideoData();let e=U6(),B=96714;g.WY(f)?(e=HR2(),B=216165,g.PW(this.element,"ytp-music-impression-link")):g.$i(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",e);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,B)}lT(){this.api.getPlayerStateObject().isCued()||(this.hide(), this.api.logVisibility(this.element,!1))}C(){var f=this.api.getVideoData();const e=this.api.S(),B=this.api.getVideoData().AF,n=!e.Mk,r=this.G.B0(),L=e.J;e.mS||r||B||n||L||this.api.isEmbedsShortsMode()||!f.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(f=ZRH(this),this.updateValue("url",f),this.show())}onClick(f){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const e=ZRH(this);g.Ur(e,this.api,f);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")|| this.api.logClick(this.element)}show(){this.api.getPlayerStateObject().isCued()&&(super.show(),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))}};var o_G=class extends g.y{constructor(f){super({L:"div",y9:["ytp-mobile-a11y-hidden-seek-button"],j:[{L:"button",y9:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],O:{"aria-label":"Voltar 10 segundos","aria-hidden":"false"}},{L:"button",y9:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],O:{"aria-label":"Avan\u00e7ar 10 segundos","aria-hidden":"false"}}]});this.api=f;this.C=this.JL("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.JL("ytp-mobile-a11y-hidden-seek-button-forward"); this.api.createClientVe(this.C,this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.D(this.api,"presentingplayerstatechange",this.lT);this.D(this.C,"click",this.G);this.D(this.forwardButton,"click",this.J);this.lT()}lT(){const f=this.api.getPlayerStateObject();!this.api.Xq()||f.C(2)&&g.wL(this.api)||f.C(64)?(this.api.logVisibility(this.C,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.C,!0),this.api.logVisibility(this.forwardButton, !0))}G(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.C)}J(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)}};var VWH=class extends g.y{constructor(f){super({L:"div",B:"ytp-muted-autoplay-endscreen-overlay",j:[{L:"div",B:"ytp-muted-autoplay-end-panel",j:[{L:"button",y9:["ytp-muted-autoplay-end-text","ytp-button"],Ga:"{{text}}"}]}]});this.api=f;this.V=this.JL("ytp-muted-autoplay-end-panel");this.G=!1;this.api.createClientVe(this.element,this,52428);this.D(this.api,"presentingplayerstatechange",this.J);this.D(f,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()}J(){var f= this.api.getPlayerStateObject();const e=this.api.getVideoData();g.h(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!e.mutedAutoplay||e.limitedPlaybackDurationInSeconds===0&&e.endSeconds===0&&e.mutedAutoplayDurationMode===2||(f.C(2)&&!this.ef?(this.show(),this.C||(this.C=new g.C7M(this.api),g.A(this,this.C),this.C.di(this.V,0),this.C.show()),f=this.api.getVideoData(),this.updateValue("text",f.TX),g.h(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element, this.ef),g.id(this.api,"onMutedAutoplayEnds")):this.hide())}onClick(){if(!this.G){this.C&&(this.C.bY(),this.C=null);g.h(this.api.getRootNode(),"ytp-muted-autoplay",!1);var f=this.api.getVideoData(),e=this.api.getCurrentTime();mG(f);this.api.loadVideoById(f.videoId,e);this.api.d9();this.api.logClick(this.element);this.hide();this.G=!0}}onMutedAutoplayStarts(){this.G=!1;this.C&&(this.C.bY(),this.C=null)}};var K3B=class extends g.y{constructor(f){const e=f.S();super({L:"a",y9:["ytp-watermark","yt-uix-sessionlink"],O:{target:e.N,href:"{{url}}","aria-label":g.RT("Assista em $WEBSITE",{WEBSITE:g.IP(e)}),"data-sessionlink":"feature=player-watermark"},Ga:"{{logoSvg}}"});this.api=f;this.C=null;this.G=!1;this.state=f.getPlayerStateObject();this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"presentingplayerstatechange",this.onStateChange);this.D(f,"appresize",this.Sf);this.onVideoDataChange();this.Hd(this.state); this.Sf(f.AL().getPlayerSize())}onStateChange(f){this.Hd(f.state)}Hd(f){this.state!==f&&(this.state=f);RVe(this)}onVideoDataChange(){var f=this.api.S();f.J&&g.PW(this.element,"ytp-no-hover");const e=this.api.getVideoData();e.videoId&&!f.J?(f=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",f),this.C||(this.C=this.listen("click",this.onClick))):this.C&&(this.updateValue("url",null),this.uh(this.C),this.C=null);f=U6();let B=76758;g.WY(e)&&(f=HR2(),B=216164);this.updateValue("logoSvg",f);this.api.hasVe(this.element)&& this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,B);RVe(this)}onClick(f){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);let e=this.api.getVideoUrl(!g.Ef(f),!1,!0,!0);if(this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){const B={};g.$7(this.api,"addEmbedsConversionTrackingParams",[B]);e=g.vT(e,B)}g.Ur(e,this.api,f);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")|| this.api.logClick(this.element)}Sf(f){if((f=f.width<480)&&!this.G||!f&&this.G){const e=new g.y(U6()),B=this.JL("ytp-watermark");g.h(B,"ytp-watermark-small",f);g.LC(B);e.di(B);this.G=f}}};var lOI=class extends g.y{constructor(f){super({L:"div",B:"ytp-muted-autoplay-overlay",j:[{L:"div",B:"ytp-muted-autoplay-bottom-buttons",j:[{L:"button",y9:["ytp-muted-autoplay-equalizer","ytp-button"],O:{"aria-label":"Indicador de reprodu\u00e7\u00e3o silenciada"},j:[{L:"div",y9:["ytp-muted-autoplay-equalizer-icon"],j:[{L:"svg",O:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},j:[{L:"g",O:{fill:"#fff"},j:[{L:"rect",B:"ytp-equalizer-bar-left",O:{height:"9",width:"4",x:"1",y:"7"}}, {L:"rect",B:"ytp-equalizer-bar-middle",O:{height:"14",width:"4",x:"6",y:"2"}},{L:"rect",B:"ytp-equalizer-bar-right",O:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=f;this.bottomButtons=this.JL("ytp-muted-autoplay-bottom-buttons");this.V=new g.T6(this.W,4E3,this);this.G=!1;f.createClientVe(this.element,this,39306);this.D(f,"presentingplayerstatechange",this.J);this.D(f,"onMutedAutoplayStarts",()=>{qNB(this);this.J();zVT(this);this.G=!1}); this.D(f,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.D(f,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();f.isMutedByEmbedsMutedAutoplay()&&(qNB(this),this.J(),zVT(this));g.A(this,this.V)}J(){const f=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||f.C(2)?this.hide():this.ef||(super.show(),this.api.logVisibility(this.element,this.ef))}W(){this.C&&this.C.hide()}onAutoplayBlocked(){this.hide();mG(this.api.getVideoData())}onClick(){if(!this.G){g.h(this.api.getRootNode(), "ytp-muted-autoplay",!1);var f=this.api.getVideoData(),e=this.api.getCurrentTime();mG(f);this.api.loadVideoById(f.videoId,e);this.api.d9();this.api.logClick(this.element);g.id(this.api,"onMutedAutoplayEnds");this.G=!0}}onMutedAutoplayEnds(){this.watermark&&(this.watermark.bY(),this.watermark=null)}};var pDg=class extends g.y{constructor(f){super({L:"div",B:"ytp-pause-overlay",O:{tabIndex:"-1"}});this.api=f;this.J=new g.ep(this);this.fade=new g.Ob(this,1E3,!1,100,()=>{this.C.G=!1},()=>{this.C.G=!0}); this.G=!1;this.expandButton=new g.y({L:"button",y9:["ytp-button","ytp-expand"],Ga:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"});f.S().controlsType==="0"&&g.PW(f.getRootNode(),"ytp-pause-overlay-controls-hidden");g.A(this,this.J);g.A(this,this.fade);const e=new g.y({L:"button",y9:["ytp-button","ytp-collapse"],O:{"aria-label":this.api.isEmbedsShortsMode()?"Ocultar Shorts":"Ocultar mais v\u00eddeos"},j:[{L:"div",B:"ytp-collapse-icon",j:[g.a5()]}]});g.A(this,e);e.di(this.element);e.listen("click", this.V,this);g.A(this,this.expandButton);this.expandButton.di(this.element);this.expandButton.listen("click",this.W,this);this.C=new g.Eeu(f);g.A(this,this.C);this.C.G=!1;this.C.di(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.J.D(this.api,"presentingplayerstatechange",this.gi);this.J.D(this.api,"videodatachange",this.gi);this.hide()}hide(){g.$i(this.api.getRootNode(),"ytp-expand-pause-overlay"); super.hide()}V(){this.G=!0;g.$i(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()}W(){this.G=!1;g.PW(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()}gi(){const f=this.api.getPlayerStateObject();f.C(1)||f.C(16)||f.C(32)||(!f.C(4)||f.C(2)||f.C(1024)?(this.G||this.api.logVisibility(this.element,!1),this.fade.hide()):this.C.hasSuggestions()&& (this.G||(g.PW(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.B4(this.C),this.C.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))}};var u_F=class extends g.y{constructor(f){super({L:"div",y9:["ytp-player-content","ytp-iv-player-content"],j:[{L:"div",B:"ytp-countdown-timer",j:[{L:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},j:[{L:"circle",B:"ytp-svg-countdown-timer-ring",O:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{L:"circle",B:"ytp-svg-countdown-timer-background",O:{cx:"-36",cy:"36","fill-opacity":"0", r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3","stroke-width":"4",transform:"rotate(-90)"}}]},{L:"span",B:"ytp-countdown-timer-time",Ga:"{{duration}}"}]}]});this.api=f;this.U=this.JL("ytp-svg-countdown-timer-ring");this.C=null;this.V=this.J=0;this.G=!1;this.W=0;this.api.createClientVe(this.element,this,159628)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.C&&(this.C.dispose(),this.C=null,this.G=!1)}bY(){this.stopTimer();super.bY()}};g.cO("embed",class extends g.zV{constructor(f){super(f);this.Z=f;this.C=new g.ep(this);this.G=null;this.X=!1;this.countdownTimer=null;this.N=!1;E6(this);g.A(this,this.C);this.load()}Ls(){return!1}create(){var f=this.Z.S();const e=g.n_(this.Z),B=this.Z.getVideoData()?.clientPlaybackNonce;B&&g.hQ({clientPlaybackNonce:B});f.BS&&!f.disableOrganicUi&&YNB(this);f.getWebPlayerContextConfig()?.embedsEnableEmc3ds||(this.K=new lOI(this.Z),g.A(this,this.K),g.qX(this.Z,this.K.element,4),this.A=new VWH(this.Z), g.A(this,this.A),g.qX(this.Z,this.A.element,4));f.mS&&(this.watermark=new K3B(this.Z),g.A(this,this.watermark),g.qX(this.Z,this.watermark.element,8));e&&!f.disableOrganicUi&&(this.U=new ORB(this.Z,e),g.A(this,this.U),g.qX(this.Z,this.U.element,8),this.Z.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.U.hide()));f.G&&!f.disableOrganicUi&&(this.Ed=new o_G(this.Z),g.A(this,this.Ed),g.qX(this.Z,this.Ed.element,4));this.C.D(this.Z,"appresize",this.Sf);this.C.D(this.Z,"presentingplayerstatechange", this.lT);this.C.D(this.Z,"videodatachange",this.onVideoDataChange);this.C.D(this.Z,"videoplayerreset",this.onReset);this.C.D(this.Z,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.C.D(this.Z,"onAdStart",this.onAdStart);this.C.D(this.Z,"onAdComplete",this.onAdComplete);this.C.D(this.Z,"onAdSkip",this.onAdSkip);this.C.D(this.Z,"onAdStateChange",this.onAdStateChange);if(this.X=g.uz(g.sC(f)))this.countdownTimer=new u_F(this.Z),g.A(this,this.countdownTimer),g.qX(this.Z,this.countdownTimer.element, 4),this.countdownTimer.hide(),this.C.D(this.Z,g.kk("embeds"),this.onCueRangeEnter),this.C.D(this.Z,g.Ca("embeds"),this.onCueRangeExit);this.oC(this.Z.getPlayerStateObject());this.Z.S().getWebPlayerContextConfig()?.embedsHostFlags?.allowOverridingVisitorDataPlayerVars&&(f=g.Q("IDENTITY_MEMENTO"))&&g.f_(this.Z,"onMementoChange",f)}onCueRangeEnter(f){f.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),aOV(this.countdownTimer))}onCueRangeExit(f){f.getId()==="countdown timer"&& this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())}Sf(){const f=this.Z.AL().getPlayerSize();this.Lz&&this.Lz.resize(f)}onReset(){E6(this)}lT(f){this.oC(f.state)}oC(f){f.C(128)?(this.Lz||(this.Lz=new jUB(this.Z),g.A(this,this.Lz),g.qX(this.Z,this.Lz.element,4)),this.Lz.G(f.iE),this.Lz.show(),g.PW(this.Z.getRootNode(),"ytp-embed-error")):this.Lz&&(this.Lz.dispose(),this.Lz=null,g.$i(this.Z.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.C)if(f.C(64))this.countdownTimer.hide(), this.countdownTimer.stopTimer();else if(f.isPaused()){var e=this.countdownTimer;e.G||(e.G=!0,e.W=(0,g.T)())}else f.isPlaying()&&this.countdownTimer.G&&(e=this.countdownTimer,e.G&&(e.V+=(0,g.T)()-e.W,e.G=!1,Si(e)));cGI(this,f)}onMutedAutoplayStarts(){this.Z.getVideoData().mutedAutoplay&&this.K&&g.h(this.Z.getRootNode(),"ytp-muted-autoplay",!0)}onVideoDataChange(f,e){const B=this.Gg!==e.videoId;f=!B&&f==="dataloaded";const n={isShortsModeEnabled:!!this.Z.isEmbedsShortsMode()};g.t$("embedsVideoDataDidChange", {clientPlaybackNonce:e.clientPlaybackNonce,isReload:f,runtimeEnabledFeatures:n});B&&(this.Gg=e.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.X&&(this.Z.sK("embeds"),e.isAd()||e.limitedPlaybackDurationInSeconds<5||g.bS(this.Z)||(e=Math.max((e.startSeconds+e.limitedPlaybackDurationInSeconds-5)*1E3,0),e=new g.VD(e,e+5E3,{id:"countdown timer",namespace:"embeds"}),this.Z.AI([e]))),this.Z.S().BS&&!this.Z.S().disableOrganicUi&&(E6(this),YNB(this)));this.Z.S().J&& this.J&&this.J.detach()}onAdStart(){Qn(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}onAdComplete(){Qn(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}onAdSkip(){Qn(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}onAdStateChange(f){f===2&&Qn(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")}});})(_yt_player);