· 6 years ago · Nov 03, 2018, 01:30 PM
1
2btybuiu5656nb65b6
3
4
5cg(eF);g.t(iF,Ea);iF.prototype.name="BiscottiError";g.t(hF,Ea);hF.prototype.name="BiscottiMissingError";var kF={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},jF=null;var tF={};var Cxa,uF;Cxa=0;uF=g.Id?"webkit":g.yh?"moz":g.Gd?"ms":g.pf?"o":"";g.Dxa=g.y("ytDomDomGetNextId")||function(){return++Cxa};
6g.ta("ytDomDomGetNextId",g.Dxa,void 0);var Nja={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};CF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
7CF.prototype.vB=function(){return this.event?!1===this.event.returnValue:!1};
8CF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
9CF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var GF=g.y("ytEventsEventsListeners")||{};g.ta("ytEventsEventsListeners",GF,void 0);var HF=g.y("ytEventsEventsCounter")||{count:0};g.ta("ytEventsEventsCounter",HF,void 0);var Exa=uc(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
10window.addEventListener("test",null,b)}catch(c){}return a}),IF=uc(function(){var a=!1;
11try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
12window.addEventListener("test",null,b)}catch(c){}return a});g.t(g.UF,g.L);g.UF.prototype.W=function(a,b,c,d){c=(0,g.B)(c,d||this.A);a=g.JF(a,b,c);this.o.push(a);return a};
13g.UF.prototype.Jh=function(a,b,c,d){c=(0,g.B)(c,d||this.A);a=TF(a,b,c);this.o.push(a);return a};
14g.UF.prototype.Ia=function(a){g.KF(a);g.Ra(this.o,a)};
15g.UF.prototype.X=function(){g.VF(this);g.L.prototype.X.call(this)};g.C(WF,g.L);WF.prototype.K=function(a){this.o=new g.od(EF(a),FF(a))};
16WF.prototype.F=function(){if(this.o){var a=g.zG();if(0!=this.C){var b=this.D,c=this.o,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.A[this.Gb]=.5<Math.abs((d-this.B)/this.B)?1:0;for(c=b=0;4>c;c++)b+=this.A[c]||0;3<=b&&this.H();this.B=d}this.C=a;this.D=this.o;this.Gb=(this.Gb+1)%4}};
17WF.prototype.X=function(){window.clearInterval(this.J);g.KF(this.G)};g.t(g.XF,g.L);g.XF.prototype.R=function(a,b,c,d,e){c=mE((0,g.B)(c,d||this.Pb));c={target:a,name:b,vl:c};var f;e&&Exa()&&(f={passive:!0});a.addEventListener(b,c.vl,f);this.K.push(c);return c};
18g.XF.prototype.Ia=function(a){for(var b=0;b<this.K.length;b++)if(this.K[b]==a){this.K.splice(b,1);a.target.removeEventListener(a.name,a.vl);break}};
19g.XF.prototype.X=function(){g.ZF(this);g.L.prototype.X.call(this)};g.C(g.$F,g.L);g.$F.prototype.subscribe=function(a,b,c){return this.ka()?0:this.oa.subscribe(a,b,c)};
20g.$F.prototype.unsubscribe=function(a,b,c){return this.ka()?!1:this.oa.unsubscribe(a,b,c)};
21g.$F.prototype.Yd=function(a){return this.ka()?!1:this.oa.Yd(a)};
22g.$F.prototype.V=function(a,b){return this.ka()?!1:this.oa.V.apply(this.oa,arguments)};g.t(g.dG,g.$F);g.h=g.dG.prototype;g.h.cancel=function(){this.C&&(this.C=!1,this.V("dragend",0,0,null));this.A&&(this.A=!1,this.V("hoverend",0,0,null),g.ZF(this.o),cG(this))};
23g.h.bC=function(a){g.ZF(this.o);eG(this,fG("move"),this.ZB);eG(this,fG("out"),this.aC);eG(this,"touchstart",this.Mu);this.B&&eG(this,fG("down"),this.Lu);var b=g.LF(a);a=OF(a);this.A=!0;this.V("hoverstart",a.x,a.y,b);this.V("hovermove",a.x,a.y,b)};
24g.h.ZB=function(a){var b=g.LF(a);a=OF(a);if(this.D){var c=this.D;this.D=null;if(NF(c)==b&&pd(OF(c),a))return}this.V("hovermove",a.x,a.y,b)};
25g.h.aC=function(a){var b=OF(a),c=NF(a);c&&g.Zd(this.F,c)?(this.D=a,this.V("hovermove",b.x,b.y,c)):(g.ZF(this.o),cG(this),this.A=!1,this.V("hoverend",b.x,b.y,c))};
26g.h.bR=function(a){this.bC(a);this.Lu(a)};
27g.h.Lu=function(a){if(!g.sa(a.button)||0==a.button){g.ZF(this.o);this.o.R(window.document,fG("move"),this.aR);this.o.R(window.document,fG("up"),this.sN);var b=g.LF(a);if(g.Id)eG(this,"dragstart",this.rK);else if(g.PF(a),(g.VH||g.yh)&&b)a:{for(var c=b;c;){if(g.fe(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.C=!0;a=OF(a);this.V("dragstart",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)}};
28g.h.rK=function(a){g.PF(a)};
29g.h.aR=function(a){var b=g.LF(a);b==window.document&&(b=null);a=OF(a);this.V("hovermove",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)};
30g.h.sN=function(a){g.ZF(this.o);this.C=!1;var b=MF(a),c=g.LF(a);a=OF(a);b&&g.Zd(this.F,b)?(eG(this,fG("move"),this.ZB),eG(this,fG("out"),this.aC),eG(this,fG("down"),this.Lu),eG(this,"touchstart",this.Mu),this.V("dragend",a.x,a.y,c)):(cG(this),this.A=!1,this.V("dragend",a.x,a.y,c),this.V("hoverend",a.x,a.y,c))};
31g.h.Mu=function(a){var b=a.changedTouches[0];b&&(g.ZF(this.o),eG(this,"touchmove",this.tN),eG(this,"touchend",this.cC),eG(this,"touchcancel",this.cC),this.G=b.identifier,a=g.LF(a),this.A||(this.A=!0,this.V("hoverstart",b.pageX,b.pageY,a)),this.V("hovermove",b.pageX,b.pageY,a),this.B&&(this.C=!0,this.V("dragstart",b.pageX,b.pageY,a),this.V("dragmove",b.pageX,b.pageY,a)))};
32g.h.tN=function(a){var b=gG(this,a);b&&(this.B&&g.PF(a),a=g.LF(a),this.V("hovermove",b.pageX,b.pageY,a),this.B&&this.V("dragmove",b.pageX,b.pageY,a))};
33g.h.cC=function(a){var b=gG(this,a);if(b){g.ZF(this.o);cG(this);this.A=!1;var c=g.LF(a);this.B&&(this.H||g.PF(a),this.C=!1,this.V("dragend",b.pageX,b.pageY,c));this.V("hoverend",b.pageX,b.pageY,c)}};
34g.h.X=function(){this.B&&(g.Id&&this.F.removeAttribute("draggable"),this.F.style.touchAction="");g.ZF(this.o);g.$F.prototype.X.call(this)};var Qja={enablejsapi:1},Rja={};hG.prototype.clone=function(){var a=new hG,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==va(c)?a[b]=g.bc(c):a[b]=c}return a};var jH={},iH=0;var Fxa=g.y("ytPubsubPubsubInstance")||new g.zD;g.zD.prototype.subscribe=g.zD.prototype.subscribe;g.zD.prototype.unsubscribeByKey=g.zD.prototype.Yd;g.zD.prototype.publish=g.zD.prototype.V;g.zD.prototype.clear=g.zD.prototype.clear;g.ta("ytPubsubPubsubInstance",Fxa,void 0);g.jG=g.y("ytPubsubPubsubSubscribedKeys")||{};g.ta("ytPubsubPubsubSubscribedKeys",g.jG,void 0);g.lG=g.y("ytPubsubPubsubTopicToKeys")||{};g.ta("ytPubsubPubsubTopicToKeys",g.lG,void 0);var kG=g.y("ytPubsubPubsubIsSynchronous")||{};
35g.ta("ytPubsubPubsubIsSynchronous",kG,void 0);var Vja=Math.pow(2,16)-1,CG=null,DG=0,Uja={log_event:"events",log_interaction:"interactions"},Gxa=Object.create(null);Gxa.log_event="GENERIC_EVENT_LOGGING";Gxa.log_interaction="INTERACTION_LOGGING";var Wja=new window.Set(["log_event"]),uG={},rG=0,sG=0,tG=g.y("ytLoggingTransportLogPayloadsQueue_")||{};g.ta("ytLoggingTransportLogPayloadsQueue_",tG,void 0);var BG=g.y("ytLoggingTransportTokensToCttTargetIds_")||{};g.ta("ytLoggingTransportTokensToCttTargetIds_",BG,void 0);
36var yG=g.y("ytLoggingTransportDispatchedStats_")||{};g.ta("ytLoggingTransportDispatchedStats_",yG,void 0);g.ta("ytytLoggingTransportCapturedTime_",g.y("ytLoggingTransportCapturedTime_")||{},void 0);g.t(HG,Yja);HG.prototype.start=function(){var a=g.y("yt.scheduler.instance.start");a&&a()};
37HG.prototype.pause=function(){var a=g.y("yt.scheduler.instance.pause");a&&a()};
38g.ua(HG);HG.getInstance();var OG={};UG.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.o)try{this.o.set(a,b,(0,g.H)()+1E3*c);return}catch(f){}var e="";if(d)try{e=(0,window.escape)(g.Gg(b))}catch(f){return}else e=(0,window.escape)(b);g.SG(a,e,c,this.A)};
39UG.prototype.get=function(a,b){var c=void 0,d=!this.o;if(!d)try{c=this.o.get(a)}catch(e){d=!0}if(d&&(c=RG.get(""+a,void 0))&&(c=(0,window.unescape)(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
40UG.prototype.remove=function(a){this.o&&this.o.remove(a);g.TG(a,"../default.htm",this.A)};new UG;var $ja=1;var gH=g.y("ytLoggingLatencyUsageStats_")||{};g.ta("ytLoggingLatencyUsageStats_",gH,void 0);var hH=0;var kH=(0,g.H)().toString();var tH=g.y("ytLoggingTimeDocumentNonce_")||mH();g.ta("ytLoggingTimeDocumentNonce_",tH,void 0);g.ta("yt.logging.screen.getRootVeType",qH,void 0);g.ta("yt.logging.screen.getCurrentCsn",g.sH,void 0);g.ta("yt.logging.screen.setCurrentScreen",uH,void 0);var wH;g.vH=uc(function(){var a=new JD;return a.isAvailable()?new g.GD(a):null});
41wH=uc(function(){var a=new KD;return a.isAvailable()?new g.GD(a):null});var gma={s_:1,R_:2,PAUSED:3};var p_=16/9,Hxa=[.25,.5,.75,1,1.25,1.5,2],Ixa=Hxa.concat([3,4,5,6,7,8,9,10,15]);var Y0={},Jxa=(Y0["api.invalidparam"]=2,Y0.auth=150,Y0["drm.auth"]=150,Y0["heartbeat.net"]=150,Y0["heartbeat.servererror"]=150,Y0["heartbeat.stop"]=150,Y0["html5.unsupportedads"]=5,Y0["fmt.noneavailable"]=5,Y0["fmt.decode"]=5,Y0["fmt.unplayable"]=5,Y0["html5.missingapi"]=5,Y0["html5.unsupportedlive"]=5,Y0["drm.unavailable"]=5,Y0);var wka={fZ:"auto",r4:"tiny",k1:"light",O3:"small",MI:"medium",f1:"large",x0:"hd720",t0:"hd1080",u0:"hd1440",v0:"hd2160",w0:"hd2880",E0:"highres",UNKNOWN:"unknown"};var eka=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+/.yt/.srs/.doubleverify/.com|pagead2/.googlesyndication/.com/pagead/gen_204/@id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,cka=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/,
42fka=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/psul|www\.youtube\.com\/pagead\/slav|www\.youtube\.com\/pagead\/sul)/,jka=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubeeducation\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,
43Dpa=/^https?:../(([A-Za-z0-9-]{1,63}/.)_2A(corp/.google/.com|c/.googlers/.com|borg/.google/.com|prod/.google/.com|youtube\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,hka=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
44dka=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,ika=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,gka=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|c\.lh3\.googleusercontent\.com|plus\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b))/,
45qla=/^https?:../(([A-Za-z0-9-]{1,63}/.)_2A(imasdk/.googleapis/.com|2mdn/.net|googlesyndication/.com|corp/.google/.com|c/.googlers/.com|borg/.google/.com|googleads/.g/.doubleclick/.net|prod/.google/.com|static/.doubleclick/.net|static/.googleadsserving/.cn|studioapi/.doubleclick/.net|youtube/.com|youtube/.googleapis/.com|youtube/-nocookie/.com|youtubeeducation/.com|youtubekids/.com|ytimg\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/,
46pla=/^https?:../(([A-Za-z0-9-]{1,63}/.)_2A(imasdk/.googleapis/.com|corp/.google/.com|c/.googlers/.com|borg/.google/.com|docs/.google/.com|drive/.google/.com|googleads/.g/.doubleclick/.net|googleplex/.com|play/.google/.com|prod/.google/.com|photos/.google/.com|get/.google/.com|class/.photos/.google/.com|plus/.google/.com|books/.googleusercontent/.com|blogger/.com|mail/.google/.com|play/-books/-internal/-sandbox/.googleusercontent/.com|talkgadget/.google/.com|survey/.g/.doubleclick/.net|youtube/.com|youtube/.googleapis/.com|youtube/-nocookie/.com|youtubekids/.com|vevo/.com|jamboard/.google/.com|chat/.google/.com|meet\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?\/(?!url\b)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/,
47Kxa=/^(https\:../googleads/.g/.doubleclick/.net|https\:\/\/play\.google\.com|https/_3A/photos/.google/.com|https/_3A/get/.google/.com|https/_3A/class/.photos/.google/.com|https/_3A/plus/.google/.com|https/_3A/mail/.google/.com|https/_3A/talkgadget/.google/.com|https/_3A/jamboard/.google/.com|https/_3A/chat/.google/.com)$|^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^http:\/\/[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)/.)@meet\.google\.com$|^https_3A/([A-Za-z0-9-]{1,63}/.)_2Ayoutube/.com$|^https_3A/([A-Za-z0-9-]{1,63}/.)+sandbox/.google/.com$|^https:\/\/(books|play-books-internal-sandbox)/.googleusercontent/.com$|^https:\/\/(draft|www|(www/.)@daily\.alpha|(www/.)@weekly\.alpha|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www/.)@restore\.sandbox)\.blogger\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)/.)@drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|(www\.|encrypted/.)google/.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co/.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))$|docs/.google/.com$|imasdk/.googleapis/.com$|lightbox-(demos|builder)/.appspot/.com$|s[01](qa)@\.2mdn\.net$|survey/.g/.doubleclick/.net$|www\.gstatic\.com$)/;var kka=1;g.t(g.UH,g.L);g.UH.prototype.xa=function(a,b){g.sa(b)?Sd(a,this.element,b):a.appendChild(this.element)};
48g.UH.prototype.update=function(a){for(var b in a)this.updateValue(b,a[b])};
49g.UH.prototype.updateValue=function(a,b){var c=this.Ka["{{"+a+"}}"];c&&XH(this,c[0],c[1],b)};
50g.UH.prototype.X=function(){this.o={};this.Ka={};g.YH(this);g.L.prototype.X.call(this)};g.t(g.W,g.UH);g.h=g.W.prototype;g.h.Mb=function(a,b){this.updateValue(b||"content",a)};
51g.h.show=function(){this.A||(this.element.style.display=this.rd,this.A=!0)};
52g.h.hide=function(){this.A&&(this.element.style.display="none",this.A=!1)};
53g.h.W=function(a,b,c){return this.R(this.element,a,b,c)};
54g.h.R=function(a,b,c,d){c=(0,g.B)(c,d||this);d={target:a,type:b,listener:c};this.ba.push(d);a.addEventListener(b,c);return d};
55g.h.Ia=function(a){for(var b=0;b<this.ba.length;b++)if(this.ba[b]==a){a=this.ba.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
56g.h.focus=function(){g.fe(this.element);this.element.focus()};
57g.h.X=function(){for(;this.ba.length;){var a=this.ba.pop();a.target.removeEventListener(a.type,a.listener)}g.UH.prototype.X.call(this)};g.t(g.$H,g.W);g.$H.prototype.subscribe=function(a,b,c){return this.aa.subscribe(a,b,c)};
58g.$H.prototype.unsubscribe=function(a,b,c){return this.aa.unsubscribe(a,b,c)};
59g.$H.prototype.Yd=function(a){return this.aa.Yd(a)};
60g.$H.prototype.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.aa.V.apply(this.aa,[a].concat(g.ea(c)))};g.t(g.bI,g.$H);g.bI.prototype.updateValue=function(a,b){g.$H.prototype.updateValue.call(this,a,b);this.V("size-change")};g.t(fI,g.L);g.h=fI.prototype;
61g.h.CO=function(a,b,c){var d=this.J[a];if(!(d||!(d=this.K[a])||c&&Kxa.test(c)))throw Error('API call from an untrusted origin: "'+c+'"');var e=this.app.o;e.gi&&!this.L.has(a)&&(this.L.add(a),iI(this,"webPlayerApiCalled",{callerUrl:e.loaderUrl,methodName:a,origin:c||void 0,playerStyle:e.playerStyle||void 0}));if(d){if(!this.app.o.experiments.o("player_injection_reporting_killswitch")){c=!1;e=g.q(b);for(var f=e.next();!f.done;f=e.next())if(String(f.value).includes("javascript:")){c=!0;break}c&&g.nE(Error('Dangerous call to "'+
62a+'" with ['+b+"]."))}return d.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
63g.h.wO=function(){return this.G.slice()};
64g.h.xO=function(){return g.Pb(this.C)};
65g.h.na=function(){return this.B};
66g.h.addEventListener=function(a,b){if(g.w(b)){var c=function(){g.y(b).apply(window,arguments)};
67this.F[b]=c}else c=b;this.app.ga.subscribe(a,c)};
68g.h.zK=function(a,b){var c=this,d=g.w(b)?a+b:a+g.Ba(b);if(!this.D[d]){var e;g.w(b)?e=function(){g.y(b).apply(window,arguments)}:e=b;
69var f=function(a){e({target:c.A,data:a})};
70this.D[d]=f;this.app.ga.subscribe(a,f)}};
71g.h.removeEventListener=function(a,b){if(g.w(b)){var c=this.F[b];Zb(this.F,b);b=c}this.app.ga.unsubscribe(a,b)};
72g.h.AK=function(a,b){var c=g.w(b)?a+b:a+g.Ba(b),d=this.D[c];d&&(this.app.ga.unsubscribe(a,d),Zb(this.D,c))};
73g.h.Oh=function(){return Q_(this.app)};
74g.h.jc=function(a,b,c){this.o&&W_(this.app,!0,this.playerType);e0(this.app,a,b,c,this.playerType)};
75g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
76g.h.yO=function(){var a=kwa(this.app,this.playerType);return(0,window.isNaN)(a)?this.getCurrentTime():a};
77g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
78g.h.getVolume=function(){return this.app.O.volume};
79g.h.setVolume=function(a){kI(this,a)};
80g.h.isMuted=function(){return this.app.O.muted};
81g.h.mute=function(){lI(this)};
82g.h.jg=function(){mI(this)};
83g.h.Xc=function(){this.o&&W_(this.app,!0,this.playerType);var a=hU(this.app);2!=a||uX(this.app)?3==a?g.UT(this.app.D).Sm("control_play"):pX(this.app,a):(a=this.app.D.C)&&a.V("control_play")};
84g.h.nd=function(){var a=hU(this.app);2!=a||uX(this.app)?3==a?g.UT(this.app.D).Sm("control_pause"):rX(this.app,a):(a=this.app.D.C)&&a.V("control_pause")};
85g.h.md=function(){var a=this.app;a.o.ga&&(a.A.isFullscreen()&&!a.o.experiments.o("player_external_control_on_classic_desktop")&&a.A.je(),a.A.V("pageTransition"));wwa(a)};
86g.h.tO=function(){};
87g.h.Lc=function(){return g.WT(this.app,1).wa};
88g.h.cf=function(a){N_(this.app,a)};
89g.h.tk=function(){var a=this.app.o;if(a.pa){var b=a.tc[0];a="../../https@admin.youtube.com/"!=b&&"../../https@viacon.corp.google.com/"!=b||!a.experiments.o("web_player_admin_faster_playback_speeds")?Hxa:Ixa}else a=[1];return a};
90g.h.Lm=function(){var a=g.WT(this.app,this.playerType);if(a){var b="unknown";a.o.Fa&&(b=a.o.Fa.video.quality,"auto"==b&&a.A&&(a=XS(a))&&0<a.videoHeight&&(b=vI(a.videoWidth,a.videoHeight)))}else b="unknown";return b};
91g.h.Vp=function(){};
92g.h.Yu=function(){var a=g.WT(this.app,this.playerType);return a?(a=(0,g.J)(Dqa(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
93g.h.zO=function(){return this.av()};
94g.h.AO=function(){return 1};
95g.h.av=function(){return gwa(this.app)};
96g.h.BO=function(){return 0};
97g.h.setSize=function(){this.app.H.zf()};
98g.h.zC=function(a){this.bv(a?2:1)};
99g.h.bv=function(a){xwa(this.app,a)};
100g.h.rO=function(){this.ya("SUBSCRIBE")};
101g.h.sO=function(){this.ya("UNSUBSCRIBE")};
102g.h.uk=function(a){"captions"==a&&(a=this.app.D.A)&&!a.loaded&&a.load()};
103g.h.Nm=function(a){"captions"==a&&(a=this.app.D.A)&&a.loaded&&a.rX()};
104g.h.GO=function(a,b,c){a=U_(this.app,FH(a,b,c),this.playerType);this.o&&W_(this.app,a,this.playerType)};
105g.h.tC=function(a,b,c){Y_(this.app,FH(a,b,c),this.playerType)};
106g.h.HO=function(a,b,c){a=GH(a,b,c);a=U_(this.app,a,this.playerType);this.o&&W_(this.app,a,this.playerType)};
107g.h.vO=function(a,b,c){a=GH(a,b,c);Y_(this.app,a,this.playerType)};
108g.h.getVideoUrl=function(){var a=this.app.o;if(a.G)return"";var b=kX(this.app),c=void 0;b.La||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
109g.h.Km=function(){return P_(this.app)};
110g.h.wC=function(){var a=this.app.o;if(a.G)var b="";else{var c=kX(this.app).videoId;b=this.app.H.Va();var d=this.getPlaylistId()||void 0;c="../../https@/"+pN(a)+"./"+c;d&&(c=g.Yg(c,{list:d}));d=!a.experiments.o("enable_responsive_embed_snippet");a.experiments.o("embed_snippet_includes_version")&&(c=g.Yg(c,{ecver:d?"1":"2"}));a=b.width;b=b.height;d?(d=g.nb(c),b='<iframe width="'+a+'" height="'+b+'" src="'+d+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'):
111(d=Math.round(360*a/b),b='<div style="position:relative;height:0;padding-bottom:'+Math.round(1E4*b/a)/100+'%"><iframe src="'+g.nb(c)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+d+'" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}return b};
112g.h.sC=function(a,b,c){return twa(this.app,a,b,c)};
113g.h.yC=function(a){a:{for(var b=this.app,c=QR(b.C.H)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.C.H.C(e);iU(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
114g.h.FO=function(a,b,c,d){var e=this.app;e.oa=!1;Z_(e,a,b,c,d);this.o&&W_(this.app,!0,this.playerType)};
115g.h.uO=function(a,b,c,d){var e=this.app;e.oa=!0;Z_(e,a,b,c,d)};
116g.h.vk=function(){E_(this.app);this.o&&W_(this.app,!0,this.playerType)};
117g.h.Mm=function(){rwa(this.app);this.o&&W_(this.app,!0,this.playerType)};
118g.h.xC=function(a){var b=this.app;!b.ba||b.A.isFullscreen()&&!b.Ca?b.G&&(b.G.Wc?a_(b,b.G.Qa(a),1):b.oa=!1,qQ(b.G,a)):b.A.ya("onPlaylistIndex",a);this.o&&W_(this.app,!0,this.playerType)};
119g.h.setShuffle=function(a){var b=this.app.G;b&&b.setShuffle(a)};
120g.h.JO=function(a){var b=this.app.G;b&&(b.loop=a)};
121g.h.ig=function(){var a=this.app.G;if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.Qa(c);d&&b.push(d.videoId)}return b};
122g.h.vC=function(){var a=this.app.G;return a?a.ye():-1};
123g.h.getPlaylistId=function(){var a=this.app.G;return a&&a.listId?a.listId.toString():null};
124g.h.Ud=function(a,b,c){if(!b)return null;var d=this.app.D;return"captions"==a?(a=d.A)&&a.Ru(b,c):null};
125g.h.Bc=function(a,b,c){return this.Ud(a,b,c)};
126g.h.Xi=function(a){var b=this.app.D;return"captions"==a?(b=b.A)&&b.XN():a?null:(a=[],b.A&&a.push("captions"),a)};
127g.h.getVideoData=function(){var a={},b=g.WT(this.app,this.playerType);if(b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.Fa&&b.Fa.video)){a.video_quality=b.Fa.video.quality;b=b.Fa.video;var c=[];32<b.fps&&c.push("hfr");zI(b)&&c.push("hdr");"bt2020"==b.primaries&&c.push("wcg");a.video_quality_features=c}(b=this.getPlaylistId())&&(a.list=b);return a};
128g.h.AC=function(){cwa(this.app,!0)};
129g.h.DO=function(){cwa(this.app,!1)};
130g.h.uC=function(){a:{var a=this.app;if(WZ(a,"web_player_mdx_ad_killswitch")||3!=hU(a)){if(!uX(a)&&(a=a.D.C)){a=a.kv();break a}a=-1}else a=g.UT(a.D).G}return a};
131g.h.EO=function(a){if(a!=this.app.ua.args.video_id)return!1;var b=(a=(a=g.WT(this.app,1))?a.B:null)?a.o:null;return!!(a&&b&&g.X(a,128)&&5==Jxa[b.errorCode])};
132g.h.KO=function(){this.app.o.U&&this.app.ia.resume()};
133g.h.Zu=function(){var a=this.app.D.D;return a?2==this.playerType?{}:a.lC():{}};
134g.h.LO=function(a){var b=nI(this.app.D);if(b=b?b.o:null)if(b=(b=b.yA())?b.L:null)b.F=a,b.B()};
135g.h.cv=function(a){if(a&&2!=this.playerType){var b=this.app.D.D;b&&b.mC(a)}};
136g.h.destroy=function(){this.app.dispose()};
137g.h.IO=function(){var a=g.WT(this.app);a&&!g.X(a.B,128)&&(a.V("internalAbandon"),RS(a),PS(a))};
138g.h.V=function(a,b){for(var c=1;c<arguments.length;++c);this.app.o.Kb&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.ga.V.apply(this.app.ga,arguments);this.app.da.V.apply(this.app.da,arguments)};
139g.h.ya=function(a,b){this.app.ga.V.apply(this.app.ga,arguments);this.app.da.V.apply(this.app.da,arguments)};
140g.h.X=function(){if(this.B){for(var a in this.C)this.B[a]=null;this.B=null}this.D={};this.F={};g.L.prototype.X.call(this)};pI.prototype.A=function(){return this.name};
141pI.prototype.getId=function(){return this.id};
142pI.prototype.o=function(){return this.isDefault};
143pI.prototype.toString=function(){return this.name};
144pI.prototype.getName=pI.prototype.A;pI.prototype.getId=pI.prototype.getId;pI.prototype.getIsDefault=pI.prototype.o;g.qI.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};g.h=g.rI.prototype;g.h.getId=function(){return this.Ha};
145g.h.Xa=function(){return this.J};
146g.h.toString=function(){return this.A+": "+g.sI(this)+" - "+this.G};
147g.h.Su=ba(0);g.h.Td=function(){return!(!this.A||this.o&&!this.o.languageCode)};tI.prototype.A=function(){return this.Lb};
148tI.prototype.toString=function(){return this.Lb.name};
149tI.prototype.getLanguageInfo=tI.prototype.A;var sJ={name:"width",video:!0,valid:640,Bh:99999},tJ={name:"height",video:!0,valid:360,Bh:99999},uJ={name:"framerate",video:!0,valid:30,Bh:9999},vJ={name:"bitrate",video:!0,valid:3E5,Bh:2E9},rJ={name:"eotf",video:!0,valid:"bt709",Bh:"catavision"},yJ={name:"channels",video:!1,valid:2,Bh:99},wJ={name:"cryptoblockformat",video:!0,valid:"subsample",Bh:"invalidformat"},xJ={name:"decode-to-texture",video:!0,valid:"false",Bh:"nope"},zJ={Rn:sJ,Gn:tJ,m0:uJ,Jx:vJ,U_:rJ,NZ:yJ,e_:wJ,m_:xJ};var mka={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",
150336:"9h",337:"9h",171:"v",338:"so",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",314:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",367:"(h",368:"(h",394:"1",395:"1",396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",402:"1",386:"3",387:"w",406:"6"};var Z0;Z0={};g.wI=(Z0.auto=0,Z0.tiny=144,Z0.light=144,Z0.small=240,Z0.medium=360,Z0.large=480,Z0.hd720=720,Z0.hd1080=1080,Z0.hd1440=1440,Z0.hd2160=2160,Z0.hd2880=2880,Z0.highres=4320,Z0);var AI="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");CI.prototype.Qa=function(){return this.video};KI.prototype.o=function(a){return"true"==this.flags[a]};
151KI.prototype.A=function(a){return(0,window.parseFloat)(this.flags[a])||0};
152KI.prototype.B=function(a){return(a=this.flags[a])?a.toString():""};g.h=TI.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.A,a)};
153g.h.abort=function(){this.o.webkitSourceAbort(this.A)};
154g.h.FX=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new oka:this.o.webkitSourceBuffered(this.A)};
155g.h.HX=function(){return this.B};
156g.h.LX=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};g.h=UI.prototype;g.h.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
157g.h.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)};
158g.h.fQ=function(){return this.o.webkitMediaSourceURL};
159g.h.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new TI(this.o,b);this.sourceBuffers.push(a);return a};
160g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.o.webkitSourceRemoveId(a.A);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
161g.h.IX=function(){switch(this.o.webkitSourceState){case this.o.SOURCE_CLOSED:return"closed";case this.o.SOURCE_OPEN:return"open";case this.o.SOURCE_ENDED:return"ended"}return""};
162g.h.endOfStream=function(){this.o.webkitSourceEndOfStream(this.o.EOS_NO_ERROR)};
163g.h.JX=function(){Na(this.sourceBuffers)};
164g.h.GX=function(){return this.A};
165g.h.KX=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};VI.prototype.start=function(){return 0};
166VI.prototype.end=function(){return window.Infinity};g.h=WI.prototype;g.h.addEventListener=function(){};
167g.h.removeEventListener=function(){};
168g.h.dispatchEvent=function(){return!1};
169g.h.abort=function(){};
170g.h.remove=function(){};
171g.h.appendBuffer=function(){};g.h=dJ.prototype;g.h.zv=function(a,b){this.A=!b;this.supports(0)?this.o.appendBuffer(a):this.o.append(a)};
172g.h.abort=function(){this.A=!1;this.o.abort()};
173g.h.remove=function(a,b){this.o.remove(a,b)};
174g.h.Kw=function(a){this.supports(1)&&(this.o.timestampOffset=a)};
175g.h.fq=function(){return this.supports(1)?this.o.timestampOffset:0};
176g.h.qc=function(){try{return this.o.buffered}catch(a){return XI([],[])}};
177g.h.Vg=function(){return this.o.updating};
178g.h.jj=function(a){this.C=a};
179g.h.Gg=function(){return this.C};
180g.h.Zw=function(a,b){this.B&&this.B!=a&&(this.supports(4),this.o.changeType(b));this.B=a};
181g.h.wu=function(){return this.A};
182g.h.Av=function(){return!1};
183g.h.supports=function(a){switch(a){case 1:return void 0!=this.o.timestampOffset;case 0:return!!this.o.appendBuffer;case 2:return!!this.o.remove;case 3:return!!this.o.removeEventListener;case 4:return!!this.o.changeType;default:return!1}};
184g.h.addEventListener=function(a,b){this.supports(3);this.o.addEventListener(a,b)};
185g.h.removeEventListener=function(a,b){this.supports(3);this.o.removeEventListener(a,b)};
186g.h.xs=function(){return!this.Vg()};g.h=eJ.prototype;g.h.zv=function(a,b){this.o.fq()!=this.B+this.A&&(this.o.supports(1),this.o.Kw(this.B+this.A),this.o.o.appendWindowEnd=this.C);this.o.zv(a,b)};
187g.h.abort=function(){this.o.abort()};
188g.h.remove=function(a,b){this.o.remove(a-this.A,b-this.A)};
189g.h.Kw=function(a){this.B=a};
190g.h.fq=function(){return this.B};
191g.h.qc=function(){return cJ(this.o.qc(),this.A,this.C)};
192g.h.Vg=function(){return this.o.Vg()};
193g.h.jj=function(a){this.o.jj(a)};
194g.h.Gg=function(){return this.o.Gg()};
195g.h.Zw=function(a,b){return this.o.Zw(a,b)};
196g.h.supports=function(a){return this.o.supports(a)};
197g.h.addEventListener=function(a,b){this.o.addEventListener(a,b)};
198g.h.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};
199g.h.wu=function(){return this.o.wu()};
200g.h.Av=function(){return!0};
201g.h.xs=function(){return this.o.xs()?!(this.o.fq()!=this.B+this.A&&this.wu()):!1};fJ.prototype.dispose=function(){if(!this.B){if(this.A)try{window.URL.revokeObjectURL(this.o)}catch(a){}this.B=!0}};
202fJ.prototype.ka=function(){return this.B};g.t(gJ,g.L);gJ.prototype.getDuration=function(){return this.B.duration};
203gJ.prototype.H=function(){!this.ka()&&hJ(this)&&this.C&&(this.C(this),this.C=null)};
204gJ.prototype.G=function(){this.dispose()};var Lxa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},$0;a:{var a1=g.Eb;a1=a1.toLowerCase();if(-1!=a1.indexOf("android")){var Mxa=a1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Mxa){var Nxa=(0,window.parseFloat)(Mxa[1]);if(100>Nxa){$0=Nxa;break a}}var Oxa=a1.match("("+g.Pb(Lxa).join("|")+")");$0=Oxa?Lxa[Oxa[0]]:0}else $0=void 0}var oJ=$0,aN=0<=oJ;var tka={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},uka={"application/x-mpegURL":"maybe"},ska={"application/x-mpegURL":"maybe"};g.h=DJ.prototype;g.h.Uf=function(){return this.Eg};
205g.h.bj=function(){return null};
206g.h.pA=function(){var a=this.bj();return a?+g.yE(a.o).expire:window.NaN};
207g.h.Dw=function(){};
208g.h.getHeight=function(){return this.Eg.Qa().height};FJ.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o};
209FJ.prototype.C=function(a){return a.video?MJ(this,a.video.quality):!1};
210var Pxa=HJ("auto","hd1080",!1,"l"),Qpa=HJ("auto","large",!1,"l"),JJ=HJ("auto","auto",!1,"p");HJ("small","auto",!1,"p");g.h=g.OJ.prototype;g.h.GC=function(a){this.segments.push(a)};
211g.h.getDuration=function(a){return(a=this.qh(a))?a.duration:0};
212g.h.kt=function(a){return this.getDuration(a)};
213g.h.sf=function(){return this.segments.length?this.segments[0].za:-1};
214g.h.hv=function(a){return(a=this.qh(a))?a.ingestionTime:window.NaN};
215g.h.Qb=function(){return this.segments.length?this.segments[this.segments.length-1].za:-1};
216g.h.Mj=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:window.NaN};
217g.h.bc=function(){return this.segments[0].startTime};
218g.h.Pj=function(){return this.segments.length};
219g.h.Yp=function(){return 0};
220g.h.Jg=function(a){return(a=this.Nl(a))?a.za:-1};
221g.h.wt=function(a){return(a=this.qh(a))?a.sourceURL:""};
222g.h.Vd=function(a){return(a=this.qh(a))?a.startTime:0};
223g.h.gp=ba(2);g.h.Ob=function(){return 0<this.segments.length};
224g.h.qh=function(a){a=g.ab(this.segments,new NJ(a,0,0,0,""),function(a,c){return a.za-c.za});
225return 0<=a?this.segments[a]:null};
226g.h.Nl=function(a){a=g.ab(this.segments,{startTime:a},function(a,c){return a.startTime-c.startTime});
227return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
228g.h.append=function(a){if(0!=a.length)if(a=g.Ua(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.Fa(this.segments).endTime:0,c=a[0].za-this.Qb();1<c&&Na(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}};
229g.h.uA=function(){return 0};QJ.prototype.skip=function(a){this.o+=a};XJ.prototype.Do=function(a,b,c){(new window.Uint8Array(this.data.buffer,this.o,c)).set(new window.Uint8Array(a.buffer,b+a.byteOffset,c));this.o+=c};var b1={},Qxa=(b1.predictStart="predictStart",b1.start="start",b1["continue"]="continue",b1.stop="stop",b1),noa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var qR=!1;var hL=!1;g.vK.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};$K.prototype.verify=function(){if(this.info.fb!=this.range.length)return!1;if(1==this.info.o.info.containerType){if(8>this.info.fb||4==this.info.type)return!0;var a=aL(this),b=a.getUint32(0,!1);a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.fb&&1936286840==a;if(3==this.info.type&&0==this.info.A)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.o.info.containerType){if(4>this.info.fb||4==this.info.type)return!0;b=aL(this).getUint32(0,
230!1);if(3==this.info.type&&0==this.info.A)return 524531317==b||440786851==b}return!0};var lL={zJ:function(a,b){a.splice(0,b)},
231hZ:function(a){a.reverse()},
232D0:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};g.nL.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.B="")};
233g.nL.prototype.get=function(a){oL(this);return this.o[a]||null};
234g.nL.prototype.Xa=function(){this.B||(this.B=Gka(this));return this.B};
235g.nL.prototype.clone=function(){var a=new g.nL(this.C);a.F=this.F;a.A=this.A;a.D=this.D;a.o=g.bc(this.o);a.B=this.B;return a};
236var rL=!1;wL.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""};
237wL.prototype.get=function(a){return this.A[a]||this.o.get(a)};
238wL.prototype.Xa=function(){this.B||(this.B=Ika(this));return this.B};g.h=JL.prototype;g.h.Pf=function(){};
239g.h.fk=function(){};
240g.h.uu=function(){return!1};
241g.h.Qc=function(){return!!this.o&&this.index.Ob()};
242g.h.Sg=function(){};
243g.h.eC=function(){return!1};
244g.h.Oj=function(){};
245g.h.Ti=function(){};
246g.h.nk=function(){};
247g.h.Ig=function(){};
248g.h.np=function(){};
249g.h.fC=function(a){return[a]};
250g.h.Jq=function(a){return[a]};
251g.h.pq=function(){};
252g.h.cp=function(){};g.t(LL,JL);g.h=LL.prototype;g.h.Pf=function(){return!1};
253g.h.fk=function(){return!1};
254g.h.eC=function(){return this.A};
255g.h.Oj=function(){if(this.A)return[];var a=new zK(1,this,this.initRange);return[new DL([a],this.M)]};
256g.h.Ti=function(){return null};
257g.h.nk=function(a){this.Sg(a);return this.Rm(a.B?a.za+1:a.za,!1)};
258g.h.Ig=function(a,b){b=void 0===b?!1:b;var c=this.index.Jg(a);b&&(c=Math.min(this.index.Qb(),c+1));return this.Rm(c,!0)};
259g.h.np=function(a){this.o=new window.Uint8Array(aL(a).buffer)};
260g.h.uu=function(){return!1};
261g.h.Sg=function(a){return 0==a.fb?!0:this.index.Qb()>a.za&&this.index.sf()<=a.za+1};
262g.h.update=function(a,b,c){this.index.append(a);PJ(this.index,c);this.J=b};
263g.h.Qc=function(){return this.A?!0:JL.prototype.Qc.call(this)};
264g.h.Rm=function(a,b){var c=this.index.wt(a),d=this.index.Vd(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.o?this.info.o*e:1E3;d=new zK(3,this,null,a,d,e,0,f,a==this.index.Qb()&&!this.J&&0<f);return new DL([d],c)};
265g.h.cp=function(){return this.A?0:this.initRange.length};
266g.h.pq=function(){return!1};g.t(ML,g.OJ);g.h=ML.prototype;g.h.sf=function(){return this.A?this.segments.length?this.Nl(this.bc()).za:-1:g.OJ.prototype.sf.call(this)};
267g.h.bc=function(){if(!this.A)return g.OJ.prototype.bc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Fa(this.segments).endTime-this.D,0);return 0<this.C&&this.Nl(a).za<this.C?this.qh(this.C).startTime:a};
268g.h.Mj=function(){var a=this.Qb();return!this.A||!this.segments.length||a<=this.segments[this.segments.length-1].za?g.OJ.prototype.Mj.call(this):QL(this,a,this.segments[this.segments.length-1]).endTime};
269g.h.Pj=function(){return this.A?this.segments.length?this.Qb()-this.sf()+1:0:g.OJ.prototype.Pj.call(this)};
270g.h.Qb=function(){return Math.min(this.F,Math.max(g.OJ.prototype.Qb.call(this),this.B))};
271g.h.GC=function(a){var b=NL(this,a.za);0<=b?this.segments[b]=a:this.segments.splice(-(b+1),0,a)};
272g.h.Nl=function(a){if(!this.A)return g.OJ.prototype.Nl.call(this,a);if(!this.segments.length)return null;var b=g.ab(this.segments,{startTime:a},function(a,b){return a.startTime-b.startTime}),c=this.segments[0<=b?b:Math.max(-(b+2),0)];
273return c.startTime+c.duration>a&&c.startTime<=a?c:-1==b?QL(this,Math.max(c.za-Math.ceil((c.startTime-a)/this.o),0),c):QL(this,c.za+Math.ceil((a-c.endTime)/this.o),c)};
274g.h.qh=function(a){if(!this.A)return g.OJ.prototype.qh.call(this,a);if(!this.segments.length)return null;var b=NL(this,a);return 0<=b?this.segments[b]:QL(this,a,this.segments[Math.max(-(b+2),0)])};g.t(RL,LL);g.h=RL.prototype;g.h.fk=function(){return!0};
275g.h.Qc=function(){return!0};
276g.h.Sg=function(){return!0};
277g.h.Oj=function(){return[]};
278g.h.Ig=function(a,b){if(g.sa(a)&&!(0,window.isFinite)(a)){var c=new zK(3,this,null,-1,void 0,this.G,void 0,this.G*this.info.o);return new DL([c],"")}return LL.prototype.Ig.call(this,a,b)};
279g.h.Rm=function(a,b){if(OL(this.index,a))return LL.prototype.Rm.call(this,a,b);var c=this.index.Vd(a),d=b?0:this.G*this.info.o;c=new zK(3,this,null,a,c,void 0,void 0,d,a==this.index.Qb()&&!this.J&&0<d);return new DL([c],0<=a?"sq/"+a:"")};WL.prototype.update=function(a,b){var c=void 0;this.A&&(c=this.A);var d=new WL,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+SL(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+SL(a,"startNumber")||0;var m=k;var n=+SL(a,"presentationTimeOffset")||0;m=c?c.o+c.durationSecs:b?m-n/f:0;n=Date.parse(VL(SL(a,"yt:segmentIngestTime")))/1E3;d.B="SegmentTemplate"==a.parentNode.tagName;d.B&&(d.F=SL(a,"media"));var p=c?l-c.za:1;d.D=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=e.next()){p=
280p.value;for(var r=+p.getAttribute("d")/f,v=(+p.getAttribute("yt:sid")||0)/f,z=+p.getAttribute("r")||0,E=0;E<=z;E++)if(c&&l<=c.za)l++;else{var I=new Lka(l,m,r,n+v,k);d.o.push(I);var R=I.o;I=p.getAttribute("yt:cuepointTimeOffset");var T=p.getAttribute("yt:cuepointDuration");if(I&&T){I=(0,window.parseFloat)(I);R=(qR?+I/f:-I/f)+R;T=(0,window.parseFloat)(T)/f;var Pa=p.getAttribute("yt:cuepointContext")||null,ub=p.getAttribute("yt:cuepointIdentifier");var rc=p.getAttribute("yt:cuepointEvent");rc=Qxa[rc]||
281"unknown";I=new $J(R,T,Pa,ub,rc,I)}else I=null;I&&d.C.push(I);l++;m+=r;k+=r;n+=r+v}}d.o.length&&(d.A=g.Fa(d.o))}this.D=d.D;this.A=d.A||this.A;Va(this.o,d.o);Va(this.C,d.C);this.B=d.B;this.F=d.F};
282WL.prototype.uh=function(a,b,c,d){for(var e=this.F.split("$$"),f=0;f<e.length;f++)e[f]=e[f].replace("$RepresentationID$",a),e[f]=e[f].replace("$Number$",c.toString()),e[f]=e[f].replace("$Bandwidth$",b.toString()),e[f]=e[f].replace("$Time$",d.toString());return e.join("$")};g.t(XL,JL);g.h=XL.prototype;g.h.Pf=function(){return!1};
283g.h.fk=function(){return!1};
284g.h.Oj=function(){if(this.A){var a=new zK(1,this,null);return[new DL([a],this.A)]}a=new zK(1,this,this.initRange);var b=new zK(2,this,this.indexRange);return[new DL([a,b])]};
285g.h.Ti=function(){return null};
286g.h.nk=function(a){this.Sg(a);return YL(this,a.B?a.za+1:a.za,!1)};
287g.h.Ig=function(a,b){b=void 0===b?!1:b;var c=this.index.Jg(a);b&&(c=Math.min(this.index.Qb(),c+1));return YL(this,c,!0)};
288g.h.np=function(a){if(1==a.info.type)this.o||(a.o&&"../../youtube.com/streaming/otf/durations/112015"==a.o.uri&&Tka(this,a.o),this.o=bL(a));else if(g.FI(this.info)&&2==a.info.type&&!this.index.Ob()){var b=g.iK(aL(a),1936286840);if(b){a=[];var c=qK(b);b=c.tw.length;var d=c.Uw,e=c.tw,f=c.vn;c=this.indexRange.end+c.hA+1;for(var k=0,l=0;l<b;l++){var m=f[l]/d,n=e[l];a.push(new NJ(l,k,m,window.NaN,"range/"+c+"-"+(c+n-1)));k+=m;c+=n}this.index.append(a)}}};
289g.h.Sg=function(a){return 0==a.fb?!0:this.index.Qb()>a.za&&this.index.sf()<=a.za+1};
290g.h.cp=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
291g.h.pq=function(){return!1};g.h=g.ZL.prototype;g.h.Yp=function(a){return this.o[a]};
292g.h.Vd=function(a){return this.A[a]/this.C};
293g.h.gp=ba(1);g.h.hv=function(){return window.NaN};
294g.h.getDuration=function(a){a=this.kt(a);return 0<=a?a/this.C:-1};
295g.h.kt=function(a){return a+1<this.Ma||this.B?this.A[a+1]-this.A[a]:-1};
296g.h.sf=function(){return 0};
297g.h.Qb=function(){return this.Ma-1};
298g.h.Mj=function(){return this.B?this.A[this.Ma]/this.C:window.NaN};
299g.h.bc=function(){return 0};
300g.h.Pj=function(){return this.Ma};
301g.h.wt=function(){return""};
302g.h.Jg=function(a){a=g.ab(this.A.subarray(0,this.Ma),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
303g.h.Ob=function(){return 0<=this.Qb()};
304g.h.uA=function(a,b){if(a>=this.Qb())return 0;for(var c=0,d=this.Vd(a)+b,e=a;e<this.Qb()&&d>this.Vd(e);e++)c=Math.max(c,(e+1<this.Ma||this.B?this.o[e+1]-this.o[e]:-1)/this.getDuration(e));return c};
305g.h.cap=function(a,b){$L(this);this.B=!0;this.A[this.Ma]=b;this.o[this.Ma]=a};
306var Vva=!1;g.t(g.aM,JL);g.h=g.aM.prototype;g.h.Oj=function(a){var b=new zK(1,this,this.initRange),c=new zK(2,this,this.indexRange),d=[],e=[b];BK(b,c)?e.push(c):(d.push(new DL([c])),a=0);(0,window.isNaN)(this.A)&&(a=0);b=e[e.length-1];a=Math.min(a,this.A-(b.range.end-e[0].range.start+1));0<a&&(a=xK(b.range.end+1,a),e.push(new zK(4,this,a)));d.push(new DL(e));return d};
307g.h.np=function(a){if(1==a.info.type){if(this.o)return;this.o=bL(a)}else if(2==a.info.type){if(this.G||0<=this.index.Qb())return;if(g.FI(this.info)){var b=this.index,c=aL(a);a=a.info.range.start;var d=g.iK(c,1936286840);c=qK(d);b.C=c.Uw;var e=c.tK;b.o[0]=c.hA+a+d.size;b.A[0]=e;b.B=!0;a=c.vn.length;for(d=0;d<a;d++){e=b;var f=c.tw[d],k=c.vn[d];e.Ma++;$L(e);e.o[e.Ma]=e.o[e.Ma-1]+f;e.A[e.Ma]=e.A[e.Ma-1]+k}}else this.G=aL(a)}if(2==this.info.containerType&&this.o&&this.G){a=new window.DataView(this.o.buffer);
308b=this.index;e=this.G;c=this.indexRange.end;if(Vva){d=new IK(a);a=d;d=a.o;f={hG:1E6,iG:1E9,duration:0,pF:0,Cw:0};if(MK(a,408125543))if(f.pF=NK(a,!0),f.Cw=a.B+a.o,MK(a,357149030)){for(k=LK(a);!JK(k);){var l=NK(k,!1);2807729==l?f.hG=RK(k):2807730==l?f.iG=RK(k):17545==l?f.duration=TK(k):SK(k)}a.o=d;a=f}else a.o=d,a=null;else a.o=d,a=null;if(null!=a){b.C=a.iG/a.hG;d=new IK(e);k=a.Cw;e=d.o;f=[];if(MK(d,475249515)){for(l=LK(d);MK(l,187);){var m=LK(l);if(MK(m,179)){var n=RK(m);if(MK(m,183)){m=LK(m);for(var p=
309k;MK(m,241);)p=RK(m)+k;f.push({yo:p,nK:n})}}}if(0<f.length&&c==f[0].yo)for(c=0;c<f.length;c++)f[c].yo+=1;d.o=e;c=f}else d.o=e,c=null;if(null!=c){c=g.q(c);for(d=c.next();!d.done;d=c.next())f=d.value,d=b,e=f.yo,f=f.nK,$L(d),d.o[d.Ma]=e,d.A[d.Ma]=f,d.Ma++;b.cap(a.pF+a.Cw,a.duration)}}}else if(a=new IK(a),MK(a,440786851)&&(SK(a),MK(a,408125543)&&(f=a,k=f.o,d=NK(f,!0),f.o=k,a=LK(a),f=a.B+a.o,MK(a,357149030)))){a=LK(a);l=1E6;m=1E9;for(k=0;!JK(a);)n=NK(a,!1),2807729==n?l=RK(a):2807730==n?m=RK(a):17545==
310n?k=TK(a):SK(a);b.C=m/l;a=new IK(e);if(MK(a,475249515)){a=LK(a);e=!0;for(l=!1;MK(a,187);){m=LK(a);if(MK(m,179))if(n=RK(m),MK(m,183)){m=LK(m);for(p=f;MK(m,241);)p=RK(m)+f;m=[p,n]}else m=null;else m=null;p=m;e&&c==p[0]&&(l=!0);e=!1;l&&(p[0]+=1);m=b;n=p[0];p=p[1];$L(m);m.o[m.Ma]=n;m.A[m.Ma]=p;m.Ma++}b.cap(d+f,k)}}this.G=null}};
311g.h.fC=function(a){for(var b=this.Jq(a.info),c=[],d=a.A,e=0;e<b.length;e++){var f=xK(b[e].range.start+b[e].A-a.info.range.start+a.range.start,b[e].fb);c.push(new $K(b[e],a.buffer,f,a.B,d));d=!1}return c};
312g.h.Jq=function(a){for(var b=0;b<this.index.Qb()&&a.range.start>=this.index.Yp(b+1);)b++;return bM(this,b,a.range.start,a.range.length).o};
313g.h.Sg=function(a){return this.Qc()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
314g.h.Ti=function(a,b){this.Sg(a);if(!this.Qc()){var c=xK(a.range.end+1,b);c.end+1>this.A&&(c=new g.vK(c.start,this.A-1));c=[new zK(4,a.o,c)];return new DL(c)}4==a.type&&(c=this.Jq(a),a=c[c.length-1]);c=0;var d=a.range.start+a.A+a.fb;3==a.type&&(c=a.za,d==a.range.end+1&&(c+=1));return bM(this,c,d,b)};
315g.h.nk=function(){return null};
316g.h.Ig=function(a,b){var c=this.index.Jg(a);b&&(c=Math.min(this.index.Qb(),c+1));return bM(this,c,this.index.Yp(c),0)};
317g.h.uu=function(){var a;if(a=this.Qc()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.Ma]:-1)!=this.A;return a};
318g.h.Pf=function(){return!0};
319g.h.fk=function(){return!1};
320g.h.cp=function(){return this.indexRange.length+this.initRange.length};
321g.h.pq=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};var c1={},dla=(c1["258"]=6,c1["380"]=6,c1["328"]=6,c1["261"]=6,c1["381"]=6,c1["329"]=6,c1);g.t(eM,g.$F);g.h=eM.prototype;g.h.Pg=function(){return Jb(this.o,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
322g.h.Qg=function(){return Jb(this.o,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
323g.h.Yf=function(){return Jb(this.o,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
324g.h.Li=function(){return Jb(this.o,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
325g.h.hW=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.gk=this.B=!0;this.D||(this.D=new Nka);Rka(this.D,a,this.da);this.V("refresh");for(a=0;a<b.length;a++){var c=nM(this,b[a]),d=this.isLive&&g.FI(c)&&this.ga;if(!this.o[c.id]){var e=kM(TL(b[a],"BaseURL").textContent),f=TL(b[a],"Initialization"),k=SL(f,"sourceURL");f=wK(SL(f,"range"));d&&(k="",f=void 0);this.o[c.id]=new LL(e,c,k,null===
326f?void 0:f)}c=this.o[c.id];e=SL(b[a],"id","AdaptationSet");e=""!=e?e:SL(b[a],"mimetype","AdaptationSet");k=this.D;e=k.B[c.info.id]||k.A[e]||k.o||null;k=e.o;if(e.B)for(d=[],k=g.q(k),f=k.next();!f.done;f=k.next()){f=f.value;var l=e.uh(c.info.id,8*c.info.o,f.za,f.o);d.push(new NJ(f.za,f.o,f.durationSecs,f.A,l,null,f.B))}else{e=g.Wa(TL(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.D);f=[];for(l=0;l<e.length;l++)f.push(gla(e[l],k[l],d));d=f}c.update(d,this.isLive,this.U)}Ska(this.D);return!0}this.duration=
327UL(SL(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=nM(this,k);e=TL(k,"BaseURL");d=kM(e.textContent);f=TL(k,"SegmentBase");k=wK(f.attributes.indexRange.value);f=wK(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=(0,window.parseInt)(e.getAttribute(lM(this,"contentLength")),10);c=new g.aM(d,c,f,k,e,window.NaN);if(!c){b=!1;break a}gM(this,c)}b=!0}return b};
328g.h.Se=function(a){return this.D?g.Wa(this.D.C,a):this.L.length?g.Wa(this.L,a):[]};
329g.h.fL=function(a){if(this.ka())return this;this.M=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.G=1E3*UL(SL(a,"minimumUpdatePeriod"))||window.Infinity;if(!this.O){var b;a:{if(a.attributes)for(b=0;b<a.attributes.length;b++)if("../../youtube.com/yt/2012/10/10"==a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.Z=b}this.isLive=window.Infinity>this.G&&this.ia;this.U=(0,window.parseInt)(SL(a,lM(this,"earliestMediaSequence")),
33010)||0;if(b=Date.parse(VL(SL(a,lM(this,"mpdResponseTime")))))this.H=((0,g.H)()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||(0,g.Cm)(a.getElementsByTagName("Period"),this.hW,this);this.F=2;this.V("loaded");rM(this);return this};
331g.h.iL=function(a){this.M=a.Si.status;this.F=3;this.V("loaderror");return mg(a.Si)};
332g.h.IC=function(){if(1!=this.F&&!this.ka()){var a=g.Yg(this.sourceUrl,{start_seq:hla(this).toString()});g.sg(oM(this,a),function(){})}};
333g.h.resume=function(){rM(this)};
334g.h.yd=function(){var a=this.o,b=window.NaN,c;for(c in a)if(this.ha||!g.II(a[c].info.mimeType)){var d=a[c].index;d.Ob()&&((0,window.isNaN)(b)||d.Mj()<b)&&(b=d.Mj())}return b};
335g.h.bc=function(){var a=this.o,b;for(b in a){var c=a[b].index;if(c.Ob())return c.bc()}return 0};
336g.h.sP=function(){return this.H};
337var vM=null,wM=!1,hM=!0,mM={commentary:1,alternate:2,dub:3,main:4};var sla={RED:"red",i5:"white"};var rla={MY:"adunit",n_:"detailpage",N_:"editpage",P_:"embedded",j1:"leanback",U2:"previewpage",V2:"profilepage",H4:"unplugged"};var fN={u1:1,v1:2,w1:3};g.t(xM,g.$F);xM.prototype.add=function(a,b){!this.Ra[a]&&(b.Bs||b.pi||b.Xk)&&(this.Ra[a]=fc(b),this.V("vast_info_card_add",a))};
338xM.prototype.remove=function(a){var b=this.get(a);delete this.Ra[a];return b};
339xM.prototype.get=function(a){return this.Ra[a]||null};
340xM.prototype.isEmpty=function(){return g.Xb(this.Ra)};yM.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.B=b*(1-c)+c*this.B;this.C+=a};
341yM.prototype.A=function(){return this.B/(1-Math.pow(this.D,this.C))};AM.prototype.o=function(a,b){var c=Math.min(this.B,Math.max(1,Math.round(a*this.L)));c+this.C>=this.B&&(this.F=!0);for(;c--;)this.D[this.C]=b,this.C=(this.C+1)%this.B;this.H=!0};
342AM.prototype.A=function(){return this.J?(BM(this,this.G-this.J)+BM(this,this.G)+BM(this,this.G+this.J))/3:BM(this,this.G)};var ola=/^([0-9\.]+):([0-9\.]+)$/;var QM=g.y("ytglobal.prefsUserPrefsPrefs_")||{};g.ta("ytglobal.prefsUserPrefsPrefs_",QM,void 0);g.h=RM.prototype;g.h.get=function(a,b){TM(a);SM(a);var c=void 0!==QM[a]?QM[a].toString():null;return null!=c?c:b?b:""};
343g.h.set=function(a,b){TM(a);SM(a);if(null==b)throw Error("ExpectedNotNull");QM[a]=b.toString()};
344g.h.remove=function(a){TM(a);SM(a);delete QM[a]};
345g.h.save=function(){g.SG(this.o,this.dump(),63072E3)};
346g.h.clear=function(){g.Yb(QM)};
347g.h.dump=function(){var a=[],b;for(b in QM)a.push(b+"="+(0,window.encodeURIComponent)(String(QM[b])));return a.join("&")};
348g.ua(RM);var UM="blogger books docs google-live play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" ");g.t(mN,g.L);
349mN.prototype.eh=function(a){this.la=NM(this.la,a.video_id);this.Oa=NM(this.Oa,a.eventid);for(var b in Rxa){var c=Rxa[b],d=a[c];void 0!=d&&(this.A[c]=d)}this.userAge=MM(this.userAge,a.user_age);this.L=NM(this.L,a.user_display_image);g.NH(this.L)||(this.L="");this.userDisplayName=NM(this.userDisplayName,a.user_display_name);this.userGender=NM(this.userGender,a.user_gender);this.csiPageType=NM(this.csiPageType,a.csi_page_type);this.Ya=NM(this.Ya,a.csi_service_name);this.ed=KM(this.ed,a.enablecsi);if(b=
350a.enabled_engage_types)this.Ib=new window.Set(b.split(","));this.isDni=KM(!1,a.is_dni)};
351mN.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=pN(this);d&&"www.youtube.com"==c?d="../../https@youtu.be/"+a:g.lN(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,nJ&&(a=g.y("yt.ads.biscotti.lastId_")||"")&&(b.ebc=a));return g.Yg(d,b)};
352var Rxa={vZ:"cbrand",wZ:"cbr",xZ:"cbrver",V0:"c",Y0:"cver",X0:"ctheme",W0:"cplayer",J1:"cmodel",r2:"cnetwork",B2:"cos",C2:"cosver",G2:"cplatform"},Vta=["www.youtube-nocookie.com","www.youtubeedu.com","www.youtubeeducation.com","youtube.googleapis.com"];var d1={},ON=(d1.playready=["com.youtube.playready","com.microsoft.playready"],d1.widevine=["com.widevine.alpha"],d1),Bla=g.Ta(ON.widevine,ON.playready);IN.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.t(NN,g.L);NN.prototype.G=function(){(this.F=!this.F&&"widevine"==this.o[this.A[0]].flavor)||this.A.shift();PN(this)};
353NN.prototype.H=function(a,b){this.ka()||(a.A=b,Cla(this,a),this.C&&this.C(a))};g.t(VN,DJ);VN.prototype.pA=function(){return this.B};
354VN.prototype.bj=function(){if(!this.o||this.o.ka()){var a=this.A;Ila(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.A)var d=a.A;else{d=g.q(a.B);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.Lb&&e.Lb.isDefault){d=e.Lb.getId();break a}d=""}e=0;for(var f=a.B.length;e<f;++e){var k=a.B[e];k.Lb&&k.Lb.getId()!=d||(c[k.itag]=k,b.push(Hla(a,k)))}d=0;for(e=a.o.length;d<e;++d)if(f=a.o[d],a.F)for(var l in c)UN(a,b,f,c[l]);else UN(a,b,f,c[f.audioItag]);a="data:application/x-mpegurl;charset=utf-8,"+
355(0,window.encodeURIComponent)(b.join("\n"));this.o=new fJ(a)}return this.o};g.t(XN,DJ);XN.prototype.bj=function(){return new fJ(this.o.Xa())};
356XN.prototype.Dw=function(){this.o=sL(this.o)};g.t(ZN,DJ);ZN.prototype.bj=function(){return new fJ(this.o)};var Mla=new window.Set("BASE_URL BASE_YT_URL abd adformat allow_embed authuser autoplay captions_load_policy cc_load_policy cc3_module dash dashmpd disable_native_context_menu docid el enable_cardio enablecastapi enablepostapi end errorcode fmt_list fmt_stream_map forcenewui hl hlsdvr hlsrange hlsvp html5 invite iurl iurlhq iurlmq length_seconds live_playback nohtml5 origin override_hl partnerid playsinline plid postid ps public reason rel reload_count reload_reason reportabuseurl resume start status streaminglib_load_policy streaminglib_preroll t timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoid videoId wmode".split(" "));var Sxa={UNKNOWN:"UNKNOWN",NORMAL:"NORMAL",D1:"LOW",E4:"ULTRALOW"};g.h=g.aO.prototype;g.h.ub=function(){return this.F};
357g.h.getHeight=function(){return this.D};
358g.h.sA=ba(3);g.h.qt=function(){return this.B};
359g.h.isDefault=function(){return-1!=this.C.indexOf("default")};
360g.h.Ob=function(a){return this.Wc.has(a)};
361g.h.Xa=function(a){var b=this.K;b=b.replace("$N",this.C);b=b.replace("$L",this.J.toString());b=b.replace("$M",a.toString());this.G&&(b=g.Yg(b,{sigh:this.G}));return RH(b)};
362g.h.gq=function(a){var b=this.qt()-1;return g.kd(0==this.o?Math.round(a*this.B/this.L):Math.round(1E3*a/this.o),0,b)};
363g.h.Vm=function(){return this.B-1};
364g.h.Bv=function(){return this.B?0:-1};
365g.h.MF=function(){};g.t(cO,g.$F);cO.prototype.J=function(a,b){this.A=this.A.onload=null;var c=this.o[a];c.Wc.add(b);fO(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.qt()-1);e=[e,c];this.V("l",e[0],e[1])};
366cO.prototype.X=function(){this.A&&(this.A=this.A.onload=null);g.$F.prototype.X.call(this)};g.t(hO,cO);hO.prototype.B=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.F(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
367hO.prototype.F=function(a,b,c,d){return new g.aO(a,b,c,d)};g.t(jO,g.aO);g.h=jO.prototype;g.h.qt=function(){return this.A.Pj()};
368g.h.gq=function(a){var b=this.rows*this.columns*this.H,c=this.A,d=c.Qb();a=c.Jg(a);return a>d-b?-1:a};
369g.h.Vm=function(){return this.A.Qb()};
370g.h.Bv=function(){return this.A.sf()};
371g.h.MF=function(a){this.A=a};g.t(kO,hO);kO.prototype.B=function(a,b){return hO.prototype.B.call(this,"$N|"+a,b)};
372kO.prototype.F=function(a,b,c){return new jO(a,b,c,this.isLive)};var lO={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"};g.oO.prototype.toString=function(){return this.topic};var Txa=g.y("ytPubsub2Pubsub2Instance")||new g.zD;g.zD.prototype.subscribe=g.zD.prototype.subscribe;g.zD.prototype.unsubscribeByKey=g.zD.prototype.Yd;g.zD.prototype.publish=g.zD.prototype.V;g.zD.prototype.clear=g.zD.prototype.clear;g.ta("ytPubsub2Pubsub2Instance",Txa,void 0);var rO=g.y("ytPubsub2Pubsub2SubscribedKeys")||{};g.ta("ytPubsub2Pubsub2SubscribedKeys",rO,void 0);var tO=g.y("ytPubsub2Pubsub2TopicToKeys")||{};g.ta("ytPubsub2Pubsub2TopicToKeys",tO,void 0);
373var sO=g.y("ytPubsub2Pubsub2IsAsync")||{};g.ta("ytPubsub2Pubsub2IsAsync",sO,void 0);g.ta("ytPubsub2Pubsub2SkipSubKey",null,void 0);var LO=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};g.t(zO,g.nO);g.t(AO,g.nO);var Wla=new g.oO("aft-recorded",zO),vO=new g.oO("timing-sent",AO);var Zla,e1,TO,Sla,Qla,Rla,Uxa,UO,Vla,Pla,Yva;Zla={vc:!0};e1={};
374TO=(e1.ad_allowed="adTypesAllowed",e1.yt_abt="adBreakType",e1.ad_cpn="adClientPlaybackNonce",e1.ad_docid="adVideoId",e1.yt_ad_an="adNetworks",e1.ad_at="adType",e1.browse_id="browseId",e1.p="httpProtocol",e1.t="transportProtocol",e1.cpn="clientPlaybackNonce",e1.csn="clientScreenNonce",e1.docid="videoId",e1.is_continuation="isContinuation",e1.is_nav="isNavigation",e1.b_p="kabukiInfo.browseParams",e1.is_prefetch="kabukiInfo.isPrefetch",e1.is_secondary_nav="kabukiInfo.isSecondaryNav",e1.prev_browse_id=
375"kabukiInfo.prevBrowseId",e1.query_source="kabukiInfo.querySource",e1.voz_type="kabukiInfo.vozType",e1.yt_lt="loadType",e1.yt_ad="isMonetized",e1.nr="webInfo.navigationReason",e1.ncnp="webInfo.nonPreloadedNodeCount",e1.paused="playerInfo.isPausedOnLoad",e1.fmt="playerInfo.itag",e1.yt_pl="watchInfo.isPlaylist",e1.yt_ad_pr="prerollAllowed",e1.yt_red="isRedSubscriber",e1.st="serverTimeMs",e1.aq="tvInfo.appQuality",e1.br_trs="tvInfo.bedrockTriggerState",e1.label="tvInfo.label",e1.is_mdx="tvInfo.isMdx",
376e1.preloaded="tvInfo.isPreloaded",e1.query="unpluggedInfo.query",e1.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",e1.yt_vst="videoStreamType",e1.vph="viewportHeight",e1.vpw="viewportWidth",e1.yt_vis="isVisible",e1);Sla="ap c cver cbrand cmodel ei srt yt_fss yt_li plid vpil vpni vpst yt_eil vpni2 vpil2 icrc icrt pa GetBrowse_rid GetPlayer_rid GetSearch_rid GetWatchNext_rid cmt d_vpct d_vpnfi d_vpni pc pfa pfeh pftr prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis yt_ref yt_sts".split(" ");
377Qla={ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",app_startup:"LATENCY_ACTION_APP_STARTUP",browse:"LATENCY_ACTION_BROWSE",channels:"LATENCY_ACTION_CHANNELS",channel:"LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD","channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.comments":"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS","channel.copyright":"LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT","channel.monetization":"LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION","channel.translations":"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
378"channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",chips:"LATENCY_ACTION_CHIPS",embed:"LATENCY_ACTION_EMBED",home:"LATENCY_ACTION_HOME",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",prebuffer:"LATENCY_ACTION_PREBUFFER",prefetch:"LATENCY_ACTION_PREFETCH",results:"LATENCY_ACTION_RESULTS",search:"LATENCY_ACTION_RESULTS",search_zero_state:"LATENCY_ACTION_SEARCH_ZERO_STATE",tenx:"LATENCY_ACTION_TENX",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH","watch,watch7":"LATENCY_ACTION_WATCH",
379"watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH",wn_comments:"LATENCY_ACTION_LOAD_COMMENTS","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS","video.edit":"LATENCY_ACTION_CREATOR_VIDEO_EDIT","video.translations":"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS","video.video_editor":"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR","video.video_editor_async":"LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC"};
380Rla="isContinuation isNavigation kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist".split(" ");Uxa={};UO=(Uxa.yt_vst="VIDEO_STREAM_TYPE_",Uxa);Vla=!1;Pla=(0,g.B)(LO.clearResourceTimings||LO.webkitClearResourceTimings||LO.mozClearResourceTimings||LO.msClearResourceTimings||LO.oClearResourceTimings||g.A,LO);g.jQ=QO;Yva=EO;g.iQ=OO;var f1;var Vxa=g.Eb,Wxa=Vxa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Wxa||2>Wxa.length)f1=void 0;else{var g1=Vxa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);f1=g1&&6==g1.length?Number(g1[5].replace("_",".")):0}var hZ=f1,gZ=0<=hZ;gZ&&0<=g.Eb.search("Safari")&&g.Eb.search("Version");var yma={0:"UNKNOWN",1:"OFF",2:"ON",3:"FORCED_ON"},h1={},Xxa=(h1.ALWAYS=1,h1.BY_REQUEST=3,h1),jma,ama;g.t(g.YO,g.$F);g.h=g.YO.prototype;g.h.eh=function(a,b){b?(this.setData(a),kP(this)&&gP(this)):(kma(this,a,!0),this.V("dataupdated"))};
381g.h.setData=function(a){a=a||{};var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=g.yx(c))}b&&(this.tb=b);if(this.tb&&((b=this.tb.attestation)&&zma(this,b),(b=this.tb.heartbeatParams)&&Ama(this,b,a),(b=this.tb.playerConfig)&&Bma(this,b),(b=this.tb.videoDetails)&&Cma(this,b),b=this.tb.interstitialPods))for(b=g.q(b),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(a){return(a=a.playerVars)&&Object.assign({is_yto_interstitial:!0},g.wE(a))});
382switch(c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":this.tq=this.tq.concat(d);break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":this.rq=this.rq.concat(d)}}this.ki="1"!=a.hlsdvr?!1:BJ()?!0:VM&&5>hZ?!1:!0;this.adQueryId=a.ad_query_id||null;this.adSafetyReason=a.encoded_ad_safety_reason||null;this.uj=a.agcid||null;this.adIds=a.ad_id||null;this.adSystems=a.ad_sys||null;this.Vz=a.encoded_ad_playback_context||null;this.ko="1"==a.infringe||"1"==a.muted;this.authKey=a.authkey;
383this.gd=a.authuser;this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||mH());this.enableCardio=KM(this.enableCardio,a.enable_cardio);this.enableCardioBeforePlayback=KM(this.enableCardioBeforePlayback,a.enable_cardio_before_playback);this.endSeconds=MM(this.endSeconds,a.end||a.endSeconds);this.dk=NM(this.dk,a.itct);this.tu=KM(this.tu,a.noiba);this.ym="1"==a.livemonitor;this.La="1"==a.live_playback;this.Ep="1"==a.post_live_playback;this.isLiveDestination=KM(this.isLiveDestination,a.is_live_destination);
384this.isLiveDefaultBroadcast="1"==a.live_default_broadcast;this.isLowLatencyLiveStream="1"==a.is_low_latency_live_stream;if(b=a.latency_class)this.latencyClass=LM("UNKNOWN",b,Sxa);(this.isVisualizerEligible="1"==a.is_visualizer_eligible)&&this.Yc.push("visualizer");this.isMdxPlayback=KM(this.isMdxPlayback,a.mdx);if(b=a.mdx_control_mode)this.mdxControlMode=g.Ab(b);this.ru=KM(this.ru,a.is_inline_playback_no_ad);this.rg=MM(this.rg,a.reload_count);this.reloadReason=NM(this.reloadReason,a.reload_reason);
385this.yu=KM(this.yu,a.utpsa);this.cycToken=a.cyc||null;this.kG=a.tkn||null;this.Zh=mO(a);this.lf=NM(this.lf,a.vvt);this.revocableUnlistedToken=a.revocable_unlisted_token;this.mdxEnvironment=NM(this.mdxEnvironment,a.mdx_environment);this.jR=a.osig;this.KE=a.ptchn;this.LE=a.oid;this.hn=a.ptk;this.ME=a.pltype;this.playbackId=a.plid;this.eventId=a.eventid;this.osid=a.osid;this.videoMetadata=a.vm;this.jw=a.of;this.kr=a.upt;this.playlistId=NM(this.playlistId,a.list);this.TE=a.pyv_view_beacon_url;this.VE=
386a.pyv_quartile25_beacon_url;this.WE=a.pyv_quartile50_beacon_url;this.XE=a.pyv_quartile75_beacon_url;this.UE=a.pyv_quartile100_beacon_url;if(b=a.remarketing_url)this.remarketingUrl=b;this.tb&&this.tb.playbackTracking&&this.tb.playbackTracking.youtubeRemarketingUrl&&(this.youtubeRemarketingUrl=this.tb.playbackTracking.youtubeRemarketingUrl.baseUrl);this.tb&&this.tb.playbackTracking&&this.tb.playbackTracking.googleRemarketingUrl&&(this.googleRemarketingUrl=this.tb.playbackTracking.googleRemarketingUrl.baseUrl);
387if(b=a.ppv_remarketing_url)this.ppvRemarketingUrl=b;this.Fq=a.sdetail;b=a.session_data;!this.uw&&b&&(this.uw=g.uE(b).feature);this.isFling=1==MM(this.isFling?1:0,a.is_fling);this.vnd=MM(this.vnd,a.vnd);this.Ys=NM(this.Ys,a.force_ads_url);this.Ff=NM(this.Ff,a.ctrl);this.Gf=NM(this.Gf,a.ytr);this.Ao=a.ytrcc;this.dF=a.ytrexp;this.slotPosition=MM(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.Tq=KM(this.Tq,a.ssrt);this.videoId=PM(a)||this.videoId;this.vssCredentialsToken=NM(this.vssCredentialsToken,
388a.vss_credentials_token);this.zr=NM(this.zr,a.vss_credentials_token_type);this.kw||(this.heartbeatToken=NM(this.heartbeatToken,a.heartbeat_token),this.heartbeatInterval=MM(this.heartbeatInterval,a.heartbeat_interval),this.heartbeatRetries=MM(this.heartbeatRetries,a.heartbeat_retries),this.heartbeatSoftFail=KM(this.heartbeatSoftFail,a.heartbeat_soft_fail),this.sm=KM(this.sm,a.ithb));this.relativeLoudness=MM(this.relativeLoudness,a.relative_loudness);this.vx=KM(this.vx,a.audio_only);this.tx=KM(this.tx,
389a.aac_high);this.preferLowQualityAudio=KM(this.preferLowQualityAudio,a.prefer_low_quality_audio);this.isDni=KM(!1,a.is_dni);this.dniColor=NM("#cc181e",a.dni_color);this.Cq=NM(this.Cq,a.qoe_cat);if(a.ad3_module||a.ad_module)this.adModule=!0,"1"==a.ad_preroll&&this.Yc.push("ad");if(b=a.adaptive_fmts)this.adaptiveFormats=b;if(b=a.license_info)this.ud=xma(b),this.drmParams=NM(this.drmParams,a.drm_params);if(b=a.allow_embed)this.allowEmbed="1"==b;if(b=a.backgroundable)this.backgroundable="1"==b;if(b=a.autonav)this.wm=
390"1"==b;if(b=a.autoplay)this.jn="1"==b;(b=a.iv_load_policy)?this.jh=LM(this.jh,b,fN):(b=bma(this.tb))&&b.loadPolicy&&(this.jh=Xxa[b.loadPolicy]);if(b=a.cc_lang_pref)this.lh=NM(b,this.lh);if(b=a.cc_load_policy)this.mh=LM(this.mh,b,fN);"0"==a.dash&&(this.Pz=!0);if(b=a.dashmpd)this.qf=g.Yg(b,{cpn:this.clientPlaybackNonce});if(b=a.delay)this.Sf=g.Ab(b);!this.kw&&(b=a.drm_session_id)&&(this.drmSessionId=b);b=a.end;void 0!=b&&(this.clipEnd=MM(this.clipEnd,b));a.fair_play_cert&&window.atob&&(this.fairPlayCert=
391(0,window.atob)(a.fair_play_cert));a.fair_play_key_rotation_period&&(this.No=g.Ab(a.fair_play_key_rotation_period));a.fair_play_key_prefetch_margin&&(this.Mo=g.Ab(a.fair_play_key_prefetch_margin));if(b=a.fmt_list)this.fmtList=b;a.fresca_preroll&&this.Yc.push("fresca");a.heartbeat_preroll&&this.Yc.push("heartbeat");if(b=a.idpj)this.ck=g.Ab(b);if(b=a.ismb)this.Og=g.Ab(b);if(b=a.is_listed)this.isListed=KM(this.isListed,b);if(b=a.pipable)this.pipable=KM(this.pipable,b);if(b=a.paid_content_overlay_duration_ms)this.JE=
392g.Ab(b);if(b=a.paid_content_overlay_text)this.gW=b;if(b=a.url_encoded_fmt_stream_map)this.dl=b;if(b=a.hls_formats)this.hlsFormats=b;if(b=a.hlsvp)this.hlsvp=b;if(b=a.length_seconds)this.lengthSeconds=g.w(b)?g.Ab(b):b;if(b=a.live_chunk_readahead)this.liveChunkReadahead=MM(this.liveChunkReadahead,b);if(b=a.live_start_walltime)this.liveStartWalltime=g.Ab(b);if(b=a.live_manifest_duration)this.Bu=g.Ab(b);if(b=a.ldpj)this.Am=g.Ab(b);if(b=a.player_params)this.playerParams=b;if(b=a.partnerid)this.Df=MM(this.Df,
393b);if(b=a.probe_url)this.probeUrl=RH(g.Yg(b,{cpn:this.clientPlaybackNonce}));if(b=a.profile_picture)this.profilePicture=NM(b,this.profilePicture);(b=a.pyv_billable_url)&&g.OH(b)&&(this.yq=b);(b=a.pyv_conv_url)&&g.OH(b)&&(this.zq=b);if(b=a.video_masthead_ad_quartile_urls)this.Ju=b.quartile_0_url,this.SB=b.quartile_25_url,this.TB=b.quartile_50_url,this.UB=b.quartile_75_url,this.RB=b.quartile_100_url;"1"==a.spacecast_playback&&(this.Yc.push("spacecast"),this.spacecastModule=!0,this.mj.playback=!0);if(c=
394a.spacecast_addrs)this.spacecastModule=!0,b={},b.addresses=c.split(","),b.probe=!0,(c=a.spacecast_query_params)&&(b.applianceQueryParams=c),this.mj.init=b;0<this.startSeconds||(this.Ng=this.startSeconds=MM(this.startSeconds,a.start||a.startSeconds));b=a.live_utc_start;null!=b&&(this.liveUtcStartSeconds=(0,window.parseInt)(b,10));if(b=a.utc_start_millis)this.liveUtcStartSeconds=.001*(0,window.parseInt)(b,10);if(b=a.stream_time_start_millis)this.Pw=.001*(0,window.parseInt)(b,10);b=a.start;void 0==b||
395"1"==a.resume||this.La||(this.clipStart=MM(this.clipStart,b));if(b=a.two_stage_token)this.ci=b;if(b=a.url_encoded_third_party_media)this.Wk=xE(b);if(b=a.watch_ajax_token)this.watchAjaxToken=b;a.ypc_module&&this.Yc.push("ypc");a.ypc_clickwrap_module&&this.Yc.push("ypc_clickwrap");if(b=a.ypc_offer_button_formatted_text)b=g.yx(b),this.ypcOfferButtonFormattedText=null!=b?b:null;if(b=a.ypc_trailer_player_vars)this.ypcTrailerPlayerVars=g.wE(b);this.al=NM(this.al,a.ucid);(0,g.D)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),
396function(b){a[b]&&(this.Ne[b]=a[b])},this);
397this.Ne.focEnabled=KM(this.Ne.focEnabled,a.focEnabled);this.Ne.rmktEnabled=KM(this.Ne.rmktEnabled,a.rmktEnabled);this.sc=a;kma(this,a,!1);fP(this)?RE()&&(this.La&&this.qf?this.Ej=!0:this.fairPlayCert&&(this.jk=!0)):!mma(this,XO(this))&&this.qf&&(this.Ej=!0);if(b=a.adpings)this.Oy=b?g.wE(b):null;if(b=a.feature)this.mn=b;if(b=a.referrer)this.referrer=b;if(b=a.multifeed_metadata_list)this.li=xE(b);this.clientScreenNonce=NM(this.clientScreenNonce,a.csn);this.rootVeType=MM(this.rootVeType,a.root_ve_type);
398this.Hp=MM(this.Hp,a.kids_age_up_mode);this.rr=KM(this.rr,a.upg_content_filter_mode);if(b=a.unplugged_location_info)this.Jd=b;if(b=a.unplugged_partner_opt_out)this.Yk=NM("",b);if(b=a.partial_spherical)this.xu="1"==b;this.tm=NM(this.tm,a.internal_ip_override);this.hasSubfragmentedFmp4=KM(this.hasSubfragmentedFmp4,a.sfmp4);this.defraggedFromSubfragments=KM(this.defraggedFromSubfragments,a.dfs);this.liveExperimentalContentId=MM(this.liveExperimentalContentId,a.live_experimental_content_id);(this.tq.length||
399this.rq.length||a.is_yto_interstitial)&&this.Yc.push("yto")};
400g.h.Vc=function(){return!this.La||this.ki};
401g.h.XM=function(a){if(this.Rg=a)switch(a.flavor){case "fairplay":a.fairPlayCert=this.fairPlayCert;a.No=this.No;a.Mo=this.Mo;break;case "widevine":a.An=this.An}gP(this)};
402g.h.rS=function(a){if(!this.ka()){if(this.Vq){var b=pM(a,this.Vq);b&&(a=b)}cP(this,a);this.ra.B&&this.ra.subscribe("refresh",this.YD,this);(0,g.iQ)("mrc");fM(this.ra)&&(this.jk=!0);gP(this)}};
403g.h.qS=function(a){this.ka()||(this.Kh=!1,this.V("dataloaderror",new QN("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
404g.h.YD=function(){this.ka()||(this.ra.B||this.ra.unsubscribe("refresh",this.YD,this),this.qz())};
405g.h.qz=function(){var a=this.ra.Se(this.zu);0<a.length&&(this.V("cuepointupdated",a),this.zu+=a.length)};
406g.h.mN=function(){if(this.spacecastFormatMap){var a=bP(this,this.spacecastFormatMap);return YN(this.Jb,this.isAd(),a,tma(this)).then(this.Qq,void 0,this).then(this.gA,void 0,this)}return fF()};
407g.h.jN=function(a){a=a||fP(this);if(this.ra&&!a){if($O(this)&&(a=this.ra,!a.o["0"])){var b=new CI("0","fakesb",void 0,new xI(0,0,0,void 0,void 0,"auto"),null,null,1);a.o["0"]=this.La?new LL(new g.nL("../../www.youtube.com/videoplayback"),b,"fake"):new g.aM(new g.nL("http://www.youtube.com/videoplayback"),b,new g.vK(0,0),new g.vK(0,0),0,window.NaN)}return MN(aP(this),this.Jb.M,this.ra,this.Rg).then(this.Rq,void 0,this)}return fF()};
408g.h.kN=function(a){if(!XO(this).o("html5_hlsvp_airplay_killswitch")&&a&&this.hlsvp)return fF();if(this.hlsFormats){a=bP(this,this.hlsFormats);if(nJ||VE()||RE()){var b=SN(a);if(b){var c=[],d={};for(l in b)for(var e=g.q(b[l]),f=e.next();!f.done;f=e.next()){var k=f.value;k.Lb&&(f=k.Lb.getId(),d[f]||(k=new tI(f,k.Lb),d[f]=k,c.push(k)))}var l=0<c.length?c:null}else l=null}else l=null;this.pp=l;l=XO(this).o("html5_hls_cpn_killswitch")?"":this.clientPlaybackNonce;return Kla(this.Jb,this.isAd(),a,this.Og,
409l).then(this.Qq,void 0,this)}return fF()};
410g.h.nN=function(){if(this.Wk&&this.yB){var a=this.Jb;var b=this.isAd(),c=Lla(this.Wk);a=EJ(c,nN(a,b)).then(this.Qq,void 0,this)}else a=fF();return a};
411g.h.lN=function(){var a=bP(this,this.dl,this.fmtList);if(this.hlsvp){var b=this.hlsvp;var c=this.Og,d={cpn:this.clientPlaybackNonce};-1==b.indexOf("/ibw/")&&(d.ibw=c?String(c):"1369843");b={url:g.Yg(b,d),type:"application/x-mpegURL",quality:"auto",itag:"93"};a.push(b)}return YN(this.Jb,this.isAd(),a,tma(this)).then(this.Qq,void 0,this)};
412g.h.Rq=function(a){this.Pa=a;a=this.getAvailableAudioTracks();a=a.concat(this.Dl);for(var b=0;b<this.wl.length;b++)for(var c=this.wl[b],d=0;d<a.length;d++){var e=a[d],f=e.Lb.id==c.audioTrackId;if(e.Lb.isDefault&&b==this.ys||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];g.u(c.defaultCaptionTrackIndex)&&(e.Ss=this.captionTracks[c.defaultCaptionTrackIndex]);g.u(c.forcedCaptionTrackIndex)&&(e.Uo=this.captionTracks[c.forcedCaptionTrackIndex]);
413e.As=c.visibility||"UNKNOWN"}}};
414g.h.Qq=function(a){this.Ef=a;this.Rq(new IN((0,g.J)(this.Ef,function(a){return a.Uf()})))};
415g.h.gA=function(){var a=(0,g.Xj)(this.Pa.videoInfos,function(a,c){return c.video.isAccelerated&&(!a||a.height<c.video.height)?c.video:a},null);
416a&&(this.ws=HJ(a.quality,a.quality,!0,"c"))};
417g.h.Qd=function(){var a={};this.Fa&&(a.fmt=g.BI(this.Fa),this.Gc&&g.BI(this.Gc)!=g.BI(this.Fa)&&(a.afmt=g.BI(this.Gc)));a.plid=this.playbackId;a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.ko&&(a.infringe=1);this.Eh&&(a.splay=1);var b=iP(this);b&&(a.live=b);this.jn&&(a.autoplay=1);this.Fq&&(a.sdetail=this.Fq);this.Df&&(a.partnerid=this.Df);this.osid&&(a.osid=this.osid);return a};
418g.h.Ve=function(){if(!this.Zd)if(this.tb&&this.tb.storyboards){var a=this.tb.storyboards,b=a.playerStoryboardSpecRenderer;b&&b.spec?this.Zd=new hO(b.spec,this.lengthSeconds):(a=a.playerLiveStoryboardSpecRenderer)&&a.spec&&this.ra&&(b=Nb(this.ra.o).index)&&(this.Zd=new kO(a.spec,this.ra.isLive,b))}else(a=this.sc.storyboard_spec)?this.Zd=new hO(a,this.lengthSeconds):(a=this.sc.live_storyboard_spec)&&this.ra&&(b=Nb(this.ra.o).index)&&(this.Zd=new kO(a,this.ra.isLive,b));return this.Zd};
419g.h.getStoryboardFormat=function(){if(this.tb&&this.tb.storyboards){var a=this.tb.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.sc.storyboard_spec||this.sc.live_storyboard_spec||null};
420g.h.yd=function(){return this.ra&&!(0,window.isNaN)(this.ra.yd())?this.ra.yd():dP(this)?0:this.lengthSeconds};
421g.h.bc=function(){return this.ra&&!(0,window.isNaN)(this.ra.bc())?this.ra.bc():0};
422g.h.Td=function(){return!this.ka()&&!(!this.videoId&&!this.Wk)};
423g.h.Ob=function(){return kP(this)&&!this.Ej&&!this.jk};
424g.h.uF=function(){var a={format:"RAW",method:"GET",withCredentials:this.gF};this.Sk&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});0<this.Ct&&(a.timeout=this.Ct);var b=this.CA;0<this.Kq&&(b=g.BE(b,{playerretry:this.Kq}));this.Jk&&(b=g.BE(b,{preload:1}));this.DA?cM(cF,b,a).then(mE(this.dE),mE(this.PS),this):(a.context=this,a.onSuccess=this.dE,a.onError=this.Kt,g.IE(b,a));(0,g.iQ)("vir");SO("vir");this.BA=g.zG()};
425g.h.hd=function(a){if(30==this.Df)return(a=this.Zh["default.jpg"])?a:this.videoId?g.Yg("//docs.google.com/vt",{id:this.videoId,authuser:this.gd,authkey:this.authKey}):"../../https@docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Zh[a];return b||this.Jb.G||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:qN(this.Jb,this.videoId,a)};
426g.h.dE=function(a){if(!this.ka()){var b=a.responseText;if(b){this.Kh=!1;var c=g.wE(b);this.wB&&$N(c);"fail"==c.status?(this.setData(c),this.V("onStatusFail",c)):((0,g.iQ)("virc"),SO("virc"),(0,g.D)(g.i1,function(a){a in this.sc&&(c[a]=this.sc[a])},this),this.setData(c),kP(this)?gP(this):this.V("dataloaderror",new QN("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.Kt(a)}};
427g.h.PS=function(a){this.Kt(a.Si)};
428g.h.Kt=function(a){if(!this.ka()){var b=a?a.status:-1;a=this.Kq>=this.Aw||400==b;var c=200<b?"manifest.net.badstatus":"manifest.net.connect",d=((g.zG()-this.BA)/1E3).toFixed(3);b={backend:"gvi",rc:b,rt:d};a&&this.Aw?c="manifest.net.retryexhausted":a||(this.Kq++,this.tF.start());this.V("dataloaderror",new QN(c,a,b))}};
429g.h.gk=function(){return this.La||this.Ep};
430g.h.getAvailableAudioTracks=function(){return this.Pa?0<this.Pa.getAvailableAudioTracks().length?this.Pa.getAvailableAudioTracks():this.pp||[]:[]};
431g.h.getAudioTrack=function(){var a=this;if(this.Gc&&!GI(this.Gc))return g.Ha(this.getAvailableAudioTracks(),function(b){return b.id==a.Gc.id})||this.Dl;
432if(this.pp){if(!this.pn)for(var b=g.q(this.pp),c=b.next();!c.done;c=b.next())if(c=c.value,c.Lb.isDefault){this.pn=c;break}return this.pn||this.Dl}return this.Dl};
433g.h.getPlayerResponse=function(){return this.tb};
434g.h.getPlaylistId=function(){return null};
435g.h.Qa=function(){return this};
436g.h.Xl=function(){return this.Jb.getVideoUrl(this.videoId)};
437g.h.Pg=function(){return!!this.ra&&this.ra.Pg()};
438g.h.Qg=function(){return!!this.ra&&this.ra.Qg()};
439g.h.Yf=function(){return!!this.ra&&this.ra.Yf()};
440g.h.Li=function(){return!!this.ra&&this.ra.Li()};
441g.h.isAd=function(){return!!this.adFormat};
442g.i1="oauth_token ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_button_formatted_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");jma="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_button_formatted_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
443ama=["annotations","captions","storyboard","chapterMarkers"];Hma.prototype.isEmpty=function(){return this.endTime==this.startTime};Ima.prototype.update=function(){if(!this.A.o.experiments.o("html5_ignore_updates_before_initial_ping")||this.J){var a=this.A.A()||0,b=g.wP(this.A);if(a!=this.o||Lma(this,a,b)){var c;if(!(c=a<this.o||a-this.o>b-this.F+2||Lma(this,a,b))){var d=this.A.Qd();c=d.volume;var e=c!=this.L;d=d.muted;d!=this.K?(this.K=d,c=!0):(!e||0<=this.D||(this.L=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(g.vP(this),this.B=a);this.F=b;this.o=a}}};var Pma={other:1,none:2,wifi:3,cellular:7};g.aT=uc(function(){var a="";try{var b=g.Nd("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});var zqa,j1,Rma;
444zqa={XY:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",dZ:"ERROR_AUTHENTICATION_MALFORMED",eZ:"ERROR_AUTHENTICATION_MISSING",jZ:"ERROR_BAD_REQUEST",KZ:"ERROR_CGI_PARAMS_MALFORMED",LZ:"ERROR_CGI_PARAMS_MISSING",r_:"YTP_DEVICE_FALLBACK",V_:"ERROR_GENERIC_WITH_LINK_AND_CPN",W_:"YTP_ERROR_LICENSE",X_:"YTP_ERROR_VIDEO_UNAVAILABLE",l0:"YTP_ERROR_FORMAT_UNAVALIABLE",o0:"YTP_ERROR_GEO_FAILURE",G0:"YTP_ERROR_GENERIC_WITHOUT_LINK",H0:"YTP_HTML5_FLASH_DEPRECATED",I0:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
445J0:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",a1:"YTP_ERROR_INVALID_DRM_MESSAGE",Z2:"YTP_ERROR_PURCHASE_NOT_FOUND",a3:"YTP_ERROR_PURCHASE_REFUNDED",f3:"YTP_ERROR_RENTAL_EXPIRED",FZ:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",GZ:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",IZ:"YTP_ERROR_CAST_TOKEN_FAILED",HZ:"YTP_ERROR_CAST_TOKEN_EXPIRED",JZ:"YTP_ERROR_CAST_TOKEN_MALFORMED",D3:"YTP_ERROR_SERVER_ERROR",a4:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",f4:"YTP_ERROR_STREAM_LICENSE_NOT_FOUND",d4:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
446e4:"YTP_ERROR_STREAMING_NOT_ALLOWED",q3:"YTP_ERROR_RETRYABLE_ERROR",u4:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",t4:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",J4:"YTP_ERROR_UNSUPPORTED_DEVICE",W4:"YTP_ERROR_VIDEO_FORBIDDEN",Y4:"YTP_ERROR_VIDEO_NOT_FOUND"};j1={};
447g.oT=(j1.YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE="\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",j1.YTP_DEVICE_FALLBACK=
448"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",j1.ERROR_GENERIC_WITH_LINK_AND_CPN="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f: $CPN. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
449j1.YTP_ERROR_LICENSE="\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",j1.YTP_ERROR_VIDEO_UNAVAILABLE="\u041e\u0448\u0438\u0431\u043a\u0430",j1.YTP_ERROR_FORMAT_UNAVALIABLE="\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043a\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
450j1.YTP_ERROR_GEO_FAILURE="\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",j1.YTP_ERROR_GENERIC_WITHOUT_LINK="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",j1.YTP_HTML5_FLASH_DEPRECATED=
451"\u0412\u0438\u0434\u0435\u043e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 Flash \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. $BEGIN_LINK\u041f\u041e\u0414\u0420\u041e\u0411\u041d\u0415\u0415$END_LINK",j1.YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK=
452"\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",j1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
453j1.YTP_ERROR_INVALID_DRM_MESSAGE="\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",j1.YTP_ERROR_PURCHASE_NOT_FOUND="\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",
454j1.YTP_ERROR_PURCHASE_REFUNDED="\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",j1.YTP_ERROR_RENTAL_EXPIRED="\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",j1.YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED="\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
455j1.YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED="\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",j1.YTP_ERROR_CAST_TOKEN_FAILED="\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
456j1.YTP_ERROR_CAST_TOKEN_EXPIRED="\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",j1.YTP_ERROR_CAST_TOKEN_MALFORMED="\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
457j1.YTP_ERROR_SERVER_ERROR="\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",j1.YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK="\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
458j1.YTP_ERROR_STREAM_LICENSE_NOT_FOUND="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u043e. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443.",j1.YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",
459j1.YTP_ERROR_STREAMING_NOT_ALLOWED="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",j1.YTP_ERROR_RETRYABLE_ERROR="\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
460j1.YTP_ERROR_TOO_MANY_STREAMS_PER_USER="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
461j1.YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",
462j1.YTP_ERROR_UNSUPPORTED_DEVICE="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",j1.YTP_ERROR_VIDEO_FORBIDDEN="\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",j1.YTP_ERROR_VIDEO_NOT_FOUND=
463"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",j1);
464Rma={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",
4655E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var Yxa=gZ&&4>hZ?.1:0,Jva=new xP;xP.prototype.o=null;xP.prototype.getDuration=function(){return this.duration||0};
466xP.prototype.getCurrentTime=function(){return this.currentTime||0};
467xP.prototype.A=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.t(g.yP,g.L);g.h=g.yP.prototype;g.h.nj=ba(6);g.h.Rp=function(){return this.C};
468g.h.pk=function(a){var b="";a&&(Tma(this,a),b=a.o);this.zd()&&""==b||(b&&this.zd()!=b&&(this.Up(b),this.A&&(this.A.dispose(),this.A=null)),a&&a.A||this.load(),this.K||(this.addEventListener("volumechange",this.uz),this.K=!0))};
469g.h.uq=function(){if(!this.A||this.A.ka()){var a=this.na();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new UI(a);a=new gJ(a);this.pk(a.Cm);this.A=a}};
470g.h.Nj=function(){this.H||(this.D=null);if(this.D)return this.D;this.uq();var a=this.A;this.A=null;return this.D=a};
471g.h.Xc=function(){this.Vi()&&this.jc(0);!this.zd()&&this.C&&(g.lE(Error("playVideo without src")),this.Up(this.C.o),this.C.A||this.load());var a=this.play();!a&&gZ&&7<=hZ&&TF(this,"playing",(0,g.B)(function(){g.rE((0,g.B)(this.jA,this,this.getCurrentTime(),0),500)},this));
472return a};
473g.h.jA=function(a,b){this.Wi()||this.getCurrentTime()>a||10<b||(this.play(),g.rE((0,g.B)(this.jA,this,this.getCurrentTime(),b+1),500))};
474g.h.jc=function(a){0<this.Ce()&&(gZ&&4>hZ&&(a=Math.max(.1,a)),this.Jm(a))};
475g.h.md=function(){!this.A&&this.zd()&&(nJ&&0<this.getCurrentTime()&&this.jc(0),this.xw(),this.load(),Tma(this,null))};
476g.h.qk=function(){try{return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:YI(this.Tl()),vbu:YI(this.Tf()),vpa:""+ +this.Wi(),vsk:""+ +this.Sp(),ven:""+ +this.Vi(),vpr:""+this.Lc(),vrs:""+this.Ce(),vns:""+this.ep(),vec:""+this.Eb(),vvol:""+this.getVolume()}}catch(a){return{}}};
477g.h.addEventListener=function(a,b){this.G.W(a,b,!1,this);this.Xs(a)};
478g.h.removeEventListener=function(a,b){this.G.Ia(a,b,!1,this)};
479g.h.dispatchEvent=function(a){return this.G.dispatchEvent(a)};
480g.h.Ws=function(){this.J=!1};
481g.h.Ts=function(){this.J=!0;this.sk(!0)};
482g.h.uz=function(){this.J&&!this.Qp()&&this.sk(!0)};
483g.h.X=function(){this.K&&this.removeEventListener("volumechange",this.uz);this.D&&this.D.dispose();this.A&&this.A.dispose();g.L.prototype.X.call(this)};g.t(DP,g.mf);DP.prototype.preventDefault=function(){g.mf.prototype.preventDefault.call(this);this.o&&this.o.preventDefault()};
484DP.prototype.stopPropagation=function(){g.mf.prototype.stopPropagation.call(this);this.o&&this.o.stopPropagation()};g.FP.prototype.rb=function(){return g.X(this,8)&&!g.X(this,512)&&!g.X(this,64)&&!g.X(this,2)};
485g.FP.prototype.isError=function(){return g.X(this,128)};g.t(TP,g.L);
486TP.prototype.D=function(a){if(!this.ka()&&(a=0<=a?a:g.wP(this.o),-1<["PL","B","S"].indexOf(this.B)&&(!g.Xb(this.A)||a>=this.C+30)&&(g.SP(this,a,"vps",[this.B]),this.C=a),!g.Xb(this.A))){VP(this,a);var b=a,c=this.o.G(),d=c.droppedVideoFrames,e=d-this.ga;if(d>c.totalVideoFrames||5E3<e)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else 0<e&&g.SP(this,b,"df",[e]);this.ga=d;!this.o.o.experiments.o("disable_webgl_reporting")&&0<this.F&&(g.SP(this,a,"glf",[this.F]),this.F=0);
487a={event:"streamingstats"};this.o.videoData.Fa&&(a.fmt=g.BI(this.o.videoData.Fa),(b=this.o.videoData.Gc)&&g.BI(b)!=a.fmt&&(a.afmt=g.BI(b)));a.cpn=this.o.videoData.clientPlaybackNonce;a.ei=this.o.videoData.eventId;a.el=oP(this.o.videoData);a.docid=this.o.videoData.videoId;a.ns=this.o.o.ba;a.fexp=this.o.o.experiments.experimentIds.toString();a.cl="219577728";this.o.videoData.adFormat&&(a.adformat=this.o.videoData.adFormat);(b=iP(this.o.videoData))&&(a.live=b);a.seq=this.K++;if(!this.o.o.experiments.o("html5_prevent_qoe_spam_killswitch")&&
488(7E3==this.K&&g.lE(Error("Sent over 7000 pings"),"WARNING"),7E3<=this.K))return;g.ec(a,this.o.o.A);b=g.Yg("//"+this.o.o.ih+"/api/stats/qoe",a);a=c="";for(var f in this.A)null==this.A[f]?g.lE(Error("Stats report key has invalid value: "+f),"WARNING"):(d="&"+f+"="+this.A[f].join(","),100<d.length?a+=d:c+=d);f=b+c;a=a.replace(/ /g,"%20");b=sP(this.o.videoData);c=this.o.videoData.visitorData;d=b&&DE();e=c&&this.o.o.Ca;if(d||e){var k={};d&&(k.Authorization="Bearer "+b);e&&(k["X-Goog-Visitor-Id"]=c);g.IE(f,
489{headers:k,withCredentials:!0,method:"POST",postBody:a})}else $E(f,void 0,a);this.A={}}};
490TP.prototype.va=function(){if(this.o.videoData.Rg){var a=this.o.videoData.Rg;XP(this,"drm-"+a.flavor);XP(this,"eme-"+(a.A?"final":CN(a)?"ms":"com.youtube.fairplay"==a.o?"ytfp":GN(a)?"safarifp":"nonfinal"))}};
491TP.prototype.onError=function(a,b){var c=g.wP(this.o);Yma(this,c,a,b);VP(this,c);WP(this)};
492TP.prototype.X=function(){g.L.prototype.X.call(this);window.clearInterval(this.aa)};
493var k1={},Zma=(k1[5]="N",k1[-1]="N",k1[3]="B",k1[0]="EN",k1[2]="PA",k1[1]="PL",k1);YP.prototype.send=function(a){if(!this.U){var b=aQ(this);b=g.Yg(this.pa,b);if(this.G)this.K&&(a=(this.la?ZP(this):null)||{},a.method="POST",a.Sb={atr:this.K},this.Sk&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.IE(b,a));else{var c=ZP(this,a);c?g.IE(b,c):g.YE(b,a)}this.U=!0}};
494YP.prototype.o=function(a){void 0==a&&(a=window.NaN);return(1*a.toFixed(3)).toString()};g.t(bQ,g.L);g.h=bQ.prototype;g.h.tS=function(a,b){if(!this.ka()){this.G=window.NaN;this.B.update();var c=Kma(this.B),d=cna(this,c);b&&(d.F=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=cQ(this,!0,a));d.send();this.K++}};
495g.h.onError=function(a,b){if(!this.ka())this.A.onError(a,b)};
496g.h.Nq=function(a){var b=this.o.o,c=this.o.videoData,d={ns:b.ba,el:oP(c),eurl:b.Aa,fmt:c.Fa?g.BI(c.Fa):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.playerStyle,noflv:1,st:this.o.A(),video_id:c.videoId,metric:a};rP(c)&&(d.autoplay="1");"heartbeat"==a&&(d.tpmt=Jma(this.B));g.Da(d,b.A);eQ(this,g.Yg(b.experiments.o("cardio_base_url_killswitch")?(b.B?b.protocol+"://www.youtube.com/":b.baseYtUrl)+"live_204":b.baseYtUrl+"live_204",d))};
497g.h.ib=function(){};
498g.h.X=function(){g.L.prototype.X.call(this);g.tE(this.G);this.G=window.NaN;var a=this.B;window.clearInterval(a.G);a.G=window.NaN;g.tE(this.C)};g.l1={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};g.Zxa=Object.keys(g.l1).reduce(function(a,b){a[g.l1[b]]=b;return a},{});
499g.m1={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};g.$xa=Object.keys(g.m1).reduce(function(a,b){a[g.m1[b]]=b;return a},{});
500g.n1={normal:0,bold:1,italic:2,bold_italic:3};g.aya=Object.keys(g.n1).reduce(function(a,b){a[g.n1[b]]=b;return a},{});g.t(fQ,fI);g.h=fQ.prototype;g.h.Sa=function(){var a=hU(this.app);2==a&&uX(this.app)&&(a=1);return a};
501g.h.sC=function(a,b,c,d,e){return twa(this.app,a,b,c,d,e)};
502g.h.MO=function(a,b,c){this.app.o.F.add(a,{pi:b,Xk:c})};
503g.h.OO=function(a,b){Y_(this.app,a,b||this.playerType)};
504g.h.Oh=function(a){return Q_(this.app,a)};
505g.h.Pm=function(a,b,c,d){U_(this.app,a,c||this.playerType,b,d)};
506g.h.Wp=function(a,b,c,d){c=void 0===c?window.NaN:c;var e=this.app;b=b||this.playerType;d=void 0===d?"":d;b=void 0===b?1:b;c=void 0===c?window.NaN:c;d=void 0===d?"":d;var f=PM(a);e.Ka.get(b+f)||e.B&&e.B.getVideoData().videoId==f||(e.o.hc&&$N(a),a=new g.YO(e.o,a),f=c,c=d,a.Jk=!0,d=VZ(e,b),WS(d,a,(0,g.B)(e.Qd,e)),!e.o.experiments.o("unplugged_tvhtml5_video_preload_no_dryrun")&&1==b&&"TVHTML5_UNPLUGGED"==e.o.A.c||bT(d,!0),e.o.experiments.o("html5_expire_preloaded_players")&&!f&&(f=3600),e.Ka.set(b+a.videoId,
507d,f),d="prefetch_"+a.videoId,KO("prefetch",["pfp"],d),(0,g.jQ)("docid",a.videoId,d),(0,g.jQ)("plt",b,d),(0,g.jQ)("c",e.o.A.c,d),(0,g.jQ)("cver",e.o.A.cver,d),c&&(0,g.jQ)("pftr",c,d))};
508g.h.vk=function(a,b){E_(this.app,a,b)};
509g.h.Mm=function(a){rwa(this.app,a)};
510g.h.De=function(a,b,c){e0(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
511g.h.jc=function(a,b,c,d){e0(this.app,a,b,c,d||this.playerType)};
512g.h.qP=function(a){if(a){var b=this.getPlaylistId();if(!b||b==a.list){var c=a.video;(b=this.app.G)?this.isFullscreen()&&((c=c[b.ye()])&&c.encrypted_id!=b.Qa().videoId||(a.index=b.ye())):I_(this.app,{list:a.list,index:a.index,playlist_length:c.length});rQ(this.app.G,a);this.ya("onPlaylistUpdate")}}else a=this.app,J_(a),a.A.ya("onPlaylistUpdate")};
513g.h.pP=function(){LG()};
514g.h.rP=function(a,b){var c=g.WT(this.app,this.playerType||1);c&&c.getVideoData().eh(a,b)};
515g.h.getPlayerResponse=function(){var a=g.WT(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
516g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
517g.h.UO=function(a,b){var c=this.app.Ve();if(!c)return null;c=c.o[b];return c?(c=g.bO(c,a))?{column:c.column,columns:c.columns,height:c.height,row:c.row,rows:c.rows,url:c.url,width:c.width}:null:null};
518g.h.VO=function(a,b){var c=this.app.Ve();return c?(c=c.o[b])?c.gq(a):-1:-1};
519g.h.WO=function(a){var b=this.app.Ve();return b?(b=b.o[a])?{index:a,intervalMs:b.o,maxFrameIndex:b.Vm(),minFrameIndex:b.Bv()}:null:null};
520g.h.TO=function(){var a=this.app.Ve();return a?a.o.length:0};
521g.h.RO=function(){var a=this.app.o;return{hc:a.hc,Kb:a.Kb}};
522g.h.getVideoData=function(){var a=fI.prototype.getVideoData.call(this),b=g.WT(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.eventId=b.eventId,a.cpn=b.clientPlaybackNonce,a.hasVideoContentProtection=!!g.hP(b),a.isLive=b.La,a.itct=b.dk,a.paidContentOverlayText=uma(b),a.paidContentOverlayDurationMs=vma(b),null!=b.liveUtcStartSeconds&&(a.liveUtcStartSeconds=b.liveUtcStartSeconds));return a};
523g.h.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):fI.prototype.getCurrentTime.call(this)};
524g.h.getDuration=function(a,b){return a?this.app.getDuration(a,b):fI.prototype.getDuration.call(this)};
525g.h.wk=function(a){if(3==this.Sa())return g.UT(this.app.D).IP();var b=this.app.getVideoData(),c=g.WT(this.app,a)||g.WT(this.app),d=c.getPlayerType(),e=this.getCurrentTime(a);a=this.getDuration(a);var f=kwa(this.app,d);c=this.app.o.experiments.o("web_player_pegged_to_live_killswitch")?wT(c):this.app.isPeggedToLive(d);var k=this.app;var l=g.WT(k,void 0);if(l){l=ewa(k,l);var m=window.NaN;l.A&&(m=Uma(l.A));m=0<=m?m:l.getCurrentTime();k=O_(k,m,l)}else k=0;l=this.app.bc(d);m=this.app;(d=g.WT(m,d))?(d=G_(m,
526d),d=O_(m,Sqa(d),d)):d=0;return{allowSeeking:this.app.Vc(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:f,isPeggedToLive:c,loaded:k,seekableEnd:d,seekableStart:l}};
527g.h.av=function(a){return gwa(this.app,a)};
528g.h.NO=function(a){return MI(a)};
529g.h.Om=function(){var a=g.WT(this.app);if(a)if(a.O){var b=a.Aa;a=a.O;a=KJ(a.videoData.tr,a.videoData.ws);"auto"!=CH()||(a=KJ(a,b.o.Sc));b=LJ(a)}else b="auto";else b="unknown";return b};
530g.h.DC=function(a,b){var c=g.WT(this.app,this.playerType);if(c){var d=HJ(a,b||a,!0,"m");c.o.tr=d;if(c.O){var e=c.O;if(e.Pa.o){var f=g.wI[CH()];e=e.Pa.videoInfos[0].Qa().o;f>e&&0!=e&&d.o==e||g.xH("yt-player-quality",LJ(d),2592E3)}}yT(c)}};
531g.h.QO=function(){var a=this.app.getVideoData();var b=this.app.getCurrentTime();if(a.ra&&a.Fa){var c=a.ra.o[a.Fa.id];c?(a=c.index.Jg(b),c=c.index.Vd(a),b={sequence:a,elapsed:Math.floor(1E3*(b-c))}):b=null}else b=null;return b};
532g.h.aj=function(a){var b=this.app,c=g.WT(b,this.playerType);c&&b.o.Ib.has(a.toString())&&c.C&&(b=dQ(c.C,"engage"),b.B=a,b.send(void 0))};
533g.h.Qm=function(a,b,c){var d=this.app.D.B;d&&d.Em()&&d.Pu(a,b,c)};
534g.h.ZO=function(a,b){var c=g.oI(this);c&&c.rv(a,b)};
535g.h.getAudioTrack=function(){var a=g.WT(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Dl};
536g.h.gv=function(a){3==this.Sa()&&g.UT(this.app.D).Sm("control_set_audio_track",a);var b=g.WT(this.app,this.playerType);if(b&&!b.ka()&&!g.X(b.B,128))if(b.o.Pa.o){if(b=b.D,!b.ka()){var c=b.G;c.C=c.F.o[a.id];c.L=c.C;b.V("audioformatchange",new wQ(c.L,c.B,"m"));b.V("reattachrequired")}}else{a:if(c=b.o,c.Gc&&!GI(c.Gc)||a==c.pn||!c.Ef||0>=c.Ef.length)c=!1;else{for(var d=g.q(c.Ef),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof VN)){c=!1;break a}var f=a.Lb.getId();e.A&&(e.A.A=f,e.o=null)}c.pn=
537a;c=!0}c&&(b.V("internalaudioformatchange",b.o,!0),dT(b)&&b.Hb("hlsaudio",a.id))}};
538g.h.getAvailableAudioTracks=function(){return g.WT(this.app,this.playerType).getAvailableAudioTracks()};
539g.h.SO=function(){var a=g.WT(this.app,this.playerType);return a&&a.getVideoData().Fa?LJ(a.O?cqa(a.Aa,a.O,nT(a)):JJ):"unknown"};
540g.h.XO=function(){var a=g.WT(this.app,this.playerType);return a?a.o.Pa&&!a.o.Pa.o?LJ(a.o.tr):CH():"auto"};
541g.h.lP=function(a,b){var c=this.app;c.te=a;c.pd=b;c.A.V("sizestylechange",a,b);c.H.zf()};
542g.h.PO=function(){var a=this.app.D.H;a&&a.FK()};
543g.h.EC=function(){var a=g.oI(this);a&&a.Zp(!0)};
544g.h.CC=function(){var a=g.oI(this);a&&a.Zp(!1)};
545g.h.Zi=function(){var a=this.app.o;a=this.app.J.o&&!a.experiments.o("kevlar_miniplayer_disable_vis");var b=this.isFullscreen()||bN(this.app.o);return this.Ui()?4:FS()?3:b?2:a?1:this.app.J.B?5:this.app.J.F?7:0};
546g.h.isFullscreen=function(){return this.app.isFullscreen()};
547g.h.cP=function(){return this.app.J.B};
548g.h.Ui=function(){var a=g.WT(this.app,this.playerType);return!!a&&a.M.A};
549g.h.oP=function(){return!0};
550g.h.BC=function(a){a=g.o_(this.app.H,a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
551g.h.kP=function(a){this.app.o.enableSafetyMode=a};
552g.h.nP=function(a){this.app.o.re!=a&&(this.app.o.re=a,(a=g.WT(this.app,this.playerType))&&yT(a))};
553g.h.fP=function(a){yF();c0(this.app,a?2:0)};
554g.h.je=function(){this.app.o.da?this.isFullscreen()?AF(window.document.documentElement):xF(window.document.documentElement):yF()?this.isFullscreen()?AF(a0(this.app)):xF(this.app.H.element):this.ya("onFullscreenToggled",this.isFullscreen())};
555g.h.dv=function(){var a=this.app.D.C;a&&a.created&&a.destroy();(a=g.WT(this.app))&&ET(a);(a=this.app.D.K)&&a.PM()&&g.RT(this.app.L,!0)};
556g.h.md=function(){var a=this.app.o;!a.experiments.o("disable_new_pause_state3")&&sN(a)&&"blazer"!=a.playerStyle?this.dv():fI.prototype.md.call(this)};
557g.h.EA=function(){return HT(g.WT(this.app,this.playerType),!0)};
558g.h.Xp=function(a){this.app.D.A.gx(a,!0)};
559g.h.Yi=function(){var a=this.app.D.A;return a?a.zt():null};
560g.h.fv=function(){this.app.D.A.jF()};
561g.h.bP=function(){var a=g.WT(this.app,this.playerType);if(!a)return!1;a=a.getVideoData();return!!a&&a.Td()&&!!a.Fa&&a.Fa.video.isAccelerated&&a.Fa.video.B};
562g.h.isPeggedToLive=function(a){return this.app.isPeggedToLive(void 0,void 0===a?!0:a)};
563g.h.jP=function(a){var b=this.app,c=b.J;c.o!=a&&(c.o=a,c.D());a=b.D;(a=g.Y(a.o).useMiniplayerUi?a.ga:null)&&(b.J.o?a.load():a.unload());b.A.V("minimized")};
564g.h.hP=function(a){var b=this.app.J;b.B!=a&&(b.B=a,b.D())};
565g.h.Km=function(a){return P_(this.app,a)};
566g.h.cv=function(a){if(a){var b=this.app.D.D;b&&b.mC(a)}};
567g.h.Zu=function(){var a=this.app.D.D;return a?a.lC():{}};
568g.h.eP=function(a){var b=this.app;b.o.kh=a;b.B&&(a=b.B,a.C&&g.vP(a.C.B),b.o.K&&ywa(b))};
569g.h.dP=function(){};
570g.h.setVolume=function(a,b){kI(this,a,b)};
571g.h.mute=function(a){lI(this,a)};
572g.h.jg=function(a){mI(this,a)};
573g.h.RM=function(){return this.app.aa};
574g.h.uk=function(a){if("annotations_module"==a){var b=this.app.D.B;b&&!b.loaded&&b.load()}fI.prototype.uk.call(this,a)};
575g.h.Nm=function(a){if("annotations_module"==a){var b=this.app.D.B;b&&b.loaded&&b.unload()}fI.prototype.Nm.call(this,a)};
576g.h.Ud=function(a,b,c){if(!b)return null;var d=this.app.D;switch(a){case "ad":return(a=d.C)&&a.KC&&a.KC(b,c);case "remote":return(a=g.UT(d))&&a.HP(b,c);case "unplugged":return(a=g.lN(g.Y(d.o))?d.F:null)&&a.B(b,c);case "spacecast":return(c=d.ba)&&c.D(b);case "annotations_module":return(a=d.B)&&a.FN(b,c);case "creatorendscreen":return(a=d.G)&&a.LN(b,c)}return fI.prototype.Ud.call(this,a,b,c)};
577g.h.Xi=function(a){var b=this.app.D;switch(a){case "ad":return(b=b.C)&&b.MP&&"addata adstate breakscount displaystate getContentVideoData isExternalShelfAllowedFor loadedadbreaks midrollfreqcap".split(" ");case "remote":return g.UT(b)&&["casting","receivers","currentReceiver","quickCast"];case "annotations_module":return(b=b.B)&&b.GN();case "creatorendscreen":return(b=b.G)&&b.MN();case "unplugged":return(g.lN(g.Y(b.o))?b.F:null)&&"settingsMenuShown hideSettingsMenu setSettingsMenuParentNode showSettingsMenu getStoryboardFrameData getStoryboardFrameIndex getStoryboardFrameIntervalSeconds getStoryboardMaxFrameIndex".split(" ")}return a?
578fI.prototype.Xi.call(this,a):(a=fI.prototype.Xi.call(this),b.C&&a.push("ad"),g.UT(b)&&a.push("remote"),b.B&&a.push("annotations_module"),b.G&&a.push("creatorendscreen"),g.lN(g.Y(b.o))&&b.F&&a.push("unplugged"),a)};
579g.h.ev=function(){var a=this.app.H.Va();return{width:a.width,height:a.height}};
580g.h.gP=function(a){var b=this.app.H;b.M=OM(a,!0);b.zf()};
581g.h.EX=function(){var a=g.oI(this);a&&a.vv()};
582g.h.YO=function(){return g.m_(this.app.H)};
583g.h.mP=function(a){var b=this.app.H;b.aa!=a&&(b.aa=a,b.zf())};
584g.h.iP=function(a,b){var c=this.app.H,d=new g.rd(a,b);g.sd(c.D,d)||(c.D=d,c.zf())};
585g.h.aP=function(){return uX(this.app)};g.t(gQ,fQ);g.h=gQ.prototype;g.h.Xc=function(){W_(this.app,!0,this.playerType);pX(this.app,this.playerType)};
586g.h.nd=function(){rX(this.app,this.playerType)};
587g.h.De=function(a,b,c){W_(this.app,!0,this.playerType);var d=this.app,e=this.playerType;sX(d,d.getCurrentTime()+a,b,c,e)};
588g.h.jc=function(a,b){W_(this.app,!0,this.playerType);sX(this.app,a,b,void 0,this.playerType)};
589g.h.md=function(){wwa(this.app)};hQ.prototype.reset=function(){DO("")};
590hQ.prototype.info=function(a,b){(0,g.jQ)(a,b,"")};g.t(g.kQ,g.L);g.kQ.prototype.getId=function(){return this.Ha};
591g.kQ.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.Ha+"}["+kna(this.start)+", "+kna(this.end)+"]"};
592g.kQ.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
593var jna=1;g.kQ.prototype.getId=g.kQ.prototype.getId;g.mQ.prototype.toString=function(){return this.type+this.id};g.t(g.oQ,g.$F);g.h=g.oQ.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.Gb+1<this.Ih};
594g.h.ag=function(a){return this.loop||!!a||0<=this.Gb-1};
595g.h.Qa=function(a,b,c){a=void 0!=a?a:this.Gb;a=this.Ra&&a in this.Ra?this.Ra[this.ne[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.YO(this.Jb,a),g.M(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
596g.h.setShuffle=function(a){this.UF=a;a=this.ne&&null!=this.ne[this.Gb]?this.ne[this.Gb]:this.Gb;this.ne=[];for(var b=0;b<this.Ra.length;b++)this.ne.push(b);this.Gb=a;this.Ip++;if(this.UF){a=this.ne[this.Gb];for(b=1;b<this.ne.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.ne[b];this.ne[b]=this.ne[c];this.ne[c]=d}for(b=0;b<this.ne.length;b++)this.ne[b]==a&&(this.Gb=b);this.Ip++}this.V("shuffle")};
597g.h.hd=function(a){a=a||"hqdefault.jpg";var b=this.Zh[a];if(b||this.Jb.G||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a)return b;if(this.eG.length)return qN(this.Jb,this.eG[0],a)};
598g.h.ye=function(){return this.Gb};
599g.h.getLength=function(){return this.Ih};
600g.h.Ml=function(a){if(a&&(a=a.videoId,!this.Ra[this.Gb]||this.Ra[this.Gb].video_id!=a))for(var b=0;b<this.Ra.length;b++)if(this.Ra[b].video_id==a){this.Gb=b;break}};
601g.h.onReady=function(a){this.ln=a;this.Wc&&g.rE(this.ln,0)};
602g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
603g.h.Xl=function(){return this.Jb.getVideoUrl(this.Qa().videoId,this.getPlaylistId())};
604g.h.X=function(){this.ln=null;g.lf(this.Ra);g.$F.prototype.X.call(this)};g.t(g.sQ,g.yP);g.h=g.sQ.prototype;g.h.Ch=function(){return!0};
605g.h.nC=function(){return!1};
606g.h.na=function(){return this.o};
607g.h.zd=function(){return this.o.src};
608g.h.Up=function(a){var b=this.Lc();this.o.src=a;this.cf(b)};
609g.h.xw=function(){this.o.removeAttribute("src")};
610g.h.Lc=function(){try{return 0<=this.o.playbackRate?this.o.playbackRate:1}catch(a){return 1}};
611g.h.cf=function(a){this.Lc()!=a&&(this.o.playbackRate=a);return a};
612g.h.Tu=function(){return this.o.loop};
613g.h.Tp=function(a){this.o.loop=a};
614g.h.Wi=function(){return this.o.paused};
615g.h.Sp=function(){return this.o.seeking};
616g.h.Vi=function(){return this.o.ended};
617g.h.Qp=function(){return this.o.muted};
618g.h.sk=function(a){RI();this.o.muted=a};
619g.h.Tl=function(){return this.o.played||XI([],[])};
620g.h.Tf=function(){try{var a=this.o.buffered}catch(b){}return a||XI([],[])};
621g.h.Ul=function(){return this.o.seekable||XI([],[])};
622g.h.Hm=function(){return this.o.getStartDate?this.o.getStartDate():null};
623g.h.getCurrentTime=function(){return this.o.currentTime};
624g.h.Jm=function(a){this.o.currentTime=a};
625g.h.getDuration=function(){return this.o.duration};
626g.h.load=function(){var a=this.o.playbackRate;this.o.load&&this.o.load();this.o.playbackRate=a};
627g.h.pause=function(){this.o.pause()};
628g.h.play=function(){var a=this.o.play();return a&&a.then?a:null};
629g.h.Ce=function(){return this.o.readyState};
630g.h.ep=function(){return this.o.networkState};
631g.h.Eb=function(){return this.o.error?this.o.error.code:null};
632g.h.rk=function(){return this.o.error?this.o.error.message:""};
633g.h.Vu=function(){var a={};if(this.o){if(this.o.getVideoPlaybackQuality)return this.o.getVideoPlaybackQuality();this.o.webkitDecodedFrameCount&&(a.totalVideoFrames=this.o.webkitDecodedFrameCount,a.droppedVideoFrames=this.o.webkitDroppedFrameCount)}return a};
634g.h.Ui=function(){return!!this.o.webkitCurrentPlaybackTargetIsWireless};
635g.h.Wu=function(){return!!this.o.webkitShowPlaybackTargetPicker()};
636g.h.Xu=function(){QI()?this.o!=window.document.pictureInPictureElement?this.o.requestPictureInPicture():window.document.exitPictureInPicture():PI()&&this.o.webkitSetPresentationMode("picture-in-picture"==this.o.webkitPresentationMode?"inline":"picture-in-picture")};
637g.h.Uu=function(){return Eh(this.o)};
638g.h.Gm=function(){return g.Ph(this.o)};
639g.h.setSize=function(a){return g.Oh(this.o,a)};
640g.h.getVolume=function(){return this.o.volume};
641g.h.setVolume=function(a){RI();this.o.volume=a};
642g.h.Xs=function(a){if(!this.B[a]){var b=(0,g.B)(this.nO,this);this.o.addEventListener(a,b);this.B[a]=b}};
643g.h.nO=function(a){this.dispatchEvent(new DP(this,a.type,a))};
644g.h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
645g.h.removeAttribute=function(a){this.o.removeAttribute(a)};
646g.h.hasAttribute=function(a){return this.o.hasAttribute(a)};
647g.h.ql=ba(8);g.h.xn=ba(10);g.h.nj=ba(5);g.h.yl=ba(12);g.h.Fm=function(){AF(this.o)};
648g.h.Cd=function(a,b){g.wh(this.o,a,b)};
649g.h.Im=function(a){return zh(this.o,a)};
650g.h.X=function(){for(var a in this.B)this.o.removeEventListener(a,this.B[a]);g.yP.prototype.X.call(this)};tQ.prototype.ka=function(){return this.D};
651tQ.prototype.dispose=function(){this.D=!0;g.vQ(this);this.A=null};xQ.prototype.add=function(a){this.o=(this.o+1)%this.A.length;this.A[this.o]=a};
652xQ.prototype.clear=function(){for(var a=this.A.length,b=0;b<a;b++)this.A[b]=0;this.B=this.o=this.A.length-1};g.t(BQ,g.$F);BQ.prototype.isPeggedToLive=function(){return this.F};IQ.prototype.reset=function(){this.Z=KQ(this);yna(this);this.o=new HQ(0,0,null);this.C=8;this.B=[];this.G=[];this.D=this.J=window.NaN;this.A=this.K=0;this.M=!1};
653IQ.prototype.process=function(a){var b=!1;if(this.B.length){if(zna(this)&&this.B.length+a.byteLength<this.C)return Ana(this,a,0),0;b=this.B.length;var c=new window.Uint8Array(b+a.byteLength);c.set(this.B,0);c.set(new window.Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.B=[];a=new window.DataView(c.buffer);b=!0}for(var d=c=0;c<a.byteLength;){var e=a.byteLength-c,f=window.NaN;if(zna(this)){if(e<this.C)return Ana(this,a,c),0;switch(this.o.type){case 0:f=LQ(this,a,c);b||0!=c||(d=this.o.type);
654break;case 1836019574:case 1836019558:f=LQ(this,a,c);break;case 1953653094:e=a;f=c;if(!this.K){var k=this.U.tj?this.A:1;this.K=hK(NQ(this,e,f),k)}f=LQ(this,e,f);break;case 1836476516:this.A=jK(NQ(this,a,c));MQ(this);f=this.o.size-8;break;case 1952867444:e=void 0;(0,window.isNaN)(this.D)||(f=NQ(this,a,c),this.U.Ga?e=this.ba(pK(f),this.A):e=this.D,oK(f,e),(0,window.isNaN)(this.F)&&(this.F=e),this.D+=this.K,this.O+=this.K);f=this.o.size-8;break;case 1936286840:e=NQ(this,a,c),f=qK(e).vn[0],this.A=rK(e),
655MQ(this),this.K=f,f=this.o.size-8}}else f=Math.min(this.C,e);this.o.offset+=f;this.C-=f;c+=f;if(0==this.C){for(;0!=this.o.type&&this.o.offset==this.o.size&&this.o.parent;)1835295092==this.o.type&&(this.M=!0),this.o.parent.offset+=this.o.size,this.o=this.o.parent;switch(this.o.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.C=8;break;default:this.C=this.o.size-8}}}0<a.byteLength&&this.G.push(a);return d};var Pna=0;g.h=Qna.prototype;g.h.oW=function(a){this.status=a.status;a.ok?(this.F=a.body.getReader(),this.D?(this.K=a.headers,this.U(),this.B=new window.Uint8Array(WQ(this)),Tna(this)):this.F.cancel("Cancelling")):ZQ(this)};
656g.h.XR=function(a){if(this.D){var b;window.performance&&window.performance.now&&(b=window.performance.now());var c=(0,g.H)(),d=a.value?a.value:null;(0,g.H)();a.done?(this.F=null,ZQ(this)):(YQ(this)?(Sna(this,d),this.D(c,this.A,b)):(a=this.A,this.G.hy&&(a+=d.length),this.D(c,a,b),Sna(this,d)),Tna(this))}};
657g.h.JC=function(a){this.L=""+a;this.H=!0;ZQ(this)};
658g.h.ke=function(a){return this.K.get(a)};
659g.h.im=function(){return!!this.K};
660g.h.gt=function(){return this.A};
661g.h.Zo=function(){return+this.ke("content-length")};
662g.h.TA=function(){return 200<=this.status&&300>this.status&&!!this.A};
663g.h.Ni=function(){return!!this.C.length||(this.J||YQ(this))&&0<this.o};
664g.h.PF=function(){this.Ni();this.C.length||XQ(this);return this.C.shift()};
665g.h.FC=function(){this.Ni();this.C.length||XQ(this);return this.C[0]};
666g.h.abort=function(){this.F&&this.F.cancel("Cancelling");this.O=this.D=null};
667g.h.ZF=function(){return!0};
668g.h.bF=function(){return this.H};
669g.h.jv=function(){return this.L};g.h=Una.prototype;g.h.tP=function(){if(!this.A){this.status=this.o.status;try{this.response=this.o.response}catch(a){}this.B=!0;this.C()}};
670g.h.vP=function(){2==this.o.readyState&&this.D()};
671g.h.uP=function(a){this.A||(this.status=this.o.status,this.F(a.timeStamp,a.loaded))};
672g.h.im=function(){return 2<=this.o.readyState};
673g.h.ke=function(a){try{return this.o.getResponseHeader(a)}catch(b){return g.lE(b),""}};
674g.h.Zo=function(){return+this.ke("content-length")};
675g.h.gt=function(){return this.response.byteLength};
676g.h.TA=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
677g.h.Ni=function(){return this.B&&!!this.response&&!!this.response.byteLength};
678g.h.PF=function(){this.Ni();var a=this.response;this.response=null;return new window.Uint8Array(a)};
679g.h.FC=function(){this.Ni();return new window.Uint8Array(this.response)};
680g.h.abort=function(){this.A=!0;this.o.abort()};
681g.h.ZF=function(){return!1};
682g.h.bF=function(){return!1};
683g.h.jv=function(){return""};g.h=$Q.prototype;g.h.Xa=function(){return this.C?this.C.Xa():""};
684g.h.Eb=function(){return this.D};
685g.h.start=function(a){dR(this,2);this.H=$Q.o();this.A?(this.M=Kka(this.info,this.A.B,this.A.length),this.C=g.HL(this.info,this.B,this.Z,this.M)):(this.M=this.info.range,this.C=g.HL(this.info,this.B,this.Z));var b=!1;if(this.B.va&&2>this.info.A.o&&this.K){var c=this.C.get("aitags");if(c&&(GL(this.info)||FL(this.info))&&this.ba&&"auto"==CH()&&EH()){var d=lb(c).split(","),e=[];(0,g.D)(this.ba,function(a){g.La(d,a)&&e.push(a)});
6860<e.length&&(this.C.set("altitags",g.kb(e.join(","))),b=!0)}}b||(this.K=!1);this.C.set("rn",this.H.toString());0<=a&&this.C.set("rbuf",(1E3*a).toFixed().toString());a=this.C.Xa();try{this.o=$na(this,a)}catch(f){this.D="net.ssl";eR(this);return}0<this.B.J&&this.U.start()};
687g.h.aW=function(){this.G=0;this.info.A.C=g.zG();var a=cR(this);a.D=g.zG();a.B+=1;a=this.timing;a.o=(0,g.H)();a.F=a.o;a.B=0;a.ha=a.o;a.U=0;a.H&&(a.H=[]);a.ia=!1;a.oa=!1;a.D=0;a.da=IM(a.A);a.J=window.Infinity;a.L=window.Infinity;Nna(a);Ona(a,a.o);a.aa=(a.O-a.o)/1E3;a.K=window.NaN;a.ba=null};
688g.h.ZV=function(a,b,c){if(!this.ka()){this.F=this.o.status;aoa(this,!1);var d=this.timing;a=a>d.o&&4E12>a?a:(0,g.H)();SQ(d,a,b);50>a-d.F&&TQ(d)&&3!=OQ(d)||Mna(d,a,b,c);b=this.timing;b.B>b.yb&&PQ(b,b.B)&&4>this.state?dR(this,4):gR(this)&&hR(this)&&dR(this,Math.max(3,this.state))}};
689g.h.YV=function(){if(!this.ka()){if(!this.O&&this.o.im()&&this.o.ke("X-Walltime-Ms")){var a=(0,window.parseInt)(this.o.ke("X-Walltime-Ms"),10);this.O=((0,g.H)()-a)/1E3}this.o.im()&&this.o.ke("X-Restrict-Formats-Hint")&&this.B.by&&!EH()&&g.xH("yt-player-headers-readable",!0,2592E3)}};
690g.h.XV=function(){var a=this.o;if(!this.ka()&&a){this.U.stop();this.F=a.status;var b=!1;if(400<=a.status)b=!0,this.D="net.badstatus";else if(a.TA()){var c="";Zna(this)&&(c=a.FC(),2048<c.length?c="":(c=eK(c),c=MH(c)?c:""));if(c){a=cR(this);g.zG();a.B=0;a.A=0;a.o=0;a=this.info;var d=this.C;g.CL(a.A,d,c);a.requestId=d.get("req_id");dR(this,5)}else if(c=a.gt(),(d=!!this.M&&this.M.length)&&d!=c||a.bF())b=!0,this.D="net.closed";else{aoa(this,!0);var e=fR(this)?this.o.ke("X-Bandwidth-Est"):0;if(a=fR(this)?
691this.o.ke("X-Bandwidth-Est3"):0)this.aa=!0,this.B.NG&&(e=a);a=this.timing;d=(0,g.H)();e=e?(0,window.parseInt)(e,10):0;if(!a.ia){a.ia=!0;d=d>a.o&&4E12>d?d:(0,g.H)();SQ(a,d,c);Mna(a,d,c);var f=OQ(a);if(2==f&&e)QQ(a,a.B/e,a.B);else if(2==f||1==f)e=(d-a.o)/1E3,(e<=a.A.policy.D||!a.A.policy.D)&&!a.oa&&TQ(a)&&QQ(a,e,c),TQ(a)&&DM(a.A,c,a.D);c=a.A;d=(d-a.o)/1E3;e=a.aa;f=FL(a.Z);c.F.o(d,a.B/d);c.B=g.zG();f||c.A.o(1,d-e);a.C&&(a.C=!1)}a=cR(this);g.zG();a.B=0;a.A=0;a.o=0;this.info.A.o=0;dR(this,6)}}else b=!0,
692this.D=204==a.status?"net.nocontent":"net.connect";b&&eR(this)}};
693g.h.vW=function(){if(!this.ka()){var a=(0,g.H)(),b=!1;TQ(this.timing)?(a=this.timing.O,Ona(this.timing),this.timing.O-a>=.8*this.B.J?(this.G++,b=5<=this.G):this.G=0):(b=this.timing,b.G&&UQ(b,(0,g.H)()),a-=b.M,this.B.fd&&0<a&&(this.G+=1),b=a>1E3*this.B.tc);this.G&&this.J&&this.J(this);b?Yna(this,!1):this.U.start()}};
694g.h.ka=function(){return-1==this.state};
695g.h.dispose=function(){FL(this.info)&&6!=this.state&&(this.info.o[0].o.F=!1);dR(this,-1);this.J=null;this.U.dispose();Xna(this)};
696$Q.o=function(){return++$Q.A};
697$Q.DEBUG=!1;$Q.A=0;g.t(foa,g.$F);rR.prototype.Z=function(a,b){switch(b.info.type){case 1:case 2:joa(this.B,a,b);break;case 4:var c=b.info.o.fC(b),d=b.info,e=this.o;e&&e.o==d.o&&e.type==d.type&&(d.range&&e.range?e.range.start==d.range.start&&e.range.end==d.range.end:e.range==d.range)&&e.za==d.za&&e.A==d.A&&e.fb==d.fb&&(this.o=g.Fa(c).info);(0,g.D)(c,(0,g.B)(this.Z,this,a));break;case 3:hoa(this.B,a,b)}};
698rR.prototype.ba=function(a){a=a.info;this.D&&(this.U=this.D);this.D=a;a.o.info.o>=this.K&&(this.K=a.o.info.o)};
699rR.prototype.getDuration=function(){return this.A.index.Mj()};LR.prototype.send=function(){g.IE(this.A,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Ed:this.B,Fd:this.B,context:this});this.o=g.zG()};
700LR.prototype.B=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:((g.zG()-this.o)/1E3).toFixed(3),shost:g.Og(this.A),trigger:this.F};204==a.status||a.response?this.C&&this.C(RN(b)):this.D(new QN("pathprobe.net",!1,b))};g.t(Noa,g.$F);g.t(OR,g.L);OR.prototype.C=function(a){if(!this.ka()){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){g.Ra(this.A,c);var d=this.o,e=d.o;c=g.ab(e,c,d.A);0<=c&&g.Qa(e,c)}}this.B()}};
701OR.prototype.reset=function(){this.F=this.J=!1;this.G.stop();this.o.o=[];this.A=[];this.B();this.H=null};
702OR.prototype.B=function(){this.K=!0;if(!this.L){for(var a=3;this.K&&a;){this.K=!1;this.L=!0;if(this.F&&!this.J&&!this.ka()){this.G.stop();var b=this.M();g.X(b,32)&&this.U.start();for(var c=g.X(this.M(),2)?0x8000000000000:1E3*this.ba(),d=g.X(b,2),e=[],f=[],k=0;k<this.A.length;k++){var l=this.A[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat($oa(this,f));if(d)b=Uoa(this.o,0x7ffffffffffff),b=b.concat(Woa(this.o));else if(this.D<=c&&b.rb()&&!g.X(b,16)&&!g.X(b,32)){b=this.o;
703d=c;f=[];for(k=Voa(b,this.D);k<b.o.length&&!(l=b.o[k],(l.end<=d||l.contains(d))&&f.push(l),l.start>d);++k);b=f}else b=Uoa(this.o,c);e=e.concat(Zoa(this,b));this.D=c;!this.J&&this.H&&(this.H=null);c=g.q(e);for(e=c.next();!e.done;e=c.next())e=e.value,b=e[1],1==e[0]?(b.o&&b.o.V("onEnter",b),this.O("crn_"+b.namespace,b)):(b.o&&b.o.V("onExit",b),this.O("crx_"+b.namespace,b))}this.L=!1;a--}this.M().rb()&&(a=Xoa(this.o,this.D),!(0,window.isNaN)(a)&&0x7ffffffffffff>a&&(a=(a-this.D)/this.Z(),this.G.start(a)))}};
704OR.prototype.X=function(){this.A=[];this.o.o=[];this.H=null;g.L.prototype.X.call(this)};RR.prototype.then=function(a,b){return this.B.then(a,b)};
705RR.prototype.resolve=function(a){this.o(a)};
706RR.prototype.reject=function(a){this.A(a)};g.t(TR,g.$F);g.h=TR.prototype;
707g.h.initialize=function(a,b,c,d){a=a||0;var e=this.G;d=d&&d.id;ER(e,b);Joa(e,d);e.L=e.C;Koa(e);e.B=e.A;b=Hoa(e);this.B=new rR(this.A,b.audio,(0,g.B)(this.Wy,this));this.o=new rR(this.A,b.video,(0,g.B)(this.Wy,this));this.A.ha&&this.F.A&&(this.Ib=new Dna(this.A,this.o.A.index));rpa(this,this.B);rpa(this,this.o);this.o.B.O=this.B.B;this.V("videoformatchange",b);this.L=this.o.G;this.H&&Poa(this.H,this.o.A);this.A.G&&yQ()&&this.Wd("streaming","1",!0);this.D=this.F.A?0:a;c?(VR(this,!1),g.Du(this.va)):
708(a=0==this.D,dS(this,this.o,this.o.A,a),dS(this,this.B,this.B.A,a),this.seek(this.D),this.bd("gv"))};
709g.h.resume=function(){if(this.ba||this.Z)this.Aa=this.Z=this.ba=!1,this.Ee()};
710g.h.MU=function(a){var b=this.A.fd;if(!(!(b&&2<=a.state)||5<=a.state||a.G<b||zL(a.info.A,this.A,this.ga))){b=this.ga;var c=pL(yL(a.info.A));b=kL(b,c);b.o||b.A||b.B||ipa(this,a,!0)}if(!this.ka()&&3<=a.state)if(c=a.info.o[0].o,b=!this.wa&&c.info.video,c=!this.ia&&c.info.audio,5==a.state?b?this.bd("vrr"):c&&this.bd("arr"):6==a.state?b?(this.wa=a.Xa(),KG(4)):c&&(this.ia=a.Xa()):4==a.state&&b&&KG(4),5<=a.state&&(this.A.ga&&(b=Kna(a.timing),c=a.timing,b={rn:a.H.toString(),rt:b.rt,pt:b.pt,stall:b.stall,
711elt:b.elbowTime,elb:b.elbowBytes,rqd:c.H?c.H.join(""):""},c=b.rqd,delete b.rqd,c&&this.Wd("rqd",RN({rn:b.rn,d:c})),this.Wd("rqs",RN(b))),a.aa&&this.Wd("sbwe3","1",!0)),5==a.state)a.start(Math.max(0,a.info.o[0].D-this.D));else if(5<=a.state&&5==a.info.o[0].type)6==a.state&&(b=(a.info.o[0].o.info.video?this.o:this.B).C[0]||null)&&b.G&&Yna(b,!0),a.dispose();else{if(this.A.va&&a.K&&4<=a.state&&5!=a.state)if(b=a.o?a.o.ke("X-Response-Itag"):null){b=Loa(this.G,b);c=a.info.range.length-b.cp();b.F=!0;a.info.o[0].o.F=
712!1;var d=b.Oj(c)[0];a.info=d;if(a.A){c=a.A;d=d.o;c.A=d;for(var e=0;e<c.o.length;e++)c.o[e].info=d[e],c.o[e].range=d[e].range}a.K=!1;c=this.o;c.A!=b&&(c.A=b);c=this.o;c.o&&(c.o.o=b);this.V("constraint",b.info.Qa().quality);(c=a.o?a.o.ke("X-Segment-Lmt"):null)&&b instanceof g.aM&&((0,window.isNaN)(b.lastModified)||b.lastModified==c||toa(this.o,a))}else a.K=!1;6==a.state||this.A.G&&3<=a.state&&!(5<=a.state)?hpa(this,a):7==a.state&&(b=a.info.o[0].o,Wna(a)?(c=(b.info.video&&1<b.C.o||410==a.F||500==a.F||
713503==a.F)&&!JR(this.G),d=bR(a),e=b.info.video?this.o:this.B,c&&(d.stun="1"),bS(this,!1,a.Eb(),d),this.ka()||(c&&IR(this.G,b),this.A.Kd&&1==a.info.o.length&&0<a.info.o[0].A&&b!=e.A&&this.Z?this.V("reattachrequired"):(toa(e,a),this.Ee()))):(bS(this,!1,a.Eb(),bR(a)),FL(a.info)?(b.D=a.Eb(),this.Ee()):bS(this,!0,"net.retryexhausted",{})));this.Ee();this.A.yb&&5<=a.state&&Wna(a)&&zL(a.info.A,this.A,this.ga)&&(b=this.ga,c=pL(a.info.A.B),b=kL(b,c),c=b.B+=b.C,c=this.A.yb*Math.pow(1.6,c),b.o||b.D+c>g.zG()||
714ipa(this,a,!1))}};
715g.h.Ee=function(){XR(this);if(this.C&&hJ(this.C)&&!kJ(this.C)){var a=this.A.Vn&&this.o.D&&this.o.D.F;this.F.isLive&&!a?(0,window.isNaN)(this.K)?(this.K=this.D+3600,this.C.B.duration=this.K):this.K<=this.D+1800&&(this.K=Math.max(this.K+1800,this.D+3600),this.C.B.duration=this.K):this.C.F||(a=Math.max(this.B.getDuration(),this.o.getDuration()),(!(0,window.isFinite)(this.K)||this.K!=a)&&0<a&&(this.K=this.C.B.duration=a))}if(!this.ka())if(qM(this.F)&&3==this.F.F)bS(this,!0,"manifest.net.retryexhausted",
716{rc:this.F.M.toString()});else if(this.F.B&&(yoa(this.o)||yoa(this.B)))WR(this),this.V("seekplayerrequired",window.Infinity);else if(XR(this),roa(this.o),!this.ka()&&(roa(this.B),!this.ka())){this.F.A&&(zoa(this.o),zoa(this.B),lpa(this),(a=jR(this.o.B))&&a.o&&(a=a.o.D&&!this.A.aa,this.Wd(a==this.A.o?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.A.o?"1":"0")+";dfs."+(this.A.aa?"1":"0"),!0)));if(this.C){a=this.C.o;var b=this.C.A;if(mpa(this)){if(this.A.wg){if(!a.Gg()){var c=jR(this.B.B);c&&cS(this,
717a,c)}b.Gg()||(a=jR(this.o.B))&&cS(this,b,a)}}else{if(this.H){c=this.H;var d=this.B,e=aJ(this.C.A.qc());if(c.D)c=Soa(c,e);else{if(e=jR(d.B)){var f=e.o;f&&f.D&&f.B&&(d=d.C.length?d.C[0]:null)&&3<=d.state&&7!=d.state&&0==d.info.B&&gR(d)&&(c.D=d,c.J=f,c.B=e.info,c.F=(0,g.H)()/1E3,c.H=c.F,c.G=c.B.startTime)}c=window.NaN}c&&this.V("seekplayerrequired",c,!0)}(c=ppa(this,this.o,b,null))&&!this.Ka&&(this.Ka=(0,g.H)(),this.bd("vda"),SO("vda"),this.Ga&&KG(4));if(!jJ(this.C)){b=$I(b.qc(),this.D+aS);if(!(0,window.isNaN)(b)||
718uR(this.o)||!a.qc().length){if(uR(this.o)||this.A.oF)b=window.NaN;a=ppa(this,this.B,a,b);c=c||a;a&&!this.Ga&&(this.Ga=(0,g.H)(),this.bd("ada"),SO("ada"),this.Ka&&KG(4))}this.ka()||(!this.A.ay&&uR(this.o)&&uR(this.B)&&hJ(this.C)&&!kJ(this.C)&&(a=this.C,hJ(a)&&a.B.endOfStream(),a=this.M,BH(IM(a)),a.D=g.zG()),c&&!mJ(this.C)&&g.Du(this.da))}}}UR(this);dS(this,this.o,this.o.A,!1);dS(this,this.B,this.B.A,!1);a=this.B.A.D;b=this.o.A.D;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==
719b)c="fmt.unparseable";bS(this,!0,c,{metadata:"1",video:this.o.A.D||"",audio:this.B.A.D||""})}else ZR(this,this.o,this.B)&&epa(this,this.o,this.B),ZR(this,this.B,this.o)&&epa(this,this.B,this.o),this.A.cG&&this.la&&!this.ba&&JM(this.M)&&(a=this.la,b=(0,g.B)(this.V,this,"error"),c=this.A.Mx?(0,g.B)(this.Wd,this,"pathprobe"):null,(new LR(a,"cms",c,b)).send(),this.la=""),this.A.On&&this.F.B&&g.Du(this.va),this.H&&(a=this.H,a.D?(b=a.H+a.o.re,a.C||(b=Math.min(b,a.F+a.o.Ya)),a=Math.max(0,1E3*b-(0,g.H)())):
720a=window.NaN,(0,window.isNaN)(a)||g.Du(this.tc,a)),g.Du(this.wb)}};
721g.h.kq=function(a){var b=a?this.B:this.o;a=b&&b.D;var c=b&&b.U;b=void 0;a&&(b=DK(a));if(c){b=b||{};a=DK(c);for(var d in a)b["prev_"+d]=a[d]}bS(this,!0,"fmt.unplayable",b)};
722g.h.uT=function(a){bS(this,!0,"fmt.unparseable",a)};
723g.h.zT=function(a,b,c){b?(a=DK(b.info),a.dRange=""+b.range.start+"-"+b.range.end):a=DK(a.info.o[a.info.o.length-1]);a.warning=c;this.Wd("msw",RN(a))};
724g.h.yT=function(a){bS(this,!1,"qoe.avsync",a)};
725g.h.vT=function(a,b){this.F.A&&qpa(this,b,a==this.o)};
726g.h.wT=function(a,b){this.F.A&&uM(this.F,b.za,a==this.o)};
727g.h.xT=function(a,b){this.F.A&&qpa(this,b,a==this.o)};
728g.h.tT=function(a,b){if(this.o&&this.o.A.index.Qb()<=b){a.o+=(0,window.isNaN)(this.U)?0:this.U;var c=this.F;c.L.push(a);c.V("cuepointsadded")}};
729g.h.seek=function(a){if(this.ka())return mg();if(this.o.G||this.B.G)return jg();XR(this);this.Bb=g.zG();UR(this,a);var b=this.o.o,c=spa(this.o,a,this.C&&this.C.A),d=spa(this.B,this.A.wa?a:c,this.C&&this.C.o);this.D=Math.max(a,c,d);this.O=!0;this.F.A&&this.A.U&&(c=this.o.o.za,OL(this.o.A.index,c)||b&&b.za==c||(this.L=!0));g.Du(this.da);return jg(a)};
730g.h.getCurrentTime=function(){return this.D};
731g.h.X=function(){bpa(this);this.B&&xR(this.B);this.o&&xR(this.o);g.$F.prototype.X.call(this)};
732g.h.bd=function(a,b){this.wc[a]=b?window.performance.timing.navigationStart+b:g.zG()};
733g.h.HC=function(){return this.Ua.A()||0};
734g.h.Wd=function(a,b,c){this.V("ctmp",a,b,void 0===c?!1:c)};
735g.h.Wy=function(a,b){var c=a/b;(0,window.isNaN)(this.U)&&(this.U=c-Math.min(c,18E3),this.V("timestamp",this.U));return(c-this.U)*b};
736var aS=2/24;g.t(fS,g.$F);g.t(hS,fS);hS.prototype.F=function(a,b){if(a&&b){var c=1*ah(a,"cpi")+1;(0,window.isNaN)(c)||0>=c||c<this.B?(this.C.stop(),this.A.stop(),this.B=-1,this.o={}):(c>this.B&&(this.B=c,g.Xb(this.o)||(this.o={},this.C.stop(),this.A.stop())),this.o[b]=a,g.Du(this.A))}};
737hS.prototype.D=function(){for(var a in this.o)this.V("rotated_need_key_info_ready",new gS(vpa(this.o[a],this.B,a),"fairplay",!0));this.o={}};var o1={},bya=(o1.DRM_TRACK_TYPE_AUDIO="AUDIO",o1.DRM_TRACK_TYPE_SD="SD",o1.DRM_TRACK_TYPE_HD="HD",o1.DRM_TRACK_TYPE_UHD1="UHD1",o1);g.t(iS,g.L);iS.prototype.D=function(a){this.ka()||(0!=a.status&&a.response?((0,g.iQ)("drm_net_r"),a=new window.Uint8Array(a.response),(a=ypa(a))?this.B(a):this.o(this,"drm.net","t.p")):this.C(a))};
738iS.prototype.C=function(a){this.ka()||this.o(this,a.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+a.status)};
739iS.prototype.G=function(a){if(!this.ka()){(0,g.iQ)("drm_net_r");var b="LICENSE_STATUS_OK"==a.status?0:9999,c=null;try{c=te(a.license)}catch(m){}if(0!=b||c){c=new wpa(b,c);0!=b&&a.reason&&(c.errorMessage=a.reason);if(a.authorizedFormats){b={};for(var d=[],e={},f=g.q(a.authorizedFormats),k=f.next();!k.done;k=f.next()){k=k.value;var l=bya[k.trackType];l&&("HD"==l&&a.isHd720&&(l="HD720"),b[l]||(d.push(l),b[l]=!0),e[k.keyId]=l)}c.o=d;c.A=e}a=c}else a=null;a?this.B(a):this.o(this,"drm.net","t.p;p.i")}};
740iS.prototype.F=function(a){this.ka()||(a=a.error,this.o(this,"drm.net.badstatus","t.r;p.i;c."+a.code+";s."+a.status))};g.t(jS,g.L);g.h=jS.prototype;g.h.BP=function(a){if(this.D){var b=a.messageType||"license-request";this.D.call(this.B,new window.Uint8Array(a.message),b)}};
741g.h.CP=function(){this.H&&this.H.call(this.B,this.o.keyStatuses)};
742g.h.ND=function(a,b){g.lE(b);if(this.C){var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.C.call(this.B,c)}};
743g.h.AP=function(){this.ka()||NE("xboxone")&&this.C&&this.C.call(this.B,"closed")};
744g.h.oE=function(a){this.D&&this.D.call(this.B,a.message,"license-request")};
745g.h.nE=function(a){if(this.C){if(this.A){var b=this.A.error.code;a=this.A.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.C.call(this.B,"t.prefixedKeyError;c."+b+";sc."+a)}};
746g.h.mE=function(){this.G&&this.G.call(this.B)};
747g.h.update=function(a){if(this.o)return this.o.update(a).then(null,mE((0,g.B)(this.ND,this,"t.update")));this.A?this.A.update(a):this.F.addKey?this.F.addKey(this.K.o,a,this.J,this.sessionId):this.F.webkitAddKey(this.K.o,a,this.J,this.sessionId);return gF()};
748g.h.X=function(){this.o&&this.o.close();this.F=null;g.L.prototype.X.call(this)};g.t(kS,g.L);g.h=kS.prototype;
749g.h.createSession=function(a){var b=a.initData;if(this.o.A){var c=this.D.createSession();"com.youtube.fairplay"==this.o.o&&(b=Cpa(this,b));b=c.generateRequest(a.contentType,b);c=new jS(null,null,null,c,null);b.then(null,mE((0,g.B)(c.ND,c,"t.generateRequest")));return c}if(CN(this.o)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.B.createSession("video/mp4",
750b,c);return new jS(null,null,null,null,b)}if(GN(this.o))return b=Cpa(this,b),b=this.B.createSession("video/mp4",b),new jS(null,null,null,null,b);this.A.generateKeyRequest?this.A.generateKeyRequest(this.o.o,b):this.A.webkitGenerateKeyRequest(this.o.o,b);return this.C=new jS(this.A,this.o,b,null,null)};
751g.h.FP=function(a){var b=lS(this,a);b&&b.oE(a)};
752g.h.EP=function(a){var b=lS(this,a);b&&b.nE(a)};
753g.h.DP=function(a){var b=lS(this,a);b&&b.mE(a)};
754g.h.X=function(){g.L.prototype.X.call(this);delete this.A};var p1={},Hpa=(p1.widevine="DRM_SYSTEM_WIDEVINE",p1.fairplay="DRM_SYSTEM_FAIRPLAY",p1.playready="DRM_SYSTEM_PLAYREADY",p1);g.t(nS,g.L);g.h=nS.prototype;
755g.h.yP=function(a,b){if(!this.ka()){if(!this.C.experiments.o("html5_provisioning_killswitch"))switch(b){case "license-request":case "license-renewal":case "license-release":break;case "individualization-request":Gpa(this,a);return;default:this.B.V("ctmp","message_type","t."+b+";l."+a.byteLength)}this.M||((0,g.iQ)("drm_gk_f"),this.M=!0,this.B.V("newsession",this));if(DN(this.A)){var c=Fpa(a);if(!c)return;a=c}"fairplay"==this.A.flavor&&(a=dK(g.re(a)));c=new iS(a,++this.U,(0,g.B)(this.fT,this),(0,g.B)(this.eT,
756this));g.M(this,c);Ipa(this,c)}};
757g.h.wP=function(){this.ka()||this.J||(this.B.V("sessionready"),this.J=!0)};
758g.h.zP=function(a){var b=this;this.ka()||(a.forEach(function(a,d){var c=DN(b.A)?d:a,f=new window.Uint8Array(DN(b.A)?a:d);DN(b.A)&&Mpa(f);var k=iR(f);Mpa(f);f=iR(f);b.o[k]?b.o[k].status=c:b.o[f]?b.o[f].status=c:b.o[k]={type:"",status:c}}),this.B.V("keystatuseschange",this))};
759g.h.xP=function(a){this.ka()||mS(this,"drm.keyerror",!0,a)};
760g.h.fT=function(a){if(!this.ka())if(0!=a.statusCode)mS(this,"drm.auth",!0,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{(0,g.iQ)("drm_kr_s");a.heartbeatParams&&this.B.V("newlicense",a.heartbeatParams);if(a.o&&(this.G=a.o,!oS(this)))if(FN(this.A)){var b=Kpa(this.G);480<g.wI[b]&&this.B.V("hdentitled",this)}else this.B.V("keystatuseschange",this);a.A&&(this.o=g.Ib(a.A,function(a){return{type:a,status:"unknown"}}));
761GN(this.A)&&(a.message=te(eK(a.message)));this.D&&this.D.update(a.message).then(function(){(0,g.iQ)("drm_kr_f")});
762this.J&&(this.O=g.zG());"fairplay"==this.A.flavor&&this.B.V("fairplay_next_need_key_info",this.L,a.B)}};
763g.h.eT=function(a,b,c){if(!this.ka()){var d=!1;if(3<=a.A.A||this.Z&&36E4<g.zG()-this.O)d=!0,b="drm.net.retryexhausted";mS(this,b,d,c);(this.Z&&this.J?0:!d&&this.U==a.number)&&Jpa(this,a)}};
764g.h.X=function(){g.L.prototype.X.call(this)};
765g.h.Uf=function(){var a=this.G.join();if(oS(this)){var b=[],c;for(c in this.o)"usable"!=this.o[c].status&&b.push(this.o[c].type);a+="/UKS:"+b}return a+="/"+this.cryptoPeriodIndex};pS.prototype.get=function(a){a=this.Ml(a);return-1!=a?this.values[a]:null};
766pS.prototype.remove=function(a){a=this.Ml(a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
767pS.prototype.set=function(a,b){var c=this.Ml(a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
768pS.prototype.Ml=function(a){return g.Ia(this.keys,function(b){return g.db(a,b)})};g.t(qS,g.$F);g.h=qS.prototype;g.h.DS=function(a){Rpa(this,new window.Uint8Array(a.initData),a.initDataType)};
769g.h.KT=function(a){Rpa(this,a.initData,a.contentType)};
770g.h.sT=function(){var a=this;if(!this.ka())if(this.C.experiments.o("html5_drm_set_server_cert")){var b=Bpa(this.L);b?b.then(mE(function(b){a.V("ctmp","setServerCertificate",b)}),mE(function(b){a.V("ctmp","setServerCertificateError","n."+b.name+";m."+b.message)})).then(mE(function(){return tS(a)})):tS(this)}else tS(this)};
771g.h.FR=function(a){if(!this.ka()){g.lE(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.V("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
772g.h.Yr=function(a){this.B.push(a);sS(this)};
773g.h.NT=function(a){this.ka()||!a||this.da||(this.da=a,this.V("heartbeatparams",a))};
774g.h.OT=function(){this.ka()||(this.B.shift(),this.M=!1,sS(this))};
775g.h.aV=function(){if(CN(this.o)&&(this.ga--,0==this.ga&&this.F)){var a=this.F;a.A.msSetMediaKeys(a.B)}};
776g.h.GP=function(a){this.ka()||Upa(this,Lpa(a,this.ba))};
777g.h.SS=function(){this.ka()||this.Z||!FN(this.o)||(this.O=Pxa,this.V("hdproberequired"),this.V("qualitychange"))};
778g.h.X=function(){this.o.A&&this.K&&this.K.setMediaKeys(null);this.K=null;this.B=[];for(var a=g.q(this.A.values),b=a.next();!b.done;b=a.next())b.value.dispose();a=this.A;a.keys=[];a.values=[];this.D&&(this.D.dispose(),this.D=null);this.G=null;g.$F.prototype.X.call(this)};
779g.h.Uf=function(){return 0>=this.A.values.length?"no session":this.A.values[0].Uf()+(this.H?"../KR":"")};vS.prototype.F=function(){var a=g.y("yt.abuse.player.botguardInitialized");if(!a||!a())return null;a="";this.o&&this.o.ni&&(a=this.o.ni+("&r1b="+this.o.clientPlaybackNonce));var b={};return(a=g.y("yt.abuse.player.invokeBotguard")((b.atr_challenge=a,b)))?"r1a="+a:null};
780vS.prototype.G=function(a){return"r3a="+Math.floor(this.o.lengthSeconds%g.Ab(a.c3a))};
781vS.prototype.D=function(a){a=g.Ab(a.c);var b=g.y("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};g.t(g.wS,g.yP);g.h=g.wS.prototype;g.h.nC=function(){return!0};
782g.h.Tl=function(){return cJ(this.o.Tl(),this.B,this.F)};
783g.h.Tf=function(){return cJ(this.o.Tf(),this.B,this.F)};
784g.h.Ul=function(){return cJ(this.o.Ul(),this.B,this.F)};
785g.h.getCurrentTime=function(){return this.o.getCurrentTime()-this.B};
786g.h.Jm=function(a){this.o.Jm(a+this.B)};
787g.h.getDuration=function(){return(0,window.isFinite)(this.F)?this.F-this.B:this.o.getDuration()-this.B};
788g.h.play=function(){this.o.getCurrentTime()<this.B&&this.o.Jm(this.B);return this.o.play()};
789g.h.qk=function(){var a=g.yP.prototype.qk.call(this);a.view=this.B+"-"+this.F;return a};
790g.h.addEventListener=function(a,b){this.o.addEventListener(a,b)};
791g.h.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};
792g.h.Rp=function(){return this.o.Rp()};
793g.h.pk=function(a){this.o.pk(a)};
794g.h.uq=function(){this.o.uq()};
795g.h.Nj=function(){return this.o.Nj()};
796g.h.Xc=function(){return this.o.Xc()};
797g.h.Ws=function(){this.o.Ws()};
798g.h.Ts=function(){this.o.Ts()};
799g.h.Ch=function(){return this.o.Ch()};
800g.h.na=function(){return this.o.na()};
801g.h.zd=function(){return this.o.zd()};
802g.h.Up=function(a){this.o.Up(a)};
803g.h.xw=function(){this.o.xw()};
804g.h.Lc=function(){return this.o.Lc()};
805g.h.cf=function(a){return this.o.cf(a)};
806g.h.Tu=function(){return this.o.Tu()};
807g.h.Tp=function(a){this.o.Tp(a)};
808g.h.Wi=function(){return this.o.Wi()};
809g.h.Sp=function(){return this.o.Sp()};
810g.h.Vi=function(){return this.o.Vi()};
811g.h.Qp=function(){return this.o.Qp()};
812g.h.sk=function(a){this.o.sk(a)};
813g.h.Hm=function(){return this.o.Hm()};
814g.h.load=function(){this.o.load()};
815g.h.pause=function(){this.o.pause()};
816g.h.Ce=function(){return this.o.Ce()};
817g.h.ep=function(){return this.o.ep()};
818g.h.Eb=function(){return this.o.Eb()};
819g.h.rk=function(){return this.o.rk()};
820g.h.Vu=function(){return this.o.Vu()};
821g.h.Ui=function(){return this.o.Ui()};
822g.h.Wu=function(){return this.o.Wu()};
823g.h.Xu=function(){this.o.Xu()};
824g.h.Uu=function(){return this.o.Uu()};
825g.h.Gm=function(){return this.o.Gm()};
826g.h.setSize=function(a){return this.o.setSize(a)};
827g.h.getVolume=function(){return this.o.getVolume()};
828g.h.setVolume=function(a){this.o.setVolume(a)};
829g.h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
830g.h.removeAttribute=function(a){this.o.removeAttribute(a)};
831g.h.hasAttribute=function(a){return this.o.hasAttribute(a)};
832g.h.ql=ba(7);g.h.xn=ba(9);g.h.nj=ba(4);g.h.yl=ba(11);g.h.Fm=function(){this.o.Fm()};
833g.h.Cd=function(a,b){this.o.Cd(a,b)};
834g.h.Im=function(a){return this.o.Im(a)};
835g.h.md=function(){this.o.md()};
836g.h.Xs=function(a){this.o.Xs(a)};g.t(zS,g.$F);g.h=zS.prototype;g.h.getCurrentTime=function(){return!(0,window.isNaN)(this.B)&&(0,window.isFinite)(this.B)?this.B:this.A&&yS(this)?this.A.getCurrentTime()+this.C:this.F||0};
837g.h.yd=function(a){this.o.La?this.o&&this.o.Pa&&this.o.Pa.o?a=!a&&this.M?EQ(this.M):this.o.yd()+this.C:this.A?RE()?(a=this.A.Hm().getTime(),a=(0,window.isNaN)(a)?0:Math.max(((0,g.H)()-a)/1E3-30,0)):a=zP(this.A)+this.C||this.C:a=this.C:a=this.o.yd();return a};
838g.h.bc=function(){return this.o?this.o.bc()+this.C:this.C};
839g.h.zG=function(){this.o&&!ES(this)&&(this.F=this.o.startSeconds||0)};
840g.h.X=function(){BS(this,null);bG(this.o,this.O,this);g.$F.prototype.X.call(this)};
841g.h.FW=function(){var a=this.getCurrentTime()+.1;this.H=jg(a-this.C);DS(this,a,!0)};
842g.h.EW=function(a,b){DS(this,a+this.C,!0,void 0===b?!1:b)};
843g.h.PW=function(a){this.C=a};nqa.prototype.isActive=function(){return 0!=this.o||window.Infinity!=this.A};g.t(GS,g.$F);GS.prototype.isFullscreen=function(){return 0!=this.C};
844GS.prototype.isBackground=function(){return FS()};
845GS.prototype.D=function(){this.V("visibilitychange");var a=this.isFullscreen();a=this.A?4:FS()?3:a?2:this.o?1:this.B?5:this.F?7:0;a!=this.H&&this.V("visibilitystatechange");this.H=a};
846GS.prototype.X=function(){qqa(this.G);g.$F.prototype.X.call(this)};g.t(IS,g.L);g.h=IS.prototype;g.h.start=function(){this.A.start()};
847g.h.stop=function(){this.A.stop()};
848g.h.Cb=function(a,b,c){this.B[a]=b;this.o[a]=new LS(!!c)};
849g.h.clear=function(){for(var a in this.o)this.o[a].clear()};
850g.h.AW=function(){for(var a in this.B)this.o[a].update(this.B[a]());this.A.start()};
851LS.prototype.update=function(a){this.A?(this.buffer.add(a-this.o||0),this.o=a):this.buffer.add(a)};
852LS.prototype.clear=function(){this.buffer.clear();this.o=0};var sqa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},tqa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},uqa=/^(\d*)_((\d*)_?(\d*))$/;MS.prototype.start=function(){this.A=!0};
853MS.prototype.reset=function(){this.o=this.A=!1};g.t(OS,g.$F);g.h=OS.prototype;g.h.X=function(){window.clearInterval(this.Sc);qqa(this.Bb);this.M.unsubscribe("visibilitystatechange",this.Bb);RS(this);SS(this);PS(this);tT(this);this.G&&(this.G.dispose(),delete this.G);delete this.O;g.kf(this.o);this.Z=null;this.wb=!1;g.$F.prototype.X.call(this)};
854g.h.getVideoData=function(){return this.o};
855g.h.Fs=function(){if(this.o.Ob())xqa(this);else if(this.o.Ej||this.o.jk){if(!this.la||!$S(this))if(this.o.Ej){var a=this.o;a.Kh=!0;a.Ej=!1;MH(a.qf)||g.lE(Error("DASH MPD Origin invalid: "+a.qf),"WARNING");var b=a.qf,c=XO(a).A("dash_manifest_version")||4;b=g.Yg(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Yg(b,{pacing:0}));oM(new eM(b,XO(a),a.La),b).then(a.rS,a.qS,a);(0,g.iQ)("mrs")}else this.C&&(a=this.C.A,XP(a,"protected"),a.o.videoData.Rg?a.va():a.o.videoData.subscribe("dataloaded",
856a.va,a)),a=this.o,a.fairPlayCert||a.ra&&fM(a.ra),b={},a.ra&&(b=JN(aP(a),a.Jb.M,a.ra)),b=new NN(b,XO(a),a.RF),g.M(a,b),a.jk=!1,a.Kh=!0,a=(0,g.B)(a.XM,a),b.C=a,HN(b.D)?PN(b):Ela(b)}else if(!this.o.Kh&&this.pd){b=this.F;a=this.o;var d=this.Pb.Va(),e=this.ih();this.M.isFullscreen();if(38==a.Df&&"books"==b.playerStyle)b=a.videoId.indexOf(":"),a=g.Yg("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.jR});else if(30==a.Df&&"docs"==b.playerStyle)a=g.Yg("https://docs.google.com/get_video_info",
857{docid:a.videoId,authuser:a.gd,authkey:a.authKey,eurl:b.Aa});else if(33==a.Df&&"google-live"==b.playerStyle)a=g.Yg("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});else{c={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:b.Aa,ps:b.playerStyle,el:oP(a),hl:b.ha,list:a.playlistId,agcid:a.uj,aqi:a.adQueryId,sts:17836,lact:PG()};g.Da(c,b.A);b.qe&&(c.ecver=b.qe);b.forcedExperiments&&(c.forced_experiments=b.forcedExperiments);a.lf?(c.vvt=a.lf,a.mdxEnvironment&&(c.mdx_environment=
858a.mdxEnvironment)):sP(a)&&(c.access_token=sP(a));a.revocableUnlistedToken&&(c.ut=a.revocableUnlistedToken);a.adFormat&&(c.adformat=a.adFormat);0<=a.slotPosition&&(c.slot_pos=a.slotPosition);a.breakType&&(c.break_type=a.breakType);null!=a.adIds&&(c.ad_id=a.adIds);null!=a.adSystems&&(c.ad_sys=a.adSystems);null!=a.Vz&&(c.encoded_ad_playback_context=a.Vz);b.lh&&(c.cc_lang_pref=b.lh);b.mh&&2!=b.mh&&(c.cc_load_policy=b.mh);b.mute&&(c.mute=b.mute);a.jh&&2!=b.jh&&(c.iv_load_policy=a.jh);a.dk&&(c.itct=a.dk);
859rP(a)&&(c.autoplay="1");a.wm&&(c.autonav="1");a.tu&&(c.noiba="1");a.isMdxPlayback&&(c.mdx="1",c.ytr=a.Gf);a.mdxControlMode&&(c.mdx_control_mode=a.mdxControlMode);a.Ao&&(c.ytrcc=a.Ao);a.yu&&(c.utpsa="1");a.isFling&&(c.is_fling="1");a.ru&&(c.mute="1");a.vnd&&(c.vnd=a.vnd);a.Ys&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=a.Ys,c.force_ad_param_break_type="1",c.force_ad_param_offset_value=0);d.width&&(c.width=d.width);d.height&&(c.height=d.height);a.Eh&&(c.splay="1");a.ypcPreview&&(c.ypc_preview=
860"1");pP(a)&&(c.content_v=pP(a));a.ym&&(c.livemonitor=1);b.gd&&(c.authuser=b.gd);b.pageId&&(c.pageid=b.pageId);b.Oa&&(c.ei=b.Oa);b.o&&(c.iframe="1");a.ci&&(c.tst=a.ci);a.contentCheckOk&&(c.cco="1");a.racyCheckOk&&(c.rco="1");b.Kb&&a.liveStartWalltime&&(c.live_start_walltime=a.liveStartWalltime);b.Kb&&a.Bu&&(c.live_manifest_duration=a.Bu);b.Kb&&a.playerParams&&(c.player_params=a.playerParams);b.Kb&&a.cycToken&&(c.cyc=a.cycToken);b.Kb&&a.kG&&(c.tkn=a.kG);0!=e&&(c.vis=e);b.enableSafetyMode&&(c.enable_safety_mode=
861"1");a.Gp&&(c.kpt=a.Gp);a.Hp&&(c.kids_age_up_mode=a.Hp);a.rr&&(c.upg_content_filter_mode="1");b.widgetReferrer&&(c.widget_referrer=b.widgetReferrer.substring(0,128));(d=b.Ln)&&(c.embedding_app=d);(d=g.pma(a))&&(c.uloc=d);a.tm&&(c.internalipoverride=a.tm);b.Kb&&a.yi&&(c.wpid=a.yi);b.Md&&(c.embed_config=b.Md);b.Oo&&(c.co_rel="1");0<b.tc.length&&(c.ancestor_origins=Array.from(b.tc).join(","));for(var f in c)c[f]&&512<c[f].length&&(g.lE(Error("GVI param too long: "+f)),c[f]="");a=g.Yg(b.baseYtUrl+"get_video_info",
862c)}b=2;this.o.isAd()&&(b=0);c=this.o;f=this.F.Ca;d=this.F.hc;c.ka()||(c.CA=a,c.Aw=b,c.Sk=f,c.wB=d,c.gF=!XO(c).o("disable_gvi_cors"),c.Ct=XO(c).A("html5_get_video_info_timeout_ms")||0,c.DA=XO(c).o("html5_get_video_info_promiseajax"),c.Kh=!0,c.uF())}};
863g.h.fU=function(a){this.ka()||a.videoData.ka()||(this.O=a,this.o.La&&(this.U=new rna,Eqa(this),0<this.o.Ng&&!dP(this.o)||(jT(this,zT(this),!0),kT(this,"playbackData"))),this.o.Pa.o&&g.AT(this),yT(this),this.U&&this.o.Pa.o&&(dP(this.o)?(a=(0,g.B)(this.D.HC,this.D),this.U.A=a):this.o.ra&&(a=(0,g.B)(this.o.ra.sP,this.o.ra),this.U.A=a)))};
864g.h.gU=function(a){this.ka()||(a instanceof QN?this.M.isBackground()?(JT(this,"vp_none_avail"),this.Zb=null,this.da.reset()):(this.da.o=!0,g.YS(this,a.errorCode,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RN(a.details))):g.lE(a))};
865g.h.logEvent=function(a,b){if(this.C){var c=this.C,d={};d.rt=g.wP(c.o).toFixed(3);g.Da(d,Oma(c.o));var e=c.o.o,f=c.o.videoData;e={ns:e.ba,html5:"1",el:oP(f),ps:e.playerStyle,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.uw||f.mn||void 0,ctrl:f.Ff||void 0,ytr:f.Gf||void 0,list:f.playlistId};rP(f)&&(e.autoplay="1");f.subscribed&&(e.subscribed=f.subscribed);g.Da(d,e);delete d.fexp;g.Da(d,a);d=g.AE(c.o.o.baseYtUrl+"player_204",d);eQ(c,d,b)}};
866g.h.isPeggedToLive=function(){return!!this.K&&this.K.isPeggedToLive()};
867g.h.zN=function(){return this.B};
868g.h.getPlayerType=function(){return this.Ib};
869g.h.yW=function(){this.o.Pa.o&&fM(this.o.ra)?Oqa(this):(uT(this),VS(this,IP(this.B,16)),dT(this),MP(this.B)&&xT(this))};
870g.h.getAvailableAudioTracks=function(){return this.o.getAvailableAudioTracks()};
871g.h.getAudioTrack=function(){return this.o.getAudioTrack()};
872g.h.DN=function(){this.F.experiments.A("html5_background_quality_cap")&&this.D&&yT(this);this.F.experiments.o("html5_cut_vss_on_visibility")&&this.C&&g.vP(this.C.B);this.F.Qn&&!this.o.backgroundable&&this.A&&!this.M.A&&(this.M.isBackground()&&this.A.Rp()?(this.Hb("bgmobile","suspend"),g.pT(this,!0)):this.M.isBackground()||dT(this)&&this.Hb("bgmobile","resume"))};
873g.h.XS=function(a){if(this.J){var b=this.J;CN(b.o)&&(a=coa(a),rS(b,new gS(a)))}};
874g.h.LT=function(a,b){this.J?rS(this.J,new gS(b,a)):this.tc.push({type:a,info:b})};
875g.h.gE=function(){g.EN&&this.pa&&this.pa.o&&this.J&&(Tpa(this.J,this.pa.o),this.pa=null)};
876g.h.EV=function(a){this.o.GG=HJ("auto",a,!1,"u");yT(this)};
877g.h.lT=function(a){mT(this,a.reason,a.video.info,a.audio.info);this.U&&(this.U.o=a.audio.index)};
878g.h.kT=function(a){yqa(this,a.reason,a.audio.info)};
879g.h.Dm=function(a){Mqa(this,a);if("html5.invalidstate"!=a.errorCode&&"fmt.unplayable"!=a.errorCode&&"fmt.unparseable"!=a.errorCode||!DT(this,a.errorCode,a.details)){var b=/^pp/.test(this.o.clientPlaybackNonce);if(Jqa(a)){a.details.sts="17836";if(Kqa(this)){g.X(this.B,4)?(this.vg=!0,SS(this)):(this.C&&(a.o&&(a.details.e=a.errorCode,a.errorCode="qoe.restart",a.o=!1),this.C.onError(a.errorCode,RN(a.details))),vT(this));return}a:if(!(6048E5>g.zG()-this.F.se)){try{window.location.reload(!0);break a}catch(c){}fT(this,
880"tvhtml5_retire_old_players")&&g.kN(this.F)&&Nqa(this)}}if(Lqa(a)&&this.o.Pa.A){if(this.C)this.C.onError(a.errorCode,RN(a.details));this.Hb("highrepfallback","1",!0);!fT(this,"html5_hr_logging")&&/^hr/.test(this.o.clientPlaybackNonce)&&window.btoa&&this.Hb("afmts",(0,window.btoa)(this.o.adaptiveFormats));Ema(this.o);QS(this);SS(this);CT(this);xT(this)}else a.o?(b=this.D?this.D.G.D:null,b=Lqa(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,g.YS(this,a.errorCode,b,RN(a.details))):this.C&&
881(this.C.onError(a.errorCode,RN(a.details)),b&&"manifest.net.connect"==a.errorCode&&(a="../generate_204@cpn="+this.o.clientPlaybackNonce+"&t="+g.zG(),(new LR(a,"manifest",(0,g.B)(function(a){this.Hb("pathprobe",a)},this),(0,g.B)(function(a){this.onError(a.errorCode,RN(a.details))},this.C))).send()))}};
882g.h.getCurrentTime=function(){return this.G.getCurrentTime()};
883g.h.getDuration=function(){return this.o.lengthSeconds?this.o.lengthSeconds+(this.G?this.G.C:0):zT(this)?zT(this):0};
884g.h.QK=function(){var a=new lla;if(this.D){var b=this.F.schedule;a.B=b.J;a.D=b.K;a.bandwidthEstimate=g.HM(b);a.o="d."+EM(b).toFixed(2)+";st."+(1E9*(b.C.A()||0)).toFixed(2)+";bw."+b.o.A().toFixed(0)+";abw."+b.F.A().toFixed(0)+";v50."+BM(b.A,.5).toFixed(2)+";v92."+BM(b.A,.92).toFixed(2)+";v96."+BM(b.A,.96).toFixed(2)+";v98."+BM(b.A,.98).toFixed(2);b=this.D;if(b.C&&!jJ(b.C)&&(a.A=uR(b.o)?b.o.D.C:bJ(b.C.A.qc(),b.D),a.C=uR(b.B)?b.B.D.C:bJ(b.C.o.qc(),b.D),b.A.ga)){var c=wR(b.o),d=wR(b.B),e=YI(b.C.A.qc(),
885"_"),f=YI(b.C.o.qc(),"_");a.o=(a.o||"")+(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=BR(b.J)}else this.A&&(a.A=AP(this.A));a.F=this.tA();return a};
886g.h.HV=function(){US(this)};
887g.h.GV=function(a){g.YS(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode,a.subreason)};
888g.h.CN=function(a){var b=a.target.zd();if(this.A&&this.A.zd()&&this.A.zd()==b){Uqa(this,a.type);switch(a.type){case "error":var c=CP(this.A)||"";if("capability.changed"==c){cT(this);return}if(0<this.A.Eb()&&DT(this,c,{msg:this.A.rk()}))return;if(this.M.isBackground()&&4==this.A.Eb()){g.pT(this);JT(this,"unplayable");return}break;case "durationchange":c=this.A.getDuration();(!this.L||(0,window.isFinite)(c)&&0<c)&&1!=c&&this.o.lengthSeconds!=c&&(this.o.lengthSeconds=c,US(this));break;case "ratechange":this.D&&
889(c=this.A.Lc(),this.D.J.B=Math.max(1,c));c=this.H;c.F=!0;c.B();if(this.C){c=this.C.A;var d=this.wa,e=g.wP(c.o);d&&d!=c.ia&&(g.SP(c,e,"rate",[d]),c.ia=d);c.D(e)}break;case "loadedmetadata":this.V("onLoadedMetadata");case "loadstart":window.clearInterval(this.Sc);this.Es()||(this.Sc=g.sE((0,g.B)(this.Es,this),100));break;case "progress":this.Oa&&this.A&&(c=this.A.Ul(),c.length&&c.end(0)>this.Oa&&(this.A.Jm(this.Oa),this.Oa=window.NaN,this.qd=this.Ca.R(this.A,"canplay",this.sS,this)));case "suspend":FT(this);
890this.V("onLoadProgress",this,this.A?g.mP(this.o)?1:nP(this.o)?wT(this)||this.isPeggedToLive()?1:mqa(this.G):BP(this.A):0);break;case "playing":(0,g.iQ)("plev",void 0,"");SO("plev");this.te&&(this.te=!1,wT(this)||(jT(this,window.Infinity,!0),kT(this,"onPlaying")));break;case "timeupdate":c=this.A&&!this.A.getCurrentTime();d=this.A&&0==this.A.Ce();if(c&&(!this.Ua||d))return;this.Ua=this.Ua||!!this.A.getCurrentTime();this.Es();FT(this);if(!this.A||this.A.zd()!=b)return;this.V("onVideoProgress",this,
891this.getCurrentTime());break;case "waiting":if(0<this.A.Tl().length&&0==this.A.Tf().length&&0<this.A.getCurrentTime()&&5>this.A.getCurrentTime()&&this.D)return;break;case "resize":NE("cobalt")&&NE("nintendo switch")&&(c=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches,this.Hb("nxdock",""+ +c));this.o.Fa&&"auto"==this.o.Fa.video.quality&&this.V("internalvideoformatchange",this.o,!1);break;case "pause":if(this.gh&&g.X(this.B,8)&&!g.X(this.B,1024)&&0==this.getCurrentTime()&&
892g.wN){JT(this,"safari_autoplay_disabled");return}}if(this.A&&this.A.zd()==b){this.V("videoelementevent",a);b=this.B;if(!g.X(b,128)){c=this.Ka;var f=this.A;d=this.F.experiments;e=b.A;f=f?f:a.target;var k=f.getCurrentTime();if(!g.X(b,64)||"ended"!=a.type&&"pause"!=a.type){var l=f.Vi()||k&&1.1>Math.abs(k-f.getDuration()),m="pause"==a.type&&f.Vi(),n="ended"==a.type;d&&d.o("html5_waiting_before_ended")&&(n=n||"waiting"==a.type||"timeupdate"==a.type&&!g.X(b,4)&&!EP(c,k));if(m||l&&n)0<f.ep()&&f.zd()&&(e=
89314);else switch(a.type){case "error":CP(f)&&(e|=128);break;case "pause":g.X(b,256)?(e^=256)||(e=64):g.X(b,32)||g.X(b,2)||g.X(b,4)||(e=4,g.X(b,1)&&g.X(b,8)&&(e|=1));break;case "playing":e=(e|8)&-1029;d&&d.o("html5_playing_clears_unstarted_killswitch")||(e&=-65);EP(c,f.getCurrentTime())&&(e&=-2);g.X(b,1)&&GP(c,f)&&(e|=1);break;case "seeking":e|=16;d&&d.o("html5_seeking_buffering_only_playing")&&!g.X(b,8)||(e|=1);e&=-3;break;case "seeked":e&=-17;break;case "waiting":g.X(b,2)||(e|=1);GP(c,f);break;case "timeupdate":k=
894g.X(b,8),l=g.X(b,16),m=g.X(b,4),(d&&d.o("html5_paused_timeupdate_killswitch2")?k&&!m||l:(k||l)&&!m)&&EP(c,f.getCurrentTime())&&(e=8),GP(c,f)&&(e|=1)}}c=e;d=null;c&128&&(d=a.target,(e=CP(d))?(f="mediaElem.1",d.rk()&&(f+=";msg."+d.rk()),.001>Math.random()&&(f+=";gpu."+(0,g.aT)()),d={errorCode:e,errorDetail:f,message:g.oT.YTP_ERROR_GENERIC_WITHOUT_LINK||"",messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}):d=null);b=HP(b,c,d)}!g.X(this.B,1)&&g.X(b,1)&<(this,"evt_"+a.type);VS(this,b)}}};
895g.h.uR=function(a){a="available"==a.o.availability;a!=this.fd&&(this.fd=a,this.V("airplayavailabilitychange"))};
896g.h.vR=function(){var a=g.zG();if(fT(this,"html5_hlsvp_airplay_killswitch")||(0,window.isNaN)(this.Kd)||!(2E3>a-this.Kd)){var b=this.A.Ui();this.Kd=a;b!=this.M.A&&(a=this.M,a.A!=b&&(a.A=b,a.D()),fT(this,"html5_hlsvp_airplay_killswitch")&&!b||cT(this));this.V("airplayactivechange")}};
897g.h.Es=function(){var a=this.A;a&&this.Ua&&!this.o.Qe&&!RO("vfp","")&&2<=a.Ce()&&!a.Vi()&&0<aJ(a.Tf())&&(0,g.iQ)("vfp",void 0,"");var b=this.A;return b&&!this.o.Qe&&0<b.getDuration()&&(!RO("pbp","")&&b.Wi()&&2<=b.Ce()&&0<aJ(b.Tf())&&(0,g.iQ)("pbp",void 0,""),a=fT(this,"html5_use_start_seconds_for_pbs")?this.o.startSeconds+.1:0,b=b.getCurrentTime(),fT(this,"html5_use_hasAdvanced_for_pbs")?EP(this.Ka,b):b>a)?(Qqa(this),!0):!1};
898g.h.sS=function(){this.qd&&(this.Ca.Ia(this.qd),delete this.qd,this.kn())};
899g.h.wL=function(){if(this.A&&!g.X(this.B,128)){this.o.Dh&&this.F.experiments.A("html5_log_rebuffer_events")&&Uqa(this,"pfx");var a=this.getCurrentTime();if(g.X(this.B,8)&&EP(this.Ka,a))VS(this,JP(this.B,1));else if(g.X(this.B,8)&&Wma(this.Ka,a,g.zG(),AP(this.A))){var b=this.getDuration();!this.o.La&&b&&1.1>Math.abs(b-a)?this.A.Tu()?jT(this,0,!0):NS(this):(g.OP(this.B)||LT(this,"progress_fix"),VS(this,IP(this.B,1)))}else g.X(this.B,4)&&g.OP(this.B)&&5<AP(this.A)&&VS(this,JP(this.B,1));FT(this)}};
900g.h.HK=function(){return this.D?BR(this.D.J):g.HM(this.F.schedule)};
901g.h.nA=function(){return this.A?AP(this.A):0};
902g.h.OK=function(){return this.F.schedule.J};
903g.h.tA=function(){return wT(this)&&this.B.rb()?this.wA():window.NaN};
904g.h.wA=function(){if(!this.o.La||!this.o.ra||!this.D)return window.NaN;var a=dP(this.o)?this.D.HC():this.o.ra.H;return(0,g.H)()/1E3-GT(this)-a};
905g.h.gL=function(){this.o.La||this.V("connectionissue")};
906g.h.kn=function(){var a=this;if(this.wc=this.A.Xc()){var b=this.wc;b.then(void 0,function(c){if(!(g.X(a.B,4)||g.X(a.B,256)||a.wc!=b||!fT(a,"html5_ignore_mediaelement_playerror_killswitch")&&c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";!fT(a,"html5_log_dompause_err_killswitch")&&c&&c.name&&(d+=";m."+c.name);JT(a,d);a.gh=!0}})}};
907g.h.bT=function(a,b,c,d){d=void 0===d?"YTP_ERROR_LICENSE":d;c=c.substr(0,256);"drm.keyerror"==a&&1<this.J.A.keys.length&&96>this.hh&&(a="drm.sessionlimitexhausted",b=!1);if(b)g.YS(this,a,d,c);else if(this.C)this.C.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.hh++,this.A&&(this.L?(QS(this),SS(this),CT(this)):(this.o.Gd&&this.o.Gd.Dw(),this.A.md()),xT(this)))};
908g.h.dT=function(){var a=this,b=this.F.experiments.A("html5_license_constraint_delay"),c=NE("smart-tv")&&NE("samsung");b&&c?(b=new g.V(function(){yT(a);US(a)},b),g.M(this,b),b.start()):(yT(this),US(this))};
909g.h.cT=function(){var a=this;g.EN&&(this.pa=kla(this.o.ra))&&(this.pa.o?g.$f(function(){a.gE()}):tpa(this.D,this.pa))};
910g.h.AN=function(a){this.V("heartbeatparams",a)};
911g.h.BN=function(a){this.Hb("keystatuses",Npa(a));var b=0;this.o.Fa&&(b=this.o.Fa.video.o);var c=this.F.experiments.o("html5_drm_start_from_null_constraint"),d=c&&!(Ppa(a,"AUDIO")&&Ppa(a,"SD"));a:{for(var e in a.o)if("output-restricted"==a.o[e].status){a=!0;break a}a=!1}a&&(!c&&480<b||d)&&this.V("drmoutputrestricted")};
912g.h.iT=function(){if(!this.o.Qe&&this.A&&!this.M.isBackground()){var a="0";0<this.A.Ce()&&5<=AP(this.A)&&this.o.Pa.o&&(VS(this,IP(this.B,1)),LT(this,"load_soft_timeout"),this.V("playbackstalledatstart"),a="1");this.C&&(IT(this),a={restartmsg:a},iT(this)&&(a.prerolls=this.aa.join(",")),this.D&&g.Da(a,eS(this.D)),this.A&&g.Da(a,this.A.qk()),this.C.onError("qoe.start15s",RN(a)));this.V("loadsofttimeout")}};
913g.h.Ew=function(){if(!this.wb){var a=new vS(this.o,this.tj);if("c1a"in a.A){var b=g.y("yt.abuse.player.botguardInitialized");b=!(b&&b())}else b=!1;if(b)g.rE((0,g.B)(this.Ew,this),4500);else{if(a.o&&a.o.ni){a.C&&(a.C.value=a.o.ni+("&r1b="+a.o.clientPlaybackNonce));b=[a.o.ni];for(var c in a.B)if(a.A[c]&&a.B[c]){var d=a.B[c](a.A);d&&b.push(d)}a=b.join("&")}else a=null;a&&this.C&&(c=this.C,c.L||(b=dQ(c,"atr"),b.K=a,b.send(),c.L=!0),this.wb=!0)}}};
914g.h.bc=function(){return this.G.bc()};
915g.h.dC=function(){return this.wa};
916g.h.Bt=function(){return this.A?this.A.Vu():{}};
917g.h.iN=function(a){fT(this,"html5_unrewrite_timestamps")&&this.Hb("timestamp",a.toString())};
918g.h.Hb=function(a,b,c){if(this.C){var d=this.C;d.ka()||UP(d.A,a,b,void 0===c?!1:c)}};g.t(MT,fQ);g.h=MT.prototype;g.h.getPlayerType=function(){return this.playerType};
919g.h.getRootNode=function(){return g.TT(this).element};
920g.h.ig=function(){return this.app.G};
921g.h.getVideoData=function(a){return(a=g.WT(this.app,a||this.playerType))&&a.getVideoData()};
922g.h.Ve=function(a){return this.app.Ve(a||this.playerType)};
923g.h.isWidescreen=function(){return this.app.isWidescreen()};
924g.h.Xc=function(a){3==this.Sa()?g.UT(this.app.D).Sm("control_play"):pX(this.app,a)};
925g.h.md=function(a){ET(g.WT(this.app,a))};
926g.h.addEventListener=function(a,b){this.app.da.subscribe(a,b)};
927g.h.removeEventListener=function(a,b){this.app.da.unsubscribe(a,b)};
928g.h.Vp=function(a){this.DC(a,a)};
929g.h.Km=function(a){return P_(this.app,a)};
930g.h.getVideoUrl=function(a,b,c,d){var e=this.Sa(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.La||(k=Math.floor(this.getCurrentTime(e)));return this.app.o.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
931g.h.Qm=function(a,b,c){var d=g.NT(this).B;d&&d.Pu(a,b,c)};
932g.h.Vc=function(){if(g.Y(this).H)return!1;var a=g.WT(this.app,1);if(!a)return!1;var b=a.getVideoData();return!b.Td()||g.mP(b)||2==this.Sa()&&!uX(this.app)||iT(a)&&3!=this.Sa()?!1:!0};
933g.h.EN=function(){var a=g.WT(this.app);a&&a.A.Xu()};
934g.h.aj=function(a,b,c){var d=this.app;(c=g.WT(d,c||this.playerType))&&d.o.Ib.has(a.toString())?c.C?(d=dQ(c.C,"engage"),d.B=a,d.send(b)):b&&b():b&&b()};
935g.h.cf=function(a,b){N_(this.app,a,b)};
936g.h.setVolume=function(a){a=g.kd(a,0,100);jI(this.app,{volume:a,muted:this.isMuted()},!0)};
937g.h.mute=function(){jI(this.app,{muted:!0,volume:this.getVolume()},!0)};
938g.h.jg=function(){jI(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
939g.h.Sa=function(){return hU(this.app)};g.C(g.yU,g.$F);g.h=g.yU.prototype;g.h.load=function(){this.loaded=!0};
940g.h.unload=function(){this.loaded=!1};
941g.h.Dc=function(){return!0};
942g.h.X=function(){this.loaded&&this.unload();g.yU.fa.X.call(this)};
943g.h.XG=function(){return{}};g.t(AU,zU);AU.prototype.isSkippable=function(){return null!=this.F};
944AU.prototype.getVideoUrl=function(){return this.C};g.t(BU,g.L);BU.prototype.X=function(){this.A&&g.KF(this.A);this.o.clear();CU=null;g.L.prototype.X.call(this)};
945BU.prototype.register=function(a,b){b&&this.o.set(a,b)};
946var CU=null;g.t(EU,g.L);EU.prototype.show=function(){this.o.o.A||(this.o.show(),ZE(this.B),this.B=[])};
947EU.prototype.hide=function(){this.o.o.A&&(this.o.hide(),ZE(this.A),this.A=[])};
948EU.prototype.bind=function(a){var b=this.o,c=a.confirmLabel||null;c?b.A.show():b.A.hide();b.A.Mb(FU(c));this.o.setTitle(a.title||null);this.o.o.Mb(FU(a.dialogMessage||null));g.Rd(era(this.o));b=g.q(a.adReasons||[]);for(c=b.next();!c.done;c=b.next())c=c.value,era(this.o).appendChild(g.Ld("li",null,FU(c)));this.B=a.impressionEndpoints&&0<a.impressionEndpoints.length?fra(a.impressionEndpoints[0]):[];this.A=a.confirmServiceEndpoint?fra(a.confirmServiceEndpoint):[]};
949g.t(DU,g.$F);g.h=DU.prototype;g.h.na=function(){return this.o.element};
950g.h.show=function(){if(!this.o.A){this.Y.R(window.document,"click",this.oO);this.o.show();var a=this.na(),b=g.Ph(g.Gh(this.C)).width,c=g.Ph(this.C),d=Eh(this.C);a.style.top=d.y+c.height+"px";a.style.right=b-d.x-c.width+"px"}};
951g.h.hide=function(){this.o.A&&(this.o.hide(),g.ZF(this.Y))};
952g.h.setTitle=function(a){a?this.B.show():this.B.hide();this.B.Mb(FU(a))};
953g.h.oO=function(a){this.o.A&&(a=a.target,g.Zd(this.C,a)||(g.Zd(this.A.o["ytp-ad-info-dialog-confirm-button"],a)?this.V("confirmClick"):g.Zd(this.o.element,a)||this.V("externalClick")))};g.t(gra,zU);g.t(hra,zU);g.t(jra,zU);g.t(kra,zU);g.t(lra,zU);g.t(NU,g.$F);NU.prototype.dispose=function(){this.o.clear();g.$F.prototype.dispose.call(this)};
954var OU=null;g.ta("ytads.bulleit.getVideoMetadata",function(a){return(a=nra().o.get(a))?a.o():{}},void 0);
955g.ta("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=nra();c=ora(c);null!=c&&d.V(c,{queryId:a,viewabilityString:b})},void 0);Object.freeze([gra,hra,jra,kra,lra,AU]);var QU=null,qra=null;g.ta("yt.www.ads.eventcache.getLastCompanionData",function(){return QU},void 0);
956g.ta("yt.www.ads.eventcache.getLastPlaShelfData",function(){return qra},void 0);var Kra={seekableStart:0,seekableEnd:1,current:0};g.t(g.XU,g.L);g.h=g.XU.prototype;g.h.show=function(a){1!=this.o&&2!=this.o&&(4==this.o&&this.pr(),5==this.o?(this.B.show(),this.o=null,this.A.stop(),this.C&&this.C()):this.B.A||(YU(this,!0),this.o=1,a?this.A.start(a):this.pr()))};
957g.h.hide=function(){4!=this.o&&(1==this.o||2==this.o?(this.B.hide(),this.o=null,this.A.stop()):this.B.A&&(YU(this,!0),this.o=4,this.A.start(this.G)))};
958g.h.pr=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:YU(this,!1);this.o=3;this.A.start(this.F);break;case 3:this.o=null;this.C&&this.C();break;case 4:this.B.hide();YU(this,!1);this.o=5;this.A.start(0);break;case 5:this.o=null,this.D&&this.D()}};
959g.h.stop=function(){for(;null!=this.o&&5!=this.o;)this.A.stop(),this.pr()};
960g.h.X=function(){this.B.ka()||this.B.element.removeAttribute("aria-hidden");g.L.prototype.X.call(this)};aV.prototype.getLength=function(){return this.o-this.A};g.t(dV,g.$H);dV.prototype.F=function(){var a=this.C.C;a=cV(new aV(a.seekableStart,a.seekableEnd),a.current,0);this.H.style.width=100*a+"%"};
961dV.prototype.G=function(){g.lN(g.Y(this.D))||g.Y(this.D).experiments.o("hide_video_ad_progress_bar_and_ad_count_down")||(2==this.D.Sa()?-1===this.B&&(this.show(),this.B=this.C.subscribe("r",this.F,this),this.F()):-1!==this.B&&(this.hide(),this.C.Yd(this.B),this.B=-1))};g.t(eV,g.W);eV.prototype.clear=function(){for(var a=g.q(this.Ra),b=a.next();!b.done;b=a.next())g.kf(b.value);this.Ra=[]};
962eV.prototype.H=function(a){g.PF(a);this.B=Math.max(0,this.B-fV(this));gV(this)};
963eV.prototype.G=function(a){g.PF(a);this.B=Math.min(this.Ra.length-1,this.B+fV(this));gV(this)};
964eV.prototype.X=function(){this.clear();g.W.prototype.X.call(this)};g.t(hV,g.$F);hV.prototype.stop=function(){this.B&&this.o.Ia(this.B)};
965hV.prototype.D=function(){var a=this.A.wk(this.F);this.C={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:a.current};this.V("r")};
966hV.prototype.G=function(a){0<RP(a,2)&&this.V("q")};g.xX={};var iV=[2,5];sV.prototype.D=function(){var a=tV(this);a.format="2_3";a.at="2_3";a.ad_sys="AdSense";a.trsp="1";xW(this.o,3,a)};g.C(uV,g.L);uV.prototype.X=function(){this.o.reject();uV.fa.X.call(this)};
967uV.prototype.F=function(){this.B++;var a=g.y("yt.www.watch.ads.isAfcAdVisible");a&&g.ya(a)&&a()&&this.C++;4<=this.C?this.o.resolve():5<=this.B?this.o.reject("Timed out waiting for MPU to become visible"):this.A.start()};var AV,wV=!1,xV=!1,vV=!1;g.mG("showCompanionAdLoaded",function(){xV&&(asa(),xV=!1)});
968g.mG("watchAdsInit",function(){wV&&(wV=!1,Zra())});g.C(CV,g.$F);CV.prototype.Mf=function(){return this.adSystem+"_"+this.adType};
969CV.prototype.Di=function(){return this.Mf()};
970CV.prototype.Ab=function(){return this.A?this.A.Ab():null};
971CV.prototype.abort=g.A;g.C(DV,g.L);DV.prototype.X=function(){DV.fa.X.call(this);g.Rd(EV(this));g.Rd(ksa(this));this.A=this.o=null;delete this.B};g.t(NV,g.L);NV.prototype.start=function(){!this.ka()&&(0,window.isNaN)(this.o)&&(this.B=(0,g.H)(),this.o=g.Bg(this.D,Math.max(0,this.C-this.A),this))};
972NV.prototype.stop=function(){(0,window.isNaN)(this.o)||(this.B=this.A=0,g.Cg(this.o),this.o=window.NaN)};
973NV.prototype.pause=function(){(0,window.isNaN)(this.o)||(this.A+=(0,g.H)()-this.B,g.Cg(this.o),this.o=window.NaN)};
974NV.prototype.X=function(){(0,window.isNaN)(this.o)||g.Cg(this.o);g.L.prototype.X.call(this)};g.C(PV,CV);PV.A=15E3;PV.o=1E3;g.h=PV.prototype;g.h.abort=function(){ssa(this.C,13);this.M||this.A.destroy();this.F=this.G=!1;TV(this)};
975g.h.Mf=function(){var a=this.Ab();var b=lr(a);if(4==isa(b).B)return b;if(Ws(a))a=3;else if(a.isSkippable())a=Xs(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
976g.h.Di=function(){return this.adSystem+"_"+this.adType};
977g.h.show=function(){this.D=this.o.getRootNode();Math.random()<pV(this.o).experiments.A("ima_video_ad_with_overlay_class_logging_percentage")&&(g.Lq(this.D,"ytp-ad-overlay-open")&&g.lE(Error("class ytp-ad-overlay-open is present during video ad is playing")),g.Lq(this.D,"ytp-ad-overlay-closed")&&g.lE(Error("class ytp-ad-overlay-closed is present during video ad is playing")));pV(this.o).experiments.o("ima_clear_overlay_class_during_video_ad")&&(g.Oq(this.D,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),
978g.Oq(EV(this.o.D),["ad-overlay"]));BV();iX(this.o)&&yV(this.o,{});g.vU(this.o.player,2);this.C.B=g.zG();this.B.subscribe("progresssync",this.HD,this);this.o.o.M&&g.Td(g.K("video-ad-status-bar",this.D));g.Mq(this.D,["ad-showing","ad-interrupting"]);this.o.subscribe("resize",this.Fx,this);try{this.Y.W(this.A,"adError",this.bY),this.Y.W(this.A,"click",this.aY),this.Y.W(this.A,"complete",this.dY),this.Y.W(this.A,"engagedview",this.HS),this.Y.W(this.A,"pause",this.fH),this.Y.W(this.A,"start",this.gH),
979this.Y.W(this.A,"skip",this.gY),this.Y.W(this.A,"MUTE_AD",this.abort),this.Y.W(this.A,"skippableStateChanged",this.hV),this.Y.W(this.A,"youTubeChannelMetadata",this.BT),this.Y.W(this.A,"yt-show-toast",this.dW),this.Y.W(this.A,"companionInitialized",this.cY),iX(this.o)&&(this.Y.W(this.A,"youtubeKevlarCompanionShow",this.eY),this.Y.W(this.A,"youtubeKevlarCompanionHide",this.ZS)),this.Y.W(EV(this.o.D),"mouseup",this.fY),this.Fx(),this.M||this.A.start()}catch(a){UV(this,a)}this.o.o.A&&pV(this.o).experiments.o("ad_info_icon_in_card")&&
980mX(this.o,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
981g.h.iH=function(a,b,c){var d=this;if("newdata"==a&&this.videoData!=c){a=new jsa;a.isSkippable=this.U;a.isBumper=this.aa;a.skip=(0,g.B)(this.A.skip,this.A);var e=!1;a.muteAdClicked=function(){e=!0;d.A.muteAdClicked()};
982a.muteAd=function(){e||d.A.muteAdClicked();e=!1;d.A.muteAd()};
983a.whyThisAdClicked=(0,g.B)(this.A.whyThisAdClicked,this.A);a.whyThisAdClosed=(0,g.B)(this.A.whyThisAdClosed,this.A);a.sendAdsPing=g.YE;a.skipShown=(0,g.B)(this.A.zF,this.A);if(b=this.Ab()){a.clickThroughUrl=ht(b)||"";a.skipTime=ega(b,c.lengthSeconds)||0;a.adSystem=this.adSystem;if(b=vsa(this))a.whyThisAdInfo=b;var f=wsa(this);f&&(a.muteAdInfo=f);var k=pV(this.o);this.o.o.A&&k.experiments.o("ad_info_icon_in_card")&&(k={showAdInfoIcon:!0},k.whyThisAdInfo=b,k.muteAdInfo=f,mX(this.o,"onAdMetadataAvailable",
984k))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.Cn()||"");c.spacecastModule=this.Z;SV(this.o,-1,a)}this.videoData=c};
985g.h.hH=function(a){a=a.state;g.X(a,1)||this.H.pause();g.X(a,128)?UV(this,Error(a.o.message||"Video player error.")):g.X(a,1)&&this.H.start()};
986g.h.gH=function(){this.K=!0;this.F=!1;if(!this.G){this.G=!0;var a=this.C;LV(a);var b=MV(a);if((0,window.isNaN)(a.B))LV(a);else{var c=g.zG()-a.B;b.ad_stl=c}KV(a,4,b);usa(this.o,1);RV(this,!1);RO("_start","video_to_ad")&&(this.J&&1!=this.J&&(0,g.jQ)("yt_abt",this.J,"video_to_ad"),this.videoData&&this.videoData.clientPlaybackNonce&&(0,g.jQ)("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad"),this.videoData&&this.videoData.videoId&&(0,g.jQ)("ad_docid",this.videoData.videoId,"video_to_ad"),(0,g.jQ)("cpn",
987qV(this.o).clientPlaybackNonce,"video_to_ad"),(0,g.iQ)("apbs",void 0,"video_to_ad"));mX(this.o,"onAdAnnounce","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u043a\u043b\u0430\u043c\u0430.")}SV(this.o,1);this.V("adPlay",this)};
988g.h.fH=function(){this.K&&(this.K=!1,SV(this.o,2))};
989g.h.dY=function(){if(!this.F){var a=this.C;LV(a);var b=MV(a),c=a.o.Ol();c?b.ad_fmt=c:LV(a);KV(a,5,b);pV(this.o).Kb&&mX(this.o,"onAdComplete");TV(this);this.F=this.G=!1}};
990g.h.HS=function(){var a=this.C;a.o.V("AD_LOGGING_EVENT",777,MV(a))};
991g.h.gY=function(){this.F=!0;var a=this.C,b=MV(a),c=a.o.Ol();c?b.ad_fmt=c:LV(a);KV(a,14,b);pV(this.o).Kb&&mX(this.o,"onAdSkip");TV(this)};
992g.h.hV=function(){pV(this.o).experiments.o("html5_ad_no_buffer_abort_after_skippable")&&this.H.dispose();mX(this.o,"onAdAnnounce","\u0412\u0438\u0434\u0435\u043e\u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c.")};
993g.h.BT=function(){if(!this.ka()){var a=this.o.o;if(a){var b=this.Ab();if(b){var c=b.O;b=b.ga;var d=pV(this.o),e=vsa(this),f=wsa(this);b&&c&&c.isListed?(a={},a.videoTitle=c.title,a.channelId=b.channelId,a.channelThumbnailUrl=b.channelIconThumbnailUrl,a.channelTitle=b.authorName,a.channelVideoCount=b.videoCount,a.showAdInfoIcon=this.o.o.A&&d.experiments.o("ad_info_icon_in_card"),a.whyThisAdInfo=e,a.muteAdInfo=f,mX(this.o,"onAdMetadataAvailable",a)):a.A&&d.experiments.o("ad_info_icon_in_card")&&(a={showAdInfoIcon:!0},
994a.whyThisAdInfo=e,a.muteAdInfo=f,mX(this.o,"onAdMetadataAvailable",a))}}}};
995g.h.dW=function(a){mX(this.o,"onYtShowToast",a.event.o)};
996g.h.cY=function(a){a=a.event;var b=a.o;b&&b instanceof g.Of&&this.V("adCompanionInitialized",a.Tb(),b)};
997g.h.eY=function(a){if(iX(this.o)){var b=a.event.Tb();if(a=b&&b.H){b={adHoverTextButtonRenderer:lsa(et(b),ft(b))};var c=pV(this.o);a.iframeCompanionRenderer?c.experiments.o("desktop_videowall_companion_wta_support")&&(a.iframeCompanionRenderer.adInfoRenderer=b):a.imageCompanionAdRenderer?c.experiments.o("desktop_image_companion_wta_support")&&(a.imageCompanionAdRenderer.adInfoRenderer=b):a.actionCompanionRenderer?c.experiments.o("desktop_action_companion_wta_support")&&(a.actionCompanionRenderer.adInfoRenderer=
998b):a.shoppingCompanionCarouselRenderer&&c.experiments.o("desktop_shopping_companion_wta_support")&&(a.shoppingCompanionCarouselRenderer.adInfoRenderer=b);yV(this.o,a)}}};
999g.h.ZS=function(){iX(this.o)&&yV(this.o,{})};
1000g.h.bY=function(a){var b={};try{b.error_code=a.event.getError().Eb()}catch(c){b.error_code=900,b.error_message=c.toString()}ssa(this.C,32,b);UV(this,a.event.getError())};
1001g.h.aY=function(){var a=this.C;LV(a);var b=MV(a);if(a.A){var c=rV(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}KV(a,15,b);this.A.pause();this.V("select")};
1002g.h.HD=function(){};
1003g.h.BD=function(){this.A.Hf();if(this.G&&!this.F){var a=this.C;a.o.V("AD_LOGGING_EVENT",19,MV(a))}RV(this,!0)};
1004g.h.X=function(){this.o.unsubscribe("control_toggle_play_pause",this.jH,this);this.o.unsubscribe("control_play",this.ow,this);this.o.unsubscribe("control_pause",this.mw,this);this.o.unsubscribe("resize",this.Fx,this);g.VF(this.Y);this.B.unsubscribe("statechange",this.hH,this);this.B.unsubscribe("internalAbandon",this.BD,this);this.B.unsubscribe("internalvideodatachange",this.iH,this);this.B.unsubscribe("progresssync",this.HD,this);this.M||this.A.destroy();this.L&&(g.Rd(this.L),this.L=null);this.O&&
1005(g.Td(this.O),this.O=null);this.D&&(g.Oq(this.D,["ad-showing","ad-interrupting"]),this.D=null);this.F=!1;Bta(this.o);this.H.dispose();this.H=null;PV.fa.X.call(this)};
1006g.h.Xo=function(){return this.B.getDuration()};
1007g.h.Ol=function(){return this.videoData&&this.videoData.Fa?this.videoData.Fa.mimeType:null};
1008g.h.Cn=function(){return this.videoData&&this.videoData.Gd?this.videoData.Gd.bj().o:null};
1009g.h.jH=function(){this.K?this.mw():this.ow()};
1010g.h.ow=function(){this.A.resume();this.gH()};
1011g.h.mw=function(){this.A.pause();this.fH()};
1012g.h.Fx=function(){g.Oh(EV(this.o.D),this.o.app.H.Va())};
1013g.h.fY=function(a){a=new g.od(EF(a),FF(a));this.C.A=a};g.C(XV,CV);g.h=XV.prototype;g.h.Xo=function(){};
1014g.h.Ol=function(){};
1015g.h.Cn=function(){};
1016g.h.show=function(){if(!this.D||!vX(this.o)){var a=this.o.getRootNode();g.S(a,"ad-showing");this.B=EV(this.o.D);a=this.A.Ab().getHeight();this.B.style.height=Ch(a,!0);g.S(this.B,"ad-overlay");this.Y.W(this.B,"mouseup",this.kY);try{this.Y.W(this.A,"autoClose",this.IR),this.Y.W(this.A,"userClose",this.CV),this.Y.W(this.A,"click",this.iY),this.Y.W(this.A,"impression",this.WS),this.Y.W(this.A,"why_this_ad_url",this.hw),this.Y.W(this.A,"why_this_ad_got_it",this.gw),this.Y.W(this.A,"adError",this.hY),iX(this.o)&&
1017this.Y.W(this.A,"youtubeKevlarCompanionShow",this.jY),this.Cc("normal"),this.nl(),this.H||this.A.start(),this.Gx(),this.G=!0,this.o.subscribe("resize",this.nl,this),this.o.subscribe("presentingplayerstatechange",this.kH,this),this.V("adEnd",this)}catch(b){this.V("adError",b)}}};
1018g.h.hw=function(){(this.F=2==Q_(this.o.app))||RW(this.o)};
1019g.h.gw=function(){this.F||qX(this.o)};
1020g.h.jY=function(a){iX(this.o)&&(a=(a=a.event.Tb())&&a.H)&&yV(this.o,a)};
1021g.h.X=function(){var a=this.o.getRootNode();g.Oq(a,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]);g.VF(this.Y);this.o.unsubscribe("resize",this.nl,this);this.o.unsubscribe("presentingplayerstatechange",this.kH,this);g.Nq(a,"ad-showing");this.A&&(this.H||this.A.destroy(),this.A=null);this.B&&g.Nq(this.B,"ad-overlay");this.B=null;this.D=!1;XV.fa.X.call(this)};
1022g.h.CV=function(){this.B&&this.A&&this.A.Ab()&&(this.B.style.height=Ch(0,!0));this.D=!0;var a=this.C;a.A=(0,g.H)();var b=WV(a);VV(a,6,b);YV(this,!1)};
1023g.h.IR=function(){YV(this,!1)};
1024g.h.iY=function(){RW(this.o);var a=this.C;a.A=(0,g.H)();var b=WV(a);if(a.B){var c=rV(a.D);b.ck_xy=Math.round(a.B.x-c.left)+"x"+Math.round(a.B.y-c.top);b.ck_wh=c.width+"x"+c.height}VV(a,100,b)};
1025g.h.WS=function(){mX(this.o,"onAdAnnounce","\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435.");YV(this,!0)};
1026g.h.kY=function(a){this.C.B=a.target==a.currentTarget?null:new g.od(a.pageX,a.pageY)};
1027g.h.hY=function(a){this.V("adError",a.event.getError())};
1028g.h.kH=function(a){g.X(a.state,16)&&this.Cc("normal")};
1029g.h.Cc=function(a){this.J!=a&&(this.J=a,this.G&&this.nl())};
1030g.h.nl=function(){var a=this.B;var b=g.ud(a),c=g.Gd&&a.currentStyle;c&&g.Dd(g.wd(b).o)&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing?(b=g.Uh(a,c.width,"width","pixelWidth"),a=g.Uh(a,c.height,"height","pixelHeight"),a=new g.rd(b,a)):(c=new g.rd(a.offsetWidth,a.offsetHeight),b=g.Wh(a),a=g.Zh(a),a=new g.rd(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom));this.A.Ab()&&(c=this.A.Ab().ub(),b=this.A.Ab().getHeight(),(c>a.width||b>a.height)&&YV(this,!1))};
1031g.h.Gx=function(){var a=this.C;a.C=(0,g.H)();var b=WV(a);VV(a,3,b)};g.C(ZV,g.L);ZV.A="rm";ZV.o=10;ZV.D=200;ZV.B=200;ZV.C=190;g.h=ZV.prototype;
1032g.h.load=function(){var a=this.o.app.H.Va();if(this.o.o.C)var b=!1;else b=0<(this.F&3)?190:200,b=200>a.width||a.height<b;if(b){b=this.B;var c=tV(b);c.ck_wh=a.width+"x"+a.height;lX(b.o,14,c);BV();zW(this.D)}else if(this.ob=this.o.ob)a=this.B,xW(a.o,9,tV(a)),a=Wra(this.o),(b=this.o.o.serverPrefetchedVast)&&0<(this.F&3)?(a.A=b,this.o.o.serverPrefetchedVast=void 0):a.o=this.sh(),this.ob.W("adsManagerLoaded",this.dH,!1,this),this.ob.W("adError",this.cH,!1,this),this.fF(this.ob,a)};
1033g.h.ht=function(){var a=Nra(this.o.o,pV(this.o),qV(this.o));a.surveyCreativeData=this.o.o.surveyCreativeData;a.MX=this.H;return a};
1034g.h.dH=function(a){if(a.A===this){(0,g.iQ)("aml");SO("aml");try{var b=this.ht(),c=a.o}catch(d){this.Qh(d);return}this.C.W(c,"companionBackfill",(0,g.B)(this.ZX,this,c));this.C.W(c,"loaded",(0,g.B)(this.YX,this,c));this.C.W(c,"adError",(0,g.B)(this.XX,this,c));this.C.W(c,"allAdsCompleted",g.A);this.C.W(c,"contentPauseRequested",g.A);this.C.W(c,"contentResumeRequested",g.A);c=lB(a,this.o.F,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Qh(d)}}};
1035g.h.YX=function(a,b){g.qn(this.C);var c=b.Tb(),d=c.Yb(),e=this.B,f=tV(e);f.ad_man=d?"instream":"overlay";xW(e.o,12,f);e=a.uh();switch(d?this.mp(a,c,e):this.Gi(a,c)){case 0:Psa(this.D,this.J,this.A);break;case 1:a.destroy();zW(this.D);break;case 2:c=this.B;lX(c.o,21,tV(c));a.destroy();zW(this.D);break;case 3:zW(this.D);break;default:a.destroy()}};
1036g.h.XX=function(a,b){g.qn(this.C);a.destroy();this.Qh(b.getError())};
1037g.h.cH=function(a){var b=a.getError();"adLoadError"==b.Xb()&&a.o===this&&this.Qh(b)};
1038g.h.ZX=function(){ysa(this)};
1039g.h.mp=function(a,b,c){var d=qV(this.o)&&qV(this.o).spacecastModule;if(d&&c&&!this.L.test(c))return 3;aW(this,jt(b));$V(this,new PV(this.H,this.o,a,b.isSkippable(),b.isBumper(),void 0,d,this.A.o));return 0};
1040g.h.Gi=function(a,b){aW(this,jt(b));$V(this,new XV(this.H,this.o,a));return 0};
1041g.h.Qh=function(a){if(a){var b=this.B,c=tV(b);a&&Mra(a,c);lX(b.o,32,c);zW(this.D)}};
1042g.h.X=function(){this.ob&&(this.ob.Ia("adsManagerLoaded",this.dH,!1,this),this.ob.Ia("adError",this.cH,!1,this));g.qn(this.M);g.qn(this.C);ZV.fa.X.call(this)};
1043g.h.fF=function(a,b){try{tD(a,b,this),(0,g.iQ)("ar"),SO("ar")}catch(c){this.Qh(c)}};g.C(bW,CV);g.h=bW.prototype;g.h.Xo=function(){};
1044g.h.Ol=function(){};
1045g.h.Cn=function(){};
1046g.h.show=function(){if(iX(this.o))yV(this.o,{afcMpu:{logImpression:this.eH.bind(this),logNoAd:this.Nt.bind(this)}});else if(vV)this.Nt();else{var a=pV(this.o).experiments;Zra();zV();bsa(a).then((0,g.B)(this.eH,this),(0,g.B)(this.Nt,this))}};
1047g.h.eH=function(){var a={ad_sys:"AdSense"};a.at=this.Di();a.format=this.Mf();this.V("AD_LOGGING_EVENT",3,a);this.V("adEnd",this)};
1048g.h.Nt=function(){var a={};a.at=this.Di();this.V("AD_LOGGING_EVENT",2,a);this.V("adEnd",this)};g.C(cW,ZV);cW.prototype.ht=function(){var a=cW.fa.ht.call(this);a.Ty=0==this.K;a.PJ=vX(this.o)?a.Ty:!0;return a};
1049cW.prototype.sh=function(){var a=kV(this.A);var b=this.G;(b=4==this.F&&b.o.afvInvideoAdTag?b.o.afvInvideoAdTag:b.o.afvAdTag)?(g.gb(b,"http:")&&(b=b.substr(5)),a=g.AE(b,{videoad_start_delay:0==a||-1==a?a:1E3*a})):a="";return a};
1050cW.prototype.Gi=function(a,b){if(this.o.o.C)return 1;if(1==this.A.o){var c=new jV(2,10);this.A=c;this.B.B=c;xW(this.o,1)}return cW.fa.Gi.call(this,a,b)};g.C(dW,XV);dW.prototype.nl=function(){};
1051dW.prototype.Mf=function(){return"1_3"};
1052dW.prototype.Gx=function(){1==this.K?this.V("AD_LOGGING_EVENT",2,{}):dW.fa.Gx.call(this)};g.C(eW,ZV);eW.prototype.sh=function(){var a=this.G,b=kV(this.A);if(0<(this.F&3)){var c="mid,"+a.Gb;var d="midroll";0==b?(c="pre",d="preroll"):-1==b&&(c="post",d="postroll");a=new g.Um(a.o);b=a.o;var e=b.get("scp","");e=(e?e+"&":"").replace(RegExp("&?pos=[^&]*","g"),"");b.set("scp",e+("pos="+c));b.set("vpos",d);c=a.toString()}else c=a.o;return c};
1053eW.prototype.Gi=function(a,b){aW(this,jt(b));var c=Ts(b);if(oV(c,"rm"))return 1==this.F||vX(this.o)||BV(),a.Rk(),2;if(oV(c,"blockAllAds"))return a.Rk(),$V(this,new dW(this.o,a,1)),0;if(oV(c,"hideMaster"))return $V(this,new dW(this.o,a,0)),0;if(this.o.o.C)return 1;$V(this,new XV(this.H,this.o,a));return 0};g.C(fW,ZV);fW.A="../../https@www.googleapis.com/urlshortener/v1/url@key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";fW.B="43";fW.o=function(a){var b=new WD;g.IE(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Fd:function(){var c=Error(a+" timed out");$D(b);YD(b,!1,c)},
1054onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);$D(b);YD(b,!1,c)},
1055onSuccess:function(a){b.vl(a)}});
1056return b};
1057fW.prototype.sh=function(){return""};
1058fW.prototype.fF=function(a,b){var c=this.F;c&1||c&4||c&8?this.G?c&8?dsa(this.G):("goo.gl"==g.Og(this.G)?(c=fW.o("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.G),bE(c,function(a){a=JSON.parse(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new g.Um(a.longUrl);g.cn(a,"video_format","43");return fW.o(a.toString())},this)):c=fW.o(this.G),bE(c,function(c){b.A=
1059c.responseText;
1060tD(a,b,this)},this),aE(c,null,this.Qh,this)):this.Qh(Error("Invalid empty URL")):this.Qh(Error("Invalid request type: "+c))};var gW=null;g.t(Gsa,g.$H);g.t(iW,g.$H);g.h=iW.prototype;g.h.X=function(){g.$H.prototype.X.call(this);this.clear()};
1061g.h.bind=function(a,b){Isa(this,a);this.G=b||Hsa()};
1062g.h.clear=function(){this.C.clear();this.D.stop()};
1063g.h.start=function(){this.D.start();this.Yw()};
1064g.h.mR=function(a){this.B||(this.B=new EU(a.target),g.M(this,this.B),this.element.appendChild(this.B.o.na()));this.B.bind(this.G);this.B.show()};
1065g.h.Yw=function(){gV(this.C)};
1066g.h.pL=function(){this.J.start()};g.C(jW,CV);jW.prototype.Xo=function(){};
1067jW.prototype.Ol=function(){};
1068jW.prototype.Cn=function(){};
1069jW.prototype.show=function(){var a=qV(this.o).videoId;if(a){var b=this.A.Ab();pV(this.o).F.add(a,{pi:Pt(b)||null,Xk:Qt(b)||null});if(iX(this.o)){var c=Jsa(this);g.Ma(c)||(a=et(this.A.Ab())||void 0,c={shopText:FV(ps(c[0],"teaser_text")),sponsoredText:FV("\u0420\u0435\u043a\u043b\u0430\u043c\u0430"),itemList:{horizontalListRenderer:{items:(0,g.J)(c,osa),visibleItemCount:3,webHorizontalListRendererExtensionData:{nextButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"}}},
1070previousButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"}}}}}}},a?(c.adInfoButton={buttonRenderer:{style:"STYLE_OPACITY",size:"SIZE_DEFAULT",icon:{iconType:"INFO"},navigationEndpoint:{adInfoDialogEndpoint:{}}}},GV(c.adInfoButton.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint,a)):c.adInfoText=FV("\u042d\u0442\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430. \u0415\u0435 \u043f\u043e\u043a\u0430\u0437 \u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u043e\u043c."),
1071mX(this.o,"onPlaShelfInfoCardsReady",{renderer:c}))}else if(a=Jsa(this),!g.Ma(a)){c=et(this.A.Ab());if(c){var d={};GV(d,c);d=d.dialog.adInfoDialogRenderer}this.B.bind(a,d);a=this.B.element;Bsa().then(g.Ca(Csa,a)).then(this.B.start,null,this.B)}a={};a.format=this.Mf();a.at=this.Di();nV(b,a);this.V("AD_LOGGING_EVENT",3,a)}};g.C(kW,ZV);kW.prototype.sh=function(){return""};
1072kW.prototype.Gi=function(a,b){aW(this,jt(b));$V(this,new jW(this.o,a));5!=this.A.o&&ysa(this);return 0};
1073kW.prototype.mp=function(){return 1};g.C(lW,kW);lW.prototype.sh=function(){return this.o.o.forceAdUrl||""};g.C(pW,XV);pW.prototype.nl=function(){};
1074pW.prototype.Mf=function(){return"4_3"};g.C(qW,ZV);
1075qW.prototype.sh=function(){if(g.F(this.G)||0!=kV(this.A)){var a=this.O;if(a.o.ia&&a.o.va){var b={};var c="youtube_watch_"+a.B;b.nw="10613";b.asnw=a.o.ia;b.ssnw=a.o.ia;b.caid=a.o.va;b.vdur=a.F;b.csid=c;b.resp="vast2";b.metr="121";c={};(0,window.isNaN)(a.o.age)||(c._fw_d_001=a.o.age);a.o.gender&&(c._fw_d_002=a.o.gender);a.o.pa&&(c["_fwu:10613:lang"]=a.o.pa);a.o.la&&(c._fw_dbp=a.o.la);a.o.contentVideoId&&(c._fw_distributorvideoassetid=a.o.contentVideoId);c._fw_yt_type=Msa(a)?"long":"short";b.prof=Msa(a)?
1076"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";b.crtp="youtube";b.flag=mW(a.A)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="";if(a.D&1&&!a.H){var e={};d=Lsa(a);if(oW(a.A)){if(oW(a.A)){var f=0;var k=a.C.A;if(k){k=k.Db;for(var l=0;l<k.length&&(oW(k[l])&&f++,k[l].getId()!=a.A.getId());l++);}}else f=0;d+=f}e.slid=d;e.ptgt="a";d="";a.o.F&&!a.o.B?d=";linear-skippable":!a.o.F&&a.o.B&&(d=";video");e.slau=Lsa(a)+d;e.tpos=nW(a.A)?a.F.toString():kV(a.A.Vb).toString();d=vE(e)+";";
1077e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=vE(e)+";"}a.D&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},e.tpos=mW(a.A)?"10":nW(a.A)?a.F.toString():kV(a.A.Vb).toString(),d+=vE(e)+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=vE(e)+";");a.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=vE(e)+";");a=d.substr(0,d.length-1);b="//2975c.v.fwmrm.net/ad/g/1?"+vE(b)+";"+vE(c)+";"+a}else b=""}else b=this.G;
1078return b};
1079qW.prototype.mp=function(a,b){return qW.fa.mp.call(this,a,b,null)};
1080qW.prototype.Gi=function(a,b){var c=Ts(b);if(oV(c,"rm"))return this.D.D=g.bc(a),2;if(this.o.o.C)return 1;if(oV(c,"hideMaster")){if(a.ce&&a.ce.zi()){c=a.ce.zi();var d=a.Ab();if(O.o()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}$V(this,new pW(this.o,a));return 0}return qW.fa.Gi.call(this,a,b)};rW.prototype.Xb=function(){return this.A};
1081rW.prototype.create=function(a,b){switch(this.A){case 1:return new cW(a,b,this.o);case 2:return new eW(a,b,this.o);case 5:return new qW(a,b,this.o);case 4:return new fW(a,b);case 7:return new kW(a,b,this.o);case 8:return new lW(a,b,this.o);default:return null}};g.C(sW,g.$F);g.h=sW.prototype;g.h.Ob=function(){return"loaded"==this.C||"error"==this.C};
1082g.h.getId=function(){return this.Ha};
1083g.h.show=function(){this.H?this.o instanceof XV&&this.o.Cc("normal"):(this.H=!0,this.o instanceof PV&&this.B.He("bs"),this.o.subscribe("adEnd",this.GD,this),this.o.subscribe("adError",this.ZG,this),this.o.subscribe("AD_LOGGING_EVENT",this.bH,this),this.o.subscribe("select",this.YG,this),this.o.subscribe("adCompanionInitialized",this.aH,this),this.o.show(),Qsa(this,!0))};
1084g.h.GD=function(){this.A&&(AW(this),Ata(this.B));wW(this)};
1085g.h.ZG=function(a){if(a){var b={};Mra(a,b);yW(this,b);lX(this.B,32,b)}AW(this);wW(this)};
1086g.h.bH=function(a,b){yW(this,b);xW(this.B,a,b)};
1087g.h.YG=function(){this.G=!1};
1088g.h.aH=function(a,b){this.V("adCompanionInitialized",a,b)};
1089g.h.X=function(){AW(this);this.o=null;null!=this.D&&(this.D.dispose(),this.D=null);sW.fa.X.call(this)};var Wsa=[new jV(1)];var Xsa={II:"m",pI:"f"};g.C(BW,g.L);BW.prototype.D=function(a){if(a=a.Tb()){var b=a.G;if(null!=b){var c=OV(this.B.player.app,2);c&&c.getVideoData().videoId==b?c.C?(c=c.C,b=dQ(c,"engage"),b.B=1,c=Nma(c.o),b=g.Ca(ana,b.pa,aQ(b),ZP(b),c)):b=null:b=null;this.A=b}Hta(this.B,a)}else g.lE(Error("Ad object is missing in AdEvent"))};
1090BW.prototype.C=function(){this.o&&this.A&&this.A()};g.C(IW,g.L);g.h=IW.prototype;g.h.YF=function(){this.o.subscribe("beginseeking",this.vo,this)};
1091g.h.OF=function(a,b){return a.A&&oW(a)?b+this.C+this.B:b};
1092g.h.NF=function(a,b){return!a.A||nW(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.C+this.B};
1093g.h.Py=function(a){if(a.A&&oW(a)&&!(0>=this.B)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=uW(a)+this.C;b=new g.kQ(c,c+this.B-1,b);this.D[a.getId()]=b;QW(this.o,[b])}};
1094g.h.oH=function(a){a.A&&oW(a)&&(ata(this,a.getId()),this.vo())};
1095g.h.vo=function(){(0,window.isNaN)(this.A)||(g.tE(this.A),this.A=window.NaN);var a=oX(this.o);JW(this,a,this.o.app.L.getVolume()/100);a.Cd("transition","");a.Cd("opacity","1")};
1096g.h.pH=function(a){var b=uW(a)+this.C+this.B;b=50>=1E3*this.o.getCurrentTime(1)-b;a.A&&oW(a)&&b&&(a=.001*(uW(a)+this.G),Dta(this.o,a),0>=this.F||(a=oX(this.o),a.Cd("opacity","0"),JW(this,a,0),pV(this.o).experiments.o("use_async_run_for_execution_in_ima")?g.$f(this.mH,this):g.rE((0,g.B)(this.mH,this),0)))};
1097g.h.mH=function(){var a=oX(this.o);a.Cd("transition","opacity "+String(this.F)+"ms linear");a.Cd("opacity","1");bta(this,a,this.F,1)};
1098g.h.nH=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-(0,g.H)());d=-1*a.getVolume()*c/d;d=Math.max(0,a.getVolume()+d);JW(this,a,d);this.A=0<d?FW((0,g.B)(this.nH,this,a,b,c),c):window.NaN}};
1099g.h.lH=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-(0,g.H)()),e=this.o.app.L.getVolume()/100;d=(e-a.getVolume())*c/d;d=Math.min(e,a.getVolume()+d);JW(this,a,d);this.A=d<e?FW((0,g.B)(this.lH,this,a,b,c),c):window.NaN}};
1100g.h.X=function(){this.vo();this.o.unsubscribe("beginseeking",this.vo,this);IW.fa.X.call(this)};g.C(KW,IW);g.h=KW.prototype;g.h.YF=g.A;g.h.OF=function(a,b){return b};
1101g.h.NF=function(a,b){return b};
1102g.h.Py=g.A;g.h.oH=g.A;g.h.pH=g.A;g.h.X=g.A;g.C(LW,g.L);LW.prototype.A=function(){if(this.C){var a=this.o.o;if(null!=a&&(a=a.o,!(0>=a))){var b=this.o.player.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;g.Gb(this.F.B,function(a){a.Ob();if(a.isVisible&&!(0>=NW(this,a))){var f=a.getId();f=this.F.D[f];if(NW(this,a)>b){var k=!OW(this,a);k!=f.visible&&(f.visible=k,c.push(f));k||(f=NW(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
11030<c.length&&QW(this.o,c,1);if(d){var f=0;0<this.B&&(f=(0,g.H)()/1E3-this.B);cta(this,a-f-e+2)}else MW(this)}}};
1104LW.prototype.X=function(){MW(this);this.o.unsubscribe("endseeking",this.A,this);LW.fa.X.call(this)};g.C(PW,g.L);g.h=PW.prototype;g.h.Dk=function(a){a.unsubscribe("adBreakComplete",this.Dk,this);a.unsubscribe("adCompanionInitialized",this.Xv,this);pV(this.A).experiments.o("use_async_run_for_execution_in_ima")?g.$f((0,g.B)(this.ED,this,a)):this.O=g.rE((0,g.B)(this.ED,this,a),0)};
1105g.h.Xv=function(a,b){g.kf(this.K);this.K=new BW(this.A,b)};
1106g.h.ED=function(a){var b=fta(this,a),c=b.previous;b=b.next;this.O=window.NaN;var d=!1;switch(a.Vb.o){case 5:var e=0x7ffffffffffff;d=!0;break;case 3:e=0x8000000000000;break;default:e=b&&g.sa(b.Vb.A)?uW(b)-1:0x7ffffffffffff}0==a.Ha&&(this.A.He("bl"),tW(a)||this.A.He("fb"));"loaded"!=a.C||0==a.Ha&&tW(a)&&b&&1E3*this.A.player.getCurrentTime()>=uW(b)?(c&&c.Ob()&&!d&&(b=e,e=uW(c),e>b&&(b=e),hta(this,c),gta(this,c,b)),this.ti(a)):(this.B[a.getId()]=a,gta(this,a,e),vW(this.A));g.Mb(this.B)==this.Db.length&&
1107this.J.A();dta(this)};
1108g.h.ti=function(a){a.unsubscribe("adBreakComplete",this.Dk,this);a.unsubscribe("adBreakComplete",this.an,this);this.o&&a==this.o&&(this.o=null,null!=this.K&&a.A&&(this.K.o=!0));hta(this,a);g.Ra(this.Db,a);delete this.B[a.getId()];g.kf(a)};
1109g.h.Kj=function(a){return this.B[a]};
1110g.h.an=function(a){a.unsubscribe("adBreakComplete",this.an,this);if(a.A){if(!nW(a)&&a.G){var b=this.A;tX(b);qX(b);this.C.pH(a)}else tW(a)&&!a.G?(b=this.A,tX(b),qX(b)):tX(this.A);this.ti(a);a=this.J;a.C&&(b=a.o.o)&&0<b.o&&(a.B=(0,g.H)()/1E3,a.A());for(;!g.Ma(this.M);)ita(this,this.M.shift())}else a.isVisible||this.ti(a)};
1111g.h.X=function(){g.tE(this.O);g.kf(this.C);g.kf(this.J);(0,g.D)(this.Db,this.ti,this);g.kf(this.K);PW.fa.X.call(this)};g.C(SW,PW);g.h=SW.prototype;g.h.Kj=function(a){a=SW.fa.Kj.call(this,a);if(!a)return null;if(!a.J)return a;var b=null;if(this.F.length){var c=b=this.F.shift();c.Vb=a.Vb;c.Ha=a.getId()}b&&"loaded"==b.C?(a.unsubscribe("adBreakComplete",this.Dk,this),this.B[a.getId()]=b,this.Db[this.Db.indexOf(a)]=b,g.kf(a)):(this.Ik(),b&&(g.kf(b),b=null,this.ti(a)));b&&!b.A&&this.Ik();return b};
1112g.h.Dk=function(a){!mW(a)&&(2!=a.Vb.o||10!=kV(a.Vb))||"loaded"==a.C&&a.A||this.Ik();SW.fa.Dk.call(this,a)};
1113g.h.an=function(a){a.A&&10<this.U?(TW(this),this.Z=g.rE((0,g.B)(this.Ik,this),1E3*(this.U-10))):this.Ik();SW.fa.an.call(this,a)};
1114g.h.Ik=function(){if(!this.ka())for(TW(this);this.H.length&&this.L.length+this.F.length<this.ba;){var a=this.H.shift();a.subscribe("adBreakComplete",this.FD,this);this.L.push(a);zW(a)}};
1115g.h.FD=function(a){a.unsubscribe("adBreakComplete",this.FD,this);g.Ra(this.L,a);this.F.push(a)};
1116g.h.X=function(){TW(this);g.D(this.L,g.kf);g.D(this.F,g.kf);g.D(this.H,g.kf);SW.fa.X.call(this)};g.C(UW,PW);UW.prototype.getVideoData=function(){return null};
1117UW.prototype.da=function(a){"loaded"==a.C&&this.H.push(a);a.unsubscribe("adBreakComplete",this.da,this)};
1118UW.prototype.U=function(){if(null!=this.o&&0<this.H.length){var a=this.H.shift();delete this.B[kV(a.Vb)];var b=Math.floor((0,g.H)()/1E3)-this.ga;this.ga=null;a.unsubscribe("adBreakComplete",this.U,this);this.ti(a);this.o=null}0<this.L?(this.L--,jta(this)):(a=this.Z,tX(a),qX(a),(0,window.isFinite)(b)&&(this.ba?jT(this.F,window.Infinity,!0):jT(this.F,this.F.getCurrentTime()+b,!0)))};g.C(VW,g.L);VW.prototype.G=function(){this.o||(this.o=lta(this.C.Se()));QW(this.A,g.Ob(this.o),1)};
1119VW.prototype.B=function(){if(this.o){var a=this.A.player.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;(0,g.D)(this.C.Se(),function(e){var f=this.o[e];if(f){var k=this.C.Kj(e);k&&k.Fc>a?(e=!this.ge.A(k),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=k.Fc-a,f<d&&(d=f,c=k))):!k||k.rb()?(g.jU(this.A.player,[f],void 0),delete this.o[e]):!f.visible&&k&&(f.visible=!0,b.push(f))}},this);
11200<b.length&&QW(this.A,b,1);var e=this.A.o;if(null!=e&&(e=e.o,0>=e))if(c){var f=0;0<this.F&&(f=(0,g.H)()/1E3-this.F);mta(this,e-f-d+2)}else WW(this)}};
1121VW.prototype.X=function(){this.A.unsubscribe("endseeking",this.B,this);WW(this);VW.fa.X.call(this)};g.C(XW,g.L);g.h=XW.prototype;g.h.vA=function(){return 4};
1122g.h.dr=function(a){return a};
1123g.h.SE=function(){return!1};
1124g.h.Qy=g.A;g.h.Dn=g.A;g.h.qH=g.A;g.h.rH=g.A;g.h.sH=g.A;g.C(YW,g.L);g.h=YW.prototype;g.h.vA=function(){return 4-this.C/1E3};
1125g.h.dr=function(a){return Rb(this.B,1E3*a)?this.B[1E3*a]/1E3:a};
1126g.h.SE=function(a){var b=!1,c={};(0,g.D)(g.Vd(a),(0,g.B)(function(a){var d;if(d=(d=a.getAttribute("timeOffset"))?nta(d):null)b=b||ota(a),c[d]=a},this));
1127if(!b||0==g.Mb(c))return!1;a=(0,g.J)(g.Pb(c),function(a){return(0,window.parseInt)(a,10)});
1128if(!rta(this,a))return!1;g.Gb(c,(0,g.B)(function(a,b){var c=(0,window.parseInt)(Tb(this.B,function(a){return a==b}),10);
1129c&&a.setAttribute("timeOffset",pta(c))},this));
1130return!0};
1131g.h.Qy=function(a){if(!(0>=this.K)){var b=[];(0,g.D)(a,(0,g.B)(function(a){if(Rb(this.B,1E3*a)){var c=new g.kQ(1E3*this.dr(a)+this.C,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.D[a]=c;b.push(c)}},this));
1132QW(this.o,b)}};
1133g.h.qH=function(a){if(Rb(this.B,1E3*a)){var b=oX(this.o);null!==b&&(a=Math.max(0,1E3*a-1E3*this.o.getCurrentTime(1)),b.Cd("transition","opacity "+String(a)+"ms linear"),b.Cd("opacity","0"),sta(this,b,a,0))}};
1134g.h.rH=function(a){ZW(this,1E3*a)&&(this.D[a]&&(g.jU(this.o.player,[this.D[a]],void 0),delete this.D[a]),this.Dn())};
1135g.h.yH=function(){g.X(g.ST(this.o.player),4)&&this.Dn()};
1136g.h.Dn=function(){var a=oX(this.o);null!==a&&(null!=this.A&&(g.tE(this.A),this.A=null),$W(this,a,this.o.app.L.getVolume()/100),a.Cd("transition",""),a.Cd("opacity","1"))};
1137g.h.sH=function(a){if(Rb(this.B,1E3*a)){var b=1E3*a;200>=1E3*this.o.getCurrentTime(1)-b&&(Dta(this.o,this.dr(a)+this.J/1E3),0>=this.F||(a=oX(this.o),null!==a&&(a.Cd("opacity","0"),$W(this,a,0),null!=this.A&&g.tE(this.A),this.A=FW((0,g.B)(this.rY,this),0))))}};
1138g.h.rY=function(){var a=oX(this.o);null!==a&&(a.Cd("transition","opacity "+String(this.F)+"ms linear"),a.Cd("opacity","1"),sta(this,a,this.F,1))};
1139g.h.xH=function(a,b,c){if(null!==this.A){var d=Math.max(1,b-(0,g.H)());d=-1*a.getVolume()*c/d;d=Math.max(0,a.getVolume()+d);$W(this,a,d);0<d?this.A=FW((0,g.B)(this.xH,this,a,b,c),c):this.A=null}};
1140g.h.wH=function(a,b,c){if(null!==this.A){var d=Math.max(1,b-(0,g.H)()),e=this.o.app.L.getVolume()/100;d=(e-a.getVolume())*c/d;d=Math.min(e,a.getVolume()+d);$W(this,a,d);d<e?this.A=FW((0,g.B)(this.wH,this,a,b,c),c):this.A=null}};
1141g.h.X=function(){this.Dn();this.o.unsubscribe("applicationplayerstatechange",this.yH,this);YW.fa.X.call(this)};g.C(aX,g.L);var yta={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,"ADSENSE-VIRAL":15,"YT:ADSENSE-VIRAL":15,"VIRAL-RESERVE":17,"YT:VIRAL-RESERVE":17};g.h=aX.prototype;
1142g.h.load=function(a){if(this.ob=this.o.ob){var b=this.o.o;this.F=b.applyFadeOnMidrolls?new YW(this.o):new XW;var c=Wra(this.o);c.A=uta(this,a);if(c.A){c.tp=this.o.F.H;c.ac.TSLA=Xra(this);c.ac.GET_MIDROLL_POSITION_IN_SEC=(0,g.B)(this.F.dr,this.F);c.ac.DESCRIPTION_URL="http://www.youtube.com/video/"+qV(this.o).videoId;if(a=Rsa(b).get(3)){var d="";a&2&&a&1?d="video"_3Aa&2@d="skippablevideo":a&1&&(d="standardvideo");a&4&&(d&&(d+="_"),d+="text_image_flash");c.B=d;if(b=b.wa)c.H=b}this.ob.W("adsManagerLoaded",
1143this.uH,!1,this);this.ob.W("adError",this.tH,!1,this);tD(this.ob,c,this);this.o.He("bd")}}};
1144g.h.uH=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:(0,g.B)(function(){return this.o.getCurrentTime(1)},this),
1145enumerable:!0});Object.defineProperty(b,"duration",{get:(0,g.B)(function(){return this.o.player.getVideoData().lengthSeconds},this),
1146enumerable:!0});try{var c=vta(this);this.A=lB(a,this.o.F,b,c)}catch(d){cX(this,d);return}if(this.ge=this.A.FF(b,this.o.o.o)){this.F.Qy(this.A.Se());this.G=new VW(this.o,this.A,this.ge);g.M(this,this.G);pV(this.o).experiments.o("use_async_run_for_execution_in_ima")?g.$f(this.G.G,this.G):g.rE((0,g.B)(this.G.G,this.G),0);g.La(this.A.Se(),0)||bX(this);this.D.W(this.A,"companionBackfill",(0,g.B)(this.oY,this));this.D.W(this.A,"prefetched",(0,g.B)(this.pR,this));this.D.W(this.A,"loaded",(0,g.B)(this.mY,
1147this));this.D.W(this.A,"adError",(0,g.B)(this.lY,this),!1);this.D.W(this.A,"start",(0,g.B)(this.nY,this));this.D.W(this.A,"complete",(0,g.B)(this.lR,this));this.D.W(this.A,"adNotify",(0,g.B)(this.bn,this));this.D.W(this.A,"discardAdNotify",(0,g.B)(this.Ek,this));this.D.W(this.A,"companionInitialized",(0,g.B)(this.pY,this));this.D.W(this.A,"contentPauseRequested",(0,g.B)(this.Rh,this));this.D.W(this.A,"contentResumeRequested",(0,g.B)(this.mg,this));this.D.W(this.A,"allAdsCompleted",g.A);this.K.R(this.o.player,
1148"applicationplayerstatechange",this.qY);try{this.A.init("normal"),this.A.start()}catch(d){this.A.destroy(),this.A=null,cX(this,d)}}}};
1149g.h.qY=function(){if(g.X(g.ST(this.o.player),16)||g.X(g.ST(this.o.player),32)){var a=this.A;null!=a.Wb&&(a=a.Wb,a.A.stop(),a.B=!1)}else a=this.A,null!=a.Wb&&rA(a.Wb)};
1150g.h.pY=function(a){if(a=a.o)g.kf(this.H),this.H=new BW(this.o,a)};
1151g.h.Rh=function(a){dX(this);if((this.B=a.Tb())&&this.B.Yb()){a=eX(this.B);var b=this.B.C.A;b=0==b?1:0<b?2:-1==b?3:0;this.C=new PV(a,this.o,this.A,this.B.isSkippable(),this.B.isBumper(),!0,void 0,b);wta(this,this.C);1!=b&&(a=pV(this.o).experiments.o("video_to_ad_use_gel"),KO("video_to_ad",["apbs"],void 0,a));a=this.o;a.K=!0;a.B||RW(a);this.F.rH(this.B.C.A);this.C.show()}};
1152g.h.mg=function(a){bX(this);if(this.o.getCurrentTime(1)<this.o.player.getVideoData().lengthSeconds){var b=this.o;tX(b);qX(b);this.B&&this.B.Yb()&&(this.F.sH(this.B.C.A),null!=this.H&&(this.H.o=!0))}a=a.Tb();(b=qD(this.A))&&b.L&&b.rb()?this.B=null:!a&&this.C instanceof bW||dX(this);var c=!0;if(a&&a!==this.B&&!a.Yb()){if(b&&b.L&&!b.rb()){b=this.G;null!=b.o[0]&&(c=b.o[0],delete b.o[0],b.o[0]=new g.kQ(1E4,c.end,{id:"10",visible:!0}),c.visible=!1,QW(b.A,[c,b.o[0]],1),QW(b.A,[b.o[0]]));this.B=a;return}c=
1153Ts(a);b=eX(a);oV(c,"blockAllAds")?(this.A.Rk(),this.C=new dW(this.o,this.A,1,!0),c=!1):oV(c,"hideMaster")&&14!=b?(this.C=new dW(this.o,this.A,0,!0),c=!1):(c=this.A,14==b?(this.C=new jW(this.o,c),5!=qD(this.A).Xe()&&xta(this,a)):this.C=new XV(b,this.o,c,!0),this.C.show(),c=!0)}this.B&&this.B.Yb()&&Ata(this.o);if(this.B&&this.B.Yb()){b=this.ge;if(0<b.B||Mn().o("enable_tsla_without_freq_cap_for_living_room")||Mn().o("enable_html5_midroll_tsla_update"))b.o=(0,g.H)()/1E3;b=this.G;b.F=(0,g.H)()/1E3;b.B()}else a&&
1154a!==this.B&&!a.Yb()&&c&&(b=this.G,b.F=(0,g.H)()/1E3,b.B());this.G.G();this.B=a};
1155g.h.nY=function(a){(a=a.Tb())&&this.C&&(a=eX(a),this.C.adSystem=a)};
1156g.h.lR=function(a){a.Tb().Yb()||this.B!==a.Tb()||(dX(this),this.B=null)};
1157g.h.bn=function(a){null!=a.o&&void 0!=a.o&&(a=a.o.adBreakTime,null!=a&&void 0!=a&&this.o.player.V("adnotify",a))};
1158g.h.Ek=function(){this.o.player.V("discardadnotify")};
1159g.h.pR=function(a){var b=a.Tb();if(null!=b){var c=a.o.adBreakTime;this.M[c]=b;this.L||(this.o.He("bl"),0==c&&a.Tb().Yb()||this.o.He("fb"),this.L=!0)}};
1160g.h.mY=function(a){null!=a.Tb()&&(a.Tb().Yb()&&this.o.He("bs"),a.Tb().C.C||a.Tb().Yb()||bX(this))};
1161g.h.lY=function(a){cX(this,a.getError())};
1162g.h.tH=function(a){var b=a.getError();"adLoadError"==b.Xb()&&a.o===this&&cX(this,b)};
1163g.h.oY=function(a){xta(this,a&&a.Tb())};
1164g.h.X=function(){dX(this);this.ob&&(this.ob.Ia("adsManagerLoaded",this.uH,!1,this),this.ob.Ia("adError",this.tH,!1,this));g.qn(this.O);g.qn(this.D);g.ZF(this.K);this.J=!1;this.A&&(this.A.destroy(),this.A=null);g.kf(this.F);g.kf(this.H);aX.fa.X.call(this)};
1165g.h.vH=function(a,b,c,d){if(3==b||19==c||2==c)a&&(d.break_type=a.Xe(),d.sst=a.Fc,d.sidx=0),xW(this.o,c,d)};g.C(fX,g.yU);g.h=fX.prototype;g.h.kv=function(){return-1};
1166g.h.create=function(){this.created||(g.S(this.player.getRootNode(),this.xe+"-created"),this.J.R(this.player,"crn_"+this.xe,this.Zv),this.J.R(this.player,"crx_"+this.xe,this.aw),this.created=!0)};
1167g.h.destroy=function(){g.Nq(this.player.getRootNode(),this.xe+"-created");g.ZF(this.J);this.created=!1;this.V("destroyed",this.xe)};
1168g.h.Zv=function(){};
1169g.h.aw=function(){};
1170g.h.lv=function(){return null};
1171g.h.X=function(){this.created&&this.destroy();fX.fa.X.call(this)};g.t(gX,g.L);g.h=gX.prototype;g.h.bind=function(a){var b=a.button&&a.button.buttonRenderer&&a.button.buttonRenderer.navigationEndpoint&&a.button.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint;(b=b&&b.dialog&&b.dialog.adInfoDialogRenderer)?(a.hoverText?(a=dra(a.hoverText),Sd(this.o,a,0)):this.o=null,this.B.bind(b)):g.lE(Error("adInfoDialogRenderer is missing in AdHoverTextButtonRenderer"))};
1172g.h.na=function(){return this.A};
1173g.h.Qt=function(){this.o&&g.N(this.o,!1)};
1174g.h.qO=function(){this.B.o.o.A||this.o&&g.N(this.o,!0)};
1175g.h.pO=function(){this.B.show();this.Qt()};g.t(hX,g.W);hX.prototype.bn=function(a){this.F=-1==a?this.B.getDuration():a;this.C||(this.C=this.R(this.B,"progresssync",this.G));a=(a=this.B.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.sH();b&&(a={clientScreenNonce:b,adMediaTimeSec:this.F,timeToAdBreakSec:Math.ceil(this.F-this.B.getCurrentTime()),clientPlaybackNonce:a},WG("adNotify",a));this.G();this.D.show()};
1176hX.prototype.Ek=function(){this.C&&(this.Ia(this.C),this.C=null);this.D.hide()};
1177hX.prototype.G=function(){var a=this.B.getCurrentTime();a=Math.ceil(this.F-a);0<a?this.Mb(g.PU("\u0427\u0435\u0440\u0435\u0437 $X_SECONDS\u00a0\u0441\u0435\u043a. \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430",{X_SECONDS:String(a)})):this.D.hide()};g.C(jX,fX);jX.B=10;jX.A=1E3;jX.C="yt.www.watch.ads.addInstreamCompanionWtaUi";jX.o="livead";g.h=jX.prototype;
1178g.h.create=function(){jX.fa.create.call(this);this.M=!1;this.G.R(this.player,"beginseeking",(0,g.B)(this.V,this,"beginseeking"));this.G.R(this.player,"endseeking",(0,g.B)(this.V,this,"endseeking"));this.G.R(this.player,"resize",(0,g.B)(this.V,this,"resize"));this.G.R(this.player,"presentingplayerstatechange",(0,g.B)(this.V,this,"presentingplayerstatechange"));this.G.R(this.player,"webglsettingschanged",(0,g.B)(this.V,this,"webglsettingschanged"));this.subscribe("presentingplayerstatechange",this.uX,
1179this);if(iX(this)){var a=hI(this.app.wa);a.addEventListener("updateKevlarOrC3Companion",pra);a.addEventListener("onPlaShelfInfoCardsReady",rra);window.addEventListener("yt-navigate-start",sra)}this.He("i");a=this.player.getVideoData().sc||{};this.o=new Zsa(pV(this),a);this.C=new kta(this,this.player);this.O=!1;if(this.ob)this.ob.o.C.C=Ko();else{a=this.o.M?void 0:ksa(this.D);var b=new gQ(this.app,2);this.F=new hB(EV(this.D),a,hI(b),(0,g.B)(this.PK,this));this.F.setSize(-1,-1);this.ob=new sD(this.F)}if(this.o.vmap&&
1180!this.o.aa){this.B=new aX(this);try{this.B.load(this.o.vmap)}catch(c){g.lE(c),this.B.dispose(),this.B=null,Cta(this,Vsa(new Tsa(this)))}}else Cta(this,Vsa(new Tsa(this)));this.C&&(this.H=kX(this.app),this.H.subscribe("cuepointupdated",this.WD,this),a=nX(this),null!=a&&(a.F=g.WT(this.app)),a={},a.allowed=this.C.A,zta(this,{},a),this.M=!0)};
1181g.h.destroy=function(){this.K&&tX(this);this.app.o.experiments.o("disable_new_pause_state3")||g.kU(this.player,this.xe,void 0);Bta(this);g.lf(this.A,this.aa,this.B);this.aa=this.A=null;this.H.unsubscribe("cuepointupdated",this.WD,this);this.C=this.o=this.B=this.H=null;xV=wV=vV=!1;zV();this.app.o.experiments.o("ima_kevlar_clear_companion_on_dispose")&&iX(this)&&mX(this,"updateKevlarOrC3Companion",{});this.created&&jX.fa.destroy.call(this);if(iX(this)){var a=hI(this.app.wa);a.removeEventListener("updateKevlarOrC3Companion",
1182pra);a.removeEventListener("onPlaShelfInfoCardsReady",rra);window.removeEventListener("yt-navigate-start",sra);QU=null}};
1183g.h.isFullscreen=function(){return this.player.isFullscreen()||this.o.D};
1184g.h.lv=function(){if(this.C){var a=this.C;var b={allowed:a.A};a.o.excludedAds&&(b.ex_ad=a.o.excludedAds);a.B&&(b.at=a.B);a=b}else a=jX.fa.lv.call(this);return a};
1185g.h.getRootNode=function(){return this.player.getRootNode()};
1186g.h.getVideoData=function(){return this.H};
1187g.h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
1188g.h.kv=function(){return this.L};
1189g.h.Zv=function(a){jX.fa.Zv.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.Kj(b);if(d&&!OW(c.J,d)&&(c=c.C,d.A)){var e=oX(c.o);d=Math.max(0,uW(d)+c.C+c.B-1E3*c.o.getCurrentTime(1));e.Cd("transition","opacity "+String(d)+"ms linear");e.Cd("opacity","0");bta(c,e,d,0)}}else ita(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.M[b])&&c.Yb()&&d.F.qH(b)):0>b&&(b=this.ob.o,d=new Dn("contentComplete"),
1190b.dispatchEvent(d),d.A&&(On(Ln(),420706009)||b.C.clear(),null!=b.A&&(d=b.A.zi(),null!=d&&zB(d,b.C.o)))));if("livead"===a.getId()&&null!=nX(this)){b=nX(this);for(a=Math.floor(a.start/1E3);g.u(b.B[a]);)a++;d=b.ha++;c=0==a?new jV(1):new jV(2,a);e=b.Z;var f=Ssa(b.Z.o,c.o);d=new sW(e,d,c,f,!1);b.B[a]=d;d.subscribe("adBreakComplete",b.da,b);zW(d)}};
1191g.h.aw=function(a){jX.fa.aw.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.B[b])&&c.o==b&&!b.A&&b.isVisible&&b.H&&b.o instanceof XV&&b.o.Cc("fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.F.Dn();"livead"===a.getId()&&null!=nX(this)&&1E3*this.getCurrentTime(1)>=a.start&&(g.jU(this.player,[a],1),jta(nX(this)))};
1192g.h.He=function(a){var b=a;"nl"==a&&(a=this.C,a.D++,b=a.D.toString());this.ba[b]=(0,g.H)();"bs"!=b&&"fb"!=b||zta(this,this.ba,this.U)};
1193g.h.isWidescreen=function(){return this.app.isWidescreen()};
1194g.h.WD=function(a){var b=nX(this);if(null!=b&&null!=b.F){var c=nX(this).F.getCurrentTime();(0,g.D)(a,function(a){this.app.o.experiments.o("check_for_cuepoint_start_on_ima_livestreams")?0!=c&&a&&"start"==a.event&&Fta(this,a,c):0!=c&&a.o>c&&Fta(this,a,c)},this)}};
1195g.h.KC=function(a,b){switch(a){case "addata":if(!this.create||!this.M)return{};var c=this.o;return{adTag:c.adTag,adTest:c.Ka,forceAdType:c.forceAdType,isAfvSkippableInstreamEnabled:c.O,isAfvStandardInstreamEnabled:c.U,isBlazer:c.A,isDoubleClickEnabled:c.ba,isForcedAd:c.aa,isFreeWheelEnabled:c.da,isHouseBrandPlayer:c.hc,isLeanback:c.D,isShortform:c.Nb,tagForChildDirected:c.tagForChildDirected};case "adstate":return this.kv();case "midrollfreqcap":if(this.B)return c=this.o.o,null!=c?c:0;c=this.A instanceof
1196SW?this.A:null;return null!=c?c.U:0;case "breakscount":return this.B?(c=this.B,c=null!=c.A?c.A.Se().length:0):c=this.A?this.A.Db.length:0,c;case "displaystate":return c=null,this.A&&this.A.o&&(c=this.A.o.o),{adFormat:c instanceof CV?c.adType:!1,adSkipped:c instanceof PV?c.F:!1,hasVideoStarted:c instanceof PV?c.G:!1,skippable:c instanceof PV?c.U:!1};case "getContentVideoData":return c=qV(this),{adModule:c.adModule,partnerTrackingToken:c.hn,title:c.title,videoId:c.videoId};case "loadedadbreaks":if(this.A){c=
1197this.A.B;var d=[];for(e in c)c.hasOwnProperty(e)&&d.push({isInterruptive:c[Number(e)].A});return d}return 0;case "isExternalShelfAllowedFor":if("object"!=typeof b)return!1;c=b.playerResponse;if(!c)return!1;c=c.playerAds||[];for(d=0;d<c.length;d++){var e=c[d];if(e.playerLegacyDesktopWatchAdsRenderer&&e.playerLegacyDesktopWatchAdsRenderer.playerAdParams&&e.playerLegacyDesktopWatchAdsRenderer.playerAdParams.pla)return!1}return!0}};
1198g.h.MP=function(){return"addata adstate breakscount displaystate getContentVideoData isExternalShelfAllowedFor loadedadbreaks midrollfreqcap".split(" ")};
1199g.h.Dc=function(){return!1};
1200g.h.uX=function(a){if(g.X(a.state,128)){var b=this.player;if(null!=g.tU(b)&&2==b.Sa()){var c=a.state,d=a="",e="";c.o&&c.o.errorCode&&(a=c.o.errorCode);c=c.A;g.nU(b)&&(d=g.nU(b).Ce(),null!=g.nU(b).Eb()&&(e=g.nU(b).Eb()));this.Z="Error code: "+a+"; s:"+c+"; "+("rs:"+d+"; ec:"+e)}}};
1201g.h.PK=function(a){if(this.ka())return"";if(!a)return this.Z;a=this.player;if(null==g.tU(a)||2!=a.Sa())return"";var b=g.ST(a,2).A,c="",d="";g.nU(a)&&(c=g.nU(a).Ce(),null!=g.nU(a).Eb()&&(d=g.nU(a).Eb()));return"s:"+b+"; rs:"+c+"; ec:"+d};g.t(wX,g.L);g.h=wX.prototype;g.h.Ez=function(){if(!this.A){var a=this.Ez;if("lb3"==g.Y(this.o).playerStyle)var b=!1;else b=this.o.getVideoData(),b=b.to||b.captionTracks.length||b.ra&&(null!=b.ra.o.en||Vka(b.ra))?!0:!1;(a=yX(this,"captions",a,b))&&!this.A&&(this.A=a,a.kC()&&a.load(),this.o.ya("onApiChange"))}};
1202g.h.Os=function(){this.K=this.K||yX(this,"endscreen",this.Os,g.Ita(this))};
1203g.h.Jz=function(){this.D=yX(this,"webgl",this.Jz,Kta(this))};
1204g.h.Lz=function(){(this.O=this.O||yX(this,"ypc",this.Lz,g.PT(this)))&&this.O.load()};
1205g.h.Kz=function(){this.aa=this.aa||yX(this,"ypc_clickwrap",this.Kz,g.lP(this.o.getVideoData(),"ypc_clickwrap_module"))};
1206g.h.Dz=function(){this.ba=this.ba||yX(this,"spacecast",this.Dz,this.o.getVideoData().spacecastModule)};
1207g.h.Bz=function(){var a=!this.L;this.L=this.L||yX(this,"heartbeat",this.Bz,g.lP(this.o.getVideoData(),"ypc_license_checker_module"));a&&this.L&&this.o.V("offlineslatestatechange")};
1208g.h.Ms=function(){if(!this.B){var a=this.Ms;var b=g.Y(this.o);if("3"==b.C)b=!1;else if(b.F.isEmpty()&&"annotation-editor"!=b.playerStyle&&"live-dashboard"!=b.playerStyle){var c=this.o.getVideoData();b=b.experiments.o("disable_new_iv_module_create_logic")?g.lP(c,"iv3_module"):!!c.Of}else b=!0;if(this.B=yX(this,"annotations_module",a,b)){a=this.B;for(var d in this.oa)b=d,a.subscribe(b,this.oa[b]);this.o.ya("onApiChange")}}};
1209g.h.Az=function(){this.H=this.H||yX(this,"fresca",this.Az,g.lP(this.o.getVideoData(),"fresca_module"))};
1210g.h.Ps=function(){this.M||(this.M=yX(this,"remote",this.Ps,g.Y(this.o).Bb))&&this.M.create()};
1211g.h.Fz=function(){this.F||(this.F=yX(this,"unplugged",this.Fz,g.lN(g.Y(this.o))))&&this.F.init()};
1212g.h.Gz=function(){Lta(this);!this.J&&(this.J=yX(this,"ux",this.Gz,g.Y(this.o).ia))&&(this.J.init(),this.o.ya("onApiChange"))};
1213g.h.Cz=function(){this.ga||(this.ga=yX(this,"miniplayer",this.Cz,g.Y(this.o).useMiniplayerUi))&&this.ga.init()};
1214g.h.Ns=function(){if(!this.G){var a=this.Ns;var b=g.Y(this.o);"3"==b.C?b=!1:"creator-endscreen-editor"==b.playerStyle?b=!0:(b=this.o.getVideoData(),b=!!b&&!!g.Fma(b));(this.G=yX(this,"creatorendscreen",a,b))&&this.o.ya("onApiChange")}};
1215g.h.Mz=function(){(this.Z=this.Z||yX(this,"yto",this.Mz,!!this.o.getVideoData().Yc.includes("yto")))&&this.Z.init()};
1216g.h.Iz=function(){(this.U=yX(this,"visualizer",this.Iz,g.Mta(this)))&&this.U.bO()};
1217g.h.X=function(){g.L.prototype.X.call(this);zX(this,1,!0)};g.t(AX,g.$F);g.h=AX.prototype;g.h.gQ=function(a){a=OF(a);if(!pd(a,this.C)){var b=2;this.F&&(b|=8);this.C=a;this.kc(b,!0)}};
1218g.h.cR=function(){this.F&&this.kc(8,!0);this.kc(2,!1)};
1219g.h.Cv=function(a){var b=OF(a);pd(b,this.C)||(this.C=b,(a=g.LF(a))&&this.M(a)&&(this.kc(4,!0),this.Y.Ia(this.B),this.B=this.Y.R(this.A,"mouseover",this.WC),this.K=this.Y.R(this.A,"mouseout",this.WC)))};
1220g.h.WC=function(a){a=NF(a);a&&this.M(a)||(this.C=new g.od(window.NaN,window.NaN),Ota(this))};
1221g.h.WM=function(){this.kc(1,!0)};
1222g.h.BK=function(a){a=g.LF(a);a instanceof window.Element&&!(0<a.tabIndex)||this.kc(1,!0)};
1223g.h.VC=function(){this.F=!0;this.Y.Ia(this.D);this.D=this.Y.R(window.document,"mouseup",this.hQ)};
1224g.h.hQ=function(){this.F=!1;this.kc(8,!1);this.Y.Ia(this.D);this.D=this.Y.R(this.A,"mousedown",this.VC)};
1225g.h.XC=function(a){if(a=(a=a.changedTouches)&&a[0])this.O=a.identifier,this.Y.Ia(this.G),this.G=this.Y.R(this.A,"touchend",this.iQ,void 0,!0),this.kc(1024,!0)};
1226g.h.iQ=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.O){var d=c;break}}d&&(this.Y.Ia(this.G),this.G=this.Y.R(this.A,"touchstart",this.XC,void 0,!0),this.kc(1024,!1))};
1227g.h.kc=function(a,b){var c=!this.o;b?(this.o|=a,a&1&&this.H.start(),a&2&&this.J.start()):(this.o&=~a,a&1&&this.H.stop(),a&2&&this.J.stop(),a&512&&this.L.stop());this.o&512&&!(this.o&128)&&g.Du(this.L,this.U);var d=!this.o;c!=d&&this.V("autohideupdate",d)};
1228g.h.toString=function(){return g.$F.prototype.toString.call(this)};g.t(BX,g.W);g.h=BX.prototype;g.h.show=function(){var a=this;this.A||(this.F.R(this.B,"videodatachange",function(){return g.Du(a.C)}),this.F.R(this.B,"videoplayerreset",function(){return g.Du(a.C)}));
1229g.W.prototype.show.call(this)};
1230g.h.hide=function(){this.F&&g.ZF(this.F);g.W.prototype.hide.call(this)};
1231g.h.sQ=function(a){var b=g.Y(this.B);b.experiments.o("disable_new_pause_state3")&&sN(b)&&(a=g.NP(a.state)&&!g.NP(a.o)||VT(this.B)&&g.X(a.state,2),g.wh(this.element,"transition-delay",a?"2s":""));g.Du(this.C)};
1232g.h.cW=function(){g.Du(this.C)};
1233g.h.rQ=function(){this.D.stop();this.hide();g.Du(this.C)};
1234g.h.bD=function(){var a=g.ST(this.B),b=!1;if(3==this.B.Sa()&&(a.rb()||g.X(a,4)))var c=!0;else(c=g.NT(this.B).O)&&c.WW()?c=!0:(c=g.Y(this.B),c=g.X(a,2)&&QT(this.B)&&c.Ka?!0:!1);c?(c=!0,window.document.activeElement==this.G&&this.B.getRootNode().focus(),this.G.style.display="none"):(this.G.style.display="",g.NP(a)&&2!=this.B.Sa()?c=!0:(b=!g.Y(this.B).experiments.o("disable_new_pause_state3"),c=!(!g.X(a,2)||QT(this.B)||b&&g.D_(this.B.app))||g.X(a,1024)?!0:!1),b=g.Y(this.B),b=b.experiments.o("web_player_embed_duration")&&
1235b.o&&!b.pd);c?(this.D.show(),a=this.B.getVideoData(),this.wX(this.B.ig(),a),g.U(this.element,"ytp-cued-thumbnail-overlay-show-duration",b&&0<a.lengthSeconds),a=g.ZU(a.lengthSeconds),this.updateValue("duration",a)):(this.D.hide(),g.X(a,1)||this.D.stop())};
1236g.h.wX=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(!g.Y(this.B).Pn){b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.YO&&!c.videoId)){var d=g.TT(this.B).Va();var e=g.tN(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.hd("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.hd("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.hd("sddefault.jpg")||c.hd("hqdefault.jpg")||c.hd("mqdefault.jpg"))break;if(d=c.hd("default.jpg"))break}this.H.style.backgroundImage=
1237d?"url("+d+")":""}};g.t(DX,g.L);DX.prototype.start=function(a,b,c){this.o=a;this.H=b;this.F=c;this.G=g.zG();this.B()};
1238DX.prototype.B=function(){var a=g.zG()-this.G;var b=this.C;a=vja(b,a/this.F);if(0==a)b=b.G;else if(1==a)b=b.H;else{var c=md(b.G,b.D,a),d=md(b.D,b.F,a);b=md(b.F,b.H,a);c=md(c,d,a);d=md(d,b,a);b=md(c,d,a)}b=g.kd(b,0,1);this.D((this.H-this.o)*b+this.o);1>b&&this.A.start()};g.t(EX,g.W);g.h=EX.prototype;g.h.hide=function(){this.U=!0;g.W.prototype.hide.call(this)};
1239g.h.show=function(){this.U=!1;g.W.prototype.show.call(this)};
1240g.h.isHidden=function(){return this.U};
1241g.h.GQ=function(){Qta(this,this.F-this.H)};
1242g.h.HQ=function(){Qta(this,this.F+this.H)};
1243g.h.IQ=function(a,b){var c=this.C[a],d=c.Hd;if(g.CW(b,this.B,this.da,d||void 0)){var e=c.Qa().videoId;c=c.getPlaylistId();g.$_(this.B.app,e,d,c,void 0,void 0,void 0)}};
1244g.h.hD=function(){var a=this,b=this.B.getVideoData(),c=g.Y(this.B);this.da=b.isDni?!1:c.o;g.U(this.element,"ytp-controls-on-error",VT(this.B));if(b.suggestions){var d=(0,g.Ud)(b.suggestions,function(a){return a&&!a.list});
1245this.C=(0,g.J)(d,function(b){b=g.CX(c,b);g.M(a,b);return b})}else this.C.length=0;
1246Sta(this);b.isDni?this.M.update({title:g.PU('\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:b.author})}):this.M.update({title:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u044d\u0442\u0438 \u0440\u043e\u043b\u0438\u043a\u0438"})};
1247g.h.iD=function(a){this.J.element.scrollLeft=-a};g.t(GX,g.W);GX.prototype.show=function(){g.W.prototype.show.call(this);this.J()};
1248GX.prototype.J=function(){var a=1-1/1.5;this.D=(this.D+this.M)%(this.width*a);this.F=(this.F+this.L)%(this.height*a);this.C.drawImage(this.K,-1*this.D,-1*this.F);this.C.fillRect(0,this.G,this.width,75);this.G=(this.G+75+7)%this.height-75;this.B.isActive()||g.Du(this.H)};
1249GX.prototype.hide=function(){this.B.stop();this.H.stop();g.W.prototype.hide.call(this)};g.t(HX,g.W);HX.prototype.show=function(){g.W.prototype.show.call(this);IX(this,function(a){a.show()});
1250this.F&&Xta(this,g.TT(this.B).Va())};
1251HX.prototype.hide=function(){g.W.prototype.hide.call(this);IX(this,function(a){a.hide()})};
1252HX.prototype.H=function(a){if(g.CW(a,this.B,!sN(g.Y(this.B)))){a={as3:!1,html5:!0,player:!0,cpn:this.B.getVideoData().clientPlaybackNonce};var b=this.B;b.ya("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&b.je()}};
1253var Yta=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.t(LX,g.XF);LX.prototype.D=function(){this.C();var a=g.Y(this.o),b=this.o.getVideoData(),c=[];a.G||c.push({src:b.hd("mqdefault.jpg"),sizes:"320x180"});this.A.metadata=new window.MediaMetadata({title:b.title,artist:b.author,artwork:c});a=VT(this.o);this.B.has("nexttrack")!=a&&(c=b=null,a&&(b=(0,g.B)(function(){this.o.vk()},this),c=(0,g.B)(function(){this.o.Mm()},this)),KX(this,"nexttrack",b),KX(this,"previoustrack",c))};
1254LX.prototype.C=function(){var a=g.ST(this.o);a=a.isError()?"none":MP(a)?"playing":"paused";this.A.playbackState=a};
1255LX.prototype.X=function(){this.A.playbackState="none";this.A.metadata=null;for(var a=g.q(this.B),b=a.next();!b.done;b=a.next())KX(this,b.value,null);g.XF.prototype.X.call(this)};g.t(MX,g.W);MX.prototype.U=function(a,b){$ta(this,b);this.G&&aua(this,this.G)};
1256MX.prototype.O=function(a){var b=this.L.getVideoData();this.C!=b.videoId&&$ta(this,b);this.B&&aua(this,a.state);this.G=a.state};
1257MX.prototype.M=function(){this.F.hide();this.C&&(this.D[this.C]=(this.D[this.C]||0)+((0,g.H)()-this.K));this.K=0};g.t(OX,g.W);OX.prototype.hide=function(){this.B.stop();this.D.style.display="none";g.W.prototype.hide.call(this)};
1258OX.prototype.F=function(a){NX(this,a.state)};
1259OX.prototype.G=function(){NX(this,g.ST(this.C))};
1260OX.prototype.H=function(){this.D.style.display="block"};g.t(QX,g.W);QX.prototype.D=function(){var a=g.WT(this.B.app);a&&a.A.Wu()};
1261QX.prototype.C=function(){var a=g.WT(this.B.app);g.ZH(this,!!a&&a.fd);this.updateValue("icon",this.B.Ui()?g.RU?{I:"div",ea:["ytp-icon","ytp-icon-airplay-on"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Za:!0,T:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
1262g.RU?{I:"div",ea:["ytp-icon","ytp-icon-airplay-off"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.t(RX,g.$H);RX.prototype.X=function(){this.B=null;g.$H.prototype.X.call(this)};g.t(SX,g.W);SX.prototype.J=function(a){g.X(a.state,32)?TX(this,this.B.Ve()):this.A&&(g.X(a.state,16)||g.X(a.state,1))||this.D.hide()};
1263SX.prototype.K=function(){var a=g.ST(this.B);(g.X(a,32)||g.X(a,16))&&UX(this)};
1264SX.prototype.G=function(){this.F=window.NaN;UX(this)};
1265SX.prototype.hide=function(){this.Zd&&TX(this,null);g.W.prototype.hide.call(this)};g.t(VX,g.W);VX.prototype.G=function(){g.rU(this.C,this.element);this.C.ya("onFullerscreenEduClicked")};
1266VX.prototype.B=function(){this.C.isFullscreen()?this.F?this.D.hide():this.D.show():this.hide()};g.t(WX,g.$H);g.h=WX.prototype;g.h.show=function(){var a=XX(this);g.$H.prototype.show.call(this);this.ia&&(this.K.R(window,"blur",this.Rb),this.K.R(window.document,"click",this.EQ));a||this.V("show",!0)};
1267g.h.hide=function(){var a=XX(this);g.$H.prototype.hide.call(this);dua(this);a&&this.V("show",!1)};
1268g.h.df=function(a,b){this.F=a;this.M.show();b?(this.L||(this.L=this.K.R(this.ha,"appresize",this.Sy)),this.Sy()):this.L&&(this.K.Ia(this.L),this.L=null);a&&(a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&g.Zd(a,window.document.activeElement)&&(this.da?this.Z.start():this.focus()))};
1269g.h.Sy=function(){g.oI(this.ha).qq(this.element,this.F)};
1270g.h.Rb=function(){var a=XX(this);dua(this);this.M.hide();this.da&&this.Z.stop();a&&this.V("show",!1)};
1271g.h.bi=function(a,b){XX(this)?this.Rb():this.df(a,b)};
1272g.h.EQ=function(a){var b=MF(a);b&&(g.Zd(this.element,b)||this.F&&g.Zd(this.F,b)||!g.$U(a))||this.Rb()};g.t(YX,g.W);g.h=YX.prototype;g.h.tQ=function(){g.Y(this.C).oa?this.C.je():this.B.bi(this.element,!0)};
1273g.h.cE=function(){eua(this);this.B.df(this.element,!0)};
1274g.h.uQ=function(){g.zF()==this.C.getRootNode()?this.F.start():(this.F.stop(),this.B&&this.B.hide())};
1275g.h.dK=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!=a>b){var e=c;c=d;d=e}a>c&&b>d&&this.cE()}};
1276g.h.cD=function(){g.ZH(this,$sa(this.C))};
1277g.h.GF=function(a){if(a){var b=g.RU?{I:"div",ea:["ytp-icon","ytp-icon-full-screen-close"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"g",N:"ytp-fullscreen-button-corner-2",P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",N:"ytp-fullscreen-button-corner-3",P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",N:"ytp-fullscreen-button-corner-0",P:[{I:"path",Za:!0,N:"ytp-svg-fill",
1278T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",N:"ytp-fullscreen-button-corner-1",P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=HW(this.C,"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430","f");window.document.activeElement==this.element&&this.C.getRootNode().focus()}else b=g.RU?{I:"div",ea:["ytp-icon","ytp-icon-full-screen"]}:
1279{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"g",N:"ytp-fullscreen-button-corner-0",P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",N:"ytp-fullscreen-button-corner-1",P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",N:"ytp-fullscreen-button-corner-2",P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",N:"ytp-fullscreen-button-corner-3",
1280P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=HW(this.C,"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d","f");this.updateValue("icon",b);this.updateValue("title",this.B?null:a);eY(this.G.Ub())};
1281g.h.X=function(){this.B||(this.D(),this.D=null);g.W.prototype.X.call(this)};g.t(ZX,g.W);ZX.prototype.C=function(){this.B.ya("onCollapseMiniplayer")};
1282ZX.prototype.D=function(){g.ZH(this,!this.B.isFullscreen())};g.t($X,WX);g.h=$X.prototype;g.h.show=function(){var a=this.A;WX.prototype.show.call(this);a||(this.D.R(this.B,"presentingplayerstatechange",this.Ev),this.D.R(this.B,"videodatachange",this.Ev),this.Ev())};
1283g.h.hide=function(){this.D&&(g.ZF(this.D),WX.prototype.hide.call(this))};
1284g.h.Ev=function(){var a=this.B.getVideoData(),b=a.li,c;for(c=0;c<b.length;c++){var d=this.C[c];d||(d=new g.W({I:"button",ea:["ytp-multicam-menu-item","ytp-button"],T:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},P:[{I:"div",N:"ytp-multicam-menu-item-title",ca:"{{cameraName}}"}]}),d.W("click",g.Ca(this.cS,c),this),d.xa(this.Ra),this.C[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=qN(g.Y(this.B),f,"default.jpg"));d.element.style.backgroundImage=
1285k?"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.C.length;)this.C.pop().dispose();c=g.ST(this.B);a=b.length||!a.Ob();MP(c)||g.X(c,4)||a||!XX(this)||this.bi()};
1286g.h.cS=function(a){this.B.getVideoData();var b=this.B;a=this.B.getVideoData().li[a];var c=g.WT(b.app,1).getVideoData(),d=b.getCurrentTime();a.id==c.videoId?g.WT(b.app)!=g.WT(b.app,1)&&(uU(b.app,1),c.La||b.jc(d)):(uU(b.app,4),U_(b.app,{videoId:a.id,title:c.title,start:c.La?null:d,multifeed_metadata_list:c.sc.multifeed_metadata_list},4))};
1287g.h.focus=function(){for(var a=this.B.getVideoData(),b=a.li,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.C[c].focus();break}};
1288g.h.X=function(){g.lf(this.C);WX.prototype.X.call(this)};g.t(aY,g.W);aY.prototype.H=function(a){this.C("newdata"==a)};
1289aY.prototype.C=function(a){var b=this.G.getVideoData(),c=b.li,d=g.ST(this.G);d=(MP(d)||g.X(d,4))&&0<c.length;g.ZH(this,d);a&&(this.D=!0);if(d){this.D&&g.Du(this.F);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.PU("\u041a\u0430\u043c\u0435\u0440\u0430\u00a0$CAMERA_INDEX\u00a0\u0438\u0437\u00a0$CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.hd("default.jpg")});eY(this.B)}else this.F.stop()};
1290aY.prototype.J=function(){tva(this.B,this.element,"\u041c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043a\u0430\u043c\u0435\u0440\u0443.");this.D=!1};g.t(bY,g.L);bY.prototype.A=function(){var a=g.zG()-this.C;a=a<this.o?a/this.o:1;this.D(vD(cya,a));1>a&&this.B.start()};
1291var cya=new uD(0,0,.4,0,.2,1,1,1),jua=/[0-9.-]+|[^0-9.-]+/g;g.t(dY,g.W);dY.prototype.Rc=function(a){this.D=300<=a.width;g.ZH(this,this.D);g.sU(this.B,this.element,this.D&&this.J)};
1292dY.prototype.ia=function(){g.Y(this.B).K?this.B.isMuted()?this.B.jg():this.B.mute():this.da.bi(this.element,!0);g.rU(this.B,this.element)};
1293dY.prototype.ha=function(a){kua(this,a.volume,a.muted)};
1294var nua=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],oua=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
129523.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.t(g.fY,g.W);g.fY.prototype.J=function(a){pua(this,a.state)};
1296g.fY.prototype.H=function(){g.U(this.element,"ytp-play-button-playlist",VT(this.C))};
1297g.fY.prototype.K=function(){MP(g.ST(this.C))?this.C.nd():this.C.Xc()};
1298g.fY.prototype.X=function(){this.B&&this.B();g.W.prototype.X.call(this)};g.t(g.hY,g.W);g.h=g.hY.prototype;g.h.Ak=function(){rua(this);this.J&&(this.Ia(this.J),this.J=null);this.H=this.B.getVideoData(1);if(this.D=this.B.ig())this.D.subscribe("shuffle",this.Ak,this),this.J=this.R(this.B,"progresssync",this.CQ);this.G=sua(this);gY(this);this.Rc(g.TT(this.B).Va())};
1299g.h.Rc=function(a){a=void 0===a?g.TT(this.B).Va():a;var b=VT(this.B)||this.C&&g.oU(this.B)||tua(this);g.ZH(this,b&&(this.C||400<=a.width))};
1300g.h.DQ=function(a){var b=!0;this.L?b=g.CW(a,this.B):g.PF(a);b&&(this.C&&5==this.B.Sa()?this.B.V("ytoprerollinternstitialnext"):this.C?this.B.vk(!0):this.G?this.B.jc(0):this.B.Mm(!0))};
1301g.h.CQ=function(){var a=sua(this);a!=this.G&&(this.G=a,gY(this))};
1302g.h.X=function(){this.F&&(this.F(),this.F=null);rua(this);g.W.prototype.X.call(this)};uua.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.D=d;this.o=b-c-d;this.position=g.kd(a,c,c+this.o);this.C=this.position-c;this.A=this.C/this.o};g.t(g.iY,g.$H);g.h=g.iY.prototype;g.h.FQ=function(a){if(!g.QF(a)){var b=!1;switch(g.RF(a)){case 36:this.C.jc(0);b=!0;break;case 35:this.C.jc(window.Infinity);b=!0;break;case 34:this.C.De(-60);b=!0;break;case 33:this.C.De(60);b=!0;break;case 38:this.C.De(5);b=!0;break;case 40:this.C.De(-5),b=!0}b&&g.PF(a)}};
1303g.h.fD=function(a,b){vua(this,b,"newdata"==a)};
1304g.h.rL=function(){this.fD("newdata",this.C.getVideoData())};
1305g.h.xL=function(){Aua(this.C.getVideoData())?g.ST(this.C).rb()&&mY(this,!0):mY(this,!1)};
1306g.h.sL=function(a){0<RP(a,64)||!Aua(this.C.getVideoData())?mY(this,!1):MP(a.state)&&0>RP(a,64)&&mY(this,!0);this.G&&!g.X(a.state,32)&&3!=this.C.Sa()&&this.G.cancel()};
1307g.h.sU=function(a,b,c){var d=g.Hh(this.element),e=nY(this).o,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;k&&(a=cV(this.B,Number(c.getAttribute("data-position")),0)*e+g.Hh(this.wc).x);this.Ca.x=a-d.x;this.Ca.y=b-d.y;c=nY(this);a=bV(this.B,c.A);d=f||g.ZU(this.Oa?a-this.B.o:a);b=this.pa;c=c.position+this.Ga;f=!!f;l=l?(0,window.parseInt)(l,10):0;b.ia||(3==b.C&&b.Ze(),1!=b.C&&(b.element.className="ytp-tooltip ytp-bottom",
1308b.C=1,b.O&&b.L.show(),b.D=b.Z.Ve(),b.D&&b.D.subscribe("l",b.bE,b)),b.update({text:d,title:""}),g.U(b.element,"ytp-text-detail",!!f),d=-1,b.D&&(d=dO(b.D,160*b.F),d=iO(b.D,d,a)),vva(b,d),uva(b,!!f,c,l));g.U(this.C.getRootNode(),"ytp-progress-bar-hover",!g.X(g.ST(this.C),64));yua(this)};
1309g.h.rU=function(){var a=this.pa;1==a.C&&a.Ze();g.Nq(this.C.getRootNode(),"ytp-progress-bar-hover")};
1310g.h.qU=function(a,b){this.D&&(this.D.dispose(),this.D=null);this.Sc=b;this.C.jc(bV(this.B,nY(this).A),!1);g.S(this.element,"ytp-drag");(this.Ua=MP(g.ST(this.C)))&&this.C.nd()};
1311g.h.tU=function(){this.va=0;g.Nq(this.element,"ytp-pull-ui");g.Nq(this.element,"ytp-pulling");this.D&&(this.D.dispose(),this.D=null);0<this.K&&(this.D=new g.Au((0,g.B)(this.QJ,this,g.zG(),this.K,nY(this).position)),this.D.start());if(g.X(g.ST(this.C),32)||3==this.C.Sa())this.C.jc(bV(this.B,nY(this).A)),g.Nq(this.element,"ytp-drag"),this.Ua&&!g.X(g.ST(this.C),2)&&this.C.Xc()};
1312g.h.QJ=function(a,b,c){a=1-Math.pow(1-(g.zG()-a)/200,3);c+=a*(this.J*this.F-c);if(0>a||1<a)a=1;Bua(this,(1-a)*b,c,this.J);1>a&&this.D.start()};
1313g.h.uU=function(a,b){var c=!1,d=!1,e=nY(this);3600<=this.B.getLength()&&(Bua(this,this.Sc-b-10,e.position,e.A),d=!0,c=this.K>.1*(this.H?60:40),e=nY(this));g.U(this.element,"ytp-pull-ui",d);c&&g.S(this.element,"ytp-pulling");c=0;e.B&&0>=e.position?c=-1:e.D&&e.position>=e.width&&(c=1);this.va!=c&&(this.va=c,this.D&&(this.D.dispose(),this.D=null),c&&(this.D=new g.Au((0,g.B)(this.BW,this,g.zG(),this.L)),this.D.start()));this.C.jc(bV(this.B,e.A),!1)};
1314g.h.BW=function(a,b){var c=this.F*(this.da-1);this.L=g.kd(b+this.va*(g.zG()-a)*.3,0,c);g.kY(this);this.C.jc(bV(this.B,nY(this).A),!1);0<this.L&&this.L<c&&this.D.start()};
1315g.h.TD=function(){this.updateValue("clipstarticon",vra());this.updateValue("clipendicon",vra());g.S(this.element,"ytp-clip-hover")};
1316g.h.SD=function(){this.updateValue("clipstarticon",xra());this.updateValue("clipendicon",wra());g.Nq(this.element,"ytp-clip-hover")};
1317g.h.Hq=function(){this.O=0;this.M=window.Infinity;lY(this);jY(this,this.J,this.oa)};
1318g.h.yG=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Z[c]){var d=g.Nd("DIV");("ytp-chapter-marker"==b.style||b.tooltip)&&d.setAttribute("data-position",b.start/1E3);b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);b.icons&&d.setAttribute("data-offset-y",-12-24*b.icons.length);this.Z[c]=b;this.la[c]=d;if(b.icons&&b.icons.length){for(var e=g.Nd("DIV"),f=g.q(b.icons),k=f.next();!k.done;k=f.next()){k=k.value;var l=g.Nd("IMG");l.src=k;l.setAttribute("data-position",
1319b.start/1E3);b.tooltip&&l.setAttribute("data-tooltip",b.tooltip);l.setAttribute("data-offset-y",-12-24*b.icons.length);e.appendChild(l)}e.className="ytp-marker-icon";g.eb(this.ga,b,g.lQ);this.U[c]=e;this.fd.appendChild(e)}d.className=b.style;Cua(this,c);"ytp-chapter-marker"==b.style?this.pd.appendChild(d):g.Y(this.C).experiments.o("disable_ad_markers_on_content_progress_bar")||this.ed.appendChild(d)}}else Eua(this,b);oY(this)};
1320g.h.tW=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())Eua(this,b.value);oY(this)};
1321g.h.X=function(){zua(this,!1);g.$H.prototype.X.call(this)};g.t(g.qY,g.bI);g.qY.prototype.L=function(){g.rY(this,!this.C);this.V("select",this.C)};
1322g.qY.prototype.getValue=function(){return this.C};g.t(sY,g.qY);sY.prototype.G=function(){g.NT(this.D).B&&3!=this.D.Sa()?this.B||(g.RY(this.F,this),this.B=!0):this.B&&(g.SY(this.F,this),this.B=!1);var a=g.NT(this.D).B;g.rY(this,!!a&&a.loaded)};
1323sY.prototype.H=function(a){a?this.D.uk("annotations_module"):this.D.Nm("annotations_module")};
1324sY.prototype.X=function(){this.B&&g.SY(this.F,this);g.qY.prototype.X.call(this)};g.t(tY,g.$H);tY.prototype.oa=function(){this.V("size-change")};
1325tY.prototype.focus=function(){this.da.focus()};
1326tY.prototype.la=function(){this.V("back")};g.t(g.uY,tY);g.uY.prototype.ga=function(){this.H.V("size-change")};
1327g.uY.prototype.focus=function(){for(var a=0,b=0;b<this.Ra.length;b++)if("true"==this.Ra[b].element.getAttribute("aria-checked")){a=b;break}this.Ra[a].focus()};g.t(g.wY,g.bI);g.h=g.wY.prototype;g.h.open=function(){g.DY(this.D,this.G)};
1328g.h.Bf=function(a){if(this.H){var b=this.C[this.H];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.C[a].element.setAttribute("aria-checked",!0);this.Mb(this.Af(a));this.H=a};
1329g.h.us=function(a,b,c){b=new g.bI({I:"div",ea:["ytp-menuitem"],T:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},P:[{I:"div",ea:["ytp-menuitem-label"],ca:"{{label}}"}]},b,this.Af(a,!0));b.W("click",(0,g.B)(this.KQ,this,a));return b};
1330g.h.enable=function(a){this.K?a||(this.K=!1,this.Bk(!1)):a&&(this.K=!0,this.Bk(!0))};
1331g.h.Bk=function(a){a?g.RY(this.D,this):g.SY(this.D,this)};
1332g.h.Dd=function(a){this.V("select",a)};
1333g.h.KQ=function(a){"true"!=this.C[a].element.getAttribute("aria-disabled")&&this.Dd(a)};
1334g.h.Af=function(a){return a.toString()};
1335g.h.JQ=function(a){g.QF(a)||39!=g.RF(a)||(this.open(),g.PF(a))};
1336g.h.X=function(){this.K&&g.SY(this.D,this);g.bI.prototype.X.call(this);for(var a in this.C)this.C[a].dispose()};g.t(yY,g.wY);yY.prototype.J=function(){var a=this.B.getAvailableAudioTracks();1<a.length?(g.xY(this,(0,g.J)(a,this.F)),this.M=g.fb(a,this.F,this),this.L.Mb(a.length?" ("+a.length+")":""),this.V("size-change"),this.Bf(this.F(this.B.getAudioTrack())),this.enable(!0)):this.enable(!1)};
1337yY.prototype.Dd=function(a){g.wY.prototype.Dd.call(this,a);this.B.gv(this.M[a]);this.D.gf()};
1338yY.prototype.F=function(a){return a.toString()};g.t(zY,g.qY);zY.prototype.G=function(){var a=this.B.Sa();if(2!=a&&3!=a&&g.oU(this.B))this.F||(g.RY(this.H,this),this.F=!0,this.D.push(this.R(this.B,"videodatachange",this.G)),this.D.push(this.R(this.B,"videoplayerreset",this.G)),this.D.push(this.R(this.B,"onPlaylistUpdate",this.G)),this.D.push(this.R(this.B,"autonavchange",this.J)),this.J(this.B.getVideoData().autonavState));else if(this.F){g.SY(this.H,this);this.F=!1;a=g.q(this.D);for(var b=a.next();!b.done;b=a.next())this.Ia(b.value)}};
1339zY.prototype.J=function(a){g.rY(this,1!=a)};
1340zY.prototype.K=function(a){var b=this.B;a=a?2:1;b.app.A.ya("onAutonavChangeRequest",1!=a);a&&xwa(b.app,a)};
1341zY.prototype.X=function(){this.F&&g.SY(this.H,this);g.qY.prototype.X.call(this)};g.t(g.AY,WX);g.h=g.AY.prototype;g.h.show=function(){WX.prototype.show.call(this);this.zn()};
1342g.h.hide=function(){WX.prototype.hide.call(this);1<this.B.length&&g.EY(this)};
1343g.h.zn=function(){Jua(this);this.A&&(Iua(this),g.Oh(this.element,this.size))};
1344g.h.gf=function(){var a=this.B.pop(),b=BY(this);CY(this,a,b,!0)};
1345g.h.ZW=function(a,b,c){this.H.dispose();this.H=null;g.S(this.element,"ytp-popup-animating");c?(g.S(a.element,"ytp-panel-animate-forward"),g.Nq(b.element,"ytp-panel-animate-back")):(g.S(a.element,"ytp-panel-animate-back"),g.Nq(b.element,"ytp-panel-animate-forward"));g.Oh(this.element,this.size);this.G=new g.V(g.Ca(this.wR,a,b),250,this);this.G.start()};
1346g.h.wR=function(a){g.Nq(this.element,"ytp-popup-animating");g.YH(a);g.Oq(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.G.dispose();this.G=null};
1347g.h.vQ=function(a){if(!g.QF(a))switch(g.RF(a)){case 27:this.Rb();g.PF(a);break;case 37:1<this.B.length&&this.gf();g.PF(a);break;case 39:g.PF(a)}};
1348g.h.focus=function(){BY(this).focus()};
1349g.h.X=function(){WX.prototype.X.call(this);this.H&&this.H.dispose();this.G&&this.G.dispose()};g.t(FY,g.wY);g.h=FY.prototype;g.h.Xm=function(){var a=this.B.Sa();if(2!=a&&3!=a&&(this.J=g.Wqa(this.B),a=this.B.Yu(),g.Xqa(this.B)&&g.Yqa(this.B)&&a.unshift("missing-qualities"),$qa(this.B)&&a.unshift("inline-survey"),g.xY(this,a),a.length)){this.gD();this.enable(!0);return}this.enable(!1)};
1350g.h.gD=function(){var a=this.B.Om();this.C[a]&&(this.F=this.B.Lm(),this.Bf(a),"auto"==a&&this.Mb(this.Af(a)))};
1351g.h.Dd=function(a){"missing-qualities"!=a&&(g.wY.prototype.Dd.call(this,a),this.B.Vp(a),this.D.Rb(),this.Xm())};
1352g.h.us=function(a,b,c){var d=this;if("inline-survey"!=a)return g.wY.prototype.us.call(this,a,b,c);a=[{I:"span",ca:"\u0412\u0430\u0441 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u0435\u043e?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={qp:c.qp},f=e.next())c.qp=f.value,f=new g.W({I:"span",N:"ytp-menuitem-inline-survey-response",P:[c.qp?g.RU?{I:"div",ea:["ytp-icon","ytp-icon-like"]}:{I:"svg",T:{viewBox:"0 0 24 24"},
1353P:[{I:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",T:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}:g.RU?{I:"div",ea:["ytp-icon","ytp-icon-dislike"]}:{I:"svg",T:{viewBox:"0 0 24 24"},P:[{I:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",T:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",
1354fill:"#fff"}}]}],T:{tabindex:"0",role:"button"}}),f.W("click",function(a){return function(){var b=g.WT(d.B.app);b&&(b.Hb("iqsr",""+ +a.qp),b.getVideoData().rB=!0);d.D.Rb();d.Xm()}}(c)),a.push(f);
1355return new g.bI({I:"div",N:"ytp-menuitem",T:{"aria-disabled":!0},P:[{I:"div",ea:["ytp-menuitem-label"],P:a}]},b)};
1356g.h.Af=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{I:"a",T:{href:"../../https@support.google.com/youtube/@p=missing_quality",target:"_blank"},ca:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b?"};if("inline-survey"==a)return"";var c=[Kua(this,a)],d=this.B.Om();b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(Kua(this,this.F,["ytp-menu-label-secondary"])));return{I:"div",P:c}};g.t(GY,g.W);GY.prototype.Rc=function(a){g.ZH(this,this.F&&400<=a.width)};
1357GY.prototype.G=function(){if(this.D.A)this.D.Rb();else{var a=g.NT(this.B).A;a&&!a.loaded&&(a.Ru("tracklist",{includeAsr:!0}).length||a.load());this.D.df(this.element)}};
1358GY.prototype.C=function(){var a=this.B.Sa(),b=2!=a&&3!=a,c=g.$T(this.B),d=b&&!!g.NT(this.B).D;a=d&&1==c.displayMode;c=d&&2==c.displayMode;b=(d=a||c)||!b?null:this.B.Lm();g.U(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.U(this.element,"ytp-4k-quality-badge","hd2160"==b);g.U(this.element,"ytp-5k-quality-badge","hd2880"==b);g.U(this.element,"ytp-8k-quality-badge","highres"==b);g.U(this.element,"ytp-3d-badge-grey",d&&a);g.U(this.element,"ytp-3d-badge",d&&c)};g.t(IY,g.wY);g.h=IY.prototype;g.h.Hv=function(a){return a.toString()};
1359g.h.Af=function(a){return"1"==a?"\u041e\u0431\u044b\u0447\u043d\u0430\u044f":a.toLocaleString()};
1360g.h.kD=function(){var a=this.B.Sa();this.enable(2!=a&&3!=a)};
1361g.h.Bk=function(a){g.wY.prototype.Bk.call(this,a);a?(this.F=this.R(this.B,"onPlaybackRateChange",this.MQ),g.xY(this,(0,g.J)(this.B.tk(),this.Hv)),a=this.B.Lc(),this.Bf(this.Hv(a))):(this.Ia(this.F),this.F=null)};
1362g.h.MQ=function(a){this.Bf(this.Hv(a))};
1363g.h.Dd=function(a){g.wY.prototype.Dd.call(this,a);this.B.cf((0,window.parseFloat)(a),!0);this.D.gf()};var q1,dya;q1=[{option:"#fff",text:"\u0411\u0435\u043b\u044b\u0439"},{option:"#ff0",text:"\u0416\u0435\u043b\u0442\u044b\u0439"},{option:"#0f0",text:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439"},{option:"#0ff",text:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439"},{option:"#00f",text:"\u0421\u0438\u043d\u0438\u0439"},{option:"#f0f",text:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439"},{option:"#f00",text:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439"},{option:"#080808",text:"\u0427\u0435\u0440\u043d\u044b\u0439"}];
1364dya=[{option:0,text:JY(0)},{option:.25,text:JY(.25)},{option:.5,text:JY(.5)},{option:.75,text:JY(.75)},{option:1,text:JY(1)}];
1365g.LY=[{option:"fontFamily",text:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",options:[{option:1,text:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438"},{option:2,text:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438"},{option:3,text:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a"},
1366{option:4,text:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a"},{option:5,text:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439"},{option:6,text:"\u041a\u0443\u0440\u0441\u0438\u0432"},{option:7,text:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435"}]},{option:"color",text:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",options:q1},{option:"fontSizeIncrement",
1367text:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:-2,text:JY(.5)},{option:-1,text:JY(.75)},{option:0,text:JY(1)},{option:1,text:JY(1.5)},{option:2,text:JY(2)},{option:3,text:JY(3)},{option:4,text:JY(4)}]},{option:"background",text:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",options:q1},{option:"backgroundOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",options:dya},{option:"windowColor",
1368text:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",options:q1},{option:"windowOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",options:dya},{option:"charEdgeStyle",text:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",options:[{option:0,text:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430"},{option:4,text:"\u0421 \u0442\u0435\u043d\u044c\u044e"},
1369{option:1,text:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439"},{option:2,text:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439"},{option:3,text:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b"}]},{option:"textOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:.25,text:JY(.25)},{option:.5,text:JY(.5)},{option:.75,text:JY(.75)},{option:1,text:JY(1)}]}];g.t(KY,g.wY);g.h=KY.prototype;g.h.Bf=function(a){g.wY.prototype.Bf.call(this,a)};
1370g.h.nD=function(a){return a.option.toString()};
1371g.h.Af=function(a){return this.M[a].text||""};
1372g.h.Dd=function(a){g.wY.prototype.Dd.call(this,a);this.V("settingChange",this.L,this.M[a].option)};
1373g.h.oD=function(a){this.V("settingChange",this.L+"Override",!a);this.D.gf()};g.t(MY,g.uY);MY.prototype.C=function(a,b){this.V("settingChange",a,b)};g.t(NY,g.wY);NY.prototype.F=function(a){return a.languageCode};
1374NY.prototype.Af=function(a){return this.B[a].languageName||""};
1375NY.prototype.Dd=function(a){this.V("select",a);g.EY(this.D)};g.t(OY,g.wY);g.h=OY.prototype;g.h.Lv=function(a){return g.Xb(a)?"__off__":a.displayName};
1376g.h.Af=function(a){return"__off__"==a?"\u0412\u044b\u043a\u043b.":"__translate__"==a?"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438":"__contribute__"==a?"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b":("__off__"==a?{}:this.F[a]).displayName};
1377g.h.Dd=function(a){"__translate__"==a?this.J.open():"__contribute__"==a?(this.B.nd(),this.B.isFullscreen()&&this.B.je(),a=g.bna(g.Y(this.B),this.B.getVideoData()),g.MU(a)):(this.B.Ud("captions","track","__off__"==a?{}:this.F[a]),g.wY.prototype.Dd.call(this,a),this.D.gf())};
1378g.h.Ym=function(){var a=this.B.Xi();a=a&&-1!=a.indexOf("captions");var b=this.B.getVideoData();b=b&&b.xl;if(a||b){if(a){var c=this.B.Bc("captions","track");var d=this.B.Bc("captions","tracklist",{includeAsr:!0});var e=this.B.Bc("captions","translationLanguages");this.F=g.fb(d,this.Lv,this);var f=(0,g.J)(d,this.Lv);if(e.length){var k=this.J;var l=e;k.B=g.fb(l,k.F,k);g.xY(k,(0,g.J)(l,k.F));f.push("__translate__")}k=this.Lv(c)}else this.F={},f=[],k="__off__";f.unshift("__off__");this.F.__off__={};b&&
1379f.unshift("__contribute__");this.F[k]||(this.F[k]=c,f.push(k));g.xY(this,f);this.Bf(k);a?(Lua(this.M,this.B.Yi()),this.L.Mb(d&&d.length?" ("+d.length+")":""),this.V("size-change"),a&&e&&e.length&&this.C.__translate__.element.setAttribute("aria-disabled",!!g.Xb(c))):(this.L.Mb(""),this.V("size-change"));this.enable(!0)}else this.enable(!1)};
1380g.h.mD=function(a){this.B.Ud("captions","sampleSubtitles",a)};
1381g.h.UQ=function(a){var b=this.B.Bc("captions","track");b=g.bc(b);b.translationLanguage=this.J.B[a];this.B.Ud("captions","track",b)};
1382g.h.TQ=function(a,b){if("reset"==a)this.B.fv();else{var c={};c[a]=b;this.B.Xp(c)}this.mD(!0);this.O.start();Lua(this.M,this.B.Yi())};
1383g.h.cV=function(a){a||g.Fu(this.O)};
1384g.h.X=function(){g.Fu(this.O);g.wY.prototype.X.call(this)};g.t(PY,g.AY);PY.prototype.df=function(a){QY(this);0<this.D.Ra.length&&g.AY.prototype.df.call(this,a)};
1385PY.prototype.show=function(){g.AY.prototype.show.call(this);g.S(this.C.getRootNode(),"ytp-settings-shown")};
1386PY.prototype.hide=function(){g.AY.prototype.hide.call(this);g.Nq(this.C.getRootNode(),"ytp-settings-shown")};g.t(TY,g.W);
1387TY.prototype.C=function(){var a=!1;-1!=this.B.Xi().indexOf("remote")&&(a=1<this.B.Bc("remote","receivers").length);g.ZH(this,a&&400<=g.TT(this.B).Va().width);var b=1;a&&this.B.Bc("remote","casting")&&(b=2);if(this.D!=b){this.D=b;switch(b){case 1:this.updateValue("icon",g.RU?{I:"div",ea:["ytp-icon","ytp-icon-cast-desktop-off"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Za:!0,T:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});
1388break;case 2:this.updateValue("icon",g.tra())}g.U(this.element,"ytp-remote-button-active",!!this.B.Bc("remote","casting"))}};
1389TY.prototype.G=function(){if(this.B.Bc("remote","quickCast"))this.B.Ud("remote","quickCast",!0);else{var a=this.F,b=this.element;if(XX(a))a.Rb();else{QY(a);a:{var c=g.q(a.D.Ra);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0==d.priority){c=d;break a}c=null}c&&(c.open(),a.df(b));a.df(b)}}};g.t(UY,g.W);UY.prototype.H=function(){var a=this.B.app;a.A.ya("SIZE_CLICKED",!a.pd)};
1390UY.prototype.C=function(){g.ZH(this,this.B.app.te&&!this.B.isFullscreen()&&3!=this.B.Sa());if(this.A){var a=this.B.isWidescreen();if(this.D!=a){var b=a?g.RU?{I:"div",ea:["ytp-icon","ytp-icon-default-view"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Za:!0,T:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:g.RU?{I:"div",ea:["ytp-icon","ytp-icon-theater-mode"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
1391width:"100%"},P:[{I:"path",Za:!0,T:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};g.Y(this.B).J||null==this.D?this.updateValue("icon",b):iua(this.G,this.element,b);this.D=a;b=HW(this.B,"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","t");var c=HW(this.B,"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d","t");this.updateValue("title",
1392a?b:c);eY(this.F)}}};g.t(VY,g.W);VY.prototype.D=function(){var a=g.NT(this.C).A;a&&a.lG()};
1393VY.prototype.B=function(){var a=!!g.NT(this.C).A;g.ZH(this,a&&300<=g.TT(this.C).Va().width);a&&this.updateValue("pressed",!!this.C.Bc("captions","track").displayName)};g.t(g.WY,g.W);
1394g.WY.prototype.C=function(){var a=g.TT(this.F).Va().width,b=350<=a&&(!this.G||!g.X(g.ST(this.F),64));g.ZH(this,b);g.U(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.F.wk();b&&(b=g.ZU(a.current),this.H!=b&&(this.updateValue("currenttime",b),this.H=b),b=g.ZU(a.duration),this.J!=b&&(this.updateValue("duration",b),this.J=b));this.G&&(a=a.isPeggedToLive,this.K!=a&&(this.K=a,this.C(),b=this.B.element,b.disabled=a,g.Y(this.F).experiments.o("enable_live_premiere_web_player_indicator")&&this.B.Mb(this.L?
1395"\u041f\u0440\u0435\u043c\u044c\u0435\u0440\u0430":"\u0412 \u044d\u0444\u0438\u0440\u0435"),a?this.D&&(this.D(),this.D=null,b.removeAttribute("title")):(b.title="\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438",this.D=PX(this.M,this.B.element))))};
1396g.WY.prototype.U=function(a,b){Nua(this,b);this.C()};
1397g.WY.prototype.O=function(a){a.target==this.B.element&&(this.F.jc(window.Infinity),this.F.Xc())};
1398g.WY.prototype.X=function(){this.D&&this.D();g.W.prototype.X.call(this)};g.t(YY,g.W);g.h=YY.prototype;g.h.VQ=function(){var a=this.H.ld();this.J!=a&&(this.J=a,XY(this,this.B.getVolume(),this.B.isMuted()))};
1399g.h.Rc=function(a){g.ZH(this,350<=a.width)};
1400g.h.lV=function(a){if(!g.QF(a)){var b=g.RF(a),c=null;37==b?c=this.F-5:39==b?c=this.F+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.kd(c,0,100),0==c?this.B.mute():(this.B.isMuted()&&this.B.jg(),this.B.setVolume(c)),g.PF(a))}};
1401g.h.WQ=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.B.setVolume(this.F+(0>b?-10:10)):this.B.setVolume(this.F+g.kd(b/10,-10,10));g.PF(a)};
1402g.h.kV=function(){ZY(this,this.D,!0,this.C,this.H.hk());this.Z=this.F;this.B.isMuted()&&this.B.jg()};
1403g.h.jV=function(a){a-=g.Hh(this.U).x;this.B.setVolume(100*g.kd(a/(this.J?78:52),0,1))};
1404g.h.iV=function(){ZY(this,this.D,!1,this.C,this.H.hk());0==this.F&&(this.B.mute(),this.B.setVolume(this.Z))};
1405g.h.XQ=function(a){XY(this,a.volume,a.muted)};
1406g.h.rz=function(){ZY(this,this.D,this.G,this.C,this.H.hk())};
1407g.h.pD=function(a){ZY(this,this.D,this.G,a,this.H.hk())};
1408g.h.HF=function(a){g.U(this.element,"ytp-volume-control-hover",a);ZY(this,a,this.G,this.C,this.H.hk())};
1409g.h.X=function(){g.W.prototype.X.call(this);g.Nq(this.O,"ytp-volume-slider-active")};g.t($Y,g.W);$Y.prototype.F=function(){this.C=!!this.B.getVideoData().videoId;g.ZH(this,this.C);g.sU(this.B,this.element,this.C&&this.D);if(this.C){var a=this.B.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a)}};
1410$Y.prototype.G=function(a){var b=this.B.getVideoUrl(!g.$U(a),!1,!0,!0);DW(b,this.B,a);g.rU(this.B,this.element)};g.t(aZ,g.XF);g.h=aZ.prototype;g.h.Jv=function(){g.xua(this.D);this.ba.C()};
1411g.h.OD=function(){this.fx();if(this.Z.o)this.Jv();else{var a=this.D.pa;1==a.C&&a.Ze()}};
1412g.h.RQ=function(){this.Jv();this.H.start()};
1413g.h.fx=function(){var a;if(a=!g.Y(this.B).B){a=this.D;var b=2*a.F*g.tN();a=300>1E3*a.B.getLength()/a.C.Lc()/b}a=a&&g.ST(this.B).rb()&&!!window.requestAnimationFrame;b=!a;this.Z.o||(a=b=!1);b?this.J||(this.J=this.R(this.B,"progresssync",this.Jv)):this.J&&(this.Ia(this.J),this.J=null);a?this.H.isActive()||this.H.start():this.H.stop()};
1414g.h.xX=function(a){var b=this.C.Ub();a=!a;if(null!=b.C)if(a)switch(b.C){case 3:case 2:NZ(b);b.L.show();break;default:b.L.show()}else b.L.hide();b.O=a};
1415g.h.Kv=function(){var a=this.C.ld(),b=g.TT(this.B).Va(),c=bZ(this),d=Math.max(b.width-2*c,100);if(this.ga!=b.width||this.da!=a){this.ga=b.width;this.da=a;var e=Pua(this);this.A.element.style.width=e+"px";this.A.element.style.left=c+"px";var f=this.D;f.Ga=c;f.F=e;f.H=a;g.kY(f);this.C.Ub().oa=e}c=this.o;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.C.ld()?72:50))));c.U=Math.min(570*(a?1.5:1),d);c.O=e;c.zn();this.fx();g.Y(this.B).experiments.o("html5_player_dynamic_bottom_gradient")&&bua(this.ha,
1416b.height)};
1417g.h.SQ=function(){var a=this.B.getVideoData();this.U.style.background=a.isDni?a.dniColor:""};
1418g.h.na=function(){return this.A.element};g.t(cZ,WX);cZ.prototype.G=function(a){a?(Qua(this),this.df()):(this.C&&Rua(this),this.Rb())};
1419cZ.prototype.H=function(a){this.B.app.aa&&0<RP(a,2)&&this.Rb()};
1420cZ.prototype.onClick=function(){this.B.jg();Rua(this)};g.t(dZ,g.XF);g.h=dZ.prototype;g.h.init=function(){var a=g.ST(this.api);this.Pq(a);this.di();this.bb()};
1421g.h.YC=function(a,b){if(this.wa!=b.videoId){this.wa=b.videoId;var c=this.A;c.U=b&&0<b.li.length?5E3:3E3;c.kc(512,!0);this.di()}};
1422g.h.jU=function(){this.YC("newdata",this.api.getVideoData())};
1423g.h.Vk=function(){var a=g.bU(this.api)&&g.cU(this.api);eZ(this);(a=Wua(this)||this.Ya||a)||(a=g.NT(this.api).H,a=!!a&&a.RN());return a||this.wb||eZ(this)};
1424g.h.ug=function(){var a=!this.Vk();g.U(this.api.getRootNode(),"ytp-menu-shown",!a)};
1425g.h.jQ=function(a){if(!g.Zd(this.api.getRootNode(),a))return!1;for(;a&&!g.fe(a);)a=a==this.api.getRootNode()?null:g.Yd(a);return!!a};
1426g.h.Vv=function(a){var b=this.api.getRootNode();g.U(b,"ytp-autohide",a);g.U(b,"ytp-autohide-active",!0);this.Ua.start(a?250:100);a&&(this.Ka=!1,g.Nq(b,"ytp-touch-mode"));b=this.api;a=!a;b.ya("onVideoAreaChange");b.ya(a?"onShowControls":"onHideControls")};
1427g.h.KR=function(){var a=this.api.getRootNode();g.U(a,"ytp-autohide-active",!1)};
1428g.h.UU=function(a){Sua(this)&&Tua(this,a);var b=XX(this.ha);g.Hwa&&Uua(this,a)?b&&g.PF(a):(g.NP(g.ST(this.api))&&!g.Y(this.api).wa&&(b=this.api.getVideoData(),b.videoId&&this.api.Wp(Dma(b))),this.A.o||fZ(this,MF(a))||XX(this.ha)||(g.ST(this.api),g.PF(a)),this.Ka=!0,g.S(this.api.getRootNode(),"ytp-touch-mode"),this.A.kc(2,!0))};
1429g.h.QU=function(a){Uua(this,a)||Sua(this)||Tua(this,a)};
1430g.h.XA=function(){};
1431g.h.ZC=function(){};
1432g.h.Dv=function(){var a=g.ST(this.api);g.X(a,2)&&QT(this.api)||(MP(a)?this.api.nd():(this.api.app.Md=!0,this.api.Xc()))};
1433g.h.RU=function(a){fZ(this,MF(a))||3!=this.api.Sa()&&this.api.je()};
1434g.h.SU=function(a){Vua(this,.3,a.scale);g.PF(a)};
1435g.h.TU=function(a){Vua(this,.1,a.scale)};
1436g.h.bb=function(){var a=this.ld(),b=g.TT(this.api).Va(),c=this.api.isFullscreen(),d=this.api.getRootNode(),e=!a&&(480>b.width||290>b.height),f=650<=b.width;g.NI&&Ota(this.A);g.U(d,"ytp-fullscreen",c);g.U(d,"ytp-large-width-mode",f);g.U(d,"ytp-small-mode",e);g.U(d,"ytp-big-mode",a);this.C&&Wta(this.C,b)};
1437g.h.nU=function(a){this.Pq(a.state);this.di()};
1438g.h.di=function(){if(Wua(this))var a=!1;else{var b=!!this.wa&&!g.OT(this.api),c=2==this.api.Sa();a=g.Y(this.api);if(c){a=g.NT(this.api).C;if(b){b=g.Y(a.player).experiments;c=a.app.getVideoData();if(b.o("desktop_trv_action_hide_info_bar")&&c.ik)a=!1;else{if(b=c.isListed)a=a.o,b=null!=a.K&&null!=Me(a.K,1)&&null!=Me(gf(a.K),4)&&Me(Qe(gf(a.K),bf,4),1)?!1:!0;a=b}b=a}a=b}else c=this.api.getVideoData(),a=(a.experiments.o("embed_api_deprecation")||a.va)&&c.isDni&&5==this.api.app.U?b:b&&(a.wg||this.api.isFullscreen()||
1439a.fullWindow)}this.J!=a&&(this.J=a,g.U(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
1440g.h.Pq=function(a){var b=g.NP(a);b!=this.Zb&&(this.Zb=b,this.Oa&&this.Ia(this.Oa),this.Oa=this.R(g.TT(this.api),"touchstart",this.UU,void 0,b));this.A.kc(128,!(a.rb()&&!g.X(a,32)||eU(this.api)));var c=3==this.api.Sa();this.A.kc(256,c);c=this.api.getRootNode();if(g.X(a,2))var d=["ended-mode"];else d=[],g.X(a,8)?d.push("playing-mode"):g.X(a,4)&&d.push("paused-mode"),g.X(a,1)&&!g.X(a,32)&&d.push("buffering-mode"),g.X(a,32)&&d.push("seeking-mode"),g.X(a,64)&&d.push("unstarted-mode");g.db(this.oa,d)||
1441(g.Oq(c,this.oa),this.oa=d,g.Mq(c,d));d=g.Y(this.api);var e=g.X(a,2);g.U(c,"ytp-hide-controls",("3"==d.C?!e:"1"!=d.C)||b);g.U(c,"ytp-native-controls","3"==d.C&&!b&&!e);if(g.X(a,128)){this.C||(this.C=new HX(this.api),g.M(this,this.C),g.mU(this.api,this.C.element,4));b=this.C;c=a.o;for(a=0;a<b.G.length;a++)b.Ia(b.G[a]);b.G=[];d=c.messageKey;a=g.Y(b.B);"play"!=a.playerStyle||"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=d&&"YTP_ERROR_UNSUPPORTED_DEVICE"!=d||(d="YTP_HTML5_FLASH_DEPRECATED");if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=
1442d||a.hc)"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=d||a.hc?"YTP_HTML5_FLASH_DEPRECATED"==d?b.Mb(JX(b,"YTP_HTML5_FLASH_DEPRECATED","//support.google.com/googleplay/answer/2844198#movies",!1,!0,"\u041e\u0448\u0438\u0431\u043a\u0430")):(b.Mb(Zta(c.message)),b.F&&c.subreason&&b.Mb(Zta(c.subreason),"subreason")):b.Mb(JX(b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/html5"));else if(c=g.Y(b.B).hostLanguage,d="../../https@support.google.com/youtube/@p=player_error1",c&&(d=g.Yg(d,{hl:c})),b.Mb(JX(b,
1443"ERROR_GENERIC_WITH_LINK_AND_CPN",d,!0)),a.ga&&!a.o)for(a=(0,g.B)(b.H,b),c=b.element.getElementsByTagName("a"),d=0;d<c.length;d++)e=b.R(c[d],"click",a),b.G.push(e);this.C.show()}else this.C&&(this.C.dispose(),this.C=null)};
1444g.h.Jo=function(){return g.bU(this.api)&&g.cU(this.api)?(this.api.Qm(!1,!1),!0):g.OT(this.api)?(g.RT(this.api,!0),!0):!1};
1445g.h.kQ=function(a){this.wb=a;this.ug()};
1446g.h.ld=function(){return!1};
1447g.h.hk=function(){return this.Ka};
1448g.h.Tm=function(){return null};
1449g.h.qv=function(){var a=g.TT(this.api).Va();return new g.ih(0,0,a.width,a.height)};
1450g.h.rv=function(){};
1451g.h.qq=function(){};
1452g.h.Zp=function(a){void 0!=a&&QV(g.TT(this.api),a)};
1453g.h.vv=function(){};
1454g.h.yA=function(){return null};g.t(g.iZ,g.W);g.iZ.prototype.show=function(){g.W.prototype.show.call(this);g.Du(this.B)};
1455g.iZ.prototype.hide=function(){this.C.stop();g.W.prototype.hide.call(this)};g.t(nZ,g.W);nZ.prototype.X=function(){this.C&&this.C();g.W.prototype.X.call(this)};
1456nZ.prototype.J=function(){g.pG("iv-button-mouseover")};
1457nZ.prototype.H=function(a){g.bU(this.B);var b=g.Lq(this.B.getRootNode(),"ytp-cards-teaser-shown");g.pG("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.B.Qm(!g.cU(this.B),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.t(oZ,g.W);g.h=oZ.prototype;g.h.xG=function(){g.bU(this.C)&&g.cU(this.C)&&this.A&&4!=this.G.o&&this.Wm()};
1458g.h.dX=function(){this.Wm();g.pG("iv-teaser-clicked",!!this.B);this.C.Qm(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
1459g.h.lQ=function(){g.pG("iv-teaser-mouseover");this.B&&this.B.stop()};
1460g.h.oV=function(a){this.B||!a||g.cU(this.C)||this.D&&this.D.isActive()||(Yua(this,a),g.pG("iv-teaser-shown"))};
1461g.h.aD=function(){this.K.stop();this.B&&this.B.isActive()&&this.L.start()};
1462g.h.Sh=function(){this.L.stop();this.B&&!this.B.isActive()&&this.K.start()};
1463g.h.JT=function(){this.B&&this.B.stop()};
1464g.h.HT=function(){this.Wm()};
1465g.h.Wm=function(){!this.B||this.F&&this.F.isActive()||(g.pG("iv-teaser-hidden"),this.G.hide(),g.Nq(this.C.getRootNode(),"ytp-cards-teaser-shown"),this.F=new g.V(function(){for(var a=g.q(this.H),b=a.next();!b.done;b=a.next())this.Ia(b.value);this.H=[];this.B&&(this.B.dispose(),this.B=null);mZ(this.J,!0)},330,this),this.F.start())};
1466g.h.X=function(){var a=this.C.getRootNode();a&&g.Nq(a,"ytp-cards-teaser-shown");g.lf(this.D,this.F,this.B);g.W.prototype.X.call(this)};g.t(pZ,g.bI);pZ.prototype.B=function(a){g.QF(a)||39!=g.RF(a)||(this.element.click(),g.PF(a))};g.t(sZ,g.uY);g.h=sZ.prototype;g.h.pS=function(){GW(this.K.element)};
1467g.h.NS=function(){tZ(this,this.B.Km(!0))&&jZ(this.U,ura())};
1468g.h.OS=function(){tZ(this,this.B.wC())&&jZ(this.U,g.RU?{I:"div",ea:["ytp-icon","ytp-icon-code"]}:{I:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",T:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]});g.rU(this.B,this.C.element);rZ("EMBED",this.B.getVideoData().videoId,this.B.getPlaylistId()||void 0)};
1469g.h.RS=function(){tZ(this,this.B.getVideoUrl(!0,!0))&&jZ(this.U,yra());g.rU(this.B,this.F.element);rZ("COPY_PASTE",this.B.getVideoData().videoId,this.B.getPlaylistId()||void 0)};
1470g.h.QS=function(){tZ(this,this.B.getVideoUrl(!1,!0))&&jZ(this.U,yra());g.rU(this.B,this.D.element);rZ("COPY_PASTE",this.B.getVideoData().videoId,this.B.getPlaylistId()||void 0)};
1471g.h.nT=function(a){g.rY(this.G,a)};
1472g.h.oT=function(){var a=this.G.getValue();jwa(this.B.app,a);this.O.Rb();g.rU(this.B,this.G.element)};
1473g.h.JU=function(a){var b=g.WT(this.B.app);b&&b.Dm(new QN("feedback",!1,{gpu:(0,g.aT)()}));if(g.CW(a,this.B,!sN(g.Y(this.B)))){a=this.B;b=b={as3:!1,html5:!0,player:!0};var c=a.EA().debug_error;c&&(b.player_error=c.errorCode,b.player_error_details=c.errorDetail);b.debug_text=a.Km(!0);a.ya("onFeedbackStartRequest",b);a.isFullscreen()&&a.je()}this.O.Rb()};
1474g.h.fV=function(){this.B.AC();this.O.Rb()};
1475g.h.pQ=function(a,b){$ua(this,b)};g.t(uZ,g.AY);g.h=uZ.prototype;g.h.show=function(){this.J||(this.J=new sZ(this.C,this.la,this,this.ga),g.M(this,this.J),g.DY(this,this.J));g.AY.prototype.show.call(this);g.sU(this.C,this.element,!0);ava(this.J,!0)};
1476g.h.hide=function(){bva(this);g.AY.prototype.hide.call(this);g.sU(this.C,this.element,!1);this.J&&ava(this.J,!1)};
1477g.h.oS=function(a){var b=MF(a);this.A||b&&(g.he(b,"a")||g.ie(b,"ytp-no-contextmenu"))||(g.PF(a),cva(this),b=this.C.getVideoData(),g.U(this.element,"ytp-dni",b.isDni),this.element.style.left="",this.element.style.top="",a=OF(a),a.x++,a.y++,this.df(),b=g.Ih(window.document.body),a=g.yD(a,this.size,0,void 0,b,5),g.Dh(this.element,g.nh(a.rect)),g.ZF(this.D),this.D.R(window.document,"contextmenu",this.xS),this.D.R(this.C,"fullscreentoggled",this.qQ),this.D.R(this.C,"pageTransition",this.VT))};
1478g.h.xS=function(a){g.QF(a)||(g.Zd(this.element,MF(a))||this.Rb(),g.Y(this.C).disableNativeContextMenu&&g.PF(a))};
1479g.h.qQ=function(){this.Rb();cva(this)};
1480g.h.VT=function(){this.Rb()};g.t(vZ,g.XF);g.h=vZ.prototype;
1481g.h.QA=function(a){var b=!1,c=g.RF(a),d=MF(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.Y(this.o);g.QF(a)?(e=!1,k=!0):l.Ld&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==
1482c?d.previousSibling:d.nextSibling,"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if((d=g.NT(this.o).D)&&e&&!f&&d.A&&d.A.A)switch(c){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:f=d.A.NA(c)}l.hc||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.B+=f,0=="awesome".indexOf(this.B)?(f=!0,7==this.B.length&&g.Qq(this.o.getRootNode(),
1483"ytp-color-party")):(this.B=f,f=0=="awesome".indexOf(this.B)));if(e&&!f){switch(c){case 32:l.H||(k=!MP(g.ST(this.o)),kZ(this.A,k),k?this.o.Xc():this.o.nd(),k=f=!0);break;case 37:this.o.Vc()&&(jZ(this.A,g.RU?{I:"div",ea:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.0D4B1F5A0E"}}]}),
1484this.o.De(-5*this.o.Lc()),k=f=!0);break;case 39:this.o.Vc()&&(jZ(this.A,g.RU?{I:"div",ea:["ytp-icon","ytp-icon-forward-five-seconds"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Za:!0,N:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.70C7651FAC6"}}]}),
1485this.o.De(5*this.o.Lc()),k=f=!0);break;case 38:k=Math.min(this.o.getVolume()+5,100);lZ(this.A,k,!1);this.o.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.o.getVolume()-5,0);lZ(this.A,k,!0);this.o.setVolume(k);k=f=!0;break;case 27:this.F()&&(k=f=!0);break;case 36:this.o.Vc()&&(this.o.jc(0),k=f=!0);break;case 35:this.o.Vc()&&(this.o.jc(window.Infinity),k=f=!0)}if("3"!=l.C)switch(c){case 67:g.NT(this.o).A&&(k=this.o.Bc("captions","track"),(f=g.NT(this.o).A)&&f.lG(),k=!k||k&&!k.displayName?"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b":
1486"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b",jZ(this.A,Gra(),k),k=f=!0);break;case 79:wZ(this,"textOpacity")&&(f=!0);break;case 87:wZ(this,"windowOpacity")&&(f=!0);break;case 187:wZ(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:wZ(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);null!=n&&this.o.Vc()&&(k=this.o.wk(),this.o.jc(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&
1487this.Jw(!0);(b||k)&&this.D.kc(2,!0);(f||e&&eva(this,c,a.shiftKey))&&g.PF(a);l.Kb&&(a={keyCode:g.RF(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.QF(a),fullscreen:this.o.isFullscreen()},this.o.ya("onKeyPress",a))};
1488g.h.RA=function(a){a=g.RF(a);var b=g.NT(this.o).D;b&&b.A&&b.A.A&&b.A.PA(a);9==a&&this.Jw(!0)};
1489g.h.Jw=function(a){g.U(this.o.getRootNode(),"ytp-probably-keyboard-focus",a);g.U(this.G.element,"ytp-probably-keyboard-focus",a)};
1490g.h.dD=function(a){g.NT(this.o).A&&this.o.Ud("captions","sampleSubtitles",a)};
1491g.h.X=function(){g.Fu(this.C);g.XF.prototype.X.call(this)};g.t(xZ,g.W);g.h=xZ.prototype;g.h.hide=function(){g.Nq(this.B.getRootNode(),"ytp-expand-pause-overlay");g.W.prototype.hide.call(this)};
1492g.h.ZR=function(){this.aa=!0;g.Nq(this.B.getRootNode(),"ytp-expand-pause-overlay");this.K.focus()};
1493g.h.bS=function(){this.aa=!1;g.S(this.B.getRootNode(),"ytp-expand-pause-overlay")};
1494g.h.wQ=function(){fva(this,this.F-this.H)};
1495g.h.xQ=function(){fva(this,this.F+this.H)};
1496g.h.yQ=function(a,b){if(1E3>g.zG()-this.oa)g.PF(b),window.document.activeElement.blur();else{var c=this.C[a],d=c.Hd;if(g.CW(b,this.B,this.ga,d||void 0)){var e=c.Qa().videoId;c=c.getPlaylistId();g.$_(this.B.app,e,d,c,void 0,void 0,void 0)}}};
1497g.h.zQ=function(){this.Fv(g.TT(this.B).Va())};
1498g.h.AQ=function(a){g.X(a.state,1)||g.X(a.state,16)||g.X(a.state,32)||(g.X(a.state,4)&&!g.X(a.state,2)?this.C.length&&(this.aa||(g.S(this.B.getRootNode(),"ytp-expand-pause-overlay"),yZ(this)),this.U.show(),this.oa=g.zG()):this.U.hide())};
1499g.h.Fv=function(a){var b=16/9,c=this.da.ld();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.G.length;d++){var e=this.G[d].o["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.J.element.style.height=b+"px";this.Z=c;this.ia=b;this.H=a;this.F=0;this.eD(0);yZ(this)};
1500g.h.BQ=function(){var a=this,b=g.Y(this.B),c=this.B.getVideoData();this.ga=c.isDni?!1:b.o;if(c.suggestions){var d=(0,g.Ud)(c.suggestions,function(a){return a&&!a.list});
1501this.C=(0,g.J)(d,function(c){c=g.CX(b,c);g.M(a,c);return c})}else this.C.length=0;
1502hva(this);c.isDni?this.O.update({title:g.PU('\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:c.author})}):this.O.update({title:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e"})};
1503g.h.eD=function(a){this.J.element.scrollLeft=-a};g.t(zZ,g.W);zZ.prototype.C=function(a){g.CW(a,this.B)&&this.B.xC(this.Gb)};g.t(AZ,WX);g.h=AZ.prototype;g.h.show=function(){WX.prototype.show.call(this);this.H.R(this.C,"videodatachange",this.Gv);this.H.R(this.C,"onPlaylistUpdate",this.Gv);this.Gv()};
1504g.h.hide=function(){WX.prototype.hide.call(this);g.ZF(this.H);iva(this,null)};
1505g.h.Gv=function(){iva(this,this.C.ig())};
1506g.h.Iq=function(){var a=this.B.Ip;if(a==this.J)this.D.element.setAttribute("aria-checked",!1),this.D=this.G[this.B.ye()];else{for(var b=g.q(this.G),c=b.next();!c.done;c=b.next())c.value.dispose();b=this.B.getLength();this.G=[];for(c=0;c<b;c++){var d=new zZ(this.C,this.B,c);this.G.push(d);d.xa(this.Ra)}this.D=this.G[this.B.ye()];this.J=a}this.D&&this.D.element.setAttribute("aria-checked",!0)};
1507g.h.qV=function(a){var b=this.C.getVideoUrl(!0);DW(b,this.C,a)};
1508g.h.focus=function(){this.D.focus()};
1509g.h.X=function(){this.hide();WX.prototype.X.call(this)};g.t(BZ,g.W);BZ.prototype.C=function(){g.U(this.element,"ytp-playlist-menu-button-tiny",400>g.TT(this.D).Va().width);this.B&&2!=this.D.Sa()?(this.update({text:g.PU("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.B.ye()+1),PLAYLIST_LENGTH:String(this.B.getLength())}),title:g.PU('\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',{PLAYLIST_NAME:this.B.title})}),this.A||(this.show(),eY(this.F))):this.A&&(this.hide(),eY(this.F))};
1510BZ.prototype.G=function(){this.B&&this.B.unsubscribe("shuffle",this.C,this);(this.B=this.D.ig())&&this.B.subscribe("shuffle",this.C,this);this.C()};g.t(CZ,g.W);CZ.prototype.D=function(a){g.ZH(this,g.X(a.state,2))};
1511CZ.prototype.C=function(){g.ST(this.B);this.B.Xc()};g.t(DZ,WX);g.h=DZ.prototype;g.h.aU=function(a){a=MF(a);g.Zd(this.O,a)||g.Zd(this.H,a)||this.bi()};
1512g.h.Rb=function(){WX.prototype.Rb.call(this);this.C.Aj(this.element)};
1513g.h.show=function(){var a=this.A;WX.prototype.show.call(this);this.jD();a||this.B.ya("onSharePanelOpened")};
1514g.h.jD=function(){g.S(this.element,"ytp-share-panel-loading");g.Nq(this.element,"ytp-share-panel-fail");var a=this.B.getVideoData(),b=this.B.getPlaylistId(),c=b&&this.J.checked;g.U(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.Y(this.B);e.gd&&(d.authuser=e.gd);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.IE(g.Y(this.B).baseYtUrl+"share_ajax",{method:"GET",onError:(0,g.B)(this.TF,this),onSuccess:(0,g.B)(function(a,
1515b){if(b){if(!this.ka()){g.Nq(this.element,"ytp-share-panel-loading");kva(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=jva(f.img);k&&(k=new g.W({I:"a",ea:["ytp-share-panel-service-button","ytp-button"],T:{href:f.url,target:"_blank",title:f.sname},P:[k]}),k.W("click",g.Ca(this.YU,f.url)),g.jf(k,PX(this.C,k.element)),this.D.push(k),d++)}c=new g.W({I:"a",ea:["ytp-share-panel-service-button","ytp-button"],P:[{I:"span",N:"ytp-share-panel-service-button-more",P:[g.RU?{I:"div",ea:["ytp-icon",
1516"ytp-icon-share-more"]}:{I:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,360C42C17AD5",
1517fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],T:{href:b.more,target:"_blank",title:"\u0415\u0449\u0451"}});c.W("click",(0,g.B)(this.FT,this,b.more));g.jf(c,PX(this.C,c.element));this.D.push(c);this.updateValue("buttons",this.D)}}else this.TF(null,null)},this),
1518cd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.updateValue("link",a);this.updateValue("linkText",a);this.updateValue("shareLinkWithUrl",g.PU("\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0441\u044b\u043b\u043a\u0443: $URL",{URL:a}));GW(this.G)};
1519g.h.TF=function(){g.Nq(this.element,"ytp-share-panel-loading");g.S(this.element,"ytp-share-panel-fail")};
1520g.h.YU=function(a,b){if(g.$U(b)){var c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";c||(c={});var d=window;var e=a instanceof Jc?a:g.Nc("undefined"!=typeof a.href?a.href:String(a));var f=c.target||a.target,k=[];for(l in c)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+c[l]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(l+"="+(c[l]?1:0))}var l=k.join(",");kc()&&d.navigator&&d.navigator.standalone&&
1521f&&"_self"!=f?(l=d.document.createElement("A"),g.gd(l,e),l.setAttribute("target",f),c.noreferrer&&l.setAttribute("rel","noreferrer"),c=window.document.createEvent("MouseEvent"),c.initMouseEvent("click",!0,!0,d,1),l.dispatchEvent(c),d={}):c.noreferrer?(d=d.open("",f,l),c=g.Kc(e),d&&(g.VH&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),d.opener=null,c=g.jd(g.zc("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
1522g.nb(c)+'">'),d.document.write(g.$c(c)),d.document.close())):(d=d.open(g.Kc(e),f,l))&&c.noopener&&(d.opener=null);if(c=d)c.opener||(c.opener=window),c.focus();g.PF(b)}};
1523g.h.FT=function(a,b){DW(a,this.B,b)&&this.B.ya("SHARE_CLICKED")};
1524g.h.LQ=function(a){!a&&XX(this)&&this.bi()};
1525g.h.focus=function(){this.G.focus()};
1526g.h.X=function(){WX.prototype.X.call(this);kva(this)};g.t(EZ,g.W);EZ.prototype.H=function(){var a=g.Y(this.B);if(window.navigator.share){var b=this.B.getVideoData(),c=this.B.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);window.navigator.share({title:b.title,url:a})}else this.J.bi(this.element,!1);g.rU(this.B,this.element)};
1527EZ.prototype.F=function(){var a=g.Y(this.B).tj&&2!=this.B.Sa(),b=g.TT(this.B).Va().width;this.C=!!this.B.getVideoData().videoId&&300<=b&&!a;g.U(this.D,"ytp-share-button-visible",this.C);a=400<=b;g.Y(this.B).D&&(g.U(this.D,"ytp-show-share-title",a),this.updateValue("share",a?"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f":""));g.sU(this.B,this.element,this.C&&this.G)};
1528EZ.prototype.X=function(){g.W.prototype.X.call(this);g.Nq(this.D,"ytp-share-button-visible")};g.t(FZ,WX);FZ.prototype.show=function(){WX.prototype.show.call(this);this.G.start()};
1529FZ.prototype.hide=function(){WX.prototype.hide.call(this);this.G.stop()};
1530FZ.prototype.ga=function(){var a=this.B.getCurrentTime();a>this.D/1E3&&a<this.C/1E3&&this.show()};g.t(GZ,g.W);GZ.prototype.F=function(){g.rU(this.C,this.element);lva(this,!this.B)};g.t(g.HZ,g.W);g.HZ.prototype.C=function(){g.S(this.element,"ytp-sb-subscribed")};
1531g.HZ.prototype.D=function(){g.Nq(this.element,"ytp-sb-subscribed")};g.ta("yt.pubsub.publish",g.pG,void 0);g.t(IZ,g.W);IZ.prototype.J=function(){this.C.classList.remove("ytp-title-show-collapsed");this.C.classList.remove("ytp-title-show-expanded");this.C.classList.remove("ytp-title-expanded")};
1532IZ.prototype.O=function(){if(qva(this)){this.G&&this.G.stop();this.F&&(this.F.show(),g.sU(this.B,this.F.element,!0));var a=this.B.getVideoData();this.H&&a.subscribed&&(this.H.show(),g.sU(this.B,this.H.element,!0));this.C.classList.add("ytp-title-expanded");this.C.classList.add("ytp-title-show-expanded")}};
1533IZ.prototype.L=function(){this.G&&this.G.start()};g.t(KZ,g.W);KZ.prototype.H=function(a){g.rU(this.B,this.element);var b=this.B.getVideoUrl(!g.$U(a),!1,!0);DW(b,this.B,a)};
1534KZ.prototype.F=function(){var a=this.B.getVideoData(),b=g.Y(this.B);this.updateValue("title",a.title);LZ(this);if(2==this.B.Sa()){var c=this.B.getVideoData(),d=!!c.videoId&&!!c.isListed&&!!c.author&&!!c.channelPath&&!!c.profilePicture;d?(JZ(this.C,d),this.updateValue("channelLink",c.channelPath),this.updateValue("channelName",c.author)):LZ(this)}else b.D&&(c=this.B.getVideoData(),(c=!!c.videoId&&!!c.channelPath&&!!c.profilePicture)?JZ(this.C,c):LZ(this));c=b.da||!this.B.isFullscreen()&&b.fullWindow;
1535g.U(this.G,"ytp-title-fullerscreen-link",c);b.G||!a.videoId||c?this.D&&(this.updateValue("url",null),this.Ia(this.D),this.D=null):(this.updateValue("url",this.B.getVideoUrl(!0)),this.D||(this.D=this.R(this.G,"click",this.H)))};g.t(g.MZ,g.W);g.h=g.MZ.prototype;g.h.IT=function(a){3==this.C&&this.Ze();a=a.currentTarget;this.C||(a.removeEventListener("mouseover",this.H),a.addEventListener("mouseout",this.aa),this.M.experiments.o("show_tooltip_on_tab_killswitch")||(a.removeEventListener("focus",this.H),a.addEventListener("blur",this.aa)),sva(this,a,2))};
1536g.h.GT=function(a){(a=NF(a))&&g.Zd(this.B,a)||this.Ze()};
1537g.h.bE=function(a,b){if(a<=this.G&&this.G<=b){var c=this.G;this.G=window.NaN;vva(this,c)}};
1538g.h.bN=function(){gO(this.D,this.G,160*this.F)};
1539g.h.Ze=function(){switch(this.C){case 2:this.B.removeEventListener("mouseout",this.aa),this.B.addEventListener("mouseover",this.H),this.M.experiments.o("show_tooltip_on_tab_killswitch")||(this.B.removeEventListener("blur",this.aa),this.B.addEventListener("focus",this.H));case 3:3==this.C&&this.ha.stop();this.Z.removeEventListener("appresize",this.da);this.U||this.B.setAttribute("title",this.J);this.J="";this.B=null;break;case 1:this.D&&(this.D.unsubscribe("l",this.bE,this),this.D=null),this.Z.removeEventListener("videoready",
1540this.da),this.ga.stop()}this.C=null;this.O&&this.L.hide()};
1541g.h.Aj=function(a){if(this.B)for(var b=0;b<arguments.length;b++)g.Zd(arguments[b],this.B)&&this.Ze()};
1542g.h.X=function(){null!=this.C&&this.Ze();g.W.prototype.X.call(this)};g.t(PZ,g.W);g.h=PZ.prototype;g.h.Rc=function(a){this.F=300<=a.width;g.ZH(this,this.F);a=400<=a.width;g.Y(this.B).D&&(g.U(this.K,"ytp-show-watch-later-title",a),this.updateValue("watch_later",a?"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435":""));g.sU(this.B,this.element,this.F&&this.J)};
1543g.h.QV=function(){this.C=!0;this.D=!1;OZ(this,1);g.Y(this.B).B&&tva(this.G,this.element);g.Y(this.B).Kb&&this.B.ya("WATCH_LATER_VIDEO_ADDED")};
1544g.h.YQ=function(){g.rU(this.B,this.element);var a=this.B.getVideoData().videoId,b=g.Y(this.B);b.gd?zva(this,a):g.ova(function(){DH({videoId:a});window.location.reload()},null,"wl_button",800,600,oN(b))};
1545g.h.RV=function(a,b){this.D=!1;var c="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);OZ(this,4,c);g.Y(this.B).Kb&&this.B.ya("WATCH_LATER_ERROR",c)};
1546g.h.SV=function(){this.D=this.C=!1;OZ(this,2);g.Y(this.B).Kb&&this.B.ya("WATCH_LATER_VIDEO_REMOVED")};
1547g.h.ZQ=function(){this.D=this.C=!1;OZ(this,2)};g.t(QZ,g.W);QZ.prototype.G=function(a){g.ZH(this,!g.X(a.state,2))};
1548QZ.prototype.D=function(){if(this.C.getVideoData().videoId){var a=this.C.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",a);this.B||(this.B=this.W("click",this.F))}else this.B&&(this.updateValue("url",null),this.Ia(this.B),this.B=null)};
1549QZ.prototype.F=function(a){var b=this.C.getVideoUrl(!g.$U(a),!1,!0,!0);DW(b,this.C,a)};g.t(RZ,dZ);g.h=RZ.prototype;g.h.Ub=function(){return this.D};
1550g.h.yA=function(){return this.o};
1551g.h.Go=function(a,b){b?this.L=a:this.L=null;this.ug()};
1552g.h.Ho=function(a,b){if(b)this.F.push(a);else for(var c=this.F.length;0<=c;c--)if(this.F[c]==a){this.F.splice(c,1);break}this.A.kc(64,0<this.F.length)};
1553g.h.Vk=function(){g.bU(this.api)&&g.cU(this.api);eZ(this);return!!this.L||dZ.prototype.Vk.call(this)};
1554g.h.ug=function(){var a=!this.Vk(),b=a&&g.bU(this.api)&&!g.X(g.ST(this.api),2);a?(this.Ca.show(),this.Ga.show()):(this.Ca.hide(),this.Ga.hide(),this.D.Aj(this.B.element));b?(this.M.D.show(),g.pG("iv-button-shown")):(b=this.M,g.pG("iv-button-hidden"),b.D.hide());this.o&&Oua(this.o,!a);dZ.prototype.ug.call(this)};
1555g.h.qq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Ph(a);d=d||this.o&&g.Zd(this.o.na(),b);if(null==c||!d){var k=g.Ph(b);var l=g.Mh(b,this.api.getRootNode())}c=(null==c?l.x+k.width/2:c)-f.width/2;d?(k=bZ(this.o),l=Pua(this.o),b=g.TT(this.api).Va().height,c=g.kd(c,k,k+l-f.width),f=b-(this.o.C.ld()?72:50)-f.height):g.Zd(this.B.element,b)?(k=g.TT(this.api).Va().width,c=g.kd(c,12,k-f.width-12),f=this.ld()?this.pa:this.va,"gvn"==g.Y(this.api).playerStyle&&(f+=20),g.Y(this.api).D&&
1556(f-=this.ld()?26:18)):(b=g.TT(this.api).Va(),c=g.kd(c,12,b.width-f.width-12),f=l.y>(b.height-k.height)/2?l.y-f.height-12:l.y+k.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
1557g.h.Vv=function(a){a&&(this.D.Aj(this.B.element),this.o&&this.D.Aj(this.o.na()));dZ.prototype.Vv.call(this,a)};
1558g.h.qv=function(a){var b=g.TT(this.api).Va();b=new g.ih(0,0,b.width,b.height);if(a||this.A.o&&!this.Vk())g.Y(this.api).wg&&(a=this.ld()?this.pa:this.va,b.top+=a,b.height-=a),this.o&&(b.height-=this.o.C.ld()?72:50);return b};
1559g.h.mQ=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435"),g.Y(this.api).da||(b.parentElement.insertBefore(this.U.element,b),b.parentElement.insertBefore(this.O.element,b.nextSibling))):g.lE(Error("Player not in DOM.")):(b.setAttribute("aria-label","\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube"),
1560g.YH(this.U),g.YH(this.O));this.bb();this.di()};
1561g.h.ld=function(){return this.api.isFullscreen()||!1};
1562g.h.Zp=function(a){this.Ya=!a;this.ug()};
1563g.h.bb=function(){var a=this.ld();this.D.F=a?1.5:1;g.U(this.H.element,"ytp-big-mode",a);this.ug();dZ.prototype.bb.call(this)};
1564g.h.di=function(){dZ.prototype.di.call(this);g.sU(this.api,this.Aa.element,!!this.J);if(this.aa){var a=this.aa,b=!!this.J;a.G=b;g.sU(a.B,a.element,a.C&&b)}this.ia&&(a=this.ia,b=!!this.J,a.J=b,g.sU(a.B,a.element,a.F&&b));if(!this.J)for(this.D.Aj(this.B.element),a=0;a<this.ga.length;a++)b=this.ga[a],XX(b)&&b.Rb()};
1565g.h.Pq=function(a){this.o&&Oua(this.o,this.Vk());this.ug();dZ.prototype.Pq.call(this,a)};
1566g.h.ST=function(){eU(this.api)&&this.A.kc(128,!1)};
1567g.h.rv=function(a,b){this.Z&&eva(this.Z,a,b)};
1568g.h.Jo=function(){return this.H.A?(this.H.Rb(),!0):this.F.length?(this.F[this.F.length-1].Rb(),!0):this.L?(this.L.Rb(),!0):dZ.prototype.Jo.call(this)};
1569g.h.IF=function(a,b){this.Ib=b;this.Ho(a,b);this.vG()};
1570g.h.vG=function(){var a=this.Ib||XX(this.H);this.la!=a&&(this.la=a,this.api.ya("onAutonavPauseRequest",this.la))};
1571g.h.CK=function(){SZ(this,this.api.getRootNode(),!0).focus()};
1572g.h.DK=function(){SZ(this,this.api.getRootNode(),!1).focus()};
1573g.h.Tm=function(){return this.o&&this.o.o};
1574g.h.vv=function(){this.A.kc(2,!0)};
1575g.h.XA=function(){this.G.hide()};
1576g.h.ZC=function(a){kZ(this.G,!MP(a))};g.t(g.TZ,g.yU);g.TZ.prototype.Dc=function(){return!1};
1577g.TZ.prototype.init=function(){this.o=new RZ(this.player);g.M(this,this.o);this.o.init();g.lU(this.player,"ux")};g.t(UZ,g.L);UZ.prototype.M=function(a){if(this.B==g.tU(this.o)){var b=this.J.find(function(b){return b.Cg==a});
1578Eva(this,b.target,b.Vw)}else{b=this.A.find(function(b){return b.xi.Cg==a});
1579var c=b.xi,d=c.target;c=c.Vw;d?Eva(this,d,c):Cva(this,b.Hk,c)}};
1580UZ.prototype.U=function(){if(this.D){var a=this.D;YZ(this);$Z(this,a);PR(g.tU(this.o).H,[a.xi.Cg])}};
1581UZ.prototype.O=function(a){if(0<RP(a,128)){a=g.q(this.A);for(var b=a.next();!b.done;b=a.next())if(b=b.value,$Z(this,b)){var c=b;break}c&&(c=c.Hk/1E3,a=new g.FP(8),b_(this,c,a))}};
1582UZ.prototype.X=function(){ZZ(this,!1);Iva(this);g.L.prototype.X.call(this)};g.t(e_,g.L);e_.prototype.get=function(a){c_(this);var b=this.o.find(function(b){return b.key==a});
1583return b?b.value:null};
1584e_.prototype.set=function(a,b,c){this.remove(a,!0);c_(this);a={key:a,value:b,expire:window.Infinity};c&&(0,window.isFinite)(c)&&(c*=1E3,a.expire=g.zG()+c);for(this.o.push(a);this.o.length>this.C;)c=this.o.shift(),f_(this,c,!0);d_(this)};
1585e_.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.o.find(function(b){return b.key==a});
1586c&&(f_(this,c,b),g.Sa(this.o,function(b){return b.key==a}),d_(this))};
1587e_.prototype.X=function(){var a=this;g.L.prototype.X.call(this);this.o.forEach(function(b){f_(a,b,!0)});
1588this.o=[]};g.ua(g_);var x_=g.y("ytPlayerUtilsVideoTagPoolInstance")||g_.getInstance();g.ta("ytPlayerUtilsVideoTagPoolInstance",x_,void 0);g.h=g_.prototype;g.h.eA=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++)Kva(this)}};
1589g.h.SK=function(a,b){if(this.o.length)return this.o.pop();var c=Kva(this,a,b);a||g.Ra(this.o,c);return c};
1590g.h.rW=function(a){if(a&&g.La(this.A,a)){a.src&&(nJ&&0<a.readyState&&(a.currentTime=Math.max(Yxa,0)),a.removeAttribute("src"),a.load(),a.o&&a.o.A&&(a.o&&a.o.dispose(),a.o=null));for(var b in GF)GF[b][0]==a&&g.KF(b);g.Ra(this.A,a);g.Ra(this.B,a)}};
1591g.h.RL=function(a){return this.o.length>=(a||1)};
1592g.h.IJ=function(){for(var a=this.B.length-1;0<=a;a--)h_(this,this.B[a]);this.o.length==this.A.length&&4<=this.o.length||(4>this.A.length?this.eA(4):(this.o=[],(0,g.D)(this.A,function(a){h_(this,a)},this)))};
1593g_.prototype.fillPool=g_.prototype.eA;g_.prototype.getTag=g_.prototype.SK;g_.prototype.releaseTag=g_.prototype.rW;g_.prototype.hasTags=g_.prototype.RL;g_.prototype.activateTags=g_.prototype.IJ;g.t(i_,g.L);i_.prototype.B=function(a){this.A=a[a.length-1].intersectionRatio};
1594i_.prototype.X=function(){g.L.prototype.X.call(this);this.A=null;this.o&&this.o.disconnect()};var Lva=uc(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),j_=!1;g.t(k_,g.W);g.h=k_.prototype;g.h.PL=function(){this.K=new g.ih(0,0,0,0);this.C=new g.ih(0,0,0,0)};
1595g.h.hq=function(a){g.Mq(this.element,arguments)};
1596g.h.zf=function(){if(this.B){var a=this.Va();if(!a.isEmpty()){var b=!g.sd(a,g.mh(this.C)),c=Sva(this);b&&(this.C.width=a.width,this.C.height=a.height);a=this.app.o;(c||b||a.ga)&&this.app.A.V("resize",this.Va())}}};
1597g.h.nQ=function(a,b){Pva(this,b)};
1598g.h.QL=function(a){a.getVideoData()&&Pva(this,a.getVideoData())};
1599g.h.Va=function(){var a=this.app.o,b=this.app.L.isFullscreen();if(b&&PE())return new g.rd(window.outerWidth,window.outerHeight);if(b||a.On){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.F&&this.F.media==a||(this.F=window.matchMedia(a));var c=this.F&&this.F.matches}if(c)return new g.rd(window.innerWidth,window.innerHeight)}else{if(!(0,window.isNaN)(this.D.width)&&!(0,window.isNaN)(this.D.height))return this.D.clone();if(this.da&&this.aa&&!this.app.isWidescreen())for(a=
16000;a<this.da.length;a++)if(b=this.da[a],b.query.matches)return new g.rd(b.size.width,b.size.height)}return new g.rd(this.element.clientWidth,this.element.clientHeight)};
1601g.h.vL=function(){this.B&&l_(this);q_(this)!=this.O&&this.zf()};
1602g.h.oQ=function(){l_(this)};
1603g.h.X=function(){this.L&&g.nG(this.L);Ova(this);g.W.prototype.X.call(this)};r_.prototype.click=function(a){var b=a.getAttribute("data-visual-id");g.La(this.o,a);g.La(this.B,b)&&g.La(this.C,a);this.A?(b=g.sH())&&a.visualElement&&g.dH(b,a.visualElement):g.pU(this,"onLogVeClicked",{id:b})};
1604r_.prototype.J=function(a){g.La(this.o,a);var b=a.getAttribute("data-visual-id");g.Ra(this.o,a);g.Ra(this.F,b);g.Ra(this.B,b);g.Ra(this.C,a);a.removeAttribute("data-visual-id")};
1605r_.prototype.pause=function(){this.G=!0};
1606r_.prototype.resume=function(){this.G=!1;for(var a=g.q(this.H),b=a.next();!b.done;b=a.next())b=b.value,g.pU(this,b.type,b.data);this.H.length=0};g.t(s_,g.W);g.t(u_,g.W);g.h=u_.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.Mv()};
1607g.h.hide=function(){g.W.prototype.hide.call(this);this.B.stop()};
1608g.h.stop=function(){this.B.stop()};
1609g.h.start=function(){this.B.isActive()||this.Mv()};
1610g.h.Mv=function(){var a=g.zG(),b=g.WT(this.C),c=this.C.getVideoData(),d=this.C.A,e=g.nU(d).na(),f=b.Bt(),k=b.ha,l=8*KS(k,"bandwidth")/1024,m=KS(k,"networkactivity")/1024,n=KS(k,"bufferhealth");if(b.J){var p=b.J.o.o+"/"+LJ(nT(b));p=p+"/"+b.J.Uf()}else p="";var r=g.tN();d=g.$T(d).MM;var v=c.Pa&&!c.Pa.o?"display:none":"",z;if((z=c.clientPlaybackNonce)&&16==z.length){for(var E=0,I="",R=0;10>R;R++)if(E=(E<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(z.charAt(R)),4==R%
16115){for(var T="",Pa=0;6>Pa;Pa++)T="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(E&31)+T,E>>=5;I+=T}z=I.substr(0,4)+" "+I.substr(4,4)+" "+(""+I.substr(8,4))}else z="";f={video_id_and_cpn:c.videoId+" / "+z,codecs:"",dropped_frames:f.totalVideoFrames?""+(f.droppedVideoFrames||0)+"/"+f.totalVideoFrames:"-",stream_host:b.D?b.D.Oa:"",dimensions:e.clientWidth+"x"+e.clientHeight+(1<r?"*"+r:""),bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,host_style:v,
1612bandwidth_style:v,network_activity_style:v,network_activity_bytes:m.toFixed(0)+" KB",shader_info:d,shader_info_style:d?"":"display:none",playback_categories:""};l=this.C.L.getVolume();m=tP(c);l=Math.round(l)+"% / "+Math.round(l*m)+"%";m=c.relativeLoudness.toFixed(1);(0,window.isFinite)(m)&&(l+=" (content loudness "+m+"dB)");f.volume=l;f.resolution=e.videoWidth+"x"+e.videoHeight;if(c.Fa){e=c.Fa.video.fps;1<e&&(f.resolution+="@"+e);(e=g.lT(b))&&e.video&&(f.resolution+=" / "+e.video.width+"x"+e.video.height,
16131<e.video.fps&&(f.resolution+="@"+e.video.fps));f.codecs=Uva(c.Fa);if(e=c.Gc)e=c.Fa,e=!(e.audio&&e.video);e&&(f.codecs+=" / "+Uva(c.Gc));c.Fa.video.A||c.Fa.video.primaries?(e=c.Fa.video.A||"unknown","smpte2084"==e?e+=" (PQ)":"arib-std-b67"==e&&(e+=" (HLG)"),f.color=e+" / "+(c.Fa.video.primaries||"unknown"),f.color_style=""):f.color_style="display:none"}if(c.Ep)f.live_mode="Post-Live"+(dP(c)?" Manifestless":"");else if(e=c.La,f.live_latency_style=e?"":"display:none",f.live_mode_style=e?"":"display:none",
1614e){e=KS(k,"livelatency");f.live_latency_secs=e.toFixed(2)+"s";l=dP(c)?"Manifestless, ":"";m="Uncertain";if(0<=e&&120>e)if(c.latencyClass&&"UNKNOWN"!=c.latencyClass)switch(c.latencyClass){case "NORMAL":m="Optimized for Normal Latency";break;case "LOW":m="Optimized for Low Latency";break;case "ULTRALOW":m="Optimized for Ultra Low Latency";break;default:m="Unknown Latency Setting"}else m=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";f.live_mode=l+m}sT(b)&&(f.playback_categories+=
1615"Gapless ");f.playback_categories_style=f.playback_categories?"":"display:none";t_(this.D,JS(k,"bandwidth"));t_(this.H,JS(k,"networkactivity"));t_(this.G,JS(k,"livelatency"));t_(this.F,JS(k,"bufferhealth"));this.update(f);a=25<g.zG()-a?5E3:500;this.B.start(a)};g.t(v_,g.L);g.h=v_.prototype;g.h.CR=function(){w_(this)||g.L_(this,5)};
1616g.h.hU=function(a){w_(this)||(uwa(this),MP(a.B)&&pX(this))};
1617g.h.getVideoData=function(){return this.B.getVideoData()};
1618g.h.Qd=function(){var a=this.D,b={};a.A&&g.Da(b,a.A.YN());(a=this.D.C)&&g.Da(b,a.lv());b.fs=this.A.isFullscreen();b.volume=Math.round(this.L.getVolume());b.mos=this.L.isMuted()?1:0;if(this.o.experiments.o("html5_enable_embedded_player_visibility_signals")&&this.o.o&&(this.fd&&(a=this.fd,a=null==a.A?null:Math.round(100*a.A)/100,null!=a&&(b.inview=a)),a=this.H.Va(),0<a.height&&0<a.width)){a=[Math.round(a.height),Math.round(a.width)];var c=g.tN();1<c&&a.push(c);b.size=a.join(":")}return b};
1619g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3==hU(this))return g.UT(this.D).getCurrentTime();var c=g.WT(this,a);return c?b?(c=ewa(this,c),O_(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
1620g.h.getDuration=function(a,b){var c=g.WT(this,a);return c?void 0===b||b?(c=G_(this,c),O_(this,c.getDuration(),c)):c.getDuration():0};
1621g.h.bc=function(a){a=g.WT(this,a);if(!a)return 0;a=G_(this,a);return O_(this,a.bc(),a)};
1622g.h.xN=function(a){switch(a.type){case "loadedmetadata":RO("fvb","")||(0,g.iQ)("fvb",void 0,"");SO("fvb");this.wb.start();break;case "loadstart":RO("gv","")||(0,g.iQ)("gv",void 0,"");SO("gv");break;case "progress":case "timeupdate":!RO("l2s","")&&2<=aJ(a.target.Tf())&&(0,g.iQ)("l2s",void 0,"");break;case "playing":g.VH&&this.wb.start();if(g.kN(this.o))a=!1;else{var b=this.D.D;a="none"==this.F.Im("display")||0==this.F.Gm().nf();var c=q_(this.H),d=this.B.getVideoData(),e=!WZ(this,"web_player_music_reload_hidden_killswitch")&&
1623"WEB_REMIX"==this.o.A.c;d=$O(d);b=!c||b||e||d||this.o.kh;a=a&&!b}a&&(this.B.Hb("hidden","1",!0),this.getVideoData().rg||(WZ(this,"html5_new_elem_on_hidden")?(this.getVideoData().rg=1,this.hE(null),xT(g.WT(this))):d0(this,"hidden",!0)))}};
1624g.h.hT=function(a,b){this.A.ya("onLoadProgress",b)};
1625g.h.mV=function(){this.A.V("playbackstalledatstart")};
1626g.h.yN=function(a,b){this.A.ya("onVideoProgress",b)};
1627g.h.zS=function(){this.A.ya("onDompaused")};
1628g.h.vU=function(){this.L.V("progresssync")};
1629g.h.ER=function(a){if(1==hU(this)){0<RP(a,1)&&!g.X(a.state,64)&&kX(this).La&&wT(this.C)&&1<this.A.Lc()&&N_(this,1,!0);0<RP(a,2)&&C_(this);if(g.X(a.state,128)){var b=a.state;V_(this);b=b.o;this.A.ya("onError",Jxa[b.errorCode]||5);this.A.ya("onDetailedError",b);6048E5<g.zG()-this.o.se&&this.A.ya("onReloadRequired")}a.state.rb()&&!g.OP(a.state)&&!RO("pbresume","ad_to_video")&&RO("_start","ad_to_video")&&(b=this.getVideoData(),(0,g.jQ)("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&(0,g.jQ)("docid",
1630b.videoId,"ad_to_video"),b.playbackId&&(0,g.jQ)("plid",b.playbackId,"ad_to_video"),(0,g.iQ)("pbresume",void 0,"ad_to_video"));this.A.V("applicationplayerstatechange",a)}};
1631g.h.GE=function(a){3!=hU(this)&&this.A.V("presentingplayerstatechange",a)};
1632g.h.vN=function(a){F_(this,PP(a.state));g.X(a.state,1024)&&this.A.app.aa&&(jI(this,{muted:!1,volume:this.O.volume},!1),M_(this,!1))};
1633g.h.oU=function(a){a.state.rb()&&!g.OP(a.state)&&(Jta(this.D),g.ZF(this.qd))};
1634g.h.AR=function(a){"newdata"==a&&owa(this)};
1635g.h.GR=function(){this.A.ya("onPlaybackAudioChange",this.A.getAudioTrack().Lb.name)};
1636g.h.JV=function(a){var b=this.B.getVideoData();a==b&&this.A.ya("onPlaybackQualityChange",a.Fa.video.quality)};
1637g.h.Nu=function(a,b,c){WZ(this,"html5_app_oauth_update_killswitch")||b!=this.C||(this.o.Ua=c.oauthToken);if("newdata"==a)zX(this.D,2),this.A.V("videoplayerreset",b);else{if(!this.F)return;if("dataloaded"==a)if(this.B==this.C){if(b.F.eh(c.sc),!this.C.B.isError()){var d=w_(this);kX(this).Ob();d&&g.L_(this,6);fwa(this);d||(d=this.D.C)&&!d.created&&this.D.o.getVideoData(1).adModule&&d.create()}}else fwa(this);if(1==b.getPlayerType()&&(this.o.K&&ywa(this),this.getVideoData().La&&!this.o.no&&g.YS(this.C,
1638"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),c.Ob())){if(c.yq||c.Ju||c.Ne.focEnabled||c.Ne.rmktEnabled||this.getVideoData().Oy)d=this.getVideoData(),S_(this,"part2viewed",1,0x8000000000000),S_(this,"engagedview",Math.max(1,1E3*d.Sf),0x8000000000000),d.La||(d=1E3*d.lengthSeconds,S_(this,"videoplaytime25",.25*d,d),S_(this,"videoplaytime50",.5*d,d),S_(this,"videoplaytime75",.75*d,d),S_(this,"videoplaytime100",d,0x8000000000000),S_(this,"conversionview",d,0x8000000000000));c.chapterMarkers.length&&
1639qwa(this)}this.A.V("videodatachange",a,c,b.getPlayerType())}this.o.Kb&&this.A.ya("onVideoDataChange",{type:a,playertype:b.getPlayerType()});a=c.clientScreenNonce;c=c.rootVeType;if(a&&c){if(b=this.ia,b.A?a!=g.sH():a!=b.D)b.A?(uH(a,c),Tva(b)):(g.pU(b,"onScreenChanged",{csn:a,root_ve_type:c}),b.B.length&&g.pU(b,"onLogVesShown",{ids:b.B}),b.F=g.Ua(b.B),b.D=a)}else Tva(this.ia)};
1640g.h.wo=function(){I_(this,null);this.A.ya("onPlaylistUpdate")};
1641g.h.LD=function(a){var b=a.getId(),c=kX(this);if("part2viewed"==b)c.TE&&g.YE(c.TE),c.Ju&&g.YE(c.Ju);else if("conversionview"==b){var d=this.C;d.C&&ena(d.C)}else"engagedview"==b&&g.YE(c.yq);if(c.zq){d=c.zq;var e={label:a.getId()};if(this.o.experiments.o("send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.AE(d,e);g.YE(d)}switch(b){case "videoplaytime25":c.SB&&g.YE(c.SB);c.VE&&g.YE(c.VE);break;case "videoplaytime50":c.TB&&g.YE(c.TB);c.WE&&
1642g.YE(c.WE);break;case "videoplaytime75":c.UB&&g.YE(c.UB);c.XE&&g.YE(c.XE);break;case "videoplaytime100":c.RB&&g.YE(c.RB),c.UE&&g.YE(c.UE)}(b=this.getVideoData().Oy)&&b[a.getId()]&&(c=b[a.getId()],g.YE(c,void 0,KH(c)||LH(c)||JH(c)),b=b[a.getId()+"gaia"],g.YE(b,void 0,KH(b)||LH(b)||JH(b)));this.C.H.C(a)};
1643g.h.isPeggedToLive=function(a,b){b=void 0===b?!1:b;var c=g.WT(this,a);return c?wT(G_(this,c),void 0,b):!1};
1644g.h.wN=function(a,b){var c=a.getVideoData();if(1==this.U||2==this.U)c.startSeconds=b;2==this.U?K_(this):this.A.V("seekto",b)};
1645g.h.sR=function(){this.A.V("airplayactivechange")};
1646g.h.tR=function(){this.A.V("airplayavailabilitychange")};
1647g.h.NR=function(){this.A.V("beginseeking")};
1648g.h.ES=function(){this.A.V("endseeking")};
1649g.h.getStoryboardFormat=function(a){return(a=g.WT(this,a))?G_(this,a).getVideoData().getStoryboardFormat():null};
1650g.h.Ve=function(a){return(a=g.WT(this,a))?G_(this,a).getVideoData().Ve():null};
1651g.h.mi=function(){if(this.K){var a=this.K.getVideoData(),b=this.B.getVideoData();if(a.Pa&&b.Pa)if(Ava(this.B,this.K,XZ(this),this.o)){if(this.F.H=!0,a=this.F.Nj(),a.o){this.B.getVideoData();this.K.getVideoData();T_(this);b=this.B.ia.o;var c=b+XZ(this)/1E3;TS(this.B,b,c);TS(this.K,c,window.Infinity);rT(this.K,a);this.K.Hb("gapless",this.B.getVideoData().clientPlaybackNonce)}}else T_(this)}else T_(this)};
1652g.h.zU=function(){Dva(this)};
1653g.h.VU=function(){"picture-in-picture"==this.F.na().webkitPresentationMode?HS(this.J,!0):HS(this.J,!1)};
1654g.h.dw=function(){var a=this.G.Qa();if(a){var b=this.getVideoData();b.jn||!this.oa?(b=b.Eh,a=a_(this,a),b&&W_(this,a)):X_(this,a)}this.A.ya("onPlaylistUpdate")};
1655g.h.yR=function(a){this.A.ya("onCueRangeEnter",a.getId())};
1656g.h.zR=function(a){this.A.ya("onCueRangeExit",a.getId())};
1657g.h.DR=function(){hU(this);this.pa||(this.pa=xO(this.VD,this));ina(this.la,this.B.getVideoData(),Eta(this));H_(this)&&this.o.o&&"embedded"==oP(kX(this))&&this.re&&.01>Math.random()&&iI(this.wa,"autoplayTriggered",{intentional:this.Md});this.re=!1;var a=g.sH();a&&iI(this.wa,"playbackAssociated",{cpn:this.getVideoData().clientPlaybackNonce,csn:a})};
1658g.h.YS=function(){this.L.V("internalAbandon")};
1659g.h.VD=function(a){a=a.o;if(!(0,window.isNaN)(a)&&0<a&&this.C){var b=this.C;b.C&&0<a&&(b.C.A.A.aft=[a])}};
1660g.h.DT=function(){this.Uv()};
1661g.h.ET=function(){this.Uv()};
1662g.h.Uv=function(){this.o.Kb&&this.B?this.A.ya("onApiChange",this.B.getPlayerType()):this.A.ya("onApiChange")};
1663g.h.AT=function(){var a=this.F;a={volume:g.kd(Math.floor(100*a.getVolume()),0,100),muted:a.Qp()};a.muted||M_(this,!1);this.O=g.bc(a);this.A.ya("onVolumeChange",a)};
1664g.h.MS=function(){c0(this,a0(this)?1:0);var a=g.zF();vwa(this,!!a&&g.Zd(this.H.element,a))};
1665g.h.isFullscreen=function(){return this.J.isFullscreen()};
1666g.h.OU=function(){2!=this.J.C&&c0(this,a0(this)?1:0);this.o.hi&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.F&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.F.Fm()};
1667g.h.gT=function(a){3!=hU(this)&&this.A.V("liveviewshift",a)};
1668g.h.isWidescreen=function(){return this.pd};
1669g.h.NU=function(a){var b=g.o_(this.H);g.kh(this.qe,b)||(this.qe=b,this.B&&yT(this.B),this.C&&this.C!=this.B&&yT(this.C),1==this.J.C&&this.Ga&&vwa(this,!0));this.ed&&g.sd(this.ed,a)||(this.A.V("appresize",a),this.ed=a)};
1670g.h.Vc=function(){return this.L.Vc()};
1671g.h.gV=function(){hU(this);d0(this,"signature",void 0,!0)};
1672g.h.hE=function(){A_(this);z_(this)};
1673g.h.LU=function(a){rT(a,this.F.Nj())};
1674g.h.lS=function(){this.A.ya("CONNECTION_ISSUE")};
1675g.h.uN=function(a){this.A.V("heartbeatparams",a)};
1676g.h.RT=function(){var a=g.WT(this);a&&g.Tqa(a,!eU(this.A))};
1677g.h.jT=function(){this.A.ya("onLoadedMetadata")};
1678g.h.BS=function(){this.A.ya("onDrmOutputRestricted")};
1679g.h.X=function(){this.D.dispose();this.Ya.dispose();this.K&&this.K.dispose();this.C.dispose();A_(this);g.lf(g.Ob(this.rd),this.G);g.wO(this.pa);this.pa=0;g.L.prototype.X.call(this)};
1680var r1={};g.ta("yt.player.Application.create",function(a,b){try{var c=g.w(a)?a:"player"+g.Ba(a),d=r1[c];if(d){try{d.dispose()}catch(f){g.lE(f)}r1[c]=null}var e=new v_(a,b);g.jf(e,function(){r1[c]=null});
1681return r1[c]=e}catch(f){throw g.lE(f),f.stack;}},void 0);
1682var eya=g.y("ytcsi.tick");eya&&eya("pe");f0.prototype.o=4;f0.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
1683f0.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(f0.BYTES_PER_ELEMENT=4,f0.prototype.BYTES_PER_ELEMENT=f0.prototype.o,f0.prototype.set=f0.prototype.set,f0.prototype.toString=f0.prototype.toString,g.ta("Float32Array",f0,void 0));g0.prototype.o=8;g0.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
1684g0.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{g0.BYTES_PER_ELEMENT=8}catch(a){}g0.prototype.BYTES_PER_ELEMENT=g0.prototype.o;g0.prototype.set=g0.prototype.set;g0.prototype.toString=g0.prototype.toString;g.ta("Float64Array",g0,void 0)};})(_yt_player);