(function(g){var window=this;var Gta=function(a,b){var c=(b-a.o)/(a.u-a.o);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){f=g.Un(a,c);var l=(g.Un(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(k=0;1E-6<Math.abs(f-b)&&8>k;k++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=g.Un(a,c);return c},Hta=function(){return g.X?{D:"div",
X:["ytp-icon","ytp-icon-watermark"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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"}}]}},
Ita=function(){return g.X?{D:"div",
X:["ytp-icon","ytp-icon-youtube-logo-redirect"]}:{D:"svg",M:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",M:{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"}}]}},M4=function(a){g.A.call(this);
this.B=a;this.A=new g.Tn(0,0,.4,0,.2,1,1,1);this.u=new g.xn(this.w,window,this);g.C(this,this.u)},N4=function(a){g.V.call(this,{D:"div",
I:"ytp-related-on-error-overlay"});this.S=this.A=0;this.u=a;this.V=new g.O(this);g.C(this,this.V);a=a.N();this.C=[];this.w=[];this.F=0;this.ca=a.u;this.O=new g.V({D:"h2",I:"ytp-related-title",W:"{{title}}"});g.C(this,this.O);this.O.ba(this.element);this.G=new g.V({D:"div",I:"ytp-suggestions"});g.C(this,this.G);this.G.ba(this.element);this.J=new g.V({D:"button",X:["ytp-button","ytp-previous"],M:{"aria-label":"Show previous suggested videos"},K:[g.FM()]});g.C(this,this.J);this.J.ba(this.element);this.J.ia("click",
this.TH,this);this.da=new M4((0,g.x)(this.Zy,this));g.C(this,this.da);this.Z=this.B=0;this.U=!0;for(var b=0;16>b;b++){var c=new g.V({D:"a",I:"ytp-suggestion-link",M:{href:"{{link}}",target:a.A,"aria-label":"{{aria_label}}"},K:[{D:"div",I:"ytp-suggestion-image",K:[{D:"div",M:{"data-is-live":"{{is_live}}"},I:"ytp-suggestion-duration",W:"{{duration}}"}]},{D:"div",I:"ytp-suggestion-title",M:{title:"{{hover_title}}"},W:"{{title}}"},{D:"div",I:"ytp-suggestion-author",W:"{{views_or_author}}"}]});g.C(this,
c);c.ba(this.G.element);var d=c.o["ytp-suggestion-link"];g.vh(d,"transitionDelay",b/20+"s");this.V.L(d,"click",g.Sa(this.UH,b));this.C.push(c)}this.H=new g.V({D:"button",X:["ytp-button","ytp-next"],M:{"aria-label":"Show more suggested videos"},K:[g.GM()]});g.C(this,this.H);this.H.ba(this.element);this.H.ia("click",this.SH,this);this.V.L(this.u,"videodatachange",this.Yy);Jta(this,g.wL(this.u).getPlayerSize());this.Yy();this.show()},Jta=function(a,b,c){var d=a.u.N(),e=16/9,f=650<=b.width,k=480>b.width||
290>b.height,l=Math.min(a.w.length,a.C.length);
if(150>=Math.min(b.width,b.height)||0==l||!d.Ha)a.hide();else{var m;if(f){var n=m=28;a.A=16}else n=m=8,a.A=8;if(k){var p=6;f=14;var t=12;k=24;d=12}else p=8,f=18,t=16,k=36,d=16;b=b.width-(48+m+n);m=Math.ceil(b/150);m=Math.min(3,m);m=b/m-a.A;n=Math.floor(m/e);c&&n+100>c&&50<m&&(n=Math.max(c,50/e),m=Math.ceil(b/(e*(n-100)+a.A)),m=b/m-a.A,n=Math.floor(m/e));50>m||g.BL(a.u)?a.hide():a.show();for(c=0;c<l;c++){e=a.C[c];var u=e.o["ytp-suggestion-image"];u.style.width=m+"px";u.style.height=n+"px";e.o["ytp-suggestion-title"].style.width=
m+"px";e.o["ytp-suggestion-author"].style.width=m+"px";e=e.o["ytp-suggestion-duration"];e.style.display=e&&100>m?"none":""}l=f+p+t+4;a.S=l+d+(n-k)/2;a.G.element.style.height=n+l+"px";a.Z=m;a.F=b;a.B=0;a.Zy(0);O4(a)}},Kta=function(a,b){var c=g.Od(b,a.F-a.w.length*(a.Z+a.A),0);
a.da.start(a.B,c,1E3);a.B=c;O4(a)},O4=function(a){a.H.element.style.bottom=a.S+"px";
a.J.element.style.bottom=a.S+"px";var b=a.B,c=a.F-a.w.length*(a.Z+a.A);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Lta=function(a){for(var b=0;b<a.w.length;b++){var c=b,d=a.w[b].wa();
c=a.C[c];var e=d.shortViewCount?d.shortViewCount:d.author,f=d.Th();g.vx(a.u.N())&&(f=g.Ad(f,g.GD({},"emb_rel_err")));c.element.style.display="";var k=c.o["ytp-suggestion-title"];g.hn.test(d.title)?k.dir="rtl":g.Ppa.test(d.title)&&(k.dir="ltr");k=c.o["ytp-suggestion-author"];g.hn.test(e)?k.dir="rtl":g.Ppa.test(e)&&(k.dir="ltr");k=void 0;d.ua?k="Live":k=d.lengthSeconds?g.xM(d.lengthSeconds):"";c.update({views_or_author:e,duration:k,link:f,hover_title:d.title,title:d.title,aria_label:d.dk||null,is_live:d.ua});
c=c.o["ytp-suggestion-image"];d=d.Ac();c.style.backgroundImage=d?"url("+d+")":""}for(;b<a.C.length;b++)a.C[b].element.style.display="none";O4(a)},P4=function(a){g.rN.call(this,a);
a=a.N();a=new g.V({D:"a",I:"ytp-small-redirect",M:{href:g.dy(a),target:a.A,"aria-label":"Visit YouTube to search for more videos"},K:[Ita()]});a.ba(this.element);g.C(this,a);this.w=new N4(this.api);this.w.ba(this.element);g.C(this,this.w);this.C=1;this.u(g.wL(this.api).getPlayerSize())},Mta=function(a,b){a.o["ytp-error-content"].style.paddingTop="0px";
var c=a.o["ytp-error-content"],d=c.clientHeight;Jta(a.w,b,b.height-d);if(a.api.N().B){var e=g.OM(),f=g.X?{D:"div",X:["ytp-icon","ytp-icon-youtube-logo-redirect-large"]}:{D:"svg",M:{fill:"#fff",viewBox:"0 0 24 24"},K:[{D:"path",M:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",M:{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"}}]},
k=1;480>b.width||290>b.height?(e={D:"div",X:["ytp-icon","ytp-icon-error-exclamation-small"]},f=Ita(),k=0):650<=b.width&&(e={D:"div",X:["ytp-icon","ytp-icon-error-exclamation-large"]},f=g.X?{D:"div",X:["ytp-icon","ytp-icon-youtube-logo-redirect-extra-large"]}:{D:"svg",M:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",M:{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"}}]},
k=2);if(k!==a.C){e={"ytp-error-icon-container":e,"ytp-small-redirect":f};f=g.q(Object.keys(e));for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=g.de(l,a.element);g.se(m);(new g.V(e[l])).ba(m)}a.C=k}}c.style.paddingTop=(b.height-a.w.element.clientHeight)/2-d/2+"px"},Q4=function(a){g.V.call(this,{D:"div",
I:"ytp-muted-autoplay-endscreen-overlay",K:[{D:"div",I:"ytp-muted-autoplay-end-panel",K:[{D:"div",I:"ytp-muted-autoplay-end-text",W:"{{text}}"}]}]});this.u=a;this.A=this.o["ytp-muted-autoplay-end-panel"];this.w=new g.eN(a);g.C(this,this.w);this.w.ba(this.A,0);g.TL(a,this.element,this,52428);this.L(a,"presentingplayerstatechange",this.C);this.ia("click",this.B);this.hide()},R4=function(a){g.V.call(this,{D:"div",
I:"ytp-muted-autoplay-overlay",K:[{D:"div",I:"ytp-muted-autoplay-bottom-buttons",K:[{D:"button",X:["ytp-muted-autoplay-equalizer","ytp-button"],K:[{D:"div",X:["ytp-muted-autoplay-equalizer-icon"],K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-equalizer-animation"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},K:[{D:"g",M:{fill:"#fff"},K:[{D:"rect",I:"ytp-equalizer-bar-left",M:{height:"9",width:"4",x:"1",y:"7"}},{D:"rect",I:"ytp-equalizer-bar-middle",M:{height:"14",width:"4",
x:"6",y:"2"}},{D:"rect",I:"ytp-equalizer-bar-right",M:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.u=a;this.bottomButtons=this.o["ytp-muted-autoplay-bottom-buttons"];this.A=this.o["ytp-muted-autoplay-equalizer"];this.B=new g.I(this.C,4E3,this);g.TL(a,this.element,this,39306);this.L(a,"presentingplayerstatechange",this.w);this.L(a,"onMutedAutoplayStarts",this.w);this.ia("click",this.F);this.hide()},S4=function(a,b){g.V.call(this,{D:"div",
I:"ytp-pause-overlay"});this.u=a;this.ca=b;this.A=new g.O(this);g.C(this,this.A);this.U=new g.BM(this,1E3,!1,100);g.C(this,this.U);var c=a.N();"0"==c.controlsType&&g.J(g.xL(a),"ytp-pause-overlay-controls-hidden");this.C=[];this.w=[];this.F=0;this.da=c.u;this.Z=!1;this.na=0;this.S=new g.V({D:"h2",I:"ytp-related-title",W:"{{title}}"});g.C(this,this.S);this.S.ba(this.element);this.G=new g.V({D:"div",I:"ytp-suggestions"});g.C(this,this.G);this.G.ba(this.element);this.O=new g.V({D:"button",X:["ytp-button",
"ytp-previous"],M:{"aria-label":"Show previous suggested videos"},K:[g.FM()]});g.C(this,this.O);this.O.ba(this.element);this.O.ia("click",this.NH,this);var d=g.Iv||g.yh?{style:"will-change: opacity"}:null;this.ea=new M4((0,g.x)(this.Xy,this));g.C(this,this.ea);for(var e=this.ga=this.V=this.B=0;16>e;e++){var f=new g.V({D:"a",I:"ytp-suggestion-link",M:{href:"{{link}}",target:c.A,"aria-label":"{{aria_label}}"},K:[{D:"div",I:"ytp-suggestion-image"},{D:"div",I:"ytp-suggestion-overlay",M:d,K:[{D:"div",
I:"ytp-suggestion-title",W:"{{title}}"},{D:"div",I:"ytp-suggestion-author",W:"{{author_and_views}}"},{D:"div",M:{"data-is-live":"{{is_live}}"},I:"ytp-suggestion-duration",W:"{{duration}}"}]}]});g.C(this,f);f.ba(this.G.element);var k=f.o["ytp-suggestion-link"];g.vh(k,"transitionDelay",e/20+"s");this.A.L(k,"click",g.Sa(this.OH,e));this.C.push(f)}this.J=new g.V({D:"button",X:["ytp-button","ytp-next"],M:{"aria-label":"Show more suggested videos"},K:[g.GM()]});g.C(this,this.J);this.J.ba(this.element);
this.J.ia("click",this.MH,this);c=new g.V({D:"button",X:["ytp-button","ytp-collapse"],M:{"aria-label":"Hide more videos"},K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-small-close"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 16 16",width:"100%"},K:[{D:"path",M:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}]});g.C(this,c);c.ba(this.element);c.ia("click",this.DK,this);this.H=new g.V({D:"button",X:["ytp-button","ytp-expand"],W:"More videos"});g.C(this,this.H);this.H.ba(this.element);
this.H.ia("click",this.EK,this);this.A.L(this.u,"appresize",this.Cs);this.A.L(this.u,"fullscreentoggled",this.PH);this.A.L(this.u,"presentingplayerstatechange",this.QH);this.A.L(this.u,"videodatachange",this.RH);this.Cs(g.wL(this.u).getPlayerSize())},Nta=function(a,b){var c=g.Od(b,a.F-a.w.length*(a.V+8),0);
a.ea.start(a.B,c,1E3);a.B=c;T4(a)},T4=function(a){var b=a.ca.jc();
b=a.ga/2+(b?32:16);a.J.element.style.bottom=b+"px";a.O.element.style.bottom=b+"px";b=a.B;var c=a.F-a.w.length*(a.V+8);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Ota=function(a){for(var b=0;b<a.w.length;b++){var c=a.w[b].wa(),d=a.C[b],e=c.shortViewCount?c.author+" \u2022 "+c.shortViewCount:c.author;
d.element.style.display="";g.Opa.test(c.title)&&(d.o["ytp-suggestion-title"].dir="rtl");g.Opa.test(e)&&(d.o["ytp-suggestion-author"].dir="rtl");var f=void 0;c.ua?f="Live":f=c.lengthSeconds?g.xM(c.lengthSeconds):"";var k=c.Th();g.vx(a.u.N())&&(k=g.Ad(k,g.GD({},"emb_rel_pause")));d.update({author_and_views:e,duration:f,link:k,title:c.title,aria_label:c.dk||null,is_live:c.ua});d=d.o["ytp-suggestion-image"];c=c.Ac();d.style.backgroundImage=c?"url("+c+")":""}for(;b<a.C.length;b++)a.C[b].element.style.display=
"none";T4(a)},U4=function(a){var b=a.N();
g.V.call(this,{D:"a",X:["ytp-watermark","yt-uix-sessionlink"],M:{target:b.A,href:"{{url}}","aria-label":g.gN("Watch on $WEBSITE",{WEBSITE:g.Px(b)}),"data-sessionlink":"feature=player-watermark"},K:[Hta()]});this.u=a;this.A=null;this.B=!1;this.w=g.zL(a);g.TL(a,this.element,this,76758);this.L(a,"videodatachange",this.Ds);this.L(a,"videodatachange",this.bz);this.L(a,"presentingplayerstatechange",this.WH);this.L(a,"appresize",this.az);b=this.w;this.w!=b&&(this.w=b);this.Ds();this.bz();this.az(g.wL(a).getPlayerSize())},
V4=function(a){g.gM.call(this,a);
this.o=a;this.B=new g.O(this);g.C(this,this.B);this.load()},Pta=function(a,b){g.W(b,128)?(a.u||(a.u=new P4(a.o),g.C(a,a.u),g.RL(a.o,a.u.element,4)),a.u.B(b.u),a.u.show(),g.J(g.xL(a.o),"ytp-embed-error")):a.u&&(a.u.dispose(),a.u=null,g.Mn(g.xL(a.o),"ytp-embed-error"))};
g.r(M4,g.A);M4.prototype.start=function(a,b,c){this.o=a;this.G=b;this.C=c;this.F=(0,g.N)();this.w()};
M4.prototype.w=function(){var a=(0,g.N)()-this.F;var b=this.A;a=Gta(b,a/this.C);if(0==a)b=b.B;else if(1==a)b=b.G;else{var c=g.Qd(b.B,b.C,a),d=g.Qd(b.C,b.F,a);b=g.Qd(b.F,b.G,a);c=g.Qd(c,d,a);d=g.Qd(d,b,a);b=g.Qd(c,d,a)}b=g.Od(b,0,1);this.B((this.G-this.o)*b+this.o);1>b&&this.u.start()};g.r(N4,g.V);g.h=N4.prototype;g.h.hide=function(){this.U=!0;g.V.prototype.hide.call(this)};
g.h.show=function(){this.U=!1;g.V.prototype.show.call(this)};
g.h.isHidden=function(){return this.U};
g.h.SH=function(){Kta(this,this.B-this.F)};
g.h.TH=function(){Kta(this,this.B+this.F)};
g.h.UH=function(a,b){var c=this.w[a],d=c.Nb;if(g.mN(b,this.u,this.ca,d||void 0)){var e=c.wa().videoId;c=c.getPlaylistId();g.TT(this.u.app,e,d,c,void 0,void 0)}};
g.h.Yy=function(){var a=this,b=this.u.getVideoData(),c=this.u.N();this.ca=b.tc?!1:c.u;if(b.suggestions){var d=(0,g.ve)(b.suggestions,function(e){return e&&!e.list});
this.w=(0,g.Fc)(d,function(e){e=g.MO(c,e);g.C(a,e);return e})}else this.w.length=0;
Lta(this);b.tc?this.O.update({title:g.gN("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.O.update({title:"More videos on YouTube"})};
g.h.Zy=function(a){this.G.element.scrollLeft=-a};g.r(P4,g.rN);P4.prototype.show=function(){g.rN.prototype.show.call(this);Mta(this,g.wL(this.api).getPlayerSize())};
P4.prototype.u=function(a){g.rN.prototype.u.call(this,a);Mta(this,a);g.K(this.element,"related-on-error-overlay-visible",!this.w.isHidden())};
P4.prototype.B=function(a){g.rN.prototype.B.call(this,a);var b=this.api.getVideoData(),c;if(a.Lg){if(b.pn){a:{a=b.pn;if(a.runs)for(var d=0;d<a.runs.length;d++)if(a.runs[d].navigationEndpoint){a=!0;break a}a=!1}a?c=g.jA(b.pn):c=g.sN(g.T(b.pn))}else c=g.sN(a.Lg);this.tb(c,"subreason")}};g.r(Q4,g.V);Q4.prototype.C=function(){var a=g.zL(this.u),b=this.u.getVideoData();g.Q(this.u.N().experiments,"embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.W(a,2)&&!this.Ea()?(this.show(),this.w.show(),a=this.u.getVideoData(),this.ha("text",a.Vz),g.K(this.element,"ytp-muted-autoplay-show-end-panel",!0),g.XL(this.u,this.element,this.Ea()),this.u.ma("onMutedAutoplayEnds")):this.hide())};
Q4.prototype.B=function(){var a=this.u.getVideoData(),b=this.u.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;a.Td();this.u.loadVideoById(a.videoId,b);g.WL(this.u,this.element);this.hide()};g.r(R4,g.V);R4.prototype.w=function(){var a=g.zL(this.u),b=this.u.getVideoData(),c=this.u.N();b=g.Q(c.experiments,"embeds_enable_muted_autoplay")&&b.mutedAutoplay;c=!c.B;!b||g.W(a,2)?this.hide():this.Ea()||(g.V.prototype.show.call(this),c||(this.A.style.display="none"),this.B.start(),g.XL(this.u,this.element,this.Ea()))};
R4.prototype.C=function(){g.K(this.element,"ytp-muted-autoplay-hide-watermark",!0)};
R4.prototype.F=function(){var a=this.u.getVideoData(),b=this.u.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;a.Td();this.u.loadVideoById(a.videoId,b);g.WL(this.u,this.element)};g.r(S4,g.V);g.h=S4.prototype;g.h.hide=function(){g.Mn(g.xL(this.u),"ytp-expand-pause-overlay");g.V.prototype.hide.call(this)};
g.h.DK=function(){this.Z=!0;g.Mn(g.xL(this.u),"ytp-expand-pause-overlay");this.H.focus()};
g.h.EK=function(){this.Z=!1;g.J(g.xL(this.u),"ytp-expand-pause-overlay")};
g.h.MH=function(){Nta(this,this.B-this.F)};
g.h.NH=function(){Nta(this,this.B+this.F)};
g.h.OH=function(a,b){if(1E3>(0,g.N)()-this.na)g.Ep(b),document.activeElement.blur();else{var c=this.w[a],d=c.Nb;if(g.mN(b,this.u,this.da,d||void 0)){var e=c.wa().videoId;c=c.getPlaylistId();g.TT(this.u.app,e,d,c,void 0,void 0)}}};
g.h.PH=function(){this.Cs(g.wL(this.u).getPlayerSize())};
g.h.QH=function(a){if(!(g.W(a.state,1)||g.W(a.state,16)||g.W(a.state,32))){var b=!g.Q(this.u.N().experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.W(a.state,2048);!g.W(a.state,4)||g.W(a.state,2)||b?this.U.hide():this.w.length&&(this.Z||(g.J(g.xL(this.u),"ytp-expand-pause-overlay"),T4(this)),this.U.show(),this.na=(0,g.N)())}};
g.h.Cs=function(a){var b=16/9,c=this.ca.jc();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=0;d<this.C.length;d++){var e=this.C[d].o["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.G.element.style.height=b+"px";this.V=c;this.ga=b;this.F=a;this.B=0;this.Xy(0);T4(this)};
g.h.RH=function(){var a=this,b=this.u.N(),c=this.u.getVideoData();this.da=c.tc?!1:b.u;if(c.suggestions){var d=(0,g.ve)(c.suggestions,function(e){return e&&!e.list});
this.w=(0,g.Fc)(d,function(e){e=g.MO(b,e);g.C(a,e);return e})}else this.w.length=0;
Ota(this);c.tc?this.S.update({title:g.gN("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:c.author})}):this.S.update({title:"More videos"})};
g.h.Xy=function(a){this.G.element.scrollLeft=-a};g.r(U4,g.V);g.h=U4.prototype;g.h.Ds=function(){var a=this.u.getVideoData(),b=this.u.N();a=a.mutedAutoplay||b.Na&&!g.W(this.w,2);g.GC(this,a);g.XL(this.u,this.element,a)};
g.h.WH=function(a){a=a.state;this.w!=a&&(this.w=a);this.Ds()};
g.h.bz=function(){if(this.u.getVideoData().videoId){var a=this.u.getVideoUrl(!0,!1,!1,!0);this.ha("url",a);this.A||(this.A=this.ia("click",this.VH))}else this.A&&(this.ha("url",null),this.Xa(this.A),this.A=null)};
g.h.VH=function(a){var b=this.u.getVideoUrl(!g.yM(a),!1,!0,!0);g.nN(b,this.u,a);g.WL(this.u,this.element)};
g.h.az=function(a){var b=this.u.N(),c=480>a.width;if(c&&!this.B||!c&&this.B)a=480>a.width&&b.B?{D:"div",X:["ytp-icon","ytp-icon-watermark-small"]}:Hta(),a=new g.V(a),b=this.o["ytp-watermark"],g.K(b,"ytp-watermark-small",c),g.se(b),a.ba(b),this.B=c};g.r(V4,g.gM);g.h=V4.prototype;g.h.Bf=function(){return!1};
g.h.create=function(){var a=this.o.N(),b=g.XC(this.o);a.Ha&&(this.F=new S4(this.o,b),g.C(this,this.F),g.RL(this.o,this.F.element,4));g.Q(a.experiments,"embeds_enable_muted_autoplay")&&(this.w=new R4(this.o),g.C(this,this.w),g.RL(this.o,this.w.element,4),this.C=new Q4(this.o),g.C(this,this.C),g.RL(this.o,this.C.element,4));if(a.Na||this.w)this.A=new U4(this.o),g.C(this,this.A),g.RL(this.o,this.A.element,7);this.B.L(this.o,"appresize",this.JH);this.B.L(this.o,"presentingplayerstatechange",this.IH);
this.B.L(this.o,"videodatachange",this.hP);this.B.L(this.o,"onMutedAutoplayStarts",this.NL);Pta(this,g.zL(this.o));g.OL(this.player,"embed")};
g.h.JH=function(){var a=g.wL(this.o).getPlayerSize();this.u&&this.u.u(a)};
g.h.IH=function(a){Pta(this,a.state)};
g.h.NL=function(){this.o.getVideoData().mutedAutoplay&&this.w&&this.A&&this.A.ba(this.w.bottomButtons,0)};
g.h.hP=function(){var a=this.o.getVideoData();this.A&&this.w&&!a.mutedAutoplay&&g.xe(this.w.element,this.A.element)&&g.RL(this.o,this.A.element,7)};g.vM.embed=V4;})(_yt_player);
