(function(g){var window=this;/* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright 2017 Google LLC SPDX-License-Identifier: BSD-3-Clause */ 'use strict';var snb=function(a){a.mutedAutoplay=!1;a.endSeconds=NaN;a.limitedPlaybackDurationInSeconds=NaN;g.bT(a)},tnb=function(){return{I:"svg", X:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},V:[{I:"path",zc:!0,S:"ytp-svg-fill",X:{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"}}]}}, unb=function(a){var b=l5; try{return l5=!1,a()}finally{l5=b}},vnb=function(a){var b=l5; try{return l5=!0,a()}finally{l5=b}},wnb=function(a,b){var c=g.Ka.apply(2,arguments),d; b=null!=(d=b)?d:{};return{type:a,props:b,children:c}},xnb=function(a){return a.children},ynb=function(a){var b={},c; for(c in a)b={OQ:b.OQ,FP:b.FP},b.OQ=m5[c],b.FP=a[c],m5[c]=function(d){return function(){var e=g.Ka.apply(0,arguments);d.OQ.apply(null,g.qa(e));d.FP.apply(null,g.qa(e))}}(b)},n5=function(a){function b(){return void znb(c)} var c=Anb();Bnb(c,function(){return void a(b,c)})},Cnb=function(a){if(o5){var b; (b=o5).PC||(b.PC=[]);o5.PC.push(a)}},Bnb=function(a,b){var c=o5; o5=a;try{return b()}finally{o5=c}},Anb=function(){var a={}; Dnb(a);return a},Dnb=function(a){if(o5){var b; (b=o5).PE||(b.PE=[]);o5.PE.push(a)}},Enb=function(a){var b; null==(b=a.PE)||b.forEach(znb);a.PE&&(a.PE=[]);if(a.PC){b=g.v(a.PC);for(var c=b.next();!c.done;c=b.next())c=c.value,c();a.PC=[]}},znb=function(a){if(!a.isDisposed){a.isDisposed=!0; var b;null==(b=a.d9)||b.call(a);Enb(a)}},Fnb=function(a,b){return Object.is(a,b)},p5=function(a){var b=Gnb; Gnb=a;return b},Hnb=function(a){a.fm=!0; if(void 0!==a.ek){var b=q5;q5=!0;try{for(var c=g.v(a.ek),d=c.next();!d.done;d=c.next()){var e=d.value;e.fm||Hnb(e)}}finally{q5=b}}var f;null==(f=a.BV)||f.call(a,a)},Inb=function(a){a&&(a.GP=0); return p5(a)},Lnb=function(a,b){p5(b); if(a&&void 0!==a.vk&&void 0!==a.Fr&&void 0!==a.aB){if(Jnb(a))for(b=a.GP;ba.GP;)a.vk.pop(),a.aB.pop(),a.Fr.pop()}},Mnb=function(a){r5(a); for(var b=0;bb;)a.pop()},Ynb=function(a){a=Array(a); v5(a,0);return a},Znb=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)}},aob=function(a,b,c){a=a.style; if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var d in c)if($nb.call(c,d)){b=d;var e=c[d];0<=b.indexOf("-")?a.setProperty(b,e):a[b]=e}}},bob=function(a,b,c){var d=typeof c; "object"===d||"function"===d?a[b]=c:Znb(a,b,c)},cob=function(){var a=new Xnb; a.__default=bob;a.style=aob;return a},dob=function(a,b,c,d){(d[b]||d.__default)(a,b,c)},eob=function(a){this.created=[]; this.j=[];this.node=a},fob=function(a,b){this.j=null; this.B=a;this.key=b;this.text=void 0},gob=function(a,b,c){b=new fob(b,c); return a.__incrementalDOMData=b},w5=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=gob(a,c,1===a.nodeType?d||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){d=b.j||(b.j=Ynb(2*c));for(var e=0,f=0;ep-l)for(q=a[h];lc.Kz;c={Kz:c.Kz},c.Kz++){var d=new g.V({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image",V:[{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",xa:"{{duration}}"}]},{I:"div", S:"ytp-suggestion-title",X:{title:"{{hover_title}}"},xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{views_or_author}}"}]});g.L(this,d);d.Da(this.suggestions.element);var e=d.Ha("ytp-suggestion-link");g.Vr(e,"transitionDelay",c.Kz/20+"s");this.G.T(e,"click",function(f){return function(h){var l=f.Kz,m=b.suggestionData[l],n=m.sessionData;g.VR(b.api.U())&&b.api.L("web_player_log_click_before_generating_ve_conversion_params")?(b.api.logClick(b.j[l].element),l=m.Tk(),m={},g.QSa(b.api,m,"emb_rel_err"), l=g.Ml(l,m),g.FU(l,b.api,h)):g.EU(h,b.api,b.Y,n||void 0)&&b.api.Fo(m.videoId,n,m.playlistId)}}(c)); this.j.push(d)}g.L(this,this.next);this.next.Da(this.element);this.next.Ta("click",this.P1,this);this.G.T(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.kb().getPlayerSize());this.onVideoDataChange();this.show()},spb=function(a,b){if(a.api.U().L("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.logVisibility(a.j[c].element,b)},tpb=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.Nu(a.element,"ytp-scroll-min",0<=b);g.Nu(a.element,"ytp-scroll-max",b<=c)},upb=function(a){for(var b=0;b=b&&a.j?e6(a):a.j&&a.j.start()}},e6=function(a){a.j&&(a.j.dispose(),a.j=null,a.B=!1)},Hpb=function(a){g.vV.call(this,a); this.J=a;this.j=new g.GK(this);this.B=null;this.N=!1;this.countdownTimer=null;this.Y=!1;Gpb(this);g.L(this,this.j);this.load()},Jpb=function(a){var b=g.keb(a.J); b!==a.Y&&(a.Y=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.aU(a.J),g.lU(a.J)&&(a.D=new g.V({I:"div",S:"ytp-pause-overlay-backdrop",X:{tabIndex:"-1"}}),g.L(a,a.D),g.oU(a.J,a.D.element,4),a.B=new g.yG(a.D,1E3,!1,100),g.L(a,a.B),a.D.hide()),a.G=new g.V({I:"div",S:"ytp-pause-overlay-container",X:{tabIndex:"-1"}}),g.L(a,a.G),a.J.L("embeds_web_enable_keto_pause_overlay")?Oob(a.G.element,M5(qpb,{J:a.J,od:b})): (a.C=new c6(a.J,b),g.L(a,a.C),a.C.Da(a.G.element)),g.oU(a.J,a.G.element,4),Ipb(a,a.J.Qb())))},Ipb=function(a,b){a.B&&(!g.FG(b,4)&&!g.FG(b,2)||g.FG(b,1024)?a.B.hide():a.B.show())},Gpb=function(a){var b=a.J; a=!!g.lU(b);g.Nu(b.getRootNode(),"ytp-shorts-mode",a);if(b=b.getVideoData())b.BU=a},f6=function(a,b){var c=a.J.U(); 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.U().loaderUrl),eventType:b,youtubeHost:g.Gl(a.J.U().Ka)||""};a.embeddedPlayerMode=c.Fa;g.cD("embedsAdEvent",a)};var l5=!1;var m5={hhb:function(){}, jjb:function(){}, khb:function(){}, fV:function(){}, ihb:function(){}, t5:function(){}, XC:function(){}, oH:function(){}, u5:function(){}};var o5=null;var Gnb=null,q5=!1,Pnb=Symbol("SIGNAL"),Kpb={version:0,JX:0,fm:!1,vk:void 0,aB:void 0,Fr:void 0,GP:0,ek:void 0,qw:void 0,zV:!1,AV:!1,KZ:function(){return!1}, LZ:function(){}, BV:function(){}, uhb:function(){}};var Lpb=Symbol("UNSET"),Mpb=Symbol("COMPUTING"),Npb=Symbol("ERRORED");Object.assign({},Kpb,{value:Lpb,fm:!0,error:null,XV:Fnb,KZ:function(a){return a.value===Lpb||a.value===Mpb}, LZ:function(a){if(a.value===Mpb)throw Error("Detected cycle in computations.");var b=a.value;a.value=Mpb;var c=Inb(a);try{var d=a.shb()}catch(e){d=Npb,a.error=e}finally{Lnb(a,c)}b!==Lpb&&b!==Npb&&d!==Npb&&a.XV(b,d)?a.value=b:(a.value=d,a.version++)}});Object.assign({},Kpb,{XV:Fnb,value:void 0});var Nnb=Object.assign({},Kpb,{AV:!0,zV:!1,BV:function(a){null!==a.schedule&&a.schedule(a.eB)}, iX:!1,Qy:Onb});var Rnb={},Tnb=new Set,s5=new Set;u5.prototype.XC=function(){}; u5.prototype.t5=function(){}; u5.prototype.oH=function(){}; u5.prototype.u5=function(){};var $nb=Object.prototype.hasOwnProperty;Xnb.prototype=Object.create(null);var Qob=cob();var G5=null;var kob="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};var z5=null,B5=null,x5=null,D5=null,E5=[],C5=hob,F5=[],Nob=function(a){return lob(function(b,c,d){x5=B5=b;B5=null;c(d);A5(null);B5=x5;x5=x5.parentNode;return b},a)}(),Mob=function(a){return lob(function(b,c,d){var e={nextSibling:b}; B5=e;c(d);x5&&A5(b.nextSibling);return e===B5?null:B5},a)}();var H5=[],Rob=0;var S5=new Xnb;var I5={attributes:cob(),PD:function(a,b){throw b;}, sO:function(){return!1}, E5:g.xeb},oob=[];var J5=null;g.w(K5,u5);K5.prototype.Zw=function(a){var b=this,c=J5;J5=this;this.D=0;try{return Bnb(this.K,function(){return b.B(a)})}finally{J5=c}};var tob=[];(function(){var a=G5;G5=function(b){null==a||a(b);uob(b)}})(); var L5=wnb;var T5;var Hob=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 Bob={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},Aob={a:{href:[{zd:3}]},area:{href:[{zd:3}]},audio:{src:[{zd:3}]},button:{formaction:[{zd:3}], formmethod:[{zd:1}]},form:{action:[{zd:3}],method:[{zd:1}]},iframe:{srcdoc:[{zd:2}]},img:{src:[{zd:3}]},input:{accept:[{zd:1}],formaction:[{zd:3}],formmethod:[{zd:1}],pattern:[{zd:1}],readonly:[{zd:1}],src:[{zd:3}]},link:{href:[{zd:3,Xh:"rel",Bi:"alternate"},{zd:3,Xh:"rel",Bi:"author"},{zd:3,Xh:"rel",Bi:"bookmark"},{zd:3,Xh:"rel",Bi:"canonical"},{zd:3,Xh:"rel",Bi:"cite"},{zd:3,Xh:"rel",Bi:"help"},{zd:3,Xh:"rel",Bi:"icon"},{zd:3,Xh:"rel",Bi:"license"},{zd:3,Xh:"rel",Bi:"next"},{zd:3,Xh:"rel",Bi:"prefetch"}, {zd:3,Xh:"rel",Bi:"dns-prefetch"},{zd:3,Xh:"rel",Bi:"prerender"},{zd:3,Xh:"rel",Bi:"preconnect"},{zd:3,Xh:"rel",Bi:"preload"},{zd:3,Xh:"rel",Bi:"prev"},{zd:3,Xh:"rel",Bi:"search"},{zd:3,Xh:"rel",Bi:"subresource"}]},script:{defer:[{zd:1}]},source:{src:[{zd:3}]},textarea:{readonly:[{zd:1}]},video:{src:[{zd:3}]}};g.wv.getInstance();P5.prototype.toString=function(){return this.zX};var Opb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,g6={},Dob=(g6[1]={Fq:null,Ht:null,Vr:null},g6[2]={Fq:function(){return g.de.toString()}, Ht:function(a){return a instanceof g.he}, Vr:function(a){return g.ie(a)}},g6[3]={Fq:function(a,b,c){return Opb.test(c)?c:g.de.toString()}, Ht:function(a){return a instanceof g.Yd}, Vr:function(a){return g.Zd(a)}},g6[4]={Fq:function(){return g.de.toString()}, Ht:function(a){return a instanceof g.Vd}, Vr:function(a){return g.Wd(a)}},g6[5]={Fq:null, Ht:null,Vr:null},g6[7]={Fq:null,Ht:null,Vr:null},g6[8]={Fq:null,Ht:null,Vr:null},g6[10]={Fq:null,Ht:function(a){return a instanceof P5||a instanceof g.Pd}, Vr:function(a){if(a instanceof g.Pd)a=g.Qd(a);else{if(!(a instanceof P5&&a.constructor===P5))throw Error("Unwrap non-TrustedId");a=a.zX}return a}},g6);var Ppb=cob(),Iob=Ppb.__default,Job=Ppb.style;var Pob=Symbol("ATTR_TAG_VALUE");var Qpb={};pob({attributes:(Qpb.__default=function(){return Q5},Qpb.style=function(){return Q5},Qpb)});I5.sO=Vob;T5=Xob;I5.sO=Vob;pob({RZ:{fV:function(a){var b;(null==(b=a.Dy)?0:b.length)&&dpb(a.Dy)}, XC:function(a){var b;(null==(b=a.Dy)?0:b.length)&&dpb(a.Dy)}, oH:function(a){var b;(null==(b=a.Gz)?0:b.length)&&a.Gz.forEach(cpb)}}});var jpb=[],kpb=!1;g.w(rpb,g.V);g.k=rpb.prototype;g.k.hide=function(){this.N=!0;g.V.prototype.hide.call(this);spb(this,!1)}; g.k.show=function(){this.N=!1;g.V.prototype.show.call(this);spb(this,!0)}; g.k.isHidden=function(){return this.N}; g.k.P1=function(){this.scrollTo(this.C-this.containerWidth)}; g.k.Q1=function(){this.scrollTo(this.C+this.containerWidth)}; g.k.resize=function(a,b){var c=this.api.U(),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.ge)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.kU(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;tpb(this)}}; g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.U();this.Y=a.Ld?!1:b.D;a.suggestions?this.suggestionData=g.Zs(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0; upb(this);a.Ld?this.title.update({title:g.bK('\u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435 "$DNI_RELATED_CHANNEL"',{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u044d\u0442\u0438 \u0440\u043e\u043b\u0438\u043a\u0438"})}; g.k.scrollTo=function(a){a=g.le(a,this.containerWidth-this.suggestionData.length*(this.D+this.B),0);this.ma.start(this.C,a,1E3);this.C=a;tpb(this);spb(this,!0)};g.w(Y5,g.QV);Y5.prototype.show=function(){g.QV.prototype.show.call(this);wpb(this,this.api.kb().getPlayerSize())}; Y5.prototype.resize=function(a){g.QV.prototype.resize.call(this,a);this.j&&(wpb(this,a),g.Nu(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))}; Y5.prototype.B=function(a){g.QV.prototype.B.call(this,a);var b=this.api.getVideoData();if(b.sC||b.playerErrorMessageRenderer)(a=b.sC)?zpb(this,a):b.playerErrorMessageRenderer&&zpb(this,b.playerErrorMessageRenderer);else{var c;a.dn&&(b.iy?xpb(b.iy)?c=g.aG(b.iy):c=g.RV(g.$F(b.iy)):c=g.RV(a.dn),this.Yd(c,"subreason"))}};g.w(Z5,g.V);Z5.prototype.jk=function(){this.api.Qb().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))}; Z5.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.U(),c=this.api.getVideoData().Ld,d=b.ze,e=!b.ge,f=this.od.Kf(),h=g.dS(b);b=b.C;d||f||c||e||h||b||g.lU(this.api)||!a.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(a=Apb(this),this.updateValue("url",a),this.show())}; Z5.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=Apb(this);g.FU(b,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Z5.prototype.show=function(){this.api.Qb().isCued()&&(g.V.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.w($5,g.V);$5.prototype.jk=function(){var a=this.api.Qb();!this.api.Nh()||g.FG(a,2)&&g.hU(this.api)||g.FG(a,64)?(this.api.logVisibility(this.j,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.j,!0),this.api.logVisibility(this.forwardButton,!0))}; $5.prototype.B=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.j)}; $5.prototype.C=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.w(a6,g.V);a6.prototype.C=function(){var a=this.api.Qb(),b=this.api.getVideoData();this.api.U().L("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.FG(a,2)&&!this.Cb?(this.show(),this.j||(this.j=new g.OV(this.api),g.L(this,this.j),this.j.Da(this.D,0),this.j.show()),a=this.api.getVideoData(),this.updateValue("text",a.R0),g.Nu(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,this.Cb),this.api.Qa("onMutedAutoplayEnds")):this.hide())}; a6.prototype.onClick=function(){if(!this.B){this.j&&(this.j.ya(),this.j=null);g.Nu(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();snb(a);this.api.loadVideoById(a.videoId,b);this.api.jA();this.api.logClick(this.element);this.hide();this.B=!0}}; a6.prototype.onMutedAutoplayStarts=function(){this.B=!1;this.j&&(this.j.ya(),this.j=null)};g.w(b6,g.V);g.k=b6.prototype;g.k.x0=function(){var a=this.api.getVideoData(),b=this.api.getVideoData(1).Ld,c=this.api.U();b=c.ze&&!g.FG(this.state,2)&&!(b&&c.ma);a.mutedAutoplay||g.WF(this,b);this.api.logVisibility(this.element,b)}; g.k.onStateChange=function(a){this.Bc(a.state)}; g.k.Bc=function(a){this.state!==a&&(this.state=a);this.x0()}; g.k.onVideoDataChange=function(){var a=this.api.U();a.C&&g.Ju(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.Ta("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Kc(this.j),this.j=null)}; g.k.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.getVideoUrl(!g.PG(a),!1,!0,!0);if(this.api.L("web_player_log_click_before_generating_ve_conversion_params")){var c={};g.XT(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.Ml(b,g.uP(c,"emb_yt_watermark"))}g.FU(b,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; g.k.Hb=function(a){if((a=480>a.width)&&!this.B||!a&&this.B){var b=new g.V(tnb()),c=this.Ha("ytp-watermark");g.Nu(c,"ytp-watermark-small",a);g.of(c);b.Da(c);this.B=a}};g.w(Dpb,g.V);g.k=Dpb.prototype;g.k.tL=function(){var a=this.api.Qb(),b=this.api.getVideoData();this.api.U().L("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.FG(a,2)?this.Cb||(g.V.prototype.show.call(this),this.api.logVisibility(this.element,this.Cb)):this.hide()}; g.k.n7=function(){this.j&&this.j.hide()}; g.k.onAutoplayBlocked=function(){this.hide();snb(this.api.getVideoData())}; g.k.onClick=function(){if(!this.B){g.Nu(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();snb(a);this.api.loadVideoById(a.videoId,b);this.api.jA();this.api.logClick(this.element);this.api.Qa("onMutedAutoplayEnds");this.B=!0}}; g.k.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.ya(),this.watermark=null)};g.w(c6,g.V);c6.prototype.hide=function(){g.Lu(this.api.getRootNode(),"ytp-expand-pause-overlay");g.V.prototype.hide.call(this)}; c6.prototype.G=function(){this.B=!0;g.Lu(this.api.getRootNode(),"ytp-expand-pause-overlay");g.lU(this.api)&&this.api.logVisibility(this.element,!1);this.expandButton.focus()}; c6.prototype.K=function(){this.B=!1;g.Ju(this.api.getRootNode(),"ytp-expand-pause-overlay");g.lU(this.api)&&this.api.logVisibility(this.element,!0);this.focus()}; c6.prototype.Ra=function(){var a=this.api.Qb();g.FG(a,1)||g.FG(a,16)||g.FG(a,32)||(!g.FG(a,4)||g.FG(a,2)||g.FG(a,1024)?(this.B||this.api.logVisibility(this.element,!1),this.D.hide()):this.j.TD()&&(this.B||(g.Ju(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.p2(this.j),this.j.show(),this.api.logVisibility(this.element,!0)),this.D.show()))};g.w(d6,g.V);d6.prototype.show=function(){g.V.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; d6.prototype.ya=function(){e6(this);g.V.prototype.ya.call(this)};g.w(Hpb,g.vV);g.k=Hpb.prototype;g.k.Dl=function(){return!1}; g.k.create=function(){var a=this.J.U(),b=g.aU(this.J),c,d=null==(c=this.J.getVideoData())?void 0:c.clientPlaybackNonce;d&&g.MH({clientPlaybackNonce:d});Jpb(this);a.L("embeds_enable_muted_autoplay")&&(this.Z=new Dpb(this.J),g.L(this,this.Z),g.oU(this.J,this.Z.element,4),this.oa=new a6(this.J),g.L(this,this.oa),g.oU(this.J,this.oa.element,4));a.ze&&(this.watermark=new b6(this.J),g.L(this,this.watermark),g.oU(this.J,this.watermark.element,8));this.K=new Z5(this.J,b);g.L(this,this.K);g.oU(this.J,this.K.element, 8);g.ZT(this.J.app)&&(this.onMutedAutoplayStarts(),this.K.hide());a.B&&(this.ma=new $5(this.J),g.L(this,this.ma),g.oU(this.J,this.ma.element,4));this.j.T(this.J,"appresize",this.Hb);this.j.T(this.J,"presentingplayerstatechange",this.jk);this.j.T(this.J,"videodatachange",this.onVideoDataChange);this.j.T(this.J,"videoplayerreset",this.Jw);this.j.T(this.J,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.j.T(this.J,"onAdStart",this.onAdStart);this.j.T(this.J,"onAdComplete",this.onAdComplete); this.j.T(this.J,"onAdSkip",this.onAdSkip);this.j.T(this.J,"onAdStateChange",this.onAdStateChange);if(this.N=g.rC(g.eS(a)))this.countdownTimer=new d6(this.J),g.L(this,this.countdownTimer),g.oU(this.J,this.countdownTimer.element,4),this.countdownTimer.hide(),this.j.T(this.J,g.WJ("embeds"),this.onCueRangeEnter),this.j.T(this.J,g.XJ("embeds"),this.onCueRangeExit);this.vc(this.J.Qb());this.player.Bg("embed");var e,f;(null==(e=this.J.U().webPlayerContextConfig)?0:null==(f=e.embedsHostFlags)?0:f.allowOverridingVisitorDataPlayerVars)&& (a=g.uB("IDENTITY_MEMENTO"))&&this.J.Qa("onMementoChange",a)}; g.k.onCueRangeEnter=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(this.countdownTimer.show(),Fpb(this.countdownTimer))}; g.k.onCueRangeExit=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(e6(this.countdownTimer),this.countdownTimer.hide())}; g.k.Hb=function(){var a=this.J.kb().getPlayerSize();this.Eg&&this.Eg.resize(a)}; g.k.Jw=function(){Gpb(this)}; g.k.jk=function(a){this.vc(a.state)}; g.k.vc=function(a){g.FG(a,128)?(this.Eg||(this.Eg=new Y5(this.J),g.L(this,this.Eg),g.oU(this.J,this.Eg.element,4)),this.Eg.B(a.nh),this.Eg.show(),g.Ju(this.J.getRootNode(),"ytp-embed-error")):this.Eg&&(this.Eg.dispose(),this.Eg=null,g.Lu(this.J.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.j)if(g.FG(a,64))this.countdownTimer.hide(),e6(this.countdownTimer);else if(a.isPaused()){var b=this.countdownTimer;b.B||(b.B=!0,b.G=(0,g.rD)())}else a.isPlaying()&&this.countdownTimer.B&& (b=this.countdownTimer,b.B&&(b.D+=(0,g.rD)()-b.G,b.B=!1,Epb(b)));Ipb(this,a)}; g.k.onMutedAutoplayStarts=function(){this.J.getVideoData().mutedAutoplay&&this.Z&&g.Nu(this.J.getRootNode(),"ytp-muted-autoplay",!0)}; g.k.onVideoDataChange=function(a,b){var c=this.kE!==b.videoId;a=!c&&"dataloaded"===a;var d={isShortsModeEnabled:!!g.lU(this.J)};g.cD("embedsVideoDataDidChange",{clientPlaybackNonce:b.clientPlaybackNonce,isReload:a,runtimeEnabledFeatures:d});c&&(this.kE=b.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.N&&(this.J.jf("embeds"),b.isAd()||5>b.limitedPlaybackDurationInSeconds||g.kU(this.J)||(b=Math.max(1E3*(b.startSeconds+b.limitedPlaybackDurationInSeconds-5), 0),b=new g.VJ(b,b+5E3,{id:"countdown timer",namespace:"embeds"}),this.J.uf([b]))),Gpb(this),Jpb(this));this.J.U().C&&this.C&&this.C.detach()}; g.k.onAdStart=function(){f6(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")}; g.k.onAdComplete=function(){f6(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")}; g.k.onAdSkip=function(){f6(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")}; g.k.onAdStateChange=function(a){2===a&&f6(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.uV("embed",Hpb);})(_yt_player);