var _yt_player={};(function(g){var window=this;var f,p=function(a){return void 0!==a},q=function(a,b,c){a=a.split(".");
c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}},r=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];
else return null;return d},v=function(){},ba=function(a){a.getInstance=function(){return a.Rb?a.Rb:a.Rb=new a}},ca=function(a){var b=typeof a;
if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b},da=function(a){return"array"==ca(a)},ea=function(a){var b=ca(a);
return"array"==b||"object"==b&&"number"==typeof a.length},w=function(a){return"string"==typeof a},fa=function(a){return"boolean"==typeof a},ga=function(a){return"number"==typeof a},ha=function(a){return"function"==ca(a)},ia=function(a){var b=typeof a;
return"object"==b&&null!=a||"function"==b},ma=function(a){return a[ka]||(a[ka]=++la)},na=function(a,b,c){return a.call.apply(a.bind,arguments)},oa=function(a,b,c){if(!a)throw Error();
if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},y=function(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;
return y.apply(null,arguments)},pa=function(a,b){var c=Array.prototype.slice.call(arguments,1);
return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},qa=function(a,b){for(var c in b)a[c]=b[c]},ra=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a},A=function(a,b){function c(){}
c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,h){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[c].apply(a,k)}},sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);
else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))},ta=function(a,b){return 0==a.lastIndexOf(b,0)},ua=function(a,b){var c=a.length-b.length;
return 0<=c&&a.indexOf(b,c)==c},C=function(a){return/^[\s\xa0]*$/.test(a)},wa=function(a){return(0,window.encodeURIComponent)(String(a))},xa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))},Fa=function(a){if(!ya.test(a))return a;
-1!=a.indexOf("&")&&(a=a.replace(za,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Aa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ba,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Da,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ea,"&#0;"));return a},Ja=function(a){return Ga(a,"&")?"document"in aa?Ha(a):Ia(a):a},Ha=function(a){var b={"&amp;":"&",
"&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(Ka,function(a,e){var h=b[a];if(h)return h;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(h=String.fromCharCode(k))}h||(c.innerHTML=a+" ",h=c.firstChild.nodeValue.slice(0,-1));return b[a]=h})},Ia=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";
case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!(0,window.isNaN)(d))return String.fromCharCode(d)}return a}})},La=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");
return a},Ga=function(a,b){return-1!=a.indexOf(b)},Ma=function(a,b){return Ga(a.toLowerCase(),b.toLowerCase())},Pa=function(a,b,c){a=p(c)?a.toFixed(c):String(a);
c=a.indexOf(".");-1==c&&(c=a.length);return Oa("0",Math.max(0,b-c))+a},E=function(a){return null==a?"":String(a)},Qa=function(a){return Array.prototype.join.call(arguments,"")},Ta=function(a,b){for(var c=0,d=Ra(String(a)).split("."),e=Ra(String(b)).split("."),h=Math.max(d.length,e.length),k=0;0==c&&k<h;k++){var l=d[k]||"",m=e[k]||"",n=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");
do{var u=n.exec(l)||["","",""],x=t.exec(m)||["","",""];if(0==u[0].length&&0==x[0].length)break;c=Sa(0==u[1].length?0:(0,window.parseInt)(u[1],10),0==x[1].length?0:(0,window.parseInt)(x[1],10))||Sa(0==u[2].length,0==x[2].length)||Sa(u[2],x[2])}while(0==c)}return c},Sa=function(a,b){return a<b?-1:a>b?1:0},Ua=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;
return b},Xa=function(){return"goog_"+Wa++},Ya=function(a){var b=Number(a);
return 0==b&&C(a)?window.NaN:b},Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},$a=function(a){var b=w(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";
return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})},ab=function(a){(0,window.isFinite)(a)&&(a=String(a));
return w(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN},bb=function(a,b,c){a=a.split(b);
for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d},cb=function(a){return a[a.length-1]},eb=function(a,b,c){b=db(a,b,c);
return 0>b?null:w(a)?a.charAt(b):a[b]},db=function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,h=0;h<d;h++)if(h in e&&b.call(c,e[h],h,a))return h;
return-1},gb=function(a,b){var c=fb(a,b,void 0);
return 0>c?null:w(a)?a.charAt(c):a[c]},fb=function(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;
return-1},jb=function(a,b){return 0<=ib(a,b)},kb=function(a){return 0==a.length},lb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];
a.length=0},nb=function(a,b){jb(a,b)||a.push(b)},pb=function(a,b){var c=ib(a,b),d;
(d=0<=c)&&ob(a,c);return d},ob=function(a,b){Array.prototype.splice.call(a,b,1)},qb=function(a,b){var c=db(a,b,void 0);
0<=c&&ob(a,c)},rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},sb=function(a){var b=a.length;
if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},tb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];
if(ea(d)){var e=a.length||0,h=d.length||0;a.length=e+h;for(var k=0;k<h;k++)a[e+k]=d[k]}else a.push(d)}},wb=function(a,b,c,d){Array.prototype.splice.apply(a,ub(arguments,1))},ub=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},xb=function(a,b,c){function d(a){return ia(a)?"o"+ma(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},h=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[h++]=l)}b.length=h},Ab=function(a,b,c){return yb(a,c||zb,!1,b)},Bb=function(a,b){return yb(a,b,!0,void 0,void 0)},yb=function(a,b,c,d,e){for(var h=0,k=a.length,l;h<k;){var m=h+k>>1,n;
c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?h=m+1:(k=m,l=!n)}return l?h:~h},Cb=function(a,b){a.sort(b||zb)},Db=function(a,b,c){var d=c||zb;
Cb(a,function(a,c){return d(b(a),b(c))})},Eb=function(a,b){Db(a,function(a){return a[b]},void 0)},Gb=function(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;
var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0},zb=function(a,b){return a>b?1:a<b?-1:0},Fb=function(a,b){return a===b},Hb=function(a,b,c){c=Ab(a,b,c);
0>c&&wb(a,-(c+1),0,b)},Ib=function(a,b,c){var d={};
F(a,function(e,h){d[b.call(c,e,h,a)]=e});
return d},Jb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;
return b},Kb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];
if(da(d))for(var e=0;e<d.length;e+=8192)for(var h=ub(d,e,e+8192),h=Kb.apply(null,h),k=0;k<h.length;k++)b.push(h[k]);else b.push(d)}return b},G=function(){this.Ua=this.Ua;
this.Ka=this.Ka},H=function(a,b){Lb(a,pa(Mb,b))},Lb=function(a,b){a.Ua?b.call(void 0):(a.Ka||(a.Ka=[]),a.Ka.push(p(void 0)?y(b,void 0):b))},Mb=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Nb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];
ea(d)?Nb.apply(null,d):Mb(d)}},Ob=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Pb=function(a,b,c){var d={},e;
for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d},Qb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;
return!1},Rb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;
return!0},Sb=function(a){var b=0,c;
for(c in a)b++;return b},Ub=function(a,b){return Tb(a,b)},Vb=function(a){var b=[],c=0,d;
for(d in a)b[c++]=a[d];return b},Wb=function(a){var b=[],c=0,d;
for(d in a)b[c++]=d;return b},Xb=function(a,b){for(var c=ea(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);
return a},Yb=function(a,b){return null!==a&&b in a},Tb=function(a,b){for(var c in a)if(a[c]==b)return!0;
return!1},Zb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d},$b=function(a,b){var c=Zb(a,b,void 0);
return c&&a[c]},ac=function(a){for(var b in a)return!1;
return!0},bc=function(a){for(var b in a)delete a[b]},cc=function(a,b){b in a&&delete a[b]},dc=function(a,b,c){return null!==a&&b in a?a[b]:c},ec=function(a){var b={},c;
for(c in a)b[c]=a[c];return b},fc=function(a){var b=ca(a);
if("object"==b||"array"==b){if(ha(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=fc(a[c]);return b}return a},hc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];
for(c in d)a[c]=d[c];for(var h=0;h<gc.length;h++)c=gc[h],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},ic=function(a){var b=arguments.length;
if(1==b&&da(arguments[0]))return ic.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c},jc=function(a,b){this.type=a;
this.currentTarget=this.target=b;this.defaultPrevented=this.A=!1;this.ir=!0},kc=function(a){a.stopPropagation()},lc=function(a){lc[" "](a);
return a},mc=function(a,b){try{return lc(a[b]),!0}catch(c){}return!1},oc=function(a){return Ga(nc,a)},pc=function(){return oc("Opera")||oc("OPR")},qc=function(){return(oc("Chrome")||oc("CriOS"))&&!pc()&&!oc("Edge")},rc=function(){return oc("iPhone")&&!oc("iPod")&&!oc("iPad")},sc=function(){var a=aa.document;
return a?a.documentMode:void 0},vc=function(a){return tc[a]||(tc[a]=0<=Ta(uc,a))},xc=function(a){return Number(wc)>=a},Ac=function(a){return yc?"webkit"+a:zc?"o"+a.toLowerCase():a.toLowerCase()},Bc=function(a,b){jc.call(this,a?a.type:"");
this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.o=this.state=null;a&&this.init(a,b)},Dc=function(a){return!(!a||!a[Cc])},Fc=function(a,b,c,d,e){this.listener=a;
this.o=null;this.src=b;this.type=c;this.tf=!!d;this.$c=e;this.key=++Ec;this.Wf=this.$h=!1},Gc=function(a){a.Wf=!0;
a.listener=null;a.o=null;a.src=null;a.$c=null},Hc=function(a){this.src=a;
this.o={};this.A=0},Kc=function(a,b,c,d,e,h){var k=b.toString();
b=a.o[k];b||(b=a.o[k]=[],a.A++);var l=Ic(b,c,e,h);-1<l?(a=b[l],d||(a.$h=!1)):(a=new Fc(c,a.src,k,!!e,h),a.$h=d,b.push(a));return a},Lc=function(a,b){var c=b.type;
if(!(c in a.o))return!1;var d=pb(a.o[c],b);d&&(Gc(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d},Mc=function(a,b,c,d,e){a=a.o[b.toString()];
b=-1;a&&(b=Ic(a,c,d,e));return-1<b?a[b]:null},Ic=function(a,b,c,d){for(var e=0;e<a.length;++e){var h=a[e];
if(!h.Wf&&h.listener==b&&h.tf==!!c&&h.$c==d)return e}return-1},Nc=function(a,b,c,d,e){if(da(b)){for(var h=0;h<b.length;h++)Nc(a,b[h],c,d,e);
return null}c=Oc(c);return Dc(a)?a.R(b,c,d,e):Pc(a,b,c,!1,d,e)},Pc=function(a,b,c,d,e,h){if(!b)throw Error("Invalid event type");
var k=!!e,l=Qc(a);l||(a[Rc]=l=new Hc(a));c=Kc(l,b,c,d,e,h);if(c.o)return c;d=Sc();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Tc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Uc++;return c},Sc=function(){var a=Vc,b=Wc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b},Xc=function(a,b,c,d,e){if(da(b)){for(var h=0;h<b.length;h++)Xc(a,b[h],c,d,e);
return null}c=Oc(c);return Dc(a)?Kc(a.P,String(b),c,!0,d,e):Pc(a,b,c,!0,d,e)},Yc=function(a,b,c,d,e){if(da(b))for(var h=0;h<b.length;h++)Yc(a,b[h],c,d,e);
else c=Oc(c),Dc(a)?a.ya(b,c,d,e):a&&(a=Qc(a))&&(b=Mc(a,b,c,!!d,e))&&Zc(b)},Zc=function(a){if(ga(a)||!a||a.Wf)return!1;
var b=a.src;if(Dc(b))return Lc(b.P,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.tf):b.detachEvent&&b.detachEvent(Tc(c),d);Uc--;(c=Qc(b))?(Lc(c,a),0==c.A&&(c.src=null,b[Rc]=null)):Gc(a);return!0},Tc=function(a){return a in $c?$c[a]:$c[a]="on"+a},bd=function(a,b,c,d){var e=!0;
if(a=Qc(a))if(b=a.o[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var h=b[a];h&&h.tf==c&&!h.Wf&&(h=ad(h,d),e=e&&!1!==h)}return e},ad=function(a,b){var c=a.listener,d=a.$c||a.src;
a.$h&&Zc(a);return c.call(d,b)},Vc=function(a,b){if(a.Wf)return!0;
if(!Wc){var c=b||r("window.event"),d=new Bc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var h=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==c.returnValue)c.returnValue=!0}c=[];for(h=d.currentTarget;h;h=h.parentNode)c.push(h);for(var h=a.type,k=c.length-1;!d.A&&0<=k;k--){d.currentTarget=c[k];var l=bd(c[k],h,!0,d),e=e&&l}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],l=bd(c[k],h,!1,d),e=e&&l}return e}return ad(a,new Bc(b,this))},Qc=function(a){a=a[Rc];
return a instanceof Hc?a:null},Oc=function(a){if(ha(a))return a;
a[cd]||(a[cd]=function(b){return a.handleEvent(b)});
return a[cd]},J=function(){G.call(this);
this.P=new Hc(this);this.Ma=this;this.wa=null},dd=function(a,b,c,d){b=a.P.o[String(b)];
if(!b)return!0;b=b.concat();for(var e=!0,h=0;h<b.length;++h){var k=b[h];if(k&&!k.Wf&&k.tf==c){var l=k.listener,m=k.$c||k.src;k.$h&&Lc(a.P,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.ir},ed=function(a,b,c){this.D=c;
this.B=a;this.C=b;this.A=0;this.o=null},fd=function(a,b){a.C(b);
a.A<a.D&&(a.A++,b.next=a.o,a.o=b)},gd=function(a){return function(){return a}},hd=function(a){var b;
b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},id=function(a){aa.setTimeout(function(){throw a;
},0)},ld=function(a,b){var c=a;
b&&(c=y(a,b));!ha(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!oc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(jd||(jd=kd()),jd(c)):aa.setImmediate(c)},kd=function(){var a=aa.MessageChannel;
"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!oc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=y(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},
this);
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
if("undefined"!==typeof a&&!oc("Trident")&&!oc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.lo;c.lo=null;a()}};
return function(a){d.next={lo:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){aa.setTimeout(a,0)}},md=function(){this.A=this.o=null},nd=function(){this.next=this.scope=this.o=null},td=function(a,b){od||pd();
qd||(od(),qd=!0);var c=rd,d=sd.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d},pd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);
od=function(){a.then(ud)}}else od=function(){ld(ud)}},ud=function(){for(var a=null;a=rd.remove();){try{a.o.call(a.scope)}catch(b){id(b)}fd(sd,a)}qd=!1},vd=function(a){a.prototype.then=a.prototype.then;
a.prototype.$goog_Thenable=!0},wd=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}},yd=function(a,b){this.o=0;
this.G=void 0;this.C=this.A=this.B=null;this.D=this.F=!1;if(a!=v)try{var c=this;a.call(b,function(a){xd(c,2,a)},function(a){xd(c,3,a)})}catch(d){xd(this,3,d)}},zd=function(){this.next=this.context=this.A=this.C=this.o=null;
this.B=!1},Bd=function(a,b,c){var d=Ad.get();
d.C=a;d.A=b;d.context=c;return d},Cd=function(a){return new yd(function(b,c){c(a)})},Ed=function(a,b){return Dd(a,null,b,void 0)},Fd=function(a,b){if(0==a.o)if(a.B){var c=a.B;
if(c.A){for(var d=0,e=null,h=null,k=c.A;k&&(k.B||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(h=k);e&&(0==c.o&&1==d?Fd(c,b):(h?(d=h,d.next==c.C&&(c.C=d),d.next=d.next.next):Gd(c),Hd(c,e,3,b)))}a.B=null}else xd(a,3,b)},Jd=function(a,b){a.A||2!=a.o&&3!=a.o||Id(a);
a.C?a.C.next=b:a.A=b;a.C=b},Dd=function(a,b,c,d){var e=Bd(null,null,null);
e.o=new yd(function(a,k){e.C=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.A=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Kd?k(b):a(e)}catch(n){k(n)}}:k});
e.o.B=a;Jd(a,e);return e.o},xd=function(a,b,c){if(0==a.o){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));
a.o=1;var d;a:{var e=c,h=a.J,k=a.K;if(e instanceof yd)Jd(e,Bd(h||v,k||null,a)),d=!0;else if(wd(e))e.then(h,k,a),d=!0;else{if(ia(e))try{var l=e.then;if(ha(l)){Ld(e,l,h,k,a);d=!0;break a}}catch(m){k.call(a,m);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Id(a),3!=b||c instanceof Kd||Md(a,c))}},Ld=function(a,b,c,d,e){function h(a){l||(l=!0,d.call(e,a))}
function k(a){l||(l=!0,c.call(e,a))}
var l=!1;try{b.call(a,k,h)}catch(m){h(m)}},Id=function(a){a.F||(a.F=!0,td(a.H,a))},Gd=function(a){var b=null;
a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b},Hd=function(a,b,c,d){if(3==c&&b.A&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;
if(b.o)b.o.B=null,Nd(b,c,d);else try{b.B?b.C.call(b.context):Nd(b,c,d)}catch(e){Od.call(null,e)}fd(Ad,b)},Nd=function(a,b,c){2==b?a.C.call(a.context,c):a.A&&a.A.call(a.context,c)},Md=function(a,b){a.D=!0;
td(function(){a.D&&Od.call(null,b)})},Kd=function(a){sa.call(this,a)},Pd=function(a,b){J.call(this);
this.o=a||1;this.A=b||aa;this.B=y(this.ix,this);this.C=K()},Qd=function(a,b){a.o=b;
a.xc&&a.enabled?(a.stop(),a.start()):a.xc&&a.stop()},Rd=function(a,b,c){if(ha(a))c&&(a=y(a,c));
else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)},Td=function(a){aa.clearTimeout(a)},Ud=function(a,b,c){G.call(this);
this.o=a;this.C=b||0;this.A=c;this.B=y(this.Oo,this)},Vd=function(a){a.stop();
a.Oo()},Wd=function(a){if(a.classList)return a.classList;
a=a.className;return w(a)&&a.match(/\S+/g)||[]},Xd=function(a,b){return a.classList?a.classList.contains(b):jb(Wd(a),b)},L=function(a,b){a.classList?a.classList.add(b):Xd(a,b)||(a.className+=0<a.className.length?" "+b:b)},Yd=function(a,b){if(a.classList)F(b,function(b){L(a,b)});
else{var c={};F(Wd(a),function(a){c[a]=!0});
F(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}},$d=function(a,b){a.classList?a.classList.remove(b):Xd(a,b)&&(a.className=Zd(Wd(a),function(a){return a!=b}).join(" "))},ae=function(a,b){a.classList?F(b,function(b){$d(a,b)}):a.className=Zd(Wd(a),function(a){return!jb(b,a)}).join(" ")},M=function(a,b,c){c?L(a,b):$d(a,b)},be=function(a){a=String(a);
if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},ce=function(a){return eval("("+a+")")},ee=function(a){return(new de(void 0)).Ac(a)},de=function(a){this.o=a},fe=function(a,b,c){if(null==b)c.push("null");
else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",h=0;h<b;h++)c.push(e),e=d[h],fe(a,a.o?a.o.call(d,String(h),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");h="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(h),ge(d,c),c.push(":"),fe(a,a.o?a.o.call(b,d,e):e,c),h=","));c.push("}");return}}switch(typeof b){case "string":ge(b,c);break;case "number":c.push((0,window.isFinite)(b)&&
!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},ge=function(a,b){b.push('"',a.replace(he,function(a){var b=ie[a];
b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ie[a]=b);return b}),'"')},je=function(a,b,c){return Math.min(Math.max(a,b),c)},ke=function(a,b){var c=a%b;
return 0>c*b?c+b:c},le=function(a,b,c){return a+c*(b-a)},ne=function(a){return me(arguments,function(a,c){return a+c},0)},oe=function(a){return ne.apply(null,arguments)/arguments.length},pe=function(a,b){this.x=p(a)?a:0;
this.y=p(b)?b:0},re=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1},se=function(a,b,c,d){this.top=a;
this.right=b;this.bottom=c;this.left=d},te=function(a,b){this.width=a;
this.height=b},ue=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1},ve=function(a,b,c,d){this.left=a;
this.top=b;this.width=c;this.height=d},we=function(a){return new se(a.top,a.left+a.width,a.top+a.height,a.left)},xe=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1},ye=function(a){return new te(a.width,a.height)},ze=function(a){return new pe(a.left,a.top)},Ae=function(a){G.call(this);
this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=!!a},Be=function(a,b,c,d){if(b=a.A[b]){var e=a.o;
if(b=eb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.oc(b)}return!1},Ce=function(a,b,c){td(function(){a.apply(b,c)})},De=function(){},Fe=function(a){if(a instanceof De)return a;
if("function"==typeof a.bc)return a.bc(!1);if(ea(a)){var b=0,c=new De;c.next=function(){for(;;){if(b>=a.length)throw Ee;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");},Ge=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==Ee)throw d;
}else{a=Fe(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Ee)throw d;}}},He=function(a){if(ea(a))return sb(a);
a=Fe(a);var b=[];Ge(a,function(a){b.push(a)});
return b},Ie=function(a,b){this.A={};
this.o=[];this.ke=this.za=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Ie?(c=a.Pa(),d=a.Na()):(c=Wb(a),d=Vb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}},Ke=function(a,b){return Je(a.A,b)},Le=function(a,b){return a===b},Me=function(a){if(a.za!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];
Je(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.za!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],Je(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}},Je=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Ne=function(a){return a.Ya&&"function"==typeof a.Ya?a.Ya():ea(a)||w(a)?a.length:Sb(a)},Oe=function(a){if(a.Na&&"function"==typeof a.Na)return a.Na();
if(w(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Vb(a)},Pe=function(a){if(a.Pa&&"function"==typeof a.Pa)return a.Pa();
if(!a.Na||"function"!=typeof a.Na){if(ea(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Wb(a)}},Qe=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);
else if(ea(a)||w(a))F(a,b,c);else for(var d=Pe(a),e=Oe(a),h=e.length,k=0;k<h;k++)b.call(c,e[k],d&&d[k],a)},Se=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);
if(ea(a)||w(a))return Re(a,b,c);for(var d=Pe(a),e=Oe(a),h=e.length,k=0;k<h;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0},Te=function(a,b,c,d,e,h,k){var l="";
a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);h&&(l+="?"+h);k&&(l+="#"+k);return l},Ve=function(a){return a.match(Ue)},We=function(a){return a?(0,window.decodeURI)(a):a},Xe=function(a){return We(Ve(a)[3]||null)},Ye=function(a){return Number(Ve(a)[4]||null)||null},Ze=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),h=null,k=null;
0<=e?(h=c[d].substring(0,e),k=c[d].substring(e+1)):h=c[d];b(h,k?xa(k):"")}},$e=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");
0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")},af=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)af(a,String(b[d]),c);
else null!=b&&c.push("&",a,""===b?"":"=",wa(b))},bf=function(a,b,c){for(c=c||0;c<b.length;c+=2)af(b[c],b[c+1],a);
return a},cf=function(a,b){for(var c in b)af(c,b[c],a);
return a},df=function(a){a=cf([],a);
a[0]="";return a.join("")},ef=function(a,b){return $e(2==arguments.length?bf([a],arguments[1],0):bf([a],arguments,1))},ff=function(a,b){return $e(cf([a],b))},gf=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var h=a.charCodeAt(b-1);
if(38==h||63==h)if(h=a.charCodeAt(b+e),!h||61==h||38==h||35==h)return b;b+=e+1}return-1},jf=function(a,b){var c=a.search(hf),d=gf(a,0,b,c);
if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return xa(a.substr(d,e-d))},lf=function(a,b){for(var c=a.search(hf),d=0,e,h=[];0<=(e=gf(a,d,b,c));)h.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);
h.push(a.substr(d));return h.join("").replace(kf,"$1")},mf=function(a,b,c){a=[lf(a,b),
"&",b];null!=c&&a.push("=",wa(c));return $e(a)},N=function(a,b){this.A=this.H=this.C="";
this.D=null;this.J=this.B="";this.F=!1;var c;a instanceof N?(this.F=p(b)?b:a.F,nf(this,a.C),this.H=a.H,of(this,a.A),pf(this,a.D),qf(this,a.B),rf(this,a.o.clone()),this.J=a.Pe()):a&&(c=Ve(String(a)))?(this.F=!!b,nf(this,c[1]||"",!0),this.H=sf(c[2]||""),of(this,c[3]||"",!0),pf(this,c[4]),qf(this,c[5]||"",!0),rf(this,c[6]||"",!0),this.J=sf(c[7]||"")):(this.F=!!b,this.o=new tf(null,0,this.F))},nf=function(a,b,c){a.C=c?sf(b,!0):b;
a.C&&(a.C=a.C.replace(/:$/,""))},of=function(a,b,c){a.A=c?sf(b,!0):b;
return a},pf=function(a,b){if(b){b=Number(b);
if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a},qf=function(a,b,c){a.B=c?sf(b,!0):b},rf=function(a,b,c){b instanceof tf?(a.o=b,uf(a.o,a.F)):(c||(b=vf(b,wf)),a.o=new tf(b,0,a.F));
return a},xf=function(a,b,c){a.o.set(b,c);
return a},zf=function(a,b,c){da(c)||(c=[String(c)]);
yf(a.o,b,c)},Af=function(a){xf(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^K()).toString(36));
return a},Bf=function(a){return a instanceof N?a.clone():new N(a,void 0)},Cf=function(a,b,c,d){var e=new N(null,void 0);
a&&nf(e,a);b&&of(e,b);c&&pf(e,c);d&&qf(e,d);return e},sf=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""},vf=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,Df),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Df=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},tf=function(a,b,c){this.za=this.o=null;
this.A=a||null;this.B=!!c},Ff=function(a){a.o||(a.o=new Ie,a.za=0,a.A&&Ze(a.A,function(b,c){Ef(a,xa(b),c)}))},Ef=function(a,b,c){Ff(a);
a.A=null;b=Gf(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.za=a.za+1},Hf=function(a,b){Ff(a);
b=Gf(a,b);return Ke(a.o,b)},yf=function(a,b,c){a.remove(b);
0<c.length&&(a.A=null,a.o.set(Gf(a,b),sb(c)),a.za=a.za+c.length)},Gf=function(a,b){var c=String(b);
a.B&&(c=c.toLowerCase());return c},uf=function(a,b){b&&!a.B&&(Ff(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();
b!=e&&(this.remove(b),yf(this,e,a))},a));
a.B=b},If=function(a){var b=["b",
"i","u"],b=b||[];return a=a.replace(/<\/?([^>]*)>?/g,function(a,d){return-1<b.indexOf(d)?a:""})},Jf=function(a,b){b.match(/\sstyle\s*=/);
a.innerHTML=b},Lf=function(){return Kf?'<div class="ytp-icon ytp-icon-cast-desktop-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L17.17,22 Z M15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L15.09,26 Z M11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L11.91,26 Z M8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L8,26 Z M13,17.31 L13,15 L24,15 L24,21 L16.63,21 C15.72,19.50 14.47,18.24 13,17.31 L13,17.31 Z" id="ytp-svg-4" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-4" /></svg>'},
Mf=function(){return Kf?'<div class="ytp-icon ytp-icon-clip-clear"></div>':'<svg height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><path d="M14,14 L14,0 L0,0 L0,14 L14,14 Z" /><path d="M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z" fill="#fff" /></svg>'},Nf=function(){return Kf?'<div class="ytp-icon ytp-icon-clip-end"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" id="ytp-svg-5" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-5" /><use fill="#eaeaea" xlink:href="#ytp-svg-5" /></svg>'},
Of=function(){return Kf?'<div class="ytp-icon ytp-icon-clip-start"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" id="ytp-svg-6" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><use fill="#eaeaea" xlink:href="#ytp-svg-6" /></svg>'},Pf=function(){return Kf?'<div class="ytp-icon ytp-icon-close"></div>':'<svg height="100%" viewBox="0 0 24 24" width="100%"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="#fff" /></svg>'},
Qf=function(){return Kf?'<div class="ytp-icon ytp-icon-playlist"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,11 L27,11 L27,14 L9,14 L9,11 Z M9,16 L27,16 L27,19 L9,19 L9,16 Z M9,21 L21,21 L21,24 L9,24 L9,21 Z M26,22.50 L22,25 L22,20 L26,22.50 Z" id="ytp-svg-34" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-34" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-34" /></svg>'},Rf=function(){return Kf?
'<div class="ytp-icon ytp-icon-settings"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M27,19.35 L27,16.65 L24.61,16.65 C24.44,15.79 24.10,14.99 23.63,14.28 L25.31,12.60 L23.40,10.69 L21.72,12.37 C21.01,11.90 20.21,11.56 19.35,11.38 L19.35,9 L16.65,9 L16.65,11.38 C15.78,11.56 14.98,11.90 14.27,12.37 L12.59,10.69 L10.68,12.60 L12.36,14.28 C11.89,14.99 11.55,15.79 11.38,16.65 L9,16.65 L9,19.35 L11.38,19.35 C11.56,20.21 11.90,21.01 12.37,21.72 L10.68,23.41 L12.59,25.32 L14.28,23.63 C14.99,24.1 15.79,24.44 16.65,24.61 L16.65,27 L19.35,27 L19.35,24.61 C20.21,24.44 21.00,24.1 21.71,23.63 L23.40,25.32 L25.31,23.41 L23.62,21.72 C24.09,21.01 24.43,20.21 24.61,19.35 L27,19.35 Z M18,22.05 C15.76,22.05 13.95,20.23 13.95,18 C13.95,15.76 15.76,13.95 18,13.95 C20.23,13.95 22.05,15.76 22.05,18 C22.05,20.23 20.23,22.05 18,22.05 L18,22.05 Z" id="ytp-svg-38" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-38" /></svg>'},
Sf=function(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'},
Tf=function(){return Kf?'<div class="ytp-icon ytp-icon-volume-muted"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M12.39,15.54 L10,15.54 L10,20.44 L12.4,20.44 L17,25.50 L17,10.48 L12.39,15.54 Z" id="ytp-svg-48" /><path d="M19.63,15.92 L20.68,14.93 L22.81,16.94 L24.94,14.93 L26,15.92 L23.86,17.93 L26,19.93 L24.94,20.92 L22.81,18.92 L20.68,20.92 L19.63,19.93 L21.76,17.93 L19.63,15.92 Z" id="ytp-svg-49" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-48" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-48" /><svg class="ytp-svg-sound-mute-group"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-49" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-49" /></svg></svg>'},
Vf=function(a,b){return b?a.replace(Uf,""):a},bg=function(a,b){for(var c=0,d=0,e=!1,h=Vf(a,b).split(Wf),k=0;k<h.length;k++){var l=h[k];
Xf.test(Vf(l,void 0))?(c++,d++):Zf.test(l)?e=!0:$f.test(Vf(l,void 0))?d++:ag.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1},dg=function(){this.o="";
this.A=cg},eg=function(a){return a instanceof dg&&a.constructor===dg&&a.A===cg?a.o:"type_error:Const"},fg=function(a){var b=new dg;
b.o=a;return b},hg=function(){this.o="";
this.A=gg},ig=function(a){var b=new hg;
b.o=a;return b},kg=function(){this.o="";
this.A=jg},lg=function(a){if(a instanceof kg&&a.constructor===kg&&a.A===jg)return a.o;
ca(a);return"type_error:SafeUrl"},og=function(a){if(a instanceof kg)return a;
a=a.Ue?a.Vd():String(a);mg.test(a)||(a="about:invalid#zClosurez");return ng(a)},ng=function(a){var b=new kg;
b.o=a;return b},qg=function(){this.o="";
this.A=pg},rg=function(a){if(a instanceof qg&&a.constructor===qg&&a.A===pg)return a.o;
ca(a);return"type_error:TrustedResourceUrl"},sg=function(a){var b=new qg;
b.o=a;return b},ug=function(){this.o="";
this.B=tg;this.A=null},vg=function(a){if(a instanceof ug&&a.constructor===ug&&a.B===tg)return a.o;
ca(a);return"type_error:SafeHtml"},xg=function(a){function b(a){if(da(a))F(a,b);
else{var h;a instanceof ug?h=a:(h=null,a.Cl&&(h=a.zf()),a=Fa(a.Ue?a.Vd():String(a)),h=wg(a,h));d+=vg(h);h=h.zf();0==c?c=h:0!=h&&c!=h&&(c=null)}}
var c=0,d="";F(arguments,b);return wg(d,c)},wg=function(a,b){var c=new ug;
c.o=a;c.A=b;return c},Dg=function(a,b,c){var d=null,e="<"+a;
if(b)for(var h in b){if(!yg.test(h))throw Error('Invalid attribute name "'+h+'".');var k=b[h];if(null!=k){var l,m=a;l=h;if(k instanceof dg)k=eg(k);else if("style"==l.toLowerCase()){if(!ia(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof hg)){var m="",n=void 0;for(n in k){if(!/^[-_a-zA-Z0-9]+$/.test(n))throw Error("Name allows only [-_a-zA-Z0-9], got: "+n);var t=k[n];if(null!=t){if(t instanceof dg)t=eg(t);else if(zg.test(t)){for(var u=
!0,x=!0,B=0;B<t.length;B++){var D=t.charAt(B);"'"==D&&x?u=!u:'"'==D&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";m+=n+":"+t+";"}}k=m?ig(m):Ag}k instanceof hg&&k.constructor===hg&&k.A===gg?k=k.o:(ca(k),k="type_error:SafeStyle")}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+k+'" given.');if(l.toLowerCase()in Bg)if(k instanceof qg)k=rg(k);else if(k instanceof kg)k=lg(k);else if(w(k))k=og(k).Vd();else throw Error('Attribute "'+l+'" on tag "'+m+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+
k+'" given.');}k.Ue&&(k=k.Vd());l=l+'="'+Fa(String(k))+'"';e=e+(" "+l)}}null!=c?da(c)||(c=[c]):c=[];!0===Cg[a.toLowerCase()]?e+=">":(d=xg(c),e+=">"+vg(d)+"</"+a+">",d=d.zf());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return wg(e,d)},Eg=function(a,b,c){var d={},e;
for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var h=e.toLowerCase();if(h in a)throw Error('Cannot override "'+h+'" attribute, got "'+e+'" with value "'+c[e]+'"');h in b&&delete d[h];d[e]=c[e]}return d},Fg=function(a,b){var c;
c=b instanceof kg?b:og(b);a.href=lg(c)},Jg=function(a){return a?new Gg(Hg(a)):Ig||(Ig=new Gg)},Lg=function(a,b){var c=b||window.document;
return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Kg("*",a,b)},Mg=function(a,b){var c=b||window.document,d=null;
c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Kg("*",a,b)[0];return d||null},Kg=function(a,b,c){var d=window.document;
c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,h=0,k;k=c[h];h++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(h=e=0;k=c[h];h++)a=k.className,"function"==typeof a.split&&jb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c},Og=function(a,b){Ob(b,function(b,d){"style"==d?
a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Ng.hasOwnProperty(d)?a.setAttribute(Ng[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})},Pg=function(a){a=a.document;
a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new te(a.clientWidth,a.clientHeight)},Sg=function(a){var b=Qg(a);
a=a.parentWindow||a.defaultView;return Rg&&vc("10")&&a.pageYOffset!=b.scrollTop?new pe(b.scrollLeft,b.scrollTop):new pe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},Qg=function(a){return a.scrollingElement?a.scrollingElement:yc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},Tg=function(a){return a?a.parentWindow||a.defaultView:window},O=function(a,b,c){return Ug(window.document,arguments)},Ug=function(a,b){var c=b[0],d=b[1];
if(!Vg&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Fa(d.name),'"');if(d.type){c.push(' type="',Fa(d.type),'"');var e={};hc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:da(d)?c.className=d.join(" "):Og(c,d));2<b.length&&Wg(a,c,b,2);return c},Wg=function(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var h=c[d];!ea(h)||ia(h)&&0<h.nodeType?e(h):F(Xg(h)?sb(h):h,e)}},Yg=function(a,b){a.appendChild(b)},Zg=function(a,b){Wg(Hg(a),a,arguments,1)},$g=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ah=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},bh=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},ch=function(a,b){var c=b.parentNode;
c&&c.replaceChild(a,b)},eh=function(a){return dh&&void 0!=a.children?a.children:Zd(a.childNodes,function(a){return 1==a.nodeType})},gh=function(a){return p(a.firstElementChild)?a.firstElementChild:fh(a.firstChild)},fh=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;
return a},hh=function(a){return ia(a)&&1==a.nodeType},jh=function(a){var b;
if(ih&&!(Rg&&vc("9")&&!vc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return hh(b)?b:null},kh=function(a,b){if(!a||!b)return!1;
if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Hg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},lh=function(a){try{return a.contentWindow||(a.contentDocument?Tg(a.contentDocument):null)}catch(b){}return null},mh=function(a,b){if("textContent"in a)a.textContent=b;
else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{$g(a);var c=Hg(a);a.appendChild(c.createTextNode(String(b)))}},nh=function(a){if("outerHTML"in a)return a.outerHTML;
var b=Hg(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML},qh=function(a){var b;
if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!oh(a)||ph(a)):oh(a)&&ph(a))&&Rg){var c;!ha(a.getBoundingClientRect)||Rg&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a},oh=function(a){a=a.getAttributeNode("tabindex");
return null!=a&&a.specified},ph=function(a){a=a.tabIndex;
return ga(a)&&0<=a&&32768>a},Xg=function(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;
if(ha(a))return"function"==typeof a.item}return!1},sh=function(a,b,c,d){if(!b&&!c)return null;
var e=b?b.toUpperCase():null;return rh(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&jb(a.className.split(/\s+/),c))},d)},th=function(a,b){return sh(a,null,b,void 0)},rh=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;
a=a.parentNode;d++}return null},Gg=function(a){this.o=a||aa.document||window.document},uh=function(a){a=a.o;
return a.parentWindow||a.defaultView},wh=function(a,b){if(a in b)return b[a];
var c=vh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]},yh=function(a,b){var c;
xh(a,function(a){c=wh(a,b);return!!c});
return c},zh=function(a,b){if("on"+a in b)return a;
var c=vh+a;return"on"+c in b?c:null},Ah=function(){return!!yh(["fullscreenEnabled",
"fullScreenEnabled"],window.document)},Bh=function(){return yh(["fullscreenElement",
"fullScreenElement"],window.document)},Fh=function(a){a=a||{};
this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ec(Ch);this.assets=a.assets||{};this.attrs=a.attrs||ec(Dh);this.params=a.params||ec(Eh);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}},Gh=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
return a?50<=(0,window.parseInt)(a[1],10):!1},Hh=function(a,b){var c=new window.XMLHttpRequest;
c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
c.onerror=function(){b(!1)};
try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}},Nh=function(a){if(a>=Ih.length)Jh();
else{var b=Ih[a],c="chrome-extension://"+b+Kh;0<=Lh.indexOf(b)?Hh(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,Mh(c,Jh)):Nh(a+1)}):Mh(c,function(){Nh(a+1)})}},Mh=function(a,b){var c=window.document.createElement("script");
c.onerror=b;c.src=a;(window.document.head||window.document.documentElement).appendChild(c)},Jh=function(){var a=window.__onGCastApiAvailable;
a&&"function"==typeof a&&a(!1,"No cast extension found")},Oh=function(){if(window.chrome){var a=window.navigator.userAgent;
if(0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation)a=Gh()?"50":"",Mh("//www.gstatic.com/eureka/clank"+a+Kh,Jh);else{if(0<=window.navigator.userAgent.indexOf("CriOS")&&(a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost)){a({command:"cast.sender.init"});return}Nh(0)}}else Jh()},Sh=function(a){Ph();
Qh.push(a);Rh(Qh)},Th=function(a){var b=r("yt.mdx.remote.debug.handlers_");
pb(b||[],a)},Wh=function(a,b){Ph();
var c=Qh,d=Uh(a,String(b));kb(c)?Vh(d):(Rh(c),F(c,function(a){a(d)}))},Ph=function(){Qh||(Qh=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Qh,void 0))},Vh=function(a){var b=(Xh+1)%50;
Xh=b;Yh[b]=a;Zh||(Zh=49==b)},Rh=function(a){var b=Yh;
if(b[0]){var c=Xh,d=Zh?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
Yh=Array(50);Xh=-1;Zh=!1}},Uh=function(a,b){var c=(K()-$h)/1E3;
c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")},ai=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""},bi=function(a,b){return!!b&&(a.id==b||a.uuid==b)},ci=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0},di=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid}},ei=function(a){return new ai(a)},gi=function(a){return da(a)?fi(a,ei):[]},hi=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"},ii=function(a){return da(a)?"["+fi(a,hi).join(",")+"]":"null"},ki=function(a,b,c){a&&(a.dataset?a.dataset[ji(b)]=c:a.setAttribute("data-"+b,c))},ji=function(a){return li[a]||(li[a]=String(a).replace(/\-([a-z])/g,
function(a,c){return c.toUpperCase()}))},oi=function(a){mi(ni,arguments)},pi=function(a,b){return a in ni?ni[a]:b},ri=function(a,b){ha(a)&&(a=qi(a));
return window.setTimeout(a,b)},si=function(a,b){ha(a)&&(a=qi(a));
return window.setInterval(a,b)},ti=function(a){window.clearTimeout(a)},ui=function(a){window.clearInterval(a)},qi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw vi(b),b;
}}:a},vi=function(a,b){var c=r("yt.logging.errors.log");
c?c(a,b,void 0,void 0):(c=pi("ERRORS",[]),c.push([a,b,void 0,void 0]),oi("ERRORS",c))},xi=function(a){mi(wi,arguments)},P=function(a,b,c){var d=b||{};
if(a=a in wi?wi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a},mi=function(a,b){if(1<b.length){var c=b[0];
a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}},Di=function(a,b,c){var d=yi();
if(d){var e=d.subscribe(a,function(){if(!zi||zi!=e){var d=arguments,k=function(){Ai[e]&&b.apply(c||window,d)};
try{Bi[a]?k():ri(k,0)}catch(l){vi(l)}}},c);
Ai[e]=!0;Ci[a]||(Ci[a]=[]);Ci[a].push(e);return e}return 0},Ei=function(a){var b=yi();
b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Ai[a]}))},Fi=function(a,b){var c=yi();
c&&c.publish.apply(c,arguments)},Gi=function(a,b){Bi[a]=!0;
var c=yi();c&&c.publish.apply(c,arguments);Bi[a]=!1},yi=function(){return r("yt.pubsub.instance_")},Hi=function(){},Ii=function(){},Ji=function(a){this.o=a},Ki=function(){var a=null;
try{a=window.localStorage||null}catch(b){}this.o=a},Li=function(){var a=null;
try{a=window.sessionStorage||null}catch(b){}this.o=a},Mi=function(a){this.o=a},Ni=function(a){this.o=a},Oi=function(a){this.data=a},Pi=function(a){return!p(a)||a instanceof Oi?a:new Oi(a)},Qi=function(a){this.o=a},Ri=function(a){var b=a.creation;
a=a.expiration;return!!a&&a<K()||!!b&&b>K()},Si=function(a){this.o=a},Ti=function(a,b){var c=[];
Ge(b,function(a){var b;try{b=Si.prototype.A.call(this,a,!0)}catch(h){if("Storage: Invalid value was encountered"==h)return;throw h;}p(b)?Ri(b)&&c.push(a):c.push(a)},a);
return c},Ui=function(a,b){var c=Ti(a,b);
F(c,function(a){Si.prototype.remove.call(this,a)},a)},Wi=function(){var a=Vi;
Ui(a,a.o.bc(!0))},Yi=function(a,b,c){var d=c&&0<c?c:0;
c=d?K()+1E3*d:0;if((d=d?Vi:Xi)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}},Zi=function(a){if(!Xi&&!Vi||!window.JSON)return null;
var b;try{b=Xi.get(a)}catch(c){}if(!w(b))try{b=Vi.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b},$i=function(a){Xi&&Xi.remove(a);
Vi&&Vi.remove(a)},aj=function(a,b){eg(a);
eg(a);return wg(b,null)},bj=function(a,b){for(var c=a.split(b),d={},e=0,h=c.length;e<h;e++){var k=c[e].split("=");
if(1==k.length&&k[0]||2==k.length){var l=xa(k[0]||""),k=xa(k[1]||"");l in d?da(d[l])?tb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d},cj=function(a,b){var c=[];
Ob(a,function(a,b){var h=wa(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(h):c.push(h+"="+wa(a))})});
return c.join(b)},dj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));
return bj(a,"&")},ej=function(a){a=a.split(",");
return a=a.map(function(a){return dj(a)})},fj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),dj(1<a.length?a[1]:a[0])):{}},hj=function(a,b){return gj(a,b||{},!0)},gj=function(a,b,c){var d=a.split("#",2);
a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=dj(e[1]||""),h;for(h in b)if(c||!Yb(e,h))e[h]=b[h];return ff(a,e)+d},ij=function(a){var b;
b||(b=window.location.href);var c=Ve(a)[1]||null,d=Xe(a);c&&d?(a=Ve(a),b=Ve(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Xe(b)==d&&Ye(b)==Ye(a):!0;return a},jj=function(){var a;
a||(a=window.document.location.href);a=Ve(a)[1]||null;return null!==a&&"https"==a},kj=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;
default:return!1}},nj=function(a,b,c,d,e,h,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&qi(b)(m)}
var m=lj&&lj();if(!("open"in m))return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;c=(c||"GET").toUpperCase();d=d||"";m.open(c,a,!0);h&&(m.responseType=h);k&&(m.withCredentials=!0);h="POST"==c;if(e=mj(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(h=!1);h&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m},mj=function(a,b){b=b||{};
var c=ij(a),d;for(d in oj){var e=pi(oj[d]),h;if((h=e)&&!(h=c)){h=d;var k=pi("CORS_HEADER_WHITELIST")||{},l=Xe(a);h=l?(k=k[l])?jb(k,h):!1:!0}h&&(b[d]=e)}return b},qj=function(a,b){b.method="POST";
b.Gb||(b.Gb={});pj(a,b)},rj=function(a,b){var c=pi("XSRF_FIELD_NAME",void 0),d;
b.headers&&(d=b.headers["Content-Type"]);return!b.lO&&(!Xe(a)||b.withCredentials||Xe(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Gb&&b.Gb[c])},pj=function(a,b){var c=b.format||"JSON";
b.pO&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=pi("XSRF_FIELD_NAME",void 0),e=pi("XSRF_TOKEN",void 0),h=b.Pc;h&&(h[d]&&delete h[d],a=hj(a,h));var k=b.postBody||"",h=b.Gb;rj(a,b)&&(h||(h={}),h[d]=e);h&&w(k)&&(d=dj(k),hc(d,h),k=df(d));var l=!1,m,n=nj(a,function(a){if(!l){l=!0;m&&ti(m);var d=kj(a),e=null;if(d||400<=a.status&&500>a.status)e=sj(c,a,b.Fw);if(d)a:{switch(c){case "XML":d=0==(0,window.parseInt)(e&&
e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},h=b.context||aa;d?b.qb&&b.qb.call(h,a,e):b.onError&&b.onError.call(h,a,e);b.Xb&&b.Xb.call(h,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Hd&&0<b.timeout&&(m=ri(function(){l||(l=!0,n.abort(),ti(m),b.Hd.call(b.context||aa,n))},b.timeout));
return n},sj=function(a,b,c){var d=null;
switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=ce(a));break;case "XML":if(b=(b=b.responseXML)?tj(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=uj(a)})}c&&vj(d);
return d},vj=function(a){if(ia(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=aj(fg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):vj(a[b])},tj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null},uj=function(a){var b="";
F(a.childNodes,function(a){b+=a.nodeValue});
return b},wj=function(a){this.C=this.B="";
this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=Ye(a)||"";b&&(this.C=":"+b);this.B=Xe(a)||"";a=nc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ta(a,"10.0")&&(this.A=!1))},xj=function(a,b,c,d){var e=a.o;
if(p(d)?d:a.A)e="https://"+a.B+a.C+a.o;return ff(e+b,c||{})},yj=function(a,b,c,d,e){a={format:"JSON",
method:"POST",context:a,timeout:5E3,withCredentials:!1,qb:pa(a.F,d,!0),onError:pa(a.D,e),Hd:pa(a.G,e)};c&&(a.Gb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return pj(b,a)},zj=function(a){this.o=this.name=this.id="";
this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.o=a.activityId||"",this.status=a.status||"UNKNOWN")},Aj=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;
return("x"==a?b:b&3|8).toString(16)})},Bj=function(a){return fi(a,function(a){return{key:a.id,
name:a.name}})},Cj=function(a){return fi(a,function(a){return new zj(a)})},Dj=function(a,b){return eb(a,function(a){return a.id==b})},Ej=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})},Fj=function(a,b){return eb(a,function(a){return bi(a,b)})},Gj=function(){G.call(this);
this.Y=new Ae;H(this,this.Y)},Hj=function(a){Gj.call(this);
this.F=a;this.screens=[]},Ij=function(a,b){var c=a.get(b.uuid)||a.get(b.id);
if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0},Jj=function(a,b){var c=a.screens.length!=b.length;
a.screens=Zd(a.screens,function(a){return!!Ej(b,a)});
for(var d=0,e=b.length;d<e;d++)c=Ij(a,b[d])||c;return c},Kj=function(a,b){var c=a.screens.length;
a.screens=Zd(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c},Lj=function(a,b,c,d){Gj.call(this);
this.G=a;this.F=b;this.C=c;this.D=d;this.B=0;this.o=null;this.A=window.NaN},Mj=function(a,b){this.A=a;
this.o=b+"::"},Nj=function(a){var b=new Ki;
return b.isAvailable()?a?new Mj(b,a):b:null},Pj=function(a){this.o=new Ie;
if(a){a=Oe(a);for(var b=a.length,c=0;c<b;c++)Oj(this,a[c])}},Qj=function(a){var b=typeof a;
return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a},Oj=function(a,b){a.o.set(Qj(b),b)},Rj=function(a,b){var c=Ne(b);
if(a.Ya()>c)return!1;!(b instanceof Pj)&&5<c&&(b=new Pj(b));return Se(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.Me&&"function"==typeof c.Me?c.Me(a):ea(c)||w(c)?jb(c,a):Tb(c,a)})},Tj=function(a){this.app=this.name=this.id="";
this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Pj;this.theme="u";a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new Pj(Zd((a.capabilities||"").split(","),pa(Ub,Sj))))},Uj=function(a){this.o=a},Wj=function(a){a=(a.o.cookie||"").split(Vj);
for(var b=[],c=[],d,e,h=0;e=a[h];h++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}},Yj=function(a,b,c){Xj.set(""+a,b,c,"/","youtube.com")},dk=function(){var a=Zj(),b=ak();
jb(a,b);bk()&&Hb(a,b);a=ck(a);if(kb(a))try{a="remote_sid",Xj.remove(""+a,"/","youtube.com")}catch(c){}else try{Yj("remote_sid",a.join(","),-1)}catch(c){}},Zj=function(){var a=Zi("yt-remote-connected-devices")||[];
Cb(a);return a},ck=function(a){if(kb(a))return[];
var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return fi(a,function(a,b){return 0==b?a:a.substring(c.length)})},ek=function(a){Yi("yt-remote-connected-devices",a,86400)},ak=function(){if(fk)return fk;
var a=Zi("yt-remote-device-id");a||(a=Aj(),Yi("yt-remote-device-id",a,31536E3));for(var b=Zj(),c=1,d=a;jb(b,d);)c++,d=a+"#"+c;return fk=d},gk=function(){return Zi("yt-remote-session-browser-channel")},bk=function(){return Zi("yt-remote-session-screen-id")},jk=function(a){5<a.length&&(a=a.slice(a.length-5));
var b=fi(hk(),function(a){return a.loungeToken}),c=fi(a,function(a){return a.loungeToken});
Re(c,function(a){return!jb(b,a)})&&ik();
Yi("yt-remote-local-screens",a,31536E3)},hk=function(){return Zi("yt-remote-local-screens")||[]},ik=function(){Yi("yt-remote-lounge-token-expiration",!0,86400)},kk=function(a){Yi("yt-remote-online-screens",a,60)},lk=function(){return Zi("yt-remote-online-dial-devices")||[]},mk=function(a,b){Yi("yt-remote-session-browser-channel",a);
Yi("yt-remote-session-screen-id",b);var c=Zj(),d=ak();jb(c,d)||c.push(d);ek(c);dk()},nk=function(a){a||($i("yt-remote-session-screen-id"),$i("yt-remote-session-video-id"));
dk();a=Zj();pb(a,ak());ek(a)},pk=function(){if(!ok){var a=Nj();
a&&(ok=new Mi(a))}return ok?!!ok.get("yt-remote-use-staging-server"):!1},rk=function(a){Hj.call(this,"LocalScreenService");
this.A=a;this.o=window.NaN;qk(this);this.info("Initializing with "+ii(this.screens))},sk=function(a){if(a.screens.length){var b=fi(a.screens,function(a){return a.id}),c=xj(a.A,"/pairing/get_lounge_token_batch");
yj(a.A,c,{screen_ids:b.join(",")},y(a.yx,a),y(a.xx,a))}},qk=function(a){var b=gi(hk()),b=Zd(b,function(a){return!a.uuid});
return Jj(a,b)},tk=function(a,b){jk(fi(a.screens,di));
b&&ik()},vk=function(a,b){Gj.call(this);
this.D=b;for(var c=Zi("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),h=0,k=e.length;h<k;++h){var l=e[h].id;d[l]=jb(c,l)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;uk("Initialized with "+ee(this.o))},wk=function(a,b,c){var d=xj(a.F,"/pairing/get_screen_availability");
yj(a.F,d,{lounge_token:b.token},y(function(a){a=a.screens||[];for(var d=0,k=a.length;d<k;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),y(function(){c(!1)},a))},yk=function(a,b){var c;
a:if(Sb(b)!=Sb(a.o))c=!1;else{c=Wb(b);for(var d=0,e=c.length;d<e;++d)if(!a.o[c[d]]){c=!1;break a}c=!0}c||(uk("Updated online screens: "+ee(a.o)),a.o=b,a.S("screenChange"));xk(a)},zk=function(a){(0,window.isNaN)(a.B)||ti(a.B);
a.B=ri(y(a.dm,a),0<a.C&&a.C<K()?2E4:1E4)},uk=function(a){Wh("OnlineScreenService",a)},Ak=function(a){var b={};
F(a.D(),function(a){a.token?b[a.token]=a.id:this.Za("Requesting availability of screen w/o lounge token.")});
return b},xk=function(a){var b=Wb(Pb(a.o,function(a){return a}));
Cb(b);b.length?Yi("yt-remote-online-screen-ids",b.join(","),60):$i("yt-remote-online-screen-ids");a=Zd(a.D(),function(a){return!!this.o[a.id]},a);
kk(fi(a,di))},Ck=function(a){Hj.call(this,"ScreenService");
this.D=a;this.o=this.A=null;this.B=[];this.C={};Bk(this)},Fk=function(a,b,c,d,e,h){a.info("getAutomaticScreenByIds "+c+" / "+b);
c||(c=a.C[b]);var k=a.qc();if(k=(c?Fj(k,c):null)||Fj(k,b)){k.uuid=b;var l=Dk(a,k);wk(a.o,l,function(a){e(a?l:null)})}else c?Ek(a,c,y(function(a){var h=Dk(this,new ai({name:d,
screenId:c,loungeToken:a,dialId:b||""}));wk(this.o,h,function(a){e(a?h:null)})},a),h):e(null)},Gk=function(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];
return null},Ek=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
var e={Gb:{screen_ids:b},method:"POST",context:a,qb:function(a,e){var l=e&&e.screens||[];l[0]&&l[0].screenId==b?c(l[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
pj(xj(a.D,"/pairing/get_lounge_token_batch"),e)},Hk=function(a){a.screens=a.A.qc();
var b=a.C,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+ii(a.screens))},Bk=function(a){Ik(a);
a.A=new rk(a.D);a.A.subscribe("screenChange",y(a.Kx,a));Hk(a);a.B=gi(Zi("yt-remote-automatic-screen-cache")||[]);Ik(a);a.info("Initializing automatic screens: "+ii(a.B));a.o=new vk(a.D,y(a.qc,a,!0));a.o.subscribe("screenChange",y(function(){this.S("onlineScreenChange")},a))},Dk=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=Fj(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),Yi("yt-remote-automatic-screen-cache",fi(a.B,di)));Ik(a);a.C[b.uuid]=b.id;Yi("yt-remote-device-id-map",a.C,31536E3);return b},Ik=function(a){a.C=Zi("yt-remote-device-id-map")||{}},Jk=function(a,b,c){Gj.call(this);
this.M=c;this.J=a;this.A=b;this.B=null},Kk=function(a,b){Wh(a.M,b)},Mk=function(a,b){Jk.call(this,a,b,"CastSession");
this.o=null;this.D=0;this.C=null;this.G=y(this.lE,this);this.F=y(this.UC,this);this.D=ri(y(function(){Lk(this,null)},this),12E4)},Ok=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];
b&&Nk(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null},Nk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+ee(c));
var d={};d.type=b;c&&(d.data=c);a.o?a.o.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,y(function(){Kk(this,"Failed to send message: "+b+".")},a)):Kk(a,"Sending yt message without session: "+ee(d))},Lk=function(a,b){ti(a.D);
if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=y(a.aj,a),d=y(a.kc,a);a.Jo(b,c,d,5)}}else a.kc(Error("Waiting for session status timed out."))},Pk=function(a,b){Jk.call(this,a,b,"DialSession");
this.D=this.H=null;this.K="";this.C=null;this.G=v;this.F=window.NaN;this.L=y(this.oE,this);this.o=v},Qk=function(a){a.o=a.J.Vr(a.K,a.A.label,a.A.friendlyName,y(function(a){this.o=v;
this.aj(a)},a),y(function(a){this.o=v;
this.kc(a)},a))},Rk=function(a){var b={};
b.pairingCode=a.K;if(a.C){var c=a.C.index||0,d=a.C.currentTime||0;b.v=a.C.videoId||a.C.videoIds[c];b.t=d}pk()&&(b.env_useStageMdx=1);return df(b)},Sk=function(a,b){Jk.call(this,a,b,"ManualSession");
this.o=ri(y(this.Sf,this,null),150)},Tk=function(a){Gj.call(this);
this.A=a;this.o=null;this.D=!1;this.B=[];this.C=y(this.RB,this)},Uk=function(a,b){return b?eb(a.B,function(a){return bi(b,a.label)},a):null},Vk=function(a){Wh("Controller",a)},Wk=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)},Xk=function(a){return a.D||!!a.B.length||!!a.o},Yk=function(a,b,c){Mb(a.o);
(a.o=b)?(c?a.S("yt-remote-cast2-receiver-resumed",b.A):a.S("yt-remote-cast2-receiver-selected",b.A),b.subscribe("sessionScreen",y(a.Kq,a,b)),b.B?a.S("yt-remote-cast2-session-change",b.B):c&&a.o.Sf(null)):a.S("yt-remote-cast2-session-change",null)},Zk=function(a){var b=a.A.Ur(),c=a.o&&a.o.A;
a=fi(b,function(a){c&&bi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,h=Uk(this,a);h?(h.label=b,h.friendlyName=a.name):(h=new window.chrome.cast.Receiver(b,a.name),h.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return h},a);
c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a},hl=function(a,b,c){$k()?bl(b)&&(cl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?dl(a,c):(window.__onGCastApiAvailable=function(b,e){b?dl(a,c):(el("Failed to load cast API: "+e),fl(!1),cl(!1),$i("yt-remote-cast-available"),$i("yt-remote-cast-receiver"),gl(),c(!1))},Oh())):al("Cannot initialize because not running Chrome")},
gl=function(){al("dispose");
var a=il();a&&a.dispose();jl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);kl(!1);Ei(ll);ll.length=0},ml=function(){return!!Zi("yt-remote-cast-installed")},nl=function(){var a=Zi("yt-remote-cast-receiver");
return a?Ja(a.friendlyName):null},ol=function(){return ml()?il()?jl.getCastSession():(el("getCastSelector: Cast is not initialized."),null):(el("getCastSelector: Cast API is not installed!"),null)},ql=function(){ml()?il()?pl()?(al("Requesting cast selector."),jl.requestSession()):(al("Wait for cast API to be ready to request the session."),ll.push(Di("yt-remote-cast2-api-ready",ql))):el("requestCastSelector: Cast is not initialized."):el("requestCastSelector: Cast API is not installed!")},rl=function(a){pl()?
il().setLaunchParams(a):el("setLaunchParams called before ready.")},tl=function(){var a=sl();
pl()?il().setConnectedScreenStatus(a,"YouTube TV"):el("setConnectedScreenStatus called before ready.")},$k=function(){var a=0<=nc.search(/\ (CrMo|Chrome|CriOS)\//);
return ul||a},vl=function(a,b){jl.init(a,b)},bl=function(a){var b=!1;
if(!jl){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new Tk(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Yi("yt-remote-cast-available",a);Fi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){al("onReceiverSelected: "+a.friendlyName);
Yi("yt-remote-cast-receiver",a);Fi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){al("onReceiverResumed: "+a.friendlyName);
Yi("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){al("onSessionChange: "+hi(a));
a||$i("yt-remote-cast-receiver");Fi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
jl=c}al("cloudview.createSingleton_: "+b);return b},il=function(){jl||(jl=r("yt.mdx.remote.cloudview.instance_"));
return jl},dl=function(a,b){fl(!0);
cl(!1);vl(a,function(a){a?(kl(!0),Fi("yt-remote-cast2-api-ready")):(el("Failed to initialize cast API."),fl(!1),$i("yt-remote-cast-available"),$i("yt-remote-cast-receiver"),gl());b(a)})},al=function(a){Wh("cloudview",a)},el=function(a){Wh("cloudview",a)},fl=function(a){al("setCastInstalled_ "+a);
Yi("yt-remote-cast-installed",a)},pl=function(){return!!r("yt.mdx.remote.cloudview.apiReady_")},kl=function(a){al("setApiReady_ "+a);
q("yt.mdx.remote.cloudview.apiReady_",a,void 0)},cl=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)},wl=function(a,b){this.action=a;
this.params=b||null},yl=function(a){this.type="";
this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in xl||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==
this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.o=a.pageX;this.A=a.pageY}},zl=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+
window.document.documentElement.scrollTop;
a.o=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.A=a.clientY+b}},Bl=function(a,b,c,d){return Zb(Al,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})},Dl=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";
d=!!d;var e=Bl(a,b,c,d);if(e)return e;var e=++Cl.count+"",h=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=h?function(d){d=new yl(d);if(!rh(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new yl(b);
b.currentTarget=a;return c.call(a,b)};
k=qi(k);Al[e]=[a,b,c,k,d];a.addEventListener?"mouseenter"==b&&h?a.addEventListener("mouseover",k,d):"mouseleave"==b&&h?a.addEventListener("mouseout",k,d):"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style?a.addEventListener("MozMousePixelScroll",k,d):a.addEventListener(b,k,d):a.attachEvent("on"+b,k);return e},Fl=function(a,b,c){var d;
return d=Dl(a,b,function(){El(d);c.apply(a,arguments)},void 0)},Hl=function(a,b){return Gl(a,b,function(a){return Xd(a,"iv-card-poll-choice-input")})},Gl=function(a,b,c){var d=a||window.document;
return Dl(d,"change",function(a){var h=rh(a.target,function(a){return a===d||c(a)});
h&&h!==d&&!h.disabled&&(a.currentTarget=h,b.call(h,a))})},El=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Al){var c=Al[a],d=c[0],e=c[1],h=c[3],c=c[4];
d.removeEventListener?d.removeEventListener(e,h,c):d.detachEvent&&d.detachEvent("on"+e,h);delete Al[a]}}))},Il=function(a){for(var b in Al)Al[b][0]==a&&El(b)},Jl=function(a){a=a||window.event;
a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a},Kl=function(a){a=a||window.event;
return a.path&&a.path.length?a.path[0]:Jl(a)},Ll=function(a){a=a||window.event;
var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b},Ml=function(a){a=a||window.event;
var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new pe(b,c)},Nl=function(a){a=a||window.event;
a.returnValue=!1;a.preventDefault&&a.preventDefault()},Ol=function(a){a=a||window.event;
return!1===a.returnValue||a.Cp&&a.Cp()},Pl=function(a){a=a||window.event;
return a.keyCode?a.keyCode:a.which},Ql=function(a,b){var c=0;
"MozMousePixelScroll"==a.type?c=b==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?c=b?0:a.detail:c=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?(b?a.wheelDeltaX:a.wheelDeltaY)/-30:(b?a.wheelDeltaX:a.wheelDeltaY)/-1.2:b?0:a.wheelDelta/-1.6:(b?a.wheelDeltaX:a.wheelDeltaY)/-3;return c},Rl=function(){if(!("cast"in window))return!1;
var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a},Sl=function(a){Wh("CAST",a)},Ul=function(a){var b=Tl();
b&&b.logMessage&&b.logMessage(a)},Wl=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;Vl.length;)Vl.shift()()},am=function(){if(!r("yt.mdx.remote.castv2_")&&!Xl&&(kb(Yl)&&tb(Yl,lk()),Rl())){var a=Tl();
a?(a.removeReceiverListener("YouTube",Zl),a.addReceiverListener("YouTube",Zl),Sl("API initialized in the other binary")):(a=new window.cast.Api,$l(a),a.addReceiverListener("YouTube",Zl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){ri(function(){window.location.reload(!0)},1E3)}),Sh(Ul),Sl("API initialized"));
Xl=!0}},bm=function(){var a=Tl();
a&&(Sl("API disposed"),Th(Ul),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",Zl),$l(null));Xl=!1;Vl=null;(a=Bl(window,"message",Wl,!1))&&El(a)},cm=function(a){var b=db(Yl,function(b){return b.id==a.id});
0<=b&&(Yl[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})},Zl=function(a){a.length&&Sl("Updating receivers: "+ee(a));
dm(a);Fi("yt-remote-cast-device-list-update");F(em(),function(a){fm(a.id)});
F(a,function(a){if(a.isTabProjected){var c=gm(a.id);Sl("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");ri(function(){Fi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})},hm=function(a,b){Sl("Updating "+a+" activity status: "+ee(b));
var c=gm(a);c?(b.activityId&&(c.o=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.o=""),cm(c),Fi("yt-remote-cast-device-status-update",c)):Sl("Device not found")},em=function(){am();
return Cj(Yl)},dm=function(a){a=fi(a,function(a){var c={id:a.id,
name:Ja(a.name)};if(a=gm(a.id))c.activityId=a.o,c.status=a.status;return c});
lb(Yl);tb(Yl,a)},gm=function(a){var b=em();
return eb(b,function(b){return b.id==a})||null},fm=function(a){var b=gm(a),c=Tl();
c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");hm(a,b)})},im=function(a){am();
var b=gm(a),c=Tl();c&&b&&b.o?(Sl("Stopping cast activity"),c.stopActivity(b.o,pa(hm,a))):Sl("Dropping cast activity stop")},Tl=function(){return r("yt.mdx.remote.castapi.api_")},$l=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)},jm=function(){},km=function(){this.o=K()},lm=function(a,b){this.A=new de(a);
this.o=b?ce:be},mm=function(a){this.A=0;
this.B=a||100;this.o=[]},nm=function(a,b){if(b>=a.o.length)throw Error("Out of bounds exception");
return a.o.length<a.B?b:(a.A+Number(b))%a.B},qm=function(a,b,c){G.call(this);
this.C=null!=c?y(a,c):a;this.B=b;this.A=y(this.pC,this);this.o=[]},rm=function(a){a.Qe=Rd(a.A,a.B);
a.C.apply(null,a.o)},sm=function(a){G.call(this);
this.C=a;this.A={}},um=function(a,b,c,d,e){tm(a,b,c,d,!1,e)},tm=function(a,b,c,d,e,h){da(c)||(c&&(vm[0]=c.toString()),c=vm);
for(var k=0;k<c.length;k++){var l=Nc(b,c[k],d||a.handleEvent,e||!1,h||a.C||a);if(!l)break;a.A[l.key]=l}return a},xm=function(a,b,c,d){wm(a,b,c,d,void 0)},ym=function(a,b,c,d,e){wm(a,b,c,d,!1,e)},wm=function(a,b,c,d,e,h){if(da(c))for(var k=0;k<c.length;k++)wm(a,b,c[k],d,e,h);
else(b=Xc(b,c,d||a.handleEvent,e,h||a.C||a))&&(a.A[b.key]=b)},zm=function(a){switch(a){case 0:return"No Error";
case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}},Am=function(){},Cm=function(a){var b;
(b=a.o)||(b={},Bm(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b},Dm=function(){},Em=function(a){return(a=Bm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest},Bm=function(a){if(!a.A&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0",
"MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.A=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.A},Fm=function(a,b,c,d,e){this.o=a;
this.B=c;this.H=d;this.G=e||1;this.D=45E3;this.C=new sm(this);this.A=new Pd;Qd(this.A,250)},Hm=function(a,b,c){a.Ef=1;
a.Wd=Af(b.clone());a.We=c;a.F=!0;Gm(a,null)},Im=function(a,b,c,d,e){a.Ef=1;
a.Wd=Af(b.clone());a.We=null;a.F=c;e&&(a.lr=!1);Gm(a,d)},Gm=function(a,b){a.fh=K();
Jm(a);a.he=a.Wd.clone();zf(a.he,"t",a.G);a.qh=0;a.zb=a.o.Ck(a.o.kh()?b:null);0<a.$k&&(a.ej=new qm(y(a.Mr,a,a.zb),a.$k));a.C.R(a.zb,"readystatechange",a.gD);var c=a.Re?ec(a.Re):{};a.We?(a.xj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.zb.send(a.he,a.xj,a.We,c)):(a.xj="GET",a.lr&&!yc&&(c.Connection="close"),a.zb.send(a.he,a.xj,null,c));a.o.Kc(1)},Rm=function(a,b,c){for(var d=!0;!a.Ie&&a.qh<c.length;){var e=Km(a,c);
if(e==Lm){4==b&&(a.Se=4,Mm(),d=!1);break}else if(e==Nm){a.Se=4;Mm();d=!1;break}else Om(a,e)}4==b&&0==c.length&&(a.Se=1,Mm(),d=!1);a.Nc=a.Nc&&d;d||(Pm(a),Qm(a))},Km=function(a,b){var c=a.qh,d=b.indexOf("\n",c);
if(-1==d)return Lm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Nm;d+=1;if(d+c>b.length)return Lm;var e=b.substr(d,c);a.qh=d+c;return e},Um=function(a,b){a.fh=K();
Jm(a);var c=b?window.location.hostname:"";a.he=a.Wd.clone();xf(a.he,"DOMAIN",c);xf(a.he,"t",a.G);try{a.Oc=new window.ActiveXObject("htmlfile")}catch(n){Pm(a);a.Se=7;Mm();Qm(a);return}var d="<html><body>";if(b){for(var e="",h=0;h<c.length;h++){var k=c.charAt(h);if("<"==k)e=e+"\\x3c";else if(">"==k)e=e+"\\x3e";else{if(k in Sm)k=Sm[k];else if(k in Tm)k=Sm[k]=Tm[k];else{var l=k,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u",4096>m&&(l+="0");l+=m.toString(16).toUpperCase()}k=
Sm[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=aj(fg("b/12014412"),d);a.Oc.open();a.Oc.write(vg(c));a.Oc.close();a.Oc.parentWindow.m=y(a.yC,a);a.Oc.parentWindow.d=y(a.Qq,a,!0);a.Oc.parentWindow.rpcClose=y(a.Qq,a,!1);c=a.Oc.createElement("DIV");a.Oc.parentWindow.document.body.appendChild(c);d=og(a.he.toString());d=Fa(lg(d));d=aj(fg("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=vg(d);a.o.Kc(1)},Jm=function(a){a.Om=K()+a.D;
Vm(a,a.D)},Vm=function(a,b){if(null!=a.kg)throw Error("WatchDog timer not null");
a.kg=Wm(y(a.NC,a),b)},Xm=function(a){a.kg&&(aa.clearTimeout(a.kg),a.kg=null)},Qm=function(a){a.o.Qo()||a.Ie||a.o.$i(a)},Pm=function(a){Xm(a);
Mb(a.ej);a.ej=null;a.A.stop();a.C.removeAll();if(a.zb){var b=a.zb;a.zb=null;Ym(b);b.dispose()}a.Oc&&(a.Oc=null)},Om=function(a,b){try{a.o.Eq(a,b),a.o.Kc(4)}catch(c){}},$m=function(a,b,c,d,e){if(0==d)c(!1);
else{var h=e||0;d--;Zm(a,b,function(e){e?c(!0):aa.setTimeout(function(){$m(a,b,c,d,h)},h)})}},Zm=function(a,b,c){var d=new window.Image;
d.onload=function(){try{an(d),c(!0)}catch(a){}};
d.onerror=function(){try{an(d),c(!1)}catch(a){}};
d.onabort=function(){try{an(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{an(d),c(!1)}catch(a){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a},an=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},bn=function(a){this.o=a;
this.A=new lm(null,!0)},dn=function(a){var b=cn(a.o,a.Cg,"/mail/images/cleardot.gif");
Af(b);$m(b.toString(),5E3,y(a.uw,a),3,2E3);a.Kc(1)},fn=function(a){var b=a.o.J;
if(null!=b)Mm(),b?(Mm(),en(a.o,a,!1)):(Mm(),en(a.o,a,!0));else if(a.nc=new Fm(a,0,void 0,void 0,void 0),a.nc.Re=a.Xk,b=a.o,b=cn(b,b.kh()?a.Pg:null,a.Zk),Mm(),!Rg||xc(10))zf(b,"TYPE","xmlhttp"),Im(a.nc,b,!1,a.Pg,!1);else{zf(b,"TYPE","html");var c=a.nc;a=!!a.Pg;c.Ef=3;c.Wd=Af(b.clone());Um(c,a)}},gn=function(a){J.call(this);
this.headers=new Ie;this.M=a||null;this.B=!1;this.L=this.o=null;this.W=this.H="";this.A=0;this.F="";this.C=this.U=this.G=this.O=!1;this.D=0;this.J=null;this.Z="";this.K=this.Y=!1},hn=function(a,b){a.D=Math.max(0,b)},jn=function(a){return Rg&&vc(9)&&ga(a.timeout)&&p(a.ontimeout)},kn=function(a){return"content-type"==a.toLowerCase()},nn=function(a,b){a.B=!1;
a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;ln(a);mn(a)},ln=function(a){a.O||(a.O=!0,a.$("complete"),a.$("error"))},Ym=function(a,b){a.o&&a.B&&(on(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.$("complete"),a.$("abort"),mn(a))},sn=function(a){if(a.B&&"undefined"!=typeof pn)if(a.L[1]&&4==qn(a)&&2==a.getStatus())on(a,"Local request error detected and ignored");
else if(a.G&&4==qn(a))Rd(a.Aq,0,a);else if(a.$("readystatechange"),4==qn(a)){on(a,"Request complete");a.B=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var h=Ve(String(a.H))[1]||null;if(!h&&aa.self&&aa.self.location)var k=aa.self.location.protocol,h=k.substr(0,k.length-1);e=!rn.test(h?h.toLowerCase():"")}d=e}if(d)a.$("complete"),a.$("success");else{a.A=6;var l;try{l=2<qn(a)?a.o.statusText:
""}catch(m){l=""}a.F=l+" ["+a.getStatus()+"]";ln(a)}}finally{mn(a)}}},mn=function(a,b){if(a.o){tn(a);
var c=a.o,d=a.L[0]?v:null;a.o=null;a.L=null;b||a.$("ready");try{c.onreadystatechange=d}catch(e){}}},tn=function(a){a.o&&a.K&&(a.o.ontimeout=null);
ga(a.J)&&(Td(a.J),a.J=null)},qn=function(a){return a.o?a.o.readyState:0},un=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}},on=function(a,b){return b+" ["+a.W+" "+a.H+" "+a.getStatus()+"]"},vn=function(a,b,c){this.G=a||null;
this.o=1;this.A=[];this.C=[];this.D=new lm(null,!0);this.H=b||null;this.J=null!=c?c:null},wn=function(a,b){this.o=a;
this.map=b;this.context=null},xn=function(a){jc.call(this,"statevent",a)},yn=function(a,b){jc.call(this,"timingevent",a);
this.size=b},zn=function(a){jc.call(this,"serverreachability",a)},Dn=function(a){An(a);
if(3==a.o){var b=a.Wg++,c=a.wi.clone();xf(c,"SID",a.B);xf(c,"RID",b);xf(c,"TYPE","terminate");Bn(a,c);b=new Fm(a,0,a.B,b,void 0);b.Ef=2;b.Wd=Af(c.clone());(new window.Image).src=b.Wd;b.fh=K();Jm(b)}Cn(a)},An=function(a){if(a.Pd){var b=a.Pd;
b.nc&&(b.nc.cancel(),b.nc=null);b.zd=-1;a.Pd=null}a.ub&&(a.ub.cancel(),a.ub=null);a.wd&&(aa.clearTimeout(a.wd),a.wd=null);En(a);a.Vb&&(a.Vb.cancel(),a.Vb=null);a.Rd&&(aa.clearTimeout(a.Rd),a.Rd=null)},Gn=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");
a.A.push(new wn(a.Dz++,b));2!=a.o&&3!=a.o||Fn(a)},Fn=function(a){a.Vb||a.Rd||(a.Rd=Wm(y(a.Nq,a),0),a.Jg=0)},Jn=function(a,b){if(1==a.o){if(!b){a.Wg=Math.floor(1E5*Math.random());
var c=a.Wg++,d=new Fm(a,0,"",c,void 0);d.Re=null;var e=Hn(a),h=a.wi.clone();xf(h,"RID",c);a.G&&xf(h,"CVER",a.G);Bn(a,h);Hm(d,h,e);a.Vb=d;a.o=2}}else 3==a.o&&(b?In(a,b):0!=a.A.length&&(a.Vb||In(a)))},In=function(a,b){var c,d;
b?6<a.Ke?(a.A=a.C.concat(a.A),a.C.length=0,c=a.Wg-1,d=Hn(a)):(c=b.H,d=b.We):(c=a.Wg++,d=Hn(a));var e=a.wi.clone();xf(e,"SID",a.B);xf(e,"RID",c);xf(e,"AID",a.Rf);Bn(a,e);c=new Fm(a,0,a.B,c,a.Jg+1);c.Re=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Vb=c;Hm(c,e,d)},Bn=function(a,b){if(a.Mb){var c=a.Mb.Go(a);
c&&Ob(c,function(a,c){xf(b,c,a)})}},Hn=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;
6<a.Ke&&0<b?(d=a.A[0].o,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var h=a.A[e].o,k=a.A[e].map,h=6>=a.Ke?e:h-d;try{Qe(k,function(a,b){c.push("req"+h+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+h+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b));
return c.join("&")},Kn=function(a){a.ub||a.wd||(a.F=1,a.wd=Wm(y(a.Mq,a),0),a.rf=0)},Mn=function(a){if(a.ub||a.wd||3<=a.rf)return!1;
a.F++;a.wd=Wm(y(a.Mq,a),Ln(a,a.rf));a.rf++;return!0},en=function(a,b,c){a.wj=c;
a.Gc=b.zd;a.Rw(1,0);a.wi=cn(a,null,a.Wk);Fn(a)},En=function(a){null!=a.Ne&&(aa.clearTimeout(a.Ne),a.Ne=null)},Ln=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
a.isActive()||(c*=2);return c*b},On=function(a,b){if(2==b||9==b){var c=null;
a.Mb&&(c=null);var d=y(a.GD,a);c||(c=new N("//www.google.com/images/cleardot.gif"),Af(c));Zm(c.toString(),1E4,d)}else Mm();Nn(a,b)},Nn=function(a,b){a.o=0;
a.Mb&&a.Mb.mo(a,b);Cn(a);An(a)},Cn=function(a){a.o=0;
a.Gc=-1;if(a.Mb)if(0==a.C.length&&0==a.A.length)a.Mb.tk(a);else{var b=sb(a.C),c=sb(a.A);a.C.length=0;a.A.length=0;a.Mb.tk(a,b,c)}},cn=function(a,b,c){var d=Bf(c);
if(""!=d.A)b&&of(d,b+"."+d.A),pf(d,d.D);else var e=window.location,d=Cf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ig&&Ob(a.Ig,function(a,b){xf(d,b,a)});
xf(d,"VER",a.Ke);Bn(a,d);return d},Wm=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");
return aa.setTimeout(function(){a()},b)},Mm=function(){Pn.$(new xn(Pn))},Qn=function(){},Rn=function(a,b){Pd.call(this);
this.D=0;if(ha(a))b&&(a=y(a,b));else if(a&&ha(a.handleEvent))a=y(a.handleEvent,a);else throw Error("Invalid listener argument");this.G=a;Nc(this,"tick",y(this.F,this));this.stop();Qd(this,5E3+2E4*Math.random())},Sn=function(a,b){this.L=a;
this.C=b;this.B=new Ae;this.A=new Rn(this.fE,this);this.o=null;this.K=!1;this.F=null;this.J="";this.H=this.D=0;this.G=[]},Tn=function(a){return{firstTestResults:[""],
secondTestResults:!a.o.wj,sessionId:a.o.B,arrayId:a.o.Rf}},Un=function(a,b){a.H=b||0;
a.A.stop();a.o&&(3==a.o.o&&Jn(a.o),Dn(a.o));a.H=0},Vn=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()},Wn=function(){this.o=[];
this.A=[]},Xn=function(a){kb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])},Yn=function(a,b){a.A.push(b)},Zn=function(a){Xn(a);
return a.o.pop()},$n=function(a){Xn(a);
return cb(a.o)},ao=function(a){this.videoIds=null;
this.index=-1;this.videoId=this.A="";this.volume=this.o=-1;this.muted=!1;this.audioTrackId=null;this.D=this.C=0;this.B=null;this.reset(a)},bo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");
},co=function(a){a.audioTrackId=null;
a.B=null;a.o=-1;a.C=0;a.D=K()},eo=function(a){a.index=-1;
a.videoId="";co(a)},fo=function(a){return a.A?a.videoId:a.videoIds[a.index]},go=function(a,b){a.C=b;
a.D=K()},ho=function(a){switch(a.o){case 1:return(K()-a.D)/1E3+a.C;
case -1E3:return 0}return a.C},io=function(a,b,c){var d=a.videoId;
a.videoId=b;a.index=c;b!=d&&co(a)},jo=function(a,b,c){bo(a,"setPlaylist");
c=c||fo(a);Gb(a.videoIds,b)&&c==fo(a)||(a.videoIds=sb(b),a.setVideoId(c))},ko=function(a){var b={};
b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.A;b.videoId=a.videoId;b.playerState=a.o;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=fc(a.B);b.playerTime=a.C;b.playerTimeAt=a.D;return b},no=function(a,b){Gj.call(this);
this.A=0;this.C=a;this.G=[];this.F=new Wn;this.D=window.NaN;this.B=this.o=null;this.K=y(this.dA,this);this.H=y(this.Xg,this);this.J=y(this.cA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Vm,this),lo(this))):c=3;0!=c&&(b?this.Vm(c):ri(y(function(){this.Vm(c)},this),0));
mo(this,ol())},oo=function(a){return new ao(a.C.getPlayerContextData())},ro=function(a,b,c,d,e){var h=oo(a);
d=d||0;var k={videoId:b,currentIndex:d,listId:e||h.A};io(h,b,d);p(c)&&(go(h,c),k.currentTime=c);po(a,"setPlaylist",k);e||qo(a,h)},lo=function(a){F(["remotePlayerChange",
"remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,pa(this.JB,a),this))},a)},so=function(a){F(a.G,function(a){this.C.unsubscribeByKey(a)},a);
a.G.length=0},to=function(a,b){50>a.F.Ya()&&Yn(a.F,b)},uo=function(a,b,c){var d=oo(a);
go(d,c);-1E3!=d.o&&(d.o=b);qo(a,d)},po=function(a,b,c){a.C.sendMessage(b,c)},qo=function(a,b){so(a);
a.C.setPlayerContextData(ko(b));lo(a)},vo=function(a){ti(a.D);
a.D=ri(y(function(){this.S("remotePlayerChange");this.D=window.NaN},a),2E3)},mo=function(a,b){a.B&&(a.B.removeUpdateListener(a.K),a.B.removeMediaListener(a.H),a.Xg(null));
a.B=b;a.B&&(wo("Setting cast session: "+a.B.sessionId),a.B.addUpdateListener(a.K),a.B.addMediaListener(a.H),a.B.media.length&&a.Xg(a.B.media[0]))},xo=function(a){var b=a.o.customData;
if(a.o.media){var c=a.o.media,d=oo(a);c.contentId!=d.videoId&&wo("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.o=b.playerState;go(d,a.o.getEstimatedTime());qo(a,d)}else wo("No cast media video. Ignoring state update.")},wo=function(a){Wh("CP",a)},zo=function(a,b,c){Gj.call(this);
this.D=window.NaN;this.M=!1;this.H=this.G=this.L=this.J=window.NaN;this.P=[];this.B=this.va=this.o=null;this.da=a;this.P.push(Dl(window,"beforeunload",y(this.ox,this)));this.A=[];this.va=new ao;3==c["mdx-version"]&&(this.va.A="RQ"+b.token);this.O=b.id;this.o=yo(this,c);this.o.subscribe("handlerOpened",this.iA,this);this.o.subscribe("handlerClosed",this.eA,this);this.o.subscribe("handlerError",this.fA,this);this.va.A?this.o.subscribe("handlerMessage",this.gA,this):this.o.subscribe("handlerMessage",
this.hA,this);Vn(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.va.videoId;bk()&&Yi("yt-remote-session-video-id",a)},this)},yo=function(a,b){return new Sn(xj(a.da,"/bc",void 0,!1),b)},Ao=function(a,b){a.S("proxyStateChange",b)},Bo=function(a){a.D=ri(y(function(){this.cb("Connecting timeout");
this.C(1)},a),2E4)},Co=function(a){ti(a.D);
a.D=window.NaN},Do=function(a){ti(a.J);
a.J=window.NaN},Go=function(a){Eo(a);
a.L=ri(y(function(){Fo(this,"getNowPlaying")},a),2E4)},Eo=function(a){ti(a.L);
a.L=window.NaN},Ho=function(a){var b=a.o;
return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)},Jo=function(a,b){b&&(Co(a),Do(a));
b==Ho(a)?b&&(Ao(a,1),Fo(a,"getSubtitlesTrack")):b?(a.K()&&a.va.reset(),Ao(a,1),Fo(a,"getNowPlaying"),Io(a)):a.C(1)},Ko=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.va.videoId&&(ac(b.params)?a.va.B=null:a.va.B=b.params,a.S("remotePlayerChange"))},Lo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);
a.va.A=b.params.listId||a.va.A;io(a.va,c,d);a.S("remoteQueueChange")},No=function(a,b){b.params=b.params||{};
Lo(a,b);Mo(a,b)},Mo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);
go(a.va,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.va.o&&(c=-1E3);a.va.o=c;1==a.va.o?Go(a):Eo(a);a.S("remotePlayerChange")},Oo=function(a,b){var c="true"==b.params.muted;
a.va.volume=(0,window.parseInt)(b.params.volume,10);a.va.muted=c;a.S("remotePlayerChange")},Po=function(a,b){switch(b.action){case "loungeStatus":var c=be(b.params.devices);
a.A=fi(c,function(a){return new Tj(a)});
break;case "loungeScreenDisconnected":qb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
break;case "remoteConnected":var d=new Tj(be(b.params.device));eb(a.A,function(a){return a.equals(d)})||nb(a.A,d);
break;case "remoteDisconnected":d=new Tj(be(b.params.device)),qb(a.A,function(a){return a.equals(d)})}},Qo=function(a,b){var c=!1;
if("loungeStatus"==b.action)c=!!eb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!(0,window.isNaN)(a.J))if(c)Do(a);else return;c==Ho(a)?c&&Ao(a,1):c?(Co(a),a.K()&&a.va.reset(),Ao(a,1),Fo(a,"getNowPlaying"),Io(a)):a.C(1)},Io=function(a){ti(a.H);
a.H=ri(y(a.C,a,1),864E5)},Fo=function(a,b,c){c?a.cb("Sending: action="+b+", params="+ee(c)):a.cb("Sending: action="+b);
a.o.sendMessage(b,c)},So=function(a,b){var c=Ro(a);
return Zd(b,function(a){return a.uuid?(a=Dj(this.B,a.uuid),!!a&&"RUNNING"==a.status):!!Ej(c,a)},a)},Vo=function(a,b,c){var d=To,e="";
ti(d.A);d.A=window.NaN;d.C="";if(Dj(d.B,a)){if(!e){var h=e=Aj();am();var k=gm(a),l=Tl();if(l&&k){var m=new window.cast.Receiver(k.id,k.name),m=new window.cast.LaunchRequest("YouTube",m);m.parameters="pairingCode="+h;m.description=new window.cast.LaunchDescription;m.description.text=window.document.title;b&&(m.parameters+="&v="+b,c&&(m.parameters+="&t="+Math.round(c)),m.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN",cm(k),Fi("yt-remote-cast-device-status-update",
k));Sl("Sending a cast launch request with params: "+m.parameters);l.launch(m,pa(hm,a))}else Sl("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=ri(y(d.J,d,a,0,e),Uo[0])}else d.cb("No DIAL device with id: "+a)},Wo=function(a,b){var c=Fj(Ro(a),b);
a.cb("Found screen: "+hi(c)+" with key: "+b);return c},Xo=function(a){var b=To,c=Fj(b.o,a);
b.cb("Found online screen: "+hi(c)+" with key: "+a);return c},Yo=function(a){var b=To,c=Dj(b.B,a);
if(!c){var d=Fj(b.F,a);d&&(c=Dj(b.B,d.uuid))}b.cb("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c},Ro=function(a){return rb(a.D,Zd(a.F,function(a){return!Ej(this.D,a)},a))},Zo=function(a){Hj.call(this,"ScreenServiceProxy");
this.Rb=a;this.o=[];this.o.push(this.Rb.$_s("screenChange",y(this.jE,this)));this.o.push(this.Rb.$_s("onlineScreenChange",y(this.xB,this)))},dp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);
Vi&&Wi();dk();$o||($o=new wj,pk()&&($o.o="/api/loungedev"));ap||(ap=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",ap,void 0));bp();var b=cp();if(!b){var c=new Ck($o);q("yt.mdx.remote.screenService_",c,void 0);b=cp();hl(a,c,function(a){a?sl()&&tl():c.subscribe("onlineScreenChange",function(){Fi("yt-remote-receiver-availability-change")})})}},gp=function(){Ei(ep);
ep.length=0;Mb(fp);fp=null;ap&&(F(ap,function(a){a(null)}),ap.length=0,ap=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
To&&(Mb(To),To=null);$o=null;bm()},mp=function(){if(hp()&&ml()){var a=[];
if(Zi("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||ip())a.push({key:"cast-selector-receiver",name:kp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return r("yt.mdx.remote.cloudview.initializing_")?[]:lp()},lp=function(){var a=[],a=np()?cp().Rb.$_gos():gi(Zi("yt-remote-online-screens")||[]),b=op();
b&&ip()&&(Ej(a,b)||a.push(b));np()||(b=Cj(lk()),b=Zd(b,function(b){return!Fj(a,b.id)}),a=rb(a,b));
return Bj(a)},qp=function(){if(hp()&&ml()){var a=nl();
return a?{key:"cast-selector-receiver",name:a}:null}return pp()},pp=function(){var a=lp(),b=rp(),c=op();
c||(c=sp());return eb(a,function(a){return c&&bi(c,a.key)||b&&(a=Yo(a.key))&&a.id==b?!0:!1})},kp=function(){if(hp()&&ml())return nl();
var a=op();return a?a.name:null},op=function(){var a=sl();
if(!a)return null;if(!To){var b=cp().qc();return Fj(b,a)}return Wo(To,a)},zp=function(a,b){tp("Connecting to: "+ee(a));
if("cast-selector-receiver"==a.key)up(b||null),rl(b||null);else{vp();up(b||null);var c=null;To?c=Xo(a.key):(c=cp().qc(),c=Fj(c,a.key));if(c)wp(c);else{if(To&&(c=Yo(a.key))){xp(c);return}ri(function(){yp(null)},0)}}},vp=function(){if(To){var a=To;
ti(a.A);a.A=window.NaN;a.C=""}a:{if(a=ip())if(a=a.getOtherConnectedRemoteId()){tp("Do not stop DIAL due to "+a);Ap("");break a}(a=rp())?(tp("Stopping DIAL: "+a),im(a),Ap("")):(a=op())&&a.uuid&&(tp("Stopping DIAL: "+a.uuid),im(a.uuid))}pl()?il().stopSession():el("stopSession called before API ready.");(a=ip())?a.disconnect(1):(Gi("yt-remote-before-disconnect",1),Gi("yt-remote-connection-change",!1));yp(null)},Dp=function(){var a=Bp(),a=a?a.currentTime:0,b=Cp();
0==a&&b&&(a=ho(oo(b)));return a},Cp=function(){var a=ip();
return a&&3!=a.getProxyState()?new no(a,void 0):null},tp=function(a){Wh("remote",a)},hp=function(){return!!r("yt.mdx.remote.castv2_")},np=function(){return r("yt.mdx.remote.screenService_")},cp=function(){if(!fp){var a=np();
fp=a?new Zo(a):null}return fp},sl=function(){return r("yt.mdx.remote.currentScreenId_")},Ep=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);
if(To){var b=To;b.H=K()+3E5;if(b.G=a){var c=Wo(b,a);if(c&&!Ej(b.o,c)){a=sb(b.o);a.push(c);var c=So(b,a),d=!Gb(b.o,c,ci);kb(a)||kk(fi(c,di));d&&(b.cb("Updating online screens: "+ii(b.o)+" -> "+ii(c)),b.o=c,b.S("onlineReceiverChange"))}}}},rp=function(){return r("yt.mdx.remote.currentDialId_")},Ap=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)},Bp=function(){return r("yt.mdx.remote.connectData_")},up=function(a){q("yt.mdx.remote.connectData_",a,void 0)},ip=function(){return r("yt.mdx.remote.connection_")},
yp=function(a){var b=ip();
up(null);a?ip():(Ep(""),Ap(""));q("yt.mdx.remote.connection_",a,void 0);ap&&(F(ap,function(b){b(a)}),ap.length=0);
b&&!a?Gi("yt-remote-connection-change",!1):!b&&a&&Fi("yt-remote-connection-change",!0)},sp=function(){var a=bk();
if(!a)return null;if(np()){var b=cp().qc();return Fj(b,a)}return To?Wo(To,a):null},wp=function(a){sl();
Ep(a.id);a=new zo($o,a,Fp());a.connect(1,Bp());a.subscribe("beforeDisconnect",function(a){Gi("yt-remote-before-disconnect",a)});
a.subscribe("beforeDispose",function(){ip()&&(ip(),yp(null))});
yp(a)},xp=function(a){rp();
tp("Connecting to: "+(a?a.toString():"null"));Ap(a.id);var b=Bp();b?Vo(a.id,b.videoIds[b.index],b.currentTime):Vo(a.id)},bp=function(){var a=Fp();
if(ac(a)){var a=ak(),b=Zi("yt-remote-session-name")||"",c=Zi("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};q("yt.mdx.remote.channelParams_",a,void 0)}},Fp=function(){return r("yt.mdx.remote.channelParams_")||{}},Hp=function(a){return(a=Gp.exec(a))?a[0]:""},Kp=function(a){var b=Ip.test(a),c;
c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Jp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&vi(a,"WARNING"));return b||c},Lp=function(a){a=new N(a);
nf(a,window.document.location.protocol);of(a,window.document.location.hostname);window.document.location.port&&pf(a,window.document.location.port);return a.toString()},Mp=function(a){a=new N(a);
nf(a,window.document.location.protocol);return a.toString()},Op=function(){return Np("android")&&Np("chrome")&&!(Np("trident/")||Np("edge/"))},Pp=function(){return Np("cobalt")},Qp=function(){return Np("(ps3; leanback shell)")||Np("ps3")&&Pp()},Rp=function(){return Np("(ps4; leanback shell)")||Np("ps4")&&Pp()},Sp=function(){var a=/WebKit\/([0-9]+)/.exec(nc);
return!!(a&&600<=a[1])},Tp=function(){return ul&&Np("crkey")},Up=function(){return Np("nintendo wiiu")},Vp=function(){return Np("iemobile")||Np("windows phone")&&Np("edge")},Np=function(a){var b=nc;
return b?0<=b.toLowerCase().indexOf(a):!1},Xp=function(a,b,c){a&&(c&&!Pp()?a&&(a=O("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',
style:"display:none"}),Hg(a).body.appendChild(a)):Wp(a,b))},Yp=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||Xp(a,void 0)}catch(b){Xp(a,void 0)}},bq=function(a){return C(E(a))?!1:Zp.test(a)||aq.test(a)},Wp=function(a,b){var c=new window.Image,d=""+cq++;
dq[d]=c;c.onload=c.onerror=function(){b&&dq[d]&&b();delete dq[d]};
c.src=a},fq=function(a,b){this.start=a;
this.end=b;this.D=eq++},gq=function(a,b,c){fq.call(this,a,b);
a=c||{};this.J=a.id||"";this.G=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.o=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.A=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start},hq=function(a){return a.A||(a.A=new Ae)},iq=function(a,b){return a.start-b.start||a.G-b.G||a.D-b.D},jq=function(a,b){Gj.call(this);
this.logEvent=this.ra="";this.Ea=b||"";this.da=this.loaded=this.H=!1;this.M=this.F=null;this.o=a;if(this.Ea){var c=Nj("yt-html5-player-modules::"+this.Ea);c&&(this.M=new Mi(c))}},mq=function(a){var b=a.o,c=b.app;
a=a.ra;var b=b.playerType,d=kq(c,b);if(d){for(var d=d.F,e=[],h=d.o.o,k=h.length-1;0<=k;k--){var l=h[k];if(l.o==a){var m=d.A.indexOf(l);0<=m&&d.A.splice(m,1);var n=d.o,m=n.o,n=Ab(m,l,n.A);0<=n&&ob(m,n);e.push(l)}}d.Ld();b&&c.getPresentingPlayerType()!=b||lq(c,"cuerangesremoved",e)}},nq=function(a){a.o.lj(a.ra)},oq=function(a,b,c){var d={},e;
for(e in b)d[a.ra+"_"+e]=b[e];b={};for(var h in c)b[a.ra+"_"+h]=c[h];a=a.o.app.D;qa(a.C,d||null);qa(a.B,b||null)},pq=function(a,b){if(!a.M)return null;
var c;try{c=a.M.get(b)}catch(d){a.M&&a.M.remove(b)}return c},qq=function(a,b,c){if(a.M)try{a.M.set(b,c)}catch(d){}},rq=function(a){a.S("command_stop_redirect_controls")},sq=function(a){a.S("command_play",!1,a.o.playerType)},uq=function(a){G.call(this);
this.qa={};this.wa={};this.element=tq(this,a)},tq=function(a,b){var c=0,d=window.document.createElement(b[c++]);
if(w(b[c])){var e=b[c++];if(e=vq(a,d,"className",e))wq(a,d,"className",e),a.qa[e]=d}else if(da(b[c])){for(var e=b[c++],h=0;h<e.length;h++)a.qa[e[h]]=d;wq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=tq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,h=d,l=void 0;for(l in k){var m=k[l];null!=m&&wq(e,h,l,w(m)?vq(e,h,l,m):m)}}else w(k)&&(e=vq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d},xq=
function(a){bh(a.element)},vq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.wa[d]=[b,
c],null):d},yq=function(a){return da(a)&&w(a[0])},wq=function(a,b,c,d){if("child"==c){$g(b);
if(!da(d)||yq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var h=d[e];null!=h&&(!h.nodeType||1!=h.nodeType&&3!=h.nodeType?yq(h)?c.push(tq(a,h)):h.element?c.push(h.element):c.push(window.document.createTextNode(String(h.toString()))):c.push(h))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())},zq=function(a,b){a&&(a.style.display=b)},Aq=function(a,b){var c=wh("requestAnimationFrame",
window);
return ri(function(){c?c.call(window,a):a()},b||0)},Bq=function(a){if(window.document.createRange){var b=window.document.createRange();
b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}},R=function(a){uq.call(this,a);
this.B=!0;this.Y=[]},S=function(a,b,c,d,e){d=y(d,e||a);
e={target:b,type:c,listener:d};a.Y.push(e);b.addEventListener(c,d);return e},Cq=function(a){R.call(this,a);
this.U=new Gj;H(this,this.U)},Dq=function(a,b){Cq.call(this,["div",
["html5-endscreen","ytp-player-content",b||"base-endscreen"]]);this.A=a;this.L=!1},Eq=function(){R.call(this,["div",
"ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])},Gq=function(){return yc?"Webkit":Fq?"Moz":Rg?"ms":zc?"O":null},Iq=function(a,b,c){if(w(b))(b=Hq(a,b))&&(a.style[b]=c);
else for(var d in b){c=a;var e=b[d],h=Hq(c,d);h&&(c.style[h]=e)}},Hq=function(a,b){var c=Jq[b];
if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Gq()+$a(d),void 0!==a.style[d]&&(c=d));Jq[b]=c}return c},Kq=function(a,b){var c=a.style[Za(b)];
return"undefined"!==typeof c?c:a.style[Hq(a,b)]||""},Lq=function(a,b){var c=Hg(a);
return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},Mq=function(a,b){return Lq(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Oq=function(a,b,c){var d;
b instanceof pe?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Nq(d,!1);a.style.top=Nq(b,!1)},Pq=function(a){return new pe(a.offsetLeft,a.offsetTop)},Qq=function(a){var b;
try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Rg&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Rq=function(a){if(Rg&&!xc(8))return a.offsetParent;
var b=Hg(a),c=Mq(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Mq(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},Tq=function(a){for(var b=new se(0,window.Infinity,window.Infinity,0),c=Jg(a),d=c.o.body,e=c.o.documentElement,h=Qg(c.o);a=Rq(a);)if(!(Rg&&0==a.clientWidth||yc&&0==a.clientHeight&&
a==d)&&a!=d&&a!=e&&"visible"!=Mq(a,"overflow")){var k=Sq(a),l=new pe(a.clientLeft,a.clientTop);
k.x+=l.x;k.y+=l.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,h);c=Pg(uh(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,h+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Sq=function(a){var b=Hg(a),c=new pe(0,0),d;
d=b?Hg(b):window.document;d=!Rg||xc(9)||"CSS1Compat"==Jg(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=Qq(a);b=Sg(Jg(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c},Vq=function(a,b){var c=new pe(0,0),d=Tg(Hg(a));
if(!mc(d,"parent"))return c;var e=a;do{var h=d==b?Sq(e):Uq(e);c.x+=h.x;c.y+=h.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c},Xq=function(a,b){var c=Wq(a),d=Wq(b);
return new pe(c.x-d.x,c.y-d.y)},Uq=function(a){a=Qq(a);
return new pe(a.left,a.top)},Wq=function(a){if(1==a.nodeType)return Uq(a);
a=a.changedTouches?a.changedTouches[0]:a;return new pe(a.clientX,a.clientY)},Zq=function(a,b,c){if(b instanceof te)c=b.height,b=b.width;
else if(void 0==c)throw Error("missing height argument");Yq(a,b);a.style.height=Nq(c,!0)},Nq=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
return a},Yq=function(a,b){a.style.width=Nq(b,!0)},ar=function(a){var b=$q;
if("none"!=Mq(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,h=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=h;c.visibility=e;return a},$q=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=yc&&!b&&!c;
return p(b)&&!d||!a.getBoundingClientRect?new te(b,c):(a=Qq(a),new te(a.right-a.left,a.bottom-a.top))},br=function(a){var b=Sq(a);
a=ar(a);return new ve(b.x,b.y,a.width,a.height)},cr=function(a,b){var c=a.style;
"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},dr=function(a,b){a.style.display=b?"":"none"},er=function(a){return"none"!=a.style.display},fr=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},jr=function(a){var b=Mq(a,"fontSize"),c;
c=(c=b.match(gr))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(Rg){if(String(c)in hr)return fr(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in ir)return a=a.parentNode,c=Mq(a,"fontSize"),fr(a,b==c?"1em":b)}c=O("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;bh(c);return b},lr=function(a,b){da(b)||(b=[b]);
var c=fi(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
kr(a,c.join(","))},kr=function(a,b){Iq(a,"transition",b)},nr=function(a,b,c,d){G.call(this);
this.B=a;c||(mr(this,!0),a.ha());this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Ud(this.Em,0,this);H(this,this.A)},mr=function(a,b){var c=a.B.element;
b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")},or=function(a,b){R.call(this,b||["div",
"ytp-thumbnail-overlay"]);this.A=new nr(this,250);H(this,this.A);this.api=a},pr=function(a){or.call(this,a,["div",
["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])},rr=function(a){Dq.call(this,a,"subscribecard-endscreen");
this.D=new pr(a);H(this,this.D);qr(this.A,this.D.element,4);this.F=new Eq;H(this,this.F);this.ha()},sr=function(a){G.call(this);
this.L=[];this.Ra=a||this},tr=function(a,b,c,d){for(var e=0;e<c.length;e++)T(a,b,c[e],d)},T=function(a,b,c,d,e){d=qi(y(d,e||a.Ra));
b.addEventListener(c,d);b={target:b,name:c,ai:d};a.L.push(b);return b},ur=function(a){for(;a.L.length;){var b=a.L.pop();
b.target.removeEventListener(b.name,b.ai)}},vr=function(a,b){this.type=a||"";
this.id=b||""},wr=function(a){return new vr(a.substr(0,2),a.substr(2))},yr=function(a){a=a.split("");
xr.sl(a,42);xr.hs(a,40);xr.Xy(a,2);return a.join("")},zr=function(a,b){return new yd(function(c,d){b.qb=function(a){kj(a)?c(a):d(a)};
b.onError=d;b.Hd=d;pj(a,b)})},Ar=function(a){function b(e,h,k){return Ed(e,function(e){return 0>=h||403===e.status?Cd(e):c(k).then(function(){return b(zr(a,d),h-1,Math.pow(2,4-h+1)*k)})})}
function c(a){return new yd(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(zr(a,d),3,1E3)},Br=function(a){this.o=a||0},Er=function(a,b,c,d,e,h,k,l){this.id=""+a;
this.A=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.o=k||0;this.C=l||0;this.audio=c||null;this.video=d||null;this.Fb=e||null;this.se=h||null;this.B=Cr[Dr(this)]||""},Dr=function(a){return a.id.split(";",1)[0]},Fr=function(a){return!(a.audio&&a.video)},Gr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")},Hr=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")},
Ir=function(a,b,c){this.name=a;
this.id=b;this.isDefault=c},Mr=function(a,b,c,d,e,h,k,l){this.width=a;
this.height=b;if(!h)a:{h=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Jr.length;b++){var m=Jr[b],n=Kr[m];if(h>=Math.floor(16*n/9)||a>=n){h=m;break a}}h="tiny"}this.quality=h;this.dD=Kr[this.quality];this.o=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;if(!(c=l))if(d=this.fps,c=Kr[this.quality],0==c)c=P("YTP_AUTO");else{a:{for(e=0;e<Lr.length;e++)if(d>Lr[e][1]){d=Lr[e][0];break a}d=""}c=c+"p"+d}this.qualityLabel=c},Nr=function(a){this.B=a;
this.D=this.C=this.F="";this.o={};this.A=""},Pr=function(a){Or(a);
return a.D},Qr=function(a){Or(a);
return Qb(a.o,function(a){return null!==a})},Or=function(a){if(a.B){if(!Rr.test(a.B))throw Error("Untrusted URL: "+a.B);
var b=Bf(a.B);a.F=b.C;a.D=b.A+(null!=b.D?":"+b.D:"");var c=b.B;if(0==c.indexOf("/videoplayback"))a.C="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.C=c.substr(0,d),c=c.substr(d+1)):(a.C=c,c="")}d=a.o;a.o=Sr(c);qa(a.o,Tr(b.No()));qa(a.o,d);a.B="";a.A=""}},Ur=function(a){Or(a);
var b=a.F+(a.F?"://":"//")+a.D+a.C;if(Qr(a)){var c=[];Ob(a.o,function(a,b){null!==a&&c.push(b+"="+a)});
a=c.join("&");b+="?"+a}return b},Sr=function(a){a=a.split("/");
var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Vr(c,a[b],a[b+1]);return c},Tr=function(a){a=a.split("&");
for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Vr(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b},Vr=function(a,b,c){if("cmo"==b){var d;
0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c},Wr=function(a,b){this.start=a;
this.end=b;this.length=b-a+1},Xr=function(a){a=a.split("-");
return 2==a.length&&(a=new Wr((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null},Yr=function(a,b){return new Wr(a,a+b-1)},Zr=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];
if(d)return d.value}return""},$r=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);
if(0<d.length)return d[0]}return null},as=function(a){if(!a)return 0;
var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)},bs=function(a,b,c,d,e,h){this.duration=c;
this.endTime=b+c;this.A=d;this.o=a;this.sourceURL=e;this.startTime=b;this.range=h||null},cs=function(){this.sa=[]},ds=function(a,b){var c=Ab(a.sa,new bs(b,0,0,0,""),function(a,b){return a.o-b.o});
return 0<=c?a.sa[c]:null},es=function(a,b){var c=Ab(a.sa,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.sa[c]:a.sa[Math.max(0,-c-2)]},fs=function(a,b){var c=db(a.sa,function(a){return a.o>=b},a);
0<c&&a.sa.splice(0,c)},gs=function(a){this.o=a;
this.A={};this.B=""},hs=function(a,b){var c=b.indexOf("?");
if(0<c){var d=Tr(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=Sr(b);Ob(d,function(a,b){this.set(b,a)},a)},is=function(a){var b=a.o.getUrl(),c=[];
Ob(a.A,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=Qr(a.o)?"&":"?";return b+a+d},js=function(a,b){var c=new Nr(b);
Ob(a.A,function(a,b){c.set(b,null)});
return c},ks=function(a){this.o=a;
this.C=a.clone();this.A=0;this.B=-1},ls=function(a){var b=a.C.getUrl(),c=new N(b);
c.A.match("\\.googlevideo\\.com$")?(of(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(of(c,"www.youtube.com"),b=c.toString()):b=Lp(b);a.o=new Nr(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))},ms=function(a,b,c){this.index=null;
this.info=b;this.initRange=c||null;this.o=null;this.D=this.B=!1;this.F=new ks(a)},ns=function(a,b,c,d,e,h,k,l,m){this.o=b;
this.range=c;this.type=a;this.C=0<=d?d:-1;this.startTime=e||0;this.duration=h||0;this.B=k||0;this.A=0<=l?l:this.range?this.range.length:window.NaN;this.H=!!m;this.range?(this.F=this.B+this.A==this.range.length,this.D=this.startTime+this.duration*this.B/this.range.length,this.J=this.duration*this.A/this.range.length):(this.F=0!=this.A,this.D=this.startTime,this.J=this.duration);this.G=this.D+this.J},os=function(a,b){return!(!b||b.o!=a.o||b.type!=a.type||(a.range&&b.range?b.range.end!=a.range.end:b.range!=
a.range)||b.C!=a.C||b.B+b.A!=a.B+a.A)},ps=function(a){return 1==a.type||2==a.type},qs=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B},rs=function(a){1==a.length||Re(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Wr(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)},us=function(a){var b="";
Ob(ts(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)},ts=function(a){var b={};
b.itag=a.o.info.id;b.seg=a.C;a.range&&(b.range=""+(a.range.start+a.B)+"-"+(a.range.start+a.B+a.A-1));b.time=""+a.D.toFixed(1)+"-"+(a.D+a.J).toFixed(1);return b},vs=function(a,b,c){this.B=a[0].o.F;
this.A=b||"";this.o=a;this.range=this.o[0].range&&0<this.o[0].A?rs(this.o):null;this.C=!!c},ws=function(a,b){var c;
/http[s]?:\/\//.test(a.A)?c=new gs(new Nr(a.A)):(c=new gs(a.B.o),a.A&&hs(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c},xs=function(a){if(a.range)return a.range.length;
a=a.o[0];return Math.round(a.J*a.o.info.o)},ys=function(a,b,c,d,e,h){ms.call(this,a,b,d);
this.index=e||new cs;this.G=c;this.C=!0;this.A=!!h},As=function(a,b){a.Ah(b);
return zs(a,b.F?b.C+1:b.C,!1)},zs=function(a,b,c){if(a.A&&0==a.index.qe(b))return a=new ns(3,a,null,b),b=0<=b?"sq/"+b:"",new vs([a],b,!!b);
var d=a.index.Ko(b),e=a.index.re(b),h=a.index.qe(b);c?h=c=0:c=0<a.info.o?a.info.o*h:1E3;a=new ns(3,a,null,b,e,h,0,c,b==a.index.Lb()&&!a.C&&0<c);return new vs([a],d)},Bs=function(a,b,c){this.ie=a;
this.durationSecs=b;this.context=c},Cs=function(a,b,c,d){this.o=a;
this.ie=b;this.durationSecs=c;this.A=d||window.NaN},Ds=function(){this.o=[];
this.A=null;this.C=0;this.B=[]},Es=function(a){var b=a.B;
a.B=[];return b},Fs=function(){this.C=[];
this.o=null;this.A={};this.B={}},Js=function(a,b,c){var d=[];
b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var h=b[e].parentNode.parentNode,k=null;"Period"==h.nodeName?k=Gs(a):"AdaptationSet"==h.nodeName?k=Hs(a,h.attributes.mimeType.value):"Representation"==h.nodeName&&(k=Is(a,h.attributes.id.value));if(null==k)return;k.update(b[e],c);tb(d,Es(k))}Db(d,function(a){return a.ie});
tb(a.C,d)},Ks=function(a){a.o&&(a.o.o=[]);
Ob(a.A,function(a){a.o=[]});
Ob(a.B,function(a){a.o=[]})},Gs=function(a){a.o||(a.o=new Ds);
return a.o},Hs=function(a,b){a.A[b]||(a.A[b]=new Ds);
return a.A[b]},Is=function(a,b){a.B[b]||(a.B[b]=new Ds);
return a.B[b]},Ls=function(a){var b={};
a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0==a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);if(null==d)break;b[d[1]]=d[2]}return null},Ss=function(a,b){var c=Ms(a,0,1836019558);
if(!c)return null;var d=Ms(a,c.offset+8,1835427940),e=Ms(a,c.offset+8,1953653094);if(!d||!e)return null;var h=Ms(a,e.offset+8,1952868452),k=Ms(a,e.offset+8,1953658222),l=Ms(a,e.offset+8,1952867444);if(!h||!k||!l)return null;var m=Ms(a,e.offset+8,1935763823),e=Ms(a,e.offset+8,1935763834);if(m){var n=Ns(m),t=Ns(m);if(0!=n||1!=t)return null;n=Ns(m)}for(var u=Ns(h),x=Ns(h),B=u&2,D=u&1?Os(h):0,I=B?Ns(h):0,z=u&8?Ns(h):0,t=u&16?Ns(h):0,Q=u&32?Ns(h):0,u=Ns(k),Na=u&1,va=u&4,Va=u&256,h=u&512,vb=u&1024,Sd=u&
2048,u=Ns(k),$p=Na?Ns(k):0,om=va?Ns(k):0,Na=[],cv=[],pm=[],JC=[],YO=0,Yf=0,Jc=0;Jc<u;Jc++){var D6=Va?Ns(k):z;h&&Na.push(Ns(k));var qe=Q;va&&0==Jc?qe=om:vb&&(qe=Ns(k));cv.push(qe);qe=Sd?Ns(k):0;0==Jc&&(YO=qe);pm.push(Yf+qe);JC.push(Jc);Yf+=D6}Cb(JC,function(a,b){return pm[a]-pm[b]});
k=[];for(Jc=0;Jc<u;Jc++)k[JC[Jc]]=Jc;Yf=B?4:0;Jc=16*u;qe=68+Yf+l.size+Jc+(m?m.size:0)+(e?e.size:0);c=qe-c.size;z=new Ps(qe);Qs(z,qe);Qs(z,1836019558);Rs(z,d);Qs(z,qe-24);Qs(z,1953653094);Qs(z,16+Yf);Qs(z,1952868452);Qs(z,131072|(B?2:0));Qs(z,x);B&&Qs(z,I);Rs(z,l);Qs(z,20+Jc);Qs(z,1953658222);Qs(z,16781057);Qs(z,u);Qs(z,D+$p+c);for(Jc=Yf=0;Jc<u;Jc++)l=k[Jc],d=Math.round(b*l/u),l=Math.round(b*(l+1)/u)-d,qe=d-Yf+YO,Qs(z,l),Qs(z,h?Na[Jc]:t),Qs(z,cv[Jc]),Qs(z,qe),Yf+=l;m&&(Qs(z,m.size),Qs(z,1935763823),
Qs(z,0),Qs(z,1),Qs(z,n+c));e&&Rs(z,e);return z.data.buffer},Xs=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);
for(var b=0;Ts(a,b);){var c=Us(a,b);if(1836476516==c.type)return Vs(c);b=Ws(c.type)?b+8:b+c.size}return window.NaN},Ms=function(a,b,c){for(;Ts(a,b);){var d=Us(a,b);
if(d.type==c)return d;b+=d.size}return null},Us=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);
return new Ys(a,b,c,d)},Vs=function(a){var b=a.data.getUint8(a.offset+8)?28:20;
return a.data.getUint32(a.offset+b)},Ts=function(a,b){if(8>a.byteLength-b)return!1;
var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c},Ws=function(a){return 1836019558==a||1836019574==a||1953653094==a},Ys=function(a,b,c,d){this.data=a;
this.offset=b;this.size=c;this.type=d;this.o=8},Ns=function(a){var b=a.data.getInt32(a.offset+a.o);
a.o+=4;return b},Zs=function(a){var b=a.data.getUint32(a.offset+a.o);
a.o+=4;return b},Os=function(a){var b;
b=a.data;var c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b},$s=function(a){var b,c=[];
do b=a.data.getUint8(a.offset+a.o),c.push(b),a.o++;while(0!=b);c.pop()},Ps=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));
this.o=0},Qs=function(a,b){a.data.setInt32(a.o,b);
a.o+=4},Rs=function(a,b){for(var c=0;c+4<=b.size;)Qs(a,b.data.getUint32(b.offset+c)),c+=4;
for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))},at=function(a){return(a=Ms(a,0,1836019558))?a.offset+a.size:null},bt=function(a,b){this.A=a;
this.o=0;this.B=b||0},et=function(a){for(var b=ct(a,!1);236==b;)dt(a),b=ct(a,!1);
return b},ft=function(a){var b=ct(a,!0),c=a.A.byteOffset+a.o,c=new window.DataView(a.A.buffer,c,Math.min(b,a.A.buffer.byteLength-c)),c=new bt(c,a.B+a.o);
a.o+=b;return c},ht=function(a){for(var b=ct(a,!0),c=gt(a),d=1;d<b;d++)c=256*c+gt(a);
return c},dt=function(a){var b=ct(a,!0);
a.o+=b},jt=function(a){var b=a.o;
a.o=0;var c=!1;it(a,440786851)&&(a.o=0,it(a,408125543)&&(c=!0));a.o=b;return c},kt=function(a){var b=a.o;
a.o=0;var c=1E6;it(a,408125543)&&(ct(a,!0),it(a,357149030)&&(ct(a,!0),it(a,2807729)&&(c=ht(a))));a.o=b;return c},mt=function(a,b){var c=a.o;
a.o=0;if(!lt(a)||!it(a,160))return a.o=c,window.NaN;ct(a,!0);if(!it(a,161))return a.o=c,window.NaN;var d=ct(a,!0);gt(a);var e=gt(a)<<8|gt(a);a.o+=d-3;if(!it(a,155))return a.o=c,window.NaN;d=ht(a);a.o=c;return(e+d)*b/1E9},lt=function(a){if(jt(a)){if(!it(a,408125543))return!1;
ct(a,!0)}if(!it(a,524531317))return!1;ct(a,!0);return!0},it=function(a,b){for(;et(a)!=b;)if(dt(a),a.o>=a.A.byteLength)return!1;
return!0},ct=function(a,b){var c=gt(a);
if(1==c){for(var d=c=0;7>d;d++)c=256*c+gt(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+gt(a),e*=128;return b?c-e:c},gt=function(a){return a.A.getUint8(a.o++)},nt=function(a,b,c,d,e){this.info=a;
this.o=b;this.range=c;this.A=d;this.B=e},ot=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)},pt=function(a){if(a.info.A!=a.range.length)return!1;
if(1==a.info.o.info.A){if(8>a.info.A||4==a.info.type)return!0;var b=ot(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.A&&1936286840==b;if(3==a.info.type&&0==a.info.B)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b}else if(2==a.info.o.info.A){if(4>a.info.A||4==a.info.type)return!0;b=ot(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0},qt=function(a,b){if(1==a.info.o.info.A){for(var c=a.info.o.o,
d=window.NaN,e,h=0,k=new window.DataView(a.o);Ts(k,h);){var l=Us(k,h);
1936286840==l.type?d=l.data.getUint32(l.offset+16):1836476516==l.type?d=Vs(l):1952867444==l.type&&(e=l);h=Ws(l.type)?h+8:h+l.size}!d&&c&&(d=Xs(c));e.data.getUint8(e.offset+8)?(c=e.data,e=e.offset+12,d=Math.round(b*d),c.setUint32(e,Math.round(d/4294967296)),c.setUint32(e+4,Math.round(d&4294967295))):e.data.setUint32(e.offset+12,Math.round(b*d));return!0}c=new bt(new window.DataView(a.info.o.o.buffer));d=new bt(new window.DataView(a.o));e=b;h=kt(c);c=d.o;d.o=0;if(lt(d)&&it(d,231))if(k=ct(d,!0),e=Math.floor(1E9*
e/h),Math.ceil(Math.log(e)/Math.log(2)/8)>k)d=!1;else{for(h=k-1;0<=h;h--)d.A.setUint8(d.o+h,e&255),e>>>=8;d.o=c;d=!0}else d=!1;return d},rt=function(a){var b;
if(1==a.info.o.info.A){a:{for(var c=0,d=new window.DataView(a.o);Ts(d,c);){b=Us(d,c);if(1936286840==b.type){c=b.data.getUint32(b.offset+16);d=b.data.getUint8(b.offset+8);b.data.getUint16(b.offset+(0==d?30:38));b=b.data.getUint32(b.offset+(0==d?36:42))/c;break a}c=Ws(b.type)?c+8:c+b.size}b=window.NaN}if(!(0<=b)){c=a.info.o.o;d=0;b=new window.DataView(a.o);for(var e,h;Ts(b,d);){var k=Us(b,d);1836476516==k.type?e=Vs(k):1836019558==k.type&&(h=k);d=Ws(k.type)?d+8:d+k.size}!e&&c&&(e=Xs(c));if(h&&e){h=Ms(b,
h.offset+8,1953653094);c=Ms(b,h.offset+8,1952868452);h=Ms(b,h.offset+8,1953658222);b=Ns(c);Ns(c);b&2&&Ns(c);b=b&8?Ns(c):0;var l=Ns(h),m=l&1,c=l&4,d=l&256,k=l&512,n=l&1024,l=l&2048,t=Zs(h);m&&Ns(h);c&&Ns(h);for(var u=m=0;u<t;u++){var x=d?Ns(h):b;k&&Ns(h);c&&0==u||!n||Ns(h);l&&Ns(h);m+=x}b=m/e}else b=window.NaN}}else e=new bt(new window.DataView(a.info.o.o.buffer)),b=mt(new bt(new window.DataView(a.o)),kt(e));return b||a.info.J},tt=function(a){return 1==a.info.o.info.A?!!Ms(ot(a),0,1718909296):jt(new bt(new window.DataView(a.o)))},
ut=function(){this.za=0;
this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1},vt=function(a){if(a.o.length<a.za+1){var b=2*a.o.length,b=b+2,c=a.o;
a.o=new window.Float64Array(b+1);var d=a.A;a.A=new window.Float64Array(b+1);for(b=0;b<a.za+1;b++)a.o[b]=c[b],a.A[b]=d[b]}},wt=function(a,b,c,d,e,h){ms.call(this,a,b,c||void 0);
this.indexRange=d;this.C=null;this.index=new ut;this.A=e;this.lastModified=h},xt=function(a,b,c,d){for(var e=[];b<=a.index.Lb();b++){var h;
h=a.index;var k=b;h=Yr(h.Oj(k),k+1<h.za||h.B?h.o[k+1]-h.o[k]:-1);var k=a.index.re(b),l=a.index.qe(b),m=Math.max(0,c-h.start),n=Math.min(h.end+1,c+d)-(h.start+m);e.push(new ns(3,a,h,b,k,l,m,n,b==a.index.Lb()&&m+n==h.length));if(h.start+m+n>=c+d)break}return new vs(e)},zt=function(a,b,c){a.Ah(b);
if(!a.fd())return c=Yr(b.range.end+1,c),c.end+1>a.A&&(c=new Wr(c.start,a.A-1)),a=[new ns(4,b.o,c)],new vs(a);4==b.type&&(b=a.hj(b),b=b[b.length-1]);var d=0,e=b.range.start+b.B+b.A;3==b.type&&(d=b.C,e==b.range.end+1&&(d+=1));return xt(a,d,e,c)},Bt=function(a,b){Gj.call(this);
this.J=this.duration=0;this.isLive=this.B=!1;this.G=At();this.D=window.Infinity;this.o={};this.L=a||"";this.F=this.H=0;this.C=null;this.K=At();this.U=b||!1;this.A=!1},Ct=function(a){return Qb(a.o,function(a){return!!a.info.se},a)},Ft=function(a,b,c,d){return d?Dt(a):Et(a,b,c)},Et=function(a,b,c){var d=new Bt;
d.duration=c||0;F(a,function(a){var c=Gt(a,b,d.duration),k=Xr(a.init),l=Xr(a.index),m=(0,window.parseInt)(a.clen,10),n=Ht(a.url,c,a.s),t=(0,window.parseInt)(a.lmt,10);n&&(d.o[It(a)]=new wt(n,c,k,l,m,t))});
return d},Dt=function(a){var b=new Bt;
F(a,function(a){var d=Gt(a),e=Ht(a.url,d,a.s);e&&(b.o[It(a)]=new ys(e,d,"",void 0,void 0,!0))});
b.B=!0;b.A=!0;b.isLive=!0;return b},Gt=function(a,b,c){var d=a.type,e=It(a),h=null;
Hr(d)&&(h=(a.size||"640x360").split("x"),h=new Mr(+h[0],+h[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label));var k=null,l=null;Gr(d)&&(k=new Br,a.name&&(l=new Ir(a.name,a.audio_track_id,"1"==a.isDefault)));var m=(0,window.parseInt)(a.bitrate,10)/8,n=(0,window.parseInt)(a.clen,10);c=c&&n?n/c:0;var t=null;b&&a.drm_families&&(t={},F(a.drm_families.split(","),function(a){t[a]=b[a]}));
return new Er(e,d,k,h,l,t,m,c)},It=function(a){var b=a.itag;
a.xtags&&(b=a.itag+";"+a.xtags);return b},Ht=function(a,b,c){a=new Nr(a);
a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",yr(c));return a},Kt=function(a,b){var c=Zr(b,"id"),c=c.replace(":",";");
"captions"==c&&(c=Zr(b,"lang"));var d=Zr(b,"mimeType"),e=Zr(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Zr(b,"bandwidth"),10)/8,h=(0,window.parseInt)($r(b,"BaseURL").getAttribute("yt:contentLength"),10),h=a.duration&&h?h/a.duration:0,k=null;if(Hr(d)){var k=(0,window.parseInt)(Zr(b,"width"),10),l=(0,window.parseInt)(Zr(b,"height"),10),m=(0,window.parseInt)(Zr(b,"frameRate"),10),n=Zr(b,"yt:stereoLayout"),t="equirectangular"==Zr(b,"yt:projectionType"),u,x;t&&"layout_top_bottom"==n?u=
3:t&&!n?u=2:"layout_left_right"==n&&(x=1);k=new Mr(k,l,m,u,x)}x=u=null;Gr(d)&&(u=new Br((0,window.parseInt)(Zr(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=Zr(b,"lang")||"",(l=$r(b,"Role"))?(l=Zr(l,"value")||"",x=x&&Yb(Jt,l)?new Ir(Zr(b,"yt:langName")||x+" - "+l,x+"."+Jt[l],"main"==l):null):x=null);m=null;if(l=$r(b,"ContentProtection"))if((m=l.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==m.textContent)for(m={},l=l.firstChild;null!=l;l=l.nextSibling)"yt:SystemURL"==
l.nodeName&&(m[l.attributes.type.textContent]=l.textContent.trim());else m=null;return new Er(c,d,u,k,x,m,e,h)},Lt=function(a,b){a.F=1;
a.G=At();return Ed(Ar(b||a.L).then(y(a.P,a)),y(a.O,a))},Mt=function(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");
null!=e&&(0<=(0,window.parseInt)(e.split("-")[1],10)?d=Xr(e):c=c+"?range="+e);return new bs(b.o,b.ie,b.durationSecs,b.A,c,d)},Nt=function(a){a=a.o;
for(var b in a){var c=a[b].index;if(c&&c.cf())return c.rg()}return window.NaN},Ot=function(a){a=a.o;
for(var b in a){var c=a[b].index;if(c&&c.cf())return c.rs()}return 0},Pt=function(a){var b=a.o,c;
for(c in b)if((a=b[c].index)&&a.cf()){for(b=c=0;b<a.yi();b++)c+=a.qe(b);c/=a.yi();return.5*Math.round(c/.5)}return window.NaN},Qt=function(a,b){Ob(a.o,function(a){Ob(b,function(b,e){var h=a.F;
h.o.set(e,b);h.C.set(e,b)})})},Rt=function(a,b){var c=(0).toString();
if(!a.o[c]){var d=new Mr(0,0,0,void 0,void 0,"auto"),d=new Er(c,"",void 0,d);a.o[c]=b?new ys(new Nr("http://www.youtube.com/videoplayback"),d,""):new wt(new Nr("http://www.youtube.com/videoplayback"),d,new Wr(0,0),new Wr(0,0),0,window.NaN)}},St=function(){var a=r("yt.player.utils.videoElement_");
a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a},Vt=function(a){var b=St();
try{if(b.canPlayType){a=a?Tt:Ut;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}},Wt=function(a){a=O("div",{"class":a});
window.document.body.appendChild(a);var b="none"==Lq(a,"display");bh(a);return b},Xt=function(a,b,c){this.o=a;
this.B=b;this.D=c;this.C={};this.A=null;this.fairPlayCert=""},Zt=function(a){return!a.A&&Yt()&&"com.microsoft.playready"==a.B},$t=function(a){return!a.A&&Yt()&&"com.apple.fps.1_0"==a.B},Yt=function(){var a=window.MSMediaKeys;
au&&vc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null},du=function(a){return window.navigator.requestMediaKeySystemAccess&&(ul&&bu("45")||cu&&a)},fu=function(a,b){this.A=[];
this.o={};this.B={};this.C=null;this.G=b;eu(this,a)},eu=function(a,b){Ob(b,function(a){a.forEach(function(a){a.se&&Ob(a.se,function(b,c){gu[c]&&Ob(gu[c],function(b){this.o[b]=this.o[b]||new Xt(c,b,a.se[c]);
this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a);
a.A=hu.filter(function(a){return!!this.o[a]},a)},ju=function(a){var b=a.A.shift(),c=a.o[b],d=iu(a.B[c.o]);
window.navigator.requestMediaKeySystemAccess(b,d).then(qi(y(a.F,a,c)),qi(y(a.D,a,c)))},iu=function(a){var b={initDataTypes:["cenc",
"webm"],audioCapabilities:[],videoCapabilities:[]};Ob(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]},ku=function(a){var b=Yt(),c=St();
if(b){if(au){a.C(new Xt("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=y(c.canPlayType,c):d=function(){return!1};
c=(c=eb(a.A,function(a){var b=this.o[a],c,l;Ob(this.B[b.o],function(m,n){d(n,a)&&(b.C[n]=!0,c|=0==n.indexOf("audio/"),l|=0==n.indexOf("video/"))},this);
return c&&l},a))?a.o[c]:null;
a.A=[];a.C(c)},lu=function(a){this.languageCode=a.languageCode;
this.languageName=a.languageName||null;this.o=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1},mu=function(a){a=a||{};
this.K=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.K.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.C=Math.max(d,this.C))}this.A=a.languageCode||"";this.F=a.languageName;this.B=a.kind||"";this.D=a.name;this.M=a.id;this.L=a.is_servable;this.isDefault=a.is_default;this.H=a.is_translateable;this.J=a.url||null;this.G=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new lu(a.translationLanguage))},ou=function(a){var b={format:a.C,
languageCode:a.A,languageName:a.F,displayName:nu(a),kind:a.B,name:a.D,id:a.M,is_servable:a.L,is_default:a.isDefault,is_translateable:a.H,vss_id:a.G};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.o,id:a.id,is_default:a.isDefault});return b},nu=function(a){var b=a.F||"",c=[b];
"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",P("YTP_ASR_SETTINGS_LABEL"),")");a.D&&c.push(" - ",a.D);a.o&&c.push(" >> ",a.o.languageName);return c.join("")},pu=function(a,b){var c=new mu;
c.A=a.A;c.F=a.F;c.D=a.D;c.B=a.B;c.isDefault=!1;c.H=a.H;c.G=a.G;c.J=a.J;c.o=b;return c},qu=function(a,b){this.id=a;
this.Fb=b;this.captionTracks=[];this.ti=this.Fk=null;this.jo=0},ru=function(a,b,c){this.A=a||0;
this.o=b||0;this.B=c},tu=function(a,b,c){return new ru(Kr[a]||0,Kr[b]||0,c)},uu=function(a){var b=Kr.auto;
return a.A==b&&a.o==b},wu=function(a,b){if(b.B&&uu(b))return vu;
if(b.B||uu(a))return b;if(a.B||uu(b))return a;var c=a.A&&b.A?Math.max(a.A,b.A):a.A||b.A,d=a.o&&b.o?Math.min(a.o,b.o):a.o||b.o,c=Math.min(c,d);return c==a.A&&d==a.o?a:new ru(c,d,!1)},yu=function(a){var b=a.o||a.A;
return $b(xu,function(a){return Kr[a]==b})||"auto"},zu=function(a,b,c){this.videoInfos=a;
this.o=b||null;this.audioTracks=[];this.A=c||null;if(this.o){var d={};F(this.o,y(function(a){if(a.Fb&&!d[a.id]){var b=new qu(a.id,a.Fb);d[a.id]=b;this.audioTracks.push(b)}},this))}},Au=function(a,b){this.o=a;
this.A=b},Bu=function(a){this.o=[];
if(a)a:{var b,c;if(a instanceof Bu){if(b=a.Pa(),c=a.Na(),0>=a.Ya()){a=this.o;for(var d=0;d<b.length;d++)a.push(new Au(b[d],c[d]));break a}}else b=Wb(a),c=Vb(a);for(d=0;d<b.length;d++)Cu(this,b[d],c[d])}},Cu=function(a,b,c){var d=a.o;
d.push(new Au(b,c));b=d.length-1;a=a.o;for(c=a[b];0<b;)if(d=b-1>>1,a[d].o>c.o)a[b]=a[d],b=d;else break;a[b]=c},Du=function(){Bu.call(this)},Eu=function(a,b){Gj.call(this);
this.A=a;this.B=new Du;this.o=null;this.D={};this.C=b||""},Hu=function(a,b,c){var d;
for(c=Fu(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Jb*d.rows))]?Gu(d,b):null)return d;c--}return Gu(a.A.o[0],b)},Ju=function(a,b,c){c=Fu(a.A,c);
for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Jb*d.rows)),!d.B[e]){d=a;var h=c,k=h+"-"+e;d.D[k]||(d.D[k]=!0,Cu(d.B,h,{Np:h,Up:e}))}Iu(a)},Iu=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;
a.C&&(c.crossOrigin=a.C);c.src=a.A.getUrl(b.Np,b.Up);c.onload=y(a.F,a,b.Np,b.Up);a.o=c}},Ku=function(a,b,c,d){this.B={};
this.M=a;this.K=b;a=c.split("#");this.H=(0,window.parseInt)(a[0],10);this.G=(0,window.parseInt)(a[1],10);this.A=(0,window.parseInt)(a[2],10);this.Jb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.D=(0,window.parseInt)(a[5],10);this.C=a[6];this.F=a[7];this.L=d},Gu=function(a,b){var c=Math.floor(b/(a.Jb*a.rows)),d=a.Jb*a.rows,e=b%d,h=e%a.Jb,e=Math.floor(e/a.Jb),k,l=a.un()+1-d*c;
l<a.Jb?(k=l,d=1):(k=a.Jb,d=l<d?Math.ceil(l/a.Jb):a.rows);return{url:a.getUrl(c),Bw:h,Jb:k,row:e,rows:d,Vp:a.H*k,Tp:a.G*d}},Lu=function(a,b){this.o=this.A(a,b);
this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)},Fu=function(a,b){var c=a.B[b];
if(c)return c;for(var c=a.o.length,d=0;d<c;d++)if(a.o[d].getWidth()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1},Mu=function(a,b,c,d){c=c.split("#");
c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");Ku.call(this,a,b,c,0);this.o=null;this.J=d?3:0},Nu=function(a,b){this.F=b;
Lu.call(this,a,0)},Ou=function(a,b){return void 0==b?a:"1"==b?!0:!1},Pu=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];
return a},Qu=function(a,b){return void 0==b?a:Number(b)},Ru=function(a,b){return void 0==b?a:b.toString()},Tu=function(a){if(a&&(a=a.match(Su))){var b=(0,window.parseFloat)(a[2]);
if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN},Uu=function(a,b){var c=Kr.auto,d=Kr[b];
return d>Kr.medium?new ru(d,c,!1):d>=c?new ru(c,d,!1):a},Vu=function(){return!!r("yt.scheduler.instance")},Wu=function(a,b){(0,window.isNaN)(b)&&(b=void 0);
var c=r("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):ri(a,b||0)},Xu=function(a){if(!(0,window.isNaN)(a)){var b=r("yt.scheduler.instance.cancelJob");
b?b(a):ti(a)}},Zu=function(){var a=r("yt.scheduler.instance.start");
a&&(ti(Yu),a())},$u=function(){var a=r("yt.scheduler.instance.pause");
a&&(a(),ti(Yu),Yu=ri(Zu,800))},av=function(a,b){this.version=a;
this.args=b},bv=function(a){if(!a.ke){var b={};
a.call(b);a.ke=b.version}return a.ke},dv=function(a,b){function c(){a.apply(this,b.args)}
if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=bv(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}},ev=function(a,b){this.topic=a;
this.o=b},kv=function(a,b){var c=fv,d=gv();
if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var l=function(){if(hv[e])try{if(k&&c instanceof ev&&c!=d)try{k=dv(c.o,k)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+l.message,l;}a.call(b||window,k)}catch(l){vi(l)}};
iv[c.toString()]?Vu()?Wu(l,void 0):ri(l,0):l()}});
hv[e]=!0;jv[c.toString()]||(jv[c.toString()]=[]);jv[c.toString()].push(e);return e},mv=function(a,b){var c=kv(function(d){a.apply(b,arguments);
lv(c)},b);
return c},lv=function(a){var b=gv();
b&&(ga(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete hv[a]}))},gv=function(){return r("yt.pubsub2.instance_")},nv=function(a){av.call(this,1,arguments);
this.o=a},rv=function(a){var b=a||window;
if(!(b.performance&&b.performance.timing&&b.performance.getEntriesByType))return{mh:0,Ir:0};a=Pg(b||window);for(var c=[],d=b.document.getElementsByTagName("*"),e=0,h=d.length;e<h;e++){var k=d[e],l;"IMG"==k.tagName&&(l=ov(k,k.src,a))&&c.push(l);var m=b.getComputedStyle(k)["background-image"];m&&(m=pv.exec(m))&&1<m.length&&(l=ov(k,m[1],a))&&c.push(l);if("IFRAME"==k.tagName)try{if(l=qv(k,a)){var n=rv(k.contentWindow);0<n.mh&&(l.timing=n.mh,c.push(l))}}catch(t){}}l=b.performance.getEntriesByType("resource");
n={};d=0;for(e=l.length;d<e;d++)h=l[d],n[h.name]=h.responseEnd;d=0;for(e=c.length;d<e;d++)h=c[d],h.timing||(h.timing=n[h.url]||0);b=tv(b,l);a=uv(b,a,c);h=c=0;if(a.length)for(n=l=0,d=a.length;n<d;n++)e=a[n],h=e.timing-h,0<h&&1>l&&(c+=(1-l)*h),h=e.timing,l=e.progress;return{mh:Math.round(c||b),Ir:h}},qv=function(a,b){if(a.getBoundingClientRect){var c=a.getBoundingClientRect(),d=Math.max(c.top,0),e=Math.min(c.right,b.width),h=Math.min(c.bottom,b.height),c=Math.max(c.left,0);
if(h>d&&e>c)return new vv(d,e,h,c)}return null},ov=function(a,b,c){return b&&(a=qv(a,c))?(a.url=b,a):null},tv=function(a,b){var c,d=a.performance.timing.navigationStart;
if("msFirstPaint"in a.performance.timing)c=a.performance.timing.o-d;else if("chrome"in a&&"loadTimes"in a.chrome){var e=a.chrome.loadTimes(),h=e.firstPaintTime;if(0<h){var k=e.startLoadTime;"requestTime"in e&&(k=e.requestTime);h>=k&&(c=1E3*(h-k))}}if(void 0===c||0>c||12E4<c){c=a.performance.timing.responseStart-d;for(var l={},d=a.document.getElementsByTagName("head")[0].children,e=0,h=d.length;e<h;e++)k=d[e],"SCRIPT"==k.tagName&&k.src&&!k.async?l[k.src]=!0:"LINK"==k.tagName&&"stylesheet"==k.rel&&
k.href&&(l[k.href]=!0);b.some(function(a){if(!l[a.name]||"script"!=a.initiatorType&&"link"!=a.initiatorType)return!0;a=a.responseEnd;if(void 0===c||a>c)c=a})}return Math.max(c,0)||0},uv=function(a,b,c){for(var d={0:0},e=0,h=0,k=c.length;h<k;h++){var l=c[h],m=a;
l.timing>a&&(m=l.timing);d[m]||(d[m]=0);l=(l.o-l.C)*(l.B-l.A);d[m]+=l;e+=l}h=b.width*b.height;0<h&&(h=.1*Math.max(h-e,0),a in d||(d[a]=0),d[a]+=h,e+=h);a=[];if(e){for(var n in d)b=new wv((0,window.parseFloat)(n),d[n]),a.push(b);a.sort(function(a,b){return a.timing-b.timing});
h=d=0;for(k=a.length;h<k;h++)b=a[h],d+=b.area,b.progress=d/e}return a},vv=function(a,b,c,d){this.o=c;
this.A=d;this.B=b;this.C=a},wv=function(a,b){this.area=b;
this.timing=a},Bv=function(a,b,c){xv(c)[a]=b||At();
b||yv(a);b=pi("TIMING_ACTION",void 0);a=xv(c);if(r("yt.timing.ready_")&&b&&a._start&&zv(c)){b=!0;var d=pi("TIMING_WAIT",[]);if(d.length)for(var e=0,h=d.length;e<h;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&Av(c)}},Cv=function(a,b){var c=xv(b);
return a in c},Ev=function(a,b,c){Dv(c).info[a]=b},Hv=function(a){Fv(a);
Gv();q("yt.timing.pingSent_",!1,void 0)},zv=function(a){a=xv(a);
if(a.aft)return a.aft;for(var b=pi("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN},Jv=function(a){return Math.round(Iv.timing.navigationStart+a)},Kv=function(a){var b=window.location.protocol,c=Iv.getEntriesByType("resource"),d=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.googleapis.com/css?family=")})[0],c=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.gstatic.com/s/")}).reduce(function(a,b){return b.duration>a.duration?b:a},
{duration:0});
d&&0<d.startTime&&0<d.responseEnd&&(a.wfcs=Jv(d.startTime),a.wfce=Jv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=Jv(c.startTime),a.wffe=Jv(c.responseEnd))},Av=function(a){var b=xv(a),c=Dv(a).span,d=Dv(a).info,e=r("yt.timing.reportbuilder_");
if(e){if(e=e(b,c,d,a))Lv(e),Hv(a)}else{var h=pi("TIMING_ACTION",void 0),k=pi("CSI_SERVICE_NAME","youtube"),e={v:2,s:k,action:h};if(Iv.now&&Iv.timing){var l=Iv.timing.navigationStart+Iv.now(),l=Math.round(K()-l);d.yt_hrd=l}var l=pi("TIMING_INFO",{}),m;for(m in l)d[m]=l[m];m=d.srt;delete d.srt;var n;m||0===m||(n=Iv.timing||{},m=Math.max(0,n.responseStart-n.navigationStart),(0,window.isNaN)(m)&&d.pt&&(m=d.pt));if(m||0===m)d.srt=m;d.h5jse&&(l=window.location.protocol+r("ytplayer.config.assets.js"),(l=
Iv.getEntriesByName?Iv.getEntriesByName(l)[0]:null)?d.h5jse=Math.round(d.h5jse-l.responseEnd):delete d.h5jse);b.aft=zv(a);l=b._start;if("cold"==d.yt_lt){n||(n=Iv.timing||{});var t;a:if(t=n,t.msFirstPaint)t=Math.max(0,t.msFirstPaint);else{var u=window.chrome;if(u&&(u=u.loadTimes,ha(u))){var u=u(),x=1E3*Math.min(u.requestTime||window.Infinity,u.startLoadTime||window.Infinity),x=window.Infinity===x?0:t.navigationStart-x;t=Math.max(0,Math.round(1E3*u.firstPaintTime+x)||0);break a}t=0}0<t&&t>l&&(b.fpt=
t);t=c||Dv(void 0).span;u=n.redirectEnd-n.redirectStart;0<u&&(t.rtime_=u);u=n.domainLookupEnd-n.domainLookupStart;0<u&&(t.dns_=u);u=n.connectEnd-n.connectStart;0<u&&(t.tcp_=u);u=n.connectEnd-n.secureConnectionStart;n.secureConnectionStart>=n.navigationStart&&0<u&&(t.stcp_=u);u=n.responseStart-n.requestStart;0<u&&(t.req_=u);u=n.responseEnd-n.responseStart;0<u&&(t.rcv_=u);Iv.getEntriesByType&&Kv(b);(n=pi("SPEEDINDEX_FOR_ACTIONS",void 0))&&-1<n.indexOf(h)&&(h=At(),n=rv(),h=At()-h,0<n.mh&&(d.si=n.mh,
b.vsc=Jv(n.Ir),c.sid=h))}t=xv(a);h=t.pbr;n=t.vc;t=t.pbs;h&&n&&t&&h<n&&n<t&&1==Dv(a).info.yt_vis&&"youtube"==k&&(Ev("yt_lt","hot_bg",a),k=b.vc,h=b.pbs,delete b.aft,c.aft=Math.round(h-k));(k=pi("PREVIOUS_ACTION"))&&(d.pa=k);d.p=pi("CLIENT_PROTOCOL")||"unknown";d.t=pi("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var B in d)"_"!=B.charAt(0)&&(e[B]=d[B]);b.ps=At();d={};B=[];for(var D in b)"_"!=D.charAt(0)&&(t=Math.max(Math.round(b[D]-l),0),d[D]=t,B.push(D+
"."+t));e.rt=B.join(",");b=e;D=[];for(var I in c)"_"!=I.charAt(0)&&D.push(I+"."+Math.round(c[I]));b.it=D.join(",");(I=r("ytdebug.logTiming"))&&I(e,d,c);Hv(a);pi("EXP_DEFER_CSI_PING")?(Mv(),q("yt.timing.deferredPingArgs_",e,void 0),a=ri(Mv,0),q("yt.timing.deferredPingTimer_",a,void 0)):Lv(e);a=new nv(d.aft+(m||0));c=fv;(e=gv())&&e.publish.call(e,c.toString(),c,a)}},Lv=function(a){if(pi("DEBUG_CSI_DATA")){var b=r("yt.timing.csiData");
b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}pi("EXP_DEFER_CSI_PING")&&(ti(r("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));var c="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c=pi("CSI_LOG_WITH_YT")?"/csi_204":c,b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=pi("DOUBLE_LOG_CSI")?"/csi_204?"+b.substring(1):null;window.navigator&&window.navigator.sendBeacon?
(Yp(a),b&&Yp(b)):(Xp(a),b&&Xp(b));q("yt.timing.pingSent_",!0,void 0)},Mv=function(a){if(pi("EXP_DEFER_CSI_PING")){var b=r("yt.timing.deferredPingArgs_");
b&&(a&&(b.yt_fss=a),Lv(b))}},xv=function(a){return Dv(a).tick},Dv=function(a){return r("ytcsi."+(a||"")+"data_")||Fv(a)},Fv=function(a){var b={tick:{},
span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b},Ov=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.Uint8Array(16);
window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){for(var c=K(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=Nv)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++;return a},Pv=function(){for(var a=Ov(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));
return b.join("")},Qv=function(){return fi(Ov(),function(a){return(a&15).toString(16)}).join("")},Rv=function(a,b,c){this.errorCode=a;
this.o=b;this.details=c||{}},Sv=function(a){var b,c;
for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""},Tv=function(a){return(a=a.exec(nc))?a[1]:""},bu=function(a){return 0<=Ta(Uv,a)},Vv=function(){},Wv=function(){this.buffered=new Vv},Xv=function(a,b){this.C=a;
this.o=!!b;this.B=!1;this.A={}},Yv=function(a){return a.o?a.C:ff(a.C,a.A)},Zv=function(a,b){this.A=a;
this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.ZD,set:this.cE});Object.defineProperty(this,"buffered",{get:this.XD})},$v=function(){this.length=0},aw=function(a){this.activeSourceBuffers=this.sourceBuffers=[];
this.o=a;this.A=window.NaN;this.B=0;Object.defineProperty(this,"duration",{get:this.YD,set:this.bE});Object.defineProperty(this,"readyState",{get:this.$D});this.o.addEventListener("webkitsourceclose",y(this.aE,this),!0)},bw=function(a,b,c,d,e){sr.call(this);
this.A=this.o=null;this.C=b;this.B=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new aw(a);this.F=this.D=this.G=null;this.H=d;this.M=c;this.P=e;tr(this,this.B,["sourceopen","webkitsourceopen"],this.K);tr(this,this.B,["sourceclose","webkitsourceclose"],this.J)},cw=function(a,b){a.D=b},dw=function(a,b){a.F=b},ew=function(a){if(!a.G){var b;
b=a.B;b=b.AG?b.o.webkitMediaSourceURL:window.URL.createObjectURL(b);a.G=new Xv(b,!0)}return a.G},fw=function(a){try{return"open"==a.B.readyState}catch(b){return!1}},gw=function(a){try{return"closed"==a.B.readyState}catch(b){return!0}},hw=function(a){return a.o.updating||a.A.updating},iw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)},jw=function(a){return a.o?!!a.o.appendBuffer:iw()},kw=function(a){if(/opus/.test(a)&&(ul&&!bu("38")||Tp()))return!1;
if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Rp())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!St().canPlayType(a)},lw=function(a){this.wc=a},mw=function(a,b,c){this.C=a;
this.A=b;this.D=c;this.B={};this.o=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null},qw=function(a,b){if(2.2!=nw&&Vt(a.A))return[];
for(var c={},d=St(),e=0;e<b.length;e++){var h=b[e];if(Dr(h.wc)in ow||"5"==Dr(h.wc)?0:pw(d,h.wc.mimeType)){var k=h.wc.video.quality;c[k]&&2!=c[k].wc.A||(c[k]=h)}}var l=[];c.auto&&l.push(c.auto);F(Jr,function(a){(h=c[a])&&l.push(h)});
return l},pw=function(a,b){var c=a.canPlayType(b);
rw?c=c||tw[b]:2.2==nw?c=c||uw[b]:Op()&&(c=c||vw[b]);return!!c},ww=function(){var a=Op()&&!bu(29),b=Np("google tv")&&Np("chrome")&&!bu(30);
return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)},Ew=function(a,b){var c={},d;
for(d in b.o)if(304!=d||a.C.ga("html5_enable_h264_2k_hfr")&&b.isLive){var e=b.o[d],h;a:{h=a;var k=e.info;if(k.id!=(0).toString()||h.A){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[xw.name]=k.video.width),k.video.height&&(m[yw.name]=k.video.height),k.video.fps&&(m[zw.name]=k.video.fps),k.o&&(m[Aw.name]=8*k.o));k.audio&&k.audio.o&&(m[Bw.name]=k.audio.o);k=m;m=void 0;for(m in Cw){var n=Cw[m];if(k[n.name]&&Dw(h,n))if(h.o){if(h.o[n.name]<k[n.name]){h=!1;break a}}else l=l+"; "+n.name+"="+k[n.name]}h=
kw(l)}else h=!0}h&&(c[e.info.B]=c[e.info.B]||[],c[e.info.B].push(e.info))}return c},Fw=function(a,b,c){var d={},e;
Ob(b,function(a,b){var l=a.filter(function(a){return a.se?c&&a.se[c.o]&&c.C[a.mimeType]?261==Dr(a)?(e||(e=St()),!1):!0:!1:!0},this);
l.length&&(d[b]=l)},a);
return d},Pw=function(a,b,c,d){function e(a){return!!h[a]}
var h=Ew(a,b);Ct(b)&&(h=Fw(a,h,c));c=Gw;if(!a.A)c=Hw;else if(Np("cros armv7")&&!a.C.ga("html5_enable_cros_vp9")||Np("windows nt 5.1"))c=Iw;b=Jw;d&&(a.A&&(c=Iw),b=Kw);a.C.ga("html5_enable_aac_51_clear")&&(b=Lw);d=eb(c,e);b=eb(b,e);if(!d||!b)return null;if("9"==d&&h.h){c=function(a,b){return Math.max(a,b.video.height)};
var k=me(h["9"],c,0);me(h.h,c,0)>1.5*k&&(d="h")}c=h[d];k=h[b];c=Mw(a,c);Nw(c,k);return new zu(c,k,Ow(a,h,d,b))},Ow=function(a,b,c,d){var e=b.h;
b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=Mw(a,e),Nw(e,b),new zu(e,b)):null},Nw=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.o-a.o});
Cb(b,function(a,b){return b.o-a.o})},Mw=function(a,b){var c=xh(b,function(a){return 32<a.video.fps});
c&&(b=a.D||Dw(a,zw)?Zd(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):Zd(b,function(a){return!(32<a.video.fps)}));
c&&Qp()&&(b=Zd(b,function(a){return 299!=Dr(a)}));
return b},Dw=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name,e;
a.o?e=!!a.o[b.name]:(b.video?(e='video/webm; codecs="vp9"',kw(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',kw(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=kw(e+"; "+b.name+"="+b.valid)&&!kw(e+"; "+b.name+"="+b.Vg));c[d]=e}return a.B[b.name]},Qw=function(a,b){this.A=a;
this.o=b;this.B=0},Rw=function(a){for(var b=[],c=[],d=0,e=a.o.length;d<e;++d){var h=a.o[d];
h.bitrate<=a.B?b.push(h):c.push(h)}b.sort(function(a,b){return b.bitrate-a.bitrate});
c.sort(function(a,b){return a.bitrate-b.bitrate});
a.o=b.concat(c)},Sw=function(a,b,c,d,e,h,k,l,m){this.itag=a;
this.url=b;this.uo=c;this.width=d;this.height=e;this.bitrate=k;this.fps=h;this.audioItag=l||null;this.o=m||""},Tw=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;
e=a[c];var h=e.type.match(/codecs="([^"]*)"/);e=new Sw(e.itag,e.url,h?h[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b},Uw=function(a,b){this.wc=a;
this.B=b;this.o=null},Vw=function(a,b,c,d,e,h,k,l,m){var n=new Br;
d=new Mr(d,e,h,null,void 0,k);c=new Er(c,"application/x-mpegURL",n,d,void 0,m);a=new Qw(a,b);a.B=l?l:1369843;return new Uw(c,a)},Ww=function(a,b,c){if(!rw&&!Sp())return[];
b=Tw(b);if(!b)return[];var d={nO:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,h=[],k=[],l=[],m;for(m in b){var n=b[m];if(n.width){var t=b[n.audioItag];t&&(h.push(n),e="fairplay"==n.o?d:null,l.push(Vw([t],[n],n.itag,n.width,n.height,n.fps,void 0,void 0,e)))}else k.push(n)}e=l.reduce(function(a,b){return!!b.wc.se&&a},!0)?d:null;
l.push(Vw(k,h,"93",0,0,0,"auto",c,e));return qw(a.G,l)},Xw=function(a,b){this.wc=a;
this.o=b},Yw=function(a,b,c,d,e,h,k){var l=new Br;
c in Kr||(c="small");e&&h?(h=(0,window.parseInt)(h,10),e=(0,window.parseInt)(e,10)):(h=Kr[c],e=Math.round(16*h/9));c=new Mr(e,h,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new Xw(new Er(d,b,l,c),a)},Zw=function(a){var b=[];
F(a,function(a){a.url&&b.push(Yw(a.url,a.type,"medium","0"))});
return b},$w=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];
if(e.sig||e.s){var h=e.sig||yr(e.s);e.url=hj(e.url,{signature:h})}e.url&&c.push(Yw(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return qw(a.G,c)},bx=function(a){Gj.call(this);
this.ze=new te(0,0);this.Ma=this.W=this.wa=!1;this.Pb="";this.xb=this.jb=!1;this.$a={};this.captionTracks=[];this.Ca=[];this.rb=0;this.captionTranslationLanguages=[];this.Ea=!1;this.U=new qu("und",new Ir("Default","und",!0));this.Fa=0;this.ye=this.ud=!1;this.J=null;this.O=[];this.xe=new Ud(this.mr,5E3,this);H(this,this.xe);this.K=[];this.C={};this.keywords={};this.D={};ax(this,a)},hx=function(a,b){var c=b||{};
c.iv_invideo_url&&(a.qf=Mp(c.iv_invideo_url));c.iv_ads_only&&(a.Zn="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.fb=c.cta_conversion_urls);a.isPharma=Ou(a.isPharma,c.is_pharma);a.author=Ru(a.author,c.author);a.ci=Ou(a.ci,c.cc_asr);var d=c.ttsurl;cx.test(d)?a.fi=d:d&&(d=Lp(d),cx.test(d)&&(a.fi=d));c.caption_tracks&&c.caption_audio_tracks&&(dx(a,c.caption_tracks),a.Ca=ej(c.caption_audio_tracks),c.default_audio_track_index&&(a.rb=(0,window.parseInt)(c.default_audio_track_index,10)||0),c.caption_translation_languages&&
ex(a,c.caption_translation_languages));a.Ea=Ou(a.Ea,c.cc_contribute);a.clientPlaybackNonce=Ru(a.clientPlaybackNonce,c.cpn);a.subscribed=Ru(a.subscribed,c.subscribed);a.sentiment=Pu(a.sentiment,c.sentiment,fx);a.shortViewCount=Ru(a.shortViewCount,c.short_view_count_text);a.title=Ru(a.title,c.title);a.ypcPreview=Ru(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Ru(a.ypcOrigin,c.ypc_origin);a.paygated=Ou(a.paygated,c.paygated);a.requiresPurchase=Ou(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
gx(c.keywords));c.rvs&&(a.H=ej(c.rvs));a.contentCheckOk=Ou(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Ou(a.racyCheckOk,"1"==c.rco);a.oauthToken=Ru(a.oauthToken,c.oauth_token);a.visitorData=Ru(a.visitorData,c.visitor_data);c.session_data&&(a.fa=bj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Ob=bj(c.endscreen_autoplay_session_data,"&"));a.Wa=Ru(a.Wa,c.tracking_list||c.tv_list);F(bx.D,function(a){a in c&&(this.C[a]=c[a])},a)},ax=function(a,b){var c=b||{};
a.Od="1"!=c.hlsdvr?!1:ww()?!0:ix&&5>jx?!1:!0;a.hf=c.ad_query_id;a.jf=c.agcid;a.Wh="1"==c.infringe||"1"==c.muted;a.gb=c.authkey;a.Bb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||Pv());a.Hh=K();a.Hk=Ou(a.Hk,c.cenchd);a.enableCardio=Ou(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=Ou(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.vf=Qu(a.vf,c.end||c.endSeconds);a.Oi=Ru(a.Oi,c.itct);a.Gl=Ou(a.Gl,c.noiba);a.Pf="1"==c.livemonitor;a.Ga="1"==c.live_playback||
!!c.fresca_preroll;a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=Ou(a.isMdxPlayback,c.mdx);a.Kl=Ou(a.Kl,c.reload);a.Ll=Ou(a.Ll,c.utpsa);a.wb=c.cyc;for(var d in bx.o){var e=c[d+"_webp"]||c[d];kx.test(e)&&(a.$a[bx.o[d]]=e)}a.L=Ru(a.L,c.vvt);a.kf=c.osig;a.od=c.ptchn;a.qd=c.oid;a.Z=c.ptk;a.rd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.Yh=c.vm;a.Rh=c.of;a.playlistId=Ru(a.playlistId,c.list);a.sd=c.pyv_view_beacon_url;
a.mf=c.pyv_quartile25_beacon_url;a.nf=c.pyv_quartile50_beacon_url;a.pf=c.pyv_quartile75_beacon_url;a.lf=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.De=c.sdetail;!a.Ra&&c.session_data&&(a.Ra=bj(c.session_data,"&").feature);a.isFling=1==Qu(a.isFling?1:0,c.is_fling);a.vnd=Qu(a.vnd,c.vnd);a.ea=Ru(a.ea,c.ctrl);a.da=Ru(a.da,c.ytr);a.ka=c.ytrcc;a.ih=Uu(a.ih,c.vq);a.nh=Uu(a.nh,c.suggestedQuality);
a.aa=c.approx_threed_layout||0;a.Fe=Ou(a.Fe,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Ru(a.vssCredentialsToken,c.vss_credentials_token);a.Mm=Ru(a.Mm,c.vss_credentials_token_type);lx(a,c.watermark);a.ypcGid=Ru(a.ypcGid,c.ypc_gid);a.heartbeatToken=Ru(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Qu(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=Qu(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=Ou(a.heartbeatSoftFail,
c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.K.push("ad")):"1"!=c.supported_without_ads&&(a.Wo=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ia=c.atc);c.license_info&&(a.Xm=mx(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.Pi="1"==c.autonav);c.autoplay&&(a.Lc="1"==c.autoplay);c.iv_load_policy&&(a.ua=Pu(a.ua,c.iv_load_policy,
nx));c.cc_lang_pref&&(a.Be=Ru(c.cc_lang_pref,a.Be));c.cc_load_policy&&(a.Ce=Pu(a.Ce,c.cc_load_policy,nx));c.channel_path&&(a.gi=Ru(c.channel_path,a.gi));"0"==c.dash&&(a.vo=!0);c.dashmpd&&(a.G=ff(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=yr(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.$e=Ya(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&&(a.fairPlayCert=(0,window.atob)(c.fair_play_cert));c.featured&&(a.Dp="1"==c.featured);c.fmt_list&&
(a.fmtList=c.fmt_list);c.fresca_preroll&&a.K.push("fresca");c.idpj&&(a.Dj=Ya(c.idpj));c.ismb&&(a.uh=Ya(c.ismb));c.is_episodic&&(a.El="1"==c.is_episodic);c.is_listed&&(a.isListed=Ou(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.jg=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Ya(c.length_seconds));if(c.live_chunk_readahead||c.hls_live_chunk_readahead)a.Ek=Qu(a.Ek,c.live_chunk_readahead||c.hls_live_chunk_readahead);
c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.live_manifest_duration&&(a.Ol=Ya(c.live_manifest_duration));c.ldpj&&(a.Ym=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Vh=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):bx.A);c.partnerid&&(a.P=Ya(c.partnerid));c.probe_url&&(a.probeUrl=Mp(ff(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Ru(c.profile_picture,a.profilePicture));c.pyv_billable_url&&
ox.test(c.pyv_billable_url)&&(a.ma=c.pyv_billable_url);c.pyv_conv_url&&ox.test(c.pyv_conv_url)&&(a.xa=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ia=d.quartile_0_url,a.ac=d.quartile_25_url,a.md=d.quartile_50_url,a.nd=d.quartile_75_url,a.$b=d.quartile_100_url);"1"==c.spacecast_module&&(a.K.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Qu(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.Ga||(a.clipStart=
c.start);c.two_stage_token&&(a.Ej=c.two_stage_token);c.url_encoded_third_party_media&&(a.Xe=ej(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.K.push("ypc");c.ypc_clickwrap_module&&a.K.push("ypc_clickwrap");a.Qh=Ru(a.Qh,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);
a.D.focEnabled=Ou(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=Ou(a.D.rmktEnabled,c.rmktEnabled);a.C=c;hx(a,c);px(a);c.adpings&&(a.Ae=c.adpings?dj(c.adpings):null);c.feature&&(a.Ee=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.O=ej(c.multifeed_metadata_list))},qx=function(a){return K()>a.Hh+18E6},rx=function(a){return!(!a.A||!a.A.videoInfos.length)},px=function(a){sx(a)||(a.adaptiveFormats?(a.o=Ft(tx(a,a.adaptiveFormats),a.Xm,a.lengthSeconds,
a.Ga),H(a,a.o),Ct(a.o)&&(a.W=!0)):a.G&&(a.wa=!0))},sx=function(a){return!ww()||a.vo?!0:!1},ux=function(a){a.isDisposed()||(a.ae=!1,a.S("dataloaded",a.C))},xx=function(a,b){if(!a.isDisposed()){a.A=null;
a.Vf=null;a.M=null;var c=sx(a)||b.Il;if(!c&&a.spacecastAdaptiveFormats)a.o=Ft(tx(a,a.spacecastAdaptiveFormats),a.Xm,a.lengthSeconds),H(a,a.o),a.A=Pw(b.G,a.o,a.J,!0);else if(a.spacecastFormatMap){var d=tx(a,a.spacecastFormatMap);a.M=$w(b,d);a.A=new zu(fi(a.M,function(a){return a.wc}))}a.A&&(d=me(a.A.videoInfos,function(a,b){return b.video.o&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=tu(d.quality,d.quality,!0),a.ih=d,a.nh=d);
a.A||c||!a.o||(b.F||Rt(a.o,a.Ga),a.A=Pw(b.G,a.o,a.J));a.A||(a.M=vx(a,b),a.M.length&&(a.A=new zu(fi(a.M,function(a){return a.wc}))));
wx(a)}},vx=function(a,b){if(a.hlsFormats){var c=tx(a,a.hlsFormats),c=Ww(b,c,a.uh);
if(c.length)return c}if(a.Xe&&a.Kp)return c=Zw(a.Xe),qw(b.G,c);c=tx(a,a.jg,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.uh,h={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(h.ibw=e?String(e):"1369843");d={url:ff(d,h),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return $w(b,c)},yx=function(a){return a.B&&a.B.se||null},zx=function(a){a.zj||(a.C.storyboard_spec?a.zj=new Lu(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.o&&(a.zj=new Nu(a.C.live_storyboard_spec,
a.o)));
return a.zj},Ax=function(a){var b=zx(a);
!a.oj&&b&&(a.oj=new Eu(b),H(a,a.oj));return a.oj},Bx=function(a){return a.o&&!(0,window.isNaN)(Ot(a.o))?Ot(a.o):0},Cx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.Xe)},Dx=function(a){return!!(a.o||a.jg||a.Xe||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)},Ex=function(a){var b=jb(a.K,"ypc");
a.ypcPreview&&(b=!1);return Cx(a)&&!a.ae&&!a.wa&&!a.W&&(Dx(a)||jb(a.K,"fresca")||b)},tx=function(a,b,c){b=ej(b);
var d={};c&&F(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
F(b,function(a){a.url&&(a.url=ff(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b},gx=function(a){var b={};
F(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b},lx=function(a,b){if(b){var c=b.split(",");
2<=c.length&&(a.Ja=c[1],kx.test(a.Ja)&&-1==a.Ja.search(bx.F)||(a.Ja=""))}},mx=function(a){a=ej(a);
var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b},dx=function(a,b){for(var c=ej(b),d=0;d<c.length;d++){var e=c[d],h=e.u;
cx.test(h)&&(h={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:h,vss_id:e.v,kind:e.k},"asr"!=e.k&&(h.format=3),a.captionTracks.push(new mu(h)))}},ex=function(a,b){for(var c=ej(b),d=0;d<c.length;d++){var e=c[d];
a.captionTranslationLanguages.push(new lu({languageCode:e.lc,languageName:e.n}))}},wx=function(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.U),c=0;c<a.Ca.length;c++)for(var d=a.Ca[c],e=0;e<b.length;e++){var h=b[e],k=h.Fb.id==d.aid;
if(h==a.U&&c==a.rb||k){if(d.i)for(var k=d.i.split(","),l=0;l<k.length;l++)h.captionTracks[l]=a.captionTracks[(0,window.parseInt)(k[l],10)];d.d&&(h.Fk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(h.ti=a.captionTracks[(0,window.parseInt)(d.f,10)]);h.jo=(0,window.parseInt)(d.v,10)}}},Fx=function(a,b){return!!a.C[b]},Gx=function(a){return a.Ga&&!a.Od},Hx=function(a){return a.Ga&&a.Od},Ix=function(a){if(a.aa||a.Zc["3D"])return!0;
a=a.Zc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a},Jx=function(a,b){(0,window.isNaN)(a.Ve)&&(a.Ve=a.Ek,a.Pf&&a.Ve--,a.o&&1.5>=Pt(a.o)&&(a.Ti=.5>Math.random()),(!a.isLowLatencyLiveStream&&b.ga("html5_live_disable_dg_pacing")||a.Ti)&&a.Ve++,a.Ve=Math.max(0,a.Ve));
return a.Ve},Kx=function(a){if(!a.o)return!1;
for(var b in a.o.o){var c=a.o.o[b].info.video;if(c&&3==c.projectionType||c&&2==c.projectionType&&3==a.aa)return!0}return!1},Qx=function(a){Gj.call(this);
this.startSeconds=0;this.L=!1;this.o=0;this.title="";this.B=0;this.A=[];this.H=this.F=!1;this.fa=this.Ob=this.G=null;this.views=0;this.O=0!=a.fetch;this.C=[];this.o=Math.max(0,a.index||0);this.K=!!a.loop;this.startSeconds=a.startSeconds||0;this.U="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.P={};a.video_id&&(this.A[this.o]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);
this.J=0;if(a.list)switch(a.listType){case "user_uploads":Lx(this,a.list);break;case "user_favorites":Mx(this,a.list);break;case "search":Nx(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.D=wr(a.list),a.video?(this.A=a.video.slice(0),this.F=!0):Ox(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.o&&(this.A=[]);F(b,function(a){a&&this.A.push({video_id:a})},this);
this.B=this.A.length;b=fi(this.A,function(a){return a.video_id});
Px(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.F=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in bx.o)b="playlist_"+c,b=a[b+"_webp"]||a[b],kx.test(b)&&(this.P[bx.o[c]]=b);this.M=a.thumbnail_ids?a.thumbnail_ids.split(","):[]},Rx=function(a){return!!(a.playlist||a.list||a.api)},Sx=function(a){var b=a.o+1;
return b>=a.B?0:b},Tx=function(a){var b=a.o-1;
return 0>b?a.B-1:b},Ux=function(a,b){a.o=je(b,0,a.B-1);
a.startSeconds=0},Lx=function(a,b){a.H||(a.D=new vr("UU","PLAYER_"+b),Px(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))},Mx=function(a,b){a.H||(a.D=new vr("FL","PLAYER_"+b),Px(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))},Nx=function(a,b){if(!a.H){a.D=new vr("SR",b);
var c={search_query:b};a.U&&(c.mob="1");Px(a,"/search_ajax?style=json&embeddable=1",c)}},Ox=function(a){if(!a.H){var b={list:a.D},c=a.sb();
c&&c.videoId&&(b.v=c.videoId);Px(a,"/list_ajax?style=json&action_get_list=1",b)}},Px=function(a,b,c){a.O&&pj(ff(b,c),{format:"JSON",
qb:function(a,b){Vx(this,b)},
onError:function(){this.S("error")},
context:a})},Vx=function(a,b){if(b.video&&b.video.length){a.title=b.title;
a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.K=b.loop);var c=a.sb();a.A=[];F(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.A.push(a))},a);
a.B=a.A.length;b.index?a.o=b.index:Wx(a,c);a.setShuffle(!1);a.H=!1;a.F=!0;a.J++;a.G&&a.G()}},Wx=function(a,b){if(b){var c=b.videoId;
if(!a.A[a.o]||a.A[a.o].video_id!=c)for(var d=0;d<a.A.length;d++)if(a.A[d].video_id==c){a.o=d;break}}},Xx=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),h="";
0<c&&(h+=c+":",10>d&&(h+="0"));if(0<c||0<d)h+=d+":",10>e&&(h+="0");h+=e+":";10>b&&(h+="0");h+=b;return 0<=a?h:"-"+h},Yx=function(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey},Zx=function(a){return Rx(a)?(a.fetch=0,new Qx(a)):new bx(a)},$x=function(a,b,c,d){var e=b.sb();
M(a.element,"ytp-suggestion-set",!!e.videoId);var h=b.af();d=b.gc(c,d?d:"mqdefault.jpg");var k=ul||zc?b.Qk(c):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",l=b instanceof bx?Xx(b.lengthSeconds):null,m=!!h,h=m&&"RD"==wr(h).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCountText?b.author+" \u2022 "+e.shortViewCountText:b.author,watch:P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:l,url:b.Tk(c),episodic_title:b.title,is_episodic:e.El,
is_featured:e.Dp,is_list:m,is_mix:h,background:d?"background-image: url("+d+")":"",moving_thumbnail:k};b instanceof Qx&&(c.playlist_length=b.B,c.episodic_length=b.B,c.episodic_index=b.Kb());a.update(c)},ay=function(a){var b=a.V().experiments.ga("moving_thumbnails_autonav"),c=["img",
"ytp-upnext-moving-thumbnail",{src:"{{moving_thumbnail}}"}],c=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],b?c:null,["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",P("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",
P("YTP_AUTOPLAY_PAUSED_2")]],["span","ytp-upnext-close"]];R.call(this,c);var d=this.qa["ytp-upnext-cancel"],c=this.qa["ytp-upnext-close"],e=new R(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":P("YTP_AUTOPLAY_CANCEL")},P("YTP_CANCEL")]);H(this,e);e.R("click",this.cq,this);e.o(d);d=new R(["button",["ytp-upnext-close-button","ytp-button"]]);H(this,d);d.R("click",this.cq,this);d.o(c);c=this.qa["ytp-upnext-autoplay-icon"];Jf(c,'<svg height="100%" version="1.1" viewBox="0 0 98 98" width="100%"><circle class="ytp-svg-autoplay-circle" cx="49" cy="49" fill="#000" fill-opacity="0.8" r="48" /><circle class="ytp-svg-autoplay-ring" cx="-49" cy="49" fill-opacity="0" r="46.5" stroke="#FFFFFF" stroke-dasharray="293" stroke-dashoffset="-293" stroke-width="4" transform="rotate(-90)" /><polygon class="ytp-svg-autoplay-triangle" fill="#fff" points="32,27 72,49 32,71" /></svg>');
this.D=a;this.L=Mg("ytp-svg-autoplay-ring",this.element);this.H=this.G=this.A=this.F=null;this.J=new Ud(this.ji,5E3,this);H(this,this.J);this.K=0;S(this,c,"click",this.DB);this.bq();S(this,a,"autonavvisibility",this.bq);b&&S(this,this.qa["ytp-upnext-moving-thumbnail"],"load",this.HH)},by=function(a){a.A||(Fi("a11y-announce",P("YTP_PLAYLIST_UP_NEXT")+" "+a.F.title),a.K=At(),a.A=new Ud(a.lk,25,a),a.lk());
$d(a.element,"ytp-upnext-autoplay-paused")},dy=function(a){cy(a);
a.K=At();a.lk();L(a.element,"ytp-upnext-autoplay-paused")},cy=function(a){a.A&&(a.A.dispose(),a.A=null)},ey=function(){},fy=function(a){var b=window.location;
a=ff(a,{})+"";a=a instanceof kg?a:og(a);b.href=lg(a)},gy=function(a,b){var c=pi("EVENT_ID");
c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=pi("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Xe(window.location.href);e&&d.push(e);e=Xe(a);if(jb(d,e)||!e&&ta(a,"/"))if(d=Ve(a),d=Te(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)){var e=pi("ST_BASE36",!0),h;h=pi("ST_SHORT",!0)?"ST-":"s_tempdata-";d=h=e?h+Ua(d).toString(36):h+Ua(d);e=c?df(c):"";Yj(d,e,5);c&&(c=c.itct||c.ved,d=r("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new ey))}}},hy=function(a,b){window.open(a,b||
Ua(a).toString(36))},iy=function(a){var b=!a.V().ua&&3!=a.getPresentingPlayerType();
return a.Oa()||b},jy=function(a,b,c){if(!c&&Yx(a))return Nl(a),!0;
b.pauseVideo();a=a.currentTarget.getAttribute("href");gy(a,null);return!1},my=function(a,b,c){if(ky(b.V())&&2!=b.getPresentingPlayerType()){if(Yx(c))return b.Oa()&&ly(b),Nl(c),!0}else{var d=Yx(c);
d&&b.pauseVideo();gy(a,null);d&&(hy(a),Nl(c))}return!1},oy=function(a){var b=a.V(),c=b.experiments.ga("video_wall_moving_thumbnails_first"),d=b.experiments.ga("video_wall_moving_thumbnails_hover"),c=b.experiments.ga("video_wall_moving_thumbnails_autoplay")||d||c,d=b.experiments.ga("video_wall_redesign");
this.G=b.experiments.ga("endscreen_redirect")&&!ny(b);b=["img",["ytp-videowall-moving-thumbnail"],{src:"{{moving_thumbnail}}"}];R.call(this,["a","videowall-still",{href:"{{url}}",target:this.G?"_blank":null,"aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",d?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],c?b:null,["span","videowall-still-featured-label",
P("YTP_FEATURED")],["span",d?"ytp-redesign-videowall-still-info":"videowall-still-info",["span",d?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",d?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",["span",d?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",d?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author_and_views}}"],["span",d?"ytp-redesign-videowall-still-info-duration":
"videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",P("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],
["span",["videowall-still-listlabel-regular",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],P("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",d?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],P("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.A=a;
this.D=null;this.R("click",this.zF);this.R("keypress",this.AF);c&&S(this,this.qa["ytp-videowall-moving-thumbnail"],"load",this.CF)},py=function(a){var b=a.A.V(),b=a.D.Qk(b);
a.update({moving_thumbnail:b})},qy=function(a,b){Dq.call(this,a,"videowall-endscreen");
this.Z=b;this.J=0;this.G=[];this.H=this.D=null;this.M=this.W=!1;this.K=new sr(this);H(this,this.K);this.P=new Ud(pa(L,this.element,"ytp-show-tiles"),0);H(this,this.P);var c=this.A.V().experiments.ga("video_wall_pagination");if(c){var d=new R(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":P("YTP_PREVIOUS")}]);H(this,d);d.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M21.33,22 L15.33,16 L21.33,10 L19.33,8 L11.29,16 L19.33,24 L21.33,22 Z" fill="#fff" /></svg>';
d.o(this.element);d.R("click",this.nA,this)}this.O=new uq(["div","ytp-endscreen-content"]);H(this,this.O);this.O.o(this.element);c&&(c=new R(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":P("YTP_NEXT")}]),H(this,c),c.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M16.98,16 L10.98,10 L12.98,8 L21.01,16 L12.98,24 L10.98,22 L16.98,16 Z" fill="#fff" /></svg>',c.o(this.element),c.R("click",this.mA,this));this.A.V().experiments.ga("video_wall_redesign")&&
L(this.element,"ytp-endscreen-redesign");this.F=new ay(a);H(this,this.F);qr(this.A,this.F.element,4);this.ha();this.R("transitionend",this.uC)},sy=function(a){return ry(a.A.V(),a.A.getVideoData(),a.A.Zb())&&a.Xh()&&!a.H},ty=function(a,b,c){return 0==b&&a.D.length&&(b=c/qy.o,c/=qy.o,3<=b&&3<=c&&Zx(a.D[0]).sb().El||2<=b&&2<=c&&a.A.V().experiments.ga("video_wall_moving_thumbnails_first"))?2*qy.o:qy.o},vy=function(a){var b=uy(a.Z);
b!=a.W&&(a.W=b,a.A.S("autonavvisibility"))},yy=function(a){jq.call(this,a);
xi({});this.ra="endscreen";this.logEvent="end";this.A=null;var b=a.V();wy(a)?this.A=new qy(this.o,this):b.aa?this.A=new rr(this.o):this.A=new Dq(this.o);qr(this.o,this.A.element,4)},Ay=function(a){var b=a.getVideoData(),b=b&&b.Ga,c=a.getPresentingPlayerType();
return zy(a.V())&&2!=c&&3!=c&&!b},Cy=function(a){var b=a.o.getVideoData(),c=!wy(a.o)||!(!b.H||!b.H.length);
a.o.V();b=Fx(b,"ypc_module");a=By(a.o.app);return c&&!b&&!a},wy=function(a){a=a.V();
return a.md&&!a.aa},uy=function(a){return a.A instanceof qy&&a.A.B&&sy(a.A)},Dy=function(a){var b=Math.max(1E3*(a.o.getVideoData().lengthSeconds-10),0),b=new gq(b,0x8000000000000,{id:"preload"}),c=new gq(0x8000000000000,0x8000000000000,{id:"load",
priority:6});a.bb([b,c])},Ey=function(a){return Ay(a)?new yy(a):null},Gy=function(a){return(a=Fy[a.toString()])?a:"YTP_ERROR_LICENSE"},Hy=function(){var a=[],b=[];
return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}},Iy=function(a){var b="";
if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b},Jy=function(a,b){if(!a)return-1;
for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1},Ky=function(a,b){var c=Jy(a,b);
return 0<=c?a.end(c):window.NaN},Ly=function(a){return a&&a.length?a.end(a.length-1):window.NaN},My=function(a,b){var c=Ky(a,b);
return 0<=c?c-b:0},Ny=function(){},Py=function(a){a.src&&(rw&&0<a.readyState&&(a.currentTime=Math.max(Oy,0)),a.removeAttribute("src"),a.load(),!a.gf||!a.gf.o||a.gf&&a.gf.equals(null)||(a.gf&&a.gf.dispose(),a.gf=null))},Qy=function(a,b){this.A=a||64;
this.o=b||null},Vy=function(a,b,c,d){if(U(a,128))return a;
var e=a.A,h=a.o,k=b.target;if(!U(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.o.ended||"ended"==b.type&&(k.o.ended||1>Math.abs(k.getCurrentTime()-k.o.duration)))0<k.o.networkState&&k.o.src&&(e=14,h=null);else if("pause"==b.type)U(a,256)?(e^=256)||(e=64):U(a,32)||U(a,2)||U(a,4)||(e=4,U(a,1)&&U(a,8)&&(e|=1),h=null);else if("playing"==b.type)e=8,h=null,U(a,32)&&(e|=32),d&&U(a,1)&&Ry(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.getErrorCode())b="progressive.net";else if(3==k.getErrorCode())b=
"fmt.decode";else if(4==k.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:P("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(h=b,e|=128)}else if("progress"==b.type)Sy(a)&&Ry(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=Ty(k)&&(e|=1),e&=-3;else if("waiting"==b.type)U(a,2)||(e|=1);else if("timeupdate"==b.type)U(a,16)||U(a,4)||(e=Ry(c,k)?e|1:e&-2),1<k.o.readyState&&0<k.getCurrentTime()&&(e&=-65);else return a;
return Uy(a,e,h)},Ry=function(a,b){return a?Wy(a,b.getCurrentTime(),At(),Ty(b)):!1},Uy=function(a,b,c){return b==a.A&&c==a.o||b&128&&!c||b&2&&b&16?a:new Qy(b,c)},Xy=function(a,b){return Uy(a,a.A|b)},Yy=function(a,b){return Uy(a,a.A&~b)},Zy=function(a){return Uy(a,(a.A|4)&-9)},U=function(a,b){return!!(a.A&b)},Sy=function(a){return U(a,8)&&!U(a,2)},$y=function(a){return U(a,64)&&!U(a,8)&&!U(a,4)},az=function(a){return U(a,1)&&!U(a,2)},bz=function(a){return U(a,128)?-1:U(a,2)?0:U(a,1)&&!U(a,32)?3:U(a,
64)?-1:U(a,8)?1:U(a,4)?2:-1},cz=function(a,b,c){Gj.call(this);
this.F=b;this.o=7500+Math.floor(15E3*Math.random());this.G=c.innertubeApiKey;this.H=JSON.stringify({context:{client:{clientName:c.dz,clientVersion:c.innertubeContextClientVersion,hl:c.fz,gl:c.ez}},videoId:a});this.J="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.A=new Ud(y(this.D,this));H(this,this.A);this.D()?this.A.start(this.o):this.A.start(1E4)},dz=function(a){R.call(this,["a",
"ytp-fresca-suggested-central-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-promo-central",["div","ytp-fresca-suggested-header","{{suggested_header_central}}"],["div","ytp-fresca-suggested-central-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]);this.A=a;this.R("click",this.D,this)},ez=function(a){R.call(this,
["div",
"ytp-fresca-suggested-promo-sidebar",["div","ytp-fresca-suggested-sidebar-title","{{suggested_sidebar_title}}"],["button",["ytp-button","ytp-fresca-suggested-sidebar-close-button"],"{{suggested_sidebar_close}}"],["div","ytp-fresca-suggested-sidebar-items","{{sidebar_items}}"]]);this.A=[];this.D=a;this.F=!1},iz=function(a,b){a.C("suggested_sidebar_title",b.A?P("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.A}):"");
var c=a.qa["ytp-fresca-suggested-sidebar-close-button"];Jf(c,Pf());S(a,c,"click",a.kA);Nb(a.A);a.A=[];F(b.o,function(a,b){if(!(5<=b)&&a){var c=new R(["a","ytp-fresca-suggested-sidebar-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-sidebar",["div","ytp-fresca-suggested-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]),
k="background-image:"+fz(a),l=gz(a);c.update({suggested_title:a.Bs,suggested_content:hz(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.qa["ytp-fresca-suggested-image-badge"];M(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.R("click",this.Cz,this);this.A.push(c)}},a);
a.C("sidebar_items",a.A)},jz=function(a){R.call(this,["div",
"ytp-fresca-module",["div","ytp-fresca-slant",["div","ytp-fresca-slant-blur-image"],["div","ytp-fresca-slant-inner",["div","ytp-fresca-slant-overlay"],["div","ytp-fresca-slant-arrows"]]],["div","ytp-fresca-band-slate",["div","ytp-fresca-message",["h1","ytp-fresca-heading","{{heading}}"],["h2","ytp-fresca-byline","{{byline}}"],["h3","ytp-fresca-countdown","{{countdown}}"]]]]);this.K=a;this.G=0;this.A=null;this.H=-1;this.F=new dz(a);H(this,this.F);this.D=new ez(a);H(this,this.D);this.F.ha();this.F.o(this.element);
this.D.ha();this.D.o(this.element)},nz=function(a,b,c){if(!a.A||a.A.state!=b.state||a.A.startTime!=b.startTime||a.A.imageUrl!=b.imageUrl||a.A.messageText.join()!=b.messageText.join()||c)if(a.A=b,b=kz(b),M(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.A.imageUrl,b=a.qa["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=a.A.getMessage(),a.update({heading:b[0]||"",
byline:b[1]||"",countdown:b[2]||""}),a.J(!0),a.A.A&&!lz(a.K))if(mz(a.A.A)&&!kz(a.A)){b=a.F;c=a.A.A.o[0];var d;d=a.A.A;d=d.A?P("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.A}):"";var e="background-image:"+fz(c);b.update({suggested_header_central:d,suggested_title:c.Bs,suggested_content:hz(c),badge_content:gz(c),link_destination:c.getVideoUrl(),image_style:e});M(b.qa["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.F.show();a.D.ha()}else b=a.A.A,!(0<b.o.length)||
mz(b)||kz(a.A)||a.D.F?a.D.ha():(iz(a.D,a.A.A),a.D.show()),a.F.ha();else a.F.ha(),a.D.ha()},oz=function(a){var b=Math.floor(K()/1E3);
if(b>a)return"";a-=b;return 86400>a?Xx(a):259200>a?P("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})},pz=function(a,b,c,d,e,h){w(a)?(this.F="y"==a?b:0,this.D="m"==a?b:0,this.o="d"==a?b:0,this.A="h"==a?b:0,this.B="n"==a?b:0,this.C="s"==a?b:0):(this.F=a||0,this.D=b||0,this.o=c||0,this.A=d||0,this.B=e||0,this.C=h||0)},sz=function(a,b,c){ga(a)?(this.date=qz(a,b||0,c||1),rz(this,c||1)):ia(a)?(this.date=qz(a.getFullYear(),a.getMonth(),a.getDate()),
rz(this,a.getDate())):(this.date=new Date(K()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),rz(this,a))},qz=function(a,b,c){b=new Date(a,b,c);
0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b},rz=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))},tz=function(){},vz=function(a){if("number"==typeof a){var b=new tz;
b.B=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Pa(c,2));c=d.join("")}b.C=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=uz(a);b.D=[c,c];b.o={$M:a,Sn:a};b.A=[];return b}b=new tz;b.C=a.id;b.B=-a.std_offset;b.D=a.names;b.o=a.names_ext;b.A=a.transitions;return b},uz=function(a){var b=["GMT"];
b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")},wz=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.A.length&&c>=a.A[d];)d+=2;
return 0==d?0:a.A[d-1]},Az=function(a,b){this.A=[];
this.o=b||xz;"number"==typeof a?yz(this,a):zz(this,a)},Bz=function(a){return a.getHours?a.getHours():0},zz=function(a,b){for(Cz&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<Dz.length;++c){var d=b.match(Dz[c]);
if(d){d=d[0];b=b.substring(d.length);0==c&&("''"==d?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.A.push({text:d,type:c});break}}},yz=function(a,b){var c;
if(4>b)c=a.o.$j[b];else if(8>b)c=a.o.Tn[b-4];else if(12>b)c=a.o.Hu[b-8],c=c.replace("{1}",a.o.$j[b-8]),c=c.replace("{0}",a.o.Tn[b-8]);else{yz(a,10);return}zz(a,c)},Ez=function(a,b){var c;
c=String(b);var d=a.o||xz;if(void 0!==d.cw){for(var e=[],h=0;h<c.length;h++){var k=c.charCodeAt(h);e.push(48<=k&&57>=k?String.fromCharCode(d.cw+k-48):c.charAt(h))}c=e.join("")}return c},Fz=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");
},Gz=function(a,b,c,d,e,h){var k=b.length;
switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.o.Lu[c]:a.o.Mu[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),Ez(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.o.vv[c];break a;case 4:k=a.o.Jn[c];break a;case 3:k=a.o.Ln[c];break a;default:k=Ez(a,Pa(c+1,k))}return k;case "k":return Fz(e),Ez(a,Pa(Bz(e)||24,k));case "S":return Ez(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));case "E":return c=d.getDay(),4<=k?a.o.Vn[c]:a.o.Mn[c];
case "a":return Fz(e),k=Bz(e),a.o.En[12<=k&&24>k?1:0];case "h":return Fz(e),Ez(a,Pa(Bz(e)%12||12,k));case "K":return Fz(e),Ez(a,Pa(Bz(e)%12,k));case "H":return Fz(e),Ez(a,Pa(Bz(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.o.Qv[c];break a;case 4:k=a.o.Qn[c];break a;case 3:k=a.o.Pn[c];break a;default:k=Ez(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.o.Pv[c];break a;case 4:k=a.o.Nn[c];break a;case 3:k=a.o.On[c];break a;default:k=Ez(a,Pa(c+1,k))}return k;case "Q":return c=
Math.floor(d.getMonth()/3),4>k?a.o.Jv[c]:a.o.Cv[c];case "d":return Ez(a,Pa(d.getDate(),k));case "m":return Fz(e),Ez(a,Pa(e.getMinutes(),k));case "s":return Fz(e),Ez(a,Pa(e.getSeconds(),k));case "v":return k=h||vz(c.getTimezoneOffset()),k.C;case "V":return a=h||vz(c.getTimezoneOffset()),2>=k?a.C:0<wz(a,c)?p(a.o.Ku)?a.o.Ku:a.o.DST_GENERIC_LOCATION:p(a.o.Sn)?a.o.Sn:a.o.STD_GENERIC_LOCATION;case "w":return c=a.o.ck,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),b=a.o.bk||0,c=e.valueOf()+864E5*(((p(c)?
c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),Ez(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=h||vz(c.getTimezoneOffset()),4>k?a.D[0<wz(a,c)?2:0]:a.D[0<wz(a,c)?3:1];case "Z":return e=h||vz(c.getTimezoneOffset()),4>k?(k=-(e.B-wz(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=Ez(a,uz(e.B-wz(e,c))),k;default:return""}},Hz=function(a){this.D=a.thumbnailUrl?a.thumbnailUrl:null;
this.o=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Bs=a.title;this.A=a.state;this.B=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.F=a.videoUrl;this.C=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null},fz=function(a){return(a=a.D)?"url("+a+")":""},hz=function(a){if("COMPLETE"==a.A){var b=Math.floor(K()/1E3);
a=a.o?b-a.o:0;return 172800<a?P("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(K()/1E3),a=a.o?a.o-b:0,172800<a?P("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_STREAMING_SOON")):a.B&&2<a.B?P("YTP_FRESCA_VIEWERS_WATCHING_NOW",{VIEWER_COUNT:a.B}):P("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")},
gz=function(a){return"COMPLETE"==a.A&&a.C?Xx(a.C):a.isLive()?P("YTP_FRESCA_LIVE_BADGE"):null},Iz=function(a){this.A=a.channelName?a.channelName:"";
this.o=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.o.push(new Hz(a[b]))},mz=function(a){return 1==a.o.length&&a.o[0].isLive()},Kz=function(a,b){this.state=-1;
this.B=a;this.messageText=[];this.C=!1;b&&Jz(this,b)},Jz=function(a,b){var c=b.lifeCycleState;
c&&(a.state=Lz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.C=0<=db(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.A=new Iz(b)},Mz=function(a){switch(a.state){case 6:return!a.o()&&a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),
null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.o()?[]:[P("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),P("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[P("YTP_FRESCA_EVENT_OVER_MESSAGE"),P("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(kz(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.B&&a.startTime){var b=pi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;xz={Jn:b.months,Nn:b.months,Ln:b.shortMonths,On:b.shortMonths,$j:b.dateFormats,Vn:b.weekdays,Qn:b.shortMonths,
Mn:b.shortWeekdays,Pn:b.shortWeekdays,Zv:b.weekendRange,bk:b.firstDayOfWeek,ck:b.firstWeekCutoffDay,En:b.amPms};c=(new Az(d)).format(new Date(1E3*c))}b=Math.floor(K()/1E3);return[b<=a.startTime?P("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?P("YTP_FRESCA_EVENT_STARTING_SOON"):P("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.B?[P("YTP_FRESCA_EVENT_OFFLINE")]:[P("YTP_FRESCA_STAND_BY_MESSAGE")]}},kz=function(a){if(!a.startTime)return!1;
var b=a.startTime-Math.floor(K()/1E3);return jb(Nz,a.state)&&86459>=b&&86400<=b},Oz=function(a){jq.call(this,a);
this.logEvent=this.ra="fresca";this.B=this.J=!1;this.C=null;xi({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live stream is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video was interrupted",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"The streamer stopped streaming.",YTP_FRESCA_EVENT_OFFLINE:"Offline",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"This stream is",YTP_FRESCA_EVENT_STARTS_IN:"Watch the live stream!",
YTP_FRESCA_EVENT_STARTING_SOON:"Live stream is starting soon",YTP_FRESCA_EVENT_HASNT_STARTED:"This scheduled live stream hasn't started yet",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME is streaming now!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Other live streams by $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Live",YTP_FRESCA_LIVE_DAYS_AGO:"Streamed $DAYS days ago",YTP_FRESCA_LIVE_HOURS_AGO:"Streamed $HOURS hours ago",YTP_FRESCA_LIVE_RECENTLY:"Recently live",YTP_FRESCA_LIVE_IN_DAYS:"Live in $DAYS days",YTP_FRESCA_LIVE_IN_HOURS:"Live in $HOURS hours",
YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT watching now",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"Streaming now",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS days",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS hours"});this.G=!1;this.K="leanback"!=this.o.V().Aa},Qz=function(a,b){if(!a.K)return!1;
var c=!!b.getMessage().length||!!b.imageUrl;if(!a.B&&6>b.state)return c;if(a.o.app.A.J&&(b.imageUrl||b.messageText.length))return!0;var d=Pz(a.o),d=az(d)||U(d,2),e;if(e=!a.A.o())(e=!a.B)||(e=!(Pz(a.o).ib()&&!Gx(a.o.getVideoData())&&!a.o.app.A.J)&&d);return e||a.J&&a.o.app.A.J||!a.B&&6<b.state?c:!1},Sz=function(a,b){var c=Qz(a,b);
if(!a.B)switch(b.state){case 6:b.o()&&(a.B=!0,nq(a));break;case 8:case 7:a.B=!0}c&&nz(a.D,b);c&&!a.loaded?(a.load(),Rz(a.o)):!c&&a.loaded&&(a.unload(),Rz(a.o))},Tz=function(a){return Fx(a.getVideoData(),"fresca_module")?new Oz(a):null},Uz=function(a,b){if(!a.A||!a.A.equals(b)){a.A=b;
var c=a.o,d;d={hasActiveStream:b.o(),imageUrl:b.imageUrl,messageText:b.getMessage(),startTime:b.startTime,state:b.state};Rz(c,d)}},Vz=function(){if(!Rg)return!1;
try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}},Yz=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");
if(Wz){var b=Xz();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");},Zz=function(a){var b=a.xml;
if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");},$z=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Hg(a);
"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=Hg(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null},Xz=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");
a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}return a},aA=function(a){this.A=a||window;
this.o=[]},bA=function(a,b,c){c=y(c,a.A);
b=Fl(b,"mouseleave",c);a.o.push(b);return b},cA=function(a,b,c,d){c=y(c,d||a.A);
b=Hl(b,c);a.o.push(b)},dA=function(a,b,c){G.call(this);
this.o=null;this.C=!1;this.F=a;this.D=c;this.A=b||window;this.B=y(this.jx,this)},eA=function(a){a=a.A;
return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},fA=function(a){a=a.A;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null},iA=function(a){a=ma(a);
delete gA[a];ac(gA)&&hA&&hA.stop()},kA=function(){hA||(hA=new Ud(function(){jA()},20));
var a=hA;a.isActive()||a.start()},jA=function(){var a=K();
Ob(gA,function(b){lA(b,a)});
ac(gA)||kA()},mA=function(){J.call(this);
this.o=0;this.endTime=this.startTime=null},nA=function(a,b,c,d){mA.call(this);
if(!da(a)||!da(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.B=a;this.H=b;this.duration=c;this.F=d;this.A=[];this.progress=this.G=0;this.D=null},lA=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);
1<=a.progress&&(a.progress=1);a.G=1E3/(b-a.D);a.D=b;oA(a,a.progress);1==a.progress?(a.o=0,iA(a),a.Xb(),a.Yg()):a.ib()&&a.Ul()},oA=function(a,b){ha(a.F)&&(b=a.F(b));
a.A=Array(a.B.length);for(var c=0;c<a.B.length;c++)a.A[c]=(a.H[c]-a.B[c])*b+a.B[c]},pA=function(a,b){jc.call(this,a);
this.x=b.A[0];this.y=b.A[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.G;this.state=b.o},qA=function(a){return Math.pow(a,3)},rA=function(a){return 3*a*a-2*a*a*a},sA=function(a){this.o="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1},tA=function(a,b){var c=a.A(b,void 0);
return-1==(0==c?a.o:c)?"rtl":"ltr"},uA=function(){this.o=[];
this.A=iq},vA=function(a,b){for(var c=[],d=0;d<a.o.length;++d){var e=a.o[d];
e.contains(b)&&c.push(e);if(e.start>b)break}return c},xA=function(a){return a.o.slice(wA(a,0x7ffffffffffff),a.o.length)},wA=function(a,b){var c=Bb(a.o,function(a){return b-a.start||1});
return 0>c?-(c+1):c},yA=function(a,b){for(var c=void 0,d=0;d<a.o.length;d++){var e=a.o[d];
e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c},zA=function(a,b,c,d){G.call(this);
this.B=window.NaN;this.G=!1;this.F=null;this.H=this.J=this.C=!1;this.O=a;this.P=b;this.K=c;this.L=d;this.M=new Ud(this.Ld,250,this);H(this,this.M);this.D=new Ud(this.Ld,0,this);H(this,this.D);this.A=[];this.o=new uA},AA=function(a,b){var c=[];
if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.A.indexOf(e)&&(a.A.push(e),c.push([1,e]))}return c},BA=function(a,b){var c=[];
if(!b.length)return c;b.sort(iq);for(var d=0;d<b.length;d++){var e=b[d];a.A.splice(a.A.indexOf(e),1);c.push([2,e])}return c},CA=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},DA=function(a){return da(a)&&a.length?a[0]:a},EA=function(a){var b=/.+/;
return w(a)&&null!=b&&null!=a&&a.match(b)?a:""},FA=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},GA=function(a){return w(a)?a:""},HA=function(a,b,c){for(var d in b)if(b[d]==a)return a;
return c},IA=function(a,b){return"true"==a||"false"==a?"true"==a:b},JA=function(a,b){return w(a)?(0,window.parseFloat)(a):b},KA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);
if(null!=a&&!(0,window.isNaN)(a)){if(d)return je(a,b,c);if(a>=b&&a<=c)return a}return e},LA=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;F(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b},MA=function(a,b){if(null==a)return null;
if(ea(a)){var c=[];F(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]},NA=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new se((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},OA=function(a){function b(a){return Zd(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)},PA=function(a,b,c,d){this.value=a;
this.target=b;this.showLinkIcon=c;this.bj=d},RA=function(a){if(!a)return null;
var b=GA(a.value);if(!b)return null;var c=HA(a.target,QA,"current");return null==c?null:new PA(b,c,IA(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)},SA=function(a){return a.value?a.value:null},UA=function(a){var b;
(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=TA(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1},TA=function(a){a=a.replace(/^(https?:)?\/\//,"");
a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()},VA=function(a){a=SA(a);
if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!UA(a))||(b=We(Ve(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=fj(a);if(!b||!b.v)return null;if(b.t)return CA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=dj(a[1]))&&a.t?CA(a.t):-1},WA=function(a){a=SA(a);
a=a.replace(/https?:\/\//g,"");return UA(a)?(a=fj(a))&&a.v?a.v:null:null},YA=function(a,b,c,d){(a=SA(a))?UA(a)?d=gj(a,{feature:"iv",
src_vid:c,annotation_id:b},!1):(a?(b=TA(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(XA,d.pageId,d.Bb),a=new N(a),qf(a,d(a.B)),d=a.toString()):d=a):d=null;return d},XA=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},ZA=function(a,b){return b?b:UA(a)?"current":"new"},aB=function(a){this.A=a;
this.o=0;this.D=window.NaN;this.B=0;this.sa=[];this.C=$A(this.A);this.F=this.G=0},bB=function(a){a.C.startTime=a.B;
a.C.endTime=a.o;a.sa.length&&cb(a.sa).isEmpty()?a.sa[a.sa.length-1]=a.C:a.sa.length&&a.C.isEmpty()||a.sa.push(a.C);a.G+=a.o-a.B;a.C=$A(a.A);a.B=a.o},cB=function(a){return a.G+a.A.A()-a.B},dB=function(a){a.sa.length&&a.o==a.B||bB(a);
var b=a.sa;a.sa=[];return b},eB=function(a,b,c){c-=a.D;
return b==a.o&&.5<c},fB=function(a,b){this.o=b;
this.B=!1;this.videoData=a},gB=function(a,b,c){fB.call(this,b,c);
this.C=a},hB=function(a){G.call(this);
this.o=a;this.B={};this.P=window.NaN;this.F=new Ud(this.VA,3E4,this);H(this,this.F);this.G=new Ud(this.gj,100,this);H(this,this.G);this.A="N";this.D=0;this.O=window.NaN;this.U=0;this.K=this.W="";this.Z=-1;this.J=this.L=0;this.M=this.H=!1;this.C=null;window.navigator.getBattery&&window.navigator.getBattery().then(y(function(a){this.C=a},this))},iB=function(a,b,c,d){var e=a.B[c];
e||(e=[],a.B[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))},jB=function(a){var b={event:"streamingstats"};
if(a.o.videoData.B){b.fmt=a.o.videoData.B.id;var c=a.o.videoData.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.o.videoData.clientPlaybackNonce;b.ei=a.o.videoData.eventId;b.el=a.o.o.Aa;b.docid=a.o.videoData.videoId;b.ns=a.o.o.ea;b.fexp=a.o.o.experiments.experimentIds.toString();b.cl=a.o.o.ia;a.o.o.adFormat&&(b.adformat=a.o.o.adFormat);a.o.videoData.Ga&&(b.live=a.o.videoData.Od?"dvr":"live");b.html5="1";return b},kB=function(a,b,c,d){var e=a.o.A();
c=[c,e.toFixed(3)];d&&c.push(d);iB(a,b,"error",c)},lB=function(a,b){var c=a.B.cat||[];
c.push(b);a.B.cat=c},nB=function(a,b,c,d){this.ea=b;
this.segments=[];this.experimentIds=[];this.J=this.Ia=this.ia=this.fa=this.Ca=this.autoplay=this.autonav=!1;this.W="yt";this.K=this.A=this.D=null;this.U=!1;this.C="watchtime"==c;this.O="playback"==c;this.Ea="delayplay"==c;this.F="atr"==c;this.Fa="engage"==c;this.aa=!1;this.Z=this.F?"/api/stats/"+c:"//"+b.rd+"/api/stats/"+c;d&&(this.ia=d.fs,d.rtn&&(this.A=d.rtn),this.C?(this.Ob=d.state,0<d.rti&&(this.D=d.rti)):(this.Ja=d.mos,this.Ra=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav));
this.adFormat=b.adFormat;b.experiments.ga("legacy_autoplay_flag")&&(this.autoplay=b.K);this.fb=b.fa;this.gb=ec(b.A);this.ua=b.W;this.jb=b.Aa;this.experimentIds=b.experiments.experimentIds;this.da=b.O;this.W=b.ea;this.region=b.region;this.Pb=b.ia?b.ia.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.$a=mB();this.aa=b.experiments.o;this.G=a.oauthToken||this.G;b=this.ea;this.autoplay=b.experiments.ga("legacy_autoplay_flag")||"detailpage"!=b.Aa?a.Lc:a.Lc&&a.Pi;this.autonav=a.Pi||
this.autonav;this.K=a.Ej;this.clientPlaybackNonce=a.clientPlaybackNonce;this.P=a.vssCredentialsToken;this.xa=a.Mm;this.H=a.Cj;this.Ka=a.$e;a.B&&(this.ma=a.B.id,a.F&&a.F.id!=this.ma&&(this.M=a.F.id));this.J=a.ng;this.rb=a.Dj;a.Ga&&(this.Ma=a.Od?"dvr":"live");this.wb=a.Ym;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Wa||a.playlistId;this.ka=a.ea;this.wa=a.da;this.$b=a.Fe;this.subscribed=a.subscribed;this.videoId=a.videoId;this.ac=a.Yh;this.visitorData=a.visitorData;this.osid=
a.osid;this.xb=a.Rh;this.referrer=a.referrer;this.Ua=a.Ra||a.Ee;this.searchQuery=a.searchQuery},oB=function(a,b){if(a.F)return null;
var c=a.G&&jj(),d=a.aa&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.G);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Xb:b}},pB=function(a,b,c,d){b.cmt=b.len;
b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=ff(a,b);c?pj(a,c):Xp(a)},rB=function(a){var b={ns:a.W,
el:a.jb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.o(a.H),plid:a.playbackId,ei:a.eventId,fmt:a.ma,fs:a.ia?"1":"0",rt:a.o(a.Wa),of:a.xb,adformat:a.adFormat,content_v:a.fb,euri:a.ua,subscribed:a.subscribed,lact:a.$a,live:a.Ma,cl:a.Pb,mos:a.Ja,q:a.searchQuery,osid:a.osid,state:a.Ob,vm:a.ac,volume:a.Ra};qa(b,a.gb);a.autonav&&(b.autonav="1");if(a.ea.experiments.ga("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.J)b.autoplay="1";a.fa&&(b["final"]=
"1");a.J&&(b.splay="1");a.Ka&&(b.delay=a.Ka);a.da&&(b.hl=a.da);a.region&&(b.cr=a.region);p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);p(a.Y)&&(b.len=a.o(a.Y));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.A&&(b.rtn=a.o(a.A));a.Ua&&(b.feature=a.Ua);a.playlistId&&(b.list=a.playlistId);a.ka&&(b.ctrl=a.ka);a.wa&&(b.ytr=a.wa);a.$b&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.C?(b.idpj=a.rb,b.ldpj=a.wb,null!=a.D&&(b.rti=a.o(a.D))):p(a.adType)&&(b.at=a.adType);(a.O||a.Ea)&&
a.K&&(b.tst=a.K);a.C&&(b.st=qB(a,fi(a.segments,function(a){return a.startTime})),b.et=qB(a,fi(a.segments,function(a){return a.endTime})));
xh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=qB(a,fi(a.segments,function(a){return a.visibilityState})));
xh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=qB(a,fi(a.segments,function(a){return a.playbackRate})));
xh(a.segments,function(a){return"-"!=a.rk})&&(b.cc=fi(a.segments,function(a){return a.rk}).join(","));
if(xh(a.segments,function(a){return!!a.nk})){var c="au";
a.O&&(c="au_d");b[c]=fi(a.segments,function(a){return a.nk}).join(",")}jj()&&a.P&&(b.ctt=a.P,b.cttype=a.xa);
a.Fa&&(b.etype=p(a.B)?a.B:0);return b},qB=function(a,b){return fi(b,a.o).join(",")},sB=function(a){G.call(this);
this.o=a;this.B=new hB(a);H(this,this.B);this.A=new aB(a);this.F="paused";this.G=window.NaN;this.J=[10,10,10,40];this.K=this.H=0;this.P=this.O=this.M=this.L=this.C=!1;this.D=window.NaN;this.U=new gB(this.A,this.o.videoData,this.o.o)},uB=function(a,b,c){var d=tB(a.o);
c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.J[a.H];a.H+1<a.J.length&&a.H++;c=c+e;d=1E3*(c-d);a.G=ri(y(a.EA,a,c,b),d);return c},wB=function(a,b){var c=vB(a.o);
qa(c,{state:a.F});c=new nB(a.o.videoData,a.o.o,b,c);c.H=a.o.A();a.o.videoData.Ga||(c.Y=a.o.D());c.Wa=tB(a.o);c.segments=[$A(a.o)];return c},xB=function(a,b){var c=wB(a,"watchtime");
c.segments=b;c.H=a.A.o;return c},yB=function(a){a.A.update();
return xB(a,dB(a.A))},BB=function(a){a.o.videoData.remarketingUrl&&!a.O&&(zB(a,a.o.videoData.remarketingUrl),a.O=!0);
a.o.videoData.ppvRemarketingUrl&&!a.P&&(zB(a,a.o.videoData.ppvRemarketingUrl),a.P=!0);AB(a)},EB=function(a,b){if(!a.isDisposed()){U(b.state,2)?(a.F="paused",0<CB(b,2)&&a.C&&yB(a).send()):U(b.state,8)?(a.F="playing",a.C&&(0,window.isNaN)(a.G)&&uB(a,!1)):a.F="paused";
var c=a.B,d=b.state,e=tB(c.o),h;h=b.state;if(U(h,128))h="ER";else if(U(h,16)||U(h,32))h="S";else{var k=DB[bz(h)];"B"==k&&U(h,4)&&(k="PB");h=k}if(h!=c.A){k=h;if(!(e<c.D)){if("PL"==c.A)c.J+=e-c.D;else if("B"==c.A&&c.H&&(c.H=!1,c.L+=e-c.D,!c.M&&10<=c.L&&180>=c.J)){c.o.G();if(!c.isDisposed()){var l=jB(c);l.qoealert="1";l=ff(c.o.o.od,l);Xp(l)}c.M=!0}"B"!=k||"PL"!=c.A&&"PB"!=c.A||(c.H=!0);c.D=e}!c.o.o.experiments.A||"B"!=h&&"PB"!=h?iB(c,e,"cmt",[c.o.A().toFixed(3)]):c.gj(e);iB(c,e,"vps",[h]);c.A=h}U(d,
128)&&kB(c,e,d.o.errorCode,d.o.errorDetail);(U(d,2)||U(d,128))&&c.eh(e);a.D&&U(b.state,128)&&(a.kj("error-100"),ti(a.D))}},FB=function(a){a.D=si(y(a.kj,a,"heartbeat"),3E4)},AB=function(a){a.o.videoData.D.eventLabel=a.o.o.Aa;
a.o.videoData.D.playerStyle=a.o.o.o;a.o.videoData.ma&&(a.o.videoData.D.feature="pyv");a.o.videoData.D.vid=a.o.videoData.videoId;a.o.videoData.D.isAd=!("adunit"!=a.o.o.Aa&&!a.o.videoData.ma)},zB=function(a,b,c){a.o.o.experiments.o&&a.o.videoData.visitorData&&ij(b)?pj(b,{Xb:c,
headers:{"X-Goog-Visitor-Id":a.o.videoData.visitorData}}):Xp(b,c)},GB=function(a,b){this.ca=b;
this.o={}},KB=function(a,b,c){if(b){var d=HB(a,b);
a.o[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=sb(c||[]);30==d["a-type"]&&(c=IB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);JB(a,d,b)}},LB=function(a,b,c,d,e,h){if(b){var k=HB(a,b);
k["iv-event"]=3;k["i-time"]=a.o[b]||"";hc(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=IB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);JB(a,k,b,c,h)}},MB=function(a,b){if(b){var c=HB(a,b);
c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=[];if(30==c["a-type"]){var e=IB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}JB(a,c,d)}},IB=function(a,b,c){a=a.ca.getVideoData();
if(a.fb){if((c=a.fb[c])&&ox.test(c))return a=wa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.xa)return hj(a.xa,{label:c,value:"a_id="+b});return""},JB=function(a,b,c,d,e){var h=1,k,l=-1;
if(d){var m=!1;k=function(){h--;h||m||((0,window.clearTimeout)(l),m=!0,d())};
l=(0,window.setTimeout)(function(){m=!0;d()},1E3)}F(c||[],function(a){h++;
Xp(a,k)});
e&&(h++,0!=e&&a.ca.pg(e,k));a.cb(b,k)},HB=function(a,b){var c={};
if(b){var d=new tf(b);F(d.Pa(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.ca.getCurrentTime().toFixed(2);
c.ps=a.ca.V().o;return c},NB=function(a,b,c,d){d=HB(a,d);
d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;JB(a,d,c)},OB=function(a,b,c,d){c&&(c=HB(a,c),c["iv-event"]=b,JB(a,c,d))},PB=function(a,b){this.Ka=a;
this.context=b;this.Nm=!1;this.K=0},QB=function(a,b,c,d,e,h){b=new gq(b,c,{id:d});
b.o="iv-module";e&&hq(b).subscribe("onEnter",e,a);h&&hq(b).subscribe("onExit",h,a);a.context.A.bb([b])},RB=function(a){return K()-a.K},SB=function(a,b,c,d,e,h,k){var l=y(function(){k&&this.context.A.pauseVideo();
var a=fj(b),d=null;"ei"in a&&(d={ei:a.ei},b=lf(b,"ei"));gy(b,d);hy(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=RB(a);LB(a.context.logger,d,l,m,e,h)},TB=function(a,b){R.call(this,["div",
"ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.ca=a;this.K=new nr(this,250,!1,250);H(this,this.K);this.P=b;this.A=null;this.M=new Ud(this.qB,300,this);this.L=new Ud(this.oB,2E3,this);this.O=new sA(null);this.G=[];this.F=this.D=this.J=this.H=null;S(this,b.element,"mouseover",this.Mt);S(this,b.element,"mouseout",this.ee);S(this,a,"cardsteasershow",this.oC);S(this,a,"cardsteaserhide",this.Eh);this.R("click",this.EG);this.R("mouseenter",this.CG);this.R("mouseleave",
this.DG)},UB=function(a){if(!a||0==a.length)return"";
var b=["ul","ytp-cards-hover-card-metadata"];F(a,function(a){b.push(["li","",a])});
return b},VB=function(a,b){if(b){var c=b.yk?"":["h2",
"ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,UB(b.Gd)]];a.D=new R(c);a.D.o(a.element);c=Mg("ytp-cards-hover-card",void 0);S(a,c,"click",pa(a.lq,b));S(a,c,"mouseenter",a.ly);S(a,c,"mouseleave",a.my)}},XB=function(a,b){a.C("text",b.teaserText);
a.element.setAttribute("dir",tA(a.O,b.teaserText));a.K.show();VB(a,b.Di);b.Di&&b.Di.yk&&L(a.element,"ytp-cards-combined-teaser");a.H=new Ud(function(){L(this.ca.Da(),"ytp-cards-teaser-shown")},0,a);
a.H.start();WB(a.P,!1);a.A=new Ud(a.Eh,580+b.durationMs,a);a.A.start();b.pw&&L(a.element,"ytp-cards-auto-open-hover-card");b.yz&&(new Ud(function(){L(this.ca.Da(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.G.push(a.R("mouseover",a.Mt,a));a.G.push(a.R("mouseout",a.ee,a))},YB=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.D=b.auto_open||!1;this.Ta=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={xp:a.impression,click:a.click,close:a.close,FD:a.teaser_impression,xm:a.teaser_click}},ZB=function(a,b,c){YB.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.Gd=b.meta_info;this.url=RA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},$B=function(a,b,c){YB.call(this,a,b,c);
this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.B=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=RA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=RA({target:"current",value:b.signin_url}));this.G=b.signin_title||null;this.F=b.signin_message||null},aC=function(a,b,c){$B.call(this,a,b,c);
this.H=b.ypc_flow_type;this.C=b.innertube_request_params},bC=function(a,b,c){this.o=a;
this.B=b;this.D=c;this.C=new sA(null)},eC=function(a,b){var c=["ul",
"",{role:"radiogroup"}];F(b.choices,function(a){c.push(["li",b.C+"-"+a.index.toString(),["label","",["input","iv-card-poll-choice-input",{type:"checkbox",role:"radio",name:b.C+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}],["span","iv-card-poll-choice-text",["span","iv-card-poll-choice-percent"],cC(this,"span",void 0,a.desc)]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d={};b.B&&(d["aria-label"]=P("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",cC(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.B&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",P("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:SA(b.B)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]));e=new R(["div",e].concat(d));d=e.element;dC(b,d);cA(a.o.o,d,pa(a.G,b),a);
F(Lg("iv-card-poll-choice-input",d),function(a){this.o.o.R(a,"focus",pa(this.A,!0));this.o.o.R(a,"blur",pa(this.A,!1))},a);
b.B&&(d=Mg("iv-card-sign-in-button",d),a.B(d,b.B,b.id,b.Ta,b.o.click,5));return e},jC=function(a,b,c,d){var e=fC(a,b.url,b.id),h=b.displayDomain?["div",
"iv-card-image-text",b.displayDomain]:"",k=gC(a,b),l=["iv-card"];b.A&&l.push("iv-card-unavailable");e=["div",l,["a","iv-click-target",{href:e},hC(b.imageUrl,h),["div","iv-card-content",cC(a,"h2",void 0,b.title),k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],cC(a,"h2",void 0,b.G||""),["p","",b.F],["a",["iv-card-sign-in-button","iv-button"],{href:SA(b.A)},cC(a,"span","iv-button-content",P("YTP_SIGN_IN"))]]]));e=new R(e);iC(a,e,b,c,d);return e},lC=function(a,b,c){var d=fC(a,b.url,b.id),e=["yt-badge",
"standalone-ypc-badge-renderer-icon",b.F?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],h={},e=b.C&&b.B?["span",e,h,b.B]:"";c=["div",["iv-card",c],["a","iv-click-target",{href:d},hC(b.G,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],kC(a,b)]]];c=new R(c);iC(a,c,b);return c},mC=function(a,b){return b.customMessage?cC(a,"div","iv-card-message",b.customMessage):""},hC=function(a,b){var c=
["div",
"iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c},kC=function(a,b){if(!b.Gd||0==b.Gd.length)return"";
var c=["ul","iv-card-meta-info"];F(b.Gd,function(a){c.push(cC(this,"li","",a))},a);
return c},cC=function(a,b,c,d){c?w(c)?c={"class":c}:da(c)&&(c={"class":c.join(" ")}):c={};
c.dir=tA(a.C,d);return[b,c,d]},gC=function(a,b){if(!b.customMessage)return"";
var c=["iv-card-action","iv-card-primary-link"],d={};b.B&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.B+");");d.dir=tA(a.C,b.customMessage);c=["div",c,d,["span","",b.customMessage]];b.showLinkIcon&&(c.push("\u00a0"),c.push(["span","iv-card-link-icon"]));return c},dC=function(a,b){var c=0;
F(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],h=Mg(a.C+"-"+e.index.toString(),b),e=e.count/c;null==a.A&&(e=0);M(h.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.A==d);h.getElementsByTagName("input")[0].checked=a.A==d;var k=Math.floor(100*e).toFixed(0),l=Mg("iv-card-poll-choice-percent",h);mh(l,P("YTP_DRAWER_POLL_PERCENT",{PERCENT:k}));h=Mg("iv-card-poll-result-bar",h);Iq(h,"transform","scaleX("+e.toFixed(2)+")")}M(b,"iv-card-poll-voted",null!=a.A);M(b,"iv-card-poll-expanded",
null!=a.A&&1<a.choices.length)},nC=function(a,b,c,d){d?(c&&a.o.videoData.Ga||a.o.A.pauseVideo(),a.o.A.Oa()&&ly(a.o.A),LB(a.o.logger,b.Ta,d,void 0,b.o.click,5)):a.D(b.url,b.id,b.Ta,b.o.click,5)},fC=function(a,b,c){return b?YA(b,c,a.o.videoData.videoId,a.o.B):null},iC=function(a,b,c,d,e){c.A&&oC(a,Lg("iv-card-sign-in-button",b.element),c,c.A,e);
oC(a,Lg("iv-click-target",b.element),c,c.url,d)},oC=function(a,b,c,d,e){F(b,function(a){if(e){var b=y(function(a){a.stopPropagation();
a.preventDefault();e();return!1},this);
this.o.o.R(a,"click",b)}else this.B(a,d,c.id,c.Ta,c.o.click,5)},a)},pC=function(a,b,c){YB.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.Gd=b.meta_info;this.url=RA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},qC=function(a,b,c){YB.call(this,a,b,c);
this.C=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.A=b.hasOwnProperty("old_vote")?b.old_vote:null;this.B=null;b.signin_url&&(this.B=RA({target:"current",value:b.signin_url}));this.F=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null},sC=function(a,b,c){$B.call(this,a,b,c);
this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new rC(a[b]))},rC=function(a){this.merchant=E(a.merchant);
this.price=E(a.price)},tC=function(a,b,c){$B.call(this,a,b,c);
this.H=b.ypc_item_type;this.C=b.ypc_item_id;this.J=b.ypc_flow_type},uC=function(a,b,c){YB.call(this,a,b,c);
this.B=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.Gd=b.meta_info;this.C=!!b.is_live_now;this.url=RA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},vC=function(a,b,c){YB.call(this,a,b,c);
this.G=b.image_url;this.B=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.Gd=b.meta_info;this.C=!!b.is_paygated;this.F=!!b.user_has_entitlement;this.url=RA({target:b.target||"new",value:b.url})},xC=function(a,b,c){PB.call(this,b,c);
this.ca=a;this.Qi=this.U=this.D=this.P=this.Y=!1;this.W=null;this.qk=new Ud(v,c.B.useTabletControls?4E3:3E3);this.O=new Ud(v);this.C=new bC(c,y(this.dg,this),y(this.Si,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},P("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":P("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.H=new R(a);this.B=this.H.element;this.M=new nr(this.H,330,wC(this,"drawer_peek"));
wC(this,"drawer_peek")&&L(this.B,"ytp-drawer-peek");this.Z=Mg("iv-drawer-header",this.B);this.Ec=Mg("iv-drawer-content",this.B);a=["iv-drawer-teaser"];this.C.o.B.experiments.rw&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:P("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.aa=(new R(a)).element;Mg("iv-drawer-teaser-text",this.aa);this.A=[];this.F=this.J=this.o=null;this.G=
[];c=1E3*c.videoData.lengthSeconds;QB(this,0,c,"",this.dw,this.Kw);if(2==this.context.A.getPresentingPlayerType()?0:wC(this,"product_listing_ads_cards_drawer_auto_open")||wC(this,"cards_drawer_auto_open"))a=this.context.B.experiments.dc("cards_drawer_auto_open_offset"),b=0<=a?a:c+a,b<c&&(QB(this,b,0x8000000000000,"",this.EF),a=this.context.B.experiments.dc("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&QB(this,b,0x8000000000000,"",this.mw))},zC=function(a,b){var c=yC(a,b);
c&&(c==a.o&&(a.o=null),a.ca.es(c.Sa.id),bh(c.sk),pb(a.A,c),a.Zh())},BC=function(a,b,c){a.D||(wC(a,"drawer_peek")&&$d(a.B,"ytp-drawer-peek"),a.M.show(),a.J=new Ud(function(){L(this.context.A.Da(),"ytp-iv-drawer-open")},0,a),a.J.start(),a.D=!0,a.K=K(),NB(a.context.logger,7,void 0,c&&c.Sa?c.Sa.Ta:void 0),F(a.A,function(a){a.Ui||(a.Ui=!0,KB(this.context.logger,a.Sa.Ta,a.Sa.o.xp))},a),AC(a.ca),b&&(a.F=new Ud(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(c){}a=null}this.L=a;this.Z.focus()},330,a),a.F.start()))},CC=function(a){a.D&&(wC(a,"drawer_peek")?L(a.B,"ytp-drawer-peek"):a.M.ha(),$d(a.context.A.Da(),"ytp-iv-drawer-open"),a.D=!1,NB(a.context.logger,10),AC(a.ca),a.F&&a.F.stop(),a.F=new Ud(function(){this.L&&(this.L.focus(),this.L=null)},330,a),a.F.start())},wC=function(a,b){return a.context.B.experiments.ga(b)},DC=function(a){var b=Mg("iv-drawer-close-button",a.B);
a.context.o.R(b,"click",a.zw,a);a.context.o.R(a.Ec,"touchend",function(){this.qk.start()},a);
wC(a,"drawer_peek")&&(b=Mg("ytp-drawer-peek"))&&a.context.o.R(b,"click",a.JA,a);a.context.o.R(a.Ec,"scroll",a.Ow,a);a.W=Dl(a.Ec,"mousewheel",y(a.FF,a));a.context.C.subscribe("onHideControls",function(){this.Qi=!0},a);
a.context.C.subscribe("onShowControls",function(){this.Qi=!1},a);
a.context.C.subscribe("onVideoAreaChange",function(){this.Qi=Xd(this.ca.Da(),"ytp-autohide")},a);
a.G.push(Di("iv-teaser-shown",a.xz,a));a.G.push(Di("iv-teaser-clicked",a.vz,a));a.G.push(Di("iv-hover-card-clicked",a.uz,a));wC(a,"teaser_on_button_hover")&&a.G.push(Di("iv-button-mouseover",a.AD,a));wC(a,"log_teaser_hover")&&a.G.push(Di("iv-teaser-mouseover",a.wz,a))},EC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return jC(a.C,b);
case "collaborator":var c=a.C,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:fC(c,b.url,b.id),"data-ytid":b.channelId},hC(b.profileImageUrl),["div","iv-card-content",mC(c,b),["h2","iv-card-primary-link",b.title],kC(c,b)]]],d=new R(d);iC(c,d,b);return d;case "donation":return c=a.C,d=y(c.F,c,b),jC(c,b,d,d);case "episode":return lC(a.C,b,"iv-card-episode");case "movie":return lC(a.C,b,"iv-card-movie");case "playlist":return c=a.C,d=["div",["iv-card","iv-card-playlist"],
["a","iv-click-target",{href:fC(c,b.url,b.id)},hC(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",mC(c,b),cC(c,"h2","iv-card-primary-link",b.title),kC(c,b)]]],d=new R(d),iC(c,d,b),d;case "poll":return eC(a.C,b);case "productListing":var c=a.C,d=fC(c,b.url,b.id),e=!kb(b.offers)&&(b.sponsored||c.o.B.experiments.ga("trueview_shopping_v2_rendering")),h=["iv-card"],k="",l=gC(c,b);e&&(h.push("iv-card-product-listing"),
k="iv-card-primary-link",l=b.offers[0],e=["div",null],l.price&&e.push(["div","iv-card-offer-price",l.price]),l.merchant&&e.push(["div","iv-card-offer-merchant",l.merchant]),l=e);e=b.sponsored?["div","iv-card-sponsored",P("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],["div","iv-ad-info-callout"]]]]:"";d=["div",h,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+
");",href:d,"aria-hidden":"true",tabindex:"-1"}],["div","iv-card-content",e,["a","iv-click-target",{href:d},cC(c,"h2",k,b.title),l]]];d=new R(d);h=window.document.createElement("span");mh(h,P("YTP_SPONSORED_PRODUCT_INFO"));d.Hb(h,"adInfo");iC(c,d,b);return d;case "tip":return c=a.C,d=y(c.H,c,b),jC(c,b,d,d);case "video":return c=a.C,d=fC(c,b.url,b.id),h=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.C?["span",["yt-badge","yt-badge-live"],P("YTP_LIVE_NOW")]:"",d=["div",["iv-card",
"iv-card-video"],["a","iv-click-target",{href:d},hC(b.B,h),["div","iv-card-content",mC(c,b),cC(c,"h2","iv-card-primary-link",b.title),kC(c,b),k]]],d=new R(d),iC(c,d,b),d}return null},FC=function(a,b){if(0==a.A.length)return 0;
var c=fb(a.A,function(a){return b.Sa.startMs>a.Sa.startMs||b.Sa.startMs==a.Sa.startMs&&b.Sa.timestamp>=a.Sa.timestamp?!0:!1});
return-1==c?0:c+1},GC=function(a,b){if(a.H.B){var c=new nA([0,
a.Ec.scrollTop],[0,b.sk.offsetTop],600,rA);a.context.o.R(c,"animate",function(a){this.Ec.scrollTop=a.y},a);
a.context.o.R(c,"finish",function(a){this.Ec.scrollTop=a.y},a);
c.play()}else a.H.ob(!0),a.Ec.scrollTop=b.sk.offsetTop,a.H.ob(!1)},HC=function(a){return a.o&&a.o.Sa||a.A[0]&&a.A[0].Sa},yC=function(a,b){return eb(a.A,function(a){return a.Sa.id==b},a)},IC=function(a){return xh(a.A,function(a){return a.Sa.sponsored&&"productListing"==a.Sa.type})},MC=function(a){if(!KC.test(a))throw Error("'"+a+"' is not a valid hex color");
4==a.length&&(a=a.replace(LC,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]},NC=function(a,b,c,d,e){nA.call(this,b,c,d,e);
this.element=a},OC=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");
NC.apply(this,arguments)},PC=function(a,b,c){PB.call(this,a,b);
this.annotation=c;this.isActive=!1},QC=function(a,b,c){PC.call(this,a,b,c);
this.o=null;this.G=!1;this.A=null;this.B=!1;this.C=0;this.F=this.D=null},RC=function(a,b,c,d,e,h){this.o=a;
this.B=b;this.videoData=c;this.logger=d;this.A=e;this.C=h},SC=function(a,b,c){this.type=a;
this.trigger=b;this.url=c},VC=function(a){if(!a)return null;
var b=HA(a.type,TC),c=HA(a.trigger,UC),d=RA(DA(a.url));DA(a.subscribeData);return b?new SC(b,c,d):null},WC=function(a,b,c,d,e,h,k,l,m,n,t,u,x,B){this.D=a;
this.bgColor=b;this.F=c;this.C=d;this.A=e;this.J=h;this.B=k;this.textAlign=l;this.textSize=m;this.G=n;this.H=t;this.effects=u;this.o=x;this.K=B},YC=function(a){if(!a)return null;
var b=FA(a.fgColor,"#1A1A1A"),c=FA(a.bgColor,"#FFF"),d=FA(a.borderColor,"#000"),e=KA(a.borderWidth,0,5,!1,0),h=KA(a.bgAlpha,0,1,!1,.8),k=FA(a.highlightFontColor,"#F2F2F2"),l=KA(a.highlightWidth,0,5,!1,3),m=GA(a.textAlign),n=KA(a.textSize,3.3,30.1,!0,3.6107),t=GA(a.fontWeight),u=NA(a.padding),x=OA(a.effects),B=KA(a.cornerRadius,0,10,!0,0);if(a=DA(a.gradient)){var D=KA(a.x1,0,100,!0,0),I=KA(a.y1,0,100,!0,0),z=KA(a.x2,0,100,!0,100),Q=KA(a.y2,0,100,!0,100),Na=FA(a.color1,"#FFF"),va=FA(a.color2,"#000");
a=new XC(D,I,z,Q,Na,va,KA(a.opacity1,0,100,!0,100),KA(a.opacity2,0,100,!0,0))}else a=null;return new WC(b,c,d,e,h,k,l,m,n,t,u,x,B,a)},XC=function(a,b,c,d,e,h,k,l){this.D=a;
this.G=b;this.F=c;this.H=d;this.o=e;this.A=h;this.B=k;this.C=l},ZC=function(a,b){this.o=a;
this.videoId=b},bD=function(a,b,c){var d=a.F,e=a.G,h=a.o?a.o:"xy",k=$C(c,a.C,h);
a=aD(c,a.A,h);var h=640*b.width*k/100,l=360*b.height*a/100;return new ve(0==d?640*b.left*k/100:0<d?d:c.width+d-h,0==e?360*b.top*a/100:0<e?e:c.height+e-l,h,l)},$C=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;
return(d+((c?a.width:a.height)-d)*b)/d},aD=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;
return(d+((c?a.height:a.width)-d)*b)/d},cD=function(a,b,c,d,e,h,k,l,m,n,t){this.x=a;
this.y=b;this.D=c;this.B=d;this.t=e;this.K=h;this.F=k;this.G=l;this.C=m;this.A=n;this.o=t},eD=function(a,b){if(!a)return null;
var c=JA(a.x,0),d=JA(a.y,0),e=JA(a.w,0),h=JA(a.h,0),k=LA(a.t),l=JA(a.scaleSlope,1);return b(c,d,e,h,k,JA(a.d,0),JA(a.px,0),JA(a.py,0),JA(a.scaleSlopeX,l),JA(a.scaleSlopeY,l),HA(a.scaleDimension,dD,"xy"))},gD=function(a,b){var c=fD(b,bD(a,new ve(a.x,a.y,a.D,a.B),b.o)),d=b.o,e=c.clone();
d&&!d.contains(c)&&(c.width<d.width?e.left=je(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=je(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e},hD=function(a){return a?eD(a,function(a,c,d,e,h,k,l,m,n,t,u){return new cD(a,c,d,e,h,k,l,m,n,t,u)}):null},iD=function(a,b,c,d,e,h,k,l,m,n,t,u,x){cD.call(this,a,b,c,d,e,l,m,n,t,u,x);
this.H=h;this.J=k},jD=function(a){if(!a)return null;
var b=JA(a.sx,0),c=JA(a.sy,0);return eD(a,function(a,e,h,k,l,m,n,t,u,x,B){return new iD(a,e,h,k,l,b,c,m,n,t,u,x,B)})},kD=function(a,b,c,d){this.type=a;
this.A=b;this.o=c;this.B=d},mD=function(a){if(!a)return null;
var b=HA(a.type,lD,"rect"),c=MA(a.rectRegion,hD),d=MA(a.anchoredRegion,jD);a=MA(a.shapelessRegion,hD);return new kD(b,c,d,a)},nD=function(a){return a.A&&a.A.length?a.A[0]:a.o&&a.o.length?a.o[0]:a.B&&a.B.length?a.B[0]:null},oD=function(a,b){this.A=a;
this.o=b},pD=function(a,b){this.state=a;
this.o=b},rD=function(a){if(!a)return null;
var b=HA(a.state,qD);a=EA(a.ref);return b?new pD(b,a):null},sD=function(a,b,c,d){this.o=a||[];
this.B=b||[];this.C=c;this.A=d;this.value=!1},tD=function(a){if(!a)return null;
var b=MA(a.condition,rD),c=MA(a.notCondition,rD),d=IA(a.show_delay,!1);a=IA(a.hide_delay,!1);return b||c?new sD(b,c,d,a):null},uD=function(a,b,c){F(a.o,pa(b,!1),c);
F(a.B,pa(b,!0),c)},vD=function(a,b,c,d,e,h,k,l,m,n,t,u,x,B,D,I){this.id=a;
this.author=b;this.type=c;this.style=d;this.F=e;this.A=h;this.D=k||[];this.J=l||[];this.o=m;this.H=n;this.B=t;this.G=u;this.C=B;this.data=D;this.Ta=I},zD=function(a){if(!a)return null;
var b=EA(a.id),c=EA(a.author),d=HA(a.type,wD),e=HA(a.style,xD),h=GA(DA(a.TEXT)),k=GA(a.data),k=0!=k.length?be(k):{},l;var m=DA(a.segment);m?(EA(m.timeRelative),l=EA(m.spaceRelative),l=(m=MA(m.movingRegion,mD))?new oD(l,m):null):l=null;var m=MA(a.action,VC),n=MA(a.trigger,tD),t=YC(DA(a.appearance));t||(t=YC({}));var u=HA(a.coordinate_system,yD,"video_relative"),x;x=(x=DA(a.image_source))?new ZC(GA(x.standard_url),GA(x.video_id)):null;var B=IA(a.closeable,!0),D=GA(a.html_blob);a=GA(a.log_data);return b&&
d?new vD(b,c,d,e,h,l,m,n,t,u,x,B,0,D,k,a):null},BD=function(a){return AD(a,function(a){return"click"==a.trigger})},AD=function(a,b){return xh(a.D,b,void 0)},CD=function(a,b,c){F(a.D,b,c)},DD=function(a,b){return eb(a.D,b,void 0)},ED=function(a,b,c){F(a.J,b,c)},FD=function(a,b){fi(a.J,b,void 0)},HD=function(a){return(a=GD(a))?nD(a):null},GD=function(a){a.A?(a=a.A,a=a.o.length?a.o[0]:null):a=null;
return a},ID=function(a,b){var c=HD(a);
return c&&b?aD(b,c.A,c.o?c.o:"xy"):1},JD=function(a,b,c){PC.call(this,a,b,c);
this.G=this.C=this.H=!1;this.F=5E3;this.o=null;this.Dg=O("div","iv-promo-contents");this.A=this.B=this.Yb=null;this.D=new Ud(function(){this.Yb.setAttribute("aria-hidden",!0);dr(this.B,!1);dr(this.A,!0)},700,this)},KD=function(a){var b=a.annotation.data,c;
if("cta"==a.annotation.style)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.la().setAttribute("aria-hidden",!0);a.la().setAttribute("aria-label",P("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.la().tabIndex=0;var e;if(b.image_url){e=O("div",["iv-promo-img","iv-click-target"]);var h=O("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(h);b.video_duration&&!b.is_live?(h=O("span","iv-promo-video-duration",
b.video_duration),e.appendChild(h)):b.playlist_length&&(h=O("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(h));a.dg(e,a.annotation.getUrl(),a.annotation.id,a.annotation.Ta,null,c)}h=a.annotation.getUrl();a.Yb=h?O("a",{href:SA(h),"class":"iv-promo-txt"}):O("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=O("p",null,O("strong",null,b.text_line_1));l=O("p",null,O("span","iv-promo-link",b.text_line_2));L(a.Yb,"iv-click-target");a.dg(a.Yb,
a.annotation.getUrl(),a.annotation.id,a.annotation.Ta,null,c);break;case "playlist":case "video":k=O("p",null,O("span",null,b.text_line_1));l=O("p",null,O("strong",null,b.text_line_2));b.is_live&&(k=l,l=O("span",["yt-badge","iv-promo-badge-live"],P("YTP_LIVE_NOW")));L(a.Yb,"iv-click-target");a.dg(a.Yb,a.annotation.getUrl(),a.annotation.id,a.annotation.Ta,null,c);d.push("iv-promo-video");break;case "vote":k=O("p",null,O("strong",null,b.text_line_1)),l=O("p",null,O("span",null,b.text_line_2)),m=O("div",
"iv-promo-button-container"),c=O("button",["iv-button","iv-promo-button"],O("span","iv-button-content",b.button_text)),a.context.o.R(c,"click",function(a){a.stopPropagation();LB(this.context.logger,this.annotation.Ta,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Yb=Mg("iv-promo-txt",this.Dg);a=Mg("iv-promo-button-container",this.Dg);var d=O("div",["iv-promo-txt","iv-click-target"]),e=O("p",null,O("strong",null,c.text_line_3)),c=O("p",null,c.text_line_4);Zg(d,e,c);
bh(a);ch(d,this.Yb);$d(this.la(),"iv-promo-with-button");this.dg(d,this.annotation.getUrl(),this.annotation.id,this.annotation.Ta)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Yb.appendChild(k);
l&&a.Yb.appendChild(l);a.Dg.appendChild(a.Yb);m&&a.Dg.appendChild(m);k=O("div","iv-promo-actions");a.A=O("button",["iv-promo-expand","ytp-button"]);a.A.title=P("YTP_EXPAND");a.context.o.R(a.A,"click",pa(a.al,5E3),a);k.appendChild(a.A);dr(a.A,!1);a.context.o.R(a.la(),"mouseover",a.Cx,a);a.context.o.R(a.la(),"mouseout",a.Bx,a);a.context.o.R(a.la(),"touchend",pa(a.al,5E3),a);a.B=O("button",["iv-promo-close","ytp-button"]);a.B.title=P("YTP_CLOSE");a.context.o.R(a.B,"click",a.GF,a);k.appendChild(a.B);
Yd(a.la(),d);e&&Yg(a.la(),e);Yg(a.la(),a.Dg);Yg(a.la(),k)},LD=function(a){a.C||a.G||a.o||(L(a.la(),"iv-promo-collapsed"),a.C=!0,a.D.start())},MD=function(a){a.D.stop();
a.C&&($d(a.la(),"iv-promo-collapsed"),a.C=!1,a.Yb&&a.Yb.removeAttribute("aria-hidden"),dr(a.A,!1),dr(a.B,!0))},ND=function(a,b){a.o||(a.o=Rd(function(){this.o&&(Td(this.o),this.o=null);
LD(this)},b,a))},PD=function(a,b,c){this.o={};
this.A=!1;this.D="ivTrigger:"+a;this.B=c;uD(b,function(a,b){var c=OD(b.state,b.o);this.B.subscribe(c,y(this.C,this,c,a));this.o[c]=a},this)},OD=function(a,b){var c="ivTriggerCondition:"+a;
return b?c+":"+b:c},RD=function(a,b,c){this.B=a;
this.annotation=b;this.o=c;this.A=null;this.C=this.isVisible=!1;QD(b,a)},QD=function(a,b){FD(a,function(c){return new PD(a.id,c,b)})},SD=function(a){Be(a.B,"resize",a.Cs,a);
Be(a.B,"onVideoAreaChange",a.Sq,a)},TD=function(a){a.A&&(a.A.stop(),a.A=null)},UD=function(a,b){this.start=a<b?a:b;
this.end=a<b?b:a},VD=function(){},WD=function(a,b,c,d,e,h,k,l){this.F=a;
this.H=b;this.G=c;this.J=d;this.o=e;this.A=h;this.C=p(k)?k:null;this.D=p(l)?l:null},XD=function(){this.sa=[];
this.za=[];this.tc=[]},YD=function(a,b,c){0==cb(a.sa)?a.tc.length-=2:(a.sa.push(0),a.za.push(1));
a.tc.push(b,c);a.Ub=a.Vc=[b,c]},ZD=function(a,b,c,d){var e=a.Ub[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),h=a.Ub[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);
a.sa.push(3);a.za.push(1);a.tc.push(b,c,d,90,e,h);a.lh=!1;a.Ub=[e,h]},aE=function(a,b){for(var c=a.tc,d=0,e=0,h=a.sa.length;e<h;e++){var k=a.sa[e],l=$D[k]*a.za[e];
b(k,c.slice(d,d+l));d+=l}},bE=function(a,b){this.B=a;
this.K=null==b?1:b},cE=function(a,b,c){this.B=a;
this.o=b;this.A=null==c?1:c},dE=function(){},eE=function(a){J.call(this);
this.F=a||Jg();this.U=null;this.Jc=!1;this.o=null;this.G=void 0;this.H=this.L=this.D=null},fE=function(a,b){a.L&&F(a.L,b,void 0)},gE=function(a,b,c,d,e){eE.call(this,e);
this.width=a;this.height=b;this.C=c||null;this.M=d||null},hE=function(a){var b=a.Af();
return b?b.width/(a.C?new te(a.C,a.M):a.Af()).width:0},iE=function(a,b){J.call(this);
this.Og=a;this.Vk=b;this[Cc]=!1},mE=function(a,b,c,d){iE.call(this,a,b);
a=this.Vk;b=this.la();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",c.A),c=c.getWidth(),w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/hE(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Vk;a=this.la();if(d instanceof bE)a.setAttribute("fill",d.B),a.setAttribute("fill-opacity",d.K);else if(d instanceof WD){b="lg-"+d.F+"-"+d.H+"-"+d.G+"-"+d.J+"-"+d.o+"-"+d.A;var e=jE(c,b);if(!e){var e=kE(c,"linearGradient",
{x1:d.F,y1:d.H,x2:d.G,y2:d.J,gradientUnits:"userSpaceOnUse"}),h="stop-color:"+d.o;ga(d.C)&&(h+=";stop-opacity:"+d.C);h=kE(c,"stop",{offset:"0%",style:h});e.appendChild(h);h="stop-color:"+d.A;ga(d.D)&&(h+=";stop-opacity:"+d.D);d=kE(c,"stop",{offset:"100%",style:h});e.appendChild(d);e=lE(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")},nE=function(a,b){iE.call(this,a,b)},oE=function(a,b){iE.call(this,a,b)},pE=function(a,b,c,d){mE.call(this,a,b,c,d)},qE=function(a,b,c,
d){mE.call(this,a,b,c,d)},rE=function(a,b){iE.call(this,a,b)},sE=function(a,b,c,d){mE.call(this,a,b,c,d)},tE=function(a,b,c,d){mE.call(this,a,b,c,d)},uE=function(a,b){iE.call(this,a,b)},vE=function(a,b,c,d,e){gE.call(this,a,b,c,d,e);
this.B={};this.O=yc&&!vc(526);this.K=new sm(this)},kE=function(a,b,c){a=a.F.o.createElementNS("http://www.w3.org/2000/svg",b);
c&&wE(a,c);return a},wE=function(a,b){for(var c in b)a.setAttribute(c,b[c])},yE=function(a,b,c,d){b=kE(a,"path",{d:xE(b)});
c=new sE(b,a,c,d);a.A.la().appendChild(c.la())},xE=function(a){var b=[];
aE(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 e=d[3];b.push("A",d[0],d[1],0,180<Math.abs(e)?1:0,0<e?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
return b.join(" ")},lE=function(a,b,c){if(b in a.B)return a.B[b];
var d="_svgdef_"+zE++;c.setAttribute("id",d);a.B[b]=d;a.J.appendChild(c);return d},jE=function(a,b){return b in a.B?a.B[b]:null},BE=function(){AE||(AE=new Pd(400),AE.start());
return AE},CE=function(){this.o=!1;
this.D=this.B=null},DE=function(a,b,c){a.B?(a.B.setSize(b,c),a.B.clear()):(b=new vE(b,c,void 0,void 0,void 0),a.B=b,a.B.Bi(),a.D=O("div"),b=a.B.la(),a.D.appendChild(b));
return a.B},EE=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);
b&&Ob(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d},FE=function(a,b){var c=":"+(dE.getInstance().o++).toString(36);
b.setAttribute("result",c);a.appendChild(b);return c},GE=function(a,b){var c=FE(a,EE("feGaussianBlur",{"in":b,
stdDeviation:"1.8"})),c=FE(a,EE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},EE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=FE(a,EE("feComposite",{"in":c,in2:b,operator:"in"}));return FE(a,EE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))},HE=function(a,b){var c=FE(a,EE("feOffset",{"in":b,
dx:"-7",dy:"-7"})),c=FE(a,EE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=FE(a,EE("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=FE(a,EE("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=FE(a,EE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=FE(a,EE("feComposite",{operator:"out","in":c,in2:d}));return FE(a,EE("feComposite",{operator:"over","in":b,in2:c}))},IE=function(a,b){return b},JE=function(a){var b=
EE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";
F(a,function(a){a:{switch(a){case "bevel":a=GE;break a;case "dropshadow":a=HE;break a}a=IE}c=a(b,c)});
return b},LE=function(a){a=Zd(a,function(a){return a in KE});
Cb(a,function(a,c){return KE[a]-KE[c]});
return a},ME=function(a){return eb(a,function(a){return"dropshadow"==a})?new se(0,7,7,0):new se(0,0,0,0)},OE=function(a,b,c,d,e){var h=d?d.getWidth()/2+1:0;
b=NE(b,c,h);yE(a,b,d,e)},NE=function(a,b,c){var d=new XD;
YD(d,a.left+b+c,a.top+c);d.vb(a.left+a.width-b-c,a.top+c);ZD(d,b,b,-90);d.vb(a.left+a.width-c,a.top+a.height-b-c);ZD(d,b,b,0);d.vb(a.left+b+c,a.top+a.height-c);ZD(d,b,b,90);d.vb(a.left+c,a.top+b+c);ZD(d,b,b,180);d.close();return d},QE=function(a,b,c,d){var e=a.K;
return e?new WD(e.D*b/100,e.G*c/100,e.F*b/100,e.H*c/100,e.o,e.A,e.B,e.C):new bE(a.bgColor,PE(d,a.A))},PE=function(a,b){return a?Math.max(b,.9):b},RE=function(a,b){var c=we(a),d=ME(b);
ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=Number(void 0),c.bottom+=Number(void 0),c.left-=Number(void 0));return new ve(c.left,c.top,c.right-c.left,c.bottom-c.top)},SE=function(a,b,c){if(c.length&&(b=Kg("g",void 0,b),b.length)){var d=LE(c);
if(d){c="effects:"+(d?d.join("|"):"");var e=jE(a,c);e?a=e:(d=JE(d),a=0<d.childNodes.length?lE(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}},TE=function(){CE.call(this);
this.C=0},UE=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,h=a.left-b.x,k=Math.max(c,d,e,h);
if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case h:return"l"}return"i"},VE=function(){CE.call(this)},WE=function(a,b,c){CE.call(this);
this.C=a||0;this.G=b||0;this.F=c||!1},XE=function(a,b){var c=a.width,d=a.height,e=0,h=0;
0<b&&(a.width/a.height>b?(d=a.width/b,h=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new ve(e,h,c,d)},YE=function(){CE.call(this)},ZE=function(){TE.call(this)},$E=function(a,b){this.o=a;
this.A=b||null},fD=function(a,b){var c;
c=a.A?gD(a.A,new $E(a.o)):a.o;var d=b.clone(),e=c.left;c=c.top;e instanceof pe?(d.left+=e.x,d.top+=e.y):(d.left+=e,ga(c)&&(d.top+=c));return d},aF=function(a,b,c,d,e){this.o=a;
this.Y=b;this.F=c;this.Ka=d;this.aa=e;this.P=!1;this.G=new aA(this);this.O=this.D=this.H=this.M=this.A=null;this.W=!1;this.Z=this.K=this.L=null;this.Sl=new qm(this.Ax,100,this);this.J=new Ud(this.Yo,500,this);this.U=this.B=this.C=null},cF=function(a,b){var c=y(function(a,c,h){c=h?bF(this,c,y(h,this)):bF(this,c);
this.G.R(b,a,c)},a);
c("mouseover","d",a.Ds);c("mouseout","c",a.ee);c("click","a");c("touchend","a")},dF=function(a){if(a.o.G){var b;
AD(a.o,function(a){return"close"==a.type})?b=a.A:(a.C=O("div","annotation-close-button"),dr(a.C,!1),ki(a.C,"annotation_id",a.o.id),a.A.appendChild(a.C),b=a.C);
var c=function(a){a.stopPropagation()};
a.G.R(b,"click",bF(a,"b",c));a.G.R(b,"touchend",bF(a,"b",c))}},bF=function(a,b,c){return y(function(a){if(this.aa)c&&c(a);
else if(a.event.target instanceof window.Element){var e=a.event.target;dr(e,!1);try{var h=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(th(h,"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);h.dispatchEvent(k)}}finally{dr(e,
!0)}}e=br(a.target);a=new pe(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.Ka.S(b,this.o)},a)},kF=function(a){if(a.A||a.B){var b=HD(a.o);
if(b){var c=eF(a);if(a.A){var b=gD(b,c),d=fF(gF(a.F));Zq(a.A,b.width,b.height);Oq(a.A,b.left,b.top);a.M=new ve(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=HD(a.o))&&d?$C(d,e.C,e.o?e.o:"xy"):1;var h=ID(a.o,d),d=a.o.o;d.H?d=d.H:(d="speech"==a.o.style?1.6:.8,d=new se(d,d,d,d));d=new se(360*d.top*h/100,640*d.right*e/100,360*d.bottom*h/100,640*d.left*e/100);a.D&&(d.right+=1.5*c.o.height/100);a.A.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px";"label"==a.o.style&&a.H&&(a.H.style.padding=
a.A.style.padding);var d=c.o,k=!1,l=0,m=0,n;n=fF(gF(a.F));var t=a.F.app.da,u=gF(t.o).La(),u=new ve(0,0,u.width,u.height);if(t.D.A&&!hF(t)){if(t.o.V().Ea){var x=iF(t)?69:48;u.top+=x;u.height-=x}t.B&&(u.height-=iF(t.B.B)?72:50)}xe(n,u)?n=null:(u.top+=20,u.height-=40,"player_relative"!=a.o.H&&(u.left-=n.left,u.top-=n.top),n=u);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 h=m,B;a.D&&(m=jF(a,23,b,e,h),a.C&&(B=43-m.width,0<B&&(b.left+m.left-B>d.left&&(m.left-=B),
m.width+=B)),B=m,Zq(a.D,m.width,m.height),Oq(a.D,m.left,m.top));a.C&&(B?b=new pe(B.left+B.width-23-18,a.W?B.top+2:B.top+B.height-18-2):(B=jF(a,18,b,e,h),b=new pe(B.left,B.top),Zq(a.C,B.width,B.height)),Oq(a.C,b));a.O=new ve(a.M.left+B.left,a.M.top+B.top,B.width,B.height);a.L=a.G.R(gF(a.F),"mousemove",a.DF)}else a.D&&(B=e/h*d.height*4.2/100,B=new te(B,B),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,B=new ve(b.width-B.width-e,b.height-B.height-e,B.width,B.height)):B=new ve(b.width-
B.width-3*d.height/100,(b.height-B.height)/2,B.width,B.height),Zq(a.D,B.width,B.height),Oq(a.D,B.left,B.top)),a.C&&(B=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Oq(a.C,B&&e?new pe(b.width-9,-9):B?new pe(b.width-9,45<b.height?9:b.height-9):e?new pe(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new pe(45<b.width?b.width-9-18:-9,b.height-9):new pe(-9,45<b.height?9:b.height-9)))}a.B&&a.B.A(a.o,c);if(a.A){c=a.A;b=a.o.o;c.style.color="highlightText"==a.o.style?b.J:b.D;B=fF(gF(a.F));
c.style.fontSize=360*b.textSize*ID(a.o,B)/100+"px";B=a.o.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==B||"highlightText"==B?"center":"left";b.G&&(c.style.fontWeight=b.G);a=a.A;c=a.style.overflow;B=(b=Mg("annotation-link-icon",a))?er(b):!1;e=(d=Mg("annotation-close-button",a))?er(d):!1;B&&dr(b,!1);e&&dr(d,!1);m=h="";if(l=Mg("inner-text",a))h=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=jr(a);t=5;for(u=Math.floor(k/2);u;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=n,n=Math.min(n+u,k)):n=Math.max(n-u,t),u=Math.floor(u/2),a.style.fontSize=n+"px";n!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=m);e&&dr(d,!0);B&&dr(b,!0)}}}},jF=function(a,b,c,d,e){var h=0<e;
b=new ve(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),L(a.A,"annotation-extend-down"));h&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),L(a.A,"annotation-extend-up"),a.W=!0);return b},lF=function(a){return"label"!=a.o.style||a.B.o},eF=function(a){var b;
b=fF(gF(a.F));if("player_relative"==a.o.H){var c=gF(a.F).La();b=new ve(-b.left,-b.top,c.width,c.height)}else b=new ve(0,0,b.width,b.height);return new $E(b,a.U?HD(a.U):null)},mF=function(a,b){return b?new ve(a.x+b.left,a.y+b.top,b.width,b.height):null},oF=function(a){jq.call(this,a);
this.da=!0;this.ra="iv-module";this.logEvent="iv";this.L=0;this.B={};this.P={};this.J=new GB(0,a);a=nF;this.G=new sr(this);H(this,this.G);this.subscribe("onHideControls",this.WA,this);this.subscribe("onShowControls",this.hC,this);this.subscribe("presentingplayerstatechange",this.MB,this);this.subscribe("resize",this.Fq,this);this.subscribe("d",this.qF,this);this.subscribe("c",this.ee,this);this.subscribe("a",this.Pz,this);this.subscribe("b",this.oA,this);this.subscribe("vast_info_card_add",this.BC,
this);this.U=O("DIV",[a.gv,"html5-stop-propagation"]);this.W=O("DIV",a.Fu);this.K=this.A=this.C=this.D=null;this.O=[]},pF=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){var h;if(c[e.tagName])h=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(h=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof h?h.trim():h);continue}else h=[],c[e.tagName]=h;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?h.push(e.childNodes[0].nodeValue):h.push(""):e&&h.push(pF(a,e))}return c},qF=function(a,b,c){return!(a.loaded&&a.L==b&&a.o.getVideoData().videoId==
c)},sF=function(a,b){var c=rF(a,b);
if(!c&&"marker"!=b.type)return null;ED(b,function(a){a=y(this.zC,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new RD(a.Y,b,c)},uF=function(a,b){var c=oF.A(),d=null;
switch(b.type){case "branding":if(a.o.V().nd)break;a.D.element.appendChild(c);d=new QC(c,tF(a),b);break;case "promotion":qr(a.o,c,4),d=new JD(c,tF(a),b)}d&&d.mj();return d},yF=function(a){var b=a.o.getVideoData();
if(b.qf){var c=a.o.V(),d=c.J.remove(b.videoId);if(d){var e={format:"XML",Pc:{}};c.experiments.ga("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.Pc.gaming="1");e.Xb=y(function(a,b,c){qF(this,a,b)||(a=kj(c)&&c.responseXML?c.responseXML:null)&&vF(this,a)},a,a.L,b.videoId);
Vu()&&(e.Xb=wF(a,e.Xb));e.Gb={ic_only:1};xF(a,e,d);pj(b.qf,e)}}},xF=function(a,b,c){b.method="POST";
b.Gb=b.Gb||{};c.Je&&(b.Gb.ic_xml=c.Je);c.hg&&(b.Gb.ic_track=c.hg);if(a=a.o.getVideoData(1))b.Gb.organic_video_id=a.videoId},AF=function(a,b){if(!a.A){var c=new R(["div"]);
dr(c.element,!1);a.A=new xC(a.o,c.element,tF(a));c.o(a.D.element);a.A.mj()}var d=b&&b.data&&b.data.card_type;if(d&&zF[d]){c=a.A;d=new zF[d](b.id,b.data,b.Ta);c.Y||(Yd(c.la(),["html5-stop-propagation","iv-drawer-manager"]),qr(c.ca,c.B,5),DC(c),c.Y=!0);zC(c,d.id);var e=EC(c,d);if(e){var h={Sa:d,sk:e.element,Pp:!1,Ui:!1},k=FC(c,h);wb(c.A,k,0,h);e.o(c.Ec,k);c.Zh();d.D?QB(c,d.startMs,0x8000000000000,d.id,pa(c.sD,h)):(e=1E3*c.context.A.getCurrentTime(),5E3>e&&e>d.startMs&&c.km(h,!1),QB(c,d.startMs,d.startMs+
1,d.id,pa(c.km,h,!1)))}}AC(a.o)},tF=function(a){a.K||(a.K=new RC(new aA(a),a.o.V(),a.o.getVideoData(),a.J,a.o,a.Y));
return a.K},vF=function(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=pF(a,c[d]),h=null;
try{h=zD(e)}catch(k){}h&&(oF.D(h)?(e=uF(a,h))&&(a.P[h.id]=e):oF.C(h)?AF(a,h):(e=sF(a,h))&&(a.B[h.id]=e))}Ob(a.B,function(a){var b=a.annotation;b.A&&b.A.A&&(b=this.B[b.A.A])&&(a.o.U=b.annotation)},a)},DF=function(a,b,c,d){d?BF(a,b,c):CF(a,b,c)},CF=function(a,b,c){if(b=a.B[b])TD(b),c&&c.A?(a=y(a.Xo,a,b),b.A=new Ud(a,2E3),b.A.start()):a.Xo(b)},BF=function(a,b,c){if(b=a.B[b])TD(b),c&&c.C?(a=y(a.Ar,a,b),b.A=new Ud(a,2E3),b.A.start()):a.Ar(b)},EF=function(a,b,c){if("new"==b.target)return!1;
var d=SA(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!UA(d))return!1;d=fj(d);if(d.list||d.p)return!1;b=WA(b);if(!b)return!1;if(c==b)return!0;a=a.o.V();return a.L&&a.ka?!0:!1},rF=function(a,b){if(FF(b)){var c=b.G||AD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new aF(b,y(a.U.appendChild,a.U),a.o,a.Y,c)}return null},FF=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;
if("text"==a.type)for(var b in xD)if(a.style==xD[b])return!0;return!1},GF=function(a,b,c,d){a.S(OD(b,d),c,d)},wF=function(a,b){return y(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);
a.unshift(b);b=pa.apply(window,a);this.O.push(Wu(b,void 0))}},a)},HF=function(a){return!!a.A&&a.A.isAvailable()},IF=function(a){HF(a);
return!!a.A&&a.A.D},JF=function(a,b,c){HF(a);
a.A&&(b?BC(a.A,!!c):CC(a.A))},KF=function(a,b,c){a.o.S(b?"cardsteasershow":"cardsteaserhide",c)},MF=function(a){this.ca=a;
this.A=null;this.o=new ve(0,0,0,0);this.D=new te(0,0);this.C=this.B=0;LF&&vc(11)&&(this.A=window.document.createElement("canvas").getContext("2d"),vc(12.10532)||(this.B=3))},PF=function(a,b){if(null===a.A)return b;
var c=new te(b.videoWidth,b.videoHeight);if(!ue(c,a.D)&&(a.A.canvas.width=c.width,a.A.canvas.height=c.height,a.o.top=0,a.o.left=0,a.o.width=c.width,a.o.height=c.height,a.D=c,0<a.B)){a.B=3;var d=NF(gF(a.ca)),e=16/9;d<e?(a.o.width=c.width*d/e,a.o.left=Math.ceil(.5*(c.width-a.o.width)),a.o.width|=0):d>e&&(a.o.height=c.height*e/d,a.o.top=Math.ceil(.5*(c.height-a.o.height)),a.o.height|=0)}0<a.B&&(a.C^=1,2<=a.o.top?(a.C?OF(a,b,0,0,a.o.width,a.o.top-1):OF(a,b,0,b.videoHeight-a.o.top+1,a.o.width,a.o.top-
1))&&--a.B:2<=a.o.left&&(a.C?OF(a,b,0,0,a.o.left-1,a.o.height):OF(a,b,b.videoWidth-a.o.left+1,0,a.o.left-1,a.o.height))&&--a.B,0>=a.B&&(a.o.top=0,a.o.left=0,a.o.width=b.videoWidth,a.o.height=b.videoHeight));try{a.A.drawImage(b,a.o.left,a.o.top,a.o.width,a.o.height,0,0,a.D.width,a.D.height)}catch(h){if(!(h instanceof window.DOMException)||"IndexSizeError"!=h.name)throw h;}return a.A.canvas},OF=function(a,b,c,d,e,h){e>=h?(d+=Math.random()*h|0,h=1):(c+=Math.random()*e|0,e=1);
try{a.A.drawImage(b,c,d,e,h,c,d,e,h)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.A.getImageData(c,d,e,h).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1},QF=function(a,b,c){this.H=b||!1;
this.F=c||null;this.o="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.D=new MF(a)},RF=function(a,b){QF.call(this,a);
this.o="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 1) {\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  }\n  else if (mode == 0) {\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n  }\n}";
this.G=b;this.C=null;this.A=1;this.B=!0},UF=function(a,b){if(!(b.P||ul&&!SF||TF&&!SF&&vc(38)||zc&&!SF&&vc(27)||LF&&!Vp()&&vc(11)))return!1;
if(Ix(a)&&3!=a.aa&&4!=a.aa)return!0;if(!a.o)return!1;for(var c in a.o.o){var d=a.o.o[c].info.video;if(d&&1==d.A)return!0}return!1},VF=function(a,b){QF.call(this,a,!0,b);
this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float amt = 0.05;\n  float maxCol = max(max(col.x, col.y), col.z);\n  amt = amt * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - 0.5) * amt;\n  gl_FragColor = col;\n}";
this.B=null;this.ca=a;this.J=a.V().experiments.ga("white_noise_with_interval");this.C=0},WF=function(a,b){VF.call(this,a,b);
this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n  return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n  if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n  vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n  vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n  vec4 orjcol = texture2D(uSplr,vTexCrd);\n  vec4 col = orjcol * 1.8 -\n      texture2D(uSplr,texCrdMinusx) * 0.4 -\n      texture2D(uSplr,texCrdMinusy) * 0.4;\n  vec4 diff = orjcol * 2.0 -\n      texture2D(uSplr,texCrdMinusx) -\n      texture2D(uSplr,texCrdMinusy);\n  float fDiff = length(diff);\n  float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n  float namt = 0.035;\n  namt = namt * smoothstep(0.0, 0.1, maxCol);\n  namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.xy) * namt;\n  float eamt = smoothstep(0.0, 0.05, fDiff);\n  col = eamt * col + (1.0 - eamt) * orjcol;\n  col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n  gl_FragColor = col;\n}";
this.A=null;this.G=!1},XF=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},YF=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},ZF=function(a){var b=a[0],c=a[1];
a=a[2];return Math.sqrt(b*b+c*c+a*a)},$F=function(){this.o=new window.Float32Array(16);
this.B=new window.Float32Array(16);this.A=new window.Float32Array(16);this.identity()},aG=function(a,b){for(var c=0;16>c;c+=4)a.A[c+0]=a.o[c+0]*b[0]+a.o[c+1]*b[4]+a.o[c+2]*b[8]+a.o[c+3]*b[12],a.A[c+1]=a.o[c+0]*b[1]+a.o[c+1]*b[5]+a.o[c+2]*b[9]+a.o[c+3]*b[13],a.A[c+2]=a.o[c+0]*b[2]+a.o[c+1]*b[6]+a.o[c+2]*b[10]+a.o[c+3]*b[14],a.A[c+3]=a.o[c+0]*b[3]+a.o[c+1]*b[7]+a.o[c+2]*b[11]+a.o[c+3]*b[15];
c=a.o;a.o=a.A;a.A=c},eG=function(a,b){ea(a);
bG();for(var c=b?cG:dG,d=[],e=0;e<a.length;e+=3){var h=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,t=h>>2,h=(h&3)<<4|l>>4,l=(l&15)<<2|n>>6,n=n&63;m||(n=64,k||(l=64));d.push(c[t],c[h],c[l],c[n])}return d.join("")},gG=function(a){var b=[];
fG(a,function(a){b.push(a)});
return b},fG=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=hG[c];
if(null!=e)return e;if(!C(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
bG();for(var d=0;;){var e=c(-1),h=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|h>>4);64!=k&&(b(h<<4&240|k>>2),64!=l&&b(k<<6&192|l))}},bG=function(){if(!dG){dG={};
hG={};cG={};for(var a=0;65>a;a++)dG[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),hG[dG[a]]=a,cG[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(hG["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}},iG=function(a){var b=new window.Float32Array(3),c=ZF(a);
b[0]=a[0]/c;b[1]=a[1]/c;b[2]=a[2]/c;a=1/(Math.abs(b[0])+Math.abs(b[1])+Math.abs(b[2]));b[0]*=a;b[1]*=a;b[2]*=a;0<b[2]&&(a=(1-Math.abs(b[0]))*(0<b[1]?1:-1),b[0]=(1-Math.abs(b[1]))*(0<b[0]?1:-1),b[1]=a);b[0]*=.5;b[1]*=.5;b[2]*=.5;b[0]+=.5;b[1]+=.5;a=Math.floor(256*b[0]);b=Math.floor(256*b[1]);256==a&&--a;256==b&&--b;return{x:a,y:255-b}},jG=function(a){function b(a,b){var c,d=b;
for(c=0;a[c]!=b;++c){var e=a[c];a[c]=d;d=e}a[c]=d;return c}
var c=a.length,d=Array(2*c+3),e=0;d[0]=0;d[1]=c>>8&255;d[2]=c&255;for(var e=3,h=Array(256),k=Array(256),l=Array(256),m=0;256>m;++m)h[m]=m,k[m]=m,l[m]=0;for(var n=0,t=0,m=0;m<c;++m){var u=a[m],x=b(h,u);k[t]==u?l[t]+=4:0==(l[t]>>=1)&&(k[t]=u,l[t]=1);1<l[u]&&b(h,k[u]);t=u;0==x&&++n;if(0!=x||m+1==c){for(;0<n;)--n,0==n%2?d[e++]=0:d[e++]=254,n>>=1;if(255==x||254==x)d[e++]=255;0!=x&&(d[e++]=x)}}return d.slice(0,e)},kG=function(){this.F=this.H=this.A=this.G=this.B=0;
this.D=new window.Float32Array(3);this.C=-1;this.o=[]},lG=function(a,b){this.F=a;
this.O=b;this.B=new $F;this.aa=this.Z=this.Ka=this.ea=null;this.C=.872;this.U=this.W=this.Y=this.A=this.o=0;this.H=!0;this.D=this.K=0;this.G=new window.Float32Array(3);this.L=new MF(a);this.da=this.F.V().experiments.ga("enable_html5_spherical_direction_logging")?new kG:null},mG=function(a,b){lG.call(this,a,b);
this.P=null;this.J=0;this.M=!0},nG=function(){},oG=function(a,b,c){return a[b]=a[b]||c},pG=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;
return-1},qG=function(a){a=a.sort();
for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b},sG=function(){var a;
if((a=Object.create)&&rG.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},vG=function(){var a=tG.href,b;
if(uG.dpo)b=uG.h;else{b=uG.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b},wG=function(a){var b=oG(uG,"PQ",[]);
uG.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},h=0;h<c;h++)b[h](e)},xG=function(a){return oG(oG(uG,"H",sG()),a,sG())},BG=function(a,b,c){b&&0<b.length&&(b=yG(b),c&&0<c.length&&(b+="___"+yG(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=oG(zG,"_p",sG()),oG(b,c,sG())[a]=(new Date).getTime(),b=AG.r,"function"===typeof b?b(a,"_p",c):b.push([a,
"_p",c]))},yG=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")},CG=function(a){throw Error("Bad hint"+(a?": "+a:""));
},HG=function(a,b,c,d){var e=a.split(";"),h=e.shift(),k=DG[h],l=null;
k?l=k(e,b,c,d):CG("no hint processor for: "+h);l||CG("failed to generate load url");b=l;c=b.match(EG);(d=b.match(FG))&&1===d.length&&GG.test(b)&&c&&1===c.length||CG("failed sanity: "+a);return l},LG=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=IG(a);JG.test(c)||CG("invalid_callback");b=KG(b);d=d&&d.length?KG(d):null;return[(0,window.encodeURIComponent)(a.XC).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.Wn?"/am="+e(a.Wn):"",a.gr?"/rs="+e(a.gr):"",a.gu?"/t="+e(a.gu):"","/cb=",e(c)].join("")},IG=function(a){"/"!==a.charAt(0)&&CG("relative path");
for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))CG("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var h=b[d].split("="),k=(0,window.decodeURIComponent)(h[0]),l=(0,window.decodeURIComponent)(h[1]);2==h.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");MG.test(b)||CG("invalid_prefix");c=NG(a,"k",!0);d=NG(a,"am");e=NG(a,"rs");a=NG(a,"t");return{XC:b,version:c,Wn:d,gr:e,gu:a}},KG=function(a){for(var b=
[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");
OG.test(e)&&b.push(e)}return b.join(",")},NG=function(a,b,c){a=a[b];
!a&&c&&CG("missing: "+b);if(a){if(PG.test(a))return a;CG("invalid: "+b)}return null},QG=function(){var a=vG();
if(!a)throw Error("Bad hint");return a},RG=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];
e&&0>pG.call(b,e)&&c.push(e)}return c},VG=function(a){"loading"!=SG.readyState?TG(a):SG.write("<"+UG+' src="'+(0,window.encodeURI)(a)+'"></'+UG+">")},TG=function(a){var b=SG.createElement(UG);
b.setAttribute("src",a);b.async="true";(a=SG.getElementsByTagName(UG)[0])?a.parentNode.insertBefore(b,a):(SG.head||SG.body||SG.documentElement).appendChild(b)},XG=function(a,b){var c=b&&b._c;
if(c)for(var d=0;d<WG.length;d++){var e=WG[d][0],h=WG[d][1];h&&Object.prototype.hasOwnProperty.call(c,e)&&h(c[e],a,b)}},$G=function(a,b,c){YG(function(){var c;
c=b===vG()?oG(ZG,"_",sG()):sG();c=oG(xG(b),"_",c);a(c)},c)},bH=function(a,b){var c=b||{};
"function"==typeof b&&(c={},c.callback=b);XG(a,c);var d=a?a.split(":"):[],e=c.h||QG(),h=oG(uG,"ah",sG());if(h["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=h[l]||h[m[1]&&"ns:"+m[0]||""]||e,n=k.length&&k[k.length-1]||null,t=n;n&&n.hint==m||(t={hint:m,features:[]},k.push(t));t.features.push(l)}var u=k.length;if(1<u){var x=c.callback;x&&(c.callback=function(){0==--u&&x()})}for(;d=k.shift();)aH(d.features,c,d.hint)}else aH(d||[],c,e)},aH=function(a,b,c){function d(a,b){if(u)return 0;
cH.clearTimeout(t);x.push.apply(x,D);var d=((ZG||{}).config||{}).update;d?d(h):h&&oG(uG,"cu",[]).push(h);if(b){BG("me0",a,B);try{$G(b,c,n)}finally{BG("me1",a,B)}}return 1}
a=qG(a)||[];var e=b.callback,h=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,n=void 0;"function"==typeof m&&(n=m);var t=null,u=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=oG(xG(c),"r",[]).sort(),x=oG(xG(c),"L",[]).sort(),B=[].concat(m);0<k&&(t=cH.setTimeout(function(){u=!0;l()},k));
var D=RG(a,x);if(D.length){var D=RG(a,m),I=oG(uG,"CP",[]),z=I.length;I[z]=function(a){function b(){var a=I[z+1];a&&a()}
function c(b){I[z]=null;d(D,a)&&wG(function(){e&&e();b()})}
if(!a)return 0;BG("ml1",D,B);0<z&&I[z-1]?I[z]=function(){c(b)}:c(b)};
if(D.length){var Q="loaded_"+uG.I++;ZG[Q]=function(a){I[z](a);ZG[Q]=null};
a=HG(c,D,"gapi."+Q,m);m.push.apply(m,D);BG("ml0",D,B);b.sync||cH.___gapisync?VG(a):TG(a)}else I[z](nG)}else d(D)&&e&&e()},YG=function(a,b){if(uG.hee&&0<uG.hel)try{return a()}catch(c){b&&b(c),uG.hel--,bH("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;
}})}else try{return a()}catch(c){throw b&&b(c),c;
}},dH=function(){Gj.call(this);
this.o={}},eH=function(a,b,c){if(!a.o[b]&&(c.Je||c.hg)){var d=a.o,e=c;
Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.S("vast_info_card_add",b)}},fH=function(){J.call(this);
this.A=null;this.C=this.D=!1},iH=function(a,b){var c="";
b&&(gH(a,b),c=Yv(b));a.o.src&&""==c||(c&&a.o.src!=c&&hH(a,c),b&&b.o||a.load(),a.C||(a.addEventListener("volumechange",y(a.F,a)),a.C=!0))},lH=function(a){a.o.ended&&jH(a,0);
if(!a.o.src&&a.A){var b=Yv(a.A);hH(a,b);a.A.o||a.load()}a.play();kH&&7<=jx&&Fl(a,"playing",y(function(){ri(y(this.G,this,this.getCurrentTime(),0),500)},a))},gH=function(a,b){a.A&&a.A.equals(b)||(a.A&&a.A.dispose(),a.A=b)},Ty=function(a){return My(mH(a),a.getCurrentTime())},jH=function(a,b){0<a.o.readyState&&(kH&&4>jx&&(b=Math.max(.1,b)),a.o.currentTime=b)},nH=function(a){a.o.src&&(rw&&0<a.getCurrentTime()&&jH(a,0),a.o.removeAttribute("src"),a.load(),a.A&&a.A.o&&gH(a,null))},oH=function(a){var b=mH(a);
return 0<Ly(b)&&a.o.duration?Ky(b,a.getCurrentTime()):0},pH=function(a){var b=a.o.duration;
return window.Infinity==b?1:b?oH(a)/b:0},qH=function(a,b,c){this.target=a;
this.type=b;this.o=c||null},rH=function(a){fH.call(this);
this.o=a;this.B={}},hH=function(a,b){var c=a.o.playbackRate;
a.o.src=b;a.o.playbackRate=c},mH=function(a){return a.o.buffered||Hy()},sH=function(a,b){b?a.o.setAttribute("crossorigin","anonymous"):a.o.removeAttribute("crossorigin")},tH=function(a,b,c){Iq(a.o,b,c)},vH=function(){if(null==r("_lact",window)){var a=(0,window.parseInt)(pi("LACT"),10),a=(0,window.isFinite)(a)?K()-Math.max(a,0):-1;
q("_lact",a,window);-1==a&&uH();Dl(window.document,"keydown",uH);Dl(window.document,"keyup",uH);Dl(window.document,"mousedown",uH);Dl(window.document,"mouseup",uH);Di("page-mouse",uH);Di("page-scroll",uH);Di("page-resize",uH)}},uH=function(){null==r("_lact",window)&&(vH(),r("_lact",window));
var a=K();q("_lact",a,window);Fi("USER_ACTIVE")},mB=function(){var a=r("_lact",window);
return null==a?-1:Math.max(K()-a,0)},xH=function(a){a=a.responseText;
if(!ta(a,")]}'"))return wH(""),"";a=JSON.parse(a.substr(4)).id;wH(a);return a},zH=function(){ri(function(){yH=null},3E5)},AH=function(){return r("yt.www.ads.biscotti.lastId_")||""},wH=function(a){q("yt.www.ads.biscotti.lastId_",a,void 0)},BH=function(a,b){this.experimentIds=a?a.split(","):[];
this.flags=bj(b||"","&");var c={};F(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.A=!!c["9406444"];this.M=!!c["9405188"];this.B=!!c["9405408"];this.L=!!c["9405191"];this.G=!!c["9405409"];this.J=!!c["9416855"];this.P=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&au&&vc(8);this.H=!!c["9417025"];this.O=!!c["9417026"];this.C=!!c["9417027"];this.rw=!0;this.enableAudioCast=!!c["9408394"];this.F=!!c["9408919"];this.o=!!c["9414740"];this.K=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.U=!!c["9407182"]},OH=function(a){G.call(this);
a=ec(a);this.M={};this.experiments=new BH(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.ma=b;this.D=(this.L=CH.test(this.ma))?Ru("",a.loaderUrl):this.ma;this.Va=Kp(this.D);this.U=(this.pf=(this.Pb=Ou(!1,a.ssl_stream))||Ou(!1,a.ssl))?"https":"http";this.baseYtUrl=Hp(a.BASE_YT_URL)||Hp(this.ma)||this.U+"://www.youtube.com/";"adunit"==a.el?DH.test(this.D)?this.Aa="adunit":this.Aa="embedded":this.experiments.ga("legacy_el")?
this.Aa=a.el||this.Aa:"embedded"==a.el||this.Va?this.Aa=Pu(this.Aa,a.el,EH):a.el&&(this.Aa="embedded");vH();b=null;var c=a.ps,d=jb(FH,c);!c||d&&!this.Va||(b=c);this.o=b;this.Eb=jb(FH,this.o);this.C="blogger"==this.o||"books"==this.o||"docs"==this.o||"google-live"==this.o||"picasaweb"==this.o;this.wb=!this.C;this.mf=Ou(!this.C,a.showwatchlater);this.A={};this.A.c=a.c||"web";this.A.cver=a.cver||"html5";this.A.cplayer="UNIPLAYER";this.jb=Ou(!1,a.edu_mode);this.Z=!(!St().defaultPlaybackRate||zc&&!Np("chrome")||
ix||GH||Np("android")||Np("silk"));a.use_media_volume?b=!1:(b=St(),c=b.muted,b.muted=!c,b=b.muted!=c);this.rb=b;this.hf=HH;(ix||GH||au)&&"blazer"!=this.o&&IH(this);this.Ea=Ou("adunit"!=this.Aa&&"detailpage"!=this.Aa&&!this.Eb,a.showinfo);this.isMobile=this.experiments.ga("better_mobile_in_player")?JH||GH||Vp()||ix||KH(this):Ou("blazer"==this.o,a.is_html5_mobile_device);this.Ob=Ou(!1,a.playsinline);this.experiments.ga("better_mobile_in_player")?(b=JH&&2.3>=nw,c=Ou(this.isMobile||!1,a.override_native_controls)):
(b=this.isMobile&&JH&&2.3>=nw,c=KH(this)||!b&&Ou("native"==this.o,a.use_native_controls));this.B="0"!=a.controls?c?"3":"1":"0";this.useTabletControls=this.isMobile;this.color=Pu("red",a.color,LH);this.Ce="3"==this.B||Ou(!1,a.modestbranding)&&"red"==this.color;Ou(!1,a.nologo)&&(c=this.D,MH.test(c),Kp(c));this.ac=(c=!ny(this)&&"detailpage"!=this.Aa&&!this.C&&!this.Eb)&&!this.Ce&&"1"==this.B;this.nd="embedded"==this.Aa&&c&&!this.Ea&&!this.ac;this.nf=(this.De=b)&&!this.experiments.ga("better_mobile_in_player");
this.H=GH?!1:!0;this.ye=this.L||!1;this.W="detailpage"==this.Aa?"":(this.D||a.post_message_origin||"").substring(0,128);this.fb=!!a.disableCast;this.Wa=(this.K=Ou(!1,a.autoplay))||"detailpage"==this.Aa;this.Ia=!this.isMobile&&!Up()||Ou(!1,a.autoplayoverride);b=("detailpage"==this.Aa||"adunit"==this.Aa)&&"blazer"==this.o;this.ua=!Ou(!0,a.fs);this.Ja=!this.ua&&(b||Ah());this.md=Ou(!this.Eb,a.rel);this.lf="adunit"!=this.Aa;this.aa="profilepage"==this.Aa;this.Ca="blazer"==this.o||"mweb-polymer"==this.o;
switch(this.o){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.ea=b;this.Bb=Ru("",a.authuser);this.gb=Ou(!1,a.disablekb);this.pageId=Ru("",a.pageid);this.Ee=Uu(vu,a.vq);this.Fe=Ru("",a.playerapiid);this.kf=Ou(!0,a.canplaylive);this.xe=Ou(this.Eb,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],
10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*c?null:new te(b,c))):b=null;this.qd=b;this.mute=this.Va&&Ou(!1,a.mute);this.storeUserVolume=!this.mute&&Ou("0"!=this.B,a.store_user_volume);this.useMediaVolume=this.experiments.ga("native_controls_assume_media_volume")&&"3"==this.B||Ou(!1,a.use_media_volume);this.jf=Ou(!1,a.retryneterr)&&this.Va;this.sd="3"==this.B?3:Pu(void 0,a.iv_load_policy,nx);this.ka=Ou(!1,a.iv_allow_in_place_switch);this.Ma=Ru("",a.cc_lang_pref);this.da=Pu(void 0,a.cc_load_policy,
nx);this.fa=void 0==a.content_v?void 0:a.content_v.toString();this.ze=void 0==a.framer?void 0:a.framer.toString();this.O=Ru("en_US",a.hl);this.region=Ru("US",a.cr);this.hostLanguage=Ru("en",a.host_language);this.Be=Ou(!1,a.privembed);this.xb="";this.xa=new Pj;this.F=Ou(!0,a.deviceHasDisplay);this.Ra=Qu(this.Ra,a.ismb);NH(this,a);this.M=a;this.J=new dH;this.P=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.A.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||
this.experiments.ga("disable_innertube_config_reporting")||vi(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.A.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.Ae={apiaryHost:Ru("",b.apiary_host),iO:Ru("",b.apiary_host_firstparty),gapiHintOverride:Ou(!1,b.gapi_hint_override),gapiHintParams:Ru("",b.gapi_hint_params),innertubeApiKey:Ru("",b.innertube_api_key),
innertubeApiVersion:Ru("",b.innertube_api_version),dz:this.A.c,innertubeContextClientVersion:Ru("",b.innertube_context_client_version),fz:this.hostLanguage,ez:this.region};this.$b=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&Ou(!1,a.airplay_button);this.G=new mw(this.experiments,this.F,"web"==this.A.c.toLowerCase().substr(0,3)||Qp()||Rp());this.enableSafetyMode=Ou(!1,a.enable_safety_mode)},PH=function(a,b){a.$a=b.get("d",a.$a);
a.Fa=b.get("f",a.Fa)},NH=function(a,b){a.adFormat=void 0;
var c;(c=b.adformat)||(c=(c=b.attrib)&&Yb(QH,c)&&Yb(RH,c)?RH[c]+"_"+QH[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],d=!(1==d[1]&&8==e)&&(6==e||7==e||8==e||10==e);if(a.L||a.Va||d)a.adFormat=c,a.M.adformat=b.adformat,d||(a.Aa="adunit")}}if(c=b.video_id&&b.video_id!=a.xb)a.xb=b.video_id;(b.adpings||c)&&b.adpings&&dj(b.adpings);a.jb?d="s.youtubeeducation.com":a.wb?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||"s.youtube.com",
a.experiments.U&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.rd=d;a.od="//"+a.rd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ud=d,a.M.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.M.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var h in SH)c=SH[h],d=b[c],void 0!=d&&(a.A[c]=d);!a.ia&&b.cl&&(a.ia=+b.cl);a.userAge=Qu(a.userAge,b.user_age);a.userDisplayImage=Ru(a.userDisplayImage,b.user_display_image);kx.test(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=
Ru(a.userDisplayName,b.user_display_name);a.userGender=Ru(a.userGender,b.user_gender);a.Y=Ru(a.Y,b.eventid);a.Y&&(Nv=a.Y);a.csiPageType=Ru(a.csiPageType,b.csi_page_type);a.wa=Ru(a.wa,b.csi_service_name);a.Ca=Ou(a.Ca,b.enablecsi);b.enabled_engage_types&&(a.xa=new Pj(b.enabled_engage_types.split(",")));a.ka=Ou(a.ka,b.iv_allow_in_place_switch)},TH=function(a,b,c){b={video_id:b,
html5:1,page_subscribe:c?1:0};a.Bb&&(b.authuser=a.Bb);a.pageId&&(b.pageid=a.pageId);return ff(a.baseYtUrl+"get_video_metadata",b)},UH=function(a){var b=Xe(a.baseYtUrl),c=Ye(a.baseYtUrl);
c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.jb?"www.youtube.com":b},VH=function(a){return"gaming"==a.o?"gaming.youtube.com":UH(a)},WH=function(a,b,c){return a.U+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")},XH=function(a){if(a.ne)a:{a=a.ne;
var b={};if(a.o){if(a.o.getVideoPlaybackQuality){a=a.o.getVideoPlaybackQuality();break a}a.o.webkitDecodedFrameCount&&(b.totalVideoFrames=a.o.webkitDecodedFrameCount,b.droppedVideoFrames=a.o.webkitDroppedFrameCount)}a=b}else a={};return a},zy=function(a){return"leanback"==a.Aa||a.Eb||!a.md&&!a.aa?!1:!0},YH=function(a){return"detailpage"!=a.Aa&&"embedded"!=a.Aa&&"profilepage"!=a.Aa?!1:!0},ny=function(a){return 0==a.D.indexOf(a.baseYtUrl)},ky=function(a){return"detailpage"==a.Aa&&"gaming"!=a.o},KH=
function(a){return GH&&!a.Ob||Up()||a.experiments.ga("better_mobile_in_player")&&(Np("nintendo 3ds")||JH&&3>nw||Vp()&&!vc("10"))?!0:!1},IH=function(a){return Tp()||"TV"==a.A.cplatform},ZH=function(a){return"CHROMECAST/ANCHOVY"==a.A.cmodel},ry=function(a,b,c){return"detailpage"==a.Aa&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&!!b&&!b.ypcPreview&&!b.Ga&&!jb(b.K,"ypc")&&!c},$H=function(a,b,c,d){this.G=c;
this.C=gF(a).A;this.K=10;this.D=!0;this.U=this.P=this.W=this.B=this.A=null;this.Y=b;this.o=null;this.ca=a;this.aa=d;this.F=new ve(0,0,0,0);this.L=!1;this.J=!0},bI=function(a){a.A=window.document.createElement("canvas");
if(!a.A)return 1;a.G.appendChild(a.A);try{a.B=a.A.getContext("webgl")||a.A.getContext("experimental-webgl")}catch(d){return 2}if(null==a.B)return 3;var b=aI(a);if(0!=b)return b;var b=a.B,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.P=c;b=a.B;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,
b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.W=c;b=a.B;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.P);b.vertexAttribPointer(a.O,3,b.FLOAT,!1,0,0);a.M();a.C.crossOrigin="use-credentials";return 0},aI=function(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);
b.shaderSource(c,a.o.Sk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.o.Nk());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);
b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.O=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.O);a.U=e;a.o.gd(b,a.U,a.G);return 0},cI=function(a){a.A&&(bh(a.A),a.A=null);
a.B=null;a.D=!1;a.o&&a.o.destroy(a.aa);a.o=null;a.C.removeAttribute("crossorigin");a.C.style.display="";a.K=10},dI=function(a){jq.call(this,a);
this.da=!0;this.ra="webgl";this.C=new sr(this);H(this,this.C);this.D=new R(["div","webgl"]);this.D.o(gF(a).D);this.ca=a;this.A=null;this.B=!1},eI=function(a){a=a.C;
this.B=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.C=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.o=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;kx.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.A=a.ypc_item_url;this.videoId=a.ypc_vid},fI=function(){Cq.call(this,["div",
["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"]],["button",["ytp-drawer-open-button","ytp-button"]]]);var a=this.qa["ytp-drawer-close-button"];Jf(a,Pf());var b=this.qa["ytp-drawer-open-button"];S(this,a,"click",this.D);S(this,b,"click",this.show);this.A=new Ud(pa($d,this.element,"ytp-drawer-closed"),0);H(this,this.A);this.Hb(null);this.ha()},gI=function(a,b,c){Gj.call(this);
this.C=0==c;this.A=new fI;this.A.subscribe("close-clicked",this.F,this);H(this,this.A);this.D=window.document.createElement("div");L(this.D,"html5-ypc-endscreen");this.B=new R(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button",["html5-ypc-purchase","ytp-button"],"{{button_label}}"]]);H(this,this.B);this.H=this.B.qa["html5-ypc-purchase"];
S(this.B,this.H,"click",this.G,this);c=b.title;b.A&&(c=["a",{href:b.A,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.B.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.B});this.o(a)},hI=function(a){a.C||(a.D.appendChild(a.B.element),a.A.Hb(null),zq(a.D,"block"))},iI=function(a){a.C||a.A.show()},jI=function(a){jq.call(this,a);
this.logEvent=this.ra="ypc";this.B=this.D=this.A=null;this.G=window.NaN;this.C=null},kI=function(a){return Fx(a.getVideoData(),"ypc_module")?new jI(a):null},lI=function(a,b,c){var d=1E4;
c.C.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.C.ypc_overlay_timeout,10));a.B=new gI(a.C.element,a.A,d);a.B.subscribe("ypcContentRequest",a.yA,a);a.B.subscribe("ypcModuleCloseClicked",a.lB,a);zy(b)&&(b=new gq(0x8000000000000,0x8000000000000,{priority:2}),a.bb([b]));iI(a.B);ti(a.G);a.G=ri(y(function(){if(this.B){var a=this.B;a.C||a.A.ha()}},a),d)},mI=function(){return Zi("yt-player-quality")||"auto"},oI=function(a,b,c){w(a)&&(a={mediaContentUrl:a,
startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return nI(a)},nI=function(a,b,c){if(ia(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");
c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}},pI=function(a){this.A=window.Float32Array?new window.Float32Array(a):Array(a);
this.o=a-1},qI=function(a,b){a.o=(a.o+1)%a.A.length;
a.A[a.o]=b},rI=function(){this.D=new pI(50);
this.A=null;this.C=this.B=0;this.o=[]},sI=function(a,b){0!=a.o.length&&(b.D=a.o.length,b.H=me(a.o,function(a,b){return a+b},0),b.G=cb(a.o),b.K=Math.min.apply(Math,a.o),b.J=Math.max.apply(Math,a.o),a.o=[])},tI=function(a,b){if(a.A&&!(b>=a.B&&b<a.C)){var c=a.A.Bf(b);
a.B=a.A.re(c);a.C=a.B+a.A.qe(c);var d=K()/1E3,c=ds(a.A,c),d=d-(c?c.A:window.NaN);qI(a.D,d);a.o.push(d)}},uI=function(a,b){this.o=a;
this.A=b;this.B=1},yI=function(a,b,c,d){d/=a.B;
var e=vI(a.o)+1/wI(a.o),h;h=Math.max(.9*(d-3),xI(a.o)+8192*e);c=h/e*a.A.Ca/(b+c);c=Math.min(c,d);c=Math.max(a.A.ua,Math.min(a.A.xa,c));return Math.min(a.A.F,Math.max(65536,Math.ceil(c*b)))},zI=function(a){var b=wI(a.o);
a=1E-9+xI(a.o)+1048576*vI(a.o);return b*Math.min(1,1048576/(b*a))},AI=function(a){return zI(a)/a.B},BI=function(a,b,c){this.audio=a;
this.video=b;this.reason=c},CI=function(a,b,c,d){this.U=a;
this.H=b;this.F=c;this.J=d;this.B=this.L=this.o=null;this.D="i";this.M=-1;this.G=this.C=null;this.A=[];this.P=this.O=0;this.Y=null;this.K=!1},II=function(a,b,c){"m"==c&&a.o.isLocked()&&!b.isLocked()&&(c="a");
a.K=a.K||!1;if("m"==c&&b.isLocked())return a.D=c,DI(a,b),EI(a),a.B=FI(a),new BI(GI(a),a.B,c);var d=a.o.equals(b);if("m"==a.D&&a.o.isLocked()&&d)return null;"r"!=c||d||(a.M=-1);DI(a,b);b=FI(a);if("r"==c&&b==a.B){if(d)return null;a.B=b;return new BI(GI(a),b,c)}a.D=c;HI(a);return null},JI=function(a){return!!a.P&&9E4>=At()-a.P},GI=function(a){KI(a);
return a.C},FI=function(a){KI(a);
return a.G},HI=function(a){a.B&&a.G&&LI(a,a.B.info)<LI(a,a.G.info)&&(a.K=a.K||a.G.info.video.width>1.6*a.B.info.video.width||"r"==a.D)},MI=function(a){var b=a.D;
a.D="a";a.M=At();a.K=!1;return new BI(a.L,a.B,b)},KI=function(a){if(!(!a.o.isLocked()&&-1<a.M&&8E3>At()-a.M)){a.P&&!JI(a)&&(a.P=0,DI(a,a.o));
EI(a);var b=AI(a.U);if(a.o.isLocked())a.G=a.F.o[a.A[a.A.length-1].id];else{for(var c=Math.min(a.O,a.A.length-1),d=b/a.H.C-LI(a,a.C.info);0<c&&!(LI(a,a.A[c])<=d);c--);for(b=b/a.H.o-LI(a,a.C.info);c<a.A.length-1&&!(LI(a,a.A[c+1])>=b);c++);a.O=c;a.G=a.F.o[a.A[c].id];HI(a)}}},DI=function(a,b){a.o=b;
var c=a.J.videoInfos;if(!a.o.isLocked()&&(c=Zd(c,function(a){return LI(this,a)>this.H.H?!1:!this.F.o[a.id].D},a),JI(a))){var c=Zd(c,function(a){return a.id!=this.Y.id},a),d=Zd(c,function(a){a=Dr(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=Zd(c,b.C,b);d.length||(d=[c[0]]);d.sort(y(function(a,b){return LI(this,a)-LI(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],h=d[c];e.video.width>h.video.width?(ob(d,c),c--):LI(a,e)*a.H.o>LI(a,h)&&(ob(d,c-1),c--)}a.A=d;NI(a.H,d[d.length-1].video.dD)},OI=function(a,b){if(b)a.C=a.F.o[b];
else{var c=eb(a.J.o,function(a){return!!a.Fb&&a.Fb.isDefault}),c=c||a.J.o[0];
a.C=a.F.o[c.id]}EI(a)},EI=function(a){if(!a.C.info.Fb&&(a.C=a.F.o[a.J.o[0].id],1<a.J.o.length)){var b=!1;
if(a.o.isLocked())b=240>a.o.o;else{for(b=0;b+1<a.A.length&&"tiny"==a.A[b].video.quality;)b++;var c=AI(a.U)/a.H.o,b=LI(a,a.C.info)+LI(a,a.A[b])>c}b&&(a.C=a.F.o[a.J.o[1].id])}},PI=function(a){var b=a.H.C,c=AI(a.U)/b-LI(a,a.C.info),b=fb(a.A,function(a){return LI(this,a)<c},a);
0>b&&(b=0);a.O=b;a.G=a.F.o[a.A[b].id]},LI=function(a,b){return a.H.Ea&&b.C?b.C:b.o},QI=function(){this.o=this.A=0;
this.B=[]},RI=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]},SI=function(){this.o=this.A=!1},TI=function(a,b){this.P=a;
this.B=b;this.D=[];this.o=[];this.C=this.A=null;this.F=0;this.U=b.info.o;this.L=this.M=!1;this.J=new SI;this.H=null;this.G=0;this.K=b.Fp()},VI=function(a,b){a.D.push(b);
a.A=cb(b.info.o);a.F+=UI(b)},ZI=function(a){for(var b;a.D.length&&5==a.D[0].state;)b=a.D.shift(),!b.L&&b.o&&(a.F=WI(b,a.F)),XI(b)&&(b=YI(b),F(b,a.O,a));
a.D.length&&XI(a.D[0])&&!ps(a.D[0].info.o[0])&&(b=a.D[0],!b.L&&b.o&&(a.F=WI(b,a.F)),b=YI(b),F(b,a.O,a))},$I=function(a){return!(!a.o.length||1!=a.o[0].info.o.info.A||0!=a.o[0].info.B)},aJ=function(a){var b=ot(a.o[0]);
return b.getInt32(0)>b.byteLength&&1==a.o.length},cJ=function(a,b){aJ(a);
var c=a.o[0],d=bJ(a);if(!d)return null;c=b||c.info.o.index.Mk(c.info.C);return(d=Ss(d,c))?d:null},eJ=function(a){var b=a.o[0],c=bJ(a);
if(c&&(c=at(c)))if(c>ot(b).byteLength){var d=a.o[1];dJ(a,b.range);dJ(a,Yr(d.range.start,c-b.range.length))}else dJ(a,Yr(b.range.start,c))},bJ=function(a){var b=a.o[0],c=ot(b),d=at(c);
if(!d||d>c.byteLength){d=a.o[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.o,b.range.start,b.range.length));a.set(new window.Uint8Array(d.o,d.range.start,d.range.length),b.range.length);d=at(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c},fJ=function(a,b){if(a.M)return a.o[0].range;
var c=!!a.B.info.audio,d=a.B.bi();if(a.o[0].info.D>=b)return null;var e;for(e=1;e<a.o.length;e++){var h=a.o[e].o!=a.o[e-1].o;if(a.o[e].info.D>b||h||a.P.W)break}e--;var h=a.o[e].range.end,k=a.o[e].info.G-b;if(d&&c&&0<=a.P.U&&k>a.P.U){c=Math.floor((b-a.o[e].info.D)/a.o[e].info.J*a.o[e].info.A);if(0==c)return null;h=a.o[e].range.start+c-1}return new Wr(a.o[0].B?0:a.o[0].range.start,h)},dJ=function(a,b){for(var c;a.o.length;){if(a.o[0].range.end>b.end){var d;
c=a.o[0];var e=b.end-a.o[0].range.start+1,e=Math.min(e,c.info.A);d=new ns(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B,e,!1);var h=Yr(c.range.start,e);d=new nt(d,c.o,h,c.A,c.B);e=new ns(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B+e,c.info.A-e,c.info.H);h=new Wr(h.end+1,c.range.end);c=new nt(e,c.o,h,c.A,!1);d=[d,c];c=d[0];a.o[0]=d[1]}else c=a.o.shift();d=a;h=c.info;d.C=h;d.M&&d.C.F&&(d.M=!1);d.U=Math.max(d.U,h.o.info.o);
if(c.range.end==b.end)break}a.o.length&&c.o==a.o[0].o||(a.F-=c.A.length)},iJ=function(a,b){var c=gJ(a,b);
if(0<=c)return c;a.A=a.B.Lg(b).o[0];hJ(a)&&(a.C=null);a.H=null;a.G=0;return a.A.startTime},kJ=function(a,b){jJ(a);
if(a.B.info.video&&a.C&&!a.C.F&&b){var c=db(a.o,function(a){return a.info.F});
a.o=ub(a.o,0,c+1);a.M=!0}else a.o=[];if(a.o.length)for(a.F=a.o[0].A.length,c=1;c<a.o.length;c++)a.o[c].o!=a.o[c-1].o&&(a.F+=a.o[c].A.length);else a.F=0},lJ=function(a){a.J.A||a.J.start();
kJ(a,!1);hJ(a)&&(a.C=null)},mJ=function(a){return xh(a.o,function(a){return a.info.F})},hJ=function(a){return!!a.C&&a.C.H},nJ=function(a){var b=[];
a.C&&b.push(a.C);F(a.o,function(a){b.push(a.info)});
F(a.D,function(a){F(a.info.o,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.A&&!os(a.A,cb(b))&&b.push(a.A);return b},oJ=function(a){if(!a.A||!a.A.A)return!1;
a=nJ(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].D-a[b-1].G)))return!1;return!0},gJ=function(a,b){if(oJ(a)){var c;
a:{c=nJ(a);for(var d=0;d<c.length;d++)if(c[d].D<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN},pJ=function(a){return xh(a.D,function(a){return 3<=a.state})},qJ=function(a){return!(!a.A||!a.B.fd()||a.A.o==a.B)},rJ=function(a){return qJ(a)&&a.A.o.info.o<a.B.info.o},jJ=function(a){F(a.D,a.Y,a);
a.D=[];a.A=null},sJ=function(a){return!!a.A&&a.A.C<a.B.index.Kg()},tJ=function(a){a.A&&F(a.o,function(a){3==a.info.type&&a.info.C>this.A.C&&(this.A=a.info)},a)},uJ=function(a,b){this.B=a;
this.F=this.D=!1;this.length=b;this.A=0;this.o=[];if(1==this.B.length&&!this.B[0].range){var c=this.B,d;d=this.B[0];var e=Yr(0,this.length);d=new ns(d.type,d.o,e,d.C,d.startTime,d.duration,d.B,e.length,d.H);c[0]=d}this.C=null},vJ=function(a){var b=a.length-a.A;
F(a.o,function(a){b+=a.range.length});
return b},xJ=function(a,b,c,d){this.status=0;
this.J=this.A=null;this.K=d;this.F=c;this.B=[];this.G=null;this.D=this.o=0;wJ++;this.L=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(qi(y(this.fD,this)),qi(y(this.Pj,this)));K();this.H=!1;b()},zJ=function(a){a.B.push(a.G.subarray(0,a.o));
a.o=0;a.G=a.H?null:new window.Uint8Array(yJ(a))},AJ=function(a){a.C.read().then(qi(y(a.jA,a)),qi(y(a.Pj,a)));
var b=K();a.L=b},yJ=function(a){a=a.sg();
return Math.max(16384,.125*a)},CJ=function(a,b,c,d){this.status=0;
this.A=null;BJ++;this.B=this.C=!1;this.o=new window.XMLHttpRequest;this.o.open("GET",a);this.o.responseType="arraybuffer";this.o.withCredentials=!0;this.D=d;this.F=c;a=qi(y(this.lF,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",qi(y(this.mF,this)),!1)},DJ=function(a,b,c){this.C=a;
this.info=b;this.timing=c;this.state=1;this.A=null;this.M=this.G=this.K=0;this.F=window.NaN;this.H=this.B=this.P=null;this.D=0;this.o=null;this.L=!1;this.J=null;this.O=window.NaN},EJ=function(a){var b;
b=a.timing;b={rt:((K()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=a.B?Pr(a.B.o):"";b.rn=a.K.toString();a.D&&(b.rc=a.D.toString());410!=a.D&&500!=a.D&&503!=a.D||(b.isPotentialFormatUnavaliable="true");return b},FJ=function(a){a.isDisposed();
if(2>a.G)a=!0;else{var b=a.info.B;a=!(a.K>b.B&&1<=b.A)}return a},GJ=function(a,b){a.state=b;
if(4<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.P&&a.P(a)},HJ=function(a){return Re(a.info.o,function(a){return 3==a.type})},IJ=function(a){if(a.A){var b=a.A;
a.A=null;b.ts()}a=a.timing;a.C&&(a.C=!1)},KJ=function(a){var b=a.A.zh("content-type"),c=a.A.sg();
return(!JJ(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)},YI=function(a){a=a.o;
var b=a.o;a.o=[];a.C=cb(b).info;return b},XI=function(a){return 2<=a.state&&!!a.o&&!!a.o.o.length},LJ=function(a,b){JJ(a)&&!a.A.sg()&&(a.C.Ka=!1,a.C.ea=!1);
if(b||JJ(a)&&!KJ(a)){if(!a.o){var c=b?a.A.Jk():a.A.sg();a.o=new uJ(a.info.o,c)}for(;a.A.Ip();)for(var c=a.o,d=a.A.zr(),e=0,h=0,k=0;k<c.B.length;k++){var l=c.B[k];if(e+l.A<=c.A)e+=l.A;else{var m;var n=c,t=l;1==t.type?(n.D=!0,m=!1):3==t.type||4==t.type?(t=n.D&&!n.F,n.F=!0,m=t):m=!1;var n=c,t=l,u=c.A-e,x=h,B=d,D=Math.min(t.A-u,B.length-x),I=void 0,I=new ns(t.type,t.o,t.range,t.C,t.startTime,t.duration,t.B+u,D,t.B+u+D==t.range.length&&t.H),z=u=void 0,u=B.buffer,x=B.byteOffset+x,B=Yr(B.byteOffset,B.length);
1==t.type?(u.slice?u=u.slice(x,D):(t=new window.Uint8Array(u,x,D),u=(new window.Uint8Array(t)).buffer),z=Yr(0,D)):z=Yr(x,D);n.o.push(new nt(I,u,z,B,m));n=D;c.A+=n;h+=n;e+=l.A;if(h==d.length)break}}}},WI=function(a,b){a.L=!0;
return b-xs(a.info)+UI(a)},UI=function(a){return a.o&&a.L?vJ(a.o):xs(a.info)},JJ=function(a){return!!(a.C.Ka||a.C.ea&&a.A&&a.A instanceof xJ)},MJ=function(a,b,c){this.B=a;
this.K=b;this.P=c;this.o=this.F=this.A=window.NaN;this.J=this.L=this.C=!1;this.D=0;this.G=this.M=window.NaN},PJ=function(a,b,c){if(a.C){var d=(b-a.F)/1E3,e=c-a.o;
0<e&&(.2<d||1024>e?(a.D+=d,.2<d&&NJ(a.B,.05,e)):NJ(a.B,d,e),a.J=!0)}else 8192<=c&&(OJ(a.B,(b-a.A)/1E3),a.C=!0);a.F=b;a.o=c},QJ=function(a){var b=a.K-a.o,b=1E3*(b*a.H.tailDelay+b/a.H.byterate),c=K(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.H.delay);
a.G=b},RJ=function(a,b,c,d){Gj.call(this);
this.H=a;this.C=b;this.D=c;this.B=this.A=null;this.L=new uI(a,b);this.o=null;this.G=new CI(this.L,b,this.D,d);this.F=this.ia=this.da=this.fa=window.NaN;this.M=!1;this.J=window.NaN;this.wa=0;this.K=!1;this.ma={};this.O="";this.W=this.Z=0;this.ka=b.Ja?new QI:null;this.ea=this.aa=window.NaN},UJ=function(a){0==a.F&&(a.A.B.B||SJ(a,a.A,!0),a.B.B.B||SJ(a,a.B,!0));
a.seek(a.F);TJ(a,"gv")},WJ=function(a){a.o&&a.o.o&&a.o.o.removeEventListener&&(a.o.o.removeEventListener("updateend",y(a.Dc,a),!1),a.o.A.removeEventListener("updateend",y(a.Dc,a),!1),a.o.o.removeEventListener("error",y(a.Xi,a,!0),!1),a.o.A.removeEventListener("error",y(a.Xi,a,!1),!1));
a.o=null;a.K=!0;VJ(a)},XJ=function(a){a.o&&gw(a.o)&&WJ(a)},YJ=function(a,b,c){if(!b.J.A||!c.remove)return!1;
if(c.updating)return!0;if(!b.J.o&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.o=!0;b.J.reset();a.S("seekrequired");return!1},$J=function(a,b,c){if(a.K)return!1;
if(a.D.A){if(0<b.D.length)return!1;if(b.K)return!0}if(!b.A){if(!b.B.fd())return b.B.B||SJ(a,b,!1),!1;iJ(b,a.F)}var d=b.D.length+c.D.length;(pJ(b)||pJ(c)||a.D.isLive)&&--d;if(2<=d+1)return!1;d=b.A;4==d.type&&d.o.fd()&&(b.A=cb(d.o.hj(d)),d=b.A);if(!d.H&&!d.o.Ah(d)||d.o.info.audio&&4==d.type)a=!1;else if(rJ(b)&&!a.C.J)a=!0;else{if(!(c=d.H||b.F+c.F>a.C.L||!!(c.A&&!c.A.H&&c.A.G<d.G)&&(!a.D.A||c.A.G&&d.G))&&(c=3==d.type)){d=d.G;b=ZJ(a,b,!0);if(a.C.da){c=At();if(!(0,window.isNaN)(a.aa)&&!(0,window.isNaN)(a.ea)){var e=
a.ea+(c-a.aa)/1E3;b=Math.min(b,e)}a.aa=c;a.ea=b}else a.G.o.isLocked()||(e=30+2*((At()-a.wa)/1E3),b=Math.min(b,e));c=d>a.F+b}a=c?!1:!0}return a},aK=function(a,b,c){if(!a.o||fw(a.o)||jw(a.o)){var d=a.F,e=a.L;
c=yI(e,b.B.info.o,c.B.info.o,0);e=xI(e.o)+c*vI(e.o)+c/wI(e.o);a:{d+=Math.max(e,e+5-c/b.B.info.o);a=a.G.K;if(b.D.length){if(b.D[0].info.o[0].startTime<=d)break a;jJ(b)}for(e=b.o.length-1;0<=e;e--)c=b.o[e],c.info.startTime>d&&(b.o.pop(),b.o.length&&b.o[e-1].o==c.o||(b.F-=c.A.length));b.D.length?b.A=cb(b.D[b.D.length-1].info.o):b.o.length?b.A=cb(b.o).info:b.A=b.C;a&&b.A&&d<b.A.startTime&&(b.H=null,b.G=0,b.A=b.B.Lg(d,!0).o[0])}}},cK=function(a,b,c){$J(a,b,c);
var d=b.A;if(b.K)d=b.B.Lg(window.Infinity);else if(b.A.o.fd()){!rJ(b)||a.C.J||a.D.A||(aK(a,b,c),b.A||iJ(b,a.F));var d=b.A,e=d.G-a.F,h=!d.range||0==d.A&&0==d.B?0:d.range.length-(d.B+d.A);qJ(b)&&(rJ(b)||25>=e)&&0==h&&(a.D.A?d.o=b.B:(h=d.startTime+RJ.o,d.A&&(h+=d.duration),iJ(b,h),d=b.A));d.o.bi()?(c=yI(a.L,d.o.info.o,c.B.info.o,e),e=qJ(b),c=zt(d.o,d,c),c.range&&1<c.o.length&&(e?c=zt(d.o,d,c.o[0].A):(e=c.o[c.o.length-1],h=e.A/c.range.length,!e.F&&.4>h&&(c=zt(d.o,d,c.range.length-e.A)))),d=c):d=As(d.o,
d)}else d.o.bi()?(c=yI(a.L,b.B.info.o,c.B.info.o,0),d=zt(d.o,d,c)):d=As(d.o,d);VI(b,bK(a,d))},bK=function(a,b){if(3==b.o[b.o.length-1].type){var c;
a:{c=a.G;var d=b.o[0].o;if(d.info.video){if(c.B!=d){c.B=d;c=MI(c);break a}}else c.L=d;c=null}c&&a.S("videoformatchange",c)}c=xs(b);var d=a.H,e=a.L,h=Math.min(e.A.Fa,xI(e.o)),e=zI(e);c=new DJ(a.C,b,new MJ(d,c,c-h*e));d=y(a.WB,a);c.isDisposed();c.P=d;c.start(Math.max(0,b.o[0].D-a.F));return c},dK=function(a,b){var c=b.o.o;
return Re(c,function(a){return pt(a)},a)&&!(c[0]&&c[0].info.o.Hl())},eK=function(a,b){F(b.o.o,function(a){ps(a.info)&&a.info.o.Uo(a);
if(this.D.A&&3==a.info.type){var b;b=ot(a);if(b=Ms(b,0,1701671783)){$s(b);$s(b);Zs(b);Zs(b);Zs(b);Zs(b);var e=b.data.buffer.slice(b.offset+b.o,b.size+b.offset);b.o=b.size;b=String.fromCharCode.apply(String,new window.Uint8Array(e));b=Ls(b)}else b=null;b&&b["Sequence-Number"]&&(a.info.C=(0,window.parseInt)(b["Sequence-Number"],10))}if(this.C.Ia&&this.D.B&&1==a.info.o.info.A){b=a.range?new window.Uint8Array(a.o,a.range.start,a.range.length):new window.Uint8Array(a.o);for(e=Ms(new window.DataView(b.buffer),
0,1701671783);e;){var h=new window.Uint8Array(b.byteLength-e.size);h.set(b.subarray(0,e.offset));h.set(b.subarray(e.offset+e.size),e.offset);b=h;e=Ms(new window.DataView(b.buffer),0,1701671783)}a.o=b.buffer;a.range=Yr(0,a.o.byteLength);a.A=a.range}},a)},fK=function(a){if((0,window.isNaN)(a.fa)){var b=y(a.Dc,a);
a.fa=ri(b,0)}},gK=function(a){if((0,window.isNaN)(a.da)){var b=y(function(){this.da=window.NaN;
this.Dc()},a);
a.da=ri(b,1E3)}},kK=function(a,b,c,d,e){if(c.updating)return!0;
var h=b.o.length?b.o[0]:null;if(!h)return!1;!b.C||b.C.F||qs(b.C,h.info)||(b.C=null,fw(a.o)&&c.abort(),c.o=null);var k=a.D.isLive&&tt(h),l=!a.D.B&&b.P.W&&$I(b);if(k||a.D.A)c.o=null;else{if(k=l||!h.B)k=h.info.o.o,c.o==k?k=!1:(hK(a,c,k),c.o=k,a.S("initsegment",c.o),k=c.updating);if(k)return!0}k=ZJ(a,b,!1);k=a.F+k;null!==d&&0<=d&&(k=Math.min(k,d));d=fJ(b,k);if(!d)return!1;if(l){if(aJ(b))return!1;if(k=cJ(b))return iK(a,c,new window.Uint8Array(k),h,b)?(eJ(b),!0):!1}k=new window.Uint8Array(h.o,d.start,d.length);
if(a.ka&&h.info.o.info.video&&1==h.info.o.info.A){var m=a.ka,n=k;0==h.info.B&&(m.A=0,m.o=0,m.B=[]);if(!((0,window.isNaN)(m.A)||8>n.length)){for(var t=new window.DataView(n.buffer,n.byteOffset),u=!1;!u;)if(m.A==m.o)a:{var u=m,x=t,B=n.length;if(u.A+7>=B){for(var D=u.A;D<B;D++)u.B.push(x.getUint8(D));u=!0}else{var I=D=void 0;if(0<u.B.length){for(D=0;8>u.B.length;D++)u.B.push(x.getUint8(D));D=RI(u.B,0);I=RI(u.B,4);u.B=[]}else D=x.getUint32(u.o),I=x.getUint32(u.o+4);if(1836019558==I||1836019574==I||1718909296==
I||1936286840==I)u.A+=D,u.o=u.A;else if(1835295092==I)u.A+=D,u.o+=8;else{u.A=window.NaN;u=!0;break a}u=u.o>=B}}else a:if(u=m,x=t,B=n.length,u.o+5>=B){for(D=u.o;D<B;D++)u.B.push(x.getUint8(D));u=!0}else{D=void 0;if(0<u.B.length){for(D=0;6>u.B.length;D++)u.B.push(x.getUint8(D));D=RI(u.B,0);12==D&&6==u.B[4]&&45==u.B[5]&&x.setUint8(u.o+5,63);u.o+=D+4;u.B=[]}for(;u.o<u.A&&u.o+5<B;){D=x.getUint32(u.o);if(0>=D){u.A=window.NaN;u=!0;break a}12==D&&6==x.getUint8(u.o+4)&&45==x.getUint8(u.o+5)&&x.setUint8(u.o+
5,63);u.o+=D+4}u=u.o>=B}(0,window.isNaN)(m.A)||(m.A-=n.length,m.o-=n.length)}}m=!1;if(3==h.info.type&&(1==h.info.o.info.A||2==h.info.o.info.A))if(m=1==h.info.o.info.A&&a.C.Ra&&!l&&!b.L&&0==h.info.B&&0<h.info.startTime)qt(h,0);else if(a.D.B&&0==h.info.B){l=new window.DataView(k.buffer);for(n=0;Ts(l,n);)t=Us(l,n),n+=t.size;a:if($I(b)&&!tt(b.o[0])&&aJ(b))e=!1;else{n=null===b.H?h.info.startTime:b.H;if(0==qt(h,n)){var z=ts(h.info);z.smst=1;a.hd(!0,"fmt.unparseable",z)}else if(t=rt(h),b.H=n+t,a.D.A&&h.info.o.info.video)for(z in l=
a.D,n=new bs(h.info.C,n,t,0,"sq/"+h.info.C),l.o)n.o>l.o[z].index.Lb()&&l.o[z].index.sa.push(n);z=0;h.info.o.info.video&&null!==e&&h.info.duration&&(l=jK(h,b,e),25<=Math.abs(l)&&(z=l/1E3));z&&(l=rt(h)+z,n=jK(h,b,e),t=ts(h.info),t.deltaOffsetMs=n,t.cumOffsetMs=e-n,t.finalDurSecs=l,a.hd(!1,"qoe.avsync",t));if(2!=h.info.o.info.A)if(z&&$I(b)&&!tt(b.o[0])){b.G+=1E3*(rt(h)-h.info.duration+z);b.H+=z;e=rt(h)+z;b:{z=0;for(l=new window.DataView(h.o);Ts(l,z);){n=Us(l,z);if(1936286840==n.type){z=n.data.getUint32(n.offset+
16);break b}z=Ws(n.type)?z+8:z+n.size}z=window.NaN}if((0,window.isNaN)(z))b:{z=h.info.o.o;l=0;for(n=new window.DataView(h.o);Ts(n,l);){t=Us(n,l);if(1836476516==t.type){z=Vs(t);break b}l=Ws(t.type)?l+8:l+t.size}z=z?Xs(z):window.NaN}if(e=cJ(b,e*z)){if(iK(a,c,new window.Uint8Array(e),h,b)){eJ(b);e=!0;break a}e=!1;break a}}else b.G+=1E3*(rt(h)-h.info.duration);e=null}if(null!=e)return e}if(!iK(a,c,k,h,b))return!1;b.L=!0;m?(qt(h,h.info.startTime),c.abort(),c.o=null,us(h.info)):(dJ(b,d),us(b.C),Iy(c.buffered));
h.B&&(c.o=h.info.o.o,a.S("initsegment",c.o));return!0},iK=function(a,b,c,d,e){return hK(a,b,c)?!0:(d.info.o.info.video?(a=a.C,a.B=Math.floor(.5*a.B),a.M=Math.floor(.5*a.M),a.A=Math.floor(.5*a.A),a.F=Math.floor(.5*a.F)):(a=a.C,a.D=Math.floor(.5*a.D),a.O=Math.floor(.5*a.O),a.A=Math.floor(.5*a.A)),lJ(e),!1)},jK=function(a,b,c){a=1E3*(rt(a)-a.info.duration);
return c-(b.G+a)},hK=function(a,b,c){try{jw(a.o)?b.appendBuffer(c):b.append(c)}catch(d){if((a.C.K||a.C.ia)&&11==d.code)return ri(y(a.hd,a,a.C.K,"fmt.unplayable",{invalidState:"1",
updating:""+ +b.updating,mrs:a.o.B.readyState}),0),!1;22!=d.code&&0!=d.message.indexOf("Not enough storage")&&vi(d);return!1}return!gw(a.o)},ZJ=function(a,b,c){var d=b.B.info.audio?a.C.D:a.C.B;
!a.C.J&&a.G.o.isLocked()&&(d=Math.max(d,b.B.info.audio?a.C.O:a.C.M));c&&(d+=a.C.L);b=a.G.o.isLocked()?b.A?b.A.o.info.o:b.B.info.o:b.U;d/=b;0<a.C.A&&(d=Math.min(d,a.C.A));a.C.da&&(c=wI(a.H),d=Math.min(d,30+Math.max(b-Math.max(1-.4*a.C.Z,0)*c,0)*a.C.aa/b));return d},lK=function(a){if(a.D.isLive){if(!a.A.B.index.cf())return window.NaN;
var b=a.A.B.index.Kg(),c=a.A.B.index.Lb(),d=a.A.B.index;return 1>a.C.liveChunkReadahead?d.re(c)+d.qe(c)-.2:d.re(Math.max(b,c-a.C.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.A.B.index.rg(),a.B.B.index.rg()))},mK=function(a,b,c,d){if(b.B.fd())if(d){var e=Ky(d.buffered,c),h=window.NaN,k=b.C;
k&&(h=Ky(d.buffered,k.o.index.re(k.C)));if(e==h&&oJ(b))return c;d=gJ(b,c);if(0<=d)return d;kJ(b,!0);b.B.info.video&&b.C&&!b.C.F&&!mJ(b)&&(d=b.C,b.o.length&&(d=cb(b.o).info),d=b.A||d,d=zt(d.o,d,d.range.length-(d.A+d.B)),VI(b,bK(a,d)));if((0,window.isNaN)(e))return iJ(b,c);iJ(b,e+RJ.o)}else iJ(b,c);else b.B.B||SJ(a,b,!1),0!=c&&jJ(b);return c},nK=function(a,b,c){b.B!=c&&(b.B=c,c.B||SJ(a,b,!1))},SJ=function(a,b,c){var d=c?65536:0;
c&&!(0,window.isNaN)(a.C.P)&&(d=Math.min(a.C.F,Math.floor(Math.max(d,a.C.P*b.B.info.o))));c=b.B.Io(d);F(c,function(a){if("f"!=a.o[0].o.info.B){var c=bK(this,a);!ps(a.o[a.o.length-1])&&VI(b,c)}},a);
b.B.B=!0},oK=function(a){if(!a.B.A)return"";
a=Pr(a.B.A.o.F.o);return a.substr(0,a.indexOf("."))},TJ=function(a,b,c){a.ma[b]=c?window.performance.timing.navigationStart+c:At()},VJ=function(a){a.A&&kJ(a.A,!1);
a.B&&kJ(a.B,!1)},pK=function(){this.wa=this.ka=!1;
this.U=1;this.B=20971520;this.D=8388608;this.A=window.NaN;this.L=3145728;this.M=62914560;this.O=10485760;this.H=window.NaN;this.P=2;this.Fa=2.5;this.ua=2;this.xa=25;this.F=2097152;this.J=!1;this.G=1800;this.fa=!1;this.o=1.15;this.C=1.05;this.Ua=!0;this.liveChunkReadahead=3;this.Ra=Np("xboxone")||Sp()||Op();this.W=!1;this.Ma=ul&&!0;this.Wa=!0;this.ea=this.Ja=this.Ka=!1;this.ma=this.Y=0;this.Ca=.8;this.Ia=this.Ea=!1;this.K=!0;this.da=this.ia=!1;this.aa=10;this.Z=1.25},NI=function(a,b){1440<b&&!a.ka&&
(a.B=36700160,a.D=5242880,a.L=10485760,a.F=4194304,a.ka=!0);
2160<b&&!a.wa&&(a.B=104857600,a.wa=!0)},qK=function(a,b,c,d,e){G.call(this);
this.D=a;this.K=b;this.H=c;this.C=d;this.o=e;this.sessionId="";this.A=this.J=this.F=this.G=null;this.B=new sr(this);H(this,this.B);this.C?(T(this.B,this.C,"message",this.wG),T(this.B,this.C,"keystatuseschange",this.YA)):this.o&&(tr(this.B,this.o,["mskeymessage","webkitkeymessage"],this.zq),tr(this.B,this.o,["mskeyerror","webkitkeyerror"],this.yq),tr(this.B,this.o,["mskeyadded","webkitkeyadded"],this.xq))},rK=function(a,b){G.call(this);
this.A=a;this.o=b;this.F={};this.B=null;this.D=new sr(this);H(this,this.D);this.C=this.G=null},uK=function(a){if(a.o.A)return a.o.A.createMediaKeys().then(qi(y(function(a){this.G=a;
this.A.setMediaKeys(a)},a)));
Zt(a.o)?sK(a):$t(a.o)?(sK(a),a.A.webkitSetMediaKeys(a.C)):tK(a);return null},tK=function(a){tr(a.D,a.A,["keymessage",
"webkitkeymessage"],a.zG);tr(a.D,a.A,["keyerror","webkitkeyerror"],a.yG);tr(a.D,a.A,["keyadded","webkitkeyadded"],a.xG)},sK=function(a){a.C=new (Yt())(a.o.B)},vK=function(a,b){var c=a.F[b.sessionId];
!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.F[b.sessionId]=c);return c},wK=function(){this.keys=[];
this.values=[]},xK=function(a,b){return fb(a.keys,function(a){return Gb(b,a)})},yK=function(a,b,c){this.url=a;
this.interval=b;this.o=c},zK=function(a,b,c){this.o=a;
this.headers=b;this.message=c},BK=function(a,b,c,d,e){G.call(this);
this.A=a;this.o=d;this.o.subscribe("oauthtoken",this.vs,this);this.C={session_id:e};a=this.A.D;$t(this.A)&&(a=c.o.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));AK(this,a);this.D=this.F=!1;var h;try{h=b.createSession(c)}catch(k){b="t.g",k instanceof window.DOMException&&(b+=";c."+k.code),this.o.S("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),h=null}if(this.B=h)this.B.setCallbacks(this.pF,
this.oF,this.nF,this),H(this,this.B)},AK=function(a,b){if(CK.test(b)){for(var c in a.C)b=mf(b,c,a.C[c]);
a.H=b}else DK(a,"drm.net","t.u")},DK=function(a,b,c,d){a.isDisposed()||a.o.S("licenseerror",b,c,d);
a.dispose()},EK=function(a,b){this.o=a;
this.contentType=b||null},GK=function(a,b,c,d){Gj.call(this);
c=c.ga("edge_nonprefixed_eme");a.addKey||a.webkitAddKey||Yt()||du(c);this.G=a;this.o=b;this.subscribe("newlicense",this.tB,this);this.subscribe("newsession",this.uB,this);this.subscribe("sessionready",this.dC,this);this.U=Qv();this.K=null;this.C=new wK;this.A=[];this.D=FK;this.J=new rK(a,b);H(this,this.J);this.B=null;Zt(b)&&(this.B=new rK(a,b),H(this,this.B));this.M=2;this.H=new sr(this);H(this,this.H);this.L=!1;this.P=null;this.F=!1;a=this.G;this.o.A?T(this.H,a,"encrypted",this.KA):(b=Zt(this.o)?
["msneedkey"]:["needkey","webkitneedkey"],tr(this.H,a,b,this.rB));(a=uK(this.J))?a.then(qi(y(this.jB,this)),qi(y(this.Wz,this))):this.F=!0;this.B&&uK(this.B);this.O=d},IK=function(a,b,c){a.isDisposed()||Zt(a.o)==c||a.L&&"widevine"==a.o.o&&!a.O||(a.L=!0,a.C.get(b.o)||(a.A.push(b),1<a.A.length||a.F&&a.C.set(b.o,HK(a,b))))},HK=function(a,b){a.C.get(b.o);
var c=new BK(a.o,a.J,b,a,a.U);c.vs(a.K);return c},JK=function(a){this.A={};
this.A.c1a=y(this.D,this);this.A.c3a=y(this.F,this);this.A.c6a=y(this.C,this);(this.o=a)&&this.o.ia?this.B=dj(this.o.ia):this.B=[]},KK=function(a,b,c,d){this.videoData=a;
this.o=b;this.reason=c;this.A=d},LK=function(a,b){this.X=a;
this.o=b},MK=function(a,b){return wu(wu(a.X.Ee,b.ih),b.nh)},OK=function(a,b){var c=mI();
return"auto"!=c?tu("auto",c,!1):NK(a,b)},NK=function(a,b){if(IH(a.X)&&Dw(a.X.G,yw))return vu;
var c;c=!!b.A.o;var d;KH(a.X)&&(d=window.screen&&window.screen.width?new te(window.screen.width,window.screen.height):null);d||(d=a.X.qd?a.X.qd.clone():a.o.La());(GH||PK||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.videoInfos;if(d.length){var h=.85;2==d[0].video.projectionType?h*=.5:3==d[0].video.projectionType&&(h*=.25);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*h<c.width&&e.height*h<c.height);k++);e=tu("auto",e.quality,!1)}else e=vu;c=e.o;Tp()&&(c=Math.max(c,Kr.hd1080));
if(d=(Np("armv7")||Np("android"))&&!IH(a.X))d=b.A.videoInfos[0],d="9"==d.B||"("==d.B;d&&(c=Math.min(c,Kr.large));c=Math.max(c,Kr.medium);e.o!=c&&(e=new ru(e.A,c,e.B));return e},QK=function(a){this.C=this.o=window.NaN;
this.A=this.B=!1;this.D=!!a},RK=function(a,b){a.o=b;
a.B=!0},Wy=function(a,b,c,d){var e=1<d;
e&&(a.A=!0);if(a.B)b!=a.o&&(a.B=!1);else if(0<b&&a.o==b)return c-a.C>(e||!a.A?1500:400);a.o=b;a.C=c;return a.D&&a.A&&0>=d},SK=function(a){if(a.Il)return 4;
var b=wh("visibilityState",window.document);return b&&"visible"!=b?3:a.Qf?2:a.Jl?1:0},TK=function(){this.A=0;
this.o=this.F=this.B=this.C=window.NaN;this.D=0;this.J=this.K=this.G=this.H=window.NaN},UK=function(){this.endTime=this.startTime=-1;
this.rk="-";this.playbackRate=1;this.visibilityState=0;this.nk=""},VK=function(a,b,c,d,e,h,k,l,m){this.videoData=a;
this.o=b;this.C=c;this.D=d;this.A=e;this.F=h;this.J=k;this.H=l;this.G=m||function(){};
this.B=null},tB=function(a){return WK(a)()},WK=function(a){a.B||(a.B=pa(function(a){return Math.round(At()-a)/1E3},At()));
return a.B},vB=function(a){var b=a.C();
a=a.videoData;var c={};a.B&&(c.fmt=a.B.id,a.F&&a.F.id!=a.B.id&&(c.afmt=a.F.id));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Wh&&(c.infringe=1);a.ng&&(c.splay=1);a.Ga&&(c.live=a.Od?"dvr":"live");a.Lc&&(c.autoplay=1);a.De&&(c.sdetail=a.De);a.P&&(c.partnerid=a.P);a.osid&&(c.osid=a.osid);qa(b,c);return b},$A=function(a){var b=new UK;
b.rk=a.C().cc||"-";var c=a.o;b.playbackRate=c.ne&&c.ne.o.playbackRate||1;c=SK(a.o);0!=c&&(b.visibilityState=c);a=a.H();a.Fb&&a.Fb.id&&"und"!=a.Fb.id&&(b.nk=a.Fb.id);return b},XK=function(a,b){this.state=a;
this.o=b},CB=function(a,b){return U(a.state,b)&&!U(a.o,b)?1:!U(a.state,b)&&U(a.o,b)?-1:0},YK=function(a,b,c,d,e){Gj.call(this);
this.Ca=new QK(a.experiments.ga("html5_always_underrun_on_empty_buffer"));this.G=c;this.Ia=d;this.F=new zA(y(this.getCurrentTime,this),y(this.yE,this),y(this.getPlayerState,this),e);H(this,this.F);this.ia=window.NaN;this.P=this.H=null;this.X=a;this.wa=new LK(a,this.Ia);this.J=!1;this.K=this.D=null;this.Z=[];this.ea=new SI;this.O=new SI;this.jb=this.Ea=!1;this.Fa=window.NaN;this.C=new Qy;this.ma=[];this.L=b;this.da=this.ka=null;this.M=window.NaN;this.fa=new sr;H(this,this.fa);this.o=new bx;this.A=
this.aa=null;this.U=window.NaN;this.B=null;this.fb=this.gb=!1;this.xa=window.NaN;this.Ma=this.Ra=this.$a=this.ua=!1;this.Wa=window.NaN;this.rb=a.experiments.ga("html5_force_play_on_suspend_event");this.wb=a.experiments.ga("html5_force_play_on_suspend_event_limited");this.W=null;this.xb=this.X.experiments.ga("html5_playing_event_buffer_underrun")},ZK=function(a){Vu()?Xu(a.xa):ti(a.xa)},$K=function(a){if(a.B){var b=a.B;
if(!b.isDisposed()&&b.C){b.F="paused";var c=yB(b);c.fa=!0;c.send();c=b.B;"PL"==c.A&&(c.A="N");var d=tB(c.o);iB(c,d,"vps",[c.A]);c.eh(d);ti(b.D);b.dispose()}Mb(a.B);a.B=null}},aL=function(a){return a.A?a.A.la():null},cL=function(a){if(Cx(a.o))return!0;
bL(a,"api.invalidparam");return!1},dL=function(a,b){a.Ea=!!b;
cL(a)&&!a.ea.A&&(a.ea.start(),a.B&&a.B.gg(),a.so())},gL=function(a){a.A&&iH(a.A);
dL(a);cL(a)&&!U(a.C,128)&&(a.O.A||(a.O.start(),eL(a,Xy(a.C,8)),Ex(a.o)||eL(a,Xy(a.C,1))),fL(a))},fL=function(a){a.isDisposed();
if(!a.O.o&&a.ea.o&&!U(a.C,128)&&!a.Z.length&&(a.F.C||a.F.gg(),!hL(a))){if(a.D){var b=a.D;a.jb=!!b.P&&!!b.U}a.O.o=!0;a.o.Ga&&(iL(a,window.Infinity,!0),jL(a,!0),a.X.experiments.ga("disable_live_background_seek_to_head")||3!=SK(a.X)||(a.fb=!0));if(a.B&&(b=a.B,b.o.videoData.enableCardio&&b.o.videoData.enableCardioBeforePlayback&&(b.kj("connected"),FB(b)),b.o.videoData.Ga)){var b=b.B,c=b.o.videoData.o;c&&Pt(c)&&lB(b,"live-segment-"+Pt(c).toFixed(1));c=Jx(b.o.videoData,b.o.o.experiments);lB(b,"live-readahead-"+
c);null!=b.o.videoData.Ti&&lB(b,"live-low-latency-extra-buffer-"+b.o.videoData.Ti)}a.S("playbackready",a);Cv("pbr",a.G.o)||a.G.A("pbr",void 0)}},lL=function(a,b,c,d){a.o.B=c;
a.o.F=d||c;if(a.B){var e=a.o,h=NK(a.wa,e),e=eb(e.A.videoInfos,y(h.C,h)),e=new KK(a.o,c,b,e?e.id:"");d&&"i"==b&&kL(a,b,d);d=a.B.B;c=tB(d.o);iB(d,c,"vfs",[e.o.id,e.A,d.W,e.reason]);d.W=e.o.id;e=d.o.J();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],h=window.devicePixelRatio||1,1<h&&e.push(h),iB(d,c,"view",e));iB(d,c,"vps",[d.A]);d.eh(c)}a.S("internalvideoformatchange",a.o,"m"==b)},kL=function(a,b,c){a.o.F=c;
if(a.B){var d=a.B.B;c=new KK(a.o,c,b,"");var e=tB(d.o);c.o.id!=d.K&&(iB(d,e,"afs",[c.o.id,d.K,c.reason]),d.K=c.o.id)}"i"!=b&&a.S("internalaudioformatchange",a.o,"m"==b)},bL=function(a,b,c,d){var e,h;
Tb(mL,c)?e=c:c?h=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:h||P(e),messageKey:e};eL(a,Uy(a.C,128,b));ZK(a);nL(a);oL(a)},hL=function(a){return!!a.Z.length||0<vA(a.F.o,-0x8000000000000).length},pL=function(a){a.X.experiments.ga("html5_crossorigin_video")&&a.A&&(a.o.Xe||!a.o.A||a.o.A.o?sH(a.A,!1):sH(a.A,!0))},sL=function(a,b){a.A&&qL(a);
a.A=b;rL(a);pL(a)},qL=function(a){a.o&&a.X.experiments.ga("new_ended_replay")&&(a.o.startSeconds=a.getCurrentTime());
a.K=null;a.D&&(fK(a.D),a.D.K=!0);a.A&&(a.B&&a.ea.A&&U(a.C,64)&&!a.o.Qd&&tL(a),uL(a),ur(a.fa),nH(a.A),a.A=null)},yL=function(a){if(!U(a.C,128)&&(gL(a),U(a.C,64)&&eL(a,Xy(a.C,8)),a.O.o&&a.A))if(a.o.A){a.X.experiments.ga("new_ended_replay")&&U(a.C,2)&&iL(a,0,!0);
if(a.o.Ga){var b=a.getCurrentTime()<Bx(a.o),c=Gx(a.o)&&U(a.C,4);(b||c)&&iL(a,window.Infinity,!0);vL(a)?jL(a,!0):a.J&&iL(a,window.Infinity,!0)}if(a.o.A.o)b=wL(a),a.D.resume();else{nL(a);var b=a.o.Vf.A(),c=a.o,d={};c.Z&&(d.ptk=c.Z,d.oid=c.qd,d.ptchn=c.od,d.pltype=c.rd);qa(b.A,d);c=a.X.A;qa(b.A,{c:c.c,cver:c.cver})}(c=a.A.A)&&c.equals(b)?lH(a.A):xL(a,b)}else bL(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")},zL=function(a){uL(a);
nL(a);wL(a)},BL=function(a){if(a.o.A){var b=AL(a)||vu;
a=Zd(a.o.A.videoInfos,y(b.C,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a},CL=function(a){return wu(wu(MK(a.wa,a.o),OK(a.wa,a.o)),AL(a))},AL=function(a){return a.o.Hk?vu:a.H?a.H.D:rx(a.o)&&a.o.A.o&&Ct(a.o.o)?FK:vu},DL=function(a,b,c){if(!a.isDisposed()&&!U(a.C,128)&&(c&&(a.o.nh=c),rx(a.o))){"m"==b&&c&&uu(c)&&(b="a");
c=CL(a);if(a.o.A.o){if(a.D&&"i"!=b){var d=a.D;d.isDisposed()||((c=II(d.G,c,b))&&d.S("videoformatchange",c),nK(d,d.B,FI(d.G)),d.G.o.isLocked()&&"m"==b&&(lJ(d.B),lJ(d.A)),rJ(d.B)&&aK(d,d.B,d.A),fK(d))}}else{d=a.o;a:{var e=a.o.M;if(c.o){for(var h=0;h<e.length;h++){var k=e[h].wc,l=Kr[k.video.quality];if((!c.B||"auto"!=k.video.quality)&&l<=c.o){c=e[h];break a}}c=e[e.length-1]}else c=e[0]}d.Vf=c;lL(a,b,a.o.Vf.wc)}a.C.ib()&&yL(a)}},EL=function(a){Qt(a.o.o,{c:a.X.A.c,
cver:a.X.A.cver});var b=a.X,c=a.o,d=new pK;if(Sp()||b.experiments.M)d.W=!0;Sp()&&(d.U=-1);if(Np("trident/")||Np("edge/"))d.A=240;Fq&&(d.M=41943040);if(IH(b)||!iw()){var e=b.experiments;d.B=8388608;d.D=524288;d.L=2097152;d.F=1048576;d.ua=1.5;d.xa=15;d.J=!iw();d.Ua=!1;Rp()&&!e.K&&(d.H=625E3);Qp()&&(d.H=75E4);d.Ea=!0;d.o*=1.3;d.C*=1.3}Tp()&&(e=ZH(b),d.B=20971520,d.D=1572864,e&&(d.H=812500,d.G=1E3));b.experiments.G&&(d.H=window.NaN);d.Wa=b.F;b.experiments.ga("big_buffers_for_anchovy")&&ZH(b)&&(d.P=5);
d.liveChunkReadahead=Jx(c,b.experiments);d.Ja=!b.experiments.ga("disable_fpa_sei_removal")&&Np("windows nt")&&(Ix(c)||Kx(c));var e=b.experiments.dc("dash_html5_refresh_mapping_interval"),h=b.experiments.dc("dash_html5_refresh_mapping_min_buffer");e&&(d.Y=e);h&&(d.ma=h);b.isMobile&&(d.fa=b.experiments.ga("mweb_uniplayer_disable_adaptation"));if(e=b.experiments.dc("html5_deadzone_multiplier"))d.o*=e,d.C*=e;if(e=b.experiments.dc("html5_request_sizing_multiplier"))d.Ca=e;b.experiments.ga("html5_strip_emsg")&&
(d.Ia=!0);b.experiments.ga("disable_fatal_invalid_state")&&(d.K=!1);b.experiments.ga("html5_nonfatal_invalid_state")&&(d.ia=!0,d.K=!1);c.Ga&&c.adaptiveFormats&&(d.Fa=.2);b.experiments.ga("html5_use_tight_max_buffer_depth")&&(d.da=!0,d.aa=b.experiments.dc("html5_tight_max_buffer_allowed_impaired_time")||d.aa,d.Z=b.experiments.dc("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.Z);a.D=new RJ(a.ka,d,a.o.o,a.o.A);a.D.subscribe("initsegment",a.XA,a);a.D.subscribe("videoformatchange",a.fB,a);a.D.subscribe("audioformatchange",
a.eB,a);a.D.subscribe("error",a.Fj,a);a.D.subscribe("seekrequired",a.nD,a);b=jb(a.Z,"spacecast")||a.Ea;c=a.Zm();c=c.Fb.isDefault?void 0:c;a.D.initialize(a.o.startSeconds,CL(a),b,c);a.o.probeUrl&&(a.D.O=a.o.probeUrl);if(a.Z.length||a.Ea)a.D.K=!0;a.Ea&&tL(a)},tL=function(a){var b=new XK(new Qy(4),a.C);
EB(a.B,b)},nL=function(a){a.D&&(a.D.dispose(),a.D=null);
a.K&&(a.K.dispose(),a.K=null)},wL=function(a){a.K||(a.D?a.D.seek(a.getCurrentTime()):EL(a),a.K=new bw(a.A.la(),a.o.lengthSeconds,a.o.A.videoInfos[0].mimeType,a.o.A.o[0].mimeType,a.X.F),cw(a.K,y(a.D.jw,a.D)),dw(a.K,y(function(){bL(this,"fmt.unplayable",void 0,"msi.1")},a)));
try{return ew(a.K)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),bL(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}},FL=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)},oL=function(a){a.A&&(a.A.pause(),uL(a),nL(a),a.o&&(a.o.startSeconds=a.getCurrentTime()),a.M=window.NaN,nH(a.A),U(a.C,128)||eL(a,Uy(a.C)))},iL=function(a,b,c,d){if(!a.A||
!a.O.o||!a.A.o.src&&a.X.experiments.ga("new_ended_replay"))a.o.startSeconds=b||0;
else{b=je(b||0,Bx(a.o),GL(a,!1));var e=a.o.Ga&&!U(a.C,4)&&vL(a,b);jL(a,e);a.o.startSeconds=b;a.M=b;RK(a.Ca,b);c?a.Zr():(U(a.C,32)||(eL(a,Xy(a.C,32)),U(a.C,8)&&a.pauseVideo(!0),a.S("beginseeking",a)),d&&(a.da||(a.da=new Ud(a.Zr,d,a)),a.da.start()),HL(a,!0));a.P&&b>a.o.vf&&(a.F.sh(a.P),a.P=null);b<a.og()&&eL(a,Yy(a.C,2));a.S("seekto",a,b)}},IL=function(a){if(!a.A)return 0;
if(Gx(a.o))return 1;if(Hx(a.o)){if(a.J)return 1;var b=a.A,c=mH(b),b=(0<Ly(c)&&b.o.duration?c.end(c.length-1):0)-Bx(a.o);a=GL(a,!0)-Bx(a.o);return Math.max(0,Math.min(1,b/a))}return pH(a.A)},JL=function(a,b){var c={};
if(b){a.B?qa(c,rB(wB(a.B,"playback"))):a.o&&(c.cpn=a.o.clientPlaybackNonce);if(a.A){var d;d=a.A;d={vct:d.getCurrentTime().toFixed(3),vd:d.o.duration.toFixed(3),vpl:Iy(d.o.played||Hy()),vbu:Iy(mH(d)),vpa:d.o.paused,vsk:d.o.seeking,ven:d.o.ended,vpr:d.o.playbackRate,vrs:d.o.readyState,vns:d.o.networkState,vec:d.getErrorCode(),vvol:d.o.volume};qa(c,d)}if(a.D){d=a.D;var e={lct:d.F.toFixed(3),lsk:d.M,lmf:d.G.o.isLocked(),lbw:wI(d.H).toFixed(3),lhd:xI(d.H).toFixed(3),ltd:(1E9*vI(d.H)).toFixed(3),laa:d.A.C?
us(d.A.C):"",lva:d.B.C?us(d.B.C):"",lar:d.A.A?us(d.A.A):"",lvr:d.B.A?us(d.B.A):"",lvh:oK(d)};d.o&&!gw(d.o)&&(e.lab=Iy(d.o.o.buffered),e.lvb=Iy(d.o.A.buffered));qa(c,e)}c.state=a.C.A.toString(16);U(a.C,128)&&(c.debug_error=a.C.o);hL(a)&&(c.preroll="1");a.o.uh&&(c.ismb=a.o.uh);a.o.isLowLatencyLiveStream&&(c.lowlatency="1");a.o.Ga&&a.o.o&&Pt(a.o.o)&&(c.segduration=Pt(a.o.o))}c.debug_videoId=a.o.videoId;return c},KL=function(a,b){a.S("internalvideodatachange",b||"dataupdated",a,a.o)},rL=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),
function(a){T(this.fa,this.A,a,this.AE,this)},a);
a.X.$b&&(T(a.fa,a.A,"webkitplaybacktargetavailabilitychanged",a.Mz,a),T(a.fa,a.A,"webkitcurrentplaybacktargetiswirelesschanged",a.Nz,a))},LL=function(a){var b=a.getCurrentTime(),c=a.o;
!Cv("pbs",a.G.o)&&Iv.measure&&Iv.getEntriesByName&&(Iv.getEntriesByName("mark_navigation_requested")[0]?Iv.measure("measure_above_the_fold","mark_navigation_requested"):Iv.measure("measure_above_the_fold"));c.videoId&&a.G.info("docid",c.videoId);c.eventId&&a.G.info("ei",c.eventId);c.clientPlaybackNonce&&a.G.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.G.info("start",c.startSeconds.toString());a.A&&a.A.o.paused&&a.G.info("paused",1);c.B?a.G.info("fmt",c.B.id):a.G.info("fmt","-1");c.Ma&&a.G.info("yt_pre",
a.jb?"2":"1");a.X.Qf&&a.G.info("yt_fs","1");a.G.info("cmt",b.toFixed(3));if(a.D){b=a.D;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.U),c.length&&(c=c[0],TJ(b,"vri",c.fetchStart),TJ(b,"vdns",c.domainLookupEnd),TJ(b,"vreq",c.requestStart),TJ(b,"fvb",c.responseStart),TJ(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.P),c.length&&(c=c[0],TJ(b,"ari",c.fetchStart),TJ(b,"adns",c.domainLookupEnd),TJ(b,"areq",c.requestStart),TJ(b,
"avb",c.responseStart),TJ(b,"arc",c.responseEnd)));var b=b.ma,d;for(d in b)a.G.A(d,b[d])}},ML=function(a){if(a.ia&&a.A){var b=a.A.o.seekable||Hy();
b.length&&b.end(0)>a.ia&&(a.A.o.currentTime=a.ia,a.ia=window.NaN,a.Ja=T(a.fa,a.A,"canplay",a.DA,a))}},HL=function(a,b){if(a.A&&a.o){var c=a.getCurrentTime();
if(c<Bx(a.o))iL(a,GL(a,!1),!0);else{if(a.J){var d=GL(a,!1);if(c<d-10){if(a.o.Pf||Gx(a.o)&&a.X.experiments.ga("html5_live_only_stick_to_head")){iL(a,d,!0);return}a.o.Ga&&jL(a,!1)}}if(a.D&&(d=a.D,d.o)){d.resume();if(d.M&&!gw(d.o)){var e=d.F<=c&&c<d.F+10,h=0<=Jy(d.o.A.buffered,d.F+RJ.o);e&&h&&(d.M=!1)}d.M||(d.F=c);gK(d)}5<c&&(a.o.startSeconds=c);(d=Vu())?Xu(a.xa):ti(a.xa);!az(a.C)&&a.A.o.paused||U(a.C,128)||(e=y(a.Ix,a),a.xa=0==(a.A.o.played||Hy()).length?d?Wu(e,100):ri(e,100):d?Wu(e,500):ri(e,500));
a.o.Cj=c;!b&&a.C.ib()&&a.B&&(c=a.B,c.A.update(),Ex(c.o.videoData)&&c.o.videoData.$e&&!c.M&&cB(c.A)>=c.o.videoData.$e&&(c.C&&c.o.videoData.$e&&(d=wB(c,"delayplay"),d.Ca=!0,d.send(),c.M=!0),BB(c)),d=c.U,d.B||!d.o.wb||d.o.Be||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=cB(d.C)>=e),d&&c.U.send());a.S("progresssync",a,b)}}},eL=function(a,b){var c=a.C;
if(b.A!=c.A||b.o!=c.o){c=new XK(b,a.C);a.C=b;var d=!a.ma.length;a.ma.push(c);0>CB(c,8)&&(ti(a.U),a.U=window.NaN,jL(a,!1));0<CB(c,8)&&!a.o.Qd&&(0,window.isNaN)(a.U)&&(a.U=ri(y(a.nq,a),15E3));0<CB(c,32)&&jL(a,!1);if(U(c.state,2)&&Hx(a.o)){var e=a.getCurrentTime();a.o.lengthSeconds!=e&&(a.o.lengthSeconds=e,KL(a));HL(a,!0)}0<CB(c,2)&&a.hm();a.B&&EB(a.B,c);if(d)try{for(d=0;d<a.ma.length;d++){var c=a.ma[d],h=a.F,e=c;if(h.C&&!h.G&&(h.Ld(),U(e.o,16))){var e=h,k=yA(e.o,Math.max(e.B-2E3,0));null!=k&&0x7ffffffffffff>
k&&e.D.start()}a.S("statechange",c)}}finally{a.ma.length=0}}},NL=function(a){U(a.C,2)||U(a.C,32)||(a.M=window.NaN)},jL=function(a,b){a.o.Ga&&a.J!=b&&(a.J=b,a.S("liveviewshift",b))},xL=function(a,b){OL(a,b);
a.X.hf?ri(y(function(){lH(this.A)},a),0):lH(a.A)},OL=function(a,b){a.G.A("vta");
iH(a.A,b);if(yx(a.o)&&yx(a.o)&&!a.H&&a.A){var c=a.o.J;if(c){var d=a.A.la();a.H=new GK(d,c,a.X.experiments,a.o.Ga);a.H.subscribe("newsession",a.sB,a);a.H.subscribe("licenseerror",a.$A,a);a.H.subscribe("qualitychange",a.aB,a);a.H.subscribe("heartbeatparams",a.zE,a);c=a.H;d=a.o.oauthToken;c.K=d;c.S("oauthtoken",d)}else bL(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.K&&$u();ti(a.U);a.o.Qd||(a.U=ri(y(a.nq,a),15E3))},uL=function(a){a.H&&(a.H.dispose(),a.H=null)},GL=function(a,b){if(!a.A)return 0;
if(!a.o.Ga){var c=a.o;return c.o&&!(0,window.isNaN)(Nt(c.o))?Nt(c.o):c.lengthSeconds}if(b&&(a.J||Gx(a.o)))return a.getCurrentTime();if(a.D)return c=lK(a.D),Math.max(c,Bx(a.o))||0;c=a.A.o.seekable||Hy();return(1>c.length?window.NaN:c.end(c.length-1))||0},vL=function(a,b){void 0==b&&(b=a.getCurrentTime());
return b>=GL(a,!1)-1},QL=function(a,b){G.call(this);
this.app=a;this.o=null;this.B={};this.C={};this.F={};this.D={};this.A=null;this.playerType=b;V(this,"cueVideoById",this.$m);V(this,"loadVideoById",this.cn);V(this,"cueVideoByUrl",this.DE);V(this,"loadVideoByUrl",this.OE);V(this,"playVideo",this.kd);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.Mj);V(this,"clearVideo",this.BE);V(this,"getVideoBytesLoaded",this.JE);V(this,"getVideoBytesTotal",this.KE);V(this,"getVideoLoadedFraction",this.bn);V(this,"getVideoStartBytes",this.LE);V(this,
"cuePlaylist",this.CE);V(this,"loadPlaylist",this.ds);V(this,"nextVideo",this.Jj);V(this,"previousVideo",this.Kj);V(this,"playVideoAt",this.fn);V(this,"setShuffle",this.setShuffle);V(this,"setLoop",this.QE);V(this,"getPlaylist",this.Zb);V(this,"getPlaylistIndex",this.HE);V(this,"getPlaylistId",this.oe);V(this,"loadModule",this.Ij);V(this,"unloadModule",this.ms);V(this,"setOption",this.pe);V(this,"getOption",this.yb);V(this,"getOptions",this.wh);V(this,"mute",this.mute);V(this,"unMute",this.unMute);
V(this,"isMuted",this.Cc);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.Ab);V(this,"seekTo",this.Sb);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.GE);V(this,"setPlaybackRate",this.xh);V(this,"getAvailablePlaybackRates",this.Gj);V(this,"getPlaybackQuality",this.Hj);V(this,"setPlaybackQuality",this.Lj);V(this,"getAvailableQualityLevels",this.bs);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.vh);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.an);V(this,"getVideoEmbedCode",this.cs);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.$r);V(this,"removeCueRange",this.es);V(this,"setSize",this.setSize);V(this,"getApiInterface",this.EE);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.ls);V(this,"hideVideoInfo",this.ME);PL(this,"getInternalApiInterface",this.FE);PL(this,"getAdState",this.getAdState);
PL(this,"isNotServable",this.NE);PL(this,"getUpdatedConfigurationData",this.IE);PL(this,"updateRemoteReceivers",this.SE);PL(this,"sendAbandonmentPing",this.PE);PL(this,"setAutonav",this.gs);PL(this,"setAutonavState",this.ks);PL(this,"setMinimized",this.RE);PL(this,"channelSubscribed",v);PL(this,"channelUnsubscribed",v)},V=function(a,b,c){a.B[b]=y(c,a)},PL=function(a,b,c){a.C[b]=y(c,a)},RL=function(a,b){QL.call(this,a,b);
V(this,"getPresentingPlayerType",this.getPresentingPlayerType);V(this,"addInfoCardXml",this.TE);V(this,"cueVideoByPlayerVars",this.UE);V(this,"loadVideoByPlayerVars",this.Nj);V(this,"preloadVideoByPlayerVars",this.cF);V(this,"seekBy",this.Qc);V(this,"updatePlaylist",this.jF);V(this,"updateLastActiveTime",this.iF);V(this,"updateVideoData",this.kF);V(this,"getStoryboardFormat",this.ZE);V(this,"getProgressState",this.bf);V(this,"getHousebrandProperties",this.XE);V(this,"setPlaybackQualityRange",this.dF);
V(this,"getCurrentPlaylistSequence",this.WE);V(this,"canPlayType",this.canPlayType);V(this,"sendVideoStatsEngageEvent",this.pg);V(this,"setCardsVisible",this.qg);V(this,"handleGlobalKeyDown",this.aF);V(this,"getAudioTrack",this.yh);V(this,"setAudioTrack",this.gn);V(this,"getAvailableAudioTracks",this.os);V(this,"getMaxPlaybackQuality",this.YE);V(this,"setSizeStyle",this.fF);V(this,"forceFrescaUpdate",this.VE);V(this,"setAutonav",this.gs);V(this,"setAutonavState",this.ks);V(this,"showControls",this.hF);
V(this,"hideControls",this.bF);V(this,"getVisibilityState",this.$E);V(this,"shouldSendVisibilityState",this.gF);V(this,"getVideoContentRect",this.qs);V(this,"setSafetyMode",this.eF);V(this,"setFauxFullscreen",this.uD);V(this,"cancelPlayback",this.ho)},SL=function(a,b){RL.call(this,a,b)},aaa=function(a){(a=kq(a.app))&&zL(a)},UL=function(a){return(a=TL(a.app.D,"endscreen"))?uy(a):!1},VL=function(a){var b=TL(a.app.D,"endscreen");
return b&&Cy(b)?!0:(a=TL(a.app.D,"ypc"))&&a.Xa()?!0:!1},WL=function(a,b){a.S("autonavcancel",b)},Pz=function(a){var b=a.app;
a=a.playerType;return 3==b.getPresentingPlayerType()?b.J.P:kq(b,a).getPlayerState()},gF=function(a){return a.app.G},XL=function(a){return a.app.U&&!a.Oa()||!!a.Zb()},ZL=function(a){if(a=TL(a.app.D,"captions"))a.K=!0,a.loaded?a.A&&a.A!=a.B.Td()?YL(a):a.Oq():a.load()},aM=function(a,b){var c=TL(a.app.D,"captions"),d=c.ld("displaySettings",b);
$L(c);return d},ly=function(a){if(Ah())if(a.Oa())(a=yh(["exitFullscreen",
"cancelFullscreen","cancelFullScreen"],window.document))&&a.call(window.document);else{a=gF(a).element;var b=yh(["requestFullscreen","requestFullScreen"],a);b&&b.apply(a)}else a.Ba("onFullscreenToggled")},bM=function(a){return(a=kq(a.app))?yu(MK(a.wa,a.o)):"unknown"},cM=function(a){(a=TL(a.app.D,"webgl"))?a.B?(a=a.A,a=a.o?a.o.ef():{}):a={}:a={};
return a},dM=function(a,b){var c=TL(a.app.D,"webgl");
c&&c.B&&(c=c.A,c.o&&c.o.Ch(b))},fM=function(a,b){a.V().experiments.ga("ui_logging")&&eM(a,"controlclicked",{controlClicked:b})},eM=function(a,b,c,d){var e=kq(a.app);
c.event=b;a.Oa()&&(c.fs=1);c.ux=1;e.logEvent(c,d)},AC=function(a){a.S("cardstatechange",lz(a)&&gM(a)?1:0)},lz=function(a){return(a=TL(a.app.D,"iv-module"))?HF(a):!1},gM=function(a){return(a=TL(a.app.D,"iv-module"))?IF(a):!1},hM=function(a,b,c){(a=TL(a.app.D,"iv-module"))&&KF(a,b,c)},Rz=function(a,b){a.Ba("onFrescaStateChange",b);
var c=kq(a.app);if(c&&b&&c.B){var c=c.B.B,d=b.hasActiveStream;iB(c,tB(c.o),"stream",[d?"A":"I"])}},iM=function(a){return(a=TL(a.app.D,"fresca"))?!!a.D&&a.D.D.B:!1},jM=function(a){var b=kq(a.app,1);
if(!b)return!1;var c=b.getVideoData();return Cx(c)&&!Gx(c)&&2!=a.getPresentingPlayerType()&&(!hL(b)||3==a.getPresentingPlayerType())},kM=function(a){return a.app.ea.play_pause||2==a.getPresentingPlayerType()?!0:!hL(kq(a.app,1))},lM=function(a,b,c){var d=a.app;
a=c||a.playerType;if(c=kq(d,a))c.F.sh.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||lq(d,"cuerangesremoved",b)},qr=function(a,b,c){a=gF(a).element;
var d=Bb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));ah(a,b,d);b.setAttribute("data-layer",c)},mM=function(a){a=a.fmt_list;
if(!a)return{};var b=[];F(a,function(a){a.itag&&(b[a.itag.toString()]=!0)});
return b},nM=function(a,b,c){if(!a)return null;
var d=b.docid;b=mM(b);return d&&b?baa(a,d,b,c):null},baa=function(a,b,c,d){d=fi(d.split(","),dj);
var e=Zd(d,function(a){return!!c[a.itag]});
if(!e.length)return null;var h=Xe(a)||"",k=Ye(a),l={};F(e,function(a){if(a){var b=oM(a);b&&(l[b]=a)}});
var m=[];F(d,function(a){if(c[a.itag]){var d=pf(of(Bf(a.url),h),k),e=Ve(a.url),d=xf(xf(d,"orig_host",Te(e[1],e[2],e[3],e[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}else if((d=oM(a))&&l[d])return;m.push(df(a))});
return m.join(",")},oM=function(a){return a.quality?a.quality:a.quality_label||""},caa=function(a,b,c){var d=pM(b);
d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),pj(a,{format:"JSON",method:"GET",timeout:2E3,qb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Hd:function(){var a=pM(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})},pM=function(a){var b=window.acceleratorMeta;
return(b?b.docid:null)===a?b:null},qM=function(a){jq.call(this,a);
this.logEvent=this.ra="spacecast";this.A=null},daa=function(a){return a.getVideoData().spacecastModule?new qM(a):null},rM=function(){xi({YTP_TRANSLATE_MENU_ITEM:"Translate captions",
YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",
YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",
YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})},sM=function(a){this.D=[];
this.L=a;R.call(this,["div","caption-window",{id:a?"caption-window-"+a.id:null},["div","caption-window-transform",["span","captions-text",{tabindex:0,"aria-live":"assertive"}]]]);this.K=this.qa["caption-window-transform"];this.A=this.qa["captions-text"];this.G=O("span",{"class":"captions-text",style:"visibility: hidden"});mh(this.G,"C");this.type=0;this.O=window.NaN;this.P=null},tM=function(a,b,c,d,e){var h=a.L?a.L.params:{},k=b.charEdgeStyle,l=h.HD;
null==l&&(l=b.textOpacity);var m="";if(0!=k){var n="rgba(34, 34, 34, "+l+")",t="rgba(204, 204, 204, "+l+")";h.po&&(t=n=h.po);switch(k){case 4:m="2px 2px 3px "+n+", 2px 2px 4px "+n+", 2px 2px 5px "+n;break;case 1:m="1px 1px "+n+", 2px 2px "+n+", 3px 3px "+n;break;case 2:m="1px 1px "+t+", 0 1px "+t+", -1px -1px "+n+", 0 -1px "+n;break;case 3:m="0 0 4px "+n+", 0 0 4px "+n+", 0 0 4px "+n+", 0 0 4px "+n}}n=h.fontFamily||b.fontFamily;t="";switch(n){case 1:t='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';
break;case 2:t='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:t='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:t='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:t='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:t=Pp()&&Qp()?"sans-serif-smallcaps":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';break;case 0:case 4:t='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var k=
MC(h.color||b.color),u=MC(h.background||b.background),x="rgba("+k[0]+","+k[1]+","+k[2]+","+l+")",k=h.offset||1,m={color:x,fill:x,"background-color":"rgba("+u[0]+","+u[1]+","+u[2]+","+(h.eo||b.backgroundOpacity)+")","text-shadow":m,"font-variant":7==n?"small-caps":"","font-family":t,"font-weight":h.bold?"bold":"","font-style":h.Ml?"italic":"","text-decoration":h.ND?"underline":"","vertical-align":eaa[k]};Iq(a.A,m);Iq(a.G,m);c/=360;m=MC(h.windowColor||b.windowColor);n=h.WD;n=null==n?b.windowOpacity:
n;b=h.$w||b.fontSizeIncrement;1!=k&&(b*=.8);Iq(a.K,{"background-color":"rgba("+m[0]+","+m[1]+","+m[2]+","+n+")","font-size":16*(1+.25*b)*c+"px"});b=h.Nl;k=h.Am;c=h.textAlign;Iq(a.element,{left:null==b?"50%":b+"%",top:null==k?"100%":k+"%",display:!1===h.isVisible?"none":"","text-align":faa[null==c?2:c]});1==h.ym?a.A.setAttribute("dir","rtl"):a.A.removeAttribute("dir");a.P&&$d(a.element,a.P);h=h.anchorPoint;null==h&&(h=7);a.P="anchor-point-"+h;L(a.element,a.P);if(d)for(a.D=[],$g(a.A),e=0;e<d.length;e++)a.A.appendChild(d[e]);
else e?a.cg(e,l):a.D.length&&a.cg(a.D,l);a.Hm()},uM=function(a){mh(a.G,"C");
a.K.appendChild(a.G);var b=a.G.offsetHeight;a.K.removeChild(a.G);return b},vM=function(){this.A=[];
this.o=[]},wM=function(a,b,c,d,e,h,k){gq.call(this,a,a+b,{priority:c});
this.B=d;this.C=e;this.H=h||!1;this.F=k||null},xM=function(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=(0,window.parseInt)(a.getAttribute("w"),10)||0;
a=!!a.getAttribute("append");return new wM(c,d,a?6:5,e,b,a)},yM=function(a,b,c,d,e){gq.call(this,a,a+b,{priority:c});
this.B=!1;this.id=d;this.params=e;this.Ag=[]},zM=function(a){return a.params.Sp?a.params.Sp:a.params.ID?2:1<a.Ag.length?1:0},AM=function(){return new yM(0,0x8000000000000,0,0,{})},BM=function(a){vM.call(this);
this.o.push(AM());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=xM(a[b]);this.A.push(d)}},CM=function(a){vM.call(this);
this.B={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=(0,window.parseInt)(b.getAttribute("id"),10);a:{var d=b,e=this.B[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e?e.B=!0:e=AM();var h={};e&&qa(h,e.params);d.getAttribute("rc")&&(h.ij=
(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(h.Aw=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),h.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(h.Nl=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(h.Am=(0,window.parseInt)(d.getAttribute("av"),10));d.getAttribute("vs")&&(h.isVisible=!!d.getAttribute("vs"));d.getAttribute("ju")&&(h.textAlign=(0,window.parseInt)(d.getAttribute("ju"),
10));d.getAttribute("pd")&&(h.ym=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(h.ym=0));d.getAttribute("bc")&&(h.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(h.eo=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(h.color=d.getAttribute("fc"));d.getAttribute("sd")&&(h.ID=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||0x8000000000000;d=(0,window.parseInt)(d.getAttribute("id"),
10)||0;b=new yM(b,e,0,d,h)}else b=null}this.B[c]=b;this.o.push(b);break;case "text":c=xM(a),this.A.push(c),b=c.B,this.B[b]&&this.B[b].Ag.push(c)}a=a.nextSibling}0==this.o.length&&this.o.push(AM())},KM=function(a){vM.call(this);
var b={cj:{},Kr:{},Lr:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var h=a[e];switch(h.tagName){case "head":c=h;break;case "body":d=h}}if(c)for(c=c.childNodes,a=0;a<c.length;a++){var k=c[a];switch(k.tagName){case "pen":var h=DM(k,"id"),e=b.cj,l=b,m=k,k={},n=DM(m,"p");n&&qa(k,l.cj[n]);l=EM(m,"b");null!=l&&(k.bold=l);l=EM(m,"i");null!=l&&(k.Ml=l);l=EM(m,"u");null!=l&&(k.ND=l);l=FM(m,"et");null!=l&&(k.kO=l);l=FM(m,"of");null!=l&&(k.offset=l);l=GM(m,"bc");null!=l&&(k.background=l);l=
GM(m,"ec");null!=l&&(k.po=l);l=GM(m,"fc");null!=l&&(k.color=l);l=FM(m,"fs");void 0!=l&&0!=l&&(k.fontFamily=l);l=DM(m,"sz");void 0!=l&&(k.$w=l/100-1);l=DM(m,"bo");void 0!=l&&(k.eo=l/255);m=DM(m,"fo");void 0!=m&&(k.HD=m/255);e[h]=k;break;case "ws":e=DM(k,"id");b.Lr[e]=HM(b,k);break;case "wp":e=DM(k,"id"),b.Kr[e]=IM(b,k)}}if(d)for(c={},a=-1,d=d.childNodes,e=0;e<d.length;e++)switch(h=d[e],h.tagName){case "w":k=JM(b,h);if(h=c[k.id])h.end=k.start;c[k.id]=k;this.o.push(k);break;case "p":for(var k=b,m=h,
l=[],n=DM(m,"t")||0,t=DM(m,"d")||0,u=DM(m,"w")||0,x=!!EM(m,"a"),B=x?6:5,D=DM(m,"p"),D=D?k.cj[D]:void 0,I=m.childNodes,z=0;z<I.length;z++){var Q=I[z];if("s"==Q.tagName){0<z&&(x=!0);var Na;Na=k;var va=Q,Q=n,Va=t,vb=u,Sd=x,$p=B,om=D,cv=va.textContent?Fa(va.textContent):"",pm=DM(va,"p");pm&&(om=Na.cj[pm]);Na=DM(va,"t")||0;Na=new wM(Q+Na,Va-Na,$p,vb,cv,Sd,om)}else Na=m.textContent?Fa(m.textContent):"",Na=new wM(n,t,B,u,Na,x,D);l.push(Na)}m=l;if(0<m.length)for(k=c[m[0].B],k||(k=JM(b,h,a--),this.o.push(k)),
h=0;h<m.length;h++)l=m[h],m[h].B=k.id,k.Ag.push(l),this.A.push(l)}},DM=function(a,b){var c=a.getAttribute(b);
if(null!=c)return(0,window.parseFloat)(c)},EM=function(a,b){var c=a.getAttribute(b);
if(null!=c)return"1"==c},FM=function(a,b){var c=DM(a,b);
if(void 0!=c)return c},GM=function(a,b){var c=a.getAttribute(b);
if(null!=c)return LM.test(c),c},HM=function(a,b){var c={},d=DM(b,"ws");
d&&qa(c,a.Lr[d]);d=FM(b,"mh");null!=d&&(c.Sp=d);d=FM(b,"ju");null!=d&&(c.textAlign=d);d=FM(b,"pd");null!=d&&(c.ym=d);d=GM(b,"wfc");null!=d&&(c.windowColor=d);d=DM(b,"wfo");void 0!=d&&(c.WD=d/255);return c},IM=function(a,b){var c={},d=DM(b,"wp");
d&&qa(c,a.Kr[d]);d=FM(b,"ap");null!=d&&(c.anchorPoint=d);d=DM(b,"cc");null!=d&&(c.Aw=d);d=DM(b,"ah");null!=d&&(c.Nl=d);d=DM(b,"rc");null!=d&&(c.ij=d);d=DM(b,"av");null!=d&&(c.Am=d);return c},JM=function(a,b,c){c=null!=c?c:DM(b,"id")||0;
var d=DM(b,"t"),e=DM(b,"d")||0x8000000000000,h={};qa(h,IM(a,b));qa(h,HM(a,b));return new yM(d,e,0,c,h)},OM=function(a,b){vM.call(this);
this.o.push(AM());for(var c=a.split(gaa),d=1;d<c.length;d++){var e;e=c[d];var h=b;if(""==e||0==e.search(haa))e=null;else{var k=e.split(iaa),l=0,m=k[l++].match(MM);m||(m=k[l++].match(MM));m?(e=NM(m[1],h)||0,h=NM(m[3],h)||0,k=k.slice(l).join("\n"),k=If(k),e=new wM(e,h-e,5,0,k)):e=null}e&&this.A.push(e)}},NM=function(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+(0,window.parseFloat)(c[e]);
return 1E3*d+b},PM=function(a,b){this.o=[];
this.A=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new OM(a,b||0):(c=Yz(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new KM(c):new CM(c):new BM(c):null:null;c&&(this.A=c.o,this.o=c.A)},jaa=function(){this.B=[];
this.o=[];this.A=-1},QM=function(a,b){return b?a.o.concat(a.B):a.o},RM=function(a,b){switch(b.B){case "asr":var c=a.B;
eb(c,y(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.A)a.A=a.o.length;c=a.o;eb(c,y(b.equals,b))||c.push(b)}},kaa=function(a,b){var c=db(a.o,y(b.equals,b));
-1!=c&&(a.A=c)},SM=function(a){this.yp=!!a;
this.o=new jaa;this.D=[]},laa=function(a,b){return eb(QM(a.o,!0),function(a){return a.toString()==b})},TM=function(a){SM.call(this,a.ci);
this.A=null;this.C=void 0;this.B=null;this.D=a.captionTranslationLanguages},UM=function(){this.sa=[]},VM=function(a,b){G.call(this);
this.A=b;this.H=new UM;this.C=!0;this.J=this.D=this.F=this.G=this.o=null;this.B=window.NaN},maa=function(a,b){a.G=b},WM=function(a){var b;
if(b=!a.C&&null!==a.o)b=a.o,b=b.o.Ah(b);return b&&!a.D&&!(a.o&&30<a.o.startTime-a.A.getCurrentTime())},XM=function(a){a.isDisposed();
var b;b=a.o;b=As(b.o,b);if(!a.H.contains(b.o[0].C)){var c=ws(b).getUrl();a.D=pj(c,{format:"RAW",Xb:y(a.K,a),withCredentials:!0});a.F=b;var c=a.H,d=a.F.o[0].C,e=Ab(c.sa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.sa[e-1]&&e<c.sa.length&&1==c.sa[e]-d?(ob(c.sa,e),ob(c.sa,e-1)):0<e&&1==d-c.sa[e-1]?c.sa[e-1]=d:e<c.sa.length&&1==c.sa[e]-d?c.sa[e]=d:(wb(c.sa,e,0,d),wb(c.sa,e+1,0,d)))}a.o=cb(b.o)},naa=function(a){a.B=si(y(function(){WM(this)&&XM(this)},a),1E3);
WM(a)&&XM(a)},YM=function(a,b){SM.call(this);
this.B=a;this.A=new VM(new pK,b)},ZM=function(a){sM.call(this,a);
this.type=1;this.F="100%";this.A.style.padding="0"},$M=function(a){sM.call(this,a);
this.A.style.whiteSpace="nowrap";this.type=2;this.H=0;this.M=new Ud(this.U,433,this);H(this,this.M);this.D=[];this.J=[];this.F=[]},bN=function(a){if(!a.M.isActive())if(a.H>=a.D.length)aN(a);
else{var b=a.F.length-1;0>b&&(a.J.push(0),a.H=0,a.F.push(""),b=0);for(var c=a.D.length,d=a.H;d<c;d++){var e=a.D[d];if("\n"==e.C){a.H++;a.J[b]++;break}if(e.H||0==a.F[b].length)a.F[b]+=e.C,a.H++,a.J[b]++;else break}aN(a);d<c&&!a.M.isActive()&&(b=uM(a),L(a.A,"caption-rollup"),a.element.style.overflow="hidden",a.A.style.top=-b+"px",a.M.start())}},aN=function(a){if(!a.M.isActive()){for(var b=a.L.params.ij||15;a.F.length<b;)a.F.unshift(""),a.J.unshift(0);
for(;a.F.length>b;){a.F.shift();var c=a.J.shift();0<c&&(a.H-=c,a.D.splice(0,c))}b=a.F.join("\n");a=a.A;if(b)if(-1==b.indexOf("\n"))b="&nbsp;"+b+"&nbsp;";else{for(var b=b.split("\n"),c=0,d=b.length;c<d;c++)b[c]=b[c]?"&nbsp;"+b[c]+"&nbsp;":"";b=b.join("<br>")}Jf(a,b)}},oaa=function(a){for(var b="",c=0;32>c;c++)b+="\u2014";
mh(a.G," "+b+" ");a.K.appendChild(a.G);b=a.G.offsetWidth;a.K.removeChild(a.G);return b},cN=function(a,b,c,d){SM.call(this,d);
c||(c=fj(a).hl||"",c=c.split("_").join("-"));this.B=hj(a,{hl:c});this.C=b;this.F={};this.A=null},dN=function(a){jq.call(this,a,"subtitlesModuleData");
this.ra="captions";this.logEvent="cc";rM();this.da=!0;this.ea=this.L=this.fa=!1;this.X=a.V();this.D=null;this.aa=gF(a);this.ca=a;this.C={};this.P=null;this.Z=[];this.O={};this.U={};this.xa=this.K=this.ma=!1;this.A=this.B=this.G=this.J=null;this.ua=!1;this.ia=new Ud(this.Cm,0,this);H(this,this.ia);this.ka=new Ud(this.kD,2E3,this);H(this,this.ka);this.W=new sr(this);H(this,this.W);this.wa=null},eN=function(a){return"3"!=a.X.B?!1:!!a.ca.app.B.o.textTracks},fN=function(a,b,c,d){var e=a.C[b];
w(e)&&(d=d.indexOf(e),-1!=d&&(a.C[c]=d),delete a.C[b])},gN=function(a,b){eN(a);
if(b&&a.D.captionTracks.length){var c=a.o.yh().jo;if(2==c||3==c)return!0}if(1==a.X.da||1==a.D.Ce||"alwayson"==a.D.Zc("yt:cc")||eN(a))return!0;c=pq(a,"module-enabled");return null!=c?!!c:"on"==a.D.Zc("yt:cc")},hN=function(a){return eN(a)?!a.D.Ga:a.D.captionTracks.length&&a.o.yh().ti?!0:gN(a,!0)},jN=function(a){a.A&&a.A==a.B.Td()&&iN(a);
a.B.Ql(y(a.Oq,a),!0,eN(a)?"vtt":void 0,a.o.yh())},lN=function(a){eN(a);
a.L=!0;eN(a)||(kN(a),a.iq())},nN=function(a){eN(a);
a.B.Td()&&mN(a,a.B.Td())},iN=function(a){a.A&&(a.A=null,eN(a)||(mq(a),a.Z=[],a.A=null,a.Cm()),a.B.Bm())},mN=function(a,b,c){eN(a);
!b||a.A&&b.equals(a.A)||(null!=c&&(a.K=c),a.F?(a.A=b,oN(a),a.am("control_subtitles_set_track",ou(b)),a.L||lN(a)):(a.B.Pl(b,y(a.Pq,a)),a.fa=!0))},$L=function(a){qq(a,"display-settings",a.C)},kN=function(a,b){var c=fF(a.aa).height;
Ob(a.O,function(a){tM(a,this.C,c)},a);
a.G&&tM(a.G,a.C,c);a.J&&tM(a.J,a.C,c);a.Cm();p(b)&&!b||$L(a)},YL=function(a){if(a.loaded){if(!eN(a)){var b=a.ka;
b.isActive()&&Vd(b)}qq(a,"module-enabled",!1);iN(a);(b=kq(a.o.app))&&b.B&&bB(b.B.A);a.K=!1;a.F?(oN(a),a.am("control_subtitles_set_track")):a.o.Ba("captionschanged",{});eN(a)||nN(a)}},paa=function(a){return dN.prototype.Xa(a)?new dN(a):null},pN=function(a,b){eN(a);
b&&!a.G?(a.G=new sM,a.P.element.appendChild(a.G.element),tM(a.G,a.C,fF(a.aa).height,[window.document.createTextNode(P("YTP_SAMPLE_SUBTITLES"))])):!b&&a.G&&(a.G.dispose(),a.G=null)},qaa=function(a,b){if(b)if(dc(b,"reset"))qa(a.C,qN),$L(a),kN(a);
else{if(!rN){var c={};c.color=a.xk;c.textOpacity=a.Tl;c.background=a.xk;c.backgroundOpacity=a.Tl;c.windowColor=a.xk;c.windowOpacity=a.Tl;c.charEdgeStyle=a.tw;c.fontFamilyOption=a.Zw;c.fontSizeIncrement=a.ax;rN=c}var c=rN,d;for(d in c)switch(d){case "fontFamilyOption":a.C.fontFamily=c[d](b[d],a.C.fontFamily);break;default:a.C[d]=c[d](b[d],a.C[d])}kN(a,IH(a.X))}},oN=function(a){var b={};
a.A&&(b=ou(a.A));a.o.Ba("captionschanged",b)},sN=function(a){jq.call(this,a);
this.ra="ypc_license_checker";this.logEvent="ypc_license";this.G=!1;this.C=0;this.D=!1;this.A=window.NaN;Qv();this.B=null},tN=function(a){return Fx(a.getVideoData(),"ypc_license_checker_module")},raa=function(a){return tN(a)?new sN(a):null},uN=function(a){var b=a.o.getVideoData();
return yx(b)?!!a.B:!!b.heartbeatToken},vN=function(a,b){if(!a.A&&a.G&&uN(a)){var c=a.o.getVideoData(),d=a.o.V();
if(yx(c)||!IH(d)||d.experiments.ga("tv_player_heartbeats"))c=b,void 0==c&&(c=a.D?a.B?1E3*a.B.interval:a.o.getVideoData().heartbeatInterval||6E4:1E3),a.A=ri(y(a.pD,a),c)}},wN=function(a,b){if(a.A){a.log({errorType:b});
a.A=window.NaN;a.C++;var c=a.o.getVideoData();(c.heartbeatSoftFail?0:a.C>=(a.B?a.B.o:c.heartbeatRetries||5))?(c=P("YTP_ERROR_LICENSE"),bL(a.o.app.A,"heartbeat",c,void 0)):vN(a)}},xN=function(a){try{return be(a)}catch(b){return null}},yN=function(a){a.C=0;
a.A&&(ti(a.A),a.A=window.NaN);a.D=!1},saa=function(a){this.id=a.id;
this.type=a.type;this.title=a.title;this.metadata=a.metadata;this.callToAction=a.callToAction;this.imageUrl=a.imageUrl;this.C=a.displayImages;this.F=a.iconUrl;this.left=a.left;this.width=a.width;this.top=a.top;this.aspectRatio=a.aspectRatio;this.offsetMs=a.offsetMs;this.durationMs=a.durationMs;this.startMs=a.startMs;this.endMs=a.endMs;this.videoId=a.videoId;this.videoDuration=a.videoDuration;this.playlistId=a.playlistId;this.playlistLength=a.playlistLength;this.channelId=a.channelId;this.A=a.htmlBlob;
this.G=a.isSubscribe;this.o=a.targetUrl;this.B=a.sessionData||{};this.H=a.targetTab;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls},zN=function(a){this.durationMs=a.durationMs;
this.startMs=a.startMs;this.impressionUrls=a.impressionUrls;this.elements=[];a=a.elements;for(var b=0;b<a.length;b++)this.elements.push(new saa(a[b]))},AN=function(a){jq.call(this,a);
this.ra="creatorendscreen";this.B=this.D=null;this.A={};this.G={};this.C=null},taa=function(a){return BN(a)?new AN(a):null},BN=function(a){return CN(a.V().o)?!0:Fx(a.getVideoData(),"iv_endscreen_url")},CN=function(a){return"creator-endscreen-editor"===a},DN=function(a,b){mq(a);
a.C&&(xq(a.C),a.C.dispose(),a.C=null);for(var c in a.A){var d=a.A[c];xq(d);d.dispose()}a.A={};a.G={};if((a.D=b)&&b.elements){c=[];var e=new gq(b.startMs,b.startMs+b.durationMs,{id:"ytp-ce-in-endscreen"});c.push(e);a.C=new R(["div","ytp-ce-shadow"]);qr(a.o,a.C.element,4);for(e=0;e<b.elements.length;++e){var h=b.elements[e],d={VIDEO:uaa,PLAYLIST:vaa,CHANNEL:waa,WEBSITE:xaa},d=d[h.type]?d[h.type](h):null;a.A[h.id]=d;a.G[h.id]=h;qr(a.o,d.element,4);var k=new gq(h.startMs,h.endMs,{id:"ytp-ce-element-"+
h.id});c.push(k);k=a;d.R("mouseenter",y(k.sF,k,h));d.R("mouseleave",y(k.tF,k,h));d.R("click",y(k.rF,k,h))}a.bb(c);a.jn()}},uaa=function(a){a=["div",
["ytp-ce-element","ytp-ce-video"],["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",EN(FN(a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.o},["div",["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-video-duration",a.videoDuration]]];return new R(a)},vaa=function(a){a=["div",
["ytp-ce-element","ytp-ce-playlist"],["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",EN(FN(a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.o},["div",["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-playlist-count",["div","ytp-ce-playlist-icon"],["div","ytp-ce-playlist-count-text",a.playlistLength]]]];return new R(a)},waa=function(a){var b=["a",
["ytp-ce-element","ytp-ce-channel",a.G?"ytp-ce-channel-this":"ytp-ce-channel-that"],{href:a.o,target:"_blank"},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["a",["ytp-ce-channel-title","ytp-ce-link"],a.title,{href:a.o,target:"_blank"}],a.A?["div","ytp-ce-channel-subscribe"]:"",a.metadata?["div",["ytp-ce-channel-metadata",
"yt-ui-ellipsis","yt-ui-ellipsis-3"],a.metadata]:""]]]],["div","ytp-ce-expanding-image",EN(FN(a))]],b=new R(b),c=Kg("div","ytp-ce-channel-subscribe",b.element)[0];a.A&&Jf(c,a.A);return b},xaa=function(a){a=["a",
["ytp-ce-element","ytp-ce-website"],{href:a.o,target:"_blank"},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["div","ytp-ce-website-title",a.title],["div","ytp-ce-website-metadata",a.metadata],["a",["ytp-ce-website-goto","ytp-ce-link"],a.callToAction,{href:a.o,target:"_blank"}]]]]],["div","ytp-ce-expanding-image",
EN(FN(a))],["div","ytp-ce-expanding-icon",EN(a.F)]];return new R(a)},FN=function(a){a=a.C.thumbnails;
return a[a.length-1].url},EN=function(a){return a?{style:"background-image: url("+a+")"}:{}},GN=function(a,b,c){M(a.C.element,"ytp-ce-shadow-show",c);
for(var d in a.A)d!=b&&M(a.A[d].element,"ytp-ce-element-shadow-show",c)},HN=function(a,b,c){function d(){k||(h++,h==e.length&&(l.stop(),c&&c()))}
if(!b||CN(a.o.V().o))c&&c();else{var e=yaa(a,b),h=0,k=!1,l=new Ud(function(){k=!0},1E3,a);
l.start();for(a=0;a<e.length;a++)Xp(e[a],d)}},yaa=function(a,b){for(var c=a.o.getVideoData().clientPlaybackNonce,d=a.o.getCurrentTime().toFixed(2),c={CPN:c,
MT:d},d=[],e=0;e<b.length;e++)d.push(zaa(b[e],c));return d},zaa=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var d=(0,window.unescape)(a),d=d.substring(1,d.length-1);
return b[d]?(0,window.escape)(b[d]):a})},IN=function(a){jq.call(this,a);
this.ra="ypc_clickwrap";this.logEvent="ypc-clickwrap";xi({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.B=this.A=null},Aaa=function(a){return Fx(a.getVideoData(),"ypc_clickwrap_module")?new IN(a):null},JN=function(a){this.D=Math.exp(Math.log(.5)/a);
this.A=this.C=0},KN=function(a,b,c){this.J=0;
this.G=a;this.D=b||.5;this.F=c||0;this.H="index";this.A=0;this.C=[]},MN=function(a,b){LN(a,"value");
var c=b*a.A,d=0,e=window.NaN;a.C.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e},LN=function(a,b){a.H!=b&&(a.H=b,Eb(a.C,b))},NN=function(a){this.C=a;
this.A=[]},Baa=function(a){this.A=a;
this.F=this.G=0;this.o=-1;this.K=new pI(100);this.J=0;this.L=At();this.C=new KN(4,.6);this.D=new JN(4);this.H=new NN(this.A.o);this.A.C?this.B=new JN(this.A.o):this.B=new KN(this.A.o,.5,.1);a=Zi("yt-player-bandwidth")||{};this.B.o(this.A.B,0<a.byterate?a.byterate:this.A.A);0<a.delay&&this.C.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.D.o(1,+a.tailDelay);this.o=At()},NJ=function(a,b,c){b=Math.max(b,.05);
a.B.o(b,c/b);ON(a)},OJ=function(a,b){a.C.o(1,b);
-1<a.o&&3E4<At()-a.o&&PN(a)},QN=function(a,b,c){(0,window.isNaN)(c)||(a.F+=c);
(0,window.isNaN)(b)||(a.G+=b);a.H.o(b,c/b);ON(a)},RN=function(a,b,c){b=Math.max(b,8192);
a.D.o(1,c/b);-1<a.o&&3E4<At()-a.o&&PN(a)},xI=function(a){a=a.C.B();
a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)},vI=function(a){return a.D.B()||0},wI=function(a){var b=a.B.B(),b=0<b?b:1;
a=a.H.B();a=0<a?a:1;return a>2*b?(b+a)/2:b},SN=function(a){var b={};
b.delay=xI(a);b.tailDelay=vI(a);b.byterate=wI(a);return b},PN=function(a){Yi("yt-player-bandwidth",SN(a),2592E3);
a.o=At()},ON=function(a){var b=At();
a.L=b;500<b-a.J&&(qI(a.K,1/(1/wI(a)+vI(a))),a.J=b)},TN=function(a){return 4E3<=At()-a.L},Caa=function(){this.o=17;
this.A=13E4;this.B=.5;this.C=!1},UN=function(){G.call(this);
this.o=[];this.F={};this.B={};this.C={};this.A=this.G=null;this.D=[];this.H=null},VN=function(a){a.o=Zd(a.o,function(a){try{a.destroy()}catch(c){vi(c)}return!1},a)},Daa=function(a,b,c){WN(a);
a.H=b;a.D=sb(c);F(a.o,function(a){0<=ib(c,a.ra)&&(a.F=b,a.Zi(!!a.F))})},WN=function(a){F(a.D,function(a){if(a=TL(this,a))a.F=null,a.Zi(!1)},a);
a.H=null;a.D=[]},XN=function(a){a=TL(a,"iv-module");
return!(!a||!a.loaded)},YN=function(a,b){if(!b)return fi(a.o,function(a){return a.ra});
var c=TL(a,b);return c?c.df():[]},TL=function(a,b){return eb(a.o,function(a){return a.ra==b})},Eaa=function(a){var b={};
F(a.o,function(a){qa(b,a.Bh())});
return b},ZN=function(a,b,c){this.C=b;
this.o=c;this.D=a;this.A=!0},$N=function(a,b){jc.call(this,"adError");
this.B=a;this.o=b?b:null},aO=function(a,b,c){jc.call(this,a);
this.B=b;this.o=null!=c?c:null},bO=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var h=dc(b,e),h=h.toString();
if(!C(E(h)))return(0,window.encodeURIComponent)(h).replace(/%2C/g,",")}catch(k){}return a})},Faa=function(a){this.o=a},Gaa=function(){var a=cO();
return dO(a,"disableExperiments")},dO=function(a,b){if(Yb(a.o,b)){var c=a.o[b];
if(fa(c))return c}return!1},Haa=function(a){if(Yb(a.o,"forceExperimentIds")){a=a.o.forceExperimentIds;
var b=[],c=0;da(a)&&F(a,function(a){ga(a)&&(b[c++]=a)});
return b}return null},eO=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""},W=function(){return fO.H},cO=function(){var a=fO;
if(null==a.G){var b={},c=(new N(Tg().location.href)).o;if(Hf(c,"tcnfp"))try{b=be(c.get("tcnfp"))}catch(d){}a.G=new Faa(b)}return a.G},gO=function(a,b,c,d){this.A=a;
this.o=je(c||0,0,1);this.B=null!=d?d:!0},hO=function(a){this.B=a;
this.A=new Ie;this.o=null},Iaa=function(a){var b=Math.random(),c=0,d=a.A.Na();
F(d,function(a){c+=a.o},a);
var e=1<c?c:1;a.o=null;for(var h=0,k=0;k<d.length;++k)if(h+=d[k].o,h/e>=b){a.o=d[k];break}},Kaa=function(){this.A=null!=aa.G_testRunner;
this.o=new Ie;iO(this,31061770,.05);iO(this,31061771,.05);iO(this,31061772,.05);iO(this,31061773,.05);iO(this,31061774,.01);iO(this,31061775,.01);iO(this,41351082,.01);iO(this,41351083,.01);iO(this,41351016,.05);iO(this,41351017,.05);iO(this,41351020,0);iO(this,41351021,0);iO(this,41351072,.05);iO(this,41351073,.05);iO(this,41351074,.05);iO(this,41351075,.05);iO(this,41351088,.01);iO(this,41351089,.01);iO(this,136961001,.01);iO(this,136961002,.01);iO(this,41351032,.05);iO(this,41351033,.05);iO(this,
265944520,.01);iO(this,265944521,.01);iO(this,265944522,.01);iO(this,265944523,.01);Jaa(this);var a;a=cO();a=Haa(a);null!=a&&(this.A=!1,jO(this,a.map(String)))},lO=function(){kO||(kO=new Kaa);
return kO},Laa=function(){var a=lO();
F(a.o.Pa(),function(a){ta(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)},iO=function(a,b,c){C(E("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new gO(b,0,c),mO(a,"GvnExternalLayer").A.set(b.getId(),b))},Jaa=function(a){Gaa()||F(a.o.Na(),function(a){Iaa(a)},a)},jO=function(a,b,c){F(b,function(a){var b=Number(a);
a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||C(E(a)))){var h=null!=c?c:!0;mO(this,a).o=new gO(b,0,0,h)}},a)},nO=function(a,b){return a.A?!1:xh(a.o.Na(),function(a){return!!a.o&&a.o.getId()==b})},oO=function(){var a=[9418778,
9417893,9417894,9417895,9419817];return lO().A?!1:xh(a,function(a){return nO(lO(),a)})},pO=function(a){if(a.A)return"";
var b=[];F(a.o.Na(),function(a){(a=a.o)&&a.B&&b.push(a.getId())});
return b.sort().join(",")},mO=function(a,b){var c=a.o.get(b);
null==c&&(c=new hO(b),a.o.set(b,c));return c},qO=function(){lO();
return oO()},sO=function(a){return null!=a?rO(Maa,a):!1},rO=function(a,b){try{var c=(new N(b)).A,c=c.replace(/^www./i,"");
return xh(a,function(a){return Naa(a,c)})}catch(d){return!1}},Naa=function(a,b){if(C(E(b)))return!1;
a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b},uO=function(a){var b=!1;
tO(a,Oaa)?b=!1:nO(lO(),265944523)&&sO(a)?b=!0:"https:"==window.location.protocol&&(tO(a,Paa)||W())&&(b=!0);if(b){b=new N(a);if("https"==b.C)return a;nf(b,"https");return b.toString()}return a},tO=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)},vO=function(a){window.open(uO(a),"_blank")},xO=function(a,b,c){null!=a?(xf(a,"label",b),null!=c&&xf(a,"value",c.join(";")),a=a.toString()):a="";
wO(a)},wO=function(a,b,c,d,e,h){null!=a&&null!=b&&(a=bO(a,b));
try{if(null!=c){b=a;var k=(c||{}).viewability||"na";if(C(E(k)))a=b;else{var l=new N(b);Hf(l.o,"label")?(xf(l,"acvw",k),a=l.toString().replace(/%2C/g,",")):a=b}}null!=e&&(a=yO(a,e));a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!h&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(h=h||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},e=0;e<h.length;++e){m.URL_SIGNALS=h[e];var n=bO(c,m);if(2048>n.length){a=n;break a}}a=c}}catch(u){}try{a=uO(a);var t=!W()||nO(lO(),41351089);
null!=d&&d?zO.ur(a,t):fO.F?zO.sr(a,t):zO.pr(a,t)}catch(u){}},AO=function(a,b){null!=a&&F(a,function(a){wO(a,b)})},yO=function(a,b,c){if(C(E(b)))return a;
var d=new N(a),e=d.A;return null!=e&&ua(e,".g.doubleclick.net")&&(c||Hf(d.o,"label"))?(xf(d,"ged",b),d.toString()):a},BO=function(a,b){this.message=a;
this.errorCode=b},DO=function(a,b,c){return CO("adLoadError",a,b||null,ub(arguments,2))},EO=function(a,b,c){return CO("adPlayError",a,b||null,ub(arguments,2))},FO=function(a,b,c,d,e){var h=a.apply(null,rb([c,
d],ub(arguments,3)));b.$(new aO("log",null,h))},CO=function(a,b,c,d){if(c instanceof ZN)return c;
var e=b.errorCode;b=b.message;if(0<d.length)for(var h=0;h<d.length;h++)b=b.replace(new RegExp("\\{"+h+"\\}","ig"),d[h]);a=new ZN(a,b,e);a.B=c;return a},GO=function(a,b,c,d){var e=EO.apply(null,rb([b,
c],ub(arguments,3)));a.$(new $N(e))},IO=function(){return!HO()&&(oc("iPod")||oc("iPhone")||oc("Android")||oc("IEMobile"))},HO=function(){return oc("iPad")||oc("Android")&&!oc("Mobile")||oc("Silk")},JO=function(){return IO()||HO()},LO=function(){return Qaa&&!KO||Ma(nc,"iPod")},MO=function(){return LO()||KO},PO=function(a,b){if(null==NO[b]){var c;
C(OO)&&(c=a.exec(nc))&&(OO=c[1]);(c=OO)?(c=c.replace(/_/g,"."),NO[b]=0<=Ta(c,b)):NO[b]=!1}return NO[b]},QO=function(){var a=nc;
return a?Ma(a,"Nintendo WiiU"):!1},RO=function(){var a;
(a=Ma(nc,"CrKey")||Ma(nc,"PlayStation")||Ma(nc,"Roku"))||(a=(a=nc)?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"Opera TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV"):!1);return a||Ma(nc,"Xbox")},TO=function(){return LO()||SF&&(!SF||!PO(SO,4))||!W()&&RO()?!1:!0},UO=function(){this.A=.01>Math.random();
this.B=Math.floor(4503599627370496*Math.random())},Raa=function(a,b){b.id="";
var c=VO();b.c=a.B;b.domain=c.A;return b},VO=function(){var a=Tg(),b=window.document;
return new N(a.parent==a?a.location.href:b.referrer)},WO=function(){},XO=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=K()-window.performance.timing[a],Math.round(a/1E3)):null},ZO=function(){this.domLoading=XO("domLoading");
this.domComplete=XO("domComplete");this.unloadEventStart=XO("unloadEventStart")},Saa=function(a){var b={},c=new ZO,d=null;
null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+K()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b},$O=function(a){for(var b=[],c=a=Tg(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);
else break;return b},aP=function(){this.o={};
this.A=0},bP=function(a,b){this.D=a;
this.B=!0;this.o=b},cP=function(a,b){bP.call(this,String(a),b);
this.C=a;this.o=!!b},dP=function(a,b){bP.call(this,a,b)},eP=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");
var b=Number(a[0]),c=Number(a[1]);return new dP("",new ve(c,b,Number(a[3])-c,Number(a[2])-b))}return new dP("",new ve(0,0,0,0))},gP=function(){fP||(fP=new aP);
return fP},hP=function(a){var b=new ve(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new ve(0,0,0,0);
if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var h=a[d],k=Math.max(e.left,h.left),l=Math.min(e.left+e.width,h.left+h.width);if(k<=l){var m=Math.max(e.top,h.top),h=Math.min(e.top+e.height,h.top+h.height);if(m<=h){e.left=k;e.top=m;e.width=l-k;e.height=h-m;e=!0;break a}}e=!1}if(!e)return c}return b},iP=function(a,b){var c=a.getBoundingClientRect(),d=Vq(a,b);
return new ve(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))},jP=function(a,b,c){if(b&&c){var d;
a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var h=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(h<=k){d=new ve(d,h,e-d,k-h);break a}}d=null}e=d?d.height*d.width:0;h=d?b.height*b.width:0;d=d&&h?Math.round(e/h*100):0;a.setItem(new bP("vp",d));d&&0<d?(e=we(b),h=we(c),e=e.top>=h.top&&e.top<h.bottom):e=!1;a.setItem(new cP(512,e));d&&0<d?(e=we(b),h=we(c),e=e.bottom<=h.bottom&&e.bottom>h.top):e=!1;a.setItem(new cP(1024,e));d&&0<d?(e=we(b),h=we(c),
e=e.left>=h.left&&e.left<h.right):e=!1;a.setItem(new cP(2048,e));d&&0<d?(b=we(b),c=we(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new cP(4096,c))}},kP=function(a){this.o=ic.apply(null,arguments);
return this},lP=function(a,b){var c=dc(a.o,"eb",0);
a.o.eb=c|b},mP=function(a,b){var c=0;
Xb(Tg(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=gP();d.o={};var h=new cP(32,!0);h.B=!1;d.setItem(h);h=Tg().document;h=h.webkitVisibilityState||h.mozVisibilityState||h.visibilityState||h.msVisibilityState||"";d.setItem(new cP(64,"hidden"!=h.toLowerCase().substring(h.length-6)?!0:!1));var k;try{var l;var m=Tg().top;try{l=!!m.location.href||""===m.location.href}catch(u){l=!1}if(l){var n=$O(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(u){k="2"}d.setItem(new cP(256,
"2"==k));d.setItem(new cP(128,"1"==k));n=l=Tg().top;"2"==k&&(n=Tg());m=iP(e,n);d.setItem(new dP("er",m));var t;try{t=n.document&&!n.document.body?null:Pg(n||window)}catch(u){t=null}t?(n=Sg(Jg(n.document).o),d.setItem(new cP(16384,!!n)),t=n?new ve(n.x,n.y,t.width,t.height):null):t=null;d.setItem(new dP("vi",t));if(t&&"1"==k){k=$O(e);e=[];for(n=0;n<k.length;n++)(h=iP(k[n],l))&&e.push(h);e.push(t);t=hP(e)}jP(d,m,t);d.A&&(k=Math.round(K()/1E3)-d.A,d.setItem(new bP("ts",k)));d.A=Math.round(K()/1E3)}else d=
gP(),d.o={},d.A=Math.round(K()/1E3),d.setItem(new cP(32,!1));this.B=d;this.o=new kP("ve",4);c&&lP(this.o,1);Xb(Tg(),"ima","video","client","crossdomainTag")&&lP(this.o,4);Xb(Tg(),"ima","video","client","sdkTag")&&lP(this.o,8);Xb(Tg(),"ima","video","client","jsTag")&&lP(this.o,2);b&&dc(b,"fullscreen",!1)&&lP(this.o,16);this.A=d=null;if(c&&(c=Xb(Tg(),"ima","video","client"),c.getEData)){this.A=c.getEData();if(c=Xb(Tg(),"ima","video","client","getLastSnapshotFromTop"))if(k=c())this.A.extendWithDataFromTopIframe(k.buckets,
k.tt,k.pd,k.lt),c=this.B,d=k.er,k=k.vi,d&&k&&(d=eP(d).getValue(),k=eP(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new dP("er",e))),c.getItem("vi")&&(t=c.getItem("vi").getValue(),t.top+=d.top,t.left+=d.left,l=[],l.push(t),l.push(d),l.push(k),d=hP(l),jP(c,e,d),c.setItem(new dP("vi",k))));d=this.A.getTimeSinceTagLoadSeconds()}this.o.extend(Saa(d))},nP=function(a,b){try{return(new mP(a,b)).Ac()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,
40)}},Taa=function(a){Nc(oP,"tick",function(){var b=nP(a),c=r("ima.common.updateEngagementDetectionValue");
c&&ha(c)&&c(b)});
oP.start()},pP=function(a){return function(b){return!p(b[a])&&p(0)?0:b[a]}},rP=function(a){var b=[0,
2,4];return function(c){c=c[a];if(da(c))return qP(c,b)}},qP=function(a,b){return Zd(a,function(a,d){return jb(b,d)})},sP=function(a){try{return!!a&&null!=a.location.href&&mc(a,"foo")}catch(b){return!1}},Uaa=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},Vaa=function(){var a=tP;
if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""},uP=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},vP=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},wP=function(a,b){var c=[];
Uaa(a,function(a,e){var h=null;if(ia(a)&&2>b)h=wP(a,b+1);else if(0===a||a)h=String(a);h&&c.push(e+"="+(0,window.encodeURIComponent)(h))});
return c.join("&")},xP=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);
var d=a.document.createElement("img");if(c){var e=function(a){c(a);vP(d,"load",e);vP(d,"error",e)};
uP(d,"load",e);uP(d,"error",e)}d.src=b;a.google_image_requests.push(d)},yP=function(a,b,c){this.D=a;
this.C=b;this.A=c;this.B=this.o},zP=function(a,b,c){this.message=a;
this.fileName=b||"";this.lineNumber=c||-1},BP=function(a,b,c,d,e){var h;
try{h=c()}catch(m){var k=a.A;try{var l=AP(m),k=(e||a.B).call(a,b,l,void 0,d)}catch(n){a.o("pAR",n)}if(!k)throw m;}finally{}return h},DP=function(a,b,c,d){var e=CP;
return function(){for(var h=[],k=0;k<arguments.length;++k)h[k]=arguments[k];return BP(e,a,function(){return b.apply(c,h)},d)}},AP=function(a){var b=a.toString();
a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){var c=a.stack,d=b;try{-1==c.indexOf(d)&&(c=d+"\n"+c);for(var e;c!=e;)e=c,c=c.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=c.replace(/\n */g,"\n")}catch(h){b=d}}return new zP(b,a.fileName,a.lineNumber)},EP=function(a,b,c,d){return DP(a,b,c,d)},FP=function(a,b){return DP(a,b,void 0,void 0)},Waa=function(){for(var a=X,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,sP(a)&&(b=a);
return b},GP=function(a){return{visible:1,
hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0},IP=function(){var a;
HP.mozVisibilityState?a="mozvisibilitychange":HP.webkitVisibilityState?a="webkitvisibilitychange":HP.visibilityState&&(a="visibilitychange");return a},JP=function(a){a=a.match(/[\d]+/g);
if(!a)return"";a.length=3;return a.join(".")},KP=function(a,b,c,d){c=DP(d||"osd_or_lidar::"+b,c,void 0,void 0);
uP(a,b,c,void 0);return c},Xaa=function(a,b){this.o=a;
this.A=b},Yaa=function(a){this.url=a;
this.Gp=!1;this.depth=ga(void 0)?void 0:null},MP=function(a){a=a?a:LP();
for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Gp){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new Xaa(c,d)},LP=function(){var a=aa,b=[],c=null,d=null;
do{var e=a;sP(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new Yaa(c));try{a=e.parent}catch(h){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=aa;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1],c.Gp=!0);return b},NP=function(a,b){var c=a||X;
c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new te(-1,-1):b?(new te(c.innerWidth,c.innerHeight)).round():Pg(c||window).round()}catch(d){return new te(-12245933,-12245933)}},Zaa=function(){var a=OP.getInstance().F,b=0<=PP?QP()-PP:-1,c=RP?QP()-SP:-1,d=0<=TP?QP()-TP:-1,e;
if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var h=b;-1!=c&&c<b&&(h=c);for(var k,b=0;b<a.length;++b)if(h<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k},QP=function(){return(new Date).getTime()-$aa},aba=function(a){var b=[];
Ob(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(da(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")},UP=function(){var a=O("div");
a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a},VP=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Kq(a,"display"))return!0;
b=a;a=a.parentElement}if(b&&(a=Hg(b))){var c,d;try{if(c=Tg(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return VP(d)}return!1},YP=function(a){WP.e=-1;
WP.i=6;WP.n=7;WP.t=8;if(!XP){var b=[];F(Wb(WP),function(a){b[WP[a]+1]=a});
var c=b.join("");XP=(c=a&&a[c])&&y(c,a)}return XP},$P=function(){return PK&&au&&bu("6.0.1")&&0<=Ta(ZP,"10.1")?!0:!1},aQ=function(a,b){this.C=null;
this.G=a;this.J=b||1;this.o="u"},bQ=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),h=Math.floor(d/2);
switch(a.J){case 4:return a.G?(e=Math.floor(.3*c),h=Math.floor(.3*d),[new pe(e,h),new pe(c-e,h),new pe(e,d-h),new pe(c-e,d-h)]):[new pe(e,0),new pe(0,h),new pe(e,d-1),new pe(c-1,h)];case 3:return[new pe(c-1,0),new pe(e,h),new pe(0,d-1)];default:return[new pe(e,h)]}},cQ=function(a,b){var c;
try{c=b||a.C.getBoundingClientRect()}catch(e){c=new se(0,0,0,0)}var d=bQ(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d},dQ=function(a,b,c,d){aQ.call(this,a,d);
this.K=b||3E3;this.L=c||3E3;this.A=[];this.H=!1;this.B=-1;this.D=this.F=0},bba=function(a,b,c){this.snapshot=a;
this.A=b;this.o=c},cba=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ta(ZP,"11")&&c)||Rg&&9>uc||0<a.A.length)return!1;
try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,h=Hg(b),k=[];if(e){var l=UP(),d=bQ(a,d);F(d,function(a,b){var d=new eQ("e",h,c,String(b));this.A.push(d);k.push(y(d.Ap,d,l,a))},a);
ah(b,l,0)}else d=cQ(a,d),F(d,function(a,d){var e=new eQ("e",h,c,String(d));this.A.push(e);k.push(y(e.zp,e,b,a))},a);
var m=!0;F(k,function(a){m=m&&a()});
m?(a.o="l",a.C=b,a.H=!e):(F(a.A,function(a){a.remove()}),a.A=[]);
return m},dba=function(a){if(a.C&&a.H){var b=cQ(a);
F(b,function(a,b){this.A[b]&&this.A[b].setPosition(a)},a)}},fQ=function(a){F(a.A,function(a){a.remove()});
a.A=[];a.o="d"},iba=function(a){var b=K(),c=a.F?b-a.F:0,d=-1,e=fi(a.A,function(a){return gQ(a,b)});
4==a.A.length?d=a.G?eba(e):fba(e):3==a.A.length?d=gba(e):1==a.A.length&&(d=[-1,0,1,2,3,5][gQ(a.A[0],b)+1]);a.D=d==a.B?a.D+c:0;c=new bba(d,a.B,c);a.B=d;a.F=b;hba(a,d);dba(a);return c},iQ=function(a){var b=Jb(Sb(hQ));
F(a,function(a){0<=a&&++b[a]});
return b},fba=function(a){a=iQ(a);
return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3},gba=function(a){var b=iQ(a);
return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3},eba=function(a){a=iQ(a);
return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3},hba=function(a,b){if(0==b&&jQ(a))a.o="n";
else switch(b){case -1:a.o="d";break;case 0:a.o="l";break;case 1:a.o="f";break;case 2:a.o="c";break;case 3:case 4:case 5:case 6:a.o="r"}},jQ=function(a){return"n"==a.o?!0:"l"==a.o&&a.D>=a.L},eQ=function(a,b,c,d){this.module=null;
this.B=a;this.F="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.D=0;this.C=Jb(Sb(jba));this.G=Jb(Sb(hQ));"e"==this.B&&(kQ[this.F]=y(this.Nx,this));Rg?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+lQ(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=kba(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a},kba=function(a,b){function c(a,c,d){var e=b.createElement("param");
e.name=c;e.value=d;a.appendChild(e)}
var d=lQ(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="s"==a.B?"":"hidden";e.style.opacity=0;return e},lQ=function(a,b){var c=ef("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.F);
"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=ef(c,"delay","1"));return c},gQ=function(a,b){if("e"==a.B){var c=null;
try{c=a.module.it()}catch(h){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.G[c+1];a.A=c}else{var d=Number(b),e=mQ(a);lba(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||ga(c.rj))e=d=2}else null===c.rj||c.zm>=d?(d=10<=e?4:0,e=0):e>c.rj?(c=(e-c.rj)/(d-c.zm)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.D&&6==c&&(c=7),e=c):e=d=1;6==a.D&&(--a.C[6],4==e||8==e?++a.C[5]:++a.C[7]);++a.C[e];a.A=d;a.D=e}return a.A},mQ=function(a){var b=null;
try{b=a.module.fc()}catch(c){}return b},lba=function(a,b,c){var d=c-1E3,e=a.o.length;
F(a.o,function(a,b){a.zm<=d&&(e=Math.min(e,b+1))});
var h=a.o.length-e;0<h&&a.o.splice(e,h);a.o.unshift({rj:b,zm:c})},nQ=function(){this.F=!0;
this.o=new eQ("s",HP);this.D=!1;this.A=this.B=this.G=this.M=this.L=this.P=this.C=this.K=null;this.U=0;this.J=this.H=this.O=null},oQ=function(a,b){b!==a.A&&(a.A=b,a.P(b),a.U++)},pQ=function(a){var b=mQ(a.o);
null===a.O&&null!==b&&null!==a.H&&(a.O=K()-a.H);return b},qQ=function(a){var b=a.K.getBoundingClientRect(),c;
c=null!=a.M?a.M.clone():new pe(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.D&&(c.x+=b.left,c.y+=b.top);return c},rQ=function(a){a.D&&(a.L=qQ(a));
a.o.setPosition(a.L);a.G=X.setTimeout(FP("osd_or_lidar::sfm_tpto",y(a.W,a)),125)},mba=function(a){if(a.F){var b=y(function(){1===GP(HP)?(this.B=null,rQ(this)):(X.clearTimeout(this.G),oQ(this,0))},a),c=IP();
if(c){var d=KP(HP,c,b,"osd_or_lidar::sfm_pv");a.J=function(){vP(HP,c,d);this.J=null}}a.F=!1;
a.A=null;b()}},sQ=function(a){a.F||(X.clearTimeout(a.G),null===a.J||a.J(),a.F=!0)},tQ=function(a,b){aQ.call(this,a,b);
this.B=[];this.F=this.H=null;this.D=!0},nba=function(a,b,c){if(null!==a.F)return!1;
a.C=b;a.H=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?bQ(a,c):cQ(a,c);for(var d=0;d<c.length;++d){var e=c[d],h=new nQ,k;k=h;var l=b,m=y(a.K,a),n=e;if(null===k.H){var t="DIV"==l.tagName||"INS"==l.tagName;k.D=!t;k.K=l;e=qQ(k);if(null!=n){e=n;n=new pe(0,0);if(k.D){var u=k.K.getBoundingClientRect();n.x+=u.left;n.y+=u.top}k.M=new pe(e.x-n.x,e.y-n.y)}k.P=m;m=!1;t?(m=UP(),k.C=m,ah(l,m,0),m=k.o.Ap(m,e)):m=k.o.zp(l,e);m?(k.H=K(),k.L=e,k=!0):(k.o.remove(),k.C&&bh(k.C),k=!1)}else k=!1;
if(!k)return uQ(a),a.o="c",!1;a.B.push(h)}a.F=K();a.o="l";return!0},qba=function(a){var b=Jb(Sb(oba));
F(a.B,function(a){null!=a.A&&0<=a.A&&++b[a.A]});
switch(a.J){case 4:return pba(a,b);case 3:return 1==a.B[0].A&&1==a.B[2].A?3:1==a.B[1].A?2:0<b[1]?1:0;default:return 1==b[1]?2:0}},pba=function(a,b){var c=b[1];
if(a.G){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0},vQ=function(a){a.D&&null!==a.F&&"d"!=a.o&&(F(a.B,function(a){mba(a)}),a.o="r",a.D=!1)},wQ=function(a){a.D||(F(a.B,function(a){sQ(a)}),a.D=!0)},uQ=function(a){wQ(a);
F(a.B,function(a){sQ(a);a.o&&(a.o.remove(),a.o=null);a.C&&(bh(a.C),a.C=null)});
a.B=[];a.o="d"},OP=function(){this.D=!1;
this.F=void 0;this.A=!sP(X.top);var a=LP();this.G=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Xe(a[a.length-1].url)||"":"";this.B=this.C=this.o=null;this.H=0},zQ=function(a,b,c,d){this.o=xQ.clone();
this.C=this.area=0;this.lf=this.kf=this.Ob=-1;this.nd=[0,0,0,0,0];this.Ia=[0,0,0,0,0];this.Y=[0,0,0,0,0];this.xe=[0,0,0,0,0];this.G=c;this.Z=-1;this.K=void 0;this.ia=this.ea=-1;this.oy=d;this.Ce=v;this.nf=function(){};
this.W=this.element=b;this.A=null;this.U=1;this.Ca=!1;this.B=null;this.od=this.Fa=this.hz=!1;this.rb=1;this.jf=!0;this.iz=0;b=OP.getInstance();this.fx=b.H++;yQ(this,a,b.A)},rba=function(a,b,c,d,e){if(!(0>a.G)){var h=X.innerWidth,k=X.innerHeight,l=new se(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+h),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));
c=new se(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new se(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.o.top?a.o=d:(a.o.right=a.o.left+h,a.o.bottom=a.o.top+k),a.area=h*k);a.je(l,c,b,e,!0,!0)}},tba=function(a,b,c){var d=YP(X&&X.document);
if(d){c||yQ(a,X,!0);if(a.od)var e=sba(a,d),d=!0;else var e=Math.floor((a.o.left+a.o.right)/2),h=Math.floor((a.o.top+a.o.bottom)/2),k=Sg(window.document),e=d(e-k.x,h-k.y)?.5:0,d=!1;a.je(a.o,e,b,c,!0,d)}},AQ=function(a,b,c){var d;
if(c(b))return b;for(;;){d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}},sba=function(a,b){var c=Sg(window.document),d=a.rb,e=Math.floor(a.o.left-c.x)+1,h=Math.floor(a.o.top-c.y)+1,k=Math.floor(a.o.right-c.x)-d,l=Math.floor(a.o.bottom-c.y)-d,c=(l-h)*(k-e);
if(h>l||e>k)return 0;var d=!!b(e,h),m=!!b(k,l);if(d&&m)return 1;var n=!!b(k,h),t=!!b(e,l);if(d)l=AQ(h,l,function(a){return!!b(e,a)}),k=AQ(e,k,function(a){return!!b(a,h)});
else if(n)l=AQ(h,l,function(a){return!!b(k,a)}),e=AQ(k,e,function(a){return!!b(a,h)});
else if(t)h=AQ(l,h,function(a){return!!b(e,a)}),k=AQ(e,k,function(a){return!!b(a,l)});
else if(m)h=AQ(l,h,function(a){return!!b(k,a)}),e=AQ(k,e,function(a){return!!b(a,l)});
else{var u=Math.floor((e+k)/2),x=Math.floor((h+l)/2);if(!b(u,x))return 0;h=AQ(x,h,function(a){return!!b(u,a)});
l=AQ(x,l,function(a){return!!b(u,a)});
e=AQ(u,e,function(a){return!!b(a,x)});
k=AQ(u,k,function(a){return!!b(a,x)})}return(l-h)*(k-e)/c},BQ=function(a,b,c){0>a.G||a.je(a.o,a.C,b,c,!0,!0)},CQ=function(a){return p(a)&&0<=a&&1>=a},DQ=function(a){var b=-1;
1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b},EQ=function(a,b,c){a.U=c;
if(!a.W||$P()||$P())return a.Ca=!0,!1;c=new dQ(!1,void 0,void 0,a.U);var d=cba(c,a.W,String(a.fx));d?(a.nf=b,a.A=c):a.Ca=!0;return d},GQ=function(a,b,c){if(!a.element||!$P())return!1;
a.U=c||1;c=new tQ(!1,a.U);var d=nba(c,a.element,y(function(a){FQ(this,QP(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d?(a.B=c,vQ(c)):a.hz=!0;return d},FQ=function(a,b,c,d,e){0>a.G||!HQ(a)||(c?a.B&&wQ(a.B):(yQ(a,d,!0),a.B&&vQ(a.B)),d=e||0,ga(e)||-1==a.Z||(d=[1,
.75,.5,.3,.01][a.Z]||0),a.je(a.o,d,b,c,!1,!1),!a.$d()||a.Fl()||a.B&&uQ(a.B))},HQ=function(a){return null!==a.B&&"d"!=a.B.getStatus()},yQ=function(a,b,c){a.iz++;
b=c?b:b.top;try{var d=xQ.clone(),e=new pe(0,0);if(a.W){if(c||1!=a.oy||!VP(a.W))d=a.W.getBoundingClientRect();e=Vq(a.W,b)}var h=e.x,k=e.y;a.o=new se(Math.round(k),Math.round(h+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(h))}catch(l){a.o=xQ.clone()}a.area=(a.o.bottom-a.o.top)*(a.o.right-a.o.left)},IQ=function(a,b){var c=Math.pow(10,b);
return Math.floor(a*c)/c},uba=function(a){a.A&&fQ(a.A);
a.B&&uQ(a.B)},vba=function(){this.o={};
for(var a in JQ)this.o[JQ[a]]=0},KQ=function(a,b){0==a.o[b]&&(a.o[b]=1)},wba=function(a){var b=0,c;
for(c in a.o){var d=(0,window.parseInt)(c,10);1==a.o[d]&&(b+=d,a.o[d]=2)}return b},LQ=function(a,b,c,d){this.ua=0;
this.ac=[0,0,0,0,0];this.$b=[0,0,0,0,0];this.Ua=[0,0,0,0,0];this.jb=this.aa=0;this.H={};this.P=new vba;this.ze={};this.Xf=this.D="";this.ye=!1;this.Ra=[];this.wa=void 0;this.Ae=this.Rh=this.Yh=this.ud=!1;this.L=void 0;this.qd=0;this.ka=-1;this.Pb=this.da=0;this.M=-1;this.xb=void 0;this.Ka=this.O=0;this.Qh=.1>Math.random();this.Ma=0;this.Ja=-1;this.sd=!1;this.Ea=this.wb=0;this.fa=!1;this.xa=this.fb=0;this.$a=!1;this.ma=[0,0,0,0,0];this.J=this.mf=0;this.rd=!1;this.gb=this.De=0;this.md=-1;this.Fe=this.Ee=
0;this.Hh=this.Be=this.Bo=this.F=!1;this.hf=0;this.pf=!1;this.Wa=v;zQ.call(this,a,b,c,d)},MQ=function(a,b){var c=b-a.G||1,d=1E4;
p(a.M)&&-1!=a.M&&(d=Math.max(d,a.M/3));return c>d?1:c},xba=function(a){var b=0;
.5<=a.C&&(b+=1);CQ(a.K)&&(b+=2);a.fa&&(b+=4);a.F&&(b+=8);-1!=a.ea&&(b+=16,1==a.ea&&(b+=32));return b},NQ=function(a,b){var c=a.qd;
RP||a.wa||-1==a.ka||(c+=b-a.ka);return c},yba=function(a){a.od=!0;
a.rb=2},OQ=function(a,b){tb(a.Ra,Jb(b-a.Ra.length+1));
a.Ra[b]=IQ(a.C,2)},RQ=function(a,b){var c=a.ze[b];
if(null!=c)return c;if(a.Fa)return{"if":0};c=a.o.clone();c.round();var d=fi(a.Ra,function(a){return 100*a|0}),e=OP.getInstance(),h={};
h["if"]=e.A?1:void 0;h.sdk=a.L?a.L:void 0;h.p=[c.top,c.left,c.bottom,c.right];h.tos=a.nd;h.mtos=a.Ia;h.ps=void 0;h.pt=d;h.vht=NQ(a,QP());h.mut=a.Pb;h.a=a.K;h.ns=a.hf;h.ft=a.wb;h.at=a.fb;h.as=a.$a?1:0;h.atos=a.ma;h.uac=a.mf;h.vpt=a.Ma;h.is=xba(a);h.ic=wba(a.P);if("h"==a.L||"as"==a.L)h.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(h.std="csm");a.od&&(h.efpf=a.rb);a.A&&(h.swf=a.A.getStatus(),h.px=a.U);a.B&&(h.sfm=a.B.getStatus(),h.px=a.U);0<a.Fe&&(h.nnut=a.Fe);h.vme=a.rd?1:0;h.uvmtime=
a.Qh?1:0;h.nmt=a.De;h.bt=a.gb;h.pst=a.md;h.mmct=a.Ee;h.vpaid=a.xb;h.dur=a.M;h.vmtime=a.Ka;h.vmtos=a.ac;h.vmmtos=a.$b;zba(a,b)&&(a.$d()&&(h.dtos=a.ua,a.ua=0,h.vmdtos=a.aa,a.aa=0,a.jb++,h.dtoss=a.jb),h.dat=a.xa,a.xa=0,h.dft=a.Ea,a.Ea=0);!a.$d()&&2E3<=a.aa&&(h.vmdtos=a.aa);e.B&&(h.ps=[e.B.width,e.B.height]);h.dom=e.G;a.Ca&&(h.fmf="1",h.px=a.U);a.ud&&(h.ven="1");a.Yh&&(h.veh="1");a.J&&(h.vds=a.J);PQ()?(h.c=IQ(a.C,2),h.ss=IQ(Aba(a),2)):h.tth=QP()-QQ;h.mc=IQ(a.Ob,2);return h},Aba=function(a){if(a.F)return 1;
var b=X.screen.width*X.screen.height;return 0>=b?-1:a.area*a.C/b},zba=function(a,b){if(jb(Bba,b))return!0;
var c=a.H[b];return p(c)&&(a.H[b]=!0,!c)?!0:!1},$Q=function(){if(!SQ){SQ=!0;
var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!TQ){var b;if(a){var c=DP("osd_or_lidar::throttled_scroll_raf_callback",UQ,void 0,void 0);b=function(){a(function(){X.setTimeout(c,0)})}}else b=UQ;
VQ=new qm(DP("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=y(VQ.Df,VQ);TQ=KP(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!WQ){if(a){var d=DP("osd_or_lidar::throttled_resize_raf_callback",XQ,void 0,void 0);b=function(){a(function(){X.setTimeout(d,0)})}}else b=XQ;
YQ=new qm(DP("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=y(YQ.Df,YQ);WQ=KP(X,"resize",b,"osd_or_lidar::throttled_resize")}Cba();ZQ()}},XQ=function(){aR(!1);
UQ()},UQ=function(){bR(cR(),!1)},Fba=function(){var a,b=OP.getInstance();
dR&&(b.o=NP(X,dR));if(Dba)return a=new eR,a.J=!0,a;if(Eba)return a=new eR,a.D=!0,a;if(fR){a=gR;aR(!1);var c=OP.getInstance(),d=c.C,b=d.height-a;0>=b&&(b=d.height,a=0);c.o=new te(d.width,b);b=new eR;b.G=!0;b.B=c.o;b.A=d;b.C=a;return b}if(hR)return a=new eR,a.F=!0,a;if(iR)return a=new eR,a.H=!0,a;if(jR)return a=new eR,a.K=!0,a;a:{var b=b.o,e=new eR;e.B=b;e.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var h=dR,k=X||X,k=k.top,c=b||NP(k,h),d=Sg(Jg(k.document).o);
a=-1==c.width||-12245933==c.width?new se(c.width,c.width,c.width,c.width):new se(d.y,d.x+c.width,d.y+c.height,d.x)}catch(l){a=e;break a}e.L=a;e.o=!0}a=e}return a},bR=function(a,b){var c;
if(!kR)if(window.clearTimeout(lR),lR=null,0==a.length)b||mR();else{var d=Fba();try{var e=QP();if(d.D)for(c=0;c<a.length;c++)BQ(a[c],e,b);else if(d.J)for(c=0;c<a.length;c++)BQ(a[c],e,b);else if(d.G)for(c=0;c<a.length;c++)rba(a[c],e,d.A,d.C,b);else if(d.F)for(c=0;c<a.length;c++)tba(a[c],e,b);else if(d.H)F(a,function(a){if(b){if(a.A){var c=a.A;3<=c.B&&(c.B=3);a.Z=-1}}else if(a.A&&"d"!=a.A.getStatus()){var c=iba(a.A),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.Z=DQ(d[c.A+1]);a.je(a.o,e,a.G+c.o,
!1,!0,!1);!a.$d()||a.Fl()||a.jf||a.A&&fQ(a.A);(c=2==c.snapshot||jQ(a.A))||(c=a.A,c="f"==c.o&&c.D>=c.K);c&&(a.nf(a),a.jf=!1,a.A&&fQ(a.A))}});
else if(d.K)for(c=0;c<a.length;c++)FQ(a[c],e,b,X);else if(d.o){var h=OP.getInstance();for(c=0;c<a.length;c++)a[c].update(e,d.L,b,X,h.A)}++Gba}finally{b?F(a,function(a){a.C=0}):mR()}}},Cba=function(){var a=ZQ,b=IP();
b&&(nR=nR||KP(HP,b,a,"osd_or_lidar::visibility"))},ZQ=function(){var a=PQ();
if(a){if(!RP){var b=QP();SP=b;F(oR,function(a){a.qd=NQ(a,b)})}RP=!0;
aR(!0)}else b=QP(),RP=!1,QQ=b,F(oR,function(a){0<=a.G&&(a.ka=b)});
bR(cR(),!a)},PQ=function(){if(Hba())return!0;
var a=GP(X.document);return 1==a||0==a},mR=function(){X&&(lR=X.setTimeout(FP("osd_or_lidar::psamp_to",function(){bR(cR(),!1)}),Zaa()))},Iba=function(a){return eb(oR,function(b){return b.D==a})},cR=function(){return 0==oR.length?pR:0==pR.length?oR:rb(pR,oR)},Jba=function(){var a=X.document;
return a.body&&a.body.getBoundingClientRect?!0:!1},aR=function(a){var b=OP.getInstance();
b.o=NP(X,dR);if(!a){b.C=X&&X.outerWidth?new te(X.outerWidth,X.outerHeight):new te(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,h=OP.getInstance().o;try{var k=a.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)d=m.scrollHeight!=h.height?m.scrollHeight:m.offsetHeight,e=m.scrollWidth!=h.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,t=m.scrollWidth,u=m.offsetHeight,x=m.offsetWidth;m.clientHeight!=u&&(n=l.scrollHeight,t=l.scrollWidth,u=
l.offsetHeight,x=l.offsetWidth);n>h.height?n>u?(d=n,e=t):(d=u,e=x):n<u?(d=n,e=t):(d=u,e=x)}c=new te(e,d)}catch(B){c=new te(-12245933,-12245933)}b.B=c}},Kba=function(a,b){if(1<=Math.random())return!1;
var c=!1;F(oR,function(b){b=GQ(b,a,3);c=c||b});
(jR=c)&&F(oR,function(a){HQ(a)||b(a)});
return c},Lba=function(a){var b=!1;
F(oR,function(c){c=EQ(c,a,p(1)&&1>Math.random()?3:1);b=b||c});
(iR=b)&&F(oR,function(b){b.A||a(b)});
return b},Mba=function(a){F(a,function(a){null==eb(oR,function(c){return c.element==a.element&&c.Xf==a.Xf})&&oR.push(a)})},Hba=function(){return xh(oR,function(a){return a.F})},eR=function(){this.A=this.B=null;
this.C=0;this.L=null;this.o=this.K=this.H=this.F=this.G=this.D=this.J=!1},qR=function(a,b,c){b=b||",$";
"string"==typeof b&&(b=b.split(""));c=c||0;if(!(a instanceof Array)||c>=b.length)return(0,window.encodeURIComponent)(""+a);for(var d=[],e=0;e<a.length;e++)d.push(qR(a[e],b,c+1));return d.join(b[c])},Oba=function(){var a=LP(),b=a.length-1,c=MP(a),a=c.o,d=c.A,c=[];
d?(a&&c.push(rR(b,[d.url,2],0,[a.url,0],a.depth)),c.push(rR(b,[d.url,2],0))):a&&a.url&&(c.push(rR(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=Nba.exec(a.url))&&d[0]||"")&&c.push(rR(b,[d,1],a.depth)));c.push(rR(b));return c},rR=function(a,b,c,d,e){a=[a];
if(p(b)&&p(c)){for(var h=0;h<c;h++)a.push("");a.push(b)}if(p(d)&&p(e)){b=e-a.length+1;for(h=0;h<b;h++)a.push("");a.push(d)}return a},sR=function(){var a=Oba();
return fi(a,function(a){return qR(a)})},Pba=function(a){if(!a)return"";
var b=a.document,c=[];c.push("url="+(0,window.encodeURIComponent)(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+(0,window.encodeURIComponent)(b.referrer.substring(0,512)));return c.join("&")},tR=function(){this.D=this.B=this.A=this.F=this.C=!1;
this.o={};this.o.start=this.ey;this.o.firstquartile=this.Ux;this.o.midpoint=this.Zx;this.o.thirdquartile=this.fy;this.o.complete=this.Qx;this.o.pause=this.ay;this.o.resume=this.by;this.o.skip=this.cy;this.o.viewable_impression=this.hy;this.o.mute=this.$x;this.o.unmute=this.gy;this.o.fullscreen=this.Vx;this.o.exitfullscreen=this.Tx;this.o.fully_viewable_audible_half_duration_impression=this.Wx;this.o.measurable_impression=this.Yx;this.o.abandon=this.Px;this.o.engagedview=this.Sx;this.o.impression=
this.Xx;this.o.creativeview=this.Rx},Rba=function(a){if(!a.C){a.C=!0;
try{PP=QP(),1>Math.random()&&(a.D=!0),uR=Waa(),aR(!1),Jba()?(window.setTimeout(function(){},1),OP.getInstance().A?Qba(a):$Q()):vR=!0}catch(b){throw oR=[],pR=[],b;
}}},Qba=function(a){var b;
if(Fq&&ga(X.screenX)&&ga(X.mozInnerScreenX)&&ga(X.outerWidth)){var c=X.navigator.userAgent,d=c.indexOf("Firefox/");b=-1;if(0<=d){b=Math.floor(c.substr(d+8))||-1;var e=c.indexOf("Mac OS X 10."),d=-1;0<=e&&(d=Number(c.substr(e+12,1))||-1);var h=0<d?-1:c.indexOf("Windows NT "),e=-1;0<=h&&(e={"6.0":0,"6.1":1,"6.2":2}[c.substr(h+11,3)]||-1);c=148;5<=d?c=4<=b?108:3<=b?127:108:0<=e&&(16==b||17==b||18==b)&&(c=[[146,146,146],[148,147,148],[131,130,136]][e][b-16]);b=c}else b=null;null!==b&&(gR=b,fR=!0);b=!0}else b=
!1;if(b)$Q();else if(b=X&&X.document,b=Rg&&vc(8)&&ha(YP(b))?hR=!0:!1,b)a.F=1>Math.random(),$Q();else{if($P()){if(Kba(X,y(a.il,a))){$Q();a.B=!0;return}}else if(Lba(y(a.il,a))){$Q();a.A=!0;return}window.clearTimeout(lR);lR=null;wR="i";kR=!0}},xR=function(a,b){a.qd=NQ(a,QP());
var c=!PQ();bR([a],c);a.wa=!0;return RQ(a,b)},Sba=function(a,b,c){if(!b.Hh){b.Hh=!0;
"i"!=wR&&(kR=!1);if(a.A&&!b.A&&!b.Ca){var d=1>Math.random()?3:1;EQ(b,y(a.il,a),d)}if(a.B&&!HQ(b)){a:{a=[3,1];if(!(1E-4>Math.random())&&(d=Math.random(),1>d)){var e=window;try{var h=new window.Uint32Array(1);e.crypto.getRandomValues(h);d=h[0]/65536/65536}catch(k){d=Math.random()}d=a[Math.floor(d*a.length)];break a}d=null}GQ(b,X,d)}b.H={};b.H.firstquartile=!1;b.H.midpoint=!1;b.H.thirdquartile=!1;b.H.complete=!1;b.H.pause=!1;b.H.skip=!1;b.H.viewable_impression=!1;b.jb=0;c=p(c)?c.opt_nativeTime:void 0;
TP=c=ga(c)?c:QP();b.G=c;h=!1;PQ()||(h=!0,b.ka=c);bR([b],h)}},yR=function(a){if(w(a)){var b=db(oR,function(b){return b.D==a});
0<=b&&(uba(oR[b]),ob(oR,b))}},Tba=function(a,b,c){var d=eb(oR,function(a){return a.element==c});
null!==d&&d.D!=b&&(yR(d.D),d=null);d||(d=zR(a,c),d.D=b,d.L="h");return d},zR=function(a,b){var c;
c=new LQ(X,b,-1,7);c.Ce=y(a.fl,a);OP.getInstance().F=79463069;Mba([c]);$Q();return c},Uba=function(a,b){var c=Zb(AR,function(b){return b==a}),c={v:"412v",
e:BR[c]},d=RQ(b,a);hc(c,d);b.ze[a]=d;return CR(c,DR)},CR=function(a,b,c){var d={};
p(a)&&Ob(b,function(b,c){c in Object.prototype||null!=b&&(ha(b)?d[c]=b(a):d[c]=a[b])});
p(c)&&hc(d,c);return aba(d)},Wba=function(a,b,c,d){var e=b.toLowerCase();
if(b=Zb(AR,function(a){return a==e})){b={v:"412v",
e:BR[b]};if(vR)return b.msg="ue",b;c=a.Mo(c,d);b.nas=oR.length;if(!c)return b.msg="nf",b;Rba(a);"i"==wR&&(c.Fa=!0,a.im(c));a.F&&yba(c);var h=d.opt_fullscreen;p(h)&&(c.F=!!h);jb(Vba,e)&&(Sba(a,c,d),a.D&&a.To(c));if(h=a.o[e])if(a=h.call(a,c,d),p(a))return hc(b,a),b}},ER=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1},GR=function(a){return!!(1<<a&FR)},aca=function(){try{Xba()}catch(d){}var a=
"a=1&b="+FR+"&",b=[],c=99;
F(Yba,function(a,c){var h=!1;try{h=a(X)}catch(k){}b[c/32>>>0]|=h<<c%32});
F(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;F(Zba,function(b){var e="false";try{e=b(X)}catch(h){}a+=String.fromCharCode(c++)+"="+e+"&"});
F($ba,function(b){var e="";try{var h=b(X);b=[];for(var k=0,l=0;l<h.length;l++){for(var m=h.charCodeAt(l);255<m;)b[k++]=m&255,m>>=8;b[k++]=m}e=eG(b,!0)}catch(n){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)},Xba=function(){if(!HR){var a=function(){IR=!0;
X.document.removeEventListener("webdriver-evaluate",a,!0)};
X.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){JR=!0;X.document.removeEventListener("webdriver-evaluate-response",b,!0)};
X.document.addEventListener("webdriver-evaluate-response",b,!0);HR=!0}},KR=function(){tR.call(this)},cca=function(a,b,c){var d=eb(oR,y(function(a){return a.element?LR(a.element,c)==b&&a.Xf==c:!1},a));
null!==d&&d.D!=b&&(yR(d.D),d=void 0);if(d)return d;d=bca(c);if(d=eb(d,y(function(a){return LR(a,c)==b},a)))return d=zR(a,d),d.L="as",d.D=b,d.Xf=c,d},bca=function(a){var b=X.document,c=Kb(fi(["embed",
"object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=Zd(c,function(a){if(!a||!hh(a)||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})},LR=function(a,b){var c="metricID"+b;
if(!a||!a[c]||!ha(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID},MR=function(a,b){OP.getInstance();
var c;switch(a.L){case "h":c=r("ima.common.triggerExternalActivityEvent");break;case "a":c=r("ima.common.triggerExternalActivityEvent");break;case "n":c=r("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.Xf;a.element&&ha(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.J|=4,!1}if(ha(c)){var e=Uba(b,a);try{return c(a.D,e,b),!0}catch(h){a.J|=2}}else a.J|=1;return!1},dca=function(a,b,c){a=OP.getInstance();
if(a.D!=b){a.D=b;var d=xh(oR,function(a){return a.pf});
F(oR,function(a){b||d||(a.G=c);a.Be=b;a.pf=!1})}},NR=function(){var a={};
a.moatInit=aca();return a},OR=function(a,b,c){var d={},e=KR.getInstance(),h={};
hc(h,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});a=h.opt_bounds?{v:"412v",e:a,msg:"ol"}:Wba(e,a,b,h);d.viewability=CR(a,DR);b=FR=(new Date).getTime();c=GR(5);b=(IR?!c:c)?b|2:b&-3;c=GR(2);b=(JR?!c:c)?b|8:b&-9;b={s1:(b>>>0).toString(16)};d.moatViewability=CR(a,eca,b);d.googleViewability=CR(a,fca,b);return d},PR=function(){J.call(this);
this.o=null;this.D=new sm(this);H(this,this.D);this.F=null;this.K=new Ie;this.J=new Ie;this.B=this.C=null;this.A=!1;this.G=(ha(null),null)},RR=function(){null!=QR||(QR=new PR);
return QR},TR=function(a){if(null==a)return!1;
if(LO()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=SR(a);return 0>=b-a.width&&42>=c-a.height},SR=function(a){return ha(a.getBoundingClientRect)&&kh(Hg(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},gca=function(a,b){a.C=b},VR=function(a,b,c,d,e){if(a.A){if(a.G)return a.G(b,c,e);
e=e||{};if(d=d?a.J.get(d):fO.B)null!=e.opt_fullscreen||(e.opt_fullscreen=TR(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=SR(a.C));return BP(CP,"lidar::handlevast_html5",pa(OR,b,c,e),void 0,UR)||{}}return{}},hca=function(){var a=RR();
if(!a.A)return null;if(null!=a.B)return a.B;a.B=BP(CP,"lidar::getinitsignals_html5",NR,void 0,UR)||null;return a.B},WR=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};
b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.o.send("activityMonitor","pageSignals",b)}},ica=function(){if(!(aa.ima&&aa.ima.video&&aa.ima.video.client&&aa.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);
var a=aa.document,b=a.createElement("script"),c=a.location.protocol;"http:"!=c&&"https:"!=c&&(c="");b.src=c+"//s0.2mdn.net/instream/video/client.js";b.async=!0;b.type="text/javascript";a=a.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}if(nO(lO(),31061775)){var d=fO.B;try{Taa(function(){return d})}catch(e){}}},XR=function(a,b,c){if(!fO.C)return"";
var d=b?a.J.get(b):fO.B;a={};null!=c&&(a.fullscreen=c);c="";try{c=nP(function(){return d},a)}catch(e){c="sdktle;"+La(e.name,12)+";"+La(e.message,40)}return c},YR=function(a,b,c){if(kb(a))return null;
a=Zd(a,function(a){var b=a.B;return"application/x-mpegurl"==E(a.o).toLowerCase()||"progressive"==b});
kb(c)||(c=fi(c,function(a){return a.toLowerCase()}),a=Zd(a,function(a){return jb(c,E(a.o).toLowerCase())}));
if(!ga(b)||0>=b)b=IO()?500:1E3;return jca(a,b)},jca=function(a,b){return kca(a,b)||lca(a,b)||mca(a,b)},kca=function(a,b){var c=null;
F(a,function(a){var e=a.ce,h=a.be;e>b||h<b||!(null==c||c.ce>e)||(c=a)});
return c},lca=function(a,b){var c=null;
F(a,function(a){var e=a.ce,h=a.be;h>b||(null==c||c.be<h?c=a:null!=c&&c.be==h&&c.ce>e&&(c=a))});
return c},mca=function(a,b){var c=null;
F(a,function(a){var e=a.ce,h=a.be;if(!(e<b))if(null!=c&&c.ce==e&&c.be<h)c=a;else if(null==c||c.ce>e)c=a});
return c},ZR=function(){J.call(this);
this.F=this.J=this.M=this.G=!1;this.A=0;this.C=[];this.H=!1;this.U=this.O=window.Infinity;this.B=0;this.L=!1;this.D=new sm(this);this.K={}},$R=function(a,b){null==b||a.G||(a.o=b,nca(a),a.G=!0)},bS=function(a){null!=a.o&&a.G&&(aS(a),a.G=!1,a.J=!1,a.F=!1,a.A=0,a.C=[],a.H=!1)},nca=function(a){aS(a);
!(a.o instanceof J)&&"ontouchstart"in window.document.documentElement&&MO()?(a.K={touchstart:y(a.tC,a),touchmove:y(a.sC,a),touchend:y(a.rC,a)},Ob(a.K,function(a,c){this.o.addEventListener(c,a,!1)},a)):a.D.R(a.o,"click",a.ap)},aS=function(a){a.D.ya(a.o,"click",a.ap);
Ob(a.K,function(a,c){this.o.removeEventListener(c,a,!1)},a);
a.K={}},oca=function(a,b){a.C=[];
F(b,function(a){nb(this.C,a.identifier)},a)},cS=function(a,b){return xh(b,function(a){return jb(this.C,a.identifier)},a)},dS=function(a){null!=a?rO(pca,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=sO(a)?qca(a):null:a=null;
return a},eS=function(a,b,c){if(null==a)return null;
c=new N((null!=c?c:"//www.youtube.com/")+"watch");var d=c.o;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");rf(c,d);return c.toString()},fS=function(a){return null===a?!1:"pharma"==(new N(a)).Pe().toLowerCase()},qca=function(a){if(C(E(a)))return null;
var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new N(a)).o;return Hf(a,"v")?a.get("v").toString():Hf(a,"video_id")?a.get("video_id").toString():null},rca=function(a){return C(E(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"},gS=function(){J.call(this)},
hS=function(a){J.call(this);
this.o=a;this.Y=new mm(4);this.B=0;this.U=this.C=this.L=this.H=!1;this.M=this.bd();this.K=this.Zd();this.W=15E3;this.O=!1},jS=function(a){a.L=!1;
a.C=!1;a.H=!1;a.B=0;a.U=!1;a.Y.clear();iS(a);Mb(a.D)},lS=function(a){a.C||(a.C=!0,iS(a),a.$("start"),TO()||!SF||SF&&PO(SO,3)||LO()&&(!MO()||!PO(kS,4))||a.rl())},mS=function(a){for(var b=a.o.buffered.length-1;0<=b;){if(a.o.buffered.start(b)<=a.o.currentTime)return a.o.buffered.end(b);
b--}return 0},iS=function(a){a.J&&(Td(a.J),a.J=null)},oS=function(){J.call(this);
this.A=new nS;this.o=new sm(this);var a=cO();if(a){a:{if(Yb(a.o,"videoElementMockDuration")&&(a=a.o.videoElementMockDuration,ga(a)))break a;a=window.NaN}this.duration=a}},sca=function(){var a=["video/mp4"],b=["video/ogg"],c=new oS;
c.canPlayType=function(c){return jb(a,c)?"probably":jb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c},tca=function(a){this.startTime=0;
this.endTime=a},nS=function(){this.length=0;
this.o=[]},pS=function(){throw Error("Do not instantiate directly");
},qS=function(){pS.call(this)},rS=function(a,b){var c;
a:{var d=a(b||uca,void 0,void 0);c=Jg().createElement("DIV");d=vca(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c},vca=function(a){if(!ia(a))return String(a);
if(a instanceof pS){if(a.Xc===sS)return a.getContent();if(a.Xc===tS)return Fa(a.getContent())}return"zSoyz"},uS=function(a,b){return null!=a&&a.Xc===b},vS=function(a){if(null!=a)switch(a.xd){case 1:return 1;
case -1:return-1;case 0:return 0}return null},wS=function(){pS.call(this)},Y=function(a){return null!=a&&a.Xc===sS?a:a instanceof ug?xS(vg(a),a.zf()):xS(Fa(String(String(a))),vS(a))},yS=function(){pS.call(this)},zS=function(){pS.call(this)},AS=function(){pS.call(this)},BS=function(){pS.call(this)},CS=function(){pS.call(this)},DS=function(a,b){this.content=String(a);
this.xd=null!=b?b:null},ES=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}},HS=function(a,b,c){var d="key_"+a+":"+b,e=FS[d];
if(void 0===e||0>e)FS[d]=0,GS[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');},IS=function(a,b){var c=GS["key_"+a+":"+b];
c||""==b||(c=GS["key_"+a+":"]);return c?c:wca;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');},wca=function(){return""},MS=function(a){return uS(a,sS)?String(String(a.getContent()).replace(JS,"").replace(KS,"&lt;")).replace(xca,LS):Fa(String(a))},NS=function(a){return uS(a,sS)?String(String(a.getContent()).replace(JS,"").replace(KS,"&lt;")).replace(yca,LS):String(a).replace(zca,LS)},Aca=function(a){return"%"+a.charCodeAt(0).toString(16)},
PS=function(a){a=wa(String(a));
OS.lastIndex=0;return OS.test(a)?a.replace(OS,Aca):a},RS=function(a){var b=QS[1]||(QS[1]=new sA(1)),c=vS(a);
null==c&&(c=bg(a+"",uS(a,sS)));return Bca(c!=b.o?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")},LS=function(a){return Cca[a]},SS=function(a){return Dca[a]},US=function(a){return String(a).replace(TS,SS)},Eca=function(a,b,c){return""+IS("a",a.oi)(a,null,c)},Fca=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(RS(a.Uc))+">"+Y(a.Uc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},
Gca=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(RS(a.Uc))+">"+Y(a.Uc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.Tf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},Hca=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'},
VS=function(){var a="",b=ra("Share");
return a+b},WS=function(a){return""+IS("b",a.oi)(a,null,void 0)},Ica=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+Y(a.CD)+'<div class="videoAdUiSkipIcon"></div></button></div>'},Jca=function(){var a="",b=ra("Skip Ad {$skipSymbol}",{skipSymbol:Y("")});
return a+b},XS=function(a){var b="";
a=2<=a.sj&&1<=a.Sh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Y(a.Sh),totalAds:Y(a.sj),timeLeft:Y(a.qj)}):ra("Ad {$timeLeft}",{timeLeft:Y(a.qj)});return b+=a},ZS=function(){var a=YS(),b=xS("</a>"),c="",a=ra("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Y(a),
endFormat:Y(b)});return xS(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))},YS=function(){return xS('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')},$S=function(a){return xS("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+
Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")},Kca=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";
b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.Ik)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+"</a>";a=""+$S({heading:aT(""+Y(a.heading)),message:aT(b),buttons:aT("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+Y(a.close)+"</button>")});return xS(a)},Lca=function(a){for(var b=""+Y(a.question),
c=a.options,d=c.length,e=0;e<d;e++)var h=c[e],b=b+("<label for='videoAdUiMuteOption"+MS(e)+"'><input type='radio' id='videoAdUiMuteOption"+MS(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+MS(e)+"' />"+Y(h)+"</label>");
a=""+$S({heading:aT(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:aT(b),buttons:aT("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")});return xS(a)},Mca=function(a){var b=String(""+a.heading);
return xS($S({heading:b?new DS(b,void 0):"",message:aT(""+Y(a.message)),buttons:aT("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))},Nca=function(){return xS('<div class=\'videoAdUiMuteToggleButton\'><div class=\'videoAdUiMutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9.6314915,5.9285684 L10.6837982,4.9386188 L12.8157457,6.9442323 L14.9476933,4.9386188 L16,5.9285684 L13.8680525,7.9341818 L16,9.9397952 L14.9476933,10.9297447 L12.8157457,8.9241313 L10.6837982,10.9297447 L9.6314915,9.9397952 L11.7634391,7.9341818 L9.6314915,5.9285684 Z" fill="#fff"></path></svg></div><div class=\'videoAdUiUnmutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9,11.4457379 C10.7427023,10.9390412 12,9.5931906 12,7.9969959 C12,6.4008011 10.7427023,5.0549506 9,4.5492552 L9,11.4457379 Z" fill="#fff"></path><path d="M14.2494529,8 C14.2494529,11.0361747 12.0131291,13.5866817 9,14.3156841 L9,16 C12.9934354,15.2419577 16,11.9484291 16,8 C16,4.0505695 12.9934354,0.7570409 9,0 L9,1.6833146 C12.0131291,2.4123169 14.2494529,4.9638253 14.2494529,8 L14.2494529,8 Z" fill="#fff"></path></svg></div></div>')},
cT=function(a,b,c){if(null==a||!kh(Hg(a),a))throw EO(bT,null,"containerElement","element");
this.D=a;this.A=this.o=null;this.C=b;this.F=c||!1;this.B=null;this.o=O("div",{style:"display:none;"});a=cO();dO(a,"useVideoElementMock")?(a=sca(),b=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.Bg=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.pj=O("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.Bg.appendChild(a.pj),b.appendChild(a.Bg),a.o.R(a,["loadeddata","playing",
"pause","ended"],a.GC),a=b):(a="",b=ra("Advertisement"),a=O("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.A=a;this.D.appendChild(this.o);this.o.appendChild(this.A);this.C&&(a=O("div",{id:this.C,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.o.appendChild(a));this.F&&(this.B=O("div",{style:"position:absolute;width:100%;height:100%;"}),this.o.appendChild(this.B))},
fT=function(a){J.call(this);
this.O="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.O=a:b=a);this.U=new sm(this);this.F=null;this.C=!1;this.ia=this.bd();this.fa=this.Zd();this.K=-1;this.aa=!1;this.G=-1;this.B=this.Z=this.L=null;this.W="";this.o=!1;this.da=null!=b;this.ma=this.M=this.ea=this.A=null;this.D=void 0;this.H=this.ka=null;this.J=this.xa=0;this.da?(this.o=!0,this.A=b,this.D=2):(a=y(this.Hw,this),dT?a():(eT.push(a),a=window.document.createElement("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))},gT=function(a,b,c){var d={autoplay:"1"};
if(null!=a.B){var e=a.B.F;null!=e&&(d.agcid=e);e=a.B.C;null!=e&&(d.adformat=e);e=a.B.D;null!=e&&(d.ad_query_id=e);(e=a.B.G)&&(d.cta_conversion_urls=e);a.B.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.B.K?1:3;a.B.H&&(d.noiba=1);a.B.M&&(d.utpsa=1);a.B.L&&(d.autoplay="1");a.B.B&&hc(d,a.B.B)}e=dS(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!W()&&nO(lO(),41351017)&&(d.enabled_engage_types="3,4,5");
a.C=!1;a.B&&a.B.A?(a.ka=d,a.A.preloadVideoByPlayerVars(a.ka)):a.A.cueVideoByPlayerVars(d);a.$("loaded")},hT=function(a){a.U.ya(a.F,"tick",a.gq);
null!=a.F&&(a.F.stop(),a.F=null)},iT=function(a){null!=a.ua&&Td(a.ua)},jT=function(a){J.call(this);
this.sessionId=a||Xa();this.A=[]},kT=function(a,b,c,d,e){jc.call(this,a);
this.zc=b;this.Fd=c;this.$o=d;this.B=e},lT=function(a,b){jT.call(this,b);
this.B=a;this.Mc=null;this.C=new sm(this);this.logger=null;this.C.R(Tg(),"message",this.receive)},mT=function(a){if(null==a||!w(a)||!ta(a,"ima://"))return null;
a=a.substr(6);try{return be(a)}catch(b){return null}},Oca=function(a,b,c,d){var e={};
e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.sessionId;e.channel=a.B;return"ima://"+ee(e)},nT=function(a,b){if(null==b)return!1;
var c=b.channel;if(null==c||c!=a.B)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0},oT=function(a,b){J.call(this);
this.C=a;this.B=b;this.o={};this.A=new sm(this);this.A.R(Tg(),"message",this.D)},qT=function(a,b,c,d){a.o.hasOwnProperty(b)||(c=new lT(b,c),a.A.R(c,a.C,function(a){a=new pT(a.type,a.zc,a.Fd,a.$o,a.getOrigin(),b);
this.$(a)}),c.Mc=d,c.connect(),a.o[b]=c)},pT=function(a,b,c,d,e,h){kT.call(this,a,b,c,d,e);
this.o=h},sT=function(){var a=r("google.ima.gptProxyInstance",Tg());
if(null!=a)return a;sm.call(this);this.B=new oT("gpt",!0);H(this,this.B);this.R(this.B,"gpt",this.F);this.o=null;rT()||Tg().top===Tg()||(this.o=new oT("gpt",!1),H(this,this.o),this.R(this.o,"gpt",this.D))},rT=function(){return!!r("googletag.cmd",Tg())},tT=function(){var a=r("googletag.console",Tg());
return null!=a?a:null},uT=function(a,b,c,d,e,h,k,l,m,n,t,u,x){this.C=a;
this.D=n;this.F=b;this.G=d;this.H=l;this.J=u;this.K=e;this.M=h;this.L=x;this.o=k;this.A=m;this.B=t},Pca=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();
if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,m,n,t,u){if("%"==n)return"%";var x=c.shift();if("undefined"==typeof x)throw Error("[goog.string.format] Not enough arguments");arguments[0]=x;return vT[n].apply(null,arguments)})},wT=function(a,b){J.call(this);
this.C=new sm(this);this.H=!1;this.J=Xa();this.F=new Ie;var c=this.J,d=("https:"==window.document.location.protocol?"https:":"http:")+Pca("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var h=window;try{do{try{if(0==h.location.href.indexOf(d)||0==h.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}h=h.parent}while(h!=h.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=O("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});xm(this.C,c,"load",this.cx);
a.appendChild(c);this.A=c;c=this.F.get("*");null==c&&(c=new lT(this.J,"*"),this.H&&(c.Mc=lh(this.A),c.connect()),this.F.set("*",c));this.D=c;this.G=b;this.o=this.G.F;this.B=null;this.C.R(this.D,"mouse",this.zx);this.C.R(this.D,"touch",this.Ox);null!=this.o&&(this.C.R(this.D,"displayContainer",this.wx),this.C.R(this.D,"videoDisplay",this.Lx),this.C.R(this.o,Vb(Qca),this.FC));c=Tg();d=r("google.ima.gptProxyInstance",c);null==d&&(d=new sT,q("google.ima.gptProxyInstance",d,c))},xT=function(a,b){var c=
Sq(a.A),d=fi(b,function(a){return window.document.createTouch(window,this.A,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,d)},yT=function(a,b,c,d,e){if(!(e||null!=a&&kh(Hg(a),a)))throw EO(bT,null,"containerElement","element");
this.B=a;var h=e=null!=b||null!=d,k=!1;fO.o||(fO.o||MO()||SF&&(!SF||!PO(SO,4))||RO())&&e||(JO()||RO()||(k=!0),h=!1);this.D=h;this.H=k||h&&null!=d;fO.o?a=null:(e=O("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.A=a;this.o=this.D||!this.A||fO.o||!JO()?null:new cT(this.A,null,!0);a=null;this.D?b?a=new hS(b):d&&(a=new fT(d)):this.o&&(a=new hS(this.o.A));this.C=(this.F=a)?c||null:null;this.J=null!=this.C;UO.getInstance().o(8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});
null===this.A?(b=this.B,fO.B=b):this.D&&b&&!ha(b.getBoundingClientRect)&&(b=this.B,fO.B=b);this.G=null==this.A||fO.o?null:new wT(this.A,this)},zT=function(a){return a.J&&a.C?a.C:null!=a.o?a.o.B:null},BT=function(a,b){var c=[],d="",e="";
if(null!=b){for(var d=b,e=[],h=0;d&&25>h;++h){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,n=0;n<l.length;++n){var t=l[n];if(t.nodeName&&t.nodeName.toString().toLowerCase()===k){if(d===t){k="."+m;break a}++m}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)&&(e.defaultView||e.parentWindow)||null;h=[];if(e)try{var u=e.parent;for(k=0;u&&u!==e&&25>
k;++k){for(var x=u.frames,l=0;l<x.length;++l)if(e===x[l]){h.push(l);break}e=u;u=e.parent}}catch(B){}e=h.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<AT.length-1;++u)c.push(jf(a,AT[u])||"");u=jf(a,"videoad_start_delay");x="";u&&(u=(0,window.parseInt)(u,10),x=0>u?"postroll":0==u?"preroll":"midroll");c.push(x)}else for(u=0;u<AT.length;++u)c.push("");c=c.join(":");u=c.length;if(0==u)c=0;else{x=305419896;for(d=0;d<u;d++)x^=(x<<5)+(x>>2)+c.charCodeAt(d)&4294967295;c=0<x?x:4294967296+x}return c.toString()},
CT=function(){J.call(this);
this.currentTime=0},DT=function(a){CT.call(this);
this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw EO(bT,null,"content","currentTime");this.A=a;this.o=new Pd(250);this.B=new sm(this);um(this.B,this.o,"tick",this.C,this)},ET=function(){this.reset()},FT=function(){this.A=this.o=null},HT=function(){this.o=GT();
this.J=-1;this.M=this.P=this.D=this.H=this.F=null;this.C=GT();this.B=null;this.U=this.K=this.L="";this.G=this.O=this.Y=this.A=null},GT=function(){return Math.floor(4503599627370496*Math.random())},IT=function(a){if(fO.o){var b;
return"h.3.0.0"}b="h."+a.U;null!=a.A&&(b+="/n."+a.A,null!=a.F&&(b+="/"+a.F));return b},KT=function(a,b){J.call(this);
this.o=a;this.F=!!b;this.B=JT(this);if(!this.B){var c=Rg&&!vc("7")?"readystatechange":"load";this.A=Nc(this.o,c,this.D,!1,this);this.C=window.setInterval(y(this.D,this),100)}},LT=function(a){a.C&&(window.clearInterval(a.C),a.C=null)},JT=function(a){var b=!1;
try{if(a.F||!Rg||vc("11"))var c=a.o,d=(c.contentDocument||c.contentWindow.document).body,b=a.F?!!d&&!!d.firstChild:!!d;else b="complete"==a.o.readyState}catch(e){}return b},MT=function(){J.call(this);
this.C=!1;this.impressionUrls=[]},NT=function(a,b,c){jc.call(this,a);
this.B=b||null;this.o=c||null},OT=function(a,b){this.G=a;
this.F=fi(b,function(a){return a.clone()});
this.D="";this.A=this.B=0;this.o=!0;this.C=[]},PT=function(a){a.D="";
a.B=0;a.A=0;a.o=!0;a.C=[]},QT=function(){MT.call(this);
this.H=[];this.D=!1;this.B="not_loaded";this.A=null;this.F=0;this.o=null;this.J=new Gg},RT=function(a){var b=["googletag",
"googletag.cmd"];return eb(a,function(a){return Re(b,function(b){return null!==r(b,a)})})||null},ST=function(a){return a.C?fi(a.H,function(a){return a.clone()}):[]},Rca=function(a){a=ST(a);
return null!=a?fi(a,function(a){return a.F}):void 0},UT=function(a,b,c){var d=0,e=0;
null!=b&&(b=new N(b.o),d=Number(b.o.get("pod")||0),e=Number(b.o.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(TT.o,d,e,c)}catch(h){}},Sca=function(a,b){var c=VT(a);
if(null!==c){UT(c,b,!0);try{c.refreshAllSlots()}catch(d){}}},WT=function(a,b){a.G=b;
a.setVideoContent("","");var c=VT(a);null===c||UT(c,null,!1)},VT=function(a){null==a.o&&XT(a);
return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.companionAds?a.o.googletag.companionAds():null},ZT=function(a){null==a.o&&XT(a);
return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.pubads?a.o.googletag.pubads():null},$T=function(a){a.A&&(a.A.stop(),a.A.ya("tick",a.wq,!1,a),a.A.dispose(),a.A=null)},bU=function(a){var b;
if(b=!a.D)XT(a),b=null!=a.o&&null!=a.o.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.o)a.D=!0,c=[];else{var d=a.o.googleGetCompanionAdSlots();c=fi(d,a.rD,a)}}catch(h){a.D=!0,c=[]}a.H=c;a.D=!0}if("retrieved"!=a.B&&"not_available"!=a.B&&null!==VT(a)){var e;b=VT(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{e=b.getDisplayAdsCorrelator()}catch(h){e=null}else e=null;switch(e){case "not_loaded":case "not_available":a.B=e;break;default:e=Number(e),(0,window.isNaN)(e)?a.B="not_available":(a.G=
e,a.B="retrieved")}}a.D&&"retrieved"==a.B?(a.C=!0,$T(a),a.$(new NT("companions_success"))):a.D&&"not_available"==a.B?(a.C=!0,$T(a),aU(a)):a.A||(a.F=K()+5E3,a.A=new Pd(100),a.A.R("tick",a.wq,!1,a),a.A.start())},XT=function(a){var b=uh(a.J);
try{a.o=RT([b,b.top])}catch(c){a.o=null}},aU=function(a){a.$(new NT("companion_initialization_failed",Error("Partial or full service initialization failure.")))},cU=function(a,b,c){a.$(new NT("companion_slot_init",null,b));
var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Nc(d,"click",y(a.sA,a,b),!1,a)},dU=function(a,b){jc.call(this,a);
this.o=b},eU=function(a){jc.call(this,a)},fU=function(){},hU=function(a,b){if(null==a||0>=a.width||0>=a.height)throw EO(bT,null,"ad slot size",a.toString());
this.A=a;this.o=null!=b?b:new fU;this.D=gU(Tca,this.o.B)?this.o.B:"All";this.C=gU(Uca,this.o.creativeType)?this.o.creativeType:"All";this.G=gU(Vca,this.o.C)?this.o.C:"SelectExactMatch";this.H=gU(Wca,this.o.A)?this.o.A:"DisallowResize";this.B=null!=this.o.D?this.o.D:[];this.F=ga(this.o.o)&&0<this.o.o&&100>=this.o.o?this.o.o:90},kU=function(a,b){var c=[];
F(b,function(a){!C(E(a.o.C))&&((0,window.isNaN)(a.o.o)||(0,window.isNaN)(iU(a))||iU(a)==a.o.o)&&jU(this,a)?c.push(a):(a=Xca(this,a),null!=a&&!C(E(a.o.C))&&c.push(a))},a);
return c},jU=function(a,b){var c;
if(c="Flash"!=b.getContentType()||lU){if(c="All"==a.D||a.D==b.o.ea)c=b.getContentType(),c=null!=c?"All"==a.C||a.C==c:!0;c&&(c=b.B,c=kb(a.B)?!0:null!=c?0<=ib(a.B,c):!1)}if(c){var d=b.o.hc();if("IgnoreSize"==a.G||ue(a.A,d))c=!0;else if(c="SelectNearMatch"==a.G)"ResizeSmaller"==a.H&&(d=d.width<=a.A.width&&d.height<=a.A.height?d:mU(d,a.A)),c=d.width,d=d.height,c=c>a.A.width||d>a.A.height||c<a.F/100*a.A.width||d<a.F/100*a.A.height?!1:!0}else c=!1;return c},Xca=function(a,b){var c=b.A;
return null!=c?eb(c,function(a){return jU(this,a)},a):null},mU=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);
return new te(c*a.width,c*a.height)},gU=function(a,b){return null!=b&&Tb(a,b)},nU=function(a){switch(a){case 1:return"endslate";
default:return"fullslot"}},oU=function(a){a=0>a?0:Math.round(a);
return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)},Yca=function(a){var b={};
F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Ra(d[0]),d=Ra(d[1]),0<a.length&&(b[a]=d))});
return b},qU=function(a,b){if(a[b])return pU(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return pU(a[d]);return!1},pU=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},rU=function(a){N.call(this,a);
this.G=new Ie;a=this.B;var b=a.indexOf(";"),c=null;0<=b?(qf(this,a.substring(0,b)),c=a.substring(b+1)):qf(this,a);Zca(this,c)},Zca=function(a,b){C(E(b))||F(b.split(";"),function(a){var b=a.indexOf("=");
if(0<b){var e=xa(a.substring(0,b));a=xa(a.substring(b+1));b=this.G.get(e);null!=b?jb(b,a)||b.push(a):b=[E(a)];this.G.set(e,b)}},a)},$ca=function(a){if(C(E("ord")))return null;
a=a.G.get("ord");return null!=a?a:null},sU=function(a,b,c){C(E(b))||(c=fi(c,E),a.G.set(b,c))},tU=function(a,b){var c=[E(b)];
tb(c,ada(a));return c.join(";")},ada=function(a){var b=$ca(a);
null!=b?C(E("ord"))||a.G.remove("ord"):b=[E(K())];var c=[];F(a.G.Pa(),function(a){F(this.G.get(a),function(b){tb(c,a+"="+b)})},a);
tb(c,"ord="+b[0]);sU(a,"ord",b);return c},vU=function(a){if(null==a)return!1;
a=new N(a);var b=a.B;return ua(a.A,"googleads.g.doubleclick.net")&&uU("/pagead/(live/)?ads",b)},wU=function(a){a=a.o;
return null!=a?"bid.g.doubleclick.net"==(new N(a)).A:!1},xU=function(a){if(null==a)return!1;
var b=new rU(a);a=b.A;b=tU(b,b.B);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&uU("/(ad|pfad)[x|i|j]?/",b)},yU=function(a){if(null==a)return!1;
a=new N(a);var b=a.B;return ua(a.A,"doubleclick.net")&&uU("/gampad/(live/)?ads",b)},bda=function(a){return vU(a.o)||xU(a.o)||yU(a.o)||wU(a)},cda=function(a){a=a.o;
if(null==a)return null;a=(new N(a)).o;return null!=a.get("ms")?E(a.get("ms")):null},uU=function(a,b){return C(E(b))?!1:(new RegExp(a)).test(b)},zU=function(a){return DO(dda,null,a.parentNode.nodeName,a.nodeName)},AU=function(a){return DO(eda,null,a.parentNode.nodeName,a.nodeName)},BU=function(a,b){return null!=a?Zd(eh(a),function(a){return a.nodeName==b}):[]},CU=function(a,b){var c=a.getAttribute(b);
return null!=c?c.toLowerCase():null},DU=function(a,b){if(null==a)return null;
var c="";F(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Ra(c);return b?Ja(c):c},EU=function(a,b,c,d){null!=a&&F(eh(a),function(a){if(a.nodeName==b)c.call(d,a);
else throw zU(a);})},FU=function(a){return C(E(a))?window.NaN:Ya(E(a))},GU=function(a,b){if(null!=a){var c=a.split(":");
if(3==c.length)return c=new pz(0,0,0,Ya(c[0]),Ya(c[1]),Ya(c[2])),60*(60*(24*c.o+c.A)+c.B)+c.C}return null!=b?b:-1},HU=function(a,b){if(!C(E(a)))switch(a.toLowerCase()){case "true":case "1":return!0;
case "false":case "0":return!1}return null!=b?b:!1},JU=function(a,b){if(b)return a;
var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ga(a,"/pagead/adview")?IU(a)?0:2:Ga(a,"/pagead/conversion")?IU(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+IT(TT);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c},IU=function(a){return Re(fda,function(b){var c=a||"";
return 0<=gf(c,0,b,c.search(hf))})},KU=function(a,b){this.o=a;
this.A=b},LU=function(a){return a.A?-1:a.o},MU=function(a,b){a.A&&(a.A=!1,a.o=a.o*b/100)},NU=function(){this.o=new Ie},OU=function(a,b){this.A=a;
this.B=b},PU=function(a,b){OU.call(this,"progress",a);
this.o=b},RU=function(a,b){F(b,function(a){var b=a.getType().toLowerCase(),e=QU(this,b);
e.push(a);this.o.set(b,e)},a)},SU=function(a,b,c,d){b=b.toLowerCase();
var e=QU(a,b);null!=d?(d=new PU(c,d),null!=d?e.push(d):e.push(new OU(b,c))):e.push(new OU(b,c));a.o.set(b,e)},QU=function(a,b){return null!=b?a.o.get(b.toLowerCase())||[]:[]},gda=function(a,b){var c=QU(a,"progress");
F(c,function(a){MU(a.o,b)});
Cb(c,function(a,b){return LU(a.o)-LU(b.o)})},TU=function(a,b){return fi(QU(a,b)||[],function(a){return a.getUrl()})},WU=function(a,b,c){var d=new NU;
EU(a,"Tracking",function(a){var h=CU(a,"event"),k=JU(DU(a),b);UU(k)&&null!=h&&(null!=c&&(k=c(h,k)),"progress"==h?(a=CU(a,"offset"),a=VU(a),null!=a&&SU(d,h,k,a)):SU(d,h,k))});
return d},hda=function(a){if(C(E(a)))return null;
a=new N(a);if("thismessage"!=a.C||"extensions"!=a.A)return null;a=a.B;if(!ta(a,"/"))return null;a=a.substr(1);return C(E(a))?null:a},VU=function(a){if(C(E(a)))return null;
var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new KU(a,!0))):(a=GU(a),0<=a&&(b=new KU(a,!1)));return b},UU=function(a){var b=!0;
if(C(E(a)))b=!1;else try{new N(a)}catch(c){b=!1}return b},XU=function(a,b){this.o=null!=a?a:new NU;
this.K=null!=b?b:[]},ida=function(a,b){var c=b.o;
F(c.Pa(),function(a){RU(this.o,c.get(a))},a)},YU=function(a,b){var c=TU(a.o,b);
return null!=c?c:[]},ZU=function(a,b){XU.call(this);
this.A=a;this.B=b},$U=function(){},aV=function(a,b){XU.call(this,b);
this.A=a},bV=function(a){XU.call(this);
this.A=a},cV=function(a){XU.call(this);
this.A=(0,window.isNaN)(a)?-1:a},dV=function(){this.Ka=-1;
this.F={};this.da="";this.Of=new NU},eV=function(a,b,c){a.da=b;
a.F=c},fV=function(a,b){var c=[],d=a.xi();
F(d,function(a){a=QU(a.Of,b)||[];c=rb(a,c)},a);
return c},gV=function(a,b,c){var d=c||!1;
return eb(b.D,function(a){var b=a.o==this.o;return a instanceof this.constructor&&(d||b)},a)},iV=function(a,b,c,d,e){dV.call(this);
C(E(a))&&(a=Xa()+"_ima");this.W=E(a);this.ma=b;this.ea=c;this.Y=d;this.C=e;this.K=[];null!=this.Y?this.fa=hV[this.Y]||"Other":this.fa=null},jda=function(){this.A=this.C=1;
this.o=this.B=0;this.D=1},jV=function(a,b,c,d,e,h,k,l,m,n){this.B=a;
this.o=b;this.G=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(h)?h=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(h)?e=h:!(0,window.isNaN)(e)&&(0,window.isNaN)(h)?h=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(h)&&(e=h=d);this.ce=e;this.be=h;this.F=k;this.C=l;this.D=uO(E(m));this.A=n},kV=function(a,b,c,d,e,h){dV.call(this);
this.Zf(a);this.B=b;this.A=c;this.L=sb(d);this.ka=null;this.C=e;this.Ua=sb(h);xb(this.Ua,null,function(a){return a.J})},lV=function(a){var b=new Ie,c=a.xi();
F(c,function(a){if(a instanceof kV){var c=a.A;F(c.Pa(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);
return b},mV=function(a,b){var c=eb(a.L,function(a){return!C(E(a.o))&&-1!=a.o.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c.getUrl():null},nV=function(a,b,c){G.call(this);
this.A=a;this.B=b;this.F=c;this.D=0;this.o=new sm(this);kda(this)},kda=function(a){a.F.forEach(function(a,c){this.o.R(c,"mousedown",this.G);
this.o.R(c,"mouseup",this.J)},a);
a.o.R(a.B,"mouseover",a.H)},oV=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);
else{var e="&"+b+"=",h=a.indexOf(e);0>h?c=a+e+c:(h+=e.length,e=a.indexOf("&",h),c=0<=e?a.substring(0,h)+c+a.substring(e):a.substring(0,h)+c)}return 2E3<c.length?p(void 0)?oV(a,b,void 0,d):a:c},pV=function(a,b){a[b]||(a[b]=[]);
return a[b]},qV=function(a,b){return a[b]?a[b].length:0},rV=function(a,b){if(null==a||null==b)return null==a==(null==b);
if(a.constructor!=Array&&a.constructor!=Object)throw Error("Invalid object type passed into JsProto.areObjectsEqual()");if(a===b)return!0;if(a.constructor!=b.constructor)return!1;for(var c in a)if(!(c in b&&lda(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0},lda=function(a,b){if(a===b||!(!0!==a&&1!==a||!0!==b&&1!==b)||!(!1!==a&&0!==a||!1!==b&&0!==b))return!0;
if(a instanceof Object&&b instanceof Object){if(!rV(a,b))return!1}else return!1;return!0},tV=function(){var a=window.event||sV;
if(!a)return null;var b;(b=a.which?1<<mda[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b},uV=function(a,b,c){G.call(this);
this.A=a;this.D=b;this.K=c;this.C=0;this.o={};this.B=new sm(this);H(this,this.B);nda(this)},nda=function(a){F(a.K,function(a){this.B.R(a.element,"mousedown",this.G,!0);
this.B.R(a.element,"mouseup",pa(this.J,a),!0)},a);
a.B.R(a.D,"mouseenter",a.H)},oda=function(a,b){Ob(a.o,function(a,d){b=mf(b,d,a)});
return b},vV=function(a,b,c,d,e){iV.call(this,a,b,c,d,e);
this.aa=this.A=null;this.wa=-2;this.B=null;this.Z=this.M=v;this.P=[];this.xa=[];this.D=!1},yV=function(a,b){a.B=b;
null!=a.A&&null!=b&&(wV(a,a.M),xV(a,a.Z))},wV=function(a,b){null!=a.B&&null!=a.A&&F(a.P,function(a){this.B.ya(a,"click",this.M);
!C(E(this.ed()))&&this.B.R(a,"click",b)},a);
a.M=b},xV=function(a,b){null!=a.B&&null!=a.A&&(a.B.ya(a.A,"creativeview",a.Z),a.B.R(a.A,"creativeview",b));
a.Z=b},zV=function(a,b){var c=a.W,d={};
d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");C(E(c))||(d.id=c);return O("div",d,b)},AV=function(a){if(!a.D)return null;
var b=fV(a,"start");tb(b,fV(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];F(b,function(a){if(!C(E(a))){var b;b=Jg().kx("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:pda});Iq(b,{display:"block",height:"0px",width:"0px"});var h="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",uO(a.getUrl()));b.setAttribute("id",h);this.xa.push(h);nb(c,b)}},a);
return c}return null},qda=function(a,b){var c=a.getAd().B;
if(null!=a.A)if(c&&c.Db("cleanup_text_overlay_spam_signals")){var d=[];F(a.P,function(a){d.push({element:a,yw:this.Lk(a)})},a);
new uV(b,a.A,d)}else d=new Ie,F(a.P,function(a){d.set(a,this.Lk(a))},a),new nV(b,a.A,d)},rda=function(a){var b=[],c=a.xi();
F(c,function(a){b=rb(b,a.K)},a);
return b},BV=function(a,b,c){var d=c||!1;
return eb(b.D,function(a){var b=a.o==this.o;return this instanceof a.constructor&&(d||b)},a)},DV=function(a,b,c,d,e,h,k,l,m,n,t,u,x,B,D,I){this.ea=a;
this.aa=b;this.L=c;this.Ia=d;this.wa=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.Z=l?sb(l):[];this.K=m?sb(m):[];this.D=n?sb(n):[];this.W=[];this.J=[];this.H=null;this.da=[];this.Ua=!0;this.A=this.o=null;this.G=new Ie(u);this.M=null!=I;this.Ea=(this.P=null!=x)?B||!1:!1;this.Fa=this.gz?D||!1:!1;this.Ja=E(x);this.Ma=E(I);this.Ca=this.B=null;this.C=new jda;this.Y=new te(0,0);this.Ka=String(Math.floor(1E9*Math.random()));this.O=this.U=this.F=null;this.ma=Math.random();this.ua=K();this.xa=this.ka=0;this.ia=
this.fa=!1;F(this.D,function(a){a.O=this},this);
CV(this,t)},LV=function(a){var b=a.getExtension("AdFormat");
if(null!=b)return b.A+"_"+b.B+"_"+b.C;b=EV(a);b=FV(a,GV)?"14":qU(b,"hideMaster")||qU(b,"blockAllAds")?"3":a.isLinear()?HV(a)?"2_3":null!=IV(a)?JV(a)?"2_1":"2_2":"2":"1";return KV(a)+"_"+b},KV=function(a){return MV(a)?4:FV(a,GV)?14:FV(a,sda)?15:NV(a,tda)||NV(a,OV)?1:PV(a)?2:0},QV=function(a){return null!=a.aa?a.aa:""},RV=function(a){return null!=a.A?rb(RV(a.A),a.Z):a.Z},SV=function(a){return null!=a.A?rb(SV(a.A),a.K):a.K},TV=function(a){return null!=a.A?rb(a.J,TV(a.A)):a.J},EV=function(a){return null!=
a.o?a.o.F:{}},uda=function(a){var b={};
F(a.D,function(a){a=a.F;for(var d in a)b[d]=a[d]});
return b},UV=function(a){return null!=a.o?a.o.da:""},vda=function(a){var b=[];
F(a.G.Na(),function(a){tb(b,YU(a,"companionClick"))});
return b},VV=function(a,b){a.o=b;
a.Y=null!=a.o&&a.o instanceof vV?a.o.hc():new te(0,0)},WV=function(a){return null!=a.ea?a.ea:""},YV=function(a){if(null==a.A||XV(a.A.L))return[];
var b=[WV(a.A)];tb(b,YV(a.A));return b},wda=function(a){var b=YV(a).reverse();
b.push(WV(a));return b},ZV=function(a){if(null==a.A||XV(a.A.L))return[];
var b=[QV(a.A)];tb(b,ZV(a.A));return b},$V=function(a){if(!W())return null;
if(null!=a.A){var b=$V(a.A);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.A:null},xda=function(a){var b=ZV(a).reverse();
b.push(QV(a));return b},XV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a},aW=function(a){if(null==a.A)return[a.L];
var b=aW(a.A);b.push(a.L);XV(b[0])&&b.shift();return b},bW=function(a){a=a.getExtension("waterfall");
return null!=a&&-1!=a.Kb()?a.Kb():-1},cW=function(a){if(-1!=a.wa)return a.wa;
a=a.getExtension("pod");return null!=a&&-1!=a.A?a.A:-1},dW=function(a,b,c,d){a=TV(a);
return kU(new hU(new te(b,c),d),a)},eW=function(a){var b=a.B.Gf,c=a.B.Ff;
if(!b||!c)if(a=a.B.o?jf(a.B.o,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new te(b,c)},yda=function(a){if(!a.B||fW(a)&&!FV(a,["ADSENSE/ADX"]))return[];
var b=eW(a);if(0>=b.width||0>=b.height)return[];var c=new fU;c.creativeType="All";c.B="All";c.C="SelectNearMatch";c.o=40;var d=dW(a,b.width,b.height,c);if(!kb(d))return d;c.A="ResizeSmaller";d=Zd(TV(a),function(a){return a.o.Ug()},a);
return kU(new hU(new te(b.width,b.height),c),d)},gW=function(a){return!kb(a.da)&&a.B.Db("enable_ad_video_end_renderers")},zda=function(a){var b=null,c=0;
F(yda(a),function(a){var e;e=eW(this);e=!a.o.Ug()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.o.hc():mU(a.o.hc(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b},hW=function(a,b){return b||null==a.A?a.W:rb(a.W,hW(a.A))},CV=function(a,b){a.W=b?sb(b):[];
F(a.W,function(a){tb(this.J,sb(a.o))},a);
F(a.J,function(a){iW(a,this)},a);
W()&&a.isLinear()&&(a.J=Zd(a.J,function(a){return 60>=a.getHeight()}))},jW=function(a,b){return xh(a.D,function(a){return a instanceof kV&&"linear"==b||a instanceof vV&&"nonlinear"==b?!0:!1})},lW=function(a){return-1!=kW(a)&&0!=kW(a)&&7>=kW(a)},mW=function(a){var b=a.o;
return fW(a)&&null!=b&&b instanceof vV&&(90<a.Y.height||null!=a.B&&a.B.xf)},nW=function(a,b){if(null==b)return null;
var c=b.getExtension("adx");return null!=c?c:nW(a,b.A)},IV=function(a){var b=nW(a,a.A);
if(null!=b){if("skippable"==b.A)return b.B;if("nonskippable"==b.A)return null}var b=null,c=new KU(5,!1),d=Ada(a);"implicit"==d&&(b=c);var e=a.o;null==b&&null!=e&&e instanceof kV&&(b=e.C);null!=b||"explicit"!=d||(b=c);if(W()&&a.isLinear()){if(null!=b)return a.B.Db("enable_probabilistic_show_skip_as_nonskip")&&!HV(a)&&fW(a)&&33>=oW(a)&&a.B.Cf("probability_to_change_skip")>a.ma?null:(0,window.isNaN)(a.B.F)?c:new KU(a.B.F,!1);if(a.B.Db("enable_probabilistic_show_nonskip_as_skip")&&!HV(a)&&fW(a)&&a.B.Cf("probability_to_change_skip")>
a.ma)return c}return b},Ada=function(a){if(null!=eb(a.G.Na(),function(a){return!kb(YU(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof aV)switch(b.A){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.o;return W()&&null!=a&&(a=a.Of,null!=a&&!kb(QU(a,"skip")))?"explicit":"none"},pW=function(a){if(null==a.B)return!1;
var b=a.B.o;null!=b&&ua(b,"/PrefetchedAd")&&null!=a.A&&(b=a.A.G.get("LocalRedirect"),b=null!=b?b.yd():null);(a=vU(b)||yU(b)||xU(b))||(null!=b?(b=(new N(b)).A,a=ua(b,"viral.adsense.net")):a=!1);return a},JV=function(a){if(null==a.aa||null==a.B)return!1;
var b;(b=pW(a)||!1)&&!(b=fW(a)&&!FV(a,["ADSENSE/ADX"]))&&(FV(a,OV)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.A:!1):b=!1);if(b||a.A&&a.A.M&&pW(a.A))return!0;a=NV(a,["ADSENSE/ADX"])||a.A&&PV(a);return W()&&!a},qW=function(a){return null===a.o?null:a.o.ed()},oW=function(a){return null!=a.o?a.o.Ka:-1},rW=function(a){return null!==a.H?10:gW(a)?(a=a.B.Cf("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0},kW=function(a){return oW(a)+rW(a)},sW=function(a){return null===
a.o?null:a.o.zl()},fW=function(a){return FV(a,tW)},MV=function(a){return null!=a.A&&MV(a.A)||FV(a,Bda)},HV=function(a){var b=sW(a);
return FV(a,["402"])||w(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")},uW=function(a){return fW(a)&&JV(a)&&!lW(a)&&!C(E(a.F))&&null!==IV(a)&&0<LU(IV(a))},PV=function(a){return NV(a,tW)||NV(a,["402"])},vW=function(a){a=a.getExtension("InfoCards");
return null!=a?a.A:null},wW=function(a){a=a.getExtension("InfoCardsTracking");
return null!=a?a.A:null},FV=function(a,b){return null!=a.aa?jb(b,a.L):!1},NV=function(a,b){for(var c=aW(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(jb(b,c[d]))return!0;
break}return!1},xW=function(){J.call(this);
this.B=[]},yW=function(){return new DV("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Ie)},zW=function(a){xW.call(this);
this.o=a;this.G=null;this.H=!1;this.C=null;this.D=new sm;um(this.D,this.o,["companions_success","companion_initialization_failed"],this.cC,this);um(this.D,this.o,"companion_display_error",this.uA,this);um(this.D,this.o,["companion_slot_init","companion_click"],this.qA,this);this.o.C?this.H=!0:this.o.initialize()},DW=function(a,b){Mb(a.A);
a.A=new J;a.C=b;a.F=!0;a.H?AW(a):(a.F=BW(CW(b),[]),a.F||(a.C=null,a.A=null));return a.A},AW=function(a){var b=a.C;
a.C=null;if(null!=a.o)if(kb(a.B))EW(a,Error("Companion slots not available."));else if(null!=b){var c=Cda(a,b),d=a.o;try{d.o.googleSetCompanionAdContents(fi(a.B,d.hw,d)),d.sendImpressionUrls()}catch(h){d.$(new NT("companion_display_error",h))}if(0<c.length&&b.Ua){a=a.o;if(d=0!=c.length)d=aW(b),d=XV(d[0])&&1<d.length?d[1]:d[0],d="GDFP"==d;if(d){for(var d=[],e=0;e<c.length;e++)d.push(c[e].G);b=b.B;c=VT(a);if(null!==c){UT(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(h){}}}}}else EW(a,Error("Invalid master ad."))},
EW=function(a,b){a.$(new dU("companion_display_error",b))},Dda=function(a){nO(lO(),9419278)&&AO(a)},Cda=function(a,b){var c=[],d=[];
F(a.B,function(a){PT(a);xh(a.F,function(d){a:{d=dW(b,d.width,d.height);if(!kb(d)&&(d=Eda(d,c),null!=d)){var e=d.B;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}e=d.o.K;nO(lO(),9419278)&&tb(e,vda(b));c.push(d);var m=d.getContent(),n=d.getWidth(),t=d.getHeight();d="IFrame"!=d.o.ea;a.D=m;a.B=n;a.A=t;a.o=d;a.C=e||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);
var e=CW(b);a.F=BW(e,c);a.F||F(a.B,function(a){PT(a)},a);
return d},BW=function(a,b){if(null==a)return!0;
var c=a.o;return"all"==a.A?Fda(c,b):"any"==a.A?Gda(c,b):!0},CW=function(a){return null==a||null==a.o||(0,window.isNaN)(a.o.o)?null:eb(hW(a,!0),function(a){a=a.o;
return kb(a)?!1:(0,window.isNaN)(a[0].o.o)?!1:a[0].o.o==iU(a[0])})},Fda=function(a,b){return Re(a,function(a){return jb(b,a)})},Gda=function(a,b){return xh(a,function(a){return jb(b,a)})},Eda=function(a,b){return eb(a,function(a){return!jb(b,a)})},FW=function(a){this.o=a},GW=function(a,b){jc.call(this,"adsManagerLoaded");
this.o=a;this.B=b},HW=function(a,b,c,d){a.o.Wc(new FW(b),c,d);
return a.o},IW=function(a){jc.call(this,a);
this.D=[];this.C={};this.o=null;this.B=!0},JW=function(){this.B=new Ie;
this.A=!W()&&.01>Math.random();this.C=0;this.o="0";this.D=""},Hda=function(){var a=JW.getInstance();
a.sendMessage("ff",a.C);a.C=0},KW=function(a,b,c,d){d=d||{};
var e=new N("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+Ida());d.cid=Jda(a);d.utv=b;d.utt=c;d.cd6=IT(TT);b=pO(lO());C(E(b))||(d.xid=b);Ob(d,function(a,b){xf(e,b,a)},a);
return e.toString()},Lda=function(a,b){if(null!=b){var c=xa(b),d=Kda.exec(c),c=E((new N(c)).o.get("client"));
a.o=d&&2==d.length?d[1]:C(c)?"0":c}else a.o="0"},Ida=function(){var a=TT.A,b="html5";
null!=a&&(Ma(a,"android")?b="android":Ma(a,"ios")&&(b="ios"));return b},Jda=function(a){C(a.D)&&(a.D="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;
return("x"==a?c:c&3|8).toString(16)}));
return a.D},LW=function(a,b,c){this.F=b;
this.C=c;this.D=null;this.A=new sm(this);this.K=a;this.B=this.o=null;this.H=!1},Mda=function(a){if(null===a.D)MW(a);
else{var b=new N(a.D.o),c=E(b.o.get("vid")),b=E(b.o.get("cmsid")),d=a.C.L,e=a.C.K;a.C.L=c;a.C.K=b;if(C(E(c))||C(E(b)))MW(a);else if(c==d&&b==e)MW(a);else{var h=a.F.Oe();h.setVideoContent(c,b);Sca(h,a.D);a.B=new Pd(100);um(a.A,a.B,"tick",function(){var a;a:{var b=ZT(h);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&MW(this)},a);
a.B.start()}}},Nda=function(a){a.o=new Pd;
ym(a.A,a.o,"tick",function(){MW(this)},a);
Qd(a.o,a.K);a.o.start()},MW=function(a){null!=a.A&&(a.A.dispose(),a.A=null);
null!=a.o&&(a.o.stop(),a.o=null);null!=a.B&&(a.B.stop(),a.B=null);a.H=!0;null===a.G||a.G()},NW=function(){J.call(this);
this.o=new Ie;this.A=null;this.K=new sm(this);H(this,this.K);this.G="";this.C=this.L=this.F=this.B=null;this.J=-1},PW=function(){null!=OW||(OW=new NW);
return OW},QW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;PW().$(new aO("measurable_impression",null,c))},RW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;PW().$(new aO("viewable_impression",null,c))},SW=function(a,b,c){var d={};
d.queryId=a;d.viewabilityString=b;d.eventName=c;PW().$(new aO("externalActivityEvent",null,d))},Oda=function(a,b){a.B=b},Pda=function(a,b){if(a.A)if(a.C){var c=K()-a.J;
b(a.C+"_ct"+c)}else{var c=200,d=lO();nO(d,31061771)?c=300:nO(d,31061772)?c=400:nO(d,31061773)&&(c=500);var e=a.o,c=window.setTimeout(function(){b("timeout");F(e.Pa(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.o.set(c,b);d={};a.D&&(d.isFullscreen=a.D.Zd());d.osdId=a.G;d.eventId=c;UO.getInstance().A&&(a.H=K(),d.loggingId=Math.random(),UO.getInstance().o(43,{step:"sendingMessage",logid:d.loggingId,time:a.H}));a.A.send("activityMonitor","fetchAdTagUrl",d)}else b("")},Qda=function(a){return ha(a.getBoundingClientRect)&&kh(Hg(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},Rda=function(a,b,c,d){if(a.A){var e={};
e.queryId=c;e.vastEvent=b;a.G&&(e.osdId=a.G);a.D&&(e.isFullscreen=a.D.Zd());e.isOverlay=null!=a.B;a.B&&(e.overlayBounds=Qda(a.B));if(nO(lO(),41351021)){var h={};h.opt_fullscreen=e.isFullscreen;e.isOverlay&&(h.opt_bounds=e.overlayBounds);d(OR(b,c,h))}else{var k=a.o;b=window.setTimeout(function(){d({viewability:"timeout"});F(k.Pa(),function(a){k.get(a)===d&&k.remove(a)})},200);
a.o.set(b,d);e.eventId=b}a.A.send("activityMonitor","reportVastEvent",e)}else d({})},TW=function(){},UW=function(a,b,c){this.A=a;
this.o=c;this.B=b},Sda=function(a){this.B=a},VW=function(a){this.B=a;
this.A=this.o=!1},Tda=function(a,b,c){this.o=a;
this.A=b;this.B=c},WW=function(){this.o=new Ie},XW=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");
var d=[];Ke(a.o,c)&&(d=a.o.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});
a.o.set(c,d)},YW=function(a,b){this.o=a;
this.A=b},Vda=function(a){var b=new WW;
F(eh(gh(a.o)),function(a){switch(a.nodeName){case "Preroll":a=ZW(this,a);XW(b,a,0);break;case "Midroll":var d=CU(a,"timeOffset"),e=GU(d);if(-1==e)throw DO($W,null,"timeOffset",E(d));a=ZW(this,a);XW(b,a,e);break;case "Postroll":a=ZW(this,a);XW(b,a,-1);break;default:throw DO(aX,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.o.Pa().length)throw DO(Uda);return b},ZW=function(a,b){var c=[];
F(eh(b),function(a){switch(a.nodeName){case "Ad":var b=E(DU(a));if(!C(b)){a=CU(a,"bumper");var h=this.A.clone();h.o=b;b=new VW(h);b.o=null!=a;b.A="always"==a;nb(c,b)}break;default:throw DO(aX,null,a.parentNode.nodeName,a.nodeName);}},a);
return c},bX=function(a,b,c){XU.call(this);
this.A=a;this.B=b;this.C=c},cX=function(){},dX=function(){this.C=null;
this.D="http://www.google.com/adsense/support";this.F=0;this.o=15;this.B=5;this.A=3},Wda=function(a,b){a.o=b},eX=function(a,b,c,d,e,h,k,l,m,n,t){XU.call(this,n,t);
this.D=a;this.F=b;this.B=c;this.G=m;this.H=k;this.C=h;this.A=e},fX=function(){},Yda=function(a,b){var c;
F(eh(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new dX:null;break;case "params":null!=c&&Xda(this,c,a)}},a);
return c},Xda=function(a,b,c){F(eh(c),function(a){var c=a.attributes[0].value;
switch(a.nodeName){case "attribution_url":b.D=c;break;case "attribution_text":b.C=c;break;case "signals":b.F=(0,window.parseInt)(c,10)}},a)},gX=function(){},hX=function(){},iX=function(){},jX=function(){},pX=function(a,b,c){var d={};
a=new kX(a,p(b)?b:null,p(c)?c:null);lX(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;mX(d);nX(d,a);oX(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=ib(Zda,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d},qX=function(a,b){var c={},d=new kX(null,a,p(b)?b:null);
lX(c,d);mX(c);nX(c,d);oX(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.o){var e=d.o.B,h=null!=e&&null!=e.Cb&&null!=e.Cb.GET_MIDROLL_POSITION_IN_SEC?e.Cb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.Ge&&null!=e.Ge.video_start_delay?(e=e.Ge.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=h&&h(e)?h(e):e)):(e=d.o.C,c.BREAK_TYPE=0==e.B?"1":-1==e.B?"3":"2",c.SLOT_POS=e.A-1,e=Math.round(e.o),0<e&&(c.MIDROLL_POS=h&&h(e)?h(e):e))}$da(c,
d);aea(c,d);d=a.ua;for(h=a;null!=h;)d=h.ka+","+d,h=h.A;c.RWT=d;return c},kX=function(a,b,c){this.error=a;
this.o=b;this.display=c},bea=function(){var a=hca();
if(null!=a)return a.moatInit},rX=function(a,b,c,d){W()&&cea(c,b)?(d=d(),null!=d&&(a[c]=d,zO.Hp(b)&&(a[c]=(0,window.encodeURIComponent)(a[c])))):a[c]=""},cea=function(a,b){return xh(dea[a],function(a){return null!=b.match(a)})},lX=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.display?b.display.getVideoUrl():""}}},aea=function(a,b){a.AD_CPN={toString:function(){return b.display.yf()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};
a.MT={toString:function(){if(b.o.isLinear()){var a=b.o.C;return 0<a.o?Math.round(1E3*a.o).toString():"0"}return b.display?Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString():"0"}};
a.P_W={toString:function(){return null!=b.display&&null!=b.display.bd()?b.display.bd().width.toString():""}};
a.P_H={toString:function(){return null!=b.display&&null!=b.display.bd()?b.display.bd().height.toString():""}}},mX=function(a){a.SDKV=IT(TT);
a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}},nX=function(a,b){if(null!=b.o&&null!=b.o.B&&null!=b.o.B.Cb&&W()){var c=b.o.B.Cb;
F(eea,function(b){b in c&&(a[b]=c[b])})}},oX=function(a,b){if(null!=b.o){a.AD_ID=wda(b.o);
a.AD_SYS=xda(b.o);var c=$V(b.o);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=dS(b.display.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=LV(b.o).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}},$da=function(a,b){null!=b.o&&(a.AD_LEN={toString:function(){var a=kW(b.o);
return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.If()?"0":Math.round(100*b.display.Ed()).toString():""}})},sX=function(a){this.o=a||{}},tX=function(a){this.o=a||{}},uX=function(a){this.o=a||{}},vX=function(a){this.o=a||{}},wX=function(a){this.o=a||{}},xX=function(a){this.o=a||{}},yX=function(a){this.o=a||{}},zX=function(a){this.o=a||{}},AX=function(a){this.o=a||{}},BX=function(a){this.o=a||{}},CX=function(a){this.o=a||{}},DX=function(a){this.o=
a||{}},EX=function(a){this.o=a||{}},FX=function(a,b){return new tX(pV(a.o,"card")[b])},HX=function(a){return(a=a.o.placement)?new vX(a):GX},IX=function(a){a=a.o.show_in_endcap;
return null!=a?a:!1},MX=function(){if(!JX){var a={};
JX={Qb:a};a.type={type:"e",label:1,oa:0};a.id={type:"s",label:1,oa:""};a.link_url={type:"s",label:1,oa:""};a.title={type:"s",label:1,oa:""};a.image={type:"m",label:1,oa:fea,ra:KX()};a.event={type:"m",label:3,ra:LX()};a.target={type:"s",label:1,oa:""}}return JX},LX=function(){if(!NX){var a={};
NX={Qb:a};a.type={type:"e",label:1,oa:0};a.base_url={type:"s",label:1,oa:""}}return NX},KX=function(){if(!OX){var a={};
OX={Qb:a};a.image_url={type:"s",label:1,oa:""};a.thumbnail_url={type:"s",label:1,oa:""};a.image_height={type:"i",label:1,oa:0};a.image_width={type:"i",label:1,oa:0}}return OX},PX=function(a,b,c){XU.call(this,c);
this.A=a;this.B=b||null},QX=function(a){this.o=a},SX=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var h=b.attributes[e],k=c.Qb[h.nodeName];
if(k)switch(k.type){case "b":d[h.nodeName]="false"!=h.nodeValue;break;case "d":case "f":d[h.nodeName]=(0,window.parseFloat)(h.nodeValue);break;case "e":d[h.nodeName]=RX[b.nodeName][h.nodeName][h.nodeValue];break;case "i":d[h.nodeName]=(0,window.parseInt)(h.nodeValue,10);break;default:d[h.nodeName]=h.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(h=b.childNodes[e],h.nodeType==window.Node.ELEMENT_NODE){var k=c.Qb[h.nodeName],l=SX(a,h,k.ra);3==k.label?(d[h.nodeName]||(d[h.nodeName]=[]),d[h.nodeName].push(l)):
d[h.nodeName]=l}return d},gea=function(a,b){var c=new NU;
F(eh(b),function(a){"CustomTracking"==a.nodeName&&null!=eh(a)&&(c=WU(a,!1,y(function(a,b){return TX(a,b)},this)))},a);
return c},TX=function(a,b){return bO(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";
default:return""}}}})},UX=function(a,b){XU.call(this);
this.B=a;this.A=E(b)},VX=function(a,b){this.logger=null;
this.B=b;this.o={};this.A=[];this.o.CustomTracking=WU;this.o.UI=this.D},WX=function(a,b){if(null==b)return null;
var c={};F(eh(b),function(a){c[a.nodeName]=null!=this.o[a.nodeName]?this.o[a.nodeName].call(this,a):null},a);
return null==c.UI?null:c},XX=function(a,b,c,d,e,h){XU.call(this,h);
this.B=a;this.D=b;this.F=c;this.C=d;this.A=e},YX=function(a){return null!=a.A?a.A.length:0},ZX=function(){VX.call(this,0,"mute_");
this.o.SurveyOptions=this.C},$X=function(a,b,c,d){XU.call(this);
this.C=a;this.B=b;this.D=c;this.A=d},aY=function(){},bY=function(){XU.call(this)},cY=function(){},hea=function(a,b){F(eh(b),function(a){a.nodeName==this.o.Uv&&DU(a)},a)},dY=function(a,b,c,d){XU.call(this);
this.B=a;this.C=b;this.D=c;this.A=d},eY=function(){},fY=function(a){XU.call(this);
this.A=a},gY=function(){},hY=function(a,b,c,d,e,h,k,l,m){XU.call(this,e);
this.C=a;this.D=b;this.F=c;this.B=d;this.A=h||null;this.J=k||null;this.H=l||null;this.G=m||null},iY=function(){VX.call(this,0,"why_this_ad_");
this.A.push("targeting_reason")},jY=function(a,b){return null!=a?Re(b,function(b){return b in a}):!1},iea=function(a,b){return null!=a?xh(b,function(b){return b in a}):!1},kY=function(){},lY=function(){XU.call(this)},mY=function(){},nY=function(){},jea=function(a,b){this.o=a;
this.A=b},oY=function(a,b,c){this.o=a;
this.A=b;this.B=c},iU=function(a){a=a.o.getAd().o;
return null!=a?a.o:window.NaN},iW=function(a,b){a.o.O=b;
F(a.A,function(a){iW(a,b)},a)},kea=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Ib?'<a class="text-image-link" target="_blank" href="'+Y(a.Ib)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Ib?'<a class="text-title" href="'+Y(a.Ib)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":
"")+'<div class="text-description" dir='+Y(a.dir)+">"+Y(a.text)+"</div>"+(a.Hr&&a.Ib?'<a target="_blank" href="'+Y(a.Ib)+'" class="text-ad-channel">'+Y(a.Hr)+"</a>":"")+"</div></div>"},lea=function(a){return'<div class="flash-container '+(a.tf?"click-capture":"")+'">'+(a.Ib?'<a class="click-layer" target="_blank" href="'+Y(a.Ib)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+
Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+PS(a.Ib)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+PS(a.Ib)+'"></object></div>'},
mea=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Ib?'<a target="_blank" href="'+Y(a.Ib)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'},nea=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Ib?'<a target="_blank" href="'+Y(a.Ib)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'},pY=function(a){return'<div class="image-container" id="'+
Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';"></div>'},qY=function(a,b,c,d){vV.call(this,a,b,"Static",c,d);
this.ko=!1},rY=function(a,b,c,d){vV.call(this,a,b,"Html",c,d)},sY=function(a,b,c,d){vV.call(this,a,b,"Static",c,d)},tY=function(a,b){vV.call(this,a,b,"Static","text","")},uY=function(a,b,c,d,e){vV.call(this,a,b,c,d,e)},wY=function(a,b,c){if(kb(c))return new vV(a,b,"",null,"");
var d=vY(c);c=d.A;var e=d.o,d=d.B;switch(c){case "Html":return new rY(a,b,e,d);case "Static":switch(hV[e]){case "Image":return new sY(a,b,e,d);case "Flash":return new qY(a,b,e,d);case "Text":return new tY(a,b)}}return new uY(a,b,c,e,d)},vY=function(a){var b=eb(a,function(a){return"Static"==a.A&&"Flash"==hV[a.o]}),c=eb(a,function(a){return"IFrame"==a.A}),d=eb(a,function(a){return"Html"==a.A}),e=eb(a,function(a){return"Static"==a.A&&"Image"==hV[a.o]}),h=eb(a,function(a){return"Static"==a.A&&"Text"==
hV[a.o]});
return lU&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=h?h:a[0]},oea=function(a,b,c,d,e,h){var k=vY(h),l=wY(a.id,a.size,[k]);
l.D=!0;l.J=a.apiFramework;l.U=b;l.K=c;l.o=d;e&&(l.Of=e);pb(h,k);var m=[];F(h,function(h){h=wY(a.id,a.size,[h]);h.D=!0;h.J=a.apiFramework;h.U=b;h.K=c;h.o=d;e&&(h.Of=e);m.push(new oY(h,[],a.adSlotId))});
return new oY(l,m,a.adSlotId)},xY=function(a,b,c){this.A=a;
this.o=b;this.B=c},yY=function(a,b,c,d,e,h,k){this.B=a;
this.J=b;this.D=c;this.F=d;this.A=e;this.G=h;this.H=k;this.o=this.B.Le()},pea=function(a){er(a.o)||(dr(a.o,!0),F(a.H,function(a){wO(a)}))},qea=function(a,b,c,d,e,h,k,l,m,n){b=wY("icon"+a,b,n);
b.J=k;b.U=l.iconClickThrough;return new yY(b,a,c,d,e,h,m)},zY=function(a){this.C=a;
this.logger=null},AY=function(a){if(null==a)return!1;
a=gh(a);return null!=a&&"VAST"==a.nodeName},CY=function(a,b){var c=[],d=null;
try{var e=Yz(a),h=gh(e);null!=h&&"CompanionAds"==h.nodeName&&(d=BY(zY.prototype,h,b))}catch(k){}null!=d&&c.push(d);return c},DY=function(a){if(null==a)return 0;
a=(0,window.parseInt)(a.getAttribute("version"),10);return ga(a)&&!(0,window.isNaN)(a)?a:0},sea=function(a){var b=[],c=gh(a.C),d=DY(c);
EU(c,a.o.iu,function(a){var c;c=EY(a);if(null==c)throw zU(a);var k=a.getAttribute(this.A.Lh);a=Number(a.getAttribute(this.A.Kn));c=rea(this,c,k||null,a||0);null!=c&&(c.xa=d,b.push(c))},a);
return b},EY=function(a){var b=null;
F(eh(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw zU(a);}});
return b},rea=function(a,b,c,d){var e,h,k=[],l=[],m=[],n=[],t=new Ie,u,x=b.nodeName==a.o.$v,B=x,D=x,I;
F(eh(b),function(a){switch(a.nodeName){case this.o.Wv:if(x){if(null!=u)throw AU(a);u=DU(a);I=hda(u);B=HU(b.getAttribute(this.A.nu),B);D=HU(b.getAttribute(this.A.Vu),D)}else throw zU(a);break;case this.o.ku:e=DU(a);break;case this.o.lu:h=DU(a);break;case this.o.Ju:DU(a);break;case this.o.Sv:DU(a);break;case this.o.Nh:a=DU(a);UU(a)&&k.push(JU(a));break;case this.o.ERROR:a=DU(a);l.push(JU(a));break;case this.o.Cu:a=tea(this,a);m=a.creatives;n=a.Cw;break;case this.o.Su:t=uea(this,a,I)}},a);
return new DV(E(c),e,vea(e),h,0,0,d,l,k,m,n,t,u,B,D,wea(t))},wea=function(a){var b=null;
a=a.get("AdSense");null!=a&&(a=YU(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b},vea=function(a){if(C(E(a)))return"UNKNOWN";
a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "SHOPPING":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:SHOPPING":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}},xea=function(a){if(C(E(a)))return"none";
switch(a){case "all":case "any":case "none":return a;default:return"none"}},uea=function(a,b,c){var d=new Ie;
try{var e=BU(b,a.o.Ru);F(e,function(a){var b=a.getAttribute(this.A.TYPE);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new mY).parse(a);break;case "pod":a=(new kY).parse(a);break;case "waterfall":a=(new nY).parse(a);break;case "dart":a=(new hX).parse(a);break;case "dfp":b="DFP";a=(new iX).parse(a);break;case "adsense":b="AdSense";a=(new gX).parse(a);break;case "textad":b="TextAd";a=(new eY).parse(a);break;case "templatead":b="TemplateAd";a=(new cY).parse(a);break;case "infocards":var b="InfoCards",
e=new QX(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new QX(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=BU(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+Zz(gh(m[0])));a=BU(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new UX(e,m)}else a=null;break;case "viral":b="viral";a=(new gY).parse(a);break;case "adx":b="adx";a=(new $U).parse(a);break;case "why_this_ad":b="why_this_ad";a=(new iY).parse(a);
break;case "mute":b="mute";a=(new ZX).parse(a);break;case "sodar":a=(new aY).parse(a);break;case "adformat":b="AdFormat";a=(new cX).parse(a);break;default:e=new jX,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(ida(e,a.o),d.set(b,e)):d.set(b,a))},a)}catch(h){if(!ha(h.getErrorCode)||1105==h.getErrorCode())throw h;
}return d},tea=function(a,b){var c=[],d=[];
EU(b,a.o.Bu,function(a){var b=a.getAttribute(this.A.Kn),k;C(E(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.A.Lh),m=!1;F(eh(a),function(a){switch(a.nodeName){case this.o.LINEAR:if(m)throw AU(a);a=yea(this,a,(0,window.isNaN)(k)?0:k,l||null);tb(c,a);m=!0;break;case this.o.xu:if(m)throw AU(a);a=BY(this,a,(0,window.isNaN)(k)?void 0:k);tb(d,a);m=!0;break;case this.o.xv:if(m)throw AU(a);a=zea(this,a,(0,window.isNaN)(k)?0:k,l||null);tb(c,a);m=!0}},this)},a);
return{creatives:c,Cw:d}},zea=function(a,b,c,d){var e=[],h=new NU;
F(eh(b),function(a){switch(a.nodeName){case this.o.wv:a=Aea(this,a,c,d);null!=a&&e.push(a);break;case this.o.dk:h=WU(a);break;default:throw zU(a);}},a);
0!=e.length||h.isEmpty()||(a=new vV(null,new te(-1,-1),"",null,""),a.o=c,a.ia=d,e.push(a));F(e,function(a){h&&(a.Of=h)});
return e},FY=function(a,b){var c={};
c.id=b.getAttribute(a.A.Lh);c.adSlotId=b.getAttribute(a.A.ju);c.apiFramework=b.getAttribute(a.A.Ih);var d=Ya(b.getAttribute(a.A.Ph)),e=Ya(b.getAttribute(a.A.Jh));c.size=new te(d,e);d=b.getAttribute(a.A.Qu);e=b.getAttribute(a.A.Pu);C(E(d))||C(E(e))||(c.mO=new te(Ya(d),Ya(e)));return c},Aea=function(a,b,c,d){var e=FY(a,b);
b.getAttribute(a.A.Ih);b.getAttribute(a.A.Iv);b.getAttribute(a.A.lv);var h=b.getAttribute(a.A.tv),h=GU(h,-1),k=[];new Ie;var l={},m="",n,t=[];F(eh(b),function(a){switch(a.nodeName){case this.o.zv:t.push(DU(a));break;case this.o.yv:n=DU(a);break;case this.o.Zj:l=GY(a);m=E(DU(a));break;case this.o.Mh:case this.o.Oh:case this.o.Kh:a=HY(this,a);null!=a&&k.push(a);break;default:throw zU(a);}},a);
a=wY(e.id,e.size,k);eV(a,m,l);a.J=e.apiFramework;a.U=n;a.K=t;a.wa=h;a.o=c;a.ia=d;return a},HY=function(a,b){var c=CU(b,a.A.Du);
if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.o.Oh:d="Static";break a;case a.o.Mh:d="IFrame";break a;case a.o.Kh:d="Html";break a;default:throw DO(Bea,null,d);}var e=DU(b);null!=e||(e="");return new xY(d,c,e)},BY=function(a,b,c){var d=[],e=xea(CU(b,a.A.Fv));
EU(b,a.o.wu,function(a){a=Cea(this,a,c);null!=a&&d.push(a)},a);
return new jea(d,e)},Cea=function(a,b,c){var d=FY(a,b),e=[],h=new NU,k,l=[];
F(eh(b),function(a){switch(a.nodeName){case this.o.zu:l.push(DU(a));break;case this.o.dk:h=WU(a,!0);break;case this.o.yu:k=DU(a);break;case this.o.ou:DU(a);break;case this.o.Zj:DU(a);break;case this.o.Mh:case this.o.Oh:case this.o.Kh:a=HY(this,a);null!=a&&e.push(a);break;default:throw zU(a);}},a);
return kb(e)?null:oea(d,k,l,c,h,e)},yea=function(a,b,c,d){var e=new NU,h={},k="",l=[],m,n=new Ie,t=[],u=[],x,B=VU(CU(b,a.A.Lv));
F(eh(b),function(a){switch(a.nodeName){case this.o.Yu:u=Dea(this,a);break;case this.o.Zj:h=GY(a);k=E(DU(a));break;case this.o.ak:x=GU(DU(a),0);break;case this.o.dk:e=WU(a);break;case this.o.pv:t=Eea(this,a);break;case this.o.Xv:a=Fea(this,a);n=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw zU(a);}},a);
F(l,function(a){SU(e,"click",a)});
a=new kV(x,m,n,t,B,u);eV(a,k,h);a.o=c;a.ia=d;e&&(a.Of=e);return a},Fea=function(a,b){var c,d=[],e=new Ie;
F(eh(b),function(a){switch(a.nodeName){case this.o.uu:c=DU(a);break;case this.o.vu:a=DU(a);d.push(a);break;case this.o.Gu:var b=CU(a,this.A.Lh);null!=b||(b="");var l=e.get(b,[]);l.push(DU(a));e.set(b,l);break;default:throw zU(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}},Eea=function(a,b){var c=[];
EU(b,a.o.ov,function(a){var b=CU(a,this.A.Iu),h=CU(a,this.A.TYPE),k=CU(a,this.A.Yv),l=Ya(a.getAttribute(this.A.Ph)),m=Ya(a.getAttribute(this.A.Jh)),n=a.getAttribute(this.A.Ih),t=DU(a),u=FU(a.getAttribute(this.A.Fn)),x=FU(a.getAttribute(this.A.rv));a=FU(a.getAttribute(this.A.nv));b=new jV(b,h,k,u,x,a,l,m,t,n);c.push(b)},a);
return c},Dea=function(a,b){var c=[];
EU(b,a.o.Xu,function(a){a=Gea(this,a);null!=a&&c.push(a)},a);
return c},Gea=function(a,b){var c=b.getAttribute(a.A.Bv),d=CU(b,a.A.aw),e=CU(b,a.A.bw),h=Ya(b.getAttribute(a.A.Ph)),k=Ya(b.getAttribute(a.A.Jh)),h=new te(h,k),k=b.getAttribute(a.A.Ih),l=VU(CU(b,a.A.Av)),m=b.getAttribute(a.A.ak),m=GU(m,-1),n=[],t=[],u={};
F(eh(b),function(a){switch(a.nodeName){case this.o.bv:t.push(DU(a));break;case this.o.Zu:u=Hea(this,a);break;case this.o.Mh:case this.o.Oh:case this.o.Kh:a=HY(this,a);null!=a&&n.push(a);break;default:throw zU(a);}},a);
return kb(n)?null:qea(c,h,d,e,m,l,k,u,t,n)},Hea=function(a,b){var c=[],d;
F(eh(b),function(a){switch(a.nodeName){case this.o.$u:d=DU(a);break;case this.o.av:c.push(DU(a));break;default:throw zU(a);}},a);
return{iconClickThrough:d,oO:c}},GY=function(a){a=DU(a);
return null!=a?Yca(a):{}},IY=function(a,b){this.A=a;
this.o=b},Iea=function(a){var b=[],c=BU(a,"vmap:Extensions")[0];
if(c){var d;EU(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=BU(d,"yt:BreakTime"),!kb(b)))return fi(b,function(a){return CU(a,"timeOffset")})}return[CU(a,"timeOffset")]},Lea=function(a){var b=new WW;
F(eh(gh(a.A)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Jea(this,a);a=Iea(a);F(a,function(a,c){var k=GU(a);0<c&&(d=Kea(this,d));if("start"==a||0==k)XW(b,d,0);else if("end"==a)XW(b,d,-1);else{if(-1==k)throw DO($W,null,"timeOffset",E(a));XW(b,d,k)}},this)}},a);
if(0==b.o.Pa().length)throw DO(JY);return b},Kea=function(a,b){return fi(b,function(a){var b=new VW(a.B.clone());
b.o=a.o;b.A=a.A;return b},a)},Mea=function(a){a=CU(a,"timeOffset");
var b=GU(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b},Nea=function(a){return(a=eb(eh(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?eb(eh(a),function(a){return"VAST"==a.nodeName}):null},Jea=function(a,b){var c=[],d="",e=null,h=!1,k=!1;
F(eh(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=$z(a,"vmap:VASTData/VAST")||$z(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Nea(a));if(!e){var c=BU(a,"vmap:AdTagURI"),l="";c.length&&(l=E(DU(c[0])));if(C(l))throw DO(Oea,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=BU(a,"vmap:Extension"),a=Pea(this,a),null!=a&&(h=!0,a=CU(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=Qea(a,e):C(d)||(l=Rea(a,d));l&&(W()&&(l.rh=Mea(b)),l=new VW(l),l.o=h,l.A=h&&!k,nb(c,l));return c},Pea=function(a,b){return eb(b,function(a){return"bumper"==CU(a,"type")},a)},Rea=function(a,b){var c=a.o.clone();
C(c.A)||(c.A="");c.o=b;return c},Qea=function(a,b){var c=a.o.clone();
c.A=Zz(b);c.o="";return c},Tea=function(a,b){if(null!=a){var c;
null!=a?(c=gh(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return JW.getInstance().A=!1,new YW(a,b);null!=a?(c=gh(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return JW.getInstance().A=!1,new IY(a,b);if(AY(a)){if(!AY(a))throw DO(aX);c=gh(a);var d=DY(c);if(1>d||3<d)throw DO(Sea);c=BU(c,"Ad");if(kb(c))throw DO(KY);c=EY(c[0]);if(null==c)throw DO(LY);if(1!=BU(c,"AdSystem").length)throw DO(LY);return new zY(a)}}return null},MY=function(){},NY=function(a,b){this.A=a;
this.B=b},OY=function(a,b){"auto"!=a.A.Ye&&"click"!=a.A.Ye||b.set("vpa",a.A.Ye)},PY=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))},QY=function(a,b){var c=a.B.A;
null!=c&&b.set("js","ima-"+c);c=a.A.K;null!=c&&b.set("mv",c+"."+(a.A.J||""))},RY=function(a,b){b.set("osd",2);
-1!=a.B.J&&b.set("frm",a.B.J);var c=a.B.Y;null!=c&&b.set("ms",c);b.set("sdr",1)},SY=function(a){return fO.o?"h.3.0.0":null!=a.B?IT(a.B):null},TY=function(){this.o=["video"]},UY=function(a,b,c){if(null!=c){var d;
null==b.D&&(b.D=new ET);d=b.D;var e;null!=c&&d.A!=c?(d.o=1,d.A=c):d.o=null!=c?d.o+1:1;e=d.o;1!=e&&a.set("ad_block",e);null==b.M&&(b.M=new FT);e=b.M;var h=c!=b.P;(d=0==d.o%100||h)||(d=36E5<(null===e.o?0:(new sz).getTime()-e.o));d&&e.reset();b.P=c;b=e.A;null!==b&&a.set("tok",b)}},VY=function(a,b){a.set("sz",Math.max(null!=b.Gf?b.Gf:0,null!=b.Ic?b.Ic:0)+"x"+Math.max(null!=b.Ff?b.Ff:0,null!=b.Hc?b.Hc:0))},WY=function(a){var b={};
b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=X.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!X.navigator&&"unknown"!==typeof X.navigator.javaEnabled&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(b.u_h=X.screen.height,b.u_w=X.screen.width,b.u_ah=X.screen.availHeight,b.u_aw=X.screen.availWidth,b.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(b.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(b.u_nmime=X.navigator.mimeTypes.length);for(var d in b)a.set(d,
b[d]);a.set("dt",Uea)},XY=function(a){if(a.Cb&&a.Cb.LACT){var b=a.Cb.LACT.toString();
if(b)return ab(b)}return a.H},YY=function(a){return W()&&a.Cb&&a.Cb.VIS?a.Cb.VIS.toString():null},cZ=function(a,b,c,d){var e=new Ie;
qO()||e.set("ad_type",c.adType);lU&&e.set("flash",ZP);VY(e,a);ZY(c)&&(e.set("ea","0"),null!=a.Ic&&null!=a.Hc&&e.set("image_size",$Y(c,a.Ic,a.Hc,a.xf)));aZ(e,d);e.set("lact",XY(a));(c=YY(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.rh);WY(e);bZ(a,e,!0);UY(e,b,a.D);return e},bZ=function(a,b,c){C(E(a.referrer))||(a=a.referrer,c&&(a=wa(a)),dZ("ref",a,b))},gZ=function(a,b,c){a=null!=b?b.split("_"):a;
F(a,function(a){if(!Tb(Vea,a))throw DO(bT,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){jb(eZ,a)||d.push(a)});
a=d}if(!TO()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw DO(fZ,null,"skippablevideo");a=d}return a},hZ=function(a,b){return null!=b?b.split(/[+, ]/):a},$Y=function(a,b,c,d){a.A&&(c=Math.min(c,90));
var e=0,h=0;lO();a=!W();d=d&&a;a&&(e=15,h=65);var k=[];F(Wea,function(a){var m=b-e>=a.width&&c-h>=a.height,n=!d&&!m&&90>=a.height&&b>=a.width&&c>=a.height;(m||n)&&k.push(a.width+"x"+a.height)});
return k.join(",")},iZ=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)},jZ=function(a,b){return null!=b?String(b):null!=a?a:null},kZ=function(a,b){if(null==b)return a;
switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a},lZ=function(a,b,c){return null!=b&&Tb(c,b)?b:a},ZY=function(a){return xh(eZ,function(b){return jb(a.o,b)})},aZ=function(a,b){lU?a.set("ca_type","flash"):a.set("ca_type","image");
if(null!=b){var c=b.B;null!=c&&0<c.length&&(c=c[0].F,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}},dZ=function(a,b,c){null!=b&&c.set(a,b)},nZ=function(a,b,c){NY.call(this,a,b);
var d=new TY;a=(new N(a.o)).o;d.wl=lZ(d.wl,a.get("cust_age"),Xea);d.Th=lZ(d.Th,a.get("adsafe"),mZ);d.o=gZ(d.o,a.get("ad_type"));d.adType=d.o.join("_");d.fk=iZ(d.fk,a.get("videoad_start_delay"));d.gk=jZ(d.gk,a.get("slotname"));d.vl=kZ(d.vl,a.get("adtest"))||"on"==a.get("adtest");d.ik=kZ(d.ik,a.get("scs"));d.jk=jZ(d.jk,a.get("alternate_ad_url"));d.channels=hZ(d.channels,a.get("channel"));d.Bk=iZ(d.Bk,a.get("cpm"));d.Gg=jZ(d.Gg,a.get("description_url"));d.experimentIds=jZ(d.experimentIds,a.get("eid"));
d.gender=lZ(d.gender,a.get("cust_gender"),Yea);d.A=kZ(d.A,a.get("overlay"));d.host=jZ(d.host,a.get("host"));d.B=hZ(d.B,a.get("h_ch"));d.hostTierId=iZ(d.hostTierId,a.get("ht_id"));d.xl=kZ(d.xl,a.get("lsv"));var e;null!=this.A.language?e=this.A.language:(e=aa.navigator||null,e=eO(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var h=null!=a.get("hl")?String(a.get("hl")):null;e=jZ(h,e);var k;null!=e&&!C(E(e))&&(k=eO(e));d.language=jZ(d.language,k);d.sp=iZ(d.sp,a.get("linearAdSlotWidth"));
d.qp=iZ(d.qp,a.get("linearAdSlotHeight"));d.Vi=iZ(d.Vi,a.get("max_ad_duration"));d.Rl=iZ(d.Rl,a.get("min_ad_duration"));d.Wi=iZ(d.Wi,a.get("sdmax"));d.up=iZ(d.up,a.get("nonLinearAdSlotWidth"));d.tp=iZ(d.tp,a.get("nonLinearAdSlotHeight"));d.Mf=jZ(d.Mf,a.get("client"));d.dj=jZ(d.dj,a.get("t_pyv"));k=a.get("sdki");d.jj=iZ(d.jj,w(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=iZ(d.tagForChildDirectedTreatment,a.get("tfcd"));d.wm=lZ(d.wm,a.get("targeting"),Zea);d.Mi=iZ(d.Mi,a.get("video_format"));
d.Lm=iZ(d.Lm,a.get("video_cpm"));d.yl=jZ(d.yl,a.get("loeid"));d.Sm=jZ(d.Sm,a.get("yt_pt"));d.Pm=jZ(d.Pm,a.get("ytdevice"));d.Qm=jZ(d.Qm,a.get("ytdevicever"));d.Rm=jZ(d.Rm,a.get("dbp"));d.C=jZ(d.C,a.get("ms"));d.adBlock=iZ(d.adBlock,a.get("adBlock"));d.url=jZ(d.url,a.get("url"));d.pk=jZ(d.pk,a.get("avo"));this.o=d;this.J=b;this.K=c;C(E(this.o.experimentIds))||(b=this.o.experimentIds.split(","),jO(lO(),b))},afa=function(a){return xh($ea,function(a){return jb(this.o.o,a)},a)},oZ=function(a){return W()?
1:jb(a.o.adType.split("_"),"text")?3:1},bfa=function(a){a=a.o.channels?a.o.channels:[];
xb(a);a=ub(a,0,30);return a.join("+")},pZ=function(a,b){return Math.round(1.1*(a||0)+0*b)},qZ=function(a,b){NY.call(this,a,b)},rZ=function(a,b){NY.call(this,a,b)},sZ=function(a){NY.call(this,a,null)},tZ=function(a){NY.call(this,a,null)},uZ=function(a,b){NY.call(this,a,b);
W()&&this.A.Db("doubleclick_gpt_retagging")&&(this.B.C=GT())},vZ=function(a){if(C(E(a)))return!1;
a=new N(a);if(!a.C||"http"!=a.C&&"https"!=a.C)return!1;a=a.A;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0},cfa=function(a){var b=[];
F(a,function(a){0<a.length&&b.push(fi(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")},wZ=function(a,b,c){uZ.call(this,a,b);
var d=lO();this.J=oO()?!1:C(E(a.B));a=new TY;qO()||(a.o=gZ(a.o,this.A.B),a.adType=a.o.join("_"));a.experimentIds=jZ(a.experimentIds,this.A.C);this.o=a;this.K=b;this.G=c;C(E(this.o.experimentIds))||jO(d,this.o.experimentIds.split(","))},dfa=function(a){var b=cZ(a.A,a.K,a.o,a.G);
b.set("sdkv",SY(a));b.set("sdki",a.F().toString(16));return b},efa=function(a,b){var c=dfa(a),d=fi(c.Pa(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
xf(b,"afvparams",d.join("&"))},xZ=function(a,b,c){NY.call(this,a,b);
var d=lO();this.J=oO()?!1:C(E(a.B));d=new TY;qO()||(d.o=gZ(d.o,this.A.B),d.adType=d.o.join("_"));d.experimentIds=jZ(d.experimentIds,this.A.C);this.o=d;this.K=b;this.G=c;C(E(this.o.experimentIds))||(b=this.o.experimentIds.split(","),d=lO(),jO(d,b))},ffa=function(a){var b=cZ(a.A,a.K,a.o,a.G);
b.set("sdkv",SY(a));return b},gfa=function(a,b){var c=ffa(a),d=fi(c.Pa(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
sU(b,"afvparams",[wa(d.join("&"))])},yZ=function(a){NY.call(this,a,null)},ifa=function(a){if(null==a.A||null==a.A.Cb)return{};
var b={},c=a.A.Cb;F(hfa,function(a){a in c&&(b[a]=c[a])});
return b},jfa=function(a,b){var c;
if(!xU(a.o)&&!yU(a.o)||(qO()?null==a.o||-1==a.o.search("afvbase="):C(E(a.B))||null==a.o||-1==a.o.search("afvbase=")))if(xU(a.o))c=new rZ(a,TT);else if(vU(a.o))c=new nZ(a,TT,b);else if(yU(a.o))c=new uZ(a,TT);else if(wU(a))c=new qZ(a,TT);else if(c=a.o,null!=c?(c=(new N(c)).A,c=ua(c,".fwmrm.net")):c=!1,c)c=new sZ(a);else{c=a.o;if(null!=c){c=new N(c);var d=c.B;c=ua(c.A,"youtube.com")&&uU("/get_midroll_info",d)}else c=!1;c=c?new yZ(a):new tZ(a)}else c=xU(a.o)?new xZ(a,TT,b):new wZ(a,TT,b);return c},kfa=
function(a){a=Zd(a,function(a){return 0<cW(a)});
Cb(a,function(a,c){return cW(a)-cW(c)});
return a},lfa=function(a){return Zd(a,function(a){return-1==cW(a)})},zZ=function(a){this.o=a},mfa=function(){this.o=0},nfa=function(a,b,c,d,e,h){var k=y(function(a){d(a,Error(zm(a)))},a),l=y(function(a){6==a?AZ(this,b,!1,c,k,e,h):k(a)},a);
AZ(a,b,!0,c,l,e,h)},AZ=function(a,b,c,d,e,h,k){var l=new gn;
l.Y=c;hn(l,ofa(h));var m=new sm,n=y(function(){m.dispose();l.dispose()},a);
c=y(function(){e(l.A);n()},a);
ym(m,l,"success",function(){var a;try{a=l.o?l.o.responseXML:null}catch(b){a=null}if(null==a){var c=un(l);try{a=Yz(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(Wz&&(a=Xz())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);n()},a);
ym(m,l,["error","timeout"],c,a);var t;"POST"==k&&(b=new N(b),t=b.o.toString(),rf(b,""),b=b.toString());a.o=K();l.send(uO(b),k,t)},BZ=function(a,b,c){var d=null,e=c+b;
F(a.D,function(h){if(qU(h.F,"rm")){var k=qX(a);MV(a)&&(k.FILLED_OPPORTUNITY=0);AO(a.K,k);(k=a.B)&&k.afcRmFallback&&(d=h)}else{if(k=h instanceof vV)0==c&&0==b||h instanceof tY?k=!0:(k=h.hc(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-h.hc().height+b-h.hc().width,"Flash"!=h.getContentType()||lU))if(null==d)d=h,e=k;else if(k==e&&h.o<d.o||k<e)d=h,e=k}});
VV(a,d)},CZ=function(a){var b=null;
F(a.D,function(a){a instanceof kV&&(null===b||a.o<b.o)&&(b=a)});
VV(a,b)},DZ=function(a,b,c,d){this.C=a;
this.J=b;this.ads=0<this.C.length?this.C:this.J;this.F=c;this.D=this.L=!0;this.A=-1;this.o=null;this.G=0;this.P=d;this.logger=null},EZ=function(a,b,c){null!=a.o?pfa(a,b,c):a.Bd()?qfa(a,b,y(function(a){!this.Bd()||!W()&&301==a.getErrorCode()?c(a):EZ(this,b,c)},a)):c(new ZN("adLoadError","The ad source contains no more ads.",1005))},rfa=function(a,b){a.D=b;
a.ads=a.K(a.C,a.J);a.A=-1},sfa=function(a,b,c,d){var e=a.F.clone();
e.A="";e.o=b.Ma;FZ(a,b,e,c,d)},FZ=function(a,b,c,d,e){var h=b.getExtension("LocalRedirect");
null!=h&&(h=h.B,null!=h&&(c.A=h));a.P.fetch(c,y(function(a){a instanceof DZ?(tfa(a,b,this.D&&b.Ea,b.Fa),d(a)):a instanceof zZ?e(new ZN("adLoadError","Ad source cannot contain playlist response.",2)):e(new ZN("adLoadError","Unknown ad source.",2))},a),e)},ufa=function(a){var b=0;
for(a=a.A;null!=a;)a=a.A,b++;return b},pfa=function(a,b,c){a.o.Bd()?EZ(a.o,y(function(a){this.B(a,b,y(function(a){this.Bd()?EZ(this,b,c):c(a)},this))},a),y(function(a){GZ(this.ads[this.A],a);
this.o=null;W()||301!=a.getErrorCode()?this.Bd()?EZ(this,b,c):c(a):c(a)},a)):(0==a.o.G&&GZ(a.ads[a.A],DO(HZ)),a.o=null,EZ(a,b,c))},GZ=function(a,b){if(b.A){1012==b.getErrorCode()&&(b=DO(IZ));
var c=pX(b,a);AO(a.Z,c)}},qfa=function(a,b,c){a.A++;
var d=a.ads[a.A];d.P||d.M?d.M?sfa(a,d,y(function(a){this.o=a;EZ(this,b,c)},a),y(function(a){a=JZ(a);
GZ(d,a);c(a)},a)):4<=ufa(d)?(a=DO(vfa,null,"4"),GZ(d,a),c(a)):a.L?a.H(d,y(function(a){this.o=a;
EZ(this,b,c)},a),y(function(a){a=JZ(a);
GZ(d,a);c(a)},a)):c(DO(wfa)):a.B(d,b,c)},JZ=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;
default:a=DO(HZ)}return a},tfa=function(a,b,c,d){F(a.ads,function(a){a.A=b});
rfa(a,c);a.L=d},KZ=function(a,b,c,d){DZ.call(this,[],a,b,c);
this.M=d},LZ=function(a,b,c,d,e){this.D=a;
this.B=b;this.C=c;this.o=d;this.F=e},xfa=function(a,b,c,d){var e;
try{e=Yz(b.A)}catch(h){d(DO(aX,h));return}null!=e?MZ(a,e,b,c,d):d(DO(aX))},NZ=function(a,b,c,d){var e;
if(e=null!=b.o){a:{try{xa(b.o)}catch(h){e=!1;break a}e=!0}e=!e}e?d(DO(yfa,null,b.o)):fO.C?Pda(PW(),y(a.A,a,b,c,d)):a.A(b,c,d)},zfa=function(a){var b="third_party";
vU(a.o)?b="adsense":xU(a.o)?b="dart":yU(a.o)?b="xfp":wU(a)&&(b="dbm");a={rt:b};UO.getInstance().o(17,a,!0)},MZ=function(a,b,c,d,e){var h;
try{var k=Tea(b,c);if(!k)throw DO(aX);h=k.B();Afa(a,h,c,d)}catch(l){l instanceof ZN?e(l):e(DO(Bfa,l))}},Afa=function(a,b,c,d){var e=b.o;
if(null!=e)d(new zZ(e));else{var h=b.B;if(null==h)throw DO(KY);F(h,function(a){a.B=c;var d=cO();d&&dO(d,"useCompanionsAsEndSlate")&&(a.H=zda(a));var e=a.getExtension("InfoCards");if(null==e)d=[];else{for(var d=[],e=e.B?e.B:new sX,h=0;h<qV(e.o,"card");h++){var t=FX(e,h);IX(HX(t))&&d.push(t)}0==d.length&&0<qV(e.o,"card")&&a.B.Db("enable_ad_video_end_renderers")&&(d=[FX(e,0)])}a.da=d;a.ka=this.B.o;W()&&(a.Ca=b.A)},a);
e=kfa(h);h=lfa(h);0<h.length&&0<=bW(h[0])?d(new KZ(h,c,a,a.D)):d(new DZ(e,h,c,a))}},OZ=function(a){this.o=a+K()},ofa=function(a){var b=K();
a=a.o-b;return 0<a?a:0},Cfa=function(a,b){this.o=a;
this.A=b;fO.o&&RR().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}TT.J=c},Efa=function(a,b,c,d){var e=b.G;
W()&&e&&jO(lO(),e,!1);e=null;null!=a.o&&(e=new LW(1E3,a.o,a.A));var h=cda(b);null!=h&&bda(b)&&(a.A.Y=h);(new LZ(a.A,new mfa,a.o,e,new OZ(8E3))).fetch(b,y(function(a){a instanceof zZ?c(a):Dfa(this,a,c,d)},a),d)},Dfa=function(a,b,c,d){var e=[],h=y(function(a,b){a.Bd()?EZ(a,y(function(b){e.push(b);
h(a,null)},this),y(function(b){301==b.getErrorCode()?d(DO(PZ)):h(a,b)},this)):0<e.length?c(e):(null==b&&(b=DO(JY)),1012==b.getErrorCode()&&(b=DO(IZ)),d(b))},a);
h(b,null)},Ffa=function(a){this.B=a;
this.A=new Wn;this.o=!1},RZ=function(a,b,c,d){var e=y(function(a){c(a);
Zn(this.A);this.o=!1;QZ(this)},a),h=y(function(a){d(a);
Zn(this.A);this.o=!1;QZ(this)},a);
Yn(a.A,y(function(){Efa(this.B,b,e,h)},a));
QZ(a)},QZ=function(a){if(!a.o){var b=$n(a.A);
null!=b&&(a.o=!0,b())}},SZ=function(a,b,c){J.call(this);
this.C=new Ffa(new Cfa(b,c));this.A=b;this.o=!0;this.B=c},Gfa=function(a,b,c){if(a.o){var d=null!=c?c:{};
JW.getInstance().end("rtr");Lda(JW.getInstance(),b.o);JW.getInstance().start("vl");RZ(a.C,b,y(function(a){TZ(this,a,d)},a),y(function(a){UZ(this,a,d)},a))}},Hfa=function(a,b,c){if(!a.o){var d=null!=c?c:{};
RZ(a.C,b,y(function(a){TZ(this,a,d)},a),y(function(a){UZ(this,a,d)},a))}},TZ=function(a,b,c){if(a.o)if(b instanceof zZ)b=new VZ(b.o,a),b.G=a.A,a.$(new GW(b,c));
else{var d;try{d=WZ(b),d.G=a.A,a.$(new GW(d,c)),JW.getInstance().end("vl")}catch(e){UZ(a,DO(XZ,null),c)}}else b instanceof zZ?UZ(a,DO(Ifa,null,"Unsupported ad format."),c):(d=new IW("adsLoaderSdkAdLoaded"),d.D=b,d.C=c,a.$(d))},UZ=function(a,b,c){a.o?("always"==fO.A&&null!=a.A&&DW(a.A,yW()),a.$(new $N(b,c))):(c=new IW("adsLoaderSdkAdError"),c.o=b,a.$(c))},Jfa=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'},Kfa=function(){return'<div class="recall-button"></div>'},
Lfa=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"},YZ=function(a,b){this.K=a;
this.J=O("div",{"class":"controls"});this.o=O("div",{"class":"adDisplay"});this.U=b||v;this.$c=new sm(this)},ZZ=function(a){var b=O("div",{"class":"ima-container"});
lr(b,"opacity 0.4s");a.$c.R(b,"mouseover",a.ky);a.$c.R(b,"mouseout",a.PD);b.appendChild(a.J);a.J.appendChild(a.o);return b},$Z=function(a,b){this.L=a;
this.O=new Ie;this.P=15E3;this.G=O("span");YZ.call(this,a[0],b);this.o.appendChild(this.G)},a_=function(a,b){YZ.call(this,a[0],b);
this.C=a;L(this.o,"ima-container-stack")},b_=function(a,b,c,d,e){mA.call(this);
this.A=a;this.D=b;this.G=c;this.B=d;this.F=da(e)?e:[e]},c_=function(a,b,c,d,e){return new b_(a,b,{opacity:d},{opacity:e},{property:"opacity",
duration:b,timing:c,delay:0})},Mfa=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"},Nfa=function(a){return'<div class="fullslot-autoclose">'+Y(a.ow)+"</div></div>"},d_=function(a){var b="";
a=ra("Ad will close in {$xSeconds}",{xSeconds:Y(a.lg)});return b+a},e_=function(a){J.call(this);
this.D=new Pd(200);H(this,this.D);this.A=0;this.C=!1;this.K=a;this.J=new sm(this);this.J.R(this.D,"tick",this.OB)},f_=function(a){a.D.stop();
a.C=!1},h_=function(){J.call(this);
this.o=!1;this.B=this.C=this.A=null;this.D=new sm(this);this.A=rS(Nca);this.C=Mg("videoAdUiUnmutedIcon",this.A);this.B=Mg("videoAdUiMutedIcon",this.A);g_(this);this.D.R(this.A,"click",this.F)},g_=function(a){a.C&&a.B&&(a.o?(Iq(a.C,"display","none"),Iq(a.B,"display","block")):(Iq(a.C,"display","block"),Iq(a.B,"display","none")))},i_=function(a,b){J.call(this);
this.A=a;this.Y=0;this.O=!1;this.C=0==LU(this.A.skipOffset)?3:1;this.o=this.B=this.Z=this.L=this.K=this.D=null;this.G=new sm(this);this.F=this.J=this.H=null;this.U=!1;this.M=new ZR;this.W="";Ofa(this,b);this.G.R(this.M,"click",this.BD);$R(this.M,this.B)},Ofa=function(a,b){a.D=rS(Hca);
a.K=Mg("videoAdUiPreSkipButton",a.D);a.L=Mg("videoAdUiPreSkipText",a.K);a.Z=Mg("videoAdUiPreSkipThumbnail",a.K);mh(a.L,WS({lg:j_(a)}));var c=rca(a.A.Ka)||"";if(a.A.showContentThumbnail&&!C(E(c))){var d=window.document.createElement("img");d.setAttribute("src",c);L(d,"videoAdUiPreSkipThumbnailImage");a.Z.appendChild(d)}else L(a.L,"videoAdUiPreSkipTextOnly");a.o=rS(Ica,{CD:Ra(Jca())});a.B=Mg("videoAdUiSkipButton",a.o);nO(lO(),9428661)&&(L(a.B,"autofocused"),a.G.R(a.B,"blur",y(function(){$d(this.B,"autofocused")},
a)),a.B.autofocus=!0);
dr(a.D,!1);b.appendChild(a.D);0==LU(a.A.skipOffset)?a.$("skipshown"):(dr(a.o,!1),cr(a.o,0));b.appendChild(a.o)},j_=function(a){return null!=a.A.skipOffset&&-1!=LU(a.A.skipOffset)?LU(a.A.skipOffset):-1},k_=function(a,b){var c=j_(a);
if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+oU(c));c=WS({lg:d,oi:a.W});mh(a.L,c)}},l_=function(a){null!=a.F&&(Td(a.F),a.F=null)},o_=function(a,b,c){J.call(this);
this.o=a;this.W=!1;this.Ea=c;this.da=this.ea=this.aa=this.F=this.L=this.O=this.H=this.ia=this.fa=this.K=this.A=null;this.ua=!1;this.Ca=this.ka=this.ma=this.J=this.M=this.C=this.D=this.xa=this.Z=this.Y=this.G=null;this.B=new sm(this);this.Fa=[];this.U=[];this.W=!this.o.D&&nO(lO(),9416126);a={Uc:this.o.Uc,Tf:this.o.Tf,He:this.o.He,oi:this.W?"redesign2014q4":""};this.A=rS(this.o.H,a);this.B.R(this.A,"touchmove",this.Iy);this.Z=Mg("videoAdUiProgress",this.A);this.xa=Mg("videoAdUiBuffer",this.A);this.K=
Mg("videoAdUiAttributionContainer",this.A);this.fa=Mg("videoAdUiAttributionIconContainer",this.A);this.ia=Mg("videoAdUiAttribution",this.A);this.H=Mg("videoAdUiVisitAdvertiserLinkText",this.A);this.O=Mg("videoAdUiVisitAdvertiserIcon",this.A);this.L=Mg("videoAdUiAuthorIcon",this.A);this.F=Mg("videoAdUiAuthorName",this.A);this.aa=Mg("videoAdUiLearnMore",this.A);this.ea=Mg("videoAdUiLearnMoreText",this.A);this.W?(this.J=Mg("videoAdUiTopButtonShare",this.A),this.ma=Mg("videoAdUiTopButtonShareTooltip",
this.A),this.ka=Mg("videoAdUiTopButtonInfo",this.A),this.Ca=Mg("videoAdUiTopButtonWatchLater",this.A)):this.J=Mg("videoAdUiShare",this.A);this.G=Mg("videoAdUiTitle",this.A);this.Y=Mg("videoAdUiTopBar",this.A);this.da=Mg("videoAdUiBottomBar",this.A);null!=this.L&&this.B.R(this.L,"click",this.kw);null!=this.F&&(c=new ZR,this.U.push(c),this.B.R(c,"click",this.lw),$R(c,this.F));null!=this.aa&&(c=new ZR,c.L=!0,this.U.push(c),this.B.R(c,"click",this.Mp),$R(c,this.aa));null!=this.ea&&(c=new ZR,c.L=!0,this.U.push(c),
this.B.R(c,"click",this.Mp),$R(c,this.ea));null!=this.J&&this.B.R(this.J,"click",this.yD);null!=this.G&&(c=new ZR,this.U.push(c),this.B.R(c,"click",this.KD),$R(c,this.G));null==this.Y||!W()&&JO()||this.B.R(this.A,"mouseover",this.xD);null!=this.H&&this.B.R(this.H,"click",this.yj);null!=this.O&&this.B.R(this.O,"click",this.yj);null!=this.K&&null!=this.o.C&&m_(this.o.C)&&(L(this.K,"videoAdUiWtaClickable"),this.B.R(this.K,"click",this.WC),this.B.R(this,"why_this_ad_got_it",this.VD));null!=this.o.skipOffset&&
(this.C=new i_(this.o,this.A),this.C.ag(this),this.C.W=a.oi);this.o.M&&(this.M=new h_,this.M.ag(this),this.da.insertBefore(this.M.A,this.K));400>=((0,window.parseInt)(Lq(b,"width"),10)||b.width)&&L(this.A,"videoAdUi-mobile");this.o.D&&(L(this.A,"blazer"),window.settings&&window.settings.isTablet?L(this.A,"tablet"):L(this.A,"phone"));a=th(b,"html5-video-player");null!=a&&(this.W&&L(a,"videoAdUiRedesign"),M(a,"ytp-video-ad-learn-more-ui",this.o.A));dr(this.A,!1);b.appendChild(this.A);this.o.A||this.W||
!this.o.K||(this.D=O("div",{style:"width:100%;height:100%;pointer-events:auto;"}),this.A.appendChild(this.D));n_(this)},Pfa=function(a){null!=a.D&&dr(a.D,!1)},p_=function(a){a.C&&(a.C.dispose(),a.C=null)},Qfa=function(a,b){a.Fa=b;
F(b,function(a){a.display(this.A)},a)},q_=function(a){null!=a.H&&(dr(a.H,!0),mh(a.H,a.o.visitAdvertiserText));
null!=a.O&&dr(a.O,!0)},r_=function(a,b){if(null!=a.A){var c=th(jh(a.A),"html5-video-player");
null!=c&&M(c,"ytp-ad-end-cap",b)}},n_=function(a){var b=a.o.U&&(a.Ea>a.o.aa||0==a.Ea),c=b&&a.o.W,d=b&&a.o.Z,e=b&&a.o.B,h=b&&a.o.O,b=b&&a.o.G,k=a.o.P&&a.o.o,l="0px";
null!=a.G&&(dr(a.G,b),null!=a.L&&dr(a.L,c),null!=a.F&&dr(a.F,d),null!=a.aa&&dr(a.aa,e),null!=a.J&&(dr(a.J,h),h&&a.$("videoShareShown")),null!=a.ka&&dr(a.ka,!1),null!=a.Ca&&dr(a.Ca,!1),null!=a.Y&&dr(a.Y,b||c||d||e));null!=a.K&&s_(a);null!=a.Z&&(dr(a.Z,k),k&&(l=Lq(a.Z,"height")));null!=a.da&&Iq(a.da,"bottom",l);null!=a.ea&&dr(a.ea,W()&&a.o.A&&!e);null!=a.fa&&dr(a.fa,a.o.J)},Rfa=function(a,b,c,d,e){var h=XS({qj:"",
Sh:0,sj:0});a.o.o&&a.o.L&&(b=oU(c-b),h=XS({qj:a.o.D?" \u2022 "+b:a.W?" \u00b7 "+b:": ("+b+")",Sh:d,sj:e}));mh(a.ia,h);s_(a)},s_=function(a){dr(a.K,a.o.F&&(!a.o.o||a.ua))},t_=function(a,b,c){this.D=a;
this.B=b;this.G=c;this.A=this.C=this.F=this.o=null},m_=function(a){return a.G&&(null!=a.D||null!=a.B)},u_=function(a,b,c){b=Mg(b,a.o);
null!=b&&a.C.R(b,"click",c)},v_=function(a,b,c){null!=a.o&&a.o.parentElement.removeChild(a.o);
a.o=rS(b,c);u_(a,"videoAdUiPopupCloseIcon",a.ii);a.F.appendChild(a.o);b=Mg("videoAdUiPopupFrame",a.o);null!=b&&Nc(b,"submit",function(a){a.preventDefault()});
a=Mg("videoAdUiPopupDefaultButton",a.o);null!=a&&a.focus()},w_=function(){this.Uc=XS({qj:"",
Sh:0,sj:0});var a="",b=ra("Learn More {$suffix}",{suffix:Y("")});this.Tf=a+b;a="";b=ra("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.He=ZS();this.skipOffset=null;this.aa=6E3;this.F=!0;this.J=!1;this.L=this.o=this.K=!0;this.O=this.P=this.M=this.B=!1;this.U=!0;this.G=this.Z=this.W=this.Y=this.A=!1;this.H=null;this.showContentThumbnail=!0;this.D=!1},x_=function(a,b,c,d){var e=new w_;
e.A=a;e.da=b;e.skipOffset=c;e.Ka=null!=d?d.contentId:null;e.K=d.SD;e.H=Eca;e.fa=eS(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e},z_=function(a,b,c,d,e){e_.call(this,b.o);
this.H=b;this.G=c;this.L=this.H.o;this.o=a;this.B=this.F=null;L(this.o,nU(this.G));a=this.o;b=new w_;b.skipOffset=new KU(this.H.B,!1);this.B=new i_(b,a);d&&d.text&&(d=rS(Mfa,d),this.o.appendChild(d));e?(e=this.o,d=d_({lg:y_(this.L)}),a=rS(Nfa,{ow:d}),mh(a,d),e.appendChild(a),e=a):e=null;this.F=e},Sfa=function(a){var b=Mg("videoAdUiSkipButton",a.o);
return b?Xq(b,a.o):new pe(0,0)},y_=function(a){a=Math.ceil(a);
return"0:"+(10>a?"0"+a:""+a)},A_=function(a){G.call(this);
this.L=!!a;this.F="";this.C=new NU;this.B=new Ie;this.G=[];this.K=!1;this.A={};this.J={};this.D=-1;this.H=[]},Tfa=function(a,b){null!=b&&F(b,function(a){jb(this.H,a)||this.H.push(a)},a)},B_=function(a,b,c,d,e){var h;
fO.o||(h=PW().L||void 0);F(b,function(a){var b=this.A,m=c||{};rX(b,a,"MOAT_INIT",bea);rX(b,a,"MOAT_VIEWABILITY",gd(m.moatViewability||""));rX(b,a,"GOOGLE_VIEWABILITY",gd(m.googleViewability||""));wO(a,this.A,c,d,e,h)},a)},Ufa=function(a,b){switch(b){case "abandon":return!Ke(a.B,b)&&!Ke(a.B,"skip")&&!Ke(a.B,"instreamAdComplete")&&(Ke(a.B,"impression")||a.K);
case "click":return!0;case "firstquartile":case "midpoint":case "thirdquartile":return a.L?!Ke(a.B,b)&&!Ke(a.B,"skip"):!Ke(a.B,b);case "instreamAdComplete":case "complete":return!Ke(a.B,b)&&!Ke(a.B,"skip");default:return!Ke(a.B,b)}},C_=function(a,b){J.call(this);
this.o=a;this.A=new sm(this);H(this,this.A);this.A.R(b,["companion_impression","companion_click"],this.B)},D_=function(a){J.call(this);
this.ads=a;this.H=null;this.Z=new sm(this);H(this,this.Z);this.K="normal";this.C=this.volume=null;this.B=new WO;this.Ea=!1;this.content={};this.D=new A_;this.ea=!1;this.xa=nO(lO(),41351021);this.Ca=null;var b=0;F(a,function(a){b+=kW(a)});
F(a,function(b,d){var e=b.C;e.C=a.length;var h=d+1;e.A=h;e.D=h})},H_=function(a){if(E_(a)){if(null!=IV(a.H)&&!TO())throw EO(fZ,null,"skippablevideo");
if(null!=sW(a.H)&&F_(a,a.H.A))throw EO(fZ,null,"vpaidWithSkippabilityOverride");return a.H}throw EO(G_,null,"An ad has not been selected.\n"+Error().stack);},F_=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:F_(a,b.A)},E_=function(a){return null!==a.H},Vfa=function(a){return xh(a.ads,function(a){return xh(I_(a),function(a){a=a.getUrl();
return!C(E(dS(a)))})},a)},I_=function(a){var b=a.A;
if(b&&b.M&&(b=b.D,!kb(b)&&b[0]instanceof kV))return b[0].L;b=a.o;return J_(a)?b.L:[]},J_=function(a){a=a.o;
return null!=a&&a instanceof kV},K_=function(a){null==a.J&&(a.J=new sm(a));
return a.J},M_=function(a,b){if(null!=a.G){a.Z.removeAll();
xm(a.Z,a.G,"companion_display_error",function(){});
var c=DW(a.G,b);null!=c&&(a.Z.R(c,"companion_impression",a.rA),a.Z.R(c,"companion_click",a.Wl),W()&&(c=new C_(b,c),a.na("companionInitialized",c)));if(!a.G.$n())throw EO(L_);}},Wfa=function(a){F(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.C,d=a.B,e=a.D,h=a.A;
a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var k="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(e)+".js";if(c&&d&&e&&h){var e=window,c=e.document,l={};l._scs_=d;l._bgu_=k;l._bgp_=h;l._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;c.getElementsByTagName("head")[0].appendChild(d)}}})},N_=function(a,b){a.D.o(new jc(b))},O_=function(a,
b){a.D.o(new jc(b));
a.na(b)},P_=function(a){if(!a.ea)throw EO(G_,null,"Ads manager is not correctly configured.");
},Q_=function(a){do if(fW(a))return!1;
while(a=a.A);return!0},R_=function(a,b){for(var c=b;null!=c;)F(c.G.Na(),a.hD,a),c=c.A},Xfa=function(a){if(!da(a))throw EO(G_,null,"adsRenderingSettings.mimeTypes should be an array");
var b=rb(Vb(S_),Vb(hV));F(a,function(a){if(!jb(b,a))throw EO(G_,null,"Invalid or unsuppoted mime type "+a);})},T_=function(a){D_.call(this,a);
this.L=null;this.ia=O("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.U=!1;this.aa=[]},U_=function(a,b){var c=rda(b);
F(c,function(a){SU(this.D.C,"click",a)},a)},V_=function(a,b){var c=pX(b,H_(a)),d=RV(H_(a));
AO(d,c)},W_=function(a){T_.call(this,a);
this.Y=!1;this.F=this.O=null;this.da=!1},X_=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.D,b=b.F;
a={text:null!=c?c:a.fa.C,url:null!=b?b:a.fa.D};null==a.text&&(c="",b=ra("Ads by Google"),c=xS(c+b),a.text=c);return a},Y_=function(a){return E_(a)&&mW(H_(a))},Yfa=function(a){var b=Z_(a);
b.rba=a.U;UO.getInstance().o(37,b)},Z_=function(a){var b=[],c=[];
F(a.O,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a);
var d={};d.pid=JW.getInstance().o;d.fsmode=null!=a.F;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.K;return d},$_=function(a,b){if(a.F){a.Ci(new jc("close"));
var c={};c.pid=JW.getInstance().o;c.evt=b;UO.getInstance().o(35,c)}},Zfa=function(a,b){function c(a,b){for(var c in a)for(var k=c.toLowerCase(),l=0;l<a0.length;l++){var m=a0[l];
if(k==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")},b0=function(a,b){eE.call(this,b);
this.K=a;this.B=new sm(this);this.A=new Ie},c0=function(a){return a.la()?a.la().firstChild:null},d0=function(a){D_.call(this,a);
this.A=null;this.L=!0;this.ma=this.ia=this.Y=!1;this.ka=Xa();this.aa=this.da=0;this.W=-1;this.F=null;this.U=0;this.O=1;this.fa=-1},e0=function(a){var b;
b=a.Tb("getAdRemainingTime");b=ga(b)?b:-2;if(!ga(b)||0>b)b=30;Td(a.fa);a.fa=Rd(a.stop,1E3*b,a)},f0=function(a,b,c,d){d=EO(b,c,d);
var e=pX(d,H_(a)),h=RV(H_(a));AO(h,e);b.message=d.getMessage();GO(a,b,c)},g0=function(a){aO.call(this,"adMetadata",a)},$fa=function(a,b,c){var d=v,e=new N("https://www.googleapis.com/youtube/v3/videos");
xf(e,"id",a);xf(e,"part","snippet,status");xf(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=y(b,c),d=y(d,c));h0(new gn,e,b,d)},aga=function(a,b,c){var d=v,e=new N("https://www.googleapis.com/youtube/v3/channels");
xf(e,"id",a);xf(e,"part","snippet,statistics");xf(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=y(b,c),d=y(d,c));h0(new gn,e,b,d)},h0=function(a,b,c,d){xf(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");
hn(a,2E3);var e=new sm(a);xm(e,a,"success",function(a){a=a.target;var b;b=a.o?be(a.o.responseText):void 0;c(b||{});e.dispose();a.dispose()});
xm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.A&&(b=Error(zm(a.A)));d(b);e.dispose();a.dispose()});
a.send(b)},i0=function(a){if(a&&a.items&&a.items.length){a=a.items[0];
this.channelId=a.id;var b=a.snippet;b&&(this.A=b.title,this.o=Xb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}},j0=function(a){if(a&&a.items&&a.items.length){a=a.items[0];
this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}},ega=function(a){var b=xS,c;
c=a.image;uS(c,k0)?c=US(c):uS(c,l0)?c=US(c):c instanceof kg?c=US(lg(c)):c instanceof qg?c=US(rg(c)):(c=String(c),c=cga.test(c)?c.replace(TS,SS):"about:invalid#zSoyz");c='<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+MS(c)+'"></div><div class="iv-endcap-headline" dir='+NS(a.dir)+">"+Y(a.headline)+'</div><div class="iv-endcap-description" dir='+NS(a.dir)+">"+Y(a.description)+'</div><a class="iv-endcap-action" href="';
var d;d=a.target;uS(d,k0)?d=US(d):uS(d,l0)?d=US(d):d instanceof kg?d=US(lg(d)):d instanceof qg?d=US(rg(d)):(d=String(d),d=dga.test(d)?d.replace(TS,SS):"#zSoyz");return b(c+MS(d)+'" target="_blank" dir='+NS(a.dir)+">"+Y(a.action)+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')},p0=function(a,b,c,
d,e){e_.call(this,d);
this.F=a;this.M=b;this.L=e;this.G=new sm(this);H(this,this.G);this.B=new ZR;H(this,this.B);a=(a=c.o.product_card)?new yX(a):m0;d=new wX(pV(c.o,"action")[0]);c=d.o.title;d=d.o.target;e=a.o.headline;var h=a.o.description;a=a.o.image;a=(a?new DX(a):n0).o.image_url;c=rS(ega,{headline:null!=e?e:"",description:null!=h?h:"",image:null!=a?a:"",action:null!=c?c:"",target:null!=d?d:""});b.appendChild(c);b=Mg("iv-endcap-action",c);this.G.R(this.B,"click",this.H);$R(this.B,b);this.o=Mg("iv-endcap-countdown-inner",
c);null!=this.o&&Iq(this.o,"stroke-dasharray","0 "+o0)},fga=function(){var a="",b=ra("Your video will play after this ad.");
return xS(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))},q0=function(){G.call(this);
this.B=rS(fga);this.o=0},r0=function(a){a.o&&(Td(a.o),a.A(v))},s0=function(a){jc.call(this,a)},t0=function(a){J.call(this);
this.C=a;this.M=new Ie;this.J=-1;this.K=this.O=!1;this.G=""},u0=function(a){this.o=!1;
this.mute=a.If();this.volume=a.Ed()},v0=function(a){null!=a.A&&a.A.dispose();
null!=a.o&&a.o.Lf();null!=a.F&&a.F.dispose();a.F=null;null!=a.H&&a.H.dispose();a.H=null;a.M.clear();a.J=-1;a.G="";a.O=!1;a.K=!1},w0=function(a,b,c,d){if(!c||null==a.M.get(b)){d&&!a.K&&(b="error");
a.M.set(b,!0);a:{c=b;if(a.B&&a.B.o.B){if("click"==c)break a;"videoLearnMoreClicked"==c&&a.C.o(new jc("click"))}d=gga[c]||null;null!=d&&null!=a.o&&a.o.jm(d);a.C.o(new jc(c))}a.$(b)}},x0=function(a){0>a.J||a.O||!a.o.Fg(a.J)&&!a.o.Te()||!a.K||(a.O=!0,w0(a,"engagedview",!0,!0),a.$(new s0("viewCount")))},y0=function(a){x0(a);
if(W()){var b=a.C;if(!(b.L&&Ke(b.B,"skip")||0>b.D))for(var c=QU(b.C,"progress"),d=b.D;d<c.length;d++){var e=c[d];b.D=d+1;wO(e.getUrl(),b.A)}}w0(a,"complete",!0,!0)},z0=function(a){D_.call(this,a);
this.F=this.A=null;this.Y=!1;this.O=new t0(this.D);this.fa=this.ua=this.ia=this.W=!1;this.ma=this.U=1;this.L=null;this.Ia=new q0;this.ka=new Pj;this.Ja=!1;this.aa=[];this.da=!1;this.Fa=!JO()&&nO(lO(),9416126)},A0=function(a,b){var c=Rd(function(){this.ka.remove(c);
b.call(this)},0,a);
Oj(a.ka,c)},B0=function(a){Mb(a.A);
a.A=null;Mb(a.O);Mb(a.D);a.ia=!1;a.fa=!1},C0=function(a){a.gh();
E_(a)?a.start():a.stop()},iga=function(a){if(!E_(a))return!1;
var b=a.C.Ud();if(null==b)return!1;var c=H_(a),d;if(d=c.H?c.H.o.Ug()?c.H.o.Al():c.H.getContent():"")hga(a,b,d);else if(gW(c)&&c.B.Db("enable_ad_video_end_renderers")){d=rW(c);var e=!c.B.Db("ad_video_end_disable_auto_open_drawer");a.F=new p0(a.o,b,c.da[0],d,e);K_(a).R(a.F,"click",y(a.yo,a,null));a.A&&r_(a.A,!0);a.C.jd();a.F.start();O_(a,"video_card_endcap_impression")}null!=a.F&&(K_(a).R(a.F,"timeUpdate",a.Uq),K_(a).R(a.F,"end",a.Qw));return null!=a.F},hga=function(a,b,c){UO.getInstance().o(34,{evt:"start"},
!0);
var d=O("div");L(d,"controls");var e=O("div");L(e,"adDisplay");L(e,"endslate");e.innerHTML=c;(c=eh(e)[0])&&Iq(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&K_(this).R(a,"click",y(this.yo,this,b))},a);
d.appendChild(e);e=new dX;Wda(e,rW(H_(a)));e.B=0;e.A=0;a.F=new z_(d,e,1,{},!0);K_(a).R(a.F,"skip",a.zo);Yg(b,a.F.getContainer());a.C.jd();a.F.start();O_(a,"video_card_endcap_impression");a.A&&(Pfa(a.A),p_(a.A))},E0=function(a,b){D0(a);
null!=a.o&&a.o.np();a.na("complete");O_(a,b);N_(a,"instreamAdComplete");C0(a)},D0=function(a){a.F&&(a.F.dispose(),a.F=null);
a.A&&r_(a.A,!1);a.Y=!1},F0=function(a){var b=E_(a)?H_(a).F:null;
if(b){var c;a:{if(E_(a)&&(c=vW(a.H),null!=c))break a;c=""}var d;a:{if(E_(a)&&(d=wW(a.H),null!=d))break a;d=""}var e=H_(a).B;(c||d||e.allowAdsPayCreator)&&a.o.pl(b,c||null,d||null,e.allowAdsPayCreator)}},G0=function(a,b,c,d){b=QU(b.o,c);
kb(b)||(a[d]=b[0].getUrl())},H0=function(a,b,c){b=c.getExtension(b);
null!=b&&(G0(a,b,"annotation_click","cta_annotation_clicked"),G0(a,b,"annotation_close","cta_annotation_closed"),G0(a,b,"annotation_start","cta_annotation_shown"))},jga=function(a,b){var c=fW(b)&&!b.P?WV(b):null,d=null!=IV(b)&&!JV(b),e=null!=a.A&&a.A.o.A,h=b.B,k=fS(a.cp());
if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var l=LV(b),m;a.A?(m={},H0(m,"AdSense",b),H0(m,"dart",b),H0(m,"DFP",b)):m=null;return new uT(l,c,0,m,e,d,a.B.loadVideoTimeout,h?h.Fi:!1,!1,$V(b),a.B.Uf,k,h?h.Db("legacy_autoplay_flag"):!1)},kga=function(a){var b=0,c=0;
F(a.ads,function(a){!J_(a)||W()&&0!=c||(c++,b+=kW(a))},a);
var d=1;F(a.ads,function(a){var b=a.C;b.C=c;J_(a)&&(b.A=d,b.D=d,d++)},a)},I0=function(a){var b=a.A;
return b&&b.M&&(b=b.D,!kb(b)&&b[0]instanceof kV)?b[0].ed():qW(a)},K0=function(a,b){if(!J_(b))throw EO(J0);
var c=b.o;if(!C(E(null)))return new jV("","","",0,0,0,0,0,null,"");var d=I_(b),e=a.o.kr(d,a.B.bitrate,a.B.Rg||[],null!=b&&(W()||a.C.Ii()||a.C.kl()||JO()));lga(d,a.B.bitrate,e,QV(b));if(null!=e)return c.ka=e;try{mga(a,b)}catch(h){}throw EO(nga);},mga=function(a,b){if(UO.getInstance().A){var c=new Pj,d=!1;
F(I_(b),function(a){Oj(c,a.o);"VPAID"==a.A&&(d=!0)},a);
var e=a.o.Rk(),e={aid:WV(b),mt:c.Na().join(","),smt:e.join(","),hvp:d,st:aW(b).join(",")};UO.getInstance().o(28,e)}},lga=function(a,b,c,d){if(!W())try{var e=fi(a,function(a){return a.be}),h=fi(a,function(a){return a.o});
a={};a.brs=e.join(",");a.mts=h.join(",");a.pubbr=b;a.selbr=null===c?-1:c.be;a.selmt=null===c?"":c.o;a.ic=!1;a.nat=!1;a.iyh=sO(c.getUrl())?"1":"0";a.as=d;UO.getInstance().o(22,a)}catch(k){}},L0=function(a,b){b in a.aa||(a.aa.push(b),a.na(b))},N0=function(a,b,c){b.getMessage();
b.getErrorCode();M0(a,c);a.gh();E_(a)?(FO(EO,a,b,c,void 0),a.start()):(GO(a,b,c),a.stop())},M0=function(a,b){var c=EO(O0,b),c=pX(c,H_(a),a.o),d=RV(H_(a));
AO(d,c)},P0=function(a){if(fO.o){var b=I0(H_(a));
null!=b&&vO(b)}a.na("click")},Q0=function(a,b){Tb(oga,b)&&um(K_(a),a.O,b,a.Rq,a)},R0=function(a){if(!a.da){var b=H_(a),c=b.F;
if(uW(b)&&!W()&&!a.C.Ii()&&c){var b=a.o.getCurrentTime(),d=a.o.Dd(),e=new N("//s.youtube.com/s");xf(e,"ns","yt");xf(e,"el","adunit");xf(e,"docid",c);xf(e,"eurl",window.document.URL);xf(e,"len",d.toFixed(2));xf(e,"tv","1");xf(e,"ps","trueview-instream");xf(e,"st",b.toFixed(2));xf(e,"et",b.toFixed(2));xf(e,"rt",b.toFixed(2));wO(e.toString());a.da=!0}}},pga=function(a){var b=H_(a).U;
if(null!=b){var b=b.videoId,c=a.B.baseYouTubeUrl;if(C(E(b)))b=null;else{var c=new N((null!=c?c:"//www.youtube.com/")+"watch"),d=c.o;d.set("v",b);rf(c,d);c.J="action=share";b=c.toString()}null!=b&&(vO(b),a.qr())}},qga=function(a){a=S0(a)||T0(a);
null!=a&&xO(a,"sharebuttondisplayed")},S0=function(a){a=H_(a).getExtension("AdSense");
return null!=a?new N(a.B):null},T0=function(a){if(a=H_(a).o)if(a=fV(a,"start"),!kb(a))return new N(a[0].getUrl());
return null},rga=function(a){var b=H_(a),c=b.U;
null!=c&&(b=eS(c.videoId,null!=IV(b),a.B.baseYouTubeUrl),null!==b&&(a.o.pause(),vO(b)))},U0=function(a){A0(a,function(){this.na("skip");
C0(this)})},V0=function(a,b){$fa(b,function(a){a=new j0(a);
E_(this)&&H_(this).F==a.videoId&&(sga(this,a),!C(E(a.channelId))&&a.isListed&&aga(a.channelId,function(a){a=new i0(a);if(null!=this.A){var b=this.A,c=a.A;b.o.Z=!C(E(c));b.o.ea=c;if(null!=b.F){var c="",k=ra("by {$userDisplayName}",{userDisplayName:""+b.o.ea});mh(b.F,(new DS(c+(""+k),void 0)).getContent())}n_(b);b=this.A;c=a.o;b.o.W=!C(E(c));null!=b.L&&(k=window.document.createElement("img"),k.setAttribute("src",c),L(k,"videoAdUiAuthorIconImage"),b.L.appendChild(k),null!=b.G&&L(b.G,"videoAdUiTitleWithAuthorIcon"),
null!=b.F&&L(b.F,"videoAdUiAuthorNameWithAuthorIcon"));n_(b)}E_(this)&&(H_(this).O=a,this.na("youTubeChannelMetadata"));if(a=this.A)a=H_(this),b=a.U,a=W()&&kb(TV(a))&&null!=a.O&&null!=b&&b.isListed;if(a){a=H_(this);K_(this).R(window,"message",this.tx);var b=H_(this),c=b.O.channelId,k=LV(b),l=this.B.contentId,m=this.B.baseYouTubeUrl,m=new N((null!=m?m:"//www.youtube.com/")+"ad_companion"),n=m.o;n.set("adformat",k);n.set("p",c);n.set("render","video_wall_companion");l&&n.set("content",l);c=new uY("1",
new te(300,250),"IFrame",null,m.toString());c.O=b;c.D=!0;a.J=[new oY(c,[],null)];M_(this,a)}},this))},a)},sga=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;
c.o.G=!C(E(d));c.o.title=d;W0.test(Vf(c.o.title,void 0));null!=c.G&&mh(c.G,c.o.title);n_(c);c=a.A;null!=c.ma?mh(c.ma,VS()):null!=c.J&&mh(c.J,VS())}E_(a)&&(H_(a).U=b,a.na("youTubeVideoMetadata"))},X0=function(a){var b=H_(a).O;
if(null!=b){var c;c=a.B.baseYouTubeUrl;b=E(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.o.pause(),vO(c))}},tga=function(a){var b=JW.getInstance();
if(b.A){var c={};if(null!=a.L){var d=(new N(a.L.getUrl())).A;if(null!=d){var d=bb(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.L.ce;c.cd3=a.L.o;c.cd5=b.o;c.cm2=a.B.bitrate;c.cd2=sO(a.L.getUrl())?"1":"0";d=a.L.getWidth();e=a.L.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.o&&(d=a.o.bd(),c.cd4=d.width+"x"+d.height);a=a.L.G;C(E(a))||(c.cd7=a)}b.end("bt",c)}},Y0=function(a,b){jc.call(this,"vpaidEvent");
this.sessionId=b},Z0=function(a){D_.call(this,a);
this.Ia=this.Fa=this.ka=!1;this.da=[];this.U=Xa();this.A=null;this.F=!0;this.ia=-1;this.fa=new Pd(500);this.ma=this.W=-1;this.Y=1;this.ua=this.Ja="";this.aa=!1;this.O=2==fO.D},a1=function(a){var b=UV(H_(a)),c=E(qW(H_(a))),d=sW(H_(a)),c={desiredBitrate:a.B.bitrate,
creativeData:b,viewMode:a.K,clickThroughUrl:c,adUrl:d};sW(H_(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.B.surveyCreativeData&&(c.creativeData=a.B.surveyCreativeData);$0(a,"initAd",c);F(a.da,function(a){$0(this,a.type,a.params)},a);
a.ka=!0;a.da=[]},b1=function(a,b,c){c=c||null;
a.ka?$0(a,b,c):a.da.push({type:b,params:c})},$0=function(a,b,c){c=c||{};
c.session=a.U;c.type=b;a.O?window.parent.postMessage(ee(c),"*"):null!=a.L.contentWindow&&a.L.contentWindow.postMessage(ee(c),"*")},c1=function(a,b,c,d){d=EO(b,c,d);
var e=pX(d,H_(a)),h=RV(H_(a));AO(h,e);b.message=d.getMessage();GO(a,b,c)},f1=function(a,b){if(w(b.type))switch(b.type){case "friendlyReady":a1(a);
break;case "videoCall":switch(b.func){case "load":case "play":a.C.Sg();a.ua!=b.src&&(a.ua=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.W=b.duration;break;case "returnRemainingTime":a.ia=b.remainingTime;break;case "AdClickThru":N_(a,"click");a.na("click");break;case "AdDurationChange":a.W=b.duration;a.ia=b.remainingTime;H_(a).o.Zf(a.W);a.na("durationChange");break;case "AdError":c1(a,d1,Error(b.message));a.stop();break;case "AdExpandedChange":a.na("expandedChanged");
break;case "AdImpression":var c=H_(a);kb(TV(c))||M_(a,c);a.na("impression");break;case "AdLinearChange":c=b.isLinear;!a.F&&c?(a.na("contentPauseRequested"),b1(a,"becameLinear")):!c&&a.F&&(a.na("contentResumeRequested"),b1(a,"becameNonlinear"),b1(a,"getAdRemainingTime"),b1(a,"getAdDuration"));a.F=c;var d=H_(a);d.fa=!0;d.ia=c;a.na("linearChanged");break;case "AdLoaded":Td(a.ma);a.Fa=!0;d=b.companions;c=H_(a);kb(TV(c))&&(d=CY(d,c.o.o),kb(d)||CV(c,d));e1(a);O_(a,"loaded");break;case "AdPaused":a.aa=!0;
O_(a,"pause");break;case "AdPlaying":a.aa=!1;O_(a,"resume");break;case "AdRemainingTimeChange":a.ia=b.remainingTime;break;case "AdSkipped":O_(a,"skip");break;case "AdSkippableStateChange":O_(a,"skippableStateChanged");break;case "AdStarted":N_(a,"impression");N_(a,"creativeview");a.na("start");break;case "AdStopped":N_(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.F?N_(a,"acceptinvitationlinear"):N_(a,"acceptinvitation");break;case "AdUserMinimize":N_(a,"collapse");break;case "AdUserClose":O_(a,
"userClose");break;case "AdVideoComplete":O_(a,"complete");break;case "AdVideoFirstQuartile":O_(a,"firstquartile");break;case "AdVideoMidpoint":O_(a,"midpoint");break;case "AdVideoStart":N_(a,"start");break;case "AdVideoThirdQuartile":O_(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.Y&&a.na("volumeChange");0==c&&0!=a.Y?(N_(a,"mute"),a.na("mute")):0==a.Y&&0!=c&&N_(a,"unmute");a.Y=c;a.A.setVolume(c);break;case "Ping":wO(b.url)}},g1=function(a,b){$0(a,"wrapperCall",{messageType:b})},
e1=function(a){a.Fa&&a.Ia&&(b1(a,"startAd"),a.fa.start(),a.F||(b1(a,"becameNonlinear"),b1(a,"getAdRemainingTime")),b1(a,"getAdDuration"))},h1=function(a){this.o=a},i1=function(a,b,c,d,e,h,k){J.call(this);
this.C=this.F=0;this.J=a;this.sc=b;this.ia=c;this.D=null;this.K=d;this.Z=h;this.U=fO.A;this.o=null;this.aa=this.ea=-1;this.W="normal";this.M=null;this.G=e;this.A=[];this.fa=this.O=this.da=this.L=!1;this.Y=k;uga(this)},j1=function(a,b,c,d){a.ea=b;
a.aa=c;null!=d&&(a.W=d);null!=a.o&&a.o.ad(b,c,d)},uga=function(a){F(a.J,function(a){a=new N(a.B.o);
var c=a.o.get("max_ad_duration");p(c)||a.o.get("pmxd")})},k1=function(a){return a.F<a.J.length&&null!=a.J[a.F]},vga=function(a,b){var c;
if(c=W()&&!kb(b)&&0==a.sc)c=b[0],c=null!=c&&null==sW(c)&&jW(c,"nonlinear");return c?(c=ZV(b[0]),"ADSENSE"==(0<c.length?c.pop():QV(b[0])).toUpperCase()):!1},m1=function(a){!k1(a)||2<=a.A.length-a.C?a.da||(a.$("adBreakInitialized"),a.da=!0):l1(a)},l1=function(a){var b=a.J[a.F];
um(a.H,a.K,"adsLoaderSdkAdLoaded",a.Yp,a);fO.A="on_master_ad";Hfa(a.K,b.B,b)},wga=function(a){null==a.sc||xh(a.A,function(a){return!a.A})||(a.A=Zd(a.A,function(a){return!(a.A&&!a.B)}))},r1=function(a){var b;
a:{if(a.C<a.A.length&&(b=a.A[a.C].o,!kb(b))){b=null!=b[0]&&null==EV(b[0]).rm;break a}b=!1}if(b){b=a.A[a.C];try{if(a.O||(n1(a),a.o=o1(a,b.o),p1(a)),a.o.init(a.W),null!=a.M&&a.o.setVolume(a.M),q1(a.o))a.$("contentResumeRequested"),a.G.jd(),a.o.start(),null!=a.D&&a.D.start();else{var c=a.o;if(null!=c&&c instanceof z0)a.G.Sg(),a.o.start();else{var d=a.o;if(null!=d&&d instanceof Z0)a.G.jd(),a.o.isLinear()?a.G.Sg():a.$("contentResumeRequested"),a.o.start();else{var e=a.o;if(null!=e&&e instanceof d0)a.G.jd(),
a.o.isLinear()||a.$("contentResumeRequested"),a.o.start();else throw Error("Unknown ads manager type.");}}}}catch(h){a.C++,r1(a)}k1(a)&&l1(a)}else a.$("contentResumeRequested"),s1(a)},o1=function(a,b){var c=WZ(b);
c.G=a.Y;null!=a.B&&(a.B.dispose(),a.B=null);a.B=new sm(a);um(a.B,c,"companionBackfill",a.Zp,a);c.Wc(new h1(a.G),{currentTime:0},a.Z);c.ad(a.ea,a.aa,a.W);return c},n1=function(a){a.G.ha();
null!=a.D&&(a.D.dispose(),a.D=null);null!=a.B&&(a.B.dispose(),a.B=null);null!=a.o&&(a.o.destroy(),a.o=null)},p1=function(a){if(null==a.o)throw Error("The current ads manager is not defined");
var b=a.o;um(a.B,b,"adError",a.Hz,a);um(a.B,b,t1,a.Zp,a);a.B.R(b,["allAdsCompleted"],v);um(a.B,b,"contentPauseRequested",a.ty,a);um(a.B,b,"contentResumeRequested",a.uy,a);um(a.B,b,"userClose",a.vy,a);um(a.B,b,"autoClose",a.ry,a);q1(a.o)&&(b=a.getCurrentAd(),null==b||!mW(b))&&(b=H_(a.o).o.wa,0<b||a.Z.bo)&&(0>=b&&(b=15),null!=a.D&&a.D.dispose(),a.D=new Pd(1E3*b),ym(a.B,a.D,"tick",a.vB,a))},q1=function(a){return null!=a&&a instanceof T_},s1=function(a){a.L=!1;
a.$("allAdsCompleted")},xga=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;
F(a.A,function(a,b){var h=a.o;ib(h,c);d+=h.length;b<this.C&&(e+=h.length)},a);
b=c.C;var h=e+b.D;b.C=d+(a.J.length-a.F);b.A=h;b.B=a.ia;b.o=a.sc}},u1=function(a){jc.call(this,a);
this.o=null},v1=function(a,b,c){J.call(this);
this.o=a;this.B=[];this.F=null!=c&&fa(c.backlog)?c.backlog:!1;this.H=null!=c&&ga(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.C=null;this.A=!1;yga(this,b)},zga=function(a){this.o=a;
this.B=this.A=!1},w1=function(a){a.o.start();
a.A=!0},x1=function(a){null!=a.C&&(a.C.dispose(),a.C=null);
a.o.stop();a.A=!1},Aga=function(a){if(a.A){var b=eb(a.B,function(a){return-1==a.o},a);
null!=b&&y1(a,!0,b)}},yga=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);
Hb(this.B,new zga(a),function(a,b){return zb(a.o,b.o)})},a)},Bga=function(a,b){for(var c=[],d=0;d<a.B.length;d++){var e=a.B[d];
-1!=e.o&&e.o<=b&&nb(c,e)}return c},Cga=function(a,b){for(var c=0;c<a.B.length;c++){var d=a.B[c];
if(-1!=d.o&&b>=d.o-a.H&&b<d.o&&!a.B[c].A)return d}return null},z1=function(a){a.$(new u1("contentTrackingError"))},y1=function(a,b,c){if(null!=c){if(!c.A){var d=new u1("requestAds");
d.o=c.o;a.$(d);c.A=!0}b&&!c.B&&(b=new u1("playAds"),b.o=c.o,a.$(b),c.B=!0)}},A1=function(a,b){G.call(this);
this.C=a;this.o=-1;this.B=b},B1=function(a,b){if(0==b.sc||0>=a.B||0>=a.o)return!1;
var c=K()/1E3,d=b.sc-a.C.currentTime;0<d&&(c+=d);return c-a.o<=a.B},VZ=function(a,b){D_.call(this,[]);
this.ia=a;this.M=new Ie;this.F=this.A=null;this.Y=new Wn;this.L=null;this.W=b;this.ma=this.aa=!1;this.O=null;this.da=this.fa=-1;this.ka=null;this.ua=0;this.U=!1},E1=function(a,b){a.U=!1;
a.uf(b);0==b.sc?a.Ji():(-1==b.sc?(C1(a)||!W()&&a.aa)&&D1(a):w1(a.F),a.L=null)},F1=function(a){null!=a.J&&(a.J.dispose(),a.J=null);
a.aa=!1;null!=a.F&&x1(a.F)},G1=function(a){if(null==a.L){var b=Zn(a.Y);
if(null!=b){a.L=b;var c=a.M.get(a.L.o);if(null==c)a.L=null,G1(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.L=null,G1(a);else if(null!=a.ka&&B1(a.ka,c))a.L=null,G1(a);else if("requestAds"==b.type)a.U?(a.Y.isEmpty()||"playAds"!=$n(a.Y).type||Zn(a.Y),E1(a,c)):(b=K_(a),um(b,c,t1,a.$,a),um(b,c,"adError",a.Fo,a),um(b,c,"allAdsCompleted",a.Wp,a),um(b,c,"contentPauseRequested",a.bp,a),um(b,c,"contentResumeRequested",a.Ji,a),um(b,c,"userClose",a.zy,a),um(b,c,"autoClose",a.yy,a),um(b,c,"adBreakInitialized",
a.Xp,a),c.init(a.fa,a.da,a.K));else if("playAds"==b.type)if(null!=a.A&&a.A.ib()&&a.uf(a.A),a.U)E1(a,c);else if(a.A=c,a.A.setVolume(a.volume),j1(a.A,a.fa,a.da,a.K),a.A.O){c=a.A;if(c.C<c.A.length){b=c.A[c.C];n1(c);try{c.o=o1(c,b.o),p1(c)}catch(d){c.C++,r1(c)}}a.na("contentResumeRequested");a.F.getCurrentTime()>=a.ua?null!=a.A&&a.A.start():a.L=null}else a.A.start()}}},D1=function(a){a.ma||(a.ma=!0,a.W.o=!0,a.na("allAdsCompleted"),-1==a.O&&H1(a))},H1=function(a){nO(lO(),41351033)||TT.clear();
null!=a.G&&(a=a.G.Oe(),null!=a&&WT(a,TT.o))},C1=function(a){return 0==a.M.Na().length},Dga=function(){},WZ=function(a){if(kb(a))throw Error("Ads manager creation failure, no ads.");
var b=a[0],c=HV(b)&&W(),c=0!=fO.D||c;switch(null!=sW(b)&&c?"vpaid":lU&&null!=(null===b.o?null:b.o.Ni())&&0!=fO.D?"flash_vpaid":fW(b)&&null==sW(b)&&jW(b,"nonlinear")?"overlay":jW(b,"linear")?"video":jW(b,"nonlinear")&&null==sW(b)?"overlay":null){case "overlay":return fW(b)?new W_(a):new T_(a);case "video":return new z0(a);case "vpaid":return new Z0(a);case "flash_vpaid":return new d0(a)}throw Error("Ads manager creation failure, failed to determine ad type.");},I1=function(a){J.call(this);
this.A=a;a=new zW(new QT);this.o=new SZ(new Dga,a,TT);this.o.R("adsManagerLoaded",this.$,!1,this);this.o.R("adError",this.$,!1,this);this.o.R("adLoadError",this.$,!1,this)},J1=function(a,b,c){Laa();
var d="",e=MP(),h=e.A,e=e.o;h&&h.url?d=h.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.Bc=BT(b.o,a.A.B);b.um=a.A.H;Gfa(a.o,b,c)},K1=function(a,b){RL.call(this,a,b)},L1=function(a){this.app=a;
jq.call(this,a.Qa)},M1=function(a,b,c){this.X=a;
this.o=b||"";this.B=c||null;this.C=!1},N1=function(a,b){var c=a.X;
if(c.Ca&&("detailpage"==c.Aa||"leanback"==c.Aa||"embedded"==c.Aa&&(c.K&&c.Ia||c.experiments.B))&&!a.C){a.C=!0;pi("TIMING_ACTION")||oi("TIMING_ACTION",a.X.csiPageType);a.X.wa&&oi("CSI_SERVICE_NAME",a.X.wa);if(a.B){var c=a.B.C,d;for(d in c)Bv(d,c[d],a.o);d=a.B.B;for(var e in d)Ev(e,d[e],a.o);e=a.B;e.C={};e.B={}}if(e=wh("visibilityState",window.document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}Ev("yt_vis",d,a.o)}Ev("yt_pt","html5",
a.o);b&&!Cv("pbs",a.o)&&a.A("pbs",b);e=a.X;("detailpage"!=e.Aa||"blazer"==e.o)&&Cv("_start",a.o)&&Av(a.o)}},P1=function(a,b){this.B=a;
this.A=ga(b)?b:null;if(jb(O1,this.B)){if(!ga(this.A)||0>this.A)throw Error("Must have valid offset");}else if(null!==this.A)throw Error("Must not have offset");},Q1=function(a){var b=a.A;
if(null!==b)return b;switch(a.o()){case 1:return 0;case 3:return-1;default:return-100}},Ega=function(a,b){var c=a.o(),d=b.o();
if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.A,h=b.A;return e!=h?null===e?1:null===h?-1:e-h:c-d},S1=function(a,b){return"9t_D9IIh_ZI"==b.W||R1(a,["9418752",
"9418753"])},T1=function(a,b){return jb(a.experiments.experimentIds,b)},R1=function(a,b){return xh(b,pa(jb,a.experiments.experimentIds))},U1=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},V1=function(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";
c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=La(c||"",50),b.error_message=d)}},W1=function(a,b){if(a){var c=YV(a).reverse();
b.ad_id=rb(c,WV(a)).join(",");c=ZV(a).reverse();b.ad_sys=rb(c,QV(a)).join(",");c=$V(a);null!=c&&(b.aqi=c)}},X1=function(a,b){if(a[b])return U1(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return U1(a[d]);return!1},Y1=function(a){var b="";
a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b},Z1=function(a,b,c){var d=new WO;
d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.Y;d.showContentThumbnail=a.showContentThumbnail;d.Uf={};c.ea&&(d.Uf.ctrl=c.ea);c.da&&(d.Uf.ytr=c.da);c.ka&&(d.Uf.ytrcc=c.ka);c.isMdxPlayback&&(d.Uf.mdx="1");a.ea?(d.kk=!0,d.Lw=!0,d.showContentThumbnail=!1,d.Im=!0,d.Jm=!0,d.useShareButton=!1):a.C&&(d.kk=!0);return d},a2=function(a){var b=new MY;
b.F=a.A.Ca;var c=a.app.G.La();b.Gf=c.width;b.Ff=c.height;b.Ic=c.width;b.Hc=100;a.V();b.xo=!0;b.G=a.V().experiments.experimentIds;b.Db=y(a.V().experiments.ga,a.V().experiments);b.Cf=y(a.V().experiments.dc,a.V().experiments);b.Uk=y(a.V().experiments.D,a.V().experiments);b.allowAdsPayCreator=a.A.allowAdsPayCreator;b.xo?(a.V(),c=mB()):c=-1;c&&(b.H=c);a.A.tagForChildDirected&&(b.Fi=!0);if(T1(a.V(),"9415521")||a.A.xb)b.Gi=!0;c=$1(a);b.Cb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Fga(a),VIS:Gga(a)};
a.V();b.afcRmFallback=a.A.J;T1(a.V(),"9417581")&&(b.D="yt_"+$1(a).videoId);b.language=a.V().O;return b},Fga=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
a.V();return mB().toString()}}},Gga=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:SK(a.V()).toString()}}},b2=function(a,b,c,d){this.A=this.B="";
this.C=a;this.F=b;this.o=c;this.D=d},e2=function(a){var b=c2(a);
b.format="2_3";b.at="2_3";b.trsp="1";d2(a.o,3,b)},c2=function(a){var b={};
b.l_ns=a.F;b.l_state=a.D;b.break_type=a.C.o();b.sst=Q1(a.C);b.sidx=0;a.B&&(b.at=a.B);a.A&&(b.ad_id=a.A);return b},g2=function(){var a=r("yt.www.watch.ads.loadAfc");
ha(a)?a():f2=!0},h2=function(){window.google_ad_output="html";
window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"},j2=function(){var a=r("window.google_show_companion_ad"),b;
b=r("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():i2=!0},k2=function(){var a=r("yt.www.watch.ads.setCompanion");
a&&a()},Hga=function(a){var b=r("yt.www.watch.ads.showForcedMpu");
b&&b(a)},m2=function(a,b,c,d){Gj.call(this);
this.D=!!b;this.G=a;this.A=c||a;this.J=!!d;this.o=new sr(this);this.C=this.H=null;this.F=this.B=!1;b&&(yc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));l2(this)},l2=function(a){a.C=null;
a.H=null;T(a.o,a.A,n2("over"),a.Pr);T(a.o,a.A,"touchstart",a.Um);a.D&&T(a.o,a.A,n2("down"),a.Az)},o2=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];
if(d.identifier==a.H)return d}return null},n2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a},p2=function(a,b){this.A=a;
this.o=b},q2=function(a){return a.o-a.A},r2=function(a,b){return a.A+b*q2(a)},s2=function(a,b,c){return q2(a)?je((b-a.A)/q2(a),0,1):null!=c?c:window.Infinity},t2=function(){this.A=this.position=this.C=this.o=this.D=this.B=this.width=window.NaN},u2=function(a,b,c,d,e){var h=b.Tp/b.rows,k=Math.min(c/(b.Vp/b.Jb),d/h),l=b.Vp*k,m=b.Tp*k,l=Math.floor(l/b.Jb)*b.Jb,m=Math.floor(m/b.rows)*b.rows,n=l/b.Jb,t=m/b.rows,u=-b.Bw*n,x=-b.row*t;
e&&45>=h&&(t-=1/k);a=a.style;a.width=n+"px";a.height=t+"px";e||(d=(d-t)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+u+"px "+x+"px/"+l+"px "+m+"px";if(e)return new te(n,t)},Iga=function(){this.B=!1;
this.A=0;this.o=""},v2=function(a,b,c,d){Gj.call(this);
this.o=a;this.A=d;this.videoData=null;this.adType=c;this.adSystem=b},Jga=function(a,b){this.o=a;
this.A=b||0},w2=function(a){var b=[];
F(a.split("_"),function(a,b){this[b]=Ya(a)},b);
return new Jga(Tb(Kga,b[1])?b[1]:0,Tb(Lga,b[2])?b[2]:0)},Mga=function(){this.clickThroughUrl="";
this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0},x2=function(a){var b;
b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",P("YTP_ADVERTISEMENT")]],["div","ad-container"]];R.call(this,b);this.A=a;this.D=this.G=this.F=null},y2=function(a){a.F||(a.F=a.qa["ad-container"],a.A.V().H&&L(a.F,"ad-container-single-media-element-annotations"));
return a.F},A2=function(a){a.D&&(a.A.V().H?($d(a.D,"ad-video"),z2(a.A.app,a.D),a.D=null):(bh(a.D),Py(a.D)))},B2=function(a){if(!a.G){if(a.A.V().useTabletControls){var b=window.document.createElement("button");
L(b,"video-click-tracking");Zg(b,P("YTP_VISIT_ADVERTISERS_SITE"));var c=window.document.createElement("div");L(c,"video-click-tracking-container");c.appendChild(b);y2(a).appendChild(c)}else b=window.document.createElement("div"),Yd(b,["video-click-tracking","ad-video"]),y2(a).appendChild(b);a.G=b}return a.G},Nga=function(a){this.o=a},Oga=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;
case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0},C2=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;
case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;default:return 0}},Pga=function(a,b){this.D=null;
this.B=window.NaN;this.A=null;this.o=a;this.C=b},D2=function(a,b,c){a.o.S("AD_LOGGING_EVENT",b,c)},G2=function(a,b,c){E2(a);
var d=F2(a);c&&qa(d,c);d.ad_error=b;D2(a,7,d)},F2=function(a){var b={},c=a.o.videoData,d=a.o.C.og(),e=H2(a.o);
W1(a.o.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Xe(e),b.ad_dom=c,a.C.A.C&&(b.ad_v_url=e.substr(0,512)));e=a.o;(e=e.A?e.A.yf():null)&&(b.ad_cpn=e);b.format=a.o.Rc();b.at=a.o.tg();b.ad_mt=Math.round(1E3*Math.max(Qga(a.o),0));return b},E2=function(a){a.D||(a.D="InstreamAdDisplay ("+a.o.Rc()+")")},I2=function(a,b){G.call(this);
this.C=Math.max(0,a);this.B=this.A=0;this.D=b;this.o=window.NaN},K2=function(a,b,c,d,e,h){v2.call(this,b,a,2,c);
this.K=!1;this.G=this.M=this.P=null;this.o.subscribe("control_toggle_play_pause",this.Vs,this);this.o.subscribe("control_play",this.qn,this);this.o.subscribe("control_pause",this.pn,this);this.D=new Pga(this,this.o);this.B=new aA(this);this.C=J2(b);this.C.subscribe("statechange",this.Ts,this);this.C.subscribe("internalAbandon",this.Ps,this);this.C.subscribe("internalvideodatachange",this.Us,this);this.F=this.H=!1;this.O=d;this.L=!!e;this.U=!!h;this.J=new I2(15E3,y(this.Qj,this))},M2=function(a,b){var c=
a.o.V();
if(a.o.A.Y&&"3"==c.B){var c=a.o.app.G,d=c.app.V();KH(d);c.L=!b;L2(c)}},P2=function(a){var b=new Iga;
b.B=a.F;b.A=At();a.videoData&&a.videoData.clientPlaybackNonce&&(b.o=a.videoData.clientPlaybackNonce);oL(J2(a.o));N2(a.o,0,b);O2(a.o,0);a.S("adEnd",a);M2(a,!0)},Q2=function(a,b){a.o.V().experiments.ga("html5_ad_error_releases")?oL(a.C):a.C.$f();
N2(a.o,0);a.S("adError",b)},R2=function(a){return a.videoData&&a.videoData.B?a.videoData.B.mimeType:null},H2=function(a){return a.videoData&&a.videoData.Vf?Yv(a.videoData.Vf.A()):null},Qga=function(a){return a.C?a.C.getCurrentTime():0},Rga=function(a,b){this.o=a;
this.C=b;this.o.Rc();this.B=this.D=0;this.A=null},S2=function(a,b,c){a.o.S("AD_LOGGING_EVENT",b,c)},T2=function(a){var b={};
W1(a.o.getCurrentAd(),b);a.D&&a.B&&(b.ot=a.B-a.D);var c;c=a.C.Oa()?2:a.C.app.wa?1:0;b.ad_ps=c;b.format=a.o.Rc();b.at=a.o.tg();return b},U2=function(a,b,c,d){v2.call(this,b,a,1,c);
this.B=null;this.F=!1;this.H=null;this.D=new Rga(this,b);this.C=new aA(this);this.G=!!d},V2=function(a,b){a.H!=b&&(a.H=b)},W2=function(a,b,c,d){G.call(this);
this.L=null;this.U=a;this.A=b.ab;this.H=b;this.J=b.getId();this.o=c;this.F=d;this.B=new b2(this.A,this.ug(),c,d);this.D=null;this.O=new sm(this);this.C=new sm(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/},X2=function(a){var b=new P1(2,10);
a.A=b;a.B.C=b},Y2=function(a,b){a.L=b;
var c=b.Rc();a.B.B=c},Z2=function(a,b){var c=r("yt.www.watch.ads.setAdId");
c&&c(b);a.B.A=b},$2=function(a){a=Q1(a.A);
return 0==a||-1==a?a:1E3*a},a3=function(a){a.o.V().experiments.ga("log_backfill_requests")&&e2(a.B);
j2()},f3=function(a){var b=a.H,c=a.A;
b.o=a.L;b.ab=c;H(b,b.o);0==b.F&&(a=b.o.tg(),b.B.ea.at=a);b.o instanceof K2?b.A=!0:b.o instanceof b3?b.isVisible=!1:b.o instanceof c3?b.isVisible=!1:b.o instanceof d3&&(b.isVisible=!1);b.C="loaded";e3(b)},Sga=function(a){this.o=a},b3=function(a){v2.call(this,a,2,3,null);
this.D=a.V().experiments.ga("fix_afc_mpu_api_stats_ads");this.F=this.B=this.C=0;this.G=this.D?5:10},g3=function(a){a.C&&(ui(a.C),a.C=0,a.B=0,a.F=0)},h3=function(a,b,c){W2.call(this,2,a,b,c);
this.G=new Sga(this.o.A);h2()},i3=function(a,b,c){this.A=this.B="";
this.J=null;this.D=!1;this.H=this.C="";a&&(this.B=a,this.G=b.ia,this.D=b.fb,this.F=c,b=this.B,c=b.indexOf(";sz="),a=bj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{qw:b[0],bD:b[1],eD:a})&&(this.C=a.qw,this.H=a.bD,this.J=a.eD)},j3=function(a){this.A=a?a:""},d3=function(a,b,c,d){U2.call(this,1,a,b,d);
this.J=c},k3=function(a,b,c){W2.call(this,1,a,b,c);
a=this.o.A;this.Y=a.fa?new j3(a.adTag):new i3(a.adTag,a,this.J)},l3=function(a,b,c,d){k3.call(this,a,b,c|d);
this.P=c;this.K=d;this.G=null;h2()},m3=function(a,b){var c=b.getCurrentAd(),d=ZV(c);
d.unshift(QV(c));for(c=0;c<d.length;++c){var e=Tga[d[c].toUpperCase()];if(e){a.G=e;return}}a.G=0},n3=function(a,b){this.D=[];
this.M=a;this.L=b||null;this.C=this.o=!1;this.B=void 0;this.J=this.P=this.G=!1;this.F=0;this.A=null;this.H=0},p3=function(a,b,c){a.o=!0;
a.B=c;a.C=!b;o3(a)},r3=function(a){if(a.o){if(!a.J)throw new q3;
a.J=!1}},t3=function(a,b,c){s3(a,b,null,c)},s3=function(a,b,c,d){a.D.push([b,
c,d]);a.o&&o3(a)},u3=function(a){return xh(a.D,function(a){return ha(a[1])})},o3=function(a){if(a.F&&a.o&&u3(a)){var b=a.F,c=v3[b];
c&&(aa.clearTimeout(c.o),delete v3[b]);a.F=0}a.A&&(a.A.H--,delete a.A);for(var b=a.B,d=c=!1;a.D.length&&!a.G;){var e=a.D.shift(),h=e[0],k=e[1],e=e[2];if(h=a.C?k:h)try{var l=h.call(e||a.L,b);p(l)&&(a.C=a.C&&(l==b||l instanceof Error),a.B=b=l);if(wd(b)||"function"===typeof aa.Promise&&b instanceof aa.Promise)d=!0,a.G=!0}catch(m){b=m,a.C=!0,u3(a)||(c=!0)}}a.B=b;d&&(l=y(a.K,a,!0),d=y(a.K,a,!1),b instanceof n3?(s3(b,l,d),b.P=!0):b.then(l,d));c&&(b=new w3(b),v3[b.o]=b,a.F=b.o)},q3=function(){sa.call(this)},
x3=function(){sa.call(this)},w3=function(a){this.o=aa.setTimeout(y(this.B,this),0);
this.A=a},y3=function(a,b){var c=b.A;
this.G=c.ua;var d=0,c=c.Z.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);W2.call(this,2,a,b,d)},z3=function(a,b){v2.call(this,a,14,14,b)},A3=function(a,b,c){W2.call(this,14,a,b,c)},B3=function(a,b,c){W2.call(this,14,a,b,c)},Uga=function(a,b,c,d,e){this.C=a;
this.A=b;this.o=c;this.X=this.C.V();this.D=d;this.F=$1(this.C).lengthSeconds;this.G=e;this.B="html5";C3(this)&&"embedded"==this.X.Aa?this.B="html5_embed":GH||ix?this.B="html5_ios":Np("android")?this.B="html5_android":Vp()?this.B="html5_wp":Qp()?this.B="html5_ps3":"leanback"==this.X.Aa?(a=(Xb(window,"environment","brand")||"").toLowerCase(),b=(Xb(window,"environment","model")||"").toLowerCase(),this.B="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):Up()?this.B="html5_wii":C3(this)&&
(this.B="html5_desktop")},F3=function(a){return D3(a.A)?"preroll":E3(a.A)?"postroll":"midroll"},H3=function(a){return(a=a.C.B)?xh(a.B,function(a){return G3(a)||E3(a)}):!1},C3=function(a){return!H3(a)||S1(a.X,a.o)},c3=function(a,b){U2.call(this,4,a,b)},I3=function(a,b,c){W2.call(this,4,a,b,c);
var d=this.o.A;this.G=E(d.$a);var e=$1(this.o)&&$1(this.o).spacecastModule;this.K=new Uga(b,a,d,c,!!e)},J3=function(a,b,c){this.B=a;
this.o=b;this.A=c||0},Vga=function(a){return 0<((a.o|a.A)&3)},K3=function(a,b,c,d,e){Gj.call(this);
this.H=!0;this.A=!1;this.isVisible=!0;this.C="unloaded";this.J=!1;this.F=b;this.B=a;this.ab=c;this.G=d;this.D=this.o=null;this.K=!!e},N3=function(a){return D3(a)?L3(a)&&M3(a)?-0x8000000000000:0:ga(a.ab.A)?1E3*Q1(a.ab):0x8000000000000},Wga=function(a){return D3(a)||a.B.o&&1E3*a.B.o.getCurrentTime()>=N3(a)?!1:Re(a.G,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;
default:return!1}})},L3=function(a){return"loaded"==a.C||"error"==a.C},D3=function(a){return 1==a.ab.o()},M3=function(a){if(!L3(a))throw Error("Preroll status is undefined before ad load.");
return D3(a)&&a.A},G3=function(a){return 2==a.ab.o()},E3=function(a){return 3==a.ab.o()},R3=function(a){a.C="loading";
D3(a)&&!xh(a.G,Vga)&&nq(a.B);if(a.K)a.C="loaded",a.A=!0,e3(a);else{var b=a.G.shift();b?(D3(a)&&O3(a.B,"nl"),b=b.create(a,a.B),H(a,b),b.load()):(d2(a.B,2,P3(a,{})),Q3(a,!1),a.C="error",e3(a))}},S3=function(a){a.o&&(a.o.Ha("adEnd",a.Gs,a),a.o.Ha("adError",a.Hs,a),a.o.Ha("AD_LOGGING_EVENT",a.Js,a),a.o.Ha("select",a.Fs,a),a.o.Ha("adCompanionInitialized",a.Is,a))},e3=function(a){a.S("adBreakComplete",a)},Q3=function(a,b){a.D&&(a.D.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.D.dispose(),a.D=null)},
P3=function(a,b){b.break_type=a.ab.o();
b.sst=Q1(a.ab);b.sidx=0;return b},T3=function(a){var b=0;
a.L&&(b|=1);a.K&&(b|=2);var c=0;a.D&&(a.G&&(c=4),b||a.U||(b=c,c=0));a=new Ie;a.set(3,b);a.set(4,c);return a},U3=function(a,b){var c=[];
if(a.da)return c.push("pla"==(a.Z||"").toLowerCase()?new J3(8,16):new J3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.U&&c.push(new J3(7,16)),c;if(a.M){var d=0;if(a.B||a.F)d|=1;a.P&&(d|=4);a.O&&(d|=8);c.push(new J3(5,d))}d=0;a.H&&(a.B&&(d|=1),a.F&&(d|=2),a.P&&a.D&&(d|=4),a.O&&a.D&&(d|=8));var e=T3(a),h=e.get(3);d&&h&&Xga(a,b)?c.push(new J3(3,d,h)):(d&&c.push(new J3(2,d)),h&&c.push(new J3(1,h)));a.independentBreakOffsets||h&4||!a.U||c.push(new J3(7,16));(d=e.get(4))&&c.push(new J3(1,d));return c},
V3=function(a){this.o=a},W3=function(a){var b=[];
F(Yga(a),function(a,d){var e=this.o,h;h=U3(this.o.A,a.o());e=new K3(e,d,a,h);b.push(e)},a);
return b},Yga=function(a){var b=a.o.A,c=[];
if(b.M&&!S1(a.o.V(),b))c=X3;else if(b.ka){var d=b.ka.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new P1(3):0<e?new P1(2,e):new P1(1);c.push(e)}}else c=X3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new P1(5,Ya(b[a])));Cb(c,Ega);return c},aha=function(a,b){this.X=a;
this.ea=this.X.isMobile;this.Wa=this.X.F;this.C="leanback"==this.X.Aa;this.o=this.ea||this.C;this.Y=!this.C&&!KH(a);this.B=U1(b.instream);this.ia=1==b.livestream;this.F=U1(b.trueview);this.Ka=U1(b.aftv);this.ka=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.wa=b.cafe_experiment_id;this.adTag=b.ad_tag;this.Ja=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.Ma=Zga(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.ma=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.B||this.F)&&!this.X.useMediaVolume;this.Ra=b.cid;this.W=b.docid||b.video_id||b.videoId;this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,10)||
0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds,10)||0;this.Ca=(0,window.parseInt)(b.forced_skip_offset,10);this.Z=b.force_ad_type;this.ua=b.force_ad_url;this.$a=b.freewheel_ad_tag;this.gender=$b($ga,function(a){return a==b.ad_gender});
this.xa=b.dbp;this.J=U1(b.afc_rm_fallback);this.fb=!!b.mpu;this.G=U1(b.afv)&&!this.o;this.K=this.Ka&&this.F;this.L=this.Ka&&this.B&&!U1(b.no_afv_instream);this.H=U1(b.dclk);this.fa=U1(b.gpt_migration);this.da=U1(b.forced_ad)&&!this.o;this.M=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.gb=!!b.fqsf;this.P=U1(b.invideo)&&!this.o;this.O=U1(b.mpu)&&!this.o;jb(this.Ma,"yt_mabv");this.U=!!b.pla;this.jb=U1(b.shortform);this.D=U1(b.sffb);this.Fa=b.ad_language_iso639_2;this.allowAdsPayCreator=!!b.allow_ads_pay_creator;
this.maxDynamicAllocationAdTagLength=(0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.A=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.A)&&(this.A=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.rb=b.pla_ad_tag;fa(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=U1(b.tag_for_child_directed);
this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.aa=this.Ka&&this.D&&!this.G;this.Ea=this.G||this.aa;this.wb=(0,window.parseInt)(b.ad_device,10);this.Ia=b.tpas_video_id;this.Ua=b.tpas_partner_id;this.vmap=b.vmap;this.Eb=this.X.Eb;this.xb=b.post_ad_requests;this.showContentThumbnail=!0},Xga=function(a,b){if(C(E(a.dynamicAllocationAdTag)))return!1;
var c=(a.B||a.F)&&a.H;a.D&&a.H&&(c=c||a.P||a.O);if(!c)return!1;c=a.K||a.L;if(!(c||a.D&&a.G))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.fa?25:102);window.document.referrer&&(d+=wa("ref="+wa(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength},Zga=function(a){if(C(E(a)))return[];
a=(new N(a)).o.get("channel");return null!=a?a.split("+"):[]},Y3=function(a,b){G.call(this);
this.C=a;this.o=new sm(this);H(this,this.o);this.A=null;this.B=!1;this.o.R(b,"companionImpression",this.F);this.o.R(b,"companionClick",this.D)},$3=function(a,b){G.call(this);
this.o=a;this.K=b;this.G=a.o.getVideoData();this.C=[];this.A=0;this.B=window.NaN;this.D=this.F=this.H=0;this.J=!1;var c=a.V().experiments;this.M=c.ga("enable_dynamic_ad_break")&&!!this.G.lengthSeconds&&600<this.G.lengthSeconds;this.P=c.dc("dynamic_ad_break_pause_threshold_sec")||5;this.O=c.dc("dynamic_ad_break_seek_threshold_sec")||120;this.M&&Z3(this.o,this.L,this)},a4=function(a){return(a.o.C?a.J:!!a.o.B&&0==a.o.B.B.length)&&1==a.o.getPresentingPlayerType()},b4=function(a,b){var c=null!=fj(a.o.V().D).debugjs,
d=a.G.videoId,e=a.G.eventId,h=a.A,k;
k=a.C.length?a.C[a.C.length-1]:Math.max(a.K.A(),a.F);k=K()/1E3-k-a.D;c=hj("/gen_204?"+df({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:h,cwt:k,dt:K()/1E3,dab:a.C,paet:Math.max(a.K.A(),a.F),debug:c}),{});Xp(c)},c4=function(a){G.call(this);
this.o=a;this.A=window.NaN;this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.B=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.kt()},d4=function(a,b){a.D[b]&&(lM(a.o.o,[a.D[b]],void 0),delete a.D[b])},e4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.A)||ti(a.A),c=K()+c,a.A=0==d?Aq(y(a.Zs,a,b,c,100),0):Aq(y(a.Ys,a,b,c,100),0))},f4=function(a,b,c){a.o.V();
a=$1(a.o).Vh;b.setVolume(c*a)},g4=function(a){c4.call(this,a)},h4=function(a,b,c){G.call(this);
this.o=a;this.G=b;this.D=c;this.B=-1;this.F=window.NaN;this.D&&0<this.o.A.A&&this.o.subscribe("endseeking",this.C,this)},bha=function(a,b){i4(a);
0<b&&(a.F=ri(y(a.C,a),1E3*b))},i4=function(a){ti(a.F);
a.F=window.NaN},k4=function(a,b){if(!a.D||!G3(b)&&!E3(b))return!1;
var c=a.o.A.A;if(0>=c||0>=a.B)return!1;var d=K()/1E3,e=j4(a,b)-a.o.o.getCurrentTime();0<e&&(d+=e);return d-a.B<=c},j4=function(a,b){return E3(b)?a.o.o.getVideoData().lengthSeconds:Q1(b.ab)},l4=function(a,b){G.call(this);
this.K=this.A=null;this.P=[];this.O=window.NaN;this.B=b;this.J=[];this.C={};this.G={};this.o=a;var c=a.A,d=!c.ia&&xh(this.B,function(a){return G3(a)||E3(a)});
this.F=new h4(this.o,this,d);this.D=c.applyFadeOnMidrolls?new c4(a):new g4(a);this.fa=new $3(this.o,this.F);this.W=xh(this.B,function(a){return D3(a)})},cha=function(a){a.J.length||(a.J=Zd(a.B,function(a){return"unloaded"==a.C}),0==a.J.length?nq(a.o):(a.W||nq(a.o),m4(a)))},m4=function(a){if(a.J.length){var b=a.J.shift();
b.subscribe("adBreakComplete",a.wg,a);b.subscribe("adCompanionInitialized",a.nn,a);R3(b)}},dha=function(a,b){function c(a){return a&&5!=a.ab.o()}
var d=ib(a.B,b),e=ub(a.B,0,d),d=ub(a.B,d+1);return{previous:eb(e,c),next:eb(d,c)}},n4=function(a,b,c){var d=N3(b);
if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=Q1(b.ab)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.D.jt(b,d);c=a.D.ht(b,c);c=new gq(d,c,e);a.G[b.getId()]=c;a.o.bb([c]);a.D.Xs(b)}},o4=function(a,b){var c=b.getId();
a.G[c]&&(d4(a.D,c),lM(a.o.o,[a.G[c]],void 0),delete a.G[c])},r4=function(a,b){if(p(b)){var c=a.Sj(b);
if(c)if(a.A==c&&!c.A&&c.isVisible)c.show();else{if(a.A){if(5==c.ab.o()){a.A.A?a.P.push(b):c.show();return}a.ff(a.A)}if(k4(a.F,c))a.A=null,c=a.G[c.getId()],c.visible||(c.visible=!0,a.o.o.bb([c],1)),a.o.V()&&(T1(a.o.V(),"9412857")||T1(a.o.V(),"9412859"))&&a.Ms();else{5!=c.ab.o()&&(a.A=c);c.subscribe("adBreakComplete",a.mn,a);c.subscribe("adCompanionInitialized",a.nn,a);if(c.A){p4(a.o);var d=a.F.A(),d=0<d?Math.floor(K()/1E3-d):0;q4(a.o,"show_instream_ads",{tfla:d})}a.D.$s(c);c.show()}}}},s4=function(a,
b,c){l4.call(this,a,b);
this.L=[];this.M=[];this.H=[];this.Z=c;this.Y=window.NaN;this.U=a.A.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],Wga(c)){var d=new K3(c.B,c.F,c.ab,c.G,!0);b[a]=d;this.L.push(c)}this.W||this.xg()},u4=function(a){t4(a);
a.Y=ri(y(a.xg,a),1E3*(a.U-10))},t4=function(a){ti(a.Y);
a.Y=window.NaN},v4=function(a,b){l4.call(this,a,b);
this.M=a;this.Z=!0;this.L=[];this.ia=1;this.ea=null;this.U=0},w4=function(a){if(null==a.A&&0<a.L.length){var b=a.L[0];
b.isVisible?(a.Z=a.H.J,a.aa=Math.ceil(K()/1E3),b.subscribe("adBreakComplete",a.Y,a),a.A=b,b.show()):a.Y()}else null!=a.A&&a.U++},eha=function(a,b){this.G=a;
this.A=b;this.J=K();this.F=0;this.o=a.A;this.D={};this.H=new Nga(a);var c=[];this.o.M&&this.o.B&&c.push("4_2");this.o.H&&(this.o.B&&c.push("1_2"),this.o.F&&c.push("1_2_1"),this.o.P&&c.push("1_1"),this.o.O&&c.push("1_3"));this.o.K&&c.push("2_2_1");this.o.L&&c.push("2_2");this.o.G&&c.push("2_1");(this.o.Ea||this.o.J)&&c.push("2_3");this.o.U&&c.push("14_14");this.C=c.join(",");this.B="";this.D.allowed=this.C;(c=this.o.excludedAds)&&(this.D.ex_ads=c)},fha=function(a){this.o=a},x4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;
var b=0;F(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b},z4=function(a,b,c){G.call(this);
this.A=a;this.B=b;this.H=c;this.C=this.F=-1;this.o=y4(this.B.Yd());a=this.B.Yd();a.length&&(a=a[a.length-1],-1==a&&this.A.bb([this.o[a]]));0<this.A.A.A&&this.A.subscribe("endseeking",this.D,this)},gha=function(a,b){A4(a);
0<b&&(a.C=ri(y(a.D,a),1E3*b))},A4=function(a){-1!=a.C&&(ti(a.C),a.C=-1)},y4=function(a){if(!a.length)return{};
for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new gq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new gq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b},B4=function(a){0<a.A.A.A&&(a.F=K()/1E3,a.D())},C4=function(){G.call(this)},D4=function(a){G.call(this);
this.o=a;this.A=window.NaN;this.B={};this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.H=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.K=1E3*this.o.o.getVideoData().lengthSeconds;this.J=this.C+this.H;Z3(this.o,this.Ft,this)},E4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.K},hha=function(a){a=a.getAttribute("breakType");
return!!a&&xh(a.split(","),function(a){a=Ra(a);return"linear"==a})},iha=function(a,b){if(!E4(a,b))return null;
var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=(0,window.parseFloat)(Pa(b/1E3,2,d)),h=Math.floor(e/60),k=Math.floor(h/60),h=h%60,d=Pa(e%60,2,d);c=d=k||c?k+":"+Pa(h,2)+":"+d:h+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c},kha=function(a,b){var c=Math.max(Math.abs(a.C),Math.abs(a.J));
F(b,y(function(a){var e=xh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),h=jha(this,a);
if(e||!h)return!1;this.B[h]=a},a));
return 0<Sb(a.B)},jha=function(a,b){var c=1E3*Math.round((b+a.J)/1E3),d=b+a.C,e=b+a.G;
return E4(a,b)&&E4(a,c)&&E4(a,d)&&E4(a,e)?c:null},F4=function(a,b,c,d){0>=c||(d=0==d?a.Et:a.Dt,c=K()+c,a.A=Aq(y(d,a,b,c,100),0))},G4=function(a,b,c){a.o.V();
a=$1(a.o).Vh;b.setVolume(c*a)},H4=function(a){G.call(this);
this.J=this.B=this.C=this.H=this.A=null;this.M=this.K=!1;this.o=a;this.G=null;this.P={};this.O=new sm(this);this.F=new sm(this);this.L=this.D=null},lha=function(a,b,c){a=a.cloneNode(!0);
a.setAttribute("timeOffset",b);F(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,h,k;"end"==b?(e="post",h=-1,k="postroll"):(e="mid",h=x4(b).toString(),k="midroll");var l={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":h,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a},mha=function(a,b){var c=Yz(b),d=c.childNodes[0];
if(!d)return b;var e=eb(eh(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var h=eb(eh(e),function(a){return"Extensions"==a.localName}),k=h?eh(h):[],k=eb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),h=(h=h.removeChild(k))?eh(h):[],l=e,m=1;
F(h,function(a){a=a.getAttribute("timeOffset");a=lha(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}h=a.D.xt(d);h||(Mb(a.D),a.D=new C4);return e||h?Zz(c):b},nha=function(a){var b=Z1(a.o.A,a.o.V(),$1(a.o));
b.Mw=!0;b.bo=!1;b.Wq=10;b.$l=a.D.vt();return b},I4=function(a,b){var c=a.J?a.J.A():0,c=0<c?Math.floor(K()/1E3-c):0;
q4(a.o,b,{tfla:c})},oha=function(a,b){var c=EV(b),d=J4(b);
if(X1(c,"rm")&&a.o.A.J)return a.C=new b3(a.o),a.C.show(),!1;if(X1(c,"blockAllAds"))return a.A.sendImpressionUrls(),a.C=new d3(a.o,a.A,1,!0),!1;if(X1(c,"hideMaster")&&14!=d)return a.C=new d3(a.o,a.A,0,!0),!1;c=a.A;14==d?(a.C=new z3(a.o,c),K4(a,b)):a.C=new U2(d,a.o,c,!0);a.C.show();a.K=!1;return!0},K4=function(a,b){h2();
j2();if(b&&a.o.V().experiments.ga("log_backfill_requests")){var c=b.C.o,d=1;-1==c?d=3:0<c&&(d=2);c=14==w2(LV(b)).o?16:4;e2(new b2(new P1(d),KV(b),a.o,c))}},M4=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.o.A;
!c.o&&c.Ea&&(a.C=new b3(a.o),a.C.show());L4(a)}},N4=function(a){a.C&&(a.C.dispose(),a.C=null)},J4=function(a){var b=ZV(a);
a=0<b.length?b.pop():QV(a);a=pha[a.toUpperCase()];return null!=a?a:0},L4=function(a){a.M||(nq(a.o),a.M=!0)},O4=function(a){L1.call(this,a);
this.logEvent=this.ra="ad";this.A=this.B=this.J=null;this.W=this.Z=!1;this.C=this.L=null;fO.o=!0;fO.C=!1;fO.H=!0;a=fO;var b=!Pp();a.F=b;fO.D=0;this.K=null;this.fa={};this.ea={at:"0"};this.G=new x2(this.o);qr(this.o,this.G.element,4);this.aa=this.D=null;this.O=-1;this.Ca=new fha(this);this.P=new sr(this);H(this,this.P);this.U=null},$1=function(a){return P4(a.app)},d2=function(a,b,c){a=a.J;
c=c||{};var d=(K()-a.J)/1E3;c.art=d;d=a.G.V();d.ud&&(c.feature=d.Fa);c.ad_flags=a.o.adFlags;(d=a.o.Ra)&&(c.cid=d);c.mt=a.A.getCurrentTime();(d=mB())&&(c.lact=d);(d=a.A.vh())&&(c.len=d);a.o.gb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.B=c.at;b=a.H;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=c&&c.ad_event?C2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var h;c.sst&&(h=c.sst);"2_1"==e&&10==h&&(c.break_type=1);
e={};e.device=b.o.A.wb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){h=e;a=k;var d=c[k],l=c;switch(a){case "trsp":h.slot_pos=d;break;case "break_type":jb(O1,Ya(d))&&(h.m_pos=l.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":h[a]=d;break;case "ad_len":h[a]=Math.round(1E3*d);break;case "ad_error":h.error_code=Oga(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;case "ad_event":h.event=C2(d);break;case "ck_xy":a=d.split("x"),
2==a.length&&(h.i_x=a[0],h.i_y=a[1])}}k=J2(b.o);h=$1(b.o);e.cpn=h.clientPlaybackNonce;e.content_v=h.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.o.B,e.mt=null!=c&&null!=c.A?1E3*Q1(c.A.ab):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.o.V();e.ei=h.eventId;e.lact=mB();e.vol=Math.round(b.o.app.Qa.Ab());e.vis=SK(c);c=Q4(b.o);e.p_w=c.width;e.p_h=c.height;e.rt=K();if(c=(c=aL(k))&&Hg(c)===window.document?Tq(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Pe(e);if("undefined"==typeof k)throw Error("Keys are undefined");
c=new tf(null,0,void 0);e=Oe(e);for(h=0;h<k.length;h++)a=k[h],d=e[h],da(d)?yf(c,a,d):Ef(c,a,d);b=b.o.V().baseYtUrl+"api/stats/ads";b=new N(b);rf(b,c);Xp(b.toString())}},R4=function(a,b,c){c=c||{};
c.ad_error=b;d2(a,7,c)},S4=function(a,b,c){a.app.Qa.Ba(b,c)},T4=function(a){if(!a.Z){var b=a.V().baseYtUrl;
Xp(b+"mac_204?action_fcts=1");a.Z=!0}},U4=function(a){return a.B instanceof v4?a.B:null},W4=function(a){a=a.G;
if(a.A.V().H)a=a.A.app.B;else{if(!a.D){var b;b=a.A.app;if(b.X.H){var c=Pq(b.B.o),d=ar(b.B.o);b.fa=new ve(c.x,c.y,d.width,d.height);qL(b.F);b.B.o.loop=!1;b.B.o.playbackRate=1;nH(b.B);b=b.B.la()}else b=V4.getTag(void 0,void 0);a.D=b;Yd(a.D,["video-stream","ad-video"])}a=new rH(a.D)}return a},J2=function(a){if(!a.D){var b=ec(a.V().M);
a.V().experiments.ga("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=$1(a).eventId;b.content_v=$1(a).videoId;b=new OH(b);b.Aa="adunit";var c=W4(a);b.ne=c;a.D=new YK(b,2,new M1(b,""),a.app.G,y(a.app.L.S,a.app.L))}return a.D},Z4=function(a){if(a.D&&a.D==kq(a.app)){var b=a.app;
a=a.D;X4(b);a!=b.A&&Y4(b,b.A)}},Q4=function(a){return a.A.C?(a=a.app.G.La(),new ve(0,0,a.width,a.height)):br(a.Da())},$4=function(a,b){O3(a,"bd");
var c;c=a.A;var d=c.midrollPrefetchSize;c=c.ia?new v4(a,b):0<d?new s4(a,b,d):new l4(a,b);a.B=c;cha(a.B)},p4=function(a){a.W=!0;
a.S("command_redirect_controls",a,["play_pause"],void 0);a.C||a.pauseVideo()},a5=function(a){A2(a.G);
a.W=!1;rq(a)},O2=function(a,b){switch(b){case 1:a.O=1;
S4(a,"onAdStart");break;case 0:a.O=0,S4(a,"onAdEnd")}},N2=function(a,b,c,d){d&&S4(a,"onAdInfoChange",d);
d=a.app;a=W4(a);c=c||{};1==b&&(d.K.A("vr",void 0),d.aa||(d.aa=mv(d.fq,d)),LL(d.F),N1(d.K,b5(d)));0==b&&c&&(d.A.aa=c);c=d.X;"leanback"==c.Aa&&c.Va&&(0==b?d.Ca=d.B:d.Ca=a,d.o.Ba("onAdStateChange",b))},O3=function(a,b){var c=b;
"nl"==b&&(c=a.J,c.F++,c=c.F.toString());a.fa[c]=K();"bs"!=c&&"fb"!=c||oq(a,a.fa,a.ea)},q4=function(a,b,c){a=a.Ca;
var d=c5,d=d||c5;R1(a.o.V(),d)&&(c=c||{},c.cdp=1,c["var"]=b,c.sdkv="h.3.0",a.o.log(c))},d5=function(a){return!!(a.A.D&&a.B&&1<a.B.B.length)},Z3=function(a,b,c){a.o.addEventListener("applicationplayerstatechange",b,c)},e5=function(a,b){this.B=a;
this.A=ga(b)?b:null;if(jb(qha,this.B)){if(!ga(this.A)||0>this.A)throw Error("Must have valid offset");}else if(null!==this.A)throw Error("Must not have offset");},f5=function(a,b){R.call(this,["canvas"]);
this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.A=window.NaN;this.K=null},h5=function(a,b,c){G.call(this);
this.A=a;a.o.addEventListener("onVolumeChange",this.pq,this);a.o.addEventListener("onCaptionsTrackListChanged",this.oq,this);this.D=!1;this.o=c;c.subscribe("proxyStateChange",this.Cq,this);c.subscribe("remotePlayerChange",this.Yl,this);c.subscribe("remoteQueueChange",this.Zl,this);this.L=new Qy;this.H=this.G=window.NaN;this.K=0;this.B={};this.F=null;this.J=new qm(this.JD,1E3,this);H(this,this.J);this.M=0;this.C=!1;a=this.A.o.yb("captions","track");ac(a)||g5(this,a);this.Zl();this.Yl()},i5=function(a,
b){var c=a.A,d=a.A.o.getVideoData().lengthSeconds;
c.K=b||0;c.o.S("progresssync",b,d)},l5=function(a){a.C||(i5(a,0),j5(a),k5(a,new Qy));
ky(a.A.app.Qa.V())||(a.C=!0)},g5=function(a,b){if(m5(a)&&!a.D){if(b){var c={style:a.A.o.yb("captions","displaySettings")};
hc(c,b);a.o.sm(n5(a),c)}else a.o.sm(n5(a),null);a.B=oo(a.o).B}},o5=function(a){a.o.pause();
var b=oo(a.o);i5(a,ho(b));j5(a);k5(a,new Qy(4))},q5=function(a){a.o.play();
p5(a);k5(a,new Qy(8))},r5=function(a,b){var c=a.A.o.Zb();
c?ro(a.o,n5(a),b,c.Kb(),a.A.o.getVideoData().playlistId):ro(a.o,n5(a),b);k5(a,new Qy(1))},s5=function(a,b){if(b){var c=a.A.o.yb("captions","tracklist",{yp:1});
c&&c.length?a.A.o.pe("captions","track",b):(a.A.o.Ij("captions"),a.D=!0)}else a.A.o.pe("captions","track",{})},m5=function(a){return fo(oo(a.o))==n5(a)},n5=function(a){return a.A.o.getVideoData().videoId},p5=function(a){j5(a);
if(!a.o.isDisposed()){var b=oo(a.o);b.ib()&&k5(a,new Qy(8));i5(a,ho(b));a.G=ri(y(function(){p5(this)},a),500)}},j5=function(a){ti(a.G);
a.G=window.NaN},t5=function(a){ti(a.H);
a.H=window.NaN},k5=function(a,b){t5(a);
var c=a.L;a.L=b;a.C=!1;var d=a.A;d.P=b;d.o.S("presentingplayerstatechange",new XK(b,c))},u5=function(a){L1.call(this,a);
this.ra=this.logEvent="remote";this.C={key:Aj(),name:P("YTP_MDX_MY_COMPUTER")};this.B=null;this.G=[];this.J=this.L=this.A=null;this.O=[this.C];this.D=this.C;this.P=new Qy;this.K=0},v5=function(a,b,c){var d=c||a.C;
b.unshift(a.C);a.O=b||[a.C];d=eb(b,function(a){return a.key==d.key});
a.D=d||a.C;a.app.Qa.Ba("onMdxReceiversChange")},w5=function(a){Cq.call(this,["div",
"html5-video-player",{tabindex:-1,id:a.W.attrs.id},["div","html5-video-container",{"data-layer":0}]]);ki(this.element,"version",a.W.assets.js);this.app=a;this.M=null;this.D=this.qa["html5-video-container"];this.aa=!!this.D;this.G=new ve(0,0,0,0);this.A=null;this.J=new ve(0,0,0,0);this.O=this.Z=0;this.L=!1;this.K=window.NaN;a=a.V();this.H=null;this.addEventListener=y(this.element.addEventListener,this.element);this.removeEventListener=y(this.element.removeEventListener,this.element);this.dispatchEvent=
function(){};
a=ky(a)&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&window.matchMedia?y(window.matchMedia,window):v;this.W=a("(max-width: 656px)");this.ka=a("(min-width: 657px)");this.fa=a("(min-width: 1294px) and (min-height: 630px)");this.da=a("(min-width: 1720px) and (min-height: 980px)");this.ia=a("(min-width: 967px)");this.ea=a("(min-width: 1320px) and (min-height: 870px)");this.F=null;xi({YTP_ADVERTISEMENT:"Advertisement",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",
YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - Sign in to vote.",YTP_GET_DEBUG_INFO:"Get debug info",
YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error occurred. Please try again later.",YTP_ERROR_GENERIC_WITH_LINK:"An error occurred. Please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK",
YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promotion",YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_LOOP:"Loop",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",
YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",YTP_MISSING_FORMATS:"Missing options?",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",
YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",
YTP_SUBTITLES_TOOLTIP:"Subtitles/closed captions",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Theater mode",YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",
YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_EXPAND:"Expand",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",
YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",
YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_PROTECTED_FLASH_FALLBACK:"To watch this video, install the latest Flash Player, or try a different browser. $BEGIN_LINKGet Flash Player$END_LINK.",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",
YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",
YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_ERROR_FORMAT_UNAVALIABLE:"This video isn't avaliable at the selected quality. Please try again later.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",
YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube Video Player",YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",
YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate",YTP_SWITCH_CAMERA:"Switch camera"});this.app.Qa.addEventListener("initializingmode",this.iy,this);this.app.Qa.addEventListener("videoplayerreset",this.uG,this);this.app.Qa.addEventListener("videodatachange",this.tG,this);this.app.Qa.addEventListener("presentingplayerstatechange",this.Hx,
this)},sha=function(a,b){a.A=b;
a.L=!1;if(!a.A.parentNode)try{ah(a.D,a.A,0)}catch(d){var c="videoElement_: "+!!a.A+", containerElement: "+!!a.D+", containerElement.childNodes: "+!(!a.D||!a.D.childNodes)+", containerInitiallyTruthy: "+a.aa+", isDisposed: "+a.isDisposed();throw Error(c);}a.F&&(a.F.disconnect(),a.F=null);!a.app.V().experiments.ga("no_detect_bad_extensions2")&&window.MutationObserver&&(a.F=new window.MutationObserver(y(function(a){for(var b=0;b<a.length;b++){var c=a[b];"style"==c.attributeName&&"100%"==c.target.style.height&&
(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.J=new ve(0,0,0,0),x5(this))}},a)),a.F.observe(a.A,{attributes:!0}));
a.J=new ve(0,0,0,0);x5(a);L2(a);rha(a)},rha=function(a){L(a.A,"video-stream");
L(a.A,"html5-main-video");var b=a.app.V();b.ua&&a.A.setAttribute("data-no-fullscreen",!0);b.Ob&&a.A.setAttribute("webkit-playsinline","");b.De&&S(a,a.A,"click",a.A.play,a.A)},z5=function(a,b){if(a.A){var c=a.app.V();
rw&&(a.A.setAttribute("x-webkit-airplay","allow"),b.title?a.A.setAttribute("title",b.title):a.A.removeAttribute("title"));var d;c.nf&&b.videoId?d=b.gc(c,"default.jpg"):c.experiments.ga("legacy_poster_behavior")||yc&&!y5&&!Op()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.A.poster=d)}c=b.Zc("yt:bgcolor");a.D.style.backgroundColor=c?c:"";a.Z=Tu(b.Zc("yt:stretch"));c=b.Zc("yt:crop");a.O="fullwidth"==c?window.Infinity:Tu(c)},NF=function(a){return(a=a.A)?
A5(a.videoWidth,a.videoHeight):window.NaN},fF=function(a,b){var c=a.La(),d=B5(a,c,NF(a),C5(a),b);
return new ve((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)},B5=function(a,b,c,d,e){c=a.Z||c;
a=(0,window.isNaN)(c)?c:a.O||c;d=A5(b.width,b.height);var h;a>d?(h=(0,window.isFinite)(a)?a:c,h={width:b.width,height:b.width/h,aspectRatio:h}):a<d?h={width:b.height*a,height:b.height,aspectRatio:a}:h={width:b.width,height:b.height,aspectRatio:d};e||(0,window.isNaN)(c)||(c>a?h.width=h.height*c:c<a&&(h.height=h.width/c),h.aspectRatio=c);return h},A5=function(a,b){return 1>Math.abs(D5*b-a)||1>Math.abs(D5/a-b)?D5:a/b},C5=function(a){return rw?!0:"3"!=a.app.V().B&&!(0,window.isNaN)(NF(a))},E5=function(a){a=
(a=kq(a.app))&&a.getPlayerState();
return!a||U(a,2)||$y(a)},L2=function(a){var b="3"==a.app.V().B&&!a.L&&!E5(a);
a.A.controls=b;a.A.tabIndex=b?0:-1},x5=function(a){var b=NF(a),c=a.La(),d=1,e=C5(a),h=!1,k=B5(a,c,b);
a.app.V();E5(a)?(b=-c.height,rw?b*=window.devicePixelRatio:cu&&(b-=window.screen.height),b=new ve(0,b,c.width,c.height)):e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new ve((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new ve(0,0,c.width,c.height);xe(a.J,b)||(a.J=b,Zq(a.A,ye(b)),Oq(a.A,ze(b)),h=!0);c=new ve((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);xe(a.G,c)||(a.G=c,h=!0);Iq(a.A,"transform",1==d?"none":"scaleX("+d+")");return h},F5=function(a,b,c,d){sr.call(this);
T(this,a,"click",this.K);T(this,a,"dblclick",this.H);this.J=b;this.C=c;this.D=d||null;this.A=new Ud(this.G,200,this);H(this,this.A);this.o=!0;this.B=!1;this.F=null},G5=function(a){for(var b=0;b<a.length;b++){var c=a[b];
"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&Xp(c.data.follow_on_url)}},H5=function(){this.o=[];
this.A=[]},I5=function(a,b,c){c=window.document.createElement(c?"audio":"video");
qa(c,tha);Dl(c,"loadeddata",y(c.vw,c));Dl(c,"volumechange",y(c.xw,c));GH&&6<=jx&&Dl(c,"webkitbeginfullscreen",y(c.play,c));b||c.src||c.load();a.A.push(c);return c},J5=function(a,b,c){Gj.call(this);
this.C=a;this.M=y(b,null);this.A=0;this.F=!1;this.B=new pe(window.NaN,window.NaN);this.o=new sr(this);H(this,this.o);b=c?4E3:3E3;this.J=new Ud(pa(this.kb,1,!1),b,this);H(this,this.J);this.K=new Ud(pa(this.kb,2,!1),b,this);H(this,this.K);this.L=new Ud(pa(this.kb,512,!1),3E3,this);H(this,this.L);c||(this.G=T(this.o,a,"mouseover",this.Jt),T(this.o,a,"mousemove",this.pG),T(this.o,a,"mouseleave",this.Bz));Fq?T(this.o,a,"keypress",this.jz):T(this.o,a,"focusin",this.Ww);this.D=T(this.o,a,"mousedown",this.It);
this.H=T(this.o,a,"touchstart",this.Kt);this.P=null;this.kb(640,!0)},K5=function(a){R.call(this,["span"]);
Jf(this.element,a)},M5=function(a,b){f5.call(this,a,b);
this.M=null;this.H=this.J=this.F=this.D=0;this.G=-75;L(this.element,"ytp-tv-static");L5(this,a,b)},N5=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;
break}d=!0}if(d)return c}return b},L5=function(a,b,c){if(b&&c){a.width=a.element.width=b;
a.height=a.element.height=c;var d=window.document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),h=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;h.data[m]=h.data[m+1]=h.data[m+2]=Math.floor(35*Math.random());h.data[m+3]=255}e.putImageData(h,0,0);a.M=d;a.J=N5(b);a.H=N5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}},P5=function(a){R.call(this,["div",
["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.D=a;this.F=[];void 0==O5&&(a=window.document.createElement("canvas"),O5=!(!a.getContext||!a.getContext("2d")));O5&&(this.A=new M5(1,1),this.A.o(this.element,0),H(this,this.A));a=gF(this.D).La();this.A&&L5(this.A,a.width,a.height)},uha=function(a,b,c){Q5("add_to_watch_later_list",a,b,c)},vha=function(a,b,c){Q5("delete_from_watch_later_list",a,b,c)},Q5=function(a,b,c,d){pj(c?c+"playlist_video_ajax?action_"+
a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",
Pc:{feature:b.feature||null,authuser:b.Bb||null,pageid:b.pageId||null},Gb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.rO||null,add_to_playlists:b.gO||null,plid:pi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,qb:function(a,c){var d=c.result;d&&d.actions&&G5(d.actions);b.qb.call(this,a,c)},
Xb:b.Xb,withCredentials:!!d})},R5=function(a,b){R.call(this,["span",
"","{{sparkline_container}}"]);this.F=a;this.D=b;this.A=new K5("");H(this,this.A);this.C("sparkline_container",this.A)},S5=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.F+","+a.D*(1-b[e]/c));
return'<svg width="'+a.F+'" height="'+a.D+'" viewbox="0 0 '+a.F+" "+a.D+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'},T5=function(a){R.call(this,["div",
"html5-video-info-panel",["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"],["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],["div","",["div","","Stream Type:"],["span",
"","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]],["div",{style:"{{live_latency_style}}"},["div","","Live Latency:"],
["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_message}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);S(this,this.qa["html5-video-info-panel-close"],"click",this.ha);this.D=new R5(200,14);H(this,this.D);this.C("bandwidth_sparkline",this.D);this.F=new R5(200,14);H(this,this.F);this.C("live_latency_sparkline",this.F);this.G=new Ud(this.H,500,this);H(this,this.G);this.A=a},U5=function(a){this.B=a;
this.A=this.o=null},V5=function(a){a.A=null;
a.o&&(xq(a.o),a.o=null)},W5=function(a){Cq.call(this,["div",
"ytp-ad-progress-bar-container",["div","ytp-ad-progress-bar"]]);this.D=a;this.H=this.qa["ytp-ad-progress-bar"];this.A=null;S(this,a,"presentingplayerstatechange",this.G);this.ha();this.G()},X5=function(a){R.call(this,["div",
"ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.A=new nr(this,500);H(this,this.A);this.ca=a;this.D=null},Z5=function(a){var b=Pz(a.ca);
Sy(b)?(b=a.ca.getVideoData(),b.Ga&&!b.Od?Y5(a,3):Y5(a,2),a.A.show(!0)):U(b,64)||(Y5(a,1),a.A.show(!0))},Y5=function(a,b){if(a.D!=b){a.D=b;
var c,d;switch(b){case 2:c=P("YTP_PAUSE");d=Kf?'<div class="ytp-icon ytp-icon-pause-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,11.11 0,17.77 6.66,0 0,-17.77 -6.66,0 z m 10,0 0,17.77 6.66,0 0,-17.77 -6.66,0 z" /></svg>';break;case 1:c=P("YTP_PLAY");d=Kf?'<div class="ytp-icon ytp-icon-play-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,28.88 0,-17.77 16.66,8.91 -16.66,8.86 z" /></svg>';
break;case 3:c=P("YTP_STOP"),d=Kf?'<div class="ytp-icon ytp-icon-stop-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 11.11,11.11 17.77,0 0,17.77 -17.77,0 0,-17.77 z" /></svg>'}var e=a.element.children[0];M(e,"ytp-bezel-icon-play",1==b);a.C("label",c);d&&Jf(e,d)}},$5=function(a,b,c){var d=["button",
["ytp-button","ytp-cards-button"],{"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];R.call(this,d);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-info-card"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z" id="ytp-svg-20" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-20" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-20" /></svg>');
this.ca=a;this.H=b;this.J=c;this.D=null;this.A=new nr(this,250,!0,100);H(this,this.A);this.ha();this.R("click",this.F);this.R("mouseover",this.G);WB(this,!0)},WB=function(a,b){b?(a.element.title=P("YTP_DRAWER_HEADER_TEXT_2"),a.D=a6(a.H.A,a.element)):(a.D(),a.D=null,a.element.title="")},b6=function(a,b,c){this.ua=!!c;
this.fa=this.ea=null;Cq.call(this,a);this.ia=new nr(this,b);this.K=null},c6=function(a){a.K&&(window.document.activeElement&&kh(a.element,window.document.activeElement)&&(qh(a.K),a.K.focus()),a.K=null)},d6=function(a){return a.B&&3!=a.ia.o},f6=function(a,b){this.D=[a];
this.F=a;e6(this,a);this.size=new te(0,0);this.G=this.J=null;this.ma=this.xa=0;b6.call(this,["div",["ytp-popup",b||null],{child:a}],100,!0);this.R("keydown",this.dH)},e6=function(a,b){a.F.Ha("size-change",a.ph,a);
a.F=b;a.F.subscribe("size-change",a.ph,a)},g6=function(a){Zq(a.element,a.xa||"100%",a.ma||"100%");
var b=a.F;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.D.style.height="";var c=ar(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.F&&(d=ar(b.qa["ytp-panel-header"]).height);b.D.style.height=c.height-d+"px";a.size=c},i6=function(a,b){a.D.push(b);
h6(a,a.F,b)},h6=function(a,b,c,d){a.J&&Vd(a.J);
a.G&&Vd(a.G);b.Ha("back",a.fe,a);c.subscribe("back",a.fe,a);c.o(a.element);e6(a,c);if(a.B){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;g6(a);d=0==!d?-e.width:a.size.width;Zq(a.element,e);Iq(c.element,"transform","translateX("+d+"px)");Iq(c.element,"opacity","0");a.J=new Ud(pa(a.DD,b,c,-d),20,a);a.J.start()}else Iq(c.element,"transform","translateX(0)"),Iq(c.element,"opacity","1"),xq(b)},j6=function(a,b,c){for(var d=0;d<c.length;d++)M(c[d].element,"ytp-panel-animating",b);
M(a.element,"ytp-popup-animating",b)},k6=function(a){Cq.call(this,["div",
"ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.A=[]},l6=function(a,b,c){if(c)a.A.push(b),a.element.appendChild(b.element);
else{c=Ab(a.A,b,a.Dw);if(0<=c)return;c=~c;wb(a.A,c,0,b);ah(a.element,b.element,c)}b.subscribe("size-change",a.Xl,a);a.S("size-change")},n6=function(a,b,c,d){Cq.call(this,a);
this.priority=b;c&&m6(this,c);d&&this.Hb(d)},o6=function(a,b,c){b=b?b:[];
b.push("ytp-menuitem");a=a?a:{};"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return[c?"a":"div",b,a,["div","ytp-menuitem-label","{{label}}"],["div","ytp-menuitem-content","{{content}}"]]},m6=function(a,b){a.C("label",b)},p6=function(a,b,c,d){var e=["div",
"ytp-panel"];if(c){var h="ytp-panel-title",k=["div","ytp-panel-header",["button",["ytp-button",h],c]];if(d){var l="ytp-panel-options";k.push(["button",["ytp-button",l],P("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Cq.call(this,e);this.D=this.qa["ytp-panel-content"];this.H=b;this.F=!1;c&&(S(this,this.qa[h],"click",this.L),this.F=!0,d&&S(this,this.qa[l],"click",d));this.H.subscribe("size-change",this.G,this);S(this,a,"fullscreentoggled",this.G)},q6=function(a){var b=o6({"aria-haspopup":!0});
n6.call(this,b,a);this.R("keydown",this.A)},r6=function(a,b){a.element.setAttribute("aria-haspopup",b)},s6=function(a,b){this.A=!1;
var c=o6({role:"menuitemcheckbox","aria-checked":this.A});n6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.R("click",this.L)},t6=function(a,b){a.A=b;
a.element.setAttribute("aria-checked",a.A)},w6=function(a){this.A=a;
this.da=new sr(this);H(this,this.da);this.L=new Cq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);H(this,this.L);this.ka=new p6(a,this.L);H(this,this.ka);var b=new k6("contextmenu");H(this,b);this.O=new q6(8);H(this,this.O);l6(b,this.O,!0);this.O.R("click",this.MG,this);this.P=new q6(7);H(this,this.P);l6(b,this.P,!0);this.P.R("click",this.UA,this);this.M=new q6(6);H(this,this.M);l6(b,this.M,!0);this.M.R("click",this.LG,this);var c=this.A.V();c.experiments.ga("loop_toggle_killswitch")||
(this.Z=new s6(P("YTP_LOOP"),5),H(this,this.Z),l6(b,this.Z,!0),this.Z.R("click",this.hB,this));this.aa=new n6(o6({href:"{{href}}",target:"_blank"},void 0,!0),4,P("YTP_REPORT_ISSUE"));H(this,this.aa);l6(b,this.aa,!0);this.aa.R("click",this.OG,this);this.W=new q6(3);H(this,this.W);l6(b,this.W,!0);this.W.R("click",this.KG,this);var d=new n6(o6(),2,P("YTP_SHOW_VIDEO_INFO"));H(this,d);l6(b,d,!0);d.R("click",this.PG,this);c="//"+UH(c)+"/html5";c=new n6(o6({href:c,target:"_blank"},void 0,!0),1,P("YTP_HTML5_CONTEXT_MENU_LINK"));
H(this,c);l6(b,c,!0);c.R("click",this.Ez,this);b=new p6(this.A,b);H(this,b);f6.call(this,b);L(this.element,"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");ul&&vc(43)&&(b=!0);TF&&!vc(41)&&(b=!1);b&&(this.H=new R(["div","ytp-html5-clipboard"]),H(this,this.H),this.H.o(this.element));u6(this);S(this,this.A,"fullscreentoggled",this.JG);S(this,this.A,"loopchange",this.gB);S(this,this.A,"pageTransition",this.NG);S(this,this.A,"videodatachange",this.QG);
S(this,gF(this.A),"contextmenu",this.zA);S(this,this.L.element,"click",this.AA);v6(this,a.getVideoData());this.o(window.document.body)},x6=function(a,b){var c;
if(a.H){mh(a.H.element,b);Bq(a.H.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.tb():(a.L.Hb(b,"text"),i6(a,a.ka),Bq(a.L.element),a.H&&(a.H=null,u6(a)))},v6=function(a,b){var c=a.A.V(),d=!c.C&&!!b.videoId;
"play"!=c.o?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.B&&(c.fmt=b.B.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.P&&(c.partnerid=b.P),c=ff("//support.google.com/googleplay/",c));a.M.ob(d&&b.allowEmbed);a.O.ob(d);a.P.ob(d&&!b.Ga);a.aa.Hb(c,"href")},u6=function(a){var b=!!a.H;
m6(a.W,P(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));r6(a.W,!b);m6(a.M,P(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));r6(a.M,!b);m6(a.O,P(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));r6(a.O,!b);m6(a.P,P(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));r6(a.P,!b)},y6=function(a){this.F=new sr(this);
or.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.D=new Ud(this.Qt,0,this);H(this,this.D);this.Qt();S(this,a,"presentingplayerstatechange",this.SG);"detailpage"==a.V().Aa&&S(this,a,"videoplayerreset",this.RG)},z6=function(a,b,c){var d=$y(c),e=!b.V().experiments.ga("disable_new_pause_state3");
b=U(c,2)&&!VL(b)&&(!e||!By(b.app));d||b?a.show():(a.ha(),U(c,1)||a.stop())},A6=function(a,b,c,d,e,h,k){sr.call(this);
this.o=a;this.K=c;this.G=d;this.B=e;this.H=h;this.J=k;this.A="";a=pa(this.C,!1);T(this,b,"mousedown",a);T(this,c.element,"mousedown",a);T(this,b,"keydown",this.D);T(this,c.element,"keydown",this.D);T(this,b,"keyup",this.F);T(this,c.element,"keyup",this.F)},C6=function(a,b,c){var d=!1,e=a.o.V();
if(!e.gb){switch(b){case 80:c&&(a.o.Kj(),d=!0);break;case 78:c&&(a.o.Jj(),d=!0);break;case 74:a.o.Qc(-10);d=!0;break;case 76:a.o.Qc(10);d=!0;break;case 77:a.o.Cc()?a.o.unMute():a.o.mute();d=!0;break;case 75:Z5(a.H);Sy(Pz(a.o))?a.o.pauseVideo():a.o.kd();d=!0;break;case 190:if(c){if(e.Z)for(b=a.o.Gj(),c=a.o.app.O,e=0;e<b.length-1;e++)b[e]==c&&(a.o.xh(b[e+1]),d=!0)}else a.o.V().experiments.ga("frame_step_killswitch")||(B6(a,1),d=!0);break;case 188:if(c){if(e.Z)for(b=a.o.Gj(),c=a.o.app.O,e=b.length-1;1<=
e;e--)b[e]==c&&(a.o.xh(b[e-1]),d=!0)}else a.o.V().experiments.ga("frame_step_killswitch")||(B6(a,-1),d=!0);break;case 70:iy(a.o)&&(ly(a.o),d=!0)}d&&a.G.kb(2,!0)}return d},F6=function(a,b,c,d){if(TL(a.o.app.D,"captions")){for(var e=a.o.yb("captions","displaySettings"),h,k=0;k<E6.length;k++){var l=E6[k];
if(l.option==b){h=l.options;break}}for(var m,k=0;k<h.length;k++)h[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==h.length-1)return!1;d={};d[b]=h[(m+(c?h.length-1:1))%h.length].option;aM(a.o,d);return!0}return!1},B6=function(a,b){if(U(Pz(a.o),4)){var c=a.o.getVideoData().B;
c&&(c=c.video)&&a.o.Qc(b/(c.fps||30))}},H6=function(a){var b=["ytp-large-play-button",
"ytp-button"];a.V().isMobile&&b.push("ytp-touch-device");R.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.V();Jf(this.element,b.Eb?Kf?'<div class="ytp-icon ytp-icon-house-brand-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 60 60" width="100%"><path class="ytp-large-play-button-bg" clip-rule="evenodd" d="M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z" fill="#1f1f1f" fill-rule="evenodd" /><path d="M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z" fill="#fff" /></svg>':
Kf?'<div class="ytp-icon ytp-icon-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z" fill="#1f1f1e" fill-opacity="0.81" /><path d="m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z" fill="#fff" /><path d="M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z" fill="#ccc" /></svg>');
this.A=a;this.F=!1;this.D=new nr(this,250);H(this,this.D);S(this,a,"presentingplayerstatechange",this.G);G6(this,Pz(a))},G6=function(a,b){if(a.A.V().lf&&!a.F){z6(a.D,a.A,b);
var c;c=(c=a.A.getVideoData())&&c.title?P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):P("YTP_PLAY");a.C("label",c)}else a.ha()},I6=function(a,b,c){var d=b.sb(c),e=a.V(),h=d.gc(e,"default.jpg");
R.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.D?b.D.toString():null)},["div","ytp-video-menu-item-index",""+(c+1)],["div","ytp-video-menu-item-now-playing","\u25b6"],["div","ytp-video-menu-item-thumbnail",{style:h?"background-image: url("+h+");":null}],["div","ytp-video-menu-item-title",d.title],["div","ytp-video-menu-item-author",P("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]]);this.A=a;this.D=c;this.R("click",this.F)},
J6=function(a,b){this.D=a;
b6.call(this,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}"},"{{title}}"],["button",["ytp-playlist-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.qa["ytp-playlist-menu-close"];Jf(c,Pf());S(this,c,"click",this.gH);S(this,this.qa["ytp-playlist-menu-title-name"],
"click",this.qC);this.G=this.H=this.A=null;this.L=this.qa["ytp-playlist-menu-items"];this.F=[];this.J=b},K6=function(a,b){a.A!=b&&(a.A&&a.A.Ha("shuffle",a.yn,a),a.A=b,a.H=null,b?b.subscribe("shuffle",a.yn,a):a.B&&a.J())},L6=function(a,b,c){var d=["button",
["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":P("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];R.call(this,d);Jf(this.qa["ytp-playlist-menu-button-icon"],Qf());this.F=a;this.A=null;this.J=c;this.G=b.A;S(this,a,"videodatachange",this.H);S(this,a,"onPlaylistUpdate",this.H);S(this,a,"presentingplayerstatechange",this.D);S(this,a,"resize",this.D);this.ha();this.H();
Lb(this,a6(this.G,this.element));this.R("click",this.J)},M6=function(a,b,c){R.call(this,["a",
["ytp-video-menu-item","ytp-button"],{role:"menuitem","aria-label":"{{watch}}",href:"{{url}}"},["div","ytp-video-menu-item-thumbnail",{style:"{{background}}"}],["div","ytp-video-menu-item-title","{{title}}"],["div","ytp-video-menu-item-author","{{author}}"]]);this.D=a;this.A=b;this.F=c;$x(this,b,a.V());this.R("click",this.G)},N6=function(a,b){this.A=a;
b6.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}],["div","ytp-related-menu-title",P("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]],250);var c=this.qa["ytp-related-menu-close"];Jf(c,Pf());S(this,c,"click",this.rH);this.G=null;this.H=this.qa["ytp-related-menu-items"];this.D=[];this.F=b},O6=function(a,b,c,d){var e=["button",
["ytp-button","ytp-related-menu-button"],{title:P("YTP_SUGGESTED_VIDEOS"),"aria-owns":"ytp-related-menu","aria-haspopup":!0}];R.call(this,e);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-related"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,10 L17,10 L17,17 L10,17 L10,10 Z M19,10 L26,10 L26,17 L19,17 L19,10 Z M10,19 L17,19 L17,26 L10,26 L10,19 Z M19,19 L26,19 L26,26 L19,26 L19,19 Z" id="ytp-svg-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>');
this.A=a;this.G=c;this.F=d;S(this,a,"videodatachange",this.D);S(this,a,"presentingplayerstatechange",this.D);S(this,a,"resize",this.D);this.D();Lb(this,a6(b.A,this.element));this.R("click",this.G)},P6=function(a,b,c){var d=["div",
"ytp-share-panel",{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},["button",["ytp-share-panel-close","ytp-button"],{title:P("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},P("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:P("YTP_SHARE_LINK"),"aria-label":P("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",["input","ytp-share-panel-include-playlist-checkbox",
{type:"checkbox",checked:!0}],P("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",P("YTP_SHARE_PANEL_ERROR")]]];b6.call(this,d,250);this.D=a;this.F=b.A;this.J=c;this.A=[];this.M=this.qa["ytp-share-panel-inner-content"];this.P=this.qa["ytp-share-panel-loading-spinner"];Jf(this.P,Sf());this.G=this.qa["ytp-share-panel-close"];Jf(this.G,Pf());S(this,this.G,"click",this.J);Lb(this,a6(this.F,this.G));
this.L=this.qa["ytp-share-panel-include-playlist-checkbox"];S(this,this.L,"click",this.$t);this.H=this.qa["ytp-share-panel-link"];Lb(this,a6(this.F,this.H));this.R("click",this.BB);S(this,a,"videoplayerreset",this.ha);S(this,a,"fullscreentoggled",this.tH)},wha=function(a){switch(a){case "facebook":return Kf?'<div class="ytp-icon ytp-icon-share-facebook"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z" fill="#39579b" /></svg>';
case "googleplus":return Kf?'<div class="ytp-icon ytp-icon-share-googleplus"></div>':'<svg height="100%" version="1.0" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z" fill="#dc4537" /></svg>';
case "twitter":return Kf?'<div class="ytp-icon ytp-icon-share-twitter"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z" fill="#01abf0" /></svg>';
default:return null}},Q6=function(a){for(var b=0;b<a.A.length;b++)xq(a.A[b]),Mb(a.A[b]);
a.A=[]},R6=function(a,b,c,d,e){c=["button",
["ytp-button","ytp-share-button"],{title:P("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];R.call(this,c);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-sharrow"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z" id="ytp-svg-39" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-39" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-39" /></svg>');
this.A=a;this.F=e;this.R("click",d);S(this,a,"videodatachange",this.D);S(this,a,"resize",this.D);this.D();Lb(this,a6(b.A,this.element))},S6=function(a){R.call(this,["div",
"ytp-webgl-spherical-control",{tabindex:0,"aria-label":P("YTP_SPHERICAL_CONTROL")}]);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-spherical-control"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 50 50" width="100%"><defs><circle cx="25" cy="25" id="ytp-svg-41" r="24" /><path d="M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z" id="ytp-svg-42" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-41" /><use fill="#fff" xlink:href="#ytp-svg-41" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-42" /><use fill="#999" xlink:href="#ytp-svg-42" /></svg>');
this.D=a;this.ea=this.da=this.G=this.H=null;this.A=[];this.F=0;this.aa=null;this.J=new dA(this.vH,null,this);H(this,this.J);this.P=-1;this.U=this.K=this.W=this.M=this.Z=this.L=0;this.O=!1;S(this,a,"videodatachange",this.An);S(this,a,"onApiChange",this.An);this.ha();this.An()},T6=function(a,b,c,d){a.Z=je(b+a.Z,-1,1);
a.W=je(c+a.W,-1,1);a.U=je(d+a.U,-1,1);1!=a.F&&(a.F=1,L(a.element,"ytp-dragging"),a.P=K(),a.J.start())},U6=function(a){a.J.stop();
a.F=0;a.Z=0;a.W=0;a.U=0;a.A=[];$d(a.element,"ytp-dragging")},V6=function(a,b,c,d,e,h){var k=h-a.P;
a.M=(a.L*a.M+(b-e.yaw))/(k+a.L);a.K=(a.L*a.K+(c-e.pitch))/(k+a.L);a.P=h;a.L=k;dM(a.D,{shader:"Spherical",yaw:b,pitch:c,fov:d})},W6=function(a,b){if(!(-1<a.A.indexOf(b)))switch(b){case 37:case 65:T6(a,1,0,0);
a.A.push(b);break;case 39:case 68:T6(a,-1,0,0);a.A.push(b);break;case 38:case 87:T6(a,0,1,0);a.A.push(b);break;case 40:case 83:T6(a,0,-1,0);a.A.push(b);break;case 107:T6(a,0,0,-1);a.A.push(b);break;case 109:T6(a,0,0,1),a.A.push(b)}},X6=function(a,b){var c=a.A.indexOf(b);
if(-1<c)switch(a.A.splice(c,1),b){case 37:case 65:T6(a,-1,0,0);break;case 39:case 68:T6(a,1,0,0);break;case 38:case 87:T6(a,0,-1,0);break;case 40:case 83:T6(a,0,1,0);break;case 107:T6(a,0,0,1);break;case 109:T6(a,0,0,-1)}0==a.A.length&&(U6(a),a.F=2,a.J.start())},Z6=function(a){var b=["div",
"ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",P("YTP_PLAYBACK_STALLED_AT_START")]];R.call(this,b);this.G=this.qa["ytp-spinner-svg"];Jf(this.G,Sf());this.F=this.qa["ytp-spinner-message"];this.D=a;this.A=new Ud(this.show,500,this);S(this,a,"presentingplayerstatechange",this.yH);S(this,a,"onFrescaStateChange",this.QA);S(this,a,"playbackstalledatstart",this.IB);Y6(this,Pz(a))},Y6=function(a,b){var c;
U(b,128)?c=0:!(c=U(b,16))&&(c=U(b,1))&&(c=TL(a.D.app.D,"fresca"),c=!(c&&c.loaded));c?a.A.start():a.ha()},$6=function(a,b){var c=["button",
["ytp-airplay-button","ytp-button"],{title:P("YTP_AIRPLAY")}];R.call(this,c);this.A=a;this.R("click",this.F);S(this,a,"airplayactivechange",this.D);S(this,a,"airplayavailabilitychange",this.D);this.D();Lb(this,a6(b.A,this.element))},a7=function(a,b){Cq.call(this,["div",
"ytp-storyboard",["div","ytp-storyboard-filmstrip",["div","ytp-storyboard-thumbnail"]],["div","ytp-storyboard-lens",["div","ytp-storyboard-lens-thumbnail"],["div","ytp-storyboard-lens-timestamp-wrapper",["span","ytp-storyboard-lens-timestamp"]]]]);this.D=a;this.fa=b.A;this.aa=new qm(this.UG,250,this);H(this,this.aa);this.J=gF(a).La().width;this.F=this.qa["ytp-storyboard-filmstrip"];this.ia=this.qa["ytp-storyboard-lens"];this.ka=this.qa["ytp-storyboard-lens-thumbnail"];this.ma=this.qa["ytp-storyboard-lens-timestamp"];
this.da=this.qa["ytp-storyboard-thumbnail"];bh(this.da);this.P=0;this.ea=!1;this.Z=this.A=0;this.W=this.L=this.H=window.NaN;this.K=this.G=null;this.M=new sr(this);this.O=new nr(this,100);S(this,this.D,"resize",this.TG);S(this,this.D,"beginseeking",this.Jw)},b7=function(a,b){a.K&&a.K.Ha("l",a.vj,a);
var c=!!a.G;a.G=b&&zx(b);a.K=b&&Ax(b);a.ea=!!b&&b.Ga;a.G?(c||(T(a.M,a.D,"videodatachange",a.VG),T(a.M,a.D,"progresssync",a.Xj),T(a.M,a.D,"videoplayerreset",a.Xj),T(a.M,a.D,"endseeking",a.Uw)),a.K.subscribe("l",a.vj,a),a.W=window.NaN,a.H=window.NaN,a.L=window.NaN,a.Xj(),a.O.show(!1,200)):(c&&ur(a.M),a.aa.stop(),Xu(a.P),a.O.ha(),a.O.stop())},c7=function(a,b){var c=a.da.cloneNode(!1),d=Hu(a.K,b,a.A);
u2(c,d,a.A,a.Z);return c},d7=function(a){R.call(this,["div",
"ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.K=this.qa["ytp-storyboard-framepreview-img"];this.A=a;this.J=this.F=null;this.H=window.NaN;this.D=new sr(this);this.G=new nr(this,100);S(this,a,"beginseeking",this.YG)},f7=function(a,b){var c=!!a.F;
a.F=b&&zx(b);a.J=b&&Ax(b);a.F?(c||(T(a.D,a.A,"videodatachange",a.bH),T(a.D,a.A,"progresssync",a.$G),T(a.D,a.A,"resize",a.XG),T(a.D,a.A,"presentingplayerstatechange",a.aH),T(a.D,a.A,"endseeking",a.ZG)),a.H=window.NaN,e7(a),a.G.show(!1,200)):(c&&ur(a.D),a.G.ha(),a.G.stop())},e7=function(a){var b=a.A.getCurrentTime(),c=gF(a.A).La(),d=Fu(a.F,c.width),b=a.F.o[d].Wj(b);
b!=a.H&&(a.H=b,Ju(a.J,b,c.width),b=Hu(a.J,b,c.width),u2(a.K,b,c.width,c.height))},h7=function(a,b){R.call(this,["button",
["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.D=a;this.G=b;this.A=null;this.F=a6(b.A,this.element);S(this,a,"fullscreentoggled",this.wr);S(this,a,"presentingplayerstatechange",this.Rt);this.R("click",this.cH);var c;c=zh("fullscreenerror",window.document);"msfullscreenerror"==c&&(c="MSFullscreenError");c&&S(this,window.document,c,this.SA);a.V().Ja||g7(this);this.Rt();this.wr(a.Oa())},g7=function(a){if(!a.A){var b=P(void 0!=yh(["requestFullscreen",
"requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.A=new b6(["div",["ytp-popup","ytp-fullscreen-message"],b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]],100,!0);H(a,a.A);a.A.o(a.D.Da());a.element.setAttribute("aria-disabled",!0);a.F();a.F=null}},i7=function(a,b,c){var d=["button",
["ytp-multicam-button","ytp-button"],{title:P("YTP_SWITCH_CAMERA"),"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"}];R.call(this,d);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-switch-camera"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M 26,10 H 22.83 L 21,8 h -6 l -1.83,2 H 10 c -1.1,0 -2,.9 -2,2 v 12 c 0,1.1 .9,2 2,2 h 16 c 1.1,0 2,-0.9 2,-2 V 12 c 0,-1.1 -0.9,-2 -2,-2 z M 21,21.5 V 19 h -6 v 2.5 L 11.5,18 15,14.5 V 17 h 6 V 14.5 L 24.5,18 21,21.5 z" id="ytp-svg-45" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-45" /></svg>');
this.A=a;this.F=b.A;this.R("click",c);S(this,a,"presentingplayerstatechange",this.D);S(this,a,"videodatachange",this.D);this.D();Lb(this,a6(this.F,this.element))},j7=function(a,b){this.F=new sr(this);
H(this,this.F);var c=["div","ytp-multicam-menu",{role:"dialog"},["div","ytp-multicam-menu-header",["div","ytp-multicam-menu-title",P("YTP_SWITCH_CAMERA"),["button",["ytp-multicam-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}]]],["div","ytp-multicam-menu-items"]];b6.call(this,c,250);c=this.qa["ytp-multicam-menu-close"];Jf(c,Pf());S(this,c,"click",b);this.A=a;this.G=this.qa["ytp-multicam-menu-items"];this.D=[];this.H=b},k7=function(a,b,c,d,e,h,k,l){this.B=a;
this.G=b;this.o=c;this.D=d;this.A=e;this.F=h;this.C=k;this.H=l},l7=function(){this.B=null;
this.D=this.o=0;this.C=new dA(this.A,null,this);H(this,this.C)},p7=function(a,b,c){var d=window.document.createElement("span");
Jf(d,c);c=d.getElementsByTagName("path")[0].getAttribute("d");var e=b.getElementsByTagName("path")[0];b=e.getAttribute("d");var h=m7(b),k=m7(c);n7(a,function(a){e.setAttribute("d",o7(h,k,a))},200)},n7=function(a,b,c){a.B=b;
a.D=At();a.o=c;a.A()},m7=function(a){var b=[];
a=a.match(xha);for(var c=0;c<a.length;c++){var d=(0,window.parseFloat)(a[c]);b.push((0,window.isNaN)(d)?a[c]:d)}return b},o7=function(a,b,c){var d,e="";
for(d=0;d<a.length;d++)var h=a[d],e=ga(h)?e+(h+(b[d]-h)*c):e+h;return e},r7=function(a,b){R.call(this,["button",
["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);Jf(this.element,Tf());this.A=a;this.O=b.A;this.D=this.F=window.NaN;if(!this.A.V().P){var c=this.element.getElementsByTagName("path");this.H=c[0];this.G=c[1];this.M=this.H.getAttribute("d")}this.J=new l7;H(this,this.J);this.R("click",this.L);S(this,a,"resize",this.K);S(this,a,"onVolumeChange",this.U);Lb(this,a6(b.A,this.element));this.K(gF(a).La());q7(this,a.Ab(),a.Cc())},q7=function(a,b,c){b=c?0:b/100;
if(a.A.V().P)b=0==b?Tf():0<b&&.5>b?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<div class="ytp-icon ytp-icon-volume-high"></div>',b!=a.P&&(Jf(a.element,b),a.P=b);else if(b=b?.5*Math.ceil(b/.5):-.5,a.D!=b){var d=a.F;(0,window.isNaN)(d)?s7(a,b):n7(a.J,y(function(a){s7(this,d+(this.D-d)*a)},a),250);
a.D=b}a.C("title",c?P("YTP_UNMUTE"):P("YTP_MUTE"));t7(a.O)},s7=function(a,b){a.F=b;
var c=a.M,d=je(2*b,0,1);d&&(c+=" "+o7(yha,zha,d),(d=je(2*(b-.5),0,1))&&(c+=" "+o7(Aha,Bha,d)));a.H.setAttribute("d",c);c=Math.max(b/-.5,0);a.G.setAttribute("fill-opacity",c);a.G.setAttribute("stroke-opacity",c)},u7=function(a,b){var c=["button",
["ytp-pip-button","ytp-button"],{title:P("YTP_PIP")}];R.call(this,c);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-pip"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 25,17 h -8 v 6 h 8 v -6 z m 4,8 V 10.98 C 29,9.88 28.1,9 27,9 H 9 C 7.9,9 7,9.88 7,10.98 V 25 c 0,1.1 .9,2 2,2 h 18 c 1.1,0 2,-0.9 2,-2 z m -2,.02 H 9 V 10.97 h 18 v 14.05 z" id="ytp-svg-32" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-32" /></svg>');
this.A=a;this.R("click",this.D);Lb(this,a6(b.A,this.element))},w7=function(a,b){R.call(this,["button",
["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.A=a;this.D=null;this.G=b.A;this.F=null;this.H=new l7;H(this,this.H);S(this,a,"fullscreentoggled",this.J);S(this,a,"presentingplayerstatechange",this.K);S(this,a,"videodatachange",this.J);v7(this,Pz(a));this.R("click",this.L,this)},x7=function(a){switch(a){case 1:return Kf?'<div class="ytp-icon ytp-icon-play"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M11,10 L18,13.74 18,22.28 11,26 Z M18,13.74 L26,18 26,18 18,22.28 Z" id="ytp-svg-33" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-33" /></svg>';
case 2:return Kf?'<div class="ytp-icon ytp-icon-pause"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M11,10 L17,10 17,26 11,26 Z M20,10 L26,10 26,26 20,26 Z" id="ytp-svg-31" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-31" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-31" /></svg>';case 3:return Kf?'<div class="ytp-icon ytp-icon-replay"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M26.46,21.04 L30.96,16 L27.8,16 C26.87,11.43 22.84,8 18.00,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18.00,28 C21.18,28 24.00,26.51 25.84,24.19 L24.00,22.36 C22.65,24.21 20.47,25.42 18.00,25.42 C13.89,25.42 10.56,22.10 10.56,18 C10.56,13.89 13.89,10.57 18.00,10.57 C21.40,10.57 24.26,12.87 25.14,16 L21.96,16 L26.46,21.04" id="ytp-svg-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>';
case 4:return Kf?'<div class="ytp-icon ytp-icon-stop"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,10 L18,10 18,26 10,26 Z M18,10 L26,10 26,26 18,26 Z" id="ytp-svg-43" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-43" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-43" /></svg>'}},v7=function(a,b){var c,d=Gx(a.A.getVideoData()),e=!1;
Sy(b)?c=d?4:2:U(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.D!=c){var h;switch(c){case 2:h=P("YTP_PAUSE");break;case 3:h=P("YTP_REPLAY");break;case 1:h=P("YTP_PLAY");break;case 4:h=P("YTP_STOP")}3==c?(a.F||(a.F=a6(a.G,a.element)),Jf(a.element,x7(c)),a.update({title:h,label:null})):(a.F&&(a.F(),a.F=null),a.update({title:null,label:h}),d=x7(c),a.D&&3!=a.D&&!a.A.V().P?p7(a.H,a.element,d):Jf(a.element,d));t7(a.G);a.D=c}},y7=function(a,b,c){var d,e;
c?(d="ytp-next-button",e=Kf?'<div class="ytp-icon ytp-icon-next"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.2,12.5 L16.2,16.49 L9,12.5 L9,23.5 L16.2,19.50 L16.2,23.5 L24.5,19.1 L24.5,23.5 L27,23.5 L27,12.5 L24.5,12.5 L24.5,17.45 L16.2,12.5 Z" id="ytp-svg-30" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-30" /></svg>'):(d="ytp-prev-button",e=
Kf?'<div class="ytp-icon ytp-icon-prev"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M19.8,12.5 L19.8,16.49 L27,12.5 L27,23.5 L19.8,19.50 L19.8,23.5 L11.5,19.1 L11.5,23.5 L9,23.5 L9,12.5 L11.5,12.5 L11.5,17.45 L19.8,12.5 Z" id="ytp-svg-35" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-35" /></svg>');R.call(this,["a",[d,"ytp-button"],{title:"{{title}}",
href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"}]);Jf(this.element,e);this.A=a;this.P=b.A;this.F=c;this.D=this.J=null;this.M=!1;this.K=this.L=this.G=null;this.H=!1;S(this,a,"fullscreentoggled",this.yg);S(this,a,"videodatachange",this.yg);S(this,a,"onPlaylistUpdate",this.yg);this.F||S(this,a,"resize",this.St);this.yg()},z7=function(a){a.D&&a.D.Ha("shuffle",a.yg,a)},
A7=function(a){return!!a.D&&!a.F&&3<=a.A.getCurrentTime()&&2!=a.A.getPresentingPlayerType()},B7=function(a){var b={duration:null,
preview:null,text:null,title:null,url:null},c=a.A.V(),d=XL(a.A),e=a.F&&ry(c,a.J,a.D);if(a.H)b.title=P("YTP_REPLAY");else if(d){var h=null;a.D&&(h=a.D.sb(a.F?Sx(a.D):Tx(a.D)));if(h){if(h.videoId){var k=a.D.D;b.url=c.getVideoUrl(h.videoId,k?k.toString():void 0)}b.text=h.title;b.duration=h.lengthSeconds?Xx(h.lengthSeconds):null;b.preview=h.gc(c,"default.jpg")}b.title=P(a.F?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.J.H&&a.J.H.length&&(h=Zx(a.J.H[0]),b.url=h.Tk(c),b.text=h.title,b.duration=h instanceof bx?
Xx(h.lengthSeconds):null,b.preview=h.gc(c,"default.jpg")),b.title=P("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.M=!!b.url;e||d||a.H?a.G||(a.G=a6(a.P,a.element),a.L=a.R("click",a.fH,a)):a.G&&(a.G(),a.G=null,a.ya(a.L),a.L=null);t7(a.P)},D7=function(a,b){var c=["div",
"ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":P("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],
["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div",["ytp-scrubber-button","ytp-swatch-background-color"],["div","ytp-scrubber-pull-indicator"]]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:P("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:P("YTP_WATCH_ALL")}]];Cq.call(this,c);this.D=a;this.Ia=b.A;this.ma=!1;this.G=this.gb=0;this.ea=1;this.rb=this.K=
0;this.H=window.NaN;this.Ra=!1;this.O=this.da=0;this.wb=this.qa["ytp-ad-progress-list"];this.xb=this.qa["ytp-marker-progress-list"];this.Ma=this.qa["ytp-marker-crenellation-list"];this.aa={};this.ka={};this.W=window.Infinity;c=b.A;this.M=this.qa["ytp-clip-end"];Jf(this.M,Nf());Lb(this,a6(c,this.M));this.xa=new m2(this.M,!0);H(this,this.xa);this.xa.subscribe("hoverstart",this.Vt,this);this.xa.subscribe("hoverend",this.Ut,this);S(this,this.M,"click",this.Yj);this.Ja=this.qa["ytp-clip-end-exclude"];
this.Ob=this.qa["ytp-clip-start-exclude"];this.Z=0;this.P=this.qa["ytp-clip-start"];Jf(this.P,Of());Lb(this,a6(c,this.P));this.ua=new m2(this.P,!0);H(this,this.ua);this.ua.subscribe("hoverstart",this.Vt,this);this.ua.subscribe("hoverend",this.Ut,this);S(this,this.P,"click",this.Yj);this.fb=this.qa["ytp-load-progress"];this.ia=0;this.Pb=this.qa["ytp-play-progress"];this.fa=this.qa["ytp-hover-progress"];this.J=0;this.jb=this.qa["ytp-progress-bar"];this.F=null;this.Ea=this.qa["ytp-scrubber-button"];
this.Ca=new pe;this.Wa=new t2;this.A=new p2(0,0);this.L=this.Fa=!1;this.$a=null;S(this,a,"presentingplayerstatechange",this.iH);S(this,a,"videodatachange",this.Tt);S(this,a,"videoplayerreset",this.Fx);S(this,a,"cuerangesadded",this.Yt);S(this,a,"cuerangesremoved",this.qH);S(this,a,"cuerangemarkersupdated",this.Yt);S(this,a,"onPlaybackQualityChange",this.jH);C7(this,a.getVideoData(),!0)},H7=function(a){if(a.G){var b=a.D.bf(),c=new p2(b.seekableStart,b.seekableEnd),d=s2(c,b.loaded,0),b=s2(c,b.current,
0),e=a.A.A!=c.A||a.A.o!=c.o;
a.A=c;E7(a,b,d);e&&F7(a);G7(a)}},C7=function(a,b,c){var d=!!b&&Cx(b);
a.Fa=d&&b.Od;I7(a,jM(a.D));c&&(d?(c=b.clipEnd,a.Z=b.clipStart,a.W=c,J7(a),E7(a,a.J,a.ia)):a.Yj(),b=a.Ia,1==b.D&&b.Xd());H7(a)},K7=function(a){return!!a&&Cx(a)&&!!a.B&&a.B.video.o},L7=function(a,b){a.Ra=b;
M(a.fb,"ytp-fast-load",b)},M7=function(a,b,c,d){b=je(b,0,a.L?60:40);
a.K=b;var e=a.ea;a.ea=b/(a.L?60:40)*(Math.max(q2(a.A)/a.G,1)-1)+1;b=a.G*a.ea;a.O=je(d*b-c,0,b-a.G);e!=a.ea&&F7(a)},F7=function(a){var b=N7(a),c=-b.B/b.o,d=(-b.B+b.width)/b.o,e=eh(a.Ma),h=0;
if(a.K>.2*(a.L?60:40))for(var k=q2(a.A)/60*d,l=Math.ceil(q2(a.A)/60*c);l<k;l++){var m=e[h];m||(m=window.document.createElement("div"),a.Ma.appendChild(m));h++;m.className=0==l%60?"ytp-60m-progress":0==l%30?"ytp-30m-progress":0==l%15?"ytp-15m-progress":"ytp-1m-progress";m.style.left=(60*l/q2(a.A)-c)*b.o+"px"}b=a.Fa?a.A.o:0;a.update({boundTimeLeft:Xx(r2(a.A,c)-b),boundTimeRight:Xx(r2(a.A,d)-b)});for(c=e.length-1;c>=h;c--)bh(e[c]);a.element.style.height=a.K+(a.L?8:5)+"px";a.S("height-change",a.K);a.Ea.style.height=
a.K+(a.L?20:13)+"px";for(var n in a.aa)O7(a,a.aa[n],a.ka[n]);J7(a);E7(a,a.J,a.ia)},N7=function(a){var b=a.Ca.x,c=a.G*a.ea,b=je(b,0,a.G);
a.Wa.update(b,a.G,-a.O,-(c-a.O-a.G));return a.Wa},E7=function(a,b,c){a.J=b;
a.ia=c;var d=N7(a),e=a.A.o,h=r2(a.A,a.J);a.update({ariamin:Math.floor(a.A.A),ariamax:Math.floor(e),arianow:Math.floor(h),arianowtext:P("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:Xx(h),DURATION:Xx(e)})});var e=s2(a.A,a.Z,0),k=s2(a.A,a.W,1),h=je(b,e,k);c=a.Ra?1:je(c,e,k);k=b*d.o+d.B;a.Ea.style.display=0<=k&&b<=d.width?"":"none";a.Ea.style.left=k+"px";P7(a,a.Pb,d,e,h);P7(a,a.fb,d,e,c)},P7=function(a,b,c,d,e,h){b.style.left=Math.max(d*c.o+c.B,0)+"px";
d=Math.min((e-d)*c.o+c.B,c.width);h||a.D.V().isMobile?(b.style.width=d+"px",Kq(b,"transform")):Iq(b,"transform","scalex("+(c.width?d/c.width:0)+")")},J7=function(a){var b=a.Z>a.A.A,c=0<a.A.o&&a.W<a.A.o;
M(a.element,"ytp-clip-start-enabled",b);M(a.element,"ytp-clip-end-enabled",c);b=b?s2(a.A,a.Z,0):0;c=c?s2(a.A,a.W,1):1;a.P.style.left=Math.round(1E3*b)/10+"%";a.M.style.left=Math.round(1E3*c)/10+"%";a.Ob.style.width=Math.round(1E3*b)/10+"%";a.Ja.style.left=Math.round(1E3*c)/10+"%";a.Ja.style.width=Math.round(1E3*(1-c))/10+"%"},G7=function(a){var b=N7(a);
P7(a,a.fa,b,a.J,b.A);M(a.fa,"ytp-hover-progress-light",b.A>a.J)},O7=function(a,b,c){var d=N7(a),e=s2(a.A,b.start/1E3,0),h;
a:{switch(b.style){case "ytp-chapter-marker":h=8;break a;case "ytp-ad-progress":h=6;break a;case "ytp-time-marker":h=Number.POSITIVE_INFINITY;break a}h=void 0}var k=h/d.width;switch(b.style){case "ytp-chapter-marker":h=e+k/2;e-=k/2;break;default:h=s2(a.A,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=je(e,0,h-k)),h=Math.min(h,e+k),b.color&&(c.style.background=b.color)}P7(a,c,d,e,h,!0);c.className=b.style},Q7=function(a,b){var c=b.getId();
a.aa[c]==b&&(bh(a.ka[c]),delete a.aa[c],delete a.ka[c])},I7=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new m2(a.jb,!0),a.F.subscribe("hovermove",a.nH,a),a.F.subscribe("hoverend",a.mH,a),a.F.subscribe("dragstart",a.lH,a),a.F.subscribe("dragmove",a.pH,a),a.F.subscribe("dragend",a.oH,a),a.$a=a.R("keydown",a.kH)):a.F&&(a.element.setAttribute("aria-disabled",!0),a.ya(a.$a),a.F.cancel(),a.F.dispose(),a.F=null)},S7=function(a){R.call(this,["div",
"ytp-remote",["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text","{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]]]);this.A=new nr(this,250);H(this,this.A);this.D=a;Jf(this.qa["ytp-remote-display-status-icon"],Lf());S(this,a,"presentingplayerstatechange",this.F);R7(this,Pz(a))},R7=function(a,b){if(3==a.D.getPresentingPlayerType()){var c;
c=U(b,128)?P("YTP_MDX_PLAYER_ERROR"):P("YTP_MDX_STATUS_CONNECTED");var d=a.D.yb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.A.show()}else a.A.ha()},T7=function(a,b,c){var d=["button",
["ytp-remote-button","ytp-button"],{title:P("YTP_MDX_TOOLTIP")}];R.call(this,d);this.ca=a;this.G=c;this.D=null;S(this,a,"onMdxReceiversChange",this.A);S(this,a,"presentingplayerstatechange",this.A);S(this,a,"resize",this.A);this.A();this.R("click",this.F,this);Lb(this,a6(b.A,this.element))},U7=function(a,b){s6.call(this,P("YTP_ANNOTATIONS"),5);
this.G=b;this.ca=a;this.D=!1;S(this,a,"videodatachange",this.F);S(this,a,"onApiChange",this.F);this.subscribe("select",this.H,this);this.F()},V7=function(a,b,c,d,e){var h=o6({"aria-haspopup":!0});
n6.call(this,h,b,a);this.A=d;this.K=null;this.D={};this.H=new k6;H(this,this.H);this.P=new p6(c,this.H,a,e);H(this,this.P);this.R("keydown",this.sH);this.R("click",this.open)},W7=function(a,b){a.H.removeAll();
for(var c={},d=!1,e=0;e<b.length;e++){var h=b[e],k=a.D[h],l=h==a.K;l&&(d=!0);if(k&&k.priority==-e){var l=a,m=h;m6(l.D[m],l.Fc(m,!0));delete a.D[h]}else k=new n6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.Fc(h,!0)),k.R("click",y(a.yB,a,h));c[h]=k;l6(a.H,k,!0)}d||(a.K=null);for(h in a.D)a.D[h].dispose();a.D=c},X7=function(a,b){V7.call(this,P("YTP_AUDIO_TRACK_TITLE"),2,a,b);
this.ca=a;this.L=new R(["div","",["span","",P("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);m6(this,this.L);this.M={};this.F=!1;S(this,a,"videodatachange",this.J);S(this,a,"onPlaybackAudioChange",this.J);this.J()},Y7=function(a,b){s6.call(this,P("YTP_AUTOPLAY"),6);
this.J=b;this.ca=a;this.G=!1;this.D=[];S(this,a,"presentingplayerstatechange",this.F);this.subscribe("select",this.K,this);this.F()},Z7=function(a,b){V7.call(this,P("YTP_QUALITY_TITLE"),1,a,b);
L(this.H.element,"ytp-quality-menu");this.ca=a;this.M={};this.L="unknown";this.F=!1;S(this,a,"videodatachange",this.G);S(this,a,"videoplayerreset",this.G);S(this,a,"onPlaybackQualityChange",this.J);this.G()},$7=function(a,b,c){var d=(a=a.M[b])?a.qualityLabel:(d=Kr[b])?d+"p":P("YTP_AUTO");
c=["span",c,d];var e;a&&a.o?c.push(["div","ytp-menuitem-badge-container",{child:new K5('<svg fill="#00838f" height="11px" viewBox="0 0 48 48" width="11px"><path d="M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z" /><path d="M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z" fill="#fff" /></svg>')}]):"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&
(e="HD");e&&(c.push(" "),c.push(["sup","ytp-swatch-color",e]));return c},a8=function(a,b){V7.call(this,P("YTP_MDX_TITLE"),0,a,b);
this.ca=a;this.F=!1;this.L={};S(this,a,"onMdxReceiversChange",this.J);S(this,a,"presentingplayerstatechange",this.J);this.J()},b8=function(a,b){V7.call(this,P("YTP_SPEED_TITLE"),4,a,b);
this.ca=a;this.F=!1;this.G=null;S(this,a,"presentingplayerstatechange",this.au);this.au()},d8=function(a,b,c,d){V7.call(this,c8(d),a,b,c);
L(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();this.F=Ib(d.options,this.G,this);W7(this,fi(d.options,this.G))},c8=function(a){return(a.message?P(a.message):a.text)||""},e8=function(a,b){this.J={};
this.A=new k6;for(var c=0;c<E6.length;c++){var d=E6[c],e=new d8(-c,a,b,d);H(this,e);e.subscribe("settingChange",this.K,this);this.J[d.option.toString()]=e;l6(this.A,e,!0)}c=new n6(o6(),-E6.length,P("YTP_RESET"));H(this,c);c.R("click",y(this.K,this,"reset",!0));l6(this.A,c,!0);p6.call(this,a,this.A,P("YTP_OPTIONS"))},f8=function(a,b){for(var c in b){var d=a.J[c];
if(d){var e=b[c].toString();d.D[e]&&d.Tc(e)}}},g8=function(a,b){V7.call(this,P("YTP_AUTO_TRANSLATE"),0,a,b);
this.F={}},h8=function(a,b){V7.call(this,P("YTP_SUBTITLES"),3,a,b,y(this.zD,this));
this.ca=a;this.M=!1;this.F={};this.L=new R(["div","",["span","",P("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);H(this,this.L);m6(this,this.L);this.J=new g8(a,b);H(this,this.J);this.J.subscribe("select",this.vC,this);this.G=new e8(a,b);H(this,this.G);this.G.subscribe("settingChange",this.DH,this);S(this,a,"videodatachange",this.Gh);S(this,a,"onApiChange",this.Gh);S(this,a,"onCaptionsTrackListChanged",this.Gh);S(this,a,"captionschanged",this.Gh);this.Gh()},k8=function(a){a.fontFamily=
i8.indexOf(a.fontFamilyOption);
a.charEdgeStyle=j8.indexOf(a.charEdgeStyle)},l8=function(a,b){V7.call(this,P("YTP_THREED_SHORT"),7,a,b);
this.ca=a;this.F=!1;S(this,a,"videodatachange",this.J);this.G=null;this.J()},m8=function(a){this.H=a;
this.A=new k6("ytp-main-menu-id");H(this,this.A);a=new p6(a,this.A);H(this,a);f6.call(this,a,"ytp-settings-menu");this.M=this.L=null;this.P=!1},o8=function(a){if(!a.P){a.P=!0;
var b=new Z7(a.H,a);H(a,b);b=new h8(a.H,a);H(a,b);b=new U7(a.H,a);H(a,b);b=new b8(a.H,a);H(a,b);b=new l8(a.H,a);H(a,b);b=new Y7(a.H,a);H(a,b);b=new X7(a.H,a);H(a,b);a.M=new a8(a.H,a);H(a,a.M);n8(a.L,a.A.A.length)}},p8=function(a,b){l6(a.A,b);
n8(a.L,a.A.A.length)},q8=function(a,b){a.B&&1>=a.A.A.length&&a.ha();
a.A.remove(b);n8(a.L,a.A.A.length)},r8=function(a,b,c){var d=["button",
["ytp-button","ytp-settings-button"],{"aria-haspopup":!0,"aria-expanded":"{{pressed}}","aria-owns":"ytp-main-menu-id",title:P("YTP_SETTINGS")}];R.call(this,d);Jf(this.element,Rf());this.D=c;this.D.subscribe("show",this.G,this);this.ca=a;this.F=!0;this.R("click",this.J);S(this,this.ca,"onPlaybackQualityChange",this.A);S(this,a,"videodatachange",this.A);S(this,a,"webglsettingschanged",this.A);S(this,a,"resize",this.H);Lb(this,a6(b.A,this.element));this.A();this.G(!1)},n8=function(a,b){a.F=!!b;
a.H(gF(a.ca).La())},s8=function(a,b){R.call(this,["button",
["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.A=a;this.G=b.A;this.F=null;this.H=new l7;H(this,this.H);S(this,a,"sizestylechange",this.D);S(this,a,"fullscreentoggled",this.D);S(this,a,"presentingplayerstatechange",this.D);this.D();this.R("click",this.J);Lb(this,a6(this.G,this.element))},u8=function(a,b){var c=["button",
["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:P("YTP_SUBTITLES_TOOLTIP")}];R.call(this,c);this.A=a;c=this.A.V().O;-1!=t8.indexOf(c)?Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-closed-captioning"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,24 L27,24 L27,12 L9,12 L9,24 Z M17.05,19.50 C16.91,19.79 16.72,20.04 16.49,20.24 C16.26,20.44 15.99,20.60 15.69,20.70 C15.38,20.81 15.04,20.86 14.67,20.86 C14.21,20.86 13.79,20.79 13.43,20.64 C13.06,20.48 12.75,20.27 12.5,20.01 C12.24,19.74 12.05,19.42 11.91,19.06 C11.78,18.70 11.71,18.31 11.71,17.89 C11.71,17.47 11.78,17.07 11.91,16.70 C12.05,16.34 12.24,16.02 12.5,15.74 C12.75,15.47 13.06,15.26 13.43,15.10 C13.79,14.95 14.21,14.87 14.67,14.87 C15.00,14.87 15.31,14.91 15.61,15.01 C15.90,15.10 16.16,15.23 16.40,15.40 C16.63,15.58 16.82,15.79 16.97,16.05 C17.13,16.31 17.22,16.60 17.26,16.93 L15.98,16.93 C15.96,16.79 15.91,16.66 15.83,16.54 C15.75,16.41 15.65,16.31 15.53,16.22 C15.42,16.13 15.28,16.06 15.14,16.01 C14.98,15.95 14.83,15.93 14.67,15.93 C14.37,15.93 14.12,15.98 13.91,16.09 C13.70,16.20 13.53,16.35 13.40,16.54 C13.27,16.72 13.18,16.93 13.12,17.17 C13.06,17.40 13.03,17.64 13.03,17.89 C13.03,18.14 13.06,18.37 13.12,18.60 C13.18,18.82 13.27,19.03 13.40,19.21 C13.53,19.39 13.70,19.54 13.91,19.65 C14.12,19.76 14.37,19.81 14.67,19.81 C15.07,19.81 15.39,19.70 15.61,19.46 C15.84,19.22 15.98,18.91 16.03,18.53 L17.31,18.53 C17.28,18.89 17.19,19.21 17.05,19.50 L17.05,19.50 Z M24.04,19.51 C23.90,19.80 23.72,20.04 23.49,20.24 C23.26,20.45 22.99,20.60 22.68,20.71 C22.37,20.82 22.03,20.87 21.66,20.87 C21.20,20.87 20.79,20.80 20.42,20.64 C20.05,20.49 19.74,20.28 19.49,20.01 C19.24,19.75 19.04,19.43 18.91,19.07 C18.77,18.71 18.70,18.32 18.70,17.90 C18.70,17.47 18.77,17.08 18.91,16.71 C19.04,16.34 19.24,16.02 19.49,15.75 C19.74,15.48 20.05,15.26 20.42,15.11 C20.79,14.95 21.20,14.88 21.66,14.88 C21.99,14.88 22.30,14.92 22.60,15.01 C22.89,15.10 23.16,15.24 23.39,15.41 C23.62,15.58 23.82,15.80 23.97,16.06 C24.12,16.31 24.21,16.61 24.25,16.94 L22.97,16.94 C22.95,16.79 22.90,16.66 22.82,16.54 C22.74,16.42 22.65,16.32 22.53,16.22 C22.41,16.13 22.27,16.06 22.13,16.01 C21.98,15.96 21.82,15.94 21.66,15.94 C21.36,15.94 21.11,15.99 20.90,16.10 C20.7,16.21 20.53,16.36 20.40,16.54 C20.27,16.73 20.17,16.94 20.11,17.17 C20.06,17.41 20.03,17.65 20.03,17.90 C20.03,18.14 20.06,18.38 20.11,18.60 C20.17,18.83 20.27,19.04 20.40,19.22 C20.53,19.40 20.7,19.55 20.90,19.66 C21.11,19.76 21.36,19.82 21.66,19.82 C22.06,19.82 22.38,19.70 22.61,19.47 C22.84,19.23 22.97,18.92 23.02,18.54 L24.30,18.54 C24.27,18.89 24.18,19.22 24.04,19.51 L24.04,19.51 Z" id="ytp-svg-7" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-7" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-7" /></svg>'):
Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-subtitles"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,19 L25,18 L11,18 L11,19 L25,19 Z M24,21 L24,22 L12,22 L12,21 L24,21 Z M27,12 L27,24 L9,24 L9,12 L27,12 Z" fill-rule="evenodd" id="ytp-svg-44" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-44" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-44" /></svg>');S(this,a,"videodatachange",this.D);
S(this,a,"resize",this.D);S(this,a,"onApiChange",this.D);S(this,a,"onCaptionsTrackListChanged",this.D);S(this,a,"captionschanged",this.D);this.D();this.R("click",this.F);Lb(this,a6(b.A,this.element))},v8=function(a,b){R.call(this,["div",
["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.G=new R(["button",["ytp-live-badge","ytp-button"],{disabled:!0},P("YTP_LIVE")]);H(this,this.G);this.G.o(this.element);this.A=a;this.L=b.A;this.D=null;this.H=this.F=!1;this.K=this.J=null;this.R("click",this.EH);S(this,a,"presentingplayerstatechange",this.zg);S(this,a,"resize",this.zg);S(this,a,"liveviewshift",this.FH);S(this,a,"videodatachange",
this.GH);var c=a.getVideoData();c&&(this.F=c.Ga,M(this.element,"ytp-live",this.F));this.zg()},x8=function(a,b,c){R.call(this,["div",
"ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},["div","ytp-volume-slider",["div","ytp-volume-slider-handle"]]]);this.A=a;this.H=b;this.O=c;this.L=this.M=!1;this.W=this.J=0;this.U=this.qa["ytp-volume-slider"];this.Z=this.qa["ytp-volume-slider-handle"];this.K=new m2(this.U,!0);H(this,this.K);this.K.subscribe("dragstart",this.lC,this);this.K.subscribe("dragmove",this.kC,this);this.K.subscribe("dragend",
this.jC,this);this.P=null;this.D=this.G=this.F=!1;S(this,a,"onVolumeChange",this.JH);S(this,a,"resize",this.eu);S(this,a,"onShowControls",this.ro);S(this,a,"onHideControls",this.ro);S(this,this.element,"keydown",this.mC);S(this,this.element,"focus",pa(this.du,!0));S(this,this.element,"blur",pa(this.du,!1));this.eu(gF(a).La());this.L=iF(b);w8(this,this.A.Ab(),this.A.Cc())},w8=function(a,b,c){var d=Math.round(b),e=d+"% "+P("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+P("YTP_SCREENREADER_VOLUME_MUTED"):
"");
c=c?0:b/100;a.C("valuenow",d);a.C("valuetext",e);a.Z.style.left=(a.L?72:48)*c+"px";a.J=b},y8=function(a,b,c,d,e){var h=a.G||a.F||a.D||a.M;
a.G=b;a.F=c;a.D=d;a.M=e;b=a.G||a.F||a.D||a.M;h!=b&&(b?a.P=S(a,a.element,"mousewheel",a.IH):(a.ya(a.P),a.P=null),M(a.O,"ytp-volume-slider-active",b))},z8=function(a,b){var c=a.V();
R.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:P("YTP_URL_NAVIGATE_TO",{WEBSITE:VH(c)}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.o?(Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-logo-gaming"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 98 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-25" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-26" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-27" /><g id="ytp-svg-28"><path d="M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34" /><path d="M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z" /><path d="M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z" /><path d="M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z" /><path d="M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z" /><path d="M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34" /></g></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-26" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-28" /></svg>'),
L(this.element,"ytp-youtube-gaming-button")):Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-logo"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 51 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-22" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-23" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-24" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-22" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-22" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-23" /></svg>');
this.A=a;this.R("click",this.F);S(this,a,"videodatachange",this.D);this.D();Lb(this,a6(b.A,this.element))},A8=function(a,b,c){sr.call(this);
var d=a.V();this.ca=a;this.B=b;this.O=window.NaN;this.P=null;this.U=c;this.U.subscribe("autohideupdate",this.zH,this);c=!$y(Pz(a));var e=new R(["div","ytp-gradient-bottom"]);H(this,e);qr(a,e.element,8);this.H=new nr(e,250,c,100);H(this,this.H);this.A=new R(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);H(this,this.A);qr(a,this.A.element,8);this.G=new nr(this.A,250,c,100);H(this,this.G);c=this.A.element.children[0];this.o=new m8(a);H(this,this.o);qr(a,this.o.element,6);this.o.subscribe("show",
this.RD,this);this.o.subscribe("show",b.wD,b);this.F=new D7(a,b);H(this,this.F);this.F.o(this.A.element,0);e=new a7(a,b);H(this,e);qr(a,e.element,4);this.F.subscribe("height-change",e.WG,e);e=new d7(a);H(this,e);qr(a,e.element,4);e=new uq(["div","ytp-left-controls"]);H(this,e);e.o(c);var h=new y7(a,b,!1);H(this,h);h.o(e.element);h=new w7(a,b);H(this,h);h.o(e.element);h=new y7(a,b,!0);H(this,h);h.o(e.element);h=new R(["span"]);H(this,h);h.o(e.element);if(d.rb){var k=new r7(a,b);H(this,k);k.o(h.element);
k=new m2(h.element);H(this,k);k.subscribe("hoverstart",this.CH,this);k=new m2(e.element);H(this,k);k.subscribe("hoverend",this.BH,this)}this.C=new x8(a,b,this.A.element);H(this,this.C);this.C.o(h.element);this.M=new v8(a,b);H(this,this.M);this.M.o(e.element);e=new uq(["div","ytp-right-controls"]);H(this,e);e.o(c);c=new u8(a,b);H(this,c);c.o(e.element);c=new r8(a,b,this.o);H(this,c);this.o.L=c;c.o(e.element);c=y(this.MD,this);this.K=new j7(a,c);H(this,this.K);qr(a,this.K.element,5);this.J=new i7(a,
b,c);H(this,this.J);this.J.o(e.element);!d.Eb&&d.ac&&(c=new z8(a,b),H(this,c),c.o(e.element));c=new s8(a,b);H(this,c);c.o(e.element);c=new S7(a);H(this,c);qr(a,c.element,4);c=new T7(a,b,this.o);H(this,c);c.o(e.element);d.$b&&(d=new $6(a,b),H(this,d),d.o(e.element));d=St();d.webkitSetPresentationMode&&ha(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new u7(a,b),H(this,d),d.o(e.element));this.D=new h7(a,b);H(this,this.D);this.D.o(e.element);T(this,a,"resize",
this.Cn);T(this,a,"fullscreentoggled",this.AH);T(this,a,"progresssync",this.Bn);this.Cn()},B8=function(a,b){$y(Pz(a.ca))||b?b&&(a.G.ha(),a.H.ha(),a.B.A.sf(a.la())):b||(a.G.show(),a.H.show(),a.Bn())},C8=function(a){R.call(this,["div",
"ytp-title",["a","ytp-title-channel-logo",{href:"{{channelImageLink}}",target:"_blank"}],["div","ytp-title-text",["a",["ytp-title-link","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},["span","ytp-title-playlist-icon"],["span",null,"{{title}}"]],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank"},"{{channelName}}"]]]);this.A=a;this.D=null;this.L=this.qa["ytp-title-link"];this.K=this.qa["ytp-title-channel-logo"];this.H=this.qa["ytp-title-playlist-icon"];
Jf(this.H,Qf());this.G=null;S(this,a,"videodatachange",this.F);S(this,a,"videoplayerreset",this.F);S(this,a,"resize",this.J);this.J(gF(a).La());this.F()},E8=function(a){var b=a.A.getVideoData(),c=b.videoId&&2==a.A.getPresentingPlayerType();
c&&b.videoId==a.G?L(a.element,"ytp-title-extra-info"):($d(a.element,"ytp-title-extra-info"),c&&(b.author&&b.gi&&b.profilePicture?D8(a,b.videoId,b.author,b.gi,b.profilePicture):(c=TH(a.A.V(),b.videoId,!1),pj(c,{method:"GET",qb:y(a.M,a,b.videoId),withCredentials:!0}))))},D8=function(a,b,c,d,e){d=a.A.V().U+"://"+UH(a.A.V())+d;
a.K.style.backgroundImage="url("+e+")";a.C("channelImageLink",d);a.C("channelNameLink",d);a.C("channelName",P("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.G=b;E8(a)},F8=function(a,b,c,d){var e=gF(a).La();
R.call(this,["div","",["div","ytp-tooltip-bg","",["div","ytp-tooltip-duration","{{duration}}"]],["div","ytp-tooltip-text-wrapper",["div","ytp-tooltip-image"],["div","ytp-tooltip-title","{{title}}"],["span","ytp-tooltip-text","{{text}}"]]]);this.H=a;this.da=b;this.fa=c;this.ia=d;this.P=this.qa["ytp-tooltip-bg"];this.ma=this.qa["ytp-tooltip-image"];this.ea=y(this.nB,this);this.U=y(this.pB,this);this.A=null;this.K=new nr(this,100);H(this,this.K);this.M=this.J=this.D=null;this.F=window.NaN;this.L="";
this.Z=0;this.aa=e.width;this.O=!0;this.ka=e;this.G=1;this.W=new Ud(this.qz,250,this);H(this,this.W)},H8=function(a,b){null!=a.D&&(b?2==a.D?(G8(a),a.K.show(!1,400)):a.K.show():a.K.ha());
a.O=b},a6=function(a,b){if(a.da)return v;
b.addEventListener("mouseover",a.U);return y(function(){this.A==b&&this.Xd();b.removeEventListener("mouseover",this.U)},a)},G8=function(a){var b=a.A.getAttribute("data-tooltip-text");
a.C("text",b||a.L);if(b){var c=a.A.getAttribute("data-duration");a.update({title:a.L,duration:c});var d=a.A.getAttribute("data-preview"),e=96*a.G,h=54*a.G,k=120*a.G,l=90*a.G;a.P.style.width=e+"px";a.P.style.height=h+"px";a.P.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(h-l)/2+"px/"+k+"px "+l+"px":"";Yd(a.element,["ytp-text-detail","ytp-preview"]);M(a.element,"ytp-has-duration",!!c)}else ae(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);c=ar(a.A);d=Xq(a.A,a.H.Da());I8(a,d.x+
c.width/2,!!b,d.y+c.height/2,c.height)},I8=function(a,b,c,d,e){a.element.style.left="0px";
a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.aa,200)+"px";c=ar(a.element);b-=c.width/2;if(1==a.D||2==a.D&&a.fa(a.A))L(a.element,"ytp-bottom"),b=je(b,a.Z,a.Z+a.aa-c.width);else if(a.ia(a.A))L(a.element,"ytp-top"),d=gF(a.H).La().width,b=je(b,12,d-c.width-12);else{var h=gF(a.H).La();b=je(b,12,h.width-c.width-12);a.element.style.top=(d>h.height/2?d-e/2-12-c.height:d+e/2+12)+"px"}a.element.style.left=b+"px"},t7=function(a){a.A&&a.A.hasAttribute("title")&&(a.L=a.A.getAttribute("title"),
a.A.removeAttribute("title"),a.O&&G8(a))},J8=function(a,b){M(a.element,"ytp-preview",0<=b);
if(!(0>b||b==a.F)){a.F=b;var c=96*a.G,d=96*a.G,e=Hu(a.M,a.F,c);u2(a.P,e,c,d,!0);a.W.start()}},M8=function(a,b,c){R.call(this,["button",
["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.F=a;this.J=b.A;this.H=c;L(c,"ytp-watch-later-button-visible");this.G=null;this.A=this.D=!1;this.R("click",this.KH,this);S(this,a,"videoplayerreset",this.MH);S(this,a,"WATCH_LATER_VIDEO_ADDED",this.Jz);S(this,a,"WATCH_LATER_VIDEO_REMOVED",this.UB);S(this,a,"WATCH_LATER_ERROR",this.LH);S(this,a,"resize",this.fu);this.fu(gF(a).La());K8(this,2);L8(this);Lb(this,a6(b.A,this.element))},L8=function(a,b){if(b)a.update({title:b,
image:null});else{var c=a.F.V();c.userDisplayName?a.update({title:P("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:P("YTP_WATCH_LATER"),image:null})}t7(a.J)},K8=function(a,b){if(b!=a.G){var c=a.element;
switch(b){case 3:Jf(c,Sf());break;case 1:Jf(c,Kf?'<div class="ytp-icon ytp-icon-watch-later-added"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z" id="ytp-svg-51" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-51" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-51" /></svg>');break;case 2:Jf(c,Kf?'<div class="ytp-icon ytp-icon-watch-later"></div>':
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z" id="ytp-svg-50" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-50" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-50" /></svg>');break;case 4:Jf(c,Kf?'<div class="ytp-icon ytp-icon-alert"></div>':
'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z" id="ytp-svg-2" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-2" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-2" /></svg>')}a.G=b}},N8=function(a){var b=a.V();
R.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":P("YTP_URL_NAVIGATE_TO",{WEBSITE:VH(b)}),"data-sessionlink":"feature=player-watermark"}]);Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-watermark"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 77 34" width="100%"><defs><path d="m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z" id="ytp-svg-22" /><path d="M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z" id="ytp-svg-23" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-24" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-22" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-22" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-23" /></svg>');
this.D=a;this.A=null;S(this,a,"videodatachange",this.F);this.F()},P8=function(a){sr.call(this);
rM();var b=a.V(),c=gF(a);this.o=a;Cha(this);var d=Pz(a);this.Ma=!1;this.Ia=!0;this.Fa=!1;this.ea=this.J=null;var e=new y6(a);H(this,e);qr(a,e.element,4);var h=new Z6(a);H(this,h);qr(a,h.element,4);this.O=new X5(a);H(this,this.O);qr(a,this.O.element,4);var k=new R(["div","ytp-gradient-top"]);H(this,k);qr(a,k.element,1);this.ua=new nr(k,250,!0,100);H(this,this.ua);this.C=new R(["div","ytp-chrome-top"]);H(this,this.C);qr(a,this.C.element,1);this.xa=new nr(this.C,250,!0,100);H(this,this.xa);this.U=new H6(a);
H(this,this.U);this.U.o(e.element);this.D=new J5(c,y(this.FG,this),b.useTabletControls);H(this,this.D);this.D.subscribe("autohideupdate",this.GG,this);this.A=new F8(a,b.useTabletControls||b.isMobile,y(this.Bp,this),y(this.Jp,this));H(this,this.A);qr(a,this.A.element,4);this.G=new $5(a,this,y(this.LD,this));H(this,this.G);qr(a,this.G.element,2);this.Y=new TB(a,this.G);H(this,this.Y);qr(a,this.Y.element,5);this.M=!1;k=y(this.Dr,this);this.Z=new J6(a,k);H(this,this.Z);qr(a,this.Z.element,5);this.ka=
new L6(a,this,k);H(this,this.ka);this.ka.o(this.C.element);k=new C8(a);H(this,k);k.o(this.C.element);k=new uq(["div","ytp-chrome-top-buttons"]);H(this,k);k.o(this.C.element);var l=y(this.Er,this);this.aa=new N6(a,l);H(this,this.aa);qr(a,this.aa.element,5);this.wa=new O6(a,this,l,this.C.element);H(this,this.wa);this.wa.o(k.element);b.mf&&(l=new M8(a,this,this.C.element),H(this,l),l.o(k.element));l=y(this.Ot,this);this.P=new P6(a,this,l);H(this,this.P);qr(a,this.P.element,5);this.ma=new R6(a,this,0,
l,this.C.element);H(this,this.ma);this.ma.o(k.element);k=new S6(a);H(this,k);qr(a,k.element,3);(this.B="1"==b.B?new A8(a,this,this.D):null)&&H(this,this.B);b.Ja?(l=new F5(c,y(this.Hq,this),y(this.YB,this),y(this.Gq,this)),H(this,l)):T(this,c,"click",y(function(a){this.Gq(a)||this.Hq(a)},this));
T(this,c,"touchstart",this.ZB);T(this,c,"mousedown",this.Iq);this.K=new w6(a);H(this,this.K);this.K.subscribe("show",this.Pt,this);this.Ea=!1;!b.Eb&&b.nd&&(l=new N8(a),H(this,l),qr(a,l.element,7));l=new W5(a);H(this,l);qr(a,l.element,4);this.ia=a.getVideoData().videoId;this.F=null;this.H=!1;this.Ca=[];this.fa=new R(["div","",{tabindex:0}]);this.fa.R("focus",this.Xw,this);this.da=new R(["div","",{tabindex:0}]);this.da.R("focus",this.Yw,this);l=a.Da();l.setAttribute("aria-label",P("YTP_PLAYER_NORMAL"));
switch(b.color){case "white":L(l,"ytp-color-white");break;case "blue":L(l,"ytp-color-blue")}(this.W=b.useTabletControls?null:new A6(a,c,this.K,this.D,k,this.O,y(this.Ao,this)))&&H(this,this.W);T(this,a,"resize",this.wn);T(this,a,"fullscreentoggled",this.HG);T(this,a,"presentingplayerstatechange",this.IG);T(this,a,"videodatachange",this.Nt);T(this,a,"videoplayerreset",this.LB);T(this,a,"autonavvisibility",this.oh,this);T(this,a,"cardstatechange",this.Gr,this);T(this,a,"minimized",this.ig,this);T(this,
a,"onFrescaStateChange",this.ig,this);O8(this,d);this.oh();this.wn();this.Ja=[c.D,h.element,e.element,this.O.element,this.U.element]},Q8=function(a,b,c){a.J?(b.element.getAttribute("aria-expanded"),b.element.getAttribute("aria-expanded"),b.element.removeAttribute("aria-expanded"),c.tb(),a.J=null,a.ea=null):(b.element.getAttribute("aria-expanded"),a.J=c,a.ea=b,c.we(b.element),b.element.setAttribute("aria-expanded",!0));
a.ig()},hF=function(a){a.o.app.V();
iM(a.o);return a.Fa||a.M||!!a.J||iM(a.o)||a.o.app.V().Jl},R8=function(a,b){if(!b)return!1;
for(var c=0;c<a.Ja.length;c++)if(kh(a.Ja[c],b))return!1;return Xd(b,"ytp-player-content")||Xd(b,"html5-endscreen")||b==a.o.Da()?!1:!0},S8=function(a,b){if("3"==a.o.V().B){var c=Pz(a.o);
if((U(c,8)||U(c,4))&&(!U(c,2)||a.o.V().experiments.ga("disable_native_controls_ended"))&&(c=Kl(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1},iF=function(a){return a.o.Oa()||!1},O8=function(a,b){var c=b.ib()&&!U(b,32);
a.D.kb(128,!c);c=3==a.o.getPresentingPlayerType();a.D.kb(256,c);var c=a.o.Da(),d;U(b,2)?d=["ended-mode"]:(d=[],U(b,8)?d.push("playing-mode"):U(b,4)&&d.push("paused-mode"),U(b,1)&&!U(b,32)&&d.push("buffering-mode"),U(b,32)&&d.push("seeking-mode"),U(b,64)&&d.push("unstarted-mode"));Gb(a.Ca,d)||(ae(c,a.Ca),a.Ca=d,Yd(c,d));a.B&&B8(a.B,hF(a));d=a.o.V();var e=$y(b);M(c,"ytp-hide-controls","1"!=d.B||e);M(c,"ytp-native-controls","3"==d.B&&!e&&!U(b,2));if(U(b,128)){a.F||(a.F=new P5(a.o),H(a,a.F),a.F.o(c),
qr(a.o,a.F.element,4));var c=a.F,h=b.o,e=c.D.V();d=h.message;var k="embedded"==e.Aa,l=h.messageKey,m,h=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=l||e.Eb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==l||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==l?(m="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=l||e.Eb||(m="//"+UH(e)+"/html5",l="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(m="//support.google.com/youtube/?p=player_error1",l="YTP_ERROR_GENERIC_WITH_LINK",ny(e)&&
!e.L&&(h=!0));m&&(d=P(l,{BEGIN_LINK:'<br/><a href="'+m+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(m=0;m<c.F.length;m++)c.ya(c.F[m]);c.F=[];c.C("content",new K5(d));if(h)for(m=y(c.G,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=S(c,d[e],"click",m),c.F.push(k);a.F.show()}else a.F&&(a.F.dispose(),a.F=null)},T8=function(a,b){a.D.isDisposed()||a.D.kb(16,b)},U8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;
for(var d=null;b;){if("none"!=Lq(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=U8(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d},Cha=function(a){a=a.o.V();
var b=a.P;if(Wt("ytp-normal-css-loaded")){var c=Wt("ytp-sprite-mode-css-loaded");b!=c&&vi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}},V8=function(){},Z=function(a,b){if(b<a.C){var c=b+a.D,d=a.o[c];
return d===W8?a.o[c]=[]:d}d=a.A[b];return d===W8?a.A[b]=[]:d},X8=function(a){var b=a;
a=Dha;this.B=null;b||(b=[]);this.D=-1;this.o=b;a:{if(this.o.length){var b=this.o.length-1,c=this.o[b];if(c&&"object"==typeof c&&!da(c)){this.C=b- -1;this.A=c;break a}}this.C=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.C?(c+=-1,this.o[c]=this.o[c]||W8):this.A[c]=this.A[c]||W8},b9=function(a,b){G.call(this);
var c=b;c instanceof Fh||(c=new Fh(c));var c=this.W=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?be(e):null)){var e=new X8(e),e={el:Z(e,1),ps:Z(e,2),autonav:Z(e,3),autoplay:Z(e,4),eventid:Z(e,5),fexp:Z(e,6),fflags:Z(e,7),isHtml5MobileDevice:Z(e,8),legacyBehavior:Z(e,9),playerErrorLogFraction:Z(e,10),canWatchLater:Z(e,11),mute:Z(e,12),partnerid:Z(e,13),showinfo:Z(e,14),ss:Z(e,15),watchXlb:Z(e,16),dclk:Z(e,17),ivModule:Z(e,18),iv3Module:Z(e,19),iv3EditModule:Z(e,20),ivInvideoUrl:Z(e,21),ivLoadPolicy:Z(e,
22),atc:Z(e,23),loudness:Z(e,24),infringe:Z(e,25),subtitlesXlb:Z(e,26),ccFont:Z(e,27),ccModule:Z(e,28),ccFontsUrl:Z(e,29),cc3Module:Z(e,30),ttsurl:Z(e,31),ccAsr:Z(e,32),ccContribute:Z(e,33),ccAutoCaps:Z(e,34),ccLoadPolicy:Z(e,35),captionTracks:Z(e,36),captionAudioTracks:Z(e,37),captionTranslationLanguages:Z(e,38),defaultAudioTrackIndex:Z(e,39),cr:Z(e,40),hostLanguage:Z(e,41),hl:Z(e,42),enablecsi:Z(e,43),csiPageType:Z(e,44),c:Z(e,45),cbr:Z(e,46),cbrver:Z(e,47),cos:Z(e,48),cosver:Z(e,49),cplatform:Z(e,
50),cbrand:Z(e,51),cmodel:Z(e,52),cnetwork:Z(e,53),isRtl:Z(e,54),enhanceModule:Z(e,55),enhanceXlb:Z(e,56),regionModule:Z(e,57),previewSplitMode:Z(e,58),status:Z(e,59),reason:Z(e,60),errorcode:Z(e,61),errordetail:Z(e,62),apiaryHost:Z(e,63),apiaryHostFirstparty:Z(e,64),gapiHintOverride:Z(e,65),gapiHintParams:Z(e,66),innertubeApiKey:Z(e,67),innertubeApiVersion:Z(e,68),innertubeContextClientVersion:Z(e,69),loaderurl:Z(e,70),multicameraModule:Z(e,71),multicameraPreroll:Z(e,72),multifeedMetadataList:Z(e,
73),allowEmbed:Z(e,74),allowedDomains:Z(e,75),ypcItemTitle:Z(e,76),ypcItemUrl:Z(e,77),ypcItemThumbnail:Z(e,78),ypcOfferHeadline:Z(e,79),ypcOfferDescription:Z(e,80),ypcOfferId:Z(e,81),ypcOfferButtonText:Z(e,82),ypcFullVideoMessage:Z(e,83),ypcModule:Z(e,84),ypcVid:Z(e,85),ypcLicenseCheckerModule:Z(e,86),heartbeatServerUrl:Z(e,87),ypcLicenseSessionToken:Z(e,88),purchaseId:Z(e,89),heartbeatToken:Z(e,90),heartbeatInterval:Z(e,91),heartbeatRetries:Z(e,92),ypcClickwrapModule:Z(e,93),ypcClickwrapMessage:Z(e,
94),livestream:Z(e,95),livePlayback:Z(e,96),authTimeout:Z(e,97),hlsdvr:Z(e,98),streaminglibModule:Z(e,99),frescaModule:Z(e,100),frescaPreroll:Z(e,101),frescaXlb:Z(e,102),enableCardio:Z(e,103),enableCardioBeforePlayback:Z(e,104),liveChunkReadahead:Z(e,105),innertubeClientVersion:Z(e,106),adHost:Z(e,107),adHostTierId:Z(e,108),coreDbp:Z(e,109),googleCustAge:Z(e,110),googleCustGender:Z(e,111),pyvAdChannel:Z(e,112),showPyvInRelated:Z(e,113),tagForChildDirected:Z(e,114),playerWide:Z(e,115),enablesizebutton:Z(e,
116),bannerUrl:Z(e,117),profilePicture:Z(e,118),channelTitle:Z(e,119),spacecastAddress:Z(e,120),timestamp:Z(e,121),fmtList:Z(e,122),urlEncodedFmtStreamMap:Z(e,123),adaptiveFmts:Z(e,124),licenseInfo:Z(e,125),idup:Z(e,126),dashmpd:Z(e,127),hlsvp:Z(e,128),hlsFormats:Z(e,129),probeUrl:Z(e,130),storyboardSpec:Z(e,131),liveStoryboardSpec:Z(e,132),ismb:Z(e,133),surveySmartpixelUrl:Z(e,134),surveycreativedata:Z(e,135),threedXlb:Z(e,136),threedModule:Z(e,137),threedConverted:Z(e,138),approxThreedLayout:Z(e,
139),threedLayout:Z(e,140),t:Z(e,141),token:Z(e,142),noGetVideoLog:Z(e,143),tmi:Z(e,144),plid:Z(e,145),pltype:Z(e,146),ptchn:Z(e,147),ptk:Z(e,148),oid:Z(e,149),idpj:Z(e,150),ldpj:Z(e,151),userAge:Z(e,153),userGender:Z(e,154),sw:Z(e,155),remarketingUrl:Z(e,156),ppvRemarketingUrl:Z(e,157),rmktenabled:Z(e,158),baseurl:Z(e,159),videostatsPlaybackBaseUrl:Z(e,160),subscribed:Z(e,161),engaged:Z(e,162),vid:Z(e,163),uid:Z(e,164),aid:Z(e,165),focenabled:Z(e,166),socialenabled:Z(e,167),ytfocenabled:Z(e,168),
ytfochistoryenabled:Z(e,169),ssrt:Z(e,170),delay:Z(e,171),cl:Z(e,172),osid:Z(e,173),vm:Z(e,174),videoId:Z(e,175),title:Z(e,176),lengthSeconds:Z(e,177),keywords:Z(e,178),ucid:Z(e,179),allowRatings:Z(e,180),avgRating:Z(e,181),viewCount:Z(e,182),author:Z(e,183),thumbnailUrl:Z(e,184),isListed:Z(e,185),liveDefaultBroadcast:Z(e,186),vq:Z(e,187),watermark:Z(e,188),accountPlaybackToken:Z(e,189),watchAjaxToken:Z(e,190),yvaXlb:Z(e,191),yvaModule:Z(e,192),yvaPreroll:Z(e,193),ypcXlb:Z(e,194),authuser:Z(e,195),
pageid:Z(e,196),userDisplayName:Z(e,197),userDisplayImage:Z(e,198),playlistTitle:Z(e,199),playlistLength:Z(e,200),index:Z(e,201),iurl:Z(e,202),iurlmq:Z(e,203),iurlhq:Z(e,204),iurlsd:Z(e,205),iurlmaxres:Z(e,206),iurlWebp:Z(e,207),iurlmqWebp:Z(e,208),iurlhqWebp:Z(e,209),iurlsdWebp:Z(e,210),iurlmaxresWebp:Z(e,211),start:Z(e,212),end:Z(e,213),resume:Z(e,214),of:Z(e,215),list:Z(e,216),q:Z(e,217),referrer:Z(e,218),sdetail:Z(e,219),sourceid:Z(e,220),externalList:Z(e,221),forcedExperiments:Z(e,222),cctp:Z(e,
223),adformat:Z(e,224),listtype:Z(e,225),privembed:Z(e,226),afvInstreamMax:Z(e,227),adLanguageIso6392:Z(e,228),adTag:Z(e,229),afvAdTagRestrictedToInstream:Z(e,230),maxDynamicAllocationAdTagLength:Z(e,231),asLaunchedInCountry:Z(e,232),adFlags:Z(e,233),adPreroll:Z(e,234),aftv:Z(e,235),invideo:Z(e,236),dynamicAllocationAdTag:Z(e,237),gutTag:Z(e,238),pyvInRelatedCafeExperimentId:Z(e,239),afvAdTag:Z(e,240),hO:Z(e,241),loeid:Z(e,242),adDevice:Z(e,243),cafeExperimentId:Z(e,245),adsenseVideoDocId:Z(e,246),
fw:Z(e,247),adSlots:Z(e,248),shortform:Z(e,249),tpasPartnerId:Z(e,250),instream:Z(e,251),trueview:Z(e,252),midrollFreqcap:Z(e,253),mpvid:Z(e,254),mpu:Z(e,255),afv:Z(e,256),tpasAdTypeId:Z(e,257),tpasVideoId:Z(e,258),sffb:Z(e,259),contentOwnerName:Z(e,260),afvMergeEnabled:Z(e,261),excludedAds:Z(e,262),noAfvInstream:Z(e,263),adAge:Z(e,264),adGender:Z(e,265),adLoggingFlag:Z(e,266),showContentThumbnail:Z(e,267),cid:Z(e,268),afvInvideoAdTag:Z(e,269),allowHtml5Ads:Z(e,270),supportedWithoutAds:Z(e,271),instreamLong:Z(e,
272),adBreaks:Z(e,273),afcRmFallback:Z(e,275),allowAdInAutoplay:Z(e,276),c4:Z(e,277),dbp:Z(e,278),fqsf:Z(e,279),gptMigration:Z(e,280),xfp:Z(e,281),midrollPrefetchSize:Z(e,282),trueviewLactt:Z(e,283),xfpTag:Z(e,284),advideo:Z(e,285),ad3Module:Z(e,286),vmap:Z(e,287),serverPrefetchedVast:Z(e,288),amsBaseTag:Z(e,289),fadeOutStartMilliseconds:Z(e,290),fadeOutDurationMilliseconds:Z(e,291),fadeInStartMilliseconds:Z(e,292),fadeInDurationMilliseconds:Z(e,293),applyFadeOnMidrolls:Z(e,294),adModule:Z(e,295),
pla:Z(e,296),plaAdTag:Z(e,297),vastAdsModule:Z(e,298),forcedSkipOffset:Z(e,299),enabledEngageTypes:Z(e,300),freewheelAdTag:Z(e,301),postAdRequests:Z(e,302),enablejsapi:Z(e,303),ssl:Z(e,304),baseYtUrl:Z(e,306),controls:Z(e,307),disablekb:Z(e,308),jsapicallback:Z(e,309),svt:Z(e,310),canplaylive:Z(e,311),storeUserVolume:Z(e,312),useMediaVolume:Z(e,313),sslStream:Z(e,314),dash:Z(e,315),liveStartWalltime:Z(e,316),oauthToken:Z(e,317),visitorData:Z(e,318),vvt:Z(e,319),osig:Z(e,320),paygated:Z(e,321),videoMastheadAdQuartileUrls:Z(e,
322),tvList:Z(e,323),pyvViewBeaconUrl:Z(e,324),pyvQuartile25BeaconUrl:Z(e,325),pyvQuartile50BeaconUrl:Z(e,326),pyvQuartile75BeaconUrl:Z(e,327),pyvQuartile100BeaconUrl:Z(e,328),pyvBillableUrl:Z(e,329),rco:Z(e,330),cco:Z(e,331),feature:Z(e,332),isFling:Z(e,333),ctrl:Z(e,334),ytr:Z(e,335),ytrcc:Z(e,336),startseconds:Z(e,337),sentiment:Z(e,338),spacecastFormatMap:Z(e,339),spacecastAdaptiveFormats:Z(e,340),suggestedquality:Z(e,341),rvs:Z(e,342),urlEncodedThirdPartyMedia:Z(e,343),vssCredentialsToken:Z(e,
344),vssCredentialsType:Z(e,345),ypcGid:Z(e,346),ypcPreview:Z(e,347),ypcOrigin:Z(e,348),requiresPurchase:Z(e,349),mdx:Z(e,350),retryneterr:Z(e,351),itct:Z(e,352),ypcOverlayTimeout:Z(e,353),app:Z(e,354),cweb:Z(e,355),pyvConvUrl:Z(e,356),cver:Z(e,357),on3g:Z(e,358),autohide:Z(e,359),useNativeControls:Z(e,360),useTabletControls:Z(e,361),codeDbp:Z(e,362),rel:Z(e,363),attrib:Z(e,364)},h={};for(d in e){var k=Y8[d]?Y8[d]:d.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();h[k]=e[d]}d=h;break a}d=null}var l;
if(d){c=c.args;e=[];for(l in c)Eha[l]||(d.hasOwnProperty(l)?typeof c[l]!=typeof d[l]?e.push("wrong type. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):c[l]!==d[l]&&e.push("values differ. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):e.push("missing. key ["+l+" ]: ("+typeof c[l]+") "+c[l]));l=e}else l=[];c=Math.floor(Math.random()*l.length);l=l.slice(c).concat(l.slice(0,c));for(c=0;c<l.length;c++)vi(Error("Discrepancy in legacy config: "+l[c]));l=this.W.args||
{};this.X=new OH(l);H(this,this.X);this.X.experiments.ga("legacy_autoplay_flag")||"detailpage"!=this.X.Aa||(l.autoplay="1");this.Ob=Ou("detailpage"==this.X.Aa&&"blazer"!=this.X.o||"books"==this.X.o,l.enablesizebutton);this.wa=Ou(!1,l.player_wide);this.U=this.X.Va&&Ou(!1,l.external_list);this.$b=this.X.Va&&Ou(!1,l.external_play_video);this.ka=new sr(this);H(this,this.ka);this.Fa=null;this.L=new Ae;this.ua=new Ae;this.o=new SL(this);H(this,this.o);this.Qa=new SL(this,1);H(this,this.Qa);this.G=new w5(this);
H(this,this.G);this.G.subscribe("resize",this.vE,this);this.M=1;this.Ra={};this.X.storeUserVolume?(l=Zi("yt-player-volume")||{},c=l.volume,l={volume:(0,window.isNaN)(c)?100:je(Math.floor(c),0,100),muted:!!l.muted}):l={volume:100,muted:this.X.mute};this.Y=l;this.ca=this.X.Va?new RL(this,1):new QL(this,1);H(this,this.ca);this.Ca=this.B=null;this.Ia={};l=this.X;c=new Caa;IH(l)&&(c.C=!0,c.B=.1);l.Ra&&(c.A=l.Ra/8);c.o=l.experiments.dc("html5_bandwidth_window_size")||c.o;this.Ja=new Baa(c);this.Wa={internalvideodatachange:this.Sz,
liveviewshift:this.sE,playbackready:this.Tz,playbackstarted:this.Uz,statechange:this.Vz,signatureexpired:this.iC};l=new UN;c=this.o;l.A!=c&&(VN(l),l.F={},l.A=c);c={};c.loaded=y(this.qq,this);c.unloaded=y(this.rq,this);c.destroyed=y(this.Vl,this);c.command_pause=Z8(this.pauseVideo,this);c.command_play=Z8(this.Ze,this);c.command_seek=Z8(this.mg,this);c.command_redirect_controls=y(this.Yr,this);c.command_stop_redirect_controls=y(this.nj,this);l.G=c;this.V().J.subscribe("vast_info_card_add",pa(l.J,"vast_info_card_add"),
l);this.D=l;H(this,this.D);this.K=new M1(this.X,"",this.D);l=new YK(this.X,1,this.K,this.G,y(this.L.S,this.L));$8(this,l,this.Wa);this.A=l;this.A.ka=this.Ja;this.xb={airplayactivechange:this.Kz,airplayavailabilitychange:this.Lz,beginseeking:this.pE,endseeking:this.qE,internalaudioformatchange:this.Xz,internalvideodatachange:this.Wm,internalvideoformatchange:this.HC,playbackstalledatstart:this.nC,progresssync:this.uE,seekto:this.wE,onLoadProgress:this.cB,onVideoProgress:this.JC,playbackready:this.HB,
statechange:this.tE,connectionissue:this.wA,heartbeatparams:this.rE,videoelementevent:this.xE};this.P=this.F=null;this.$a=this.fb=-1;this.fa=this.J=this.H=null;this.ea={};this.ma=null;this.rb=new Ud(this.G.ve,16,this.G);H(this,this.rb);this.Ma=!1;this.Z=!0;this.Ea=this.C=null;this.xa=!1;this.O=1;this.X.experiments.ga("persist_playback_rate_killswitch")||(this.O=a9(this,Zi("yt-player-playback-rate")||1));this.ia=null;this.ac=this.jb=!1;this.wb=null;this.aa=0;this.Pb=new U5(this.G.element);H(this,this.Pb);
this.gb=0;this.o.addEventListener("crn_"+b9.B,this.Qz,this);this.o.addEventListener("crx_"+b9.B,this.Rz,this);this.o.addEventListener("crn_"+b9.A,this.$p,this);this.o.addEventListener("crx_"+b9.A,this.$p,this);this.G.initialize(a);Kf=this.X.P;l=new bx(this.W.args);Cx(l)&&(this.A.jh(l,y(this.Bj,this)),ky(this.X)&&(c=l.videoId,c=(d=Zi("yt-player-restore-playhead"))?d[c]:void 0,c&&(l.startSeconds=c)),$i("yt-player-restore-playhead"),(this.X.experiments.ga("legacy_autoplay_flag")?this.X.Wa:l.Lc)&&(this.X.Ia||
this.X.experiments.J)&&dL(this.A));this.K.A("fs",void 0);l=this.G;l.isDisposed();c=l.app.V();c.H||l.vn("tag-pool-enabled");c.Eb&&l.vn("house-brand");"gvn"==c.o&&l.vn("ytp-gvn");ny(c)&&(l.K=Di("yt-dom-content-change",l.ve,l));S(l,window,"resize",l.ve,l);l=this.ca;l.o=this.G.element;for(var m in l.B)l.o[m]=l.B[m];for(m in l.C)l.o[m]=l.C[m];m=zh("fullscreenchange",this.G.element);"msfullscreenchange"==m&&(m="MSFullscreenChange");m&&T(this.ka,this.G,m,this.RA);T(this.ka,window,"resize",this.XB);l=this.W.args;
c9(this);m=P4(this);this.o.Ba("onVolumeChange",this.Y);l&&Rx(l)&&((c=ky(this.X))&&!this.U&&(l.fetch=0),d9(this,l),c&&!this.U?e9(this):Cx(m)||(l=this.C,c=y(this.uq,this),l.G=c,l.F&&ri(l.G,0)));if(l=this.W.args.jsapicallback)ha(l)||(l=r(l)),l&&Z8(y(l,aa,this.X.Fe),aa);this.X.fb||(dp("embedded"==this.X.Aa),this.X.Eg=YH(this.X)&&!kb(mp()));Y4(this,this.A);l=Vt(this.X.F);"fmt.noneavailable"==l?bL(this.A,l,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==l?bL(this.A,l,"YTP_ERROR_UNSUPPORTED_DEVICE",
void 0):(this.X.experiments.ga("legacy_autoplay_flag")?this.X.Wa:m.Lc)&&this.X.Ia&&Cx(m)?f9(this):"leanback"!=this.X.Aa&&g9(this);this.da=new P8(this.o);H(this,this.da);fM(this.Qa,"init")},h9=function(a,b){a.Fa||(a.Fa=new T5(a),H(a,a.Fa),qr(a.o,a.Fa.element,4));
a.Fa.ob(b)},c9=function(a){var b=V4.getTag(!0,!a.X.F);
a.B=new rH(b);a.Ca=a.B;a.F&&sL(a.F,a.B);a.B.o.loop=a.xa;a.B.o.playbackRate=a.O;a.X.useMediaVolume?(a.ia&&a.ka.ya(a.ia),a.ia=T(a.ka,a.B,"volumechange",a.kB)):(a.B.setVolume(a.Y.volume/100),a.B.o.muted=a.Y.muted);sha(a.G,b);a.X.ne=a.B;iH(a.B)},i9=function(a){if(a.B){a.ia&&(a.ka.ya(a.ia),a.ia=null);
a.F&&qL(a.F);var b=a.G;b.A&&(bh(b.A),b.A=null);a.X.ne=null;V4.releaseTag(a.B.la());a.B=null}},z2=function(a,b){a.X.H?(a.fa&&(a.B.setPosition(new pe(a.fa.left,a.fa.top)),a.B.setSize(ye(a.fa)),a.fa=null),nH(a.B),qL(a.F),sL(a.F,a.B),a.B.o.loop=a.xa,a.B.o.playbackRate=a.O):V4.releaseTag(b)},Y4=function(a,b){a.F!=b&&(a.F&&(VN(a.D),lq(a,"cuerangesremoved",a.F.F.o.o||[]),X4(a)),b!=a.A&&(a.Ia[b.L]=b),a.F=b,b.ka=a.Ja,a.B&&sL(b,a.B),$8(a,b,a.xb),a.Wm("newdata",b,b.getVideoData()),b.ea.o&&a.Wm("dataloaded",
b,b.getVideoData()),lq(a,"cuerangesadded",a.F.F.o.o||[]),Sy(b.getPlayerState())&&yL(b))},$8=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)},X4=function(a){qL(a.F);
var b=a.F,c=a.xb,d;for(d in c)b.Ha(d,c[d],a);b=a.F;b!=a.A&&(c=b.L,a.Ia[c]==b&&delete a.Ia[c]);a.F=null},kq=function(a,b){return b?1==b?a.A:a.Ia[b]||null:a.F},j9=function(a){var b=a.D;
F([oF.B,taa,Ey,Tz,daa,paa,dI.A,Aaa,raa,kI],b.Gw,b);a.o.S("videoready",a.getVideoData())},l9=function(a){!a.J&&a.Qa.V().Eg&&(a.J=new u5(a),k9(a,a.J));
if(a.J){var b=qp();v5(a.J,mp(),b);var c=a.J;c&&!c.H&&c.Xa(a.Qa)&&c.create();b&&a.J.load()}},k9=function(a,b){H(a,b);
b.subscribe("loaded",a.qq,a);b.subscribe("unloaded",a.rq,a);b.subscribe("command_pause",Z8(a.pauseVideo,a));b.subscribe("command_play",Z8(a.Ze,a));b.subscribe("command_seek",Z8(a.mg,a));b.subscribe("command_redirect_controls",a.Yr,a);b.subscribe("command_stop_redirect_controls",a.nj,a)},m9=function(a,b){b&&b.H&&("ad"==b.ra&&ae(a.G.element,["ytp-ad-overlay-open",
"ytp-ad-overlay-closed"]),b.destroy())},P4=function(a){return a.A.getVideoData()},n9=function(a,b){return(a.F&&2==a.F.L)==(2==b)?pH(a.Ca):0},g9=function(a){a.o.S("initializingmode");
o9(a,2)},f9=function(a){if(U(a.A.getPlayerState(),128))return!1;
a.o.S("initializingmode");Y4(a,a.A);o9(a,3);var b;(b=!a.X.H)||(r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(i9(a),c9(a),sL(a.A,a.B));gL(a.A);if(U(a.A.getPlayerState(),128))return!1;p9(a,3);return a.ac=!0},q9=function(a){return YH(a.X)&&!!qp()},Z8=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);
ri(function(){a.apply(b||this,c)},0)}},r9=function(a,b){a.xa!=b&&(a.xa=b,a.F==a.A&&(a.B.o.loop=b),a.o.S("loopchange",b))},s9=function(a,b,c){!(0,window.isNaN)(b)&&a.B&&(b=a9(a,b),a.O!=b&&(a.O=b,a.A==a.F&&(a.B.o.playbackRate=b),c&&Yi("yt-player-playback-rate",b),a.o.Ba("onPlaybackRateChange",b)))},a9=function(a,b){var c=1,c=a.X.Z?t9:[1];
return c=1>b?eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b})},u9=function(a,b){var c=kq(a,b);
return c?c.Zm():a.getVideoData().U},v9=function(a,b,c,d){if(a=kq(a,c))d=d||b,b=tu(b,d,!0),Yi("yt-player-quality",d,604800),DL(a,"m",b)},w9=function(a,b){var c=kq(a,b);
return c?c.og():0},y9=function(a,b){var c=JL(a.A,b);
if(a.F&&a.F!=a.A){var d=JL(a.F,b),e;for(e in d)c["ad_"+e]=d[e]}(d=x9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Qa.Hj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return ee(c)},z9=function(a,b){return 3==a.getPresentingPlayerType()?bz(a.J.P):2==b?a.$a:a.fb},A9=function(a){m9(a,a.H);
m9(a,a.J);a.jb=!1;a.nj();r9(a,!1);a.X.experiments.ga("persist_playback_rate_killswitch")&&s9(a,1);a.Ra={};a=a.K;var b=a.B;b.C={};b.B={};a.C=!1},x9=function(a){a=a.Pb;
var b=!a.o,c="";if(!a.o){a.o=new R(["canvas",{style:"display: none"}]);a.o.o(a.B);var d=a.o.element;try{a.A=d.getContext("webgl")}catch(e){}}if(a.A)try{a.A.getExtension("WEBGL_debug_renderer_info"),c=a.A.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(e){}b&&V5(a);return c},e9=function(a){var b=B9();
if(b)if(b.list){if(a.C&&a.C.D.toString()==b.list)if(0<=b.index){var c=b.video;a.o.Oa()&&((c=c[a.C.Kb()])&&c.encrypted_id!=a.C.sb().videoId||(b.index=a.C.Kb()));Vx(a.C,b);a.Ea&&C9(a,a.Ea)}else a.Ea=null}else a.vk()},d9=function(a,b){if(a.C){a.C.Ha("error",a.vk,a);
Mb(a.C);a.C=null;var c=TL(a.D,"playlist");c&&(pb(a.D.o,c),c.destroy())}b&&(a.U&&(b.fetch=0),a.C=new Qx(b),a.C.subscribe("error",a.vk,a))},D9=function(a,b,c,d){b in a.Ra||(c=new gq(c,d,{id:b,
priority:1}),c.o=b9.A,a.A.F.bb([c]),a.Ra[b]=c)},o9=function(a,b){b!=a.M&&(2==b&&(p9(a,-1),p9(a,5)),a.M=b,a.o.S("appstatechange",b))},p9=function(a,b){a.F&&2==a.F.L?a.$a!=b&&(a.$a=b,a.o.Ba("onAdStateChange",b)):a.fb!=b&&(a.fb=b,a.o.Ba("onStateChange",b))},F9=function(a,b,c){a.X.experiments.ga("legacy_autoplay_flag")||"detailpage"!=a.X.Aa||(b.autoplay="1");
var d=new bx(b);b&&Rx(b)?(ky(a.X)&&!a.U&&(b.fetch=0),d9(a,b)):a.C&&d9(a,null);a.U=Ou(!1,b.external_list);ky(a.X)&&!a.U&&e9(a);return E9(a,d,c)},G9=function(a,b){a.P&&a.P.getVideoData().videoId==b.videoId||(b.Ma=!0,a.P||(a.P=new YK(a.X,1,a.K,a.G,y(a.L.S,a.L)),a.P.ka=a.Ja),a.P.jh(b,y(a.Bj,a)),dL(a.P,!0))},E9=function(a,b,c){if(!Cv("_start",a.K.o)){var d=a.K.o;
Ev("yt_sts","p",d);Bv("_start",void 0,d);a.K.info("srt",0)}if(a.P&&a.P.getVideoData().videoId==b.videoId){d=a.P;a.P=null;b=d;c=a.A;var e=a.Wa,h;for(h in e)c.Ha(h,e[h],a);a.A.dispose();a.A=b;$8(a,b,a.Wa);A9(a)}else{d=kq(a,c);if(!d)return!1;a.rb.stop();H9(a,c);d.jh(b,y(a.Bj,a))}if(!cL(d))return!1;a.Ma&&(d.$a=!1,a.Ma=!1);if(d==a.A)return o9(a,1),f9(a);gL(d);return!0},I9=function(a,b,c){c=kq(a,c);
b&&c==a.A&&(c.getVideoData().ng=!0)},J9=function(a,b,c){var d=kq(a,c);
d&&(H9(a,c),d.jh(b,y(a.Bj,a)),NH(d.V(),b.C),d==a.A&&(o9(a,1),g9(a)))},L9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");
if(a.o.Oa()||"detailpage"!=a.X.Aa){c=a.K;var e=c.B;e.C={};e.B={};c.C=!1;a.K.reset();d?(b={video_id:b,list:d},a.Z=!1,K9(a,b,void 0,void 0,void 0)):F9(a,{video_id:b},1)}else a.$b||"gaming"==a.X.o?a.o.Ba("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.X.getVideoUrl(b,d),d=c||{},d.lact=mB(),a.X.experiments.ga("send_presence_signal_vis_desktop")&&(d.vis=SK(a.X)),r("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?window.spf.navigate(b):fy(b))},K9=function(a,b,c,d,e){if(ia(b)&&!da(b)){c=
"playlist list listType index startSeconds suggestedQuality".split(" ");
d={};for(e=0;e<c.length;e++){var h=c[e];b[h]&&(d[h]=b[h])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;d9(a,b);b=a.C;a=y(a.uq,a);b.G=a;b.F&&ri(b.G,0)},By=function(a){ky(a.X)&&!a.U&&e9(a);
return!(!a.C||!a.C.hasNext())},M9=function(a,b){P4(a).autonavState=b;
a.o.S("autonavchange",b)},N9=function(a,b,c){a.U&&!a.o.Oa()?a.o.Ba("onPlaylistNext"):a.C?ky(a.X)&&!a.o.Oa()?C9(a,"yt.www.watch.lists.next"):(a.C.hasNext(b)&&Ux(a.C,Sx(a.C)),a.C.F?E9(a,a.C.sb(void 0,c),1):a.Z=!1):ry(a.X,a.getVideoData(),a.C)&&kq(a,1).getVideoData().H&&(b=fi(kq(a,1).getVideoData().H,Zx)[0],L9(a,b.sb().videoId,b.fa,b.af()))},O9=function(a,b){if(a.U&&!a.o.Oa())a.o.Ba("onPlaylistPrevious");
else if(a.C)if(ky(a.X)&&!a.o.Oa())C9(a,"yt.www.watch.lists.prev");else{var c=a.C;(c.K||b||0<=c.o-1)&&Ux(a.C,Tx(a.C));a.C.F?E9(a,a.C.sb(),1):a.Z=!1}},C9=function(a,b){var c=r(b);
if(c){var d=B9();d&&d.list&&c();a.Ea=null}else a.Ea=b},P9=function(a,b){a.U&&!a.o.Oa()?a.o.Ba("onPlaylistIndex",b):a.C&&(a.C.F?E9(a,a.C.sb(b),1):a.Z=!1,Ux(a.C,b))},B9=function(){var a=r("yt.www.watch.lists.getState");
return a?a():null},R9=function(a,b,c,d,e,h){b={id:b};
"chapter"==h?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==h?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new gq(1E3*c,1E3*d,b);c.o=b9.B;Q9(a,[c],1);return!0},Q9=function(a,b,c){var d=kq(a,c);
d&&(d.F.bb(b),c&&a.getPresentingPlayerType()!=c||lq(a,"cuerangesadded",b))},b5=function(a){var b=At(),c=a.getCurrentTime();
a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)},T9=function(a,b,c){a.Y=b;
c&&a.X.storeUserVolume&&!a.X.useMediaVolume&&!b.unstorable&&Yi("yt-player-volume",b,2592E3);S9(a);a.X.useMediaVolume||(b=ec(b),a.X.storeUserVolume||(b.unstorable=!0),a.o.Ba("onVolumeChange",b))},S9=function(a){var b=a.getVideoData();
b.Wh||(a.B.setVolume(a.Y.volume*(a.X.useMediaVolume?bx.A:b.Vh)/100),a.B.o.muted=a.Y.muted)},U9=function(a,b){var c=!!b,d=!!a.gb!=c;
a.gb=b;a.X.experiments.ga("legacy_player_fullscreen_order")?d&&(a.K.A("fsc"),a.X.Qf=c,a.G.ve()):(a.X.Qf=c,a.G.ve(),d&&a.K.A("fsc"));d&&(a.o.S("fullscreentoggled",c),d=P4(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.Qa.oe()&&(c.listId=a.Qa.oe()),a.o.Ba("onFullscreenChange",c))},lq=function(a,b,c){a.o.S(b,c);
if(c&&IH(a.X)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.o.Ba(d,c)}},V9=function(a){var b=a.A.getVideoData(),b=new bx({video_id:b.videoId,
oauth_token:b.oauthToken});J9(a,b,1)},H9=function(a,b){lv(a.aa);
a.aa=0;var c=kq(a,b);c&&1!=a.M&&2!=a.M&&(VN(a.D),1==b&&m9(a,a.H),oL(c),lq(a,"cuerangesremoved",a.F.F.o.o||[]),c.F.reset())},W9=function(a,b){if(kM(a.Qa)){var c=a.ea.play_pause?a.ma:null;
c?c.de("control_play"):a.Ze(b)}},X9=function(a,b,c,d,e){var h=kq(a,e);
if(!h||2!=h.L&&!Gx(h.getVideoData()))(h=a.ea.seek?a.ma:null)?h.de("control_seek",b):a.mg(b,c,d,e)},Y9=function(a,b,c){a.Ob=b;
a.wa=c;a.o.S("sizestylechange",b,c);a.G.ve()},Z9=function(a,b,c,d,e){c=a.X.Va&&a.H&&b==a.H.ra?a.H.ld(c,d):(a.X.Va||e)&&a.J&&b==a.J.ra?a.J.ld(c,d):b&&c?(a=TL(a.D,b))?a.ld(c,d):null:null;
return c},$9=function(a,b,c){if(b){if(a.X.Va&&a.H&&b==a.H.ra)return a.H.df();
if((a.X.Va||c)&&a.J&&b==a.J.ra)return a.J.df()}else return b=YN(a.D),a.X.Va&&a.H&&b.push(a.H.ra),(a.X.Va||c)&&a.J&&b.push(a.J.ra),b;return YN(a.D,b)},pn=pn||{},aa=this,ka="closure_uid_"+(1E9*Math.random()>>>0),la=0,K=Date.now||function(){return+new Date};A(sa,Error);sa.prototype.name="CustomError";var Ig;var Ra=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},za=/&/g,Aa=/</g,Ba=/>/g,Ca=/"/g,Da=/'/g,Ea=/\x00/g,ya=/[\x00&<>"']/,Ka=/&([^;\s<&]+);?/g,Tm={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},Sm={"'":"\\'"},Oa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Wa=2147483648*Math.random()|0;var ib=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(w(a))return w(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Fha=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;
0>c&&(c=Math.max(0,a.length+c));if(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},F=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,h=0;h<d;h++)h in e&&b.call(c,e[h],h,a)},Zd=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],h=0,k=w(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[h++]=m)}return e},fi=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),h=w(a)?a.split(""):a,k=0;k<d;k++)k in h&&(e[k]=b.call(c,h[k],k,a));
return e},me=Array.prototype.reduce?function(a,b,c,d){d&&(b=y(b,d));
return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
F(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},xh=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,h=0;h<d;h++)if(h in e&&b.call(c,e[h],h,a))return!0;
return!1},Re=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,h=0;h<d;h++)if(h in e&&!b.call(c,e[h],h,a))return!1;
return!0};G.prototype.Ua=!1;G.prototype.isDisposed=function(){return this.Ua};
G.prototype.dispose=function(){this.Ua||(this.Ua=!0,this.T())};
G.prototype.T=function(){if(this.Ka)for(;this.Ka.length;)this.Ka.shift()()};var gc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");jc.prototype.stopPropagation=function(){this.A=!0};
jc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.ir=!1};lc[" "]=v;var nc;a:{var a$=aa.navigator;if(a$){var b$=a$.userAgent;if(b$){nc=b$;break a}}nc=""};var zc=pc(),Rg=oc("Trident")||oc("MSIE"),cu=oc("Edge"),LF=cu||Rg,Fq=oc("Gecko")&&!(Ma(nc,"WebKit")&&!oc("Edge"))&&!(oc("Trident")||oc("MSIE"))&&!oc("Edge"),yc=Ma(nc,"WebKit")&&!oc("Edge"),y5=yc&&oc("Mobile"),PK=oc("Macintosh"),SF=oc("Android"),Qaa=rc(),KO=oc("iPad"),c$;a:{var d$="",e$=function(){var a=nc;if(Fq)return/rv\:([^\);]+)(\)|;)/.exec(a);if(cu)return/Edge\/([\d\.]+)/.exec(a);if(Rg)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(yc)return/WebKit\/(\S+)/.exec(a);if(zc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
e$&&(d$=e$?e$[1]:"");if(Rg){var f$=sc();if(null!=f$&&f$>(0,window.parseFloat)(d$)){c$=String(f$);break a}}c$=d$}var uc=c$,tc={},g$=aa.document,wc=g$&&Rg?sc()||("CSS1Compat"==g$.compatMode?(0,window.parseInt)(uc,10):5):void 0;var Wc=!Rg||xc(9),Gha=Rg&&!vc("9");!yc||vc("528");Fq&&vc("1.9b")||Rg&&vc("8")||zc&&vc("9.5")||yc&&vc("528");Fq&&!vc("8")||Rg&&vc("9");var Hha={CLICK:"click",FM:"rightclick",vJ:"dblclick",fL:"mousedown",lL:"mouseup",kL:"mouseover",jL:"mouseout",iL:"mousemove",gL:"mouseenter",hL:"mouseleave",JM:"selectstart",XN:"wheel",JK:"keypress",IK:"keydown",KK:"keyup",NI:"blur",ZJ:"focus",wJ:"deactivate",$J:Rg?"focusin":"DOMFocusIn",aK:Rg?"focusout":"DOMFocusOut",dJ:"change",zM:"reset",IM:"select",fN:"submit",vK:"input",qM:"propertychange",OJ:"dragstart",JJ:"drag",LJ:"dragenter",NJ:"dragover",MJ:"dragleave",DROP:"drop",KJ:"dragend",tN:"touchstart",
sN:"touchmove",rN:"touchend",qN:"touchcancel",KI:"beforeunload",nJ:"consolemessage",pJ:"contextmenu",DJ:"DOMContentLoaded",ERROR:"error",kK:"help",LOAD:"load",aL:"losecapture",TL:"orientationchange",uM:"readystatechange",AM:"resize",HM:"scroll",CN:"unload",eK:"hashchange",WL:"pagehide",XL:"pageshow",kM:"popstate",qJ:"copy",YL:"paste",uJ:"cut",GI:"beforecopy",HI:"beforecut",II:"beforepaste",QL:"online",NL:"offline",MESSAGE:"message",mJ:"connect",sI:Ac("AnimationStart"),qI:Ac("AnimationEnd"),rI:Ac("AnimationIteration"),
wN:Ac("TransitionEnd"),dM:"pointerdown",jM:"pointerup",cM:"pointercancel",gM:"pointermove",iM:"pointerover",hM:"pointerout",eM:"pointerenter",fM:"pointerleave",dK:"gotpointercapture",bL:"lostpointercapture",qL:"MSGestureChange",rL:"MSGestureEnd",sL:"MSGestureHold",tL:"MSGestureStart",uL:"MSGestureTap",vL:"MSGotPointerCapture",wL:"MSInertiaStart",xL:"MSLostPointerCapture",yL:"MSPointerCancel",zL:"MSPointerDown",AL:"MSPointerEnter",BL:"MSPointerHover",CL:"MSPointerLeave",DL:"MSPointerMove",FL:"MSPointerOut",
GL:"MSPointerOver",HL:"MSPointerUp",TEXT:"text",gN:"textInput",kJ:"compositionstart",lJ:"compositionupdate",jJ:"compositionend",VJ:"exit",SK:"loadabort",TK:"loadcommit",UK:"loadredirect",VK:"loadstart",WK:"loadstop",CM:"responsive",RM:"sizechanged",DN:"unresponsive",RN:"visibilitychange",bN:"storage",IJ:"DOMSubtreeModified",EJ:"DOMNodeInserted",GJ:"DOMNodeRemoved",HJ:"DOMNodeRemovedFromDocument",FJ:"DOMNodeInsertedIntoDocument",BJ:"DOMAttrModified",CJ:"DOMCharacterDataModified",JI:"beforeprint",hI:"afterprint"};A(Bc,jc);
Bc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?Fq&&(mc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,
this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.o=a;a.defaultPrevented&&this.preventDefault()};
Bc.prototype.stopPropagation=function(){Bc.N.stopPropagation.call(this);this.o.stopPropagation?this.o.stopPropagation():this.o.cancelBubble=!0};
Bc.prototype.preventDefault=function(){Bc.N.preventDefault.call(this);var a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Gha)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Cc="closure_listenable_"+(1E6*Math.random()|0),Ec=0;Hc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.o))return!1;var e=this.o[a];b=Ic(e,b,c,d);return-1<b?(Gc(e[b]),ob(e,b),0==e.length&&(delete this.o[a],this.A--),!0):!1};
Hc.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.o)if(!a||c==a){for(var d=this.o[c],e=0;e<d.length;e++)++b,Gc(d[e]);delete this.o[c];this.A--}return b};var Rc="closure_lm_"+(1E6*Math.random()|0),$c={},Uc=0,cd="__closure_events_fn_"+(1E9*Math.random()>>>0);A(J,G);J.prototype[Cc]=!0;f=J.prototype;f.ag=function(a){this.wa=a};
f.addEventListener=function(a,b,c,d){Nc(this,a,b,c,d)};
f.removeEventListener=function(a,b,c,d){Yc(this,a,b,c,d)};
f.$=function(a){var b,c=this.wa;if(c){b=[];for(var d=1;c;c=c.wa)b.push(c),++d}c=this.Ma;d=a.type||a;if(w(a))a=new jc(a,c);else if(a instanceof jc)a.target=a.target||c;else{var e=a;a=new jc(d,c);hc(a,e)}var e=!0,h;if(b)for(var k=b.length-1;!a.A&&0<=k;k--)h=a.currentTarget=b[k],e=dd(h,d,!0,a)&&e;a.A||(h=a.currentTarget=c,e=dd(h,d,!0,a)&&e,a.A||(e=dd(h,d,!1,a)&&e));if(b)for(k=0;!a.A&&k<b.length;k++)h=a.currentTarget=b[k],e=dd(h,d,!1,a)&&e;return e};
f.T=function(){J.N.T.call(this);this.removeAllListeners();this.wa=null};
f.R=function(a,b,c,d){return Kc(this.P,String(a),b,!1,c,d)};
f.ya=function(a,b,c,d){return this.P.remove(String(a),b,c,d)};
f.removeAllListeners=function(a){return this.P?this.P.removeAll(a):0};ed.prototype.get=function(){var a;0<this.A?(this.A--,a=this.o,this.o=a.next,a.next=null):a=this.B();return a};var jd;var sd=new ed(function(){return new nd},function(a){a.reset()},100);
md.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.A=null),a.next=null);return a};
nd.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null};
nd.prototype.reset=function(){this.next=this.scope=this.o=null};var od,qd=!1,rd=new md;zd.prototype.reset=function(){this.context=this.A=this.C=this.o=null;this.B=!1};
var Ad=new ed(function(){return new zd},function(a){a.reset()},100);
yd.prototype.then=function(a,b,c){return Dd(this,ha(a)?a:null,ha(b)?b:null,c)};
vd(yd);yd.prototype.cancel=function(a){0==this.o&&td(function(){var b=new Kd(a);Fd(this,b)},this)};
yd.prototype.J=function(a){this.o=0;xd(this,2,a)};
yd.prototype.K=function(a){this.o=0;xd(this,3,a)};
yd.prototype.H=function(){for(var a=null;a=Gd(this);)Hd(this,a,this.o,this.G);this.F=!1};
var Od=id;A(Kd,sa);Kd.prototype.name="cancel";A(Pd,J);f=Pd.prototype;f.enabled=!1;f.xc=null;f.ix=function(){if(this.enabled){var a=K()-this.C;0<a&&a<.8*this.o?this.xc=this.A.setTimeout(this.B,this.o-a):(this.xc&&(this.A.clearTimeout(this.xc),this.xc=null),this.$("tick"),this.enabled&&(this.xc=this.A.setTimeout(this.B,this.o),this.C=K()))}};
f.start=function(){this.enabled=!0;this.xc||(this.xc=this.A.setTimeout(this.B,this.o),this.C=K())};
f.stop=function(){this.enabled=!1;this.xc&&(this.A.clearTimeout(this.xc),this.xc=null)};
f.T=function(){Pd.N.T.call(this);this.stop();delete this.A};A(Ud,G);f=Ud.prototype;f.Ng=0;f.T=function(){Ud.N.T.call(this);this.stop();delete this.o;delete this.A};
f.start=function(a){this.stop();this.Ng=Rd(this.B,p(a)?a:this.C)};
f.fg=function(a){this.isActive()||this.start(a)};
f.stop=function(){this.isActive()&&Td(this.Ng);this.Ng=0};
f.isActive=function(){return 0!=this.Ng};
f.Oo=function(){this.Ng=0;this.o&&this.o.call(this.A)};de.prototype.Ac=function(a){var b=[];fe(this,a,b);return b.join("")};
var ie={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},he=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;f=pe.prototype;f.clone=function(){return new pe(this.x,this.y)};
f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
f.scale=function(a,b){var c=ga(b)?b:a;this.x*=a;this.y*=c;return this};f=se.prototype;f.getWidth=function(){return this.right-this.left};
f.getHeight=function(){return this.bottom-this.top};
f.clone=function(){return new se(this.top,this.right,this.bottom,this.left)};
f.contains=function(a){return this&&a?a instanceof se?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
f.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};f=te.prototype;f.clone=function(){return new te(this.width,this.height)};
f.area=function(){return this.width*this.height};
f.aspectRatio=function(){return this.width/this.height};
f.isEmpty=function(){return!this.area()};
f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
f.scale=function(a,b){var c=ga(b)?b:a;this.width*=a;this.height*=c;return this};f=ve.prototype;f.clone=function(){return new ve(this.left,this.top,this.width,this.height)};
f.contains=function(a){return a instanceof ve?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
f.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};A(Ae,G);f=Ae.prototype;f.subscribe=function(a,b,c){var d=this.A[a];d||(d=this.A[a]=[]);var e=this.D;this.o[e]=a;this.o[e+1]=b;this.o[e+2]=c;this.D=e+3;d.push(e);return e};
f.oc=function(a){var b=this.o[a];if(b){var c=this.A[b];0!=this.C?(this.B.push(a),this.o[a+1]=v):(c&&pb(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
f.S=function(a,b){var c=this.A[a];if(c){for(var d=Array(arguments.length-1),e=1,h=arguments.length;e<h;e++)d[e-1]=arguments[e];if(this.F)for(e=0;e<c.length;e++){var k=c[e];Ce(this.o[k+1],this.o[k+2],d)}else{this.C++;try{for(e=0,h=c.length;e<h;e++)k=c[e],this.o[k+1].apply(this.o[k+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.oc(c)}}return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.A[a];b&&(F(b,this.oc,this),delete this.A[a])}else this.o.length=0,this.A={}};
f.Ya=function(a){if(a){var b=this.A[a];return b?b.length:0}a=0;for(b in this.A)a+=this.Ya(b);return a};
f.T=function(){Ae.N.T.call(this);this.clear();this.B.length=0};var Ee="StopIteration"in aa?aa.StopIteration:{message:"StopIteration",stack:""};De.prototype.next=function(){throw Ee;};
De.prototype.bc=function(){return this};f=Ie.prototype;f.Ya=function(){return this.za};
f.Na=function(){Me(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.A[this.o[b]]);return a};
f.Pa=function(){Me(this);return this.o.concat()};
f.Me=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(Je(this.A,c)&&this.A[c]==a)return!0}return!1};
f.equals=function(a,b){if(this===a)return!0;if(this.za!=a.Ya())return!1;var c=b||Le;Me(this);for(var d,e=0;d=this.o[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
f.isEmpty=function(){return 0==this.za};
f.clear=function(){this.A={};this.ke=this.za=this.o.length=0};
f.remove=function(a){return Je(this.A,a)?(delete this.A[a],this.za--,this.ke++,this.o.length>2*this.za&&Me(this),!0):!1};
f.get=function(a,b){return Je(this.A,a)?this.A[a]:b};
f.set=function(a,b){Je(this.A,a)||(this.za++,this.o.push(a),this.ke++);this.A[a]=b};
f.forEach=function(a,b){for(var c=this.Pa(),d=0;d<c.length;d++){var e=c[d],h=this.get(e);a.call(b,h,e,this)}};
f.clone=function(){return new Ie(this)};
f.bc=function(a){Me(this);var b=0,c=this.ke,d=this,e=new De;e.next=function(){if(c!=d.ke)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw Ee;var e=d.o[b++];return a?e:d.A[e]};
return e};var Ue=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,hf=/#|$/,kf=/[?&]($|#)/;f=N.prototype;f.toString=function(){var a=[],b=this.C;b&&a.push(vf(b,h$,!0),":");var c=this.A;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(vf(b,h$,!0),"@"),a.push(wa(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.A&&"/"!=c.charAt(0)&&a.push("/"),a.push(vf(c,"/"==c.charAt(0)?Iha:Jha,!0));(c=this.o.toString())&&a.push("?",c);(c=this.Pe())&&a.push("#",vf(c,Kha));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.C;c?nf(b,a.C):c=!!a.H;c?b.H=a.H:c=!!a.A;c?of(b,a.A):c=null!=a.D;var d=a.B;if(c)pf(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.A&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ga(e,"./")||Ga(e,"/.")){for(var d=ta(e,"/"),e=e.split("/"),h=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&h.push(""):".."==l?((1<h.length||1==h.length&&""!=h[0])&&h.pop(),d&&k==e.length&&h.push("")):
(h.push(l),d=!0)}d=h.join("/")}else d=e}c?qf(b,d):c=""!==a.o.toString();c?rf(b,sf(a.o.toString())):c=!!a.J;c&&(b.J=a.Pe());return b};
f.clone=function(){return new N(this)};
f.No=function(){return this.o.toString()};
f.Pe=function(){return this.J};
var h$=/[#\/\?@]/g,Jha=/[\#\?:]/g,Iha=/[\#\?]/g,wf=/[\#\?@]/g,Kha=/#/g;f=tf.prototype;f.Ya=function(){Ff(this);return this.za};
f.remove=function(a){Ff(this);a=Gf(this,a);return Ke(this.o,a)?(this.A=null,this.za=this.za-this.o.get(a).length,this.o.remove(a)):!1};
f.clear=function(){this.o=this.A=null;this.za=0};
f.isEmpty=function(){Ff(this);return 0==this.za};
f.Me=function(a){var b=this.Na();return jb(b,a)};
f.Pa=function(){Ff(this);for(var a=this.o.Na(),b=this.o.Pa(),c=[],d=0;d<b.length;d++)for(var e=a[d],h=0;h<e.length;h++)c.push(b[d]);return c};
f.Na=function(a){Ff(this);var b=[];if(w(a))Hf(this,a)&&(b=rb(b,this.o.get(Gf(this,a))));else{a=this.o.Na();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};
f.set=function(a,b){Ff(this);this.A=null;a=Gf(this,a);Hf(this,a)&&(this.za=this.za-this.o.get(a).length);this.o.set(a,[b]);this.za=this.za+1;return this};
f.get=function(a,b){var c=a?this.Na(a):[];return 0<c.length?String(c[0]):b};
f.toString=function(){if(this.A)return this.A;if(!this.o)return"";for(var a=[],b=this.o.Pa(),c=0;c<b.length;c++)for(var d=b[c],e=wa(d),d=this.Na(d),h=0;h<d.length;h++){var k=e;""!==d[h]&&(k+="="+wa(d[h]));a.push(k)}return this.A=a.join("&")};
f.clone=function(){var a=new tf;a.A=this.A;this.o&&(a.o=this.o.clone(),a.za=this.za);return a};
f.extend=function(a){for(var b=0;b<arguments.length;b++)Qe(arguments[b],function(a,b){Ef(this,b,a)},this)};/*
 Portions of this code are from the google-caja project, received by
 Google under the Apache license (http://code.google.com/p/google-caja/).
 All other code is Copyright 2009 Google, Inc. All Rights Reserved.

// Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

*/
var Kf=void 0;var Cg={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Uf=/<[^>]*>|&[^;]+;/g,W0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),$f=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Xf=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Zf=/^http:\/\/.*/,Lha=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
Wf=/\s+/,ag=/[\d\u06f0-\u06f9]/;dg.prototype.Ue=!0;dg.prototype.Vd=function(){return this.o};
dg.prototype.toString=function(){return"Const{"+this.o+"}"};
var cg={};hg.prototype.Ue=!0;var gg={};hg.prototype.Vd=function(){return this.o};
var Ag=ig(""),zg=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;kg.prototype.Ue=!0;kg.prototype.Vd=function(){return this.o};
kg.prototype.Cl=!0;kg.prototype.zf=function(){return 1};
var mg=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,jg={};ng("about:blank");qg.prototype.Ue=!0;qg.prototype.Vd=function(){return this.o};
qg.prototype.Cl=!0;qg.prototype.zf=function(){return 1};
var pg={};ug.prototype.Cl=!0;ug.prototype.zf=function(){return this.A};
ug.prototype.Ue=!0;ug.prototype.Vd=function(){return this.o};
var yg=/^[a-zA-Z0-9-]+$/,Bg={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Mha={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},tg={};wg("<!DOCTYPE html>",0);wg("",0);wg("<br>",0);var Vg=!Rg||xc(9),dh=!Fq&&!Rg||Rg&&xc(9)||Fq&&vc("1.9.1");Rg&&vc("9");var ih=Rg||zc||yc;var Ng={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};f=Gg.prototype;f.la=function(a){return w(a)?this.o.getElementById(a):a};
f.kx=function(a,b,c){return Ug(this.o,arguments)};
f.createElement=function(a){return this.o.createElement(a)};
f.appendChild=Yg;f.isElement=hh;f.contains=kh;var vh=yc?"webkit":Fq?"moz":Rg?"ms":zc?"o":"",i$=r("yt.dom.getNextId_");if(!i$){i$=function(){return++Nha};
q("yt.dom.getNextId_",i$,void 0);var Nha=0};var Ch={enablejsapi:1},Dh={},Eh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Fh.prototype.clone=function(){var a=new Fh,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ca(c)?a[b]=ec(c):a[b]=c}return a};var Kh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",Lh=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],j$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],Ih=Gh()?j$.concat(Lh):Lh.concat(j$);var TF=oc("Firefox"),GH=rc()||oc("iPod"),ix=oc("iPad"),HH=oc("Android")&&!(qc()||oc("Firefox")||pc()||oc("Silk")),ul=qc(),au=oc("Safari")&&!(qc()||oc("Coast")||pc()||oc("Edge")||oc("Silk")||oc("Android"))&&!(rc()||oc("iPad")||oc("iPod"));var $h=K(),Qh=null,Yh=Array(50),Xh=-1,Zh=!1;var li={};var ni=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",ni,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var wi=window.yt&&window.yt.msgs_||r("window.ytcfg.msgs")||{};q("yt.msgs_",wi,void 0);
var ra=function(a,b){var c=b||{},d=a in wi?wi[a]:a;if(d)for(var e in c)var h=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),h),d=d.replace(new RegExp("\\$"+e,"gi"),h);return d},At=window.performance&&window.performance.timing&&window.performance.now&&window.__yt_experimental_now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var Oha=r("yt.pubsub.instance_")||new Ae;Ae.prototype.subscribe=Ae.prototype.subscribe;Ae.prototype.unsubscribeByKey=Ae.prototype.oc;Ae.prototype.publish=Ae.prototype.S;Ae.prototype.clear=Ae.prototype.clear;q("yt.pubsub.instance_",Oha,void 0);var Ai=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Ai,void 0);var Ci=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ci,void 0);var Bi=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Bi,void 0);
var zi=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",zi,void 0);A(Ii,Hi);Ii.prototype.Ya=function(){var a=0;Ge(this.bc(!0),function(){a++});
return a};
Ii.prototype.clear=function(){var a=He(this.bc(!0)),b=this;F(a,function(a){b.remove(a)})};A(Ji,Ii);f=Ji.prototype;f.isAvailable=function(){if(!this.o)return!1;try{return this.o.setItem("__sak","1"),this.o.removeItem("__sak"),!0}catch(a){return!1}};
f.set=function(a,b){try{this.o.setItem(a,b)}catch(c){if(0==this.o.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
f.get=function(a){a=this.o.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
f.remove=function(a){this.o.removeItem(a)};
f.Ya=function(){return this.o.length};
f.bc=function(a){var b=0,c=this.o,d=new De;d.next=function(){if(b>=c.length)throw Ee;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
f.clear=function(){this.o.clear()};
f.key=function(a){return this.o.key(a)};A(Ki,Ji);A(Li,Ji);Mi.prototype.set=function(a,b){p(b)?this.o.set(a,ee(b)):this.o.remove(a)};
Mi.prototype.get=function(a){var b;try{b=this.o.get(a)}catch(c){return}if(null!==b)try{return be(b)}catch(c){throw"Storage: Invalid value was encountered";}};
Mi.prototype.remove=function(a){this.o.remove(a)};A(Ni,Mi);Ni.prototype.set=function(a,b){Ni.N.set.call(this,a,Pi(b))};
Ni.prototype.A=function(a){a=Ni.N.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Ni.prototype.get=function(a){if(a=this.A(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};A(Qi,Ni);Qi.prototype.set=function(a,b,c){if(b=Pi(b)){if(c){if(c<K()){Qi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=K()}Qi.N.set.call(this,a,b)};
Qi.prototype.A=function(a,b){var c=Qi.N.A.call(this,a);if(c)if(!b&&Ri(c))Qi.prototype.remove.call(this,a);else return c};A(Si,Qi);var Vi,k$=new Ki;Vi=k$.isAvailable()?new Si(k$):null;var Xi,l$=new Li;Xi=l$.isAvailable()?new Si(l$):null;var Sj={AI:"atp",SM:"ska",tM:"que",IL:"mus",OM:"sus"};var lj=null;"undefined"!=typeof window.XMLHttpRequest?lj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(lj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var oj={"X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};wj.prototype.F=function(a,b,c,d){b?a(d):a({text:c.responseText})};
wj.prototype.D=function(a,b){a(Error("Request error: "+b.status))};
wj.prototype.G=function(a){a(Error("request timed out"))};zj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.o+",status:"+this.status+"}"};A(Gj,G);Gj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Y.subscribe(a,b,c)};
Gj.prototype.Ha=function(a,b,c){return this.isDisposed()?!1:Be(this.Y,a,b,c)};
Gj.prototype.oc=function(a){return this.isDisposed()?!1:this.Y.oc(a)};
Gj.prototype.S=function(a,b){return this.isDisposed()?!1:this.Y.S.apply(this.Y,arguments)};A(Hj,Gj);Hj.prototype.qc=function(){return this.screens};
Hj.prototype.contains=function(a){return!!Ej(this.screens,a)};
Hj.prototype.get=function(a){return a?Fj(this.screens,a):null};
Hj.prototype.info=function(a){Wh(this.F,a)};A(Lj,Gj);var m$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=Lj.prototype;f.start=function(){!this.o&&(0,window.isNaN)(this.A)&&this.Tr()};
f.stop=function(){this.o&&(this.o.abort(),this.o=null);(0,window.isNaN)(this.A)||(ti(this.A),this.A=window.NaN)};
f.T=function(){this.stop();Lj.N.T.call(this)};
f.Tr=function(){this.A=window.NaN;this.o=pj(xj(this.G,"/pairing/get_screen"),{method:"POST",Gb:{pairing_code:this.F},timeout:5E3,qb:y(this.hE,this),onError:y(this.gE,this),Hd:y(this.iE,this)})};
f.hE=function(a,b){this.o=null;var c=b.screen||{};c.dialId=this.C;c.name=this.D;this.S("pairingComplete",new ai(c))};
f.gE=function(a){this.o=null;a.status&&404==a.status?this.B>=m$.length?this.S("pairingFailed",Error("DIAL polling timed out")):(a=m$[this.B],this.A=ri(y(this.Tr,this),a),this.B++):this.S("pairingFailed",Error("Server error "+a.status))};
f.iE=function(){this.o=null;this.S("pairingFailed",Error("Server not responding"))};A(Mj,Ii);Mj.prototype.set=function(a,b){this.A.set(this.o+a,b)};
Mj.prototype.get=function(a){return this.A.get(this.o+a)};
Mj.prototype.remove=function(a){this.A.remove(this.o+a)};
Mj.prototype.bc=function(a){var b=this.A.bc(!0),c=this,d=new De;d.next=function(){for(var d=b.next();d.substr(0,c.o.length)!=c.o;)d=b.next();return a?d.substr(c.o.length):c.A.get(d)};
return d};f=Pj.prototype;f.Ya=function(){return this.o.Ya()};
f.removeAll=function(a){a=Oe(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
f.remove=function(a){return this.o.remove(Qj(a))};
f.clear=function(){this.o.clear()};
f.isEmpty=function(){return this.o.isEmpty()};
f.contains=function(a){return Ke(this.o,Qj(a))};
f.Na=function(){return this.o.Na()};
f.clone=function(){return new Pj(this)};
f.equals=function(a){return this.Ya()==Ne(a)&&Rj(this,a)};
f.bc=function(){return this.o.bc(!1)};Tj.prototype.equals=function(a){return a?this.id==a.id:!1};var Vj=/\s*;\s*/;f=Uj.prototype;f.isEnabled=function(){return window.navigator.cookieEnabled};
f.set=function(a,b,c,d,e,h){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');p(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";h=h?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(K()+1E3*c)).toUTCString();this.o.cookie=a+"="+b+e+d+c+h};
f.get=function(a,b){for(var c=a+"=",d=(this.o.cookie||"").split(Vj),e=0,h;h=d[e];e++){if(0==h.lastIndexOf(c,0))return h.substr(c.length);if(h==a)return""}return b};
f.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d};
f.Pa=function(){return Wj(this).keys};
f.Na=function(){return Wj(this).values};
f.isEmpty=function(){return!this.o.cookie};
f.Ya=function(){return this.o.cookie?(this.o.cookie||"").split(Vj).length:0};
f.Me=function(a){for(var b=Wj(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
f.clear=function(){for(var a=Wj(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Xj=new Uj(window.document);Xj.A=3950;var ok,fk="";A(rk,Hj);f=rk.prototype;f.start=function(){qk(this)&&this.S("screenChange");!Zi("yt-remote-lounge-token-expiration")&&sk(this);ti(this.o);this.o=ri(y(this.start,this),1E4)};
f.Aj=function(a,b){qk(this);Ij(this,a);tk(this,!1);this.S("screenChange");b(a);a.token||sk(this)};
f.remove=function(a,b){var c=qk(this);Kj(this,a)&&(tk(this,!1),c=!0);b(a);c&&this.S("screenChange")};
f.uj=function(a,b,c,d){var e=qk(this),h=this.get(a.id);h?(h.name!=b&&(h.name=b,tk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.S("screenChange")};
f.T=function(){ti(this.o);rk.N.T.call(this)};
f.yx=function(a){qk(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],h=this.get(e.screenId);h&&(h.token=e.loungeToken,--b)}tk(this,!b);b&&Wh(this.F,"Missed "+b+" lounge tokens.")};
f.xx=function(a){Wh(this.F,"Requesting lounge tokens failed: "+a)};A(vk,Gj);f=vk.prototype;f.start=function(){var a=(0,window.parseInt)(Zi("yt-remote-fast-check-period")||"0",10);(this.C=K()-144E5<a?0:a)?zk(this):(this.C=K()+3E5,Yi("yt-remote-fast-check-period",this.C),this.dm())};
f.isEmpty=function(){return ac(this.o)};
f.update=function(){uk("Updating availability on schedule.");var a=this.D(),b=Pb(this.o,function(b,d){return b&&!!Fj(a,d)},this);
yk(this,b)};
f.T=function(){ti(this.B);this.B=window.NaN;this.A&&(this.A.abort(),this.A=null);vk.N.T.call(this)};
f.dm=function(){ti(this.B);this.B=window.NaN;this.A&&this.A.abort();var a=Ak(this);if(Sb(a)){var b=xj(this.F,"/pairing/get_screen_availability"),c={lounge_token:Wb(a).join(",")};this.A=yj(this.F,b,c,y(this.aC,this,a),y(this.$B,this))}else yk(this,{}),zk(this)};
f.aC=function(a,b){this.A=null;var c=Wb(Ak(this));if(Gb(c,Wb(a))){for(var c=b.screens||[],d={},e=0,h=c.length;e<h;++e)d[a[c[e].loungeToken]]="online"==c[e].status;yk(this,d);zk(this)}else this.Za("Changing Screen set during request."),this.dm()};
f.$B=function(a){this.Za("Screen availability failed: "+a);this.A=null;zk(this)};
f.Za=function(a){Wh("OnlineScreenService",a)};A(Ck,Hj);f=Ck.prototype;f.start=function(){this.A.start();this.o.start();this.screens.length&&(this.S("screenChange"),this.o.isEmpty()||this.S("onlineScreenChange"))};
f.Aj=function(a,b,c){this.A.Aj(a,b,c)};
f.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
f.uj=function(a,b,c,d){this.A.contains(a)?this.A.uj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,Wh(this.F,a),d(Error(a)))};
f.qc=function(a){return a?this.screens:rb(this.screens,Zd(this.B,function(a){return!this.contains(a)},this))};
f.Ur=function(){return Zd(this.qc(!0),function(a){return!!this.o.o[a.id]},this)};
f.Vr=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var h=new Lj(this.D,a,b,c);h.subscribe("pairingComplete",y(function(a){Mb(h);d(Dk(this,a))},this));
h.subscribe("pairingFailed",function(a){Mb(h);e(a)});
h.start();return y(h.stop,h)};
f.hx=function(a,b){for(var c=2,d=b(a,c);Gk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.kE=function(a,b,c,d){pj(xj(this.D,"/pairing/get_screen"),{method:"POST",Gb:{pairing_code:a},timeout:5E3,qb:y(function(a,d){var k=new ai(d.screen||{});if(!k.name||Gk(this,k.name))k.name=this.hx(k.name,b);c(Dk(this,k))},this),
onError:y(function(a){d(Error("pairing request failed: "+a.status))},this),
Hd:y(function(){d(Error("pairing request timed out."))},this)})};
f.T=function(){Mb(this.A);Mb(this.o);Ck.N.T.call(this)};
f.Kx=function(){Hk(this);this.S("screenChange");this.o.update()};
Ck.prototype.dispose=Ck.prototype.dispose;A(Jk,Gj);f=Jk.prototype;f.aj=function(a){this.B=a;this.S("sessionScreen",this.B)};
f.kc=function(a){this.isDisposed()||(a&&Kk(this,""+a),this.B=null,this.S("sessionScreen",null))};
f.info=function(a){Wh(this.M,a)};
f.Xr=function(){return null};
f.pm=function(a){var b=this.A;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,y(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),y(function(){Kk(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
f.T=function(){this.pm("");Jk.N.T.call(this)};A(Mk,Jk);f=Mk.prototype;f.lm=function(a){if(this.o){if(this.o==a)return;Kk(this,"Overriding cast sesison with new session object");this.o.removeUpdateListener(this.G);this.o.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.F)}this.o=a;this.o.addUpdateListener(this.G);this.o.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.F);this.C&&Ok(this);Nk(this,"getMdxSessionStatus")};
f.Sf=function(a){this.info("launchWithParams: "+ee(a));this.C=a;this.o&&Ok(this)};
f.stop=function(){this.o?this.o.stop(y(function(){this.kc()},this),y(function(){this.kc(Error("Failed to stop receiver app."))},this)):this.kc(Error("Stopping cast device witout session."))};
f.pm=v;f.T=function(){this.info("disposeInternal");ti(this.D);this.D=0;this.o&&(this.o.removeUpdateListener(this.G),this.o.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.F));this.o=null;Mk.N.T.call(this)};
f.UC=function(a,b){if(!this.isDisposed())if(b){var c=ce(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+ee(c));switch(d){case "mdxSessionStatus":Lk(this,c.screenId);break;default:Kk(this,"Unknown youtube message: "+d)}}else Kk(this,"Unable to parse message.")}else Kk(this,"No data in message.")};
f.Jo=function(a,b,c,d){Fk(this.J,this.A.label,a,this.A.friendlyName,y(function(e){e?b(e):0<=d?(Kk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),ri(y(this.Jo,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
f.Xr=function(){return this.o};
f.lE=function(a){this.isDisposed()||a||(Kk(this,"Cast session died."),this.kc())};A(Pk,Jk);f=Pk.prototype;f.lm=function(a){this.D=a;this.D.addUpdateListener(this.L)};
f.Sf=function(a){this.C=a;this.G()};
f.stop=function(){this.o();this.o=v;ti(this.F);this.D?this.D.stop(y(this.kc,this,null),y(this.kc,this,"Failed to stop DIAL device.")):this.kc()};
f.T=function(){this.o();this.o=v;ti(this.F);this.D&&this.D.removeUpdateListener(this.L);this.D=null;Pk.N.T.call(this)};
f.oE=function(a){this.isDisposed()||a||(Kk(this,"DIAL session died."),this.o(),this.o=v,this.kc())};
f.Dl=function(a){this.K=Aj();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,Rk(this));a(b);Qk(this)}else this.G=y(function(){ti(this.F);this.G=v;this.F=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,Rk(this));a(b);Qk(this)},this),this.F=ri(y(function(){this.G()},this),100)};
f.bz=function(a,b){Fk(this.J,this.H.receiver.label,a,this.A.friendlyName,y(function(a){a&&a.token?(this.aj(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Dl(b)},this),y(function(a){Kk(this,"Failed to get DIAL screen: "+a);
this.Dl(b)},this))};A(Sk,Jk);Sk.prototype.stop=function(){this.kc()};
Sk.prototype.lm=v;Sk.prototype.Sf=function(){ti(this.o);this.o=window.NaN;var a=Fj(this.J.qc(),this.A.label);a?this.aj(a):this.kc(Error("No such screen"))};
Sk.prototype.T=function(){ti(this.o);this.o=window.NaN;Sk.N.T.call(this)};A(Tk,Gj);f=Tk.prototype;
f.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest("233637DE");c.dialRequest=new window.chrome.cast.DialRequest("YouTube");var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new window.chrome.cast.ApiConfig(c,y(this.Jq,this),y(this.TB,this),d,e);c.customDialLaunchCallback=y(this.FA,this);window.chrome.cast.initialize(c,y(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.C),Sh(Wk),this.A.subscribe("onlineScreenChange",y(this.Wr,this)),this.B=Zk(this),window.chrome.cast.setCustomReceivers(this.B,v,y(function(a){this.Za("Failed to set initial custom receivers: "+ee(a))},this)),this.S("yt-remote-cast2-availability-change",Xk(this)),b(!0))},this),y(function(a){this.Za("Failed to initialize API: "+ee(a));
b(!1)},this))};
f.tD=function(a,b){Vk("Setting connected screen ID: "+a+" -> "+b);if(this.o){var c=this.o.B;if(!a||c&&c.id!=a)Vk("Unsetting old screen status: "+this.o.A.friendlyName),Mb(this.o),this.o=null}if(a&&b){if(!this.o){c=Fj(this.A.qc(),a);if(!c){Vk("setConnectedScreenStatus: Unknown screen.");return}var d=Uk(this,c);d||(Vk("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.B.push(d),
window.chrome.cast.setCustomReceivers(this.B,v,y(function(a){this.Za("Failed to set initial custom receivers: "+ee(a))},this)));
Vk("setConnectedScreenStatus: new active receiver: "+d.friendlyName);Yk(this,new Sk(this.A,d),!0)}this.o.pm(b)}else Vk("setConnectedScreenStatus: no screen.")};
f.vD=function(a){this.isDisposed()?this.Za("Setting connection data on disposed cast v2"):this.o?this.o.Sf(a):this.Za("Setting connection data without a session")};
f.nE=function(){this.isDisposed()?this.Za("Stopping session on disposed cast v2"):this.o?(this.o.stop(),Mb(this.o),this.o=null):Vk("Stopping non-existing session")};
f.requestSession=function(){window.chrome.cast.requestSession(y(this.Jq,this),y(this.eC,this))};
f.T=function(){this.A.Ha("onlineScreenChange",y(this.Wr,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.C);Th(Wk);Mb(this.o);Tk.N.T.call(this)};
f.Za=function(a){Wh("Controller",a)};
f.Kq=function(a,b){this.o==a&&(b||Yk(this,null),this.S("yt-remote-cast2-session-change",b))};
f.RB=function(a,b){if(!this.isDisposed())if(a)switch(Vk("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.o)if(this.o.A.label!=a.label)Vk("onReceiverAction_: Stopping active receiver: "+this.o.A.friendlyName),this.o.stop();else{Vk("onReceiverAction_: Casting to active receiver.");this.o.B&&this.S("yt-remote-cast2-session-change",this.o.B);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:Yk(this,new Sk(this.A,a));
break;case window.chrome.cast.ReceiverType.DIAL:Yk(this,new Pk(this.A,a));break;case window.chrome.cast.ReceiverType.CAST:Yk(this,new Mk(this.A,a));break;default:this.Za("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.o&&this.o.A.label==a.label?this.o.stop():this.Za("Stopping receiver w/o session: "+a.friendlyName)}else this.Za("onReceiverAction_ called without receiver.")};
f.FA=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.Za("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.o?this.o.A:null;if(!c||c.label!=b.label)return this.Za("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.o.B)return Vk("Reselecting dial screen."),
this.S("yt-remote-cast2-session-change",this.o.B),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Za('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);Yk(this,new Pk(this.A,b))}b=this.o;b.H=a;return b.H.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(y(b.bz,b,(b.H.extraData||{}).screenId||null)):new window.Promise(y(b.Dl,b))};
f.Jq=function(a){if(!this.isDisposed()){Vk("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.o)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)Vk("Got resumed cast session before resumed mdx connection."),Yk(this,new Mk(this.A,b),!0);else{this.Za("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.o.A,d=Fj(this.A.qc(),c.label);d&&bi(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(Vk("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.o),this.o=new Mk(this.A,b),this.o.subscribe("sessionScreen",y(this.Kq,this,this.o)),this.o.Sf(null));this.o.lm(a)}}};
f.mE=function(){return this.o?this.o.Xr():null};
f.eC=function(a){this.isDisposed()||(this.Za("Failed to estabilish a session: "+ee(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&Yk(this,null))};
f.TB=function(a){Vk("Receiver availability updated: "+a);if(!this.isDisposed()){var b=Xk(this);this.D=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;Xk(this)!=b&&this.S("yt-remote-cast2-availability-change",Xk(this))}};
f.Wr=function(){if(!this.isDisposed()){var a=Xk(this);this.B=Zk(this);Vk("Updating custom receivers: "+ee(this.B));window.chrome.cast.setCustomReceivers(this.B,v,y(function(){this.Za("Failed to set custom receivers.")},this));
var b=Xk(this);b!=a&&this.S("yt-remote-cast2-availability-change",b)}};
Tk.prototype.setLaunchParams=Tk.prototype.vD;Tk.prototype.setConnectedScreenStatus=Tk.prototype.tD;Tk.prototype.stopSession=Tk.prototype.nE;Tk.prototype.getCastSession=Tk.prototype.mE;Tk.prototype.requestSession=Tk.prototype.requestSession;Tk.prototype.init=Tk.prototype.init;Tk.prototype.dispose=Tk.prototype.dispose;var jl=null,ll=[];yl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yl.prototype.Cp=function(){return this.event?!1===this.event.returnValue:!1};
yl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yl.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var xl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Al=r("yt.events.listeners_")||{};q("yt.events.listeners_",Al,void 0);var Cl=r("yt.events.counter_")||{count:0};q("yt.events.counter_",Cl,void 0);var Xl=!1,Vl=null,Yl=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Yl,void 0);new km;km.prototype.set=function(a){this.o=a};
km.prototype.reset=function(){this.set(K())};
km.prototype.get=function(){return this.o};lm.prototype.stringify=function(a){return this.A.Ac(a)};
lm.prototype.parse=function(a){return this.o(a)};f=mm.prototype;f.get=function(a){a=nm(this,a);return this.o[a]};
f.set=function(a,b){a=nm(this,a);this.o[a]=b};
f.Ya=function(){return this.o.length};
f.isEmpty=function(){return 0==this.o.length};
f.clear=function(){this.A=this.o.length=0};
f.Na=function(){for(var a=this.Ya(),b=this.Ya(),c=[],a=this.Ya()-a;a<b;a++)c.push(this.get(a));return c};
f.Pa=function(){for(var a=[],b=this.Ya(),c=0;c<b;c++)a[c]=c;return a};
f.Me=function(a){for(var b=this.Ya(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};A(qm,G);f=qm.prototype;f.eg=!1;f.$g=0;f.Qe=null;f.Df=function(a){this.o=arguments;this.Qe||this.$g?this.eg=!0:rm(this)};
f.stop=function(){this.Qe&&(Td(this.Qe),this.Qe=null,this.eg=!1,this.o=[])};
f.pause=function(){this.$g++};
f.resume=function(){this.$g--;this.$g||!this.eg||this.Qe||(this.eg=!1,rm(this))};
f.T=function(){qm.N.T.call(this);this.stop()};
f.pC=function(){this.Qe=null;this.eg&&!this.$g&&(this.eg=!1,rm(this))};A(sm,G);var vm=[];f=sm.prototype;f.R=function(a,b,c,d){return tm(this,a,b,c,d)};
f.ya=function(a,b,c,d,e){if(da(b))for(var h=0;h<b.length;h++)this.ya(a,b[h],c,d,e);else c=c||this.handleEvent,e=e||this.C||this,c=Oc(c),d=!!d,b=Dc(a)?Mc(a.P,String(b),c,d,e):a?(a=Qc(a))?Mc(a,b,c,d,e):null:null,b&&(Zc(b),delete this.A[b.key]);return this};
f.removeAll=function(){Ob(this.A,function(a,b){this.A.hasOwnProperty(b)&&Zc(a)},this);
this.A={}};
f.T=function(){sm.N.T.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Am.prototype.o=null;var n$;A(Dm,Am);n$=new Dm;f=Fm.prototype;f.Re=null;f.Nc=!1;f.kg=null;f.Om=null;f.fh=null;f.Ef=null;f.Wd=null;f.he=null;f.We=null;f.zb=null;f.qh=0;f.Oc=null;f.xj=null;f.Se=null;f.Qg=-1;f.lr=!0;f.Ie=!1;f.$k=0;f.ej=null;var Nm={},Lm={};f=Fm.prototype;f.setTimeout=function(a){this.D=a};
f.gD=function(a){a=a.target;var b=this.ej;b&&3==qn(a)?b.Df():this.Mr(a)};
f.Mr=function(a){try{if(a==this.zb)a:{var b=qn(this.zb),c=this.zb.A,d=this.zb.getStatus();if(Rg&&!xc(10)||yc&&!vc("420+")){if(4>b)break a}else if(3>b||3==b&&!zc&&!un(this.zb))break a;this.Ie||4!=b||7==c||(8==c||0>=d?this.o.Kc(3):this.o.Kc(2));Xm(this);var e=this.zb.getStatus();this.Qg=e;var h=un(this.zb);(this.Nc=200==e)?(4==b&&Pm(this),this.F?(Rm(this,b,h),zc&&this.Nc&&3==b&&(this.C.R(this.A,"tick",this.aD),this.A.start())):Om(this,h),this.Nc&&!this.Ie&&(4==b?this.o.$i(this):(this.Nc=!1,Jm(this)))):
(this.Se=400==e&&0<h.indexOf("Unknown SID")?3:0,Mm(),Pm(this),Qm(this))}}catch(k){this.zb&&un(this.zb)}finally{}};
f.aD=function(){var a=qn(this.zb),b=un(this.zb);this.qh<b.length&&(Xm(this),Rm(this,a,b),this.Nc&&4!=a&&Jm(this))};
f.yC=function(a){Wm(y(this.xC,this,a),0)};
f.xC=function(a){this.Ie||(Xm(this),Om(this,a),Jm(this))};
f.Qq=function(a){Wm(y(this.wC,this,a),0)};
f.wC=function(a){this.Ie||(Pm(this),this.Nc=a,this.o.$i(this),this.o.Kc(4))};
f.cancel=function(){this.Ie=!0;Pm(this)};
f.NC=function(){this.kg=null;var a=K();0<=a-this.Om?(2!=this.Ef&&this.o.Kc(3),Pm(this),this.Se=2,Mm(),Qm(this)):Vm(this,this.Om-a)};f=bn.prototype;f.Xk=null;f.nc=null;f.fj=!1;f.Ro=null;f.ri=null;f.Yk=null;f.Zk=null;f.yc=null;f.zd=-1;f.Pg=null;f.Cg=null;f.connect=function(a){this.Zk=a;a=cn(this.o,null,this.Zk);Mm();this.Ro=K();var b=this.o.H;null!=b?(this.Pg=b[0],(this.Cg=b[1])?(this.yc=1,dn(this)):(this.yc=2,fn(this))):(zf(a,"MODE","init"),this.nc=new Fm(this,0,void 0,void 0,void 0),this.nc.Re=this.Xk,Im(this.nc,a,!1,null,!0),this.yc=0)};
f.uw=function(a){if(a)this.yc=2,fn(this);else{Mm();var b=this.o;b.Gc=b.Pd.zd;On(b,9)}a&&this.Kc(2)};
f.Ck=function(a){return this.o.Ck(a)};
f.Qo=function(){return!1};
f.Eq=function(a,b){this.zd=a.Qg;if(0==this.yc)if(b){try{var c=this.A.parse(b)}catch(d){c=this.o;c.Gc=this.zd;On(c,2);return}this.Pg=c[0];this.Cg=c[1]}else c=this.o,c.Gc=this.zd,On(c,2);else if(2==this.yc)if(this.fj)Mm(),this.Yk=K();else if("11111"==b){if(Mm(),this.fj=!0,this.ri=K(),c=this.ri-this.Ro,!Rg||xc(10)||500>c)this.zd=200,this.nc.cancel(),Mm(),en(this.o,this,!0)}else Mm(),this.ri=this.Yk=K(),this.fj=!1};
f.$i=function(){this.zd=this.nc.Qg;if(this.nc.Nc)0==this.yc?this.Cg?(this.yc=1,dn(this)):(this.yc=2,fn(this)):2==this.yc&&(a=!1,(a=!Rg||xc(10)?this.fj:200>this.Yk-this.ri?!1:!0)?(Mm(),en(this.o,this,!0)):(Mm(),en(this.o,this,!1)));else{0==this.yc?Mm():2==this.yc&&Mm();var a=this.o;a.Gc=this.zd;On(a,2)}};
f.kh=function(){return this.o.kh()};
f.isActive=function(){return this.o.isActive()};
f.Kc=function(a){this.o.Kc(a)};A(gn,J);var rn=/^https?$/i,Pha=["POST","PUT"];f=gn.prototype;
f.send=function(a,b,c,d){if(this.o)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+a);b=b?b.toUpperCase():"GET";this.H=a;this.F="";this.A=0;this.W=b;this.O=!1;this.B=!0;this.o=this.M?Em(this.M):Em(n$);this.L=this.M?Cm(this.M):Cm(n$);this.o.onreadystatechange=y(this.Aq,this);try{jm(on(this,"Opening Xhr")),this.U=!0,this.o.open(b,String(a),!0),this.U=!1}catch(h){jm(on(this,"Error opening Xhr: "+h.message));nn(this,h);return}a=c||"";var e=this.headers.clone();
d&&Qe(d,function(a,b){e.set(b,a)});
d=eb(e.Pa(),kn);c=aa.FormData&&a instanceof aa.FormData;!jb(Pha,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.o.setRequestHeader(b,a)},this);
this.Z&&(this.o.responseType=this.Z);Yb(this.o,"withCredentials")&&(this.o.withCredentials=this.Y);try{tn(this),0<this.D&&(this.K=jn(this.o),jm(on(this,"Will abort after "+this.D+"ms if incomplete, xhr2 "+this.K)),this.K?(this.o.timeout=this.D,this.o.ontimeout=y(this.So,this)):this.J=Rd(this.So,this.D,this)),jm(on(this,"Sending request")),this.G=!0,this.o.send(a),this.G=!1}catch(h){jm(on(this,"Send error: "+h.message)),nn(this,h)}};
f.So=function(){"undefined"!=typeof pn&&this.o&&(this.F="Timed out after "+this.D+"ms, aborting",this.A=8,on(this,this.F),this.$("timeout"),Ym(this,8))};
f.T=function(){this.o&&(this.B&&(this.B=!1,this.C=!0,this.o.abort(),this.C=!1),mn(this,!0));gn.N.T.call(this)};
f.Aq=function(){this.isDisposed()||(this.U||this.G||this.C?sn(this):this.QB())};
f.QB=function(){sn(this)};
f.isActive=function(){return!!this.o};
f.getStatus=function(){try{return 2<qn(this)?this.o.status:-1}catch(a){return-1}};f=vn.prototype;f.Ig=null;f.Vb=null;f.ub=null;f.Wk=null;f.wi=null;f.co=null;f.Ai=null;f.Wg=0;f.Dz=0;f.Mb=null;f.Rd=null;f.wd=null;f.Ne=null;f.Pd=null;f.wj=null;f.Rf=-1;f.Lp=-1;f.Gc=-1;f.Jg=0;f.rf=0;f.Ke=8;var Pn=new J;A(xn,jc);A(yn,jc);A(zn,jc);f=vn.prototype;f.connect=function(a,b,c,d,e){Mm();this.Wk=b;this.Ig=c||{};d&&p(e)&&(this.Ig.OSID=d,this.Ig.OAID=e);this.Pd=new bn(this);this.Pd.Xk=null;this.Pd.A=this.D;this.Pd.connect(a)};
f.Qo=function(){return 0==this.o};
f.Nq=function(a){this.Rd=null;Jn(this,a)};
f.Mq=function(){this.wd=null;this.ub=new Fm(this,0,this.B,"rpc",this.F);this.ub.Re=null;this.ub.$k=0;var a=this.co.clone();xf(a,"RID","rpc");xf(a,"SID",this.B);xf(a,"CI",this.wj?"0":"1");xf(a,"AID",this.Rf);Bn(this,a);if(!Rg||xc(10))xf(a,"TYPE","xmlhttp"),Im(this.ub,a,!0,this.Ai,!1);else{xf(a,"TYPE","html");var b=this.ub,c=!!this.Ai;b.Ef=3;b.Wd=Af(a.clone());Um(b,c)}};
f.Eq=function(a,b){if(0!=this.o&&(this.ub==a||this.Vb==a))if(this.Gc=a.Qg,this.Vb==a&&3==this.o)if(7<this.Ke){var c;try{c=this.D.parse(b)}catch(h){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.wd){if(this.ub)if(this.ub.fh+3E3<this.Vb.fh)En(this),this.ub.cancel(),this.ub=null;else break a;Mn(this);Mm()}}else this.Lp=c[1],0<this.Lp-this.Rf&&37500>c[2]&&this.wj&&0==this.rf&&!this.Ne&&(this.Ne=Wm(y(this.$z,this),6E3));else On(this,11)}else"y2f%"!=b&&On(this,11);else if(this.ub==a&&En(this),!C(b)){c=
this.D.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.Rf=e[0];e=e[1];2==this.o?"c"==e[0]?(this.B=e[1],this.Ai=e[2],e=e[3],null!=e?this.Ke=e:this.Ke=6,this.o=3,this.Mb&&this.Mb.oo(this),this.co=cn(this,this.kh()?this.Ai:null,this.Wk),Kn(this)):"stop"==e[0]&&On(this,7):3==this.o&&("stop"==e[0]?On(this,7):"noop"!=e[0]&&this.Mb&&this.Mb.no(this,e),this.rf=0)}}};
f.$z=function(){null!=this.Ne&&(this.Ne=null,this.ub.cancel(),this.ub=null,Mn(this),Mm())};
f.$i=function(a){var b;if(this.ub==a)En(this),this.ub=null,b=2;else if(this.Vb==a)this.Vb=null,b=1;else return;this.Gc=a.Qg;if(0!=this.o)if(a.Nc)1==b?(K(),Pn.$(new yn(Pn,a.We?a.We.length:0)),Fn(this),this.C.length=0):Kn(this);else{var c=a.Se,d;if(!(d=3==c||7==c||0==c&&0<this.Gc)){if(d=1==b)this.Vb||this.Rd||1==this.o||2<=this.Jg?d=!1:(this.Rd=Wm(y(this.Nq,this,a),Ln(this,this.Jg)),this.Jg++,d=!0);d=!(d||2==b&&Mn(this))}if(d)switch(c){case 1:On(this,5);break;case 4:On(this,10);break;case 3:On(this,
6);break;case 7:On(this,12);break;default:On(this,2)}}};
f.Rw=function(a){if(!jb(arguments,this.o))throw Error("Unexpected channel state: "+this.o);};
f.GD=function(a){a?Mm():(Mm(),Nn(this,8))};
f.Ck=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new gn;a.Y=!1;return a};
f.isActive=function(){return!!this.Mb&&this.Mb.isActive(this)};
f.Kc=function(){Pn.$(new zn(Pn))};
f.kh=function(){return!(!Rg||xc(10))};
f=Qn.prototype;f.oo=function(){};
f.no=function(){};
f.mo=function(){};
f.tk=function(){};
f.Go=function(){return{}};
f.isActive=function(){return!0};A(Rn,Pd);Rn.prototype.F=function(){if(500<this.o){var a=this.o;24E4>2*a&&(a*=2);Qd(this,a)}this.G()};
Rn.prototype.start=function(){Rn.N.start.call(this);this.D=K()+this.o};
Rn.prototype.stop=function(){this.D=0;Rn.N.stop.call(this)};A(Sn,Qn);f=Sn.prototype;f.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
f.Ha=function(a,b,c){return Be(this.B,a,b,c)};
f.oc=function(a){return this.B.oc(a)};
f.S=function(a,b){return this.B.S.apply(this.B,arguments)};
f.dispose=function(){this.K||(this.K=!0,this.B.clear(),Un(this),Mb(this.B))};
f.isDisposed=function(){return this.K};
f.connect=function(a,b,c){if(!this.o||2!=this.o.o){this.J="";this.A.stop();this.F=a||null;this.D=b||0;a=this.L+"/test";b=this.L+"/bind";var d=new vn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.o;e&&(e.Mb=null);d.Mb=this;this.o=d;e?this.o.connect(a,b,this.C,e.B,e.Rf):c?this.o.connect(a,b,this.C,c.sessionId,c.arrayId):this.o.connect(a,b,this.C)}};
f.sendMessage=function(a,b){var c={_sc:a};b&&hc(c,b);this.A.enabled||2==(this.o?this.o.o:0)?this.G.push(c):this.o&&3==this.o.o&&Gn(this.o,c)};
f.oo=function(){var a=this.A;a.stop();Qd(a,5E3+2E4*Math.random());this.F=null;this.D=0;if(this.G.length){a=this.G;this.G=[];for(var b=0,c=a.length;b<c;++b)Gn(this.o,a[b])}this.S("handlerOpened")};
f.mo=function(a,b){var c=2==b&&401==this.o.Gc;if(4!=b&&!c){if(6==b||410==this.o.Gc)c=this.A,c.stop(),Qd(c,500);this.A.start()}this.S("handlerError",b)};
f.tk=function(a,b,c){if(!this.A.enabled)this.S("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.G.push(d)}};
f.Go=function(){var a={v:2};this.J&&(a.gsessionid=this.J);0!=this.D&&(a.ui=""+this.D);0!=this.H&&(a.ui=""+this.H);this.F&&hc(a,this.F);return a};
f.no=function(a,b){if("S"==b[0])this.J=b[1];else if("gracefulReconnect"==b[0]){var c=this.A;c.stop();Qd(c,500);this.A.start();Dn(this.o)}else this.S("handlerMessage",new wl(b[0],b[1]))};
f.fE=function(){this.A.stop();var a=this.o,b=0;a.ub&&b++;a.Vb&&b++;0!=b?this.A.start():this.connect(this.F,this.D)};f=Wn.prototype;f.Ya=function(){return this.o.length+this.A.length};
f.isEmpty=function(){return kb(this.o)&&kb(this.A)};
f.clear=function(){this.o=[];this.A=[]};
f.contains=function(a){return jb(this.o,a)||jb(this.A,a)};
f.remove=function(a){var b;b=this.o;var c=Fha(b,a);0<=c?(ob(b,c),b=!0):b=!1;return b||pb(this.A,a)};
f.Na=function(){for(var a=[],b=this.o.length-1;0<=b;--b)a.push(this.o[b]);for(var c=this.A.length,b=0;b<c;++b)a.push(this.A[b]);return a};f=ao.prototype;f.reset=function(a){this.videoIds=[];this.A="";eo(this);this.volume=-1;this.muted=!1;a&&(this.videoIds=a.videoIds,this.index=a.index,this.A=a.listId,this.videoId=a.videoId,this.o=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.B=a.trackData,this.C=a.playerTime,this.D=a.playerTimeAt)};
f.ib=function(){return 1==this.o};
f.setVideoId=function(a){bo(this,"setVideoId");var b=this.index;this.index=ib(this.videoIds,a);b!=this.index&&co(this);return-1!=b};
f.remove=function(a){bo(this,"remove");var b=fo(this);return pb(this.videoIds,a)?(this.index=ib(this.videoIds,b),!0):!1};
f.clone=function(){return new ao(ko(this))};A(no,Gj);f=no.prototype;f.play=function(){1==this.A?(this.o?this.o.play(null,v,y(function(){this.Za("Failed to play video with cast v2 channel.");po(this,"play")},this)):po(this,"play"),uo(this,1,ho(oo(this))),vo(this)):to(this,this.play)};
f.pause=function(){1==this.A?(this.o?this.o.pause(null,v,y(function(){this.Za("Failed to pause video with cast v2 channel.");po(this,"pause")},this)):po(this,"pause"),uo(this,2,ho(oo(this))),vo(this)):to(this,this.pause)};
f.Rr=function(a){if(1==this.A){if(this.o){var b=oo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;b.ib()||3==b.o?c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.o.seek(c,v,y(function(){this.Za("Failed to seek in video with cast v2 channel.");po(this,"seekTo",{newTime:a})},this))}else po(this,"seekTo",{newTime:a});
uo(this,3,a);vo(this)}else to(this,pa(this.Rr,a))};
f.stop=function(){if(1==this.A){this.o?this.o.stop(null,v,y(function(){this.Za("Failed to stop video with cast v2 channel.");po(this,"stopVideo")},this)):po(this,"stopVideo");
var a=oo(this);eo(a);qo(this,a);vo(this)}else to(this,this.stop)};
f.setVolume=function(a,b){if(1==this.A){var c=oo(this);if(this.B){if(c.volume!=a){var d=Math.round(a)/100;this.B.setReceiverVolumeLevel(d,y(function(){wo("set receiver volume: "+d)},this),y(function(){this.Za("failed to set receiver volume.")},this))}c.muted!=b&&this.B.setReceiverMuted(b,y(function(){wo("set receiver muted: "+b)},this),y(function(){this.Za("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);po(this,"setVolume",e)}c.muted=b;c.volume=a;qo(this,c);vo(this)}else to(this,pa(this.setVolume,a,b))};
f.sm=function(a,b){if(1==this.A){var c=oo(this);if(b){c.B={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:ee(b.style)};hc(d,c.B);po(this,"setSubtitlesTrack",d)}else d={videoId:a},po(this,"setSubtitlesTrack",d);qo(this,c)}else to(this,pa(this.sm,a,b))};
f.Sr=function(a,b){if(1==this.A){po(this,"setAudioTrack",{videoId:a,audioTrackId:b.Fb.id});var c=oo(this);c.audioTrackId=b.Fb.id;qo(this,c)}else to(this,pa(this.Sr,a,b))};
f.dispose=function(){if(3!=this.A){var a=this.A;this.A=3;this.S("proxyStateChange",a,this.A)}no.N.dispose.call(this)};
f.T=function(){ti(this.D);this.D=window.NaN;so(this);this.C=null;this.F.clear();mo(this,null);no.N.T.call(this)};
f.Vm=function(a){if((a!=this.A||2==a)&&3!=this.A&&0!=a){var b=this.A;this.A=a;this.S("proxyStateChange",b,a);if(1==a)for(;!this.F.isEmpty();)Zn(this.F).apply(this);else 3==a&&this.dispose()}};
f.JB=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.D))&&this.S(a)};
f.dA=function(a){if(!a)this.Xg(null),mo(this,null);else if(this.B.receiver.volume){a=this.B.receiver.volume;var b=oo(this);if(b.volume!=a.level||b.muted!=a.muted)wo("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,qo(this,b),vo(this)}};
f.Xg=function(a){wo("Cast media: "+!!a);this.o&&this.o.removeUpdateListener(this.J);if(this.o=a)this.o.addUpdateListener(this.J),xo(this),vo(this)};
f.cA=function(a){a?(xo(this),vo(this)):this.Xg(null)};
f.Za=function(a){Wh("CP",a)};A(zo,Gj);f=zo.prototype;
f.connect=function(a,b){if(b){if(this.va.A){var c=b.listId,d=b.videoId,e=b.index,h=b.currentTime||0;5>=h&&(h=0);k={videoId:d,currentTime:h};c&&(k.listId=c);p(e)&&(k.currentIndex=e);c&&(this.va.A=c);this.va.videoId=d;this.va.index=e||0}else{var d=b.videoIds[b.index],h=b.currentTime||0;5>=h&&(h=0);var k={videoIds:d,videoId:d,currentTime:h};this.va.videoIds=[d];this.va.index=0}this.va.state=3;go(this.va,h);this.cb("Connecting with setPlaylist and params: "+ee(k));this.o.connect({method:"setPlaylist",params:ee(k)},
a,gk())}else this.cb("Connecting without params"),this.o.connect({},a,gk());Bo(this)};
f.dispose=function(){this.isDisposed()||(this.S("beforeDispose"),Ao(this,3));zo.N.dispose.call(this)};
f.T=function(){Co(this);Eo(this);Do(this);ti(this.G);this.G=window.NaN;ti(this.H);this.H=window.NaN;this.B=null;El(this.P);this.P.length=0;this.o.dispose();zo.N.T.call(this);this.A=this.va=this.o=null};
f.cb=function(a){Wh("conn",a)};
f.ox=function(){this.C(2)};
f.iA=function(){this.cb("Channel opened");this.M&&(this.M=!1,Do(this),this.J=ri(y(function(){this.cb("Timing out waiting for a screen.");this.C(1)},this),15E3));
mk(Tn(this.o),this.O)};
f.eA=function(){this.cb("Channel closed");(0,window.isNaN)(this.D)?nk(!0):nk();this.dispose()};
f.fA=function(a){nk();(0,window.isNaN)(this.F())?(this.cb("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,this.cb("Channel error: "+a+" with reconnection in "+this.F()+" ms"),Ao(this,2))};
f.gA=function(a){a.params?this.cb("Received: action="+a.action+", params="+ee(a.params)):this.cb("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=be(a.params.devices);this.A=fi(a,function(a){return new Tj(a)});
a=!!eb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
Jo(this,a);break;case "loungeScreenConnected":Jo(this,!0);break;case "loungeScreenDisconnected":qb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
Jo(this,!1);break;case "remoteConnected":var b=new Tj(be(a.params.device));eb(this.A,function(a){return a.equals(b)})||nb(this.A,b);
break;case "remoteDisconnected":b=new Tj(be(a.params.device));qb(this.A,function(a){return a.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":Lo(this,a);break;case "nowPlaying":No(this,a);break;case "onStateChange":Mo(this,a);break;case "onVolumeChanged":Oo(this,a);break;case "onSubtitlesTrackChanged":Ko(this,a);break;default:this.cb("Unrecognized action: "+a.action)}};
f.hA=function(a){a.params?this.cb("Received: action="+a.action+", params="+ee(a.params)):this.cb("Received: action="+a.action);Po(this,a);Qo(this,a);if(Ho(this)){var b=this.va.clone(),c=!1,d,e,h,k,l,m;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,h=a.params.state,k=a.params.currentTime||a.params.current_time,l=a.params.volume,m=a.params.muted,p(a.params.currentError)&&be(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==fo(this.va)&&(delete a.params.videoId,
ac(a.params)?this.va.B=null:this.va.B=a.params,this.S("remotePlayerChange"));else if(fo(this.va)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=fo(this.va)):this.va.setVideoId(""),e&&(e=e.split(","),jo(this.va,e,d))):jo(this.va,[]);e=this.va;var n=d;bo(e,"add");n&&!jb(e.videoIds,n)?(e.videoIds.push(n),e=!0):e=!1;e&&Fo(this,"getPlaylist");d&&this.va.setVideoId(d);b.index==this.va.index&&Gb(b.videoIds,
this.va.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.S("remoteQueueChange"):this.S("remoteQueueChange");p(h)&&(a=(0,window.parseInt)(h,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.va.o&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.va.o,this.va.o=a,1==this.va.o?Go(this):Eo(this));k&&(a=(0,window.parseInt)(k,10),go(this.va,(0,window.isNaN)(a)?0:a),c=!0);p(l)&&(a=(0,window.parseInt)(l,10),(0,window.isNaN)(a)||(c=c||this.va.volume!=a,this.va.volume=a),p(m)&&(m="true"==
m,c=c||this.va.muted!=m,this.va.muted=m));c&&this.S("remotePlayerChange")}}};
f.lD=function(){if(this.B){var a=this.B;this.B=null;this.va.videoId!=a&&Fo(this,"getNowPlaying")}};
zo.prototype.subscribe=zo.prototype.subscribe;zo.prototype.unsubscribeByKey=zo.prototype.oc;zo.prototype.Z=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.F())?Ho(this)&&(a=1):a=2);return a};
zo.prototype.getProxyState=zo.prototype.Z;zo.prototype.C=function(a){this.cb("Disconnecting with "+a);Co(this);this.S("beforeDisconnect",a);1==a&&nk();Un(this.o,a);this.dispose()};
zo.prototype.disconnect=zo.prototype.C;zo.prototype.W=function(){var a=this.va;this.B&&(a=this.va.clone(),io(a,this.B,a.index));return ko(a)};
zo.prototype.getPlayerContextData=zo.prototype.W;
zo.prototype.ea=function(a){var b=new ao(a);b.videoId&&b.videoId!=this.va.videoId&&(this.B=b.videoId,ti(this.G),this.G=ri(y(this.lD,this),5E3));var c=[];this.va.A==b.A&&this.va.videoId==b.videoId&&this.va.index==b.index&&Gb(this.va.videoIds,b.videoIds)||c.push("remoteQueueChange");this.va.o==b.o&&this.va.volume==b.volume&&this.va.muted==b.muted&&ho(this.va)==ho(b)&&ee(this.va.B)==ee(b.B)||c.push("remotePlayerChange");this.va.reset(a);F(c,function(a){this.S(a)},this)};
zo.prototype.setPlayerContextData=zo.prototype.ea;zo.prototype.U=function(){return this.o.C.loungeIdToken};
zo.prototype.getLoungeToken=zo.prototype.U;zo.prototype.K=function(){var a=this.o.C.id,b=eb(this.A,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
zo.prototype.getOtherConnectedRemoteId=zo.prototype.K;zo.prototype.F=function(){var a=this.o;return a.A.enabled?a.A.D-K():window.NaN};
zo.prototype.getReconnectTimeout=zo.prototype.F;zo.prototype.fa=function(){if(!(0,window.isNaN)(this.F())){var a=this.o.A;a.enabled&&(a.stop(),a.start(),a.F())}};
zo.prototype.reconnect=zo.prototype.fa;zo.prototype.aa=function(a,b){Fo(this,a,b);Io(this)};
zo.prototype.sendMessage=zo.prototype.aa;var Uo=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];A(Zo,Hj);f=Zo.prototype;f.qc=function(a){return this.Rb.$_gs(a)};
f.contains=function(a){return!!this.Rb.$_c(a)};
f.get=function(a){return this.Rb.$_g(a)};
f.start=function(){this.Rb.$_st()};
f.Aj=function(a,b,c){this.Rb.$_a(a,b,c)};
f.remove=function(a,b,c){this.Rb.$_r(a,b,c)};
f.uj=function(a,b,c,d){this.Rb.$_un(a,b,c,d)};
f.T=function(){for(var a=0,b=this.o.length;a<b;++a)this.Rb.$_ubk(this.o[a]);this.o.length=0;this.Rb=null;Zo.N.T.call(this)};
f.jE=function(){this.S("screenChange")};
f.xB=function(){this.S("onlineScreenChange")};
Ck.prototype.$_st=Ck.prototype.start;Ck.prototype.$_gspc=Ck.prototype.kE;Ck.prototype.$_gsppc=Ck.prototype.Vr;Ck.prototype.$_c=Ck.prototype.contains;Ck.prototype.$_g=Ck.prototype.get;Ck.prototype.$_a=Ck.prototype.Aj;Ck.prototype.$_un=Ck.prototype.uj;Ck.prototype.$_r=Ck.prototype.remove;Ck.prototype.$_gs=Ck.prototype.qc;Ck.prototype.$_gos=Ck.prototype.Ur;Ck.prototype.$_s=Ck.prototype.subscribe;Ck.prototype.$_ubk=Ck.prototype.oc;var $o=null,ap=null,fp=null,To=null,ep=[];var Gp=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|web-ppg\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,cx=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,
CK=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,CH=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/+embed(\/+|\?|#|$)/,kx=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
aq=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,ox=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect|www\.googleadservices\.com\/trueview_inred)/,Zp=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,Rr=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com)(:[0-9]+)?([\/\?\#]|$)/,
DH=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
MH=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Ip=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|lh2\.google\.com|plus\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Jp=["2mdn.net","googleads.g.doubleclick.net"];var rw=GH||ix;var dq={},cq=0,Qha=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",Qha,void 0);var eq=1;fq.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
fq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};A(gq,fq);gq.prototype.getId=function(){return this.J};
gq.prototype.getId=gq.prototype.getId;gq.prototype.toString=function(){return gq.N.toString.call(this)};A(jq,Gj);f=jq.prototype;f.bb=function(a,b){for(var c=0;c<a.length;c++)a[c].o=this.ra;this.o.bb(a,b)};
f.create=function(){this.H||(this.Xa(this.o),L(this.o.Da(),this.ra+"-created"),this.o.addEventListener("crn_"+this.ra,this.Wb,this),this.o.addEventListener("crx_"+this.ra,this.jc,this),this.H=!0)};
f.destroy=function(){this.loaded&&this.unload();$d(this.o.Da(),this.ra+"-created");this.o.removeEventListener("crn_"+this.ra,this.Wb,this);this.o.removeEventListener("crx_"+this.ra,this.jc,this);this.H=!1;this.S("destroyed",this.ra)};
f.load=function(){this.loaded=!0;L(this.o.Da(),this.ra+"-loaded");this.S("loaded",this.ra)};
f.unload=function(){this.loaded=!1;$d(this.o.Da(),this.ra+"-loaded");this.S("unloaded",this.ra)};
f.Wb=function(){};
f.jc=function(){};
f.de=function(){};
f.log=function(a){eM(this.o,this.logEvent,a)};
f.Bh=function(){return null};
f.pauseVideo=function(){this.S("command_pause",!1,this.o.playerType)};
f.ld=function(){};
f.df=function(){return[]};
f.Xa=function(){return!1};
f.am=function(a,b){this.F&&this.F.de&&this.F.de.apply(this.F,arguments)};
f.Zi=function(){};A(uq,G);uq.prototype.o=function(a,b){p(b)?ah(a,this.element,b):a.appendChild(this.element)};
uq.prototype.update=function(a){for(var b in a)this.C(b,a[b])};
uq.prototype.C=function(a,b){var c=this.wa["{{"+a+"}}"];c&&wq(this,c[0],c[1],b)};
uq.prototype.T=function(){this.qa={};this.wa={};xq(this);uq.N.T.call(this)};A(R,uq);f=R.prototype;f.Hb=function(a,b){this.C(b||"content",a)};
f.show=function(){this.B||(zq(this.element,""),this.B=!0)};
f.ha=function(){this.B&&(zq(this.element,"none"),this.B=!1)};
f.ob=function(a){a?this.show():this.ha()};
f.R=function(a,b,c){return S(this,this.element,a,b,c)};
f.ya=function(a){for(var b=0;b<this.Y.length;b++)if(this.Y[b]==a){a=this.Y.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
f.focus=function(){qh(this.element);this.element.focus()};
f.T=function(){for(;this.Y.length;){var a=this.Y.pop();a.target.removeEventListener(a.type,a.listener)}R.N.T.call(this)};A(Cq,R);Cq.prototype.subscribe=function(a,b,c){return this.U.subscribe(a,b,c)};
Cq.prototype.Ha=function(a,b,c){return this.U.Ha(a,b,c)};
Cq.prototype.oc=function(a){return this.U.oc(a)};
Cq.prototype.S=function(a,b){return this.U.S.apply(this.U,arguments)};A(Dq,Cq);Dq.prototype.create=function(){this.L=!0};
Dq.prototype.destroy=function(){this.L=!1};
Dq.prototype.Xh=function(){return!1};A(Eq,R);var Jq={},gr=/[^\d]+$/,hr={cm:1,"in":1,mm:1,pc:1,pt:1},ir={em:1,ex:1};var Rha=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Rg)return vc("10.0");
var a=window.document.createElement("DIV"),b=yc?"-webkit":Fq?"-moz":Rg?"-ms":zc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!yg.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Mha)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Dg("div",b,void 0);a.innerHTML=vg(b);return""!=Kq(a.firstChild,"transition")});A(nr,G);f=nr.prototype;f.show=function(a,b){this.C=!!a;1==this.o||2==this.o||3==this.o&&a||(4==this.o||3==this.o?a||(this.B.show(),mr(this,!1),this.o=null,this.A.stop()):this.B.B||(mr(this,!this.C),this.o=1,b?this.A.start(b):this.Em()))};
f.ha=function(){3!=this.o&&(1==this.o||2==this.o?(this.B.ha(),this.o=null,this.A.stop()):this.B.B&&(mr(this,!0),this.o=3,this.A.start(this.F)))};
f.Em=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:mr(this,this.C);this.C?(this.o=3,this.A.start(this.D)):this.o=null;break;case 3:this.B.ha();mr(this,!1);this.o=4;this.A.start(0);break;case 4:this.o=null}};
f.stop=function(){for(;null!=this.o&&4!=this.o;)this.A.stop(),this.Em()};
f.T=function(){this.B.isDisposed()||this.B.element.removeAttribute("aria-hidden");nr.N.T.call(this)};A(or,R);A(pr,or);pr.prototype.ob=function(a){a?this.A.show():this.A.ha()};A(rr,Dq);rr.prototype.create=function(){rr.N.create.call(this);$g(this.element);this.F.o(this.element);var a=this.A.getVideoData().videoId;a&&(a=TH(this.A.V(),a,!0),pj(a,{method:"GET",qb:this.G,context:this,Fw:!0}))};
rr.prototype.G=function(a,b){if(this.L){var c=b.user_info;this.A.getVideoData();var d=c.channel_banner_url;kx.test(d)||(d="");var e=c.channel_logo_url||c.image_url;kx.test(e)||(e="");this.D.C("background",d?"background-image: url("+d+")":"");this.F.C("image",e);this.F.C("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.F.qa["html5-subscribe-button-container"];c?d.innerHTML=vg(c):$g(d)}};
rr.prototype.show=function(){rr.N.show.call(this);this.D.ob(!0)};
rr.prototype.ha=function(){rr.N.ha.call(this);this.D.ob(!1)};A(sr,G);sr.prototype.ya=function(a){for(var b=0;b<this.L.length;b++)if(this.L[b]==a){this.L.splice(b,1);a.target.removeEventListener(a.name,a.ai);break}};
sr.prototype.T=function(){ur(this);sr.N.T.call(this)};vr.prototype.toString=function(){return this.type+this.id};var D5=16/9,Sha=4/3,t9=[.25,.5,1,1.25,1.5,2];var xr={Xy:function(a,b){a.splice(0,b)},
hs:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
sl:function(a){a.reverse()}};var Cr={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",140:"a",258:"m",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var xw={name:"width",video:!0,valid:640,Vg:99999},yw={name:"height",video:!0,valid:360,Vg:99999},zw={name:"framerate",video:!0,valid:30,Vg:9999},Aw={name:"bitrate",video:!0,valid:3E5,Vg:2E9},Bw={name:"channels",video:!1,valid:2,Vg:99},Cw={Ph:xw,Jh:yw,A:zw,Fn:Aw,o:Bw};Ir.prototype.A=function(){return this.name};
Ir.prototype.getId=function(){return this.id};
Ir.prototype.o=function(){return this.isDefault};
Ir.prototype.toString=function(){return this.name};
Ir.prototype.getName=Ir.prototype.A;Ir.prototype.getId=Ir.prototype.getId;Ir.prototype.getIsDefault=Ir.prototype.o;var xu={zI:"auto",kN:"tiny",PK:"light",SMALL:"small",qv:"medium",LARGE:"large",jK:"hd720",fK:"hd1080",gK:"hd1440",hK:"hd2160",iK:"hd2880",oK:"highres",UNKNOWN:"unknown"},Kr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Jr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var Lr=[["60",55],["50",49],["48",39]];Nr.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.A="")};
Nr.prototype.get=function(a){Or(this);return this.o[a]||null};
Nr.prototype.getUrl=function(){this.A||(this.A=Ur(this));return this.A};
Nr.prototype.clone=function(){var a=new Nr(this.B);a.F=this.F;a.C=this.C;a.D=this.D;a.o=ec(this.o);a.A=this.A;return a};Wr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};f=cs.prototype;f.qe=function(a){return(a=ds(this,a))?a.duration:0};
f.Mk=function(a){return this.qe(a)};
f.Kg=function(){return this.sa.length?this.sa[0].o:-1};
f.Lb=function(){return this.sa.length?this.sa[this.sa.length-1].o:-1};
f.rg=function(){var a=this.sa[this.sa.length-1];return a?a.endTime:window.NaN};
f.rs=function(){return this.sa[0].startTime};
f.yi=function(){return this.sa.length};
f.Oj=function(){return 0};
f.Bf=function(a){return(a=es(this,a))?a.o:-1};
f.Ko=function(a){return ds(this,a).sourceURL};
f.re=function(a){return(a=ds(this,a))?a.startTime:0};
f.cf=function(){return 0<this.sa.length};gs.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""};
gs.prototype.get=function(a){return this.A[a]||this.o.get(a)};
gs.prototype.getUrl=function(){this.B||(this.B=is(this));return this.B};var o$=0;ms.prototype.Hl=function(){return!1};
ms.prototype.fd=function(){return!!this.o&&!!this.index&&this.index.cf()};
ms.prototype.fr=function(a){return[a]};
ms.prototype.hj=function(a){return[a]};ns.prototype.equals=function(a){return!(!a||a.o!=this.o||a.type!=this.type||(this.range&&a.range?a.range.start!=this.range.start||a.range.end!=this.range.end:a.range!=this.range)||a.C!=this.C||a.B!=this.B||a.A!=this.A)};A(ys,ms);f=ys.prototype;f.bi=function(){return!1};
f.Fp=function(){return this.A};
f.Io=function(){if(this.A)return[];var a=new ns(1,this,this.initRange);return[new vs([a],this.G)]};
f.Lg=function(a,b){if(this.A&&ga(a)&&!(0,window.isFinite)(a)){var c=new ns(3,this,null,-1);return new vs([c],"",!0)}c=this.index.Bf(a);b&&(c=Math.min(this.index.Lb(),c+1));return zs(this,c,!0)};
f.Uo=function(a){this.o=new window.Uint8Array(ot(a).buffer)};
f.Hl=function(){return!1};
f.Ah=function(a){return 0==a.A||this.A?!0:this.index.Lb()>a.C&&this.index.Kg()<=a.C+1};
f.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.sa.length)d.sa=a;else{var e=d.sa.length?cb(d.sa).endTime:0,h=a[0].o-d.Lb();1<h&&lb(d.sa);for(h=0<h?0:-h+1;h<a.length;h++){var k=a[h];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[h].duration;d.sa.push(a[h])}}fs(this.index,c);this.C=b};
f.fd=function(){return this.A?!0:ys.N.fd.call(this)};Ds.prototype.update=function(a,b){var c=void 0;this.A&&(c=this.A);var d=new Ds,e=a.getElementsByTagName("S");if(e.length){var h=+Zr(a,"timescale")||1,k=+Zr(a,"startNumber")||0,l;l=((+e[0].getAttribute("t")||0)-(+Zr(a,"presentationTimeOffset")||0))/h;l=c?c.ie+c.durationSecs:b?l:0;var m;m=Date.parse(Zr(a,"yt:segmentIngestTime"));var n=Date.parse(Zr(a,"yt:mpdResponseTime")),n=K()-n;m=(m+n)/1E3;n=c?k-c.o:1;d.C=0<n?0:-n+1;for(n=0;n<e.length;n++)for(var t=e[n],u=+t.getAttribute("d")/h,x=(t.getAttribute("yt:sid")||
0)/h,B=+t.getAttribute("r")||0,D=0;D<=B;D++)if(c&&k<=c.o)k++;else{var I=new Cs(k,l,u,m+x);d.o.push(I);var z;z=t;var Q=h,Na=I.ie,va=z.getAttribute("yt:cuepointTimeOffset"),I=z.getAttribute("yt:cuepointDuration");va&&I?(Na=+va/Q+Na,Q=+I/Q,z=z.getAttribute("yt:cuepointContext")||null,z=new Bs(Na,Q,z)):z=null;z&&d.B.push(z);k++;l+=u;m+=u+x}d.o.length&&(d.A=cb(d.o))}this.C=d.C;this.A=d.A||this.A;tb(this.o,d.o);tb(this.B,d.B)};Ys.prototype.skip=function(a){this.o+=a};f=ut.prototype;f.Oj=function(a){return this.o[a]};
f.re=function(a){return this.A[a]/this.C};
f.qe=function(a){a=this.Mk(a);return 0<=a?a/this.C:-1};
f.Mk=function(a){return a+1<this.za||this.B?this.A[a+1]-this.A[a]:-1};
f.Kg=function(){return 0};
f.Lb=function(){return this.za-1};
f.rg=function(){return this.B?this.A[this.za]/this.C:window.NaN};
f.rs=function(){return 0};
f.yi=function(){return this.za};
f.Ko=function(){return""};
f.Bf=function(a){a=Ab(this.A.subarray(0,this.za),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
f.cf=function(){return 0<=this.Lb()};A(wt,ms);f=wt.prototype;f.Io=function(a){var b=new ns(1,this,this.initRange),c=new ns(2,this,this.indexRange),d=[],e=[b];qs(b,c)?e.push(c):(d.push(new vs([c])),a=0);(0,window.isNaN)(this.A)?a=0:a>this.A&&(a=this.A);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=Yr(b.range.end+1,a-c),e.push(new ns(4,this,a)));d.push(new vs(e));return d};
f.Uo=function(a){if(1==a.info.type){if(this.o)return;this.o=new window.Uint8Array(a.o,a.range.start,a.range.length)}else if(2==a.info.type){if(this.C||0<=this.index.Lb())return;if(1==this.info.A){var b=this.index,c=ot(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),h=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.C=k;a+=8;0==h?(h=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(h=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.o[0]=
k+(e+d);b.A[0]=h;b.B=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var l=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;h=b;h.za++;vt(h);h.o[h.za]=h.o[h.za-1]+l;h.A[h.za]=h.A[h.za-1]+k}}else this.C=ot(a)}if(2==this.info.A&&this.o&&this.C){a=new window.DataView(this.o.buffer,this.o.byteOffset,this.o.byteLength);b=this.index;k=this.C;c=this.indexRange.end;a=new bt(a);if(440786851==et(a)&&(dt(a),408125543==et(a))){e=a;h=e.o;d=ct(e,!0);e.o=h;a=ft(a);for(var e=a.B+a.o,m=et(a);357149030!=m;)dt(a),m=et(a);
a=ft(a);for(var l=1E6,n=1E9,h=0;!(a.o>=a.A.byteLength);)if(m=et(a),2807729==m)l=ht(a);else if(2807730==m)n=ht(a);else if(17545==m){var h=a,m=ct(h,!0),t=0;4==m?t=h.A.getFloat32(h.o):8==m&&(t=h.A.getFloat64(h.o));h.o+=m;h=t}else dt(a);b.C=n/l;a=new bt(k);if(475249515==et(a)){a=ft(a);k=!0;for(l=!1;!(a.o>=a.A.byteLength);)if(m=et(a),187==m){n=ft(a);m=e;if(179!=et(n))t=null;else if(t=ht(n),183!=et(n))t=null;else{for(var n=ft(n),u=m;!(n.o>=n.A.byteLength);)241==et(n)?u=ht(n)+m:dt(n);t=[u,t]}k&&c==t[0]&&
(l=!0);k=!1;l&&(t[0]+=1);n=b;m=t[0];t=t[1];vt(n);n.o[n.za]=m;n.A[n.za]=t;n.za++}else dt(a);c=d+e;a=h;vt(b);b.B=!0;b.A[b.za]=a;b.o[b.za]=c}}this.C=null}};
f.fr=function(a){for(var b=this.hj(a.info),c=[],d=a.B,e=0;e<b.length;e++){var h=Yr(b[e].range.start+b[e].B-a.info.range.start+a.range.start,b[e].A);c.push(new nt(b[e],a.o,h,a.A,d));d=!1}return c};
f.hj=function(a){for(var b=0;b<this.index.Lb()&&a.range.start>=this.index.Oj(b+1);)b++;return xt(this,b,a.range.start,a.range.length).o};
f.Ah=function(a){return this.fd()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
f.Lg=function(a,b){var c=this.index.Bf(a);b&&(c=Math.min(this.index.Lb(),c+1));return xt(this,c,this.index.Oj(c),0)};
f.Hl=function(){var a;if(a=this.fd()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.za]:-1)!=this.A;return a};
f.bi=function(){return!0};
f.Fp=function(){return!1};A(Bt,Gj);
Bt.prototype.W=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.B=!0;this.C||(this.C=new Fs);Js(this.C,a,this.U);this.S("refresh");for(a=0;a<b.length;a++){var c=Kt(this,b[a]);if(!this.o[c.id]){var d=Ht($r(b[a],"BaseURL").textContent,c),e=$r(b[a],"Initialization"),h=Zr(e,"sourceURL"),e=Xr(Zr(e,"range"));this.o[c.id]=new ys(d,c,h,null===e?void 0:e)}for(var c=this.o[c.id],d=this.C,h=c,e=bb(h.info.mimeType,";",1)[0],h=d.B[h.info.id]||d.A[e]||
d.o||null,d=ub($r(b[a],"SegmentList").getElementsByTagName("SegmentURL"),h.C),h=h.o,e=[],k=0;k<d.length;k++)e.push(Mt(d[k],h[k]));c.update(e,this.isLive,this.J)}Ks(this.C);return!0}this.duration=as(Zr(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){e=b[a];c=Kt(this,e);h=$r(e,"BaseURL");d=Ht(h.textContent,c);k=$r(e,"SegmentBase");e=Xr(k.attributes.indexRange.value);k=Xr(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=(0,window.parseInt)(h.getAttribute("yt:contentLength"),
10);c=new wt(d,c,k,e,h,window.NaN);if(!c){b=!1;break a}this.o[c.info.id]=c}b=!0}return b};
var Jt={commentary:1,alternate:2,dub:3,main:4};
Bt.prototype.P=function(a){this.H=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*as(Zr(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.D;this.J=(0,window.parseInt)(Zr(a,"yt:earliestMediaSequence"),10)||0;Re(a.getElementsByTagName("Period"),this.W,this);this.F=2;this.S("loaded");(0,window.isFinite)(this.D)&&(a=At()-this.G,a=Math.max(0,this.D-a),ri(y(this.M,this),a));return this};
Bt.prototype.O=function(a){this.H=a.status;this.F=3;this.S("load_error");return Cd(a)};
Bt.prototype.M=function(){if(1!=this.F&&!this.isDisposed()){var a;a:{a=this.o;for(var b in a){var c=a[b].index;if(c&&c.cf()){a=c.Lb()+1;break a}}a=0}a=ff(this.L,{start_seq:a.toString()});Lt(this,a)}};var nw,JH;var p$=nc,p$=p$.toLowerCase();if(Ga(p$,"android")){var q$=p$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(q$)nw=Number(q$[1]);else{var r$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},s$=p$.match("("+Wb(r$).join("|")+")");nw=s$?r$[s$[0]]:0}}else nw=void 0;JH=0<=nw;var O5,Tt=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Ut=['audio/mp4; codecs="mp4a.40.2"'];var gu={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},hu=rb(gu.widevine,gu.playready);A(fu,G);fu.prototype.F=function(a,b){if(!this.isDisposed()){a.A=b;var c=b.getConfiguration();F([c.audioCapabilities,c.videoCapabilities],function(b){F(b,function(b){a.C[b.contentType]=!0})});
this.C(a)}};
fu.prototype.D=function(){this.isDisposed()||(0<this.A.length?ju(this):this.C(null))};lu.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};mu.prototype.getUrl=function(){return this.J};
mu.prototype.toString=function(){return this.A+": "+nu(this)+" - "+this.G};
mu.prototype.equals=function(a){return a?this.toString()==a.toString():!1};qu.prototype.o=function(){return this.Fb};
qu.prototype.toString=function(){return this.Fb.name};
qu.prototype.getLanguageInfo=qu.prototype.o;ru.prototype.equals=function(a){return this.A==a.A&&this.o==a.o&&this.B==a.B};
var FK=tu("auto","large",!1),vu=tu("auto","auto",!1);tu("small","auto",!1);ru.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o};
ru.prototype.C=function(a){if(!a.video)return!1;a=Kr[a.video.quality];return this.A<=a&&(!this.o||this.o>=a)};var nx={XK:1,YK:2,ZK:3};Au.prototype.getValue=function(){return this.A};
Au.prototype.clone=function(){return new Au(this.o,this.A)};f=Bu.prototype;f.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(a);else{a[0]=a.pop();for(var a=0,b=this.o,d=b.length,e=b[a];a<d>>1;){var h=2*a+1,k=2*a+2,h=k<d&&b[k].o<b[h].o?k:h;if(b[h].o>e.o)break;b[a]=b[h];a=h}b[a]=e}return c.getValue()}};
f.Na=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
f.Pa=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
f.Me=function(a){return xh(this.o,function(b){return b.getValue()==a})};
f.clone=function(){return new Bu(this)};
f.Ya=function(){return this.o.length};
f.isEmpty=function(){return kb(this.o)};
f.clear=function(){lb(this.o)};A(Du,Bu);A(Eu,Gj);Eu.prototype.F=function(a,b){this.o=this.o.onload=null;var c=this.A.o[a];c.B[b]=!0;Iu(this);var d=c.Jb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.Ok()-1)];this.S("l",c[0],c[1])};
Eu.prototype.T=function(){this.o&&(this.o=this.o.onload=null);Eu.N.T.call(this)};f=Ku.prototype;f.getWidth=function(){return this.H};
f.getHeight=function(){return this.G};
f.Ok=function(){return this.A};
f.isDefault=function(){return-1!=this.C.indexOf("default")};
f.getUrl=function(a){var b=this.K,b=b.replace("$N",this.C),b=b.replace("$L",this.M.toString()),b=b.replace("$M",a.toString());this.F&&(b=ff(b,{sigh:this.F}));return Mp(b)};
f.Wj=function(a){return je(0==this.D?Math.round(a*this.A/this.L):Math.round(1E3*a/this.D),0,this.Ok()-1)};
f.un=function(){return this.A-1};
f.Gt=function(){return this.A?0:-1};
f.Ht=function(){};Lu.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],h=1;h<d.length;h++){var k=this.C(h-1,e,d[h],b);180>k.getHeight()&&c.push(k)}return c};
Lu.prototype.C=function(a,b,c,d){return new Ku(a,b,c,d)};
Lu.prototype.getUrl=function(a,b){return this.o[a].getUrl(b)};
Lu.prototype.D=function(){};A(Mu,Ku);f=Mu.prototype;f.Ok=function(){return this.o?this.o.yi():-1};
f.Wj=function(a){var b=this.rows*this.Jb*this.J,c=-1,d=-1,e=this.o;e&&(c=e.Lb(),d=e.Bf(a));return d>c-b?-1:d};
f.un=function(){return this.o?this.o.Lb():-1};
f.Gt=function(){return this.o?this.o.Kg():-1};
f.Ht=function(a){this.o=a?a.index:null};A(Nu,Lu);Nu.prototype.A=function(a,b){return Nu.N.A.call(this,"$N|"+a,b)};
Nu.prototype.C=function(a,b,c){return new Mu(a,b,c,this.F.isLive)};
Nu.prototype.D=function(a){for(var b=0;b<this.o.length;b++)this.o[b].Ht(a)};var Su=/^([0-9\.]+)\:([0-9\.]+)$/;var Yu=0;av.prototype.Ac=function(){return{version:this.version,args:this.args}};
ev.prototype.toString=function(){return this.topic};var Tha=r("yt.pubsub2.instance_")||new Ae;Ae.prototype.subscribe=Ae.prototype.subscribe;Ae.prototype.unsubscribeByKey=Ae.prototype.oc;Ae.prototype.publish=Ae.prototype.S;Ae.prototype.clear=Ae.prototype.clear;q("yt.pubsub2.instance_",Tha,void 0);var hv=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",hv,void 0);var jv=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",jv,void 0);var iv=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",iv,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);A(nv,av);var fv=new ev("timing-sent",nv);var pv=/url\((http[^\)]+)\)/i;var Iv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Gv=y(Iv.clearResourceTimings||Iv.webkitClearResourceTimings||Iv.mozClearResourceTimings||Iv.msClearResourceTimings||Iv.oClearResourceTimings||v,Iv),yv=Iv.mark?function(a){Iv.mark(a)}:v;var jx,kH;var t$=nc,u$=t$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!u$||2>u$.length)jx=void 0;else{var v$=t$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);jx=v$&&6==v$.length?Number(v$[5].replace("_",".")):0}(kH=0<=jx)&&0<=nc.search("Safari")&&nc.search("Version");var Nv=K().toString();var fx={QK:0,AJ:1,tK:2};var Uv=function(){if(TF)return Tv(/Firefox\/([0-9.]+)/);if(Rg||cu||zc)return uc;if(ul)return Tv(/Chrome\/([0-9.]+)/);if(au&&!(rc()||oc("iPad")||oc("iPod")))return Tv(/Version\/([0-9.]+)/);if(GH||ix){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(nc);if(a)return a[1]+"."+a[2]}else if(HH)return(a=Tv(/Android\s+([0-9.]+)/))?a:Tv(/Version\/([0-9.]+)/);return""}();Vv.prototype.start=function(){return 0};
Vv.prototype.end=function(){return window.Infinity};
Vv.prototype.length=1;f=Wv.prototype;f.addEventListener=function(){};
f.removeEventListener=function(){};
f.dispatchEvent=function(){};
f.abort=function(){};
f.remove=function(){};
f.appendBuffer=function(){};Xv.prototype.dispose=function(){if(!this.B){if(this.o)try{window.URL.revokeObjectURL(this.C)}catch(a){}this.B=!0}};
Xv.prototype.isDisposed=function(){return this.B};
Xv.prototype.equals=function(a){return null!=a&&Yv(a)==Yv(this)};f=Zv.prototype;f.append=function(a){this.A.webkitSourceAppend(this.B,a)};
f.abort=function(){this.A.webkitSourceAbort(this.B)};
f.XD=function(){return this.A.webkitSourceState==this.A.SOURCE_CLOSED?new $v:this.A.webkitSourceBuffered(this.B)};
f.ZD=function(){return this.C};
f.cE=function(a){this.C=a;this.A.webkitSourceTimestampOffset(this.B,a)};f=aw.prototype;f.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
f.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)};
f.AG=function(){return this.o.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new Zv(this.o,b);this.sourceBuffers.push(a);return a};
f.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.o.webkitSourceRemoveId(a.B);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
f.$D=function(){switch(this.o.webkitSourceState){case this.o.SOURCE_CLOSED:return"closed";case this.o.SOURCE_OPEN:return"open";case this.o.SOURCE_ENDED:return"ended"}return""};
f.endOfStream=function(a){var b=this.o.EOS_NO_ERROR;"network"==a?b=this.o.EOS_NETWORK_ERR:"decode"==a&&(b=this.o.EOS_DECODE_ERR);this.o.webkitSourceEndOfStream(b)};
f.aE=function(){lb(this.sourceBuffers)};
f.YD=function(){return this.A};
f.bE=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};A(bw,sr);bw.prototype.Zf=function(a){fw(this)?this.B.duration=a:this.C=a};
bw.prototype.K=function(){if(!this.isDisposed()&&fw(this)&&!(0,window.isNaN)(this.C)){this.B.duration=this.C;this.C=window.NaN;try{this.o=this.B.addSourceBuffer(this.H),this.P?this.A=this.B.addSourceBuffer(this.M):this.A=new Wv,this.D&&(this.D(this),this.D=null)}catch(a){this.F&&this.F()}}};
bw.prototype.J=function(){this.dispose()};lw.prototype.A=function(){return null};
var ow={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var Gw="9h8(H*".split(""),Iw="h98H(*".split(""),Jw="oMavAV".split(""),Lw="moMavAV".split(""),Kw="aoMvAV".split(""),Hw=["f"],uw={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},vw={"application/x-mpegURL":"maybe"},tw={"application/x-mpegURL":"maybe"};A(Uw,lw);
Uw.prototype.A=function(){if(!this.o||this.o.isDisposed()){var a;a=this.B;Rw(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.A.length;d<e;++d){var h=a.A[d];c[h.itag]=h;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+h.itag.toString()+'",URI="'+h.url+'"')}d=0;for(e=a.o.length;d<e;++d){var k=a.o[d],h=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+h.bitrate)+',CODECS="'+(k.uo+","+h.uo)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
h.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.o=new Xv("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.o};A(Xw,lw);Xw.prototype.A=function(){return new Xv(this.o)};A(bx,Gj);bx.F=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;bx.A=1;bx.G=-21;bx.H=18E3;bx.B="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");bx.D="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
bx.o={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};bx.C=["www.youtube.com","manifest.googlevideo.com"];f=bx.prototype;f.adModule=!1;f.adaptiveFormats="";f.Xm=null;f.allowEmbed=!0;f.backgroundable=!1;f.Od=!1;f.qf="";f.Zn=!1;f.Wh=!1;f.Vh=bx.A;f.Ej=null;f.watchAjaxToken=null;f.author="";f.Cj=0;f.ci=!1;f.vo=!1;f.fi="";f.gi="";f.clientPlaybackNonce="";f.contentCheckOk=!1;f.$e=0;f.Hk=!1;f.enableCardio=!1;
f.enableCardioBeforePlayback=!1;f.vf=0;f.ae=!1;f.Wo=!1;f.Dj=0;f.uh=0;f.Pi=!1;f.Lc=!1;f.El=!1;f.Dp=!1;f.Gl=!1;f.isListed=!1;f.Pf=!1;f.Ga=!1;f.isLiveDefaultBroadcast=!1;f.isLowLatencyLiveStream=!1;f.isMdxPlayback=!1;f.isPharma=!1;f.Kl=!1;f.ng=!1;f.Kp=!1;f.Ll=!1;f.Ek=3;f.Ve=window.NaN;f.Ti=null;f.liveStartWalltime=0;f.Ol=null;f.lengthSeconds=0;f.Ym=0;f.paygated=!1;f.profilePicture="";f.racyCheckOk=!1;f.autonavState=1;f.ih=vu;f.Qd=!1;f.startSeconds=0;f.oj=null;f.sentiment=2;f.spacecastModule=!1;
f.ek=null;f.nh=vu;f.Xe=null;f.title="";f.jg="";f.hlsFormats="";f.zj=null;f.Mm="vvt";f.requiresPurchase=!1;f.clipStart=0;f.clipEnd=window.Infinity;f.kz=function(a){(this.J=a)&&"fairplay"==this.J.o&&(this.J.fairPlayCert=this.fairPlayCert);ux(this)};
f.CA=function(a){this.isDisposed()||(this.o=a,H(this,this.o),this.Ga?this.o.subscribe("refresh",this.hq,this):this.o.isLive=!1,Bv("mrc"),Ct(this.o)&&(this.W=!0),ux(this))};
f.BA=function(a){this.isDisposed()||(this.ae=!1,this.S("dataloaderror",new Rv("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
f.hq=function(){this.o.isLive||this.o.Ha("refresh",this.hq,this);var a=ub(this.o.C.C,this.Fa);0<a.length&&(this.S("cuepointupdated",a),this.Fa+=a.length)};
f.Zc=function(a){return w(this.keywords[a])?this.keywords[a]:null};
f.mr=function(){var a={format:"RAW",method:"GET",context:this,qb:this.TA,onError:this.kq,withCredentials:this.ud};this.ye&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});pj(this.Pb,a);Bv("vir")};
f.gc=function(a,b){if(30==this.P){var c=this.$a["default.jpg"];return c?c:this.videoId?ff("//docs.google.com/vt",{id:this.videoId,authuser:this.Bb,authkey:this.gb}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.$a[b])||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:WH(a,this.videoId,b)};
f.Qk=function(a){return a.U+"://i.ytimg.com/an_webp/"+this.videoId+"/mqdefault.webp"};
f.TA=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.ae=!1;var c=dj(b);"fail"==c.status?this.S("onStatusFail",c):(Bv("virc"),F(bx.B,function(a){a in this.C&&(c[a]=this.C[a])},this),ax(this,c),ux(this))}else this.kq(a)}};
f.kq=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.jb&&(this.xb?b="manifest.net.retryexhausted":(this.xb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.xe.start()));this.S("dataloaderror",new Rv(b,c,d))}};
f.af=function(){return null};
f.sb=function(){return this};
f.Tk=function(a){return a.getVideoUrl(this.videoId)};A(Qx,Gj);f=Qx.prototype;f.hasNext=function(a){return this.K||!!a||this.o+1<this.B};
f.sb=function(a,b){var c=void 0!=a?a:this.o,c=this.A&&c in this.A?this.A[this.C[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new bx(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.D&&(d.playlistId=this.D.toString()));return d};
f.setShuffle=function(a){this.L=a;a=this.C&&null!=this.C[this.o]?this.C[this.o]:this.o;this.C=[];for(var b=0;b<this.A.length;b++)this.C.push(b);this.o=a;this.J++;if(this.L){a=this.C[this.o];for(b=1;b<this.C.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.C[b];this.C[b]=this.C[c];this.C[c]=d}for(b=0;b<this.C.length;b++)this.C[b]==a&&(this.o=b);this.J++}this.S("shuffle")};
f.gc=function(a,b){b=b||"hqdefault.jpg";var c=this.P[b];if(c||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.M.length)return WH(a,this.M[0],b)};
f.Qk=function(){return null};
f.Kb=function(){return this.o};
f.af=function(){return this.D?this.D.toString():null};
f.Tk=function(a){return a.getVideoUrl(this.sb().videoId,this.af())};
f.T=function(){this.G=null;Nb(this.A);Qx.N.T.call(this)};A(ay,R);f=ay.prototype;f.ji=function(){this.G&&(this.J.stop(),this.ya(this.H),this.H=null,this.G.close(),this.G=null)};
f.bq=function(){this.ob(UL(this.D))};
f.wB=function(){window.focus();this.ji()};
f.lk=function(){var a=Math.min(At()-this.K,1E4),a=Math.min(a/1E4,1);this.L.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.A&&this.A.start()};
f.select=function(a){var b=this.D.V();if(b.experiments.ga("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;eM(this.D,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.F.sb(),this.ji(),this.G=new window.Notification(P("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.gc(b)}),this.H=S(this,this.G,"click",this.wB),this.J.start())}cy(this);b=this.F.sb().videoId;
L9(this.D.app,b,a?this.F.Ob:this.F.fa,this.F.af())};
f.DB=function(a){!Ol(a)&&Yx(a)&&(this.select(),Nl(a))};
f.cq=function(a){Nl(a);fM(this.D,"autonavcancel");WL(this.D,!0)};
f.HH=function(a){120<Jl(a).naturalWidth&&L(this.element,"ytp-moving-thumbnail-loaded")};
f.T=function(){cy(this);this.ji();ay.N.T.call(this)};A(oy,R);f=oy.prototype;f.Yf=function(){var a=this.D.sb().videoId;L9(this.A.app,a,this.D.fa,this.D.af())};
f.zF=function(a){jy(a,this.A,!this.A.Oa()&&this.G)&&this.Yf()};
f.BF=function(){this.ya(this.F);this.F=null;py(this)};
f.AF=function(a){switch(a.keyCode){case 13:case 32:Ol(a)||(this.Yf(),Nl(a))}};
f.CF=function(a){120<Jl(a).naturalWidth&&L(this.element,"ytp-videowall-moving-thumbnail-loaded")};A(qy,Dq);qy.o=2;f=qy.prototype;f.create=function(){qy.N.create.call(this);var a=this.A.getVideoData();a&&(this.D=a.H);this.te();T(this.K,this.A,"resize",this.te);T(this.K,this.A,"videodatachange",this.yF);T(this.K,this.A,"autonavchange",this.As);T(this.K,this.A,"autonavcancel",this.mx)};
f.destroy=function(){ur(this.K);Nb(this.G);this.D=[];this.G=[];qy.N.destroy.call(this);$d(this.element,"ytp-show-tiles");this.P.stop()};
f.Xh=function(){return 1!=this.A.getVideoData().autonavState};
f.show=function(){qy.N.show.call(this);this.A.V().isMobile?Vd(this.P):this.P.start();(this.M||this.H&&this.H!=this.A.getVideoData().clientPlaybackNonce)&&WL(this.A,!1);var a=ry(this.A.V(),this.A.getVideoData(),this.A.Zb()),b=!this.H&&this.Xh()&&a;a&&this.A.V().experiments.ga("ui_logging")&&this.Z.log({cancelButtonShow:b?"1":"0",state:this.Xh()?"enabled":"disabled"});b?2==this.A.getVideoData().autonavState?by(this.F):3==this.A.getVideoData().autonavState&&dy(this.F):WL(this.A,!0);vy(this)};
f.ha=function(){qy.N.ha.call(this);dy(this.F);vy(this)};
f.uC=function(a){Jl(a)==this.element&&this.te()};
f.te=function(){if(this.D&&this.D.length){var a=this.A.V(),b=a.experiments.ga("video_wall_moving_thumbnails_autoplay"),c=a.experiments.ga("video_wall_storyboards_mouse_x"),d=a.experiments.ga("video_wall_moving_thumbnails_first"),e=a.experiments.ga("video_wall_moving_thumbnails_hover"),h=a.experiments.ga("video_wall_pagination"),k=a.experiments.ga("video_wall_redesign");h&&L(this.element,"ytp-endscreen-paginate");var l=ar(this.element),m=96,n=54;k&&!d&&(m=144,n=81);var t=l.width/l.height,u=m/n;!ky(a)||
this.A.Oa()||k||(m*=.9,n*=.9);var x=a=0,B=Math.max(l.width/m,2),D=Math.max(l.height/n,2);if(b||c)B=Math.min(B,4),D=Math.min(D,4);for(var c=this.D.length,I=Math.pow(qy.o,2),z=c*I,Q=ty(this,0,D),Na=ty(this,1,D),z=z+(Math.pow(Q,2)-I),z=z+(Math.pow(Na,2)-I);0<z&&(a<B||x<D);){var va=a/qy.o,Va=x/qy.o,vb=a<=B-qy.o&&z>=Va*I,Sd=x<=D-qy.o&&z>=va*I;if(va/Va*u>t&&Sd)z-=va*I,x+=qy.o;else if(vb)z-=Va*I,a+=qy.o;else if(Sd)z-=va*I,x+=qy.o;else break}u=!1;B=qy.o+Q;z>=3*I&&6>=c*I-z&&(x>=B||a>=B)&&Na<=qy.o&&(u=!0);
m*=a;n*=x;I=1;I=m/n<t?l.height/n:l.width/m;t=k?2:1.42;b&&(t=4);I=Math.min(I,t);m*=I;n*=I;b=k?1:1.21;m*=je(l.width/m||1,1,b);n*=je(l.height/n||1,1,b);m=Math.floor(Math.min(l.width,m));n=Math.floor(Math.min(l.height,n));l=this.O.element;Zq(l,m,n);Iq(l,{marginLeft:m/-2+"px",marginTop:n/-2+"px"});b=this.F;t=Zx(this.D[0]);b.F=t;$d(b.element,"ytp-moving-thumbnail-loaded");$x(b,t,b.D.V(),"hqdefault.jpg");M(this.element,"ytp-endscreen-takeover",sy(this));vy(this);k=k?4:1;b=m+k;n+=k;t=0;m=!sy(this);I=!1;for(z=
0;z<a;z++)for(B=0;B<x;B++)if(D=Na>qy.o&&1<=t&&!I?t+1:t,Va=0,u&&z>=a-qy.o&&B>=x-qy.o?Va=1:0==B%qy.o&&0==z%qy.o&&(B<Q&&z<Q?0==B&&0==z&&(Va=Q):Na>qy.o&&B>=x-Na&&z>=a-Na?B==x-Na&&z==a-Na&&(I=!0,D=1,Va=Na):Va=qy.o),D=ke(D+this.J,c),0!=Va){va=this.G[t];va||(va=new oy(this.A),this.G[t]=va,l.appendChild(va.element));var vb=Math.floor(n*B/x),Sd=Math.floor(b*z/a),$p=Math.floor(n*(B+Va)/x)-vb-k,om=Math.floor(b*(z+Va)/a)-Sd-k;Oq(va.element,Sd,vb);Zq(va.element,om,$p);Iq(va.element,"transitionDelay",(B+z)/20+
"s");M(va.element,"videowall-still-mini",1==Va);M(va.element,"videowall-still-large",2<Va);D=Zx(this.D[D]);Va=m&&(d?0==t:!e);va.D=D;vb=va.A.V();$x(va,D,vb,Xd(va.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");$d(va.element,"ytp-videowall-moving-thumbnail-loaded");va.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});Va?(L(va.element,"ytp-videowall-active"),py(va)):vb.experiments.ga("video_wall_moving_thumbnails_hover")&&!va.F&&
(va.F=va.R("mouseover",va.BF));t++}h&&M(this.element,"ytp-endscreen-paginate",t<c);for(d=this.G.length-1;d>=t;d--)va=this.G[d],bh(va.element),Mb(va);this.G.length=t}};
qy.B=1.42;qy.A=1.21;f=qy.prototype;f.yF=function(){var a=this.A.getVideoData().H;this.D!=a&&(this.J=0,this.D=a,this.te())};
f.mA=function(){this.J+=this.G.length;this.te()};
f.nA=function(){this.J-=this.G.length;this.te()};
f.As=function(a){1==a?(this.M=!1,this.H=this.A.getVideoData().clientPlaybackNonce,cy(this.F),this.B&&this.te()):(this.M=!0,this.B&&sy(this)&&(2==a?by(this.F):3==a&&dy(this.F)))};
f.mx=function(a){a?this.As(1):(this.H=null,this.M=!1);this.te()};A(yy,jq);f=yy.prototype;f.Xa=function(a){return Ay(a)};
f.create=function(){yy.N.create.call(this);Dy(this);this.o.getVideoData().subscribe("dataupdated",this.Tq,this)};
f.destroy=function(){this.o.getVideoData().Ha("dataupdated",this.Tq,this);mq(this);this.A.L&&this.A.destroy();yy.N.destroy.call(this)};
f.load=function(){yy.N.load.call(this);this.A.show();this.o.V().aa&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
f.unload=function(){yy.N.unload.call(this);this.A.ha()};
f.Wb=function(a){yy.N.Wb.call(this,a);Cy(this)&&(this.A.L||this.A.create(),"load"==a.getId()&&this.load())};
f.jc=function(a){"load"==a.getId()&&this.loaded&&this.unload();yy.N.jc.call(this,a)};
f.Tq=function(){mq(this);Dy(this)};var mL={pI:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",wI:"ERROR_AUTHENTICATION_EXPIRED",xI:"ERROR_AUTHENTICATION_MALFORMED",yI:"ERROR_AUTHENTICATION_MISSING",EI:"ERROR_BAD_REQUEST",TI:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",bJ:"ERROR_CGI_PARAMS_MALFORMED",cJ:"ERROR_CGI_PARAMS_MISSING",yJ:"YTP_DEVICE_FALLBACK",TJ:"YTP_ERROR_LICENSE",YJ:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",bK:"YTP_ERROR_FORMAT_UNAVALIABLE",cK:"YTP_ERROR_GEO_FAILURE",pK:"YTP_ERROR_GENERIC_WITHOUT_LINK",rK:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
qK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",HK:"YTP_ERROR_INVALID_DRM_MESSAGE",NK:"LEARN_MORE",ML:"YTP_ERROR_NOT_SIGNED_IN",rM:"YTP_ERROR_PURCHASE_NOT_FOUND",sM:"YTP_ERROR_PURCHASE_REFUNDED",xM:"YTP_ERROR_RENTAL_EXPIRED",XI:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",YI:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",$I:"YTP_ERROR_CAST_TOKEN_FAILED",ZI:"YTP_ERROR_CAST_TOKEN_EXPIRED",aJ:"YTP_ERROR_CAST_TOKEN_MALFORMED",SERVER_ERROR:"YTP_ERROR_SERVER_ERROR",aN:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",cN:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
dN:"YTP_ERROR_STREAMING_NOT_ALLOWED",eN:"YTP_ERROR_STREAMING_UNAVAILABLE",EM:"YTP_ERROR_RETRYABLE_ERROR",pN:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",oN:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",EN:"YTP_ERROR_UNSUPPORTED_DEVICE",FN:"YTP_ERROR_UNUSUAL_ACTIVITY",NN:"YTP_ERROR_VIDEO_FORBIDDEN",ON:"YTP_ERROR_VIDEO_NOT_FOUND"},Fy={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",
305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",
5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var EH={gI:"adunit",xJ:"detailpage",QJ:"embedded",MK:"leanback",oM:"profilepage"};var Oy=kH&&4>jx?.1:0,tha=new Ny;f=Ny.prototype;f.gf=null;f.getCurrentTime=function(){return this.currentTime||0};
f.pauseVideo=function(){this.pause()};
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};
f.mute=function(){this.muted=!0};
f.unMute=function(){this.muted=!1};
f.vw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};
f.xw=function(){};Qy.prototype.ib=function(){return U(this,8)&&!U(this,64)&&!U(this,2)};var Nz=[1,2,3,4,5],Lz={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};A(cz,Gj);cz.prototype.C=function(){this.A.isActive()&&Vd(this.A)};
cz.prototype.D=function(){var a={headers:{"Content-Type":"application/json"},Pc:{alt:"json",key:this.G},postBody:this.H,format:"JSON",timeout:1E4,qb:y(this.K,this),onError:y(this.B,this),Hd:y(this.B,this)};this.F&&(a.headers["X-Goog-Visitor-Id"]=this.F);qj(this.J,a)};
cz.prototype.K=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.S("payload",a),this.o=7500+Math.floor(15E3*Math.random()),this.A.start(this.o)):this.B())};
cz.prototype.B=function(){this.isDisposed()||(this.S("error"),192E4>this.o&&(this.o*=2),this.A.start(this.o))};A(dz,R);dz.prototype.D=function(a){if(!Yx(a)||this.A.V().experiments.ga("disable_fresca_video_navigation"))jy(a,this.A,!0);else{var b=a.currentTarget.getAttribute("href");L9(this.A.app,b.substring(b.length-11),void 0,void 0);Nl(a)}};A(ez,R);f=ez.prototype;f.Cz=function(a){if(!Yx(a)||this.D.V().experiments.ga("disable_fresca_video_navigation"))jy(a,this.D,!0);else{var b=a.currentTarget.getAttribute("href");L9(this.D.app,b.substring(b.length-11),void 0,void 0);Nl(a)}};
f.kA=function(){this.F=!0;this.ha()};
f.show=function(){var a=!this.B;ez.N.show.call(this);a&&Rz(this.D)};
f.ha=function(){var a=this.B;ez.N.ha.call(this);a&&Rz(this.D)};
f.T=function(){Nb(this.A);ez.N.T.call(this)};A(jz,R);jz.prototype.J=function(a){var b;b=this.A;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;M(this.element,"ytp-fresca-inline-countdown",b&&!0);M(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.A.startTime-Math.floor(K()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.H)){this.H=a;nz(this,this.A,!0);return}kz(this.A)||this.C("countdown",oz(this.A.startTime));ti(this.G);this.G=ri(y(this.J,this),1E3)}};
jz.prototype.T=function(){ti(this.G);jz.N.T.call(this)};var xz;
xz={Mu:["BC","AD"],Lu:["Before Christ","Anno Domini"],vv:"JFMAMJJASOND".split(""),Pv:"JFMAMJJASOND".split(""),Jn:"January February March April May June July August September October November December".split(" "),Nn:"January February March April May June July August September October November December".split(" "),Ln:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),On:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Vn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Qn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Mn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Pn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),o:"SMTWTFS".split(""),Qv:"SMTWTFS".split(""),Jv:["Q1","Q2","Q3","Q4"],Cv:["1st quarter","2nd quarter","3rd quarter","4th quarter"],En:["AM","PM"],$j:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Tn:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Hu:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],bk:6,Zv:[5,6],ck:5};pz.prototype.equals=function(a){return a.F==this.F&&a.D==this.D&&a.o==this.o&&a.A==this.A&&a.B==this.B&&a.C==this.C};
pz.prototype.clone=function(){return new pz(this.F,this.D,this.o,this.A,this.B,this.C)};
pz.prototype.times=function(a){return new pz(this.F*a,this.D*a,this.o*a,this.A*a,this.B*a,this.C*a)};
f=sz.prototype;f.Do=xz.bk;f.Eo=xz.ck;f.clone=function(){var a=new sz(this.date);a.Do=this.Do;a.Eo=this.Eo;return a};
f.getFullYear=function(){return this.date.getFullYear()};
f.getMonth=function(){return this.date.getMonth()};
f.getDate=function(){return this.date.getDate()};
f.getTime=function(){return this.date.getTime()};
f.getDay=function(){return this.date.getDay()};
f.getUTCFullYear=function(){return this.date.getUTCFullYear()};
f.getUTCMonth=function(){return this.date.getUTCMonth()};
f.getUTCDate=function(){return this.date.getUTCDate()};
f.getUTCHours=function(){return this.date.getUTCHours()};
f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
f.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
f.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
f.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1,2),Pa(this.getDate(),2)].join("")+""};
f.valueOf=function(){return this.date.valueOf()};var Dz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Az.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.B-wz(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],h=0;h<this.A.length;++h){var k=this.A[h].text;1==this.A[h].type?c.push(Gz(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var Cz=!1;Hz.prototype.isLive=function(){return"LIVE"==this.A};
Hz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.A};
Hz.prototype.getVideoUrl=function(){return this.F};Kz.prototype.o=function(){return this.C};
Kz.prototype.getMessage=function(){return this.messageText.length?this.messageText:Mz(this)};
Kz.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.o()==a.o()&&this.imageUrl==a.imageUrl&&Gb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};A(Oz,jq);f=Oz.prototype;f.Xa=function(){return Fx(this.o.getVideoData(),"fresca_module")};
f.create=function(a){Oz.N.create.call(this);var b=this.o.V();pw(St(),"application/x-mpegURL")||ww()?(this.J=this.B=!1,this.K&&(this.D=new jz(this.o),qr(this.o,this.D.element,4)),this.C=a||null,this.C||(a=this.o.getVideoData(),this.C=new cz(a.videoId,a.visitorData||pi("VISITOR_DATA",""),b.Ae)),this.C.subscribe("payload",this.SB,this),this.C.subscribe("error",this.Bq,this),this.o.addEventListener("presentingplayerstatechange",this.xs,this)):bL(this.o.app.A,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};
f.destroy=function(){this.o.removeEventListener("presentingplayerstatechange",this.xs,this);Nb(this.C,this.D);Oz.N.destroy.call(this)};
f.xs=function(a){this.A&&(this.J=U(a.state,2),az(Pz(this.o))&&this.C.C(),Sz(this,this.A))};
f.Bq=function(){if(!this.B){var a=this.o.getVideoData();a.hlsvp||a.G?this.o.V().experiments.ga("disable_fresca_error_fallback")||(this.B=!0,nq(this)):(Uz(this,new Kz(this.o.getVideoData().isLiveDefaultBroadcast)),Sz(this,this.A))}};
f.SB=function(a){if(!a||a.error)this.Bq();else{var b=this.A?this.A.broadcastId:"",c=this.o.getVideoData();Uz(this,new Kz(c.isLiveDefaultBroadcast,a));this.G=this.G||c.isLiveDefaultBroadcast&&""!=b&&b!=this.A.broadcastId;6!=this.A.state||(c.hlsvp||c.G)&&!this.G?Sz(this,this.A):(this.G=!1,this.o.cn(c.videoId))}};var Wz=Rg&&Vz();aA.prototype.R=function(a,b,c,d){c=y(c,d||this.A);a=Dl(a,b,c);this.o.push(a);return a};
aA.prototype.ya=function(a){El(a);pb(this.o,a)};
aA.prototype.removeAll=function(){El(this.o);this.o.length=0};A(dA,G);f=dA.prototype;f.start=function(){this.stop();this.C=!1;var a=eA(this),b=fA(this);a&&!b&&this.A.mozRequestAnimationFrame?(this.o=Nc(this.A,"MozBeforePaint",this.B),this.A.mozRequestAnimationFrame(null),this.C=!0):this.o=a&&b?a.call(this.A,this.B):this.A.setTimeout(hd(this.B),20)};
f.stop=function(){if(this.isActive()){var a=eA(this),b=fA(this);a&&!b&&this.A.mozRequestAnimationFrame?Zc(this.o):a&&b?b.call(this.A,this.o):this.A.clearTimeout(this.o)}this.o=null};
f.isActive=function(){return null!=this.o};
f.jx=function(){this.C&&this.o&&Zc(this.o);this.o=null;this.F.call(this.D,K())};
f.T=function(){this.stop();dA.N.T.call(this)};var gA={},hA=null;A(mA,J);f=mA.prototype;f.ib=function(){return 1==this.o};
f.Yi=function(){this.uc("begin")};
f.Yg=function(){this.uc("end")};
f.Xb=function(){this.uc("finish")};
f.uc=function(a){this.$(a)};A(nA,mA);f=nA.prototype;f.play=function(a){if(a||0==this.o)this.progress=0,this.A=this.B;else if(this.ib())return!1;iA(this);this.startTime=a=K();-1==this.o&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.progress||this.Yi();this.uc("play");-1==this.o&&this.uc("resume");this.o=1;var b=ma(this);b in gA||(gA[b]=this);kA();lA(this,a);return!0};
f.stop=function(a){iA(this);this.o=0;a&&(this.progress=1);oA(this,this.progress);this.uc("stop");this.Yg()};
f.pause=function(){this.ib()&&(iA(this),this.o=-1,this.uc("pause"))};
f.T=function(){0==this.o||this.stop(!1);this.uc("destroy");nA.N.T.call(this)};
f.destroy=function(){this.dispose()};
f.Ul=function(){this.uc("animate")};
f.uc=function(a){this.$(new pA(a,this))};
A(pA,jc);sA.prototype.A=bg;A(zA,G);f=zA.prototype;f.bb=function(a){this.Ld();var b=this.o;if(1<a.length&&a.length>b.o.length)b.o=b.o.concat(a),b.o.sort(b.A);else for(var c=0;c<a.length;c++){var d=a[c];!b.o.length||0<b.A(d,b.o[b.o.length-1])?b.o.push(d):Hb(b.o,d,b.A)}this.B=window.NaN;this.Ld()};
f.sh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.A.indexOf(c);0<=d&&this.A.splice(d,1);var e=this.o,d=e.o,c=Ab(d,c,e.A);0<=c&&ob(d,c)}}this.Ld()};
f.gg=function(){this.C=!0;this.Ld()};
f.reset=function(){this.C=this.G=!1;this.D.stop();this.o.o=[];this.A=[];this.Ld();this.F=null};
f.Ld=function(){this.H=!0;if(!this.J){for(var a=3;this.H&&a;){this.H=!1;this.J=!0;if(this.C&&!this.G){this.D.stop();var b=this.K();U(b,32)&&this.M.start();for(var c=U(this.K(),2)?0x8000000000000:1E3*this.O(),d=U(b,2),e=[],h=[],k=0;k<this.A.length;k++){var l=this.A[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&h.push(l)}e=e.concat(BA(this,h));h=void 0;if(d)h=vA(this.o,0x7ffffffffffff),h=h.concat(xA(this.o));else{if(this.B<=c&&b.ib()&&!U(b,16)&&!U(b,32)){b=this.o;d=c;h=[];for(k=wA(b,this.B);k<
b.o.length&&!(l=b.o[k],(l.end<=d||l.contains(d))&&h.push(l),l.start>d);++k);b=h}else b=vA(this.o,c);h=b}e=e.concat(AA(this,h));this.B=c;!this.G&&this.F&&(this.F=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.A&&hq(d).S("onEnter",d),this.L("crn_"+d.o,d)):(d.A&&hq(d).S("onExit",d),this.L("crx_"+d.o,d))}this.J=!1;a--}this.K().ib()&&(a=yA(this.o,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.P(),this.D.start(a)))}};
f.T=function(){this.F=this.o=this.A=null;zA.N.T.call(this)};var QA={tJ:"current",LL:"new"};aB.prototype.update=function(){var a=this.A.A()||0,b=tB(this.A);if(a!=this.o||eB(this,a,b)){if(a<this.o||a-this.o>b-this.D+.5||eB(this,a,b))bB(this),this.B=a;this.D=b;this.o=a}};fB.prototype.A=function(){return{ps:this.o.o,el:this.o.Aa}};
fB.prototype.send=function(){if(!this.B){var a;a=this.A();a=ff(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.o&&this.videoData.visitorData&&ij(a)?pj(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):Xp(a);this.B=!0}};A(gB,fB);
gB.prototype.A=function(){var a=gB.N.A.call(this);qa(a,this.o.A);qa(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.o.W,framer:this.o.ze,list:this.videoData.Wa||this.videoData.playlistId,w:je(this.videoData.Cj/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:cB(this.C),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Ee});this.o.adFormat&&(a.adformat=this.o.adFormat);var b;
(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.o.experiments.ga("legacy_autoplay_flag")?this.o.K:this.videoData.Lc)a.autoplay="1";this.o.Bb&&(a.authuser=this.o.Bb);this.o.pageId&&(a.pageid=this.o.pageId);this.videoData.ng&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);qa(a,gB.N.A.call(this));qa(a,this.o.A);return a};A(hB,G);var DB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};f=hB.prototype;
f.gj=function(a){a=0<=a?a:tB(this.o);var b=this.o.F();if(!(0,window.isNaN)(this.Y)&&!(0,window.isNaN)(b.B)){var c=b.B-this.Y;0<c&&iB(this,a,"bwm",[c,(b.F-this.aa).toFixed(3)])}this.Y=b.B;this.aa=b.F;(0,window.isNaN)(b.o)||iB(this,a,"bwe",[b.o.toFixed(0)]);(0,window.isNaN)(b.A)||(c=b.A,b.C<c&&(c=b.C),this.O!=c&&(iB(this,a,"bh",[c.toFixed(3)]),this.O=c),this.o.o.experiments.A&&3>c&&("PL"==this.A||"B"==this.A)&&this.G.start());this.C&&iB(this,a,"bat",[this.C.level,this.C.charging?"1":"0"]);c=SK(this.o.o);
this.Z!=c&&(iB(this,a,"vis",[c]),this.Z=c);iB(this,a,"cmt",[this.o.A()]);0<b.D&&iB(this,a,"e2el",[b.D,b.H.toFixed(3),b.G.toFixed(3),b.K.toFixed(3),b.J.toFixed(3)]);null!==this.o.videoData.ek&&(this.B.acc=[this.o.videoData.ek.join(":")])};
f.eh=function(a){if(!this.isDisposed()&&!ac(this.B)){a=0<=a?a:tB(this.o);this.G.isActive()||this.gj(a);var b=XH(this.o.o),c=b.droppedVideoFrames,d=c-this.U;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&iB(this,a,"df",[d]);this.U=c;a=jB(this);hc(a,this.o.o.A);a=ff(this.o.o.od,a);for(var e in this.B)a+="&"+e+"="+this.B[e].join(",");Xp(a);this.B={};this.F.start()}};
f.gg=function(){iB(this,tB(this.o),"vps",["N"]);this.o.videoData.Ma&&lB(this,"preload");this.o.videoData.Kl&&lB(this,"reload");this.o.videoData.Pf&&lB(this,"monitor");this.o.videoData.Ga&&lB(this,"live");this.P=si(y(this.eh,this),1E4);this.F.start()};
f.vr=function(){this.o.videoData.J&&lB(this,"drm-"+this.o.videoData.J.o)};
f.onError=function(a,b){var c=tB(this.o);kB(this,c,a,b);this.gj(c)};
f.VA=function(){var a=tB(this.o);"PL"==this.A&&(iB(this,a,"vps",[this.A]),this.eh(a))};
f.T=function(){hB.N.T.call(this);ui(this.P)};nB.prototype.send=function(a){if(!this.U){var b=rB(this),b=ff(this.Z,b);if(this.F)this.L&&(a={method:"POST",Gb:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),pj(b,a));else{var c=oB(this,a);c?pj(b,c):Xp(b,a)}this.U=!0}};
nB.prototype.o=function(a){return(1*a.toFixed(3)).toString()};A(sB,G);f=sB.prototype;f.EA=function(a,b){if(!this.isDisposed()){this.G=window.NaN;this.A.update();var c=dB(this.A),d=xB(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=uB(this,!0,a));d.send();this.K++}};
f.gg=function(){this.B.gg()};
f.onError=function(a,b){this.B.onError(a,b)};
f.kj=function(a){var b=this.o.o,c=this.o.videoData,d={ns:b.ea,el:b.Aa,eurl:b.W,fmt:c.B?c.B.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.o.A(),video_id:c.videoId,metric:a};if(b.experiments.ga("legacy_autoplay_flag")?b.K:c.Lc)d.autoplay="1";"heartbeat"==a&&(d.tpmt=cB(this.A));qa(d,b.A);zB(this,ff("//www.youtube.com/live_204",d))};
f.T=function(){sB.N.T.call(this);ti(this.G);this.G=window.NaN;var a=this.A;ui(a.F);a.F=window.NaN};GB.prototype.cb=function(a,b){eM(this.ca,"iv",a,b)};f=PB.prototype;f.mj=function(){this.context.C.subscribe("resize",this.Zh,this)};
f.la=function(){return this.Ka};
f.dg=function(a,b,c,d,e,h){this.context.o.R(a,"click",pa(this.Si,b,c,d,e||[],h||0),this);this.context.o.R(a,"touchstart",pa(function(){this.Nm=!1}),this);
this.context.o.R(a,"touchmove",pa(function(){this.Nm=!0}),this)};
f.Si=function(a,b,c,d,e,h){if(this.Nm)return!1;h&&(h.stopPropagation(),h.preventDefault());(b=YA(a,b,this.context.videoData.videoId))&&SB(this,b,ZA(b,a.target),c,d,e,a.bj);return!1};
f.show=function(){this.K=K()};
f.ha=function(){};
f.destroy=function(){bh(this.la())};
f.Zh=function(){};A(TB,R);f=TB.prototype;f.EG=function(a){this.D&&kh(this.D.element,Jl(a))||(this.F&&this.F.yk?this.lq(this.F):(this.Eh(),Fi("iv-teaser-clicked",!!this.A),this.ca.qg(!0)))};
f.CG=function(){Fi("iv-teaser-mouseover");this.A.stop()};
f.DG=function(){$d(this.element,"ytp-cards-auto-open-hover-card")};
f.oC=function(a){this.A||!a||gM(this.ca)||this.H&&this.H.isActive()||(this.F=a.Di,XB(this,a),Fi("iv-teaser-shown"))};
f.lq=function(a){a.bj&&this.ca.pauseVideo();gy(a.Yq,void 0);hy(a.Yq,a.target);Fi("iv-hover-card-clicked")};
f.ly=function(){L(this.element,"ytp-hover-card-active")};
f.my=function(){$d(this.element,"ytp-hover-card-active")};
f.Mt=function(){this.L.stop();this.A&&this.A.isActive()&&this.M.start()};
f.ee=function(){this.M.stop();this.A&&!this.A.isActive()&&this.L.start()};
f.qB=function(){this.A&&this.A.stop()};
f.oB=function(){this.Eh()};
f.Eh=function(){!this.A||this.J&&this.J.isActive()||(this.D&&(xq(this.D),this.D=null),this.F=null,this.K.ha(),$d(this.ca.Da(),"ytp-cards-teaser-shown"),$d(this.ca.Da(),"ytp-cards-button-teaser-merge"),$d(this.element,"ytp-cards-combined-teaser"),this.J=new Ud(function(){for(var a=0;a<this.G.length;a++)this.ya(this.G[a]);this.G=[];this.A&&(this.A.dispose(),this.A=null);WB(this.P,!0)},330,this),this.J.start())};
f.T=function(){var a=this.ca.Da();a&&$d(a,"ytp-cards-teaser-shown");Nb(this.H,this.J,this.A,this.D,this.F);TB.N.T.call(this)};A(ZB,YB);A($B,YB);A(aC,$B);var Uha=!Rg;bC.prototype.A=function(a,b){var c=sh(b.target,"label");c&&M(c,"iv-card-poll-choice-focused",a)};
bC.prototype.G=function(a,b){var c=th(b.target,"iv-card-poll");if(c)if(a.B)Mg("iv-card-sign-in-button",c).click();else{var d=window.parseInt,e;e=b.target;e=Uha&&e.dataset?"pollChoiceIndex"in e.dataset?e.dataset.pollChoiceIndex:null:e.getAttribute("data-"+"pollChoiceIndex".replace(/([A-Z])/g,"-$1").toLowerCase());d=d(e,10);null==a.A?(a.choices[d].count++,a.A=d):a.A!=d?(e=a.choices[a.A],e.count=Math.max(e.count-1,0),a.choices[d].count++,a.A=d):(e=a.choices[a.A],e.count=Math.max(e.count-1,0),a.A=null);
dC(a,c);qj(this.o.videoData.qf,{Pc:{action_poll_vote:1},Gb:{poll_id:a.id,index:d,session_token:a.F}});c={};c["link-id"]=d;LB(this.o.logger,a.Ta,void 0,c,a.o.click,5)}};
bC.prototype.F=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.H,a.C));nC(this,a,!0,b)};
bC.prototype.H=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.H,a.C,a.J));nC(this,a,!1,b)};A(pC,YB);A(qC,YB);A(sC,$B);A(tC,$B);A(uC,YB);A(vC,YB);A(xC,PB);f=xC.prototype;f.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.ca.Da())?(a=ar(a),a=177<a.width&&177<a.height):a=!1;return a};
f.dw=function(){this.U&&BC(this)};
f.Kw=function(){(this.U=this.D)&&CC(this)};
f.EF=function(){wC(this,"product_listing_ads_cards_drawer_auto_open")&&!IC(this)||BC(this)};
f.mw=function(){CC(this)};
f.JA=function(a){if(Xd(this.B,"ytp-drawer-peek")){var b=Mg("iv-drawer-close-button",this.B);kh(b,Jl(a))||BC(this)}};
f.Zh=function(){var a=this.isAvailable();dr(this.la(),a);M(this.context.A.Da(),"ytp-iv-drawer-enabled",a);a&&(this.P||(NB(this.context.logger,11),this.P=!0),F(this.A,function(a){a.Pp||(a.Pp=!0,OB(this.context.logger,11,a.Sa.Ta))},this));
AC(this.ca)};
f.destroy=function(){hM(this.ca,!1);this.ca.Da().removeChild(this.B);Ei(this.G);El(this.W);this.J&&this.J.dispose();this.F&&this.F.dispose();xC.N.destroy.call(this)};
var zF={adspaycreator:$B,associated:$B,associated:$B,collaborator:ZB,donation:aC,episode:vC,fundraising:$B,location:$B,merch:$B,movie:vC,playlist:pC,poll:qC,product:$B,productListing:sC,simple:$B,tip:tC,video:uC};f=xC.prototype;f.FF=function(a){this.qk.start();a.preventDefault();if(a=Ql(a||window.event,!1))this.Ec.scrollTop+=a};
f.km=function(a,b){if(!Xd(this.ca.Da(),"ytp-cards-teaser-shown")){this.o!=a&&(this.o=a);if(er(this.la())){var c;(c=b)||(2==this.context.A.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.A.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.A.getPlayerState():void 0,c=1==c||0==c&&0===this.context.A.getCurrentTime()));if(c&&a.Sa.teaserDurationMs){c=null;if("video"==a.Sa.type&&wC(this,"hover_card_for_video_card_teaser")){var d=a.Sa,e=d.url?YA(d.url,a.Sa.id,this.context.videoData.videoId,
this.context.B):null,h=e?ZA(e,d.url.target):null;e&&h&&(c={jO:d.id,title:d.title,Yq:e,target:"current"==h?"_top":void 0,bj:d.url.bj,imageUrl:d.B,videoDuration:d.videoDuration,Gd:d.Gd,yk:wC(this,"combined_teaser_link")})}hM(this.ca,!0,{teaserText:a.Sa.teaserText,durationMs:b?2E3:a.Sa.teaserDurationMs,Di:c,yz:wC(this,"merge_button_with_teaser"),pw:b&&wC(this,"hover_card_on_button_hover")})}}this.O.isActive()||((!this.D||!this.qk.isActive()&&this.Qi)&&GC(this,a),this.O.start(910+a.Sa.teaserDurationMs))}};
f.AD=function(){this.o&&this.km(this.o,!0)};
f.sD=function(a){this.D||(this.o=a,GC(this,a),BC(this,!1,a))};
f.zw=function(){this.D&&(NB(this.context.logger,4,HC(this).o.close),CC(this))};
f.Ow=function(){M(this.B,"iv-drawer-scrolled",0<this.Ec.scrollTop)};
f.xz=function(){var a=HC(this);OB(this.context.logger,8,a.Ta,a.o.FD)};
f.wz=function(){var a=this.o;OB(this.context.logger,13,a.Sa.Ta,void 0);var b=wC(this,"hover_card_for_video_card_teaser");"video"==a.Sa.type&&b&&(a=this.o,a.Ui||(a.Ui=!0,KB(this.context.logger,a.Sa.Ta,a.Sa.o.xp)))};
f.uz=function(){var a=this.o.Sa;LB(this.context.logger,a.Ta,void 0,void 0,a.o.click,5)};
f.vz=function(a){var b=HC(this);this.o?a?(a=this.context.logger,OB(a,9,b.Ta,b.o.xm)):(a=this.context.logger,OB(a,12,b.Ta,b.o.xm)):(a=this.context.logger,NB(a,12,b.o.xm));a.ca.pg(4,void 0)};var LC=/#(.)(.)(.)/,KC=/^#(?:[0-9a-f]{3}){1,2}$/i;A(NC,nA);NC.prototype.C=v;NC.prototype.Ul=function(){this.C();NC.N.Ul.call(this)};
NC.prototype.Yg=function(){this.C();NC.N.Yg.call(this)};
NC.prototype.Yi=function(){this.C();NC.N.Yi.call(this)};
A(OC,NC);OC.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};A(PC,PB);PC.prototype.mj=function(){PC.N.mj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&QB(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ha)};A(QC,PC);QC.prototype.J=function(a,b,c,d){this.A.stop();if(!this.B){var e=ar(a);Yq(a,e.width);Yq(b,e.width);Oq(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;dr(a,!0);this.D=new Ud(function(){L(this.la(),"iv-branding-active")},0,this);
this.D.start()}};
QC.prototype.H=function(a,b){$d(this.la(),"iv-branding-active");this.F=new Ud(function(){dr(a,!1);Yq(b,0)},250);
this.F.start();this.B=!1};
QC.prototype.show=function(){if(!this.isActive){QC.N.show.call(this);if(!this.G){L(this.la(),"iv-branding");var a=this.annotation.data;this.C=a.image_width;this.o=O("img",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});dr(this.o,!1);var b=O("div","branding-img-container",this.o);this.la().appendChild(b);var c=O("div","iv-branding-context-name");mh(c,a.channel_name);var d=O("div","iv-branding-context-subscribe");this.annotation.C?Jf(d,this.annotation.C):
a.num_subscribers&&mh(d,a.num_subscribers);b=O("div","iv-branding-context-subscribe-caret");c=O("div","branding-context-container-inner",b,c,d);dr(c,!1);d=O("div","branding-context-container-outer",c);Iq(d,"right",this.C+"px");this.la().appendChild(d);this.dg(this.o,this.annotation.getUrl(),this.annotation.id,this.annotation.Ta);this.A=new Ud(pa(this.H,c,d),500,this);this.context.o.R(this.la(),"mouseover",y(this.J,this,c,d,b,a.image_height));this.context.o.R(this.la(),"mouseout",y(this.A.start,this.A));
this.G=!0}KB(this.context.logger,this.annotation.Ta);dr(this.la(),!0);this.isActive=!0;var a=this.o,e,b=br(a).width,c=ga(void 0)?void 0:b;e=e||0;Oq(a,c);e=new OC(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,qA);this.context.o.R(e,"begin",pa(dr,a,!0));e.play()}};
QC.prototype.ha=function(){this.isActive&&(dr(this.la(),!1),this.isActive=!1)};var TC={CLOSE:"close",SL:"openUrl",Rv:"subscribe"},UC={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",GM:"rollOut",Hv:"rollOver",Kv:"shown"};var dD={aO:"xx",bO:"xy",eO:"yx",fO:"yy"};A(iD,cD);var lD={pu:"anchored",vM:"rect",MM:"shapeless"};var qD={CLOSED:"closed",$L:"playerControlShow",Hv:"rollOver",Kv:"shown"};var xD={pu:"anchored",tu:"branding",eJ:"channel",sJ:"cta",nK:"highlightText",LK:"label",bM:"playlist",lM:"popup",WM:"speech",Rv:"subscribe",lN:"title",VIDEO:"video",UN:"vote",WN:"website"},wD={tu:"branding",VI:"card",mK:"highlight",IMAGE:"image",MARKER:"marker",pM:"promotion",TEXT:"text",YN:"widget"},yD={PN:"video_relative",aM:"player_relative"};vD.prototype.getUrl=function(){var a=DD(this,function(a){return"openUrl"==a.type&&null!=a.url});
return a?a.url:null};
vD.prototype.showLinkIcon=function(){return AD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};A(JD,PC);f=JD.prototype;f.show=function(){this.isActive||(JD.N.show.call(this),this.H||(KD(this),this.H=!0),dr(this.la(),!0),this.annotation&&this.annotation.Ta&&KB(this.context.logger,this.annotation.Ta),$d(this.la(),"iv-promo-inactive"),this.la().removeAttribute("aria-hidden"),this.isActive=!0,this.o&&(Td(this.o),this.o=null),MD(this),ND(this,this.F))};
f.ha=function(){this.isActive&&(L(this.la(),"iv-promo-inactive"),this.isActive=!1,this.la().setAttribute("aria-hidden",!0))};
f.Si=function(a,b,c,d,e,h){return this.C?!1:JD.N.Si.call(this,a,b,c,d,e,h)};
f.al=function(a,b){b.stopPropagation();MD(this);ND(this,a);this.Yb.focus()};
f.Cx=function(a){this.G=!0;this.al(500,a)};
f.Bx=function(){this.G=!1;LD(this)};
f.GF=function(a){a.stopPropagation();this.ha();MB(this.context.logger,this.annotation.Ta)};
f.destroy=function(){this.D.dispose();JD.N.destroy.call(this)};PD.prototype.C=function(a,b,c,d){this.o[a]=b?!c:c;a=Rb(this.o,function(a){return a});
this.A!=a&&(this.A=a,this.B.S(this.D,a,d))};f=RD.prototype;f.ha=function(){this.isVisible=!1;this.o&&(SD(this),this.o.ha())};
f.show=function(){this.isVisible=!0;this.o&&(this.o.show(),this.B.subscribe("resize",this.Cs,this),this.B.subscribe("onVideoAreaChange",this.Sq,this))};
f.destroy=function(){if(this.o){SD(this);var a=this.o;a.G.removeAll();a.Sl.dispose();a.J.dispose();a.A&&bh(a.A);a.B&&a.B.la()&&bh(a.B.la())}TD(this)};
f.Sq=function(){kF(this.o)};
f.Cs=function(){kF(this.o)};UD.prototype.clone=function(){return new UD(this.start,this.end)};A(WD,VD);XD.prototype.Vc=null;XD.prototype.Ub=null;XD.prototype.lh=!0;var $D=[2,2,6,6,0];f=XD.prototype;f.clear=function(){this.sa.length=0;this.za.length=0;this.tc.length=0;delete this.Vc;delete this.Ub;delete this.lh;return this};
f.vb=function(a){var b=cb(this.sa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.sa.push(1),this.za.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.tc.push(c,d)}this.za[this.za.length-1]+=b/2;this.Ub=[c,d]};
f.close=function(){var a=cb(this.sa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.sa.push(4),this.za.push(1),this.Ub=this.Vc);return this};
f.clone=function(){var a=new this.constructor;a.sa=this.sa.concat();a.za=this.za.concat();a.tc=this.tc.concat();a.Vc=this.Vc&&this.Vc.concat();a.Ub=this.Ub&&this.Ub.concat();a.lh=this.lh;return a};
f.transform=function(a){if(!this.lh)throw Error("Non-simple path");a.transform(this.tc,0,this.tc,0,this.tc.length/2);this.Vc&&a.transform(this.Vc,0,this.Vc,0,1);this.Ub&&this.Vc!=this.Ub&&a.transform(this.Ub,0,this.Ub,0,1);return this};
f.isEmpty=function(){return 0==this.sa.length};A(bE,VD);cE.prototype.getWidth=function(){return this.B};ba(dE);dE.prototype.o=0;A(eE,J);f=eE.prototype;f.qy=dE.getInstance();f.getId=function(){return this.U||(this.U=":"+(this.qy.o++).toString(36))};
f.la=function(){return this.o};
f.ag=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");eE.N.ag.call(this,a)};
f.Bi=function(){this.o=this.F.createElement("DIV")};
f.render=function(a){if(this.Jc)throw Error("Component already rendered");this.o||this.Bi();a?a.insertBefore(this.o,null):this.F.o.body.appendChild(this.o);this.D&&!this.D.Jc||this.wf()};
f.wf=function(){this.Jc=!0;fE(this,function(a){!a.Jc&&a.la()&&a.wf()})};
f.Hg=function(){fE(this,function(a){a.Jc&&a.Hg()});
this.G&&this.G.removeAll();this.Jc=!1};
f.T=function(){this.Jc&&this.Hg();this.G&&(this.G.dispose(),delete this.G);fE(this,function(a){a.dispose()});
this.o&&bh(this.o);this.D=this.o=this.H=this.L=null;eE.N.T.call(this)};
f.Sd=function(){return this.o};
f.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.H&&c?dc(this.H,c)||null:null;if(c&&a){cc(this.H,c);pb(this.L,a);b&&(a.Hg(),a.o&&bh(a.o));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;eE.N.ag.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};A(gE,eE);gE.prototype.A=null;gE.prototype.Af=function(){return this.Jc?ar(this.la()):ga(this.width)&&ga(this.height)?new te(this.width,this.height):null};
gE.prototype.drawText=function(a,b,c,d,e,h,k,l,m,n,t){var u=l.size/2;c="bottom"==k?c+e-u:"center"==k?c+e/2:c+u;e=b+d;d=Math.round(ke(180*Math.atan2(c-c,e-b)/Math.PI,360));e-=b;k=c-c;e=Math.round(Math.sqrt(e*e+k*k));u=l.size;k={"font-family":l.family,"font-size":u};var u=Math.round(c-u/2+Math.round(.85*u)),x=b;"center"==h?(x+=Math.round(e/2),k["text-anchor"]="middle"):"right"==h&&(x+=e,k["text-anchor"]="end");k.x=x;k.y=u;l.bold&&(k["font-weight"]="bold");l.Ml&&(k["font-style"]="italic");0!=d&&(k.transform=
"rotate("+d+" "+b+" "+c+")");b=kE(this,"text",k);b.appendChild(this.F.o.createTextNode(a));null==m&&Fq&&PK&&(a="black",n instanceof bE&&(a=n.B),m=new cE(1,a));n=new tE(b,this,m,n);(t||this.A).la().appendChild(n.la());return n};
gE.prototype.resume=function(){};A(iE,J);f=iE.prototype;f.Vk=null;f.Og=null;f.la=function(){return this.Og};
f.addEventListener=function(a,b,c,d){Nc(this.Og,a,b,c,d)};
f.removeEventListener=function(a,b,c,d){Yc(this.Og,a,b,c,d)};
f.T=function(){iE.N.T.call(this);var a=this.Og;if(a)if(Dc(a))a.removeAllListeners(void 0);else if(a=Qc(a)){var b=0,c;for(c in a.o)for(var d=a.o[c].concat(),e=0;e<d.length;++e)Zc(d[e])&&++b}};A(mE,iE);mE.prototype.fill=null;A(nE,iE);A(oE,iE);A(pE,mE);A(qE,mE);A(rE,nE);rE.prototype.clear=function(){$g(this.la())};
rE.prototype.setSize=function(a,b){wE(this.la(),{width:a,height:b})};
A(sE,pE);A(tE,qE);A(uE,oE);uE.prototype.setPosition=function(a,b){wE(this.la(),{x:a,y:b})};
uE.prototype.setSize=function(a,b){wE(this.la(),{width:a,height:b})};var AE;A(vE,gE);var zE=0;f=vE.prototype;f.Bi=function(){var a=kE(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=kE(this,"g");this.J=kE(this,"defs");this.A=new rE(b,this);a.appendChild(this.J);a.appendChild(b);this.o=a;this.C&&(this.la().setAttribute("preserveAspectRatio","none"),this.O?this.tj():this.la().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.M:"")))};
f.tj=function(){if(this.Jc){var a=this.Af();if(0==a.width)this.la().style.visibility="hidden";else{this.la().style.visibility="";var b=a.width/this.C,a=a.height/this.M;this.A.la().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.setSize=function(a,b){Zq(this.la(),a,b)};
f.Af=function(){if(!Fq)return this.Jc?ar(this.la()):vE.N.Af.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Jc&&(c||d))return null;var e,h;c&&(e=this.la().parentNode,h=ar(e),a=(0,window.parseFloat)(a)*h.width/100);d&&(e=e||this.la().parentNode,h=h||ar(e),b=(0,window.parseFloat)(b)*h.height/100);return new te(a,b)};
f.clear=function(){this.A.clear();$g(this.J);this.B={}};
f.wf=function(){var a=this.Af();vE.N.wf.call(this);a||this.$("resize");if(this.O){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.K.R(BE(),"tick",this.tj);this.tj()}};
f.Hg=function(){vE.N.Hg.call(this);this.O&&this.K.ya(BE(),"tick",this.tj)};
f.T=function(){delete this.B;delete this.J;delete this.A;this.K.dispose();delete this.K;vE.N.T.call(this)};CE.prototype.la=function(){return this.D};
CE.prototype.A=function(){};var KE={bevel:1,dropshadow:2};A(TE,CE);
TE.prototype.A=function(a,b){var c=HD(a);if(c){var d=gD(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=GD(a))&&c.o?c.o:null)&&c.length?c[0]:null){var h=ze(fD(b,bD(e,new ve(e.H,e.J,e.D,e.B),b.o))),k=d.clone(),c=new ve(h.x,h.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.o,k=RE(k,c.effects),l=DE(this,k.width,k.height),m=QE(c,k.width,k.height,this.o),
d=new ve(d.left-k.left,d.top-k.top,d.width,d.height),n=new pe(h.x-k.left,h.y-k.top);this.C=17*aD(b.o,e.A,e.o?e.o:"xy");e=c.o;var h=a.o,t=this.o&&BD(a),u=t?h.C+1:h.C,t=(h=u?new cE(u,t?h.D:h.F):null)?h.getWidth()/2:0,u=UE(d,n),x=this.F(d,e,n,u),B=n.x,n=n.y,D=d.width,I=d.height,z=d.left,d=d.top,Q=new XD;YD(Q,z+e+t,d+t);"t"==u&&(Q.vb(x.start,d+t),Q.vb(B,n),Q.vb(x.end,d+t));Q.vb(z+D-e-t,d+t);ZD(Q,e,e,-90);"r"==u&&(Q.vb(z+D-t,x.start),Q.vb(B,n),Q.vb(z+D-t,x.end));Q.vb(z+D-t,d+I-e-t);ZD(Q,e,e,0);"b"==u&&
(Q.vb(x.end,d+I-t),Q.vb(B,n),Q.vb(x.start,d+I-t));Q.vb(z+e+t,d+I-t);ZD(Q,e,e,90);"l"==u&&(Q.vb(z+t,x.end),Q.vb(B,n),Q.vb(z+t,x.start));Q.vb(z+t,d+e+t);ZD(Q,e,e,180);Q.close();yE(l,Q,h,m);if(m=this.la())L(m,"annotation-shape"),L(m,"annotation-speech-shape"),Oq(m,k.left,k.top),Zq(m,k.width,k.height),SE(l,m,c.effects)}}}};
TE.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=je(c-a/2,d+b,d+e-a-b);return new UD(c,c+a)}
return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new UD(0,0)};A(VE,CE);VE.prototype.A=function(a,b){var c=HD(a);if(c){var d=gD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=RE(d,c.effects),h=DE(this,e.width,e.height);OE(h,new ve(0,0,d.width,d.height),c.o,new cE(!c.B&&this.o?1:c.B,c.bgColor),new bE("#000",0));d=this.la();L(d,"annotation-shape");cr(d,PE(this.o,c.A));Oq(d,e.left,e.top);Zq(d,e.width,e.height)}}};A(WE,CE);
WE.prototype.A=function(a,b){var c=gD(HD(a),b);if(!(0>=c.width||0>=c.height)){var d=XE(c,this.G);d.left+=c.left;d.top+=c.top;var e=a.o,h=RE(d,e.effects),k=DE(this,h.width,h.height),l=new bE("#000",0),d=XE(d,this.C),m;m=a.B?a.B.o?a.B.o:a.B.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.B.videoId)+"/hqdefault.jpg":"":"";d=kE(k,"image",{x:d.left,y:d.top,width:d.width,height:d.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});d.setAttributeNS("http://www.w3.org/1999/xlink","href",
m);var n=new uE(d,k);k.A.la().appendChild(n.la());if(d=this.la()){cr(d,PE(this.o,e.A));if(this.F&&0<e.B){m=new cE(e.B,e.bgColor);var c=new ve(0,0,c.width,c.height),t=m.getWidth()/2+1;var t=NE(c,e.o,t),u=jE(k,"mask");if(u)t=u;else{var u=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),x=window.document.createElementNS("http://www.w3.org/2000/svg","path");x.setAttribute("d",xE(t));x.setAttribute("fill","#FFF");u.appendChild(x);t=lE(k,"mask",u)}n=n.la();t&&n.setAttribute("mask","url(#"+
t+")");OE(k,c,e.o,m,l)}L(d,"annotation-shape");L(d,"annotation-image-shape");Oq(d,h.left,h.top);Zq(d,h.width,h.height);SE(k,d,e.effects)}}};A(YE,CE);YE.prototype.A=function(a,b){var c=HD(a);if(c){var d=gD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=RE(d,c.effects),h=DE(this,e.width,e.height),k=new ve(0,0,d.width,d.height),d=QE(c,d.width,d.height,this.o),l=c.o,m=a.o,n=this.o&&BD(a),t=n?m.C+1:m.C;OE(h,k,l,t?new cE(t,n?m.D:m.F):null,d);if(k=this.la())L(k,"annotation-shape"),L(k,"annotation-popup-shape"),Oq(k,e.left,e.top),Zq(k,e.width,e.height),SE(h,k,c.effects)}}};A(ZE,TE);ZE.prototype.F=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 UD(c,c+a)}
return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new UD(0,0)};f=aF.prototype;f.Ds=function(){this.P||(this.C&&dr(this.C,!0),this.D&&dr(this.D,!0),this.B&&(this.B.o=!0,cr(this.A,lF(this)?1:0),this.B.A(this.o,eF(this))),this.J.isActive()&&this.J.stop(),this.P=!0,this.K=bA(this.G,gF(this.F),function(a){this.Sl.stop();this.ee(a)}))};
f.ee=function(){this.P&&(this.O?this.J.start():this.Yo(),this.B&&(this.B.o=!1,cr(this.A,lF(this)?1:0),this.B.A(this.o,eF(this))),this.P=!1,this.K&&(this.G.ya(this.K),this.K=null))};
f.Yo=function(){this.C&&dr(this.C,!1);this.D&&dr(this.D,!1)};
f.DF=function(a){this.Z=a;this.Sl.Df()};
f.Ax=function(){var a=this.Z,b=new pe(a.clientX,a.clientY),c=Sq(this.F.Da()),d=mF(c,this.M),c=(this.D&&er(this.D)||this.C&&er(this.C))&&mF(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.Ds():this.ee(a)};
f.show=function(){var a=this.o.o,a=(a&&0==a.A||"title"==this.o.style||"highlightText"==this.o.style?!1:!0)&&!this.B,b=!this.A,c="widget"==this.o.type;if(a){var d=eF(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new VE:"popup"==this.o.style?e=new YE:"anchored"==this.o.style?e=new TE:"speech"==this.o.style?e=new ZE:"image"==this.o.type&&("video"==this.o.style?e=new WE(Sha,D5,!0):"channel"==this.o.style&&(e=new WE));e&&(e.A(this.o,d),this.B=e,d=e.la())&&(dr(d,!1),L(d,"annotation-type-"+
this.o.type.toLowerCase()),this.Y(d))}if(b){d=["annotation"];"highlightText"!=this.o.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=O("div",d);dr(this.A,!1);this.o.F&&(this.H=O("div","inner-text"),"label"==this.o.style&&(L(this.H,"label-text"),this.H.style.backgroundColor=this.o.o.bgColor),mh(this.H,this.o.F),this.A.appendChild(this.H));ki(this.A,"annotation_id",this.o.id);this.Y(this.A);cF(this,this.A);if(BD(this.o)&&"image"!=this.o.type&&this.o.showLinkIcon()){if(e=
this.o.getUrl())d=this.A,e=new N(SA(e)),d.title=e.A+e.B;this.D=O("span","annotation-link-icon");dr(this.D,!1);this.A.appendChild(this.D)}dF(this);BD(this.o)||(this.A.style.cursor="default")}c&&("subscribe"==this.o.style?Mg("yt-uix-subscription-button",this.A)||Jf(this.A,this.o.C):this.o.C&&Jf(this.A,this.o.C));if(a||b){a:{a=this.o.A.o;if(a.length&&(a=nD(a[0]))){a=a.K;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.la()&&(this.B.la().style.zIndex=a)}dr(this.A,!0);cr(this.A,lF(this)?1:0);
kF(this);this.B&&this.B.la()&&dr(this.B.la(),!0)};
f.ha=function(){this.A&&dr(this.A,!1);this.B&&this.B.la()&&dr(this.B.la(),!1);this.L&&(this.G.ya(this.L),this.L=null)};A(oF,jq);oF.F="AnnotationsModule";var nF={FI:"video-annotations",Fu:"video-custom-annotations",gv:"video-legacy-annotations"};oF.D=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
oF.C=function(a){return"card"==a.type};
oF.B=function(a){return oF.Xa(a)?new oF(a):null};
oF.Xa=function(a){var b=a.V();return"leanback"==b.Aa?!1:!b.J.isEmpty()||oF.o(b.o)?!0:Fx(a.getVideoData(),"iv3_module")};
oF.A=function(){var a=O("div",["annotation","annotation-type-custom"]);dr(a,!1);return a};
oF.o=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
f=oF.prototype;f.ld=function(a,b){if(!oF.o(this.o.V().o))return null;switch(a){case "loadCustomAnnotationsXml":var c=Yz(b);c&&vF(this,c);return!0;case "removeCustomAnnotationById":return b&&this.A&&(zC(this.A,b),AC(this.o)),!0}return null};
f.df=function(){return oF.o(this.o.V().o)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
f.Xa=function(){return oF.Xa(this.o)};
f.create=function(){oF.N.create.call(this);T(this.G,this.o,"onVideoAreaChange",y(this.S,this,"onVideoAreaChange"));T(this.G,this.o,"onHideControls",y(this.S,this,"onHideControls"));T(this.G,this.o,"onShowControls",y(this.S,this,"onShowControls"));T(this.G,this.o,"resize",y(this.S,this,"resize"));this.D=new R(["div",["ytp-player-content","ytp-iv-player-content"]]);qr(this.o,this.D.element,4);this.C=new R(["div",["ytp-iv-video-content"]]);this.C.element.appendChild(O("DIV","video-annotations",this.U,
this.W));var a=this.o.V(),b=this.o.getVideoData();1!=(a.sd||b.ua)&&null===a.J.get(b.videoId)||this.load()};
f.destroy=function(){ur(this.G);$d(this.o.Da(),"ytp-iv-drawer-open");xq(this.D);this.D.dispose();this.C.dispose();oF.N.destroy.call(this)};
f.Fq=function(){if(this.C){var a=fF(gF(this.o),!0);Zq(this.C.element,a.width,a.height);Oq(this.C.element,a.left,a.top)}};
f.MB=function(a){U(a.state,2)&&(HF(this)&&IF(this)&&2!=this.o.getPresentingPlayerType()&&JF(this,!1),KF(this,!1))};
f.load=function(){oF.N.load.call(this);this.L++;var a=this.o.getVideoData(),b=a.videoId,c=y(this.OA,this,b,this.L);Vu()&&(c=wF(this,c));c={format:"XML",Xb:c,Pc:{}};a.isPharma&&(c.Pc.pharma="1");var d=this.o.V();d.experiments.ga("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.o&&(c.Pc.gaming="1");(b=d.J.remove(b))&&xF(this,c,b);a.qf&&(b=b&&(b.Je||b.mi),a.Zn&&!b||pj(a.qf,c));qr(this.o,this.C.element,4);this.Fq()};
f.unload=function(){this.J.cb({"iv-event":1});mq(this);Ob(this.B,function(a){a.destroy()});
Ob(this.P,function(a){a.destroy()});
this.K=null;this.A&&(this.A.destroy(),this.A=null,AC(this.o));this.B={};this.P={};oF.N.unload.call(this);xq(this.C)};
f.OA=function(a,b,c){if(!qF(this,b,a)&&(a=kj(c)&&c.responseXML?c.responseXML:null)){vF(this,a);L(this.o.Da(),this.ra+"-loaded");a=[];for(var d in this.B){b=this.B[d].annotation;if(b.A)if(c=b.A,c.o.length)if(c=c.o[0].A||c.o[0].o||c.o[0].B,!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 h={id:d};"marker"==b.type&&(h.style="ytp-chapter-marker",h.tooltip=b.F,h.visible=
!0);b=new gq(c,e,h);a.push(b)}}this.bb(a)}};
f.BC=function(a){this.H&&a==this.o.getVideoData().videoId&&(this.loaded?yF(this):this.load())};
f.Wb=function(a){oF.N.Wb.call(this,a);a=a.getId();var b=this.B[a];b&&!b.C&&(b=b.annotation,BF(this,a),KB(this.J,b.Ta))};
f.jc=function(a){oF.N.jc.call(this,a);CF(this,a.getId())};
f.Xo=function(a){a&&(a.ha(),GF(this,"shown",!1,a.annotation.id),this.ni(a.annotation,"hidden"))};
f.Ar=function(a){a&&(a.show(),GF(this,"shown",!0,a.annotation.id),this.ni(a.annotation,"shown"))};
f.zC=function(a,b,c){var d=this.B[a];if(d&&b.value!=c){b.value=c;var e=!1;ED(d.annotation,function(a){e|=a.value});
DF(this,a,b,e)}};
f.Pz=function(a){if(a&&a.id){var b=a.getUrl();if(b){var c=SA(b);if(c){var d=y(this.ni,this,a,"click"),e=this.o.getVideoData();if("new"==ZA(c,b.target)||EF(this,b,e.videoId))d(),d=null;LB(this.J,a.Ta,d)}}}};
f.ni=function(a,b){CD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.o.getVideoData(),e;if(!(e=!EF(this,c.url,d.videoId))){e=WA(c.url);var h=VA(c.url);if(e){if(d.videoId==e)this.S("command_seek",h||0);else{var k=tF(this).A;L9(k.app,e,void 0,void 0);h&&jM(tF(this).A)&&tF(this).A.Sb(h)}e=!0}else e=!1;e=!e}e&&(d=YA(c.url,a.id,d.videoId,this.o.V()))&&(this.pauseVideo(),e=ZA(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=fj(c),h=null,"ei"in e&&(h={ei:e.ei},c=lf(c,"ei")),gy(c,h),hy(c,
d))}},this)};
f.WA=function(){GF(this,"playerControlShow",!1)};
f.hC=function(){GF(this,"playerControlShow",!0)};
f.qF=function(a){GF(this,"rollOver",!0,a.id)};
f.ee=function(a){GF(this,"rollOver",!1,a.id)};
f.oA=function(a){if(a||a.id)this.B[a.id].C=!0,CF(this,a.id),a&&(MB(this.J,a.Ta),this.ni(a,"close")),GF(this,"closed",!0,a.id)};
f.T=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Xu(a[b]);this.O.length=0;oF.N.T.call(this)};MF.prototype.destroy=function(){null!=this.A&&(this.A.canvas.remove?this.A.canvas.remove():this.A.canvas.removeNode(!0),this.A=null)};f=QF.prototype;f.Sk=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n  gl_Position = vec4(aVertPos, 1.0);\n}"};
f.Nk=function(){return this.o};
f.gd=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
f.Es=function(){};
f.kn=function(a){this.H&&(360>=Kr[a]?this.F(!0):this.F(!1))};
f.Yc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,PF(this.D,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.Xq=function(){return!0};
f.ef=function(){return{shader:"NoOp"}};
f.Ch=function(){};
f.destroy=function(){this.D&&this.D.destroy()};A(RF,QF);RF.prototype.gd=function(a,b,c){RF.N.gd.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new window.Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new window.Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.C=a.getUniformLocation(b,"mode");a.uniform1i(this.C,this.A)};
RF.prototype.Yc=function(a,b,c){this.B&&(a.uniform1i(this.C,this.A),this.B=!1);RF.N.Yc.call(this,a,b,c)};
RF.prototype.ef=function(){return{shader:"Anaglyph3D",displayMode:this.A}};
RF.prototype.Ch=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.A=(0,window.parseInt)(a.displayMode,10),this.B=!0),this.G())};A(VF,QF);
VF.prototype.gd=function(a,b,c){VF.N.gd.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,
0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);this.B=a.getUniformLocation(b,"seed");(a=this.ca.getVideoData())&&a.B&&this.kn(a.B.video.quality)};
VF.prototype.Yc=function(a,b,c){if(this.J){var d=K();1E3<d-this.C&&(this.C=d,a.uniform1f(this.B,Math.random()))}else a.uniform1f(this.B,Math.random());VF.N.Yc.call(this,a,b,c)};
VF.prototype.ef=function(){return{shader:"WhiteNoise"}};A(WF,VF);WF.prototype.gd=function(a,b,c){WF.N.gd.call(this,a,b,c);this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,1)};
WF.prototype.Yc=function(a,b,c){this.G&&(a.uniform1i(this.A,1),this.G=!1);WF.N.Yc.call(this,a,b,c)};
WF.prototype.ef=function(){return{shader:"EdgeEnhance"}};XF.prototype.o=4;XF.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
XF.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(XF.BYTES_PER_ELEMENT=4,XF.prototype.BYTES_PER_ELEMENT=XF.prototype.o,XF.prototype.set=XF.prototype.set,XF.prototype.toString=XF.prototype.toString,q("Float32Array",XF,void 0));YF.prototype.o=8;YF.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
YF.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{YF.BYTES_PER_ELEMENT=8}catch(a){}YF.prototype.BYTES_PER_ELEMENT=YF.prototype.o;YF.prototype.set=YF.prototype.set;YF.prototype.toString=YF.prototype.toString;q("Float64Array",YF,void 0)};$F.prototype.identity=function(){this.o.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
$F.prototype.get=function(){return this.o};var dG=null,hG=null,cG=null;f=lG.prototype;f.Sk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
f.Nk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
f.gd=function(a,b){this.ea=a.getUniformLocation(b,"uVMat");this.Z=a.getUniformLocation(b,"uFOVx");this.aa=a.getUniformLocation(b,"uFOVy");this.Ka=a.getUniformLocation(b,"uSplr");a.uniform1i(this.Ka,0)};
f.Es=function(){this.H=!0};
f.kn=v;
f.Yc=function(a,b){var c=this.o,d=this.A;if(this.H){a.A>a.o?(this.o=this.C,this.A=Math.atan(Math.tan(this.C)*a.o/a.A)):(this.A=this.C,this.o=Math.atan(Math.tan(this.C)*a.A/a.o));a.uniform1f(this.Z,this.o);a.uniform1f(this.aa,this.A);this.D=je(this.D,-Math.PI/2,Math.PI/2);this.B.identity();var e=this.B,h=this.D,k=Math.sin(h),h=Math.cos(h);e.B.set([1,0,0,0,0,h,k,0,0,-k,h,0,0,0,0,1]);aG(e,e.B);e=this.B;h=this.K;k=Math.sin(h);h=Math.cos(h);e.B.set([h,0,-k,0,0,1,0,0,k,0,h,0,0,0,0,1]);aG(e,e.B);a.uniformMatrix4fv(this.ea,
!1,this.B.get());this.H=!1}e=K();if(this.da){this.G[0]=-this.B.get()[8];this.G[1]=-this.B.get()[9];this.G[2]=-this.B.get()[10];var k=this.da,h=this.G,l=this.F.getCurrentTime(),m=e/1E3,n=this.F.getPlayerState(),t=null,u,x,B;1==n?(u=k.B,B=k.H,x=l):(u=k.G,B=k.F,x=m);var D=0!=k.o.length;if(D){var I=150<=k.o.length;if(k.C!=n||.5<x-B||x<B||I){t=null;if(5<=k.o.length){for(var t=k.o,D=Array(2*t.length),z=I=0,Q=0;Q<t.length;++Q)D[Q]=t[Q].x-I&255,D[Q+t.length]=t[Q].y-z&255,I=t[Q].x,z=t[Q].y;I=jG(D);t=k.B;D=
1==k.C?k.A:0;I=eG(I,!0);z="";for(Q=I.length-1;0<=Q&&"."==I.charAt(Q);--Q)z+="=";I=I.substring(0,I.length-z.length)+z;t={start:t,duration:D,data:I}}k.o=[];k.A=0;D=!1}}if(1==n||2==n||3==n){if(D)for(u=u+k.A+.2;u<x;){I=(u-B)/(x-B);k.A+=.2;var D=k.D,z=h,Q=I,I=new window.Float32Array(3),Na=ZF(D),va=ZF(z),Va=(D[0]*z[0]+D[1]*z[1]+D[2]*z[2])/(Na*va);if(.999999<Va)Na=D[0],va=D[1],D=D[2],I[0]=(z[0]-Na)*Q+Na,I[1]=(z[1]-va)*Q+va,I[2]=(z[2]-D)*Q+D;else{var vb=0,Sd=0;-.999999>Va?(Va=new window.Float32Array(3),vb=
(Na+va)/2,D[0]?(vb/=Math.sqrt(D[0]*D[0]+D[1]+D[1]),Va[0]=-D[1]*vb,Va[1]=D[0]*vb,Va[2]=0):(vb/=Math.sqrt(D[2]*D[2]+D[1]+D[1]),Va[0]=0,Va[1]=-D[2]*vb,Va[2]=D[1]*vb),.5>=Q?(va=Na,z=Va,Q*=2):(D=Va,Q=2*Q-1),vb=Math.PI/2,Sd=1):(vb=Math.acos(Va),Sd=Math.sqrt(1-Va*Va));Va=Math.sin((1-Q)*vb)/Sd/Na;vb=Math.sin(Q*vb)/Sd/va;Q=(1-Q)*Na+Q*va;I[0]=(D[0]*Va+z[0]*vb)*Q;I[1]=(D[1]*Va+z[1]*vb)*Q;I[2]=(D[2]*Va+z[2]*vb)*Q}D=I;k.o.push(iG(D));u+=.2}else k.B=l,k.G=m,k.o.push(iG(h)),k.A=0;k.D=h;k.H=l;k.F=m;k.C=n}k=t;k&&
(h=kq(this.F.app))&&h.B&&(h=h.B.B,l=k.start,m=k.duration,k=k.data,iB(h,tB(h.o),"dir",[l.toFixed(3),m.toFixed(3),k]))}(this.Y!=this.o||this.W!=this.A)&&3E4<e-this.U&&c==this.o&&d==this.A&&(this.Y=this.o,this.W=this.A,this.U=e,(c=kq(this.F.app))&&c.B&&(c=c.B.B,d=Math.round(360*this.o/Math.PI),e=Math.round(360*this.A/Math.PI),iB(c,tB(c.o),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,PF(this.L,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.Xq=function(){return!1};
f.ef=function(){return{shader:"Spherical",yaw:this.K,pitch:this.D,fov:this.C}};
f.Ch=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.K=a.yaw),a.pitch&&(this.D=a.pitch),a.fov&&(this.C=je(a.fov,.32,1.05)),this.H=!0,this.O()};
f.destroy=function(){this.L&&this.L.destroy()};A(mG,lG);f=mG.prototype;f.Sk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
f.Nk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0,   -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176,   -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) {  y *= 0.5;  vec4 cLt = texture2D(uSplr, vec2(x, y));  vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y));  gl_FragColor = mLt * cLt + mRt * cRt;}void main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  if (mode == 1) {    anaglyph(texCrd.x, texCrd.y);  } else {    texCrd.y *= 0.5;    gl_FragColor = texture2D(uSplr, texCrd);  }}"};
f.gd=function(a,b,c){mG.N.gd.call(this,a,b,c);this.P=a.getUniformLocation(b,"mode");a.uniform1i(this.P,this.J)};
f.Yc=function(a,b,c,d){this.M&&(a.uniform1i(this.P,this.J),this.M=!1);mG.N.Yc.call(this,a,b,c,d)};
f.ef=function(){var a=mG.N.ef.call(this);a.shader="Spherical3D";a.displayMode=this.J;return a};
f.Ch=function(a){void 0!=a.displayMode&&(this.J=(0,window.parseInt)(a.displayMode,10),this.M=!0,this.O());mG.N.Ch.call(this,a)};var cH=window,SG=window.document,tG=cH.location,rG=/\[native code\]/,ZG=oG(cH,"gapi",{});var uG;uG=oG(cH,"___jsl",sG());oG(uG,"I",0);oG(uG,"hel",10);var AG=oG(uG,"perf",sG());oG(AG,"g",sG());var zG=oG(AG,"i",sG());oG(AG,"r",[]);sG();sG();var DG=sG(),WG=[];WG.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?uG[b]=oG(uG,b,[]).concat(c):oG(uG,b,c)}if(b=a.u)a=oG(uG,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var MG=/^(\/[a-zA-Z0-9_\-]+)+$/,PG=/^[a-zA-Z0-9\-_\.,!]+$/,JG=/^gapi\.loaded_[0-9]+$/,OG=/^[a-zA-Z0-9,._-]+$/,GG=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,FG=/\/cb=/g,EG=/\/\//g;DG.m=function(a,b,c,d){(a=a[0])||CG("missing_hint");return"https://apis.google.com"+LG(a,b,c,d)};var UG=(0,window.decodeURI)("%73cript");ZG.load=function(a,b){return YG(function(){return bH(a,b)})};A(dH,Gj);dH.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
dH.prototype.get=function(a){return this.o[a]||null};
dH.prototype.isEmpty=function(){return ac(this.o)};A(fH,J);fH.prototype.G=function(a,b){this.o.paused||this.getCurrentTime()>a||10<b||(this.play(),ri(y(this.G,this,this.getCurrentTime(),b+1),500))};
fH.prototype.addEventListener=function(a,b,c,d){fH.N.addEventListener.call(this,a,b,c,d);this.B[a]||(b=y(this.vG,this),this.o.addEventListener(a,b),this.B[a]=b)};
fH.prototype.F=function(){this.D&&!this.o.muted&&(this.o.muted=!0)};
fH.prototype.T=function(){this.C&&this.removeEventListener("volumechange",this.F);fH.N.T.call(this)};A(rH,fH);f=rH.prototype;f.la=function(){return this.o};
f.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
f.getCurrentTime=function(){return this.o.currentTime};
f.load=function(){var a=this.o.playbackRate;this.o.load();this.o.playbackRate=a};
f.pause=function(){this.o.pause()};
f.play=function(){this.o.play()};
f.getErrorCode=function(){return this.o.error?this.o.error.code:null};
f.setPosition=function(a){return Oq(this.o,a)};
f.setSize=function(a){return Zq(this.o,a)};
f.setVolume=function(a){this.o.volume=a};
f.vG=function(a){this.$(new qH(this,a.type,a))};
f.setAttribute=function(a,b){this.o.setAttribute(a,b)};
f.removeAttribute=function(a){this.o.removeAttribute(a)};
f.getStyle=function(a){return Kq(this.o,a)};
f.T=function(){for(var a in this.B)this.o.removeEventListener(a,this.B[a]);rH.N.T.call(this)};var yH=null;var LH={wM:"red",WHITE:"white",MI:"blue"};BH.prototype.ga=function(a){return"true"==this.flags[a]};
BH.prototype.dc=function(a){return(0,window.parseFloat)(this.flags[a])};
BH.prototype.D=function(a){return this.flags[a]?this.flags[a].toString():""};var QH={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},RH={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},FH="blogger books docs google-live play picasaweb".split(" ");A(OH,G);var SH={OI:"cbrand",QI:"cbr",RI:"cbrver",DK:"c",GK:"cver",FK:"ctheme",EK:"cplayer",eL:"cmodel",KL:"cnetwork",UL:"cos",VL:"cosver",ZL:"cplatform"};f=OH.prototype;f.Aa="detailpage";f.Qf=!1;f.Jl=!1;f.Il=!1;f.Eg=!1;f.ne=null;
f.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);d&&"www.youtube.com"==VH(this)?c="https://youtu.be/"+a:(c=this.U+"://"+VH(this)+"/watch",b.v=a,(a=AH())&&(b.ebc=a));return ff(c,b)};
f.T=function(){this.ne=null;OH.N.T.call(this)};$H.prototype.M=function(){this.L=!1;if(this.B&&(this.C.videoWidth||this.C.videoHeight)){if(0==this.K){var a=fF(gF(this.ca));if(!xe(this.F,a)){this.F=a;var b,c,d,a=gF(this.ca).La();this.o.Xq()?("Anaglyph3D"!=this.Y?b=!1:(b=NF(gF(this.ca)),c=this.ca.getVideoData(),b=(0,window.isNaN)(b)||c.Zc("yt:stretch")||c.Zc("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.F.width,c=this.F.height,
d=this.F.top,a=this.F.left)):(b=a.width,c=a.height,a=d=0);a=new ve(a|0,d|0,b|0,c|0);this.G.style.left=a.left+"px";this.G.style.top=a.top+"px";this.A.width=a.width;this.A.height=a.height;this.B.A=a.width;this.B.o=a.height;this.B.viewport(0,0,a.width,a.height);this.o.Es()}}this.o.Yc(this.B,this.C,this.P,this.W)}this.D&&this.H()};
$H.prototype.Z=function(a){this.J!=a&&this.A&&((this.J=a)?(this.G.appendChild(this.A),this.H(),LF||(this.C.style.display="none")):(bh(this.A),this.C.style.display=""))};
$H.prototype.H=function(){!this.L&&this.J&&((0,window.requestAnimationFrame)(this.M.bind(this)),this.L=!0)};A(dI,jq);dI.A=function(a){return dI.Xa(a)?new dI(a):null};
dI.prototype.Xa=function(){return dI.Xa(this.o)};
dI.o=function(a){var b=a.V().A.c.toLowerCase(),c=a.getVideoData();a=a.V().experiments;if(UF(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||ul&&!SF||LF&&!Vp()&&vc(11)||TF&&!SF&&vc(38)||zc&&!SF&&vc(27))a:{if(c.o&&3!=c.aa)for(var e in c.o.o)if((d=c.o.o[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}b=d?"Spherical":(a.ga("html5_enable_spherical3d")||ul&&!SF||TF&&!SF&&vc(38)||zc&&!SF&&vc(27)||LF&&!Vp()&&vc(11))&&c.o&&Kx(c)?"Spherical3D":a.H&&"web"==b&&ul&&!SF?"NoOp":(a.O||a.ga("white_noise_with_interval"))&&
"web"==b&&ul&&!SF?"WhiteNoise":a.C&&"web"==b&&ul&&!SF?"EdgeEnhance":null}return b};
dI.Xa=function(a){return a.V().F?null!=dI.o(a):!1};
f=dI.prototype;f.wF=function(){var a=this.A;a.D||(0,window.requestAnimationFrame)(a.M.bind(a))};
f.FB=function(a){var b=this.A;b.o&&b.o.kn(a)};
f.vF=function(a){var b=this.A,c=b.D;b.D=U(a.state,8);b.D&&!c&&b.H()};
f.T=function(){dI.N.T.call(this)};
f.create=function(){var a=dI.o(this.ca);this.A=new $H(this.ca,a,this.D.element,this);a:{a=this.A;a.o=null;var b=a.Z.bind(a),c=y(a.H,a);switch(a.Y){case "Anaglyph3D":a.o=new RF(a.ca,c);break;case "Spherical":a.o=new lG(a.ca,c);break;case "WhiteNoise":a.o=new VF(a.ca,b);break;case "EdgeEnhance":a.o=new WF(a.ca,b);break;case "NoOp":a.o=new QF(a.ca,!0,b);break;case "Spherical3D":a.o=new mG(a.ca,c)}if(a.o){a.K=bI(a);if(0==a.K){a.J&&!LF&&(a.C.style.display="none");a=!0;break a}a.ca.app.A.Fj(new Rv("html5.missingapi.webgl",
!1));cI(a)}a=!1}if(this.B=a)T(this.C,this.o,"resize",this.wF),T(this.C,this.o,"onPlaybackQualityChange",this.FB),T(this.C,this.o,"presentingplayerstatechange",this.vF);dI.N.create.call(this)};
f.destroy=function(){ur(this.C);cI(this.A);this.B=!1;dI.N.destroy.call(this);this.A=null};A(fI,Cq);fI.prototype.D=function(){this.ha();this.S("close-clicked")};
fI.prototype.ha=function(){this.A.stop();L(this.element,"ytp-drawer-closed")};
fI.prototype.Hb=function(a){a?(fI.N.Hb.call(this,a),zq(this.element,"block")):zq(this.element,"none")};
fI.prototype.show=function(){this.A.start()};A(gI,Gj);gI.prototype.T=function(){gI.N.T.call(this);this.C||bh(this.D)};
gI.prototype.o=function(a){this.C||(this.A.o(a),this.A.Hb(this.B.element),a.appendChild(this.D))};
gI.prototype.F=function(){this.S("ypcModuleCloseClicked")};
gI.prototype.G=function(){this.S("ypcContentRequest")};A(jI,jq);f=jI.prototype;f.Xa=function(){return Fx(this.o.getVideoData(),"ypc_module")};
f.create=function(){jI.N.create.call(this);this.A=new eI(this.o.getVideoData());ri(y(this.xF,this),0);this.C=new R(["div",["ytp-player-content","ytp-ypc-player-content"]]);qr(this.o,this.C.element,4)};
f.destroy=function(){jI.N.destroy.call(this);this.A=null;this.C&&(xq(this.C),this.C.dispose(),this.C=null)};
f.xF=function(){this.H&&!this.loaded&&this.load()};
f.load=function(){jI.N.load.call(this);var a=this.o.V(),b=this.o.getVideoData();if(this.A.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.A.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=bx.B,d=0;d<c.length;d++){var e=c[d];b.C.hasOwnProperty(e)&&(a[e]=b.C[e])}this.o.Nj(a)}else this.A.videoId&&(this.D=new R(["div","html5-ypc-overlay",this.A.C]),this.D.o(this.C.element)),this.A.offerId&&lI(this,a,b),!this.A.videoId&&this.B?hI(this.B):b.ypcPreview?(this.o.Ba("ypcStateChanged",
!0),nq(this)):this.B||nq(this)};
f.unload=function(){mq(this);(0,window.isNaN)(this.G)||ti(this.G);Nb(this.D,this.B);this.B=this.D=null;jI.N.unload.call(this);this.o.Ba("ypcStateChanged",!1)};
f.Wb=function(a){jI.N.Wb.call(this,a);hI(this.B)};
f.jc=function(a){jI.N.jc.call(this,a);a=this.B;a.C||(zq(a.D,"none"),a.A.Hb(a.B.element))};
f.yA=function(){this.A.o?"embedded"==this.o.V().Aa?hy(this.A.o):fy(this.A.o):this.A.offerId&&(this.o.Oa()&&ly(this.o),this.o.Ba("onYpcContentRequest",this.A.offerId))};
f.lB=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};pI.prototype.forEach=function(a){for(var b=this.o+1;b<this.A.length;b++)a(this.A[b]||0);for(b=0;b<=this.o;b++)a(this.A[b]||0)};
pI.prototype.Na=function(){var a=[];this.forEach(y(a.push,a));return a};SI.prototype.start=function(){this.A=!0};
SI.prototype.reset=function(){this.o=this.A=!1};TI.prototype.O=function(a){if(4==a.info.type){var b=a.info.o.fr(a);a.info.equals(this.A)&&(this.A=cb(b).info);F(b,this.O,this)}else 3==a.info.type&&this.o.push(a)};
TI.prototype.Y=function(a){a.dispose();this.F-=UI(a)};var wJ=0;f=xJ.prototype;f.fD=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.F?(this.J=a.headers,this.G=new window.Uint8Array(yJ(this)),AJ(this)):this.C.cancel("Cancelling")):this.Pj()};
f.jA=function(a){if(this.F)if(K(),a.done)this.C=null,this.Pj();else{a=a.value;this.D+=a.length;var b=a.length>=Math.max(yJ(this)/2,16384),c=a.length+this.o>yJ(this);(b||c)&&0!==this.o&&zJ(this);b?this.B.push(a):(this.G.set(a,this.o),this.o+=a.length);this.F({timeStamp:K(),loaded:this.D});AJ(this)}};
f.Pj=function(){this.F&&(this.H=!0,this.K())};
f.zh=function(a){return this.J.get(a)};
f.Jk=function(){return this.D};
f.sg=function(){return+this.zh("content-length")};
f.Vo=function(){return 200<=this.status&&300>this.status&&!!this.D};
f.Ip=function(){return!!this.B.length||this.H&&0<this.o};
f.zr=function(){this.B.length||zJ(this);return this.B.shift()};
f.us=function(){this.B.length||zJ(this);return this.B[0]};
f.ts=function(){this.C&&this.C.cancel("Cancelling");this.K=this.F=null};var BJ=0;f=CJ.prototype;f.lF=function(a){if(!this.B){this.status=this.o.status;try{this.A=this.o.response}catch(b){}this.C=!0;this.D(a)}};
f.mF=function(a){this.B||(this.status=this.o.status,this.F(a))};
f.zh=function(a){try{return this.o.getResponseHeader(a)}catch(b){return vi(b),""}};
f.sg=function(){return+this.zh("content-length")};
f.Jk=function(){return this.A.byteLength};
f.Vo=function(){return 200<=this.status&&300>this.status&&!!this.A};
f.Ip=function(){return this.C&&!!this.A};
f.zr=function(){var a=this.A;this.A=null;return new window.Uint8Array(a)};
f.us=function(){return new window.Uint8Array(this.A)};
f.ts=function(){this.B=!0;this.o.abort()};DJ.B=!1;DJ.A=1E4;DJ.o=2048;f=DJ.prototype;f.getUrl=function(){return this.B?this.B.getUrl():""};
f.getErrorCode=function(){return this.H};
f.start=function(a){var b=1==this.state,c=6==this.state;1==this.state||4==this.state||c&&FJ(this);GJ(this,2);this.O=0<=a?a:window.NaN;if(c&&2<=this.G)c=this.info.B,this.K<=c.B||(c.A++,c.B=o$-1,ls(c)),this.G=0;else if(c){this.G++;b=1E4*(.5+Math.random());1==this.G&&(b=2E3);ri(y(this.hn,this,a),b);return}b?this.hn(a):ri(y(this.hn,this,a),0)};
f.hn=function(a){if(!this.isDisposed()){this.K=o$++;if(this.o){var b=this.info,c=this.o.A,d=this.o.length;this.J=b.range?new Wr(b.range.start+c,b.range.end):Yr(c,d);this.B=ws(this.info,this.J)}else this.J=this.info.range,this.B=ws(this.info);this.B.set("rn",this.K.toString());this.G&&this.B.set("playerretry",this.G.toString());0<=a&&this.B.set("rbuf",(1E3*a).toFixed().toString());this.info.C&&this.B.set("headm",this.C.liveChunkReadahead.toString());a=this.B.getUrl();try{var e=y(this.RC,this),h=y(this.TC,
this),k=y(this.SC,this);this.A=(this.C.Ka||this.C.ea&&5>this.O)&&"function"==typeof window.fetch&&window.ReadableByteStream&&HJ(this)&&this.info.range?new xJ(a,h,k,e):new CJ(a,h,k,e)}catch(l){this.H="net.ssl",GJ(this,6)}0<this.C.G&&(this.F=ri(y(this.dr,this),this.C.G));this.B.get("itag");this.B.get("range");K()}};
f.TC=function(){this.M=0;var a=this.timing;this.B&&Pr(this.B.o);a.A=K();a.F=a.A;a.o=0;a.L=!1;a.J=!1;a.D=0;a.H=SN(a.B);QJ(a);a.M=a.G-a.A};
f.SC=function(a){if(!this.isDisposed()){this.D=this.A.status;LJ(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:K();50>c-b.F||PJ(b,c,a);b=this.timing;b.o>b.P&&8192<b.o&&3>this.state&&GJ(this,3)}};
f.RC=function(){var a=this.A;if(!this.isDisposed()){this.F&&(ti(this.F),this.F=window.NaN);this.D=a.status;var b=!1;if(400<=a.status)b=!0,this.H="net.badstatus";else if(a.Vo()){var c="";KJ(this)&&(c=a.us(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=Rr.test(c)?c:""));if(c){var a=this.info.B,d=this.B;d.o===a.o&&(a.o=js(d,c));GJ(this,4)}else{var c=a.sg(),a=a.Jk(),d=!!this.J&&this.J.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);e?(LJ(this,!0),c=this.timing,d=K(),c.L||(c.L=
!0,d=d>c.A&&4E12>d?d:K(),PJ(c,d,a),e=(d-c.A)/1E3,!c.J&&8192<=c.o&&NJ(c.B,e,a),8192<=c.o&&RN(c.B,a,c.D),QN(c.B,(d-c.A)/1E3,c.o),c.C&&(c.C=!1)),K(),GJ(this,5)):(b=!0,this.H="net.closed")}}else b=!0,this.H="net.connect";b&&(FJ(this),GJ(this,6),K())}};
f.dr=function(){this.F=window.NaN;if(!(this.isDisposed()||this.C.Ma&&this.A&&8192<=this.timing.o&&"quic"==this.A.zh("client-protocol"))){var a=K(),b=!1;if(8192<=this.timing.o){var c=this.timing.G;QJ(this.timing);this.timing.G-c>=.8*this.C.G?(this.M++,b=5<=this.M):this.M=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.H.delay);b?(b=this.timing,a=a>b.A&&4E12>a?a:K(),c=(a-b.A)/1E3,8192<=b.o?(b.D+=(a-b.F)/1E3,RN(b.B,b.K,b.D)):OJ(b.B,c),QN(b.B,c,b.o),IJ(this),this.H="net.timeout",GJ(this,6)):this.F=ri(y(this.dr,
this),this.C.G)}};
f.isDisposed=function(){return-1==this.state};
f.dispose=function(){ps(this.info.o[0])&&5!=this.state&&(this.info.o[0].o.B=!1);GJ(this,-1);this.P=null;IJ(this);ti(this.F);this.F=window.NaN};A(RJ,Gj);RJ.H=!1;RJ.o=2/24;RJ.D=1E3;RJ.C=.2;RJ.A=1E4;RJ.G=1800;RJ.F=25;RJ.B="Not enough storage";f=RJ.prototype;f.initialize=function(a,b,c,d){a=a||0;var e=this.G;d=d&&d.id;e.D="i";"auto"!=mI()&&(e.D="s");DI(e,b);OI(e,d);e.L=e.C;PI(e);e.B=e.G;b=MI(e);this.A=new TI(this.C,b.audio);this.B=new TI(this.C,b.video);this.S("videoformatchange",b);this.F=a;c?(this.K=!0,gK(this)):UJ(this)};
f.resume=function(){this.K&&(this.K=!1)};
f.jw=function(a){this.A.L=!1;this.B.L=!1;this.resume();this.o=a;jw(a)&&(a.o.addEventListener("updateend",y(this.Dc,this),!1),a.A.addEventListener("updateend",y(this.Dc,this),!1),a.o.addEventListener("error",y(this.Xi,this,!0),!1),a.A.addEventListener("error",y(this.Xi,this,!1),!1));TJ(this,"msa");Iv.measure&&Iv.getEntriesByName("vta").length&&Iv.measure("measure_vta_to_msa","vta");this.U&&this.P&&Zu();this.Dc();this.ia=si(y(this.Dc,this),1E4)};
f.WB=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.o[0].o,c=!this.U&&b.info.video,d=!this.P&&b.info.audio,e=Math.max(0,a.info.o[0].D-this.F);if(4==a.state)c?TJ(this,"vrr"):d&&TJ(this,"arr"),a.start(e);else if(5==a.state)c?(this.U=a.getUrl(),$u()):d&&(this.P=a.getUrl()),this.D.A&&(b=b.info.video?this.B:this.A,b.K=!1),dK(this,a)?(eK(this,a),this.Dc()):this.hd(!0,"fmt.unparseable",EJ(a));else if(3==a.state)this.Dc(),c&&$u();else if(6==a.state&&FJ(a)){if(this.hd(!1,a.getErrorCode(),EJ(a)),
!this.isDisposed()){if(c=b.info.video&&(0<a.G||410==a.D||500==a.D||503==a.D)&&90&&!JI(this.G)){var d=this.G,h=b.info;JI(d);d.Y=h;d.P=At();d.M=-1;DI(d,d.o)}if(6==a.state&&"net.timeout"==a.H||c){b=b.info.video?this.B:this.A;for(e=0;e<b.D.length&&a!==b.D[e];e++);if(e==b.D.length)a.dispose();else{for(;e<b.D.length;)b.Y(b.D.pop());3==a.info.o[0].type?(a.o&&a.o.C?(a=a.o.C,a=new ns(a.type,a.o,a.range,a.C,a.startTime+a.duration,0,a.B+a.A,0,!1)):(a=a.info.o[0],a=new ns(a.type,a.o,a.range,a.C,a.startTime,0,
a.B,0,!1)),b.A=a):b.A=null}this.Dc()}else a.start(e)}}else ps(a.info.o[0])?(b.D=!0,this.Dc()):this.hd(!0,"net.retryexhausted",EJ(a))}};
f.Dc=function(){this.fa=window.NaN;XJ(this);if(this.o&&fw(this.o)&&!hw(this.o))if(this.D.isLive)(0,window.isNaN)(this.J)?(this.J=this.F+3600,this.o.Zf(this.J)):this.J<=this.F+1800&&(this.J+=1800,this.o.Zf(this.J));else{var a=Math.max(this.A.B.index.rg(),this.B.B.index.rg());(!(0,window.isFinite)(this.J)||this.J!=a)&&0<a&&(this.o.Zf(a),this.J=a)}if(!this.isDisposed())if(a=this.D,a.isLive&&At()-a.G>=a.D)3==this.D.F?this.hd(!0,"manifest.net.retryexhausted",{rc:this.D.H.toString()}):(this.D.M(),gK(this));
else{if(this.C.Y&&At()-this.D.K>=1E3*this.C.Y&&(this.o&&!gw(this.o)?Math.min(My(this.o.A.buffered,this.F),My(this.o.o.buffered,this.F)):0)>=this.C.ma){var a=this.D,b=a.o,c;for(c in b)ls(b[c].F);a.K=At()}this.D.isLive&&(sJ(this.B)||sJ(this.A))&&(c=lK(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?gK(this):(XJ(this),ZI(this.B),ZI(this.A),this.D.A&&(tJ(this.B),tJ(this.A)),this.A.B.B||(!this.K||TN(this.H)?UJ(this):gK(this)),!this.o||YJ(this,this.A,this.o.o)||
YJ(this,this.B,this.o.A)||((c=kK(this,this.B,this.o.A,null,this.A.G))&&!this.Z&&(this.Z=K(),TJ(this,"vda"),this.W&&$u()),a=Ky(this.o.A.buffered,this.F+RJ.o),(0,window.isNaN)(a)&&!hJ(this.B)&&this.o.o.buffered.length||(hJ(this.B)&&(a=window.NaN),a=kK(this,this.A,this.o.o,a,null),c|=a,a&&!this.W&&(this.W=K(),TJ(this,"ada"),this.Z&&$u())),hJ(this.B)&&hJ(this.A)&&fw(this.o)&&!hw(this.o)&&(a=this.o,fw(a)&&a.B.endOfStream(),PN(this.H)),c&&!jw(this.o)&&fK(this)),this.C.fa||(nK(this,this.B,FI(this.G)),nK(this,
this.A,GI(this.G))),this.B.B.D||this.A.B.D?this.hd(!0,"net.retryexhausted"):($J(this,this.B,this.A)&&cK(this,this.B,this.A),$J(this,this.A,this.B)&&cK(this,this.A,this.B),this.C.Ua&&this.O&&!this.K&&TN(this.H)&&(c=this.O,this.O="",a=Xe(c),pj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:y(this.hd,this,!1,"pathprobe.net",{shost:a})})),this.D.B&&gK(this)))}};
f.Xi=function(a){a=(a=a?this.A:this.B)&&a.C;this.hd(!0,"fmt.unplayable",a?ts(a):void 0)};
f.seek=function(a){if(!this.isDisposed()&&!this.B.K&&!this.A.K){XJ(this);this.wa=At();this.B.B=FI(this.G);var b=mK(this,this.B,a,this.o&&this.o.A);this.A.B=GI(this.G);var c=mK(this,this.A,b,this.o&&this.o.o);this.F=Math.max(a,b,c);this.M=!0;fK(this)}};
f.T=function(){WJ(this);this.A&&(jJ(this.A),jJ(this.B));ui(this.ia);this.B=this.A=null;RJ.N.T.call(this)};
f.hd=function(a,b,c){this.isDisposed()||(this.S("error",new Rv(b,a,c)),a&&(this.o&&fw(this.o)&&(a=this.o,fw(a)&&a.B.endOfStream("network")),this.dispose()))};A(qK,G);f=qK.prototype;f.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.J=c;this.A=d};
f.wG=function(a){this.G.call(this.A,new window.Uint8Array(a.message))};
f.YA=function(){};
f.aq=function(a,b){vi(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.F.call(this.A,c)};
f.zq=function(a){this.G.call(this.A,a.message)};
f.yq=function(a){var b;this.o?(b=this.o.error.code,a=this.o.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.F.call(this.A,";c."+b+";sc."+a)};
f.xq=function(){this.J.call(this.A)};
f.update=function(a){this.C?this.C.update(a).then(null,qi(y(this.aq,this,"t.u"))):this.o?this.o.update(a):this.D.addKey?this.D.addKey(this.K.B,a,this.H,this.sessionId):this.D.webkitAddKey(this.K.B,a,this.H,this.sessionId)};
f.T=function(){this.D=null;qK.N.T.call(this)};A(rK,G);f=rK.prototype;
f.createSession=function(a){var b=a.o;if(this.o.A){var c=this.G.createSession(),b=c.generateRequest(a.contentType,b),c=new qK(null,null,null,c,null);b.then(null,qi(y(c.aq,c,"t.g")));return c}if(Zt(this.o)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.C.createSession("video/mp4",b,c);return new qK(null,null,null,null,b)}if($t(this.o)){c=
b.subarray(4);c=String.fromCharCode.apply(null,new window.Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];a="";for(var d=0;d<c.length;d+=2)a+=String.fromCharCode((0,window.parseInt)(c.substr(d,2),16));for(var e=this.o.fairPlayCert,c=new window.Uint8Array(new window.ArrayBuffer(e.length)),d=0;d<e.length;d++)c[d]=e.charCodeAt(d);for(var d=new window.ArrayBuffer(2*a.length),e=new window.Uint16Array(d),h=0;h<a.length;h++)e[h]=a.charCodeAt(h);a=new window.Uint8Array(d);d=
0;h=new window.ArrayBuffer(b.byteLength+4+a.byteLength+4+c.byteLength);e=new window.Uint8Array(h);h=new window.DataView(h);e.set(b);d+=b.byteLength;h.setUint32(d,a.length,!0);d+=4;e.set(a,d);d+=a.length;h.setUint32(d,c.byteLength,!0);e.set(c,d+4);b=this.C.createSession("video/mp4",e);return new qK(null,null,null,null,b)}this.A.generateKeyRequest?this.A.generateKeyRequest(this.o.B,b):this.A.webkitGenerateKeyRequest(this.o.B,b);return this.B=new qK(this.A,this.o,b,null,null)};
f.zG=function(a){var b=vK(this,a);b&&b.zq(a)};
f.yG=function(a){var b=vK(this,a);b&&b.yq(a)};
f.xG=function(a){(a=vK(this,a))&&a.xq()};
f.T=function(){this.A=null;rK.N.T.call(this)};wK.prototype.get=function(a){a=xK(this,a);return-1!=a?this.values[a]:null};
wK.prototype.remove=function(a){a=xK(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
wK.prototype.removeAll=function(){this.keys=[];this.values=[]};
wK.prototype.set=function(a,b){var c=xK(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};A(BK,G);f=BK.prototype;f.vs=function(a){this.G=a};
f.pF=function(a){if(!this.isDisposed()){this.F||(this.F=!0,this.o.S("newsession",this));if(Zt(this.A)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=new window.Uint8Array(gG(a.childNodes[0].data))}if($t(this.A))for(b=eG(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,
qb:this.bB,onError:this.mq,context:this};b=this.H;this.G&&(b=mf(b,"access_token",this.G));pj(b,a)}};
f.nF=function(){this.isDisposed()||this.D||(this.o.S("sessionready"),this.D=!0)};
f.bB=function(a){if(!this.isDisposed())if(0!=a.status&&a.response){a=new window.Uint8Array(a.response);var b=String.fromCharCode.apply(String,a.subarray(0,16384)),c=b.indexOf("\r\n"),d=b.indexOf("\r\n\r\n"),e;-1==d?a=null:(e=b.slice(0,c).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==e?a=null:(e=ab(e[1]),b=Ls(b.slice(c+2)),a=null==b?null:new zK(e,b,a.subarray(d+4))));a?0!=a.o?DK(this,"drm.auth","t.f;c."+a.o,Gy(a.o)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,b=null,(c=a.headers["Heartbeat-Url"])&&
(b=new yK(c,(0,window.parseInt)(a.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(a.headers["Heartbeat-Num-Retries"],10)||4)),(d||b)&&this.o.S("newlicense",d,b),$t(this.A)&&(a.message=new window.Uint8Array(gG(String.fromCharCode.apply(null,a.message)))),this.B.update(a.message)):DK(this,"drm.net","t.p","YTP_ERROR_SERVER_ERROR")}else this.mq(a)};
f.oF=function(a){this.isDisposed()||DK(this,"drm.keyerror","t.s"+a)};
f.mq=function(a){DK(this,"drm.net","t.r;c."+a.status)};
f.T=function(){this.o=null;BK.N.T.call(this)};A(GK,Gj);f=GK.prototype;f.KA=function(a){a=new EK(new window.Uint8Array(a.initData),a.initDataType);IK(this,a,!0)};
f.rB=function(a){IK(this,new EK(a.initData,a.contentType),!0)};
f.jB=function(){this.isDisposed()||(this.F=!0,this.A.length&&HK(this,this.A[0]))};
f.Wz=function(a){if(!this.isDisposed()){vi(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.S("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
f.tB=function(a,b){a&&jb(a,"HD")&&!uu(this.D)&&!Zt(this.o)&&(this.D=vu,this.S("qualitychange"));b&&!this.P&&(this.P=b,this.S("heartbeatparams",b))};
f.uB=function(){this.isDisposed()||(this.A.shift(),this.A.length&&HK(this,this.A[0]))};
f.dC=function(){if(Zt(this.o)&&(this.M--,0==this.M)){var a=this.B;a.A.msSetMediaKeys(a.C)}};
f.T=function(){this.o.A&&this.G.setMediaKeys(null);this.G=null;this.A=[];F(this.C.values,function(a){a.dispose()});
this.C.removeAll();GK.N.T.call(this)};JK.prototype.D=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
JK.prototype.F=function(a){return"r3a="+Math.floor(this.o.lengthSeconds%Ya(a.c3a))};
JK.prototype.C=function(a){a=Ya(a.c);var b;b=r("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};UK.prototype.isEmpty=function(){return this.endTime==this.startTime};A(YK,Gj);YK.o=1;YK.A=10;YK.B=5;YK.C=5;f=YK.prototype;f.T=function(){ti(this.U);ui(this.Fa);$K(this);nL(this);ZK(this);qL(this);Nb(this.da,this.o);this.P=null;this.ua=!1};
f.jh=function(a,b){this.Z.length=0;this.ea.reset();this.O.reset();this.M=this.ia=window.NaN;this.aa=null;this.gb=!1;this.A&&nH(this.A);uL(this);$K(this);nL(this);ZK(this);Mb(this.o);if(2==this.L||DH.test(this.X.D))a.Kp=!0;this.X.Qf&&(a.autonavState=this.o.autonavState);this.o=a;this.o.subscribe("dataupdated",this.EC,this);this.o.subscribe("dataloaded",this.so,this);this.o.subscribe("dataloaderror",this.Fj,this);this.o.subscribe("onStatusFail",this.DC,this);if(a.vf&&a.vf>a.startSeconds){var c=a.vf;
this.P&&(this.F.sh(this.P),this.P=null);this.P=new gq(1E3*c,0x7ffffffffffff);hq(this.P).subscribe("onEnter",this.$f,this);this.F.bb([this.P])}$K(this);this.o.Xe||(c=new VK(this.o,this.X,b,y(this.og,this),y(this.getCurrentTime,this),y(this.gx,this),y(this.Ia.La,this.Ia),y(this.Zm,this),y(this.vx,this)),this.B=new sB(c));this.ua=!1;KL(this,"newdata");eL(this,new Qy)};
f.getVideoData=function(){return this.o};
f.V=function(){return this.X};
f.so=function(){if(Ex(this.o))Ex(this.o),this.ea.o=!0,this.Z=sb(this.o.K),xx(this.o,this.X),rx(this.o)&&(this.o.Ga&&(this.W=new rI),this.o.A.o&&EL(this),DL(this,"i")),KL(this,"dataloaded"),this.O.A&&fL(this);else if(this.o.wa){var a=this.o,b=this.X.experiments;a.ae=!0;a.wa=!1;Rr.test(a.G)||vi(Error("DASH MPD Origin invalid: "+a.G),"WARNING");var c;if(b.F)c=a.G;else{c=a.G;var d=Xe(c);c=0>bx.C.indexOf(d)?Lp(c):Mp(c)}(d=b.dc("html5_dash_mpd_version"))&&(c=ff(c,{mpd_version:d}));!a.isLowLatencyLiveStream&&
b.ga("html5_live_disable_dg_pacing")&&(c=ff(c,{pacing:0}));Lt(new Bt(c,b.ga("html5_live_nonzero_first_segment_start_time")),c).then(a.CA,a.BA,a);Bv("mrs")}else if(this.o.W)this.B&&(a=this.B.B,lB(a,"protected"),a.o.videoData.J?a.vr():a.o.videoData.subscribe("dataloaded",a.vr,a)),a=this.o,b=this.X.G,c=this.X.experiments,Ct(a.o),b=new fu(Ew(b,a.o),c),H(a,b),a.W=!1,a.ae=!0,a=y(a.kz,a),b.C=a,du(b.G.ga("edge_nonprefixed_eme"))?ju(b):ku(b);else if(!this.o.ae){a:switch(b=this.X,a=this.o,c=this.Ia.La(),d=
SK(this.X),a.P){case 38:b=a.videoId.indexOf(":");b=ff("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.kf});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=OH.prototype.baseYtUrl&&(c=b.baseYtUrl);b=ff(c+"get_video_info",{docid:a.videoId,authuser:a.Bb,authkey:a.gb,eurl:b.W});break a;case 33:b=ff("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:var e={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:b.W,
ps:b.o,el:b.Aa,hl:b.O,list:a.playlistId,agcid:a.jf,aqi:a.hf,sts:16861,lact:mB()};b.forcedExperiments&&(e.forced_experiments=b.forcedExperiments);a.L?e.vvt=a.L:a.oauthToken&&(e.access_token=a.oauthToken);b.adFormat&&(e.adformat=b.adFormat);b.Ma&&(e.cc_lang_pref=b.Ma);b.da&&2!=b.da&&(e.cc_load_policy=b.da);b.mute&&(e.mute=b.mute);a.ua&&2!=b.sd&&(e.iv_load_policy=a.ua);a.Oi&&(e.itct=a.Oi);a.Lc&&(e.autoplay="1");a.Pi&&(e.autonav="1");a.Gl&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ka&&(e.ytrcc=a.ka);
a.Ll&&(e.utpsa="1");a.isFling&&(e.is_fling="1");a.vnd&&(e.vnd=a.vnd);c.width&&(e.width=c.width);c.height&&(e.height=c.height);a.ng&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");b.fa&&(e.content_v=b.fa);a.Pf&&(e.livemonitor=1);b.Bb&&(e.authuser=b.Bb);b.pageId&&(e.pageid=b.pageId);b.Y&&(e.ei=b.Y);b.Pb&&(e.ssl_stream="1");b.L&&(e.iframe="1");a.Ej&&(e.tst=a.Ej);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.Va&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);b.Va&&a.Ol&&
(e.live_manifest_duration=a.Ol);b.Va&&a.wb&&(e.cyc=a.wb);0!=d&&b.experiments.ga("send_presence_signal_vis_desktop")&&(e.vis=d);b.enableSafetyMode&&(e.enable_safety_mode="1");qa(e,b.A);b=ff(b.baseYtUrl+"get_video_info",e)}a=this.o;c=this.X.experiments.L;d=this.X.experiments.o;e=!this.X.experiments.ga("disable_gvi_cors");a.isDisposed()||(a.Pb=b,a.jb=!!c,a.ye=!!d,a.ud=!!e,a.ae=!0,a.mr())}};
f.$f=function(a){this.pauseVideo();a=0==a?new Qy:new Qy(14);eL(this,a)};
f.logEvent=function(a,b){if(this.B){var c=this.B,d={};d.rt=tB(c.o).toFixed(3);qa(d,vB(c.o));var e=c.o.o,h=c.o.videoData,k=h.Ra||e.ud,k={ns:e.ea,html5:"1",el:e.Aa,ps:e.o,fexp:e.experiments.experimentIds.join(",")||void 0,feature:k||void 0,ctrl:h.ea||void 0,ytr:h.da||void 0,list:h.playlistId,d:e.$a,f:e.Fa};if(e.experiments.ga("legacy_autoplay_flag")?e.K:h.Lc)k.autoplay="1";h.subscribed&&(k.subscribed=h.subscribed);qa(d,k);delete d.fexp;qa(d,a);d=hj(c.o.o.baseYtUrl+"player_204",d);zB(c,d,b)}};
f.lj=function(a){this.Z=this.Z.filter(function(b){return a!=b});
this.O.A&&fL(this)};
f.getPlayerState=function(){return this.C};
f.Zm=function(){var a=this.getVideoData(),b=a.F;if(!b)return a.U;var c=eb(this.o.A?this.o.A.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.U};
f.XA=function(a){if(this.H){var b=this.H;if(Zt(b.o)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var h=d.getUint32(e);if(1>h)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+h),l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=h}}a=c;0!=a.length&&IK(b,new EK(a),!1)}}};
f.fB=function(a){lL(this,a.reason,a.video.info,a.audio.info);var b=zx(this.o);b&&b.D(a.video);this.W&&(this.W.A=a.audio.index)};
f.eB=function(a){kL(this,a.reason,a.audio.info)};
f.Fj=function(a){if("fmt.unplayable"==a.errorCode&&this.A){var b=this.A.getErrorCode();a.details.merr=b?b.toString():"0"}qx(this.o)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)qx(this.o),this.o.Qd&&!this.$a&&(this.$a=!0,this.S("signatureexpired"));else if(FL(a)&&this.o.A.A)a=this.o,a.A=a.A.A,zL(this),yL(this);else if(a.o)b=this.D?this.D.G.o:null,b=FL(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,bL(this,a.errorCode,b,Sv(a));else if(this.B)this.B.onError(a.errorCode,
Sv(a))};
f.pauseVideo=function(a){U(this.C,64)&&!a&&(U(this.C,8)?eL(this,Zy(this.C)):eL(this,Yy(this.C,8)));this.A&&(U(this.C,128)||(a?eL(this,Xy(this.C,256)):eL(this,Zy(this.C))),this.A.pause())};
f.Zr=function(){if(!(0,window.isNaN)(this.M)&&this.A){var a=this.og();!this.o.Ga&&this.M>=Math.floor(a)?(this.M=a,this.S("endseeking",this),this.pauseVideo(!0),this.$f()):(this.D&&this.D.seek(this.M),(!this.o.Ga||1<=this.A.o.readyState)&&jH(this.A,this.M))}this.da&&(this.da.dispose(),this.da=null);U(this.C,32)&&(eL(this,Xy(Yy(this.C,32),16)),this.S("endseeking",this))};
f.getCurrentTime=function(){if(!(0,window.isNaN)(this.M))return this.M;var a=0;this.A&&1<=this.A.o.readyState?a=this.A.getCurrentTime():this.o&&(a=this.X.experiments.ga("new_ended_replay")?this.o.startSeconds||0:this.o.Cj||this.o.startSeconds||0);this.X.experiments.ga("new_ended_replay")&&(a=je(a,Bx(this.o),GL(this,!1)));return a};
f.og=function(){return this.o.lengthSeconds?this.o.lengthSeconds:GL(this,!1)?GL(this,!1):0};
f.gx=function(){var a=new TK;if(this.ka&&this.D){var b=this.ka;a.B=b.F;a.F=b.G;a.o=wI(b);b=this.D;b.o&&!gw(b.o)&&(a.A=My(b.o.A.buffered,b.F),a.C=My(b.o.o.buffered,b.F));a.o=zI(b.L);wI(b.H);xI(b.H);vI(b.H)}else this.A&&(a.A=Ty(this.A));this.W&&sI(this.W,a);return a};
f.EC=function(){if(this.H){var a=this.H,b=this.o.oauthToken;a.K=b;a.S("oauthtoken",b)}pL(this);KL(this)};
f.DC=function(a){bL(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
f.AE=function(a){var b=a.target.o.src;if(this.A&&this.A.o.src&&this.A.o.src==b){var c=!1;switch(a.type){case "error":if(this.X.jf&&2==this.A.getErrorCode()){(0,window.setTimeout)(y(function(){this.A&&(this.o.Vf&&this.A.load(),yL(this))},this),500);
if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":var d=this.A.o.duration;(!this.K||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.o.lengthSeconds!=d&&(this.o.lengthSeconds=d,KL(this));break;case "ratechange":this.D&&(this.D.L.B=Math.max(1,this.A.o.playbackRate));this.F.gg();break;case "loadedmetadata":this.o.startSeconds&&(0<(this.A.o.seekable||Hy()).length?this.X.experiments.ga("new_ended_replay")?iL(this,this.o.startSeconds,!0):this.A.o.currentTime=this.o.startSeconds:(this.ia=
this.o.startSeconds,this.pauseVideo(!0)));case "loadstart":ui(this.Fa);this.uk()||(this.Fa=si(y(this.uk,this),100));break;case "progress":ML(this);case "suspend":HL(this);this.S("onLoadProgress",this,IL(this));U(this.C,8)&&(this.rb?c=!0:this.wb&&((0,window.isNaN)(this.Wa)||this.Wa+1<this.A.getCurrentTime())&&(c=!0,this.Wa=this.A.getCurrentTime()));break;case "seeked":NL(this);break;case "seeking":this.D&&this.D.seek(this.A.getCurrentTime());RK(this.Ca,this.A.getCurrentTime());break;case "playing":this.G.A("plev");
this.fb&&(this.fb=!1,vL(this)||iL(this,window.Infinity,!0));break;case "timeupdate":this.gb=!0;this.uk();NL(this);HL(this);if(!this.A||this.A.o.src!=b)return;this.S("onVideoProgress",this,this.A.getCurrentTime());this.W&&this.J&&tI(this.W,this.A.getCurrentTime());break;case "waiting":if(0<(this.A.o.played||Hy()).length&&0==mH(this.A).length&&0<this.A.getCurrentTime()&&5>this.A.getCurrentTime()&&this.D)return}this.A&&this.A.o.src==b&&(this.S("videoelementevent",a),a=Vy(this.C,a,this.Ca,this.xb),eL(this,
a),c&&this.A.play())}};
f.Mz=function(a){a="available"==a.o.availability;a!=this.Ra&&(this.Ra=a,this.S("airplayavailabilitychange"))};
f.Nz=function(){var a=!!this.A.o.webkitCurrentPlaybackTargetIsWireless;a!=this.Ma&&(function(){this.X.Il=a}.apply(this),this.Ma=a)&&(xx(this.o,this.X),DL(this,"m"));
this.S("airplayactivechange")};
f.uk=function(){var a=this.A;a&&this.gb&&!this.o.Qd&&!Cv("vfp",this.G.o)&&2<=a.o.readyState&&!a.o.ended&&0<Ly(mH(a))&&this.G.A("vfp");if((a=this.A)&&!this.o.Qd&&0<a.o.duration&&(!Cv("pbp",this.G.o)&&a.o.paused&&2<=a.o.readyState&&0<Ly(mH(a))&&this.G.A("pbp",void 0),0<a.getCurrentTime())){ui(this.Fa);ti(this.U);this.U=window.NaN;this.o.Qd=!0;LL(this);if(this.B){a=this.B;if(!a.C){var b=wB(a,"playback");a.J=[10+a.o.videoData.Dj,10,10,40+a.o.videoData.Ym-a.o.videoData.Dj,40];var c=a.A;ui(c.F);c.F=window.NaN;
c.F=si(y(c.update,c),100);c.D=tB(c.A);c.C=$A(c.A);b.A=uB(a,!0);b.Ia=!0;b.send();a.o.videoData.Z&&(b=a.o.o,c=a.o.videoData,b=ff(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Z,oid:c.qd,ptchn:c.od,pltype:c.rd,content_v:b.fa}),zB(a,b));a.o.videoData.enableCardio&&(a.kj("playback"),a.D||FB(a));a.o.videoData.$e||BB(a);a.C=!0;a=a.A;a.o=a.A.A();a.D=tB(a.A);.5<a.o-a.B&&(a.B=a.o)}ri(y(this.hm,this),4500)}this.S("playbackstarted");Vu()&&
Zu();return!0}return!1};
f.DA=function(){this.Ja&&(this.fa.ya(this.Ja),delete this.Ja,lH(this.A))};
f.Ix=function(){if(this.A){var a=this.getCurrentTime();if(U(this.C,8)&&Wy(this.Ca,a,At(),Ty(this.A))){var b=this.og();b&&1>Math.abs(b-a)?this.$f():eL(this,Xy(this.C,1))}else U(this.C,4)&&az(this.C)&&5<Ty(this.A)&&eL(this,Yy(this.C,1));HL(this)}};
f.vx=function(){this.o.Ga||this.S("connectionissue")};
f.nD=function(){jH(this.A,this.A.getCurrentTime()+.1)};
f.sB=function(a){var b={};qa(b,this.X.A);b.cpn=this.o.clientPlaybackNonce;this.o.L&&(b.vvt=this.o.L);this.X.Bb&&(b.authuser=this.X.Bb);this.X.pageId&&(b.pageid=this.X.pageId);hc(a.C,b);AK(a,a.H)};
f.$A=function(a,b,c){c=p(c)?c:"YTP_ERROR_LICENSE";b=b.substr(0,256);bL(this,a,c,b)};
f.aB=function(){DL(this,"r");KL(this)};
f.zE=function(a){this.S("heartbeatparams",a)};
f.nq=function(){if(!this.o.Qd&&this.A){0<this.A.o.readyState&&5<=Ty(this.A)&&(eL(this,Xy(this.C,1)),this.S("playbackstalledatstart"));if(this.B)this.B.onError("qoe.start15s");this.S("loadsofttimeout")}};
f.hm=function(){if(!this.ua){var a=new JK(this.o),b;"c1a"in a.B?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)ri(y(this.hm,this),4500);else{var c;if(a.o&&a.o.ia){b=[a.o.ia];for(c in a.A)if(a.B[c]&&a.A[c]){var d=a.A[c](a.B);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.L||(b=wB(a,"atr"),b.L=c,b.send(),a.L=!0),this.ua=!0)}}};
f.yE=function(){return this.A?this.A.o.playbackRate:1};var w$={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"drm.unavailable":5};A(QL,G);f=QL.prototype;f.EE=function(){return Wb(this.B)};
f.FE=function(){return Wb(this.C)};
f.la=function(){return this.o};
f.addEventListener=function(a,b){if(w(b)){var c=b,d=function(){r(c).apply(window,arguments)};
b=this.F[c]=d}this.app.ua.subscribe(a,b);this.app.L.subscribe(a,b)};
f.Sw=function(a,b){var c=w(b)?a+b:a+ma(b);if(!this.D[c]){var d;w(b)?d=function(){r(b).apply(window,arguments)}:d=b;
var e=y(function(a){d({target:this.A,data:a})},this);
this.D[c]=e;this.app.ua.subscribe(a,e);this.app.L.subscribe(a,e)}};
f.removeEventListener=function(a,b){if(w(b)){var c=this.F[b];cc(this.F,b);b=c}Be(this.app.ua,a,b);Be(this.app.L,a,b)};
f.Tw=function(a,b){var c=w(b)?a+b:a+ma(b),d=this.D[c];d&&(Be(this.app.ua,a,d),Be(this.app.L,a,d),cc(this.D,c))};
f.getPlayerState=function(){return z9(this.app)};
f.Sb=function(a,b){I9(this.app,!0,this.playerType);X9(this.app,a,b,void 0,this.playerType)};
f.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
f.vh=function(){return w9(this.app,this.playerType)};
f.Ab=function(){return this.app.Y.volume};
f.setVolume=function(a){a=je(Math.floor(a),0,100);T9(this.app,{volume:a,muted:this.Cc()})};
f.Cc=function(){return this.app.Y.muted};
f.mute=function(){T9(this.app,{muted:!0,volume:this.Ab()})};
f.unMute=function(){T9(this.app,{muted:!1,volume:Math.max(5,this.Ab())})};
f.kd=function(){I9(this.app,!0,this.playerType);W9(this.app,this.playerType)};
f.pauseVideo=function(){var a=this.app,b=this.playerType;if(kM(a.Qa)){var c=a.ea.play_pause?a.ma:null;c?c.de("control_pause"):a.pauseVideo(b)}};
f.Mj=function(){var a=this.app;ny(a.X)&&(a.o.Oa()&&ly(a.o),a.o.S("pageTransition"));V9(a)};
f.BE=function(){};
f.GE=function(){return this.app.O};
f.xh=function(a){s9(this.app,a)};
f.Gj=function(){return this.app.X.Z?t9:[1]};
f.Hj=function(){var a=kq(this.app,this.playerType);return a&&(a=a.getVideoData().B)?a.video.quality:"unknown"};
f.Lj=function(a){var b=this.app,c=kq(b,this.playerType);c&&!b.X.isMobile&&(a=tu(a,a,!0),DL(c,"p",a))};
f.bs=function(){var a=kq(this.app,this.playerType);return a?(a=fi(BL(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
f.JE=function(){return this.bn()};
f.KE=function(){return 1};
f.bn=function(){return n9(this.app)};
f.LE=function(){return 0};
f.setSize=function(){this.app.G.ve()};
f.gs=function(a){M9(this.app,a?2:1)};
f.ks=function(a){M9(this.app,a)};
f.RE=function(a){var b=this.app;b.X.Jl=a;b.o.S("minimized")};
f.Ij=function(a){var b=this.app.D;b.isAvailable(a)&&(a=TL(b,a))&&!a.loaded&&a.load()};
f.ms=function(a){var b=this.app.D;b.isAvailable(a)&&(a=TL(b,a))&&a.loaded&&a.unload()};
f.cn=function(a,b,c){a=F9(this.app,nI(a,b,c),this.playerType);I9(this.app,a,this.playerType)};
f.$m=function(a,b,c){var d=this.playerType;J9(this.app,new bx(nI(a,b,c)),d)};
f.OE=function(a,b,c){a=oI(a,b,c);b=F9(this.app,a,this.playerType);I9(this.app,b,this.playerType);b=this.app;(a=(new N(a.mediaContentUrl)).o)&&PH(b.X,a)};
f.DE=function(a,b,c){a=oI(a,b,c);b=this.playerType;J9(this.app,new bx(a),b);b=this.app;(a=(new N(a.mediaContentUrl)).o)&&PH(b.X,a)};
f.getVideoUrl=function(){var a=this.app.V();if(a.C)return"";var b=P4(this.app),c=void 0;b.Ga||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.oe()||void 0,c)};
f.an=function(){return y9(this.app)};
f.cs=function(){var a=this.app,b=P4(a),c=a.G.La(),a="https://"+VH(a.X)+"/embed/"+b.videoId;b.playlistId&&(a=ff(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+Fa(a)+'" frameborder="0" allowfullscreen></iframe>'};
f.$r=function(a,b,c){return R9(this.app,a,b,c)};
f.es=function(a){a:{for(var b=this.app,c=b.A.F.o.o||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.A.F.sh(e);lq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
f.ds=function(a,b,c,d){var e=this.app;e.Z=!1;K9(e,a,b,c,d);I9(this.app,!0,this.playerType)};
f.CE=function(a,b,c,d){var e=this.app;e.Z=!0;K9(e,a,b,c,d)};
f.Jj=function(){N9(this.app);I9(this.app,!0,this.playerType)};
f.Kj=function(){O9(this.app);I9(this.app,!0,this.playerType)};
f.fn=function(a){P9(this.app,a);I9(this.app,!0,this.playerType)};
f.setShuffle=function(a){var b=this.app.C;b&&b.setShuffle(a)};
f.QE=function(a){var b=this.app.C;b&&(b.K=a)};
f.Zb=function(){var a=this.app.C;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.sb(c);d&&b.push(d.videoId)}return b};
f.HE=function(){var a=this.app.C;return a?a.Kb():-1};
f.oe=function(){var a=this.app.C;return a&&a.D?a.D.toString():null};
f.pe=function(a,b,c){return Z9(this.app,a,b,c)};
f.yb=function(a,b,c){return Z9(this.app,a,b,c)};
f.wh=function(a){return $9(this.app,a)};
f.getVideoData=function(){var a=kq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.oe();b&&(a.list=b);return a};
f.ls=function(){h9(this.app,!0)};
f.ME=function(){h9(this.app,!1)};
f.getAdState=function(){return this.app.getAdState()};
f.NE=function(a){if(a!=this.app.W.args.video_id)return!1;a=(a=kq(this.app,1))?a.getPlayerState():null;return!(!a||!U(a,128)||5!=w$[a.o.errorCode])};
f.IE=function(){var a=this.app.W.clone(),b=a.args,c=P4(this.app),d=ec(c.C);!c.Ga&&0<c.startSeconds&&(d.start=c.startSeconds);qa(b,d);return a};
f.SE=function(a,b){var c=this.app;c.J&&v5(c.J,a,b);YH(c.X)&&6!=c.M&&(c.X.Eg=!kb(a),c.X.Eg?(1!=c.M&&3!=c.M||!b||m9(c,c.H),a.length&&1!=c.M&&l9(c)):m9(c,c.J))};
f.destroy=function(){this.app.dispose()};
f.PE=function(){var a=kq(this.app);a&&!U(a.getPlayerState(),128)&&(a.S("internalAbandon"),$K(a),ZK(a))};
f.T=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;QL.N.T.call(this)};A(RL,QL);f=RL.prototype;f.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
f.$r=function(a,b,c,d,e){return R9(this.app,a,b,c,d,e)};
f.TE=function(a,b,c,d){eH(this.app.V().J,a,{Je:b,hg:c,mi:d})};
f.UE=function(a){var b=this.playerType;J9(this.app,new bx(a),b)};
f.getPlayerState=function(a){return z9(this.app,a)};
f.Nj=function(a){F9(this.app,a,this.playerType)};
f.cF=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.P&&b.P.getVideoData().videoId==a.videoId||(a=new bx(a),G9(b,a))};
f.kd=function(){W9(this.app,this.playerType)};
f.Sb=function(a,b){X9(this.app,a,b,void 0,this.playerType)};
f.ds=function(a,b,c,d){var e=this.app;e.Z=!1;K9(e,a,b,c,d)};
f.Jj=function(a){N9(this.app,a)};
f.Kj=function(a){O9(this.app,a)};
f.fn=function(a){P9(this.app,a)};
f.Qc=function(a,b,c){var d=this.app,e=this.playerType;X9(d,d.getCurrentTime()+a,b,c,e)};
f.jF=function(a){if(a){var b=this.oe();if(!b||b==a.list){var c=a.video;(b=this.app.C)?this.app.Qa.Oa()&&((c=c[b.Kb()])&&c.encrypted_id!=b.sb().videoId||(a.index=b.Kb())):d9(this.app,{list:a.list,index:a.index,playlist_length:c.length});Vx(this.app.C,a)}}else a=this.app,e9(a),a.o.Ba("onPlaylistUpdate")};
f.iF=function(){uH()};
f.kF=function(a){var b=kq(this.app,this.playerType||1);b&&(b=b.getVideoData(),hx(b,a),b.S("dataupdated"))};
f.ZE=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec};
f.XE=function(){var a=this.app.V();return{Eb:a.Eb,Va:a.Va}};
f.getVideoData=function(){var a=RL.N.getVideoData.call(this),b=kq(this.app,this.playerType),b=b?b.getVideoData():{};a.backgroundable=b.backgroundable;a.cpn=b.clientPlaybackNonce;a.isLive=b.Ga;a.itct=b.Oi;return a};
f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):RL.N.getCurrentTime.call(this)};
f.vh=function(a){return a?w9(this.app,a):RL.N.vh.call(this)};
f.bf=function(){var a=this.app.getVideoData(),b=kq(this.app),c=jM(this.app.Qa),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),h=this.vh(),k=kq(this.app,void 0);if(k)var l=oH(k.A),k=(0,window.isNaN)(l)?k.getCurrentTime():l;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:h,loaded:k,seekableEnd:GL(b,!0),seekableStart:Bx(b.o)}};
f.bn=function(a){return n9(this.app,a)};
f.canPlayType=function(a){return this.app.canPlayType(a)};
f.dF=function(a,b){v9(this.app,a,this.playerType,b)};
f.WE=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.o&&b.Ga){var c=b.o.o[b.B.id];c&&c.index?(b=c.index.Bf(a),c=c.index.re(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};
f.pg=function(a){var b=this.app,c=kq(b,this.playerType);c&&b.X.xa.contains(a.toString())&&c.B&&(b=wB(c.B,"engage"),b.B=a,b.send(void 0))};
f.qg=function(a,b){var c=TL(this.app.D,"iv-module");c&&HF(c)&&JF(c,a,b)};
f.aF=function(a,b){var c=this.app;c.da&&(c=c.da,c.W&&C6(c.W,a,b))};
f.yh=function(){return u9(this.app,this.playerType)};
f.gn=function(a){var b=this.app,c=this.playerType,d=b.ea.set_audio_track?b.ma:null;if(d)d.de("control_set_audio_track",a);else{if(c=b=kq(b,c))if(c=!b.isDisposed()&&!U(b.C,128)&&b.o.A.o)c=b.D,c.isDisposed()?a=!0:(d=c.G,a=a.id,d.D="m",d.C=d.F.o[a],d.L=GI(d),c.S("audioformatchange",new BI(d.L,d.B,d.D)),c.o&&!c.o.o.remove?a=!1:(nK(c,c.A,GI(c.G)),lJ(c.A),fK(c),a=!0)),c=!a;c&&(zL(b),yL(b))}};
f.os=function(){var a=kq(this.app,this.playerType);return a.o.A?a.o.A.audioTracks:[]};
f.YE=function(){var a=kq(this.app,this.playerType);return a&&a.getVideoData().B?yu(OK(a.wa,a.o)):"unknown"};
f.fF=function(a,b){Y9(this.app,a,b)};
f.VE=function(){var a=TL(this.app.D,"fresca");a&&a.C.C()};
f.hF=function(){var a=this.app.da;a.Fa=!1;a.ig()};
f.bF=function(){var a=this.app.da;a.Fa=!0;a.ig()};
f.$E=function(){return SK(this.app.V())};
f.gF=function(){return this.app.V().experiments.ga("send_presence_signal_vis_desktop")};
f.qs=function(a){return fF(this.app.G,a)};
f.eF=function(a){this.app.V().enableSafetyMode=a};
f.uD=function(a){Ah();U9(this.app,a?2:0)};
f.ho=function(){var a=kq(this.app),b=a.X.experiments.ga("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.D&&(a.D.K=!0,b||VJ(a.D));if(a=TL(this.app.D,"endscreen"))a=uy(a)?!!a.A.F.A:!1,a&&WL(this.app.Qa,!0)};
f.Mj=function(){var a=this.app.V();!a.experiments.ga("disable_new_pause_state3")&&ky(a)&&"blazer"!=a.o?this.ho():RL.N.Mj.call(this)};A(SL,RL);f=SL.prototype;f.cn=function(a,b,c){this.Nj(nI(a,b,c))};
f.Da=function(){return gF(this).element};
f.V=function(){return this.app.V()};
f.Zb=function(){return this.app.C};
f.getVideoData=function(a){return(a=kq(this.app,a||this.playerType))&&a.getVideoData()};
f.Oa=function(){return this.app.V().Qf};
f.addEventListener=function(a,b,c){this.app.L.subscribe(a,b,c)};
f.removeEventListener=function(a,b,c){Be(this.app.L,a,b,c)};
f.S=function(a,b){.01>Math.random()&&0<this.app.ua.Ya(a)&&(!this.V().Va||"videodatachange"!=a&&"audiotrackchanged"!=a&&"resize"!=a)&&vi(Error("External URL listening for private event ("+a+"): "+this.V().D,"WARNING"));this.app.L.S.apply(this.app.L,arguments)};
f.Ba=function(a,b){this.app.L.S.apply(this.app.L,arguments)};
f.Lj=function(a){v9(this.app,a,this.playerType)};
f.an=function(a){return y9(this.app,a)};
f.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),h=2==e;d&&h&&(h=!1,e=1);d=this.getVideoData(e);var k;a||d.Ga||(k=Math.floor(this.getCurrentTime(e)));return this.app.V().getVideoUrl(d.videoId,h?void 0:this.oe()||void 0,k,b,c)};
f.qg=function(a,b){var c=TL(this.app.D,"iv-module");c&&JF(c,a,b)};
f.pg=function(a,b){var c=this.app,d=kq(c,this.playerType);d&&c.X.xa.contains(a.toString())&&d.B&&(c=wB(d.B,"engage"),c.B=a,c.send(b))};
f.bb=function(a,b){Q9(this.app,a,b||this.playerType)};
f.lj=function(a){var b=kq(this.app,this.playerType);b&&b.lj(a)};
f.yb=function(a,b,c){return Z9(this.app,a,b,c,!0)};
f.wh=function(a){return $9(this.app,a,!0)};
f.pe=function(a,b,c){return Z9(this.app,a,b,c,!0)};
f.xh=function(a,b){s9(this.app,a,b)};
f.setVolume=function(a){a=je(Math.floor(a),0,100);T9(this.app,{volume:a,muted:this.Cc()},!0)};
f.mute=function(){T9(this.app,{muted:!0,volume:this.Ab()},!0)};
f.unMute=function(){T9(this.app,{muted:!1,volume:Math.max(5,this.Ab())},!0)};A(qM,jq);f=qM.prototype;f.Xa=function(){return!!this.o.getVideoData().spacecastModule};
f.create=function(){qM.N.create.call(this);var a;a:{var b=Zi("yt-accelerator-discover"),b=b&&b.addrmap||{};for(a in b){var c=b[a];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){a="//"+a;break a}}a=null}this.A=a;this.load()};
f.destroy=function(){qM.N.destroy.call(this);this.A=null};
f.load=function(){qM.N.load.call(this);if(this.A){var a=this.o.getVideoData().videoId,b=K();caa(this.A,a,y(this.jy,this,a,b))}else nq(this)};
f.ld=function(a){switch(a){case "getVideo":a=this.o.getVideoData();var b=!!(a&&Cx(a)&&a.B&&a.B.video.o);return{docid:a.videoId,isFastLoad:b}}};
f.jy=function(a,b,c){if(this.A){b=K()-b;var d=!1,e=this.o.getVideoData(),h="unknown",k=mM(c);e.ek=Wb(k);if(c){c.status&&(h=c.status);if(k=nM(this.A,c,e.adaptiveFormats))e.spacecastAdaptiveFormats=k;if(c=nM(this.A,c,e.jg))e.spacecastFormatMap=c;if(k||c)xx(e,this.o.V()),e.M||aaa(this.o),d=yu(e.ih),this.o.Lj(d),d=!0}(c=2==this.o.getPresentingPlayerType())&&!d?td(function(){var a=this.o.app;a.H&&a.H.H&&a.H.LF()},this):nq(this);
Fi("yt-spacecast-cache-watch-video-cached",a,d);Xp("/gen_204?"+df({a:"spacecast",module:"player",status:h,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}),void 0)}};var LM=/^#(?:[0-9a-f]{3}){1,2}$/i,i8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),j8=["none","raised","depressed","uniform","dropShadow"],eaa=["sub","inherit","super"],faa=["left","right","center"],t8=["en_CA","en_US","es_MX","fr_CA"];var x$=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],y$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],E6=[{option:"fontFamily",message:"YTP_FONT_FAMILY",
options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:x$},{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,
text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:x$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:y$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:x$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:y$},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},
{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];A(sM,R);f=sM.prototype;f.getType=function(){return this.type};
f.Hm=function(){Yq(this.element,"100%");Yq(this.element,this.A.offsetWidth+1)};
f.cg=function(a,b){for(var c=0;c<a.length&&a[c]==this.D[c];c++);if(this.D.length>c||this.O!=b)c=0,this.D=[],$g(this.A);for(this.O=b;c<a.length;c++){var d=a[c],e=d.F,h;if(e)if(0<c&&a[c-1].F==e)h=this.A.children[this.A.children.length-1];else{h=window.document.createElement("span");if(e.color){var k=MC(e.color);h.style.color="rgba("+k[0]+","+k[1]+","+k[2]+","+b+")"}e.bold&&(h.style.fontWeight="bold");e.Ml&&(h.style.fontStyle="italic");this.A.appendChild(h)}else h=this.A;for(var e=d.C.split("\n"),k=
this.L.Ag.length,l=0;l<e.length;l++){var m=0<l||!d.H,n=!k||c+1>=k||l+1<e.length;!m||0==c&&0==l||h.appendChild(window.document.createElement("br"));e[l]?(m&&h.appendChild(window.document.createTextNode("\u00a0")),Jf(h,h.innerHTML+e[l]),n&&h.appendChild(window.document.createTextNode("\u00a0"))):!m&&n&&h.appendChild(window.document.createTextNode("\u00a0"))}this.D.push(d)}};
f.toString=function(){return sM.N.toString.call(this)};
f.to=function(){this.D=[];$g(this.A)};A(wM,gq);wM.prototype.toString=function(){return wM.N.toString.call(this)};
A(yM,gq);A(BM,vM);A(CM,vM);A(KM,vM);A(OM,vM);var haa=/NOTE/,gaa=/(?:\r\n|\r|\n){2,}/,iaa=/\r\n|\r|\n/,MM=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;A(SM,G);f=SM.prototype;f.Ho=function(a){var b=this.o.A,c=QM(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
f.Td=function(){return null};
f.seek=function(){};
f.Bm=function(){};
f.T=function(){SM.N.T.call(this);this.Bm()};A(TM,SM);f=TM.prototype;f.Pl=function(a,b){this.isDisposed();var c=this.Mg(a),d=y(function(c){this.B=null;c=new PM(c.responseText);b(c,a)},this);
this.B&&this.B.abort();this.B=pj(c,{format:"RAW",qb:d,withCredentials:!0});this.A&&this.A.ti!=a&&(this.A.Fk=a)};
f.Ql=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)RM(this.o,this.A.captionTracks[b]);a()};
f.Mg=function(a){var b=a.getUrl(),c={};if(this.C||a.C)c.fmt=this.C||"srv"+a.C;a.o&&(c.tlang=a.o.languageCode);return hj(b,c)};
f.Td=function(){return this.A?this.A.ti:null};
f.Ho=function(){return this.A?this.A.Fk:null};
f.T=function(){this.B&&this.B.abort();TM.N.T.call(this)};UM.prototype.contains=function(a){a=Ab(this.sa,a);return 0<=a||0>a&&1==(-a-1)%2};
UM.prototype.length=function(){return this.sa.length/2};A(VM,G);VM.prototype.T=function(){ui(this.B);this.B=window.NaN;this.C=!0;this.D&&this.D.abort()};
VM.prototype.resume=function(){this.C=!1;ui(this.B);this.seek(this.A.getCurrentTime());naa(this)};
VM.prototype.seek=function(a){this.o=cb(this.J.Lg(a).o)};
VM.prototype.K=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.C||null===this.G||(a=new PM(a.responseText,1E3*this.F.o[0].startTime),this.G(a));this.D=this.F=null};A(YM,SM);f=YM.prototype;f.Pl=function(a,b){maa(this.A,function(c){b(c,a)});
this.A.J=this.B.o[a.A];this.A.resume()};
f.Ql=function(a){RM(this.o,new mu({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
f.seek=function(a){this.A.seek(a)};
f.Bm=function(){var a=this.A;ui(a.B);a.B=window.NaN;a.C=!0};
f.Mg=function(){return""};
f.T=function(){this.A.dispose();YM.N.T.call(this)};A(ZM,sM);ZM.prototype.Hm=function(){Yq(this.element,this.F);var a=Math.round((this.L.params.ij||15)*uM(this));this.element.style.maxHeight=a+"px"};
ZM.prototype.cg=function(a,b){var c=this.L.Ag;Yq(this.element,"100%");ZM.N.cg.call(this,c,b);this.F=this.A.offsetWidth+"px";ZM.N.cg.call(this,a,b)};A($M,sM);$M.prototype.Hm=function(){Yq(this.element,"100%");var a=Math.min(oaa(this),this.element.offsetWidth);Yq(this.element,a+"px");Yq(this.K,"100%")};
$M.prototype.cg=function(a){var b=a.length;if(0>=b)this.to();else{for(var c=0;c<b&&0<=this.D.indexOf(a[c]);)c++;this.D=this.D.concat(a.slice(c));bN(this)}};
$M.prototype.to=function(){this.D=[];this.F=[];this.H=0;this.F=[];this.J=[];aN(this)};
$M.prototype.U=function(){this.element.style.overflow="visible";this.A.style.top=0;$d(this.A,"caption-rollup");this.F.push("");this.J.push(0);bN(this)};A(cN,SM);cN.prototype.Pl=function(a,b){this.isDisposed();var c=this.Mg(a),d=y(function(c){this.A=null;c=new PM(c.responseText);b(c,a)},this);
this.A&&this.A.abort();this.A=pj(c,{format:"RAW",qb:d,withCredentials:!0});kaa(this.o,a)};
cN.prototype.Ql=function(a,b,c){var d=this.B;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.yp&&(b.asrs=1);d=hj(d,b);b=y(function(b){this.A=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var n=k[m].getAttribute("formats"),t=c,u=k[m].getAttribute("lang_code"),x=k[m].getAttribute("lang_translated"),B=k[m].getAttribute("name"),D=k[m].getAttribute("kind"),I=k[m].getAttribute("id"),z="true"==k[m].getAttribute("lang_default"),
Q="true"==k[m].getAttribute("cantran"),Na=k[m].getAttribute("vss_id");RM(d,new mu({formats:n,format:t,languageCode:u,languageName:x,name:B,kind:D,id:I,is_servable:!0,is_default:z,is_translateable:Q,vss_id:Na}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)l=b[k].getAttribute("lang_code"),m=b[k].getAttribute("lang_translated"),n=b[k].getAttribute("lang_original"),t=b[k].getAttribute("id"),u="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:n,
id:t,is_default:u},this.F[l.languageCode]=l.languageName,this.D.push(new lu(l))}a()},this);
this.A&&this.A.abort();this.A=pj(d,{format:"RAW",qb:b,withCredentials:!0})};
cN.prototype.Mg=function(a){var b=this.B,c={v:this.C,type:"track",lang:a.A,name:a.D,kind:a.B,fmt:a.C};a.o&&(c.tlang=a.o.languageCode);return b=hj(b,c)};
cN.prototype.T=function(){this.A&&this.A.abort();cN.N.T.call(this)};A(dN,jq);var Vha=new yM(0,0,0,0,{anchorPoint:0,Nl:5,Am:5,ij:2,textAlign:0});f=dN.prototype;
f.create=function(){dN.N.create.call(this);this.D=this.o.getVideoData();-1==t8.indexOf(this.X.O)&&L(this.o.Da(),"cc-international");this.C=ec(qN);qa(this.C,pq(this,"display-settings"));fN(this,"fontFamilyOption","fontFamily",i8);fN(this,"charEdgeStyle","charEdgeStyle",j8);eN(this)||(this.P=new R(["div",["ytp-player-content","ytp-subtitles-player-content"]]),qr(this.o,this.P.element,4),T(this.W,this.o,"resize",this.iq));T(this.W,this.o,"onPlaybackAudioChange",this.Yz);hN(this)&&this.load()};
f.destroy=function(){ur(this.W);eN(this)||(xq(this.P),this.P.dispose());dN.N.destroy.call(this)};
f.load=function(){this.xa="1"==this.D.C.cc_auto_caps||"1"==this.X.M.cc_auto_caps;dN.N.load.call(this);this.fa=!0;if(this.D.Ga)this.B=new YM(this.D.o,this.o),this.wa=T(this.W,this.o,"seekto",this.uF);else{var a=this.D.Be||this.X.Ma||this.D.Zc("yt:cc_default_lang")||this.X.O,a=a&&a.split("_").join("-");this.D.captionTracks.length?this.B=new TM(this.D):this.B=new cN(this.D.fi,this.D.videoId,a,this.D.ci)}jN(this)};
f.unload=function(){this.F&&(oN(this),this.am("control_subtitles_set_track"));if(eN(this)){var a;a=Kg("track",void 0,this.aa.A);for(var b=0;b<a.length;b++)bh(a[b])}else pN(this,!1),iN(this),this.wa&&this.W.ya(this.wa),this.B.dispose(),this.B=null;this.K=this.ea=this.L=this.fa=!1;dN.N.unload.call(this)};
f.Oq=function(){this.fa=!1;if(eN(this))for(var a=QM(this.B.o,void 0),b=0;b<a.length;b++){var c=a[b],d={kind:"subtitles",label:nu(c),srclang:c.A,src:this.B.Mg(c)};c.isDefault&&(d["default"]=1);for(var c=this.ca.app.B,d=[O("track",d)],e=0;e<d.length;e++)c.o.appendChild(d[e])}else if(c=this.K||gN(this,!this.ea),a=QM(this.B.o,!0),0<a.length){this.ea=!0;b=this.A&&-1!=a.indexOf(this.A);if(c&&!b)if(c=this.B.Ho(),!c&&this.K&&(c=a[0]),c)this.ma=!0,mN(this,c),b=!0;else if(this.L||lN(this),a=this.B.o.B,a.length&&
(a=a[0].toString(),this.K||this.xa))a=laa(this.B,a),mN(this,a,void 0),b=!0;this.o.Ba("onCaptionsTrackListChanged");b||nN(this)}else if(this.B.Td())nN(this);else if(a=this.o.app.D,b=TL(a,this.ra))pb(a.o,b),b.destroy()};
f.Pq=function(a,b){eN(this);this.ma&&(this.ma=!1,this.o.Ba("onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){iN(this);this.A=b;this.ua=Lha.test(b.A);var c={trackName:b.D,trackKind:b.B};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.A):c.trackLangCode=b.A;this.log(c);if(b!=this.B.Td()){if(this.K&&!IH(this.X)){this.J||(this.J=new sM(Vha));var c=[],d=nu(b);d&&(c.push(window.document.createTextNode(d)),c.push(window.document.createElement("br")));var d=window.document.createElement("span"),
e=P("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:Rf()});Jf(d,e);c.push(d);this.P.element.appendChild(this.J.element);tM(this.J,this.C,fF(this.aa).height,c);this.ka.fg()}this.o.Ba("captionschanged",ou(b));(this.X.experiments.ga("cc_sticky_behavior")||this.K||IH(this.X))&&qq(this,"module-enabled",!0);(c=kq(this.o.app))&&c.B&&bB(c.B.A)}}this.L||lN(this);this.bb(a.A.concat(a.o))};
f.Wb=function(a){this.Z.push(a);this.ia.fg()};
f.jc=function(a){pb(this.Z,a);this.ia.fg()};
f.cD=function(a){if(this.A)if(a instanceof yM){var b=this.O[a.id];b&&b.getType()!=zM(a)&&(b.dispose(),delete this.O[a.id],b=null);if(!b){var b=this.O,c=a.id,d;a:switch(zM(a)){case 1:d=new ZM(a);break a;case 2:d=new $M(a);break a;default:d=new sM(a)}b=b[c]=d;b=b.element;M(b,"captions-asr","asr"==this.A.B);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.ua?1:0);this.P.element.appendChild(b)}}else b=a.B,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};
f.iq=function(){eN(this);this.L&&kN(this)};
f.kD=function(){xq(this.J);this.J.dispose();this.J=null};
f.Cm=function(){this.ia.stop();if(this.L){bc(this.U);this.Z.sort(iq);F(this.Z,this.cD,this);var a=fF(this.aa).height;Ob(this.O,function(b,c){!this.U[c]||this.G?(b.dispose(),delete this.O[c]):tM(b,this.C,a,void 0,this.U[c])},this)}};
var qN={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};f=dN.prototype;
f.ld=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.C.fontSizeIncrement=Math.max(-2,Math.min(4,b)),kN(this)),this.C.fontSizeIncrement;case "reload":b&&jN(this);break;case "stickyLoading":void 0!=b&&this.X.Va&&qq(this,"module-enabled",!!b);break;case "track":if(b){if(eN(this))break;if(!ia(b))break;if(ac(b)){YL(this);break}for(var c,d=QM(this.B.o,!0),e=0;e<d.length;e++){var h=d[e];h.A!=b.languageCode||c&&h.F!=b.languageName||(c=b.translationLanguage?pu(h,b.translationLanguage):
h)}c&&mN(this,c,!0)}else return this.A&&this.A!=this.B.Td()?ou(this.A):{};return"";case "tracklist":return this.ea?fi(QM(this.B.o,b&&b.includeAsr),function(a){return ou(a)}):[];
case "translationLanguages":return this.ea?this.B.D:[];case "displaySettings":return b&&ia(b)&&qaa(this,b),c=ec(this.C),c.fontFamilyOption=i8[c.fontFamily],c.charEdgeStyle=j8[c.charEdgeStyle],c;case "sampleSubtitles":eN(this)||void 0==b||(pN(this,!!b),kN(this));break;case "xmlTrack":b&&this.X.Va&&(iN(this),eN(this)||(c=new PM(b.xml),this.A=new mu({languageName:b.name}),this.Pq(c,this.A)))}};
f.df=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.X.Va&&a.push("stickyLoading","xmlTrack");return a};
f.xk=function(a,b){return a&&w(a)&&LM.test(a)?a:b};
f.Tl=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
f.tw=function(a,b){if(a&&w(a)){var c=j8.indexOf(a);return-1!=c?c:b}return b};
f.Zw=function(a,b){if(a&&w(a)){var c=i8.indexOf(a);return-1!=c?c:b}return b};
f.ax=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};
var rN=null;f=dN.prototype;f.Xa=function(a){if("lb3"==a.V().o)return!1;a=a.getVideoData();var b;if(b=a.Ga)b=a.o,b=!(!b||null==b.o.en);return!!(a.fi||a.captionTracks.length||b)};
f.Zi=function(a){a?iN(this):this.loaded&&(this.unload(),this.load())};
f.uF=function(){this.B.seek(this.o.getCurrentTime())};
f.Bh=function(){var a=this.A;return a?{cc:a.G}:null};
f.Yz=function(){this.D.captionTracks.length&&(this.loaded?jN(this):hN(this)&&this.load())};A(sN,jq);f=sN.prototype;f.Xa=function(){return tN(this.o)};
f.create=function(){sN.N.create.call(this);var a=new gq(1E3,0x7ffffffffffff,{priority:0});this.bb([a]);this.o.addEventListener("heartbeatparams",this.ys,this);this.o.addEventListener("presentingplayerstatechange",this.zs,this)};
f.destroy=function(){yN(this);sN.N.destroy.call(this);this.o.removeEventListener("heartbeatparams",this.ys,this);this.o.removeEventListener("presentingplayerstatechange",this.zs,this)};
f.Wb=function(){this.G=!0;vN(this,2E3)};
f.ys=function(a){this.B=a;vN(this,2E3)};
f.zs=function(a){U(a.state,2)||U(a.state,64)?yN(this):(U(a.state,1)||U(a.state,8))&&vN(this,2E3)};
f.pD=function(){var a,b,c=this.o.V(),d=this.o.getVideoData();b=c.baseYtUrl;U(Pz(this.o),4)?this.A=window.NaN:uN(this)?(yx(d)?(a="GET",b=ff(this.B.url,{request_id:Qv()}),d.L&&(b=ff(b,{vvt:d.L})),d.oauthToken&&(b=ff(b,{access_token:d.oauthToken}))):(a="GET",c=c.A,b=ff(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.L,access_token:d.oauthToken})),b=ff(b,{cpn:d.clientPlaybackNonce}),pj(b,{format:"RAW",method:a,timeout:3E4,qb:y(this.mz,this),
onError:y(this.lz,this),Hd:y(this.nz,this),withCredentials:!0})):yN(this)};
f.mz=function(a){if(this.A){a=a.responseText;var b;b=(b=xN(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(z$))?"0"==b[1]?0:1:-1;if(-1==b)wN(this,"decode");else if(this.C=0,this.A=window.NaN,1==b){this.D=!1;b="YTP_ERROR_LICENSE";var c=xN(a);c?a=c.reason||P(b):((a=a.match(z$))&&(a=(0,window.parseInt)(a[1],10))&&(b=Gy(a)),a=P(b));bL(this.o.app.A,"heartbeat",a,void 0)}else this.D=!0,vN(this)}};
f.lz=function(a){wN(this,"net-"+a.status)};
f.nz=function(){wN(this,"timeout")};
var z$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;A(AN,jq);f=AN.prototype;f.Xa=function(){return BN(this.o)};
f.create=function(){AN.N.create.call(this);this.load()};
f.load=function(){AN.N.load.call(this);this.o.addEventListener("resize",this.jn,this);var a=this.o.getVideoData().videoId;this.B&&this.B.abort();a={Xb:y(this.LA,this,a),Pc:{v:a}};"embedded"==this.o.V().Aa&&(a.Pc.ptype="embedded");var b=this.o.getVideoData().C.iv_endscreen_url;b&&(this.B=pj(b,a))};
f.unload=function(){DN(this,null);this.o.removeEventListener("resize",this.jn,this);this.B&&(this.B.abort(),this.B=null);AN.N.unload.call(this)};
f.ld=function(a,b){if(!CN(this.o.V().o))return null;switch(a){case "loadCustomEndscreenJson":var c=new zN(b);DN(this,c);return!0;case "unloadCustomEndscreenJson":return DN(this,null),!0}return null};
f.LA=function(a,b){var c=this.B=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=new zN(JSON.parse(d)))}DN(this,c)};
for(var A$=[346,426,470,506,570,640,853,1280,1920],B$=[],C$=0;C$<A$.length;C$++)B$.push("ytp-ce-size-"+A$[C$]);var Wha=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];f=AN.prototype;
f.jn=function(){if(this.D&&this.D.elements){var a=this.o.qs(),b=a.width,c=a.height,d=b/c,e;e=null;for(var h=-1,k=0;k<A$.length;k++){var l=Math.abs(b-A$[k]);if(-1==h||e>=l)h=k,e=l}e=B$[h];for(h=0;h<this.D.elements.length;++h){var l=this.D.elements[h].id,k=this.A[l],m=this.G[l],n=m.width*d/m.aspectRatio,l=Math.round(n*c),t=a.left+Math.round(m.left*b),u=a.top+Math.round(m.top*c);Zq(k.element,Math.round(m.width*b),l);Oq(k.element,t,u);ae(k.element,Wha);L(k.element,[["ytp-ce-top-left-quad","ytp-ce-top-right-quad"],
["ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"]][Math.round(m.top+n/2)][Math.round(m.left+m.width/2)]);ae(k.element,B$);L(k.element,e);(k=Kg("div","ytp-ce-expanding-overlay-body",k.element)[0])&&Iq(k,"height",l+"px")}}};
f.Wb=function(a){AN.N.Wb.call(this,a);if("ytp-ce-in-endscreen"==a.getId())HN(this,this.D.impressionUrls);else{a=a.getId().substring(15);var b=this.G[a];L(this.A[a].element,"ytp-ce-element-show");HN(this,b.impressionUrls)}};
f.jc=function(a){if("ytp-ce-in-endscreen"!=a.getId()){var b=a.getId().substring(15);$d(this.A[b].element,"ytp-ce-element-show");AN.N.jc.call(this,a)}};
f.rF=function(a,b){b.preventDefault();for(var c=b.target;c&&!Xd(c,"ytp-ce-element");){Xd(c,"subscribe-label")&&HN(this,a.clickUrls);if(Xd(c,"ytp-ce-channel-subscribe"))return;c=jh(c)}b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.H?(HN(this,a.clickUrls),this.o.pauseVideo(),this.ws(a.o,a.B,"_blank")):(c=y(this.ws,this,a.o,a.B,"_top"),HN(this,a.clickUrls,c))};
f.sF=function(a){HN(this,a.D);GN(this,a.id,!0)};
f.tF=function(a){GN(this,a.id,!1)};
f.ws=function(a,b,c){gy(a,b);hy(a,c)};A(IN,jq);f=IN.prototype;f.Xa=function(){return Fx(this.o.getVideoData(),"ypc_clickwrap_module")};
f.create=function(){IN.N.create.call(this);this.load()};
f.load=function(){IN.N.load.call(this);this.A=new R(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",P("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.o.getVideoData().C.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],P("YTP_YPC_START_RENTAL_BUTTON")]]);qr(this.o,this.A.element,4);H(this,this.A);this.B=this.A.qa["ytp-ypc-clickwrap-confirm"];S(this.A,this.B,"click",this.vA,this)};
f.unload=function(){IN.N.unload.call(this);Il(this.B);xq(this.A);this.A.dispose();this.A=null};
f.vA=function(){nq(this);this.destroy()};JN.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.A=b*(1-c)+c*this.A;this.C+=a};
JN.prototype.B=function(){return this.A/(1-Math.pow(this.D,this.C))};KN.prototype.o=function(a,b){LN(this,"index");this.C.push({index:this.J++,weight:a,value:b});this.A+=a;for(LN(this,"index");this.A>this.G;){var c=this.A-this.G,d=this.C[0];d.weight<=c?(this.A-=d.weight,this.C.shift()):(this.A-=c,d.weight-=c)}};
KN.prototype.B=function(){return this.F?(MN(this,this.D-this.F)+MN(this,this.D)+MN(this,this.D+this.F))/3:MN(this,this.D)};NN.prototype.o=function(a,b){this.A.push(b);this.A.length>this.C&&this.A.shift()};
NN.prototype.B=function(){return oe.apply(null,this.A)};A(UN,G);UN.prototype.Gw=function(a){if(this.A){var b;var c=ma(a);b=this.F[c];if(!b)if(this.A){if(b=a(this.A)){a=this.F[c]=b;for(var d in this.G)a.subscribe(d,this.G[d]);H(this,b)}}else b=null;b&&b.Xa(this.A)&&!jb(this.o,b)&&(b.create(),this.o.push(b),jb(this.D,b.ra)&&(b.F=this.H,b.Zi(!!b.F)))}};
UN.prototype.J=function(a,b){F(this.o,function(c){c.S(a,b)})};
UN.prototype.isAvailable=function(a){a=TL(this,a);return!(!a||!a.da)};ZN.prototype.getMessage=function(){return this.C};
ZN.prototype.getErrorCode=function(){return this.o};
ZN.prototype.getType=function(){return this.D};
ZN.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.B?" Caused by: "+this.B:"")};A($N,jc);$N.prototype.getError=function(){return this.B};var t1="adMetadata click companionBackfill complete durationChange firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),D$="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview engagedview exitfullscreen expand externalActivityEvent firstquartile fullscreen instreamAdComplete measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
Xha="acceptinvitation click close collapse creativeview expand progress".split(" "),E$=["viewable_impression","measurable_impression","externalActivityEvent"],F$={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};A(aO,jc);aO.prototype.getAd=function(){return this.B};
var oga={PH:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",MN:"videoClicked",Gn:"engagedview",WJ:"expandedChanged",STARTED:"start",Nh:"impression",In:"measurable_impression",Un:"viewable_impression",Hn:"fully_viewable_audible_half_duration_impression",XJ:"externalActivityEvent",PAUSED:"pause",DM:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",PJ:"durationChange",
BI:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",mM:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Mv:"skipshown",RK:"linearChanged",UM:"skippableStateChanged",QH:"adMetadata",OH:"adBreakReady",$K:"log",VOLUME_CHANGED:"volumeChange",TN:"mute",fJ:"companionBackfill",dO:"youTubeVideoMetadata",cO:"youTubeChannelMetadata",GN:"urlNavigationRequested",vN:"trackingUrlPinged",IN:"video_card_endcap_action",JN:"video_card_endcap_collapse",KN:"video_card_endcap_dismiss",
LN:"video_card_endcap_impression",$N:"why_this_ad_url",ZN:"why_this_ad_got_it",JL:"MUTE_AD",iJ:"companionInitialized",hJ:"companionImpression",gJ:"companionClick"};var zO={cv:5E3,dv:15E3,Dv:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),Ev:/\bocr\b/,Ak:0,Jd:{},sr:function(a,b){a&&(zO.Hp(a)?zO.ur(a,b):zO.pr(a,b))},
Hp:function(a){return C(E(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new N(a)).Pe().match(zO.Ev)?!0:null!=eb(zO.Dv,function(b){return null!=a.match(b)})},
ur:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?zO.Ep(function(b){zO.nr(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):zO.nr(c)}},
nr:function(a){var b=O("iframe",{src:a,style:"display:none"});a=Hg(b).body;var c,d=Rd(function(){Zc(c);bh(b)},zO.dv);
c=Xc(b,["load","error"],function(){Rd(function(){Td(d);bh(b)},zO.cv)});
a.appendChild(b)},
Ep:function(a,b){var c=zO.Jd.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete zO.Jd[c];d||(d=!0,null!=zO.Jd.imageLoadingEnabled||(zO.Jd.imageLoadingEnabled=b),a(b))};
b?b(c):zO.rz(c)}},
rz:function(a){var b=new window.Image,c,d=""+zO.Ak++;zO.Jd[d]=b;b.onload=function(){(0,window.clearTimeout)(c);a(!0,d)};
c=(0,window.setTimeout)(function(){a(!1,d)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
qD:function(a){if(a){var b=window.document.createElement("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+zO.Ak++;zO.Jd[c]=b;b.onload=b.onerror=function(){delete zO.Jd[c]};
window.document.body.appendChild(b)}},
or:function(a){if(a){var b=new window.Image,c=""+zO.Ak++;zO.Jd[c]=b;b.onload=b.onerror=function(){delete zO.Jd[c]};
b.src=a}},
pr:function(a,b){a&&(b?zO.Ep(function(b){b?zO.or(a):zO.qD(a)}):zO.or(a))},
sO:function(a){null!=a&&F(a,function(a){zO.sr(a)})}};var fO=new function(){this.A="always";this.D=1;this.o=!1;this.C=!0;this.H=!1;this.F=!0;this.G=null};var tW=["ADSENSE","ADSENSE/ADX"],tda=["DART","DART_DFA","DART_DFP"],Bda=["FREEWHEEL","YT:FREEWHEEL"],GV=["SHOPPING","YT:SHOPPING"],OV=["GDFP"],sda=["VIRAL","ADSENSE-VIRAL"],hV={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},S_={nL:"video/mp4",pL:"video/mpeg",cL:"application/x-mpegURL",PL:"video/ogg",hN:"video/3gpp",VN:"video/webm",mL:"audio/mpeg",
oL:"audio/mp4"};gO.prototype.getId=function(){return this.A};hO.prototype.getId=function(){return this.B};var kO=null;var pca=["*.googlesyndication.com","gcdn.2mdn.net"],Maa=["*.youtu.be","*.youtube.com"],Paa="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),Oaa=["c.googlesyndication.com"],
Yha=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];BO.prototype.getErrorCode=function(){return this.errorCode};
BO.prototype.getMessage=function(){return this.message};
var Ifa=new BO("Unable to request ads from server. Cause: {0}.",1005),Zha=new BO("Unable to request ads from server due to network error.",1012),$W=new BO("Cannot parse the {0} value for the adslist response: {1}.",900),G_=new BO("Invalid usage of the API. Cause: {0}",900),L_=new BO("Unable to display one or more required companions.",602),$ha=new BO("There was a problem requesting ads from the server.",1005),yfa=new BO("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),fZ=new BO("The provided ad type: {0} is not supported.",1005),bT=new BO("The provided {0} information: {1} is invalid.",1101),aia=new BO("The provided skip offset was invalid.",1105),bia=new BO("The extension contained is neither skippable nor nonskippable.",1105),JY=new BO("The response does not contain any valid ads.",1009),cia=new BO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Uda=new BO("The ad playlist response was malformed or empty.",
1010),aX=new BO("The ad response was not understood and cannot be parsed.",1010),Bfa=new BO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),dia=new BO("The ad response contains unexpected element. Cause {0}.",1010),XZ=new BO("No assets were found in the VAST ad response.",200),eda=new BO("Duplicate node in <{0}>: {1}",101),KY=new BO("The VAST response document is empty.",1009),nga=new BO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),PZ=new BO("Ad request reached a timeout.",301),LY=new BO("VAST response was malformed and could not be parsed.",100),G$=new BO("VAST media file loading reached a timeout of {0} seconds.",402),IZ=new BO("Ad request could not be completed due to a network error.",301),eia=new BO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),vfa=new BO("The maximum number of VAST wrappers ({0}) has been reached.",302),fia=new BO("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),J0=new BO("Video player received an ad with unexpected or incompatible linearity",201),dda=new BO("Unknown node in <{0}>: {1}",101),Bea=new BO("Invalid VAST resource type: {0}",101),Sea=new BO("Invalid VAST version",102),wfa=new BO("No additional VAST wrappers allowed.",300),HZ=new BO("No Ads VAST response after one or more Wrappers",303),O0=new BO("There was an error playing the video ad.",400),Oea=new BO("VMAP unsupported node in <{0}>: {1}",1010),d1=new BO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var H$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var NO={},OO="",kS=/OS (\S+) like/,SO=/Android ([\d\.]+)/;ba(UO);UO.prototype.o=function(a,b,c){if(this.A||c){b=b||{};b.lid=a;a=pO(lO());C(E(a))||(b.e=a);b=Raa(this,b);var d=new N("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(b,function(a,b){xf(d,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},this);
a=VO();nf(d,a.C);wO(d.toString())}};f=WO.prototype;f.iw=!1;f.Yn=!1;f.ao=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.Lw=!1;f.Rg=null;f.surveyCreativeData=null;f.SD=!0;f.Jm=!1;f.TD=!1;f.useShareButton=!1;f.Km=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.UD=!0;f.kk=!1;f.Mw=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.Im=!1;f.Uf=null;f.loadVideoTimeout=15E3;f.bo=!0;f.Wq=0;f.$l=-1;window.console&&"function"===typeof window.console.log&&y(window.console.log,window.console);ZO.prototype.toString=function(){function a(a){a=dc(c,a);null!=a?b.push(""+a):b.push("u")}
var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};var fP=null;bP.prototype.getValue=function(){return this.o};
bP.prototype.Ac=function(){return this.B?this.A():""};
bP.prototype.A=function(){return String(this.o)};
A(cP,bP);cP.prototype.A=function(){return this.o?"1":"0"};
A(dP,bP);dP.prototype.A=function(){return this.o?Math.round(this.o.top)+"."+Math.round(this.o.left)+"."+(Math.round(this.o.top)+Math.round(this.o.height))+"."+(Math.round(this.o.left)+Math.round(this.o.width)):""};
aP.prototype.setItem=function(a){this.o[a.D]=a};
aP.prototype.getItem=function(a){return dc(this.o,a,null)};
aP.prototype.Ac=function(a){var b=[];a||(a=0);for(var c in this.o){var d=this.o[c];d instanceof cP?d.getValue()&&(a|=d.C):(d=this.o[c].Ac())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};f=kP.prototype;f.remove=function(a){cc(this.o,a)};
f.set=function(a,b){this.o[a]=b};
f.get=function(a){return dc(this.o,a,null)};
f.extend=function(a){hc(this.o,a)};
f.Ac=function(){var a=[],b;for(b in this.o)a.push(b+this.o[b]);return a.join("_")};mP.prototype.Ac=function(){var a=[],b=Number(this.o.get("eb"));this.o.remove("eb");var c=this.o.Ac();c&&a.push(c);this.A&&(c=this.A.serialize())&&a.push(c);(c=this.B.Ac(b))&&a.push(c);this.o.set("eb",b);return a.join("_")};var oP=new Pd(500);var AR={Rn:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",Gv:"resume",SKIPPED:"skip",Un:"viewable_impression",uv:"mute",Vv:"unmute",FULLSCREEN:"fullscreen",Ou:"exitfullscreen",Hn:"fully_viewable_audible_half_duration_impression",In:"measurable_impression",hu:"abandon",Gn:"engagedview",Nh:"impression",Eu:"creativeview",LOADED:"loaded"},Vba="start firstquartile midpoint thirdquartile resume loaded".split(" "),
Bba=["abandon"],BR={UNKNOWN:-1,Rn:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,Gv:7,SKIPPED:8,Un:9,uv:10,Vv:11,FULLSCREEN:12,Ou:13,Hn:14,In:15,hu:16,Gn:17,Nh:18,Eu:19,LOADED:20},DR={v:"v",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ns:"ns",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",uac:"uac",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",px:"px",fm:"sfm",nnut:"nnut",vme:"vme",nmt:"nmt",mmct:"mmct",
umvtime:"uvmtime",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",veh:"veh",vds:"vds",is:"is",ic:"ic",c:"c",mc:"mc",tth:"tth"},eca={gmm:"gmm",j:"dom"},fca={vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",vmdtos:"vmdtos",umvtime:"uvmtime",bt:"bt",pst:"pst",nmt:"nmt",mmct:"mmct",c:pP("c"),at:"at",atos:rP("atos"),ta:function(a,b){return function(c){if(!p(c[a]))return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:function(a,b){return function(c){c=c[a];if(da(c)){for(var d=Array(c.length),e=0;e<c.length;e++)d[e]=0<e?d[e-1]+c[e]:c[e];return p(b)?qP(d,b):d}}}("tos",[0,
2,4]),j:"dom",mtos:rP("mtos"),gmm:"gmm",ss:pP("ss"),gmsv:gd("w1")},JQ={QN:1,vI:2,tI:4,FULLSCREEN:8,DI:16,CI:32,uI:64};var Nba=/https?:\/\/[^\/]+/;yP.prototype.o=function(a,b,c,d,e){var h={};h.context=a;b instanceof zP||(b=AP(b));h.msg=b.message.substring(0,512);b.fileName&&(h.file=b.fileName);0<b.lineNumber&&(h.line=b.lineNumber.toString());a=aa.document;h.url=a.URL.substring(0,512);h.ref=a.referrer.substring(0,512);if(d)try{d(h)}catch(l){}d=this.D;try{if(Math.random()<(c||d.A)){var k=d.o+(e||this.C)+("&"+wP(h,1)),k=k.substring(0,2E3);xP(aa,k)}}catch(l){}return this.A};var HP=window.document,X=window;var CP;CP=new yP(new function(){this.o="http"+("http:"===X.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.A=.01},"jserror",!0);
var UR=CP.o;var I$=!1,J$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(I$=!0,a.description)){J$=JP(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){I$=!0;J$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],I$=!!a&&a.enabledPlugin)){J$=JP(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");I$=
!0;J$=JP(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");I$=!0;J$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),I$=!0,J$=JP(b.GetVariable("$version"))}catch(c){}})();
var lU=I$,ZP=J$;if(HP&&HP.URL){var tP=HP.URL,gia=!(tP&&0<Vaa().length);CP.A=gia};var WP={},XP=null;WP.le=0;WP.nt=2;WP.Fr=3;var QQ=0,$aa=(new Date).getTime(),PP=-1,RP=!1,SP=-1,TP=-1;WP.Po=5;WP.me=1;WP.om=4;aQ.prototype.getStatus=function(){return this.o};
A(dQ,aQ);var hQ={BN:-1,LOADING:0,Wu:1,Au:2,fv:3,VISIBLE:4},jba={LOADING:0,Wu:1,Au:2,nN:3,OL:4,yN:5,zN:6,xN:7,RL:8,mN:9},kQ={};f=eQ.prototype;f.Ap=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";this.setPosition(b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};
f.zp=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";this.setPosition(b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};
f.setPosition=function(a){this.module&&!re(a,Pq(this.module))&&Oq(this.module,a)};
f.remove=function(){if(this.module)try{bh(this.module)}catch(a){}this.module=null};
f.Nx=function(a){this.A=a?3:4};
q("gteh",EP("osd_or_lidar::gteh_ex",function(a,b){var c=kQ[a];ha(c)&&c(b)}),void 0);
var oba={fv:0,VISIBLE:1},hia=new pe(-99999,0);nQ.prototype.W=function(){var a=pQ(this);if(null===a)rQ(this);else if(null===this.B)this.B=a,rQ(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(rQ(this),oQ(this,0)):(this.o.setPosition(hia),this.G=X.setTimeout(FP("osd_or_lidar::sfm_cpto",y(this.Y,this)),125))}};
nQ.prototype.Y=function(){var a=pQ(this),b=a-this.B;this.B=a;a=4<=b?1:0;rQ(this);oQ(this,0==a?1:0)};
A(tQ,aQ);tQ.prototype.K=function(){var a=qba(this);this.A!=a&&(this.A=a,this.H(a))};ba(OP);var xQ=new se(0,0,0,0);f=zQ.prototype;f.update=function(a,b,c,d,e){if(0>this.G)return null;c||yQ(this,d,e);return this.je(this.o,b,a,c,!1,!0)};
f.je=function(a,b,c,d,e,h,k){var l=k||{};k=this.Lo(c,l);l=l.volume;!CQ(l)&&CQ(this.K)&&(l=this.K);var m=null;ga(b)?this.C=this.ki(b):(m=b,this.C=this.ki(a,m));h&&(this.Ob=Math.max(this.Ob,this.C));a=GP(HP);this.ea=0==a?-1:1==a?0:1;a=DQ(this.C);this.Fm(a,k,this.Z,e,d,m,l);this.Z=d?-1:a;this.G=c;-1!=a&&0>this.kf&&(this.kf=c);-1==this.lf&&this.$d()&&(this.lf=c);this.Ce(this);return this.C};
f.Lo=function(a){a=a-this.G||1;return 1E4<a?1:a};
f.ki=function(a,b){var c=null;if(ga(a))return a;c=new se(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));if(0>=this.area||c.top>=c.bottom||c.left>=c.right)return 0;var d=c.clone(),e=-a.left,h=-a.top;e instanceof pe?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ga(h)&&(d.top+=h,d.bottom+=h));c=(c.bottom-c.top)*(c.right-c.left);return c/this.area};
f.Gm=function(a,b){this.nd[a]+=b};
f.Dm=function(a,b){this.Y[a]+=b;this.Y[a]>this.Ia[a]&&(this.Ia[a]=this.Y[a])};
f.gm=function(a){this.Y[a]=0};
f.Fm=function(a,b,c,d,e,h){var k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;-1!=c&&this.Gm(c,b);h=h||null;d=-1!=c&&2>=c;h?(d&&-1!=this.ia&&(this.xe[this.ia]+=b),h=100*this.area/((h.bottom-h.top)*(h.right-h.left)),this.ia=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):this.ia=-1;for(h=c;0<=h&&4>=h;h++)this.Dm(h,b);for(h=0;4>=h;++h)(h<a||e||-1==a)&&this.gm(h)};
f.Fl=function(){return!1};
f.$d=function(){return!1};A(LQ,zQ);f=LQ.prototype;
f.je=function(a,b,c,d,e,h,k){k=k||this.Wa(this)||{};this.M=k.duration||this.M;this.xb=k.isVpaid||this.xb;var l=p(k.currentTime)?k.currentTime:this.Ka,m=MQ(this,c),n=l-this.Ka;0<=n?(this.gb+=Math.max(m-n,0),this.O=n):(this.De=Math.abs(n),this.O=0);CQ(k.volume)||this.mf++;LQ.N.je.call(this,a,b,c,d,e,h,k);-1==this.Ja&&this.sd&&(this.Ja=this.Ma);this.Ka=0<=n?l:this.Ka;-1==this.md&&0<this.O&&(this.md=0<=TP?QP()-TP:-1);(a=this.$d())&&KQ(this.P,1);CQ(this.K)&&KQ(this.P,2);this.fa&&KQ(this.P,4);this.F&&KQ(this.P,
8);-1!=this.ea&&(KQ(this.P,16),1==this.ea&&KQ(this.P,32));this.fa&&a&&KQ(this.P,64);return this.C};
f.Lo=function(a,b){var c=b.isYouTube;return this.Qh&&c?this.O:MQ(this,a)};
f.ki=function(a,b){return this.Be?0:this.F?1:LQ.N.ki.call(this,a,b)};
f.Gm=function(a,b){LQ.N.Gm.call(this,a,b);this.ac[a]+=this.O;2>=a&&(this.ua+=b,this.aa+=this.O)};
f.Dm=function(a,b){LQ.N.Dm.call(this,a,b);this.Ua[a]+=this.O;this.Ua[a]>this.$b[a]&&(this.$b[a]=this.Ua[a])};
f.gm=function(a){LQ.N.gm.call(this,a);this.Ua[a]=0};
f.Fm=function(a,b,c,d,e,h,k){if(!this.wa){LQ.N.Fm.call(this,a,b,c,d,e,h,k);a=-1==c||-1==a?-1:Math.max(c,a);d=d&&-1!=c&&2>=c?a:c;this.Ma+=b;this.Bo&&(this.wb+=b,this.Ea+=b);this.Bo=this.F;c=-1!=d&&2>=d;if(this.fa=CQ(k)&&.1<=k&&CQ(this.K)&&.1<=this.K){this.fb+=b;for(this.xa+=b;0<=d&&4>=d;d++)this.ma[d]+=b;c||(this.da+=b)}else this.$a=!1;this.da>this.Pb&&(this.Pb=this.da);if(c||!p(k)||.1>k)this.da=0;this.K=p(k)?Number(k)?IQ(k,3):0:k}};
f.Fl=function(){return!0};
f.$d=function(){return 2E3<=Math.max(this.Y[2],this.Ia[2])};var TQ=null,VQ=null,WQ=null,YQ=null,nR=null,SQ=!1,oR=[],pR=[],kR=!1,lR=null,gR=0,fR=!1,hR=!1,Eba=!1,Dba=!1,iR=!1,jR=!1,dR=HO()||IO(),Gba=0;var uR=null,wR="",vR=!1;f=tR.prototype;f.Mo=function(){};
f.To=v;f.ar=v;f.qo=v;f.Xn=v;f.il=function(a){if(a){if(!a.ye){var b=RQ(a,"start"),b=CR(b,DR),c=uR||X,d=[];d.push("v=412v");d.push("r=fp");d.push("efm="+(this.A?1:0));d.push("esfm="+(this.B?1:0));d.push(b);d.push(Pba(c));b="&"+d.join("&");xP(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.ye=!0}a.Fa=!0;this.im(a)}};
f.ey=function(a){a.hf++;OQ(a,0);.1<=a.K&&(a.$a=!0);return RQ(a,"start")};
f.Ux=function(a){OQ(a,1);bR([a],!PQ());return RQ(a,"firstquartile")};
f.Zx=function(a){OQ(a,2);a.sd=!0;bR([a],!PQ());return RQ(a,"midpoint")};
f.fy=function(a){OQ(a,3);bR([a],!PQ());return RQ(a,"thirdquartile")};
f.Qx=function(a){OQ(a,4);bR([a],!PQ());var b=RQ(a,"complete");a.F=!1;yR(a.D);return b};
f.ay=function(a){return xR(a,"pause")};
f.Px=function(a){return xR(a,"abandon")};
f.by=function(a){var b=PQ();a.wa&&!b&&(a.ka=QP());bR([a],!b);a.wa=!1;return RQ(a,"resume")};
f.hy=function(a){var b=RQ(a,"viewable_impression");a.Yh=!0;return b};
f.cy=function(a){var b=!PQ();bR([a],b);b=RQ(a,"skip");a.F=!1;yR(a.D);return b};
f.$x=function(a){bR([a],!PQ());return RQ(a,"mute")};
f.gy=function(a){bR([a],!PQ());return RQ(a,"unmute")};
f.Vx=function(a){a.F=!0;bR([a],!PQ());return RQ(a,"fullscreen")};
f.Tx=function(a){a.F=!1;bR([a],!PQ());return RQ(a,"exitfullscreen")};
f.Wx=function(a){return RQ(a,"fully_viewable_audible_half_duration_impression")};
f.Yx=function(a){return RQ(a,"measurable_impression")};
f.Sx=function(a){return RQ(a,"engagedview")};
f.Xx=function(a){return RQ(a,"impression")};
f.Rx=function(a){return RQ(a,"creativeview")};
f.fl=function(a){a.$d()&&!a.ud&&this.ar(a);this.qo(a)};
f.im=v;var FR=(new Date).getTime(),HR=!1,IR=!1,JR=!1,Yba=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return GR(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return GR(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return GR(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return GR(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return GR(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return IR},
function(){return JR},
function(){return GR(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(0,window.DummyFunction1)()}catch(b){a=!0}return a},
function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a},
function(){var a=(new window.AudioContext).createBufferSource();a.detune.value=100;return 100==a.detune.value},
function(){return GR(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||ER(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return ER(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return GR(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return ER(a.CSS.supports)},
function(){return ER(window.Intl.Collator)},
function(a){return ER(a.document.createElement("dialog").show)},
function(){return GR(8)},
function(a){return ER(a.document.createElement("div").animate([{transform:"scale(1)",Pw:"ease-in"},{transform:"scale(1.3)",Pw:"ease-in"}],{duration:1300,qO:1}).reverse)},
function(a){return ER(a.document.createElement("div").animate)},
function(a){return ER(a.document.documentElement.webkitRequestFullScreen)},
function(a){return ER(a.navigator.getBattery)},
function(a){return ER(a.navigator.permissions.query)},
function(){return ER((new window.AudioContext).createBuffer)},
function(){return GR(9)},
function(){return ER(window.webkitRequestAnimationFrame)},
function(a){return ER(a.BroadcastChannel.call)},
function(a){return ER(a.FontFace)},
function(a){return ER(a.Gamepad)},
function(){return GR(10)},
function(a){return ER(a.MutationEvent)},
function(a){return ER(a.MutationObserver)},
function(a){return ER(a.crypto.getRandomValues)},
function(a){return ER(a.document.body.createShadowRoot)},
function(a){return ER(a.document.body.webkitCreateShadowRoot)},
function(a){return ER(a.fetch)},
function(){return GR(11)},
function(a){return ER(a.navigator.serviceWorker.register)},
function(a){return ER(a.navigator.webkitGetGamepads)},
function(a){return ER(a.speechSynthesis.speak)},
function(a){return ER(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return GR(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return GR(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof window.InstallTrigger},
function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return GR(14)},
function(a){return"undefined"==typeof a.navigator.vO},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new window.Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Zba=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],$ba=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];A(KR,tR);ba(KR);f=KR.prototype;f.Mo=function(a,b){OP.getInstance();var c;b.opt_adElement?c=Tba(this,a,b.opt_adElement):(c=cca(this,a,b.opt_sdkID||""))||(c=Iba(a)||void 0);c&&c.Wa==v&&(c.Wa=y(this.Xn,this));return c};
f.Xn=function(a){OP.getInstance();var b={};if("as"==a.L){var c="getVideoMetadata"+a.Xf;if(ha(a.element[c]))try{b=a.element[c]()}catch(e){a.rd=!0}}if("h"==a.L&&(c=r("ima.common.getVideoMetadata"),ha(c)))try{b=c(a.D)}catch(e){a.rd=!0}var c=b,d=c.currentTime;p(d)?c.currentTime=Math.floor(1E3*d):a.Ee++;d=c.duration;p(d)&&(c.duration=Math.floor(1E3*d));p(c.volume)||(a.J|=524288);return b};
f.ar=function(a){MR(a,"viewable_impression")&&(a.ud=!0)};
f.qo=function(a){var b=a.ma[0];(15E3<=b||a.sd&&(-1!=a.M?b>=a.M/2:-1!=a.Ja&&b>=a.Ja))&&!a.Ae&&MR(a,"fully_viewable_audible_half_duration_impression")&&(a.Ae=!0)};
f.To=function(a){OP.getInstance();a.Rh||a.Fa||!MR(a,"measurable_impression")||(a.Rh=!0)};
f.fl=function(a){OP.getInstance();KR.N.fl.call(this,a)};
f.im=function(){OP.getInstance()};
q("Goog_AdSense_Lidar_sendVastEvent",EP("lidar::handlevastevent_ex",OR,void 0,function(){return{v:"412","if":OP.getInstance().A?"1":"0",nas:String(oR.length)}}),void 0);
q("Goog_AdSense_Lidar_getInitSignals",DP("lidar::getinitsignals_ex",NR,void 0,void 0),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",EP("lidar::geturlsignalsarray_ex",function(){return sR()}),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsList",EP("lidar::geturlsignalslist_ex",function(){return ee(sR())}),void 0);A(PR,J);var QR=null;PR.prototype.destroy=function(){this.D.ya(this.o,"activityMonitor",this.H);this.B=null;this.A=!1};
PR.prototype.init=function(a){if(!this.A){if(this.o=a||null)this.D.R(this.o,"activityMonitor",this.H),WR(this);fO.C&&ica();this.A=!0}};
PR.prototype.H=function(a){var b=a.Fd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.zc){case "getPageSignals":WR(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var h={};h.opt_fullscreen=b.isFullscreen;b.isOverlay&&(h.opt_bounds=b.overlayBounds);var k=null;Yb(b,"isFullscreen")&&(k=b.isFullscreen);d.viewabilityData=VR(this,e,c,a,h);d.engagementString=XR(this,a,k);this.o.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,k=null,Yb(b,
"isFullscreen")&&(k=b.isFullscreen),Yb(b,"loggingId")&&(b=b.loggingId,c.loggingId=b,UO.getInstance().o(43,{step:"beforeLookup",logid:b,time:K()},!0)),c.engagementString=XR(this,a,k),this.o.send("activityMonitor","engagement",c)}};
q("ima.common.getVideoMetadata",function(a){var b=RR();a=b.K.get(a)||b.F;return ha(a)?a():{}},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=RR().o;d?d.send("activityMonitor","viewableImpression",c):RR().$(new aO("viewable_impression",null,c))},void 0);
q("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=RR().o,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
q("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=RR().o;d?d.send("activityMonitor","measurableImpression",c):RR().$(new aO("measurable_impression",null,c))},void 0);
q("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=RR().o)?a.send("activityMonitor","externalActivityEvent",d):RR().$(new aO("externalActivityEvent",null,d))},void 0);
q("ima.common.updateEngagementDetectionValue",function(a){if(fO.C){var b=RR().o;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);A(ZR,J);f=ZR.prototype;f.tC=function(a){this.J=!0;this.A=a.touches.length;this.B&&(window.clearTimeout(this.B),this.B=0,this.M=!0);(this.H=cS(this,a.touches)||1!=a.touches.length)?this.U=this.O=window.Infinity:(this.O=a.touches[0].clientX,this.U=a.touches[0].clientY);oca(this,a.touches)};
f.sC=function(a){this.A=a.touches.length;if(!MO()||!PO(kS,8)||Math.pow(a.changedTouches[0].clientX-this.O,2)+Math.pow(a.changedTouches[0].clientY-this.U,2)>Math.pow(5,2))this.F=!0};
f.rC=function(a){this.L?this.Gk():(!this.J||1!=this.A||this.F||this.M||this.H||!cS(this,a.changedTouches)||(this.B=window.setTimeout(y(this.Gk,this),300)),this.A=a.touches.length,0==this.A&&(this.F=this.J=!1,this.C=[]),this.M=!1)};
f.ap=function(){this.Gk()};
f.Gk=function(){this.B=0;this.$(new jc("click"))};
f.T=function(){bS(this);this.D.dispose();this.D=null;ZR.N.T.call(this)};A(gS,J);var Qca={LI:"beginFullscreen",CLICK:"click",RJ:"end",SJ:"endFullscreen",ERROR:"error",LOADED:"loaded",dL:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",TM:"skip",Mv:"skipShown",NM:"shareClicked",Rn:"start",jN:"timeUpdate",WI:"cardsStateChange",iN:"timedMetadata",SN:"volumeChange"};f=gS.prototype;f.hp=function(){return!1};
f.ib=function(){return!0};
f.jm=v;f.mp=v;f.pl=v;f.yf=function(){return null};
f.np=v;f.kp=v;A(hS,gS);f=hS.prototype;f.kr=function(a,b,c,d){if(d&&(d=eb(a,function(a){return null!==dS(a.getUrl())}),null!==d))return d;
a=Zd(a,function(a){var b=a.o,c=a.getUrl();C(E(c))||"progressive"!=a.B&&"application/x-mpegurl"!=E(b).toLowerCase()?a=!1:(b=E(b).toLowerCase(),a=C(b)||SF&&PO(SO,2.3)&&Ga(b,"application/ogg")?!1:SF&&(Ga(b,"video/mp4")||Ga(b,"video/3gpp"))||MO()&&(Ga(b,"application/x-mpegurl")||Ga(b,"application/vnd.apple.mpegurl"))?!0:!C(this.o.canPlayType(b)));return a},this);
return YR(a,b,c)};
f.Rk=function(){return Zd(Vb(S_),function(a){return!C(this.o.canPlayType(a))},this)};
f.qm=function(a){this.W=0<a.o?a.o:15E3};
f.load=function(a){jS(this);this.o.src=a;this.o.load()};
f.getVideoUrl=function(){return this.o.src};
f.setVolume=function(a){this.o.volume=a};
f.Ed=function(){return this.o.volume};
f.play=function(){this.O=!1;Rd(this.o.play,0,this.o);this.J||(this.J=Rd(this.ww,this.W,this))};
f.pause=function(){this.O=!0;this.o.pause()};
f.Jf=function(){return this.o.paused?MO()||ul?this.o.currentTime<this.o.duration:!0:!1};
f.If=function(){return this.o.muted};
f.ql=function(){LO()&&this.o.webkitDisplayingFullscreen&&this.o.webkitExitFullscreen()};
f.Zd=function(){return TR(this.o)};
f.Fg=function(a){var b;a:{for(b=this.Y.Na();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
f.Kf=function(a){this.o.currentTime=a};
f.getCurrentTime=function(){return this.o.currentTime};
f.ip=function(){return mS(this)};
f.Dd=function(){return(0,window.isNaN)(this.o.duration)?-1:this.o.duration};
f.Te=function(){return this.o.ended};
f.bd=function(){return new te(this.o.offsetWidth,this.o.offsetHeight)};
f.lp=function(){return this.o.seeking};
f.T=function(){this.Lf();this.o=null;hS.N.T.call(this)};
f.getError=function(){return this.o.error};
f.Li=function(){this.Lf();this.A=new sm(this);this.A.R(this.o,H$,this.CB);this.A.R(this.o,"canplay",this.bA);this.A.R(this.o,"ended",this.Ky);this.A.R(this.o,"webkitbeginfullscreen",this.rl);this.A.R(this.o,"webkitendfullscreen",this.pp);this.A.R(this.o,"pause",this.My);this.A.R(this.o,"playing",this.NB);this.A.R(this.o,"timeupdate",this.Ny);this.A.R(this.o,"volumechange",this.Oy);this.A.R(this.o,"error",this.op);this.A.R(this.o,HH||MO()&&(!MO()||!PO(kS,8))?"loadeddata":"canplay",this.dB);this.F=
new ZR;this.A.R(this.F,"click",this.Jy);$R(this.F,this.o);this.G=new Pd(1E3);this.A.R(this.G,"tick",this.Ly);this.G.start()};
f.Lf=function(){null!=this.F&&(bS(this.F),this.F=null);null!=this.G&&this.G.dispose();null!=this.A&&(this.A.dispose(),this.A=null);jS(this)};
f.CB=function(a){this.$(a.type)};
f.bA=function(){var a;if(a=au)a=nc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.U&&(this.Kf(.001),this.U=!0)};
f.dB=function(){this.L||(this.L=!0,this.$("loaded"))};
f.NB=function(){this.$("play");MO()||HH||lS(this)};
f.Ny=function(){if(!this.C&&(MO()||HH)){if(0>=this.getCurrentTime())return;if(HH&&this.Te()&&1==this.Dd()){this.op();return}lS(this)}if(MO()||QO()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.Kf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}var a=this.Y;a.o[a.A]=this.o.currentTime;a.A=(a.A+1)%a.B;this.$("timeUpdate")};
f.Oy=function(){this.$("volumeChange")};
f.My=function(){var a;this.C&&MO()&&!this.O&&2>mS(this)-this.o.currentTime?(this.D=new Pd(250),this.A.R(this.D,"tick",this.Zz),this.D.start(),a=!0):a=!1;a||this.$("pause")};
f.Ky=function(){var a=nO(lO(),136961002),b=!0;if(MO()||QO()||a&&SF)b=this.B>=this.o.duration-1.5;!this.H&&b&&this.$("end")};
f.rl=function(){this.$("beginFullscreen")};
f.pp=function(){this.$("endFullscreen")};
f.op=function(){iS(this);this.$("error")};
f.Jy=function(){this.$("click")};
f.Ly=function(){var a=this.bd(),b=this.Zd();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.rl():this.K&&!b&&this.pp(),this.M=a,this.K=b};
f.ww=function(){if(!this.C){try{UO.getInstance().o(16)}catch(a){}jS(this);this.$("mediaLoadTimeout")}};
f.Zz=function(){if(this.Te()||!this.Jf())Mb(this.D);else{var a=this.o.duration-this.o.currentTime,b=mS(this)-this.o.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.D),this.play())}};A(oS,J);nS.prototype.start=function(a){return this.o[a].startTime};
nS.prototype.end=function(a){return this.o[a].endTime};
f=oS.prototype;f.readyState=0;f.currentTime=0;f.duration=window.NaN;f.Nf=!0;f.vp=!1;f.autoplay=!1;f.controls=!1;f.volume=1;f.muted=!1;f.src="";f.Ry=1;f.playbackRate=0;f.Md=null;f.Ri=0;f.ZC=4;f.Bg=null;f.pj=null;
f.play=function(){this.vp&&(this.currentTime=0,this.$("timeupdate"));this.Nf&&(this.Nf=!1,this.$("play"),this.readyState=this.ZC,2>=this.readyState?this.$("waiting"):this.$("playing"));if(null===this.Md||this.Md.isDisposed())this.Md=new Pd(10),this.Md.R("tick",y(this.Cr,this));this.Ri=K();this.Md.start();this.autoplay=!1};
f.pause=function(){this.autoplay=!1;this.Nf||(this.Md.stop(),this.Nf=!0,this.$("timeupdate"),this.$("pause"))};
f.load=function(){this.readyState=0;this.Nf=!0;this.$("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.A;a.o.push(new tca(this.duration));a.length=a.o.length;this.$("loadedmetadata");0<this.currentTime&&this.$("timeupdate");this.$("loadeddata");this.$("canplay");this.$("canplaythrough");this.$("progress");this.playbackRate=this.Ry};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.$("seeking");this.currentTime=c;this.$("seeked");this.Cr();break;case "duration":this.duration=Number(b);this.$("durationchange");break;case "volume":this.volume=Number(b),this.$("volumechange")}};
f.Cr=function(){var a=K()-this.Ri,b=this.currentTime+a/1E3;this.Ri+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.$("timeupdate");this.currentTime==this.duration&&(this.vp=this.Nf=!0,this.Md.stop(),this.$("ended"))};
f.T=function(){this.Md&&this.Md.dispose();this.o.dispose()};
f.GC=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.pj&&(this.pj.innerText=b);c&&this.Bg&&(this.Bg.style.backgroundColor=c)};Rg&&vc(8);var sS={},k0={},l0={},tS={};pS.prototype.xd=null;pS.prototype.getContent=function(){return this.content};
pS.prototype.toString=function(){return this.content};
A(qS,pS);var uca={};A(wS,pS);wS.prototype.Xc=sS;A(yS,pS);yS.prototype.Xc={};yS.prototype.xd=1;A(zS,pS);zS.prototype.Xc=k0;zS.prototype.xd=1;A(AS,pS);AS.prototype.Xc=l0;AS.prototype.xd=1;A(BS,pS);BS.prototype.Xc={};BS.prototype.xd=1;A(CS,pS);CS.prototype.Xc={};CS.prototype.xd=1;A(DS,qS);DS.prototype.Xc=tS;var xS=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.xd=d);return e}}(wS);
ES(yS);ES(zS);ES(AS);var Bca=ES(BS);ES(CS);var FS={},GS={},aT=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.xd=d);return e}}(wS),OS=/['()]/g,QS={},Cca={"\x00":"&#0;",
"\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},Dca={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11",
"\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87",
"\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},xca=/[\x00\x22\x27\x3c\x3e]/g,zca=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,yca=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,TS=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,
dga=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,cga=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,JS=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,KS=/</g;HS("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Y(a.Tf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.Tf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Y(RS(a.Uc))+">"+Y(a.Uc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(RS(a.He))+">"+Y(a.He)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
HS("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.tO)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.uO)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+Y(RS(a.Uc))+">"+Y(a.Uc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
Y(RS(a.He))+">"+Y(a.He)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
HS("b","",function(a){a=a||{};var b="";a=ra("You can skip this ad in {$xSeconds}",{xSeconds:Y(a.lg)});return b+a});
HS("b","redesign2014q4",function(a){a=a||{};var b="";a=ra("You can skip to video in {$xSeconds}",{xSeconds:Y(a.lg)});return b+a});A(cT,G);cT.prototype.initialize=function(){JO()&&this.A.load()};
cT.prototype.T=function(){bh(this.o);cT.N.T.call(this)};
cT.prototype.show=function(){var a=this.o;null!=a&&(a.style.display="block")};
cT.prototype.ha=function(){var a=this.o;null!=a&&(a.style.display="none")};A(fT,gS);var iia=["video/mp4","video/webm"],jia={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},eT=[],dT=!1;f=fT.prototype;f.kr=function(a,b,c){var d=eb(a,function(a){return null!==dS(a.getUrl())});
if(null!==d)return d;a=Zd(a,function(a){a=E(a.o);return this.o?this.A.canPlayType(a):jb(iia,a)},this);
kb(c)||(d=YR(a,b,c));return null!=d?d:YR(a,b,[])};
f.qm=function(a){this.B=a};
f.load=function(a,b){null!==a&&(this.W=a,this.o?gT(this,a,b):(this.L=a,this.Z=b))};
f.getVideoUrl=function(){return this.W};
f.setVolume=function(a){this.da?this.$("volumeChange"):this.o?(a=je(100*a,0,100),this.A.setVolume(a),this.G=-1,this.$("volumeChange")):this.G=a};
f.Ed=function(){return this.o?this.A.getVolume()/100:this.G};
f.play=function(){if(!C(E(this.W))){if(!this.C){iT(this);var a=15E3;null!=this.B&&0<this.B.o&&(a=this.B.o);this.ua=Rd(this.EB,a,this)}this.o?(this.aa=!1,!this.C&&this.B&&this.B.A?this.A.loadVideoByPlayerVars(this.ka):this.A.playVideo()):this.aa=!0}};
f.pause=function(){this.o&&this.C&&this.A.pauseVideo()};
f.Jf=function(){return this.o?2==this.A.getPlayerState(this.D):!1};
f.If=function(){return this.o?this.A.isMuted():0==this.Ed()};
f.ql=function(){};
f.Zd=function(){var a=fO.o?fO.B:window.document.getElementById(this.O);return a?TR(a):!1};
f.Fg=function(a){return this.o?this.A.getCurrentTime(this.D)>=a:!1};
f.Kf=function(a){this.o?this.A.seekTo(a,!1):this.K=a};
f.getCurrentTime=function(){return this.o?this.A.getCurrentTime(this.D):-1};
f.ip=function(){return this.o&&this.C?this.A.getVideoLoadedFraction(this.D)*this.A.getDuration(this.D):0};
f.Dd=function(){return this.o&&this.C?this.A.getDuration(this.D):-1};
f.getError=function(){return null};
f.Rk=function(){return Vb(S_)};
f.Te=function(){return this.o?0==this.A.getPlayerState(this.D):!1};
f.bd=function(){var a=fO.o?fO.B:window.document.getElementById(this.O);return a?new te(a.offsetWidth,a.offsetHeight):new te(0,0)};
f.lp=function(){return!1};
f.hp=function(){return 1==this.xa};
f.ib=function(){return this.o?1==this.A.getPlayerState(this.D):!1};
f.Qy=function(){var a=this.bd(),b=this.Zd();if(a.width!=this.ia.width||a.height!=this.ia.height)!this.fa&&b?this.$("beginFullscreen"):this.fa&&!b&&this.$("endFullscreen"),this.ia=a,this.fa=b};
f.Li=function(){this.ea=y(this.sq,this);this.M=y(this.tl,this);this.ma=y(this.tq,this);this.Ca=y(this.fC,this);this.da&&(this.A.addEventListener("onAdStateChange",this.M),this.A.addEventListener("onReady",this.ea),this.A.addEventListener("onStateChange",this.M),this.A.addEventListener("onVolumeChange",this.ma),this.A.addEventListener("onSharePanelOpened",this.Ca));this.Y=new Pd(1E3);this.U.R(this.Y,"tick",this.Qy);this.Y.start()};
f.Lf=function(){this.da&&(this.A.removeEventListener("onAdStateChange",this.M),this.A.removeEventListener("onReady",this.ea),this.A.removeEventListener("onStateChange",this.M),this.A.removeEventListener("onVolumeChange",this.ma),this.A.removeEventListener("onSharePanelOpened",this.Ca));null!=this.Y&&this.Y.dispose()};
f.Hw=function(){var a=this.O,b={playerVars:ec(jia),events:{cardstatechange:y(this.Py,this),onError:y(this.KB,this),onReady:y(this.sq,this),onAdStateChange:y(this.tl,this),onStateChange:y(this.tl,this),onVolumeChange:y(this.tq,this)}},c=r("YT");this.A=null!=c&&null!=c.Player?new c.Player(a,b):null};
f.KB=function(){this.$("error")};
f.sq=function(){this.o=!0;this.H&&this.pl(this.H.videoId,this.H.Je,this.H.hg,this.H.mi);-1!=this.G&&(this.setVolume(this.G),this.G=-1);null!=this.L&&(gT(this,this.L,this.Z),this.Z=this.L=null);-1!=this.K&&(this.Kf(this.K),this.K=-1);this.aa&&this.play()};
f.Py=function(a){this.xa=a.data;this.$("cardsStateChange")};
f.tl=function(a){switch(a.data){case 0:this.C?this.$("end"):this.$("error");break;case 1:this.C||(iT(this),this.C=!0,this.J=0,this.$("start"));this.$("play");hT(this);this.F=new Pd(100);this.U.R(this.F,"tick",this.gq);this.F.start();break;case 2:this.$("pause"),hT(this)}};
f.tq=function(){this.$("volumeChange")};
f.fC=function(){this.$("shareClicked")};
f.gq=function(){if(GH||QO()){if(1.5<this.getCurrentTime()-this.J){this.o&&this.A.seekTo(this.J,!0);return}this.getCurrentTime()>this.J&&(this.J=this.getCurrentTime())}this.$("timeUpdate")};
f.EB=function(){this.$("mediaLoadTimeout")};
f.pl=function(a,b,c,d){if(b||c)this.o?this.A.addInfoCardXml(a,b,c,d):this.H={videoId:a,Je:b,hg:c,mi:d}};
f.yf=function(){if(!this.o)return null;var a=this.A.getVideoData();return a?a.cpn:null};
f.jm=function(a){this.o&&dS(this.getVideoUrl())&&this.A.sendVideoStatsEngageEvent(a)};
f.mp=function(a){this.o&&this.A.setCardsVisible(a)};
f.np=function(){this.o&&this.A.showControls()};
f.kp=function(){this.o&&this.A.hideControls()};
f.T=function(){hT(this);iT(this);this.Lf();this.o=!1;this.U.dispose();this.K=-1;this.Z=null;this.aa=!1;this.L=null;this.G=-1;this.ea=this.A=this.B=null;this.C=!1;this.W="";fT.N.T.call(this)};
q("onYouTubeIframeAPIReady",function(){dT=!0;F(eT,function(a){a()});
lb(eT)},window);A(jT,J);jT.prototype.o=!1;jT.prototype.connect=function(){for(this.o=!0;!kb(this.A);){var a=this.A.shift();this.sendMessage(a.name,a.type,a.data)}};
jT.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.A.push({name:a,type:b,data:c})};
A(kT,jc);kT.prototype.getOrigin=function(){return this.B};
kT.prototype.toString=function(){return""};A(lT,jT);lT.prototype.sendMessage=function(a,b,c){null!=this.Mc&&null!=this.Mc.postMessage&&this.Mc.postMessage(Oca(this,a,b,c),"*");null!=this.Mc&&null==this.Mc.postMessage&&UO.getInstance().o(11)};
lT.prototype.T=function(){this.C.dispose();lT.N.T.call(this)};
lT.prototype.receive=function(a){a=a.o;var b=mT(a.data);if(nT(this,b)){if(null==this.Mc)this.Mc=a.source,this.o||this.connect();else if(this.Mc!=a.source)return;nT(this,b)&&this.$(new kT(b.name,b.type,b.data||{},b.sid,a.origin))}};A(oT,J);oT.prototype.send=function(a){var b=a.o;this.o.hasOwnProperty(b)&&this.o[b].send(a.type,a.zc,a.Fd)};
oT.prototype.T=function(){this.A.dispose();for(var a in this.o)Mb(this.o[a]);oT.N.T.call(this)};
oT.prototype.D=function(a){a=a.o;var b=mT(a.data);if(null!=b){var c=b.channel;if(this.B&&!this.o.hasOwnProperty(c)){var d=b.sid;qT(this,c,d,a.source);this.$(new pT(b.name,b.type,b.data||{},d,a.origin,c))}}};
A(pT,kT);A(sT,sm);
sT.prototype.F=function(a){var b=a.getOrigin(),c=Ve("//imasdk.googleapis.com"),b=Ve(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.o)qT(this.o,a.o,a.$o,Tg().parent),null!=this.o&&this.o.send(a);else if(c=a.Fd,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.zc,"isGptPresent"==c?d=rT():"isConsolePresent"==c&&(d=null!=tT());else if(rT())if("pubads"==b||"companionAds"==b){d=a.zc;var e,h=Tg().googletag;if(null!=h&&null!=h[b]&&(h=h[b](),null!=h&&(d=h[d],null!=d)))try{e=d.apply(h,c)}catch(k){}d=e}else if("console"==
b){if(h=a.zc,e=tT(),null!=e&&(h=e[h],null!=h))try{h.apply(e,c)}catch(k){}}else if(null===b){e=a.zc;d=Tg();if(jb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{h=e.apply(d,c)}catch(k){}d=h}p(d)&&(a.Fd.returnValue=d,this.B.send(a))}};
sT.prototype.D=function(a){this.B.send(a)};uT.prototype.isPharma=function(){return this.J};var vT={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Oa(" ",Number(c)-a.length):Oa(" ",Number(c)-a.length)+a},
f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var h;h=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=h+d);if((0,window.isNaN)(c)||d.length>=Number(c))return d;d=(0,window.isNaN)(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-h.length;return d=0<=b.indexOf("-",0)?h+d+Oa(" ",a):h+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,h,k,l){return vT.f((0,window.parseInt)(a,10),b,c,d,0,h,k,l)}};
vT.i=vT.d;vT.u=vT.d;A(wT,J);f=wT.prototype;f.T=function(){this.C.dispose();null!==this.B&&(this.B.dispose(),this.B=null);Ge(this.F.bc(!1),function(a){a.dispose()});
this.F.clear();bh(this.A);wT.N.T.call(this)};
f.zx=function(a){var b=a.Fd,c=Sq(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.zc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!au||MO()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
f.Ox=function(a){var b=a.Fd,c=Sq(this.A),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.zc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,xT(this,b.touches),xT(this,b.targetTouches),xT(this,b.changedTouches),b.scale,b.rotation);this.A.dispatchEvent(d)};
f.Lx=function(a){if(null!=this.o){var b=a.Fd;switch(a.zc){case "startTracking":this.o.Li();break;case "stopTracking":this.o.Lf();break;case "exitFullscreen":this.o.ql();break;case "play":this.o.play();break;case "pause":this.o.pause();break;case "load":this.o.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.o.Kf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions;this.o.qm(new uT(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma,a.useAutoplayFlag));break;case "setVolume":this.o.setVolume(b.volume)}}};
f.FC=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.o.Te();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.o.getCurrentTime();b.duration=
this.o.Dd();break;case "volumeChange":a="volumeChange";b.volume=this.o.Ed();break;default:return}this.D.send("videoDisplay",a,b)};
f.wx=function(a){switch(a.zc){case "showVideo":null!=this.B?bS(this.B):(this.B=new ZR,this.C.R(this.B,"click",this.CC));$R(this.B,zT(this.G));a=this.G;null!=a.o&&a.o.show();break;case "hide":null!==this.B&&(this.B.dispose(),this.B=null),this.G.ha()}};
f.CC=function(){this.D.send("displayContainer","videoClick")};
f.cx=function(){Ge(this.F.bc(!1),function(a){a.Mc=lh(this.A);a.connect()},this);
this.H=!0};yT.prototype.initialize=function(){null!=this.o&&this.o.initialize()};
yT.prototype.destroy=function(){Mb(this.o);Mb(this.G);Mb(this.F);bh(this.A)};
yT.prototype.ha=function(){null!=this.o&&this.o.ha()};
yT.prototype.setSize=function(a,b){var c=this.A;null!=c&&(-1==a?(c.style.right=0,c.style.left=0):c.style.width=a+"px",-1==b?(c.style.bottom=0,c.style.top=0):c.style.height=b+"px");null!=this.G&&(c=this.G,c.A.width=-1==a?"100%":a,c.A.height=-1==b?"100%":b)};var AT="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");A(CT,J);A(DT,CT);DT.prototype.start=function(){this.o.start()};
DT.prototype.stop=function(){this.o.stop()};
DT.prototype.T=function(){DT.N.T.call(this);this.B.dispose();this.o.dispose()};
DT.prototype.C=function(){if("currentTime"in this.A&&!(0,window.isNaN)(this.A.currentTime)){var a=this.currentTime;this.currentTime=this.A.currentTime;a!=this.currentTime&&this.$(new jc("currentTimeUpdate"))}else this.$(new jc("contentWrapperError")),this.stop()};ET.prototype.reset=function(){this.o=0;this.A=null};FT.prototype.reset=function(){this.A=this.o=null};var TT=new HT;HT.prototype.clear=function(){this.o=GT();this.D=this.H=this.F=null;this.C=GT();this.B=null;this.U=this.K=this.L="";this.G=this.O=this.A=null};A(KT,J);KT.prototype.A=null;KT.prototype.T=function(){delete this.o;LT(this);Zc(this.A);KT.N.T.call(this)};
KT.prototype.D=function(){JT(this)&&(LT(this),Zc(this.A),this.A=null,this.B=!0,this.$("ifload"))};A(MT,J);A(NT,jc);NT.prototype.getError=function(){return this.B};OT.prototype.getContent=function(){return this.D};
OT.prototype.clone=function(){var a=new OT(this.G,this.F),b=this.B,c=this.A,d=this.o,e=this.C;a.D=this.D;a.B=b;a.A=c;a.o=d;a.C=e||[];return a};A(QT,MT);ba(QT);f=QT.prototype;f.T=function(){this.A&&this.A.dispose();QT.N.T.call(this)};
f.initialize=function(){if(!this.C){var a;var b=uh(new Gg);try{r("googletag"),RT([b,b.top]),a=!0}catch(c){a=!1}a?bU(this):(this.C=!0,this.B="not_available")}};
f.setVideoContent=function(a,b){var c=ZT(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
f.wq=function(){0<this.F&&K()>=this.F?(this.C=!0,$T(this),aU(this)):bU(this)};
f.rD=function(a){var b=fi(a.adSizes,function(a){return new te(a.adWidth,a.adHeight)});
return new OT(a.slotId,b)};
f.hw=function(a){var b={};b.slotId=a.G;b.adContent=a.getContent();b.adWidth=a.B;b.adHeight=a.A;b.friendlyIframeRendering=a.o;nO(lO(),9419278)&&(b.onAdContentSet=y(this.tA,this,a));return b};
f.tA=function(a,b){var c;if(a.o)c=b.querySelector("iframe");else{var d=gh(b);d&&(c=gh(d))}if(c&&"IFRAME"==c.tagName)if(d=new KT(c,!0),d.B)cU(this,a,c);else{var e=c;Xc(d,"ifload",function(){cU(this,a,e)},!1,this)}};
f.sA=function(a){this.$(new NT("companion_click",null,a))};
f.sendImpressionUrls=function(a){AO(this.impressionUrls,a)};A(dU,jc);dU.prototype.getError=function(){return this.o};A(eU,jc);var Uca={IMAGE:"Image",Uu:"Flash",ALL:"All"},Tca={HTML:"Html",IFRAME:"IFrame",YM:"Static",ALL:"All"},Vca={sK:"IgnoreSize",KM:"SelectExactMatch",LM:"SelectNearMatch"},Wca={zJ:"DisallowResize",BM:"ResizeSmaller"};A(rU,N);rU.prototype.toString=function(){return tU(this,rU.N.toString.call(this))};
rU.prototype.No=function(){return""};
rU.prototype.Pe=function(){return""};
rU.prototype.clone=function(){return new rU(this.toString())};var fda=["ai","sigh"];OU.prototype.getUrl=function(){return this.B};
OU.prototype.getType=function(){return this.A};
A(PU,OU);NU.prototype.isEmpty=function(){return this.o.isEmpty()};A(ZU,XU);$U.prototype.parse=function(a){a=gh(a);var b=DU(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw DO(bia);a=a.getAttribute("offset");a=VU(a);if("skippable"==c&&null==a)throw DO(aia);return new ZU(c,a)};A(aV,XU);A(bV,XU);A(cV,XU);cV.prototype.Kb=function(){return this.A};f=dV.prototype;f.Zf=function(a){this.Ka=a};
f.zl=function(){return null};
f.Ni=function(){return null};
f.getAd=function(){return this.O};
f.xi=function(){for(var a=[this],b=this.O.A;b;){var c=gV(this,b)||gV(this,b,!0);null!=c&&a.push(c);b=b.A}return a};A(iV,dV);f=iV.prototype;f.getContent=function(){return nh(this.Sd())};
f.Ug=function(){return!1};
f.Al=function(){return this.Ug()?nh(this.Sd(!0)):""};
f.getContentType=function(){return this.fa};
f.hc=function(){return this.ma};
f.getWidth=function(){return this.hc().width};
f.getHeight=function(){return this.hc().height};
f.zl=function(){return"VPAID"==this.J?this.C:null};
f.Ni=function(){return"VPAID"==this.J&&"Flash"==this.Y?this.C:null};
f.ed=function(){return this.U};jV.prototype.getWidth=function(){return this.F};
jV.prototype.getHeight=function(){return this.C};
jV.prototype.getUrl=function(){return this.D};A(kV,dV);kV.prototype.ed=function(){return this.B};
kV.prototype.getMediaUrl=function(a){var b="";xh(this.L,function(c){var d=c.getUrl();return!C(E(a))&&a!=c.o||null==d||C(E(d))?!1:(b=d,!0)},this);
return b};
kV.prototype.zl=function(){return mV(this,"javascript")};
kV.prototype.Ni=function(){return mV(this,"x-shockwave-flash")};A(nV,G);nV.prototype.G=function(){this.C=K()};
nV.prototype.J=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.A&1&&c.push("nm="+this.D);this.A&2&&c.push("nb="+this.F.get(b));if(this.A&8){var d=Sq(this.B);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.A&16&&null!=this.C&&c.push("clkt="+(K()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
nV.prototype.H=function(){this.D++};
nV.prototype.T=function(){nV.N.T.call(this);this.o.dispose()};var mda=[0,2,1],sV=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){sV=a},!0);
window.mb=function(a){if(a){var b=tV();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=oV(a.href,"mb",b,void 0)))}};A(uV,G);uV.prototype.G=function(){this.F=K()};
uV.prototype.J=function(a,b){var c=a.element;1==(this.A&1)&&(0==this.C&&this.C++,this.o.nm=this.C);2==(this.A&2)&&(this.o.nb=a.yw);if(8==(this.A&8)){var d=Sq(this.D);this.o.nx=Math.round(b.clientX-d.x);this.o.ny=Math.round(b.clientY-d.y)}16==(this.A&16)&&null!=this.F&&(d=K()-this.F,this.o.clkt=d);512==(this.A&512)&&(d=tV())&&(this.o.mb=d);"A"==c.tagName.toUpperCase()&&Fg(c,oda(this,c.href))};
uV.prototype.H=function(){this.C++};var pda=Rg?'javascript:""':"about:blank";A(vV,iV);vV.prototype.G=function(a){null==this.B||C(E(this.ed()))||(this.B.R(a,"click",this.M),this.P.push(a))};
vV.prototype.Sd=function(a){a?(null==this.aa&&(this.aa=this.Le(a),Zg(this.aa,AV(this))),a=this.aa):(null==this.A&&(this.A=this.Le(),Zg(this.A,AV(this))),a=this.A);null!=this.B&&this.B.R(a,"creativeview",this.Z);return a};
vV.prototype.Lk=function(){var a=this.getAd().B;a&&a.Db("cleanup_text_overlay_spam_signals");return 2};
vV.prototype.xi=function(){for(var a=[this],b=this.getAd().A;b;){var c=this.D?gV(this,b)||gV(this,b,!0):BV(this,b)||BV(this,b,!0);null!=c&&a.push(c);b=b.A}return a};f=DV.prototype;f.getContentType=function(){var a=this.o,b="";if(null===a)return b;if(a instanceof kV)a=a.ka,null===a||(b=E(a.o));else if(a instanceof vV)switch(a.ea){case "IFrame":case "Html":case "Static":b=E(a.Y)}return b};
f.getExtension=function(a){return this.G.get(a)};
f.isLinear=function(){return this.fa?this.ia:mW(this)?!0:fW(this)?"video"==this.Ia:jW(this,"linear")};
f.gz=function(){return this.P};
f.getWidth=function(){return this.isLinear()?0:this.Y.width};
f.getHeight=function(){return this.isLinear()?0:this.Y.height};
f.toString=function(){return"Ad: "+this.ea};A(xW,J);xW.prototype.$n=function(){return!0};
xW.prototype.Oe=function(){return null};A(zW,xW);f=zW.prototype;f.T=function(){this.destroy();zW.N.T.call(this)};
f.destroy=function(){null!=this.D&&this.D.dispose();this.C=null;F(this.B,function(a){PT(a)},this);
this.A=null};
f.$n=function(){return this.F};
f.cC=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.o){var a=ST(this.o);null!=a&&(this.B=a)}this.H=!0;null!=this.C&&AW(this);this.$(new jc("initialized"))};
f.uA=function(a){EW(this,a.getError())};
f.qA=function(a){if(null!=a.o){var b=a.o;"companion_slot_init"==a.type?ld(function(){null!=this.A&&this.A.$(new eU("companion_impression"))},this):"companion_click"==a.type&&(Dda(b.C),null!=this.A&&this.A.$(new eU("companion_click")))}};
f.Oe=function(){return this.o};f=FW.prototype;f.Kk=function(){return zT(this.o)};
f.zi=function(){return this.o.B};
f.Ud=function(){return this.o.B};
f.Hi=function(){var a=this.o.F;return null!=a?a:new fT};
f.Sg=function(){var a=this.o;null!=a.o&&a.o.show()};
f.jd=function(){};
f.Dk=function(){return null!=this.o.C};
f.jl=function(){return this.o.D};
f.kl=function(){return!1};
f.Ii=function(){return this.o.H};
f.setSize=function(a,b){this.o.setSize(a,b)};
f.ha=function(){};A(GW,jc);A(IW,jc);ba(JW);var Kda=/iu\=\/(\d+)\//;JW.prototype.start=function(a){this.A&&this.B.set(a,K())};
JW.prototype.end=function(a,b){if(this.A&&Ke(this.B,a)){var c=K()-this.B.get(a),d=KW(this,a,c,b);wO(d);this.B.remove(a);this.C+=c}};
JW.prototype.sendMessage=function(a,b,c){this.A&&(a=KW(this,a,b,c),wO(a))};LW.prototype.start=function(a,b){this.D=a;this.G=b;Nda(this);this.F.H?this.J():ym(this.A,this.F,"initialized",this.J,this)};
LW.prototype.J=function(){var a=this.F.Oe(),b;b=a.C?"retrieved"!=a.B?void 0:a.G:void 0;a=Rca(a);null!=b&&(this.C.C=b);null!=a&&(this.C.G=a);Mda(this)};A(NW,J);var OW=null;NW.prototype.destroy=function(){this.K.ya(this.A,"activityMonitor",this.M);this.A=null};
NW.prototype.M=function(a){var b=a.Fd;switch(a.zc){case "appStateChanged":dca(KR.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":SW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":QW(b.queryId,b.viewabilityString);break;case "pageSignals":this.L=b.pageSignals;break;case "viewableImpression":RW(b.queryId,b.viewabilityString);break;case "engagementData":var c=b.engagementString,b=c;PW().C=b;PW().J=K();break;case "viewability":c=b.engagementString;
a=b.eventId;window.clearTimeout(a);var d=this.o.get(a);d&&(this.o.remove(a),d(b.viewabilityData,c));break;case "viewabilityMeasurement":KR.getInstance();OP.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);d=this.o.get(a);if(UO.getInstance().A){c=-1;this.H&&(c=K()-this.H);var e=!1;d||(e=!0);Yb(b,"loggingId")&&UO.getInstance().o(43,{step:"receivedResponse",time:K(),timeout:e,logid:b.loggingId,timediff:c})}d&&(this.o.remove(a),d(b.engagementString))}};
q("ima.bridge.getNativeViewability",function(a,b){PW();b({})},void 0);
q("ima.bridge.getVideoMetadata",function(){var a=PW().F;return ha(a)?a():{}},void 0);
q("ima.bridge.triggerViewEvent",RW,void 0);q("ima.bridge.triggerMeasurableEvent",QW,void 0);q("ima.bridge.triggerExternalActivityEvent",SW,void 0);A(VW,Sda);A(YW,TW);YW.prototype.B=function(){return new UW(this.o,null,Vda(this))};A(bX,XU);cX.prototype.parse=function(a){if(null==a)return null;var b,c,d;F(eh(a),function(a){switch(a.nodeName){case "AdFormat":b=a.getAttribute("ad_system"),c=a.getAttribute("ad_type"),d=a.getAttribute("instream_type")}},this);
return null!=b&&null!=c&&null!=d?new bX(b,c,d):null};A(eX,XU);eX.prototype.isPharma=function(){return this.G};fX.prototype.parse=function(a){var b;EU(a,"config",function(a){null!=b||(b=Yda(this,a))},this);
return b};gX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,h,k,l,m=!1,n=!1;F(eh(a),function(a){switch(a.nodeName){case "AttributionText":c=DU(a);break;case "AttributionUrl":d=DU(a);break;case "ConversionUrl":h=DU(a);break;case "CustomTracking":null!=eh(a)&&(e=WU(a));break;case "is_pharma":a=CU(a,"bool");n=HU(E(a));break;case "CheckedEvents":a=eh(a);b=fi(a,function(a){return CU(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":DU(a);break;case "VisibleUrl":k=DU(a);break;case "UI":l=(new fX).parse(a);break;case "ShowYouTubeAnnotations":var u=DU(a);m=HU(E(u),!1);case "QueryId":DU(a)}},this);
null!=l||(l=new dX);return new eX(c,d,h,0,k,l,m,0,n,e,b)};hX.prototype.parse=function(a){if(null==a)return null;var b;F(eh(a),function(a){switch(a.nodeName){case "CustomTracking":null!=eh(a)&&(b=WU(a))}});
a=null;null!=b&&0<QU(b,"skip").length&&(a="Generic");return new aV(a,b)};iX.prototype.parse=function(a){if(null==a)return null;var b,c;F(eh(a),function(a){switch(a.nodeName){case "SkippableAdType":b=DU(a);break;case "CustomTracking":null!=eh(a)&&(c=WU(a))}});
return new aV(b,c)};jX.prototype.parse=function(a){if(null==a)return null;var b;F(eh(a),function(a){switch(a.nodeName){case "CustomTracking":null!=eh(a)&&(b=WU(a))}},this);
return new XU(b)};var Zda=[202,1009],eea=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],dea={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://[^.]*.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],GOOGLE_VIEWABILITY:["://pubads.g.doubleclick.net"]};var K$,L$,M$,N$,JX,NX,O$,P$,Q$,R$,S$,T$,OX,U$;sX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
tX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
tX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
var V$=new uX;tX.prototype.getVersion=function(){var a=this.o.version;return a?new uX(a):V$};
var kia=new AX,m0=new yX,lia=new zX,mia=new BX,nia=new CX,GX=new vX,oia=new EX;uX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
uX.prototype.getMajorVersion=function(){var a=this.o.major_version;return null!=a?a:0};
vX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
wX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
wX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
wX.prototype.getId=function(){var a=this.o.id;return null!=a?a:""};
wX.prototype.setTitle=function(a){this.o.title=a};
var fea=new DX;xX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
xX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
yX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
var n0=new DX;zX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
var pia=new DX,qia=new DX,ria=new DX;AX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
BX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
CX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
DX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
EX.prototype.equals=function(a){return rV(this.o,a?a.o:null)};
var sia=new DX;var RX;
RX={ad_card:{attribution_position:{POSITION_TOP_RIGHT:2,POSITION_BOTTOM_RIGHT:3,POSITION_TOP_LEFT:1,POSITION_BOTTOM_LEFT:0}},card:{type:{TYPE_LOCATION:5,TYPE_PRODUCT:1,TYPE_WEBSITE:4,TYPE_NONE:0,TYPE_VOTE:3,TYPE_APP:2},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0,PROMINENCE_FEATURE:2}},action:{type:{TYPE_HEADLINE:1,TYPE_PLAYLIST:7,TYPE_RESPONSE:12,TYPE_SUBSCRIPTION:6,TYPE_VIDEO:3,TYPE_INLINE_APPLICATION_STORE:19,TYPE_COLLAPSE:17,TYPE_FUNDRAISING:10,TYPE_LETTERMAN:14,TYPE_IRDB:8,TYPE_NONE:0,TYPE_EXTERNAL:16,
TYPE_APPLICATION_STORE:4,TYPE_VOTE:18,TYPE_CHANNEL:2,TYPE_INTERNAL:13,TYPE_ATTRIBUTION:5,TYPE_MERCH:9,TYPE_RESULTS:11,TYPE_HELPOUTS:15}},event:{type:{TYPE_IMPRESSION:1,TYPE_ACTION:6,TYPE_DISMISS:4,TYPE_IMPRESSION_ENDCAP:8,TYPE_DISMISS_ENDCAP:11,TYPE_NONE:0,TYPE_COLLAPSE_ENDCAP:10,TYPE_HEADLINE_CLICK:5,TYPE_IMPRESSION_GALLERY:7,TYPE_COLLAPSE:3,TYPE_ACTION_ENDCAP:9,TYPE_EXPAND:2}}};A(PX,XU);QX.prototype.parse=function(a){var b=Zz(a);if(C(E(b)))return null;var c;if(this.o){c=SX;if(!K$){var d={};K$={Qb:d};if(!L$){var e={};L$={Qb:e};e.type={type:"e",label:1,oa:0};if(!M$){var h={};M$={Qb:h};h.major_version={type:"i",label:1,oa:0};h.minor_version={type:"i",label:1,oa:0}}e.version={type:"m",label:1,oa:V$,ra:M$};e.priority={type:"i",label:1,oa:0};e.start_time_ms={type:"j",label:1,oa:"0"};e.end_time_ms={type:"j",label:1,oa:""};e.action={type:"m",label:3,ra:MX()};e.event={type:"m",label:3,ra:LX()};
R$||(h={},R$={Qb:h},h.headline={type:"s",label:1,oa:""},h.description={type:"s",label:1,oa:""},h.attribution_icon_url={type:"s",label:1,oa:""},h.skippable_seconds={type:"i",label:1,oa:0},h.attribution_position={type:"e",label:1,oa:0});e.ad_card={type:"m",label:1,oa:kia,ra:R$};if(!O$){h={};O$={Qb:h};h.headline={type:"s",label:1,oa:""};h.image={type:"m",label:1,oa:n0,ra:KX()};h.description={type:"s",label:1,oa:""};h.rating={type:"f",label:1,oa:0};h.review_text={type:"s",label:1,oa:""};if(!P$){var k=
{};P$={Qb:k};k.merchant={type:"s",label:1,oa:""};k.price={type:"s",label:1,oa:""};k.shipping={type:"s",label:1,oa:""};k.shipping_tax={type:"s",label:1,oa:""};k.condition={type:"s",label:1,oa:""};k.unit_price={type:"s",label:1,oa:""};k.energy_label={type:"s",label:1,oa:""};k.description={type:"s",label:1,oa:""};k.rating={type:"f",label:1,oa:0};k.review_text={type:"s",label:1,oa:""};k.action={type:"m",label:3,ra:MX()};k.event={type:"m",label:3,ra:LX()}}h.offer={type:"m",label:3,ra:P$}}e.product_card=
{type:"m",label:1,oa:m0,ra:O$};Q$||(h={},Q$={Qb:h},h.app_id={type:"s",label:1,oa:""},h.app_name={type:"s",label:1,oa:""},h.icon={type:"m",label:1,oa:pia,ra:KX()},h.price={type:"s",label:1,oa:""},h.rating_image={type:"s",label:1,oa:""},h.review_count={type:"i",label:1,oa:0},h.app_store_logo={type:"m",label:1,oa:qia,ra:KX()},h.button_text={type:"s",label:1,oa:""},h.screenshots={type:"m",label:3,ra:KX()},h.rating={type:"f",label:1,oa:0},h.back_button_text={type:"s",label:1,oa:""},h.screenshots_text=
{type:"s",label:1,oa:""},h.cover_photo={type:"m",label:1,oa:ria,ra:KX()});e.app_card={type:"m",label:1,oa:lia,ra:Q$};e.prominence={type:"e",label:1,oa:0};S$||(h={},S$={Qb:h},h.call_to_action_text={type:"s",label:1,oa:""});e.social_card={type:"m",label:1,oa:mia,ra:S$};T$||(h={},T$={Qb:h},h.vote_line_1={type:"s",label:1,oa:""},h.vote_line_2={type:"s",label:1,oa:""},h.confirm_line_1={type:"s",label:1,oa:""},h.confirm_line_2={type:"s",label:1,oa:""});e.vote_card={type:"m",label:1,oa:nia,ra:T$};e.sponsored=
{type:"b",label:1,oa:!1};e.teaser_text={type:"s",label:1,oa:""};N$||(h={},N$={Qb:h},h.hide_in_drawer={type:"b",label:1,oa:!1},h.show_in_endcap={type:"b",label:1,oa:!1},h.show_in_companion_mobile={type:"b",label:1,oa:!1},h.show_in_cta={type:"b",label:1,oa:!1},h.override_clickthrough={type:"b",label:1,oa:!1});e.placement={type:"m",label:1,oa:GX,ra:N$};U$||(h={},U$={Qb:h},h.latitude_e6={type:"i",label:1,oa:0},h.longitude_e6={type:"i",label:1,oa:0},h.address={type:"s",label:1,oa:""},h.image={type:"m",
label:1,oa:sia,ra:KX()},h.headline={type:"s",label:1,oa:""});e.location_card={type:"m",label:1,oa:oia,ra:U$}}d.card={type:"m",label:3,ra:L$};d.event={type:"m",label:3,ra:LX()}}a=c(this,a,K$);a=c=new sX(a);d=new NU;for(e=0;e<qV(a.o,"card");e++)if(h=FX(a,e),IX(HX(h)))for(k=0;k<qV(h.o,"event");k++){var l,m=k;l=new xX(pV(h.o,"event")[m]);m=null;switch(l.getType()){case 9:m="video_card_endcap_action";break;case 10:m="video_card_endcap_collapse";break;case 11:m="video_card_endcap_dismiss";break;case 8:m=
"video_card_endcap_impression"}m&&(l=l.o.base_url,SU(d,m,TX(m,null!=l?l:"")))}a=d}else a=gea(this,a);return new PX(b,c,a)};A(UX,XU);UX.prototype.yd=function(){return this.A};VX.prototype.D=function(a){var b={};F(this.A,function(a){b[a]=[]});
var c=new RegExp("^"+this.B);F(eh(a),function(a){"config"!=a.nodeName||F(eh(a),function(a){"params"!=a.nodeName||F(eh(a),function(a){var d=this.B?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=DU(a));null!=a.getAttribute("learn_more")&&(e=e+"|");jb(this.A,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};A(XX,XU);A(ZX,VX);ZX.prototype.parse=function(a){if(null==a)return null;a=WX(this,a);var b=a.UI;return new XX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
ZX.prototype.C=function(a){var b=[],c=0;F(eh(a),function(a){if("SurveyOption"==a.nodeName){var e,h;F(eh(a),function(a){switch(a.nodeName){case "DisplayName":e=DU(a);break;case "URL":h=DU(a)}},this);
null!=e&&null!=h&&(b.push({label:e,url:h}),c++)}},this);
return b};A($X,XU);aY.prototype.o={Ov:"Siub",Nv:"Scs",ru:"Bgub",qu:"Bgp"};aY.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(eh(a),function(a){switch(a.nodeName){case this.o.Ov:b=DU(a);break;case this.o.Nv:c=DU(a);break;case this.o.ru:d=DU(a);break;case this.o.qu:e=DU(a)}},this);
return b&&c&&d&&e?new $X(b,c,d,e):null};A(bY,XU);cY.prototype.o={Tv:"TEMPLATE_PARAMETERS",Uv:"TEMPLATE_URL"};cY.prototype.parse=function(a){if(null==a)return null;F(eh(a),function(a){switch(a.nodeName){case this.o.Tv:hea(this,a)}},this);
return new bY};A(dY,XU);eY.prototype.o={hv:"Line1",jv:"Line2",kv:"Line3",ev:"ImageUrl"};eY.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(eh(a),function(a){switch(a.nodeName){case this.o.hv:b=DU(a,!0);break;case this.o.jv:c=DU(a,!0);break;case this.o.kv:d=DU(a,!0);break;case this.o.ev:e=DU(a)}},this);
return new dY(b,c,d,e)};A(fY,XU);gY.prototype.parse=function(a){if(null==a)return null;var b;F(eh(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(E(a))||(b=a)}},this);
return new fY(b)};A(hY,XU);A(iY,VX);var tia=["menu","got_it","targeting_reason_header"],uia=[["generic_message_left","generic_message_hypertext","generic_message_right"]];iY.prototype.parse=function(a){if(null==a)return null;a=WX(this,a);var b=a.UI;if(!jY(b,tia))return null;var c,d=!0,e=!1;F(uia,function(a){iea(b,a)&&(jY(b,a)?e=!0:d=!1)});
var h=b.targeting_reason;if(!d||!e||0==h.length)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new hY(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};kY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ya(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new bV(a)};A(lY,XU);mY.prototype.parse=function(a){return null!=a?new lY:null};nY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new cV(a)};f=oY.prototype;f.getContent=function(){return this.o.getContent()};
f.getContentType=function(){return this.o.getContentType()};
f.getWidth=function(){return this.o.getWidth()};
f.getHeight=function(){return this.o.getHeight()};
f.getAd=function(){return this.o.getAd()};A(qY,vV);qY.prototype.Le=function(){var a=this.J,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:uO(E(this.C)),width:this.getWidth(),height:this.getHeight(),Ib:this.ed(),tf:this.ko||!a},b=W()&&qU(this.F,"hideMaster")?pY:lea,a=rS(b,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.W;F(a.getElementsByTagName("object"),this.G,this);F(a.getElementsByTagName("a"),this.G,this);return a};A(rY,vV);rY.prototype.Le=function(){var a=O("div");a.innerHTML=this.C;this.G(a);return zV(this,a)};A(sY,vV);sY.prototype.getContent=function(){var a=sY.N.getContent.call(this);this.D&&(a=a.replace('src=""','src="'+uO(E(this.C))+'"'));return a};
sY.prototype.Al=function(){var a=sY.N.Al.call(this);this.D&&(a=a.replace('src=""','src="'+uO(E(this.C))+'"'));return a};
sY.prototype.Le=function(a){var b="";this.D||(b=uO(E(this.C)));b={id:this.W,url:b,Ib:this.ed(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=W()&&qU(this.F,"hideMaster")?pY:a?nea:mea;a=rS(a,b);F(a.getElementsByTagName("a"),this.G,this);return a};
sY.prototype.Ug=function(){return!0};A(tY,vV);f=tY.prototype;f.hc=function(){return new te(this.getWidth(),this.getHeight())};
f.getHeight=function(){return 63};
f.getWidth=function(){return null!=this.H?br(this.H).width:0};
f.Lk=function(a){var b=this.getAd().B;return b&&b.Db("cleanup_text_overlay_spam_signals")?Xd(a,"text-image-link")?9:Xd(a,"text-ad-channel")?1:0:Xd(a,"text-image")?9:Xd(a,"text-ad-channel")?1:0};
f.Le=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.B,e="rtl";null!=d&&(e=W0.test(Vf(d,void 0))?"rtl":"ltr");d={title:d,text:c.C+" "+c.D,dir:e,Ib:this.ed()};if(c=c.A)d.image=uO(c),a=eb(a.D,function(a){return a instanceof kV}),null!=a&&(d.duration=oU(a.Ka));
b.A&&(d.Hr=b.A);this.H=rS(kea,d);F(this.H.getElementsByTagName("a"),this.G,this);this.H.id=this.W;this.H.style.height=this.getHeight()+"px";return this.H};A(uY,vV);uY.prototype.Le=function(){var a=E(this.C);C(E(this.ed()))||(a=new N(a),xf(a,"clickTAG",wa(this.ed())),a=a.toString());var b=O("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.getWidth());b.setAttribute("src",uO(a));this.G(b);return zV(this,b)};xY.prototype.getContentType=function(){return null!=this.o?hV[this.o]||"Other":null};yY.prototype.Sd=function(){return this.o};
yY.prototype.display=function(a){this.C=a;this.C.appendChild(this.o);a=this.o;var b=ar(this.C),b="left"==this.D?"0px":"right"==this.D?b.width-this.B.hc().width+"px":this.D+"px",c;c=ar(this.C);c="bottom"==this.F?"0px":"top"==this.F?c.height-this.B.hc().height+"px":c.height-this.B.hc().height-ab(this.F)+"px";Iq(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});dr(this.o,!1)};
yY.prototype.update=function(a,b){var c=null!=this.G?LU(this.G):0;this.A=0<=this.A?this.A:b;c<=a&&c+this.A>=a?pea(this):dr(this.o,!1)};A(zY,TW);
zY.prototype.o={iu:"Ad",Zj:"AdParameters",ku:"AdSystem",lu:"AdTitle",NH:"Advertiser",ou:"AltText",uu:"ClickThrough",vu:"ClickTracking",wu:"Companion",xu:"CompanionAds",yu:"CompanionClickThrough",zu:"CompanionClickTracking",Bu:"Creative",rJ:"CreativeExtensions",Cu:"Creatives",Gu:"CustomClick",Ju:"Description",ak:"Duration",ERROR:"Error",Ru:"Extension",Su:"Extensions",Kh:"HTMLResource",Xu:"Icon",Yu:"Icons",Zu:"IconClicks",$u:"IconClickThrough",av:"IconClickTracking",bv:"IconViewTracking",Mh:"IFrameResource",Nh:"Impression",
uK:"InLine",LINEAR:"Linear",ov:"MediaFile",pv:"MediaFiles",wv:"NonLinear",xv:"NonLinearAds",yv:"NonLinearClickThrough",zv:"NonLinearClickTracking",nM:"Pricing",Oh:"StaticResource",Sv:"Survey",uN:"Tracking",dk:"TrackingEvents",HN:"VAST",Wv:"VASTAdTagURI",Xv:"VideoClicks",$v:"Wrapper"};
zY.prototype.A={ju:"adSlotID",nu:"allowMultipleAds",Ih:"apiFramework",Fn:"bitrate",Du:"creativeType",Iu:"delivery",ak:"duration",UJ:"event",Vu:"followAdditionalWrappers",Pu:"expandedHeight",Qu:"expandedWidth",Jh:"height",Lh:"id",lv:"maintainAspectRatio",nv:"maxBitrate",rv:"minBitrate",tv:"minSuggestedDuration",Av:"offset",Bv:"program",Fv:"required",Iv:"scalable",Kn:"sequence",Lv:"skipoffset",TYPE:"type",VERSION:"version",Yv:"codec",Ph:"width",aw:"xPosition",bw:"yPosition"};
zY.prototype.B=function(){return new UW(this.C,sea(this),null)};A(IY,TW);IY.prototype.B=function(){return new UW(this.A,null,Lea(this))};f=MY.prototype;
f.clone=function(){var a=new MY;"auto"==this.Ye?a.Ye="auto":"click"==this.Ye&&(a.Ye="click");a.o=this.o;a.Ge=ec(this.Ge);a.A=this.A;a.D=this.D;a.Cb=ec(this.Cb);a.F=this.F;a.location=this.location;a.referrer=this.referrer;a.H=this.H;a.language=this.language;a.Gf=this.Gf;a.Ff=this.Ff;a.Ic=this.Ic;a.Hc=this.Hc;a.Bc=this.Bc;a.Fi=this.Fi;a.Gi=this.Gi;a.um=this.um;a.B=this.B;a.C=this.C;a.rh=this.rh;a.Ei=this.Ei;a.afcRmFallback=this.afcRmFallback;a.K=this.K;a.J=this.J;a.xf=this.xf;this.G&&(a.G=sb(this.G));
a.Db=this.Db;a.Cf=this.Cf;a.Uk=this.Uk;a.allowAdsPayCreator=this.allowAdsPayCreator;a.Op=this.Op;return a};
f.Ge=null;f.Cb=null;f.Ye="unknown";f.Op=0;f.Gf=0;f.Ff=0;f.Ic=0;f.Hc=0;f.xf=!1;f.Bc=null;f.Fi=!1;f.Gi=!1;f.um=!0;f.Db=function(){return!1};
f.Cf=function(){return window.NaN};
f.Uk=function(){return""};
f.rh=0;f.xo=!0;f.Ei=null;f.afcRmFallback=!1;f.allowAdsPayCreator=!1;NY.prototype.H=function(){return this.C(this.D()).toString()};
NY.prototype.F=function(){var a;a=1;TO()&&(a+=4);if(!W()){var b=0;nO(lO(),41351017)&&(b+=7168);a=a+b}return a};var mZ={AN:"ultrahigh",lK:"high",qv:"medium"},Xea={iI:1E3,jI:1001,kI:1002,lI:1003,mI:1004,nI:1005,oI:1006},Yea={mv:1,Tu:2},Zea={oJ:"content",PM:"site",QM:"site_content"};f=TY.prototype;f.Th="high";f.vl=!1;f.fk=1;f.gk=null;f.adType="video";f.adBlock=1;f.wl=null;f.ik=!0;f.jk=null;f.Bk=null;f.Gg=null;f.experimentIds=null;f.gender=null;f.host=null;f.hostTierId=null;f.xl=!1;f.language=null;f.sp=null;f.qp=null;f.Vi=1E5;f.Wi=null;f.up=null;f.tp=null;f.Rl=0;f.Mf=null;f.dj=null;f.jj=null;f.wm=null;
f.tagForChildDirectedTreatment=-1;f.url=null;f.Mi=null;f.Lm=null;f.yl=null;f.Sm=null;f.Pm=null;f.Qm=null;f.Rm=null;f.pk=null;var Uea=(new Date).getTime();var Vea={SI:"bumpervideo",Uu:"flash",IMAGE:"image",VM:"skippablevideo",XM:"standardvideo",ZM:"staticimage",TEXT:"text",VIDEO:"video"},eZ=["flash","image","staticimage"],Wea=[new te(200,200),new te(250,250),new te(300,250),new te(336,280),new te(450,50),new te(468,60),new te(480,70),new te(728,90)];A(nZ,NY);var $ea=["bumpervideo","skippablevideo","standardvideo","video"];nZ.prototype.G={mu:"allow",Nu:"exclude",yM:"require"};nZ.prototype.F=function(){var a=nZ.N.F.call(this);W()&&this.o.jj&&(a|=this.o.jj);return a};
nZ.prototype.C=function(a){var b=new N(this.A.o),c=new N("//"+b.A+b.B),b=a.Pa();F(b,function(b){xf(c,b,a.get(b))});
nO(lO(),41351083)||nf(c,"https");return c};
nZ.prototype.D=function(){var a=new Ie;a.set("sdkv",SY(this));a.set("sdki",this.F().toString(16));a.set("video_product_type",null!=this.o.Mf?W()?5:ta(this.o.Mf,"ca-games-")?4:ta(this.o.Mf,"ca-video-")?0:-1:-1);a.set("correlator",this.J.o);a.set("client",this.o.Mf);W()&&!C(E(this.o.url))?a.set("url",this.o.url):a.set("url",this.A.location?this.A.location:this.A.referrer);null!=this.A.Bc&&a.set("adk",this.A.Bc);a.set("num_ads",oZ(this));a.set("channel",bfa(this));a.set("output","xml_vast3");this.o.vl&&
a.set("adtest","on");lU&&a.set("flash",ZP);dZ("alternate_ad_url",this.o.jk,a);dZ("cpm",this.o.Bk,a);VY(a,this.A);W()||Tb(mZ,this.o.Th)&&a.set("adsafe",this.o.Th);this.o.host&&(a.set("host",this.o.host),dZ("ht_id",this.o.hostTierId,a),null!=this.o.B&&dZ("h_ch",this.o.B.join("+"),a));dZ("hl",this.o.language,a);dZ("cust_age",this.o.wl,a);dZ("cust_gender",this.o.gender,a);-1!=this.o.tagForChildDirectedTreatment&&dZ("tfcd",this.o.tagForChildDirectedTreatment,a);dZ("slotname",this.o.gk,a);if(ZY(this.o)&&
(a.set("ea","0"),null!=this.A.Ic&&null!=this.A.Hc)){var b=$Y(this.o,this.A.Ic,this.A.Hc,this.A.xf);a.set("image_size",b);C(b)&&(this.o.o=gZ(this.o.o,this.o.adType,!0),this.o.adType=this.o.o.join("_"))}a.set("ad_type",this.o.adType);b=pO(lO());C(E(b))||a.set("eid",b);WY(a);UY(a,this.J,this.A.D||this.o.Gg);a.set("unviewed_position_start","1");b=this.o.fk;a.set("videoad_start_delay",null!=b?b:1);QY(this,a);RY(this,a);OY(this,a);afa(this)&&a.set("video_format",null!=this.o.Mi&&W()?this.o.Mi:ul&&bu(6)||
TF&&bu(4)||SF&&PO(SO,2.3)?43:18);b=null!=this.o.dj?this.o.dj:jb(this.o.adType.split("_"),"text")?this.G.mu:this.G.Nu;a.set("t_pyv",b);dZ("min_ad_duration",this.o.Rl,a);0<this.o.Vi&&a.set("max_ad_duration",pZ(this.o.Vi,oZ(this)));0<this.o.Wi&&a.set("sdmax",pZ(this.o.Wi,oZ(this)));aZ(a,this.K);W()&&(b=dS(this.o.Gg),null!=b&&a.set("video_doc_id","yt_"+b));dZ("description_url",this.o.Gg,a);W()&&(dZ("lact",XY(this.A),a),dZ("loeid",this.o.yl,a),dZ("lsv",this.o.xl,a),this.o.ik||dZ("scs","false",a),dZ("targeting",
this.o.wm,a),dZ("video_cpm",this.o.Lm,a),dZ("yt_pt",this.o.Sm,a),dZ("ytdevice",this.o.Pm,a),dZ("ytdevicever",this.o.Qm,a),dZ("yt_vis",YY(this.A),a),dZ("dbp",this.o.Rm,a),dZ("avo",this.o.pk,a));null!=a.get("ms")||dZ("ms",this.o.C,a);PY(a);bZ(this.A,a,!1);null!=this.A.Ge&&dZ("loc",this.A.Ge.page_location,a);return a};A(qZ,NY);qZ.prototype.C=function(a){var b=new N(this.A.o);F(a.Pa(),function(c){C(a.get(c))?b.o.remove(c):xf(b,c,a.get(c))});
nO(lO(),41351083)||nf(b,"https");return b};
qZ.prototype.D=function(){var a=new Ie;a.set("sdkv",SY(this));RY(this,a);OY(this,a);PY(a);null!=this.A.Bc&&a.set("adk",this.A.Bc);return a};A(rZ,NY);rZ.prototype.D=function(){return new Ie};
rZ.prototype.C=function(){var a=new rU(this.A.o),b=SY(this);b&&sU(a,"dc_sdkv",[b]);(b=this.F().toString(16))&&sU(a,"dc_sdki",[b]);(b=this.B.H)&&sU(a,"dc_submodel",[b]);null!=this.A.Bc&&sU(a,"dc_adk",[this.A.Bc]);b=new Ie;QY(this,b);RY(this,b);OY(this,b);PY(b);Ke(b,"js")&&sU(a,"dc_js",[b.get("js")]);Ke(b,"msid")&&sU(a,"dc_msid",[b.get("msid")]);Ke(b,"frm")&&sU(a,"dc_frm",[b.get("frm")]);Ke(b,"osd")&&sU(a,"dc_osd",[b.get("osd")]);Ke(b,"sdr")&&sU(a,"dc_sdr",[b.get("sdr")]);sU(a,"dcmt",["text/xml"]);
Ke(b,"vpa")&&sU(a,"vpa",[b.get("vpa")]);Ke(b,"mpt")&&sU(a,"mpt",[b.get("mpt")]);Ke(b,"mpv")&&sU(a,"mpv",[b.get("mpv")]);nO(lO(),41351083)||nf(a,"https");return a};A(sZ,NY);sZ.prototype.C=function(a){a=new N(a.get("adTagUrl"));nO(lO(),41351083)||nf(a,"https");return a};
sZ.prototype.H=function(){var a=E(this.D().get("adTagUrl"));nO(lO(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};
sZ.prototype.D=function(){var a=new Ie;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};A(tZ,NY);tZ.prototype.C=function(a){return new N(a.get("adTagUrl"))};
tZ.prototype.D=function(){var a=new Ie;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};A(uZ,NY);uZ.prototype.C=function(a){var b=new N(this.A.o);F(a.Pa(),function(c){C(a.get(c))?b.o.remove(c):xf(b,c,a.get(c))});
nO(lO(),41351083)||nf(b,"https");return b};
uZ.prototype.D=function(){var a=new Ie,b=lO(),c=pO(b);C(E(c))||a.set("eid",c);a.set("sdkv",SY(this));a.set("sdki",this.F().toString(16));a.set("correlator",this.B.C);a.set("scor",this.B.o);null!=this.A.Bc&&a.set("adk",this.A.Bc);QY(this,a);RY(this,a);OY(this,a);PY(a);var c=(new N(this.A.o)).o,d=new TY;d.A=kZ(d.A,c.get("overlay"));a.set("afvsz",$Y(d,this.A.Ic,this.A.Hc,this.A.xf));c=this.B.B;null!=c&&(this.B.B=null,a.set("fbidx",c));c=this.B.O;null!=c&&a.set("ppid",c);c="null";d=this.B.F;null!=d?c=
d:vZ(this.A.location)?c=this.A.location:vZ(this.A.referrer)&&(c=this.A.referrer);a.set("url",c);c=this.B.H;null!=c&&a.set("submodel",c);c=this.B.G;null==c||W()||(c=cfa(c),a.set("ciu_szs",c));a.set("impl","");c=nO(b,41351073);b=nO(b,41351074);(c||!W()&&b)&&a.set("unviewed_position_start","1");return a};A(wZ,uZ);wZ.prototype.C=function(a){a=wZ.N.C.call(this,a);this.J||efa(this,a);return a};A(xZ,rZ);xZ.prototype.C=function(a){a=xZ.N.C.call(this,a);this.J||gfa(this,a);return a};A(yZ,NY);var hfa=["CPN","MT","LACT","VIS"];yZ.prototype.C=function(){var a=new N(bO(this.A.o,ifa(this)));nO(lO(),41351083)||nf(a,"https");return a};
yZ.prototype.D=function(){return new Ie};DZ.prototype.Bd=function(){return null!=this.o&&this.o.Bd()?!0:0<this.ads.length&&this.A<this.ads.length-1};
DZ.prototype.K=function(a,b){return this.D?0<a.length?a:b:ub(b,0,1)};
DZ.prototype.B=function(a,b,c){var d;if(!(d=null!=a.o)){var e=this.F;d=e.Ic||0;e=e.Hc||0;fW(a)&&!a.P?jW(a,"nonlinear")?BZ(a,d,e):CZ(a):jW(a,"linear")?CZ(a):jW(a,"nonlinear")&&BZ(a,d,e);d=null!=a.o}d?(this.G++,b(a)):(b=kb(a.D)?DO(LY):a.isLinear()?DO(XZ):DO(eia),d=pX(b,a),qU(uda(a),"rm")?b.A=!1:AO(a.Z,d),c(b))};
DZ.prototype.H=function(a,b,c){var d=this.F.clone();d.A="";d.o=a.Ja;d.Bc=BT(d.o,d.Ei);FZ(this,a,d,b,c)};A(KZ,DZ);KZ.prototype.Bd=function(){return null!=this.o&&this.o.Bd()?!0:0<this.ads.length&&this.A<this.ads.length-1&&0==this.G};
KZ.prototype.K=function(a,b){return b};
KZ.prototype.B=function(a,b,c){var d=-1,d=null==this.o?bW(a):bW(this.ads[this.A]);this.M.B=d;KZ.N.B.call(this,a,b,c)};
KZ.prototype.H=function(a,b,c){this.M.B=-1;KZ.N.H.call(this,a,b,c)};LZ.prototype.fetch=function(a,b,c){C(E(a.A))?yU(a.o)&&null!=this.o&&!this.o.H?this.o.start(a,y(function(){NZ(this,a,b,c)},this)):NZ(this,a,b,c):xfa(this,a,b,c)};
LZ.prototype.A=function(a,b,c,d){var e=jfa(a,this.C).H(),e=yO(e,d,!0);d=a.Gi&&rO(Yha,e)?"POST":"GET";nfa(this.B,e,y(function(d){MZ(this,d,a,b,c)},this),y(function(b,d){var e;
e=8==b?DO(PZ):5==b||6==b?DO(Zha):DO($ha,d);c(e);e="third_party";vU(a.o)?e="adsense":xU(a.o)?e="dart":yU(a.o)&&(e="xfp");e={rt:e,ec:b};UO.getInstance().o(18,e,!0)},this),this.F,d);
zfa(a)};OZ.prototype.reset=function(a){this.o=a+K()};A(SZ,J);var via={NORMAL:"normal",FULLSCREEN:"fullscreen"};A(YZ,G);f=YZ.prototype;f.Tg=!1;f.Zo=1E3;f.Qp=30;f.Rp=45E3;f.Zq=15E3;f.Jr=!1;f.zk=function(){var a=ZZ(this);this.o.appendChild(this.K);this.display(this.K);this.play();return a};
f.la=function(){null==this.M&&(this.M=this.zk());return this.M};
f.play=function(){null==this.A&&(this.A=Rd(function(){this.Tg||(this.ha(),this.Jr=!0);this.A=null},this.Jr?this.Zq:this.Rp,this))};
f.stop=function(){null!=this.A&&(Td(this.A),this.A=null)};
f.display=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
f.show=function(){cr(this.la(),1);null!=this.B&&(Td(this.B),this.B=null)};
f.ha=function(){cr(this.la(),this.Qp/100);null==this.B&&(this.B=Rd(function(){this.U();this.B=null},400,this))};
f.ky=function(){this.show();this.Tg=!0;this.F=Rd(function(){this.Tg&&this.stop();this.F=null},this.Zo,this)};
f.PD=function(){null!=this.F&&(Td(this.F),this.F=null);this.Tg&&this.play();this.Tg=!1};
f.T=function(){YZ.N.T.call(this);this.stop();Mb(this.$c)};A($Z,YZ);f=$Z.prototype;f.zk=function(){var a=ZZ(this);L(a,"ima-container-rotator");this.H=O("div");this.o.appendChild(this.H);F(this.L,function(a,c){L(a,"ima-container-highlight");var d=63/this.L.length*(c+.5)-5,e=O("div",{id:Xa(),"class":"ima-container-selector"});e.style.top=d+"px";this.$c.R(e,"click",function(a){this.Yf(a.target)});
this.O.set(e.id,a);this.G.appendChild(e)},this);
this.Yf(gh(this.G));this.play();return a};
f.play=function(){null==this.C&&(this.C=new Pd(this.P),this.$c.R(this.C,"tick",this.mD));$Z.N.play.call(this);this.C.start()};
f.stop=function(){null!=this.C&&this.C.stop();$Z.N.stop.call(this)};
f.mD=function(){var a=this.D;this.Yf((p(a.nextElementSibling)?a.nextElementSibling:fh(a.nextSibling))||gh(this.D.parentNode))};
f.Yf=function(a){this.D&&$d(this.D,"ima-container-active");L(a,"ima-container-active");var b=this.O.get(a.id);ch(b,this.H);this.D=a;this.H=b;this.display(b)};A(a_,YZ);a_.prototype.ha=v;a_.prototype.zk=function(){var a=ZZ(this);F(this.C,function(a){L(a,"ima-container-highlight");this.o.appendChild(a);this.display(a)},this);
this.play();return a};A(b_,mA);f=b_.prototype;f.play=function(){if(this.ib())return!1;this.Yi();this.uc("play");this.startTime=K();this.o=1;if(Rha())return Iq(this.A,this.G),this.C=Rd(this.lx,void 0,this),!0;this.tm(!1);return!1};
f.lx=function(){ar(this.A);lr(this.A,this.F);Iq(this.A,this.B);this.C=Rd(y(this.tm,this,!1),1E3*this.D)};
f.stop=function(){this.ib()&&this.tm(!0)};
f.tm=function(a){kr(this.A,"");Td(this.C);Iq(this.A,this.B);this.endTime=K();this.o=0;a?this.uc("stop"):this.Xb();this.Yg()};
f.T=function(){this.stop();b_.N.T.call(this)};
f.pause=function(){};A(e_,J);f=e_.prototype;f.start=function(){this.nl();this.A=0;f_(this);this.C=!0;this.D.start()};
f.play=function(){this.C||(f_(this),this.C=!0,this.D.start())};
f.pause=function(){this.C&&f_(this)};
f.nl=function(){};
f.OB=function(){this.A+=.2;this.ml(this.A,this.K);this.$("timeUpdate");0>=this.K-this.A&&(f_(this),this.$("end"))};
f.ml=v;f.T=function(){this.C=!1;this.J.dispose();e_.N.T.call(this)};A(h_,J);h_.prototype.F=function(){this.o?this.$("videoUnmuteClicked"):this.$("videoMuteClicked")};
h_.prototype.T=function(){this.D.dispose();this.D=null;h_.N.T.call(this)};A(i_,J);f=i_.prototype;f.T=function(){null!=this.H&&(this.H.dispose(),this.H=null);null!=this.J&&(this.J.dispose(),this.J=null);l_(this);null!=this.D&&(bh(this.D),this.D=null);null!=this.B&&(this.B=null);null!=this.o&&(bh(this.o),this.o=null);this.M.dispose();this.M=null;this.G.dispose();this.G=null;this.U=!1;i_.N.T.call(this)};
f.update=function(a,b){this.Y=b;if(!(0>=this.Y||null==this.A.skipOffset||0>LU(this.A.skipOffset))){var c=LU(this.A.skipOffset);c>=this.Y||3==this.C||(0>a?this.C=1:a<=c?(2!=this.C&&(k_(this,0),c_(this.D,.5,"ease-out",0,1).play(),dr(this.D,!0)),this.C=2):(3!=this.C&&(dr(this.o,!0),this.J=new b_(this.D,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.H=c_(this.o,.5,"ease-out",0,1),this.J.play(),this.H.play(),this.B.autofocus&&
this.B.focus(),this.G.R(jh(this.o),"mouseover",this.jD),this.G.R(jh(this.o),"mouseout",this.yr),this.yr()),this.C=3,this.$("skipshown")))}2==this.C&&k_(this,a)};
f.skip=function(){return null==this.A.skipOffset||3!=this.C||this.O?!1:(this.O=!0,this.$("PUBLISHER_INVOKED_SKIP"),!0)};
f.BD=function(a){W()||a.stopPropagation();3!=this.C||this.O||(this.O=!0,this.$("skip"))};
f.yr=function(){null==this.F&&(this.F=Rd(function(){this.U=!0;c_(this.o,.5,"ease-in",1,.5).play();this.F=null},this.U?5E3:15E3,this))};
f.jD=function(){cr(this.o,1);l_(this)};
f.setVisible=function(a){null!=this.K&&dr(this.K,a);null!=this.B&&dr(this.B,a)};A(o_,J);f=o_.prototype;f.show=function(){null!=this.A&&dr(this.A,!0)};
f.skip=function(){var a;if(a=null!=this.C)a=this.C,a=null!=a.A.skipOffset&&3==a.C;return a?this.C.skip():!1};
f.T=function(){null!=this.A&&(bh(this.A),this.A=null);p_(this);F(this.U,function(a){bS(a)});
this.U=[];this.D=null;this.B.dispose();this.B=null;this.ua=!1;o_.N.T.call(this)};
f.update=function(a,b,c,d,e){this.ua=!0;null!=this.A&&(null!=this.ia&&Rfa(this,a,c,d,e),null!=this.Z&&Yq(this.Z,a/c*100+"%"),null!=this.xa&&Yq(this.xa,b/c*100+"%"),0<c&&null!=this.o.skipOffset&&null!=this.C&&(MU(this.o.skipOffset,c),this.C.update(a,c)),this.o.G&&0<c&&5>c-a&&L(this.Y,"videoAdUiTopBarNoFade"),F(this.Fa,function(b){b.update(a,c)},this))};
f.kw=function(){this.$("videoAuthorIconClicked")};
f.lw=function(){this.$("videoAuthorClicked")};
f.Mp=function(){this.$("videoLearnMoreClicked")};
f.yD=function(){this.$("videoShareClicked")};
f.KD=function(){this.$("videoTitleClicked")};
f.Iy=function(a){a.preventDefault()};
f.yj=function(){this.$("click")};
f.xD=function(){L(this.Y,"videoAdUiTopBarTransitions")};
f.WC=function(){var a=th(this.A,"html5-video-player"),b=this.o.C;null!=a&&(b.C=new sm(b),b.A=new J,b.A.ag(this),b.F=a,b.Vq(),b.A.$("why_this_ad_url"));null!=this.C&&this.C.setVisible(!1)};
f.VD=function(){null!=this.C&&this.C.setVisible(!0)};f=t_.prototype;
f.Vq=function(){var a={heading:"",targetingReasons:[],learnMore:"",Ik:"",control:"",mute:""};if(null!=this.D){a.heading=this.D.D;var b=this.D.A;if(b&&3==b.length){var c=b[1],d=b[2],b=xS(Y(b[0])+YS()+Y(c)+xS("</a>")+Y(d));a.Ik=b}a.targetingReasons=sb(this.D.F);a.close=this.D.B}else a.Ik=ZS(),b="",c=ra("Got It"),a.close=b+c;null!=this.B&&(a.mute=this.B.C);v_(this,Kca,a);u_(this,"videoAdUiWhyThisAdCloseButton",this.ii);u_(this,"videoAdUiWhyThisAdControl",this.wo);u_(this,"videoAdUiWhyThisAdMute",this.VC);
a=this.wo;b=Mg("videoAdUiWhyThisAdGenericMessage",this.o);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.C.R(b,"click",a))};
f.ii=function(){null!=this.C&&(this.C.dispose(),this.C=null);m_(this)&&null!=this.o&&(null!=this.A&&(this.A.$("why_this_ad_got_it"),this.A.dispose(),this.A=null),this.o.parentElement.removeChild(this.o),this.o=null)};
f.wo=function(){null!=this.A&&this.A.$("why_this_ad_settings_url")};
f.VC=function(){if(null!=this.B){this.A.$("mute_interaction_url");var a,b=YX(this.B);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},v_(this,Mca,a),u_(this,"videoAdUiMuteCancel",this.Vq),u_(this,"videoAdUiMuteConfirm",this.Ew);else{this.A.$("mute_url");a={heading:this.B.B,undo:this.B.F,question:this.B.D,options:[],confirm:"SEND",cancel:"CLOSE"};var c;c=this.B?(c=QU(this.B.o,"mute_undo_url"))&&0<c.length:!1;c||(a.undo="");for(c=0;c<b;c++)a.options.push(this.B.A[c].label);
v_(this,Lca,a);u_(this,"videoAdUiMuteUndo",this.OD);u_(this,"videoAdUiMuteConfirm",this.ED);u_(this,"videoAdUiMuteCancel",this.wk)}}};
f.Ew=function(){this.A.$("mute_url");this.wk()};
f.OD=function(){this.A.$("mute_undo_url");this.ii()};
f.ED=function(){if(null!=this.B){for(var a=YX(this.B),b=!1,c=0;c<a;c++){var d=Mg("videoAdUiMuteOption"+c,this.o);if(null!=d&&d.checked){b=!0;wO(this.B.A[c].url);break}}if(!b)return}this.wk()};
f.wk=function(){this.A.$("MUTE_AD");this.ii()};A(z_,e_);f=z_.prototype;f.start=function(){this.nl();this.B.update(0,this.L);c_(this.o,this.H.A,"ease-out",0,1).play();this.J.R(this.B,"skip",this.gw);z_.N.start.call(this)};
f.getContainer=function(){return this.o};
f.nl=function(){var a=ar(this.o);if(1==this.G){var b=400>=(0,window.parseInt)(Lq(this.o,"width"),10)||400>=a.width;M(this.o,"videoAdUi-mobile",b)}else if(2==this.G){var c=gh(this.o),d=ar(c),e=65>=(a.height-d.height)/2;M(this.o,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;M(this.o,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
f.gw=function(){this.pause();this.$("skip")};
f.ml=function(a,b){this.B.update(a,b);if(this.F){var c=d_({lg:y_(b-a)});mh(this.F,c)}};
f.T=function(){this.B&&this.B.dispose();$g(this.o);z_.N.T.call(this)};A(A_,G);A_.prototype.o=function(a){if(fO.o){var b=VR(RR(),a.type,this.F);this.M(a.type,b)}else Rda(PW(),a.type,this.F,y(this.M,this,a.type))};
A_.prototype.M=function(a,b,c){b=ec(b||{});if("timeout"==(b.viewability||"")){var d=this.J[a];null!=d&&(b.viewability=d)}null!=b.viewability&&(d=b.viewability,null!=d&&(this.A.VIEWABILITY=d));"impression"==a&&!this.K&&null!=this.G&&0<this.G.length&&(d=jb(this.H,"impression"),B_(this,this.G,{},d),this.K=!0);if(Ufa(this,a)){var d=fO.F&&jb(this.H,a),e=TU(this.C,a);0<e.length&&(B_(this,e,b,d,c),this.B.set(a,!0))}this.A.VIEWABILITY="na"};A(C_,J);C_.prototype.B=function(a){switch(a.type){case "companion_impression":this.$(new aO("companionImpression",this.o));break;case "companion_click":this.$(new aO("companionClick",this.o))}};A(D_,J);f=D_.prototype;f.gh=function(){var a=ib(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};
f.jr=function(){if(!E_(this)){if(kb(this.ads))throw EO(XZ);this.H=this.ads[0];if(null==this.H.o)throw DO(XZ);}};
f.na=function(a,b){var c=E_(this)?H_(this):null;this.$(new aO(a,c,b))};
f.rA=function(){};
f.Wl=function(){};
f.destroy=function(){this.dispose()};
f.T=function(){E_(this)&&(VV(this.H,null),this.H=null);Mb(this.J);this.G=this.J=null;this.ea=!1;fO.o?RR().F=null:this.xa&&(PW().F=null);D_.N.T.call(this)};
f.Yd=function(){return[]};
f.getCurrentAd=function(){return this.ads[0]};
f.init=function(a){P_(this);this.Ki(a);this.Ea=!0;this.Zg();if(fO.o){a=RR();var b=y(this.ep,this);a.F=b}else this.xa&&(a=PW(),b=y(this.ep,this),a.F=b)};
f.Zg=function(){this.na("loaded")};
f.sendImpressionUrls=function(a){E_(this)&&W()&&AO(SV(H_(this)),a)};
f.rr=v;f.Wc=function(a,b,c){if(!this.ea){if(null==a)throw EO(bT,null,"displayContainer");if(null!=c){var d=new Pj(Wb(this.B));if(!Se(Wb(c),d.contains,d))throw EO(bT,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.B;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Rg&&(c.Rg=[]);Xfa(c.Rg);if(!ga(c.loadVideoTimeout)||0>=c.loadVideoTimeout)c.loadVideoTimeout=15E3;hc(d,c)}this.content=b;this.C=a;this.jr();this.o=this.C.Hi(Vfa(this));this.ea=!0}};
f.ge=function(a){a=qU(EV(a),"rm")?a.K:SV(a);F(a,function(a){nb(this.D.G,a)},this)};
f.Kd=function(a,b){F(b,function(b){b=fV(a,b);RU(this.D.C,b)},this)};
f.ah=function(a){if(a instanceof kV){var b=lV(a);F(b.Pa(),function(a){var d=b.get(a);F(d,function(b){SU(this.D.C,a,b)},this)},this)}};
f.getCurrentTime=function(){return-1};
f.Cd=function(){return-1};
f.Hf=function(){return-1};
f.ad=function(a,b,c){this.Ki(c)};
f.pause=v;f.resume=v;f.skip=v;f.start=function(){P_(this);if(!this.Ea)throw DO(G_,null,"Must call init before start.");};
f.stop=function(){this.destroy()};
f.ll=function(){return null!=this.volume?this.volume:0};
f.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&GO(this,bT,null,"volume",String(a));this.volume=a};
f.Ki=function(a){if(!Tb(via,a))throw EO(bT,null,"view mode",a);this.K=a};
f.getMediaUrl=function(){return null};
f.cp=function(){return null};
f.fp=function(){return null};
f.yf=function(){return null};
f.hh=function(){N_(this,"abandon")};
f.ep=function(){return{currentTime:this.getCurrentTime(),duration:this.Cd(),isPlaying:null!=this.o?this.o.ib():!1,isVpaid:null!=this.getCurrentAd()?null!=sW(this.getCurrentAd()):!1,isYouTube:W(),volume:this.ll()}};
f.hD=function(a){F(rb(D$,Vb(F$)),function(b){var c=QU(a.o,b);kb(c)||this.bm(b,c)},this);
Tfa(this.D,a.K)};
f.bm=function(a,b){F(b,function(a){var b=a.getType();a=a.getUrl();SU(this.D.C,b,a)},this)};A(T_,D_);f=T_.prototype;f.start=function(){T_.N.start.call(this);this.C.jd();this.L=this.C.Ud();if(null!=this.L){N_(this,"show_ad");$g(this.L);var a=this.fo();fO.o?gca(RR(),a):Oda(PW(),a);this.L.appendChild(a);this.hi();F(this.aa,function(a){a()});
lb(this.aa);this.U=!0}};
f.ad=function(a,b,c){T_.N.ad.call(this,a,b,c);this.hi()};
f.T=function(){Mb(this.A);this.C=this.A=null;this.U=!1;fO.o?RR().C=null:PW().B=null;null!=this.L&&($g(this.L),this.L=null);T_.N.T.call(this)};
f.fo=function(){var a=H_(this).o;if(null==a)throw a=EO(XZ),V_(this,a),a;var b=H_(this);yV(a,K_(this));wV(a,this.qx);a.D||xV(a,pa(this.bl,b,a));try{M_(this,b)}catch(d){throw V_(this,d),d;}this.ge(b);var c=qX(b,this.o);this.D.A=c;b.o&&(this.ge(b),(b=b.o)&&this.Kd(b,Xha));this.Kd(a,["start"]);U_(this,a);return this.Uh([a.Sd()])};
f.gp=function(a,b){return new YZ(a[0],b)};
f.Uh=function(a){null!=this.A&&this.A.stop();this.A=this.gp(a,y(this.pi,this));a=this.A.la();M(a,"autoalign",this.B.ao);W()&&M(a,"viewmode-fullscreen","fullscreen"==this.K);a.appendChild(this.ia);K_(this).R(a,"click",kc);(E_(this)&&fW(H_(this))||this.B.useStyledNonLinearAds)&&this.mk(this.A.o);return a};
f.mk=function(a){var b=K_(this);this.W=rS(Kfa);b.R(this.W,"click",this.Jx);var c="",d=ra("Close"),c=rS(Jfa,{close:c+d});b.R(c,"click",this.Ci);L(a,"extra-padding");null!=this.ka&&728<=this.ka.getWidth()&&L(a,"wide-overlay-ad");a.appendChild(c)};
f.hi=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=ar(this.C.Ud()),h;h=W()?ar(gh(this.A.o)):ar(this.A.o);if(h.width+c>e.width||h.height+d>e.height)throw c=EO(cia,null),V_(this,c),d={},d.pid=JW.getInstance().o,d.cz=h.width+"x"+h.height,d.sz=e.width+"x"+e.height,d.ct=H_(this).o.getContentType(),d.vm=this.K,UO.getInstance().o(38,d,!0),this.stop(),c;}};
f.qx=function(a){O_(this,"click");kc(a)};
f.Ci=function(){N_(this,"close");this.pi(!0)};
f.bl=function(a,b){xV(b,v);this.U?this.bh(a,b):this.aa.push(y(this.bh,this,a,b))};
f.bh=function(a){a=qX(a,this.o);this.D.A=a;O_(this,"impression");N_(this,"creativeview");O_(this,"start")};
f.pi=function(a){null!=this.A&&(this.A.stop(),null!=this.W&&ch(this.W,this.A.o),a?this.na("userClose"):this.na("autoClose"))};
f.Jx=function(a){kc(a);this.A.show();this.A.play();ch(this.A.o,this.W);Rd(function(){dr(this.ia,!1)},500,this);
dr(this.ia,!0);this.na("userRecall")};A(W_,T_);f=W_.prototype;f.gp=function(a,b){if(this.Y||null==b)b=v;var c;W()&&this.Y?c=new YZ(a[0],b):1<a.length?Y_(this)||"fullscreen"==this.K&&W()?c=new a_(a):(c=new $Z(a),c.P=15E3):c=new YZ(a[0],b);c.Zo=100;this.Y&&(c.Qp=30);c.Rp=45E3;c.Zq=6E3;M(c.o,"scalable",this.Y);M(c.la(),"yt-text-overlay",W()&&this.Y);return c};
f.oD=function(a){var b=a.o;null!=b?(null==this.fa&&(this.fa=a.getExtension("AdSense").C),xV(b,pa(this.bl,a,b)),wV(b,pa(this.rx,a,b)),"Text"==b.getContentType()&&(this.Y=!0),this.O.push(b)):(b=DO(XZ),b=pX(b,a),AO(RV(a),b))};
f.Wc=function(a,b,c){W_.N.Wc.call(this,a,b,c);this.B.ao=!0;a=H_(this);kb(TV(a))?W()&&this.na("companionBackfill"):M_(this,a)};
f.fo=function(){null==this.O&&(this.O=[],F(this.ads,this.oD,this));if(0==this.O.length)throw EO(XZ);var a=[];F(this.O,function(b){yV(b,K_(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.ko=!0);a.push(b.Sd());qda(b,this.fa.F)},this);
if(0==a.length)throw EO(XZ);Yfa(this);return this.Uh(a)};
f.start=function(){W_.N.start.call(this);!this.da&&Y_(this)&&(this.da=!0,this.na("contentPauseRequested"));null!=this.F&&this.F.start();if(this.U){var a=Z_(this);UO.getInstance().o(33,a)}};
f.Ci=function(a){W_.N.Ci.call(this,a);F(this.O,function(a){var c=qX(a.getAd(),this.o);this.D.A=c;this.Kd(a,["close"]);N_(this,"close");this.D=new A_},this)};
f.pi=function(a){W_.N.pi.call(this,a);Y_(this)&&(null!=this.L&&$g(this.L),this.da&&(this.da=!1,this.na("contentResumeRequested")))};
f.Uh=function(a){a=W_.N.Uh.call(this,a);if(Y_(this)){var b=nU(2);L(this.A.o,b);L(a,b)}return a};
f.mk=function(a){if(Y_(this)){var b=jh(a);b&&((a=eh(a)[0])&&Iq(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").C||new dX,this.F=new z_(b,a,2,X_(this),!0),K_(this).R(this.F,"skip",this.Mx),K_(this).R(this.F,"end",this.wy))}else W_.N.mk.call(this,a),b=rS(Lfa,X_(this)),a.appendChild(b)};
f.bl=function(a,b){this.U?this.bh(a,b):this.aa.push(y(this.bh,this,a,b));xV(b,v);this.na("impression")};
f.bh=function(a,b){var c=qX(a,this.o);this.D.A=c;this.ge(a);this.Kd(b,["creativeview"]);N_(this,"impression");N_(this,"creativeview");O_(this,"start");this.D=new A_};
f.rx=function(a,b,c){c=Wq(c);a=a.getExtension("AdSense");a=new N(a.B);var d=b.getWidth();(0,window.isNaN)(d)&&(d=ar(b.Sd()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=ar(b.Sd()).height);b=lO();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.K,"sdkv=h.0.0.0","eids="+pO(b)];W()||(c=ar(this.C.Ud()),d=this.F?Sfa(this.F):new pe(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));xO(a,"elementclick",b);F(this.O,function(a){var b=qX(a.getAd(),this.o);this.D.A=b;U_(this,
a);N_(this,"click");this.D=new A_},this);
this.na("click")};
f.Ki=function(a){this.K!=a&&(W_.N.Ki.call(this,a),this.na("expandedChanged"))};
f.hi=function(){W_.N.hi.call(this,this.F?15:0,this.F?65:0)};
f.Mx=function(){$_(this,"skip")};
f.wy=function(){$_(this,"close")};var a0=["classid","data","movie","type","typemustmatch"];A(b0,eE);f=b0.prototype;f.hk="sameDomain";f.setSize=function(a,b){this.J=w(a)?a:Math.round(a)+"px";this.C=w(b)?b:Math.round(b)+"px";this.la()&&Zq(c0(this),this.J,this.C);return this};
f.wf=function(){b0.N.wf.call(this);for(var a=this.la(),b=this.A.Pa(),c=this.A.Na(),d=[],e=0;e<b.length;e++)d.push(wa(b[e])+"="+wa(c[e]));var b=d.join("&"),h;if(Rg&&!xc(11)){d=this.K;c={allowFullScreen:"true",AllowScriptAccess:this.hk,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:"window"};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};Zfa(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(h in e)d[h]=
e[h];for(h in c){var k=h.toLowerCase();k in e&&delete d[k];d[h]=c[h]}c=[];for(h in d)c.push(Dg("param",{name:h,value:d[h]}));h=Eg({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);h=Dg("object",h,c)}else h={AllowScriptAccess:this.hk,allowFullScreen:"true",allowNetworking:"all",bgcolor:"#000000","class":"goog-ui-media-flash-object",FlashVars:b,id:this.getId(),name:this.getId(),quality:"high",SeamlessTabbing:"false",wmode:"window"},h=Eg({src:this.K,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},h),h=Dg("embed",h);a.innerHTML=vg(h);this.J&&this.C&&this.setSize(this.J,this.C);this.B.R(this.la(),Vb(Hha),kc)};
f.Bi=function(){if(null!=this.M&&!(0<=Ta(ZP,this.M)))throw Error("Method not supported");var a=this.F.createElement("DIV");a.className="goog-ui-media-flash";this.o=a};
f.T=function(){b0.N.T.call(this);this.A=null;this.B.dispose();this.B=null};A(d0,D_);var wia=sg(eg(fg("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));sg(eg(fg("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));f=d0.prototype;f.T=function(){this.Y=!1;this.A&&this.A.dispose();Td(this.W);this.L&&this.na("contentResumeRequested");this.na("allAdsCompleted");d0.N.T.call(this)};
f.Hf=function(){var a=this.Tb("getAdRemainingTime");return ga(a)?a:-1};
f.ll=function(){var a=this.Tb("getAdVolume");return ga(a)?a:-1};
f.Wc=function(a,b,c){d0.N.Wc.call(this,a,b,c);this.L=H_(this).o instanceof kV};
f.init=function(a){d0.N.init.call(this,a);window[this.ka]=y(this.Vw,this);K_(this).R(PW(),E$,this.Ay);this.A=new b0(wia);this.A.setSize(this.da,this.aa);this.A.hk="always";a=H_(this);a=null===a.o?null:a.o.Ni();C(E(a))?(f0(this,d1,Error("Flash VPAID ad url is empty.")),this.stop()):(this.A.A.set("vpaid",a),this.A.A.set("vpaidEventHandler",this.ka),this.C.jd(),this.A.render(this.C.Ud()),this.W=Rd(this.PA,this.B.loadVideoTimeout,this))};
f.start=function(){if(this.Y){d0.N.start.call(this);var a=H_(this);this.D.F=a.Ka;var b=qX(a);this.D.A=b;if(b=a.o)this.ge(a),this.Kd(b,D$),this.ah(b),R_(this,a);this.C.jd();N_(this,"show_ad");this.F=new Pd(250);K_(this).R(this.F,"tick",this.Iz);this.F.start();this.Tb("startAd");this.L?this.na("contentPauseRequested"):(this.na("contentResumeRequested"),e0(this))}else this.ia=!0};
f.stop=function(){this.ma||(this.ma=!0,this.Tb("stopAd"),this.C.ha(),null!=this.F&&(this.F.stop(),this.F=null),d0.N.stop.call(this))};
f.ad=function(a,b,c){d0.N.ad.call(this,a,b,c);this.da=a;this.aa=b;this.Tb("resizeAd",a,b,c)};
f.pause=function(){null!=this.F&&this.F.stop();this.Tb("pauseAd")};
f.resume=function(){null!=this.F&&this.F.start();this.Tb("resumeAd")};
f.setVolume=function(a){this.Tb("setAdVolume",a)};
f.Zg=function(){};
f.skip=function(){this.Tb("skipAd")};
f.Cd=function(){var a=this.Tb("getAdDuration");if(ga(a))return a;a=this.Hf();return 0<=a?this.U/1E3+a:-2};
f.isLinear=function(){var a=this.Tb("getAdLinear");return fa(a)?a:this.L};
f.Iz=function(){this.U+=250};
f.Tb=function(a){if(!this.A||!c0(this.A))return null;for(var b=c0(this.A),c=[],d=0;d<arguments.length;d++)c.push(arguments[d]);var d=c.shift(),e=!1;this.Y&&(e=!0);if("handshakeVersion"==d||"initAd"==d)e=!0;if(e)try{if(null!=b[d])return b[d].apply(b,c)}catch(h){}return null};
f.Ay=function(a){var b=a.type;if(jb(E$,b)){if("externalActivityEvent"==b&&(b=a.o.eventName,!F$[b]))return;O_(this,b)}};
f.PA=function(){f0(this,G$,null,(this.B.loadVideoTimeout/1E3).toString());this.stop()};
f.getCurrentTime=function(){return this.U/1E3};
f.Vw=function(a,b){switch(a){case "flashReady":this.Tb("handshakeVersion","2.0");var c=UV(H_(this));c0(this.A).initAd(this.da,this.aa,this.K,this.B.bitrate,c);break;case "AdLoaded":Td(this.W);this.Y=!0;var c=this.Tb("getAdCompanions"),d=w(c)?c:"",c=H_(this);kb(TV(c))&&(d=CY(d,c.o.o),kb(d)||CV(c,d));O_(this,"loaded");this.ia&&(this.ia=!1,this.start());break;case "AdStarted":N_(this,"impression");N_(this,"creativeview");this.na("start");break;case "AdVideoStart":N_(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=E(qW(H_(this)))),null!=c&&vO(c));N_(this,"click");this.na("click");break;case "AdDurationChange":this.na("durationChange");break;case "AdRemainingTimeChange":this.na("durationChange");e0(this);break;case "AdError":c="AdError";b&&(c=b.message);f0(this,d1,Error(c));this.stop();break;case "AdExpandedChange":this.na("expandedChanged");break;case "AdImpression":c=H_(this);kb(TV(c))||M_(this,c);this.na("impression");break;case "AdLinearChange":c=this.isLinear();!this.L&&
c?(this.na("contentPauseRequested"),Td(this.fa)):this.L&&!c&&(this.na("contentResumeRequested"),e0(this));this.L=c;d=this.H;d.fa=!0;d.ia=c;this.na("linearChanged");break;case "AdVolumeChange":c=b.volume;c!=this.O&&(c!=this.O&&this.na("volumeChange"),0==c&&0!=this.O?(N_(this,"mute"),this.na("mute")):0==this.O&&0!=c&&N_(this,"unmute"),this.O=c);break;case "AdPaused":O_(this,"pause");break;case "AdUserClose":O_(this,"userClose");break;case "AdUserMinimize":N_(this,"collapse");break;case "AdVideoFirstQuartile":O_(this,
"firstquartile");break;case "AdVideoMidpoint":O_(this,"midpoint");break;case "AdVideoThirdQuartile":O_(this,"thirdquartile");break;case "AdVideoComplete":O_(this,"complete");break;case "AdUserAcceptInvitation":this.L?N_(this,"acceptinvitationlinear"):N_(this,"acceptinvitation");break;case "AdStopped":N_(this,"stop");this.stop();break;case "AdSkipped":O_(this,"skip");break;case "AdSkippableStateChange":O_(this,"skippableStateChanged");break;case "AdPlaying":O_(this,"resume");break;case "AdLog":this.na("log")}};A(g0,aO);i0.prototype.videoCount=0;j0.prototype.isListed=!0;A(p0,e_);var o0=Math.ceil(10*3.14);p0.prototype.H=function(a){W()||a.stopPropagation();this.$("click")};
p0.prototype.start=function(){p0.N.start.call(this);this.F&&(this.L&&780<=ar(this.M).width&&this.F.mp(!0),this.F.kp())};
p0.prototype.ml=function(a,b){var c=a/b*o0+" "+o0;null!=this.o&&Iq(this.o,"stroke-dasharray",c)};A(q0,G);q0.prototype.show=function(a,b){r0(this);GH&&a?(a.appendChild(this.B),this.o=Rd(y(this.A,this,b),2E3)):b()};
q0.prototype.A=function(a){this.o=0;bh(this.B);a()};
q0.prototype.T=function(){r0(this);q0.N.T.call(this)};A(s0,jc);A(t0,J);u0.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var gga={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};f=t0.prototype;f.T=function(){v0(this);t0.N.T.call(this)};
f.iB=function(a){var b=a.o;this.C.J.measurable_impression=null!=b?b.viewabilityString:null;a.o.queryId==this.G&&w0(this,"measurable_impression",!0,!1)};
f.LC=function(a){a=a.o;a.queryId==this.G&&(this.C.J.viewable_impression=null!=a?a.viewabilityString:null,w0(this,"viewable_impression",!0,!0))};
f.NA=function(a){a=a.o;var b=F$[a.eventName];b&&a.queryId==this.G&&(this.C.J[b]=null!=a?a.viewabilityString:null,w0(this,b,!0,!0))};
f.$y=function(){var a=this.o.Dd();if(-1!=a){this.o.Fg(.25*a)&&w0(this,"firstquartile",!0,!0);this.o.Fg(.5*a)&&w0(this,"midpoint",!0,!0);this.o.Fg(.75*a)&&w0(this,"thirdquartile",!0,!0);var b=this.C,c=this.o.getCurrentTime();if(!b.L||!Ke(b.B,"skip")){0>b.D&&(gda(b.C,a),b.D=0);for(var a=QU(b.C,"progress"),d=b.D;d<a.length;d++){var e=a[d];if(LU(e.o)>c)break;b.D=d+1;wO(e.getUrl(),b.A)}}}x0(this)};
f.Zy=function(){this.K=!0;w0(this,"impression",!0,!0);w0(this,"creativeview",!0,!0);null!=this.L||null!=this.B||this.A.R(this.o,"click",this.Bl);null!=this.L&&(this.F=new ZR,this.A.R(this.F,"click",this.Bl,!1),$R(this.F,this.L));null!=this.B&&(this.H=new ZR,this.A.R(this.H,"click",this.Bl,!1),$R(this.H,this.B));w0(this,"start",!0,!0);(this.o.If()||0==this.o.Ed())&&w0(this,"mute",!1,!1)};
f.az=function(){var a=this.o.If(),b=this.o.Ed(),c=this.D;c.mute&&!a||!a&&0==c.volume&&0<b?w0(this,"unmute",!1,!1):this.D.muted(a,b)&&w0(this,"mute",!1,!1);this.D.mute=a;this.D.volume=b};
f.Wy=function(){this.o.Te()?y0(this):this.o.Jf()&&!this.o.lp()&&(this.D.o=!0,w0(this,"pause",!1,!1))};
f.Yy=function(){this.D.o&&(this.D.o=!1,w0(this,"resume",!1,!1))};
f.Sy=function(){y0(this)};
f.Bl=function(){w0(this,"click",!1,!1)};
f.Ty=function(){w0(this,"error",!1,!1)};
f.Vy=function(){w0(this,"mediaLoadTimeout",!1,!1)};
f.Lq=function(){w0(this,"skipshown",!0,!1)};
f.bx=function(a){w0(this,a.type,!1,!1)};
f.AC=function(a){this.$(a)};
f.KC=function(){w0(this,"videoShareShown",!0,!1)};
f.wp=function(){w0(this,"skip",!0,!1)};
f.PB=function(){w0(this,"skip",!0,!1)};
f.Uy=function(){w0(this,"fullscreen",!1,!1)};
f.MA=function(){w0(this,"exitfullscreen",!1,!1)};A(z0,D_);f=z0.prototype;f.T=function(){D0(this);this.Ia.dispose();B0(this);F(this.ka.Na(),Td);var a=!1;null!=this.C&&(a=this.C.jl(),this.C.ha(),this.C=null);this.W&&(this.W=!1,this.o.Jf()||this.o.Te()||this.o.pause(),MO()&&!a&&(this.o.Kf(.001),this.o.load("","")),LO()&&this.o.Zd()&&!a&&this.o.ql(),this.na("contentResumeRequested"),this.na("allAdsCompleted"));z0.N.T.call(this)};
f.gh=function(){B0(this);z0.N.gh.call(this);E_(this)&&(this.D=new A_(H_(this).B.Db("desktop_block_progress_events_after_ad_skip")),this.O=new t0(this.D),this.da=!1,this.na("loaded"))};
f.Wl=function(a){z0.N.Wl.call(this,a);null!=this.o&&nO(lO(),9419278)&&this.o.jm(1)};
f.yo=function(a,b){b.preventDefault();this.Y||(this.Y=!0,O_(this,"video_card_endcap_action"));a&&(this.F.pause(),vO(a))};
f.zo=function(){A0(this,function(){E0(this,"video_card_endcap_dismiss")})};
f.Qw=function(){E0(this,"video_card_endcap_collapse")};
f.pz=function(a,b,c){if(!this.ia){this.ia=!0;var d=dS(b);d&&(a.F=d);if(this.B.useVideoAdUi){var d=a.getExtension("AdSense"),e;(e=this.Fa||a.B.Db("show_ads_pay_this_creator_info_card"))||(e=null===b?!1:"modules"==(new N(b)).Pe().toLowerCase()||fS(b));e=e||null!=d&&d.H;var d=lW(a)?null:IV(a),h;if(W()||RO())h=0;else{if(h=JO()){a:{for(h=0;h<this.ads.length;++h)if(!Q_(this.ads[h])){h=!1;break a}h=JO()}h=!h||null==this.C||!this.C.Dk()}h=h||uW(a)||this.B.Km}if(h||!W()&&e)this.B.Jm=!0,this.B.Km=!0;if(W()||
this.B.Km){h=this.B;var k=C(E(qW(a)))?!1:this.B.Jm,l=W()||!1,m=W();Q_(a);d=x_(e,a.F,d,h);d.B=k;d.M=h.TD;d.P=l;d.L=!0;d.J=m;d.D=h.Im;d.O=h.useShareButton;d.Y=h.UD;d.aa=0;h.Im&&(e="",h=ra("Visit Advertiser"),d.Tf=e+h)}else PV(a)?(h=a.F,!C(E(h))&&null!==d&&0<LU(d)&&(e=!0),d=x_(e,h,d,this.B),d.H=e?Gca:Fca):(d=x_(e,a.F,d,this.B),d.U=!1,d.F=!1,d.o=!1);e=this.C.zi();null===e?e=window.document.body:$g(e);h=H_(this);var k=1E3*kW(h),l=h.getExtension("why_this_ad"),m=h.getExtension("mute"),n=h.B.Db("enable_why_this_ad_for_desktop");
d.C=new t_(l,m,n);m_(d.C)&&(m=null!=l?l.C:void 0,l="<span class='videoAdUiAdSettingsShortTooltip'>",m?l+=Y(m):(m=ra("Click for Ad Settings"),l+=m),l=xS(l+"</span>"),d.He=l);this.A=new o_(d,e,k);e=h.F;null!=e&&(F0(this),d.Y&&V0(this,e));e=this.A;e.M&&(e=e.M,h=0==this.U,e.o!=h&&(e.o=h,g_(e)));this.Fa&&(h=a.getExtension("AdSense"),null!=h?(e=this.A,h=E(h.A),null!=e.H&&(dr(e.H,!0),h=new N(h),h=(h.A+h.B).replace(/^www\./i,""),C(E(h))?q_(e):mh(e.H,h)),null!=e.O&&dr(e.O,!0)):q_(this.A));e=[];d.F&&e.push("adAttribution");
d.o&&e.push("countdown")}else d&&this.B.kk&&(F0(this),V0(this,d));d=this.O;e=this.o;h=this.C.Kk();k=this.A;v0(d);d.C.F=a.Ka;d.o=e;d.B=k||null;d.o.Li();d.D=new u0(d.o);d.L=h||null;d.A=new sm(d);d.G=a.Ka;e=fO.o?RR():PW();d.A.R(e,"externalActivityEvent",d.NA);d.A.R(e,"measurable_impression",d.iB);d.A.R(e,"viewable_impression",d.LC);d.A.R(d.o,"timeUpdate",d.$y);d.A.R(d.o,"volumeChange",d.az);d.A.R(d.o,"pause",d.Wy);d.A.R(d.o,"play",d.Yy);d.A.R(d.o,"end",d.Sy);d.A.R(d.o,"beginFullscreen",d.Uy);d.A.R(d.o,
"endFullscreen",d.MA);d.A.R(d.o,"skip",d.wp);d.A.R(d.o,"skipShown",d.Lq);d.A.R(d.o,"start",d.Zy);d.A.R(d.o,"error",d.Ty);d.A.R(d.o,"mediaLoadTimeout",d.Vy);null!=d.B&&(d.A.R(d.B,"urlNavigationRequested",d.AC),d.A.R(d.B,"videoShareShown",d.KC),d.A.R(d.B,"skipshown",d.Lq),d.A.R(d.B,"skip",d.wp),d.A.R(d.B,"PUBLISHER_INVOKED_SKIP",d.PB),d.A.R(d.B,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoTitleClicked videoShareClicked videoUnmuteClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
d.bx));K_(this).R(this.O,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.Rq);K_(this).R(this.o,"loaded",this.IC);K_(this).R(this.o,"cardsStateChange",this.By);K_(this).R(this.o,"timeUpdate",this.Uq);K_(this).R(this.o,"volumeChange",this.Fy);K_(this).R(this.o,"shareClicked",this.qr);this.ge(a);d=qX(a,this.o);this.D.A=d;d=a.o;
null!=d&&d instanceof kV&&(this.Kd(d,D$),this.ah(d),d=K_(this),um(d,this.O,"error",this.Cy,this),um(d,this.O,"mediaLoadTimeout",this.Ey,this));R_(this,a);null!=IV(a)&&(this.O.J=30);this.o.qm(jga(this,a));this.o.load(b,c)}};
f.YC=function(a,b,c){null!==a.H&&UO.getInstance().o(34,{evt:"filled"},!0);this.ua||(this.ua=!0,this.na("contentPauseRequested"));this.W=!0;this.pz(a,b,c);N_(this,"show_ad");this.setVolume(this.U);this.A&&(C(E(I0(a)))?(b=this.A,null!=b.D&&(b.B.ya(b.D,"click",b.yj),Iq(b.D,"cursor","default"))):(b=this.A,null!=b.D&&(b.B.R(b.D,"click",b.yj),Iq(b.D,"cursor","pointer"))),b=a.o.Ua,kb(b)||Qfa(this.A,b),this.A.show());this.C.Sg();try{M_(this,a)}catch(d){N0(this,L_,d);return}JW.getInstance().end("pi");JW.getInstance().start("bt");
this.Ia.show(this.C.zi(),y(this.o.play,this.o))};
f.Zg=function(){kga(this);this.na("loaded");this.$(new g0(H_(this)))};
f.skip=function(){E_(this)&&null!=IV(H_(this))&&(null!=this.A?this.A.skip():(N_(this,"skip"),U0(this)))};
f.rr=function(){O_(this,"skipshown")};
f.start=function(){z0.N.start.call(this);JW.getInstance().start("pi");this.aa=[];try{var a=H_(this);this.L=K0(this,a);A0(this,y(z0.prototype.YC,this,a,this.L.getUrl(),this.L.o))}catch(b){M0(this,b),this.gh(),E_(this)?(FO(EO,this,O0,b,void 0),this.start()):(this.W?FO(EO,this,O0,b,void 0):(null!=this.G&&DW(this.G,yW()),GO(this,O0,b)),this.stop())}};
f.ll=function(){P_(this);return this.o.If()?0:this.o.Ed()};
f.setVolume=function(a){P_(this);this.W?this.o.setVolume(a):this.U=a};
f.pause=function(){P_(this);this.F?this.F.pause():this.o.pause()};
f.resume=function(){P_(this);this.F?this.F.play():this.o.play()};
f.getCurrentTime=function(){P_(this);var a=this.F?this.F.A:0;return this.o.getCurrentTime()+a};
f.Cd=function(){P_(this);var a=E_(this)?rW(H_(this)):0;return this.o.Dd()+a};
f.Hf=function(){P_(this);var a=this.Cd(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
f.yf=function(){return this.o.yf()};
f.Cy=function(){this.o.getError();N0(this,O0,EO(O0,this.o.getError()))};
f.Ey=function(){N0(this,G$,EO(G$,null,(this.B.loadVideoTimeout/1E3).toString()))};
f.bm=function(a,b){z0.N.bm.call(this,a,b);Q0(this,a)};
f.Rq=function(a){switch(a.type){case "start":tga(this);Hda();this.na("start");Wfa(this);break;case "impression":this.na("impression");break;case "why_this_ad_url":this.Ja=this.o.Jf();L0(this,"why_this_ad_url");this.pause();break;case "pause":this.na("pause");break;case "why_this_ad_got_it":L0(this,"why_this_ad_got_it");this.Ja||this.resume();break;case "resume":this.na("resume");break;case "firstquartile":this.na("firstquartile");break;case "midpoint":this.na("midpoint");break;case "thirdquartile":this.na("thirdquartile");
break;case "complete":iga(this)||(this.na("complete"),N_(this,"instreamAdComplete"),C0(this));break;case "click":this.A&&this.A.o.B?this.o.Jf()?this.resume():this.pause():P0(this);break;case "engagedview":R0(this);this.na("engagedview");break;case "urlNavigationRequested":this.$(a);break;case "videoAuthorIconClicked":X0(this);break;case "videoAuthorClicked":X0(this);break;case "videoClicked":this.na("videoClicked");break;case "videoLearnMoreClicked":this.F&&!this.Y&&(this.Y=!0,O_(this,"video_card_endcap_action"));
this.o.pause();nO(lO(),41351017)&&R0(this);P0(this);break;case "videoShareClicked":pga(this);break;case "videoShareShown":qga(this);break;case "videoTitleClicked":rga(this);break;case "videoMuteClicked":this.ma=this.U;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.ma);break;case "skipshown":this.na("skippableStateChanged");break;case "skip":this.F?this.zo():U0(this);break;case "MUTE_AD":this.na("MUTE_AD"),A0(this,function(){C0(this)})}};
f.qr=function(){var a=S0(this)||T0(this);null!=a&&xO(a,"sharebuttonclicked")};
f.ge=function(a){z0.N.ge.call(this,a);Q0(this,"impression")};
f.Kd=function(a,b){z0.N.Kd.call(this,a,b);F(b,function(a){Q0(this,a)},this)};
f.ah=function(a){z0.N.ah.call(this,a);a instanceof kV&&(a=lV(a),F(a.Pa(),function(a){Q0(this,a)},this))};
f.cp=function(){if(!E_(this))return null;try{return K0(this,H_(this)).getUrl()}catch(a){return null}};
f.getMediaUrl=function(){if(!E_(this))return null;var a=H_(this);if(!J_(a))throw EO(J0);a=a.o.L;return kb(a)?null:a[0].getUrl()};
f.IC=function(){this.na("adCanPlay")};
f.By=function(){var a=this.A;null!=a.A&&M(a.A,"ytp-iv-drawer-open",this.o.hp())};
f.Uq=function(){var a=this.Cd(),b;P_(this);b=this.F?this.Cd():this.o.ip();var c=this.getCurrentTime(),d=0,e=0;E_(this)&&(e=H_(this),d=e.C.A,e=e.C.C);if(null!=this.A&&0<=a&&0<=c){if(!this.fa&&3==H_(this).xa){var h=this.o.Dd(),k=oW(H_(this)),h=Math.abs(h-k);2<h&&(h=EO(fia,null,Number(h).toFixed(2)),h=pX(h,H_(this),this.o),k=RV(H_(this)),AO(k,h));this.fa=!0}this.A.update(c,b,a,d,e)}};
f.Fy=function(){var a=this.o.Ed();if(a!=this.U&&(this.U=a,this.na("volumeChange"),0==a&&this.na("mute"),this.A)){var b=this.A;b.M&&(b=b.M,a=0==a,b.o!=a&&(b.o=a,g_(b)))}};
f.tx=function(a){var b=a.o;if("companion-setup-complete"==b.data){a=H_(this);var c=(0,window.encodeURIComponent)(E(qW(a)))+","+(0,window.encodeURIComponent)((S0(this)||T0(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=qW(a)?210:185}else"pause-video"==b.data&&this.pause()};A(Y0,jc);A(Z0,D_);f=Z0.prototype;
f.init=function(a){Z0.N.init.call(this,a);K_(this).R(window,"message",this.MC);K_(this).R(this.fa,"tick",this.$C);a=fO.o?RR():PW();K_(this).R(a,E$,this.Gy);if(this.O)this.$(new Y0(0,this.U));else{a=sW(H_(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.B.contentId&&(a=mf(a,"v",this.B.contentId));W()&&(b=jf(a,"st"),a=mf(a,"st",b?b+" yt":"yt"))}a=E(a)}else{var b=new N(a),c=new N("http://tpc.googlesyndication.com/pagead/js/loader12.html");
"https"==b.C&&nf(c,"https");this.Ja=b.A;a=rf(c,a||"",void 0).toString()}this.L=O("iframe",{src:uO(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});K_(this).R(this.L,"load",this.Iw);this.C.Ud().appendChild(this.L)}};
f.Wc=function(a,b,c){Z0.N.Wc.call(this,a,b,c);this.F=H_(this).o instanceof kV;this.A=a.Hi(!1);this.ma=Rd(this.Hy,this.B.loadVideoTimeout,this);this.O||(K_(this).R(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.VB),K_(this).R(this.A,H$,this.pA))};
f.stop=function(){this.fa.stop();this.C.ha();Z0.N.stop.call(this)};
f.isLinear=function(){return 1==this.F};
f.start=function(){Z0.N.start.call(this);if(!W()){var a={};a.pid=JW.getInstance().o;a.dn=this.Ja;a["if"]=this.O;UO.getInstance().o(29,a,!0)}a=H_(this);this.D.F=a.Ka;var b=qX(a,this.A);this.D.A=b;if(b=a.o)this.ge(a),this.Kd(b,D$),this.ah(b),R_(this,a);this.A.Li();N_(this,"show_ad");this.C.jd();null!=this.L&&(this.L.style.display="block");this.Ia=!0;this.F&&this.na("contentPauseRequested");e1(this)};
f.ad=function(a,b,c){Z0.N.ad.call(this,a,b,c);b1(this,"resizeAd",{width:a,height:b,viewMode:c})};
f.pause=function(){this.aa||b1(this,"pauseAd")};
f.resume=function(){this.aa&&b1(this,"resumeAd")};
f.setVolume=function(a){Z0.N.setVolume.call(this,a);b1(this,"setAdVolume",{value:a})};
f.T=function(){this.O&&this.$(new Y0(0,this.U));bh(this.L);this.F&&this.na("contentResumeRequested");this.na("allAdsCompleted");this.ka=!1;this.da=[];Td(this.ma);this.fa.dispose();Z0.N.T.call(this)};
f.Zg=function(){};
f.Iw=function(){if(!this.O){var a=this.A.Rk();kb(a)&&(a=this.B.Rg);b1(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}a1(this)};
f.MC=function(a){a=a.o;if(this.O){if(a=mT(a.data),null!=a){try{var b=be(a.data)}catch(c){return}null!=b&&b.session==this.U&&f1(this,b)}}else if(a.source==this.L.contentWindow){try{b=be(a.data)}catch(c){return}b.session==this.U&&f1(this,b)}};
f.Hy=function(){c1(this,G$,null,(this.B.loadVideoTimeout/1E3).toString());this.stop()};
f.Gy=function(a){var b=a.type;if(jb(E$,b)){if("externalActivityEvent"==b&&(b=a.o.eventName,!F$[b]))return;O_(this,b)}};
f.VB=function(a){switch(a.type){case "timeUpdate":a=this.A.Dd();var b=this.A.getCurrentTime();$0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":g1(this,"ended");break;case "loaded":g1(this,"loadstart");break;case "mediaLoadTimeout":g1(this,"stalled");break;case "play":g1(this,"playing");break;default:g1(this,a.type)}};
f.pA=function(a){a=a.type;"loadedmetadata"==a?(a=this.A.Dd(),$0(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):g1(this,a)};
f.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
f.Cd=function(){return this.W};
f.Hf=function(){return this.ia};
f.$C=function(){b1(this,"getAdRemainingTime")};f=h1.prototype;f.Kk=function(){return this.o.Kk()};
f.zi=function(){return this.o.zi()};
f.Ud=function(){return this.o.Ud()};
f.Hi=function(a){return this.o.Hi(a)};
f.setSize=function(a,b){this.o.setSize(a,b)};
f.Dk=function(){return this.o.Dk()};
f.jl=function(){return this.o.jl()};
f.kl=function(){return this.o.kl()};
f.Ii=function(){return this.o.Ii()};
f.ha=v;f.Sg=v;f.jd=v;A(i1,J);f=i1.prototype;f.init=function(a,b,c){j1(this,a,b,c);null==this.H&&(this.H=new sm(this),um(this.H,this.K,"adsLoaderSdkAdError",this.Gz,this));m1(this)};
f.start=function(){this.L=!0;wga(this);0<this.A.length?r1(this):("always"==fO.A&&null!=this.Y&&DW(this.Y,yW()),FO(DO,this,JY,void 0,void 0),0==this.sc&&this.$("contentResumeRequested"),s1(this))};
f.destroy=function(){null!=this.H&&(this.H.dispose(),this.H=null);n1(this);fO.A=this.U;this.L=!1};
f.getCurrentAd=function(){return this.C<this.A.length?this.A[this.C].o[0]:null};
f.ib=function(){return this.L};
f.pause=function(){null!=this.o&&this.o.pause()};
f.resume=function(){null!=this.o&&this.o.resume()};
f.skip=function(){null!=this.o&&this.o.skip()};
f.hh=function(){null!=this.o&&this.o.hh()};
f.getCurrentTime=function(){return null!=this.o?this.o.getCurrentTime():-1};
f.setVolume=function(a){null!=a&&(this.M=a,null!=this.o&&this.o.setVolume(this.M))};
f.Yp=function(a){fO.A=this.U;var b=a.D;kb(b)?this.F++:(a=a.C,a.o&&F(b,function(a){a.Ua=!1},this),this.O=vga(this,b),nb(this.A,new Tda(b,a.o,a.A)),this.F++,this.H.ya(this.K,"adsLoaderSdkAdLoaded",this.Yp,!1,this));
m1(this)};
f.Gz=function(a){a=a.o;fO.A=this.U;a.getMessage();FO(DO,this,JY,void 0,void 0);this.F++;if(!k1(this)||2<=this.A.length-this.C)a=DO(JY),this.$(new $N(a));m1(this)};
f.vB=function(){n1(this);s1(this)};
f.Hz=function(a){a.getError();this.C++;r1(this)};
f.vy=function(){this.$("userClose")};
f.ry=function(){this.$("autoClose")};
f.uy=function(){this.C++;r1(this)};
f.ty=function(){this.fa||(this.$("contentPauseRequested"),this.fa=!0)};
f.Zp=function(a){"vpaidEvent"!=a.type&&xga(this,a.type,a.getAd());this.$(a)};A(u1,jc);A(v1,J);v1.prototype.getCurrentTime=function(){return this.o.currentTime};
v1.prototype.D=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)z1(this);else{var b=Bga(this,a);this.F?F(b,function(a){y1(this,!0,a)},this):y1(this,!0,cb(b));
y1(this,!1,Cga(this,a))}}};
v1.prototype.G=function(){z1(this)};A(A1,G);A1.prototype.A=function(){return this.o};A(VZ,D_);f=VZ.prototype;
f.Wc=function(a,b,c){null!=this.F&&(x1(this.F),this.F.dispose(),this.F=null);VZ.N.Wc.call(this,a,b,c);var d=this.ia.o.Pa();b=new DT(b);var e=4;c&&0<=c.$l&&(e=c.$l);this.ua=null!=c?c.Wq:0;this.F=new v1(b,d,{prefetch:e});var h=1;F(d,function(b){if((0,window.isNaN)(b))throw DO($W,null,"timeOffset",String(b));var c=ga(b)&&!(0,window.isNaN)(b)?this.ia.o.get(b,[]):[];if(!kb(c)){var d;d=0==b||-1==b?b:h++;c=new i1(c,b,d,this.W,a,this.B,this.G);if(Ke(this.M,b))throw DO(dia,null,"Multiple ad breaks cannot share same ad play time.");this.M.set(b,
c)}},this);
this.O=cb(d);xh(d,function(a){if(-1==a)return this.O=a,!0;this.O=this.O<a?a:this.O;return!1},this)};
f.init=function(a){VZ.N.init.call(this,a);null!=this.F&&(F1(this),a=K_(this),um(a,this.F,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),um(a,this.F,"adBreakReady",this.Fz,this),um(a,this.W,"contentComplete",this.xA,this),this.W.o=!1,a=this.F,a.A||(null==a.C&&(a.C=new sm(a)),a.C.R(a.o,"currentTimeUpdate",a.D,!1),a.C.R(a.o,"contentWrapperError",a.G,!1)),a.o.start(),a.A=!0,this.F.D(),a=ga(0)&&!(0,window.isNaN)(0)?this.ia.o.get(0,[]):[],kb(a)&&this.na("contentResumeRequested"))};
f.Zg=function(){this.Yd();this.$(new g0(null))};
f.destroy=function(){this.dispose()};
f.T=function(){this.W.o=!0;if(0<this.M.Ya()){var a=this.M.Na();F(a,this.uf,this);this.M.clear()}F1(this);H1(this);null!=this.C&&(this.C.ha(),this.C=null);VZ.N.T.call(this)};
f.start=function(){VZ.N.start.call(this)};
f.stop=function(){null!=this.A&&(this.uf(this.A),this.Ji())};
f.ad=function(a,b,c){VZ.N.ad.call(this,a,b,c);this.fa=a;this.da=b;this.K=c;null!=this.A&&j1(this.A,this.fa,this.da,this.K)};
f.pause=function(){null!=this.A&&this.A.pause()};
f.resume=function(){null!=this.A&&this.A.resume()};
f.skip=function(){null!=this.A&&this.A.skip()};
f.hh=function(){null!=this.A&&this.A.hh()};
f.setVolume=function(a){VZ.N.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};
f.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
f.Cd=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Cd():-1):a=-1;return a};
f.Hf=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Hf():-1):a=-1;return a};
f.Yd=function(){return this.ia.o.Pa()};
f.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};
f.jr=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(Yn(this.Y,a),G1(this))};
f.zy=function(){this.na("userClose")};
f.yy=function(){this.na("autoClose")};
f.uf=function(a){a.destroy();this.M.remove(a.sc);this.A=null;null!=this.J&&(this.J.ya(a,t1,this.$,!1,this),this.J.ya(a,"adError",this.Fo,!1,this),this.J.ya(a,"allAdsCompleted",this.Wp,!1,this),this.J.ya(a,"contentPauseRequested",this.bp,!1,this),this.J.ya(a,"contentResumeRequested",this.Ji,!1,this),this.J.ya(a,"adBreakInitialized",this.Xp,!1,this))};
f.xA=function(a){this.aa=!0;-1==this.O?a.B=!1:W()&&!C1(this)||D1(this);Aga(this.F)};
f.Fz=function(a){var b=a.o;a=0==b;var c=-1==b;this.U?(a?this.na("contentResumeRequested"):!c||W()&&!C1(this)||D1(this),this.U=!1):(c?Rd(function(){var a=this.M.get(b);a&&this.uf(a);W()&&!C1(this)||D1(this)},500,this):a&&Rd(function(){this.na("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.$(new aO("adBreakReady",null,a)))};
f.Fo=function(a){var b=a.getError();W()&&b&&"adLoadError"==b.getType()&&this.$(a)};
f.Wp=function(a){this.uf(a.target);(C1(this)||!W()&&this.aa)&&D1(this);this.L=null;G1(this)};
f.bp=function(){var a=this.F;a.o.stop();a.A=!1;this.na("contentPauseRequested")};
f.Ji=function(){this.na("contentResumeRequested");this.ma||w1(this.F);this.L=null};
f.Xp=function(a){this.L=null;G1(this);a=a.target;var b={};b.adBreakTime=a.sc;this.$(new aO("prefetched",a.getCurrentAd(),b))};
f.na=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.$(new aO(a,b))};
f.fp=function(a,b){return this.ka=new A1(a,b)};A(I1,J);I1.prototype.T=function(){null!=this.o&&(this.o.ya("adsManagerLoaded",this.$),this.o.ya("adError",this.$),this.o.ya("adLoadError",this.$),this.o=null);I1.N.T.call(this)};A(K1,RL);f=K1.prototype;f.kd=function(){I9(this.app,!0,this.playerType);this.app.Ze(this.playerType)};
f.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
f.Qc=function(a,b,c){I9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.mg(d.getCurrentTime()+a,b,c,e)};
f.Sb=function(a,b){I9(this.app,!0,this.playerType);this.app.mg(a,b,void 0,this.playerType)};
f.Mj=function(){V9(this.app)};A(L1,jq);L1.prototype.getAdState=function(){return-1};M1.prototype.reset=function(){Hv(this.o)};
M1.prototype.A=function(a,b){Bv(a,b,this.o)};
M1.prototype.info=function(a,b){Ev(a,b,this.o)};
M1.prototype.span=function(a,b,c){var d=this.o,e=Dv(d).span,d=xv(d);b in d&&(e[a]=(c||At())-d[b])};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Gq();return b?(b=b.toLowerCase(),b+=$a("hidden"),!p(a)||b in a?b:null):null})();P1.prototype.o=function(){return this.B};
var O1=[2,5];b2.prototype.B="";b2.prototype.A="";var f2=!1,i2=!1;Di("showCompanionAdLoaded",function(){i2&&(j2(),i2=!1)});
Di("watchAdsInit",function(){f2&&(f2=!1,g2())});var Kga={dI:0,bI:1,aI:2,cI:3,$H:4,VH:5,YH:6,ZH:7,XH:8,UH:9,fI:10,TH:11,WH:12,SH:13,eI:14,RH:15},Lga={zK:0,AK:1,CK:2,BK:3,wK:4,xK:5,yK:6};A(m2,Gj);f=m2.prototype;f.cancel=function(){this.F&&this.S("dragend",0,0,null);this.B&&this.S("hoverend",0,0,null);ur(this.o);l2(this)};
f.Pr=function(a){ur(this.o);T(this.o,this.A,n2("move"),this.Nr);T(this.o,this.A,n2("out"),this.Or);T(this.o,this.A,"touchstart",this.Um);this.D&&T(this.o,this.A,n2("down"),this.Tm);var b=Jl(a);a=Ml(a);this.B=!0;this.S("hoverstart",a.x,a.y,b);this.S("hovermove",a.x,a.y,b)};
f.Nr=function(a){var b=Jl(a);a=Ml(a);if(this.C){var c=Ll(this.C),d=Ml(this.C);d.x==a.x&&d.y==a.y&&c==b||this.S("hovermove",a.x,a.y,b)}else this.S("hovermove",a.x,a.y,b);this.C=null};
f.Or=function(a){var b=Ml(a),c=Ll(a);c&&kh(this.G,c)?(this.C=a,this.S("hovermove",b.x,b.y,c)):(ur(this.o),l2(this),this.B=!1,this.S("hoverend",b.x,b.y,c))};
f.Az=function(a){this.Pr(a);this.Tm(a)};
f.Tm=function(a){if(!ga(a.button)||0==a.button){ur(this.o);T(this.o,window.document,n2("move"),this.zz);T(this.o,window.document,n2("up"),this.dE);var b=Jl(a);if(yc)T(this.o,this.A,"dragstart",this.Nw);else if(Nl(a),(LF||Fq)&&b)a:{for(var c=b;c;){if(qh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.F=!0;a=Ml(a);this.S("dragstart",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)}};
f.Nw=function(a){Nl(a)};
f.zz=function(a){var b=Jl(a);b==window.document&&(b=null);a=Ml(a);this.S("hovermove",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)};
f.dE=function(a){ur(this.o);this.F=!1;var b=Kl(a),c=Jl(a);a=Ml(a);b&&kh(this.G,b)?(T(this.o,this.A,n2("move"),this.Nr),T(this.o,this.A,n2("out"),this.Or),T(this.o,this.A,n2("down"),this.Tm),T(this.o,this.A,"touchstart",this.Um),this.S("dragend",a.x,a.y,c)):(l2(this),this.B=!1,this.S("dragend",a.x,a.y,c),this.S("hoverend",a.x,a.y,c))};
f.Um=function(a){var b=a.changedTouches[0];b&&(ur(this.o),T(this.o,this.A,"touchmove",this.eE),T(this.o,this.A,"touchend",this.Qr),T(this.o,this.A,"touchcancel",this.Qr),this.H=b.identifier,a=Jl(a),this.B||(this.B=!0,this.S("hoverstart",b.pageX,b.pageY,a)),this.S("hovermove",b.pageX,b.pageY,a),this.D&&(this.F=!0,this.S("dragstart",b.pageX,b.pageY,a),this.S("dragmove",b.pageX,b.pageY,a)))};
f.eE=function(a){var b=o2(this,a);b&&(Nl(a),a=Jl(a),this.S("hovermove",b.pageX,b.pageY,a),this.D&&this.S("dragmove",b.pageX,b.pageY,a))};
f.Qr=function(a){var b=o2(this,a);if(b){ur(this.o);l2(this);this.B=!1;var c=Jl(a);this.D&&(this.J||Nl(a),this.F=!1,this.S("dragend",b.pageX,b.pageY,c));this.S("hoverend",b.pageX,b.pageY,c)}};
f.T=function(){this.D&&(yc&&this.G.removeAttribute("draggable"),this.G.style.removeProperty("touch-action"));ur(this.o);m2.N.T.call(this)};t2.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.D=d;this.o=b-c-d;this.C=je(a-c,0,this.o);this.position=this.C+c;this.A=this.C/this.o};A(v2,Gj);v2.prototype.Rc=function(){return this.adSystem+"_"+this.adType};
v2.prototype.tg=function(){return this.Rc()};
v2.prototype.getCurrentAd=function(){return this.A?this.A.getCurrentAd():null};
v2.prototype.Qj=v;A(x2,R);x2.prototype.T=function(){x2.N.T.call(this);this.D&&(z2(this.A.app,this.D),this.D=null);A2(this);$g(y2(this));$g(B2(this));this.G=this.F=null;delete this.A};A(I2,G);I2.prototype.start=function(){(0,window.isNaN)(this.o)&&(this.B=K(),this.o=Rd(this.D,this.C-this.A,this))};
I2.prototype.stop=function(){(0,window.isNaN)(this.o)||(this.B=this.A=0,Td(this.o),this.o=window.NaN)};
I2.prototype.pause=function(){(0,window.isNaN)(this.o)||(this.A=K()-this.B,Td(this.o),this.o=window.NaN)};
I2.prototype.T=function(){(0,window.isNaN)(this.o)||Td(this.o)};A(K2,v2);K2.o=15;f=K2.prototype;f.Qj=function(){G2(this.D,13);this.L||this.A.destroy();this.F=this.H=!1;P2(this)};
f.Rc=function(){var a=0,a=this.getCurrentAd(),b=LV(a);if(4==w2(b).A)return b;if(HV(a))a=3;else if(null!=IV(a))a=JV(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
f.tg=function(){return this.adSystem+"_"+this.adType};
f.show=function(){var a=this.o,b=J2(a);Y4(a.app,b);this.D.B=At();this.G=this.o.Da();this.C.subscribe("progresssync",this.Qs,this);this.o.A.Y&&bh(Mg("video-ad-status-bar",this.G));Yd(this.G,["ad-showing","ad-interrupting"]);this.o.subscribe("resize",this.sn,this);try{this.B.R(this.A,"adError",this.PF),this.B.R(this.A,"click",this.OF),this.B.R(this.A,"complete",this.RF),this.B.R(this.A,"engagedview",this.SF),this.B.R(this.A,"pause",this.Rs),this.B.R(this.A,"start",this.Ss),this.B.R(this.A,"skip",this.VF),
this.B.R(this.A,"MUTE_AD",this.Qj),this.B.R(this.A,"skippableStateChanged",this.WF),this.B.R(this.A,"youTubeChannelMetadata",this.TF),this.B.R(this.A,"companionInitialized",this.QF),this.B.R(y2(this.o.G),"mouseup",this.UF),this.sn(),this.L||this.A.start()}catch(c){Q2(this,c)}};
f.Us=function(a,b,c){if("newdata"==a&&this.videoData!=c){a={video_id:c.videoId};b=new Mga;b.isSkippable=this.O;b.skip=y(this.A.skip,this.A);b.skipShown=y(this.A.rr,this.A);var d=this.getCurrentAd();if(d){b.clickThroughUrl=qW(d)||"";var e;if(!(e=this.o.A.Ca)){e=c.lengthSeconds;var h=IV(d);h?(MU(h,e),e=LU(h)):e=null}b.skipTime=e||0;b.adSystem=this.adSystem;if(d=d.G.get("why_this_ad"))b.whyThisAdInfo={menuTitle:d.C,targetingReasonHeader:d.D,targetingReasons:sb(d.F),closeButton:d.B,adSettingsLink:sb(d.A),
controlText:d.J,continueButton:d.H,cancelButton:d.G}}b.videoId=c.videoId;b.videoId||(b.videoUrl=H2(this)||"");c.spacecastModule=this.U;N2(this.o,-1,a,b)}this.videoData=c};
f.Ts=function(a){a=a.state;U(a,1)||this.J.pause();U(a,128)?Q2(this,Error(a.o.message||"Video player error.")):U(a,1)&&this.J.start()};
f.Ss=function(){this.K=!0;this.F=!1;if(!this.H){this.H=!0;var a=this.D;E2(a);var b=F2(a);if((0,window.isNaN)(a.B))E2(a);else{var c=At()-a.B;b.ad_stl=c}D2(a,4,b);O2(this.o,1);M2(this,!1);(a=P("ADS_INSTREAM_FIRST_PLAY"))&&S4(this.o,"onAdAnnounce",a)}N2(this.o,1);this.S("adPlay",this)};
f.Rs=function(){this.K&&(this.K=!1,N2(this.o,2))};
f.RF=function(){if(!this.F){var a=this.D;E2(a);var b=F2(a),c=R2(a.o);c?b.ad_fmt=c:E2(a);D2(a,5,b);P2(this);this.F=this.H=!1}};
f.SF=function(){var a=this.D;a.o.S("AD_LOGGING_EVENT",777,F2(a))};
f.VF=function(){this.F=!0;var a=this.D,b=F2(a),c=R2(a.o);c?b.ad_fmt=c:E2(a);D2(a,14,b);P2(this)};
f.WF=function(){var a=P("ADS_INSTREAM_SKIPPABLE");a&&S4(this.o,"onAdAnnounce",a)};
f.TF=function(){var a=this.getCurrentAd();if(a){var b=a.U;if((a=a.O)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.o;c.channelTitle=a.A;c.channelVideoCount=a.videoCount;S4(this.o,"onAdMetadataAvailable",c)}}};
f.QF=function(a){a=a.event;var b=a.o;b&&b instanceof J&&this.S("adCompanionInitialized",a.getAd(),b)};
f.PF=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}G2(this.D,32,b);Q2(this,a.event.getError())};
f.OF=function(){var a=this.D;E2(a);var b=F2(a);if(a.A){var c=Q4(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}D2(a,15,b);this.A.pause();this.S("select")};
f.Qs=function(){};
f.Ps=function(){this.A.hh();M2(this,!0)};
f.T=function(){this.o.Ha("control_toggle_play_pause",this.Vs,this);this.o.Ha("control_play",this.qn,this);this.o.Ha("control_pause",this.pn,this);this.o.Ha("resize",this.sn,this);this.B.removeAll();this.C.Ha("statechange",this.Ts,this);this.C.Ha("internalAbandon",this.Ps,this);this.C.Ha("internalvideodatachange",this.Us,this);this.C.Ha("progresssync",this.Qs,this);this.L||this.A.destroy();this.P&&($g(this.P),this.P=null);this.M&&(bh(this.M),this.M=null);this.G&&(ae(this.G,["ad-showing","ad-interrupting"]),
this.G=null);this.F=!1;Z4(this.o);this.J.dispose();this.J=null;K2.N.T.call(this)};
f.Vs=function(){this.K?this.pn():this.qn()};
f.qn=function(){this.A.resume();this.Ss()};
f.pn=function(){this.A.pause();this.Rs()};
f.sn=function(){Zq(y2(this.o.G),this.o.app.G.La())};
f.UF=function(a){p(a.o)||zl(a);var b=a.o;p(a.A)||zl(a);this.D.A=new pe(b,a.A)};A(U2,v2);f=U2.prototype;
f.show=function(){if(!this.F||!d5(this.o)){L(this.o.Da(),"ad-showing");this.B=y2(this.o.G);var a=this.A.getCurrentAd().getHeight();this.B.style.height=Nq(a,!0);L(this.B,"ad-overlay");this.C.R(this.B,"mouseup",this.aG);try{this.C.R(this.A,"autoClose",this.YF),this.C.R(this.A,"userClose",this.bG),this.C.R(this.A,"userRecall",this.cG),this.C.R(this.A,"click",this.ZF),this.C.R(this.A,"impression",this.$F),this.C.R(this.A,"adError",this.XF),V2(this,"normal"),this.G||this.A.start(),this.tn(),this.o.subscribe("resize",
this.Tj,this),this.o.subscribe("presentingplayerstatechange",this.Ws,this),this.S("adEnd",this)}catch(b){this.S("adError",b)}}};
f.T=function(){this.C.removeAll();this.o.Ha("resize",this.Tj,this);this.o.Ha("presentingplayerstatechange",this.Ws,this);$d(this.o.Da(),"ad-showing");this.A&&(this.G||this.A.destroy(),this.A=null);this.B&&$d(this.B,"ad-overlay");this.B=null;this.F=!1;U2.N.T.call(this)};
f.bG=function(){this.B&&this.A&&this.A.getCurrentAd()&&(this.B.style.height=Nq(0,!0));this.F=!0;var a=this.D;a.B=K();var b=T2(a);S2(a,6,b);this.o.S("overlay_ad_close")};
f.YF=function(){this.o.S("overlay_ad_close")};
f.cG=function(){this.o.S("overlay_ad_open")};
f.ZF=function(){this.o.pauseVideo();var a=this.D;a.B=K();var b=T2(a);if(a.A){var c=Q4(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}S2(a,100,b)};
f.$F=function(){var a=P("ADS_OVERLAY_IMPRESSION");a&&S4(this.o,"onAdAnnounce",a);this.o.S("overlay_ad_open")};
f.aG=function(a){this.D.A=a.target==a.currentTarget?null:new pe(a.pageX,a.pageY)};
f.XF=function(a){a=a.event.getError();this.S("adError",a)};
f.Ws=function(a){U(a.state,16)&&V2(this,"normal")};
f.Tj=function(){};
f.tn=function(){var a=this.D;a.D=K();var b=T2(a);S2(a,3,b)};A(W2,G);W2.A="rm";W2.o=10;W2.D=200;W2.B=200;W2.C=190;f=W2.prototype;
f.load=function(){var a;a=this.o.app.G.La();var b;this.o.A.o?b=!1:(b=0<(this.F&3)?190:200,b=200>a.width||a.height<b);if(b){b=this.B;var c=c2(b);c.ck_wh=a.width+"x"+a.height;R4(b.o,14,c);k2();this.Sc(Error("The player size is too small."))}else if(this.D=this.o.L)a=this.B,d2(a.o,9,c2(a)),a=a2(this.o),(b=this.o.A.serverPrefetchedVast)&&0<(this.F&3)?(a.A=b,this.o.A.serverPrefetchedVast=void 0):a.o=this.yd(),this.D.R("adsManagerLoaded",this.Ls,!1,this),this.D.R("adError",this.Ks,!1,this),this.Rj(this.D,
a)};
f.ln=function(){var a=Z1(this.o.A,this.o.V(),$1(this.o));a.surveyCreativeData=this.o.A.surveyCreativeData;a.youTubeAdNamespace=this.ug();return a};
f.ug=function(){return this.U};
f.Ls=function(a){if(a.B===this){Bv("aml");try{var b=this.ln(),c=a.o}catch(d){this.ue(d);return}this.C.R(c,"companionBackfill",y(this.JF,this,c));this.C.R(c,"loaded",y(this.IF,this,c));this.C.R(c,"adError",y(this.HF,this,c));this.C.R(c,"allAdsCompleted",v);this.C.R(c,"contentPauseRequested",v);this.C.R(c,"contentResumeRequested",v);c=HW(a,this.o.K,{},b);try{c.init("normal")}catch(d){c.destroy(),this.ue(d)}}};
f.IF=function(a,b){this.C.removeAll();var c=b.getAd(),d=c.isLinear(),e=this.B,h=c2(e);h.ad_man=d?"instream":"overlay";d2(e.o,12,h);e=a.getMediaUrl();switch(d?this.vg(a,c,e):this.Nd(a,c)){case 0:f3(this);break;case 1:a.destroy();this.Sc(Error("Unable to create a display state."));break;case 2:c=this.B;R4(c.o,21,c2(c));a.destroy();this.Sc(Error("Fallback to next ad."));break;case 3:this.Sc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
f.HF=function(a,b){this.C.removeAll();a.destroy();this.ue(b.getError())};
f.Ks=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.o===this&&this.ue(b)};
f.JF=function(){a3(this)};
f.vg=function(a,b,c){var d=$1(this.o)&&$1(this.o).spacecastModule;if(d&&c&&!this.M.test(c)||!this.o.A.Wa&&!this.M.test(c))return 3;Z2(this,WV(b));Y2(this,new K2(this.ug(),this.o,a,null!=IV(b),void 0,d));return 0};
f.Nd=function(a,b){Z2(this,WV(b));Y2(this,new U2(this.ug(),this.o,a));return 0};
f.ue=function(a){if(a){var b=this.B,c=c2(b);a&&V1(a,c);R4(b.o,32,c);this.Sc(a)}};
f.Sc=function(){R3(this.H)};
f.T=function(){this.D&&(this.D.ya("adsManagerLoaded",this.Ls,!1,this),this.D.ya("adError",this.Ks,!1,this));this.O.removeAll();this.C.removeAll();W2.N.T.call(this)};
f.Rj=function(a,b){try{J1(a,b,this),Bv("ar")}catch(c){this.ue(c)}};A(b3,v2);b3.prototype.show=function(){g2();this.D||this.S("adEnd",this);this.C=si(y(this.H,this),1E3)};
b3.prototype.T=function(){g3(this);b3.N.T.call(this)};
b3.prototype.H=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.tg();this.D?(a&&a()&&this.F++,2<=this.F?(b.format=this.Rc(),g3(this),this.S("AD_LOGGING_EVENT",3,b),this.S("adEnd",this)):this.B>=this.G&&(g3(this),this.S("AD_LOGGING_EVENT",2,b),this.S("adEnd",this))):this.B>=this.G||!a?(g3(this),this.S("AD_LOGGING_EVENT",2,b)):a()&&(g3(this),this.S("AD_LOGGING_EVENT",3,b))};A(h3,W2);h3.prototype.ln=function(){var a=h3.N.ln.call(this);a.Yn=0==this.J;a.iw=d5(this.o)?a.Yn:!0;return a};
h3.prototype.yd=function(){var a;var b=this.G;a=$2(this);(b=4==this.F&&b.o.afvInvideoAdTag?b.o.afvInvideoAdTag:b.o.afvAdTag)?(ta(b,"http:")&&(b=b.substr(5)),a=hj(b,{videoad_start_delay:a})):a="";return a};
h3.prototype.Nd=function(a,b){if(this.o.A.o)return 1;1==this.A.o()&&(X2(this),d2(this.o,1));return h3.N.Nd.call(this,a,b)};
h3.prototype.Sc=function(a){var b=this.o.A;b.o?h3.N.Sc.call(this,a):b.aa||this.F&4?(Y2(this,new b3(this.o)),f3(this)):h3.N.Sc.call(this,a)};i3.prototype.o=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x361"));b&12&&d.push("480x70");var e=[],h,k;b&12&&(e.push("300x250"),h="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),h="watch-longform-ad",k=1);var l=k;k=fc(this.J);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.toString());h&&null==k.kmyd&&(k.kmyd=h);e&&0<e.length&&this.D&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
if(this.G||null==k.ord){if(!this.A||this.G)this.A=Math.floor(999999999*Math.random()).toString();k.ord=this.A}d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&cc(k,"sz");e=cj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.C,"pfadx",this.H,";",e,"?"].join("")};j3.prototype.o=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new N(this.A),h=e.o,k=h.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&h.set("scp",k+("pos="+c));h.set("vpos",d);return e.toString()}return this.A};A(d3,U2);d3.prototype.Tj=function(){};
d3.prototype.Rc=function(){return"1_3"};
d3.prototype.tn=function(){1==this.J?this.S("AD_LOGGING_EVENT",2,{}):d3.N.tn.call(this)};A(k3,W2);k3.prototype.yd=function(){return this.Y.o(Q1(this.A),this.F)};
k3.prototype.Nd=function(a,b){Z2(this,WV(b));var c=EV(b);if(X1(c,"rm"))return 1==this.F||d5(this.o)||k2(),a.sendImpressionUrls(),this.o.A.J?(Y2(this,new b3(this.o)),0):2;if(X1(c,"blockAllAds"))return a.sendImpressionUrls(),Y2(this,new d3(this.o,a,1)),0;if(X1(c,"hideMaster"))return Y2(this,new d3(this.o,a,0)),0;if(this.o.A.o)return 1;Y2(this,new U2(this.ug(),this.o,a));return 0};A(l3,k3);var Tga={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=l3.prototype;f.yd=function(){if(this.o.A.fa){var a=new j3(this.o.A.dynamicAllocationAdTag);return a.o(Q1(this.A),this.P)}a=new i3(this.o.A.dynamicAllocationAdTag,this.o.A,this.J);return a.o(Q1(this.A),this.P)};
f.Rj=function(a,b){if(this.K){b.B=Y1(this.K);var c=this.o.A.wa;c&&(b.C=c);b.rh=$2(this)}l3.N.Rj.call(this,a,b)};
f.vg=function(a,b,c){m3(this,a);return 1!=this.G&&2!=this.G?1:l3.N.vg.call(this,a,b,c)};
f.Nd=function(a,b){m3(this,a);switch(this.G){case 1:return l3.N.Nd.call(this,a,b);case 2:var c;this.o.A.o?c=1:(1==this.A.o()&&(X2(this),d2(this.o,1)),Z2(this,WV(b)),Y2(this,new U2(2,this.o,a)),c=0);return c;default:return 1}};
f.ug=function(){return this.G||0};
f.Sc=function(a){var b=this.o.A;b.o?l3.N.Sc.call(this,a):b.aa||this.K&4?(Y2(this,new b3(this.o)),f3(this)):l3.N.Sc.call(this,a)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
n3.prototype.cancel=function(a){if(this.o)this.B instanceof n3&&this.B.cancel();else{if(this.A){var b=this.A;delete this.A;a?b.cancel(a):(b.H--,0>=b.H&&b.cancel())}this.M?this.M.call(this.L,this):this.J=!0;this.o||(a=new x3,r3(this),p3(this,!1,a))}};
n3.prototype.K=function(a,b){this.G=!1;p3(this,a,b)};
n3.prototype.ai=function(a){r3(this);p3(this,!0,a)};
n3.prototype.then=function(a,b,c){var d,e,h=new yd(function(a,b){d=a;e=b});
s3(this,d,function(a){a instanceof x3?h.cancel():e(a)});
return h.then(a,b,c)};
vd(n3);A(q3,sa);q3.prototype.message="Deferred has already fired";q3.prototype.name="AlreadyCalledError";A(x3,sa);x3.prototype.message="Deferred was canceled";x3.prototype.name="CanceledError";w3.prototype.B=function(){delete v3[this.o];throw this.A;};
var v3={};A(y3,W2);y3.A="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";y3.B="43";y3.o=function(a){var b=new n3;pj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Hd:function(){var c=Error(a+" timed out");r3(b);p3(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);r3(b);p3(b,!1,c)},
qb:function(a){b.ai(a)}});
return b};
y3.prototype.yd=function(){return""};
y3.prototype.Rj=function(a,b){var c=this.F;c&1||c&4||c&8?this.G?c&8?Hga(this.G):("goo.gl"==Xe(this.G)?(c=y3.o("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.G),t3(c,function(a){a=be(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new N(a.longUrl);xf(a,"video_format","43");return y3.o(a.toString())},this)):c=y3.o(this.G),t3(c,function(c){b.A=c.responseText;
J1(a,b,this)},this),s3(c,null,this.ue,this)):this.ue(Error("Invalid empty URL")):this.ue(Error("Invalid request type: "+c))};A(z3,v2);z3.prototype.show=function(){var a=$1(this.o).videoId;if(a){var b=this.A.getCurrentAd();eH(this.o.V().J,a,{Je:vW(b)||null,hg:wW(b)||null,mi:!1});a={};a.format=this.Rc();a.at=this.tg();W1(b,a);this.S("AD_LOGGING_EVENT",3,a)}};A(A3,W2);A3.prototype.yd=function(){return this.o.A.rb||""};
A3.prototype.Nd=function(a,b){Z2(this,WV(b));Y2(this,new z3(this.o,a));5!=this.A.o()&&a3(this);return 0};
A3.prototype.vg=function(){return 1};A(B3,A3);B3.prototype.yd=function(){return this.o.A.ua||""};A(c3,U2);c3.prototype.Tj=function(){};
c3.prototype.Rc=function(){return"4_3"};A(I3,W2);
I3.prototype.yd=function(){var a;if(C(this.G)||0!=Q1(this.A)){var b=this.K;if(b.o.Ua&&b.o.Ia){a={};var c="youtube_watch_"+b.B;a.nw="10613";a.asnw=b.o.Ua;a.ssnw=b.o.Ua;a.caid=b.o.Ia;a.vdur=b.F;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.o.ma)||(c._fw_d_001=b.o.ma);b.o.gender&&(c._fw_d_002=b.o.gender);b.o.Fa&&(c["_fwu:10613:lang"]=b.o.Fa);b.o.xa&&(c._fw_dbp=b.o.xa);b.o.W&&(c._fw_distributorvideoassetid=b.o.W);c._fw_yt_type=H3(b)?"long":"short";if(C3(b)){a.prof=H3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=D3(b.A)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.D&1&&!b.G){e={};d=F3(b);if(G3(b.A)){var h;if(G3(b.A)){h=0;var k=b.C.B;if(k)for(var k=k.B,l=0;l<k.length&&(G3(k[l])&&h++,k[l].getId()!=b.A.getId());l++);}else h=0;d=d+h}e.slid=d;e.ptgt="a";e.slau=F3(b);e.tpos=E3(b.A)?b.F.toString():Q1(b.A.ab).toString();d=cj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=cj(e,"&")+";"}b.D&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=D3(b.A)?"10":E3(b.A)?b.F.toString():Q1(b.A.ab).toString(),d+=cj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=cj(e,"&")+";");b.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=cj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+cj(a,"&")+";"+cj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.B.split("_")[0],a.prof="10613:10613_youtube_"+b.B,a.crtp="vast2s",a.flag="+emcr",d={},b.G||(d.ptgt="a",d.slid=
"preroll",d.slau=F3(b),d.w="480",d.h="360",d.tpos="0",d.tpcl="preroll",d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+cj(a,"&")+";"+cj(c,"&")+";"+cj(d,"&")}else a=""}else a=this.G;return a};
I3.prototype.vg=function(a,b){return I3.N.vg.call(this,a,b,null)};
I3.prototype.Nd=function(a,b){var c=EV(b);if(X1(c,"rm"))return this.H.D=ec(a),2;if(this.o.A.o)return 1;if(X1(c,"hideMaster")){if(a.G&&a.G.Oe()){var c=a.G.Oe(),d;d=a.getCurrentAd();if(W()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}Y2(this,new c3(this.o,a));return 0}return I3.N.Nd.call(this,a,b)};J3.prototype.getType=function(){return this.B};
J3.prototype.create=function(a,b){switch(this.B){case 1:return new h3(a,b,this.o);case 2:return new k3(a,b,this.o);case 3:return new l3(a,b,this.o,this.A);case 5:return new I3(a,b,this.o);case 4:return new y3(a,b);case 7:return new A3(a,b,this.o);case 8:return new B3(a,b,this.o);default:return null}};A(K3,Gj);f=K3.prototype;f.getId=function(){return this.F};
f.show=function(){this.J?this.o instanceof U2&&V2(this.o,"normal"):(this.J=!0,this.o instanceof K2&&O3(this.B,"bs"),this.o.subscribe("adEnd",this.Gs,this),this.o.subscribe("adError",this.Hs,this),this.o.subscribe("AD_LOGGING_EVENT",this.Js,this),this.o.subscribe("select",this.Fs,this),this.o.subscribe("adCompanionInitialized",this.Is,this),this.o.show(),Q3(this,!0))};
f.Gs=function(){this.A&&(S3(this),T4(this.B));e3(this)};
f.Hs=function(a){if(a){var b={};V1(a,b);P3(this,b);R4(this.B,32,b)}S3(this);e3(this)};
f.Js=function(a,b){P3(this,b);d2(this.B,a,b)};
f.Fs=function(){this.H=!1};
f.Is=function(a,b){this.S("adCompanionInitialized",a,b)};
f.T=function(){S3(this);this.o=null;null!=this.D&&(this.D.dispose(),this.D=null);K3.N.T.call(this)};var X3=[new P1(1)];var $ga={mv:"m",Tu:"f"};A(Y3,G);Y3.prototype.F=function(a){a=null!=a.getAd()?a.getAd().F:null;if(null!=a){var b=this.C;b.D&&b.D.getVideoData().videoId==a?(a=b.D,a.B?(b=a.B,a=wB(b,"engage"),a.B=1,b=WK(b.o),a=pa(pB,a.Z,rB(a),oB(a),b)):a=null):a=null;this.A=a}};
Y3.prototype.D=function(){this.B&&this.A&&this.A()};A($3,G);$3.prototype.U=function(){this.B=window.NaN};
$3.prototype.L=function(){if(U(Pz(this.o.o),8)){if(a4(this)){this.F=this.F||K()/1E3;this.H&&(this.D+=K()/1E3-this.H);var a=this.o.getCurrentTime(1);0!=this.A&&Math.abs(a-this.A)>this.O?(this.A=this.o.getCurrentTime(1),b4(this,"seek"),this.D=0,this.C.push(K()/1E3)):(0,window.isNaN)(this.B)&&0!=this.A&&(b4(this,"pause"),this.D=0,this.C.push(K()/1E3));ti(this.B);this.B=window.NaN;this.A=0}}else U(Pz(this.o.o),4)&&0==this.A&&a4(this)&&(this.A=this.o.getCurrentTime(1),this.B=ri(y(this.U,this),1E3*this.P),
this.H=K()/1E3)};
$3.prototype.T=function(){ti(this.B);this.B=window.NaN;this.A=0;this.o.Ha("applicationplayerstatechange",this.L,this)};A(c4,G);f=c4.prototype;f.kt=function(){this.o.subscribe("beginseeking",this.Uj,this)};
f.jt=function(a,b){return a.A&&G3(a)?b+this.C+this.B:b};
f.ht=function(a,b){return!a.A||E3(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.C+this.B};
f.Xs=function(a){if(a.A&&G3(a)&&!(0>=this.B)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=N3(a)+this.C,b=new gq(c,c+this.B-1,b);this.D[a.getId()]=b;this.o.bb([b])}};
f.$s=function(a){a.A&&G3(a)&&(d4(this,a.getId()),this.Uj())};
f.Uj=function(){(0,window.isNaN)(this.A)||(ti(this.A),this.A=window.NaN);var a=W4(this.o);f4(this,a,this.o.app.Qa.Ab()/100);tH(a,"transition","");tH(a,"opacity","1")};
f.gt=function(a){var b=N3(a)+this.C+this.B,b=50>=1E3*this.o.getCurrentTime(1)-b;a.A&&G3(a)&&b&&(a=.001*(N3(a)+this.G),this.o.S("command_seek",a),0>=this.F||(a=W4(this.o),tH(a,"opacity","0"),f4(this,a,0),ri(y(this.dG,this),0)))};
f.dG=function(){var a=W4(this.o);tH(a,"transition","opacity "+String(this.F)+"ms linear");tH(a,"opacity","1");e4(this,a,this.F,1)};
f.Zs=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),d=Math.max(0,a.o.volume+-1*a.o.volume*c/d);f4(this,a,d);this.A=0<d?Aq(y(this.Zs,this,a,b,c),c):window.NaN}};
f.Ys=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),e=this.o.app.Qa.Ab()/100,d=Math.min(e,a.o.volume+(e-a.o.volume)*c/d);f4(this,a,d);this.A=d<e?Aq(y(this.Ys,this,a,b,c),c):window.NaN}};
f.T=function(){this.Uj();this.o.Ha("beginseeking",this.Uj,this)};A(g4,c4);f=g4.prototype;f.kt=v;f.jt=function(a,b){return b};
f.ht=function(a,b){return b};
f.Xs=v;f.$s=v;f.gt=v;f.T=v;A(h4,G);h4.prototype.C=function(){var a=this.o.A.A;if(this.D&&!(0>=a)){var b=this.o.o.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ob(this.G.C,function(a){a.isDisposed();if(a.isVisible&&!(0>=j4(this,a))){var h;h=a.getId();h=this.G.G[h];if(j4(this,a)>b){var m=!k4(this,a);m!=h.visible&&(h.visible=m,c.push(h));m||(h=j4(this,a)-b,h<e&&(e=h,d=a))}else h.visible||(h.visible=!0,c.push(h))}},this);
0<c.length&&this.o.o.bb(c,1);if(d){var h=0;0<this.B&&(h=K()/1E3-this.B);bha(this,a-h-e+2)}else i4(this)}};
h4.prototype.A=function(){return this.B};
h4.prototype.T=function(){i4(this);this.o.Ha("endseeking",this.C,this)};A(l4,G);f=l4.prototype;f.wg=function(a){a.Ha("adBreakComplete",this.wg,this);a.Ha("adCompanionInitialized",this.nn,this);this.O=ri(y(this.KF,this,a),0)};
f.nn=function(a,b){Mb(this.K);this.K=new Y3(this.o,b)};
f.KF=function(a){var b=dha(this,a),c=b.previous,b=b.next;this.O=window.NaN;var d,e=!1;switch(a.ab.o()){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ga(b.ab.A)?N3(b)-1:0x7ffffffffffff}0==a.F&&(O3(this.o,"bl"),M3(a)||O3(this.o,"fb"));"loaded"!=a.C||0==a.F&&M3(a)&&b&&1E3*this.o.o.getCurrentTime()>=N3(b)?(c&&L3(c)&&!e&&(b=d,d=N3(c),d>b&&(b=d),o4(this,c),n4(this,c,b)),this.ff(a)):(this.C[a.getId()]=a,n4(this,a,d),nq(this.o));Sb(this.C)==this.B.length&&this.F.C();m4(this)};
f.ff=function(a){a.Ha("adBreakComplete",this.wg,this);this.A&&a==this.A&&(this.A=null,null!=this.K&&a.A&&(this.K.B=!0));o4(this,a);pb(this.B,a);delete this.C[a.getId()];Mb(a)};
f.Ms=v;f.Sj=function(a){return this.C[a]};
f.mn=function(a){if(a.A){if(!E3(a)&&a.H){var b=this.o;a5(b);sq(b);this.D.gt(a)}else M3(a)&&!a.H?(b=this.o,a5(b),sq(b)):a5(this.o);this.ff(a);a=this.F.A();a=0<a?Math.floor(K()/1E3-a):0;q4(this.o,"set_previous_ad_end_time",{tfla:a});a=this.F;a.D&&0<a.o.A.A&&(a.B=K()/1E3,a.C());for(;!kb(this.P);)r4(this,this.P.shift())}else a.isVisible||this.ff(a)};
f.T=function(){ti(this.O);Mb(this.D);Mb(this.F);Mb(this.fa);F(this.B,this.ff,this);l4.N.T.call(this);Mb(this.K)};A(s4,l4);f=s4.prototype;f.Sj=function(a){a=s4.N.Sj.call(this,a);if(!a)return null;if(!a.K)return a;var b;b=null;if(this.H.length){var c=b=this.H.shift();c.ab=a.ab;c.F=a.getId()}b&&"loaded"==b.C?(a.Ha("adBreakComplete",this.wg,this),this.C[a.getId()]=b,this.B[this.B.indexOf(a)]=b,Mb(a)):(this.xg(),b&&(Mb(b),b=null,this.ff(a)));b&&!b.A&&this.xg();return b};
f.wg=function(a){!D3(a)&&(2!=a.ab.o()||10!=Q1(a.ab))||"loaded"==a.C&&a.A||this.xg();s4.N.wg.call(this,a)};
f.mn=function(a){a.A&&10<this.U?u4(this):this.xg();s4.N.mn.call(this,a)};
f.xg=function(){if(!this.isDisposed())for(t4(this);this.L.length&&this.M.length+this.H.length<this.Z;){var a=this.L.shift();a.subscribe("adBreakComplete",this.Os,this);this.M.push(a);R3(a)}};
f.Ms=function(){u4(this)};
f.Os=function(a){a.Ha("adBreakComplete",this.Os,this);pb(this.M,a);this.H.push(a)};
f.T=function(){t4(this);F(this.M,Mb);F(this.H,Mb);F(this.L,Mb);s4.N.T.call(this)};A(v4,l4);v4.prototype.jh=function(a){this.ea=a};
v4.prototype.getVideoData=function(){return this.ea};
v4.prototype.da=function(a){"loaded"==a.C&&this.L.push(a);a.Ha("adBreakComplete",this.da,this)};
v4.prototype.Y=function(){if(null!=this.A&&0<this.L.length){var a=this.L.shift();delete this.C[Q1(a.ab)];var b=Math.floor(K()/1E3)-this.aa;this.aa=null;a.Ha("adBreakComplete",this.Y,this);this.ff(a);this.A=null}0<this.U?(this.U--,w4(this)):(a=this.M,a5(a),sq(a),(0,window.isFinite)(b)&&(this.Z?iL(this.H,window.Infinity,!0):iL(this.H,this.H.getCurrentTime()+b,!0)))};var c5=["9412857","9412859"];A(z4,G);z4.prototype.G=function(){this.o||(this.o=y4(this.B.Yd()));this.A.o.bb(Vb(this.o),1)};
z4.prototype.D=function(){var a=this.A.A.A;if(!(0>=a)&&this.o){var b=this.A.o.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;F(this.B.Yd(),function(a){var h=this.o[a];if(h){var m=this.B.M.get(a);m&&m.sc>b?(a=!B1(this.H,m),a!=h.visible&&(h.visible=a,c.push(h)),a||(h=m.sc-b,h<e&&(e=h,d=m))):!m||m.ib()?(lM(this.A.o,[h],void 0),delete this.o[a]):!h.visible&&m&&(h.visible=!0,c.push(h))}},this);
0<c.length&&this.A.o.bb(c,1);if(d){var h=0;0<this.F&&(h=K()/1E3-this.F);gha(this,a-h-e+2)}else A4(this)}};
z4.prototype.T=function(){z4.N.T.call(this);this.A.Ha("endseeking",this.D,this);A4(this)};A(C4,G);f=C4.prototype;f.vt=function(){return 4};
f.Vj=function(a){return a};
f.xt=function(){return!1};
f.qt=v;f.Dh=v;f.ut=v;f.wt=v;f.zt=v;A(D4,G);f=D4.prototype;f.vt=function(){return 4-this.C/1E3};
f.Vj=function(a){return Yb(this.B,1E3*a)?this.B[1E3*a]/1E3:a};
f.xt=function(a){var b=!1,c={};F(eh(a),y(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?x4(e):null)b=b||hha(a),c[e]=a},this));
if(!b||0==Sb(c))return!1;a=fi(Wb(c),function(a){return(0,window.parseInt)(a,10)});
if(!kha(this,a))return!1;Ob(c,y(function(a,b){var c=(0,window.parseInt)(Zb(this.B,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",iha(this,c))},this));
return!0};
f.qt=function(a){if(!(0>=this.H)){var b=[];F(a,y(function(a){if(Yb(this.B,1E3*a)){var d=new gq(1E3*this.Vj(a)+this.C,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.D[a]=d;b.push(d)}},this));
this.o.bb(b)}};
f.ut=function(a){if(Yb(this.B,1E3*a)){var b=W4(this.o);a=Math.max(0,1E3*a-1E3*this.o.getCurrentTime(1));tH(b,"transition","opacity "+String(a)+"ms linear");tH(b,"opacity","0");F4(this,b,a,0)}};
f.wt=function(a){E4(this,1E3*a)&&(this.D[a]&&(lM(this.o.o,[this.D[a]],void 0),delete this.D[a]),this.Dh())};
f.Ft=function(){U(Pz(this.o.o),4)&&this.Dh()};
f.Dh=function(){(0,window.isNaN)(this.A)||(ti(this.A),this.A=window.NaN);var a=W4(this.o);G4(this,a,this.o.app.Qa.Ab()/100);tH(a,"transition","");tH(a,"opacity","1")};
f.zt=function(a){if(Yb(this.B,1E3*a)){var b=1E3*a;200>=1E3*this.o.getCurrentTime(1)-b&&(this.o.S("command_seek",this.Vj(a)+this.G/1E3),0>=this.F||(a=W4(this.o),tH(a,"opacity","0"),G4(this,a,0),(0,window.isNaN)(this.A)||ti(this.A),this.A=Aq(y(this.nG,this),0)))}};
f.nG=function(){var a=W4(this.o);tH(a,"transition","opacity "+String(this.F)+"ms linear");tH(a,"opacity","1");F4(this,a,this.F,1)};
f.Et=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),d=Math.max(0,a.o.volume+-1*a.o.volume*c/d);G4(this,a,d);this.A=0<d?Aq(y(this.Et,this,a,b,c),c):window.NaN}};
f.Dt=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),e=this.o.app.Qa.Ab()/100,d=Math.min(e,a.o.volume+(e-a.o.volume)*c/d);G4(this,a,d);this.A=d<e?Aq(y(this.Dt,this,a,b,c),c):window.NaN}};
f.T=function(){this.Dh();this.o.Ha("applicationplayerstatechange",this.Ft,this);D4.N.T.call(this)};A(H4,G);var pha={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,GOOGLEADS:14};f=H4.prototype;
f.load=function(a){if(this.G=this.o.L){var b=this.o.A;this.D=b.applyFadeOnMidrolls?new D4(this.o):new C4;var c=a2(this.o);c.A=mha(this,a);c.Ei=this.o.K.B;c.Cb.GET_MIDROLL_POSITION_IN_SEC=y(this.D.Vj,this.D);if(a=T3(b).get(3))if(R1(this.o.V(),["9418778","9417893","9417894","9417895","9419817"])||(c.B=Y1(a)),b=b.wa)c.C=b;this.G.R("adsManagerLoaded",this.Bt,!1,this);this.G.R("adError",this.At,!1,this);J1(this.G,c,this)}};
f.Bt=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:y(function(){return this.o.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:y(function(){return this.o.o.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=nha(this);this.A=HW(a,this.o.K,b,c)}catch(d){M4(this,d);return}if(this.J=this.A.fp(b,this.o.A.A)){this.D.qt(this.A.Yd());this.L=new $3(this.o,this.J);this.H=new z4(this.o,this.A,this.J);H(this,this.H);ri(y(this.H.G,this.H),0);jb(this.A.Yd(),0)||L4(this);this.F.R(this.A,"companionBackfill",y(this.kG,this));this.F.R(this.A,"prefetched",y(this.hG,this));this.F.R(this.A,"loaded",y(this.gG,this));this.F.R(this.A,"adError",y(this.fG,this),!1);this.F.R(this.A,"start",y(this.iG,
this));this.F.R(this.A,"complete",y(this.eG,this));this.F.R(this.A,"contentPauseRequested",y(this.lG,this));this.F.R(this.A,"contentResumeRequested",y(this.mG,this));this.F.R(this.A,"allAdsCompleted",y(this.jG,this));Z3(this.o,this.Ct,this);try{this.A.init("normal"),this.A.start()}catch(d){q4(this.o,"vmap_ads_manager_init_exception"),this.A.destroy(),this.A=null,M4(this,d)}}}};
f.Ct=function(){if(U(Pz(this.o.o),16)||U(Pz(this.o.o),32)){var a=this.A;null!=a.F&&(a=a.F,a.o.stop(),a.A=!1)}else a=this.A,null!=a.F&&w1(a.F)};
f.lG=function(a){N4(this);(this.B=a.getAd())&&this.B.isLinear()&&(a=J4(this.B),this.C=new K2(a,this.o,this.A,null!=IV(this.B),!0),p4(this.o),this.D.wt(this.B.C.o),this.C.show(),I4(this,"show_instream_ads"))};
f.mG=function(a){L4(this);if(this.o.getCurrentTime(1)<this.o.o.getVideoData().lengthSeconds){var b=this.o;a5(b);sq(b);this.B&&this.B.isLinear()&&this.D.zt(this.B.C.o)}this.K?this.B=null:N4(this);a=a.getAd();b=!0;if(a&&a!==this.B&&!a.isLinear()){b=this.A;if(null!=b.A&&b.A.O&&!this.K){this.K=!0;b=this.H;if(null!=b.o[0]){var c=b.o[0];delete b.o[0];b.o[0]=new gq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.A.o.bb([c,b.o[0]],1);b.A.bb([b.o[0]])}this.B=a;return}b=oha(this,a)}this.B&&this.B.isLinear()&&
T4(this.o);this.B&&this.B.isLinear()?(I4(this,"set_previous_ad_end_time"),b=this.J,0<b.B&&(b.o=K()/1E3),B4(this.H)):a&&a!==this.B&&!a.isLinear()&&b&&B4(this.H);this.H.G();this.B=a};
f.jG=function(){this.L.J=!0};
f.iG=function(a){(a=a.getAd())&&this.C&&(a=J4(a),this.C.adSystem=a)};
f.eG=function(a){a.getAd().isLinear()||this.B!==a.getAd()||(N4(this),this.B=null)};
f.hG=function(a){var b=a.getAd();null!=b&&(this.P[a.o.adBreakTime]=b)};
f.gG=function(a){if(null!=a.getAd()){var b=a.getAd().C;0<b.o&&(this.K=!1);b.B||a.getAd().isLinear()||L4(this)}};
f.fG=function(a){M4(this,a.getError())};
f.At=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.o===this&&M4(this,b)};
f.kG=function(a){a=a&&a.getAd();K4(this,a)};
f.T=function(){N4(this);this.G&&(this.G.ya("adsManagerLoaded",this.Bt,!1,this),this.G.ya("adError",this.At,!1,this));this.O.removeAll();this.F.removeAll();this.o.o.removeEventListener("applicationplayerstatechange",this.Ct,this);this.M=!1;this.A&&(this.A.destroy(),this.A=null);Mb(this.D);Mb(this.L);H4.N.T.call(this)};A(O4,L1);O4.B=10;O4.A=1E3;O4.o="livead";O4.Xa=function(a){return!!a.Qa.getVideoData().adModule};
f=O4.prototype;f.Xa=function(){return O4.Xa(this.app)};
f.create=function(){O4.N.create.call(this);T(this.P,this.o,"beginseeking",y(this.S,this,"beginseeking"));T(this.P,this.o,"endseeking",y(this.S,this,"endseeking"));T(this.P,this.o,"resize",y(this.S,this,"resize"));T(this.P,this.o,"presentingplayerstatechange",y(this.S,this,"presentingplayerstatechange"));T(this.P,this.o,"webglsettingschanged",y(this.S,this,"webglsettingschanged"));O3(this,"i");this.A=new aha(this.V(),this.o.getVideoData().C||{});this.J=new eha(this,this.o);this.Z=!1;if(this.L)this.L.o.B.C=
GT();else{var a=this.A.Y?void 0:B2(this.G),b=new K1(this.app,2),c=y2(this.G);b.A||(b.A=ec(b.B),b.A.addEventListener=y(b.Sw,b),b.A.removeEventListener=y(b.Tw,b));this.K=new yT(c,void 0,a,b.A,!0);this.K.setSize(-1,-1);this.L=new I1(this.K)}if(this.A.vmap&&!this.A.da){this.C=new H4(this);try{this.C.load(this.A.vmap)}catch(x){vi(x),q4(this,"vmap_load_exception"),this.C.dispose(),this.C=null,$4(this,W3(new V3(this)))}}else{try{if(pi("EXP_QUICK_FETCH_BISCOTTI")&&!this.A.serverPrefetchedVast){var d=At(),
e=AH();if(e)this.Ns(d,e);else{var h=y(this.Ns,this,d),k=y(this.MF,this,d),l;try{var m=r("yt.www.ads.biscotti.getId_"),n;if(m)n=m();else{if(!yH){var t=zr("//googleads.g.doubleclick.net/pagead/id",{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0}).then(xH),u=Bd(zH,zH,void 0);u.B=!0;Jd(t,u);yH=t}n=yH}l=n}catch(x){l=Cd(x)}this.U=l.then(h,k)}}}catch(x){vi(x)}$4(this,W3(new V3(this)))}this.J&&(a={},a.allowed=this.J.C,oq(this,{},a))};
f.Ns=function(a,b){var c=b?0:2,d=Math.round(At()-a);this.log({biscotti:1,dur:d,bstate:c})};
f.MF=function(a){a=Math.round(At()-a);this.log({biscotti:1,dur:a,bstate:1})};
f.destroy=function(){this.W&&a5(this);this.app.V().experiments.ga("disable_new_pause_state3")||mq(this);Z4(this);Nb(this.B,this.D,this.C);this.J=this.A=this.C=this.aa=this.D=this.B=null;A2(this.G);i2=f2=!1;this.U&&this.U.cancel();this.H&&O4.N.destroy.call(this)};
f.V=function(){return this.app.V()};
f.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
f.Oa=function(){return this.o.Oa()||this.A.C};
f.Bh=function(){var a;if(this.J){a=this.J;var b={allowed:a.C};a.o.excludedAds&&(b.ex_ad=a.o.excludedAds);a.B&&(b.at=a.B);a=b}else a=O4.N.Bh.call(this);return a};
f.Da=function(){return this.o.Da()};
f.getVideoData=function(){return this.aa};
f.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
f.LF=function(){if(this.D){var a=this.B.A.o;null!=a&&a.Qj()}};
f.getAdState=function(){return this.O};
f.Wb=function(a){O4.N.Wb.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.B&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.B,d=c.Sj(b);if(d&&!k4(c.F,d)&&(c=c.D,d.A)){var e=W4(c.o),d=Math.max(0,N3(d)+c.C+c.B-1E3*c.o.getCurrentTime(1));tH(e,"transition","opacity "+String(d)+"ms linear");tH(e,"opacity","0");e4(c,e,d,0)}}else r4(this.B,b);this.C&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.C,(c=d.P[b])&&c.isLinear()&&d.D.ut(b)):0>b?(b=this.L.o,d=new IW("contentComplete"),
b.$(d),d.B&&(nO(lO(),41351033)||b.B.clear(),null!=b.A&&(d=b.A.Oe(),null!=d&&WT(d,b.B.o)))):(b=this.C,null!=b.B&&(b=b.A,null!=b.A&&b.A.start())));if("livead"===a.getId()&&null!=U4(this)){b=U4(this);for(a=Math.floor(a.start/1E3);p(b.C[a]);)a++;var d=b.ia++,c=0==a?new P1(1):new P1(2,a),e=b.M,h;h=U3(b.M.A,c.o());d=new K3(e,d,c,h,!1);b.C[a]=d;d.subscribe("adBreakComplete",b.da,b);R3(d)}};
f.jc=function(a){O4.N.jc.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.B&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.B,(b=c.C[b])&&c.A==b&&!b.A&&b.isVisible&&b.J&&b.o instanceof U2&&V2(b.o,"fullscreen"));this.C&&"ytp-ad-fadeout"==a.style&&this.C.D.Dh();"livead"===a.getId()&&null!=U4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(lM(this.o,[a],1),w4(U4(this)))};
f.de=function(a){this.S(a)};
f.oz=function(a,b){a.subscribe("cuepointupdated",this.NF,this);this.aa=a;var c=U4(this);null!=c&&(c.H=b)};
f.NF=function(a){var b=U4(this);if(null!=b&&null!=b.H){var c=U4(this).H.getCurrentTime();F(a,function(a){0!=c&&a.ie>c&&(a=new gq(1E3*Math.floor(c+Math.random()*Math.max(a.ie-10-c,0)),1E3*a.ie,{id:"livead",priority:2}),this.bb([a],1))},this)}};
f.ld=function(a){switch(a){case "addata":var b=this.A;return{adTag:b.adTag,adTest:b.Ja,forceAdType:b.Z,isAfvSkippableInstreamEnabled:b.K,isAfvStandardInstreamEnabled:b.L,isBlazer:b.ea,isDoubleClickEnabled:b.H,isForcedAd:b.da,isFreeWheelEnabled:b.M,isHouseBrandPlayer:b.Eb,isLeanback:b.C,isShortform:b.jb,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.B instanceof s4?this.B:null,null!=b?b.U:0;case "breakscount":return this.B?this.B.B.length:
0;case "displaystate":return b=null,this.B&&this.B.A&&(b=this.B.A.o),{adFormat:b instanceof v2?b.adType:!1,adSkipped:b instanceof K2?b.F:!1,hasVideoStarted:b instanceof K2?b.H:!1,skippable:b instanceof K2?b.O:!1};case "getContentVideoData":return b=$1(this),{adModule:b.adModule,partnerTrackingToken:b.Z,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.B){a=this.B.C;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].A});return c}return 0}};
f.df=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};e5.prototype.o=function(){return this.B};
var qha=[2,5];var W$=!1,X$=!1;Di("showCompanionAdLoaded",function(){if(X$){var a=r("window.google_show_companion_ad"),b;b=r("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():X$=!0;X$=!1}});
Di("watchAdsInit",function(){if(W$){W$=!1;var a=r("yt.www.watch.ads.loadAfc");ha(a)?a():W$=!0}});new e5(1);A(f5,R);f5.prototype.L=function(a,b){ti(this.A);this.context&&(this.A=Aq(y(this.L,this,a,b),b),a.call(this,new Date-this.K))};
f5.prototype.T=function(){ti(this.A);this.context=null;f5.N.T.call(this)};A(h5,G);f=h5.prototype;f.T=function(){k5(this,new Qy);j5(this);t5(this);this.A.o.removeEventListener("onVolumeChange",this.pq,this);this.A.o.removeEventListener("onCaptionsTrackListChanged",this.oq,this);var a=this.o;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.o.Ha("proxyStateChange",this.Cq,this),this.o.Ha("remotePlayerChange",this.Yl,this),this.o.Ha("remoteQueueChange",this.Zl,this));s5(this,this.B);this.F&&this.A.o.gn(this.F);this.o=this.A=null};
f.oG=function(a,b){2==this.o.A||(m5(this)?this.Gx.apply(this,arguments):this.C&&this.Ex.apply(this,arguments))};
f.Ex=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":r5(this,this.A.o.getCurrentTime());break;case "control_seek":r5(this,c[0])}};
f.Gx=function(a,b){if(1081==oo(this.o).o)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":oo(this.o).ib()?o5(this):q5(this);break;case "control_play":q5(this);break;case "control_pause":o5(this);break;case "control_seek":this.M=c[0];this.J.Df();break;case "control_subtitles_set_track":g5(this,c[0]);break;case "control_set_audio_track":c=c[0],m5(this)&&
(this.o.Sr(n5(this),c),this.F=c)}};
f.pq=function(a){if(m5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=oo(this.o);b==c.volume&&a==c.muted||this.o.setVolume(b,a)}};
f.oq=function(){ac(this.B)||s5(this,this.B);this.D=!1};
f.Cq=function(a,b){t5(this);2==b&&this.Br()};
f.Yl=function(){if(m5(this)){j5(this);var a=oo(this.o);switch(a.o){case 1:p5(this);k5(this,new Qy(8));break;case 3:k5(this,new Qy(1));break;case 0:k5(this,new Qy(2));this.J.stop();var b=this.A.o;(b=kq(b.app,b.playerType||1))&&b.$f(!0);i5(this,this.A.o.getVideoData().lengthSeconds);break;case 2:k5(this,new Qy(4));i5(this,ho(a));break;case -1:k5(this,new Qy);break;case -1E3:k5(this,new Qy(128,{}))}0==this.K&&(b=this.A.o,(b=kq(b.app,b.playerType||1))&&b.$f(!1));this.K=a.o;a=oo(this.o).B;b=this.B;(a||
b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.B=a,s5(this,a));a=oo(this.o);-1==a.volume||Math.round(this.A.o.Ab())==a.volume&&this.A.o.Cc()==a.muted||(this.A.o.setVolume(a.volume),a.muted?this.A.o.mute():this.A.o.unMute())}else l5(this)};
f.Zl=function(){m5(this)||l5(this)};
f.JD=function(){var a=this.M;j5(this);i5(this,a);-1==oo(this.o).o?r5(this,a):this.o.Rr(a);k5(this,new Qy(1))};
f.Br=function(){t5(this);j5(this);var a=this.o.C.getReconnectTimeout();2!=this.o.A||(0,window.isNaN)(a)?this.C=!1:this.H=ri(y(this.Br,this),1E3)};A(u5,L1);var xia=["play_pause","seek","set_audio_track"],yia=["captions"];f=u5.prototype;f.Xa=function(){return this.app.Qa.V().Eg};
f.create=function(){u5.N.create.call(this);this.G.push(Di("yt-remote-before-disconnect",this.aA,this));this.G.push(Di("yt-remote-connection-change",this.Dq,this));this.Dq();var a=this.o.app.M;this.D&&this.D!=this.C&&1!=a&&3!=a&&this.load()};
f.destroy=function(){Ei(this.G);this.G.length=0;Mb(this.A);this.A=null;u5.N.destroy.call(this)};
f.load=function(){if(!this.loaded){u5.N.load.call(this);this.A&&(this.B=new h5(this,0,this.A));this.o.pauseVideo();this.S("command_redirect_controls",this,xia,yia);var a=Dp();if(0!=a){var b=this.A?fo(oo(this.A)):null;b&&b!=this.o.getVideoData().videoId||ri(y(function(){this.K=a||0;this.o.S("progresssync",a,void 0)},this),0)}}};
f.unload=function(){this.loaded&&(this.D=this.C,rq(this),Mb(this.B),this.B=null,u5.N.unload.call(this))};
f.T=function(){this.destroy();Nb(this.B,this.A);this.A=this.B=null;u5.N.T.call(this)};
f.de=function(a,b){this.B&&this.B.oG.apply(this.B,arguments)};
f.getCurrentTime=function(){return this.K};
f.aA=function(a){1==a&&(this.L=this.A?oo(this.A):null);this.J=a};
f.Dq=function(){var a=Cp();a?(this.A=a,this.J=this.L=null,this.load(),this.B||(this.B=new h5(this,0,this.A))):(Mb(this.A),this.A=null,this.loaded&&1==this.J&&(this.unload(),(a=this.L)&&fo(a)==this.o.getVideoData().videoId?this.o.$m(fo(a),ho(a)):this.o.$m(this.o.getVideoData().videoId)))};
f.ld=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.O;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)ql();else if(this.D=b||this.C,b.key==this.C.key)vp();else{var c=0,d="",e=this.o.Zb();e&&(c=e.Kb(),d=this.o.getVideoData().playlistId);if(e=this.o.Zb()){for(var h=[],k=0;k<e.B;k++)h[k]=e.sb(k).videoId;e=h}else e=[this.o.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.o.getVideoData().videoId,index:c,currentTime:this.o.getCurrentTime()};
zp(b,c);Mb(this.B);this.B=null;this.load()}return this.D;case "castSelector":return c=mp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&ql(),c}};
f.df=function(){return["casting","receivers","currentReceiver","castSelector"]};A(w5,Cq);w5.F="(max-width: 656px)";w5.D="(min-width: 657px)";w5.C="(min-width: 1294px) and (min-height: 630px)";w5.A="(min-width: 1720px) and (min-height: 980px)";w5.B="(min-width: 1320px) and (min-height: 870px)";w5.o="(min-width: 967px)";f=w5.prototype;f.initialize=function(a){this.M=w(a)?window.document.getElementById(a):a;this.o(this.M)};
f.iy=function(){this.J=new ve(0,0,0,0);this.G=new ve(0,0,0,0)};
f.vn=function(a){Yd(this.element,arguments)};
f.ve=function(){if(this.A){var a=this.La();if(!a.isEmpty()){var b=!ue(a,ye(this.G)),c=x5(this);b&&(this.G.width=a.width,this.G.height=a.height);a=this.app.V();(c||b||ny(a))&&this.S("resize")}}};
f.tG=function(a,b){z5(this,b)};
f.uG=function(a){a.getVideoData()&&z5(this,a.getVideoData())};
f.La=function(){var a=this.app.V(),b=Bh()==this.element;if(b&&Op())return new te(window.outerWidth,window.outerHeight);if(b||a.ye){if(window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.H&&this.H.media==a||(this.H=window.matchMedia(a)),this.H&&this.H.matches||Np("aquos_dtv")))return new te(window.innerWidth,window.innerHeight)}else if(this.W){if(a.experiments.ga("player_scaling_360p_to_720p")&&this.ia.matches)return new te(this.element.clientWidth,
this.element.clientHeight);if(this.W.matches)return new te(426,240);a=this.app.wa;if((a?this.ea:this.da).matches)return new te(1280,720);if(a||this.fa.matches)return new te(854,480);if(this.ka.matches)return new te(640,360)}return new te(this.element.clientWidth,this.element.clientHeight)};
f.Hx=function(){this.A&&L2(this);this.ve()};
f.T=function(){this.F&&(this.F.disconnect(),this.F=null);this.K&&Ei(this.K);this.A=this.D=this.M=null;w5.N.T.call(this)};A(F5,sr);F5.prototype.K=function(a){this.D&&this.D(a)?this.B=!0:this.A.isActive()?(this.A.stop(),this.C(a),this.B=this.o=!1):(this.F=a,this.A.start(),this.o=!0)};
F5.prototype.H=function(a){this.B?this.B=!1:this.o&&this.C(a)};
F5.prototype.G=function(){this.J(this.F);this.o=!0};ba(H5);var V4=r("yt.player.utils.VideoTagPool.instance_")||H5.getInstance();q("yt.player.utils.VideoTagPool.instance_",V4,void 0);f=H5.prototype;f.Co=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++){var c=I5(this);this.o.push(c)}}};
f.BG=function(a,b){return this.o.length?this.o.pop():I5(this,a,b)};
f.iD=function(a){a&&jb(this.A,a)&&(Py(a),Il(a),pb(this.A,a))};
f.Lt=function(a){return this.o.length>=(a||1)};
f.ew=function(){this.o=[];this.Lt(4)?F(this.A,function(a){a.src||a.load();this.o.push(a)},this):this.Co(4)};
H5.prototype.fillPool=H5.prototype.Co;H5.prototype.getTag=H5.prototype.BG;H5.prototype.releaseTag=H5.prototype.iD;H5.prototype.hasTags=H5.prototype.Lt;H5.prototype.activateTags=H5.prototype.ew;A(J5,Gj);f=J5.prototype;f.pG=function(a){a=Ml(a);if(!re(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.kb(b,!0)}};
f.Bz=function(){this.F&&this.kb(8,!0);this.kb(2,!1)};
f.Jt=function(a){var b=Ml(a);re(b,this.B)||(this.B=b,(a=Jl(a))&&this.M(a)&&(this.kb(4,!0),this.o.ya(this.G),this.G=T(this.o,this.C,"mouseout",this.qG)))};
f.qG=function(a){a=Ll(a);a&&this.M(a)||(this.B=new pe(window.NaN,window.NaN),this.kb(4,!1),this.o.ya(this.G),this.G=T(this.o,this.C,"mouseover",this.Jt))};
f.jz=function(){this.kb(1,!0)};
f.Ww=function(a){a=Jl(a);a instanceof window.Element&&!(0<a.tabIndex)||this.kb(1,!0)};
f.It=function(){this.F=!0;this.o.ya(this.D);this.D=T(this.o,window.document,"mouseup",this.rG)};
f.rG=function(){this.F=!1;this.kb(8,!1);this.o.ya(this.D);this.D=T(this.o,this.C,"mousedown",this.It)};
f.Kt=function(a){if(a=a.changedTouches[0])this.P=a.identifier,this.o.ya(this.H),this.H=T(this.o,this.C,"touchend",this.sG),this.kb(1024,!0)};
f.sG=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.P){b=d;break}}b&&(this.o.ya(this.H),this.H=T(this.o,this.C,"touchstart",this.Kt),this.kb(1024,!1))};
f.kb=function(a,b){this.isDisposed();var c=!this.A;b?(this.A|=a,a&1&&this.J.start(),a&2&&this.K.start(),a&512&&this.L.start()):(this.A&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.L.stop());var d=!this.A;c!=d&&this.S("autohideupdate",d)};A(K5,R);A(M5,f5);M5.prototype.show=function(){M5.N.show.call(this);var a=this.P;this.K=new Date;this.L(a,75)};
M5.prototype.P=function(){var a=1-1/1.5;this.D=(this.D+this.J)%(this.width*a);this.F=(this.F+this.H)%(this.height*a);this.context.drawImage(this.M,-1*this.D,-1*this.F);this.context.fillRect(0,this.G,this.width,75);this.G=(this.G+75+7)%this.height-75};
M5.prototype.ha=function(){ti(this.A);M5.N.ha.call(this)};A(P5,R);P5.prototype.show=function(){P5.N.show.call(this);this.A&&this.A.show()};
P5.prototype.ha=function(){P5.N.ha.call(this);this.A&&this.A.ha()};
P5.prototype.G=function(a){var b=ky(this.D.V());jy(a,this.D,!b)&&(a={as3:!1,html5:!0,player:!0,cpn:this.D.getVideoData().clientPlaybackNonce},b=this.D,b.Ba("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a}),b.Oa()&&ly(b))};
P5.prototype.T=function(){P5.N.T.call(this)};A(R5,R);A(T5,R);T5.prototype.show=function(){T5.N.show.call(this);this.H()};
T5.prototype.ha=function(){T5.N.ha.call(this);this.G.stop()};
T5.prototype.H=function(){var a=kq(this.A),b=this.A.getVideoData(),c=this.A.G.A,d=this.A.V(),e=XH(d),h;h=this.A;h=h.Ja?h.Ja.K.Na():[0];var k=8*cb(h)/1024,l=b.Ga&&this.A.V().experiments.showEndToEndLatency,m;m=this.A;m=(m=m.A&&m.A.W)?m.D.Na():[0];var n=cb(m),n=120<n?"Uncertain":n.toFixed(0)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"),t=a.H?a.H.o:null,u=t&&t.o,x=window.devicePixelRatio||1,B=b.videoId,D=b.clientPlaybackNonce,I=b.clientPlaybackNonce?
"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.D?oK(a.D):"",z;a:{if(b.jg&&(z=b.jg.match(/url=(https?)/))&&2==z.length){z=z[1];break a}z=""}c={video_id:B,cpn:D,cpn_style:I,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:z||d.U,dimensions:c.clientWidth+" x "+c.clientHeight+(1<x?" * "+x:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.A.Qa.Ab())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:l?"":"display:none",
live_latency_message:n,drm_style:u?"":"display:none",drm:u?t.o+" / "+t.B:""};b.B&&(d=Fr(b.B)?"yes":"no",d+=" ("+b.B.id,b.F&&Fr(b.B)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.B.mimeType,b=b.B.video.fps,1<b&&(c.resolution+="@"+b));b=this.D;h=S5(b,h);Jf(b.A.element,h);h=this.F;m=S5(h,m);Jf(h.A.element,m);this.update(c);this.G.start()};U5.prototype.isDisposed=function(){return!this.B};
U5.prototype.dispose=function(){V5(this);delete this.B};A(W5,Cq);W5.prototype.F=function(){var a=this.D.bf();this.H.style.width=100*s2(new p2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
W5.prototype.G=function(){2==this.D.getPresentingPlayerType()?this.A||(this.show(),this.A=S(this,this.D,"progresssync",this.F),this.F()):this.A&&(this.ha(),this.ya(this.A),this.A=null)};A(X5,R);A($5,R);$5.prototype.T=function(){this.D&&this.D();$5.N.T.call(this)};
$5.prototype.G=function(){Fi("iv-button-mouseover")};
$5.prototype.F=function(a){var b=Xd(this.ca.Da(),"ytp-cards-teaser-shown");Fi("iv-teaser-clicked",b);this.J(0==a.screenX&&0==a.screenY)};A(b6,Cq);f=b6.prototype;f.show=function(){b6.N.show.call(this);this.ua&&(this.ea=S(this,window,"blur",this.tb),this.fa=S(this,window.document,"click",this.hH))};
f.ha=function(){b6.N.ha.call(this);c6(this);this.ea&&(this.ya(this.ea),this.ya(this.fa))};
f.we=function(a){this.K=a;this.ia.show();a&&window.document.activeElement&&kh(a,window.document.activeElement)&&this.focus()};
f.tb=function(){c6(this);this.ia.ha();this.ya(this.ea);this.ya(this.fa)};
f.hH=function(a){var b=Kl(a);b&&(kh(this.element,b)||this.K&&kh(this.K,b)||!Yx(a))||this.tb()};A(f6,b6);f=f6.prototype;f.show=function(){f6.N.show.call(this);this.ph();this.S("show",!0)};
f.ha=function(){f6.N.ha.call(this);1>=this.D.length||(this.F.Ha("back",this.fe,this),xq(this.D[this.D.length-1]),e6(this,this.D[0]),this.D=[this.F],this.F.o(this.element),Iq(this.F.element,"transform","translateX(0)"),Iq(this.F.element,"opacity","1"),this.ph());this.S("show",!1)};
f.ph=function(){this.B&&(g6(this),Zq(this.element,this.size))};
f.fe=function(){var a=this.D.pop();h6(this,a,this.D[this.D.length-1],!0)};
f.DD=function(a,b,c){this.J.dispose();this.J=null;j6(this,!0,[a,b]);Iq(a.element,"transform","translateX("+c+"px)");Iq(a.element,"opacity","0");Iq(b.element,"transform","translateX(0)");Iq(b.element,"opacity","1");Zq(this.element,this.size);this.G=new Ud(pa(this.Oz,a,b),250,this);this.G.start()};
f.Oz=function(a,b){j6(this,!1,[a,b]);xq(a);this.G.dispose();this.G=null};
f.dH=function(a){if(!Ol(a))switch(Pl(a)){case 27:this.tb();Nl(a);break;case 37:1<this.D.length&&this.fe();Nl(a);break;case 39:Nl(a)}};
f.focus=function(){this.F.focus()};
f.T=function(){f6.N.T.call(this);this.J&&this.J.dispose();this.G&&this.G.dispose()};A(k6,Cq);f=k6.prototype;f.remove=function(a){pb(this.A,a);a.Ha("size-change",this.Xl,this);a=sb(this.A);this.Hb(a);this.S("size-change")};
f.removeAll=function(){for(var a=0;a<this.A.length;a++)this.A[a].Ha("size-change",this.Xl,this);this.A=[];this.Hb([]);this.S("size-change")};
f.Dw=function(a,b){return b.priority-a.priority};
f.Xl=function(){this.S("size-change")};
f.focus=function(){for(var a=0,b=0;b<this.A.length;b++)if("true"==this.A[b].element.getAttribute("aria-checked")){a=b;break}this.A[a].focus()};A(n6,Cq);n6.prototype.C=function(a,b){n6.N.C.call(this,a,b);this.S("size-change")};A(p6,Cq);p6.prototype.G=function(){this.S("size-change")};
p6.prototype.focus=function(){this.H.focus()};
p6.prototype.L=function(){this.S("back")};A(q6,n6);q6.prototype.A=function(a){Ol(a)||39!=Pl(a)||(this.element.click(),Nl(a))};A(s6,n6);s6.prototype.L=function(){t6(this,!this.A);this.S("select",this.A)};
s6.prototype.getValue=function(){return this.A};A(w6,f6);f=w6.prototype;f.ha=function(){ur(this.da);w6.N.ha.call(this)};
f.Ez=function(a){Yx(a)&&this.A.pauseVideo();this.tb()};
f.zA=function(a){if("gvn"!=this.A.V().o){var b=Kl(a);if(!this.B&&(!b||"A"!=b.tagName&&!th(b,"ytp-no-contextmenu"))){Nl(a);this.element.style.left="";this.element.style.top="";var c=Ml(a);c.x++;c.y++;this.we();b=Tq(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,h=5;65==(h&65)&&(d.x<b.left||d.x>=b.right)&&(h&=-2);132==(h&132)&&(d.y<b.top||d.y>=b.bottom)&&(h&=-5);d.x<b.left&&h&1&&(d.x=b.left);if(h&16){var k=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-
d.x,k+e.width-b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&h&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&h&4&&(d.y=b.top);h&32&&(k=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,k+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&h&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new ve(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Oq(this.element,ze(b));T(this.da,window.document,"contextmenu",this.GA)}}};
f.AA=function(){Bq(this.L.element)};
f.GA=function(a){Ol(a)||kh(this.element,Kl(a))||this.tb()};
f.JG=function(a){this.tb();this.o(a?this.A.Da():window.document.body)};
f.KG=function(){x6(this,this.A.an(!0))};
f.LG=function(){x6(this,this.A.cs())};
f.MG=function(){x6(this,this.A.getVideoUrl(!0,!0))};
f.UA=function(){x6(this,this.A.getVideoUrl(!1,!0))};
f.gB=function(a){t6(this.Z,a)};
f.hB=function(){var a=this.Z.getValue();r9(this.A.app,a);this.tb()};
f.NG=function(){this.tb()};
f.OG=function(a){var b=this.A,c=kq(b.app);c&&c.Fj(new Rv("feedback",!1,{gpu:x9(b.app)}));b=ky(this.A.V());jy(a,this.A,!b)&&(a=this.A,a.Ba("onFeedbackStartRequest",{as3:!1,html5:!0,player:!0}),a.Oa()&&ly(a));this.tb()};
f.PG=function(){this.A.ls();this.tb()};
f.QG=function(a,b){v6(this,b)};A(y6,or);f=y6.prototype;f.show=function(){this.B||(T(this.F,this.api,"videodatachange",this.D.fg,this.D),T(this.F,this.api,"videoplayerreset",this.D.fg,this.D));y6.N.show.call(this)};
f.ha=function(){ur(this.F);y6.N.ha.call(this)};
f.SG=function(a){var b=this.api.V();b.experiments.ga("disable_new_pause_state3")&&ky(b)&&(a=$y(a.state)&&!$y(a.o)||XL(this.api)&&U(a.state,2),Iq(this.element,"transition-delay",a?"2s":""));this.D.fg()};
f.RG=function(){this.element.style.backgroundImage=""};
f.Qt=function(){3==this.api.getPresentingPlayerType()?this.A.show():z6(this.A,this.api,Pz(this.api));this.B&&3!=this.A.o&&this.QD(this.api.Zb(),this.api.getVideoData())};
f.QD=function(a){for(var b=this.api.V(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof bx&&!e.videoId)){if(!b.isMobile){c=gF(this.api).La();var h=c.width,k=c.height;if(900<h||600<k)if(c=e.gc(b,"maxresdefault.jpg"))break;if(430<h||320<k)if(c=e.gc(b,"sddefault.jpg")||e.gc(b,"hqdefault.jpg")||e.gc(b,"mqdefault.jpg"))break}if(c=e.gc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};A(A6,sr);
A6.prototype.D=function(a){var b=!1,c=Pl(a),d=Kl(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,h=!1,k=!1,l=this.o.V();Ol(a)?(e=!1,k=!0):l.gb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),h=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),h=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),h=b=!0))}if(this.B.B&&e&&!h)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:W6(this.B,c),h=!0}l.Eb||!e||h||(h=String.fromCharCode(c).toLowerCase(),this.A+=h,0=="awesome".indexOf(this.A)?(h=!0,7==this.A.length&&(m=this.o.Da(),d=!Xd(m,"ytp-color-party"),
M(m,"ytp-color-party",d))):(this.A=h,h=0=="awesome".indexOf(this.A)));if(e&&!h){switch(c){case 32:Z5(this.H);Sy(Pz(this.o))?this.o.pauseVideo():this.o.kd();k=h=!0;break;case 37:this.o.Qc(-5);k=h=!0;break;case 39:this.o.Qc(5);k=h=!0;break;case 38:this.o.setVolume(Math.min(this.o.Ab()+5,100));k=h=!0;break;case 40:this.o.setVolume(Math.max(this.o.Ab()-5,0));k=h=!0;break;case 27:this.J()&&(k=h=!0);break;case 36:this.o.Sb(0);k=h=!0;break;case 35:this.o.Sb(window.Infinity);k=h=!0;break;case 67:TL(this.o.app.D,
"captions")&&(ZL(this.o),k=h=!0);break;case 66:F6(this,"background")&&(h=!0);break;case 79:F6(this,"textOpacity")&&(h=!0);break;case 87:F6(this,"windowOpacity")&&(h=!0);break;case 187:F6(this,"fontSizeIncrement",!1,!0)&&(h=!0);break;case 189:F6(this,"fontSizeIncrement",!0,!0)&&(h=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);(0,window.isNaN)(n)||(k=this.o.bf(),this.o.Sb(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=h=!0)}}b&&this.C(!0);(b||k)&&this.G.kb(2,!0);(h||e&&C6(this,c,a.shiftKey))&&
Nl(a);l.Va&&(a={keyCode:Pl(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:Ol(a),fullscreen:this.o.Oa()},this.o.Ba("onKeyPress",a))};
A6.prototype.F=function(a){a=Pl(a);this.B.B&&X6(this.B,a);9==a&&this.C(!0)};
A6.prototype.C=function(a){M(this.o.Da(),"ytp-keyboard-focus",a);M(this.K.element,"ytp-keyboard-focus",a)};A(H6,R);H6.prototype.G=function(a){var b=this.A.V();b.experiments.ga("disable_new_pause_state3")&&ky(b)&&Iq(this.element,"transition-delay",$y(a.state)&&!$y(a.o)?"2s":"");G6(this,a.state)};A(I6,R);I6.prototype.F=function(a){jy(a,this.A)&&this.A.fn(this.D)};A(J6,b6);f=J6.prototype;f.show=function(){J6.N.show.call(this);this.D.addEventListener("videodatachange",this.Fh,this);this.D.addEventListener("onPlaylistUpdate",this.Fh,this);this.Fh()};
f.ha=function(){J6.N.ha.call(this);this.D.removeEventListener("videodatachange",this.Fh,this);this.D.removeEventListener("onPlaylistUpdate",this.Fh,this);K6(this,null)};
f.Fh=function(){K6(this,this.D.Zb());var a=this.A.author;this.update({title:this.A.title,subtitle:P(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.A.Kb()+1,PLAYLIST_LENGTH:this.A.B}),playlisturl:this.D.getVideoUrl(!0)});this.yn()};
f.yn=function(){var a=this.A.J;if(a==this.H)this.G.element.setAttribute("aria-checked",!1),this.G=this.F[this.A.Kb()];else{for(var b=0;b<this.F.length;b++)this.F[b].dispose();var c=this.A.B;this.F=[];for(b=0;b<c;b++){var d=new I6(this.D,this.A,b);this.F.push(d);d.o(this.L)}this.G=this.F[this.A.Kb()];this.H=a}this.G.element.setAttribute("aria-checked",!0)};
f.gH=function(){this.J()};
f.qC=function(a){var b=this.D.getVideoUrl(!0);my(b,this.D,a)};
f.focus=function(){this.G.focus()};
f.T=function(){this.ha();J6.N.T.call(this)};A(L6,R);L6.prototype.D=function(){this.A&&2!=this.F.getPresentingPlayerType()&&400<=gF(this.F).La().width?(this.update({text:P("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.A.Kb()+1,PLAYLIST_LENGTH:this.A.B}),title:P("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.A.title})}),this.B||(this.show(),t7(this.G))):this.B&&(this.ha(),t7(this.G))};
L6.prototype.H=function(){this.A&&this.A.Ha("shuffle",this.D,this);(this.A=this.F.Zb())&&this.A.subscribe("shuffle",this.D,this);this.D()};A(M6,R);M6.prototype.G=function(a){jy(a,this.D)&&(a=this.A.sb().videoId,L9(this.D.app,a,this.A.fa,this.A.af()),this.F())};A(N6,b6);f=N6.prototype;f.show=function(){N6.N.show.call(this);this.A.addEventListener("videodatachange",this.zn,this);this.A.addEventListener("presentingplayerstatechange",this.Zt,this);this.zn()};
f.ha=function(){N6.N.ha.call(this);this.A.removeEventListener("videodatachange",this.zn,this);this.A.removeEventListener("presentingplayerstatechange",this.Zt,this);this.G=null;this.B&&this.F()};
f.zn=function(){var a=fi(this.A.getVideoData().H,Zx);this.G=a;!a&&this.B&&this.F();for(a=0;a<this.D.length;a++)this.D[a].dispose();this.D=[];for(a=0;a<this.G.length;a++){var b=new M6(this.A,this.G[a],this.F);this.D.push(b);b.o(this.H)}};
f.Zt=function(a){d6(this)&&U(a.state,2)&&this.F()};
f.rH=function(){this.F()};
f.focus=function(){var a=this.D[0];L(this.element,"ytp-scroll-fix");a.focus();$d(this.element,"ytp-scroll-fix")};
f.T=function(){this.ha();N6.N.T.call(this)};A(O6,R);O6.prototype.D=function(){var a=this.A.V().experiments.ga("related_menu")&&2!=this.A.getPresentingPlayerType()&&this.A.getVideoData().H&&!U(Pz(this.A),2)&&300<=gF(this.A).La().width;M(this.F,"ytp-related-menu-button-visible",a)};
O6.prototype.T=function(){O6.N.T.call(this);$d(this.F,"ytp-related-menu-button-visible")};A(P6,b6);f=P6.prototype;f.BB=function(a){a=Kl(a);kh(this.M,a)||kh(this.G,a)||this.J()};
f.tb=function(){P6.N.tb.call(this);this.F.sf(this.element)};
f.show=function(){P6.N.show.call(this);this.$t()};
f.$t=function(){L(this.element,"ytp-share-panel-loading");$d(this.element,"ytp-share-panel-fail");var a=this.D.getVideoData(),b=this.D.oe(),c=b&&this.L.checked;M(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.D.V();e.Bb&&(d.authuser=e.Bb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var h=this.D.V();pj(h.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.uH,qb:function(a,b){b&&b.actions&&G5(b.actions);
this.gC.call(this,0,b)},
Pc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.C("link",a);this.C("linkText",a);Bq(this.H)};
f.gC=function(a,b){if(!this.isDisposed()){$d(this.element,"ytp-share-panel-loading");Q6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var h=c[e],k=wha(h.img);if(k){var l=new R(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:h.url,target:"_blank",title:h.sname}]);Jf(l.qa["ytp-share-panel-service-button-icon"],k);l.R("click",pa(this.bC,h.url));Lb(l,a6(this.F,l.element));this.A.push(l);d++}}c=new R(["a",["ytp-share-panel-service-button",
"ytp-button"],["span",["ytp-share-panel-service-button-icon","ytp-share-panel-service-button-more"]],{href:b.more,target:"_blank",title:P("YTP_MORE")}]);Jf(c.qa["ytp-share-panel-service-button-icon"],Kf?'<div class="ytp-icon ytp-icon-share-more"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z" fill="#4e4e4f" fill-rule="evenodd" /></svg>');
c.R("click",y(this.mB,this,b.more));Lb(c,a6(this.F,c.element));this.A.push(c);this.C("buttons",this.A)}};
f.uH=function(){$d(this.element,"ytp-share-panel-loading");L(this.element,"ytp-share-panel-fail")};
f.bC=function(a,b){if(Yx(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window,e;e=a instanceof kg?a:og("undefined"!=typeof a.href?a.href:String(a));var h=d.target||a.target,k=[],l;for(l in d)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+d[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(d[l]?1:0))}l=k.join(",");(rc()||oc("iPad")||oc("iPod"))&&c.navigator&&c.navigator.standalone&&h&&
"_self"!=h?(l=c.document.createElement("A"),Fg(l,e),l.setAttribute("target",h),d.noreferrer&&l.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",h,l),e=lg(e),c&&(LF&&Ga(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=aj(fg("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Fa(e)+'">'),c.document.write(vg(e)),c.document.close())):c=c.open(lg(e),
h,l);c&&(c.opener||(c.opener=window),c.focus());Nl(b)}};
f.mB=function(a,b){if(my(a,this.D,b)){var c=this.D.app,d=c.getVideoData();c.o.Ba("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.X.Aa})}};
f.tH=function(a){!a&&d6(this)&&this.J()};
f.focus=function(){this.H.focus()};
f.T=function(){P6.N.T.call(this);Q6(this)};A(R6,R);R6.prototype.D=function(){var a=this.A.V().xe&&2!=this.A.getPresentingPlayerType();M(this.F,"ytp-share-button-visible",!!this.A.getVideoData().videoId&&300<=gF(this.A).La().width&&!a)};
R6.prototype.T=function(){R6.N.T.call(this);$d(this.F,"ytp-share-button-visible")};A(S6,R);f=S6.prototype;
f.An=function(){var a=cM(this.D).shader;"Spherical"==a||"Spherical3D"==a?this.B||(a=gF(this.D).D,L(this.D.Da(),"ytp-webgl-spherical"),this.show(),this.H=new m2(a,!0,null,!0),this.H.subscribe("dragstart",this.IA,this),this.H.subscribe("dragmove",this.jq,this),this.H.subscribe("dragend",this.HA,this),this.G=new m2(this.element,!0),this.G.subscribe("dragstart",this.AB,this),this.G.subscribe("dragend",this.zB,this),this.da=this.R("keydown",this.xH),this.ea=this.R("keyup",this.ZA),S(this,a,"click",this.wH,
this)):this.B&&(U6(this),$d(this.D.Da(),"ytp-webgl-spherical"),this.ha(),this.H.dispose(),this.H=null,this.G.dispose(),this.G=null,this.ya(this.da),this.ya(this.ea))};
f.AB=function(a,b,c){U6(this);var d=Sq(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?T6(this,0<a?-1:1,0,0):T6(this,0,0<b?-1:1,0)};
f.zB=function(){U6(this);this.F=2;this.J.start()};
f.IA=function(a,b){U6(this);this.O=!1;this.aa=new pe(a,b);L(this.D.Da(),"ytp-dragging")};
f.jq=function(a,b){var c=new pe(a,b),d;d=this.aa;d=new pe(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.O=!0);this.aa=c;var c=cM(this.D),e=c.fov,h=Math.PI*e*.8,k=gF(this.D).La();d.scale(1/k.width*h,1/k.height*h);V6(this,c.yaw+d.x,c.pitch+d.y,e,c,K())};
f.HA=function(a,b){this.jq(a,b);$d(this.D.Da(),"ytp-dragging");this.F=2;this.J.start()};
f.wH=function(a){this.O&&(a.stopPropagation(),this.O=!1)};
f.vH=function(a){var b=cM(this.D),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.F)var h=.003*e*(a-this.P),c=c+h*this.Z,d=d+h*this.W,e=e+h*this.U;else if(2==this.F){if(1E-5>Math.abs(this.M)&&1E-5>Math.abs(this.K)){this.F=this.K=this.M=0;return}h=a-this.P;h/=Math.pow(1.013,h);c+=h*this.M;d+=h*this.K}V6(this,c,d,e,b,a);this.J.start()};
f.xH=function(a){!Ol(a)&&W6(this,Pl(a))&&Nl(a)};
f.ZA=function(a){X6(this,Pl(a))};
f.T=function(){this.G&&(this.H.dispose(),this.H=null,this.G.dispose(),this.G=null);S6.N.T.call(this)};A(Z6,R);f=Z6.prototype;f.show=function(){Z6.N.show.call(this)};
f.ha=function(){this.A.stop();this.F.style.display="none";Z6.N.ha.call(this)};
f.yH=function(a){Y6(this,a.state)};
f.QA=function(){Y6(this,Pz(this.D))};
f.IB=function(){this.F.style.display="block"};A($6,R);$6.prototype.F=function(){var a=kq(this.A.app);a&&a.A.o.webkitShowPlaybackTargetPicker()};
$6.prototype.D=function(){var a=kq(this.A.app);this.ob(!!a&&a.Ra);(a=kq(this.A.app))&&a.Ma?Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-airplay-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z M13,15 L24.04,15.01 C24.04,15.01 24.04,15.07 24,15 C24.03,17.07 24,21 24,21 L20,21 L18,18.99 L16,21 L13,20.99 L13,15 Z" id="ytp-svg-1" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-1" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-1" /></svg>'):
Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-airplay-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z" id="ytp-svg-0" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-0" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-0" /></svg>')};A(a7,Cq);a7.B=84;a7.C=10;a7.D=72;a7.o=200;a7.A=.555;f=a7.prototype;f.Jw=function(){b7(this,this.D.getVideoData())};
f.Uw=function(){this.O.ha()};
f.Xj=function(){this.A=Math.floor(this.J/Math.min(10,Math.ceil(this.J/72)));this.Z=.555*this.A;var a=this.D.bf(),b=Fu(this.G,this.A),b=this.G.o[b].Wj(a.current);if(b!=this.W){var c=Math.round(2*this.A),d=Math.round(2*this.Z),e=Hu(this.K,b,c),c=u2(this.ka,e,c,d,!0);Oq(this.ia,(this.J-c.width)/2);this.element.style.height=Nq(c.height+84,!0);this.W=b}mh(this.ma,Xx(this.ea?a.current-a.seekableEnd:a.current));Xu(this.P);a=y(this.vj,this);this.P=Wu(a,void 0);this.aa.Df()};
f.VG=function(a,b){b7(this,b)};
f.vj=function(){dr(this.F,!1);Xu(this.P);var a=this.D.bf(),b=this.G.o[0].Gt(),c=this.G.o[0].un(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.A-this.J/2,d=Math.floor(a/this.A)+b,c=Math.min(d+Math.min(10,Math.ceil(this.J/this.A)),c),d=Math.max(d,b),e;if(this.L>=d&&this.H<=c){for(e=this.L;e>c;e--)bh(this.F.children[e-this.H]);for(e=d-1;e>=this.H;e--)bh(this.F.children[e-this.H]);for(e=this.H-1;e>=d;e--)this.F.insertBefore(c7(this,e),this.F.firstChild);e=this.L+1}else $g(this.F),e=d;for(;e<=
c;e++)this.F.appendChild(c7(this,e));for(e=d;e<=c;e++)Iq(this.F.children[e-d],"transform","translatex("+(-a+(e-b)*this.A)+"px)");this.H=d;this.L=c;dr(this.F,!0)};
f.UG=function(){for(var a=this.H;a<=this.L;a++)Ju(this.K,a,2*this.A)};
f.TG=function(){var a=gF(this.D).La();this.J!=a.width&&(this.J=a.width,this.G&&(this.Xj(),this.vj()))};
f.WG=function(a){this.element.style.bottom=a+"px"};
f.show=function(){a7.N.show.call(this);H8(this.fa,!1)};
f.ha=function(){this.G&&b7(this,null);a7.N.ha.call(this);H8(this.fa,!0)};
f.T=function(){b7(this,null);a7.N.T.call(this)};A(d7,R);f=d7.prototype;f.YG=function(){f7(this,this.A.getVideoData())};
f.ZG=function(){this.B||this.G.ha()};
f.aH=function(a){U(a.state,32)||U(a.state,16)||U(a.state,1)||this.G.ha()};
f.bH=function(a,b){f7(this,b)};
f.$G=function(){var a=Pz(this.A);(U(a,32)||U(a,16))&&e7(this)};
f.XG=function(){this.H=window.NaN;e7(this)};
f.ha=function(){this.F&&f7(this,null);d7.N.ha.call(this)};A(h7,R);f=h7.prototype;f.cH=function(){this.D.V().Ja?(fM(this.D,this.D.Oa()?"fullscreen_exit":"fullscreen_enter"),ly(this.D)):this.A&&d6(this.A)?this.A.tb():(T8(this.G,!0),this.A.we(this.element))};
f.SA=function(){g7(this);T8(this.G,!0);this.A.we(this.element)};
f.Rt=function(){this.ob(iy(this.D))};
f.wr=function(a){a?(Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-full-screen-close"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M13,10 L10,10 L10,13 L7,13 L7,16 L13,16 L13,10 Z" id="ytp-svg-15" /><path d="M29,16 L29,13 L26,13 L26,10 L23,10 L23,16 L29,16 Z" id="ytp-svg-16" /><path d="M29,23 L29,20 L23,20 L23,26 L26,26 L26,23 L29,23 Z" id="ytp-svg-17" /><path d="M10,26 L13,26 L13,20 L7,20 L7,23 L10,23 L10,26 Z" id="ytp-svg-18" /></defs><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-0" fill="#fff" xlink:href="#ytp-svg-15" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-1" fill="#fff" xlink:href="#ytp-svg-16" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-2" fill="#fff" xlink:href="#ytp-svg-17" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-3" fill="#fff" xlink:href="#ytp-svg-18" /></svg>'),
a=P("YTP_EXIT_FULLSCREEN")):(Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-full-screen"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M7,16 L10,16 L10,13 L13,13 L13,10 L7,10 L7,16 Z" id="ytp-svg-11" /><path d="M23,10 L23,13 L26,13 L26,16 L29,16 L29,10 L23,10 Z" id="ytp-svg-12" /><path d="M23,23 L23,26 L29,26 L29,20 L26,20 L26,23 L23,23 Z" id="ytp-svg-13" /><path d="M10,20 L7,20 L7,26 L13,26 L13,23 L10,23 L10,20 Z" id="ytp-svg-14" /></defs><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-11" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-0" fill="#fff" xlink:href="#ytp-svg-11" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-1" fill="#fff" xlink:href="#ytp-svg-12" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-2" fill="#fff" xlink:href="#ytp-svg-13" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-3" fill="#fff" xlink:href="#ytp-svg-14" /></svg>'),
a=P("YTP_FULLSCREEN"));this.C("title",this.A?null:a);t7(this.G.A)};
f.T=function(){this.A?T8(this.G,!1):(this.F(),this.F=null);h7.N.T.call(this)};A(i7,R);i7.prototype.D=function(){var a=this.A.getVideoData(),b=a.O,c=Pz(this.A);this.ob((Sy(c)||U(c,4))&&0<b.length);if(this.B){for(var c=null,d=0;d<b.length;d++)if(b[d].id==a.videoId){c=b[d].title;break}this.update({text:c,preview:a.gc(this.A.V(),"default.jpg")});t7(this.F)}};A(j7,b6);f=j7.prototype;f.show=function(){var a=this.B;j7.N.show.call(this);a||(T(this.F,this.A,"presentingplayerstatechange",this.xn),T(this.F,this.A,"videodatachange",this.xn),this.xn())};
f.ha=function(){ur(this.F);j7.N.ha.call(this)};
f.xn=function(){for(var a=this.A.getVideoData(),b=a.O,c=0;c<b.length;c++){var d=this.D[c];d||(d=new R(["button",["ytp-multicam-menu-item","ytp-button"],{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},["div","ytp-multicam-menu-item-title","{{cameraName}}"]]),d.R("click",pa(this.lA,c),this),d.o(this.G),this.D[c]=d);var e=b[c],h=e.id;if(h!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&h&&(k=WH(this.A.V(),h,"default.jpg"));d.element.style.backgroundImage=k?"url("+k+")":""}d.update({cameraName:e.title,
videoId:h,selected:h==a.videoId?!0:null})}for(;c<this.D.length;)this.D.pop().dispose();a=Pz(this.A);Sy(a)||U(a,4)||b.length||!d6(this)||this.H()};
f.lA=function(a){var b=this.A,c=this.A.getVideoData().O[a];a=kq(b.app,1).getVideoData();if(b.V().experiments.ga("legacy_multicam_switch"))b.Nj({videoId:c.id,title:a.title,start:a.Ga?null:b.getCurrentTime(),multifeed_metadata_list:a.C.multifeed_metadata_list});else{var d=b.getCurrentTime();if(c.id==a.videoId)c=kq(b.app,1),kq(b.app)!=c&&(Y4(b.app,c),a.Ga||b.Sb(d));else{var e=kq(b.app,4);e||(e=new YK(b.V(),4,b.app.K,gF(b),y(b.app.L.S,b.app.L)));kq(b.app)!=e&&Y4(b.app,e);F9(b.app,{videoId:c.id,title:a.title,
start:a.Ga?null:d,multifeed_metadata_list:a.C.multifeed_metadata_list},4)}}};
f.focus=function(){for(var a=this.A.getVideoData(),b=a.O,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.D[c].focus();break}};
f.T=function(){Nb(this.D);j7.N.T.call(this)};k7.prototype.clone=function(){return new k7(this.B,this.G,this.o,this.D,this.A,this.F,this.C,this.H)};
k7.prototype.equals=function(a){return this.B==a.B&&this.G==a.G&&this.o==a.o&&this.D==a.D&&this.A==a.A&&this.F==a.F&&this.C==a.C&&this.H==a.H};A(l7,G);var Y$=new k7(0,0,.4,0,.2,1,1,1);l7.prototype.A=function(){var a=At()-this.D,a=a<this.o?a/this.o:1,b;if(0==a)b=Y$.B;else if(1==a)b=Y$.C;else{b=le(Y$.B,Y$.o,a);var c=le(Y$.o,Y$.A,a),d=le(Y$.A,Y$.C,a);b=le(b,c,a);c=le(c,d,a);b=le(b,c,a)}this.B(b);1>a&&this.C.start()};
var xha=/[0-9.-]+|[^0-9.-]+/g;A(r7,R);
var yha=["M",19.87,",",17.99," C",19.87,",",17.53," ",19.5,",",17.14," ",19,",",17," L",19,",",19," C",19.5,",",18.85," ",19.87,",",18.46," ",19.87,",",17.99," Z"],zha=["M",22,",",17.99," C",22,",",16.4," ",20.74,",",15.05," ",19,",",14.54," L",19,",",21.44," C",20.74,",",20.93," ",22,",",19.59," ",22,",",17.99," Z"],Aha=["M",19,",",24.31," L",19,",",24.32," C",22.01,",",23.59," ",24.25,",",21.16," ",24.24,",",18," C",24.25,",",14.84," ",22.01,",",12.41," ",19,",",11.68," L",19,",",11.68," C",22.01,
",",12.41," ",24.24,",",14.84," ",24.24,",",18," C",24.24,",",21.15," ",22.01,",",23.58," ",19,",",24.31," Z"],Bha=["M",19,",",24.31," L",19,",",26," C",22.99,",",25.24," ",26,",",21.94," ",26,",",18," C",26,",",14.05," ",22.99,",",10.75," ",19,",",10," L",19,",",11.68," C",22.01,",",12.41," ",24.24,",",14.84," ",24.24,",",18," C",24.24,",",21.15," ",22.01,",",23.58," ",19,",",24.31," Z"];r7.prototype.K=function(a){this.ob(300<=a.width)};
r7.prototype.L=function(){this.A.Cc()?(fM(this.A,"unmute"),this.A.unMute()):(fM(this.A,"mute"),this.A.mute())};
r7.prototype.U=function(a){q7(this,a.volume,a.muted)};A(u7,R);u7.prototype.D=function(){var a=kq(this.A.app);a&&(a=a.A,a.o.webkitSetPresentationMode("picture-in-picture"==a.o.webkitPresentationMode?"inline":"picture-in-picture"))};A(w7,R);w7.prototype.K=function(a){v7(this,a.state)};
w7.prototype.J=function(){M(this.element,"ytp-play-button-playlist",XL(this.A))};
w7.prototype.L=function(){2==this.D?fM(this.A,"pause"):3==this.D?fM(this.A,"replay"):1==this.D?fM(this.A,"play"):4==this.D&&fM(this.A,"stop");Sy(Pz(this.A))?this.A.pauseVideo():this.A.kd()};
w7.prototype.T=function(){this.F&&this.F();w7.N.T.call(this)};A(y7,R);f=y7.prototype;f.yg=function(){z7(this);this.K&&(this.ya(this.K),this.K=null);this.J=this.A.getVideoData(1);if(this.D=this.A.Zb())this.D.subscribe("shuffle",this.yg,this),this.K=S(this,this.A,"progresssync",this.eH);this.H=A7(this);B7(this);this.St(gF(this.A).La())};
f.St=function(a){var b=XL(this.A)||this.F&&ry(this.A.V(),this.J,this.D);this.ob(b&&(this.F||400<=a.width))};
f.fH=function(a){fM(this.A,this.F?"next":"previous");var b=!0;this.M?b=jy(a,this.A):Nl(a);b&&(this.F?this.A.Jj(!0):this.H?this.A.Sb(0):this.A.Kj(!0))};
f.eH=function(){var a=A7(this);a!=this.H&&(this.H=a,B7(this))};
f.T=function(){this.G&&(this.G(),this.G=null);z7(this);y7.N.T.call(this)};A(D7,Cq);f=D7.prototype;f.kH=function(a){if(!Ol(a)){var b=!1;switch(Pl(a)){case 36:this.D.Sb(0);b=!0;break;case 35:this.D.Sb(window.Infinity);b=!0;break;case 34:this.D.Qc(-60);b=!0;break;case 33:this.D.Qc(60);b=!0;break;case 38:this.D.Qc(5);b=!0;break;case 40:this.D.Qc(-5),b=!0}b&&Nl(a)}};
f.Tt=function(a,b){C7(this,b,"newdata"==a)};
f.Fx=function(){this.Tt("newdata",this.D.getVideoData())};
f.jH=function(){K7(this.D.getVideoData())?Pz(this.D).ib()&&L7(this,!0):L7(this,!1)};
f.iH=function(a){0<CB(a,64)||!K7(this.D.getVideoData())?L7(this,!1):Sy(a.state)&&0>CB(a,64)&&L7(this,!0)};
f.nH=function(a,b,c){var d=Sq(this.element),e=N7(this).o,h=c?c.getAttribute("data-tooltip"):void 0;h&&(a=s2(this.A,Number(c.getAttribute("data-position")),0)*e+Sq(this.jb).x);this.Ca.x=a-d.x;this.Ca.y=b-d.y;c=N7(this);a=r2(this.A,c.A);d=h||Xx(this.Fa?a-this.A.o:a);b=this.Ia;c=c.position+this.gb;h=!!h;1!=b.D&&(b.element.className="ytp-tooltip ytp-bottom",b.D=1,b.O&&b.K.show(),e=b.H.getVideoData(),b.J=zx(e),b.J&&(b.M=Ax(e),b.M.subscribe("l",b.bu,b)));b.update({text:d,title:""});M(b.element,"ytp-text-detail",
!!h);d=-1;b.J&&(d=Fu(b.J,96*b.G),d=b.J.o[d].Wj(a));J8(b,d);I8(b,c,!!h);M(this.fa,"ytp-hover-progress-shown",!U(Pz(this.D),64));G7(this)};
f.mH=function(){var a=this.Ia;1==a.D&&a.Xd();$d(this.fa,"ytp-hover-progress-shown")};
f.lH=function(a,b){ui(this.H);this.H=window.NaN;this.rb=b;L(this.element,"ytp-drag");(this.ma=Sy(Pz(this.D)))&&this.D.pauseVideo()};
f.oH=function(){this.da=0;$d(this.element,"ytp-pull-ui");$d(this.element,"ytp-pulling");if(0<this.K){var a=At(),b=this.K,c=N7(this).position;ui(this.H);this.H=Aq(y(this.Xt,this,a,b,c),0)}this.D.Sb(r2(this.A,N7(this).A));$d(this.element,"ytp-drag");this.ma&&!U(Pz(this.D),2)&&this.D.kd()};
f.Xt=function(a,b,c){var d=1-Math.pow(1-(At()-a)/200,3),e=c+d*(this.J*this.G-c);if(0>d||1<d)d=1;M7(this,(1-d)*b,e,this.J);this.H=1>d?Aq(y(this.Xt,this,a,b,c),0):window.NaN};
f.pH=function(a,b){var c=!1,d=!1,e=N7(this);3600<=q2(this.A)&&(M7(this,this.rb-b-10,e.position,e.A),d=!0,c=this.K>.1*(this.L?60:40),e=N7(this));M(this.element,"ytp-pull-ui",d);c&&L(this.element,"ytp-pulling");c=0;e.B&&0>=e.position?c=-1:e.D&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.H)||c&&c==this.da||ti(this.H);c&&(this.H=Aq(y(this.Wt,this,At(),this.O),0));this.da=c;this.D.Sb(r2(this.A,e.A),!1)};
f.Wt=function(a,b){if(this.da){var c=this.G*(this.ea-1);this.O=je(b+this.da*(At()-a)*.3,0,c);F7(this);this.D.Sb(r2(this.A,N7(this).A),!1);0<this.O&&this.O<c&&(this.H=Aq(y(this.Wt,this,a,b),0))}};
f.setPosition=function(a,b,c){this.gb=a;this.G=b;this.L=c;F7(this)};
f.Vt=function(){Jf(this.P,Mf());Jf(this.M,Mf());L(this.element,"ytp-clip-hover")};
f.Ut=function(){Jf(this.P,Of());Jf(this.M,Nf());$d(this.element,"ytp-clip-hover")};
f.Yj=function(){this.Z=0;this.W=window.Infinity;J7(this);E7(this,this.J,this.ia)};
f.Yt=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.aa[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.aa[d]=c;this.ka[d]=e;O7(this,c,e);"ytp-chapter-marker"==c.style?this.xb.appendChild(e):this.wb.appendChild(e)}}else Q7(this,c)}};
f.qH=function(a){for(var b=0;b<a.length;b++)Q7(this,a[b])};
f.T=function(){ti(this.H);this.H=window.NaN;I7(this,!1);D7.N.T.call(this)};A(S7,R);S7.prototype.F=function(a){R7(this,a.state)};A(T7,R);
T7.prototype.A=function(){var a=!1;-1!=this.ca.wh().indexOf("remote")&&(a=1<this.ca.yb("remote","receivers").length);this.ob(a&&400<=gF(this.ca).La().width);var b=1;a&&this.ca.yb("remote","casting")&&(b=2);if(this.D!=b){this.D=b;switch(b){case 1:Jf(this.element,Kf?'<div class="ytp-icon ytp-icon-cast-desktop-off"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.81,26 L15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L16.81,26 Z M13.62,26 L11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L13.62,26 Z M10.45,26 L8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L10.45,26 Z M18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 Z" id="ytp-svg-3" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-3" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-3" /></svg>');break;
case 2:Jf(this.element,Lf())}M(this.element,"ytp-remote-button-active",!!this.ca.yb("remote","casting"))}};
T7.prototype.F=function(){fM(this.ca,"remote");if(this.ca.yb("remote","castSelector"))this.ca.Oa()&&ly(this.ca),this.ca.pe("remote","castSelector",!0);else{var a=this.G,b=this.element;d6(a)?a.tb():(o8(a),a.M.open(),a.we(b))}};A(U7,s6);U7.prototype.F=function(){TL(this.ca.app.D,"iv-module")&&3!=this.ca.getPresentingPlayerType()?this.D||(p8(this.G,this),this.D=!0):this.D&&(q8(this.G,this),this.D=!1);t6(this,XN(this.ca.app.D))};
U7.prototype.H=function(a){XN(this.ca.app.D);a?this.ca.Ij("iv-module"):this.ca.ms("iv-module")};A(V7,n6);f=V7.prototype;f.open=function(){i6(this.A,this.P)};
f.Tc=function(a){if(this.K){var b=this.D[this.K];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.D[a].element.setAttribute("aria-checked",!0);this.Hb(this.Fc(a));this.K=a};
f.Nb=function(a){this.Tc(a);this.S("select",a)};
f.yB=function(a){"true"!=this.D[a].element.getAttribute("aria-disabled")&&this.Nb(a)};
f.Fc=function(a){return a.toString()};
f.sH=function(a){Ol(a)||39!=Pl(a)||(this.open(),Nl(a))};
f.T=function(){V7.N.T.call(this);for(var a in this.D)this.D[a].dispose()};A(X7,V7);X7.prototype.J=function(){var a=this.ca.os();1<a.length?(W7(this,fi(a,this.G)),this.M=Ib(a,this.G,this),this.L.Hb(a.length?" ("+a.length+")":""),this.S("size-change"),this.Tc(this.G(this.ca.yh())),this.F||(p8(this.A,this),this.F=!0)):this.F&&(q8(this.A,this),this.F=!1)};
X7.prototype.Nb=function(a){X7.N.Nb.call(this,a);this.ca.gn(this.M[a]);this.A.fe()};
X7.prototype.G=function(a){return a.toString()};A(Y7,s6);Y7.prototype.F=function(){var a=this.ca.getPresentingPlayerType();if(2!=a&&3!=a&&ry(this.ca.V(),this.ca.getVideoData(),this.ca.Zb()))this.G||(p8(this.J,this),this.G=!0,this.D.push(S(this,this.ca,"videodatachange",this.F)),this.D.push(S(this,this.ca,"videoplayerreset",this.F)),this.D.push(S(this,this.ca,"onPlaylistUpdate",this.F)),this.D.push(S(this,this.ca,"autonavchange",this.H)),this.H(this.ca.getVideoData().autonavState));else if(this.G)for(q8(this.J,this),this.G=!1,a=0;a<this.D.length;a++)this.ya(this.D[a])};
Y7.prototype.H=function(a){t6(this,1!=a)};
Y7.prototype.K=function(a){this.ca.app.o.Ba("onAutonavChangeRequest",1!=(a?2:1))};A(Z7,V7);
Z7.prototype.G=function(){var a=this.ca.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=BL(kq(this.ca.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.M=a;a=this.ca.bs();if(b=!this.ca.V().experiments.ga("disable_missing_qualities"))b=this.ca.getVideoData().B,b=!!b&&!Fr(b);b&&(b=this.ca.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.G));b&&a.unshift("missing-qualities");W7(this,a);if(a.length){this.J();this.F||(p8(this.A,this),this.F=!0);return}}this.F&&(q8(this.A,this),this.F=
!1)};
Z7.prototype.J=function(){var a=bM(this.ca);this.D[a]&&(this.L=this.ca.Hj(),this.Tc(a),"auto"==a&&this.Hb(this.Fc(a)))};
Z7.prototype.Nb=function(a){"missing-qualities"!=a&&(Z7.N.Nb.call(this,a),this.ca.Lj(a),this.A.tb())};
Z7.prototype.Fc=function(a,b){if("missing-qualities"==a)return["a",{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},P("YTP_MISSING_FORMATS")];var c=["div",null,$7(this,a)],d=bM(this.ca);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push($7(this,this.L,["ytp-menu-label-secondary"])));return c};A(a8,V7);a8.prototype.J=function(){var a=-1!=this.ca.wh().indexOf("remote")?this.ca.yb("remote","receivers"):[];1<a.length&&!this.ca.yb("remote","castSelector")?(this.L=Ib(a,this.G,this),W7(this,fi(a,this.G)),a=this.ca.yb("remote","currentReceiver"),this.Tc(this.G(a)),this.F||(p8(this.A,this),this.F=!0)):this.F&&(q8(this.A,this),this.F=!1)};
a8.prototype.G=function(a){return a.key};
a8.prototype.Fc=function(a){return this.L[a].name};
a8.prototype.Nb=function(a){a8.N.Nb.call(this,a);this.ca.pe("remote","currentReceiver",this.L[a]);this.A.tb()};A(b8,V7);f=b8.prototype;f.Pk=function(a){return a.toString()};
f.Fc=function(a){return"1"==a?P("YTP_NORMAL_SPEED"):a.toString()};
f.au=function(){var a=this.ca.getPresentingPlayerType();this.ca.V().Z&&2!=a&&3!=a?this.F||(p8(this.A,this),this.F=!0,this.G=S(this,this.ca,"onPlaybackRateChange",this.GB),W7(this,fi(this.ca.Gj(),this.Pk)),this.Tc(this.Pk(this.ca.app.O))):this.F&&(q8(this.A,this),this.F=!1,this.ya(this.G),this.G=null)};
f.GB=function(a){this.Tc(this.Pk(a))};
f.Nb=function(a){b8.N.Nb.call(this,a);this.ca.xh((0,window.parseFloat)(a),!0);this.A.fe()};A(d8,V7);d8.prototype.Tc=function(a){d8.N.Tc.call(this,a)};
d8.prototype.G=function(a){return a.option.toString()};
d8.prototype.Fc=function(a){return c8(this.F[a])};
d8.prototype.Nb=function(a){d8.N.Nb.call(this,a);this.S("settingChange",this.J,this.F[a].option)};A(e8,p6);e8.prototype.K=function(a,b){this.S("settingChange",a,b)};
e8.prototype.focus=function(){this.A.focus()};A(g8,V7);g8.prototype.G=function(a){return a.languageCode};
g8.prototype.Fc=function(a){return this.F[a].languageName||""};
g8.prototype.Nb=function(a){this.S("select",a);a=this.A;var b=a.D.pop(),c=a.D[0];a.D=[c];h6(a,b,c,!0)};A(h8,V7);f=h8.prototype;f.Dn=function(a){return ac(a)?"__off__":a.displayName};
f.Fc=function(a){return"__off__"==a?P("YTP_LANGUAGE_OFF"):"__translate__"==a?P("YTP_AUTO_TRANSLATE"):"__contribute__"==a?P("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.F[a]).displayName};
f.Nb=function(a){if("__translate__"==a)this.J.open();else if("__contribute__"==a){this.ca.pauseVideo();this.ca.Oa()&&ly(this.ca);a=this.ca.V();var b=this.ca.getVideoData();hy(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.ca.pe("captions","track","__off__"==a?{}:this.F[a]),h8.N.Nb.call(this,a),this.A.fe()};
f.zD=function(){i6(this.A,this.G)};
f.Gh=function(){var a=-1!=this.ca.wh().indexOf("captions"),b=this.ca.getVideoData().Ea;if(a||b){var c,d;if(a){var e=this.ca.yb("captions","track"),h=this.ca.yb("captions","tracklist",{includeAsr:!0}),k=this.ca.yb("captions","translationLanguages"),l=this.ca.yb("captions","displaySettings");k8(l);this.F=Ib(h,this.Dn,this);c=fi(h,this.Dn);if(k.length){d=this.J;var m=k;d.F=Ib(m,d.G,d);W7(d,fi(m,d.G));c.push("__translate__")}d=this.Dn(e)}else this.F={},c=[],d="__off__";c.unshift("__off__");this.F.__off__=
{};b&&c.unshift("__contribute__");this.F[d]||(this.F[d]=e,c.push(d));W7(this,c);this.Tc(d);a?(f8(this.G,l),this.L.Hb(h.length?" ("+h.length+")":""),this.S("size-change"),a&&k.length&&this.D.__translate__.element.setAttribute("aria-disabled",!!ac(e))):(this.L.Hb(""),this.S("size-change"));this.M||(p8(this.A,this),this.M=!0)}else this.M&&(q8(this.A,this),this.M=!1)};
f.vC=function(a){var b=this.ca.yb("captions","track"),b=ec(b);b.translationLanguage=this.J.F[a];this.ca.pe("captions","track",b)};
f.DH=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=i8[b];break;case "charEdgeStyle":c.charEdgeStyle=j8[b];break;default:c[a]=b}c=aM(this.ca,c);k8(c);f8(this.G,c)};A(l8,V7);var zia={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};l8.prototype.Fc=function(a){return P(zia[(0,window.parseInt)(a,10)])};
l8.prototype.J=function(){var a=cM(this.ca);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.F||(this.G=a.shader,p8(this.A,this),this.F=!0,W7(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Tc(a.toString())):this.F&&(q8(this.A,this),this.F=!1)};
l8.prototype.Nb=function(a){l8.N.Nb.call(this,a);dM(this.ca,{shader:this.G,displayMode:a});this.A.fe();this.ca.S("webglsettingschanged",cM(this.ca))};A(m8,f6);m8.prototype.we=function(a){o8(this);0<this.A.A.length&&m8.N.we.call(this,a)};
m8.prototype.show=function(){m8.N.show.call(this)};A(r8,R);r8.prototype.H=function(a){this.ob(this.F&&400<=a.width)};
r8.prototype.J=function(a){fM(this.ca,"settings");this.D.B?this.D.tb():(this.ca.Ij("captions"),this.D.we(Jl(a)))};
r8.prototype.G=function(a){this.C("pressed",a)};
r8.prototype.A=function(){var a=this.ca.getPresentingPlayerType(),b=2!=a&&3!=a,c=cM(this.ca),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&0==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.ca.Hj();M(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);M(this.element,"ytp-4k-quality-badge","hd2160"==b);M(this.element,"ytp-5k-quality-badge","hd2880"==b);M(this.element,"ytp-8k-quality-badge","highres"==b);M(this.element,"ytp-3d-badge-grey",a&&c);M(this.element,
"ytp-3d-badge",a&&!c)};A(s8,R);s8.prototype.J=function(){fM(this.A,this.A.app.wa?"size_small":"size_large");var a=this.A.app,b=!a.wa;Y9(a,!0,b);a.o.Ba("SIZE_CLICKED",b)};
s8.prototype.D=function(){this.ob(this.A.app.Ob&&!this.A.Oa()&&3!=this.A.getPresentingPlayerType());if(this.B){var a=this.A.app.wa;if(this.F!=a){var b=a?Kf?'<div class="ytp-icon ytp-icon-default-view"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z" id="ytp-svg-9" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-9" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-9" /></svg>':
Kf?'<div class="ytp-icon ytp-icon-theater-mode"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z" id="ytp-svg-46" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-46" /></svg>';this.A.V().P||null==this.F?Jf(this.element,b):p7(this.H,this.element,b);a=(this.F=a)?P("YTP_DEFAULT_VIEW"):P("YTP_THEATER_MODE");
this.C("title",a);t7(this.G)}}};A(u8,R);u8.prototype.F=function(){fM(this.A,"subtitles");ZL(this.A)};
u8.prototype.D=function(){var a=!!TL(this.A.app.D,"captions");this.ob(a&&300<=gF(this.A).La().width);a&&this.C("pressed",!!this.A.yb("captions","track").displayName)};A(v8,R);f=v8.prototype;f.zg=function(){var a=gF(this.A).La().width,b=350<=a&&(!this.F||!U(Pz(this.A),64));this.ob(b);M(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.A.bf(),b=Xx(a.current),this.J!=b&&(this.C("currenttime",b),this.J=b),a=Xx(a.duration),this.K!=a&&(this.C("duration",a),this.K=a))};
f.FH=function(a){if(this.H!=a){this.H=a;this.zg();var b=this.G.element;(b.disabled=a)?this.D&&(this.D(),this.D=null,b.removeAttribute("title")):(b.title=P("YTP_GOTO_LIVE_TOOLTIP"),this.D=a6(this.L,this.G.element))}};
f.GH=function(a,b){this.F=b.Ga;M(this.element,"ytp-live",this.F);this.zg()};
f.EH=function(a){a.target==this.G.element?(fM(this.A,"live"),this.A.Sb(window.Infinity),this.A.kd()):fM(this.A,"time")};
f.T=function(){this.D&&this.D();v8.N.T.call(this)};A(x8,R);f=x8.prototype;f.eu=function(a){this.ob(this.A.V().rb&&350<=a.width)};
f.mC=function(a){if(!Ol(a)){var b=Pl(a),c=null;37==b?c=this.J-5:39==b?c=this.J+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=je(c,0,100),0==c?this.A.mute():(this.A.Cc()&&this.A.unMute(),this.A.setVolume(c)),Nl(a))}};
f.IH=function(a){Nl(a);(a=Ql(a||window.event,!0)||-Ql(a||window.event,!1))&&this.A.setVolume(this.J+je(a/20,-10,10))};
f.lC=function(){fM(this.A,"volume");y8(this,this.G,!0,this.D,this.H.H);this.W=this.J;this.A.Cc()&&this.A.unMute()};
f.kC=function(a){a-=Sq(this.U).x;this.A.setVolume(100*je(a/(this.L?78:52),0,1))};
f.jC=function(){y8(this,this.G,!1,this.D,this.H.H);0==this.J&&(this.A.mute(),this.A.setVolume(this.W))};
f.JH=function(a){w8(this,a.volume,a.muted)};
f.ro=function(){y8(this,this.G,this.F,this.D,this.H.H)};
f.du=function(a){y8(this,this.G,this.F,a,this.H.H)};
f.T=function(){x8.N.T.call(this);$d(this.O,"ytp-volume-slider-active")};A(z8,R);z8.prototype.D=function(){var a=!!this.A.getVideoData().videoId;this.ob(a);a&&(a=this.A.getVideoUrl(!0,!1,!1,!0),this.C("url",a))};
z8.prototype.F=function(a){fM(this.A,"youtube");var b=this.A.getVideoUrl(!Yx(a),!1,!0,!0);my(b,this.A,a)};A(A8,sr);f=A8.prototype;f.CH=function(){L(this.C.element,"ytp-volume-control-hover");var a=this.C;y8(a,!0,a.F,a.D,a.H.H)};
f.BH=function(){$d(this.C.element,"ytp-volume-control-hover");var a=this.C;y8(a,!1,a.F,a.D,a.H.H)};
f.Bn=function(){if(this.U.A){var a=this.F;H7(a);var b=a.D.getCurrentTime();(b<a.Z||b>a.W)&&a.Yj();this.M.zg()}};
f.zH=function(){this.Bn()};
f.AH=function(a){a&&window.document.activeElement==this.D.element&&this.ca.Da().focus();this.Cn()};
f.RD=function(){H8(this.B.A,!this.o.B)};
f.Cn=function(){var a=iF(this.B),b=gF(this.ca).La(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.O!=b.width||this.P!=a){this.O=b.width;this.P=a;var e=Math.max(b.width-2*c,100);this.A.element.style.width=e+"px";this.A.element.style.left=c+"px";this.F.setPosition(c,e,a);e=this.B.A;e.Z=c;e.aa=d;c=this.C;c.L=a;w8(c,c.A.Ab(),c.A.Cc())}c=this.o;b=Math.min(300*(a?1.5:1),Math.round(.6*(b.height-(iF(this.B)?72:50))));c.xa=Math.min(350*(a?1.5:1),d);c.ma=b;c.ph()};
f.la=function(){return this.A.element};
f.MD=function(){Q8(this.B,this.J,this.K)};A(C8,R);C8.prototype.J=function(a){a=400>a.width&&this.A.Zb()&&2!=this.A.getPresentingPlayerType();this.H.style.display=a?"":"none"};
C8.prototype.P=function(a){fM(this.A,"title");var b=this.A.getVideoUrl(!Yx(a),!1,!0);my(b,this.A,a)};
C8.prototype.M=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&kx.test(b)&&D8(this,a,c,d,b))};
C8.prototype.F=function(){E8(this);var a=this.A.getVideoData();this.C("title",a.title);!this.A.V().C&&a.videoId?(this.C("url",this.A.getVideoUrl(!0)),this.D||(this.D=S(this,this.L,"click",this.P))):this.D&&(this.C("url",null),this.ya(this.D),this.D=null)};A(F8,R);f=F8.prototype;
f.pB=function(a){a=a.currentTarget;if(!this.D){(0,window.isNaN)(this.F)||(this.F=window.NaN,this.P.style.background="");this.A=a;a.addEventListener("mouseout",this.ea);this.L=a.getAttribute("title");a.removeAttribute("title");this.element.className="ytp-tooltip";var b=a.getAttribute("data-tooltip-image");b&&(this.ma.style.backgroundImage="url("+b+")");M(this.element,"ytp-tooltip-image-enabled",!!b);this.D=2;a.removeEventListener("mouseover",this.U);this.H.addEventListener("resize",this.cu,this);this.O&&
(G8(this),this.K.show(!1,400))}};
f.nB=function(a){(a=Ll(a))&&kh(this.A,a)||this.Xd()};
f.bu=function(a,b){if(a<=this.F&&this.F<=b){var c=this.F;this.F=window.NaN;J8(this,c)}};
f.qz=function(){Ju(this.M,this.F,96*this.G)};
f.cu=function(){ue(gF(this.H).La(),this.ka)||this.Xd()};
f.Xd=function(){switch(this.D){case 2:this.H.removeEventListener("resize",this.cu,this);this.A.removeEventListener("mouseout",this.ea);this.A.addEventListener("mouseover",this.U);this.A.setAttribute("title",this.L);this.L="";this.A=null;break;case 1:this.J&&(this.J=null,this.M.Ha("l",this.bu,this),this.M=null),this.H.removeEventListener("videoready",this.Xd,this),this.W.stop()}this.D=null;this.O&&this.K.ha()};
f.sf=function(a){if(this.A)for(var b=0;b<arguments.length;b++)kh(arguments[b],this.A)&&this.Xd()};
f.T=function(){null!=this.D&&this.Xd();F8.N.T.call(this)};A(M8,R);f=M8.prototype;f.fu=function(a){this.ob(300<=a.width)};
f.Jz=function(){this.D=!0;this.A=!1;K8(this,1)};
f.KH=function(){fM(this.F,"watchlater");var a=this.F.getVideoData().videoId;if(!this.A){this.A=!0;K8(this,3);L8(this);var b=this.F.app,c=!this.D;(c?uha:vha)({videoIds:a,Bb:b.X.Bb,pageId:b.X.pageId,onError:b.PC,qb:c?b.OC:b.QC,context:b},b.X.baseYtUrl,!0)}};
f.LH=function(a){this.A=!1;K8(this,4);L8(this,a)};
f.UB=function(){this.A=this.D=!1;K8(this,2)};
f.MH=function(){this.A=this.D=!1;K8(this,2);L8(this)};
f.T=function(){M8.N.T.call(this);$d(this.H,"ytp-watch-later-button-visible")};A(N8,R);N8.prototype.F=function(){if(this.D.getVideoData().videoId){var a=this.D.getVideoUrl(!0,!1,!1,!0);this.C("url",a);this.A||(this.A=this.R("click",this.G))}else this.A&&(this.C("url",null),this.ya(this.A),this.A=null)};
N8.prototype.G=function(a){var b=this.D.getVideoUrl(!Yx(a),!1,!0,!0);my(b,this.D,a)};A(P8,sr);f=P8.prototype;f.Nt=function(a,b){this.ia!=b.videoId&&(this.ia=b.videoId,this.D.kb(512,!0),this.oh())};
f.LB=function(){this.Nt(0,this.o.getVideoData())};
f.Ot=function(){Q8(this,this.ma,this.P);this.J==this.P&&this.o.Ba("onSharePanelOpened")};
f.Dr=function(){Q8(this,this.ka,this.Z)};
f.Er=function(){Q8(this,this.wa,this.aa)};
f.ig=function(){var a=!hF(this);a?(this.xa.show(),this.ua.show(),lz(this.o)&&this.G.A.show()):(this.xa.ha(),this.ua.ha(),this.G.A.ha(),this.A.sf(this.C.element,this.G.element));M(this.o.Da(),"ytp-menu-shown",!a);var b=this.U,c=!a;(b.F=c)?b.ha():z6(b.D,b.A,Pz(b.A));this.B&&B8(this.B,!a)};
f.Jp=function(a){return kh(this.C.element,a)};
f.Bp=function(a){return!!this.B&&kh(this.B.la(),a)};
f.FG=function(a){if(!this.Jp(a)&&!this.Bp(a))return!1;for(;!a||!qh(a);){if(!a||a==this.o.Da())return!1;a=jh(a)}return!0};
f.GG=function(a){var b=this.o.Da();M(b,"ytp-autohide",a);a&&(this.A.sf(this.C.element,this.G.element),this.B&&this.A.sf(this.B.la()),this.H=!1,$d(b,"ytp-touch-mode"));b=this.o;a=!a;b.Ba("onVideoAreaChange");b.Ba(a?"onShowControls":"onHideControls")};
f.ZB=function(a){this.D.A||S8(this,a)||R8(this,Kl(a))||(Pz(this.o),Nl(a));this.H=!0;L(this.o.Da(),"ytp-touch-mode");this.D.kb(2,!0);this.Iq(a)};
f.Iq=function(a){this.o.V().experiments.ga("preload_based_on_input")&&!R8(this,Kl(a))&&$y(Pz(this.o))&&(a=this.o,Pz(a),dL(kq(a.app,a.playerType),!0))};
f.Gq=function(a){if(R8(this,Kl(a)))return!0;this.D.kb(2,!0);return this.Ao()?!0:this.o.V().experiments.ga("quick_play_click")&&$y(Pz(this.o))?(this.o.kd(),!0):!1};
f.Hq=function(a){R8(this,Kl(a));var b=Pz(this.o);U(b,2)&&VL(this.o)||S8(this,a)||(Z5(this.O),Sy(b)?this.o.pauseVideo():(this.o.kd(),window.document.activeElement==this.U.element&&this.o.Da().focus()))};
f.YB=function(a){R8(this,Kl(a))||"3"!=this.o.V().B&&3!=this.o.getPresentingPlayerType()&&ly(this.o)};
f.HG=function(a){var b=this.o.Da();a?b.parentElement?(b.setAttribute("aria-label",P("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.fa.element,b),b.parentElement.insertBefore(this.da.element,b.nextSibling)):vi(Error("Player not in DOM.")):(b.setAttribute("aria-label",P("YTP_PLAYER_NORMAL")),xq(this.fa),xq(this.da));this.wn();this.oh()};
f.wn=function(){var a=iF(this),b=gF(this.o).La(),c=this.o.Oa(),d=this.o.Da();this.A.G=a?1.5:1;M(d,"ytp-fullscreen",c);M(d,"ytp-small-mode",!a&&480>b.width);M(d,"ytp-big-mode",a);M(this.K.element,"ytp-big-mode",a);this.F&&(a=this.F,a.A&&L5(a.A,b.width,b.height))};
f.IG=function(a){O8(this,a.state);this.oh();this.Gr()};
f.oh=function(){var a=!this.o.getVideoData().isListed&&2==this.o.getPresentingPlayerType(),a=!!this.ia&&!UL(this.o)&&!a&&(2==this.o.getPresentingPlayerType()||this.o.V().Ea||this.o.Oa());this.Ia!=a&&(this.Ia=a,M(this.o.Da(),"ytp-hide-info-bar",!a),a||(this.A.sf(this.C.element,this.G.element),d6(this.P)&&this.Ot(),d6(this.Z)&&this.Dr(),d6(this.aa)&&this.Er()))};
f.Gr=function(){var a=lz(this.o),b=a&&gM(this.o);b!=this.M&&(this.M=b,this.ig(),b&&(b=this.Y,b=b.B&&3!=b.K.o),b&&this.Y.Eh());b=Pz(this.o);(a=a&&!U(b,2))&&!hF(this)?this.G.A.show():(b=this.G,b.B&&3!=b.A.o&&this.G.A.ha());M(this.C.element,"ytp-cards-available",a)};
f.LD=function(a){this.M?this.o.qg(!1,a):this.o.qg(!0,a)};
f.Ao=function(){if(this.K.B)return this.K.tb(),!0;var a;if(a=this.B){a=this.B;var b=a.D;b.A&&d6(b.A)?(a.D.A.tb(),a=!0):a.o.B?(a.o.tb(),a=!0):a=!1}return a?!0:this.J?(Q8(this,this.ea,this.J),!0):this.M?(this.o.qg(!1,!1),!0):UL(this.o)?(WL(this.o,!0),!0):!1};
f.wD=function(a){this.D.kb(64,a);this.Ma=a;this.Pt();M(this.o.Da(),"ytp-settings-shown",a)};
f.Pt=function(){var a=this.Ma||this.K.B;this.Ea!=a&&(this.Ea=a,this.o.Ba("onAutonavPauseRequest",this.Ea))};
f.Xw=function(){U8(this,this.o.Da(),!0).focus()};
f.Yw=function(){U8(this,this.o.Da(),!1).focus()};var W8=[],Z$=aa.JSON&&aa.JSON.stringify||"object"===typeof JSON&&JSON.stringify;V8.prototype.Ac="function"==typeof window.Uint8Array?function(){var a=window.Uint8Array.prototype.toJSON;window.Uint8Array.prototype.toJSON=function(){return eG(this)};
try{var b=Z$.call(null,this.o)}finally{window.Uint8Array.prototype.toJSON=a}return b}:Z$?function(){return Z$.call(null,this.o)}:function(){return ee(this.o)};
V8.prototype.toString=function(){return this.o.toString()};
V8.prototype.getExtension=function(a){if(this.A){this.B||(this.B={});var b=a.B;if(a.C){if(a.A())return this.B[b]||(this.B[b]=fi(this.A[b]||[],function(b){return new a.o(b)})),this.B[b]}else if(a.A())return!this.B[b]&&this.A[b]&&(this.B[b]=new a.o(this.A[b])),this.B[b];
return this.A[b]}};A(X8,V8);var Dha=[241];X8.prototype.getStatus=function(){return Z(this,59)};
X8.prototype.setVideoId=function(a){175<this.C?this.o[174]=a:this.A[175]=a};
X8.prototype.setTitle=function(a){176<this.C?this.o[175]=a:this.A[176]=a};
X8.prototype.Kb=function(){return Z(this,201)};var Eha={legacy_config:!0,player_response:!0,polymer_player_response:!0},Y8={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};A(b9,G);b9.F="defaultcontext";b9.o={};b9.B="appapi";b9.A="appad";b9.create=function(a,b){try{var c=b9.D(a);if(b9.o[c]){try{b9.o[c].dispose()}catch(e){vi(e)}b9.o[c]=null}var d=new b9(a,b);Lb(d,function(){b9.o[c]=null});
return b9.o[c]=d}catch(e){throw vi(e),e.stack;}};
b9.C=function(a,b){Bv("pwc");var c=window.document.querySelector(a);window.document.registerElement(a,{});var d=c.querySelector("template"),c=c.createShadowRoot(),d=window.document.importNode(d.content,!0);c.appendChild(d);c=c.getElementById(b);d=r("ytplayer.config");c=b9.create(c,d);d.loaded=!0;return c};
b9.D=function(a){return w(a)?a:"player"+ma(a)};
f=b9.prototype;f.Tz=function(){q9(this)||o9(this,5)};
f.HB=function(a){q9(this)||(S9(this),Sy(a.getPlayerState())&&this.Ze())};
f.xr=function(a){var b=this.G.element;M(b,"ytp-ad-overlay-open",a);M(b,"ytp-ad-overlay-closed",!a)};
f.canPlayType=function(a){return!!St().canPlayType(a)};
f.V=function(){return this.X};
f.getVideoData=function(){return this.F.getVideoData()};
f.Bj=function(){var a=XH(this.X);qa(a,Eaa(this.D));this.H&&qa(a,this.H.Bh());a.fs=this.o.Oa();a.volume=Math.round(this.Qa.Ab());a.mos=this.Qa.Cc()?1:0;return a};
f.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.J.getCurrentTime():(a=kq(this,a))?a.getCurrentTime():0};
f.getPresentingPlayerType=function(){var a;if(a=this.J)a=this.J,a=!!a.A&&!!a.B;return a?3:kq(this).L};
f.xE=function(a){switch(a.type){case "loadedmetadata":this.K.A("fvb",void 0);this.rb.start();break;case "loadstart":this.K.A("gv",void 0);break;case "progress":case "timeupdate":!Cv("l2s",this.K.o)&&2<=Ly(mH(a.target))&&this.K.A("l2s",void 0)}};
f.cB=function(a,b){this.o.Ba("onLoadProgress",b)};
f.nC=function(){this.o.S("playbackstalledatstart")};
f.JC=function(a,b){this.o.Ba("onVideoProgress",b)};
f.uE=function(){this.Qa.S("progresssync",void 0,void 0)};
f.Vz=function(a){!this.X.experiments.ga("disable_live_head_slowdown")&&0<CB(a,1)&&!U(a.state,64)&&P4(this).Ga&&vL(this.A)&&1<this.O&&s9(this,1,!0);if(0<CB(a,2)){var b;this.C&&("embedded"==this.X.Aa||this.o.Oa())&&By(this)?(N9(this,!1,!this.X.experiments.ga("legacy_autoplay_flag")),b=!0):b=!1;!b&&KH(this.X)&&aL(this.A).webkitExitFullScreen&&aL(this.A).webkitExitFullScreen()}U(a.state,128)&&(b=a.state,H9(this),b=b.o,this.o.Ba("onError",w$[b.errorCode]||5),this.o.Ba("onDetailedError",b));this.o.S("applicationplayerstatechange",
a);U(a.state,2)&&(a=this.getVideoData(),a.isLiveDefaultBroadcast&&F9(this,{videoId:a.videoId,livemonitor:a.Pf}))};
f.tE=function(a){!U(a.state,32)&&0>CB(a,16)&&(!U(a.state,8)||U(a.state,64)||this.B.o.ended||U(a.state,2)||this.Ze());this.o.S("presentingplayerstatechange",a);p9(this,bz(a.state))};
f.Sz=function(a){"newdata"==a&&A9(this)};
f.Xz=function(a){a==this.F.getVideoData()&&this.o.Ba("onPlaybackAudioChange",u9(this).Fb.name)};
f.HC=function(a){var b=this.F.getVideoData();a==b&&this.o.Ba("onPlaybackQualityChange",a.B.video.quality)};
f.Wm=function(a,b,c){if("newdata"==a)VN(this.D),this.A==this.F?(this.B.o.loop=this.xa,this.B.o.playbackRate=this.O):(this.B.o.loop=!1,this.B.o.playbackRate=1),this.o.S("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"==a)if(NH(b.V(),c.C),this.F==this.A){this.X.fb||dp("embedded"==this.X.Aa);var d=q9(this);if(d||!P4(this).Wo||this.X.isMobile){var e=P4(this);if(!Dx(e)||d||rx(this.A.o)){Ex(e);d&&o9(this,6);e=!1;d=O4.Xa;!this.H&&d(this)&&(this.H=new O4(this),k9(this,this.H),e=!0);try{var h=
this.H;h&&!h.H&&h.Xa(this.Qa)&&h.create()}catch(k){vi(k),this.A&&this.A.lj("ad")}e&&(this.H.oz(P4(this),kq(this)),this.H.subscribe("overlay_ad_open",pa(this.xr,!0),this),this.H.subscribe("overlay_ad_close",pa(this.xr,!1),this));l9(this);j9(this)}else h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",y5||Vp()||Np("xbox")&&Np("trident")||Up()||(h=yx(e)?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),bL(this.A,"fmt.noneavailable",h,void 0)}else h="YTP_DEVICE_FALLBACK",
y5||Vp()||Np("xbox")&&Np("trident")||Up()||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),bL(this.A,"html5.unsupportedads",h,void 0)}else j9(this);1==b.L&&(this.getVideoData().Wh?(h=this.B,h.D=!0,h.o.muted=!0):(this.B.D=!1,T9(this,this.Y)),this.getVideoData().Ga&&!this.X.kf&&bL(this.A,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),Ex(c)&&(c.ma||c.Ia||c.D.focEnabled||c.D.rmktEnabled||this.getVideoData().Ae)&&(h=this.getVideoData(),D9(this,"part2viewed",1,0x8000000000000),D9(this,"engagedview",
Math.max(1,1E3*h.$e),0x8000000000000),h.Ga||(h=1E3*h.lengthSeconds,D9(this,"videoplaytime25",.25*h,h),D9(this,"videoplaytime50",.5*h,h),D9(this,"videoplaytime75",.75*h,h),D9(this,"videoplaytime100",h,0x8000000000000),D9(this,"conversionview",h,0x8000000000000))));this.o.S("videodatachange",a,c,b.L)}this.X.Va&&this.o.Ba("onVideoDataChange",{type:a,playertype:b.L})};
f.vk=function(){d9(this,null);this.o.Ba("onPlaylistUpdate")};
f.$p=function(a){var b=a.getId(),c=P4(this);if("part2viewed"==b)c.sd&&Xp(c.sd),c.Ia&&Xp(c.Ia);else if("conversionview"==b){var d=this.A;d.B&&AB(d.B)}else"engagedview"==b&&Xp(c.ma);c.xa&&(d=a.getId(),d=hj(c.xa,{label:d}),Xp(d));switch(b){case "videoplaytime25":c.ac&&Xp(c.ac);Xp(c.mf);break;case "videoplaytime50":c.md&&Xp(c.md);Xp(c.nf);break;case "videoplaytime75":c.nd&&Xp(c.nd);Xp(c.pf);break;case "videoplaytime100":c.$b&&Xp(c.$b),Xp(c.lf)}(b=this.getVideoData().Ae)&&b[a.getId()]&&(c=b[a.getId()],
Xp(c,void 0,bq(c)),b=b[a.getId()+"gaia"],Xp(b,void 0,bq(b)));this.A.F.sh(a)};
f.mg=function(a,b,c,d){b=0!=b;if(d=kq(this,d))2==this.M&&f9(this),iL(d,a,b,c)};
f.wE=function(a,b){var c=a.getVideoData();if(1==this.M||2==this.M)c.startSeconds=b;2==this.M?f9(this):this.o.S("seekto",b)};
f.Kz=function(){this.o.S("airplayactivechange")};
f.Lz=function(){this.o.S("airplayavailabilitychange")};
f.pE=function(){this.o.S("beginseeking")};
f.qE=function(){this.o.S("endseeking")};
f.uq=function(){var a=this.C.sb(),b=this.getVideoData();b.Lc||!this.Z?(b=b.ng,a=E9(this,a),b&&I9(this,a)):a&&J9(this,a)};
f.Qz=function(a){this.o.Ba("onCueRangeEnter",a.getId())};
f.Rz=function(a){this.o.Ba("onCueRangeExit",a.getId())};
f.Uz=function(){this.aa||(this.aa=mv(this.fq,this));N1(this.K,b5(this));if(!this.jb&&"detailpage"==this.X.Aa){this.jb=!0;var a=this.A;if(a.aa&&a.aa.o){var b={},c={};a.o.videoId&&(b.docid=a.o.videoId);a.o.playbackId&&(b.plid=a.o.playbackId);b.cpn=a.o.clientPlaybackNonce;b.ad_cpn=a.aa.o;var d=At()-a.aa.A;a.aa.B?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+Math.round(c[e]));a.rt=d.join(",");for(var h in b)"_"!=
h.charAt(0)&&(a[h]=b[h]);b=pi("TIMING_INFO",{});"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);Lv(a)}}this.X.experiments.B&&By(this)&&(b=this.C.sb(Sx(this.C)))&&G9(this,b)};
f.fq=function(a){a=a.o;if(!(0,window.isNaN)(a)&&0<a&&this.A){var b=this.A;b.B&&0<a&&(b.B.B.B.aft=[a])}};
f.qq=function(a){"remote"==a?(2==this.M&&f9(this),o9(this,6),m9(this,this.H)):this.Vl()};
f.rq=function(a){"remote"!=a||q9(this)||(this.Ze(),this.pauseVideo());this.Vl()};
f.Vl=function(){this.X.Va&&this.F?this.o.Ba("onApiChange",this.F.L):this.o.Ba("onApiChange")};
f.kB=function(){var a={volume:je(Math.floor(100*this.B.o.volume),0,100),muted:this.B.o.muted};this.Y=ec(a);this.o.Ba("onVolumeChange",a)};
f.RA=function(){U9(this,Bh()?1:0)};
f.vE=function(){if(this.B){var a=!1;if(0!=this.B.o.readyState&&this.F){var b=ar(this.B.o),c=this.getVideoData();ue(c.ze,b)||(c.ze=b,a=!0)}b=fF(this.G);xe(this.wb,b)||(this.wb=b,a=!0);a&&(this.F&&DL(this.F,"r"),!this.X.experiments.ga("disable_app_resize")&&this.A&&this.A!=this.F&&DL(this.A,"r"));!a&&this.X.experiments.ga("legacy_efficient_resize")||this.o.S("resize",this.G.La())}};
f.XB=function(){2!=this.gb&&U9(this,Bh()==this.G.element?1:0)};
f.sE=function(a){this.o.S("liveviewshift",a)};
f.OC=function(){this.o.Ba("WATCH_LATER_VIDEO_ADDED")};
f.QC=function(){this.o.Ba("WATCH_LATER_VIDEO_REMOVED")};
f.PC=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.o.Ba("WATCH_LATER_ERROR",c||P("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
f.Ze=function(a){if(a=kq(this,a))2==this.M?f9(this):(a.getPlayerState(),!this.X.experiments.ga("new_ended_replay")&&U(a.getPlayerState(),2)?this.mg(0):yL(a))};
f.pauseVideo=function(a){(a=kq(this,a))&&a.pauseVideo()};
f.getAdState=function(){return this.H?this.H.getAdState():-1};
f.Yr=function(a,b,c){this.nj();this.ma=a;b&&F(b,function(a){this.ea[a]=!0},this);
c&&Daa(this.D,a,c)};
f.nj=function(){this.ma=null;this.ea={};WN(this.D)};
f.iC=function(){if(!this.Ma){this.Ma=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Ga||(b.start=kq(this).getCurrentTime());b.autoplay=1;b.reload=1;F9(this,b)}};
f.wA=function(){this.o.Ba("CONNECTION_ISSUE")};
f.rE=function(a){this.o.Ba("heartbeatparams",a)};
f.T=function(){gp();this.A.dispose();this.P&&this.P.dispose();i9(this);Nb(Vb(this.Ia),this.C);this.Ca=null;lv(this.aa);this.aa=0;b9.N.T.call(this)};q("yt.player.Application.create",b9.create,void 0);q("yt.player.Application.createWebComponent",b9.C,void 0);var $$=r("ytcsi.tick");$$&&$$("pe");})(_yt_player);
