(function(g){var window=this;'use strict';var bwv=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{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"}}]}}, HwL=function(Z){g.k.call(this,{K:"div", T:"ytp-related-on-error-overlay"});var I=this;this.api=Z;this.B=this.D=0;this.N=new g.De(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.k({K:"h2",T:"ytp-related-title",Z1:"{{title}}"});this.previous=new g.k({K:"button",zm:["ytp-button","ytp-previous"],J:{"aria-label":"Show previous suggested videos"},G:[g.eY()]});this.X=new g.tK(function(f){I.suggestions.element.scrollLeft=-f}); this.Z=this.scrollPosition=0;this.j=!0;this.next=new g.k({K:"button",zm:["ytp-button","ytp-next"],J:{"aria-label":"Show more suggested videos"},G:[g.i1()]});g.z(this,this.N);Z=Z.C();this.V=Z.N;g.z(this,this.title);this.title.i5(this.element);this.suggestions=new g.k({K:"div",T:"ytp-suggestions"});g.z(this,this.suggestions);this.suggestions.i5(this.element);g.z(this,this.previous);this.previous.i5(this.element);this.previous.listen("click",this.QU,this);g.z(this,this.X);for(var d={Th:0};d.Th<16;d= {Th:d.Th},d.Th++){var Y=new g.k({K:"a",T:"ytp-suggestion-link",J:{href:"{{link}}",target:Z.In,"aria-label":"{{aria_label}}"},G:[{K:"div",T:"ytp-suggestion-image",G:[{K:"div",J:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration",Z1:"{{duration}}"}]},{K:"div",T:"ytp-suggestion-title",J:{title:"{{hover_title}}"},Z1:"{{title}}"},{K:"div",T:"ytp-suggestion-author",Z1:"{{views_or_author}}"}]});g.z(this,Y);Y.i5(this.suggestions.element);var T=Y.KS("ytp-suggestion-link");g.K2(T,"transitionDelay",d.Th/ 20+"s");this.N.W(T,"click",function(f){return function(P){var O=f.Th,a=I.suggestionData[O],W=a.sessionData;g.Dh(I.api.C())&&I.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(I.api.logClick(I.L[O].element),O=a.EM(),a={},g.n6(I.api,a),O=g.gq(O,a),g.$n(O,I.api,P)):g.D_(P,I.api,I.V,W||void 0)&&I.api.LW(a.videoId,W,a.playlistId)}}(d)); this.L.push(Y)}g.z(this,this.next);this.next.i5(this.element);this.next.listen("click",this.zI,this);this.N.W(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.cj().getPlayerSize());this.onVideoDataChange();this.show()},cAt=function(Z){if(!Z.D){var I=Math.min((0,g.o8)()-Z.N,Z.Z); var d=Z.Z-I;I=Z.Z===0?0:Math.max(d/Z.Z,0);d=Math.round(d/1E3);Z.j.setAttribute("stroke-dashoffset",""+-211*(I+1));Z.updateValue("duration",d);I<=0&&Z.L?Z.stopTimer():Z.L&&Z.L.start()}},MU3=function(Z){var I=g.jjL(Z.S); I!==Z.In&&(Z.In=I,Z.B&&(Z.B.dispose(),Z.B=null),Z.Z&&(Z.Z.dispose(),Z.Z=null),Z.N&&(Z.N.dispose(),Z.N=null),Z.D&&(Z.D.stop(),Z.D.dispose(),Z.D=null),I&&(I=g.k6(Z.S),Z.S.isEmbedsShortsMode()&&(Z.N=new g.k({K:"div",T:"ytp-pause-overlay-backdrop",J:{tabIndex:"-1"}}),g.z(Z,Z.N),g.iS(Z.S,Z.N.element,4),Z.D=new g.nt(Z.N,1E3,!1,100),g.z(Z,Z.D),Z.N.hide()),Z.B=new g.k({K:"div",T:"ytp-pause-overlay-container",J:{tabIndex:"-1"}}),g.z(Z,Z.B),Z.Z=new ds(Z.S,I),g.z(Z,Z.Z),Z.Z.i5(Z.B.element),g.iS(Z.S,Z.B.element, 4),gpV(Z,Z.S.getPlayerStateObject())))},rAL=function(Z){Z.watermark||(Z.watermark=new os(Z.api),g.z(Z,Z.watermark),Z.watermark.i5(Z.bottomButtons,0),g.zL(Z.watermark.element,"ytp-muted-autoplay-watermark",!0),Z.L=new g.nt(Z.watermark,0,!0,100),g.z(Z,Z.L))},Z2V=function(Z){var I=Z.S; Z=!!I.isEmbedsShortsMode();g.zL(I.getRootNode(),"ytp-shorts-mode",Z);if(I=I.getVideoData())I.A8=Z},Ibi=function(Z,I){g.k.call(this,{K:"a", zm:["ytp-impression-link"],J:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},G:[{K:"div",T:"ytp-impression-link-content",J:{"aria-hidden":"true"},G:[{K:"div",T:"ytp-impression-link-text",Z1:"Watch on"},{K:"div",T:"ytp-impression-link-logo",Z1:"{{logoSvg}}"}]}]});this.api=Z;this.L=I;this.updateValue("target",Z.C().In);this.W(Z,"videodatachange",this.onVideoDataChange);this.W(this.api,"presentingplayerstatechange",this.nw);this.W(this.api,"videoplayerreset",this.XO);this.W(this.element, "click",this.onClick);this.onVideoDataChange();this.XO()},dit=function(Z){g.NI.call(this,Z); this.S=Z;this.L=new g.De(this);this.D=null;this.V=!1;this.countdownTimer=null;this.In=!1;Z2V(this);g.z(this,this.L);this.load()},oti=function(Z){var I=Z.api.getVideoData(),d=Z.api.C().o4&&!g.b(Z.state,2)&&!Z.api.getVideoData(1).IN; I.mutedAutoplay||Z.o0(d);Z.api.logVisibility(Z.element,d)},Yq=function(Z){g.k.call(this,{K:"div", zm:["ytp-player-content","ytp-iv-player-content"],G:[{K:"div",T:"ytp-countdown-timer",G:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},G:[{K:"circle",T:"ytp-svg-countdown-timer-ring",J:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{K:"circle",T:"ytp-svg-countdown-timer-background",J:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3", "stroke-width":"4",transform:"rotate(-90)"}}]},{K:"span",T:"ytp-countdown-timer-time",Z1:"{{duration}}"}]}]});this.api=Z;this.j=this.KS("ytp-svg-countdown-timer-ring");this.L=null;this.N=this.Z=0;this.D=!1;this.B=0;this.api.createClientVe(this.element,this,159628)},Ytu=function(Z,I){Z=g.Xr("A",Z); for(var d=0;d=0);g.zL(Z.element,"ytp-scroll-max",I<=d)},i20=function(Z){var I={}; g.WR(Z.api,"addEmbedsConversionTrackingParams",[I]);Z=Z.api.getVideoUrl();return Z=g.gq(Z,I)},fbV=function(Z,I){if(Z.api.C().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var d=Math.floor(-Z.scrollPosition/(Z.Z+Z.D)),Y=Math.min(d+Z.columns,Z.suggestionData.length)-1;d<=Y;d++)Z.api.logVisibility(Z.L[d].element,I)},O2i=function(Z,I){var d=Z.api.C(),Y; I.reason&&(Pzg(I.reason)?Y=g.Cx(I.reason):Y=g.ut(g.Q1(I.reason)),Z.setContent(Y,"content"));var T;I.subreason&&(Pzg(I.subreason)?T=g.Cx(I.subreason):T=g.ut(g.Q1(I.subreason)),Z.setContent(T,"subreason"));if(I.proceedButton&&I.proceedButton.buttonRenderer){Y=Z.KS("ytp-error-content-wrap-subreason");I=I.proceedButton.buttonRenderer;var f=g.vX("A");if(I.text&&I.text.simpleText&&(T=I.text.simpleText,f.textContent=T,!Ytu(Y,T)&&(!d.Z||d.embedsErrorLinks))){var P;d=(P=g.y(I==null?void 0:I.navigationEndpoint, g.M0))==null?void 0:P.url;var O;P=(O=g.y(I==null?void 0:I.navigationEndpoint,g.M0))==null?void 0:O.target;d&&(f.setAttribute("href",d),Z.api.createClientVe(f,Z,178424),Z.W(f,"click",function(a){Qw3(Z,a,f)})); P&&f.setAttribute("target",P);O=g.vX("DIV");O.appendChild(f);Y.appendChild(O)}}},Pzg=function(Z){if(Z.runs)for(var I=0;I=650,f=Z.width<480||Z.height<290,P=Math.min(this.suggestionData.length,this.L.length);if(Math.min(Z.width,Z.height)<=150||P===0||!d.Tv)this.hide();else{var O;if(T){var a=O=28;this.D=16}else this.D=a=O=8;if(f){var W=6;T=14;var e=12;f=24;d=12}else W=8,T=18,e=16,f=36,d=16;Z=Z.width-(48+O+a);O=Math.ceil(Z/150);O=Math.min(3,O);a=Z/O-this.D;var B=Math.floor(a/Y);I&&B+100>I&&a>50&&(B=Math.max(I,50/Y),O=Math.ceil(Z/(Y*(B-100)+this.D)),a=Z/O-this.D, B=Math.floor(a/Y));a<50||g.e0(this.api)?this.hide():this.show();for(I=0;I