Todos los componentes del NIVEL 2 ya están implementados correctamente: - ✅ Notification Bar (#49) - ✅ Navbar (#50) - ✅ Hero Section (#51) - ✅ Sidebar (#52) - ✅ Footer (#53) Solo se actualizó notification-bar.css para usar variables CSS. Próximo paso: NIVEL 3 (Refinamientos visuales) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
107 lines
32 KiB
Plaintext
107 lines
32 KiB
Plaintext
(function(g){var window=this;'use strict';var Mq=function(n){g.AM.call(this,n);var Z=this;this.N=null;var F=n.B(),y={target:F.Pr},l=["ytp-small-redirect"];if(F.T)l.push("no-link");else{var m=g.Kp(F);y.href=m;y["aria-label"]="Visit YouTube to search for more videos"}var a=new g.R({U:"a",s8:l,Z:y,D:[{U:"svg",Z:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{U:"path",Z:{d:"M0 0h24v24H0V0z",fill:"none"}},{U:"path",Z:{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"}}]}]});
|
|
a.oY(this.element);n.createClientVe(a.element,this,178053);this.G(a.element,"click",function(D){eJI(Z,D,a.element)});
|
|
g.S(this,a);F.T||F.disableOrganicUi||(this.N=new HZI(n),this.N.oY(this.element),g.S(this,this.N));this.G(n,"videodatachange",function(){Z.show()});
|
|
this.resize(this.api.Br().getPlayerSize())},$Z=function(n){g.R.call(this,{U:"div",
|
|
s8:["ytp-player-content","ytp-iv-player-content"],D:[{U:"div",K:"ytp-countdown-timer",D:[{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},D:[{U:"circle",K:"ytp-svg-countdown-timer-ring",Z:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{U:"circle",K:"ytp-svg-countdown-timer-background",Z:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
|
|
"stroke-width":"4",transform:"rotate(-90)"}}]},{U:"span",K:"ytp-countdown-timer-time",E8:"{{duration}}"}]}]});this.api=n;this.C=this.Vg("ytp-svg-countdown-timer-ring");this.N=null;this.V=this.T=0;this.X=!1;this.S=0;this.api.createClientVe(this.element,this,159628)},d9h=function(n){n.mutedAutoplay=!1;
|
|
n.endSeconds=NaN;n.limitedPlaybackDurationInSeconds=NaN;g.zX(n)},MTO=function(n){g.J0.call(this,n);
|
|
this.W=n;this.N=new g.IS(this);this.X=null;this.J=!1;this.countdownTimer=null;this.Pr=!1;BVh(this);g.S(this,this.N);this.load()},$PU=function(n){if(n.runs)for(var Z=0;Z<n.runs.length;Z++)if(n.runs[Z].navigationEndpoint)return!0;
|
|
return!1},nAO=function(n,Z){if(n.api.B().j("web_player_log_click_before_generating_ve_conversion_params"))for(var F=Math.floor(-n.scrollPosition/(n.T+n.X)),y=Math.min(F+n.columns,n.suggestionData.length)-1;F<=y;F++)n.api.logVisibility(n.N[F].element,Z)},BVh=function(n){var Z=n.W;
|
|
n=!!Z.isEmbedsShortsMode();g.w4(Z.getRootNode(),"ytp-shorts-mode",n);if(Z=Z.getVideoData())Z.bk=n},ZUU=function(n,Z){n=g.W5("A",n);
|
|
for(var F=0;F<n.length;F++)if(n[F].textContent===Z)return!0;return!1},Fqd=function(n,Z){n.Vg("ytp-error-content").style.paddingTop="0px";
|
|
var F=n.Vg("ytp-error-content"),y=F.clientHeight;n.N&&n.N.resize(Z,Z.height-y);F.style.paddingTop=(Z.height-(n.N?n.N.element.clientHeight:0))/2-y/2+"px"},n2=function(n){g.R.call(this,{U:"div",
|
|
K:"ytp-pause-overlay",Z:{tabIndex:"-1"}});var Z=this;this.api=n;this.T=new g.IS(this);this.fade=new g.J9(this,1E3,!1,100,function(){Z.N.X=!1},function(){Z.N.X=!0});
|
|
this.X=!1;this.expandButton=new g.R({U:"button",s8:["ytp-button","ytp-expand"],E8:this.api.isEmbedsShortsMode()?"More shorts":"More videos"});n.B().controlsType==="0"&&g.gi(n.getRootNode(),"ytp-pause-overlay-controls-hidden");g.S(this,this.T);g.S(this,this.fade);var F=new g.R({U:"button",s8:["ytp-button","ytp-collapse"],Z:{"aria-label":this.api.isEmbedsShortsMode()?"Hide more shorts":"Hide more videos"},D:[{U:"div",K:"ytp-collapse-icon",D:[g.QVp()]}]});g.S(this,F);F.oY(this.element);F.listen("click",
|
|
this.V,this);g.S(this,this.expandButton);this.expandButton.oY(this.element);this.expandButton.listen("click",this.S,this);this.N=new g.DO(n);g.S(this,this.N);this.N.X=!1;this.N.oY(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.T.G(this.api,"presentingplayerstatechange",this.g5);this.T.G(this.api,"videodatachange",this.g5);this.hide()},ymG=function(n,Z){n.X&&(!g.b(Z,4)&&!g.b(Z,2)||g.b(Z,1024)?n.X.hide():
|
|
n.X.show())},ldc=function(n){n.watermark||(n.watermark=new Zx(n.api),g.S(n,n.watermark),n.watermark.oY(n.bottomButtons,0),g.w4(n.watermark.element,"ytp-muted-autoplay-watermark",!0),n.N=new g.J9(n.watermark,0,!0,100),g.S(n,n.N))},mPm=function(n){n.N||(n.T=5E3,n.V=(0,g.tP)(),n.N=new g.oB(function(){sFd(n)},null),sFd(n))},adz=function(n){n.XJ&&n.N&&(n.N.show(),n.T.start())},HZI=function(n){g.R.call(this,{U:"div",
|
|
K:"ytp-related-on-error-overlay"});var Z=this;this.api=n;this.S=this.X=0;this.V=new g.IS(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.R({U:"h2",K:"ytp-related-title",E8:"{{title}}"});this.previous=new g.R({U:"button",s8:["ytp-button","ytp-previous"],Z:{"aria-label":"Show previous suggested videos"},D:[g.F$()]});this.L=new g.As(function(m){Z.suggestions.element.scrollLeft=-m});
|
|
this.T=this.scrollPosition=0;this.C=!0;this.next=new g.R({U:"button",s8:["ytp-button","ytp-next"],Z:{"aria-label":"Show more suggested videos"},D:[g.lS()]});g.S(this,this.V);n=n.B();this.J=n.V;g.S(this,this.title);this.title.oY(this.element);this.suggestions=new g.R({U:"div",K:"ytp-suggestions"});g.S(this,this.suggestions);this.suggestions.oY(this.element);g.S(this,this.previous);this.previous.oY(this.element);this.previous.listen("click",this.sz,this);g.S(this,this.L);for(var F={fZ:0};F.fZ<16;F=
|
|
{fZ:F.fZ},F.fZ++){var y=new g.R({U:"a",K:"ytp-suggestion-link",Z:{href:"{{link}}",target:n.Pr,"aria-label":"{{aria_label}}"},D:[{U:"div",K:"ytp-suggestion-image",D:[{U:"div",Z:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration",E8:"{{duration}}"}]},{U:"div",K:"ytp-suggestion-title",Z:{title:"{{hover_title}}"},E8:"{{title}}"},{U:"div",K:"ytp-suggestion-author",E8:"{{views_or_author}}"}]});g.S(this,y);y.oY(this.suggestions.element);var l=y.Vg("ytp-suggestion-link");g.a$(l,"transitionDelay",F.fZ/
|
|
20+"s");this.V.G(l,"click",function(m){return function(a){var D=m.fZ,p=Z.suggestionData[D],L=p.sessionData;g.R6(Z.api.B())&&Z.api.j("web_player_log_click_before_generating_ve_conversion_params")?(Z.api.logClick(Z.N[D].element),D=p.W7(),p={},g.ba(Z.api,p),D=g.pQ(D,p),g.sq(D,Z.api,a)):g.Xw(a,Z.api,Z.J,L||void 0)&&Z.api.S8(p.videoId,L,p.playlistId)}}(F));
|
|
this.N.push(y)}g.S(this,this.next);this.next.oY(this.element);this.next.listen("click",this.W5,this);this.V.G(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.Br().getPlayerSize());this.onVideoDataChange();this.show()},KqU=function(n){var Z=n.api.getVideoData(),F=n.api.B().ud&&!g.b(n.state,2)&&!n.api.getVideoData(1).vV;
|
|
Z.mutedAutoplay||n.yP(F);n.api.logVisibility(n.element,F)},DPz=function(n){n.next.element.style.bottom=n.S+"px";
|
|
n.previous.element.style.bottom=n.S+"px";var Z=n.scrollPosition,F=n.containerWidth-n.suggestionData.length*(n.T+n.X);g.w4(n.element,"ytp-scroll-min",Z>=0);g.w4(n.element,"ytp-scroll-max",Z<=F)},p6d=function(n,Z){var F=n.api.B(),y;
|
|
Z.reason&&($PU(Z.reason)?y=g.xi(Z.reason):y=g.AC(g.sg(Z.reason)),n.setContent(y,"content"));var l;Z.subreason&&($PU(Z.subreason)?l=g.xi(Z.subreason):l=g.AC(g.sg(Z.subreason)),n.setContent(l,"subreason"));if(Z.proceedButton&&Z.proceedButton.buttonRenderer){y=n.Vg("ytp-error-content-wrap-subreason");Z=Z.proceedButton.buttonRenderer;var m=g.FI("A");if(Z.text&&Z.text.simpleText&&(l=Z.text.simpleText,m.textContent=l,!ZUU(y,l)&&(!F.T||F.embedsErrorLinks))){var a;F=(a=g.e(Z==null?void 0:Z.navigationEndpoint,
|
|
g.MY))==null?void 0:a.url;var D;a=(D=g.e(Z==null?void 0:Z.navigationEndpoint,g.MY))==null?void 0:D.target;F&&(m.setAttribute("href",F),n.api.createClientVe(m,n,178424),n.G(m,"click",function(p){eJI(n,p,m)}));
|
|
a&&m.setAttribute("target",a);D=g.FI("DIV");D.appendChild(m);y.appendChild(D)}}},FQ=function(n,Z){var F=n.W.B();
|
|
n={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:n.W.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":n.W.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.XMP(n.W.B().loaderUrl),eventType:Z,youtubeHost:g.g1(n.W.B().rW)||""};n.embeddedPlayerMode=F.zx;g.xt("embedsAdEvent",n)},Lqv=function(){return{U:"svg",
|
|
Z:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},D:[{U:"path",Tu:!0,K:"ytp-svg-fill",Z:{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"}}]}},
|
|
q0c=function(n,Z){g.R.call(this,{U:"a",
|
|
s8:["ytp-impression-link"],Z:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},D:[{U:"div",K:"ytp-impression-link-content",Z:{"aria-hidden":"true"},D:[{U:"div",K:"ytp-impression-link-text",E8:"Watch on"},{U:"div",K:"ytp-impression-link-logo",E8:"{{logoSvg}}"}]}]});this.api=n;this.N=Z;this.updateValue("target",n.B().Pr);this.G(n,"videodatachange",this.onVideoDataChange);this.G(this.api,"presentingplayerstatechange",this.Rh);this.G(this.api,"videoplayerreset",this.tI);this.G(this.element,
|
|
"click",this.onClick);this.onVideoDataChange();this.tI()},sFd=function(n){if(!n.X){var Z=Math.min((0,g.tP)()-n.V,n.T);
|
|
var F=n.T-Z;Z=n.T===0?0:Math.max(F/n.T,0);F=Math.round(F/1E3);n.C.setAttribute("stroke-dashoffset",""+-211*(Z+1));n.updateValue("duration",F);Z<=0&&n.N?n.stopTimer():n.N&&n.N.start()}},w6h=function(n){var Z=g.e$7(n.W);
|
|
Z!==n.Pr&&(n.Pr=Z,n.S&&(n.S.dispose(),n.S=null),n.T&&(n.T.dispose(),n.T=null),n.V&&(n.V.dispose(),n.V=null),n.X&&(n.X.stop(),n.X.dispose(),n.X=null),Z&&(Z=g.PZ(n.W),n.W.isEmbedsShortsMode()&&(n.V=new g.R({U:"div",K:"ytp-pause-overlay-backdrop",Z:{tabIndex:"-1"}}),g.S(n,n.V),g.y7(n.W,n.V.element,4),n.X=new g.J9(n.V,1E3,!1,100),g.S(n,n.X),n.V.hide()),n.S=new g.R({U:"div",K:"ytp-pause-overlay-container",Z:{tabIndex:"-1"}}),g.S(n,n.S),n.T=new n2(n.W,Z),g.S(n,n.T),n.T.oY(n.S.element),g.y7(n.W,n.S.element,
|
|
4),ymG(n,n.W.getPlayerStateObject())))},TkG=function(n){for(var Z=0;Z<n.suggestionData.length;Z++){var F=n.suggestionData[Z],y=n.N[Z],l=F.shortViewCount?F.shortViewCount:F.author,m=F.W7(),a=n.api.B();
|
|
if(g.R6(a)&&!a.j("web_player_log_click_before_generating_ve_conversion_params")){var D={};g.dc(n.api,"addEmbedsConversionTrackingParams",[D]);m=g.pQ(m,D)}y.element.style.display="";D=y.Vg("ytp-suggestion-title");g.blT.test(F.title)?D.dir="rtl":g.Lvj.test(F.title)&&(D.dir="ltr");D=y.Vg("ytp-suggestion-author");g.blT.test(l)?D.dir="rtl":g.Lvj.test(l)&&(D.dir="ltr");y.update({views_or_author:l,duration:F.isLivePlayback?"Live":F.lengthSeconds?g.ve(F.lengthSeconds):"",link:m,hover_title:F.title,title:F.title,
|
|
aria_label:F.ariaLabel||null,is_live:F.isLivePlayback});l=F.Sn();y.Vg("ytp-suggestion-image").style.backgroundImage=l?"url("+l+")":"";a.j("web_player_log_click_before_generating_ve_conversion_params")&&(n.api.createServerVe(y.element,y),(F=(F=F.sessionData)&&F.itct)&&n.api.setTrackingParams(y.element,F))}for(;Z<n.N.length;Z++)n.N[Z].element.style.display="none";DPz(n)},eJI=function(n,Z,F){Z.preventDefault();
|
|
n.api.logClick(F);Z=F.getAttribute("href");F={};g.dc(n.api,"addEmbedsConversionTrackingParams",[F]);Z=g.Zc(F)?Z:g.pQ(Z,F);g.SP(window,Z)},yI=function(n){g.R.call(this,{U:"div",
|
|
K:"ytp-muted-autoplay-endscreen-overlay",D:[{U:"div",K:"ytp-muted-autoplay-end-panel",D:[{U:"button",s8:["ytp-muted-autoplay-end-text","ytp-button"],E8:"{{text}}"}]}]});this.api=n;this.V=this.Vg("ytp-muted-autoplay-end-panel");this.X=!1;this.api.createClientVe(this.element,this,52428);this.G(this.api,"presentingplayerstatechange",this.T);this.G(n,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()},oAh=function(n){var Z={};
|
|
g.dc(n.api,"addEmbedsConversionTrackingParams",[Z]);n=n.api.getVideoUrl();return n=g.pQ(n,Z)},PB1=function(n){g.R.call(this,{U:"div",
|
|
K:"ytp-muted-autoplay-overlay",D:[{U:"div",K:"ytp-muted-autoplay-bottom-buttons",D:[{U:"button",s8:["ytp-muted-autoplay-equalizer","ytp-button"],Z:{"aria-label":"Muted Playback Indicator"},D:[{U:"div",s8:["ytp-muted-autoplay-equalizer-icon"],D:[{U:"svg",Z:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},D:[{U:"g",Z:{fill:"#fff"},D:[{U:"rect",K:"ytp-equalizer-bar-left",Z:{height:"9",width:"4",x:"1",y:"7"}},{U:"rect",K:"ytp-equalizer-bar-middle",Z:{height:"14",width:"4",x:"6",y:"2"}},
|
|
{U:"rect",K:"ytp-equalizer-bar-right",Z:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var Z=this;this.api=n;this.bottomButtons=this.Vg("ytp-muted-autoplay-bottom-buttons");this.T=new g.e7(this.eui,4E3,this);this.X=!1;n.createClientVe(this.element,this,39306);this.G(n,"presentingplayerstatechange",this.k$);this.G(n,"onMutedAutoplayStarts",function(){ldc(Z);Z.k$();adz(Z);Z.X=!1});
|
|
this.G(n,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.G(n,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();n.isMutedByEmbedsMutedAutoplay()&&(ldc(this),this.k$(),adz(this));g.S(this,this.T)},Zx=function(n){var Z=n.B();
|
|
g.R.call(this,{U:"a",s8:["ytp-watermark","yt-uix-sessionlink"],Z:{target:Z.Pr,href:"{{url}}","aria-label":g.xq("Watch on $WEBSITE",{WEBSITE:g.bc(Z)}),"data-sessionlink":"feature=player-watermark"},E8:"{{logoSvg}}"});this.api=n;this.N=null;this.X=!1;this.state=n.getPlayerStateObject();this.G(n,"videodatachange",this.onVideoDataChange);this.G(n,"presentingplayerstatechange",this.onStateChange);this.G(n,"appresize",this.Ln);this.onVideoDataChange();this.rM(this.state);this.Ln(n.Br().getPlayerSize())},
|
|
JmO=function(){return{U:"svg",
|
|
Z:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},D:[{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{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"}},{U:"path",Z:{"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"}}]}},lq=function(n){g.R.call(this,{U:"div",
|
|
s8:["ytp-mobile-a11y-hidden-seek-button"],D:[{U:"button",s8:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],Z:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{U:"button",s8:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],Z:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=n;this.N=this.Vg("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.Vg("ytp-mobile-a11y-hidden-seek-button-forward");this.api.createClientVe(this.N,this,
|
|
141902);this.api.createClientVe(this.forwardButton,this,141903);this.G(this.api,"presentingplayerstatechange",this.Rh);this.G(this.N,"click",this.X);this.G(this.forwardButton,"click",this.T);this.Rh()};
|
|
g.d(HZI,g.R);g.Q=HZI.prototype;g.Q.hide=function(){this.C=!0;g.R.prototype.hide.call(this);nAO(this,!1)};
|
|
g.Q.show=function(){this.C=!1;g.R.prototype.show.call(this);nAO(this,!0)};
|
|
g.Q.isHidden=function(){return this.C};
|
|
g.Q.W5=function(){this.scrollTo(this.scrollPosition-this.containerWidth)};
|
|
g.Q.sz=function(){this.scrollTo(this.scrollPosition+this.containerWidth)};
|
|
g.Q.resize=function(n,Z){var F=this.api.B(),y=16/9,l=n.width>=650,m=n.width<480||n.height<290,a=Math.min(this.suggestionData.length,this.N.length);if(Math.min(n.width,n.height)<=150||a===0||!F.N1)this.hide();else{var D;if(l){var p=D=28;this.X=16}else this.X=p=D=8;if(m){var L=6;l=14;var q=12;m=24;F=12}else L=8,l=18,q=16,m=36,F=16;n=n.width-(48+D+p);D=Math.ceil(n/150);D=Math.min(3,D);p=n/D-this.X;var w=Math.floor(p/y);Z&&w+100>Z&&p>50&&(w=Math.max(Z,50/y),D=Math.ceil(n/(y*(w-100)+this.X)),p=n/D-this.X,
|
|
w=Math.floor(p/y));p<50||g.ce(this.api)?this.hide():this.show();for(Z=0;Z<a;Z++){y=this.N[Z];var T=y.Vg("ytp-suggestion-image");T.style.width=p+"px";T.style.height=w+"px";y.Vg("ytp-suggestion-title").style.width=p+"px";y.Vg("ytp-suggestion-author").style.width=p+"px";y=y.Vg("ytp-suggestion-duration");y.style.display=y&&p<100?"none":""}a=l+L+q+4;this.S=a+F+(w-m)/2;this.suggestions.element.style.height=w+a+"px";this.T=p;this.containerWidth=n;this.columns=D;this.scrollPosition=0;this.suggestions.element.scrollLeft=
|
|
-0;DPz(this)}};
|
|
g.Q.onVideoDataChange=function(){var n=this.api.getVideoData(),Z=this.api.B();this.J=n.vV?!1:Z.V;n.suggestions?this.suggestionData=g.I$(n.suggestions,function(F){return F&&!F.playlistId}):this.suggestionData.length=0;
|
|
TkG(this);n.vV?this.title.update({title:g.xq("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:n.author})}):this.title.update({title:"More videos on YouTube"})};
|
|
g.Q.scrollTo=function(n){n=g.mk(n,this.containerWidth-this.suggestionData.length*(this.T+this.X),0);this.L.start(this.scrollPosition,n,1E3);this.scrollPosition=n;DPz(this);nAO(this,!0)};g.d(Mq,g.AM);Mq.prototype.show=function(){g.AM.prototype.show.call(this);Fqd(this,this.api.Br().getPlayerSize())};
|
|
Mq.prototype.resize=function(n){g.AM.prototype.resize.call(this,n);this.N&&(Fqd(this,n),g.w4(this.element,"related-on-error-overlay-visible",!this.N.isHidden()))};
|
|
Mq.prototype.X=function(n){g.AM.prototype.X.call(this,n);var Z=this.api.getVideoData();if(Z.jk||Z.playerErrorMessageRenderer)(n=Z.jk)?p6d(this,n):Z.playerErrorMessageRenderer&&p6d(this,Z.playerErrorMessageRenderer);else{var F;n.pO&&(Z.Qe?$PU(Z.Qe)?F=g.xi(Z.Qe):F=g.AC(g.sg(Z.Qe)):F=g.AC(n.pO),this.setContent(F,"subreason"))}};g.d(q0c,g.R);g.Q=q0c.prototype;g.Q.onVideoDataChange=function(){var n=this.api.getVideoData(),Z=Lqv(),F=96714;g.tG(n)?(Z=JmO(),F=216165,g.gi(this.element,"ytp-music-impression-link")):g.hw(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",Z);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,F)};
|
|
g.Q.Rh=function(){this.api.getPlayerStateObject().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))};
|
|
g.Q.tI=function(){var n=this.api.getVideoData(),Z=this.api.B(),F=this.api.getVideoData().vV,y=!Z.N1,l=this.N.gJ(),m=Z.T;Z.ud||l||F||y||m||this.api.isEmbedsShortsMode()||!n.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(n=oAh(this),this.updateValue("url",n),this.show())};
|
|
g.Q.onClick=function(n){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Z=oAh(this);g.sq(Z,this.api,n);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
|
|
g.Q.show=function(){this.api.getPlayerStateObject().isCued()&&(g.R.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.d(lq,g.R);lq.prototype.Rh=function(){var n=this.api.getPlayerStateObject();!this.api.aH()||g.b(n,2)&&g.s3(this.api)||g.b(n,64)?(this.api.logVisibility(this.N,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.N,!0),this.api.logVisibility(this.forwardButton,!0))};
|
|
lq.prototype.X=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.N)};
|
|
lq.prototype.T=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.d(yI,g.R);
|
|
yI.prototype.T=function(){var n=this.api.getPlayerStateObject(),Z=this.api.getVideoData();g.w4(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!Z.mutedAutoplay||Z.limitedPlaybackDurationInSeconds===0&&Z.endSeconds===0&&Z.mutedAutoplayDurationMode===2||(g.b(n,2)&&!this.XJ?(this.show(),this.N||(this.N=new g.E1(this.api),g.S(this,this.N),this.N.oY(this.V,0),this.N.show()),n=this.api.getVideoData(),this.updateValue("text",n.ij),g.w4(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,
|
|
this.XJ),this.api.Qm("onMutedAutoplayEnds")):this.hide())};
|
|
yI.prototype.onClick=function(){if(!this.X){this.N&&(this.N.IY(),this.N=null);g.w4(this.api.getRootNode(),"ytp-muted-autoplay",!1);var n=this.api.getVideoData(),Z=this.api.getCurrentTime();d9h(n);this.api.loadVideoById(n.videoId,Z);this.api.wK();this.api.logClick(this.element);this.hide();this.X=!0}};
|
|
yI.prototype.onMutedAutoplayStarts=function(){this.X=!1;this.N&&(this.N.IY(),this.N=null)};g.d(Zx,g.R);g.Q=Zx.prototype;g.Q.onStateChange=function(n){this.rM(n.state)};
|
|
g.Q.rM=function(n){this.state!==n&&(this.state=n);KqU(this)};
|
|
g.Q.onVideoDataChange=function(){var n=this.api.B();n.T&&g.gi(this.element,"ytp-no-hover");var Z=this.api.getVideoData();Z.videoId&&!n.T?(n=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",n),this.N||(this.N=this.listen("click",this.onClick))):this.N&&(this.updateValue("url",null),this.o0(this.N),this.N=null);n=Lqv();var F=76758;g.tG(Z)&&(n=JmO(),F=216164);this.updateValue("logoSvg",n);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,
|
|
F);KqU(this)};
|
|
g.Q.onClick=function(n){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Z=this.api.getVideoUrl(!g.OC(n),!1,!0,!0);if(this.api.j("web_player_log_click_before_generating_ve_conversion_params")){var F={};g.dc(this.api,"addEmbedsConversionTrackingParams",[F]);Z=g.pQ(Z,F)}g.sq(Z,this.api,n);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
|
|
g.Q.Ln=function(n){if((n=n.width<480)&&!this.X||!n&&this.X){var Z=new g.R(Lqv()),F=this.Vg("ytp-watermark");g.w4(F,"ytp-watermark-small",n);g.Ov(F);Z.oY(F);this.X=n}};g.d(PB1,g.R);g.Q=PB1.prototype;g.Q.k$=function(){var n=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||g.b(n,2)?this.hide():this.XJ||(g.R.prototype.show.call(this),this.api.logVisibility(this.element,this.XJ))};
|
|
g.Q.eui=function(){this.N&&this.N.hide()};
|
|
g.Q.onAutoplayBlocked=function(){this.hide();d9h(this.api.getVideoData())};
|
|
g.Q.onClick=function(){if(!this.X){g.w4(this.api.getRootNode(),"ytp-muted-autoplay",!1);var n=this.api.getVideoData(),Z=this.api.getCurrentTime();d9h(n);this.api.loadVideoById(n.videoId,Z);this.api.wK();this.api.logClick(this.element);this.api.Qm("onMutedAutoplayEnds");this.X=!0}};
|
|
g.Q.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.IY(),this.watermark=null)};g.d(n2,g.R);n2.prototype.hide=function(){g.hw(this.api.getRootNode(),"ytp-expand-pause-overlay");g.R.prototype.hide.call(this)};
|
|
n2.prototype.V=function(){this.X=!0;g.hw(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()};
|
|
n2.prototype.S=function(){this.X=!1;g.gi(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()};
|
|
n2.prototype.g5=function(){var n=this.api.getPlayerStateObject();g.b(n,1)||g.b(n,16)||g.b(n,32)||(!g.b(n,4)||g.b(n,2)||g.b(n,1024)?(this.X||this.api.logVisibility(this.element,!1),this.fade.hide()):this.N.hasSuggestions()&&(this.X||(g.gi(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.a8(this.N),this.N.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))};g.d($Z,g.R);$Z.prototype.show=function(){g.R.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
|
|
$Z.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null,this.X=!1)};
|
|
$Z.prototype.IY=function(){this.stopTimer();g.R.prototype.IY.call(this)};g.d(MTO,g.J0);g.Q=MTO.prototype;g.Q.D1=function(){return!1};
|
|
g.Q.create=function(){var n=this.W.B(),Z=g.PZ(this.W),F,y=(F=this.W.getVideoData())==null?void 0:F.clientPlaybackNonce;y&&g.HS({clientPlaybackNonce:y});n.yg&&!n.disableOrganicUi&&w6h(this);var l;(l=n.getWebPlayerContextConfig())!=null&&l.embedsEnableEmc3ds||(this.L=new PB1(this.W),g.S(this,this.L),g.y7(this.W,this.L.element,4),this.Tx=new yI(this.W),g.S(this,this.Tx),g.y7(this.W,this.Tx.element,4));n.ud&&(this.watermark=new Zx(this.W),g.S(this,this.watermark),g.y7(this.W,this.watermark.element,8));
|
|
Z&&!n.disableOrganicUi&&(this.C=new q0c(this.W,Z),g.S(this,this.C),g.y7(this.W,this.C.element,8),this.W.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.C.hide()));n.X&&!n.disableOrganicUi&&(this.Ns=new lq(this.W),g.S(this,this.Ns),g.y7(this.W,this.Ns.element,4));this.N.G(this.W,"appresize",this.Ln);this.N.G(this.W,"presentingplayerstatechange",this.Rh);this.N.G(this.W,"videodatachange",this.onVideoDataChange);this.N.G(this.W,"videoplayerreset",this.onReset);this.N.G(this.W,"onMutedAutoplayStarts",
|
|
this.onMutedAutoplayStarts);this.N.G(this.W,"onAdStart",this.onAdStart);this.N.G(this.W,"onAdComplete",this.onAdComplete);this.N.G(this.W,"onAdSkip",this.onAdSkip);this.N.G(this.W,"onAdStateChange",this.onAdStateChange);if(this.J=g.DB(g.XO(n)))this.countdownTimer=new $Z(this.W),g.S(this,this.countdownTimer),g.y7(this.W,this.countdownTimer.element,4),this.countdownTimer.hide(),this.N.G(this.W,g.HP("embeds"),this.onCueRangeEnter),this.N.G(this.W,g.dn("embeds"),this.onCueRangeExit);this.QP(this.W.getPlayerStateObject());
|
|
var m,a;((m=this.W.B().getWebPlayerContextConfig())==null?0:(a=m.embedsHostFlags)==null?0:a.allowOverridingVisitorDataPlayerVars)&&(n=g.BT("IDENTITY_MEMENTO"))&&this.W.SV("onMementoChange",n)};
|
|
g.Q.onCueRangeEnter=function(n){n.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),mPm(this.countdownTimer))};
|
|
g.Q.onCueRangeExit=function(n){n.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())};
|
|
g.Q.Ln=function(){var n=this.W.Br().getPlayerSize();this.iH&&this.iH.resize(n)};
|
|
g.Q.onReset=function(){BVh(this)};
|
|
g.Q.Rh=function(n){this.QP(n.state)};
|
|
g.Q.QP=function(n){g.b(n,128)?(this.iH||(this.iH=new Mq(this.W),g.S(this,this.iH),g.y7(this.W,this.iH.element,4)),this.iH.X(n.wB),this.iH.show(),g.gi(this.W.getRootNode(),"ytp-embed-error")):this.iH&&(this.iH.dispose(),this.iH=null,g.hw(this.W.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.N)if(g.b(n,64))this.countdownTimer.hide(),this.countdownTimer.stopTimer();else if(n.isPaused()){var Z=this.countdownTimer;Z.X||(Z.X=!0,Z.S=(0,g.tP)())}else n.isPlaying()&&this.countdownTimer.X&&
|
|
(Z=this.countdownTimer,Z.X&&(Z.V+=(0,g.tP)()-Z.S,Z.X=!1,sFd(Z)));ymG(this,n)};
|
|
g.Q.onMutedAutoplayStarts=function(){this.W.getVideoData().mutedAutoplay&&this.L&&g.w4(this.W.getRootNode(),"ytp-muted-autoplay",!0)};
|
|
g.Q.onVideoDataChange=function(n,Z){var F=this.vP!==Z.videoId;n=!F&&n==="dataloaded";var y={isShortsModeEnabled:!!this.W.isEmbedsShortsMode()};g.xt("embedsVideoDataDidChange",{clientPlaybackNonce:Z.clientPlaybackNonce,isReload:n,runtimeEnabledFeatures:y});F&&(this.vP=Z.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.J&&(this.W.V9("embeds"),Z.isAd()||Z.limitedPlaybackDurationInSeconds<5||g.ce(this.W)||(Z=Math.max((Z.startSeconds+Z.limitedPlaybackDurationInSeconds-
|
|
5)*1E3,0),Z=new g.wg(Z,Z+5E3,{id:"countdown timer",namespace:"embeds"}),this.W.y9([Z]))),this.W.B().yg&&!this.W.B().disableOrganicUi&&(BVh(this),w6h(this)));this.W.B().T&&this.T&&this.T.detach()};
|
|
g.Q.onAdStart=function(){FQ(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
|
|
g.Q.onAdComplete=function(){FQ(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
|
|
g.Q.onAdSkip=function(){FQ(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
|
|
g.Q.onAdStateChange=function(n){n===2&&FQ(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.hQ("embed",MTO);})(_yt_player);
|