(function(g){var window=this;/* Copyright 2017 Google LLC SPDX-License-Identifier: BSD-3-Clause */ /* SPDX-License-Identifier: Apache-2.0 */ 'use strict';var Wkb=function(a){a.mutedAutoplay=!1;a.endSeconds=NaN;a.limitedPlaybackDurationInSeconds=NaN;g.lN(a)},Xkb=function(){return{I:"svg", Y:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},X:[{I:"path",vc:!0,T:"ytp-svg-fill",Y:{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"}}]}}, Ykb=function(a,b){if(a.Gm&&a.Xr){var c=a.Gm[b]; a=a.Xr[b];c.FI&&c.bE&&(b=c.FI.length-1,C5(c.FI,a,b),C5(c.bE,a,b),c.FI.pop(),c.bE.pop(),b=c.FI[a],null!=b&&b.Xr&&(b.Xr[c.bE[a]]=a))}},Zkb=function(a,b){if(a.Gm&&a.Xr){C5(a.Gm,b,a.Gm.length-1); C5(a.Xr,b,a.Xr.length-1);a.Gm.pop();a.Xr.pop();var c=a.Gm[b];a=a.Xr[b];if(null==c?0:c.bE)c.bE[a]=b}},C5=function(a,b,c){-1===c&&(c=a.length-1); var d=a[b];a[b]=a[c];a[c]=d},$kb=function(a){if(0!==a.state&&!a.isDisposed){if(1===a.state&&a.Gm)for(var b=g.v(a.Gm),c=b.next();!c.done;c=b.next())c=c.value,null!=c.UA&&$kb(c); 2===a.state&&null!=a.UA&&a.UA(a);a.state=0}},alb=function(a,b){a=void 0===a?D5:a; var c=D5;D5=a;try{return b(void 0)}finally{D5=c}},elb=function(a,b){blb(function(){a.S$=0; if(a.zA)for(var c=g.v(a.zA),d=c.next();!d.done;d=c.next())clb(d.value);dlb(a);c=alb(a,b);if(a.Gm&&a.Xr)for(d=a.S$;db;)a.pop()},klb=function(a){a=Array(a); H5(a,0);return a},llb=function(a,b,c){if(null==c)a.removeAttribute(b); else{var d=0===b.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===b.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":null;d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)}},nlb=function(a,b,c){a=a.style; if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var d in c)mlb.call(c,d)&&(b=c[d],0<=d.indexOf("-")?a.setProperty(d,b):a[d]=b)}},olb=function(a,b,c){var d=typeof c; "object"===d||"function"===d?a[b]=c:llb(a,b,c)},I5=function(){var a=new jlb; a.__default=olb;a.style=nlb;return a},plb=function(a,b,c,d){(d[b]||d.__default)(a,b,c)},qlb=function(a){this.created=[]; this.j=[];this.node=a},rlb=function(a,b){this.j=null; this.B=a;this.key=b;this.text=void 0},J5=function(a,b,c){b=new rlb(b,c); return a.__incrementalDOMData=b},K5=function(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData; var c=1===a.nodeType?a.localName:a.nodeName,d=1===a.nodeType?a.getAttribute("key"):null;b=J5(a,c,1===a.nodeType?d||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){d=b.j||(b.j=klb(2*c));for(var e=0,f=0;ec.Hz;c={Hz:c.Hz},c.Hz++){var d= new g.X({I:"a",T:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.ea,"aria-label":"{{aria_label}}"},X:[{I:"div",T:"ytp-suggestion-image",X:[{I:"div",Y:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration",Aa:"{{duration}}"}]},{I:"div",T:"ytp-suggestion-title",Y:{title:"{{hover_title}}"},Aa:"{{title}}"},{I:"div",T:"ytp-suggestion-author",Aa:"{{views_or_author}}"}]});g.H(this,d);d.Ha(this.suggestions.element);var e=d.Ia("ytp-suggestion-link");g.zo(e,"transitionDelay",c.Hz/20+"s");this.G.V(e,"click", function(f){return function(h){var l=f.Hz,m=b.suggestionData[l],n=m.sessionData;g.zL(b.api.W())&&b.api.N("web_player_log_click_before_generating_ve_conversion_params")?(b.api.ub(b.j[l].element),l=m.Sk(),m={},g.VMa(b.api,m,"emb_rel_err"),l=g.dk(l,m),g.xS(l,b.api,h)):g.wS(h,b.api,b.ea,n||void 0)&&b.api.Go(m.videoId,n,m.playlistId)}}(c)); this.j.push(d)}g.H(this,this.next);this.next.Ha(this.element);this.next.Ua("click",this.n1,this);this.G.V(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.rb().getPlayerSize());this.onVideoDataChange();this.show()},smb=function(a,b){if(a.api.W().N("web_player_log_click_before_generating_ve_conversion_params"))for(var c=Math.floor(-a.C/(a.D+a.B)),d=Math.min(c+a.columns,a.suggestionData.length)-1;c<=d;c++)a.api.Ya(a.j[c].element,b)},tmb=function(a){a.next.element.style.bottom= a.K+"px"; a.previous.element.style.bottom=a.K+"px";var b=a.C,c=a.containerWidth-a.suggestionData.length*(a.D+a.B);g.rr(a.element,"ytp-scroll-min",0<=b);g.rr(a.element,"ytp-scroll-max",b<=c)},umb=function(a){for(var b=0;b=b&&a.j?i6(a):a.j&&a.j.start()}},i6=function(a){a.j&&(a.j.dispose(),a.j=null,a.B=!1)},Hmb=function(a){g.fT.call(this,a); this.J=a;this.j=new g.wJ(this);this.B=null;this.S=!1;this.countdownTimer=null;this.ea=!1;Gmb(this);g.H(this,this.j);this.load()},Jmb=function(a){var b=g.Ebb(a.J); b!==a.ea&&(a.ea=b,a.G&&(a.G.dispose(),a.G=null),a.C&&(a.C.dispose(),a.C=null),a.D&&(a.D.dispose(),a.D=null),a.B&&(a.B.stop(),a.B.dispose(),a.B=null),b&&(b=g.NR(a.J),g.bS(a.J)&&(a.D=new g.X({I:"div",T:"ytp-pause-overlay-backdrop",Y:{tabIndex:"-1"}}),g.H(a,a.D),g.eS(a.J,a.D.element,4),a.B=new g.EQ(a.D,1E3,!1,100),g.H(a,a.B),a.D.hide()),a.G=new g.X({I:"div",T:"ytp-pause-overlay-container",Y:{tabIndex:"-1"}}),g.H(a,a.G),a.J.N("embeds_web_enable_keto_pause_overlay")?Plb(a.G.element,$5(qmb,{J:a.J,wb:b})): (a.C=new g6(a.J,b),g.H(a,a.C),a.C.Ha(a.G.element)),g.eS(a.J,a.G.element,4),Imb(a,a.J.Lb())))},Imb=function(a,b){a.B&&(!g.DO(b,4)&&!g.DO(b,2)||g.DO(b,1024)?a.B.hide():a.B.show())},Gmb=function(a){var b=a.J; a=!!g.bS(b);g.rr(b.getRootNode(),"ytp-shorts-mode",a);if(b=b.getVideoData())b.eU=a},j6=function(a,b){a={adSource:"EMBEDS_AD_SOURCE_YOUTUBE", breakType:0===a.J.getCurrentTime()?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":0===a.J.getPlayerState()?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.afa(a.J.W().loaderUrl),eventType:b,youtubeHost:g.Qj(a.J.W().Oa)||""};g.tC("embedsAdEvent",a)};var D5,E5=null;var Tlb=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var F5={Bfb:function(){}, Fdb:function(){}, Gdb:function(){}, Afb:function(){}, Jdb:function(){}, JU:function(){}, Hdb:function(){}, X4:function(){}, fz:function(){}, SG:function(){}, Z4:function(a){a.rU=!0}, Y4:function(){}};G5.prototype.fz=function(){}; G5.prototype.X4=function(){}; G5.prototype.SG=function(){}; G5.prototype.Y4=function(){};var mlb=Object.prototype.hasOwnProperty;jlb.prototype=Object.create(null);var Rlb=I5();var U5=null;var vlb="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};var N5=null,M5=null,L5=null,R5=null,S5=[],Q5=slb,T5=[],P5=!1,Olb=function(a){return wlb(function(b,c,d){L5=M5=b;M5=null;c(d);null!=a&&a.Cfb||(O5(null),M5=L5,L5=L5.parentNode);return b},a)}(),Nlb=function(a){return wlb(function(b,c,d){var e={nextSibling:b}; M5=e;c(d);L5&&O5(b.nextSibling);return e===M5?null:M5},a)}();var V5=[],Slb=0;var Z5=new jlb;var W5={GC:!1,attributes:I5(),LH:function(a,b){throw b;}, Tdb:function(){return!1}, wZ:function(){throw Error("renderComponent not implemented");}, ffb:function(){return!1}, iaa:function(a){if(W5.GC)return a}, j5:g.Rbb},Alb=[];var a6=null;g.x(Clb,G5);Clb.prototype.NA=function(a){a6=this;this.D=0;try{return this.G(a)}finally{a6=null}};var Qlb=Symbol("ATTR_TAG_VALUE");var Hlb={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,"aria-selected":1, "aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:3,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1, itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:3,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:11,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},Glb={a:{href:[{Ed:3}]},area:{href:[{Ed:3}]},audio:{src:[{Ed:3}]},button:{formaction:[{Ed:3}], formmethod:[{Ed:1}]},form:{action:[{Ed:3}],method:[{Ed:1}]},iframe:{srcdoc:[{Ed:2}]},img:{src:[{Ed:3}]},input:{accept:[{Ed:1}],formaction:[{Ed:3}],formmethod:[{Ed:1}],pattern:[{Ed:1}],readonly:[{Ed:1}],src:[{Ed:3}]},link:{href:[{Ed:3,di:"rel",Hi:"alternate"},{Ed:3,di:"rel",Hi:"author"},{Ed:3,di:"rel",Hi:"bookmark"},{Ed:3,di:"rel",Hi:"canonical"},{Ed:3,di:"rel",Hi:"cite"},{Ed:3,di:"rel",Hi:"help"},{Ed:3,di:"rel",Hi:"icon"},{Ed:3,di:"rel",Hi:"license"},{Ed:3,di:"rel",Hi:"next"},{Ed:3,di:"rel",Hi:"prefetch"}, {Ed:3,di:"rel",Hi:"dns-prefetch"},{Ed:3,di:"rel",Hi:"prerender"},{Ed:3,di:"rel",Hi:"preconnect"},{Ed:3,di:"rel",Hi:"preload"},{Ed:3,di:"rel",Hi:"prev"},{Ed:3,di:"rel",Hi:"search"},{Ed:3,di:"rel",Hi:"subresource"}]},script:{defer:[{Ed:1}]},source:{src:[{Ed:3}]},textarea:{readonly:[{Ed:1}]},video:{src:[{Ed:3}]}};g.qs.getInstance();X5.prototype.toString=function(){return this.cX};var Kmb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,k6={},Jlb=(k6[1]={zq:null,Rt:null,ys:null},k6[2]={zq:function(a,b,c){return g.ye(c)}, Rt:function(a){return a instanceof g.ke}, ys:function(a){return g.le(a)}},k6[3]={zq:function(a,b,c){return Kmb.test(c)?c:g.je.toString()}, Rt:function(a){return a instanceof g.Yd}, ys:function(a){return g.Zd(a)}},k6[4]={zq:function(){return g.je.toString()}, Rt:function(a){return a instanceof g.Td}, ys:function(a){return g.Ud(a).toString()}},k6[5]={zq:null, Rt:null,ys:null},k6[7]={zq:null,Rt:null,ys:null},k6[8]={zq:null,Rt:null,ys:null},k6[10]={zq:null,Rt:function(a){return a instanceof X5||a instanceof g.Pd}, ys:function(a){if(a instanceof g.Pd)a=g.Qd(a);else{if(!(a instanceof X5&&a.constructor===X5))throw Error("Unwrap non-TrustedId");a=a.cX}return a}},k6);var Lmb=I5(),Vlb=Lmb.__default,Wlb=Lmb.style,Mmb={};Blb({attributes:(Mmb.__default=function(){return Llb},Mmb.style=function(){return Llb},Mmb)}); var Ulb="A reference returned by useRootElement was passed to the el prop of an element. Pass a reference returned by useElement.";var amb=[];var Nmb=I5();W5.wZ=function(a){var b=a.type,c=b.yL;if(Flb(b)||W5.GC){0 or .");var e=Y5(d);if(!e)throw Error("Function component did not return an intrinsic root element");if(c.C){if(d.props.el)throw Error("Tried to place reference on an element already referenced with useRootElement"); var f,h;null==(h=(f=c.C).HY)||h.call(f,e)}b.yL=e.tagName.toLowerCase();e.__instance=c;c.el=e;c.fz();F5.fz(c)}}else{var l=ulb(c,a.props.idomKey);a.kq=!0;Ylb(c,function(){if(!l.__instance){var m=Zlb(b,a.props);l.__instance=m;m.el=l;m.props=null}m=l.__instance;null!=m.j||(m.j={fP:m.state,iX:!1});var n=m.j.fP;m.j=void 0;var p,q=null!=(p=null==a?void 0:a.props)?p:m.props;null!=n||(n=m.state);p=m.constructor;p.J5&&(n=p.J5(q,n));m.props=q;m.state=n;if(n=Xlb(m))a&&(n.kq=a.kq),Y5(n),a&&(a.kq=n.kq);m.fz(); F5.fz(m)}); a.kq&&(O5(null),M5=L5,L5=L5.parentNode,a.kq=!1)}}else Y5(b(a.props))}; W5.GC=!0;W5.attributes=Nmb;for(var Omb=g.v(Alb),Pmb=Omb.next();!Pmb.done;Pmb=Omb.next()){var Qmb=Pmb.value;Qmb.attributes&&zlb(Qmb.attributes)}(function(){var a=U5;U5=function(b){null==a||a(b);bmb(b)}})();var emb="Hook called out of order. Hooks must be invoked unconditionally and in the same order every render. This could happen if you conditionally invoke a hook.",dmb="A valid hook context was not found. Please ensure you are using components from TSX and not invoking the component function directly";Blb({vZ:{JU:function(a){var b;(null==(b=a.yy)?0:b.length)&&kmb(a.yy)}, fz:function(a){var b;(null==(b=a.yy)?0:b.length)&&kmb(a.yy)}, SG:function(a){var b;(null==(b=a.xD)?0:b.length)&&a.xD.forEach(jmb)}, Z4:function(a){var b;(null==(b=a.fG)?0:b.length)&&kmb(a.fG)}}});g.x(rmb,g.X);g.k=rmb.prototype;g.k.hide=function(){this.S=!0;g.X.prototype.hide.call(this);smb(this,!1)}; g.k.show=function(){this.S=!1;g.X.prototype.show.call(this);smb(this,!0)}; g.k.isHidden=function(){return this.S}; g.k.n1=function(){this.scrollTo(this.C-this.containerWidth)}; g.k.o1=function(){this.scrollTo(this.C+this.containerWidth)}; g.k.resize=function(a,b){var c=this.api.W(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.suggestionData.length,this.j.length);if(150>=Math.min(a.width,a.height)||0===h||!c.Sd)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;a=a.width-(48+l+m);l=Math.ceil(a/150);l=Math.min(3,l);m=a/l-this.B;var q=Math.floor(m/d);b&&q+100>b&&50m||g.aS(this.api)?this.hide():this.show();for(b=0;bm?"none":""}h=e+n+p+4;this.K=h+c+(q-f)/2;this.suggestions.element.style.height=q+h+"px";this.D=m;this.containerWidth=a;this.columns=l;this.C=0;this.suggestions.element.scrollLeft= -0;tmb(this)}}; g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.W();this.ea=a.Hd?!1:b.D;a.suggestions?this.suggestionData=g.tp(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0; umb(this);a.Hd?this.title.update({title:g.RO("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"More videos on YouTube"})}; g.k.scrollTo=function(a){a=g.oe(a,this.containerWidth-this.suggestionData.length*(this.D+this.B),0);this.va.start(this.C,a,1E3);this.C=a;tmb(this);smb(this,!0)};g.x(b6,g.BT);b6.prototype.show=function(){g.BT.prototype.show.call(this);wmb(this,this.api.rb().getPlayerSize())}; b6.prototype.resize=function(a){g.BT.prototype.resize.call(this,a);this.j&&(wmb(this,a),g.rr(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))}; b6.prototype.B=function(a){g.BT.prototype.B.call(this,a);var b=this.api.getVideoData();if(b.fC||b.playerErrorMessageRenderer)(a=b.fC)?zmb(this,a):b.playerErrorMessageRenderer&&zmb(this,b.playerErrorMessageRenderer);else{var c;a.cn&&(b.ey?xmb(b.ey)?c=g.yG(b.ey):c=g.CT(g.xG(b.ey)):c=g.CT(a.cn),this.xe(c,"subreason"))}};g.x(c6,g.X);c6.prototype.cj=function(){this.api.Lb().isCued()||(this.hide(),this.api.Ya(this.element,!1))}; c6.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.W(),c=this.api.getVideoData().Hd,d=b.Zd,e=!b.Sd,f=this.wb.Mg(),h=g.IL(b);b=b.C;d||f||c||e||h||b||g.bS(this.api)||!a.videoId?(this.hide(),this.api.Ya(this.element,!1)):(a=Amb(this),this.updateValue("url",a),this.show())}; c6.prototype.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.ub(this.element);var b=Amb(this);g.xS(b,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.ub(this.element)}; c6.prototype.show=function(){this.api.Lb().isCued()&&(g.X.prototype.show.call(this),this.api.sj(this.element)&&this.api.Ya(this.element,!0))};g.x(d6,g.X);d6.prototype.cj=function(){var a=this.api.Lb();!this.api.Ph()||g.DO(a,2)&&g.YR(this.api)||g.DO(a,64)?(this.api.Ya(this.j,!1),this.api.Ya(this.forwardButton,!1),this.hide()):(this.show(),this.api.Ya(this.j,!0),this.api.Ya(this.forwardButton,!0))}; d6.prototype.B=function(){this.api.seekBy(-10*this.api.getPlaybackRate());this.api.ub(this.j)}; d6.prototype.C=function(){this.api.seekBy(10*this.api.getPlaybackRate());this.api.ub(this.forwardButton)};g.x(e6,g.X);e6.prototype.C=function(){var a=this.api.Lb(),b=this.api.getVideoData();this.api.W().N("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.DO(a,2)&&!this.Gb?(this.show(),this.j||(this.j=new g.zT(this.api),g.H(this,this.j),this.j.Ha(this.D,0),this.j.show()),a=this.api.getVideoData(),this.updateValue("text",a.v0),g.rr(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.Ya(this.element,this.Gb),this.api.Ra("onMutedAutoplayEnds")):this.hide())}; e6.prototype.onClick=function(){if(!this.B){this.j&&(this.j.ya(),this.j=null);g.rr(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();Wkb(a);this.api.loadVideoById(a.videoId,b);this.api.dA();this.api.ub(this.element);this.hide();this.B=!0}}; e6.prototype.onMutedAutoplayStarts=function(){this.B=!1;this.j&&(this.j.ya(),this.j=null)};g.x(f6,g.X);g.k=f6.prototype;g.k.Y_=function(){var a=this.api.getVideoData(),b=this.api.getVideoData(1).Hd,c=this.api.W();b=c.Zd&&!g.DO(this.state,2)&&!(b&&c.va);a.mutedAutoplay||g.eQ(this,b);this.api.Ya(this.element,b)}; g.k.onStateChange=function(a){this.Ec(a.state)}; g.k.Ec=function(a){this.state!==a&&(this.state=a);this.Y_()}; g.k.onVideoDataChange=function(){var a=this.api.W();a.C&&g.nr(this.element,"ytp-no-hover");this.api.getVideoData().videoId&&!a.C?(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a),this.j||(this.j=this.Ua("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Nc(this.j),this.j=null)}; g.k.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.ub(this.element);var b=this.api.getVideoUrl(!g.PQ(a),!1,!0,!0);if(this.api.N("web_player_log_click_before_generating_ve_conversion_params")){var c={};g.LR(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.dk(b,g.ER(c,"emb_yt_watermark"))}g.xS(b,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.ub(this.element)}; g.k.Mb=function(a){if((a=480>a.width)&&!this.B||!a&&this.B){var b=new g.X(Xkb()),c=this.Ia("ytp-watermark");g.rr(c,"ytp-watermark-small",a);g.We(c);b.Ha(c);this.B=a}};g.x(Dmb,g.X);g.k=Dmb.prototype;g.k.FK=function(){var a=this.api.Lb(),b=this.api.getVideoData();this.api.W().N("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.DO(a,2)?this.Gb||(g.X.prototype.show.call(this),this.api.Ya(this.element,this.Gb)):this.hide()}; g.k.z6=function(){this.j&&this.j.hide()}; g.k.onAutoplayBlocked=function(){this.hide();Wkb(this.api.getVideoData())}; g.k.onClick=function(){if(!this.B){g.rr(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();Wkb(a);this.api.loadVideoById(a.videoId,b);this.api.dA();this.api.ub(this.element);this.api.Ra("onMutedAutoplayEnds");this.B=!0}}; g.k.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.ya(),this.watermark=null)};g.x(g6,g.X);g6.prototype.hide=function(){g.pr(this.api.getRootNode(),"ytp-expand-pause-overlay");g.X.prototype.hide.call(this)}; g6.prototype.G=function(){this.B=!0;g.pr(this.api.getRootNode(),"ytp-expand-pause-overlay");g.bS(this.api)&&this.api.Ya(this.element,!1);this.expandButton.focus()}; g6.prototype.K=function(){this.B=!1;g.nr(this.api.getRootNode(),"ytp-expand-pause-overlay");g.bS(this.api)&&this.api.Ya(this.element,!0);this.focus()}; g6.prototype.Ta=function(a){a=this.api.W().N("embeds_web_enable_pause_overlay_wn_update")?this.api.Lb():a.state;g.DO(a,1)||g.DO(a,16)||g.DO(a,32)||(!g.DO(a,4)||g.DO(a,2)||g.DO(a,1024)?(this.B||this.api.Ya(this.element,!1),this.D.hide()):0b.limitedPlaybackDurationInSeconds||g.aS(this.J)||(b=Math.max(1E3*(b.startSeconds+b.limitedPlaybackDurationInSeconds-5), 0),b=new g.rG(b,b+5E3,{id:"countdown timer",namespace:"embeds"}),this.J.jf([b]))),Gmb(this),Jmb(this));this.J.W().C&&this.C&&this.C.detach()}; g.k.onAdStart=function(){j6(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}; g.k.onAdComplete=function(){j6(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}; g.k.onAdSkip=function(){j6(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}; g.k.onAdStateChange=function(a){2===a&&j6(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.eT("embed",Hmb);})(_yt_player);