You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
651 lines
134 KiB
JavaScript
651 lines
134 KiB
JavaScript
7 years ago
|
(function(g){var window=this;var wqa=function(a,b,c,d){var e=a||window.document;return g.CF(e,b,function(a){var b=g.Ee(a.target,function(a){return a===e||d(a)},!0);
|
||
|
b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})},H3=function(a,b,c,d){return wqa(a,b,c,function(a){return g.Gp(a,d)})},I3=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);
|
||
|
var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+e},xqa=function(a){var b=g.OU(a.g).Za(),b=new g.Mg(0,0,b.width,b.height);
|
||
|
if(a.B.o&&!a.Jj()){if(g.Y(a.g).Qc){var c=a.ee()?69:48;b.top+=c;b.height-=c}a.A&&(b.height-=a.A.A.ee()?72:50)}return b},J3=function(a){a.Y("cardstatechange",g.XU(a)&&g.YU(a)?1:0)},K3=function(a){var b={};
|
||
|
void 0!==a.o?b.trackingParams=a.o:(b.veType=a.B,null!=a.A&&(b.veCounter=a.A),null!=a.g&&(b.elementIndex=a.g));return b},yqa=function(a,b,c,d){c=(0,g.y)(c,d||a.o);
|
||
|
b=H3(b,"change",c,"iv-card-poll-choice-input");a.g.push(b)},zqa=function(a,b,c){c=(0,g.y)(c,a.o);
|
||
|
b=g.KF(b,"mouseleave",c);a.g.push(b);return b},Aqa=function(a){if(window.document.createEvent){var b=window.document.createEvent("HTMLEvents");
|
||
|
b.initEvent("click",!0,!0);a.dispatchEvent(b)}else b=window.document.createEventObject(),a.fireEvent("onclick",b)},Bqa=function(a,b){var c=!1,d=a.subscribe("ROOT_MENU_REMOVED",function(a){c||(c=!0,this.Td(d),b.apply(void 0,arguments))},a)},L3=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;
|
||
|
var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Cqa?Cqa[c]:I3(a,c)},M3=function(a,b){var c=a.currentStyle?a.currentStyle[b]:null;
|
||
|
return c?I3(a,c):0},Dqa=function(a,b){g.Ne.call(this,a);
|
||
|
this.x=b.o[0];this.y=b.o[1];this.z=b.o[2];this.duration=b.duration;this.progress=b.progress;this.fps=b.F;this.state=b.g},N3=function(a){a=g.za(a);
|
||
|
delete g.xt[a];g.Ub(g.xt)&&g.vt&&g.vt.stop()},O3=function(a){return"rtl"==g.fh(a,"direction")},Eqa=function(a){var b={};
|
||
|
a.analyticsChannelData&&(b.analyticsDatas=(0,g.H)(a.analyticsChannelData,function(a){return{tabName:a.tabName,cardName:a.cardName,isChannelScreen:a.isChannelScreen,insightId:a.insightId,externalChannelId:a.externalChannelId,externalContentOwnerId:a.externalContentOwnerId}}));
|
||
|
return{playbackData:{clientPlaybackNonce:a.clientPlaybackNonce},analyticsChannelData:b,externalLinkData:a.externalLinkData}},Fqa=function(a,b){return(b&8&&O3(a)?b^4:b)&-9},P3=function(a,b,c,d){g.Ps.call(this);
|
||
|
if(!g.ta(a)||!g.ta(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.A=a;this.G=b;this.duration=c;this.D=d;this.o=[];this.progress=this.F=0;this.C=null},Hqa=function(a,b){b<a.startTime&&(a.endTime=b+a.endTime-a.startTime,a.startTime=b);
|
||
|
a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<a.progress&&(a.progress=1);a.F=1E3/(b-a.C);a.C=b;Gqa(a,a.progress);1==a.progress?(a.g=0,N3(a),a.Fd(),a.nl()):a.yb()&&a.ws()},Gqa=function(a,b){g.va(a.D)&&(b=a.D(b));
|
||
|
a.o=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.o[c]=(a.G[c]-a.A[c])*b+a.A[c]},Iqa=function(a){return new g.Mg(a.left,a.top,a.right-a.left,a.bottom-a.top)},Q3=function(a,b,c){b.eventTimeMs=Math.round((0,g.sG)());
|
||
|
b.lactMs=g.vG();c&&(b.clientData=Eqa(c));g.nG({endpoint:"log_interaction",UA:b},a)},Jqa=function(a,b,c,d,e,f,k){a=a.clone();
|
||
|
var l=Fqa(b,c);c=g.th(b);k=k?k.clone():c.clone();a=g.hD(a,k,l,d,e,f);if(a.status&496)return a.status;g.hh(b,g.Sg(a.rect));k=g.Qg(a.rect);g.Rd(c,k)||(d=k,f=g.ae(g.Vd(g.Td(b)).g),!g.sc||g.kc("10")||f&&g.kc("8")?(b=b.style,g.ch?b.MozBoxSizing="border-box":g.ee?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(d.width,0)+"px",b.height=Math.max(d.height,0)+"px"):(e=b.style,f?(g.sc?(l=M3(b,"paddingLeft"),k=M3(b,"paddingRight"),c=M3(b,"paddingTop"),f=M3(b,"paddingBottom"),f=new g.Kg(c,
|
||
|
k,f,l)):(l=g.eh(b,"paddingLeft"),k=g.eh(b,"paddingRight"),c=g.eh(b,"paddingTop"),f=g.eh(b,"paddingBottom"),f=new g.Kg((0,window.parseFloat)(c),(0,window.parseFloat)(k),(0,window.parseFloat)(f),(0,window.parseFloat)(l))),g.sc&&!g.lc(9)?(l=L3(b,"borderLeft"),k=L3(b,"borderRight"),c=L3(b,"borderTop"),b=L3(b,"borderBottom"),b=new g.Kg(c,k,b,l)):(l=g.eh(b,"borderLeftWidth"),k=g.eh(b,"borderRightWidth"),c=g.eh(b,"borderTopWidth"),b=g.eh(b,"borderBottomWidth"),b=new g.Kg((0,window.parseFloat)(c),(0,window.parseFloat)(k),
|
||
|
(0,window.parseFloat)(b),(0,window.parseFloat)(l))),e.pixelWidth=d.width-b.left-f.left-f.right-b.right,e.pixelHeight=d.height-b.top-f.top-f.bottom-b.bottom):(e.pixelWidth=d.width,e.pixelHeight=d.height)));return a.status},R3=function(a,b,c,d,e){P3.call(this,b,c,d,e);
|
||
|
this.element=a},Mqa=function(a,b,c){if(!(a.nodeName in Kqa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);
|
||
|
else if(a.nodeName in Lqa)b.push(Lqa[a.nodeName]);else for(a=a.firstChild;a;)Mqa(a,b,c),a=a.nextSibling},Nqa=function(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Nqa(a,b,c,d))return!0;
|
||
|
a=a.nextSibling}return!1},S3=function(a,b,c){this.id=a;
|
||
|
this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.autoOpen=b.auto_open||!1;this.Sd=b.session_data||{};this.Xb=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={rJ:a.impression,click:a.click,close:a.close,GS:a.teaser_impression,vt:a.teaser_click};b=b.tracking_params||{};this.C=new g.ZF(b.card);this.F=new g.ZF(b.teaser);this.D=new g.ZF(b.icon)},T3=function(a){return(a=g.Wd(a))?g.wh(a)&&!g.Gp(a,
|
||
|
"hid"):!1},Oqa=function(){var a=g.PD("ROOT_VE_TYPE",void 0);
|
||
|
return a?new g.ZF(void 0,a,void 0):null},Pqa=function(a,b,c){g.$E("interaction_logging_on_gel_web")?c.forEach(function(c){g.wG("visualElementShown",{csn:b,
|
||
|
ve:K3(c),eventType:1},a)}):(c=(0,g.H)(c,function(a){return K3(a)}),Q3(a,{visibilityUpdate:{csn:b,
|
||
|
visualElements:c}}))},Qqa=function(a,b,c,d){b={csn:b,
|
||
|
parentVisualElement:K3(c),visualElements:(0,g.H)(d,function(a){return K3(a)})};
|
||
|
Q3(a,{attachChild:b},void 0)},Rqa=function(){g.S(window.document.body,"hide-players",!1);
|
||
|
(0,g.G)(g.Yd("preserve-players"),function(a){g.Ip(a,"preserve-players")})},U3=function(a,b){a=g.Wd(a);
|
||
|
b=g.Wd(b);return!!g.Ee(a,function(a){return a===b},!0,void 0)},V3=function(a){var b=a.__yt_uid_key;
|
||
|
b||(b=(0,g.Xpa)(),a.__yt_uid_key=b);return b},Sqa=function(a,b){var c=g.Xd(window.document,a,null,b);
|
||
|
return c.length?c[0]:null},W3=function(a,b){a&&(a.dataset?delete a.dataset[g.oF(b)]:a.removeAttribute("data-"+b))},X3=function(a,b,c,d,e,f,k){var l;
|
||
|
if(l=c.offsetParent){var m="HTML"==l.tagName||"BODY"==l.tagName;if(!m||"static"!=g.fh(l,"position")){var n=g.lh(l);m||(m=(m=O3(l))&&g.ch?-l.scrollLeft:!m||g.SN&&g.kc("8")||"visible"==g.fh(l,"overflowX")?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft,n=g.Pd(n,new g.Nd(m,l.scrollTop)))}}l=n||new g.Nd;n=g.uh(a);(m=g.mh(a))&&g.Pg(n,Iqa(m));var m=g.Vd(a),q=g.Vd(c);if(m.g!=q.g){var r=m.g.body,q=g.oh(r,g.Ie(q)),q=g.Pd(q,g.lh(r));!g.sc||g.lc(9)||g.ae(m.g)||(q=g.Pd(q,g.de(m.g)));n.left+=q.x;n.top+=
|
||
|
q.y}a=Fqa(a,b);b=n.left;a&4?b+=n.width:a&2&&(b+=n.width/2);b=new g.Nd(b,n.top+(a&1?n.height:0));b=g.Pd(b,l);e&&(b.x+=(a&4?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var w;k&&(w=g.mh(c))&&(w.top-=l.y,w.right-=l.x,w.bottom-=l.y,w.left-=l.x);return Jqa(b,c,d,f,w,k,void 0)},Tqa=function(a){return 3*a*a-2*a*a*a},Uqa=function(a){return Math.pow(a,3)},Y3=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");
|
||
|
R3.apply(this,arguments)},Z3=function(a,b,c,d,e,f,k){this.date=g.oa(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,k||0):new Date(a&&a.getTime?a.getTime():(0,g.F)())},$3=function(a,b){return g.ppa&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())},a4=function(a,b){this.start=a<b?a:b;
|
||
|
this.end=a<b?b:a},Yqa=function(a){var b=g.fh(a,"fontSize");
|
||
|
var c=(c=b.match(Vqa))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(g.sc){if(String(c)in Wqa)return I3(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in Xqa)return a=a.parentNode,c=g.fh(a,"fontSize"),I3(a,b==c?"1em":b)}c=g.he("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;g.qe(c);return b},b4=function(a){if(g.fpa&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,
|
||
|
"\n");
|
||
|
else{var b=[];Mqa(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");g.fpa||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},c4=function(a,b){var c=[];
|
||
|
return Nqa(a,b,c,!0)?c[0]:void 0},Zqa=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;
|
||
|
return!0},d4=function(a,b){g.rf.call(this);
|
||
|
this.Ck=a;this.Dq=b;this[g.Se]=!1},h4=function(a,b,c,d){d4.call(this,a,b);
|
||
|
a=this.Dq;b=this.ra();c?(b.setAttribute("stroke",c.g),b.setAttribute("stroke-opacity",c.o),c=c.Eb(),g.u(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/$qa(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Dq;a=this.ra();if(d instanceof e4)a.setAttribute("fill",d.J),a.setAttribute("fill-opacity",d.K);else if(d instanceof f4){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.g+"-"+d.o;var e=b in c.o?c.o[b]:null;if(!e){var e=g4(c,"linearGradient",
|
||
|
{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.g;g.oa(d.A)&&(f+=";stop-opacity:"+d.A);f=g4(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.o;g.oa(d.B)&&(f+=";stop-opacity:"+d.B);d=g4(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=ara(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")},bra=function(){},cra=function(a,b){d4.call(this,a,b)},i4=function(){this.sb=[];
|
||
|
this.Na=[];this.pe=[]},dra=function(a,b,c){0==g.Za(a.sb)?a.pe.length-=2:(a.sb.push(0),a.Na.push(1));
|
||
|
a.pe.push(b,c);a.Ld=a.Bf=[b,c]},j4=function(a,b,c,d){var e=a.Ld[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Ld[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);
|
||
|
a.sb.push(3);a.Na.push(1);a.pe.push(b,c,d,90,e,f);a.Al=!1;a.Ld=[e,f]},fra=function(a,b){for(var c=a.pe,d=0,e=0,f=a.sb.length;e<f;e++){var k=a.sb[e],l=era[k]*a.Na[e];
|
||
|
b(k,c.slice(d,d+l));d+=l}},gra=function(a,b,c,d){h4.call(this,a,b,c,d)},k4=function(a,b,c){this.A=a;
|
||
|
this.g=b;this.o=null==c?1:c},l4=function(a,b,c,d,e){g.Hu.call(this,e);
|
||
|
this.width=a;this.height=b;this.A=c||null;this.O=d||null},$qa=function(a){var b=a.Xi();
|
||
|
return b?b.width/(a.A?new g.Qd(a.A,a.O):a.Xi()).width:0},f4=function(a,b,c,d,e,f,k,l){this.C=a;
|
||
|
this.F=b;this.D=c;this.G=d;this.g=e;this.o=f;this.A=g.t(k)?k:null;this.B=g.t(l)?l:null},e4=function(a,b){this.J=a;
|
||
|
this.K=null==b?1:b},m4=function(a,b){d4.call(this,a,b)},hra=function(a,b,c,d){h4.call(this,a,b,c,d)},n4=function(a,b,c,d,e){l4.call(this,a,b,c,d,e);
|
||
|
this.o={};this.P=g.ee&&!g.kc(526);this.K=new g.cm(this)},g4=function(a,b,c){a=a.J.g.createElementNS("http://www.w3.org/2000/svg",b);
|
||
|
c&&ira(a,c);return a},ira=function(a,b){for(var c in b)a.setAttribute(c,b[c])},o4=function(a,b,c,d){b=g4(a,"path",{d:jra(b)});
|
||
|
c=new hra(b,a,c,d);a.C.ra().appendChild(c.ra())},jra=function(a){var b=[];
|
||
|
fra(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var c=d[3];b.push("A",d[0],d[1],0,180<Math.abs(c)?1:0,0<c?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
|
||
|
return b.join(" ")},ara=function(a,b,c){if(b in a.o)return a.o[b];
|
||
|
var d="_svgdef_"+kra++;c.setAttribute("id",d);a.o[b]=d;a.G.appendChild(c);return d},lra=function(){p4||(p4=new g.eg(400),p4.start());
|
||
|
return p4},r4=function(a){var b=g.QG()||"";
|
||
|
Pqa(q4(),b,a)},s4=function(a){var b=g.QG()||"",c=q4();
|
||
|
Q3(c,{click:{csn:b,visualElement:K3(a)}},void 0)},q4=function(){return g.$E("enable_youtubei_innertube")?g.AG:g.K2},mra=function(a,b){function c(a){return a.baseUrl}
|
||
|
function d(a){if(a){if(a.simpleText)return a.simpleText;if(a.runs)return(0,g.H)(a.runs,function(a){return a.text}).join("")}}
|
||
|
function e(a){if(a){var b=[];a.videoId&&b.push("v="+a.videoId);a.playlistId&&b.push("list="+a.playlistId);a.startTimeSeconds&&b.push("t="+a.startTimeSeconds);return"/watch?"+b.join("&")}}
|
||
|
var f={};f.startMs=(0,window.parseInt)(a.startMs,10);f.impressionUrls=(0,g.H)(a.impressionUrls||[],c);f.skip=a.skipEndscreen;f.visualElement=new g.ZF(a.trackingParams);var k=(0,g.H)(a.elements||[],function(a,f){var k=a.endscreenElementRenderer;if(!k)return null;var l={},m=k.style,w=k.endpoint||{};l.id="element-"+f;l.type=m;l.title=d(k.title);l.metadata=d(k.metadata);l.callToAction=d(k.callToAction);l.xw=k.image;l.left=(0,window.parseFloat)(k.left);l.width=(0,window.parseFloat)(k.width);l.top=(0,window.parseFloat)(k.top);
|
||
|
l.aspectRatio=(0,window.parseFloat)(k.aspectRatio);l.startMs=(0,window.parseInt)(k.startMs,10);l.endMs=(0,window.parseInt)(k.endMs,10);l.clickUrls=(0,g.H)(w.loggingUrls||[],c);l.Yl=g.Qb(k,"title","accessibility","accessibilityData","label");l.impressionUrls=(0,g.H)(k.impressionUrls||[],c);l.wI=(0,g.H)(k.hovercardShowUrls||[],c);l.Sd={itct:k.trackingParams};l.visualElement=new g.ZF(k.trackingParams);if("VIDEO"==m)l.targetUrl=e(w.watchEndpoint),l.An=!1,l.wo=b,l.videoDuration=d(k.videoDuration);else if("PLAYLIST"==
|
||
|
m)l.targetUrl=e(w.watchEndpoint),l.An=!1,l.wo=b,l.playlistLength=d(k.playlistLength);else if("CHANNEL"==m){if(m=g.Qb(w,"browseEndpoint","browseId"))l.channelId=m,l.targetUrl="/channel/"+m;l.An=!1;l.wo="new";l.isSubscribe=!!k.isSubscribe;if(l.isSubscribe){a:{if(m=k.hovercardButton)if(m=m.subscribeButtonRenderer){var w=d(m.unsubscribedButtonText),A=d(m.subscribedButtonText);if(m.subscribed){var C=d(m.subscriberCountWithUnsubscribeText);var B=d(m.subscriberCountText)}else C=d(m.subscriberCountText),
|
||
|
B=d(m.subscriberCountWithSubscribeText);var M=null;if(k.signinEndpoint&&(M=g.Qb(k,"signinEndpoint","webNavigationEndpointData","url"),!M)){k=void 0;break a}if(w&&(A||M)){k={subscribed:m.subscribed,subscribeText:w,subscribeCount:C,unsubscribeText:A,unsubscribeCount:B,enabled:m.enabled,signinUrl:M,classic:k.useClassicSubscribeButton};break a}}k=void 0}l.subscribeButton=k}else l.subscribersText=d(k.subscribersText)}else"WEBSITE"==m&&(l.targetUrl=g.Qb(w,"urlEndpoint","url"),l.An=!0,l.wo="new",l.BI=k.icon.thumbnails[0].url);
|
||
|
return l});
|
||
|
f.elements=(0,g.se)(k,function(a){return!!a});
|
||
|
return f},t4=function(a){g.sV.call(this,a);
|
||
|
this.A=null;this.K=!1;this.C=null;this.o={};this.G={};this.D=this.B=null;this.M=[];a=g.Y(a).g;this.P="embedded"==a||"profilepage"==a;this.WB=!0;this.J=0;this.O=new g.to(null);this.F=new g.OF(this);g.L(this,this.F);this.F.R(this.g,"crn_creatorendscreen",this.OT);this.F.R(this.g,"crx_creatorendscreen",this.PT);this.F.R(this.g,"resize",this.FC);this.F.R(window,"focus",this.tR);this.load();var b=g.je("STYLE");(window.document.getElementsByTagName("HEAD")[0]||window.document.body).appendChild(b);g.Ke(this,
|
||
|
function(){g.qe(b)});
|
||
|
b.sheet&&(b.sheet.insertRule(".ytp-ce-playlist-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASBAMAAACk4JNkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEVMaXGzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7P///91E4wTAAAACXRSTlMArBbpVOtYrReN+x2FAAAAAWJLR0QKaND0VgAAACFJREFUCNdjYCAWzIQAFBaZ6hgVYLKcJnBWGEyWvYGASwCXtBf7m4i3CQAAAABJRU5ErkJggg==) no-repeat center;background-size:18px;width:18px;height:18px}",0),b.sheet.insertRule(".ytp-ce-size-853 .ytp-ce-playlist-icon,.ytp-ce-size-1280 .ytp-ce-playlist-icon,.ytp-ce-size-1920 .ytp-ce-playlist-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEVMaXGzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7P///9RfzIKAAAAC3RSTlMAvDeyLvxYtDK9Ogx4T1QAAAABYktHRAyBs1FjAAAAK0lEQVQY02NgoBjshgO8HJoYwKiAMGAD92YHJM7uMCTO9gaEHs4FlPuZAQC8Fj8x/xHjxwAAAABJRU5ErkJggg==) no-repeat center;background-size:24px;width:24px;height:24px}",
|
||
|
0))},u4=function(a){return"creator-endscreen-editor"===a},v4=function(a,b){g.dV(a.g,"creatorendscreen");
|
||
|
a.B&&(a.B.dispose(),a.B=null,a.D.dispose(),a.D=null);for(var c in a.o){var d=a.o[c];d.dispose()}a.o={};a.G={};0<a.M.length&&(a.M.forEach(function(a){a.dispose()}),a.M.length=0);
|
||
|
a.J=0;if((a.A=b)&&b.elements){nra(a);c=[];d=new g.oJ(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen",namespace:"creatorendscreen"});c.push(d);g.Y(a.g).isMobile||(a.B=new g.W({H:"div",N:"ytp-ce-shadow"}),g.hV(a.g,a.B.element,5),a.D=new g.DV(a.B,200));for(var e=0;e<b.elements.length;++e){var f=b.elements[e];d=ora(a,f);a.o[f.id]=d;a.G[f.id]=f;g.hV(a.g,d.element,5);var k=new g.oJ(f.startMs,f.endMs,{id:"ytp-ce-element-"+f.id,namespace:"creatorendscreen"});c.push(k);pra(a,d,f)}g.aV(a.g,c);a.FC()}},
|
||
|
nra=function(a){var b=Oqa();
|
||
|
if(b){var c=g.QG()||"";a=[a.A.visualElement];Qqa(q4(),c,b,a)}},ora=function(a,b){var c=null;
|
||
|
switch(b.type){case "VIDEO":c={H:"div",ea:["ytp-ce-element","ytp-ce-video"],T:{tabindex:0,"aria-label":b.Yl||"","aria-hidden":!0},L:[{H:"div",N:"ytp-ce-element-shadow"},{H:"div",N:"ytp-ce-covering-image",T:w4(b)},{H:"div",N:"ytp-ce-covering-shadow-top"},{H:"a",N:"ytp-ce-covering-overlay",T:{href:b.targetUrl,tabindex:"-1"},L:[{H:"div",ea:["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],T:{dir:g.uo(a.O,b.title||"")},L:[b.title]},{H:"div",N:"ytp-ce-video-duration",L:[b.videoDuration]}]}]};
|
||
|
c=new g.W(c);break;case "PLAYLIST":c={H:"div",ea:["ytp-ce-element","ytp-ce-playlist"],T:{tabindex:0,"aria-label":b.Yl||"","aria-hidden":!0},L:[{H:"div",N:"ytp-ce-element-shadow"},{H:"div",N:"ytp-ce-covering-image",T:w4(b)},{H:"div",N:"ytp-ce-covering-shadow-top"},{H:"a",N:"ytp-ce-covering-overlay",T:{href:b.targetUrl,tabindex:"-1"},L:[{H:"div",ea:["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],T:{dir:g.uo(a.O,b.title||"")},L:[b.title]},{H:"div",N:"ytp-ce-playlist-count",L:[{H:"div",
|
||
|
N:"ytp-ce-playlist-icon"},{H:"div",N:"ytp-ce-playlist-count-text",L:[b.playlistLength]}]}]}]};c=new g.W(c);break;case "CHANNEL":var c={H:"div",ea:["ytp-ce-element","ytp-ce-channel",b.isSubscribe?"ytp-ce-channel-this":"ytp-ce-channel-that"],T:{tabindex:0,"aria-label":b.Yl||"","aria-hidden":!0},L:[{H:"div",N:"ytp-ce-element-shadow"},{H:"div",N:"ytp-ce-expanding-overlay",L:[{H:"div",N:"ytp-ce-expanding-overlay-hider"},{H:"div",N:"ytp-ce-expanding-overlay-background"},{H:"div",N:"ytp-ce-expanding-overlay-content",
|
||
|
L:[{H:"div",N:"ytp-ce-expanding-overlay-body",L:[{H:"div",N:"ytp-ce-expanding-overlay-body-padding",L:[{H:"a",ea:["ytp-ce-channel-title","ytp-ce-link"],T:{href:b.targetUrl,target:"_blank",tabindex:"-1",dir:g.uo(a.O,b.title||"")},L:[b.title]},b.subscribeButton?{H:"div",N:"ytp-ce-subscribe-container",L:[{H:"div",N:"ytp-ce-channel-subscribe"}]}:"",b.subscribersText?{H:"div",N:"ytp-ce-channel-subscribers-text",L:[b.subscribersText]}:"",b.metadata?{H:"div",ea:["ytp-ce-channel-metadata","yt-ui-ellipsis",
|
||
|
"yt-ui-ellipsis-3"],L:[b.metadata]}:""]}]}]}]},{H:"div",N:"ytp-ce-expanding-image",T:w4(b)}]},c=new g.W(c),d=g.Xd(window.document,"div","ytp-ce-channel-subscribe",c.element)[0];if(b.subscribeButton){g.R(d,"ytp-ce-subscribe-button");if(g.Y(a.g).isMobile){var e=null;var f=b.Sd.itct}else e="endscreen",f=null;e=new g.q1(b.subscribeButton.subscribeText,b.subscribeButton.subscribeCount,b.subscribeButton.unsubscribeText,b.subscribeButton.unsubscribeCount,b.subscribeButton.enabled,b.subscribeButton.classic,
|
||
|
b.channelId,!!b.subscribeButton.subscribed,e,f,b.subscribeButton.signinUrl,a.g);d.appendChild(e.element);a.M.push(e)}break;case "WEBSITE":c={H:"div",ea:["ytp-ce-element","ytp-ce-website"],T:{tabindex:0,"aria-label":b.Yl||"","aria-hidden":!0},L:[{H:"div",N:"ytp-ce-element-shadow"},{H:"div",N:"ytp-ce-expanding-overlay",L:[{H:"div",N:"ytp-ce-expanding-overlay-hider"},{H:"div",N:"ytp-ce-expanding-overlay-background"},{H:"div",N:"ytp-ce-expanding-overlay-content",L:[{H:"div",N:"ytp-ce-expanding-overlay-body",
|
||
|
L:[{H:"div",N:"ytp-ce-expanding-overlay-body-padding",L:[{H:"div",N:"ytp-ce-website-title",T:{dir:g.uo(a.O,b.title||"")},L:[b.title]},{H:"div",N:"ytp-ce-website-metadata",L:[b.metadata]},{H:"a",ea:["ytp-ce-website-goto","ytp-ce-link"],T:{href:b.targetUrl,target:"_blank",tabindex:"-1"},L:[b.callToAction]}]}]}]}]},{H:"div",N:"ytp-ce-expanding-image",T:w4(b)},{H:"div",N:"ytp-ce-expanding-icon",T:qra(b.BI)}]},c=new g.W(c)}b.g&&g.R(c.element,"ytp-ce-placeholder");return c},w4=function(a){if(a.xw)var b=
|
||
|
a.xw.thumbnails;
|
||
|
return qra(b?b[b.length-1].url:null)},qra=function(a){return a?{style:"background-image: url("+a+")"}:{}},pra=function(a,b,c){function d(){k(1)}
|
||
|
function e(){k(-1)}
|
||
|
b.V("mouseenter",(0,g.y)(a.du,a,b,c));b.V("mouseleave",(0,g.y)(a.Es,a,b,c));g.Y(a.g).isMobile||b.V("click",(0,g.y)(function(a){g.R(a.element,"ytp-ce-element-hover")},a,b));
|
||
|
b.V("click",(0,g.y)(a.kA,a,c));b.V("keypress",(0,g.y)(a.kA,a,c));b.V("focus",(0,g.y)(function(a,b){this.du(a,b)},a,b,c));
|
||
|
b.V("blur",(0,g.y)(function(a,b){this.Es(a,b)},a,b,c));
|
||
|
b.V("touchstart",(0,g.y)(a.du,a,b,c));var f=g.J("ytp-ce-expanding-overlay-hider",b.element);f&&b.R(f,"touchstart",function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();g.Ip(b.element,"ytp-ce-element-hover");g.Ip(b.element,"ytp-ce-force-expand")});
|
||
|
b.V("keydown",(0,g.y)(function(a,b){this.WB=9==b.keyCode&&!b.shiftKey},a,b));
|
||
|
var k=(0,g.y)(function(a,b,c){this.J+=c;0<this.J?(g.R(a.element,"ytp-ce-force-expand"),x4(this,b.id,!0)):(g.Ip(a.element,"ytp-ce-force-expand"),g.Ip(a.element,"ytp-ce-element-hover"),x4(this,b.id,!1))},a,b,c);
|
||
|
a=(0,g.y)(function(a,b){b&&(a.V("blur",function(){g.wh(b)&&this.WB&&b.focus()}),a.R(b,"focus",d),a.R(b,"blur",e))},a,b);
|
||
|
a(g.J("ytp-sb-subscribe",b.element));a(g.J("ytp-sb-unsubscribe",b.element));b.V("focus",d);b.V("blur",e)},x4=function(a,b,c){a.B&&(c?a.D.show():a.D.hide());
|
||
|
for(var d in a.o)d!=b&&g.S(a.o[d].element,"ytp-ce-element-shadow-show",c)},y4=function(a,b,c){function d(){k||(f++,f==e.length&&(l.stop(),c&&c()))}
|
||
|
if(!b||u4(g.Y(a.g).o))c&&c();else{var e=rra(a,b),f=0,k=!1,l=new g.rt(function(){k=!0;c&&c()},1E3,a);
|
||
|
l.start();for(a=0;a<e.length;a++)g.YE(e[a],d)}},z4=function(a,b,c){y4(a,b.clickUrls,c);
|
||
|
b.An&&s4(b.visualElement)},rra=function(a,b){for(var c=a.g.ia().clientPlaybackNonce,d=a.g.getCurrentTime().toFixed(2),c={CPN:c,
|
||
|
AD_CPN:c,MT:d},d=[],e=0;e<b.length;e++)d.push(sra(b[e],c));return d},sra=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var c=(0,window.unescape)(a),c=c.substring(1,c.length-1);
|
||
|
return b[c]?(0,window.escape)(b[c]):a})},A4=function(a){return g.ta(a)&&a.length?a[0]:a},B4=function(a){var b=/.+/;
|
||
|
return g.u(a)&&null!=b&&null!=a&&a.match(b)?a:""},C4=function(a,b){if(null==a)return b;
|
||
|
var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c},D4=function(a){return g.u(a)?a:""},E4=function(a,b,c){for(var d in b)if(b[d]==a)return a;
|
||
|
return c},F4=function(a,b){return"true"==a||"false"==a?"true"==a:b},G4=function(a,b){return g.u(a)?(0,window.parseFloat)(a):b},H4=function(a,b,c,d,e){a=(0,window.parseFloat)(a);
|
||
|
if(null!=a&&!(0,window.isNaN)(a)){if(d)return g.Id(a,b,c);if(a>=b&&a<=c)return a}return e},tra=function(a){if(null==a)return 0;
|
||
|
if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;(0,g.G)(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
|
||
|
return c*b},I4=function(a,b){if(null==a)return null;
|
||
|
if(g.ua(a)){var c=[];(0,g.G)(a,function(a){(a=b(a))&&c.push(a)});
|
||
|
return c}var d=b(a);return d?[d]:[]},ura=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
|
||
|
return(a=a?new g.Kg((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null},vra=function(a){function b(a){return(0,g.se)(a.split(/ +/),function(a){return""!=a})}
|
||
|
return null==a?[]:b(a)},wra=function(a,b,c,d){this.value=a;
|
||
|
this.target=b;this.showLinkIcon=c;this.g=d},J4=function(a){if(!a)return null;
|
||
|
var b=D4(a.value);if(!b)return null;var c=E4(a.target,xra,"current");return null==c?null:new wra(b,c,F4(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)},K4=function(a){return a.value?a.value:null},yra=function(a,b,c){this.type=a;
|
||
|
this.trigger=b;this.url=c},Bra=function(a){if(!a)return null;
|
||
|
var b=E4(a.type,zra),c=E4(a.trigger,Ara),d=J4(A4(a.url));A4(a.subscribeData);return b?new yra(b,c,d):null},Cra=function(a,b){this.g=a;
|
||
|
this.o=b||null},Dra=function(a,b){var c=a.o?L4(a.o,new Cra(a.g)):a.g;
|
||
|
var d=b.clone(),e=c.left;c=c.top;e instanceof g.Nd?(d.left+=e.x,d.top+=e.y):(d.left+=e,g.oa(c)&&(d.top+=c));return d},Era=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;
|
||
|
return(d+((c?a.width:a.height)-d)*b)/d},M4=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;
|
||
|
return(d+((c?a.height:a.width)-d)*b)/d},N4=function(a,b,c,d,e,f,k,l,m,n,q){this.x=a;
|
||
|
this.y=b;this.El=c;this.A=d;this.t=e;this.J=f;this.C=k;this.D=l;this.B=m;this.o=n;this.g=q},Gra=function(a,b){if(!a)return null;
|
||
|
var c=G4(a.x,0),d=G4(a.y,0),e=G4(a.w,0),f=G4(a.h,0),k=tra(a.t),l=G4(a.scaleSlope,1);return b(c,d,e,f,k,G4(a.d,0),G4(a.px,0),G4(a.py,0),G4(a.scaleSlopeX,l),G4(a.scaleSlopeY,l),E4(a.scaleDimension,Fra,"xy"))},L4=function(a,b){var c=Dra(b,Hra(a,new g.Mg(a.x,a.y,a.El,a.A),b.g)),d=b.g,e=c.clone();
|
||
|
d&&!d.contains(c)&&(c.width<d.width?e.left=g.Id(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=g.Id(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e},Hra=function(a,b,c){var d=a.C,e=a.D,f=a.g?a.g:"xy",k=Era(c,a.B,f);
|
||
|
a=M4(c,a.o,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new g.Mg(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)},Ira=function(a){return a?Gra(a,function(a,c,d,e,f,k,l,m,n,q,r){return new N4(a,c,d,e,f,k,l,m,n,q,r)}):null},Jra=function(a,b,c,d,e,f,k,l,m,n,q,r,w){N4.call(this,a,b,c,d,e,l,m,n,q,r,w);
|
||
|
this.F=f;this.G=k},Kra=function(a){if(!a)return null;
|
||
|
var b=G4(a.sx,0),c=G4(a.sy,0);return Gra(a,function(a,e,f,k,l,m,n,q,r,w,A){return new Jra(a,e,f,k,l,b,c,m,n,q,r,w,A)})},Lra=function(a,b,c,d,e,f,k,l,m,n,q,r,w,A){this.o=a;
|
||
|
this.bgColor=b;this.borderColor=c;this.borderWidth=d;this.g=e;this.D=f;this.A=k;this.textAlign=l;this.textSize=m;this.B=n;this.padding=q;this.effects=r;this.cornerRadius=w;this.C=A},Nra=function(a){if(!a)return null;
|
||
|
var b=C4(a.fgColor,"#1A1A1A"),c=C4(a.bgColor,"#FFF"),d=C4(a.borderColor,"#000"),e=H4(a.borderWidth,0,5,!1,0),f=H4(a.bgAlpha,0,1,!1,.8),k=C4(a.highlightFontColor,"#F2F2F2"),l=H4(a.highlightWidth,0,5,!1,3),m=D4(a.textAlign),n=H4(a.textSize,3.3,30.1,!0,3.6107),q=D4(a.fontWeight),r=ura(a.padding),w=vra(a.effects),A=H4(a.cornerRadius,0,10,!0,0);if(a=A4(a.gradient)){var C=H4(a.x1,0,100,!0,0),B=H4(a.y1,0,100,!0,0),M=H4(a.x2,0,100,!0,100),X=H4(a.y2,0,100,!0,100),xa=C4(a.color1,"#FFF"),db=C4(a.color2,"#000");
|
||
|
a=new Mra(C,B,M,X,xa,db,H4(a.opacity1,0,100,!0,100),H4(a.opacity2,0,100,!0,0))}else a=null;return new Lra(b,c,d,e,f,k,l,m,n,q,r,w,A,a)},Mra=function(a,b,c,d,e,f,k,l){this.C=a;
|
||
|
this.F=b;this.D=c;this.G=d;this.g=e;this.o=f;this.A=k;this.B=l},Ora=function(a,b,c,d){this.type=a;
|
||
|
this.o=b;this.g=c;this.A=d},Qra=function(a){if(!a)return null;
|
||
|
var b=E4(a.type,Pra,"rect"),c=I4(a.rectRegion,Ira),d=I4(a.anchoredRegion,Kra);a=I4(a.shapelessRegion,Ira);return new Ora(b,c,d,a)},Rra=function(a){return a.o&&a.o.length?a.o[0]:a.g&&a.g.length?a.g[0]:a.A&&a.A.length?a.A[0]:null},Sra=function(a,b){this.o=a;
|
||
|
this.g=b},Tra=function(a,b){this.state=a;
|
||
|
this.ref=b},Vra=function(a){if(!a)return null;
|
||
|
var b=E4(a.state,Ura);a=B4(a.ref);return b?new Tra(b,a):null},Wra=function(a,b,c,d){this.g=a||[];
|
||
|
this.A=b||[];this.B=c;this.o=d;this.value=!1},Xra=function(a){if(!a)return null;
|
||
|
var b=I4(a.condition,Vra),c=I4(a.notCondition,Vra),d=F4(a.show_delay,!1);a=F4(a.hide_delay,!1);return b||c?new Wra(b,c,d,a):null},Yra=function(a,b,c){(0,g.G)(a.g,g.Aa(b,!1),c);
|
||
|
(0,g.G)(a.A,g.Aa(b,!0),c)},Zra=function(a,b,c,d,e,f,k,l,m,n,q,r,w,A,C,B){this.id=a;
|
||
|
this.author=b;this.type=c;this.style=d;this.B=e;this.o=f;this.A=k||[];this.F=l||[];this.g=m;this.D=n;this.C=q;this.htmlBlob=w;this.data=A;this.Xb=C;this.itct=B},bsa=function(a){if(!a)return null;
|
||
|
var b=B4(a.id),c=B4(a.author),d=E4(a.type,$ra),e=E4(a.style,O4),f=D4(A4(a.TEXT)),k=D4(a.data),k=0!=k.length?g.kg(k):{};var l=A4(a.segment);if(l){B4(l.timeRelative);var m=B4(l.spaceRelative);m=(l=I4(l.movingRegion,Qra))?new Sra(m,l):null}else m=null;var l=I4(a.action,Bra),n=I4(a.trigger,Xra),q=Nra(A4(a.appearance));q||(q=Nra({}));var r=E4(a.coordinate_system,asa,"video_relative"),w=F4(a.closeable,!0),A=D4(a.html_blob),C=D4(a.log_data);a=D4(a.itct);return b&&d?new Zra(b,c,d,e,f,m,l,n,q,r,w,0,A,k,C,
|
||
|
a):null},P4=function(a){return(a=csa(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null},R4=function(a){return Q4(a,function(a){return"click"==a.trigger})},Q4=function(a,b){return(0,g.Bk)(a.A,b,void 0)},dsa=function(a,b,c){(0,g.G)(a.A,b,c)},csa=function(a,b){return g.ab(a.A,b,void 0)},esa=function(a,b,c){(0,g.G)(a.F,b,c)},fsa=function(a,b){(0,g.H)(a.F,b,void 0)},S4=function(a){return(a=gsa(a))?Rra(a):null},gsa=function(a){a.o?(a=a.o,a=a.g.length?a.g[0]:null):a=null;
|
||
|
return a},hsa=function(a,b){var c=S4(a);
|
||
|
return c&&b?M4(b,c.o,c.g?c.g:"xy"):1},jsa=function(a,b,c){this.g={};
|
||
|
this.o=!1;this.C="ivTrigger:"+a;this.A=c;Yra(b,function(a,b){var c=isa(b.state,b.ref);this.A.subscribe(c,(0,g.y)(this.B,this,c,a));this.g[c]=a},this)},isa=function(a,b){var c="ivTriggerCondition:"+a;
|
||
|
return b?c+":"+b:c},T4=function(){this.g=!1;
|
||
|
this.C=this.o=null},U4=function(a,b,c){a.o?(a.o.setSize(b,c),a.o.clear()):(b=new n4(b,c,void 0,void 0,void 0),a.o=b,a.o.hn(),a.C=g.he("DIV"),b=a.o.ra(),a.C.appendChild(b));
|
||
|
return a.o},V4=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);
|
||
|
b&&g.Jb(b,function(a,b){d.setAttribute(b,a)});
|
||
|
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d},W4=function(a,b){var c=":"+(g.Gu.getInstance().g++).toString(36);
|
||
|
b.setAttribute("result",c);a.appendChild(b);return c},ksa=function(a,b){var c=W4(a,V4("feGaussianBlur",{"in":b,
|
||
|
stdDeviation:"1.8"})),c=W4(a,V4("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},V4("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=W4(a,V4("feComposite",{"in":c,in2:b,operator:"in"}));return W4(a,V4("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))},lsa=function(a,b){var c=W4(a,V4("feOffset",{"in":b,
|
||
|
dx:"-7",dy:"-7"})),c=W4(a,V4("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=W4(a,V4("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"})),d=W4(a,V4("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 0"})),d=W4(a,V4("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=W4(a,V4("feComposite",{operator:"out","in":c,in2:d}));return W4(a,V4("feComposite",{operator:"over","in":b,in2:c}))},msa=function(a,b){return b},nsa=function(a){var b=
|
||
|
V4("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";
|
||
|
(0,g.G)(a,function(a){a:{switch(a){case "bevel":a=ksa;break a;case "dropshadow":a=lsa;break a}a=msa}c=a(b,c)});
|
||
|
return b},osa=function(a){a=(0,g.se)(a,function(a){return a in X4});
|
||
|
g.zb(a,function(a,c){return X4[a]-X4[c]});
|
||
|
return a},psa=function(a){return g.ab(a,function(a){return"dropshadow"==a})?new g.Kg(0,7,7,0):new g.Kg(0,0,0,0)},qsa=function(a,b,c){var d=new i4;
|
||
|
dra(d,a.left+b+c,a.top+c);d.Jc(a.left+a.width-b-c,a.top+c);j4(d,b,b,-90);d.Jc(a.left+a.width-c,a.top+a.height-b-c);j4(d,b,b,0);d.Jc(a.left+b+c,a.top+a.height-c);j4(d,b,b,90);d.Jc(a.left+c,a.top+b+c);j4(d,b,b,180);d.close();return d},Y4=function(a,b){var c=g.Ng(a);
|
||
|
c.expand(psa(b));return Iqa(c)},rsa=function(a,b,c){if(c.length&&(b=g.Xd(window.document,"g",void 0,b),b.length)){var d=osa(c);
|
||
|
if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.o?a.o[c]:null;e?a=e:(d=nsa(d),a=0<d.childNodes.length?ara(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}},ssa=function(a,b,c,d){var e=a.C;
|
||
|
e?a=new f4(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.g,e.o,e.A,e.B):(b=a.g,a=new e4(a.bgColor,d?Math.max(b,.9):b));return a},Z4=function(){T4.call(this);
|
||
|
this.B=0},tsa=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);
|
||
|
if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"},$4=function(a){T4.apply(this,arguments)},a5=function(a){T4.apply(this,arguments)},b5=function(a){Z4.apply(this,arguments)},usa=function(a,b,c,d,e){this.g=a;
|
||
|
this.ca=b;this.D=c;this.ha=d;this.ga=e;this.P=!1;this.F=new g.MF(this);this.X=this.C=this.G=this.O=this.o=null;this.da=!1;this.fa=this.K=this.M=null;this.us=new g.ck(this.QT,100,this);this.J=new g.rt(this.Cx,500,this);this.ba=this.A=this.B=null},vsa=function(a,b){var c=(0,g.y)(function(a,c,f){c=f?c5(this,c,(0,g.y)(f,this)):c5(this,c);
|
||
|
this.F.V(b,a,c)},a);
|
||
|
c("mouseover","k",a.IC);c("mouseout","j",a.th);c("click","h");c("touchend","h")},wsa=function(a){if(a.g.C){if(Q4(a.g,function(a){return"close"==a.type}))var b=a.o;
|
||
|
else a.B=g.he("DIV","annotation-close-button"),g.N(a.B,!1),g.qF(a.B,"annotation_id",a.g.id),a.o.appendChild(a.B),b=a.B;var c=function(a){a.stopPropagation()};
|
||
|
a.F.V(b,"click",c5(a,"i",c));a.F.V(b,"touchend",c5(a,"i",c))}},c5=function(a,b,c){return(0,g.y)(function(a){if(this.ga)c&&c(a);
|
||
|
else if(a.event.target instanceof window.Element){var d=a.event.target;g.N(d,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(g.Ge(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{g.N(d,
|
||
|
!0)}}d=g.uh(a.target);a=new g.Nd(a.clientX,a.clientY);"j"==b&&d.contains(a)||this.ha.Y(b,this.g)},a)},e5=function(a){if(a.o||a.A){var b=S4(a.g);
|
||
|
if(b){var c=d5(a);if(a.o){var b=L4(b,c),d=g.WY(g.OU(a.D));g.sh(a.o,b.width,b.height);g.hh(a.o,b.left,b.top);a.O=new g.Mg(d.left+b.left,d.top+b.top,b.width,b.height);var e=(e=S4(a.g))&&d?Era(d,e.B,e.g?e.g:"xy"):1;var f=hsa(a.g,d),d=a.g.g;d.padding?d=d.padding:(d="speech"==a.g.style?1.6:.8,d=new g.Kg(d,d,d,d));d=new g.Kg(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.C&&(d.right+=1.5*c.g.height/100);a.o.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px";"label"==
|
||
|
a.g.style&&a.G&&(a.G.style.padding=a.o.style.padding);var d=c.g,k=!1,l=0,m=0;var n=g.WY(g.OU(a.D));var q=xqa(a.D.app.A.D);g.Og(n,q)?n=null:(q.top+=20,q.height-=40,"player_relative"!=a.g.D&&(q.left-=n.left,q.top-=n.top),n=q);n&&(l=n.top-(b.top+b.height),m=b.top-(n.top+n.height),k=0<l||0<m);if(k&&n){d=n;e=l;var f=m;if(a.C){m=xsa(a,23,b,e,f);if(a.B){var r=43-m.width;0<r&&(b.left+m.left-r>d.left&&(m.left-=r),m.width+=r)}r=m;g.sh(a.C,m.width,m.height);g.hh(a.C,m.left,m.top)}a.B&&(r?b=new g.Nd(r.left+r.width-
|
||
|
23-18,a.da?r.top+2:r.top+r.height-18-2):(r=xsa(a,18,b,e,f),b=new g.Nd(r.left,r.top),g.sh(a.B,r.width,r.height)),g.hh(a.B,b));a.X=new g.Mg(a.O.left+r.left,a.O.top+r.top,r.width,r.height);a.M=a.F.V(g.OU(a.D),"mousemove",a.tP)}else a.C&&(r=e/f*d.height*4.2/100,r=new g.Qd(r,r),"highlight"==a.g.type||"label"==a.g.style?(e=1.5*d.height/100,r=new g.Mg(b.width-r.width-e,b.height-r.height-e,r.width,r.height)):r=new g.Mg(b.width-r.width-3*d.height/100,(b.height-r.height)/2,r.width,r.height),g.sh(a.C,r.width,
|
||
|
r.height),g.hh(a.C,r.left,r.top)),a.B&&(r=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,g.hh(a.B,r&&e?new g.Nd(b.width-9,-9):r?new g.Nd(b.width-9,45<b.height?9:b.height-9):e?new g.Nd(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new g.Nd(45<b.width?b.width-9-18:-9,b.height-9):new g.Nd(-9,45<b.height?9:b.height-9)))}a.A&&a.A.A(a.g,c);if(a.o){c=a.o;b=a.g.g;c.style.color="highlightText"==a.g.style?b.D:b.o;r=g.WY(g.OU(a.D));c.style.fontSize=360*b.textSize*hsa(a.g,r)/100+"px";
|
||
|
r=a.g.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==r||"highlightText"==r?"center":"left";b.B&&(c.style.fontWeight=b.B);a=a.o;c=a.style.overflow;r=(b=g.J("annotation-link-icon",a))?g.wh(b):!1;e=(d=g.J("annotation-close-button",a))?g.wh(d):!1;r&&g.N(b,!1);e&&g.N(d,!1);m=f="";if(l=g.J("inner-text",a))f=l.style.overflow,m=l.style.position,l.style.overflow="visible",l.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){n=k=Yqa(a);
|
||
|
for(var q=5,w=Math.floor(k/2);w;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(q=n,n=Math.min(n+w,k)):n=Math.max(n-w,q),w=Math.floor(w/2),a.style.fontSize=n+"px";n!=q&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=q+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);e&&g.N(d,!0);r&&g.N(b,!0)}}}},xsa=function(a,b,c,d,e){var f=0<e;
|
||
|
b=new g.Mg(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),g.R(a.o,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),g.R(a.o,"annotation-extend-up"),a.da=!0);return b},f5=function(a){return"label"!=a.g.style||a.A.g},d5=function(a){var b=g.WY(g.OU(a.D));
|
||
|
if("player_relative"==a.g.D){var c=g.OU(a.D).Za();b=new g.Mg(-b.left,-b.top,c.width,c.height)}else b=new g.Mg(0,0,b.width,b.height);return new Cra(b,a.ba?S4(a.ba):null)},ysa=function(a,b){return b?new g.Mg(a.x+b.left,a.y+b.top,b.width,b.height):null},Asa=function(a,b,c){this.o=a;
|
||
|
this.annotation=b;this.view=c;this.g=null;this.A=this.isVisible=!1;zsa(b,a)},zsa=function(a,b){fsa(a,function(c){return new jsa(a.id,c,b)})},Bsa=function(a){a.o.unsubscribe("resize",a.HC,a);
|
||
|
a.o.unsubscribe("onVideoAreaChange",a.MA,a)},g5=function(a){a.g&&(a.g.stop(),a.g=null)},Csa=function(a,b,c){S3.call(this,a,b,c);
|
||
|
this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.g=b.meta_info;this.url=J4({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},h5=function(a,b,c){S3.call(this,a,b,c);
|
||
|
this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.g=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=J4({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=J4({target:"current",value:b.signin_url}));this.J=b.signin_title||null;this.G=b.signin_message||null},Dsa=function(a,b,c){h5.call(this,a,b,c);
|
||
|
this.K=b.ypc_flow_type;this.B=b.innertube_request_params},Esa=function(a,b,c){S3.call(this,a,b,c);
|
||
|
this.B=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.g=b.meta_info;this.url=J4({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},Fsa=function(a,b,c){S3.call(this,a,b,c);
|
||
|
this.B=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.g=b.hasOwnProperty("old_vote")?b.old_vote:null;this.A=null;b.signin_url&&(this.A=J4({target:"current",value:b.signin_url}));this.G=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null},Hsa=function(a,b,c){h5.call(this,a,b,c);
|
||
|
this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new Gsa(a[b]))},Gsa=function(a){this.merchant=g.E(a.merchant);
|
||
|
this.price=g.E(a.price)},Isa=function(a,b,c){h5.call(this,a,b,c);
|
||
|
this.K=b.ypc_item_type;this.B=b.ypc_item_id;this.M=b.ypc_flow_type},Jsa=function(a,b,c){S3.call(this,a,b,c);
|
||
|
this.G=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.g=b.meta_info;this.B=!!b.is_live_now;this.url=J4({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},i5=function(a,b,c){S3.call(this,a,b,c);
|
||
|
this.K=b.image_url;this.B=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.g=b.meta_info;this.G=!!b.is_paygated;this.J=!!b.user_has_entitlement;this.url=J4({target:b.target||"new",value:b.url})},Ksa=function(a,b,c,d,e,f,k){this.g=a;
|
||
|
this.B=b;this.C=c;this.videoData=d;this.logger=e;this.o=f;this.A=k},Lsa=function(a){this.U=a;
|
||
|
this.g={}},m5=function(a,b,c,d){if(b){var e=j5(a,b);
|
||
|
a.g[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=k5(a,"cta_annotation_shown",e,c);l5(a,e,Msa(b,d))}},n5=function(a,b,c,d,e,f){if(b){var k=j5(a,b);
|
||
|
k["iv-event"]=3;k["i-time"]=a.g[b]||"";g.$b(k,d||{});b=k5(a,"cta_annotation_clicked",k,e);l5(a,k,b,c,f)}},o5=function(a,b){if(b){var c=j5(a,b);
|
||
|
c["iv-event"]=4;c["i-time"]=a.g[b]||"";var d=k5(a,"cta_annotation_closed",c);l5(a,c,d)}},Msa=function(a,b){return b?(0,g.H)(a,g.Aa(function(a,b){return g.lm(b,a)},b||{})):a},k5=function(a,b,c,d){d=g.qb(d||[]);
|
||
|
if(30==c["a-type"]){a:{c=c["a-id"];a=a.U.ia();if(a.Bv){if((b=a.Bv[b])&&g.r3.test(b)){a=g.Ha("[ANNOTATION_ID]");0<=b.indexOf("[ANNOTATION_ID]")?b=b.replace("[ANNOTATION_ID]",c):0<=b.indexOf(a)&&(b=b.replace(a,c));break a}}else if(a.zj){b=g.IE(a.zj,{label:b,value:"a_id="+c});break a}b=""}b&&d.push(b)}return d},l5=function(a,b,c,d,e){var f=1,k=-1;
|
||
|
if(d){var l=!1;var m=function(){f--;f||l||((0,window.clearTimeout)(k),l=!0,d())};
|
||
|
k=(0,window.setTimeout)(function(){l=!0;d()},1E3)}(0,g.G)(c||[],function(a){f++;
|
||
|
g.YE(a,m)});
|
||
|
e&&(f++,0!=e&&a.U.ni(e,m));Nsa(a,b,m)},j5=function(a,b){var c={};
|
||
|
if(b){var d=new g.Rl(b);(0,g.G)(d.Cb(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.U.getCurrentTime().toFixed(2);
|
||
|
c.ps=g.Y(a.U).o;return c},p5=function(a,b,c,d,e){e=j5(a,e);
|
||
|
e["iv-event"]=c;b&&(e.ei=b);e["a-id"]||(e["a-id"]="card:drawer");e["a-type"]=51;l5(a,e,d)},q5=function(a,b,c,d){c&&(c=j5(a,c),c["iv-event"]=b,l5(a,c,d))},Nsa=function(a,b,c){g.VU(a.U,"iv",b,c)},r5=function(a,b,c){this.g=a;
|
||
|
this.A=b;this.C=c;this.B=new g.to(null)},Psa=function(a,b){var c=[];
|
||
|
(0,g.G)(b.choices,function(a){c.push({H:"li",N:b.B+"-"+a.index.toString(),L:[{H:"label",L:[{H:"input",N:"iv-card-poll-choice-input",T:{type:"checkbox",role:"radio",name:b.B+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}},{H:"span",N:"iv-card-poll-choice-text",L:[{H:"span",N:"iv-card-poll-choice-percent"},s5(this,"span",void 0,a.desc)]}]},{H:"div",N:"iv-card-poll-result",L:[{H:"div",N:"iv-card-poll-result-bar"}]}]})},a);
|
||
|
var d={H:"ul",T:{role:"radiogroup"},L:c},e={};b.A&&(e["aria-label"]=g.T("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var f=["iv-card","iv-card-poll"],d=[{H:"div",N:"iv-card-content",L:[s5(a,"h2",e,b.title),{H:"form",L:[{H:"fieldset",L:[d]}]}]}];b.A&&(f.push("iv-card-unavailable"),d.push({H:"div",ea:["iv-card-sign-in"],L:[{H:"h2",L:[g.T("YTP_DRAWER_POLL_SIGNIN_TITLE")]},{H:"a",ea:["iv-card-sign-in-button","iv-button"],T:{href:K4(b.A)},L:[{H:"span",ea:["iv-button-content"],L:[g.T("YTP_SIGN_IN")]}]}]}));
|
||
|
f=new g.W({H:"div",ea:f,L:d});d=f.element;Osa(b,d);yqa(a.g.g,d,g.Aa(a.F,b),a);(0,g.G)(g.Yd("iv-card-poll-choice-input",d),function(a){this.g.g.V(a,"focus",g.Aa(this.o,!0));this.g.g.V(a,"blur",g.Aa(this.o,!1))},a);
|
||
|
b.A&&a.A(g.J("iv-card-sign-in-button",d),b.A,b.id,b.Sd,b.Xb,b.o.click,5);return f},v5=function(a,b,c,d){var e=b.displayDomain?{H:"div",
|
||
|
N:"iv-card-image-text",L:[b.displayDomain]}:"",f=Qsa(a,b),k=["iv-card"];b.A&&k.push("iv-card-unavailable");e=[{H:"a",N:"iv-click-target",T:{href:K4(b.url)},L:[t5(b.imageUrl,e),{H:"div",N:"iv-card-content",L:[s5(a,"h2",void 0,b.title),f]}]}];b.A&&e.push({H:"div",ea:["iv-card-sign-in"],L:[s5(a,"h2",void 0,b.J||""),{H:"p",L:[b.G]},{H:"a",ea:["iv-card-sign-in-button","iv-button"],T:{href:K4(b.A)},L:[s5(a,"span","iv-button-content",g.T("YTP_SIGN_IN"))]}]});k=new g.W({H:"div",ea:k,L:e});u5(a,k,b,c,d);return k},
|
||
|
Rsa=function(a,b,c){var d=["yt-badge",
|
||
|
"standalone-ypc-badge-renderer-icon",b.J?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],e={},d=b.G&&b.B?{H:"span",ea:d,T:e,L:[b.B]}:"";c={H:"div",ea:["iv-card",c],L:[{H:"a",N:"iv-click-target",T:{href:K4(b.url)},L:[t5(b.K,d?{H:"div",N:"iv-card-image-text",L:[d,b.priceText]}:""),{H:"div",N:"iv-card-content",L:[{H:"h2",N:"iv-card-primary-link",L:[b.title]},w5(a,b)]}]}]};c=new g.W(c);u5(a,c,b);return c},x5=function(a,b){return b.customMessage?s5(a,"div",
|
||
|
"iv-card-message",b.customMessage):""},t5=function(a,b){var c="background-image: url("+a+");",d=[];
|
||
|
b&&d.push(b);return{H:"div",N:"iv-card-image",T:{style:c},L:d}},w5=function(a,b){if(!b.g||0==b.g.length)return"";
|
||
|
var c=[];(0,g.G)(b.g,function(a){c.push(s5(this,"li","",a))},a);
|
||
|
return{H:"ul",N:"iv-card-meta-info",L:c}},s5=function(a,b,c,d){c?g.u(c)?c={"class":c}:g.ta(c)&&(c={"class":c.join(" ")}):c={};
|
||
|
c.dir=g.uo(a.B,d);return{H:b,T:c,L:[d]}},Qsa=function(a,b){if(!b.customMessage)return"";
|
||
|
var c=["iv-card-action","iv-card-primary-link"],d={};b.g&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.g+");");d.dir=g.uo(a.B,b.customMessage);var e=[{H:"span",L:[b.customMessage]}];b.showLinkIcon&&(e.push("\u00a0"),e.push({H:"span",N:"iv-card-link-icon"}));return{H:"div",ea:c,T:d,L:e}},Osa=function(a,b){var c=0;
|
||
|
(0,g.G)(a.choices,function(a){c+=a.count});
|
||
|
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=g.J(a.B+"-"+e.index.toString(),b),e=e.count/c;null==a.g&&(e=0);g.S(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.g==d);f.getElementsByTagName("input")[0].checked=a.g==d;g.ze(g.J("iv-card-poll-choice-percent",f),g.T("YTP_DRAWER_POLL_PERCENT",{PERCENT:Math.floor(100*e).toFixed(0)}));g.ah(g.J("iv-card-poll-result-bar",f),"transform","scaleX("+e.toFixed(2)+")")}g.S(b,"iv-card-poll-voted",null!=a.g);g.S(b,"iv-card-poll-expanded",
|
||
|
null!=a.g&&1<a.choices.length)},Ssa=function(a,b,c,d){d?(c&&a.g.videoData.Da||a.g.o.sd(),a.g.o.isFullscreen()&&g.QU(a.g.o),n5(a.g.logger,b.Xb,d,void 0,b.o.click,5)):b.url&&a.C(b.url,b.id,b.Sd,b.Xb,b.o.click||[],5)},u5=function(a,b,c,d,e){c.A&&Tsa(a,g.Yd("iv-card-sign-in-button",b.element),c,c.A,e);
|
||
|
c.url&&Tsa(a,g.Yd("iv-click-target",b.element),c,c.url,d)},Tsa=function(a,b,c,d,e){(0,g.G)(b,function(a){if(e){var b=(0,g.y)(function(a){a.stopPropagation();
|
||
|
a.preventDefault();e();return!1},this);
|
||
|
this.g.g.V(a,"click",b)}else d&&this.A(a,d,c.id,c.Sd,c.Xb,c.o.click,5)},a)},Usa=function(a){var b=0;
|
||
|
-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b},y5=function(a){var b;
|
||
|
(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=Vsa(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1},Vsa=function(a){a=a.replace(/^(https?:)?\/\//,"");
|
||
|
a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()},Wsa=function(a){a=K4(a);
|
||
|
if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!y5(a))||(b=g.tg(g.sg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=g.GE(a);if(!b||!b.v)return null;if(b.t)return Usa(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=g.AE(a[1]))&&a.t?Usa(a.t):-1},Xsa=function(a){a=K4(a);
|
||
|
a=a.replace(/https?:\/\//g,"");return y5(a)?(a=g.GE(a))&&a.v?a.v:null:null},Ysa=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");
|
||
|
var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c},z5=function(a,b){return b?b:y5(a)?"current":"new"},A5=function(a,b){this.bb=a;
|
||
|
this.context=b;this.Qt=!1;this.X=0},B5=function(a,b,c,d,e,f){b=new g.oJ(b,c,{id:d});
|
||
|
b.namespace="annotations_module";e&&(b.g||(b.g=new g.iD)).subscribe("onEnter",e,a);f&&(b.g||(b.g=new g.iD)).subscribe("onExit",f,a);g.aV(a.context.o,[b])},Zsa=function(a){return(0,g.F)()-a.X},$sa=function(a,b,c,d,e,f){var k=K4(b);
|
||
|
if(k){var l=z5(k,b.target),m=(0,g.y)(function(){b.g&&this.context.o.sd();g.rV(k||"","current"==l?"_top":void 0,c)},a);
|
||
|
"new"==l&&(m(),m=null);var n={};n.interval=Zsa(a);n5(a.context.logger,d,m,n,e,f);y5(k)||(a=c.itct)&&s4(new g.ZF(a))}},C5=function(a,b,c){A5.call(this,b,c);
|
||
|
this.U=a;this.M=null;this.Bn=this.Wa=this.B=this.pa=!1;this.P=null;this.Np=new g.rt(g.x,c.C.useTabletControls?4E3:3E3);this.ka=new g.rt(g.x);this.C=new r5(c,(0,g.y)(this.Bi,this),(0,g.y)(this.En,this));a={H:"div",N:"iv-drawer",T:{id:"iv-drawer"},L:[{H:"div",N:"iv-drawer-header",T:{"aria-role":"heading"},L:[{H:"span",N:"iv-drawer-header-text"},{H:"button",ea:["iv-drawer-close-button","ytp-button"],T:{"aria-label":g.T("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL"),tabindex:"0"}}]},{H:"div",N:"iv-drawer-content"}]};
|
||
|
this.J=new g.W(a);this.D=this.J.element;this.ha=new g.DV(this.J,330);this.sa=g.J("iv-drawer-header-text",this.D);this.A=g.J("iv-drawer-content",this.D);a={H:"div",ea:["iv-drawer-teaser","iv-exp-cards-teaser-prominent"],L:[{H:"div",N:"iv-drawer-teaser-box"},{H:"div",N:"iv-drawer-teaser-text"},{H:"button",N:"iv-drawer-open-button",T:{"aria-label":g.T("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-haspopup":"true"},L:[{H:"span"}]}]};new g.W(a);this.o=[];this.ga=this.K=this.F=this.O=this.g=null;this.fa=[];B5(this,
|
||
|
0,1E3*c.videoData.lengthSeconds,"",this.jG,this.OG);this.G=this.da=this.ba=null},fta=function(a,b){var c=b&&b.data&&b.data.card_type;
|
||
|
if(c&&ata[c]){c=new ata[c](b.id,b.data,b.Xb);a.pa||(g.Hp(a.ra(),["html5-stop-propagation","iv-drawer-manager"]),g.hV(a.U,a.D,6),bta(a),a.K=g.J("ytp-cards-button"),a.ga=g.J("iv-drawer-close-button",a.D),a.pa=!0);cta(a,c.id);var d=dta(a,c);if(d){var e={sc:c,Sp:d.element,oy:!1},f=eta(a,e);g.tb(a.o,f,0,e);d.Ia(a.A,f);a.pm();c.autoOpen?B5(a,c.startMs,0x8000000000000,c.id,g.Aa(a.sS,e)):(d=1E3*a.context.o.getCurrentTime(),5E3>d&&d>c.startMs&&a.EB(e),B5(a,c.startMs,c.startMs+1,c.id,g.Aa(a.EB,e)),D5(a))}}},
|
||
|
gta=function(a,b){b.data.autoOpenMs&&B5(a,b.data.autoOpenMs,0x8000000000000,"",a.RT);
|
||
|
b.data.autoCloseMs&&B5(a,b.data.autoCloseMs,0x8000000000000,"",a.Am);var c=b.data.headerText;g.ze(a.sa,c);a.K&&a.K.setAttribute("title",c);b.data.eventId&&(a.M=b.data.eventId);a.ba=new g.ZF(b.data.trackingParams);a.G=new g.ZF(b.data.closeTrackingParams);a.da=new g.ZF(b.data.iconTrackingParams)},cta=function(a,b){var c=hta(a,b);
|
||
|
c&&(c==a.g&&(a.g=null),a.U.Ly(c.sc.id),g.qe(c.Sp),g.nb(a.o,c),a.pm(),D5(a))},E5=function(a,b,c,d){if(!a.B){a.ha.show();
|
||
|
a.O=new g.rt(function(){g.R(this.context.o.getRootNode(),"ytp-iv-drawer-open")},0,a);
|
||
|
a.O.start();a.P=g.CF(a.A,"mousewheel",(0,g.y)(a.ST,a));a.B=!0;a.X=(0,g.F)();p5(a.context.logger,a.M,7,void 0,d&&d.sc?d.sc.Xb:void 0);a.ba&&a.G&&r4([a.ba,a.G]);var e={TRIGGER_TYPE:b};(0,g.G)(a.o,function(a){a.oy||(a.oy=!0,m5(this.context.logger,a.sc.Xb,a.sc.o.rJ,e));r4([a.sc.C])},a);
|
||
|
J3(a.U);c&&(a.F=new g.rt(function(){this.ca=this.K;this.ga.focus()},330,a),a.F.start())}},bta=function(a){a.context.g.V(g.J("iv-drawer-close-button",a.D),"click",a.GG,a);
|
||
|
a.context.g.V(a.A,"touchend",function(){this.Np.start()},a);
|
||
|
a.context.g.V(a.A,"scroll",a.TG,a);a.context.A.subscribe("onHideControls",function(){this.Bn=!0},a);
|
||
|
a.context.A.subscribe("onShowControls",function(){this.Bn=!1},a);
|
||
|
a.context.A.subscribe("onVideoAreaChange",function(){this.Bn=g.Gp(this.U.getRootNode(),"ytp-autohide")},a);
|
||
|
a.fa.push(g.dG("iv-teaser-shown",a.LJ,a));a.fa.push(g.dG("iv-teaser-clicked",a.KJ,a))},dta=function(a,b){switch(b.type){case "simple":return v5(a.C,b);
|
||
|
case "collaborator":var c=a.C,d={H:"div",ea:["iv-card","iv-card-channel"],L:[{H:"a",ea:["iv-click-target","g-hovercard"],T:{href:K4(b.url),"data-ytid":b.channelId},L:[t5(b.profileImageUrl),{H:"div",N:"iv-card-content",L:[x5(c,b),{H:"h2",N:"iv-card-primary-link",L:[b.title]},w5(c,b)]}]}]},d=new g.W(d);u5(c,d,b);return d;case "donation":return c=a.C,d=(0,g.y)(c.D,c,b),v5(c,b,d,d);case "episode":return Rsa(a.C,b,"iv-card-episode");case "movie":return Rsa(a.C,b,"iv-card-movie");case "playlist":return c=
|
||
|
a.C,d={H:"div",ea:["iv-card","iv-card-playlist"],L:[{H:"a",N:"iv-click-target",T:{href:K4(b.url)},L:[t5(b.B,{H:"div",N:"iv-card-image-overlay",L:[{H:"span",N:"iv-card-playlist-video-count",L:[b.playlistVideoCount.toString()]}]}),{H:"div",N:"iv-card-content",L:[x5(c,b),s5(c,"h2","iv-card-primary-link",b.title),w5(c,b)]}]}]},d=new g.W(d),u5(c,d,b),d;case "poll":return Psa(a.C,b);case "productListing":var c=a.C,e=!g.ib(b.offers),d=["iv-card"],f="",k=Qsa(c,b);e&&(d.push("iv-card-product-listing"),f="iv-card-primary-link",
|
||
|
k=b.offers[0],e=[],k.price&&e.push({H:"div",N:"iv-card-offer-price",L:[k.price]}),k.merchant&&e.push({H:"div",N:"iv-card-offer-merchant",L:[k.merchant]}),k={H:"div",L:e});e=b.sponsored?{H:"div",N:"iv-card-sponsored",L:[g.T("YTP_SPONSORED"),{H:"div",N:"iv-ad-info-container",L:[{H:"div",N:"iv-ad-info",L:["{{adInfo}}"]},{H:"div",N:"iv-ad-info-icon-container",L:[{H:"div",N:"iv-ad-info-icon"},{H:"div",N:"iv-ad-info-callout"}]}]}]}:"";d={H:"div",ea:d,T:{tabindex:"0"},L:[{H:"a",ea:["iv-card-image","iv-click-target"],
|
||
|
T:{style:"background-image: url("+b.imageUrl+");",href:K4(b.url),"aria-hidden":"true",tabindex:"-1"}},{H:"div",N:"iv-card-content",L:[e,{H:"a",N:"iv-click-target",T:{href:K4(b.url)},L:[s5(c,"h2",f,b.title),k]}]}]};d=new g.W(d);f=g.je("span");g.ze(f,g.T("YTP_SPONSORED_PRODUCT_INFO"));d.dc(f,"adInfo");u5(c,d,b);return d;case "tip":return c=a.C,d=(0,g.y)(c.G,c,b),v5(c,b,d,d);case "video":return c=a.C,d=b.videoDuration?{H:"span",N:"iv-card-video-duration",L:[b.videoDuration]}:"",f=b.B?{H:"span",ea:["yt-badge",
|
||
|
"yt-badge-live"],L:[g.T("YTP_LIVE_NOW")]}:"",d={H:"div",ea:["iv-card","iv-card-video"],L:[{H:"a",N:"iv-click-target",T:{href:K4(b.url)},L:[t5(b.G,d),{H:"div",N:"iv-card-content",L:[x5(c,b),s5(c,"h2","iv-card-primary-link",b.title),w5(c,b),f]}]}]},d=new g.W(d),u5(c,d,b),d}return null},eta=function(a,b){if(0==a.o.length)return 0;
|
||
|
var c=g.bb(a.o,function(a){return b.sc.startMs>a.sc.startMs||b.sc.startMs==a.sc.startMs&&b.sc.timestamp>=a.sc.timestamp?!0:!1});
|
||
|
return-1==c?0:c+1},ita=function(a){return a.g?"productListing"==a.g.sc.type:(0,g.zr)(a.o,function(a){return"productListing"==a.sc.type})},D5=function(a){g.S(a.U.getRootNode(),"ytp-cards-shopping-active",ita(a))},jta=function(a,b){if(a.J.g){var c=new P3([0,
|
||
|
a.A.scrollTop],[0,b.Sp.offsetTop],600,Tqa);g.em(a.context.B,c,"animate",function(a){this.A.scrollTop=a.y},void 0,a);
|
||
|
g.em(a.context.B,c,"finish",function(a){this.A.scrollTop=a.y},void 0,a);
|
||
|
c.play()}else a.J.Lb(!0),a.A.scrollTop=b.Sp.offsetTop,a.J.Lb(!1)},F5=function(a){return a.g&&a.g.sc?a.g.sc:a.o[0]&&a.o[0].sc?a.o[0].sc:null},hta=function(a,b){return g.ab(a.o,function(a){return a.sc.id==b},a)},G5=function(a,b,c){A5.call(this,a,b);
|
||
|
this.annotation=c;this.isActive=!1},H5=function(a,b,c){G5.call(this,a,b,c);
|
||
|
this.J=b;this.o=null;this.F=!1;this.A=null;this.B=!1;this.G=0;this.g=this.D=this.C=null},I5=function(a,b,c){G5.call(this,a,b,c);
|
||
|
this.G=this.C=this.J=!1;this.F=5E3;this.B=null;this.jk=g.he("DIV","iv-promo-contents");this.g=this.o=this.A=this.wd=null;this.D=new g.rt(function(){this.wd.setAttribute("aria-hidden",!0);g.N(this.A,!1);g.N(this.o,!0);this.g&&g.N(this.g,!0)},700,this)},kta=function(a){var b=a.annotation.data;
|
||
|
if("cta"==a.annotation.style)var c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.F=b.collapse_delay_ms||a.F;var d=["iv-promo","iv-promo-inactive"];a.ra().setAttribute("aria-hidden",!0);a.ra().setAttribute("aria-label",g.T("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ra().tabIndex=0;var e=P4(a.annotation);if(b.image_url){var f=g.he("DIV",["iv-promo-img","iv-click-target"]);var k=g.he("IMG",{src:b.image_url,"aria-hidden":"true"});f.appendChild(k);b.video_duration&&!b.is_live?
|
||
|
(k=g.he("SPAN","iv-promo-video-duration",b.video_duration),f.appendChild(k)):b.playlist_length&&(k=g.he("SPAN","iv-promo-playlist-length",b.playlist_length.toString()),f.appendChild(k));e&&a.Bi(f,e,a.annotation.id,b.session_data,a.annotation.Xb,void 0,c)}e?a.wd=g.he("A",{href:K4(e),"class":"iv-promo-txt"}):a.wd=g.he("DIV","iv-promo-txt");switch(a.annotation.style){case "cta":case "website":var l=g.he("P",null,g.he("STRONG",null,b.text_line_1));var m=g.he("P",null,g.he("SPAN","iv-promo-link",b.text_line_2));
|
||
|
if(b.text_line_3)if(a.context.C.experiments.g("website_actions_cta_redesign")){d.push("iv-promo-website-card-cta-redesign");a.g=g.he("BUTTON",["iv-promo-round-expand-icon","ytp-button"]);k=g.he("BUTTON",["iv-button","iv-promo-button"],g.he("SPAN","iv-button-content",b.text_line_3));var n=g.he("DIV","iv-promo-button-container");n.appendChild(k);e&&a.Bi(a.ra(),e,a.annotation.id,b.session_data,a.annotation.Xb,void 0,c)}else{d.push("iv-promo-website-card-cta");var q=g.he("P",null,g.he("SPAN","iv-promo-action-text",
|
||
|
b.text_line_3))}g.R(a.wd,"iv-click-target");e&&a.Bi(a.wd,e,a.annotation.id,b.session_data,a.annotation.Xb,void 0,c);break;case "playlist":case "video":l=g.he("P",null,g.he("SPAN",null,b.text_line_1));m=g.he("P",null,g.he("STRONG",null,b.text_line_2));b.is_live&&(l=m,m=g.he("SPAN",["yt-badge","iv-promo-badge-live"],g.T("YTP_LIVE_NOW")));g.R(a.wd,"iv-click-target");e&&a.Bi(a.wd,e,a.annotation.id,b.session_data,a.annotation.Xb,void 0,c);d.push("iv-promo-video");break;case "vote":l=g.he("P",null,g.he("STRONG",
|
||
|
null,b.text_line_1)),m=g.he("P",null,g.he("SPAN",null,b.text_line_2)),n=g.he("DIV","iv-promo-button-container"),k=g.he("BUTTON",["iv-button","iv-promo-button"],g.he("SPAN","iv-button-content",b.button_text)),a.context.g.V(k,"click",function(a){a.stopPropagation();n5(this.context.logger,this.annotation.Xb,null,{contest_vote:"1"},(b.tracking||{}).vote);a=this.annotation.data;this.wd=g.J("iv-promo-txt",this.jk);var c=g.J("iv-promo-button-container",this.jk),d=g.he("DIV",["iv-promo-txt","iv-click-target"]),
|
||
|
e=g.he("P",null,g.he("STRONG",null,a.text_line_3)),f=g.he("P",null,a.text_line_4);g.me(d,e,f);g.qe(c);g.re(d,this.wd);g.Ip(this.ra(),"iv-promo-with-button");(c=P4(this.annotation))&&this.Bi(d,c,this.annotation.id,a.session_data,this.annotation.Xb)},a),n.appendChild(k),d.push("iv-promo-with-button")}l&&a.wd.appendChild(l);
|
||
|
m&&a.wd.appendChild(m);q&&a.wd.appendChild(q);a.jk.appendChild(a.wd);n&&a.jk.appendChild(n);c=g.he("DIV","iv-promo-actions");a.o=g.he("BUTTON",["iv-promo-expand","ytp-button"]);a.o.title=g.T("YTP_EXPAND");a.context.g.V(a.o,"click",g.Aa(a.Kq,5E3),a);c.appendChild(a.o);g.N(a.o,!1);a.g&&g.N(a.g,!1);a.context.g.V(a.ra(),"mouseover",a.HH,a);a.context.g.V(a.ra(),"mouseout",a.GH,a);a.context.g.V(a.ra(),"touchend",g.Aa(a.Kq,5E3),a);a.A=g.he("BUTTON",["iv-promo-close","ytp-button"]);a.A.title=g.T("YTP_CLOSE");
|
||
|
a.context.g.V(a.A,"click","cta"==a.annotation.style&&b.text_line_3?a.wH:a.TT,a);c.appendChild(a.A);g.Hp(a.ra(),d);f&&g.le(a.ra(),f);a.g&&g.le(a.ra(),a.g);g.le(a.ra(),a.jk);g.le(a.ra(),c)},lta=function(a){a.C||a.G||a.B||(g.R(a.ra(),"iv-promo-collapsed"),a.C=!0,a.D.start())},mta=function(a){a.D.stop();
|
||
|
a.C&&(g.Jp(a.ra(),["iv-promo-collapsed","iv-promo-collapsed-no-delay"]),a.C=!1,a.wd&&a.wd.removeAttribute("aria-hidden"),g.N(a.o,!1),g.N(a.A,!0),a.g&&g.N(a.g,!1))},nta=function(a,b){a.B||(a.B=g.gg(function(){J5(this);
|
||
|
lta(this)},b,a))},J5=function(a){a.B&&(g.hg(a.B),a.B=null)},K5=function(a){g.sV.call(this,a);
|
||
|
this.K=0;this.A={};this.M={};this.gb=new Lsa(a);this.G=new g.OF(this);g.L(this,this.G);this.C=this.B=null;this.G.R(this.g,"onVideoAreaChange",(0,g.y)(this.Y,this,"onVideoAreaChange"));this.G.R(this.g,"onHideControls",(0,g.y)(this.Y,this,"onHideControls"));this.G.R(this.g,"onShowControls",(0,g.y)(this.Y,this,"onShowControls"));this.G.R(this.g,"resize",(0,g.y)(this.Y,this,"resize"));this.G.R(this.g,"presentingplayerstatechange",(0,g.y)(this.Y,this,"presentingplayerstatechange"));this.subscribe("onHideControls",
|
||
|
this.KO,this);this.subscribe("onShowControls",this.CQ,this);this.subscribe("presentingplayerstatechange",this.TP,this);this.subscribe("resize",this.Gs,this);this.subscribe("k",this.LT,this);this.subscribe("j",this.th,this);this.subscribe("h",this.uN,this);this.subscribe("i",this.ZN,this);g.Y(this.g).G.subscribe("vast_info_card_add",this.LA,this);this.X=new g.OF(this);g.L(this,this.X);this.X.R(this.g,"crn_annotations_module",this.JT);this.X.R(this.g,"crx_annotations_module",this.KT);this.P=g.he("DIV",
|
||
|
["video-legacy-annotations","html5-stop-propagation"]);this.ca=g.he("DIV","video-custom-annotations");this.D=new g.W({H:"div",ea:["ytp-player-content","ytp-iv-player-content"]});g.L(this,this.D);g.hV(this.g,this.D.element,5);this.D.hide();this.F=new g.W({H:"div",ea:["ytp-iv-video-content"]});g.L(this,this.F);g.le(this.F.element,g.he("DIV","video-annotations",this.P,this.ca));this.J=this.o=null;this.O=[];ota(this)&&this.load();var b=g.je("STYLE");(window.document.getElementsByTagName("HEAD")[0]||window.document.body).appendChild(b);
|
||
|
g.Ke(this,function(){g.qe(b)});
|
||
|
b.sheet&&(b.sheet.insertRule(".iv-promo-website-card-cta .iv-promo-actions .iv-promo-close:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAJBAMAAADnQZCTAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXHMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMz////eMKB4AAAAC3RSTlMAOjuRL5WTKZmPff4oJ+UAAAABYktHRAsf18TAAAAAHklEQVQI12NgYGRgUGZgCWMo7mRY0QkigWygCAMjADeSBCY3xFwJAAAAAElFTkSuQmCC) no-repeat center;background-size:4px 9px;width:4px;height:9px}",
|
||
|
0),b.sheet.insertRule(".iv-promo .iv-promo-contents .iv-promo-txt .iv-promo-link:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEVMaXH////////////////////////////////////Z6AnKAAAACXRSTlMA+/A2IuI1mJIldm0CAAAAAWJLR0QB/wIt3gAAAEVJREFUCNdjYGCYCQUMBJlACOIzIDElIcyZkwxgojOVWWDMSQauMKYySySUOSnBdSaUOZ0lEsac2YqwYiZ+JhwgM7E5HACgzVCI/YJ59AAAAABJRU5ErkJggg==) no-repeat center;background-size:10px;width:10px;height:10px}",
|
||
|
0),b.sheet.insertRule(".iv-promo .iv-promo-actions .iv-promo-close:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXH///////////////////////////////////////////9tKdXLAAAAC3RSTlMAVaQDpaimqQbl5rjXUFUAAAABYktHRAH/Ai3eAAAAPUlEQVQI12MQMmAwEmDwDmaOTmAw39663YCBuXp2MQMDQ+fOBgYG5ujVwQwMptvbgeLaxczVCQwiBgxmAgBkXg1FN5iwiAAAAABJRU5ErkJggg==) no-repeat center;background-size:9px;width:9px;height:9px}",
|
||
|
0),b.sheet.insertRule(".iv-promo .iv-promo-actions .iv-promo-expand:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAJBAMAAADnQZCTAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXHMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMz////eMKB4AAAAC3RSTlMAOpE7k5Uvj5kpfRaQSaQAAAABYktHRAsf18TAAAAAHklEQVQI12MQYGBQZmBwTWCo0GSo6AKRQDZQRIABADXXA/UkIpvtAAAAAElFTkSuQmCC) no-repeat center;background-size:4px 9px;width:4px;height:9px}",0),b.sheet.insertRule(".iv-promo-website-card-cta-redesign .iv-promo-round-expand-icon:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgCgUUEztsNfqrAAAAXklEQVRYw+3Uuw2AQAwEUUNXfBpDIvBRMhQwJJAScNrA0r4CdiQHjjAzK4NGKucPAFmCnZcmwcTphBNO9CTGH4VB+/Zm6YlYis9fhedXz38FNvFriCCl808iw8ysrBu65gCeuV/CfgAAAABJRU5ErkJggg==) no-repeat center;background-size:18px 18px;width:18px;height:18px}",
|
||
|
0),b.sheet.insertRule(".iv-card-link-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASBAMAAACk4JNkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEVMaXG7u7u7u7u7u7u7u7u7u7u7u7v///+WKTAlAAAABnRSTlMAFdQWbGj9GiOuAAAAAWJLR0QHFmGI6wAAAEhJREFUCNdjYACBNCBgQGMxMKrBWEJJaRAJRjVlKEsoSQDIAqtSZICwgEIQFkgIZBRECMxiBqsCsVjAqsCygQwwFgMeFgQgswBg2xjLrfC4mgAAAABJRU5ErkJggg==) no-repeat center;background-size:9px;width:9px;height:9px}",0),b.sheet.insertRule(".iv-card-playlist-video-count:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXH///////////////////////////////////////////9tKdXLAAAAC3RSTlMAvDeyLvxYtDK9Ogx4T1QAAAABYktHRAH/Ai3eAAAAK0lEQVQY02NgoBjshgO8HJoYwKiAMGAD92YHJM7uMCTO9gaEHs4FlPuZAQC8Fj8x/xHjxwAAAABJRU5ErkJggg==) no-repeat center;background-size:24px;width:24px;height:24px}",
|
||
|
0),b.sheet.insertRule(".iv-drawer-close-button:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMAgMAAAArG7R0AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEVMaXH////////OZTV/AAAAAnRSTlMAoKBFbtAAAAABYktHRAH/Ai3eAAAAKUlEQVQI12MIYGBlSGGQBMIUBjbHCQyM0xwYGDIZwBjEBomB5EBqgGoBolQGzYuy51cAAAAASUVORK5CYII=) no-repeat center;background-size:12px;width:12px;height:12px}",0),b.sheet.insertRule(".iv-ad-info-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAMAAACecocUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAVFBMVEVMaXGUlJSYmJiZmZmYmJiXl5eZmZmZmZmWlpaVlZWOjo6ZmZmSkpKXl5eYmJiYmJiZmZmZmZmZmZmZmZmYmJiJiYmXl5eZmZmYmJiWlpaZmZn///+81lbeAAAAGnRSTlMAE5DM80DliTMMEjccWIM5p1UjaTQNgB5cLlr5mgUAAAABYktHRBsCYNSkAAAAVElEQVQI102NRw7AIBADhw7ppIf/PzQLJ/ZgWSNrFlDaWKMVcs6HmGLwTqjEME6CFDrAXBYIGhNh3TJEg02wHydctvFc7sbrvnXZV8/zfs3T+7u/P7CrAso35YfPAAAAAElFTkSuQmCC) no-repeat center;background-size:11px;width:11px;height:11px}",
|
||
|
0),b.sheet.insertRule(".annotation-close-button {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEVMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz9aWloBAQGZmZlbW1v///+X9wUzAAAACHRSTlMANprf+g6lyRmB9hUAAAABYktHRA5vvTBPAAAAWUlEQVQI12NgYBAycVZkAIKwDiBIZWBgrQAx2gMY2DrAIIFBomPWju6VHY0MGh1rbu891dHEYNGx9+yd2x3NDB4d3XfO7uhoQTDgUnDFcO1wA+FWwC2FOQMAdKg6tUSAFEAAAAAASUVORK5CYII=) no-repeat center}",
|
||
|
0),b.sheet.insertRule(".annotation-link-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUVBMVEVMaXH////////////////////////////////////////////////////////////////////////////////////////////////////////JzkR1AAAAGnRSTlMAfXf+c3xsdGdv/GJoXPtXXflSVk5L7DBH9VeFfsQAAAABYktHRAH/Ai3eAAAAgElEQVQ4y93SSQ6AIAwFULSOOOJs739Qf9SF0VA2uNCu+psHaQJK7cVCqY+Rg92PXA++Q84KnCR03UIRJrFEKMEgZYFQhpyzQHSBWJJAdIVUENtJ3SC0mu3EdOh7zXZiBrRdzQLJ0Y1GfOlpVstD3HaZktX9X/gvRCxvxL6FR7IBS1RTM5xIpLoAAAAASUVORK5CYII=) no-repeat center}",
|
||
|
0))},ota=function(a){var b=g.Y(a.g);
|
||
|
a=a.g.ia();return 1==(b.Pg||a.Pg)&&!a.rC||null!==b.G.get(a.videoId)},pta=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];
|
||
|
c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){if(c[e.tagName])var f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""):e&&f.push(pta(a,e))}return c},qta=function(a,b,c){return!(a.loaded&&a.K==b&&a.g.ia().videoId==
|
||
|
c)},sta=function(a,b){var c=rta(a,b);
|
||
|
if(!c&&"marker"!=b.type)return null;esa(b,function(a){a=(0,g.y)(this.YQ,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
|
||
|
return new Asa(a.ba,b,c)},tta=function(a,b){var c=K5.o(),d=null;
|
||
|
switch(b.type){case "branding":if(g.Y(a.g).Yj)break;a.D.element.appendChild(c);d=new H5(c,L5(a),b);break;case "promotion":g.hV(a.g,c,5),d=new I5(c,L5(a),b)}d&&d.to();return d},wta=function(a){var b=a.g.ia();
|
||
|
if(b.Af){var c=g.Y(a.g),d=c.G.get(b.videoId);if(d){var e={format:"XML",bd:{},method:"POST",withCredentials:!0};"gaming"==c.o&&(e.bd.gaming="1");e.Fd=(0,g.y)(function(a,b,c){qta(this,a,b)||(a=g.uE(c)&&c.responseXML?c.responseXML:null)&&M5(this,a)},a,a.K,b.videoId);
|
||
|
g.BG()&&(e.Fd=uta(a,e.Fd));e.Tb={ic_only:"1"};vta(e,d);g.LE(b.Af,e)}}},vta=function(a,b){a.method="POST";
|
||
|
a.Tb=a.Tb||{};b.Mh&&(a.Tb.ic_xml=b.Mh);b.Nj&&(a.Tb.ic_track=b.Nj)},xta=function(a){var b=new g.W({H:"div"});
|
||
|
g.N(b.element,!1);var c=new C5(a.g,b.element,L5(a));b.Ia(a.D.element);c.to();return c},L5=function(a){a.J||(a.J=new Ksa(new g.MF(a),new g.cm(a),g.Y(a.g),a.g.ia(),a.gb,a.g,a.ba));
|
||
|
return a.J},M5=function(a,b){var c=!1;
|
||
|
yta(b);for(var d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=pta(a,d[e]),k=null;try{k=bsa(f)}catch(l){}k&&(K5.A(k)?(f=tta(a,k))&&(a.M[k.id]=f):K5.B(k)?(a.o||(a.o=xta(a)),"card"==k.type?fta(a.o,k):gta(a.o,k),c=!0):(f=sta(a,k))&&(a.A[k.id]=f))}c&&(J3(a.g),a.Gs());g.Jb(a.A,function(a){if(a.view){var b=a.annotation;(a=a.view)&&b.o&&b.o.o&&(b=this.A[b.o.o])&&(a.ba=b.annotation)}},a)},yta=function(a){if((a=a.getElementsByTagName("annotations"))&&!(1>a.length)){var b=a[0].getAttribute("itct");
|
||
|
if(b&&(a=g.QG())){var c=Oqa();c&&(b=[new g.ZF(b)],Qqa(q4(),a,c,b))}}},Ata=function(a,b,c,d){d?zta(a,b,c):N5(a,b,c)},N5=function(a,b,c){if(b=a.A[b])g5(b),c&&c.o?(a=(0,g.y)(a.Ax,a,b),b.g=new g.rt(a,2E3),b.g.start()):a.Ax(b)},zta=function(a,b,c){if(b=a.A[b])g5(b),c&&c.B?(a=(0,g.y)(a.OB,a,b),b.g=new g.rt(a,2E3),b.g.start()):a.OB(b)},Bta=function(a,b){if("new"==b.target)return!1;
|
||
|
var c=K4(b);if(!c)return!1;c=c.replace(/https?:\/\//g,"");if(!y5(c))return!1;c=g.GE(c);if(c.list||c.p)return!1;c=Xsa(b);if(!c)return!1;var d=a.g.ia();return d.videoId==c?!0:g.Y(a.g).A&&d.gm?!0:!1},rta=function(a,b){if(Cta(b)){var c=b.C||Q4(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
|
||
|
return new usa(b,(0,g.y)(a.P.appendChild,a.P),a.g,a.ba,c)}return null},Cta=function(a){if("highlight"==a.type||"widget"==a.type)return!0;
|
||
|
if("text"==a.type)for(var b in O4)if(a.style==O4[b])return!0;return!1},O5=function(a,b,c,d){a.Y(isa(b,d),c,d)},uta=function(a,b){return(0,g.y)(function(){if(!this.na()){var a=Array.prototype.slice.call(arguments,0);
|
||
|
a.unshift(b);b=g.Aa.apply(window,a);this.O.push(g.CG(b,1,void 0))}},a)},P5=function(a,b,c){switch(a){case "mouseover":case "mouseout":var d=3;
|
||
|
break;case "mouseenter":case "mouseleave":d=9}return g.Ee(c,function(a){return g.Gp(a,b)},!0,d)},R5=function(a){var b,c="mouseover"==a.type&&"mouseenter"in Q5||"mouseout"==a.type&&"mouseleave"in Q5,d=a.type in Q5||c;
|
||
|
if("HTML"!=a.target.tagName&&d){if(c){var c="mouseover"==a.type?"mouseenter":"mouseleave",d=Q5[c],e;for(e in d.o)(b=P5(c,e,a.target))&&!g.Ee(a.relatedTarget,function(a){return a==b},!0)&&d.Y(e,b,c,a)}if(c=Q5[a.type])for(e in c.o)(b=P5(a.type,e,a.target))&&c.Y(e,b,a.type,a)}},S5=function(a){this.C=a;
|
||
|
this.F={};this.J=[];this.G=[]},Z=function(a,b){return"yt-uix"+(a.C?"-"+a.C:"")+(b?"-"+b:"")},T5=function(a,b,c){a.J.push(g.dG(b,c,a))},U5=function(a,b,c){a.G.push(g.xO(b,c,a))},V5=function(){S5.call(this,"button");
|
||
|
this.g=null;this.A=[];this.o={}},Dta=function(a,b,c,d,e){var f=T3(c),k=9==d.keyCode;
|
||
|
k||32==d.keyCode||13==d.keyCode?(d=W5(a,c))?(b=g.ve(d),"a"==b.tagName.toLowerCase()?g.oV(b.href):Aqa(b)):k&&X5(a,b):f?27==d.keyCode?(W5(a,c),X5(a,b)):e(b,c,d):(a=g.Gp(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Aqa(b),d.preventDefault()))},W5=function(a,b){var c=Z(a,"menu-item-highlight"),d=g.J(c,b);
|
||
|
d&&g.Ip(d,c);return d},Eta=function(a,b,c){g.R(c,Z(a,"menu-item-highlight"));
|
||
|
var d=c.getAttribute("id");d||(d=Z(a,"item-id-"+g.za(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)},Fta=function(a,b,c,d){var e=b.length;
|
||
|
a=(0,g.fb)(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),--a):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a},Y5=function(a,b){var c=b.iframeMask;
|
||
|
c||(c=window.document.createElement("iframe"),c.src='javascript:""',c.className=Z(a,"menu-mask"),g.CV(c),b.iframeMask=c);return c},Z5=function(a,b,c,d){var e=g.Ge(b,Z(a,"group")),f=!!a.ya(b,"button-menu-ignore-group"),e=e&&!f?e:b,f=9,k=8,l=g.uh(b);
|
||
|
if(g.Gp(b,Z(a,"reverse"))){f=8;k=9;l=l.top+"px";try{c.style.maxHeight=l}catch(q){}}g.Gp(b,"flip")&&(g.Gp(b,Z(a,"reverse"))?(f=12,k=13):(f=13,k=12));var m;a.ya(b,"button-has-sibling-menu")?m=g.kh(e):a.ya(b,"button-menu-root-container")&&(m=Gta(a,b));g.sc&&!g.kc("8")&&(m=null);if(m){var n=g.uh(m);n=new g.Kg(-n.top,n.left,n.top,-n.left)}m=new g.Nd(0,1);g.Gp(b,Z(a,"center-menu"))&&(m.x-=Math.round((g.th(c).width-g.th(b).width)/2));d&&(m.y+=g.de(window.document).y);if(a=Y5(a,b))b=g.th(c),a.style.width=
|
||
|
b.width+"px",a.style.height=b.height+"px",X3(e,f,a,k,m,n,197),d&&g.ah(a,"position","fixed");X3(e,f,c,k,m,n,197)},Gta=function(a,b){if(a.ya(b,"button-menu-root-container")){var c=a.ya(b,"button-menu-root-container");
|
||
|
return g.Ge(b,c)}return window.document.body},X5=function(a,b){if(b){var c=$5(a,b);
|
||
|
if(c){a.g=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");g.CV(c);a.Ni(b,"button-menu-action",!1);var d=Y5(a,b),e=V3(c).toString();delete a.o[e];g.yE(function(){d&&d.parentNode&&(g.CV(d),d.parentNode.removeChild(d));c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=g.Ge(b,Z(a,"group")),f=[Z(a,"active")];
|
||
|
e&&f.push(Z(a,"group-active"));g.Jp(b,f);g.fG("yt-uix-button-menu-hide",b);g.DF(a.A);a.A.length=0}},Hta=function(a,b,c){var d=Z(a,"menu-item-selected");
|
||
|
(0,g.G)(g.Yd(d,b),function(a){g.Ip(a,d)});
|
||
|
g.R(c.parentNode,d)},$5=function(a,b){if(!b.widgetMenu){var c=a.ya(b,"button-menu-id"),c=c&&g.Wd(c),d=Z(a,"menu");
|
||
|
c?g.Hp(c,[d,Z(a,"menu-external")]):c=g.J(d,b);b.widgetMenu=c}return b.widgetMenu},Ita=function(a,b){if(a.ya(b,"button-toggle")){var c=g.Ge(b,Z(a,"group")),d=Z(a,"toggled"),e=g.Gp(b,d);
|
||
|
if(c&&a.ya(c,"button-toggle-group")){var f=a.ya(c,"button-toggle-group");(0,g.G)(g.Yd(Z(a),c),function(a){a!=b||"optional"==f&&e?(g.Ip(a,d),a.removeAttribute("aria-pressed")):(g.R(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),g.Lp(b,d)}},a6=function(a){a.g&&X5(a,a.g)},b6=function(a){S5.call(this,a);
|
||
|
this.A=null},Jta=function(a,b,c){var d=c||b,e=Z(a,"card");
|
||
|
c=a.Gc(d);var f=g.Wd(Z(a,"card")+V3(d));if(f)return a=g.J(Z(a,"card-body"),f),g.xe(a,c)||(g.qe(c),a.appendChild(c)),f;f=window.document.createElement("div");f.id=Z(a,"card")+V3(d);f.className=e;(d=a.ya(d,"card-class"))&&g.Hp(f,d.split(/\s+/));d=window.document.createElement("div");d.className=Z(a,"card-border");b=a.ya(b,"orientation")||"horizontal";e=window.document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var k=window.document.createElement("div");k.className=
|
||
|
Z(a,"card-body");a=window.document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;g.qe(c);k.appendChild(c);d.appendChild(a);d.appendChild(k);f.appendChild(e);f.appendChild(d);window.document.body.appendChild(f);return f},Kta=function(a,b,c){var d=a.ya(b,"orientation")||"horizontal",e=g.J(Z(a,"anchor"),b)||b,f=a.ya(b,"position"),k=!!a.ya(b,"force-position"),l=a.ya(b,"position-fixed"),d="horizontal"==d,m="bottomright"==f||"bottomleft"==f,n="topright"==f||"bottomright"==
|
||
|
f;
|
||
|
if(n&&m){var q=13;var r=8}else n&&!m?(q=12,r=9):!n&&m?(q=9,r=12):(q=8,r=13);var w=O3(window.document.body),f=O3(b);w!=f&&(q^=4);if(d){f=b.offsetHeight/2-12;var A=new g.Nd(-12,b.offsetHeight+6)}else f=b.offsetWidth/2-6,A=new g.Nd(b.offsetWidth+6,-12);var C=g.th(c),f=Math.min(f,(d?C.height:C.width)-24-6);6>f&&(f=6,d?A.y+=12-b.offsetHeight/2:A.x+=12-b.offsetWidth/2);C=null;k||(C=10);b=Z(a,"card-flip");a=Z(a,"card-reverse");g.S(c,b,n);g.S(c,a,m);C=X3(e,q,c,r,A,null,C);!k&&C&&(C&48&&(n=!n,q^=4,r^=4),C&
|
||
|
192&&(m=!m,q^=1,r^=1),g.S(c,b,n),g.S(c,a,m),X3(e,q,c,r,A));l&&(e=(0,window.parseInt)(c.style.top,10),k=g.de(window.document).y,g.ah(c,"position","fixed"),g.ah(c,"top",e-k+"px"));w&&(c.style.right="",e=g.uh(c),e.left=e.left||(0,window.parseInt)(c.style.left,10),k=g.be(window),c.style.left="",c.style.right=k.width-e.left-e.width+"px");e=g.J("yt-uix-card-body-arrow",c);k=g.J("yt-uix-card-border-arrow",c);d=d?m?"top":"bottom":!w&&n||w&&!n?"left":"right";e.setAttribute("style","");k.setAttribute("style",
|
||
|
"");e.style[d]=f+"px";k.style[d]=f+"px";m=g.J("yt-uix-card-arrow",c);n=g.J("yt-uix-card-arrow-background",c);m&&n&&(c="right"==d?g.th(c).width-f-13:f+11,f=c/Math.sqrt(2),m.style.left=c+"px",m.style.marginLeft="1px",n.style.marginLeft=-f+"px",n.style.marginTop=f+"px")},c6=function(a){a.A&&a.hide(a.A)},Lta=function(a){var b=a.cardMask;
|
||
|
b||(b=window.document.createElement("iframe"),b.src='javascript:""',g.Hp(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";window.document.body.appendChild(b)},d6=function(){S5.call(this,"kbd-nav")},Mta=function(a,b,c){b&&c&&(g.R(c,Z(a)),a=b.id,a||(a="kbd-nav-"+Math.floor(1E6*Math.random()+1),b.id=a),b=a,g.ppa&&c.dataset?c.dataset.kbdNavMoveOut=b:
|
||
|
c.setAttribute("data-"+"kbdNavMoveOut".replace(/([A-Z])/g,"-$1").toLowerCase(),b))},Nta=function(a,b){if(b){var c=g.Fe(b,"LI");
|
||
|
c&&(g.R(c,Z(a,"highlight")),e6=g.CF(b,"blur",(0,g.y)(function(a){g.Ip(a,Z(this,"highlight"));g.DF(e6)},a,c)))}},Ota=function(a){if("UL"!=a.tagName.toUpperCase())return[];
|
||
|
a=(0,g.se)(g.te(a),function(a){return"LI"==a.tagName.toUpperCase()});
|
||
|
return(0,g.se)((0,g.H)(a,function(a){return T3(a)?c4(a,function(a){return g.wa(a)&&1==a.nodeType?g.De(a):!1}):!1}),function(a){return!!a})},f6=function(){S5.call(this,"menu");
|
||
|
this.o=this.g=null;this.A={};this.D={};this.B=null},g6=function(a){var b=f6.getInstance();
|
||
|
if(g.Gp(a,Z(b)))return a;var c=b.ae(a);return c?c:g.Ge(a,Z(b,"content"))==b.g?b.o:null},Pta=function(a,b,c){var d=h6(a,b);
|
||
|
d&&g.sh(d,g.th(c));if(c==a.g){var e=9,f=8;g.Gp(b,Z(a,"reversed"))&&(e^=1,f^=1);g.Gp(b,Z(a,"flipped"))&&(e^=4,f^=4);a=new g.Nd(0,1);d&&X3(b,e,d,f,a,null,197);X3(b,e,c,f,a,null,197)}},Rta=function(a,b,c){i6(a,b)&&!c?j6(a,b):(Qta(a,b),!a.g||U3(b,a.g)?a.tD(b):Bqa(a.B,(0,g.y)(a.tD,a,b)))},Qta=function(a,b){if(b){var c=g.Ge(b,Z(a,"content"));
|
||
|
c&&(0,g.G)(g.Yd(Z(a),c),function(a){!U3(a,b)&&i6(this,a)&&k6(this,a)},a)}},j6=function(a,b){if(b){var c=[];
|
||
|
c.push(b);var d=l6(a,b);d&&(d=g.Yd(Z(a),d),d=g.qb(d),c=c.concat(d),(0,g.G)(c,function(a){i6(this,a)&&k6(this,a)},a))}},k6=function(a,b){if(b){var c=l6(a,b);
|
||
|
g.Jp(m6(a,b),[Z(a,"trigger-selected"),"yt-uix-button-toggled"]);g.R(c,Z(a,"content-hidden"));var d=l6(a,b);d&&g.$d(d,{"aria-expanded":"false"});(d=h6(a,b))&&d.parentNode&&g.qe(d);c&&c==a.g&&(a.o.appendChild(c),a.g=null,a.o=null,a.B&&a.B.Y("ROOT_MENU_REMOVED"));g.fG("yt-uix-menu-hide",b);c=g.za(b).toString();g.DF(a.A[c]);delete a.A[c]}},Sta=function(a,b){var c=l6(a,b);
|
||
|
if(c){(0,g.G)(c.children,function(a){"LI"==a.tagName&&g.$d(a,{role:"menuitem"})});
|
||
|
g.$d(c,{"aria-expanded":"true"});var d=c.id;d||(d="aria-menu-id-"+g.za(c),c.id=d);(c=m6(a,b))&&g.$d(c,{"aria-controls":d})}},Tta=function(a,b,c){var d=l6(a,b);
|
||
|
d&&g.Gp(b,Z(a,"checked"))&&(a=g.Fe(c,"LI"))&&(a=g.J("yt-ui-menu-item-checked-hid",a))&&((0,g.G)(g.Yd("yt-ui-menu-item-checked",d),function(a){g.Kp(a,"yt-ui-menu-item-checked","yt-ui-menu-item-checked-hid")}),g.Kp(a,"yt-ui-menu-item-checked-hid","yt-ui-menu-item-checked"))},i6=function(a,b){var c=l6(a,b);
|
||
|
return c?!g.Gp(c,Z(a,"content-hidden")):!1},Uta=function(a){(0,g.G)(g.Xd(window.document,"UL",null,a),function(a){a.tabIndex=0;
|
||
|
var b=d6.getInstance();g.Hp(a,[Z(b),Z(b,"list")])})},l6=function(a,b){var c=g.pF(b,"menu-content-id");
|
||
|
return c&&(c=g.Wd(c))?(g.Hp(c,[Z(a,"content"),Z(a,"content-external")]),c):b==a.o?a.g:g.J(Z(a,"content"),b)},h6=function(a,b){var c=g.za(b).toString(),d=a.D[c];
|
||
|
if(!d){d=g.je("IFRAME");d.src='javascript:""';var e=[Z(a,"mask")];(0,g.G)(g.Fp(b),function(a){e.push(a+"-mask")});
|
||
|
g.Hp(d,e);a.D[c]=d}return d||null},m6=function(a,b){return g.J(Z(a,"trigger"),b)},Vta=function(a,b){return U3(b,a.g)||U3(b,a.o)},n6=function(){b6.call(this,"clickcard");
|
||
|
this.g={};this.o={}},o6=function(){b6.call(this,"hovercard")},p6=function(a,b,c,d,e,f){this.g=a;
|
||
|
this.F=null;this.A=g.J("yt-dialog-fg",this.g)||this.g;if(a=g.J("yt-dialog-title",this.A)){var k="yt-dialog-title-"+g.za(this.A);a.setAttribute("id",k);this.A.setAttribute("aria-labelledby",k)}this.A.setAttribute("tabindex","-1");this.K=g.J("yt-dialog-focus-trap",this.g);this.M=!1;this.B=new g.iD;this.G=[];this.G.push(H3(this.g,"click",(0,g.y)(this.VN,this),"yt-dialog-dismiss"));this.G.push(g.CF(this.K,"focus",(0,g.y)(this.eH,this),!0));Wta(this);this.O=b;this.X=c;this.P=d;this.J=e;this.ba=f;this.D=
|
||
|
this.C=null},Xta=function(a,b){a.na()||a.B.subscribe("post-all",b)},Wta=function(a){a=g.J("yt-dialog-fg-content",a.g);
|
||
|
var b=[];g.Jb(Yta,function(a){b.push("yt-dialog-show-"+a)});
|
||
|
g.Jp(a,b);g.R(a,"yt-dialog-show-content")},Zta=function(){return(0,g.Bk)(g.Yd("yt-dialog"),function(a){return T3(a)})},$ta=function(a){var b=g.Xd(window.document,"iframe",null,a.g);
|
||
|
(0,g.G)(b,function(a){var b=g.pF(a,"onload");b&&(b=g.v(b))&&g.CF(a,"load",b);if(b=g.pF(a,"src"))a.src=b},a);
|
||
|
return g.qb(b)},aua=function(a){(0,g.G)(window.document.getElementsByTagName("iframe"),function(b){-1==(0,g.fb)(a,b)&&g.R(b,"iframe-hid")})},bua=function(){(0,g.G)(g.Yd("iframe-hid"),function(a){g.Ip(a,"iframe-hid")})},cua=function(a){g.yE((0,g.y)(function(){this.A&&this.A.focus()},a),0)},q6=function(){S5.call(this,"overlay");
|
||
|
this.B=this.o=this.A=this.g=null},eua=function(a){a.B||(a.B=g.dG("yt-uix-overlay-hide",dua));
|
||
|
a.g&&Xta(a.g,function(){var a=q6.getInstance();a.A=null;a.g.dispose();a.g=null})},fua=function(a){if(a.g){var b=a.A;
|
||
|
a.g.dismiss("overlayhide");b&&a.Ni(b,"overlay-hidden");a.A=null;a.o&&(g.DF(a.o),a.o=null);a.g=null}},gua=function(a,b){var c;
|
||
|
if(a)if(c=g.J("yt-dialog",a)){var d=g.Wd("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=g.Ge(b,"yt-dialog"));return c},hua=function(){var a=q6.getInstance();
|
||
|
if(a.A)a=g.J("yt-dialog-fg-content",a.A.overlayContentNode);else a:{if(a=g.Yd("yt-dialog-fg-content"))for(var b=0;b<a.length;b++){var c=g.Ge(a[b],"yt-dialog");if(T3(c)){a=a[b];break a}}a=null}return a},dua=function(){fua(q6.getInstance())},r6=function(){S5.call(this,"tooltip");
|
||
|
this.g=0;this.o={}},iua=function(a,b,c){a.setData(b,"tooltip-text",c);
|
||
|
a=a.ya(b,"content-id");(a=g.Wd(a))&&g.ze(a,c)},jua=function(a,b){return a.ya(b,"tooltip-text")||b.title},mua=function(a,b){if(b){var c=jua(a,b);
|
||
|
if(c){var d=g.Wd(s6(a,b));if(!d){d=window.document.createElement("div");d.id=s6(a,b);d.className=Z(a,"tip");var e=window.document.createElement("div");e.className=Z(a,"tip-body");var f=window.document.createElement("div");f.className=Z(a,"tip-arrow");var k=window.document.createElement("div");k.setAttribute("aria-hidden","true");k.className=Z(a,"tip-content");var l=kua(a,b),m=s6(a,b,"content");k.id=m;a.setData(b,"content-id",m);e.appendChild(k);l&&d.appendChild(l);d.appendChild(e);d.appendChild(f);
|
||
|
var n=b4(b);m=s6(a,b,"arialabel");f=window.document.createElement("div");g.R(f,Z(a,"arialabel"));f.id=m;n=b.hasAttribute("aria-label")?b.getAttribute("aria-label"):"rtl"==window.document.body.getAttribute("dir")?c+" "+n:n+" "+c;g.ze(f,n);b.setAttribute("aria-labelledby",m);m=g.vF()||window.document.body;m.appendChild(f);m.appendChild(d);iua(a,b,c);(c=(0,window.parseInt)(a.ya(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",g.R(k,Z(a,"normal-wrap")));k=g.Gp(b,Z(a,"reverse"));lua(a,
|
||
|
b,d,e,l,k)||lua(a,b,d,e,l,!k);var q=Z(a,"tip-visible");g.yE(function(){g.R(d,q)},0)}}}},lua=function(a,b,c,d,e,f){g.S(c,Z(a,"tip-reverse"),f);
|
||
|
var k=0;f&&(k=1);var l=g.th(b);f=new g.Nd((l.width-10)/2,f?l.height:0);var m=g.lh(b);Jqa(new g.Nd(m.x+f.x,m.y+f.y),c,k);var m=g.be(window),n=g.ph(c);c=g.th(d);var q=Math.floor(c.width/2),k=!!(m.height<n.y+l.height),l=!!(n.y<l.height);f=!!(n.x<q);m=!!(m.width<n.x+q);n=(c.width+3)/-2- -5;a=a.ya(b,"force-tooltip-direction");if("left"==a||f)n=-5;else if("right"==a||m)n=20-c.width-3;a=Math.floor(n)+"px";d.style.left=a;e&&(e.style.left=a,e.style.height=c.height+"px",e.style.width=c.width+"px");return!(k||
|
||
|
l)},s6=function(a,b,c){a=Z(a)+V3(b);
|
||
|
c&&(a+="-"+c);return a},kua=function(a,b){var c=null;
|
||
|
g.t2&&g.Gp(b,Z(a,"masked"))&&((c=g.Wd("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),g.BV(c)):(c=window.document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c},nua=function(a){var b=g.Wd("yt-uix-tooltip-shared-mask"),c=b&&g.Ee(b,function(b){return b==a},!1,2);
|
||
|
b&&c&&(b.parentNode.removeChild(b),g.CV(b),window.document.body.appendChild(b))},t6=function(a){g.qO.call(this,1,arguments);
|
||
|
this.g=a},u6=function(a,b,c,d,e){g.qO.call(this,2,arguments);
|
||
|
this.source=e||null},oua=function(a,b,c){g.qO.call(this,1,arguments);
|
||
|
this.g=a;this.o=b},v6=function(a,b,c,d,e,f,k){g.qO.call(this,1,arguments);
|
||
|
this.g=d||null;this.source=k||null},pua=function(a){a=g.Ge(a,"yt-uix-button-subscription-container");
|
||
|
return g.J("yt-dialog",g.J("unsubscribe-confirmation-overlay-container",a))},qua=function(a,b){g.DF(w6);
|
||
|
w6.length=0;x6[b]||(x6[b]=pua(a));q6.getInstance().show(x6[b]);var c=hua();return new g.Lf(function(a){w6.push(H3(c,"click",function(){a()},"overlay-confirmation-unsubscribe-button"))})},rua=function(){var a=g.PD("PLAYER_CONFIG");
|
||
|
return a&&a.args&&void 0!==a.args.authuser?!0:!(!g.PD("SESSION_INDEX")&&!g.PD("LOGGED_IN"))},y6=function(){S5.call(this,"subscription-button")},sua=function(a,b){if(!a.ya(b,"ypc-enabled"))return null;
|
||
|
var c=a.ya(b,"ypc-item-type"),d=a.ya(b,"ypc-item-id");return{itemType:c,itemId:d,subscriptionElement:b}},tua=function(a,b){var c=a.ya(b,z6.KF),d=!!a.ya(b,"is-subscribed"),c="-"+c,e=A6.MD+c;
|
||
|
g.S(b,A6.LD+c,!d);g.S(b,e,d);a.ya(b,z6.ZD)&&!a.ya(b,z6.YD)&&(c=Z(r6.getInstance()),g.S(b,c,!d),b.title=d?"":a.ya(b,z6.aE));d?g.yE(function(){g.R(b,A6.pu)},1E3):g.Ip(b,A6.pu)},uua=function(a,b){return(0,g.se)(g.Yd(Z(a)),function(a){return b==this.ya(a,"channel-external-id")},a)},vua=function(a,b){var c=(0,g.y)(function(a){a.discoverable_subscriptions&&g.OD("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);
|
||
|
this.lu(b)},a);
|
||
|
g.C1(c,"subscribe","sub_button")},wua=function(a,b){if(!a.ya(b,"show-unsub-confirm-dialog"))return!1;
|
||
|
var c=a.ya(b,"show-unsub-confirm-time-frame");return"always"==c||"ten_minutes"==c&&(c=(0,window.parseInt)(a.ya(b,"subscribed-timestamp"),10),(new Z3).getTime()<1E3*(c+600))?!0:!1},Cqa={thin:2,
|
||
|
medium:4,thick:6};g.z(Dqa,g.Ne);g.z(P3,g.Ps);g.h=P3.prototype;g.h.play=function(a){if(a||0==this.g)this.progress=0,this.o=this.A;else if(this.yb())return!1;N3(this);this.startTime=a=(0,g.F)();-1==this.g&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.progress||this.Sn();this.xe("play");-1==this.g&&this.xe("resume");this.g=1;var b=g.za(this);b in g.xt||(g.xt[b]=this);g.wt();Hqa(this,a);return!0};
|
||
|
g.h.stop=function(a){N3(this);this.g=0;a&&(this.progress=1);Gqa(this,this.progress);this.xe("stop");this.nl()};
|
||
|
g.h.pause=function(){this.yb()&&(N3(this),this.g=-1,this.xe("pause"))};
|
||
|
g.h.W=function(){0==this.g||this.stop(!1);this.xe("destroy");P3.aa.W.call(this)};
|
||
|
g.h.destroy=function(){this.dispose()};
|
||
|
g.h.tN=function(a){Hqa(this,a)};
|
||
|
g.h.ws=function(){this.xe("animate")};
|
||
|
g.h.xe=function(a){this.dispatchEvent(new Dqa(a,this))};
|
||
|
var Vqa=/[^\d]+$/,Lqa={IMG:" ",BR:"\n"},Kqa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};g.z(R3,P3);R3.prototype.B=g.x;R3.prototype.ws=function(){this.B();R3.aa.ws.call(this)};
|
||
|
R3.prototype.nl=function(){this.B();R3.aa.nl.call(this)};
|
||
|
R3.prototype.Sn=function(){this.B();R3.aa.Sn.call(this)};
|
||
|
var Xqa={em:1,ex:1},Wqa={cm:1,"in":1,mm:1,pc:1,pt:1};g.z(Y3,R3);Y3.prototype.B=function(){this.element.style.left=Math.round(this.o[0])+"px";this.element.style.top=Math.round(this.o[1])+"px"};
|
||
|
g.z(Z3,g.An);g.h=Z3.prototype;g.h.getHours=function(){return this.date.getHours()};
|
||
|
g.h.getMinutes=function(){return this.date.getMinutes()};
|
||
|
g.h.getSeconds=function(){return this.date.getSeconds()};
|
||
|
g.h.getUTCHours=function(){return this.date.getUTCHours()};
|
||
|
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
|
||
|
g.h.fn=function(a,b){var c=g.An.prototype.fn.call(this,a);return a?c+" "+g.Pa(this.getHours(),2)+":"+g.Pa(this.getMinutes(),2)+":"+g.Pa(this.getSeconds(),2)+(b?g.Bn(this):""):c+"T"+g.Pa(this.getHours(),2)+g.Pa(this.getMinutes(),2)+g.Pa(this.getSeconds(),2)+(b?g.Bn(this):"")};
|
||
|
g.h.toString=function(){return this.fn()};
|
||
|
g.h.clone=function(){var a=new Z3(this.date);a.Om=this.Om;a.Qm=this.Qm;return a};
|
||
|
a4.prototype.clone=function(){return new a4(this.start,this.end)};
|
||
|
a4.prototype.getLength=function(){return this.end-this.start};g.z(d4,g.rf);g.h=d4.prototype;g.h.Dq=null;g.h.Ck=null;g.h.ra=function(){return this.Ck};
|
||
|
g.h.addEventListener=function(a,b,c,d){g.bf(this.Ck,a,b,c,d)};
|
||
|
g.h.removeEventListener=function(a,b,c,d){g.lf(this.Ck,a,b,c,d)};
|
||
|
g.h.W=function(){d4.aa.W.call(this);var a=this.Ck;if(a)if(g.Te(a))a.ye&&g.Ze(a.ye);else if(a=g.ef(a)){var b=0,c;for(c in a.listeners)for(var d=a.listeners[c].concat(),e=0;e<d.length;++e)g.mf(d[e])&&++b}};g.z(h4,d4);h4.prototype.fill=null;g.z(cra,d4);i4.prototype.Bf=null;i4.prototype.Ld=null;i4.prototype.Al=!0;var era=[2,2,6,6,0];g.h=i4.prototype;g.h.clear=function(){this.sb.length=0;this.Na.length=0;this.pe.length=0;delete this.Bf;delete this.Ld;delete this.Al;return this};
|
||
|
g.h.Jc=function(a){var b=g.Za(this.sb);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.sb.push(1),this.Na.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b];var d=arguments[b+1];this.pe.push(c,d)}this.Na[this.Na.length-1]+=b/2;this.Ld=[c,d]};
|
||
|
g.h.close=function(){var a=g.Za(this.sb);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.sb.push(4),this.Na.push(1),this.Ld=this.Bf);return this};
|
||
|
g.h.clone=function(){var a=new this.constructor;a.sb=this.sb.concat();a.Na=this.Na.concat();a.pe=this.pe.concat();a.Bf=this.Bf&&this.Bf.concat();a.Ld=this.Ld&&this.Ld.concat();a.Al=this.Al;return a};
|
||
|
g.h.transform=function(a){if(!this.Al)throw Error("Non-simple path");a.transform(this.pe,0,this.pe,0,this.pe.length/2);this.Bf&&a.transform(this.Bf,0,this.Bf,0,1);this.Ld&&this.Bf!=this.Ld&&a.transform(this.Ld,0,this.Ld,0,1);return this};
|
||
|
g.h.isEmpty=function(){return 0==this.sb.length};g.z(gra,h4);k4.prototype.Eb=function(){return this.A};g.z(l4,g.Hu);l4.prototype.C=null;l4.prototype.Xi=function(){return this.He?g.th(this.ra()):g.oa(this.width)&&g.oa(this.height)?new g.Qd(this.width,this.height):null};
|
||
|
l4.prototype.resume=function(){};g.z(f4,bra);g.z(e4,bra);g.z(m4,cra);m4.prototype.clear=function(){g.ne(this.ra())};
|
||
|
m4.prototype.setSize=function(a,b){ira(this.ra(),{width:a,height:b})};
|
||
|
g.z(hra,gra);var p4;g.z(n4,l4);var kra=0;g.h=n4.prototype;g.h.hn=function(){var a=g4(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=g4(this,"g");this.G=g4(this,"defs");this.C=new m4(b,this);a.appendChild(this.G);a.appendChild(b);this.g=a;this.A&&(this.ra().setAttribute("preserveAspectRatio","none"),this.P?this.Bo():this.ra().setAttribute("viewBox","0 0 "+(this.A?this.A+" "+this.O:"")))};
|
||
|
g.h.Bo=function(){if(this.He){var a=this.Xi();if(0==a.width)this.ra().style.visibility="hidden";else{this.ra().style.visibility="";var b=a.width/this.A,a=a.height/this.O;this.C.ra().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
|
||
|
g.h.setSize=function(a,b){g.sh(this.ra(),a,b)};
|
||
|
g.h.Xi=function(){if(!g.ch)return this.He?g.th(this.ra()):n4.aa.Xi.call(this);var a=this.width,b=this.height,c=g.u(a)&&-1!=a.indexOf("%"),d=g.u(b)&&-1!=b.indexOf("%");if(!this.He&&(c||d))return null;if(c){var e=this.ra().parentNode;var f=g.th(e);a=(0,window.parseFloat)(a)*f.width/100}d&&(e=e||this.ra().parentNode,f=f||g.th(e),b=(0,window.parseFloat)(b)*f.height/100);return new g.Qd(a,b)};
|
||
|
g.h.clear=function(){this.C.clear();g.ne(this.G);this.o={}};
|
||
|
g.h.Ri=function(){var a=this.Xi();n4.aa.Ri.call(this);a||this.dispatchEvent("resize");if(this.P){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.K.V(lra(),"tick",this.Bo);this.Bo()}};
|
||
|
g.h.qk=function(){n4.aa.qk.call(this);this.P&&this.K.Ca(lra(),"tick",this.Bo)};
|
||
|
g.h.W=function(){delete this.o;delete this.G;delete this.C;this.K.dispose();delete this.K;n4.aa.W.call(this)};g.z(t4,g.sV);t4.prototype.load=function(){t4.aa.load.call(this);if(!u4(g.Y(this.g).o)){var a=this.g.ia(),b=a.videoId;this.C&&this.C.abort();b={method:"POST",Fd:(0,g.y)(this.X,this,b),bd:{v:b},withCredentials:!0};"gaming"==g.Y(this.g).o&&(b.bd.gaming="1");this.P&&(b.bd.ptype="embedded");var c=this.g.ia().Cw;c&&(b.Tb={ad_tracking:c});if(a=g.GP(a))this.C=g.LE(a,b)}};
|
||
|
t4.prototype.unload=function(){v4(this,null);this.C&&(this.C.abort(),this.C=null);t4.aa.unload.call(this)};
|
||
|
t4.prototype.ca=function(a,b){if(!u4(g.Y(this.g).o))return null;if("loadCustomEndscreenRenderer"==a){var c=mra(b,"new");v4(this,c);return!0}return null};
|
||
|
t4.prototype.X=function(a,b){var c=this.C=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=JSON.parse(d),c=mra(c,this.P?"new":"current"))}v4(this,c)};
|
||
|
for(var B6=[346,426,470,506,570,640,853,1280,1920],C6=[],D6=0;D6<B6.length;D6++)C6.push("ytp-ce-size-"+B6[D6]);var xua=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];g.h=t4.prototype;
|
||
|
g.h.FC=function(){if(this.A&&this.A.elements){var a=this.g.Qy();if(a&&0!=a.width&&0!=a.height){var b=this.g.Py();if(b&&0!=b.width&&0!=b.height){var c=a.width/a.height;var d=null;for(var e=-1,f=0;f<B6.length;f++){var k=Math.abs(b.width-B6[f]);if(-1==e||d>=k)e=f,d=k}d=C6[e];this.B&&g.ah(this.B.element,"outline-width",Math.max(b.width,b.height)+"px");for(b=0;b<this.A.elements.length;++b)if(f=this.A.elements[b].id,e=this.o[f],k=this.G[f],e&&k){var l=k.width*c/k.aspectRatio,f=Math.round(l*a.height),m=
|
||
|
a.left+Math.round(k.left*a.width),n=a.top+Math.round(k.top*a.height);g.sh(e.element,Math.round(k.width*a.width),f);g.hh(e.element,m,n);g.Jp(e.element,xua);m=k.left+k.width/2;k=k.top+l/2;g.R(e.element,.5>=m&&.5>=k?"ytp-ce-top-left-quad":.5<m&&.5>=k?"ytp-ce-top-right-quad":.5>=m&&.5<k?"ytp-ce-bottom-left-quad":"ytp-ce-bottom-right-quad");g.Jp(e.element,C6);g.R(e.element,d);(e=g.Xd(window.document,"div","ytp-ce-expanding-overlay-body",e.element)[0])&&g.ah(e,"height",f+"px")}}}}};
|
||
|
g.h.OT=function(a){if(this.A)if("ytp-ce-in-endscreen"==a.getId())this.K=!1,this.A.skip&&1==this.g.Sk()?(a=this.g,g.X1(a.app,!0,a.playerType),this.g.wc(window.Infinity),this.K=!0):(y4(this,this.A.impressionUrls),r4([this.A.visualElement]));else if(!this.K){a=a.getId().substring(15);var b=this.o[a],c=this.G[a];g.R(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");b=this.g.getRootNode();g.R(b,"ytp-ce-shown");y4(this,c.impressionUrls);r4([c.visualElement]);g.Y(this.g).Fb&&this.g.za("endscreenelementshown",
|
||
|
a)}};
|
||
|
g.h.PT=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.K){a=a.getId().substring(15);var b=this.o[a];g.Ip(b.element,"ytp-ce-element-show");b.element.setAttribute("aria-hidden",!0);b=this.g.getRootNode();g.Ip(b,"ytp-ce-shown");g.Y(this.g).Fb&&this.g.za("endscreenelementhidden",a)}};
|
||
|
g.h.tR=function(a){a.target===window&&(new g.rt(function(){for(var a in this.o)g.Jp(this.o[a].element,["ytp-ce-force-expand","ytp-ce-element-hover","ytp-ce-element-shadow-show"])},0,this)).start()};
|
||
|
g.h.kA=function(a,b){if(a.targetUrl&&(!b||"keypress"!=b.type||13==b.keyCode)){for(var c=b.target;c&&!g.Gp(c,"ytp-ce-element");){g.Gp(c,"subscribe-label")&&z4(this,a);if(g.Gp(c,"ytp-ce-channel-subscribe"))return;c=g.we(c)}if(!c||g.Gp(c,"ytp-ce-element-hover")){b.preventDefault();b.stopPropagation();if(c=this.o[a.id])this.Es(c,a),c.element.blur();b.ctrlKey||b.metaKey||"new"==a.wo?(z4(this,a),this.uB(),this.g.sd(),g.rV(a.targetUrl,void 0,a.Sd)):(c=(0,g.y)(this.uB,this,g.Aa(g.qV,a.targetUrl,a.Sd)),z4(this,
|
||
|
a,c))}}};
|
||
|
g.h.du=function(a,b){g.Gp(a.element,"ytp-ce-element-hover")||("VIDEO"==b.type||"PLAYLIST"==b.type?g.R(a.element,"ytp-ce-element-hover"):g.Y(this.g).isMobile?(new g.rt(function(){g.R(a.element,"ytp-ce-element-hover")},200)).start():g.R(a.element,"ytp-ce-element-hover"),y4(this,b.wI),x4(this,b.id,!0))};
|
||
|
g.h.Es=function(a,b){g.Ip(a.element,"ytp-ce-element-hover");g.Ip(a.element,"ytp-ce-force-expand");x4(this,b.id,!1)};
|
||
|
g.h.uB=function(a){this.g.ni(17,a)};var xra={AW:"current",GZ:"new"};var zra={CLOSE:"close",NZ:"openUrl",LF:"subscribe"},Ara={Zo:"click",CLOSE:"close",TX:"hidden",G_:"rollOut",yF:"rollOver",CF:"shown"};var Fra={Y1:"xx",Z1:"xy",d2:"yx",e2:"yy"};g.z(Jra,N4);var Pra={GD:"anchored",s_:"rect",R_:"shapeless"};var Ura={CLOSED:"closed",WZ:"playerControlShow",yF:"rollOver",CF:"shown"};var O4={GD:"anchored",KD:"branding",CHANNEL:"channel",zW:"cta",VX:"highlightText",yY:"label",PLAYLIST:"playlist",Lu:"popup",Su:"speech",LF:"subscribe",H0:"title",VIDEO:"video",N1:"vote",Q1:"website"},$ra={KD:"branding",WV:"card",lX:"drawer",AE:"highlight",UY:"marker",l_:"promotion",TEXT:"text",T1:"widget"},asa={I1:"video_relative",XZ:"player_relative"};Zra.prototype.showLinkIcon=function(){return Q4(this,function(a){return null!=a.url&&a.url.showLinkIcon})};jsa.prototype.B=function(a,b,c,d){this.g[a]=b?!c:c;a=Zqa(this.g,function(a){return a});
|
||
|
this.o!=a&&(this.o=a,this.A.Y(this.C,a,d))};T4.prototype.ra=function(){return this.C};
|
||
|
T4.prototype.A=function(){};var X4={bevel:1,dropshadow:2};var E6={Xo:"annotation-shape",wE:"focus",AE:"annotation-highlight-shape",Lu:"annotation-popup-shape",Su:"annotation-speech-shape"};g.p(Z4,T4);
|
||
|
Z4.prototype.A=function(a,b){var c=S4(a);if(c){var d=L4(c,b);if(!(0>=d.width||0>=d.height)){var e=(c=(c=gsa(a))&&c.g?c.g:null)&&c.length?c[0]:null;if(e){var f=g.Sg(Dra(b,Hra(e,new g.Mg(e.F,e.G,e.El,e.A),b.g))),k=d.clone(),c=new g.Mg(f.x,f.y,1,1),l=Math.max(k.left+k.width,c.left+c.width),m=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=l-k.left;k.height=m-k.top;var c=a.g,k=Y4(k,c.effects),l=U4(this,k.width,k.height),m=ssa(c,k.width,k.height,
|
||
|
this.g),d=new g.Mg(d.left-k.left,d.top-k.top,d.width,d.height),n=new g.Nd(f.x-k.left,f.y-k.top);this.B=17*M4(b.g,e.o,e.g?e.g:"xy");var e=c.cornerRadius,f=a.g,q=this.g&&R4(a),r=q?f.borderWidth+1:f.borderWidth,q=(f=r?new k4(r,q?f.o:f.borderColor):null)?f.Eb()/2:0,r=tsa(d,n),w=this.D(d,e,n,r),A=n.x,n=n.y,C=d.width,B=d.height,M=d.left,d=d.top,X=new i4;dra(X,M+e+q,d+q);"t"==r&&(X.Jc(w.start,d+q),X.Jc(A,n),X.Jc(w.end,d+q));X.Jc(M+C-e-q,d+q);j4(X,e,e,-90);"r"==r&&(X.Jc(M+C-q,w.start),X.Jc(A,n),X.Jc(M+C-
|
||
|
q,w.end));X.Jc(M+C-q,d+B-e-q);j4(X,e,e,0);"b"==r&&(X.Jc(w.end,d+B-q),X.Jc(A,n),X.Jc(w.start,d+B-q));X.Jc(M+e+q,d+B-q);j4(X,e,e,90);"l"==r&&(X.Jc(M+q,w.end),X.Jc(A,n),X.Jc(M+q,w.start));X.Jc(M+q,d+e+q);j4(X,e,e,180);X.close();o4(l,X,f,m);if(m=this.ra())g.R(m,E6.Xo),g.R(m,E6.Su),g.hh(m,k.left,k.top),g.sh(m,k.width,k.height),rsa(l,m,c.effects)}}}};
|
||
|
Z4.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=g.Id(c-a/2,d+b,d+e-a-b);return new a4(c,c+a)}
|
||
|
return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new a4(0,0)};g.p($4,T4);$4.prototype.A=function(a,b){var c=S4(a);if(c){var d=L4(c,b);if(!(0>=d.width||0>=d.height)){var e=a.g,c=Y4(d,e.effects),f=U4(this,c.width,c.height),k=new g.Mg(0,0,d.width,d.height),l=e.cornerRadius,d=new k4(!e.A&&this.g?1:e.A,e.bgColor),m=new e4("#000",0),n=d?d.Eb()/2+1:0,k=qsa(k,l,n);o4(f,k,d,m);f=this.ra();g.R(f,E6.Xo);e=e.g;g.vh(f,this.g?Math.max(e,.9):e);g.hh(f,c.left,c.top);g.sh(f,c.width,c.height)}}};g.p(a5,T4);a5.prototype.A=function(a,b){var c=S4(a);if(c){var d=L4(c,b);if(!(0>=d.width||0>=d.height)){var c=a.g,e=Y4(d,c.effects),f=U4(this,e.width,e.height),k=ssa(c,d.width,d.height,this.g),d=new g.Mg(0,0,d.width,d.height),l=c.cornerRadius,m=a.g,n=this.g&&R4(a),q=n?m.borderWidth+1:m.borderWidth,n=(m=q?new k4(q,n?m.o:m.borderColor):null)?m.Eb()/2+1:0,d=qsa(d,l,n);o4(f,d,m,k);if(k=this.ra())g.R(k,E6.Xo),g.R(k,E6.Lu),g.hh(k,e.left,e.top),g.sh(k,e.width,e.height),rsa(f,k,c.effects)}}};g.p(b5,Z4);b5.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new a4(c,c+a)}
|
||
|
return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new a4(0,0)};g.h=usa.prototype;g.h.IC=function(){this.P||(this.B&&g.N(this.B,!0),this.C&&g.N(this.C,!0),this.A&&(this.A.g=!0,g.vh(this.o,f5(this)?1:0),this.A.A(this.g,d5(this))),this.J.isActive()&&this.J.stop(),this.P=!0,this.K=zqa(this.F,g.OU(this.D),function(a){this.us.stop();this.th(a)}))};
|
||
|
g.h.th=function(){this.P&&(this.X?this.J.start():this.Cx(),this.A&&(this.A.g=!1,g.vh(this.o,f5(this)?1:0),this.A.A(this.g,d5(this))),this.P=!1,this.K&&(this.F.Ca(this.K),this.K=null))};
|
||
|
g.h.Cx=function(){this.B&&g.N(this.B,!1);this.C&&g.N(this.C,!1)};
|
||
|
g.h.tP=function(a){this.fa=a;this.us.aj()};
|
||
|
g.h.QT=function(){var a=this.fa,b=new g.Nd(a.clientX,a.clientY),c=g.lh(this.D.getRootNode()),d=ysa(c,this.O),c=(this.C&&g.wh(this.C)||this.B&&g.wh(this.B))&&ysa(c,this.X);d&&d.contains(b)||c&&c.contains(b)?this.IC():this.th(a)};
|
||
|
g.h.show=function(){var a=this.g.g,a=(a&&0==a.g||"title"==this.g.style||"highlightText"==this.g.style?!1:!0)&&!this.A,b=!this.o,c="widget"==this.g.type;if(a){var d=d5(this),e=null;"highlight"==this.g.type||"label"==this.g.style?e=new $4:"popup"==this.g.style?e=new a5:"anchored"==this.g.style?e=new Z4:"speech"==this.g.style&&(e=new b5);e&&(e.A(this.g,d),this.A=e,d=e.ra())&&(g.N(d,!1),g.R(d,"annotation-type-"+this.g.type.toLowerCase()),this.ca(d))}if(b){d=["annotation"];"highlightText"!=this.g.style||
|
||
|
d.push("annotation-no-mouse");d.push("annotation-type-"+this.g.type.toLowerCase());this.o=g.he("DIV",d);g.N(this.o,!1);this.g.B&&(this.G=g.he("DIV","inner-text"),"label"==this.g.style&&(g.R(this.G,"label-text"),this.G.style.backgroundColor=this.g.g.bgColor),g.ze(this.G,this.g.B),this.o.appendChild(this.G));g.qF(this.o,"annotation_id",this.g.id);this.ca(this.o);vsa(this,this.o);if(R4(this.g)&&this.g.showLinkIcon()){if(e=P4(this.g))d=this.o,e=new g.Kl(K4(e)),d.title=e.o+e.A;this.C=g.he("SPAN","annotation-link-icon");
|
||
|
g.N(this.C,!1);this.o.appendChild(this.C)}wsa(this);R4(this.g)||(this.o.style.cursor="default")}c&&("subscribe"==this.g.style?g.J("yt-uix-subscription-button",this.o)||(c=this.o,d=this.g.htmlBlob,d.match(/\sstyle\s*=/),c.innerHTML=d):this.g.htmlBlob&&(c=this.o,d=this.g.htmlBlob,d.match(/\sstyle\s*=/),c.innerHTML=d));if(a||b){a:{a=this.g.o.g;if(a.length&&(a=Rra(a[0]))){a=a.J;break a}a=0}this.o&&(this.o.style.zIndex=a);this.A&&this.A.ra()&&(this.A.ra().style.zIndex=a)}g.N(this.o,!0);g.vh(this.o,f5(this)?
|
||
|
1:0);e5(this);this.A&&this.A.ra()&&g.N(this.A.ra(),!0)};
|
||
|
g.h.hide=function(){this.o&&g.N(this.o,!1);this.A&&this.A.ra()&&g.N(this.A.ra(),!1);this.M&&(this.F.Ca(this.M),this.M=null)};g.h=Asa.prototype;g.h.hide=function(){this.isVisible=!1;this.view&&(Bsa(this),this.view.hide())};
|
||
|
g.h.show=function(){this.isVisible=!0;this.view&&(this.view.show(),this.o.subscribe("resize",this.HC,this),this.o.subscribe("onVideoAreaChange",this.MA,this))};
|
||
|
g.h.destroy=function(){if(this.view){Bsa(this);var a=this.view;g.NF(a.F);a.us.dispose();a.J.dispose();a.o&&g.qe(a.o);a.A&&a.A.ra()&&g.qe(a.A.ra())}g5(this)};
|
||
|
g.h.MA=function(){e5(this.view)};
|
||
|
g.h.HC=function(){e5(this.view)};g.z(Csa,S3);g.z(h5,S3);g.z(Dsa,h5);g.z(Esa,S3);g.z(Fsa,S3);g.z(Hsa,h5);g.z(Isa,h5);g.z(Jsa,S3);g.z(i5,S3);r5.prototype.o=function(a,b){var c=g.Fe(b.target,"label");c&&g.S(c,"iv-card-poll-choice-focused",a)};
|
||
|
r5.prototype.F=function(a,b){var c=g.Ge(b.target,"iv-card-poll");if(c)if(a.A)g.J("iv-card-sign-in-button",c).click();else{var d=(0,window.parseInt)($3(b.target,"pollChoiceIndex"),10);if(null==a.g)a.choices[d].count++,a.g=d;else if(a.g!=d){var e=a.choices[a.g];e.count=Math.max(e.count-1,0);a.choices[d].count++;a.g=d}else e=a.choices[a.g],e.count=Math.max(e.count-1,0),a.g=null;Osa(a,c);g.NE(this.g.videoData.Af,{bd:{action_poll_vote:1},Tb:{poll_id:a.id,index:d,session_token:a.G}});e={};e["link-id"]=
|
||
|
d;n5(this.g.logger,a.Xb,void 0,e,a.o.click,5);s4(a.C)}};
|
||
|
r5.prototype.D=function(a){var b=g.v("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=g.Aa(b,a.K,a.B));Ssa(this,a,!0,b)};
|
||
|
r5.prototype.G=function(a){var b=g.v("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=g.Aa(b,a.K,a.B,a.M));Ssa(this,a,!1,b)};g.h=A5.prototype;g.h.to=function(){this.context.A.subscribe("resize",this.pm,this)};
|
||
|
g.h.ra=function(){return this.bb};
|
||
|
g.h.Bi=function(a,b,c,d,e,f,k){this.context.g.V(a,"click",g.Aa(this.En,b,c,d,e,f||[],k||0),this);this.context.g.V(a,"touchstart",g.Aa(function(){this.Qt=!1}),this);
|
||
|
this.context.g.V(a,"touchmove",g.Aa(function(){this.Qt=!0}),this)};
|
||
|
g.h.En=function(a,b,c,d,e,f,k){if(this.Qt)return!1;k&&(k.stopPropagation(),k.preventDefault());$sa(this,a,c,d,e,f);return!1};
|
||
|
g.h.show=function(){this.X=(0,g.F)()};
|
||
|
g.h.hide=function(){};
|
||
|
g.h.destroy=function(){g.qe(this.ra())};
|
||
|
g.h.pm=function(){};g.z(C5,A5);g.h=C5.prototype;g.h.isAvailable=function(){var a;if(a=!!this.o.length)(a=this.U.getRootNode())?(a=g.th(a),a=177<a.width&&177<a.height):a=!1;return a};
|
||
|
g.h.jG=function(){this.Wa&&E5(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
|
||
|
g.h.OG=function(){(this.Wa=this.B)&&this.Am()};
|
||
|
g.h.RT=function(){E5(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
|
||
|
g.h.Am=function(){this.B&&(this.ha.hide(),g.DF(this.P),this.P=null,g.Ip(this.context.o.getRootNode(),"ytp-iv-drawer-open"),this.B=!1,J3(this.U),this.F&&this.F.stop(),this.F=new g.rt(function(){this.ca&&(this.ca.focus(),this.ca=null)},330,this),this.F.start())};
|
||
|
g.h.pm=function(){var a=this.isAvailable();g.N(this.ra(),a);g.S(this.context.o.getRootNode(),"ytp-iv-drawer-enabled",a);J3(this.U)};
|
||
|
g.h.destroy=function(){var a=g.GU(this.U).A;a&&a.bu(!1,void 0);this.U.getRootNode().removeChild(this.D);g.eG(this.fa);g.DF(this.P);this.O&&this.O.dispose();this.F&&this.F.dispose();C5.aa.destroy.call(this)};
|
||
|
var ata={collaborator:Csa,donation:Dsa,episode:i5,movie:i5,playlist:Esa,poll:Fsa,productListing:Hsa,simple:h5,tip:Isa,video:Jsa};g.h=C5.prototype;
|
||
|
g.h.ST=function(a){this.Np.start();a.preventDefault();a=a||window.event;var b=0;"MozMousePixelScroll"==a.type?b=0==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?b=a.detail:b=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?a.wheelDeltaY/-30:a.wheelDeltaY/-1.2:a.wheelDelta/-1.6:a.wheelDeltaY/-3;if(a=b)this.A.scrollTop+=a};
|
||
|
g.h.EB=function(a){if(!g.Gp(this.U.getRootNode(),"ytp-cards-teaser-shown")){this.g!=a&&(this.g=a,D5(this));if(g.wh(this.ra())){if(2==this.context.o.Xa())var b=1==((0,window.isNaN)(void 0)?this.context.o.Hy():void 0);else b=(0,window.isNaN)(void 0)?this.context.o.Sk():void 0,b=1==b||0==b&&0===this.context.o.getCurrentTime();if(b&&a.sc.teaserDurationMs){b={teaserText:a.sc.teaserText,durationMs:a.sc.teaserDurationMs};var c=g.GU(this.U).A;c&&c.bu(!0,b)}}this.ka.isActive()||((!this.B||!this.Np.isActive()&&
|
||
|
this.Bn)&&jta(this,a),this.ka.start(910+a.sc.teaserDurationMs))}};
|
||
|
g.h.sS=function(a){this.B||(this.g=a,D5(this),jta(this,a),E5(this,"YOUTUBE_DRAWER_AUTO_OPEN",!1,a))};
|
||
|
g.h.GG=function(){this.B&&(p5(this.context.logger,this.M,4,F5(this).o.close),this.G&&s4(this.G),this.Am())};
|
||
|
g.h.TG=function(){g.S(this.D,"iv-drawer-scrolled",0<this.A.scrollTop)};
|
||
|
g.h.LJ=function(){var a=F5(this);q5(this.context.logger,8,a.Xb,a.o.GS);a&&r4([a.F,a.D])};
|
||
|
g.h.KJ=function(a){var b=F5(this);this.g?a?(a=this.context.logger,q5(a,9,b.Xb,b.o.vt),a.U.ni(4,void 0),s4(b.F)):(a=this.context.logger,q5(a,12,b.Xb,b.o.vt),a.U.ni(4,void 0),s4(b.D)):(a=this.context.logger,p5(a,this.M,12,b.o.vt),a.U.ni(4,void 0),this.da&&s4(this.da))};g.z(G5,A5);G5.prototype.to=function(){G5.aa.to.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&B5(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.hide)};g.z(H5,G5);g.h=H5.prototype;g.h.AS=function(a,b,c,d){this.A.stop();if(!this.B){var e=g.th(a);this.g||(g.rh(a,e.width),g.rh(b,e.width));g.ah(c,"top",e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20)+"px");g.ah(c,"right","1px");this.B=!0;g.N(a,!0);this.C=new g.rt(function(){g.R(this.ra(),"iv-branding-active")},0,this);
|
||
|
this.C.start()}};
|
||
|
g.h.tI=function(a,b){g.Ip(this.ra(),"iv-branding-active");this.D=new g.rt((0,g.y)(function(){g.N(a,!1);this.g||g.rh(b,0)},this),250);
|
||
|
this.D.start();this.B=!1};
|
||
|
g.h.show=function(){if(!this.isActive){H5.aa.show.call(this);if(!this.F){g.R(this.ra(),"iv-branding");var a=this.annotation.data;this.G=a.image_width;this.o=g.he("IMG",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});g.N(this.o,!1);var b=g.he("DIV","branding-img-container",this.o);this.ra().appendChild(b);var c=g.he("DIV","iv-branding-context-name");g.ze(c,a.channel_name);var d=g.he("DIV","iv-branding-context-subscribe");if(b=a.standalone_subscribe_button_data)this.g=
|
||
|
new g.q1(b.subscribeText,b.subscribeCount,b.unsubscribeText,b.unsubscribeCount,!!b.enabled,!!b.classic,a.channel_id,!!b.subscribed,b.feature,a.session_data.itct,b.signinUrl,this.J.o),this.g.Ia(d);b=g.he("DIV","iv-branding-context-subscribe-caret");c=g.he("DIV","branding-context-container-inner",b,c,d);g.N(c,!1);d=g.he("DIV","branding-context-container-outer",c);g.ah(d,"right",this.G+"px");this.ra().appendChild(d);var e=P4(this.annotation);e&&this.Bi(this.o,e,this.annotation.id,a.session_data,this.annotation.Xb);
|
||
|
this.A=new g.rt(g.Aa(this.tI,c,d),500,this);this.context.g.V(this.ra(),"mouseover",(0,g.y)(this.AS,this,c,d,b,a.image_height));this.context.g.V(this.ra(),"mouseout",(0,g.y)(this.A.start,this.A,void 0));this.F=!0}m5(this.context.logger,this.annotation.Xb);g.N(this.ra(),!0);this.isActive=!0;if(this.o){var a=this.o,b=g.uh(a).width,c=g.oa(void 0)?void 0:b;var f=f||0;g.hh(a,c);f=new Y3(a,[c,a.offsetTop],[c-b-f,a.offsetTop],200,Uqa);this.context.B.V(f,"begin",g.Aa(g.N,a,!0));f.play()}}};
|
||
|
g.h.hide=function(){this.isActive&&(g.N(this.ra(),!1),this.isActive=!1)};
|
||
|
g.h.destroy=function(){this.g&&(this.g.dispose(),this.g=null);H5.aa.destroy.call(this)};g.z(I5,G5);g.h=I5.prototype;g.h.show=function(){this.isActive||(I5.aa.show.call(this),this.J||(kta(this),this.J=!0),g.N(this.ra(),!0),this.annotation&&this.annotation.Xb&&m5(this.context.logger,this.annotation.Xb),g.Ip(this.ra(),"iv-promo-inactive"),this.ra().removeAttribute("aria-hidden"),this.isActive=!0,J5(this),mta(this),nta(this,this.F))};
|
||
|
g.h.hide=function(){this.isActive&&(g.R(this.ra(),"iv-promo-inactive"),this.isActive=!1,this.ra().setAttribute("aria-hidden",!0))};
|
||
|
g.h.En=function(a,b,c,d,e,f,k){return this.C?!1:I5.aa.En.call(this,a,b,c,d,e,f,k)};
|
||
|
g.h.Kq=function(a,b){b.stopPropagation();mta(this);nta(this,a);this.wd.focus()};
|
||
|
g.h.HH=function(a){this.G=!0;this.Kq(500,a)};
|
||
|
g.h.GH=function(){this.G=!1;lta(this)};
|
||
|
g.h.TT=function(a){a.stopPropagation();this.hide();o5(this.context.logger,this.annotation.Xb)};
|
||
|
g.h.wH=function(a){a.stopPropagation();J5(this);this.C=!0;g.R(this.ra(),"iv-promo-collapsed-no-delay");this.D.start();o5(this.context.logger,this.annotation.Xb)};
|
||
|
g.h.destroy=function(){this.D.dispose();I5.aa.destroy.call(this)};g.z(K5,g.sV);K5.C="AnnotationsModule";K5.A=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
|
||
|
K5.B=function(a){return"card"==a.type||"drawer"==a.type};
|
||
|
K5.o=function(){var a=g.he("DIV",["annotation","annotation-type-custom"]);g.N(a,!1);return a};
|
||
|
K5.g=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
|
||
|
g.h=K5.prototype;g.h.HT=function(a,b){if(!K5.g(g.Y(this.g).o))return null;switch(a){case "loadCustomAnnotationsXml":var c=g.lr(b);c&&M5(this,c);return!0;case "removeCustomAnnotationById":return b&&this.o&&(cta(this.o,b),J3(this.g)),!0}return null};
|
||
|
g.h.IT=function(){return K5.g(g.Y(this.g).o)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
|
||
|
g.h.Gs=function(){if(this.F){var a=g.WY(g.OU(this.g),!0);g.sh(this.F.element,a.width,a.height);g.hh(this.F.element,a.left,a.top)}if(this.o){var b=xqa(this.g.app.A.D),a=this.o,b=b.width;g.S(a.D,"iv-drawer-small",426>=b);g.S(a.D,"iv-drawer-big",1280<=b)}};
|
||
|
g.h.TP=function(a){g.V(a.state,2)&&(this.Gl()&&this.EC()&&2!=this.g.Xa()&&this.cu(!1),this.bu(!1))};
|
||
|
g.h.load=function(){K5.aa.load.call(this);this.D.show();this.K++;var a=this.g.ia(),b=a.videoId,c=(0,g.y)(this.CO,this,b,this.K),d=(0,g.y)(function(){this.C=null},this);
|
||
|
g.BG()&&(c=uta(this,c));c={format:"XML",Fd:c,onError:d,bd:{}};a.isPharma&&(c.bd.pharma="1");c.method="POST";c.withCredentials=!0;d=g.Y(this.g);"gaming"==d.o&&(c.bd.gaming="1");(b=d.G.get(b))&&vta(c,b);b=b&&b.Mh;if(!a.fm||b)a.Af?this.C=g.LE(a.Af,c):(this.B=(0,g.y)(this.NT,this,c),this.g.addEventListener("videodatachange",this.B));g.hV(this.g,this.F.element,5);this.Gs()};
|
||
|
g.h.NT=function(a){var b=this.g.ia();b.Af&&(this.B&&(this.g.removeEventListener("videodatachange",this.B),this.B=null),this.C=g.LE(b.Af,a))};
|
||
|
g.h.unload=function(){Nsa(this.gb,{"iv-event":1});g.dV(this.g,"annotations_module");g.Jb(this.A,function(a){a.destroy()});
|
||
|
g.Jb(this.M,function(a){a.destroy()});
|
||
|
this.J=null;this.o&&(this.o.destroy(),this.o=null,J3(this.g));this.C&&(this.C.abort(),this.C=null);this.A={};this.M={};this.D.hide();K5.aa.unload.call(this);this.F.detach();this.B&&(this.g.removeEventListener("videodatachange",this.B),this.B=null)};
|
||
|
g.h.CO=function(a,b,c){this.C=null;if(!qta(this,b,a)&&(a=g.uE(c)&&c.responseXML?c.responseXML:null)){M5(this,a);g.R(this.g.getRootNode(),"iv-module-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.o)if(c=b.o,c.g.length)if(c=c.g[0].o||c.g[0].g||c.g[0].A,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d,namespace:"annotations_module"};"marker"==
|
||
|
b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.B,f.visible=!0);b=new g.oJ(c,e,f);a.push(b)}}g.aV(this.g,a)}};
|
||
|
g.h.LA=function(a){a==this.g.ia().videoId&&(this.loaded?wta(this):this.load())};
|
||
|
g.h.JT=function(a){a=a.getId();var b=this.A[a];b&&!b.A&&(b=b.annotation,zta(this,a),m5(this.gb,b.Xb))};
|
||
|
g.h.KT=function(a){N5(this,a.getId())};
|
||
|
g.h.Ax=function(a){a&&(a.hide(),O5(this,"shown",!1,a.annotation.id),this.Jm(a.annotation,"hidden"))};
|
||
|
g.h.OB=function(a){a&&(a.show(),O5(this,"shown",!0,a.annotation.id),this.Jm(a.annotation,"shown"))};
|
||
|
g.h.YQ=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;esa(d.annotation,function(a){e|=a.value});
|
||
|
Ata(this,a,b,e)}};
|
||
|
g.h.uN=function(a){if(a&&a.id){var b=P4(a);if(b){var c=K4(b);if(c){var d=(0,g.y)(this.Jm,this,a,"click");if("new"==z5(c,b.target)||Bta(this,b))d(),d=null;n5(this.gb,a.Xb,d)}}}};
|
||
|
g.h.Jm=function(a,b){dsa(a,function(c){if(c.trigger==b&&"openUrl"==c.type&&c.url){var d=this.g.ia(),e;if(!(e=!Bta(this,c.url))){e=Xsa(c.url);var f=Wsa(c.url);e?(d.videoId==e?this.g.wc(f||0):(d=L5(this).o,g.r2(d.app,e,void 0,void 0,void 0,void 0),f&&L5(this).o.Od()&&L5(this).o.wc(f)),d=!0):d=!1;e=!d}e&&(e=g.Y(this.g),(d=K4(c.url))?(f=Vsa(d),e&&"com"==f[0]&&"google"==f[1]&&"plus"==f[2]&&(e=g.Aa(Ysa,e.pageId,e.Ec),d=new g.Kl(d),g.Ol(d,e(d.A)),d=d.toString())):d=null,d&&(this.g.sd(),c=z5(d,c.url.target),
|
||
|
e=a.itct,c="current"==c?"_top":void 0,"ei"in g.GE(d)&&(d=g.Gg(d,"ei")),g.rV(d,c,{itct:e})))}},this)};
|
||
|
g.h.KO=function(){O5(this,"playerControlShow",!1)};
|
||
|
g.h.CQ=function(){O5(this,"playerControlShow",!0)};
|
||
|
g.h.LT=function(a){O5(this,"rollOver",!0,a.id)};
|
||
|
g.h.th=function(a){O5(this,"rollOver",!1,a.id)};
|
||
|
g.h.ZN=function(a){a&&a.id&&(this.A[a.id].A=!0,N5(this,a.id),o5(this.gb,a.Xb),this.Jm(a,"close"),O5(this,"closed",!0,a.id))};
|
||
|
g.h.Gl=function(){return!!this.o&&this.o.isAvailable()};
|
||
|
g.h.EC=function(){this.Gl();return!!this.o&&this.o.B};
|
||
|
g.h.cu=function(a,b,c){this.Gl();this.o&&(b=!!b,a?g.t(c)?E5(this.o,c,b):E5(this.o,"YOUTUBE_DRAWER_AUTO_OPEN",b):this.o.Am())};
|
||
|
g.h.bu=function(a,b){this.g.Y(a?"cardsteasershow":"cardsteaserhide",b)};
|
||
|
g.h.W=function(){g.Y(this.g).G.unsubscribe("vast_info_card_add",this.LA,this);g.Ip(this.g.getRootNode(),"ytp-iv-drawer-open");for(var a=this.O,b=0,c=a.length;b<c;b++)g.DG(a[b]);this.O.length=0;K5.aa.W.call(this)};var Q5={},yua="ontouchstart"in window.document;g.CF(window.document,"blur",R5,!0);g.CF(window.document,"change",R5,!0);g.CF(window.document,"click",R5);g.CF(window.document,"focus",R5,!0);g.CF(window.document,"mouseover",R5);g.CF(window.document,"mouseout",R5);g.CF(window.document,"mousedown",R5);g.CF(window.document,"keydown",R5);g.CF(window.document,"keyup",R5);g.CF(window.document,"keypress",R5);g.CF(window.document,"cut",R5);g.CF(window.document,"paste",R5);
|
||
|
yua&&(g.CF(window.document,"touchstart",R5),g.CF(window.document,"touchend",R5),g.CF(window.document,"touchcancel",R5));g.h=S5.prototype;g.h.ae=function(a){return g.Ge(a,Z(this))};
|
||
|
g.h.unregister=function(){g.eG(this.J);this.J.length=0;g.yO(this.G);this.G.length=0};
|
||
|
g.h.init=g.x;g.h.dispose=g.x;g.h.addBehavior=function(a,b,c){c=Z(this,c);var d=(0,g.y)(b,this);a in Q5||(Q5[a]=new g.iD);Q5[a].subscribe(c,d);this.F[b]=d};
|
||
|
g.h.removeBehavior=function(a,b,c){if(a in Q5){var d=Q5[a];d.unsubscribe(Z(this,c),this.F[b]);0>=d.Mc()&&(d.dispose(),delete Q5[a])}delete this.F[b]};
|
||
|
g.h.Ni=function(a,b,c){var d=this.ya(a,b);if(d&&(d=g.v(d))){var e=g.sb(arguments,2);g.tb(e,0,0,a);d.apply(null,e)}};
|
||
|
g.h.ya=function(a,b){return g.pF(a,b)};
|
||
|
g.h.setData=function(a,b,c){g.qF(a,b,c)};g.z(V5,S5);g.ra(V5);g.h=V5.prototype;g.h.register=function(){this.addBehavior("click",this.pD);this.addBehavior("keydown",this.gy);this.addBehavior("keypress",this.hy);T5(this,"page-scroll",this.KH)};
|
||
|
g.h.unregister=function(){this.removeBehavior("click",this.pD);this.removeBehavior("keydown",this.gy);this.removeBehavior("keypress",this.hy);a6(this);this.o={};V5.aa.unregister.call(this)};
|
||
|
g.h.pD=function(a){a&&!a.disabled&&(Ita(this,a),this.click(a))};
|
||
|
g.h.gy=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=$5(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b},e;
|
||
|
d(b)?e=b:e=c4(b,d);if(e){e=e.tagName.toLowerCase();if("ul"==e)var f=this.UJ;else"table"==e&&(f=this.TJ);f&&Dta(this,a,b,c,(0,g.y)(f,this))}}};
|
||
|
g.h.KH=function(){var a=this.o;if(0!=g.Mb(a))for(var b in a){var c=a[b],d=g.Ge(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;Z5(this,d,c,!0)}};
|
||
|
g.h.hy=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=$5(this,a),T3(a)&&c.preventDefault())};
|
||
|
g.h.TJ=function(a,b,c){var d=W5(this,b);if(d){var e=Sqa("table",b);b=g.Xd(window.document,"td",null,e);d=Fta(d,b,g.Xd(window.document,"td",null,Sqa("tr",e)).length,c);-1!=d&&(Eta(this,a,b[d]),c.preventDefault())}};
|
||
|
g.h.UJ=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=W5(this,b);d&&(b=(0,g.se)(g.Xd(window.document,"li",null,b),T3),Eta(this,a,b[Fta(d,b,1,c)]),c.preventDefault())}};
|
||
|
g.h.rD=function(a){if(a){var b=$5(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;this.ya(a,"button-has-sibling-menu")?c=a.parentNode:c=Gta(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=Y5(this,a);d&&c.appendChild(d);(c=!!this.ya(a,"button-menu-fixed"))&&(this.o[V3(a).toString()]=b);Z5(this,a,b,c);g.hG("yt-uix-button-menu-before-show",a,b);g.BV(b);
|
||
|
d&&g.BV(d);this.Ni(a,"button-menu-action",!0);g.R(a,Z(this,"active"));b=(0,g.y)(this.qD,this,a,!1);d=(0,g.y)(this.qD,this,a,!0);c=(0,g.y)(this.aT,this,a,void 0);this.g&&$5(this,this.g)==$5(this,a)||a6(this);g.fG("yt-uix-button-menu-show",a);g.DF(this.A);this.A=[g.CF(window.document,"click",d),g.CF(window.document,"contextmenu",b),g.CF(window,"resize",c)];this.g=a}}};
|
||
|
g.h.aT=function(a,b){var c=$5(this,a);if(c){b&&(b instanceof g.zd?c.innerHTML=g.Ad(b):g.ze(c,b));var d=!!this.ya(a,"button-menu-fixed");Z5(this,a,c,d)}};
|
||
|
g.h.nd=function(a){return g.J(Z(this,"content"),a)};
|
||
|
g.h.qD=function(a,b,c){c=g.EF(c);var d=g.Ge(c,Z(this));if(d){var d=$5(this,d),e=$5(this,a);if(d==e)return}var d=g.Ge(c,Z(this,"menu")),e=d==$5(this,a),f=g.Gp(c,Z(this,"menu-item")),k=g.Gp(c,Z(this,"menu-close"));if(!d||e&&(f||k))X5(this,a),d&&b&&this.ya(a,"button-menu-indicate-selected")&&((a=g.J(Z(this,"content"),a))&&g.ze(a,b4(c)),Hta(this,d,c))};
|
||
|
g.h.isToggled=function(a){return g.Gp(a,Z(this,"toggled"))};
|
||
|
g.h.click=function(a){if($5(this,a)){var b=$5(this,a);if(b){var c=g.Ge(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(X5(this,c),g.yE((0,g.y)(this.rD,this,a),1)):T3(b)?X5(this,a):this.rD(a)}a.focus()}this.Ni(a,"button-action")};g.z(b6,S5);g.h=b6.prototype;g.h.ae=function(a){var b=S5.prototype.ae.call(this,a);return b?b:a};
|
||
|
g.h.register=function(){T5(this,"yt-uix-kbd-nav-move-out-done",this.hide)};
|
||
|
g.h.dispose=function(){b6.aa.dispose.call(this);c6(this)};
|
||
|
g.h.ya=function(a,b){var c=b6.aa.ya.call(this,a,b);return c?c:(c=b6.aa.ya.call(this,a,"card-config"))&&(c=g.v(c))&&c[b]?c[b]:null};
|
||
|
g.h.show=function(a){var b=this.ae(a);if(b){g.R(b,Z(this,"active"));var c=Jta(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;Kta(this,a,c);var d=Z(this,"card-visible"),e=this.ya(a,"card-delegate-show")&&this.ya(b,"card-action");this.Ni(b,"card-action",a);this.A=a;g.CV(c);g.yE((0,g.y)(function(){e||(g.BV(c),g.fG("yt-uix-card-show",b,a,c));Lta(c);g.R(c,d);g.fG("yt-uix-kbd-nav-move-in-to",c)},this),10)}}};
|
||
|
g.h.hide=function(a){if(a=this.ae(a)){var b=g.Wd(Z(this,"card")+V3(a));b&&(g.Ip(a,Z(this,"active")),g.Ip(b,Z(this,"card-visible")),g.CV(b),this.A=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(g.qe(b.cardMask),b.cardMask=null))}};
|
||
|
g.h.ZS=function(a,b){var c=this.ae(a);if(c){if(b){var d=this.Gc(c);if(!d)return;b instanceof g.zd?d.innerHTML=g.Ad(b):g.ze(d,b)}g.Gp(c,Z(this,"active"))&&(c=Jta(this,a,c),Kta(this,a,c),g.BV(c),Lta(c))}};
|
||
|
g.h.isActive=function(a){return(a=this.ae(a))?g.Gp(a,Z(this,"active")):!1};
|
||
|
g.h.Gc=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.ya(a,"card-id"))?g.Wd(b):g.J(c,a))||(b=window.document.createElement("div"));var e=b;g.Ip(e,c);g.R(e,d);a.cardContentNode=b}return b};var e6;g.z(d6,S5);g.ra(d6);g.h=d6.prototype;g.h.register=function(){this.addBehavior("keydown",this.mx);T5(this,"yt-uix-kbd-nav-move-in",this.Nz);T5(this,"yt-uix-kbd-nav-move-in-to",this.ZM);T5(this,"yt-uix-kbd-move-next",this.Oz);T5(this,"yt-uix-kbd-nav-move-to",this.Sm)};
|
||
|
g.h.unregister=function(){this.removeBehavior("keydown",this.mx);g.DF(e6)};
|
||
|
g.h.mx=function(a,b,c){var d=c.keyCode;if(a=g.Ge(a,Z(this)))switch(d){case 13:case 32:this.Nz(a);break;case 27:c.preventDefault();c.stopImmediatePropagation();a:{for(c=$3(a,"kbdNavMoveOut");!c;){c=g.Ge(a.parentElement,Z(this));if(!c)break a;c=$3(c,"kbdNavMoveOut")}c=g.Wd(c);this.Sm(c);g.fG("yt-uix-kbd-nav-move-out-done",c)}break;case 40:case 38:if((b=c.target)&&g.Gp(a,Z(this,"list")))switch(d){case 40:this.Oz(b,a);break;case 38:d=window.document.activeElement==a,a=Ota(a),b=a.indexOf(b),0>b&&!d||(b=
|
||
|
d?a.length-1:(a.length+b-1)%a.length,a[b].focus(),Nta(this,a[b]))}c.preventDefault()}};
|
||
|
g.h.Nz=function(a){var b=$3(a,"kbdNavMoveIn"),b=g.Wd(b);Mta(this,a,b);this.Sm(b)};
|
||
|
g.h.ZM=function(a){Mta(this,g.He(),a);this.Sm(a)};
|
||
|
g.h.Sm=function(a){if(a)if(g.De(a))a.focus();else{var b=c4(a,function(a){return g.wa(a)&&1==a.nodeType?g.De(a):!1});
|
||
|
b?b.focus():(a.setAttribute("tabindex","-1"),a.focus())}};
|
||
|
g.h.Oz=function(a,b){var c=window.document.activeElement==b,d=Ota(b),e=d.indexOf(a);0>e&&!c||(c=c?0:(e+1)%d.length,d[c].focus(),Nta(this,d[c]))};g.z(f6,S5);g.ra(f6);g.h=f6.prototype;g.h.register=function(){this.addBehavior("click",this.sD);this.addBehavior("mouseenter",this.EH);T5(this,"page-scroll",this.RH);T5(this,"yt-uix-kbd-nav-move-out-done",function(a){a=this.ae(a);j6(this,a)});
|
||
|
this.B=new g.iD};
|
||
|
g.h.unregister=function(){this.removeBehavior("click",this.sD);this.o=this.g=null;g.DF(g.Fb(g.Ob(this.A)));this.A={};g.Jb(this.D,function(a){g.qe(a)},this);
|
||
|
this.D={};g.Le(this.B);this.B=null;f6.aa.unregister.call(this)};
|
||
|
g.h.sD=function(a,b,c){a&&(b=m6(this,a),!b.disabled&&U3(c.target,b)&&Rta(this,a))};
|
||
|
g.h.EH=function(a,b,c){a&&g.Gp(a,Z(this,"hover"))&&U3(c.target,m6(this,a))&&Rta(this,a,!0)};
|
||
|
g.h.RH=function(){this.g&&this.o&&Pta(this,this.o,this.g)};
|
||
|
g.h.tD=function(a){if(a){var b=l6(this,a);if(b){g.hG("yt-uix-menu-before-show",a,b);this.g?U3(a,this.g)||j6(this,this.o):(this.o=a,this.g=b,g.Gp(a,Z(this,"sibling-content"))||(g.qe(b),window.document.body.appendChild(b)),b.style.minWidth=m6(this,a).offsetWidth-2+"px");var c=h6(this,a);c&&g.oe(c,b);g.Ip(b,Z(this,"content-hidden"));Pta(this,a,b);g.Hp(m6(this,a),[Z(this,"trigger-selected"),"yt-uix-button-toggled"]);g.fG("yt-uix-menu-show",a);Uta(b);Sta(this,a);g.fG("yt-uix-kbd-nav-move-in-to",b);var d=
|
||
|
(0,g.y)(this.AU,this,a),e=(0,g.y)(this.RJ,this,a),c=g.za(a).toString();this.A[c]=[g.CF(b,"click",e),g.CF(window.document,"click",d)];g.Gp(a,Z(this,"indicate-selected"))&&(d=(0,g.y)(this.SJ,this,a),this.A[c].push(g.CF(b,"click",d)));g.Gp(a,Z(this,"hover"))&&(a=(0,g.y)(this.zU,this,a),this.A[c].push(g.CF(window.document,"mousemove",a)))}}};
|
||
|
g.h.zU=function(a,b){var c=g.EF(b);c&&(U3(c,m6(this,a))||Vta(this,c)||k6(this,a))};
|
||
|
g.h.AU=function(a,b){var c=g.EF(b);if(c){if(Vta(this,c)){var d=g.Ge(c,Z(this,"content"));var e=g.Fe(c,"LI");e&&d&&g.xe(d,e)&&g.hG("yt-uix-menu-item-clicked",c);c=g.Ge(c,Z(this,"close-on-select"));if(!c)return;d=g6(c)}j6(this,d||a)}};
|
||
|
g.h.RJ=function(a,b){var c=g.EF(b);c&&Tta(this,a,c)};
|
||
|
g.h.SJ=function(a,b){var c=g.EF(b);if(c){var d=m6(this,a);if(d&&(c=g.Fe(c,"LI")))if(c=b4(c).trim(),d.hasChildNodes()){var e=V5.getInstance();(d=g.J(Z(e,"content"),d))&&g.ze(d,c)}else g.ze(d,c)}};g.z(n6,b6);g.ra(n6);g.h=n6.prototype;g.h.register=function(){n6.aa.register.call(this);this.addBehavior("click",this.Zv,"target");this.addBehavior("click",this.Yv,"close")};
|
||
|
g.h.unregister=function(){n6.aa.unregister.call(this);this.removeBehavior("click",this.Zv,"target");this.removeBehavior("click",this.Yv,"close");for(var a in this.g)g.DF(this.g[a]);this.g={};for(a in this.o)g.DF(this.o[a]);this.o={}};
|
||
|
g.h.Zv=function(a,b,c){c.preventDefault();b=g.Fe(c.target,"button");b&&b.disabled||(a=(b=this.ya(a,"card-target"))?g.u(b)?window.document.getElementById(b):b:a,b=this.ae(a),this.ya(b,"disabled")||(g.Gp(b,Z(this,"active"))?(this.hide(a),g.Ip(b,Z(this,"active"))):(this.show(a),g.R(b,Z(this,"active")))))};
|
||
|
g.h.show=function(a){n6.aa.show.call(this,a);var b=this.ae(a),c=g.za(a).toString();if(!g.pF(b,"click-outside-persists")){if(this.g[c])return;var b=g.CF(window.document,"click",(0,g.y)(this.aw,this,a)),d=g.CF(window,"blur",(0,g.y)(this.aw,this,a));this.g[c]=[b,d]}a=g.CF(window,"resize",(0,g.y)(this.ZS,this,a,void 0));this.o[c]=a};
|
||
|
g.h.hide=function(a){n6.aa.hide.call(this,a);a=g.za(a).toString();var b=this.g[a];b&&(g.DF(b),this.g[a]=null);if(b=this.o[a])g.DF(b),delete this.o[a]};
|
||
|
g.h.aw=function(a,b){var c="yt-uix"+(this.C?"-"+this.C:"")+"-card",d=null;b.target&&(d=g.Ge(b.target,c)||g.Ge(g6(b.target),c));(d=d||g.Ge(window.document.activeElement,c)||g.Ge(g6(window.document.activeElement),c))||this.hide(a)};
|
||
|
g.h.Yv=function(a){(a=g.Ge(a,Z(this,"card")))&&(a=a.cardTargetNode)&&this.hide(a)};g.z(o6,b6);g.ra(o6);g.h=o6.prototype;g.h.register=function(){this.addBehavior("mouseenter",this.Jz,"target");this.addBehavior("mouseleave",this.Lz,"target");this.addBehavior("mouseenter",this.Kz,"card");this.addBehavior("mouseleave",this.Mz,"card")};
|
||
|
g.h.unregister=function(){this.removeBehavior("mouseenter",this.Jz,"target");this.removeBehavior("mouseleave",this.Lz,"target");this.removeBehavior("mouseenter",this.Kz,"card");this.removeBehavior("mouseleave",this.Mz,"card")};
|
||
|
g.h.Jz=function(a){if(F6!=a){F6&&(this.hide(F6),F6=null);var b=(0,g.y)(this.show,this,a),c=(0,window.parseInt)(this.ya(a,"delay-show"),10),b=g.yE(b,-1<c?c:200);this.setData(a,"card-timer",b.toString());F6=a;a.alt&&(this.setData(a,"card-alt",a.alt),a.alt="");a.title&&(this.setData(a,"card-title",a.title),a.title="")}};
|
||
|
g.h.Lz=function(a){var b=(0,window.parseInt)(this.ya(a,"card-timer"),10);g.wE(b);this.ae(a).isCardHidable=!0;b=(0,window.parseInt)(this.ya(a,"delay-hide"),10);b=-1<b?b:200;g.yE((0,g.y)(this.uI,this,a),b);if(b=this.ya(a,"card-alt"))a.alt=b;if(b=this.ya(a,"card-title"))a.title=b};
|
||
|
g.h.uI=function(a){this.ae(a).isCardHidable&&(this.hide(a),F6=null)};
|
||
|
g.h.Kz=function(a){a&&(a.cardRootNode.isCardHidable=!1)};
|
||
|
g.h.Mz=function(a){a&&this.hide(a.cardTargetNode)};
|
||
|
var F6=null;var Yta={LOADING:"loading",XD:"content",V1:"working"};g.h=p6.prototype;
|
||
|
g.h.show=function(){if(!this.na()){this.F=window.document.activeElement;if(!this.P){this.o||(this.o=g.Wd("yt-dialog-bg"),this.o||(this.o=g.je("div"),this.o.id="yt-dialog-bg",this.o.className="yt-dialog-bg",window.document.body.appendChild(this.o)));var a=window,b=a.document;var c=0;if(b){c=b.body;var d=b.documentElement;if(d&&c)if(a=g.be(a).height,g.ae(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{var b=d.scrollHeight,e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,
|
||
|
e=c.offsetHeight);c=b>a?b>e?b:e:b<e?b:e}else c=0}this.o.style.height=c+"px";g.BV(this.o)}this.Bx();c=$ta(this);aua(c);this.C=g.CF(window.document,"keydown",(0,g.y)(this.BJ,this));c=this.g;d=g.dG("player-added",this.Bx,this);g.qF(c,"player-ready-pubsub-key",d);this.X&&(this.D=g.CF(window.document,"click",(0,g.y)(this.DR,this)));g.BV(this.g);this.A.setAttribute("tabindex","0");cua(this);this.J||g.R(window.document.body,"yt-dialog-active");a6(V5.getInstance());c6(n6.getInstance());c6(o6.getInstance());
|
||
|
g.fG("yt-ui-dialog-show-complete",this)}};
|
||
|
g.h.Bx=function(){if(!this.ba){var a=this.g;g.S(window.document.body,"hide-players",!0);a&&g.S(a,"preserve-players",!0)}};
|
||
|
g.h.VN=function(a){a=a.currentTarget;a.disabled||(a=g.pF(a,"action")||"",this.dismiss(a))};
|
||
|
g.h.dismiss=function(a){if(!this.na()){this.B.Y("pre-all");this.B.Y("pre-"+a);g.CV(this.g);c6(n6.getInstance());c6(o6.getInstance());this.A.setAttribute("tabindex","-1");Zta()||(g.CV(this.o),this.J||g.Ip(window.document.body,"yt-dialog-active"),Rqa(),bua());this.C&&(g.DF(this.C),this.C=null);this.D&&(g.DF(this.D),this.D=null);var b=this.g;if(b){var c=g.pF(b,"player-ready-pubsub-key");c&&(g.eG(c),W3(b,"player-ready-pubsub-key"))}this.B.Y("post-all");g.fG("yt-ui-dialog-hide-complete",this);"cancel"==
|
||
|
a&&g.fG("yt-ui-dialog-cancelled",this);this.B&&this.B.Y("post-"+a);this.F&&this.F.focus()}};
|
||
|
g.h.setTitle=function(a){g.ze(g.J("yt-dialog-title",this.g),a)};
|
||
|
g.h.BJ=function(a){g.yE((0,g.y)(function(){this.O||27!=a.keyCode||this.dismiss("cancel")},this),0);
|
||
|
9==a.keyCode&&a.shiftKey&&g.Gp(window.document.activeElement,"yt-dialog-fg")&&a.preventDefault()};
|
||
|
g.h.DR=function(a){"yt-dialog-base"==a.target.className&&this.dismiss("cancel")};
|
||
|
g.h.na=function(){return this.M};
|
||
|
g.h.dispose=function(){T3(this.g)&&this.dismiss("dispose");g.DF(this.G);this.G.length=0;g.yE((0,g.y)(function(){this.F=null},this),0);
|
||
|
this.K=this.A=null;this.B.dispose();this.B=null;this.M=!0};
|
||
|
g.h.eH=function(a){a.stopPropagation();cua(this)};
|
||
|
g.qa("yt.ui.Dialog",p6,void 0);g.z(q6,S5);g.ra(q6);g.h=q6.prototype;g.h.register=function(){this.addBehavior("click",this.kt,"target");this.addBehavior("click",this.hide,"close");eua(this)};
|
||
|
g.h.unregister=function(){q6.aa.unregister.call(this);this.removeBehavior("click",this.kt,"target");this.removeBehavior("click",this.hide,"close");this.B&&(g.eG(this.B),this.B=null);this.o&&(g.DF(this.o),this.o=null)};
|
||
|
g.h.kt=function(a){if(!this.g||!T3(this.g.g)){var b=this.ae(a);a=gua(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.ya(b,"disable-shortcuts")||!1,d=!!this.ya(b,"disable-outside-click-dismiss")||!1;this.g=new p6(a,c);this.A=b;var e=g.J("yt-dialog-fg",a);if(e){var f=this.ya(b,"overlay-class")||"",k=this.ya(b,"overlay-style")||"default",l=this.ya(b,"overlay-shape")||"default",f=f?f.split(" "):[];f.push(Z(this,k));f.push(Z(this,l));g.Hp(e,f)}this.g.show();g.fG("yt-uix-kbd-nav-move-to",e||
|
||
|
a);eua(this);c||d||(c=(0,g.y)(function(a){g.Gp(a.target,"yt-dialog-base")&&fua(this)},this),this.o=g.CF(g.J("yt-dialog-base",a),"click",c));
|
||
|
this.Ni(b,"overlay-shown");g.fG("yt-uix-overlay-shown",b)}}};
|
||
|
g.h.Gc=function(a){return g.J("yt-dialog-content",a.overlayContentNode||a)};
|
||
|
g.h.hide=function(a){a&&a.disabled||g.fG("yt-uix-overlay-hide")};
|
||
|
g.h.show=function(a){this.kt(a)};g.z(r6,S5);g.ra(r6);g.h=r6.prototype;g.h.register=function(){this.addBehavior("mouseover",this.Qn);this.addBehavior("mouseout",this.ri);this.addBehavior("focus",this.Lw);this.addBehavior("blur",this.Hv);this.addBehavior("click",this.ri);this.addBehavior("touchstart",this.dC);this.addBehavior("touchend",this.zo);this.addBehavior("touchcancel",this.zo)};
|
||
|
g.h.unregister=function(){this.removeBehavior("mouseover",this.Qn);this.removeBehavior("mouseout",this.ri);this.removeBehavior("focus",this.Lw);this.removeBehavior("blur",this.Hv);this.removeBehavior("click",this.ri);this.removeBehavior("touchstart",this.dC);this.removeBehavior("touchend",this.zo);this.removeBehavior("touchcancel",this.zo);this.dispose();r6.aa.unregister.call(this)};
|
||
|
g.h.dispose=function(){for(var a in this.o)this.ri(this.o[a]);this.o={}};
|
||
|
g.h.Qn=function(a){if(!(this.g&&1E3>(0,g.F)()-this.g)){var b=(0,window.parseInt)(this.ya(a,"tooltip-hide-timer"),10);b&&(W3(a,"tooltip-hide-timer"),g.wE(b));var b=(0,g.y)(function(){mua(this,a);W3(a,"tooltip-show-timer")},this),c=(0,window.parseInt)(this.ya(a,"tooltip-show-delay"),10)||0,b=g.yE(b,c);
|
||
|
this.setData(a,"tooltip-show-timer",b.toString());a.title&&(this.setData(a,"tooltip-text",jua(this,a)),a.title="");b=g.za(a).toString();this.o[b]=a}};
|
||
|
g.h.ri=function(a){var b=(0,window.parseInt)(this.ya(a,"tooltip-show-timer"),10);b&&(g.wE(b),W3(a,"tooltip-show-timer"));b=(0,g.y)(function(){if(a){var b=g.Wd(s6(this,a));b&&(nua(b),g.qe(b),W3(a,"content-id"));b=g.Wd(s6(this,a,"arialabel"));g.qe(b)}W3(a,"tooltip-hide-timer")},this);
|
||
|
b=g.yE(b,50);this.setData(a,"tooltip-hide-timer",b.toString());if(b=this.ya(a,"tooltip-text"))a.title=b;b=g.za(a).toString();delete this.o[b]};
|
||
|
g.h.Lw=function(a){this.g=0;this.Qn(a)};
|
||
|
g.h.Hv=function(a){this.g=0;this.ri(a)};
|
||
|
g.h.dC=function(a,b,c){c.changedTouches&&(this.g=0,(a=P5(b,Z(this),c.changedTouches[0].target))&&this.Qn(a))};
|
||
|
g.h.zo=function(a,b,c){c.changedTouches&&(this.g=(0,g.F)(),(a=P5(b,Z(this),c.changedTouches[0].target))&&this.ri(a))};var G6=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};g.qa("yt.uix.widgets_",G6,void 0);g.z(t6,g.qO);g.z(u6,g.qO);g.z(oua,g.qO);g.z(v6,g.qO);
|
||
|
var zua=new g.rO("subscription-subscribe",u6),Aua=new g.rO("subscription-subscribe-loading",t6),Bua=new g.rO("subscription-subscribe-loaded",t6),Cua=new g.rO("subscription-subscribe-success",oua),Dua=new g.rO("subscription-unsubscribe",v6),Eua=new g.rO("subscription-unsubscirbe-loading",t6),Fua=new g.rO("subscription-unsubscribe-loaded",t6),Gua=new g.rO("subscription-unsubscribe-success",t6),Hua=new g.rO("subscription-enable-ypc",t6),Iua=new g.rO("subscription-disable-ypc",t6);var x6={},w6=[];g.z(y6,S5);g.ra(y6);y6.prototype.register=function(){this.addBehavior("click",this.lu);U5(this,Aua,this.pA);U5(this,Bua,this.uD);U5(this,Cua,this.LQ);U5(this,Eua,this.pA);U5(this,Fua,this.uD);U5(this,Gua,this.ZQ);U5(this,Hua,this.vO);U5(this,Iua,this.sO)};
|
||
|
y6.prototype.unregister=function(){this.removeBehavior("click",this.lu);y6.aa.unregister.call(this)};
|
||
|
var A6={pu:"hover-enabled",LD:"yt-uix-button-subscribe",MD:"yt-uix-button-subscribed",RV:"ypc-enabled",VD:"yt-uix-button-subscription-container",WD:"yt-subscription-button-disabled-mask-container"},z6={hW:"channel-external-id",YD:"subscriber-count-show-when-subscribed",ZD:"subscriber-count-tooltip",aE:"subscriber-count-title",XX:"href",gY:"insecure",Cu:"is-subscribed",TZ:"parent-url",Q_:"clicktracking",DF:"show-unsub-confirm-dialog",V_:"show-unsub-confirm-time-frame",KF:"style-type",av:"subscribed-timestamp",
|
||
|
bv:"subscription-id",z0:"target",eG:"ypc-enabled"};g.h=y6.prototype;
|
||
|
g.h.lu=function(a){var b=this.ya(a,"href"),c=this.ya(a,"insecure"),d=rua(),c=c&&!0;if(b)a=this.ya(a,"target")||"_self",window.open(b,a);else if(!c)if(d){var b=this.ya(a,"channel-external-id"),d=this.ya(a,"clicktracking"),c=sua(this,a),e=this.ya(a,"parent-url");if(this.ya(a,"is-subscribed")){var f=this.ya(a,"subscription-id"),k=new v6(b,f,c,a,d,e);wua(this,a)?qua(a,b).then(function(){g.tO(Dua,k)}):g.tO(Dua,k)}else g.tO(zua,new u6(b,c,d,e))}else vua(this,a)};
|
||
|
g.h.pA=function(a){this.Ki(a.g,this.FB,!0)};
|
||
|
g.h.uD=function(a){this.Ki(a.g,this.FB,!1)};
|
||
|
g.h.LQ=function(a){this.Ki(a.g,this.JB,!0,a.o)};
|
||
|
g.h.ZQ=function(a){this.Ki(a.g,this.JB,!1)};
|
||
|
g.h.vO=function(a){this.Ki(a.g,this.WG)};
|
||
|
g.h.sO=function(a){this.Ki(a.g,this.RG)};
|
||
|
g.h.JB=function(a,b,c){b?(this.setData(a,z6.Cu,"true"),c&&this.setData(a,z6.bv,c),this.ya(a,z6.DF)&&(b=new Z3,this.setData(a,z6.av,(b.getTime()/1E3).toString()))):(W3(a,z6.Cu),W3(a,z6.av),W3(a,z6.bv));tua(this,a)};
|
||
|
g.h.FB=function(a,b){var c=g.Ge(a,A6.VD);g.S(c,A6.WD,b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
|
||
|
g.h.WG=function(a){var b=!!this.ya(a,"ypc-item-type"),c=!!this.ya(a,"ypc-item-id");!this.ya(a,"ypc-enabled")&&b&&c&&(g.R(a,"ypc-enabled"),this.setData(a,z6.eG,"true"))};
|
||
|
g.h.RG=function(a){this.ya(a,"ypc-enabled")&&(g.Ip(a,"ypc-enabled"),W3(a,"ypc-enabled"))};
|
||
|
g.h.tG=function(a,b,c){var d=g.sb(arguments,2);(0,g.G)(a,function(a){b.apply(this,g.pb(a,d))},this)};
|
||
|
g.h.Ki=function(a,b,c){var d=uua(this,a);this.tG.apply(this,g.pb([d],g.sb(arguments,1)))};window._exportCheck==g.Da&&(g.qa("ytmod.player.annotations_module",K5,void 0),g.qa("ytmod.player.creatorendscreen",t4,void 0));var H6=y6.getInstance(),I6=Z(H6);I6 in G6||(H6.register(),T5(H6,"yt-uix-init-"+I6,H6.init),T5(H6,"yt-uix-dispose-"+I6,H6.dispose),G6[I6]=H6);})(_yt_player);
|