(function(g){var window=this;var z4=function(a,b){g.mf(a.u,8*b+2);var c=a.u.end();a.C.push(c);a.B+=c.length;c.push(a.B);return c},A4=function(a,b){var c=b.pop();
for(c=a.B+a.u.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.B++;b.push(c);a.B++},IFa=function(a,b,c){null!=c&&(g.mf(a.u,8*b+1),a=a.u,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,g.xf=b,g.yf=c,g.nf(a,g.xf),g.nf(a,g.yf))},B4=function(a,b,c){null!=c&&(g.mf(a.u,8*b),a.u.u.push(c?1:0))},C4=function(a,b,c){if(null!=c){b=z4(a,b);
for(var d=a.u,e=0;e<c.length;e++){var f=c.charCodeAt(e);if(128>f)d.u.push(f);else if(2048>f)d.u.push(f>>6|192),d.u.push(f&63|128);else if(65536>f)if(55296<=f&&56319>=f&&e+1<c.length){var h=c.charCodeAt(e+1);56320<=h&&57343>=h&&(f=1024*(f-55296)+h-56320+65536,d.u.push(f>>18|240),d.u.push(f>>12&63|128),d.u.push(f>>6&63|128),d.u.push(f&63|128),e++)}else d.u.push(f>>12|224),d.u.push(f>>6&63|128),d.u.push(f&63|128)}A4(a,b)}},D4=function(a,b,c,d){null!=c&&(b=z4(a,b),d(c,a),A4(a,b))},E4=function(a,b,c,d){if(null!=
c)for(var e=0;e<c.length;e++){var f=z4(a,b);
d(c[e],a);A4(a,f)}},JFa=function(a,b){var c=(b-a.u)/(a.B-a.u);
if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=g.Mn(a,c);var l=(g.Mn(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(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=g.Mn(a,c);return c},F4=function(a,b,c){a.u||(a.u={});
if(!a.u[c]){var d=g.Hf(a,c);d&&(a.u[c]=new b(d))}return a.u[c]},G4=function(a,b,c){g.Lf(a,b,c);
b=a.u[c];b==g.Df&&(b=a.u[c]=[]);return b},KFa=function(a,b,c){a.u||(a.u={});
c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=c[e].vf;a.u[b]=c;g.Jf(a,b,d)},H4=function(a,b,c,d){(c=g.Ff(a,c))&&c!==b&&void 0!==d&&(a.u&&c in a.u&&(a.u[c]=void 0),g.Jf(a,c,void 0));
g.Jf(a,b,d)},I4=function(){return{I:"svg",
U:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]}},
LFa=function(a){this.tA=a},J4=function(a,b,c){this.D=a;
this.B=b;this.u=c||[];this.Fm=new Map},K4=function(a,b){J4.call(this,a,3,b)},NFa=function(){this.G=new MFa;
this.B=new Map;this.F=new Set;this.C=0;this.D=100;this.flushInterval=3E4;this.u=new g.Tm(this.flushInterval);this.u.wa("tick",this.PF,!1,this)},OFa=function(a,b){return a.F.has(b)?void 0:a.B.get(b)},PFa=function(a){for(var b=0;b<a.length;b++)a[b].clear()},QFa=function(){if(!L4){L4=new NFa;
var a=g.wo("client_streamz_web_flush_count",-1);-1!==a&&(L4.D=a)}this.u=L4;this.u.GH("/client_streamz/youtube/web/debug/third_party_apisid_cookie_reissue_iframe")},SFa=function(a){g.Gf(this,a,RFa,null)},TFa=function(a){g.Gf(this,a,null,null)},VFa=function(a,b){var c=G4(a,TFa,1);
0<c.length&&E4(b,1,c,UFa)},UFa=function(a,b){var c=g.Hf(a,1);
null!=c&&g.Af(b,1,c);c=g.Hf(a,2);null!=c&&g.zf(b,2,c)},XFa=function(a){g.Gf(this,a,WFa,null)},ZFa=function(a){g.Gf(this,a,null,YFa)},$Fa=function(a){g.Gf(this,a,null,null)},aGa=function(a){g.Gf(this,a,null,null)},M4=function(a){g.Gf(this,a,bGa,null)},O4=function(a){g.Gf(this,a,null,N4)},Q4=function(a){g.Gf(this,a,null,P4)},eGa=function(a,b){var c=F4(a,$Fa,1);
null!=c&&D4(b,1,c,cGa);c=F4(a,aGa,2);null!=c&&D4(b,2,c,dGa)},cGa=function(a,b){var c=g.Hf(a,1);
null!=c&&C4(b,1,c);c=g.Hf(a,2);null!=c&&C4(b,2,c);c=g.Hf(a,3);null!=c&&B4(b,3,c)},dGa=function(a,b){var c=g.Hf(a,1);
null!=c&&C4(b,1,c);c=g.Hf(a,2);null!=c&&C4(b,2,c);c=g.Hf(a,3);null!=c&&g.wf(b,3,c);c=g.Hf(a,4);null!=c&&B4(b,4,c)},hGa=function(a,b){var c=G4(a,O4,1);
0<c.length&&E4(b,1,c,fGa);c=F4(a,Q4,2);null!=c&&D4(b,2,c,gGa)},fGa=function(a,b){var c=g.Hf(a,1);
null!=c&&C4(b,1,c);c=g.Hf(a,2);null!=c&&g.wf(b,2,c);c=g.Hf(a,3);null!=c&&B4(b,3,c)},gGa=function(a,b){var c=g.Hf(a,1);
null!=c&&g.zf(b,1,c);c=g.Hf(a,2);null!=c&&g.Af(b,2,c);c=F4(a,SFa,3);null!=c&&D4(b,3,c,VFa)},MFa=function(){},R4=function(a){g.B.call(this);
this.callback=a;this.B=new g.Ln(0,0,.4,0,.2,1,1,1);this.delay=new g.qn(this.next,window,this);this.startTime=this.duration=this.u=this.from=NaN;g.C(this,this.delay)},S4=function(a){g.V.call(this,{I:"div",
L:"ytp-related-on-error-overlay"});var b=this;this.api=a;this.G=this.B=0;this.animationDelay=1E3;this.P=new g.rs(this);this.D=[];this.u=[];this.F=0;this.title=new g.V({I:"h2",L:"ytp-related-title",Z:"{{title}}"});this.previous=new g.V({I:"button",ia:["ytp-button","ytp-previous"],U:{"aria-label":"Show previous suggested videos"},S:[g.SN()]});this.X=new R4(function(f){b.suggestions.element.scrollLeft=-f});
this.tileWidth=this.C=0;this.K=!0;this.next=new g.V({I:"button",ia:["ytp-button","ytp-next"],U:{"aria-label":"Show more suggested videos"},S:[g.TN()]});g.C(this,this.P);a=a.T();this.V=a.B;g.C(this,this.title);this.title.fa(this.element);this.suggestions=new g.V({I:"div",L:"ytp-suggestions"});g.C(this,this.suggestions);this.suggestions.fa(this.element);g.C(this,this.previous);this.previous.fa(this.element);this.previous.wa("click",this.oK,this);g.C(this,this.X);for(var c=0;16>c;c++){var d=new g.V({I:"a",
L:"ytp-suggestion-link",U:{href:"{{link}}",target:a.F,"aria-label":"{{aria_label}}"},S:[{I:"div",L:"ytp-suggestion-image",S:[{I:"div",U:{"data-is-live":"{{is_live}}"},L:"ytp-suggestion-duration",Z:"{{duration}}"}]},{I:"div",L:"ytp-suggestion-title",U:{title:"{{hover_title}}"},Z:"{{title}}"},{I:"div",L:"ytp-suggestion-author",Z:"{{views_or_author}}"}]});g.C(this,d);d.fa(this.suggestions.element);var e=d.ga("ytp-suggestion-link");g.F(e,"transitionDelay",c/20+"s");this.P.R(e,"click",g.Va(this.pK,c));
this.D.push(d)}g.C(this,this.next);this.next.fa(this.element);this.next.wa("click",this.nK,this);this.P.R(this.api,"videodatachange",this.Oa);this.resize(g.fH(this.api).getPlayerSize());this.Oa();this.show()},T4=function(a){a.next.element.style.bottom=a.G+"px";
a.previous.element.style.bottom=a.G+"px";var b=a.C,c=a.F-a.u.length*(a.tileWidth+a.B);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},iGa=function(a){for(var b=0;b<a.u.length;b++){var c=b,d=a.u[b].La();
c=a.D[c];var e=d.shortViewCount?d.shortViewCount:d.author,f=d.jk();g.kC(a.api.T())&&(f=g.Jd(f,g.UT({},"emb_rel_err")));c.element.style.display="";var h=c.ga("ytp-suggestion-title");g.Jn.test(d.title)?h.dir="rtl":g.EBa.test(d.title)&&(h.dir="ltr");h=c.ga("ytp-suggestion-author");g.Jn.test(e)?h.dir="rtl":g.EBa.test(e)&&(h.dir="ltr");h=void 0;d.isLivePlayback?h="Live":h=d.lengthSeconds?g.dP(d.lengthSeconds):"";c.update({views_or_author:e,duration:h,link:f,hover_title:d.title,title:d.title,aria_label:d.uo||
null,is_live:d.isLivePlayback});c=c.ga("ytp-suggestion-image");d=d.Sd();c.style.backgroundImage=d?"url("+d+")":""}for(;b<a.D.length;b++)a.D[b].element.style.display="none";T4(a)},U4=function(a){g.VX.call(this,a);
var b=this,c=a.T();c=new g.V({I:"a",L:"ytp-small-redirect",U:{href:g.XC(c),target:c.F,"aria-label":"Visit YouTube to search for more videos"},S:[{I:"svg",U:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0V0z",fill:"none"}},{I:"path",U:{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"}}]}]});
c.fa(this.element);g.C(this,c);this.u=new S4(a);this.u.fa(this.element);g.C(this,this.u);this.R(a,"videodatachange",function(){b.show()});
this.resize(g.fH(this.api).getPlayerSize())},jGa=function(a,b){a.ga("ytp-error-content").style.paddingTop="0px";
var c=a.ga("ytp-error-content"),d=c.clientHeight;a.u.resize(b,b.height-d);c.style.paddingTop=(b.height-a.u.element.clientHeight)/2-d/2+"px"},kGa=function(a,b){var c=a.api.T(),d;
b.reason&&(V4(b.reason)?d=g.ME(b.reason):d=g.WX(g.T(b.reason)),a.sc(d,"content"));var e;b.subreason&&(V4(b.subreason)?e=g.ME(b.subreason):e=g.WX(g.T(b.subreason)),a.sc(e,"subreason"));if(g.R(c.experiments,"embeds_enable_age_gating_playability_check")&&b.proceedButton&&b.proceedButton.buttonRenderer&&(e=b.proceedButton.buttonRenderer,c=a.ga("ytp-error-content-wrap-subreason"),d=g.Fe("A"),e.text&&e.text.simpleText)){var f=e.text.simpleText;d.textContent=f;a:{for(var h=(c||document).getElementsByTagName("A"),
l=0;l<h.length;l++)if(h[l].textContent===f){f=!0;break a}f=!1}f||(e.navigationEndpoint&&e.navigationEndpoint.urlEndpoint&&((f=e.navigationEndpoint.urlEndpoint.url)&&d.setAttribute("href",f),(e=e.navigationEndpoint.urlEndpoint.target)&&d.setAttribute("target",e)),c.appendChild(d))}},V4=function(a){if(a.runs)for(var b=0;b<a.runs.length;b++)if(a.runs[b].navigationEndpoint)return!0;
return!1},W4=function(a,b){g.V.call(this,{I:"a",
ia:["ytp-impression-link"],U:{target:"{{target}}",href:"{{url}}"},S:[{I:"div",L:"ytp-impression-link-content",S:[{I:"div",L:"ytp-impression-link-text",Z:"Watch on"},{I:"div",L:"ytp-impression-link-logo",S:[I4()]}]}]});this.api=a;this.B=b;this.ua("target",a.T().F);g.vX(this.api,this.element,this,96714);this.R(this.api,"presentingplayerstatechange",this.Lf);this.R(this.api,"videoplayerreset",this.u);this.R(this.element,"click",this.onClick);this.u()},X4=function(a){g.V.call(this,{I:"div",
L:"ytp-muted-autoplay-endscreen-overlay",S:[{I:"div",L:"ytp-muted-autoplay-end-panel",S:[{I:"div",L:"ytp-muted-autoplay-end-text",Z:"{{text}}"}]}]});this.api=a;this.B=this.ga("ytp-muted-autoplay-end-panel");this.u=new g.OX(this.api);g.C(this,this.u);this.u.fa(this.B,0);g.vX(this.api,this.element,this,52428);this.R(this.api,"presentingplayerstatechange",this.C);this.wa("click",this.onClick);this.hide()},Y4=function(a){g.V.call(this,{I:"div",
L:"ytp-muted-autoplay-overlay",S:[{I:"div",L:"ytp-muted-autoplay-bottom-buttons",S:[{I:"button",ia:["ytp-muted-autoplay-equalizer","ytp-button"],S:[{I:"div",ia:["ytp-muted-autoplay-equalizer-icon"],S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},S:[{I:"g",U:{fill:"#fff"},S:[{I:"rect",L:"ytp-equalizer-bar-left",U:{height:"9",width:"4",x:"1",y:"7"}},{I:"rect",L:"ytp-equalizer-bar-middle",U:{height:"14",width:"4",x:"6",y:"2"}},{I:"rect",L:"ytp-equalizer-bar-right",U:{height:"12",
width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=a;this.bottomButtons=this.ga("ytp-muted-autoplay-bottom-buttons");this.ga("ytp-muted-autoplay-equalizer");this.C=new g.G(this.B,4E3,this);g.vX(a,this.element,this,39306);this.R(a,"presentingplayerstatechange",this.u);this.R(a,"onMutedAutoplayStarts",this.u);this.wa("click",this.onClick);this.hide()},Z4=function(a,b){g.V.call(this,{I:"div",
L:"ytp-pause-overlay"});var c=this;this.api=a;this.P=b;this.animationDelay=1E3;this.B=new g.rs(this);this.G=new g.oO(this,1E3,!1,100);this.D=[];this.u=[];this.F=0;this.K=!1;this.ba=0;this.title=new g.V({I:"h2",L:"ytp-related-title",Z:"{{title}}"});this.previous=new g.V({I:"button",ia:["ytp-button","ytp-previous"],U:{"aria-label":"Show previous suggested videos"},S:[g.SN()]});this.X=new R4(function(m){c.suggestions.element.scrollLeft=-m});
this.Y=this.tileWidth=this.C=0;this.next=new g.V({I:"button",ia:["ytp-button","ytp-next"],U:{"aria-label":"Show more suggested videos"},S:[g.TN()]});this.expandButton=new g.V({I:"button",ia:["ytp-button","ytp-expand"],Z:"More videos"});g.C(this,this.B);g.C(this,this.G);var d=a.T();"0"===d.controlsType&&g.I(a.getRootNode(),"ytp-pause-overlay-controls-hidden");this.V=d.B;g.C(this,this.title);this.title.fa(this.element);this.suggestions=new g.V({I:"div",L:"ytp-suggestions"});g.C(this,this.suggestions);
this.suggestions.fa(this.element);g.C(this,this.previous);this.previous.fa(this.element);this.previous.wa("click",this.lK,this);var e=g.AB||g.rg?{style:"will-change: opacity"}:void 0;g.C(this,this.X);for(var f=0;16>f;f++){var h=new g.V({I:"a",L:"ytp-suggestion-link",U:{href:"{{link}}",target:d.F,"aria-label":"{{aria_label}}"},S:[{I:"div",L:"ytp-suggestion-image"},{I:"div",L:"ytp-suggestion-overlay",U:e,S:[{I:"div",L:"ytp-suggestion-title",Z:"{{title}}"},{I:"div",L:"ytp-suggestion-author",Z:"{{author_and_views}}"},
{I:"div",U:{"data-is-live":"{{is_live}}"},L:"ytp-suggestion-duration",Z:"{{duration}}"}]}]});g.C(this,h);h.fa(this.suggestions.element);var l=h.ga("ytp-suggestion-link");g.F(l,"transitionDelay",f/20+"s");this.B.R(l,"click",g.Va(this.mK,f));this.D.push(h)}g.C(this,this.next);this.next.fa(this.element);this.next.wa("click",this.kK,this);d=new g.V({I:"button",ia:["ytp-button","ytp-collapse"],U:{"aria-label":"Hide more videos"},S:[{I:"svg",U:{height:"100%",viewBox:"0 0 16 16",width:"100%"},S:[{I:"path",
U:{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,d);d.fa(this.element);d.wa("click",this.VM,this);g.C(this,this.expandButton);this.expandButton.fa(this.element);this.expandButton.wa("click",this.WM,this);this.B.R(this.api,"appresize",this.Sa);this.B.R(this.api,"fullscreentoggled",this.Bj);this.B.R(this.api,"presentingplayerstatechange",this.Wb);this.B.R(this.api,"videodatachange",this.Oa);this.Sa(g.fH(this.api).getPlayerSize());this.Oa()},$4=function(a){var b=
a.P.Id()?32:16;
b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.C;var c=a.F-a.u.length*(a.tileWidth+8);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},lGa=function(a){for(var b=0;b<a.u.length;b++){var c=a.u[b].La(),d=a.D[b],e=c.shortViewCount?c.author+" \u2022 "+c.shortViewCount:c.author;
d.element.style.display="";g.DBa.test(c.title)&&(d.ga("ytp-suggestion-title").dir="rtl");g.DBa.test(e)&&(d.ga("ytp-suggestion-author").dir="rtl");var f=void 0;c.isLivePlayback?f="Live":f=c.lengthSeconds?g.dP(c.lengthSeconds):"";var h=c.jk();g.kC(a.api.T())&&(h=g.Jd(h,g.UT({},"emb_rel_pause")));d.update({author_and_views:e,duration:f,link:h,title:c.title,aria_label:c.uo||null,is_live:c.isLivePlayback});d=d.ga("ytp-suggestion-image");c=c.Sd();d.style.backgroundImage=c?"url("+c+")":""}for(;b<a.D.length;b++)a.D[b].element.style.display=
"none";$4(a)},a5=function(a){var b=a.T();
g.V.call(this,{I:"a",ia:["ytp-watermark","yt-uix-sessionlink"],U:{target:b.F,href:"{{url}}","aria-label":g.yK("Watch on $WEBSITE",{WEBSITE:g.GC(b)}),"data-sessionlink":"feature=player-watermark"},S:[I4()]});this.api=a;this.u=null;this.B=!1;this.state=g.AJ(a);g.vX(a,this.element,this,76758);this.R(a,"videodatachange",this.iz);this.R(a,"videodatachange",this.Oa);this.R(a,"presentingplayerstatechange",this.qK);this.R(a,"appresize",this.Sa);b=this.state;this.state!==b&&(this.state=b);this.iz();this.Oa();
this.Sa(g.fH(a).getPlayerSize())},b5=function(a){g.HS.call(this,a);
this.J=a;this.B=new g.rs(this);g.C(this,this.B);this.load()};g.k=J4.prototype;g.k.wQ=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Fm.set(this.tB(c),[new LFa(a)])};
g.k.lB=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.tB(b);return this.Fm.has(b)?this.Fm.get(b):void 0};
g.k.uI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.lB(b))&&b.length?b[0]:void 0};
g.k.clear=function(){this.Fm.clear()};
g.k.tB=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.u(K4,J4);K4.prototype.C=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.uI(c);e&&(d=e.tA);this.wQ(d+a,c)};g.k=NFa.prototype;g.k.PF=function(){var a=this.B.values();a=[].concat(g.la(a)).filter(function(b){return b.Fm.size});
a.length&&this.G.flush(a);PFa(a);this.C=0;this.u.enabled&&this.u.stop()};
g.k.GH=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.B.has(a)||this.B.set(a,new K4(a,c))};
g.k.QJ=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.RJ.apply(this,[a,1].concat(g.la(c)))};
g.k.RJ=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=OFa(this,a))&&e instanceof K4&&(e.C(b,d),this.u.enabled||this.u.start(),this.C++,this.C>=this.D&&this.PF())};
g.k.uF=function(a,b,c){for(var d=2;d<arguments.length;++d);OFa(this,a)};g.Ya(SFa,g.Bf);g.Ya(TFa,g.Bf);var RFa=[1];g.Ya(XFa,g.Bf);g.Ya(ZFa,g.Bf);g.Ya($Fa,g.Bf);g.Ya(aGa,g.Bf);g.Ya(M4,g.Bf);g.Ya(O4,g.Bf);g.Ya(Q4,g.Bf);var WFa=[3,6,4],YFa=[[1,2]],bGa=[1],N4=[[1,2,3]],P4=[[1,2,3]];MFa.prototype.flush=function(a){a=void 0===a?[]:a;if(g.vo("enable_client_streamz_web")){a=g.q(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=new XFa;c=g.Jf(c,1,b.D);for(var d=b,e=[],f=0;f<d.u.length;f++)e.push(d.u[f].S3);c=g.Jf(c,3,e||[]);d=[];e=[];f=g.q(b.Fm.keys());for(var h=f.next();!h.done;h=f.next())e.push(h.value.split(","));for(f=0;f<e.length;f++){h=e[f];var l=b.B;for(var m=b.lB(h)||[],n=[],p=0;p<m.length;p++){var r=m[p];r=r&&r.tA;var t=new Q4;switch(l){case 3:H4(t,1,P4[0],Number(r));
break;case 2:H4(t,2,P4[0],Number(r))}n.push(t)}l=n;for(m=0;m<l.length;m++){p=l[m];n=new M4;n.u||(n.u={});r=p?p.vf:p;n.u[2]=p;n=g.Jf(n,2,r);p=h;r=[];t=b;for(var w=[],x=0;x<t.u.length;x++)w.push(t.u[x].T3);t=w;for(w=0;w<t.length;w++){x=t[w];var y=p[w],D=new O4;switch(x){case 3:H4(D,1,N4[0],String(y));break;case 2:H4(D,2,N4[0],Number(y));break;case 1:H4(D,3,N4[0],"true"==y)}r.push(D)}KFa(n,1,r);d.push(n)}}KFa(c,4,d);d=b=new g.uf;e=g.Hf(c,1);null!=e&&C4(d,1,e);e=g.Hf(c,5);null!=e&&IFa(d,5,e);e=F4(c,ZFa,
2);null!=e&&D4(d,2,e,eGa);e=g.Hf(c,3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)C4(d,3,e[f]);e=g.Hf(c,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)IFa(d,6,e[f]);e=G4(c,M4,4);0<e.length&&E4(d,4,e,hGa);b=g.vf(b);b={serializedIncrementBatch:g.qf(b)};g.Dq("streamzIncremented",b)}}};var L4;g.u(R4,g.B);R4.prototype.start=function(a,b,c){this.from=a;this.u=b;this.duration=c;this.startTime=(0,g.O)();this.next()};
R4.prototype.next=function(){var a=(0,g.O)()-this.startTime;var b=this.B;a=JFa(b,a/this.duration);if(0==a)b=b.F;else if(1==a)b=b.N;else{var c=g.de(b.F,b.G,a),d=g.de(b.G,b.K,a);b=g.de(b.K,b.N,a);c=g.de(c,d,a);d=g.de(d,b,a);b=g.de(c,d,a)}b=g.be(b,0,1);this.callback((this.u-this.from)*b+this.from);1>b&&this.delay.start()};g.u(S4,g.V);g.k=S4.prototype;g.k.hide=function(){this.K=!0;g.V.prototype.hide.call(this)};
g.k.show=function(){this.K=!1;g.V.prototype.show.call(this)};
g.k.isHidden=function(){return this.K};
g.k.nK=function(){this.scrollTo(this.C-this.F)};
g.k.oK=function(){this.scrollTo(this.C+this.F)};
g.k.pK=function(a,b){var c=this.u[a],d=c.yd;if(g.QX(b,this.api,this.V,d||void 0)){var e=c.La().videoId;c=c.getPlaylistId();g.f1(this.api.app,e,d,c,void 0,void 0)}};
g.k.resize=function(a,b){var c=this.api.T(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.u.length,this.D.length);if(150>=Math.min(a.width,a.height)||0===h||!c.rb)this.hide();else{var l;if(e){var m=l=28;this.B=16}else this.B=m=l=8;if(f){var n=6;e=14;var p=12;f=24;c=12}else n=8,e=18,p=16,f=36,c=16;l=a.width-(48+l+m);m=Math.ceil(l/150);m=Math.min(3,m);m=l/m-this.B;var r=Math.floor(m/d);b&&r+100>b&&50<m&&(r=Math.max(b,50/d),m=Math.ceil(l/(d*(r-100)+this.B)),m=l/m-this.B,r=Math.floor(m/
d));50>m||g.hX(this.api)?this.hide():this.show();for(d=0;d<h;d++){var t=this.D[d],w=t.ga("ytp-suggestion-image");w.style.width=m+"px";w.style.height=r+"px";t.ga("ytp-suggestion-title").style.width=m+"px";t.ga("ytp-suggestion-author").style.width=m+"px";t=t.ga("ytp-suggestion-duration");t.style.display=t&&100>m?"none":""}h=e+n+p+4;this.G=h+c+(r-f)/2;this.suggestions.element.style.height=r+h+"px";this.tileWidth=m;this.F=l;this.C=0;this.suggestions.element.scrollLeft=-0;T4(this)}};
g.k.Oa=function(){var a=this,b=this.api.getVideoData(),c=this.api.T();this.V=b.Lc?!1:c.B;if(b.suggestions){var d=g.Ke(b.suggestions,function(e){return e&&!e.list});
this.u=g.Pc(d,function(e){e=g.HZ(c,e);g.C(a,e);return e})}else this.u.length=0;
iGa(this);b.Lc?this.title.update({title:g.yK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:"More videos on YouTube"})};
g.k.scrollTo=function(a){a=g.be(a,this.F-this.u.length*(this.tileWidth+this.B),0);this.X.start(this.C,a,this.animationDelay);this.C=a;T4(this)};g.u(U4,g.VX);U4.prototype.show=function(){g.VX.prototype.show.call(this);jGa(this,g.fH(this.api).getPlayerSize())};
U4.prototype.resize=function(a){g.VX.prototype.resize.call(this,a);jGa(this,a);g.K(this.element,"related-on-error-overlay-visible",!this.u.isHidden())};
U4.prototype.B=function(a){g.VX.prototype.B.call(this,a);var b=this.api.getVideoData();if(g.R(this.api.T().experiments,"embed_parse_error_renderer_killswitch")||!b.VA&&!b.playerErrorMessageRenderer){var c;a.ai&&(b.Ir?V4(b.Ir)?c=g.ME(b.Ir):c=g.WX(g.T(b.Ir)):c=g.WX(a.ai),this.sc(c,"subreason"))}else(a=b.VA)?kGa(this,a):b.playerErrorMessageRenderer&&kGa(this,b.playerErrorMessageRenderer)};g.u(W4,g.V);W4.prototype.Lf=function(){g.AJ(this.api).isCued()||(this.hide(),g.LN(this.api,this.element,!1))};
W4.prototype.u=function(){var a=this.api.getVideoData(),b=this.api.T(),c=this.api.getVideoData().Lc,d=b.eb;b=!b.rb;var e=this.B.Jf();d||e||c||b||!a.videoId?(this.hide(),g.LN(this.api,this.element,!1)):(a=g.Jd(this.api.getVideoUrl(),g.UT({},"emb_imp_woyt")),this.ua("url",a),this.show())};
W4.prototype.onClick=function(a){var b=g.Jd(this.api.getVideoUrl(),g.UT({},"emb_imp_woyt"));g.RX(b,this.api,a);g.wX(this.api,this.element)};
W4.prototype.show=function(){g.AJ(this.api).isCued()&&(g.V.prototype.show.call(this),g.KN(this.api,this.element)&&g.LN(this.api,this.element,!0))};g.u(X4,g.V);X4.prototype.C=function(){var a=g.AJ(this.api),b=this.api.getVideoData();g.R(this.api.T().experiments,"embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.U(a,2)&&!this.Za?(this.show(),this.u.show(),a=this.api.getVideoData(),this.ua("text",a.GD),g.K(this.element,"ytp-muted-autoplay-show-end-panel",!0),g.LN(this.api,this.element,this.Za),this.api.va("onMutedAutoplayEnds")):this.hide())};
X4.prototype.onClick=function(){var a=this.api.getVideoData(),b=this.api.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;a.Mg();this.api.loadVideoById(a.videoId,b);g.wX(this.api,this.element);this.hide()};g.u(Y4,g.V);Y4.prototype.u=function(){var a=g.AJ(this.api),b=this.api.getVideoData();g.R(this.api.T().experiments,"embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.U(a,2)?this.Za||(g.V.prototype.show.call(this),this.C.start(),g.LN(this.api,this.element,this.Za)):this.hide()};
Y4.prototype.B=function(){g.K(this.element,"ytp-muted-autoplay-hide-watermark",!0)};
Y4.prototype.onClick=function(){var a=this.api.getVideoData(),b=this.api.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;a.Mg();this.api.loadVideoById(a.videoId,b);g.wX(this.api,this.element)};g.u(Z4,g.V);g.k=Z4.prototype;g.k.hide=function(){g.Bn(this.api.getRootNode(),"ytp-expand-pause-overlay");g.V.prototype.hide.call(this)};
g.k.VM=function(){this.K=!0;g.Bn(this.api.getRootNode(),"ytp-expand-pause-overlay");this.expandButton.focus()};
g.k.WM=function(){this.K=!1;g.I(this.api.getRootNode(),"ytp-expand-pause-overlay")};
g.k.kK=function(){this.scrollTo(this.C-this.F)};
g.k.lK=function(){this.scrollTo(this.C+this.F)};
g.k.mK=function(a,b){if(1E3>(0,g.O)()-this.ba)g.jp(b),document.activeElement.blur();else{var c=this.u[a],d=c.yd;if(g.QX(b,this.api,this.V,d||void 0)){var e=c.La().videoId;c=c.getPlaylistId();g.f1(this.api.app,e,d,c,void 0,void 0)}}};
g.k.Bj=function(){this.Sa(g.fH(this.api).getPlayerSize())};
g.k.Wb=function(a){if(!(g.U(a.state,1)||g.U(a.state,16)||g.U(a.state,32))){var b=!g.R(this.api.T().experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.U(a.state,2048);!g.U(a.state,4)||g.U(a.state,2)||b?this.G.hide():this.u.length&&(this.K||(g.I(this.api.getRootNode(),"ytp-expand-pause-overlay"),$4(this)),this.G.show(),this.ba=(0,g.O)())}};
g.k.Sa=function(a){var b=16/9,c=this.P.Id();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.D.length;d++){var e=this.D[d].ga("ytp-suggestion-image");e.style.width=c+"px";e.style.height=b+"px"}this.suggestions.element.style.height=b+"px";this.tileWidth=c;this.Y=b;this.F=a;this.C=0;this.suggestions.element.scrollLeft=-0;$4(this)};
g.k.Oa=function(){var a=this,b=this.api.T(),c=this.api.getVideoData();this.V=c.Lc?!1:b.B;if(c.suggestions){var d=g.Ke(c.suggestions,function(e){return e&&!e.list});
this.u=g.Pc(d,function(e){e=g.HZ(b,e);g.C(a,e);return e})}else this.u.length=0;
lGa(this);c.Lc?this.title.update({title:g.yK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:c.author})}):this.title.update({title:"More videos"})};
g.k.scrollTo=function(a){a=g.be(a,this.F-this.u.length*(this.tileWidth+8),0);this.X.start(this.C,a,this.animationDelay);this.C=a;$4(this)};g.u(a5,g.V);g.k=a5.prototype;g.k.iz=function(){var a=this.api.getVideoData(),b=this.api.getVideoData(1).Lc,c=this.api.T();a=(a.mutedAutoplay||c.eb&&!g.U(this.state,2))&&!(b&&c.pfpChazalUi);g.DN(this,a);g.LN(this.api,this.element,a)};
g.k.qK=function(a){a=a.state;this.state!==a&&(this.state=a);this.iz()};
g.k.Oa=function(){if(this.api.getVideoData().videoId){var a=this.api.getVideoUrl(!0,!1,!1,!0);this.ua("url",a);this.u||(this.u=this.wa("click",this.onClick))}else this.u&&(this.ua("url",null),this.Eb(this.u),this.u=null)};
g.k.onClick=function(a){var b=this.api.getVideoUrl(!g.eP(a),!1,!0,!0);g.RX(b,this.api,a);g.wX(this.api,this.element)};
g.k.Sa=function(a){if((a=480>a.width)&&!this.B||!a&&this.B){var b=new g.V(I4()),c=this.ga("ytp-watermark");g.K(c,"ytp-watermark-small",a);g.He(c);b.fa(c);this.B=a}};g.u(b5,g.HS);g.k=b5.prototype;g.k.Dh=function(){return!1};
g.k.create=function(){var a=this.J.T(),b=g.ZW(this.J);a.rb&&(this.F=new Z4(this.J,b),g.C(this,this.F),g.DP(this.J,this.F.element,4));g.R(a.experiments,"embeds_enable_muted_autoplay")&&(this.u=new Y4(this.J),g.C(this,this.u),g.DP(this.J,this.u.element,4),this.D=new X4(this.J),g.C(this,this.D),g.DP(this.J,this.D.element,4));if(a.eb||this.u)this.watermark=new a5(this.J),g.C(this,this.watermark),g.DP(this.J,this.watermark.element,7);g.R(a.experiments,"embeds_impression_link")&&(this.C=new W4(this.J,b),
g.C(this,this.C),g.DP(this.J,this.C.element,7));this.B.R(this.J,"appresize",this.Sa);this.B.R(this.J,"presentingplayerstatechange",this.Lf);this.B.R(this.J,"videodatachange",this.hR);this.B.R(this.J,"onMutedAutoplayStarts",this.ZN);this.Pd(g.AJ(this.J));g.tX(this.player,"embed");g.R(a.experiments,"enable_cookie_reissue_iframe")&&a.ie&&!g.wq("__Secure-3PAPISID")&&((new QFa).u.QJ("/client_streamz/youtube/web/debug/third_party_apisid_cookie_reissue_iframe"),a=g.Fe("IFRAME"),a.src="/signin?go=true",a.style.display=
"none",document.body.appendChild(a))};
g.k.Sa=function(){var a=g.fH(this.J).getPlayerSize();this.pd&&this.pd.resize(a)};
g.k.Lf=function(a){this.Pd(a.state)};
g.k.Pd=function(a){g.U(a,128)?(this.pd||(this.pd=new U4(this.J),g.C(this,this.pd),g.DP(this.J,this.pd.element,4)),this.pd.B(a.getData()),this.pd.show(),g.I(this.J.getRootNode(),"ytp-embed-error")):this.pd&&(this.pd.dispose(),this.pd=null,g.Bn(this.J.getRootNode(),"ytp-embed-error"))};
g.k.ZN=function(){this.J.getVideoData().mutedAutoplay&&this.u&&this.watermark&&this.watermark.fa(this.u.bottomButtons,0)};
g.k.hR=function(){var a=this.J.getVideoData();this.watermark&&this.u&&!a.mutedAutoplay&&g.Me(this.u.element,this.watermark.element)&&g.DP(this.J,this.watermark.element,7)};g.GX.embed=b5;})(_yt_player);
