fleetvu/vexpense/assets/js/base.js
2017-06-22 16:11:47 +05:30

5996 lines
1.1 MiB

var _yt_player={};(function(g){var window=this;var f,n=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&&n(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.Tb?a.Tb:a.Tb=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},B=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),m=2;m<arguments.length;m++)k[m-2]=arguments[m];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))},ua=function(a,b){return 0==a.lastIndexOf(b,0)},va=function(a,b){var c=a.length-b.length;
return 0<=c&&a.indexOf(b,c)==c},D=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(La,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}})},Na=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");
return a},Ga=function(a,b){return-1!=a.indexOf(b)},Oa=function(a,b){return Ga(a.toLowerCase(),b.toLowerCase())},Qa=function(a,b,c){a=n(c)?a.toFixed(c):String(a);
c=a.indexOf(".");-1==c&&(c=a.length);return Pa("0",Math.max(0,b-c))+a},E=function(a){return null==a?"":String(a)},Ra=function(a){return Array.prototype.join.call(arguments,"")},Ua=function(a,b){for(var c=0,d=Sa(String(a)).split("."),e=Sa(String(b)).split("."),h=Math.max(d.length,e.length),k=0;0==c&&k<h;k++){var m=d[k]||"",l=e[k]||"",p=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");
do{var u=p.exec(m)||["","",""],x=t.exec(l)||["","",""];if(0==u[0].length&&0==x[0].length)break;c=Ta(0==u[1].length?0:(0,window.parseInt)(u[1],10),0==x[1].length?0:(0,window.parseInt)(x[1],10))||Ta(0==u[2].length,0==x[2].length)||Ta(u[2],x[2])}while(0==c)}return c},Ta=function(a,b){return a<b?-1:a>b?1:0},Va=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&&D(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)},qb=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)},rb=function(a,b){var c=db(a,b,void 0);
0<=c&&ob(a,c)},sb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},tb=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[]},ub=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,vb(arguments,1))},vb=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 m=a[k++],l=c(m);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,b[h++]=m)}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,m;h<k;){var l=h+k>>1,p;
c?p=b.call(e,a[l],l,a):p=b(d,a[l]);0<p?h=l+1:(k=l,m=!p)}return m?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=vb(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.Wa=this.Wa;
this.La=this.La},I=function(a,b){Lb(a,pa(Mb,b))},Lb=function(a,b){a.Wa?b.call(void 0):(a.La||(a.La=[]),a.La.push(n(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]],n(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.ur=!0},kc=function(a){a.stopPropagation()},mc=function(a){mc[" "](a);
return a},nc=function(a,b){try{return mc(a[b]),!0}catch(c){}return!1},pc=function(a){return Ga(oc,a)},qc=function(){return pc("Opera")||pc("OPR")},rc=function(){return(pc("Chrome")||pc("CriOS"))&&!qc()&&!pc("Edge")},sc=function(){return pc("iPhone")&&!pc("iPod")&&!pc("iPad")},tc=function(){var a=aa.document;
return a?a.documentMode:void 0},wc=function(a){return uc[a]||(uc[a]=0<=Ua(vc,a))},yc=function(a){return Number(xc)>=a},Cc=function(a){return zc?"webkit"+a:Ac?"o"+a.toLowerCase():a.toLowerCase()},Dc=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)},Fc=function(a){return!(!a||!a[Ec])},Hc=function(a,b,c,d,e){this.listener=a;
this.o=null;this.src=b;this.type=c;this.zf=!!d;this.bd=e;this.key=++Gc;this.dg=this.gi=!1},Ic=function(a){a.dg=!0;
a.listener=null;a.o=null;a.src=null;a.bd=null},Jc=function(a){this.src=a;
this.o={};this.A=0},Lc=function(a,b,c,d,e,h){var k=b.toString();
b=a.o[k];b||(b=a.o[k]=[],a.A++);var m=Kc(b,c,e,h);-1<m?(a=b[m],d||(a.gi=!1)):(a=new Hc(c,a.src,k,!!e,h),a.gi=d,b.push(a));return a},Mc=function(a,b){var c=b.type;
if(!(c in a.o))return!1;var d=qb(a.o[c],b);d&&(Ic(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d},Nc=function(a,b,c,d,e){a=a.o[b.toString()];
b=-1;a&&(b=Kc(a,c,d,e));return-1<b?a[b]:null},Kc=function(a,b,c,d){for(var e=0;e<a.length;++e){var h=a[e];
if(!h.dg&&h.listener==b&&h.zf==!!c&&h.bd==d)return e}return-1},Oc=function(a,b,c,d,e){if(da(b)){for(var h=0;h<b.length;h++)Oc(a,b[h],c,d,e);
return null}c=Pc(c);return Fc(a)?a.R(b,c,d,e):Qc(a,b,c,!1,d,e)},Qc=function(a,b,c,d,e,h){if(!b)throw Error("Invalid event type");
var k=!!e,m=Rc(a);m||(a[Sc]=m=new Jc(a));c=Lc(m,b,c,d,e,h);if(c.o)return c;d=Tc();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Uc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Vc++;return c},Tc=function(){var a=Wc,b=Xc?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},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);
return null}c=Pc(c);return Fc(a)?Lc(a.P,String(b),c,!0,d,e):Qc(a,b,c,!0,d,e)},Zc=function(a,b,c,d,e){if(da(b))for(var h=0;h<b.length;h++)Zc(a,b[h],c,d,e);
else c=Pc(c),Fc(a)?a.za(b,c,d,e):a&&(a=Rc(a))&&(b=Nc(a,b,c,!!d,e))&&$c(b)},$c=function(a){if(ga(a)||!a||a.dg)return!1;
var b=a.src;if(Fc(b))return Mc(b.P,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.zf):b.detachEvent&&b.detachEvent(Uc(c),d);Vc--;(c=Rc(b))?(Mc(c,a),0==c.A&&(c.src=null,b[Sc]=null)):Ic(a);return!0},Uc=function(a){return a in ad?ad[a]:ad[a]="on"+a},cd=function(a,b,c,d){var e=!0;
if(a=Rc(a))if(b=a.o[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var h=b[a];h&&h.zf==c&&!h.dg&&(h=bd(h,d),e=e&&!1!==h)}return e},bd=function(a,b){var c=a.listener,d=a.bd||a.src;
a.gi&&$c(a);return c.call(d,b)},Wc=function(a,b){if(a.dg)return!0;
if(!Xc){var c=b||r("window.event"),d=new Dc(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(l){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 m=cd(c[k],h,!0,d),e=e&&m}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],m=cd(c[k],h,!1,d),e=e&&m}return e}return bd(a,new Dc(b,this))},Rc=function(a){a=a[Sc];
return a instanceof Jc?a:null},Pc=function(a){if(ha(a))return a;
a[dd]||(a[dd]=function(b){return a.handleEvent(b)});
return a[dd]},J=function(){G.call(this);
this.P=new Jc(this);this.Pa=this;this.xa=null},ed=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.dg&&k.zf==c){var m=k.listener,l=k.bd||k.src;k.gi&&Mc(a.P,k);e=!1!==m.call(l,d)&&e}}return e&&0!=d.ur},fd=function(a,b,c){this.D=c;
this.B=a;this.C=b;this.A=0;this.o=null},gd=function(a,b){a.C(b);
a.A<a.D&&(a.A++,b.next=a.o,a.o=b)},hd=function(a){return function(){return a}},id=function(a){var b;
b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}},jd=function(a){aa.setTimeout(function(){throw a;
},0)},md=function(a,b){var c=a;
b&&(c=y(a,b));!ha(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!pc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(kd||(kd=ld()),kd(c)):aa.setImmediate(c)},ld=function(){var a=aa.MessageChannel;
"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!pc("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&&!pc("Trident")&&!pc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.ro;c.ro=null;a()}};
return function(a){d.next={ro: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)}},od=function(){this.A=this.o=null},pd=function(){this.next=this.scope=this.o=null},vd=function(a,b){qd||rd();
sd||(qd(),sd=!0);var c=td,d=ud.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d},rd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);
qd=function(){a.then(wd)}}else qd=function(){md(wd)}},wd=function(){for(var a=null;a=td.remove();){try{a.o.call(a.scope)}catch(b){jd(b)}gd(ud,a)}sd=!1},xd=function(a){a.prototype.then=a.prototype.then;
a.prototype.$goog_Thenable=!0},yd=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}},Ad=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){zd(c,2,a)},function(a){zd(c,3,a)})}catch(d){zd(this,3,d)}},Bd=function(){this.next=this.context=this.A=this.C=this.o=null;
this.B=!1},Ed=function(a,b,c){var d=Cd.get();
d.C=a;d.A=b;d.context=c;return d},Fd=function(a){return new Ad(function(b,c){c(a)})},Hd=function(a,b){return Gd(a,null,b,void 0)},Id=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?Id(c,b):(h?(d=h,d.next==c.C&&(c.C=d),d.next=d.next.next):Jd(c),Kd(c,e,3,b)))}a.B=null}else zd(a,3,b)},Md=function(a,b){a.A||2!=a.o&&3!=a.o||Ld(a);
a.C?a.C.next=b:a.A=b;a.C=b},Gd=function(a,b,c,d){var e=Ed(null,null,null);
e.o=new Ad(function(a,k){e.C=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){k(p)}}:a;
e.A=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Nd?k(b):a(e)}catch(p){k(p)}}:k});
e.o.B=a;Md(a,e);return e.o},zd=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 Ad)Md(e,Ed(h||v,k||null,a)),d=!0;else if(yd(e))e.then(h,k,a),d=!0;else{if(ia(e))try{var m=e.then;if(ha(m)){Od(e,m,h,k,a);d=!0;break a}}catch(l){k.call(a,l);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Ld(a),3!=b||c instanceof Nd||Pd(a,c))}},Od=function(a,b,c,d,e){function h(a){m||(m=!0,d.call(e,a))}
function k(a){m||(m=!0,c.call(e,a))}
var m=!1;try{b.call(a,k,h)}catch(l){h(l)}},Ld=function(a){a.F||(a.F=!0,vd(a.H,a))},Jd=function(a){var b=null;
a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b},Kd=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,Qd(b,c,d);else try{b.B?b.C.call(b.context):Qd(b,c,d)}catch(e){Rd.call(null,e)}gd(Cd,b)},Qd=function(a,b,c){2==b?a.C.call(a.context,c):a.A&&a.A.call(a.context,c)},Pd=function(a,b){a.D=!0;
vd(function(){a.D&&Rd.call(null,b)})},Nd=function(a){sa.call(this,a)},Sd=function(a,b){J.call(this);
this.o=a||1;this.A=b||aa;this.B=y(this.vx,this);this.C=K()},Td=function(a,b){a.o=b;
a.xc&&a.enabled?(a.stop(),a.start()):a.xc&&a.stop()},Ud=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)},Vd=function(a){aa.clearTimeout(a)},Wd=function(a,b,c){G.call(this);
this.o=a;this.C=b||0;this.A=c;this.B=y(this.Uo,this)},Xd=function(a){a.stop();
a.Uo()},Yd=function(a){if(a.classList)return a.classList;
a=a.className;return w(a)&&a.match(/\S+/g)||[]},Zd=function(a,b){return a.classList?a.classList.contains(b):jb(Yd(a),b)},L=function(a,b){a.classList?a.classList.add(b):Zd(a,b)||(a.className+=0<a.className.length?" "+b:b)},$d=function(a,b){if(a.classList)F(b,function(b){L(a,b)});
else{var c={};F(Yd(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}},be=function(a,b){a.classList?a.classList.remove(b):Zd(a,b)&&(a.className=ae(Yd(a),function(a){return a!=b}).join(" "))},ce=function(a,b){a.classList?F(b,function(b){be(a,b)}):a.className=ae(Yd(a),function(a){return!jb(b,a)}).join(" ")},M=function(a,b,c){c?L(a,b):be(a,b)},de=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);},ee=function(a){return eval("("+a+")")},ge=function(a,b){return(new fe(b)).Ac(a)},fe=function(a){this.o=a},he=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],he(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),ie(d,c),c.push(":"),he(a,a.o?a.o.call(b,d,e):e,c),h=","));c.push("}");return}}switch(typeof b){case "string":ie(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);}}},ie=function(a,b){b.push('"',a.replace(je,function(a){var b=ke[a];
b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ke[a]=b);return b}),'"')},le=function(a,b,c){return Math.min(Math.max(a,b),c)},me=function(a,b){var c=a%b;
return 0>c*b?c+b:c},ne=function(a,b,c){return a+c*(b-a)},pe=function(a){return oe(arguments,function(a,c){return a+c},0)},qe=function(a){return pe.apply(null,arguments)/arguments.length},re=function(a,b){this.x=n(a)?a:0;
this.y=n(b)?b:0},se=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1},te=function(a,b,c,d){this.top=a;
this.right=b;this.bottom=c;this.left=d},ue=function(a,b){this.width=a;
this.height=b},ve=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1},we=function(a,b,c,d){this.left=a;
this.top=b;this.width=c;this.height=d},xe=function(a){return new te(a.top,a.left+a.width,a.top+a.height,a.left)},ye=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},ze=function(a){return new ue(a.width,a.height)},Ae=function(a){return new re(a.left,a.top)},Be=function(a){G.call(this);
this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=!!a},Ce=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},De=function(a,b,c){vd(function(){a.apply(b,c)})},Ee=function(){},Ge=function(a){if(a instanceof Ee)return a;
if("function"==typeof a.dc)return a.dc(!1);if(ea(a)){var b=0,c=new Ee;c.next=function(){for(;;){if(b>=a.length)throw Fe;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");},He=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==Fe)throw d;
}else{a=Ge(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Fe)throw d;}}},Ie=function(a){if(ea(a))return tb(a);
a=Ge(a);var b=[];He(a,function(a){b.push(a)});
return b},Je=function(a,b){this.A={};
this.o=[];this.Ae=this.Aa=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 Je?(c=a.Qa(),d=a.Na()):(c=Wb(a),d=Vb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}},Me=function(a,b){return Ke(a.A,b)},Ne=function(a,b){return a===b},Oe=function(a){if(a.Aa!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];
Ke(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.Aa!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],Ke(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}},Ke=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Pe=function(a){return a.ab&&"function"==typeof a.ab?a.ab():ea(a)||w(a)?a.length:Sb(a)},Qe=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)},Re=function(a){if(a.Qa&&"function"==typeof a.Qa)return a.Qa();
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)}},Se=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=Re(a),e=Qe(a),h=e.length,k=0;k<h;k++)b.call(c,e[k],d&&d[k],a)},Ue=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);
if(ea(a)||w(a))return Te(a,b,c);for(var d=Re(a),e=Qe(a),h=e.length,k=0;k<h;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0},Ve=function(a,b,c,d,e,h,k){var m="";
a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));e&&(m+=e);h&&(m+="?"+h);k&&(m+="#"+k);return m},Xe=function(a){return a.match(We)},Ye=function(a){return a?(0,window.decodeURI)(a):a},Ze=function(a){return Ye(Xe(a)[3]||null)},$e=function(a){return Number(Xe(a)[4]||null)||null},af=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):"")}},bf=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("")},cf=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)cf(a,String(b[d]),c);
else null!=b&&c.push("&",a,""===b?"":"=",wa(b))},df=function(a,b,c){for(c=c||0;c<b.length;c+=2)cf(b[c],b[c+1],a);
return a},ef=function(a,b){for(var c in b)cf(c,b[c],a);
return a},ff=function(a){a=ef([],a);
a[0]="";return a.join("")},gf=function(a,b){return bf(2==arguments.length?df([a],arguments[1],0):df([a],arguments,1))},hf=function(a,b){return bf(ef([a],b))},jf=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},lf=function(a,b){var c=a.search(kf),d=jf(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))},nf=function(a,b){for(var c=a.search(kf),d=0,e,h=[];0<=(e=jf(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(mf,"$1")},of=function(a,b,c){a=[nf(a,b),
"&",b];null!=c&&a.push("=",wa(c));return bf(a)},O=function(a,b){this.A=this.H=this.C="";
this.D=null;this.J=this.B="";this.F=!1;var c;a instanceof O?(this.F=n(b)?b:a.F,pf(this,a.C),this.H=a.H,qf(this,a.A),rf(this,a.D),sf(this,a.B),tf(this,a.o.clone()),this.J=a.Ve()):a&&(c=Xe(String(a)))?(this.F=!!b,pf(this,c[1]||"",!0),this.H=uf(c[2]||""),qf(this,c[3]||"",!0),rf(this,c[4]),sf(this,c[5]||"",!0),tf(this,c[6]||"",!0),this.J=uf(c[7]||"")):(this.F=!!b,this.o=new vf(null,0,this.F))},pf=function(a,b,c){a.C=c?uf(b,!0):b;
a.C&&(a.C=a.C.replace(/:$/,""))},qf=function(a,b,c){a.A=c?uf(b,!0):b;
return a},rf=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},sf=function(a,b,c){a.B=c?uf(b,!0):b},tf=function(a,b,c){b instanceof vf?(a.o=b,wf(a.o,a.F)):(c||(b=xf(b,yf)),a.o=new vf(b,0,a.F));
return a},zf=function(a,b,c){a.o.set(b,c);
return a},Bf=function(a,b,c){da(c)||(c=[String(c)]);
Af(a.o,b,c)},Cf=function(a){zf(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^K()).toString(36));
return a},Df=function(a){return a instanceof O?a.clone():new O(a,void 0)},Ef=function(a,b,c,d){var e=new O(null,void 0);
a&&pf(e,a);b&&qf(e,b);c&&rf(e,c);d&&sf(e,d);return e},uf=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""},xf=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,Ff),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Ff=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},vf=function(a,b,c){this.Aa=this.o=null;
this.A=a||null;this.B=!!c},Hf=function(a){a.o||(a.o=new Je,a.Aa=0,a.A&&af(a.A,function(b,c){Gf(a,xa(b),c)}))},Gf=function(a,b,c){Hf(a);
a.A=null;b=If(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.Aa=a.Aa+1},Jf=function(a,b){Hf(a);
b=If(a,b);return Me(a.o,b)},Af=function(a,b,c){a.remove(b);
0<c.length&&(a.A=null,a.o.set(If(a,b),tb(c)),a.Aa=a.Aa+c.length)},If=function(a,b){var c=String(b);
a.B&&(c=c.toLowerCase());return c},wf=function(a,b){b&&!a.B&&(Hf(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();
b!=e&&(this.remove(b),Af(this,e,a))},a));
a.B=b},Lf=function(a){var b=["b",
"i","u"],b=b||[];return a=a.replace(/<\/?([^>]*)>?/g,function(a,d){return-1<b.indexOf(d)?a:""})},Mf=function(a,b){b.match(/\sstyle\s*=/);
a.innerHTML=b},Of=function(){return Nf?'<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>'},
Pf=function(){return Nf?'<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>'},Qf=function(){return Nf?'<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>'},
Rf=function(){return Nf?'<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>'},Sf=function(){return Nf?'<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>'},
Tf=function(){return Nf?'<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>'},Uf=function(){return Nf?
'<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-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>'},
Vf=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>'},
Wf=function(){return Nf?'<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-47" /><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-48" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-47" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-47" /><svg class="ytp-svg-sound-mute-group"><use class="ytp-svg-shadow" xlink:href="#ytp-svg-48" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-48" /></svg></svg>'},
Yf=function(a,b){return b?a.replace(Xf,""):a},dg=function(a,b){for(var c=0,d=0,e=!1,h=Yf(a,b).split(Zf),k=0;k<h.length;k++){var m=h[k];
$f.test(Yf(m,void 0))?(c++,d++):ag.test(m)?e=!0:bg.test(Yf(m,void 0))?d++:cg.test(m)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1},fg=function(){this.o="";
this.A=eg},gg=function(a){return a instanceof fg&&a.constructor===fg&&a.A===eg?a.o:"type_error:Const"},hg=function(a){var b=new fg;
b.o=a;return b},jg=function(){this.o="";
this.A=ig},kg=function(a){var b=new jg;
b.o=a;return b},mg=function(){this.o="";
this.A=lg},ng=function(a){if(a instanceof mg&&a.constructor===mg&&a.A===lg)return a.o;
ca(a);return"type_error:SafeUrl"},qg=function(a){if(a instanceof mg)return a;
a=a.$e?a.he():String(a);og.test(a)||(a="about:invalid#zClosurez");return pg(a)},pg=function(a){var b=new mg;
b.o=a;return b},sg=function(){this.o="";
this.A=rg},tg=function(a){if(a instanceof sg&&a.constructor===sg&&a.A===rg)return a.o;
ca(a);return"type_error:TrustedResourceUrl"},ug=function(a){var b=new sg;
b.o=a;return b},wg=function(){this.o="";
this.B=vg;this.A=null},xg=function(a){if(a instanceof wg&&a.constructor===wg&&a.B===vg)return a.o;
ca(a);return"type_error:SafeHtml"},zg=function(a){function b(a){if(da(a))F(a,b);
else{var h;a instanceof wg?h=a:(h=null,a.Kl&&(h=a.Ff()),a=Fa(a.$e?a.he():String(a)),h=yg(a,h));d+=xg(h);h=h.Ff();0==c?c=h:0!=h&&c!=h&&(c=null)}}
var c=0,d="";F(arguments,b);return yg(d,c)},yg=function(a,b){var c=new wg;
c.o=a;c.A=b;return c},Fg=function(a,b,c){var d=null,e,h="";
if(b)for(e in b){if(!Ag.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var m,l=a;m=e;if(k instanceof fg)k=gg(k);else if("style"==m.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 jg)){var l="",p=void 0;for(p in k){if(!/^[-_a-zA-Z0-9]+$/.test(p))throw Error("Name allows only [-_a-zA-Z0-9], got: "+p);var t=k[p];if(null!=t){if(t instanceof fg)t=gg(t);else if(Bg.test(t)){for(var u=
!0,x=!0,A=0;A<t.length;A++){var C=t.charAt(A);"'"==C&&x?u=!u:'"'==C&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";l+=p+":"+t+";"}}k=l?kg(l):Cg}l=void 0;k instanceof jg&&k.constructor===jg&&k.A===ig?l=k.o:(ca(k),l="type_error:SafeStyle");k=l}else{if(/^on/i.test(m))throw Error('Attribute "'+m+'" requires goog.string.Const value, "'+k+'" given.');if(m.toLowerCase()in Dg)if(k instanceof sg)k=tg(k);else if(k instanceof mg)k=ng(k);else if(w(k))k=qg(k).he();else throw Error('Attribute "'+m+'" on tag "'+
l+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.$e&&(k=k.he());m=m+'="'+Fa(String(k))+'"';h=h+(" "+m)}}e="<"+a+h;null!=c?da(c)||(c=[c]):c=[];!0===Eg[a.toLowerCase()]?e+=">":(d=zg(c),e+=">"+xg(d)+"</"+a+">",d=d.Ff());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return yg(e,d)},Gg=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},Hg=function(a,b){var c;
c=b instanceof mg?b:qg(b);a.href=ng(c)},Lg=function(a){return a?new Ig(Jg(a)):Kg||(Kg=new Ig)},Ng=function(a,b){var c=b||window.document;
return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Mg("*",a,b)},Og=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=Mg("*",a,b)[0];return d||null},Mg=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},Qg=function(a,b){Ob(b,function(b,d){"style"==d?
a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Pg.hasOwnProperty(d)?a.setAttribute(Pg[d],b):ua(d,"aria-")||ua(d,"data-")?a.setAttribute(d,b):a[d]=b})},Rg=function(a){a=a.document;
a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new ue(a.clientWidth,a.clientHeight)},Ug=function(a){var b=Sg(a);
a=a.parentWindow||a.defaultView;return Tg&&wc("10")&&a.pageYOffset!=b.scrollTop?new re(b.scrollLeft,b.scrollTop):new re(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},Sg=function(a){return a.scrollingElement?a.scrollingElement:zc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},Vg=function(a){return a?a.parentWindow||a.defaultView:window},P=function(a,b,c){return Wg(window.document,arguments)},Wg=function(a,b){var c=b[0],d=b[1];
if(!Xg&&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(" "):Qg(c,d));2<b.length&&Yg(a,c,b,2);return c},Yg=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(Zg(h)?tb(h):h,e)}},$g=function(a,b){a.appendChild(b)},ah=function(a,b){Yg(Jg(a),a,arguments,1)},bh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},ch=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},dh=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},eh=function(a,b){var c=b.parentNode;
c&&c.replaceChild(a,b)},gh=function(a){return fh&&void 0!=a.children?a.children:ae(a.childNodes,function(a){return 1==a.nodeType})},ih=function(a){return n(a.firstElementChild)?a.firstElementChild:hh(a.firstChild)},hh=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;
return a},jh=function(a){return ia(a)&&1==a.nodeType},lh=function(a){var b;
if(kh&&!(Tg&&wc("9")&&!wc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return jh(b)?b:null},mh=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},Jg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},nh=function(a){try{return a.contentWindow||(a.contentDocument?Vg(a.contentDocument):null)}catch(b){}return null},oh=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{bh(a);var c=Jg(a);a.appendChild(c.createTextNode(String(b)))}},ph=function(a){if("outerHTML"in a)return a.outerHTML;
var b=Jg(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML},sh=function(a){var b;
if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!qh(a)||rh(a)):qh(a)&&rh(a))&&Tg){var c;!ha(a.getBoundingClientRect)||Tg&&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},qh=function(a){a=a.getAttributeNode("tabindex");
return null!=a&&a.specified},rh=function(a){a=a.tabIndex;
return ga(a)&&0<=a&&32768>a},Zg=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},uh=function(a,b,c,d){if(!b&&!c)return null;
var e=b?b.toUpperCase():null;return th(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&jb(a.className.split(/\s+/),c))},d)},vh=function(a,b){return uh(a,null,b,void 0)},th=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;
a=a.parentNode;d++}return null},Ig=function(a){this.o=a||aa.document||window.document},wh=function(a){a=a.o;
return a.parentWindow||a.defaultView},yh=function(a,b){if(a in b)return b[a];
var c=xh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]},Ah=function(a,b){var c;
zh(a,function(a){c=yh(a,b);return!!c});
return c},Bh=function(a,b){if("on"+a in b)return a;
var c=xh+a;return"on"+c in b?c:null},Ch=function(){return!!Ah(["fullscreenEnabled",
"fullScreenEnabled"],window.document)},Dh=function(){return Ah(["fullscreenElement",
"fullScreenElement"],window.document)},Hh=function(a){a=a||{};
this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ec(Eh);this.assets=a.assets||{};this.attrs=a.attrs||ec(Fh);this.params=a.params||ec(Gh);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||{}},Ih=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);
return a?50<=(0,window.parseInt)(a[1],10):!1},Jh=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)}},Ph=function(a){if(a>=Kh.length)Lh();
else{var b=Kh[a],c="chrome-extension://"+b+Mh;0<=Nh.indexOf(b)?Jh(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,Oh(c,Lh)):Ph(a+1)}):Oh(c,function(){Ph(a+1)})}},Oh=function(a,b){var c=window.document.createElement("script");
c.onerror=b;c.src=a;(window.document.head||window.document.documentElement).appendChild(c)},Lh=function(){var a=window.__onGCastApiAvailable;
a&&"function"==typeof a&&a(!1,"No cast extension found")},Qh=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;
if(a){a({command:"cast.sender.init"});return}}window.chrome?(a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=Ih()?"50":"",Oh("//www.gstatic.com/eureka/clank"+a+Mh,Lh)):Ph(0)):Lh()},Wh=function(a){Rh();
Sh.push(a);Vh(Sh)},Xh=function(a){var b=r("yt.mdx.remote.debug.handlers_");
qb(b||[],a)},$h=function(a,b){Rh();
var c=Sh,d=Yh(a,String(b));kb(c)?Zh(d):(Vh(c),F(c,function(a){a(d)}))},Rh=function(){Sh||(Sh=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Sh,void 0))},Zh=function(a){var b=(ai+1)%50;
ai=b;bi[b]=a;ci||(ci=49==b)},Vh=function(a){var b=bi;
if(b[0]){var c=ai,d=ci?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
bi=Array(50);ai=-1;ci=!1}},Yh=function(a,b){var c=(K()-di)/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("")},ei=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||""},fi=function(a,b){return!!b&&(a.id==b||a.uuid==b)},gi=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},hi=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid}},ii=function(a){return new ei(a)},ki=function(a){return da(a)?ji(a,ii):[]},li=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"},mi=function(a){return da(a)?"["+ji(a,li).join(",")+"]":"null"},oi=function(a,b,c){a&&(a.dataset?a.dataset[ni(b)]=c:a.setAttribute("data-"+b,c))},ni=function(a){return pi[a]||(pi[a]=String(a).replace(/\-([a-z])/g,
function(a,c){return c.toUpperCase()}))},si=function(a){qi(ri,arguments)},ti=function(a,b){return a in ri?ri[a]:b},vi=function(a,b){ha(a)&&(a=ui(a));
return window.setTimeout(a,b)},wi=function(a,b){ha(a)&&(a=ui(a));
return window.setInterval(a,b)},xi=function(a){window.clearTimeout(a)},yi=function(a){window.clearInterval(a)},ui=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw zi(b),b;
}}:a},zi=function(a,b){var c=r("yt.logging.errors.log");
c?c(a,b,void 0,void 0):(c=ti("ERRORS",[]),c.push([a,b,void 0,void 0]),si("ERRORS",c))},Bi=function(a){qi(Ai,arguments)},Q=function(a,b,c){var d=b||{};
if(a=a in Ai?Ai[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a},qi=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]}},Hi=function(a,b,c){var d=Ci();
if(d){var e=d.subscribe(a,function(){if(!Di||Di!=e){var d=arguments,k;k=function(){Ei[e]&&b.apply(c||window,d)};
try{Fi[a]?k():vi(k,0)}catch(m){zi(m)}}},c);
Ei[e]=!0;Gi[a]||(Gi[a]=[]);Gi[a].push(e);return e}return 0},Ii=function(a){var b=Ci();
b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Ei[a]}))},Ji=function(a,b){var c=Ci();
c&&c.publish.apply(c,arguments)},Ki=function(a,b){Fi[a]=!0;
var c=Ci();c&&c.publish.apply(c,arguments);Fi[a]=!1},Ci=function(){return r("yt.pubsub.instance_")},Li=function(){},Mi=function(){},Ni=function(a){this.o=a},Oi=function(){var a=null;
try{a=window.localStorage||null}catch(b){}this.o=a},Pi=function(){var a=null;
try{a=window.sessionStorage||null}catch(b){}this.o=a},Qi=function(a){this.o=a},Ri=function(a){this.o=a},Si=function(a){this.data=a},Ti=function(a){return!n(a)||a instanceof Si?a:new Si(a)},Ui=function(a){this.o=a},Vi=function(a){var b=a.creation;
a=a.expiration;return!!a&&a<K()||!!b&&b>K()},Wi=function(a){this.o=a},Xi=function(a,b){var c=[];
He(b,function(a){var b;try{b=Wi.prototype.A.call(this,a,!0)}catch(h){if("Storage: Invalid value was encountered"==h)return;throw h;}n(b)?Vi(b)&&c.push(a):c.push(a)},a);
return c},Yi=function(a,b){var c=Xi(a,b);
F(c,function(a){Wi.prototype.remove.call(this,a)},a)},$i=function(){var a=Zi;
Yi(a,a.o.dc(!0))},bj=function(a,b,c){var d=c&&0<c?c:0;
c=d?K()+1E3*d:0;if((d=d?Zi:aj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}},cj=function(a){if(!aj&&!Zi||!window.JSON)return null;
var b;try{b=aj.get(a)}catch(c){}if(!w(b))try{b=Zi.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b},dj=function(a){aj&&aj.remove(a);
Zi&&Zi.remove(a)},ej=function(a,b){gg(a);
gg(a);return yg(b,null)},fj=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 m=xa(k[0]||""),k=xa(k[1]||"");m in d?da(d[m])?ub(d[m],k):d[m]=[d[m],k]:d[m]=k}}return d},gj=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)},hj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));
return fj(a,"&")},ij=function(a){a=a.split(",");
return a=a.map(function(a){return hj(a)})},jj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),hj(1<a.length?a[1]:a[0])):{}},lj=function(a,b){return kj(a,b||{},!0)},kj=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=hj(e[1]||""),h;for(h in b)if(c||!Yb(e,h))e[h]=b[h];return hf(a,e)+d},mj=function(a){var b;
b||(b=window.location.href);var c=Xe(a)[1]||null,d=Ze(a);c&&d?(a=Xe(a),b=Xe(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Ze(b)==d&&$e(b)==$e(a):!0;return a},nj=function(){var a;
a||(a=window.document.location.href);a=Xe(a)[1]||null;return null!==a&&"https"==a},oj=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}},rj=function(a,b,c,d,e,h,k){function m(){4==(l&&"readyState"in l?l.readyState:0)&&b&&ui(b)(l)}
var l=pj&&pj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",m,!1):l.onreadystatechange=m;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);h&&(l.responseType=h);k&&(l.withCredentials=!0);h="POST"==c;if(e=qj(a,e))for(var p in e)l.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(h=!1);h&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l},qj=function(a,b){b=b||{};
var c=mj(a),d;for(d in sj){var e=ti(sj[d]),h;if((h=e)&&!(h=c)){h=d;var k=ti("CORS_HEADER_WHITELIST")||{},m=Ze(a);h=m?(k=k[m])?jb(k,h):!1:!0}h&&(b[d]=e)}return b},uj=function(a,b){b.method="POST";
b.Hb||(b.Hb={});tj(a,b)},vj=function(a,b){var c=ti("XSRF_FIELD_NAME",void 0),d;
b.headers&&(d=b.headers["Content-Type"]);return!b.qO&&(!Ze(a)||b.withCredentials||Ze(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Hb&&b.Hb[c])},tj=function(a,b){var c=b.format||"JSON";
b.uO&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=ti("XSRF_FIELD_NAME",void 0),e=ti("XSRF_TOKEN",void 0),h=b.Rc;h&&(h[d]&&delete h[d],a=lj(a,h));var k=b.postBody||"",h=b.Hb;vj(a,b)&&(h||(h={}),h[d]=e);h&&w(k)&&(d=hj(k),hc(d,h),k=ff(d));var m=!1,l,p=rj(a,function(a){if(!m){m=!0;l&&xi(l);var d=oj(a),e=null;if(d||400<=a.status&&500>a.status)e=wj(c,a,b.Qw);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.sb&&b.sb.call(h,a,e):b.onError&&b.onError.call(h,a,e);b.Zb&&b.Zb.call(h,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Md&&0<b.timeout&&(l=vi(function(){m||(m=!0,p.abort(),xi(l),b.Md.call(b.context||aa,p))},b.timeout));
return p},wj=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=ee(a));break;case "XML":if(b=(b=b.responseXML)?yj(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=zj(a)})}c&&Aj(d);
return d},Aj=function(a){if(ia(a))for(var b in a)"html_content"==b||va(b,"_html")?a[b]=ej(hg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Aj(a[b])},yj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null},zj=function(a){var b="";
F(a.childNodes,function(a){b+=a.nodeValue});
return b},Bj=function(a){this.C=this.B="";
this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=$e(a)||"";b&&(this.C=":"+b);this.B=Ze(a)||"";a=oc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ua(a,"10.0")&&(this.A=!1))},Cj=function(a,b,c,d){var e=a.o;
if(n(d)?d:a.A)e="https://"+a.B+a.C+a.o;return hf(e+b,c||{})},Dj=function(a,b,c,d,e){a={format:"JSON",
method:"POST",context:a,timeout:5E3,withCredentials:!1,sb:pa(a.F,d,!0),onError:pa(a.D,e),Md:pa(a.G,e)};c&&(a.Hb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return tj(b,a)},Ej=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")},Fj=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)})},Gj=function(a){return ji(a,function(a){return{key:a.id,
name:a.name}})},Hj=function(a){return ji(a,function(a){return new Ej(a)})},Ij=function(a,b){return eb(a,function(a){return a.id==b})},Jj=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})},Kj=function(a,b){return eb(a,function(a){return fi(a,b)})},Lj=function(){G.call(this);
this.Z=new Be;I(this,this.Z)},Mj=function(a){Lj.call(this);
this.F=a;this.screens=[]},Nj=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},Oj=function(a,b){var c=a.screens.length!=b.length;
a.screens=ae(a.screens,function(a){return!!Jj(b,a)});
for(var d=0,e=b.length;d<e;d++)c=Nj(a,b[d])||c;return c},Pj=function(a,b){var c=a.screens.length;
a.screens=ae(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c},Qj=function(a,b,c,d){Lj.call(this);
this.G=a;this.F=b;this.C=c;this.D=d;this.B=0;this.o=null;this.A=window.NaN},Rj=function(a,b){this.A=a;
this.o=b+"::"},Sj=function(a){var b=new Oi;
return b.isAvailable()?a?new Rj(b,a):b:null},Uj=function(a){this.o=new Je;
if(a){a=Qe(a);for(var b=a.length,c=0;c<b;c++)Tj(this,a[c])}},Vj=function(a){var b=typeof a;
return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a},Tj=function(a,b){a.o.set(Vj(b),b)},Wj=function(a,b){var c=Pe(b);
if(a.ab()>c)return!1;!(b instanceof Uj)&&5<c&&(b=new Uj(b));return Ue(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.Se&&"function"==typeof c.Se?c.Se(a):ea(c)||w(c)?jb(c,a):Tb(c,a)})},Yj=function(a){this.app=this.name=this.id="";
this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Uj;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 Uj(ae((a.capabilities||"").split(","),pa(Ub,Xj))))},Zj=function(a){this.o=a},dk=function(a){a=(a.o.cookie||"").split(ck);
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}},jk=function(){var a=ek(),b=fk();
jb(a,b);gk()&&Hb(a,b);a=hk(a);if(kb(a))try{ik.remove("remote_sid","/","youtube.com")}catch(d){}else try{var c=a.join(",");ik.set("remote_sid",c,-1,"/","youtube.com")}catch(d){}},ek=function(){var a=cj("yt-remote-connected-devices")||[];
Cb(a);return a},hk=function(a){if(kb(a))return[];
var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return ji(a,function(a,b){return 0==b?a:a.substring(c.length)})},kk=function(a){bj("yt-remote-connected-devices",a,86400)},fk=function(){if(lk)return lk;
var a=cj("yt-remote-device-id");a||(a=Fj(),bj("yt-remote-device-id",a,31536E3));for(var b=ek(),c=1,d=a;jb(b,d);)c++,d=a+"#"+c;return lk=d},mk=function(){return cj("yt-remote-session-browser-channel")},gk=function(){return cj("yt-remote-session-screen-id")},pk=function(a){5<a.length&&(a=a.slice(a.length-5));
var b=ji(nk(),function(a){return a.loungeToken}),c=ji(a,function(a){return a.loungeToken});
Te(c,function(a){return!jb(b,a)})&&ok();
bj("yt-remote-local-screens",a,31536E3)},nk=function(){return cj("yt-remote-local-screens")||[]},ok=function(){bj("yt-remote-lounge-token-expiration",!0,86400)},qk=function(a){bj("yt-remote-online-screens",a,60)},rk=function(){return cj("yt-remote-online-dial-devices")||[]},sk=function(a,b){bj("yt-remote-session-browser-channel",a);
bj("yt-remote-session-screen-id",b);var c=ek(),d=fk();jb(c,d)||c.push(d);kk(c);jk()},tk=function(a){a||(dj("yt-remote-session-screen-id"),dj("yt-remote-session-video-id"));
jk();a=ek();qb(a,fk());kk(a)},vk=function(){if(!uk){var a=Sj();
a&&(uk=new Qi(a))}return uk?!!uk.get("yt-remote-use-staging-server"):!1},xk=function(a){Mj.call(this,"LocalScreenService");
this.A=a;this.o=window.NaN;wk(this);this.info("Initializing with "+mi(this.screens))},yk=function(a){if(a.screens.length){var b=ji(a.screens,function(a){return a.id}),c=Cj(a.A,"/pairing/get_lounge_token_batch");
Dj(a.A,c,{screen_ids:b.join(",")},y(a.Ix,a),y(a.Hx,a))}},wk=function(a){var b=ki(nk()),b=ae(b,function(a){return!a.uuid});
return Oj(a,b)},zk=function(a,b){pk(ji(a.screens,hi));
b&&ok()},Bk=function(a,b){Lj.call(this);
this.D=b;for(var c=cj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),h=0,k=e.length;h<k;++h){var m=e[h].id;d[m]=jb(c,m)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;Ak("Initialized with "+ge(this.o))},Ck=function(a,b,c){var d=Cj(a.F,"/pairing/get_screen_availability");
Dj(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))},Ek=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||(Ak("Updated online screens: "+ge(a.o)),a.o=b,a.S("screenChange"));Dk(a)},Fk=function(a){(0,window.isNaN)(a.B)||xi(a.B);
a.B=vi(y(a.pm,a),0<a.C&&a.C<K()?2E4:1E4)},Ak=function(a){$h("OnlineScreenService",a)},Gk=function(a){var b={};
F(a.D(),function(a){a.token?b[a.token]=a.id:this.$a("Requesting availability of screen w/o lounge token.")});
return b},Dk=function(a){var b=Wb(Pb(a.o,function(a){return a}));
Cb(b);b.length?bj("yt-remote-online-screen-ids",b.join(","),60):dj("yt-remote-online-screen-ids");a=ae(a.D(),function(a){return!!this.o[a.id]},a);
qk(ji(a,hi))},Ik=function(a){Mj.call(this,"ScreenService");
this.D=a;this.o=this.A=null;this.B=[];this.C={};Hk(this)},Lk=function(a,b,c,d,e,h){a.info("getAutomaticScreenByIds "+c+" / "+b);
c||(c=a.C[b]);var k=a.qc();if(k=(c?Kj(k,c):null)||Kj(k,b)){k.uuid=b;var m=Jk(a,k);Ck(a.o,m,function(a){e(a?m:null)})}else c?Kk(a,c,y(function(a){var h=Jk(this,new ei({name:d,
screenId:c,loungeToken:a,dialId:b||""}));Ck(this.o,h,function(a){e(a?h:null)})},a),h):e(null)},Mk=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},Kk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);
var e={Hb:{screen_ids:b},method:"POST",context:a,sb:function(a,e){var m=e&&e.screens||[];m[0]&&m[0].screenId==b?c(m[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
tj(Cj(a.D,"/pairing/get_lounge_token_batch"),e)},Nk=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: "+mi(a.screens))},Hk=function(a){Ok(a);
a.A=new xk(a.D);a.A.subscribe("screenChange",y(a.Tx,a));Nk(a);a.B=ki(cj("yt-remote-automatic-screen-cache")||[]);Ok(a);a.info("Initializing automatic screens: "+mi(a.B));a.o=new Bk(a.D,y(a.qc,a,!0));a.o.subscribe("screenChange",y(function(){this.S("onlineScreenChange")},a))},Jk=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=Kj(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),bj("yt-remote-automatic-screen-cache",ji(a.B,hi)));Ok(a);a.C[b.uuid]=b.id;bj("yt-remote-device-id-map",a.C,31536E3);return b},Ok=function(a){a.C=cj("yt-remote-device-id-map")||{}},Pk=function(a,b,c){Lj.call(this);
this.M=c;this.J=a;this.A=b;this.B=null},Qk=function(a,b){$h(a.M,b)},Sk=function(a,b){Pk.call(this,a,b,"CastSession");
this.o=null;this.D=0;this.C=null;this.G=y(this.rE,this);this.F=y(this.$C,this);this.D=vi(y(function(){Rk(this,null)},this),12E4)},Uk=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];
b&&Tk(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null},Tk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+ge(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(){Qk(this,"Failed to send message: "+b+".")},a)):Qk(a,"Sending yt message without session: "+ge(d))},Rk=function(a,b){xi(a.D);
if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=y(a.ej,a),d=y(a.kc,a);a.Oo(b,c,d,5)}}else a.kc(Error("Waiting for session status timed out."))},Vk=function(a,b){Pk.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.uE,this);this.o=v},Wk=function(a){a.o=a.J.gs(a.K,a.A.label,a.A.friendlyName,y(function(a){this.o=v;
this.ej(a)},a),y(function(a){this.o=v;
this.kc(a)},a))},Xk=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}vk()&&(b.env_useStageMdx=1);return ff(b)},Yk=function(a,b){Pk.call(this,a,b,"ManualSession");
this.o=vi(y(this.Zf,this,null),150)},Zk=function(a){Lj.call(this);
this.A=a;this.o=null;this.D=!1;this.B=[];this.C=y(this.XB,this)},$k=function(a,b){return b?eb(a.B,function(a){return fi(b,a.label)},a):null},al=function(a){$h("Controller",a)},bl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)},cl=function(a){return a.D||!!a.B.length||!!a.o},dl=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.Tq,a,b)),b.B?a.S("yt-remote-cast2-session-change",b.B):c&&a.o.Zf(null)):a.S("yt-remote-cast2-session-change",null)},el=function(a){var b=a.A.es(),c=a.o&&a.o.A;
a=ji(b,function(a){c&&fi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,h=$k(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},nl=function(a,b,c){fl()?hl(b)&&(il(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?jl(a,c):(window.__onGCastApiAvailable=function(b,e){b?jl(a,c):(kl("Failed to load cast API: "+e),ll(!1),il(!1),dj("yt-remote-cast-available"),dj("yt-remote-cast-receiver"),ml(),c(!1))},Qh())):gl("Cannot initialize because not running Chrome")},
ml=function(){gl("dispose");
var a=ol();a&&a.dispose();pl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);ql(!1);Ii(rl);rl.length=0},sl=function(){return!!cj("yt-remote-cast-installed")},tl=function(){var a=cj("yt-remote-cast-receiver");
return a?Ja(a.friendlyName):null},ul=function(){return sl()?ol()?pl.getCastSession():(kl("getCastSelector: Cast is not initialized."),null):(kl("getCastSelector: Cast API is not installed!"),null)},zl=function(){sl()?ol()?xl()?(gl("Requesting cast selector."),pl.requestSession()):(gl("Wait for cast API to be ready to request the session."),rl.push(Hi("yt-remote-cast2-api-ready",zl))):kl("requestCastSelector: Cast is not initialized."):kl("requestCastSelector: Cast API is not installed!")},Al=function(a){xl()?
ol().setLaunchParams(a):kl("setLaunchParams called before ready.")},Cl=function(){var a=Bl();
xl()?ol().setConnectedScreenStatus(a,"YouTube TV"):kl("setConnectedScreenStatus called before ready.")},fl=function(){var a=0<=oc.search(/\ (CrMo|Chrome|CriOS)\//);
return Dl||a},El=function(a,b){pl.init(a,b)},hl=function(a){var b=!1;
if(!pl){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new Zk(a),c.subscribe("yt-remote-cast2-availability-change",function(a){bj("yt-remote-cast-available",a);Ji("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){gl("onReceiverSelected: "+a.friendlyName);
bj("yt-remote-cast-receiver",a);Ji("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){gl("onReceiverResumed: "+a.friendlyName);
bj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){gl("onSessionChange: "+li(a));
a||dj("yt-remote-cast-receiver");Ji("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
pl=c}gl("cloudview.createSingleton_: "+b);return b},ol=function(){pl||(pl=r("yt.mdx.remote.cloudview.instance_"));
return pl},jl=function(a,b){ll(!0);
il(!1);El(a,function(a){a?(ql(!0),Ji("yt-remote-cast2-api-ready")):(kl("Failed to initialize cast API."),ll(!1),dj("yt-remote-cast-available"),dj("yt-remote-cast-receiver"),ml());b(a)})},gl=function(a){$h("cloudview",a)},kl=function(a){$h("cloudview",a)},ll=function(a){gl("setCastInstalled_ "+a);
bj("yt-remote-cast-installed",a)},xl=function(){return!!r("yt.mdx.remote.cloudview.apiReady_")},ql=function(a){gl("setApiReady_ "+a);
q("yt.mdx.remote.cloudview.apiReady_",a,void 0)},il=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)},Fl=function(a,b){this.action=a;
this.params=b||null},Hl=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 Gl||(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}},Il=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}},Kl=function(a,b,c,d){a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");
return Zb(Jl,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})},Ml=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";
d=!!d;var e=Kl(a,b,c,d);if(e)return e;var e=++Ll.count+"",h=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=h?function(d){d=new Hl(d);if(!th(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Hl(b);
b.currentTarget=a;return c.call(a,b)};
k=ui(k);a.addEventListener?("mouseenter"==b&&h?b="mouseover":"mouseleave"==b&&h?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);Jl[e]=[a,b,c,k,d];return e},Ol=function(a,b,c){var d;
return d=Ml(a,b,function(){Nl(d);c.apply(a,arguments)},void 0)},Ql=function(a,b){return Pl(a,b,function(a){return Zd(a,"iv-card-poll-choice-input")})},Pl=function(a,b,c){var d=a||window.document;
return Ml(d,"change",function(a){var h=th(a.target,function(a){return a===d||c(a)});
h&&h!==d&&!h.disabled&&(a.currentTarget=h,b.call(h,a))})},Nl=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Jl){var c=Jl[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 Jl[a]}}))},Rl=function(a){for(var b in Jl)Jl[b][0]==a&&Nl(b)},Sl=function(a){a=a||window.event;
a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a},Tl=function(a){a=a||window.event;
return a.path&&a.path.length?a.path[0]:Sl(a)},Ul=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},Vl=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 re(b,c)},Wl=function(a){a=a||window.event;
a.returnValue=!1;a.preventDefault&&a.preventDefault()},Xl=function(a){a=a||window.event;
return!1===a.returnValue||a.Jp&&a.Jp()},Yl=function(a){a=a||window.event;
return a.keyCode?a.keyCode:a.which},Zl=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},$l=function(){if(!("cast"in window))return!1;
var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a},am=function(a){$h("CAST",a)},cm=function(a){var b=bm();
b&&b.logMessage&&b.logMessage(a)},em=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;dm.length;)dm.shift()()},jm=function(){if(!r("yt.mdx.remote.castv2_")&&!fm&&(kb(gm)&&ub(gm,rk()),$l())){var a=bm();
a?(a.removeReceiverListener("YouTube",hm),a.addReceiverListener("YouTube",hm),am("API initialized in the other binary")):(a=new window.cast.Api,im(a),a.addReceiverListener("YouTube",hm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){vi(function(){window.location.reload(!0)},1E3)}),Wh(cm),am("API initialized"));
fm=!0}},km=function(){var a=bm();
a&&(am("API disposed"),Xh(cm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",hm),im(null));fm=!1;dm=null;(a=Kl(window,"message",em,!1))&&Nl(a)},lm=function(a){var b=db(gm,function(b){return b.id==a.id});
0<=b&&(gm[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})},hm=function(a){a.length&&am("Updating receivers: "+ge(a));
mm(a);Ji("yt-remote-cast-device-list-update");F(nm(),function(a){om(a.id)});
F(a,function(a){if(a.isTabProjected){var c=pm(a.id);am("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");vi(function(){Ji("yt-remote-cast-device-tab-projected",c.id)},1E3)}})},qm=function(a,b){am("Updating "+a+" activity status: "+ge(b));
var c=pm(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=""),lm(c),Ji("yt-remote-cast-device-status-update",c)):am("Device not found")},nm=function(){jm();
return Hj(gm)},mm=function(a){a=ji(a,function(a){var c={id:a.id,
name:Ja(a.name)};if(a=pm(a.id))c.activityId=a.o,c.status=a.status;return c});
lb(gm);ub(gm,a)},pm=function(a){var b=nm();
return eb(b,function(b){return b.id==a})||null},om=function(a){var b=pm(a),c=bm();
c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");qm(a,b)})},rm=function(a){jm();
var b=pm(a),c=bm();c&&b&&b.o?(am("Stopping cast activity"),c.stopActivity(b.o,pa(qm,a))):am("Dropping cast activity stop")},bm=function(){return r("yt.mdx.remote.castapi.api_")},im=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)},sm=function(){},tm=function(){this.o=K()},um=function(a,b){this.A=new fe(a);
this.o=b?ee:de},vm=function(a){this.A=0;
this.B=a||100;this.o=[]},wm=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},xm=function(a,b,c){G.call(this);
this.C=null!=c?y(a,c):a;this.B=b;this.A=y(this.vC,this);this.o=[]},ym=function(a){a.We=Ud(a.A,a.B);
a.C.apply(null,a.o)},zm=function(a){G.call(this);
this.C=a;this.A={}},Bm=function(a,b,c,d,e){Am(a,b,c,d,!1,e)},Am=function(a,b,c,d,e,h){da(c)||(c&&(Cm[0]=c.toString()),c=Cm);
for(var k=0;k<c.length;k++){var m=Oc(b,c[k],d||a.handleEvent,e||!1,h||a.C||a);if(!m)break;a.A[m.key]=m}return a},Em=function(a,b,c,d){Dm(a,b,c,d,void 0)},Fm=function(a,b,c,d,e){Dm(a,b,c,d,!1,e)},Dm=function(a,b,c,d,e,h){if(da(c))for(var k=0;k<c.length;k++)Dm(a,b,c[k],d,e,h);
else(b=Yc(b,c,d||a.handleEvent,e,h||a.C||a))&&(a.A[b.key]=b)},Gm=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"}},Hm=function(){},Jm=function(a){var b;
(b=a.o)||(b={},Im(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b},Km=function(){},Lm=function(a){return(a=Im(a))?new window.ActiveXObject(a):new window.XMLHttpRequest},Im=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},Mm=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 zm(this);this.A=new Sd;Td(this.A,250)},Om=function(a,b,c){a.Lf=1;
a.ie=Cf(b.clone());a.bf=c;a.F=!0;Nm(a,null)},Pm=function(a,b,c,d,e){a.Lf=1;
a.ie=Cf(b.clone());a.bf=null;a.F=c;e&&(a.xr=!1);Nm(a,d)},Nm=function(a,b){a.lh=K();
Qm(a);a.ve=a.ie.clone();Bf(a.ve,"t",a.G);a.xh=0;a.Ab=a.o.Kk(a.o.rh()?b:null);0<a.nl&&(a.ij=new xm(y(a.Wr,a,a.Ab),a.nl));a.C.R(a.Ab,"readystatechange",a.mD);var c=a.Xe?ec(a.Xe):{};a.bf?(a.Ej="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Ab.send(a.ve,a.Ej,a.bf,c)):(a.Ej="GET",a.xr&&!zc&&(c.Connection="close"),a.Ab.send(a.ve,a.Ej,null,c));a.o.Mc(1)},Ym=function(a,b,c){for(var d=!0;!a.Ne&&a.xh<c.length;){var e=Rm(a,c);
if(e==Sm){4==b&&(a.Ye=4,Tm(),d=!1);break}else if(e==Um){a.Ye=4;Tm();d=!1;break}else Vm(a,e)}4==b&&0==c.length&&(a.Ye=1,Tm(),d=!1);a.Pc=a.Pc&&d;d||(Wm(a),Xm(a))},Rm=function(a,b){var c=a.xh,d=b.indexOf("\n",c);
if(-1==d)return Sm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Um;d+=1;if(d+c>b.length)return Sm;var e=b.substr(d,c);a.xh=d+c;return e},an=function(a,b){a.lh=K();
Qm(a);var c=b?window.location.hostname:"";a.ve=a.ie.clone();zf(a.ve,"DOMAIN",c);zf(a.ve,"t",a.G);try{a.Qc=new window.ActiveXObject("htmlfile")}catch(p){Wm(a);a.Ye=7;Tm();Xm(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 Zm)k=Zm[k];else if(k in $m)k=Zm[k]=$m[k];else{var m=k,l=k.charCodeAt(0);if(31<l&&127>l)m=k;else{if(256>l){if(m="\\x",16>l||256<l)m+="0"}else m="\\u",4096>l&&(m+="0");m+=l.toString(16).toUpperCase()}k=
Zm[k]=m}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=ej(hg("b/12014412"),d);a.Qc.open();a.Qc.write(xg(c));a.Qc.close();a.Qc.parentWindow.m=y(a.EC,a);a.Qc.parentWindow.d=y(a.Zq,a,!0);a.Qc.parentWindow.rpcClose=y(a.Zq,a,!1);c=a.Qc.createElement("DIV");a.Qc.parentWindow.document.body.appendChild(c);d=qg(a.ve.toString());d=Fa(ng(d));d=ej(hg("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=xg(d);a.o.Mc(1)},Qm=function(a){a.Wm=K()+a.D;
bn(a,a.D)},bn=function(a,b){if(null!=a.pg)throw Error("WatchDog timer not null");
a.pg=cn(y(a.TC,a),b)},dn=function(a){a.pg&&(aa.clearTimeout(a.pg),a.pg=null)},Xm=function(a){a.o.Vo()||a.Ne||a.o.dj(a)},Wm=function(a){dn(a);
Mb(a.ij);a.ij=null;a.A.stop();a.C.removeAll();if(a.Ab){var b=a.Ab;a.Ab=null;en(b);b.dispose()}a.Qc&&(a.Qc=null)},Vm=function(a,b){try{a.o.Oq(a,b),a.o.Mc(4)}catch(c){}},gn=function(a,b,c,d,e){if(0==d)c(!1);
else{var h=e||0;d--;fn(a,b,function(e){e?c(!0):aa.setTimeout(function(){gn(a,b,c,d,h)},h)})}},fn=function(a,b,c){var d=new window.Image;
d.onload=function(){try{hn(d),c(!0)}catch(a){}};
d.onerror=function(){try{hn(d),c(!1)}catch(a){}};
d.onabort=function(){try{hn(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{hn(d),c(!1)}catch(a){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a},hn=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},jn=function(a){this.o=a;
this.A=new um(null,!0)},ln=function(a){var b=kn(a.o,a.Hg,"/mail/images/cleardot.gif");
Cf(b);gn(b.toString(),5E3,y(a.Fw,a),3,2E3);a.Mc(1)},nn=function(a){var b=a.o.J;
if(null!=b)Tm(),b?(Tm(),mn(a.o,a,!1)):(Tm(),mn(a.o,a,!0));else if(a.nc=new Mm(a,0,void 0,void 0,void 0),a.nc.Xe=a.kl,b=a.o,b=kn(b,b.rh()?a.Ug:null,a.ml),Tm(),!Tg||yc(10))Bf(b,"TYPE","xmlhttp"),Pm(a.nc,b,!1,a.Ug,!1);else{Bf(b,"TYPE","html");var c=a.nc;a=!!a.Ug;c.Lf=3;c.ie=Cf(b.clone());an(c,a)}},on=function(a){J.call(this);
this.headers=new Je;this.M=a||null;this.B=!1;this.L=this.o=null;this.X=this.H="";this.A=0;this.F="";this.C=this.U=this.G=this.O=!1;this.D=0;this.J=null;this.$="";this.K=this.Z=!1},pn=function(a,b){a.D=Math.max(0,b)},qn=function(a){return Tg&&wc(9)&&ga(a.timeout)&&n(a.ontimeout)},rn=function(a){return"content-type"==a.toLowerCase()},un=function(a,b){a.B=!1;
a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;sn(a);tn(a)},sn=function(a){a.O||(a.O=!0,a.aa("complete"),a.aa("error"))},en=function(a,b){a.o&&a.B&&(vn(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.aa("complete"),a.aa("abort"),tn(a))},zn=function(a){if(a.B&&"undefined"!=typeof wn)if(a.L[1]&&4==xn(a)&&2==a.getStatus())vn(a,"Local request error detected and ignored");
else if(a.G&&4==xn(a))Ud(a.Kq,0,a);else if(a.aa("readystatechange"),4==xn(a)){vn(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=Xe(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=!yn.test(h?h.toLowerCase():"")}d=e}if(d)a.aa("complete"),a.aa("success");else{a.A=6;var m;try{m=2<xn(a)?a.o.statusText:
""}catch(l){m=""}a.F=m+" ["+a.getStatus()+"]";sn(a)}}finally{tn(a)}}},tn=function(a,b){if(a.o){An(a);
var c=a.o,d=a.L[0]?v:null;a.o=null;a.L=null;b||a.aa("ready");try{c.onreadystatechange=d}catch(e){}}},An=function(a){a.o&&a.K&&(a.o.ontimeout=null);
ga(a.J)&&(Vd(a.J),a.J=null)},xn=function(a){return a.o?a.o.readyState:0},Bn=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}},vn=function(a,b){return b+" ["+a.X+" "+a.H+" "+a.getStatus()+"]"},Cn=function(a,b,c){this.G=a||null;
this.o=1;this.A=[];this.C=[];this.D=new um(null,!0);this.H=b||null;this.J=null!=c?c:null},Dn=function(a,b){this.o=a;
this.map=b;this.context=null},En=function(a){jc.call(this,"statevent",a)},Fn=function(a,b){jc.call(this,"timingevent",a);
this.size=b},Gn=function(a){jc.call(this,"serverreachability",a)},Kn=function(a){Hn(a);
if(3==a.o){var b=a.bh++,c=a.Bi.clone();zf(c,"SID",a.B);zf(c,"RID",b);zf(c,"TYPE","terminate");In(a,c);b=new Mm(a,0,a.B,b,void 0);b.Lf=2;b.ie=Cf(c.clone());(new window.Image).src=b.ie;b.lh=K();Qm(b)}Jn(a)},Hn=function(a){if(a.be){var b=a.be;
b.nc&&(b.nc.cancel(),b.nc=null);b.Ed=-1;a.be=null}a.ub&&(a.ub.cancel(),a.ub=null);a.Bd&&(aa.clearTimeout(a.Bd),a.Bd=null);Ln(a);a.Xb&&(a.Xb.cancel(),a.Xb=null);a.de&&(aa.clearTimeout(a.de),a.de=null)},Nn=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");
a.A.push(new Dn(a.Iz++,b));2!=a.o&&3!=a.o||Mn(a)},Mn=function(a){a.Xb||a.de||(a.de=cn(y(a.Wq,a),0),a.Pg=0)},Qn=function(a,b){if(1==a.o){if(!b){a.bh=Math.floor(1E5*Math.random());
var c=a.bh++,d=new Mm(a,0,"",c,void 0);d.Xe=null;var e=On(a),h=a.Bi.clone();zf(h,"RID",c);a.G&&zf(h,"CVER",a.G);In(a,h);Om(d,h,e);a.Xb=d;a.o=2}}else 3==a.o&&(b?Pn(a,b):0!=a.A.length&&(a.Xb||Pn(a)))},Pn=function(a,b){var c,d;
b?6<a.Pe?(a.A=a.C.concat(a.A),a.C.length=0,c=a.bh-1,d=On(a)):(c=b.H,d=b.bf):(c=a.bh++,d=On(a));var e=a.Bi.clone();zf(e,"SID",a.B);zf(e,"RID",c);zf(e,"AID",a.Yf);In(a,e);c=new Mm(a,0,a.B,c,a.Pg+1);c.Xe=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Xb=c;Om(c,e,d)},In=function(a,b){if(a.Nb){var c=a.Nb.Lo(a);
c&&Ob(c,function(a,c){zf(b,c,a)})}},On=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;
6<a.Pe&&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.Pe?e:h-d;try{Se(k,function(a,b){c.push("req"+h+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(m){c.push("req"+h+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b));
return c.join("&")},Rn=function(a){a.ub||a.Bd||(a.F=1,a.Bd=cn(y(a.Vq,a),0),a.xf=0)},Tn=function(a){if(a.ub||a.Bd||3<=a.xf)return!1;
a.F++;a.Bd=cn(y(a.Vq,a),Sn(a,a.xf));a.xf++;return!0},mn=function(a,b,c){a.Dj=c;
a.Hc=b.Ed;a.bx(1,0);a.Bi=kn(a,null,a.jl);Mn(a)},Ln=function(a){null!=a.Te&&(aa.clearTimeout(a.Te),a.Te=null)},Sn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());
a.isActive()||(c*=2);return c*b},Vn=function(a,b){if(2==b||9==b){var c=null;
a.Nb&&(c=null);var d=y(a.ND,a);c||(c=new O("//www.google.com/images/cleardot.gif"),Cf(c));fn(c.toString(),1E4,d)}else Tm();Un(a,b)},Un=function(a,b){a.o=0;
a.Nb&&a.Nb.so(a,b);Jn(a);Hn(a)},Jn=function(a){a.o=0;
a.Hc=-1;if(a.Nb)if(0==a.C.length&&0==a.A.length)a.Nb.Ak(a);else{var b=tb(a.C),c=tb(a.A);a.C.length=0;a.A.length=0;a.Nb.Ak(a,b,c)}},kn=function(a,b,c){var d=Df(c);
if(""!=d.A)b&&qf(d,b+"."+d.A),rf(d,d.D);else var e=window.location,d=Ef(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ng&&Ob(a.Ng,function(a,b){zf(d,b,a)});
zf(d,"VER",a.Pe);In(a,d);return d},cn=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");
return aa.setTimeout(function(){a()},b)},Tm=function(){Wn.aa(new En(Wn))},Xn=function(){},Yn=function(a,b){Sd.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;Oc(this,"tick",y(this.F,this));this.stop();Td(this,5E3+2E4*Math.random())},Zn=function(a,b){this.L=a;
this.C=b;this.B=new Be;this.A=new Yn(this.lE,this);this.o=null;this.K=!1;this.F=null;this.J="";this.H=this.D=0;this.G=[]},$n=function(a){return{firstTestResults:[""],
secondTestResults:!a.o.Dj,sessionId:a.o.B,arrayId:a.o.Yf}},ao=function(a,b){a.H=b||0;
a.A.stop();a.o&&(3==a.o.o&&Qn(a.o),Kn(a.o));a.H=0},bo=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()},co=function(){this.o=[];
this.A=[]},eo=function(a){kb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])},fo=function(a,b){a.A.push(b)},go=function(a){eo(a);
return a.o.pop()},ho=function(a){eo(a);
return cb(a.o)},io=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)},jo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");
},ko=function(a){a.audioTrackId=null;
a.B=null;a.o=-1;a.C=0;a.D=K()},lo=function(a){a.index=-1;
a.videoId="";ko(a)},mo=function(a){return a.A?a.videoId:a.videoIds[a.index]},no=function(a,b){a.C=b;
a.D=K()},oo=function(a){switch(a.o){case 1:return(K()-a.D)/1E3+a.C;
case -1E3:return 0}return a.C},po=function(a,b,c){var d=a.videoId;
a.videoId=b;a.index=c;b!=d&&ko(a)},qo=function(a,b,c){jo(a,"setPlaylist");
c=c||mo(a);Gb(a.videoIds,b)&&c==mo(a)||(a.videoIds=tb(b),a.setVideoId(c))},ro=function(a){var b={};
b.videoIds=tb(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},uo=function(a,b){Lj.call(this);
this.A=0;this.C=a;this.G=[];this.F=new co;this.D=window.NaN;this.B=this.o=null;this.K=y(this.iA,this);this.H=y(this.eh,this);this.J=y(this.hA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.fn,this),so(this))):c=3;0!=c&&(b?this.fn(c):vi(y(function(){this.fn(c)},this),0));
to(this,ul())},vo=function(a){return new io(a.C.getPlayerContextData())},yo=function(a,b,c,d,e){var h=vo(a);
d=d||0;var k={videoId:b,currentIndex:d,listId:e||h.A};po(h,b,d);n(c)&&(no(h,c),k.currentTime=c);wo(a,"setPlaylist",k);e||xo(a,h)},so=function(a){F(["remotePlayerChange",
"remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,pa(this.PB,a),this))},a)},zo=function(a){F(a.G,function(a){this.C.unsubscribeByKey(a)},a);
a.G.length=0},Ao=function(a,b){50>a.F.ab()&&fo(a.F,b)},Bo=function(a,b,c){var d=vo(a);
no(d,c);-1E3!=d.o&&(d.o=b);xo(a,d)},wo=function(a,b,c){a.C.sendMessage(b,c)},xo=function(a,b){zo(a);
a.C.setPlayerContextData(ro(b));so(a)},Co=function(a){xi(a.D);
a.D=vi(y(function(){this.S("remotePlayerChange");this.D=window.NaN},a),2E3)},to=function(a,b){a.B&&(a.B.removeUpdateListener(a.K),a.B.removeMediaListener(a.H),a.eh(null));
a.B=b;a.B&&(Do("Setting cast session: "+a.B.sessionId),a.B.addUpdateListener(a.K),a.B.addMediaListener(a.H),a.B.media.length&&a.eh(a.B.media[0]))},Eo=function(a){var b=a.o.customData;
if(a.o.media){var c=a.o.media,d=vo(a);c.contentId!=d.videoId&&Do("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.o=b.playerState;no(d,a.o.getEstimatedTime());xo(a,d)}else Do("No cast media video. Ignoring state update.")},Do=function(a){$h("CP",a)},Go=function(a,b,c){Lj.call(this);
this.D=window.NaN;this.M=!1;this.H=this.G=this.L=this.J=window.NaN;this.P=[];this.B=this.ya=this.o=null;this.ea=a;this.P.push(Ml(window,"beforeunload",y(this.Ax,this)));this.A=[];this.ya=new io;3==c["mdx-version"]&&(this.ya.A="RQ"+b.token);this.O=b.id;this.o=Fo(this,c);this.o.subscribe("handlerOpened",this.nA,this);this.o.subscribe("handlerClosed",this.jA,this);this.o.subscribe("handlerError",this.kA,this);this.ya.A?this.o.subscribe("handlerMessage",this.lA,this):this.o.subscribe("handlerMessage",
this.mA,this);bo(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.ya.videoId;gk()&&bj("yt-remote-session-video-id",a)},this)},Fo=function(a,b){return new Zn(Cj(a.ea,"/bc",void 0,!1),b)},Ho=function(a,b){a.S("proxyStateChange",b)},Io=function(a){a.D=vi(y(function(){this.ib("Connecting timeout");
this.C(1)},a),2E4)},Jo=function(a){xi(a.D);
a.D=window.NaN},Ko=function(a){xi(a.J);
a.J=window.NaN},No=function(a){Lo(a);
a.L=vi(y(function(){Mo(this,"getNowPlaying")},a),2E4)},Lo=function(a){xi(a.L);
a.L=window.NaN},Oo=function(a){var b=a.o;
return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)},Qo=function(a,b){b&&(Jo(a),Ko(a));
b==Oo(a)?b&&(Ho(a,1),Mo(a,"getSubtitlesTrack")):b?(a.K()&&a.ya.reset(),Ho(a,1),Mo(a,"getNowPlaying"),Po(a)):a.C(1)},Ro=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.ya.videoId&&(ac(b.params)?a.ya.B=null:a.ya.B=b.params,a.S("remotePlayerChange"))},So=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);
a.ya.A=b.params.listId||a.ya.A;po(a.ya,c,d);a.S("remoteQueueChange")},Uo=function(a,b){b.params=b.params||{};
So(a,b);To(a,b)},To=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);
no(a.ya,(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.ya.o&&(c=-1E3);a.ya.o=c;1==a.ya.o?No(a):Lo(a);a.S("remotePlayerChange")},Vo=function(a,b){var c="true"==b.params.muted;
a.ya.volume=(0,window.parseInt)(b.params.volume,10);a.ya.muted=c;a.S("remotePlayerChange")},Wo=function(a,b){switch(b.action){case "loungeStatus":var c=de(b.params.devices);
a.A=ji(c,function(a){return new Yj(a)});
break;case "loungeScreenDisconnected":rb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
break;case "remoteConnected":var d=new Yj(de(b.params.device));eb(a.A,function(a){return a.equals(d)})||nb(a.A,d);
break;case "remoteDisconnected":d=new Yj(de(b.params.device)),rb(a.A,function(a){return a.equals(d)})}},Xo=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)Ko(a);else return;c==Oo(a)?c&&Ho(a,1):c?(Jo(a),a.K()&&a.ya.reset(),Ho(a,1),Mo(a,"getNowPlaying"),Po(a)):a.C(1)},Po=function(a){xi(a.H);
a.H=vi(y(a.C,a,1),864E5)},Mo=function(a,b,c){c?a.ib("Sending: action="+b+", params="+ge(c)):a.ib("Sending: action="+b);
a.o.sendMessage(b,c)},Zo=function(a,b){var c=Yo(a);
return ae(b,function(a){return a.uuid?(a=Ij(this.B,a.uuid),!!a&&"RUNNING"==a.status):!!Jj(c,a)},a)},fp=function(a,b,c){var d=$o,e="";
xi(d.A);d.A=window.NaN;d.C="";if(Ij(d.B,a)){if(!e){var h=e=Fj();jm();var k=pm(a),m=bm();if(m&&k){var l=new window.cast.Receiver(k.id,k.name),l=new window.cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+h;l.description=new window.cast.LaunchDescription;l.description.text=window.document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN",lm(k),Ji("yt-remote-cast-device-status-update",
k));am("Sending a cast launch request with params: "+l.parameters);m.launch(l,pa(qm,a))}else am("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=vi(y(d.J,d,a,0,e),dp[0])}else d.ib("No DIAL device with id: "+a)},gp=function(a,b){var c=Kj(Yo(a),b);
a.ib("Found screen: "+li(c)+" with key: "+b);return c},hp=function(a){var b=$o,c=Kj(b.o,a);
b.ib("Found online screen: "+li(c)+" with key: "+a);return c},ip=function(a){var b=$o,c=Ij(b.B,a);
if(!c){var d=Kj(b.F,a);d&&(c=Ij(b.B,d.uuid))}b.ib("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c},Yo=function(a){return sb(a.D,ae(a.F,function(a){return!Jj(this.D,a)},a))},kp=function(a){Mj.call(this,"ScreenServiceProxy");
this.Tb=a;this.o=[];this.o.push(this.Tb.$_s("screenChange",y(this.pE,this)));this.o.push(this.Tb.$_s("onlineScreenChange",y(this.DB,this)))},pp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);
Zi&&$i();jk();lp||(lp=new Bj,vk()&&(lp.o="/api/loungedev"));mp||(mp=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",mp,void 0));np();var b=op();if(!b){var c=new Ik(lp);q("yt.mdx.remote.screenService_",c,void 0);b=op();nl(a,c,function(a){a?Bl()&&Cl():c.subscribe("onlineScreenChange",function(){Ji("yt-remote-receiver-availability-change")})})}},sp=function(){Ii(qp);
qp.length=0;Mb(rp);rp=null;mp&&(F(mp,function(a){a(null)}),mp.length=0,mp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
$o&&(Mb($o),$o=null);lp=null;km()},xp=function(){if(tp()&&sl()){var a=[];
if(cj("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||up())a.push({key:"cast-selector-receiver",name:vp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return r("yt.mdx.remote.cloudview.initializing_")?[]:wp()},wp=function(){var a=[],a=yp()?op().Tb.$_gos():ki(cj("yt-remote-online-screens")||[]),b=zp();
b&&up()&&(Jj(a,b)||a.push(b));yp()||(b=Hj(rk()),b=ae(b,function(b){return!Kj(a,b.id)}),a=sb(a,b));
return Gj(a)},Bp=function(){if(tp()&&sl()){var a=tl();
return a?{key:"cast-selector-receiver",name:a}:null}return Ap()},Ap=function(){var a=wp(),b=Cp(),c=zp();
c||(c=Dp());return eb(a,function(a){return c&&fi(c,a.key)||b&&(a=ip(a.key))&&a.id==b?!0:!1})},vp=function(){if(tp()&&sl())return tl();
var a=zp();return a?a.name:null},zp=function(){var a=Bl();
if(!a)return null;if(!$o){var b=op().qc();return Kj(b,a)}return gp($o,a)},Kp=function(a,b){Ep("Connecting to: "+ge(a));
if("cast-selector-receiver"==a.key)Fp(b||null),Al(b||null);else{Gp();Fp(b||null);var c=null;$o?c=hp(a.key):(c=op().qc(),c=Kj(c,a.key));if(c)Hp(c);else{if($o&&(c=ip(a.key))){Ip(c);return}vi(function(){Jp(null)},0)}}},Gp=function(){if($o){var a=$o;
xi(a.A);a.A=window.NaN;a.C=""}a:{if(a=up())if(a=a.getOtherConnectedRemoteId()){Ep("Do not stop DIAL due to "+a);Lp("");break a}(a=Cp())?(Ep("Stopping DIAL: "+a),rm(a),Lp("")):(a=zp())&&a.uuid&&(Ep("Stopping DIAL: "+a.uuid),rm(a.uuid))}xl()?ol().stopSession():kl("stopSession called before API ready.");(a=up())?a.disconnect(1):(Ki("yt-remote-before-disconnect",1),Ki("yt-remote-connection-change",!1));Jp(null)},Op=function(){var a=Mp(),a=a?a.currentTime:0,b=Np();
0==a&&b&&(a=oo(vo(b)));return a},Np=function(){var a=up();
return a&&3!=a.getProxyState()?new uo(a,void 0):null},Ep=function(a){$h("remote",a)},tp=function(){return!!r("yt.mdx.remote.castv2_")},yp=function(){return r("yt.mdx.remote.screenService_")},op=function(){if(!rp){var a=yp();
rp=a?new kp(a):null}return rp},Bl=function(){return r("yt.mdx.remote.currentScreenId_")},Pp=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);
if($o){var b=$o;b.H=K()+3E5;if(b.G=a){var c=gp(b,a);if(c&&!Jj(b.o,c)){a=tb(b.o);a.push(c);var c=Zo(b,a),d=!Gb(b.o,c,gi);kb(a)||qk(ji(c,hi));d&&(b.ib("Updating online screens: "+mi(b.o)+" -> "+mi(c)),b.o=c,b.S("onlineReceiverChange"))}}}},Cp=function(){return r("yt.mdx.remote.currentDialId_")},Lp=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)},Mp=function(){return r("yt.mdx.remote.connectData_")},Fp=function(a){q("yt.mdx.remote.connectData_",a,void 0)},up=function(){return r("yt.mdx.remote.connection_")},
Jp=function(a){var b=up();
Fp(null);a?up():(Pp(""),Lp(""));q("yt.mdx.remote.connection_",a,void 0);mp&&(F(mp,function(b){b(a)}),mp.length=0);
b&&!a?Ki("yt-remote-connection-change",!1):!b&&a&&Ji("yt-remote-connection-change",!0)},Dp=function(){var a=gk();
if(!a)return null;if(yp()){var b=op().qc();return Kj(b,a)}return $o?gp($o,a):null},Hp=function(a){Bl();
Pp(a.id);a=new Go(lp,a,Qp());a.connect(1,Mp());a.subscribe("beforeDisconnect",function(a){Ki("yt-remote-before-disconnect",a)});
a.subscribe("beforeDispose",function(){up()&&(up(),Jp(null))});
Jp(a)},Ip=function(a){Cp();
Ep("Connecting to: "+(a?a.toString():"null"));Lp(a.id);var b=Mp();b?fp(a.id,b.videoIds[b.index],b.currentTime):fp(a.id)},np=function(){var a=Qp();
if(ac(a)){var a=fk(),b=cj("yt-remote-session-name")||"",c=cj("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)}},Qp=function(){return r("yt.mdx.remote.channelParams_")||{}},Sp=function(a){return(a=Rp.exec(a))?a[0]:""},Vp=function(a){var b=Tp.test(a),c;
c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Up.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&zi(a,"WARNING"));return b||c},Wp=function(a){a=new O(a);
pf(a,window.document.location.protocol);qf(a,window.document.location.hostname);window.document.location.port&&rf(a,window.document.location.port);return a.toString()},Xp=function(a){a=new O(a);
pf(a,window.document.location.protocol);return a.toString()},Zp=function(){return Yp("android")&&Yp("chrome")&&!(Yp("trident/")||Yp("edge/"))},$p=function(){return Yp("cobalt")},aq=function(){return Yp("(ps3; leanback shell)")||Yp("ps3")&&$p()},bq=function(){return Yp("(ps4; leanback shell)")||Yp("ps4")&&$p()},cq=function(){var a=/WebKit\/([0-9]+)/.exec(oc);
return!!(a&&600<=a[1])},dq=function(){return Dl&&Yp("crkey")},eq=function(){return Yp("nintendo wiiu")},fq=function(){return Yp("iemobile")||Yp("windows phone")&&Yp("edge")},Yp=function(a){var b=oc;
return b?0<=b.toLowerCase().indexOf(a):!1},hq=function(a,b,c){a&&(c&&!$p()?a&&(a=P("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',
style:"display:none"}),Jg(a).body.appendChild(a)):gq(a,b))},iq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||hq(a,void 0)}catch(b){hq(a,void 0)}},lq=function(a){return D(E(a))?!1:jq.test(a)||kq.test(a)},gq=function(a,b){var c=new window.Image,d=""+mq++;
nq[d]=c;c.onload=c.onerror=function(){b&&nq[d]&&b();delete nq[d]};
c.src=a},pq=function(a,b){this.start=a;
this.end=b;this.F=oq++},qq=function(a,b,c){pq.call(this,a,b);
a=c||{};this.K=a.id||"";this.G=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.A=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.B=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start},tq=function(a){return a.B||(a.B=new Be)},uq=function(a,b){return a.start-b.start||a.G-b.G||a.F-b.F},vq=function(a,b){Lj.call(this);
this.logEvent=this.ua="";this.Fa=b||"";this.ea=this.loaded=this.F=!1;this.M=this.G=null;this.o=a;if(this.Fa){var c=Sj("yt-html5-player-modules::"+this.Fa);c&&(this.M=new Qi(c))}},yq=function(a){var b=a.o,c=b.app;
a=a.ua;var b=b.playerType,d=wq(c,b);if(d){for(var d=d.F,e=[],h=d.o.o,k=h.length-1;0<=k;k--){var m=h[k];if(m.A==a){var l=d.A.indexOf(m);0<=l&&d.A.splice(l,1);var p=d.o,l=p.o,p=Ab(l,m,p.A);0<=p&&ob(l,p);e.push(m)}}d.Pd();b&&c.getPresentingPlayerType()!=b||xq(c,"cuerangesremoved",e)}},zq=function(a){a.o.qj(a.ua)},Aq=function(a,b,c){var d={},e;
for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var h in c)b[a.ua+"_"+h]=c[h];a=a.o.app.D;qa(a.C,d||null);qa(a.B,b||null)},Bq=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},Cq=function(a,b,c){if(a.M)try{a.M.set(b,c)}catch(d){}},Dq=function(a){a.S("command_stop_redirect_controls")},Eq=function(a){a.S("command_play",!1,a.o.playerType)},Gq=function(a){G.call(this);
this.ra={};this.xa={};this.element=Fq(this,a)},Fq=function(a,b){var c=0,d=window.document.createElement(b[c++]);
if(w(b[c])){var e=b[c++];if(e=Hq(a,d,"className",e))Iq(a,d,"className",e),a.ra[e]=d}else if(da(b[c])){for(var e=b[c++],h=0;h<e.length;h++)a.ra[e[h]]=d;Iq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=Fq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,h=d,m=void 0;for(m in k){var l=k[m];null!=l&&Iq(e,h,m,w(l)?Hq(e,h,m,l):l)}}else w(k)&&(e=Hq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d},Jq=
function(a){dh(a.element)},Hq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.xa[d]=[b,
c],null):d},Kq=function(a){return da(a)&&w(a[0])},Iq=function(a,b,c,d){if("child"==c){bh(b);
if(!da(d)||Kq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var h=d[e];if(null!=h)if(!h.nodeType||1!=h.nodeType&&3!=h.nodeType)if(Kq(h))c.push(Fq(a,h));else if(h.element)c.push(h.element);else if(w(h)&&-1!=h.indexOf("\n"))for(var h=h.split("\n"),k=0;k<h.length;k++)0<k&&c.push(window.document.createElement("br")),c.push(window.document.createTextNode(String(h[k])));else c.push(window.document.createTextNode(String(h)));else 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())},Lq=function(a,b){a&&(a.style.display=b)},Mq=function(a,b){var c=yh("requestAnimationFrame",window);
return vi(function(){c?c.call(window,a):a()},b||0)},Nq=function(a){if(window.document.createRange){var b=window.document.createRange();
b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}},R=function(a){Gq.call(this,a);
this.C=!0;this.Z=[]},Oq=function(a){R.call(this,a);
this.U=new Lj;I(this,this.U)},Pq=function(a,b){Oq.call(this,["div",
["html5-endscreen","ytp-player-content",b||"base-endscreen"]]);this.A=a;this.L=!1},Qq=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"]]])},Sq=function(){return zc?"Webkit":Rq?"Moz":Tg?"ms":Ac?"O":null},Uq=function(a,b,c){if(w(b))(b=Tq(a,b))&&(a.style[b]=c);
else for(var d in b){c=a;var e=b[d],h=Tq(c,d);h&&(c.style[h]=e)}},Tq=function(a,b){var c=Vq[b];
if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Sq()+$a(d),void 0!==a.style[d]&&(c=d));Vq[b]=c}return c},Wq=function(a,b){var c=a.style[Za(b)];
return"undefined"!==typeof c?c:a.style[Tq(a,b)]||""},Xq=function(a,b){var c=Jg(a);
return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""},Yq=function(a,b){return Xq(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},$q=function(a,b,c){var d;
b instanceof re?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Zq(d,!1);a.style.top=Zq(b,!1)},ar=function(a){return new re(a.offsetLeft,a.offsetTop)},br=function(a){var b;
try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Tg&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},cr=function(a){if(Tg&&!yc(8))return a.offsetParent;
var b=Jg(a),c=Yq(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=Yq(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},er=function(a){for(var b=new te(0,window.Infinity,window.Infinity,0),c=Lg(a),d=c.o.body,e=c.o.documentElement,h=Sg(c.o);a=cr(a);)if(!(Tg&&0==a.clientWidth||zc&&0==a.clientHeight&&
a==d)&&a!=d&&a!=e&&"visible"!=Yq(a,"overflow")){var k=dr(a),m=new re(a.clientLeft,a.clientTop);
k.x+=m.x;k.y+=m.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=Rg(wh(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},dr=function(a){var b=Jg(a),c=new re(0,0),d;
d=b?Jg(b):window.document;d=!Tg||yc(9)||"CSS1Compat"==Lg(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=br(a);b=Ug(Lg(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c},gr=function(a,b){var c=new re(0,0),d=Vg(Jg(a));
if(!nc(d,"parent"))return c;var e=a;do{var h=d==b?dr(e):fr(e);c.x+=h.x;c.y+=h.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c},ir=function(a,b){var c=hr(a),d=hr(b);
return new re(c.x-d.x,c.y-d.y)},fr=function(a){a=br(a);
return new re(a.left,a.top)},hr=function(a){if(1==a.nodeType)return fr(a);
a=a.changedTouches?a.changedTouches[0]:a;return new re(a.clientX,a.clientY)},kr=function(a,b,c){if(b instanceof ue)c=b.height,b=b.width;
else if(void 0==c)throw Error("missing height argument");jr(a,b);a.style.height=Zq(c,!0)},Zq=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");
return a},jr=function(a,b){a.style.width=Zq(b,!0)},mr=function(a){var b=lr;
if("none"!=Yq(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},lr=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=zc&&!b&&!c;
return n(b)&&!d||!a.getBoundingClientRect?new ue(b,c):(a=br(a),new ue(a.right-a.left,a.bottom-a.top))},nr=function(a){var b=dr(a);
a=mr(a);return new we(b.x,b.y,a.width,a.height)},or=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)+")")},S=function(a,b){a.style.display=b?"":"none"},pr=function(a){return"none"!=a.style.display},qr=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},ur=function(a){var b=Yq(a,"fontSize"),c;
c=(c=b.match(rr))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(Tg){if(String(c)in sr)return qr(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in tr)return a=a.parentNode,c=Yq(a,"fontSize"),qr(a,b==c?"1em":b)}c=P("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;dh(c);return b},wr=function(a,b){da(b)||(b=[b]);
var c=ji(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
vr(a,c.join(","))},vr=function(a,b){Uq(a,"transition",b)},yr=function(a,b,c,d){G.call(this);
this.B=a;c||(xr(this,!0),a.ka());this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Wd(this.Mm,0,this);I(this,this.A)},xr=function(a,b){var c=a.B.element;
b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")},zr=function(a,b){R.call(this,b||["div",
"ytp-thumbnail-overlay"]);this.A=new yr(this,250);I(this,this.A);this.api=a},Ar=function(a){zr.call(this,a,["div",
["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])},Cr=function(a){Pq.call(this,a,"subscribecard-endscreen");
this.D=new Ar(a);I(this,this.D);Br(this.A,this.D.element,4);this.F=new Qq;I(this,this.F);this.ka()},Dr=function(a){G.call(this);
this.L=[];this.Ia=a||this},Er=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)},Fr=function(a){for(;a.L.length;){var b=a.L.pop();
b.target.removeEventListener(b.name,b.hi)}},Gr=function(a,b){this.type=a||"";
this.id=b||""},Hr=function(a){return new Gr(a.substr(0,2),a.substr(2))},Jr=function(a){a=a.split("");
Ir.GM(a,1);Ir.BL(a,55);Ir.BL(a,32);Ir.BL(a,39);Ir.hB(a,77);Ir.GM(a,3);Ir.hB(a,6);Ir.BL(a,66);Ir.GM(a,3);return a.join("")},Kr=function(a,b){return new Ad(function(c,d){b.sb=function(a){oj(a)?c(a):d(a)};
b.onError=d;b.Md=d;tj(a,b)})},Lr=function(a){function b(e,h,k){return Hd(e,function(e){return 0>=h||403===e.status?Fd(e):c(k).then(function(){return b(Kr(a,d),h-1,Math.pow(2,4-h+1)*k)})})}
function c(a){return new Ad(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(Kr(a,d),3,1E3)},Mr=function(a){this.o=a||0},Pr=function(a,b,c,d,e,h,k,m){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=m||0;this.audio=c||null;this.video=d||null;this.Gb=e||null;this.Ge=h||null;this.B=Nr[Or(this)]||""},Or=function(a){return a.id.split(";",1)[0]},Qr=function(a){return"9"==a.B||"("==a.B},Rr=function(a){return!(a.audio&&a.video)},Sr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")},Tr=function(a){return 0<=a.indexOf("vp9")||0<=
a.indexOf("vp8")||0<=a.indexOf("avc1")},Ur=function(a,b,c){this.name=a;
this.id=b;this.isDefault=c},Yr=function(a,b,c,d,e,h,k,m){this.width=a;
this.height=b;if(!h)a:{h=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Vr.length;b++){var l=Vr[b],p=Wr[l];if(h>=Math.floor(16*p/9)||a>=p){h=l;break a}}h="tiny"}this.quality=h;this.jD=Wr[this.quality];this.o=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;if(!(c=m))if(d=this.fps,c=Wr[this.quality],0==c)c=Q("YTP_AUTO");else{a:{for(e=0;e<Xr.length;e++)if(d>Xr[e][1]){d=Xr[e][0];break a}d=""}c=c+"p"+d}this.qualityLabel=c},Zr=function(a){this.B=a;
this.D=this.C=this.F="";this.o={};this.A=""},as=function(a){$r(a);
return a.D},bs=function(a){$r(a);
return Qb(a.o,function(a){return null!==a})},$r=function(a){if(a.B){if(!cs.test(a.B))throw Error("Untrusted URL: "+a.B);
var b=Df(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=ds(c);qa(a.o,es(b.To()));qa(a.o,d);a.B="";a.A=""}},fs=function(a){$r(a);
var b=a.F+(a.F?"://":"//")+a.D+a.C;if(bs(a)){var c=[];Ob(a.o,function(a,b){null!==a&&c.push(b+"="+a)});
a=c.join("&");b+="?"+a}return b},ds=function(a){a=a.split("/");
var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&gs(c,a[b],a[b+1]);return c},es=function(a){a=a.split("&");
for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?gs(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b},gs=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},hs=function(a,b){this.start=a;
this.end=b;this.length=b-a+1},is=function(a){a=a.split("-");
return 2==a.length&&(a=new hs((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},js=function(a,b){return new hs(a,a+b-1)},ks=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""},ls=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},ms=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)},ns=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},os=function(){this.wa=[]},ps=function(a,b){var c=Ab(a.wa,new ns(b,0,0,0,""),function(a,b){return a.o-b.o});
return 0<=c?a.wa[c]:null},qs=function(a,b){var c=Ab(a.wa,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.wa[c]:a.wa[Math.max(0,-c-2)]},rs=function(a,b){var c=db(a.wa,function(a){return a.o>=b},a);
0<c&&a.wa.splice(0,c)},ts=function(a){this.o=a;
this.A={};this.B=""},us=function(a,b){var c=b.indexOf("?");
if(0<c){var d=es(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=ds(b);Ob(d,function(a,b){this.set(b,a)},a)},vs=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=bs(a.o)?"&":"?";return b+a+d},ws=function(a,b){var c=new Zr(b);
Ob(a.A,function(a,b){c.set(b,null)});
return c},xs=function(a){this.o=a;
this.C=a.clone();this.A=0;this.B=-1},ys=function(a){var b=a.C.getUrl(),c=new O(b);
c.A.match("\\.googlevideo\\.com$")?(qf(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(qf(c,"www.youtube.com"),b=c.toString()):b=Wp(b);a.o=new Zr(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))},zs=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 xs(a)},As=function(a,b,c,d,e,h,k,m,l){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<=m?m:this.range?this.range.length:window.NaN;this.H=!!l;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},Bs=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)},Cs=function(a){return 1==a.type||2==a.type},Ds=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B},Es=function(a){1==a.length||Te(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new hs(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)},Gs=function(a){var b="";
Ob(Fs(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)},Fs=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},Hs=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?Es(this.o):null;this.C=!!c},Is=function(a,b){var c;
/http[s]?:\/\//.test(a.A)?c=new ts(new Zr(a.A)):(c=new ts(a.B.o),a.A&&us(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c},Js=function(a){if(a.range)return a.range.length;
a=a.o[0];return Math.round(a.J*a.o.info.o)},Ks=function(a,b,c,d,e,h){zs.call(this,a,b,d);
this.index=e||new os;this.G=c;this.C=!0;this.A=!!h},Ms=function(a,b){a.Hh(b);
return Ls(a,b.F?b.C+1:b.C,!1)},Ls=function(a,b,c){if(a.A&&0==a.index.Ee(b))return a=new As(3,a,null,b),b=0<=b?"sq/"+b:"",new Hs([a],b,!!b);
var d=a.index.Qo(b),e=a.index.Fe(b),h=a.index.Ee(b);c?h=c=0:c=0<a.info.o?a.info.o*h:1E3;a=new As(3,a,null,b,e,h,0,c,b==a.index.Fb()&&!a.C&&0<c);return new Hs([a],d)},Ns=function(a,b,c){this.xe=a;
this.durationSecs=b;this.context=c},Os=function(a,b,c,d){this.o=a;
this.xe=b;this.durationSecs=c;this.A=d||window.NaN},Ps=function(){this.o=[];
this.A=null;this.C=0;this.B=[]},Qs=function(a){var b=a.B;
a.B=[];return b},Rs=function(){this.C=[];
this.o=null;this.A={};this.B={}},Vs=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=Ss(a):"AdaptationSet"==h.nodeName?k=Ts(a,h.attributes.mimeType.value):"Representation"==h.nodeName&&(k=Us(a,h.attributes.id.value));if(null==k)return;k.update(b[e],c);ub(d,Qs(k))}Db(d,function(a){return a.xe});
ub(a.C,d)},Ws=function(a){a.o&&(a.o.o=[]);
Ob(a.A,function(a){a.o=[]});
Ob(a.B,function(a){a.o=[]})},Ss=function(a){a.o||(a.o=new Ps);
return a.o},Ts=function(a,b){a.A[b]||(a.A[b]=new Ps);
return a.A[b]},Us=function(a,b){a.B[b]||(a.B[b]=new Ps);
return a.B[b]},Xs=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},dt=function(a,b){var c=Ys(a,0,1836019558);
if(!c)return null;var d=Ys(a,c.offset+8,1835427940),e=Ys(a,c.offset+8,1953653094);if(!d||!e)return null;var h=Ys(a,e.offset+8,1952868452),k=Ys(a,e.offset+8,1953658222),m=Ys(a,e.offset+8,1952867444);if(!h||!k||!m)return null;var l=Ys(a,e.offset+8,1935763823),e=Ys(a,e.offset+8,1935763834);if(l){var p=Zs(l),t=Zs(l);if(0!=p||1!=t)return null;p=Zs(l)}for(var u=Zs(h),x=Zs(h),A=u&2,C=u&1?$s(h):0,H=A?Zs(h):0,z=u&8?Zs(h):0,t=u&16?Zs(h):0,N=u&32?Zs(h):0,u=Zs(k),Ma=u&1,ta=u&4,Ka=u&256,h=u&512,pb=u&1024,nd=u&
2048,u=Zs(k),ak=Ma?Zs(k):0,bk=ta?Zs(k):0,Ma=[],wv=[],rq=[],sq=[],xv=0,Le=0,lc=0;lc<u;lc++){var $C=Ka?Zs(k):z;h&&Ma.push(Zs(k));var Dd=N;ta&&0==lc?Dd=bk:pb&&(Dd=Zs(k));wv.push(Dd);Dd=nd?Zs(k):0;0==lc&&(xv=Dd);rq.push(Le+Dd);sq.push(lc);Le+=$C}Cb(sq,function(a,b){return rq[a]-rq[b]});
k=[];for(lc=0;lc<u;lc++)k[sq[lc]]=lc;Le=A?4:0;lc=16*u;Dd=68+Le+m.size+lc+(l?l.size:0)+(e?e.size:0);c=Dd-c.size;z=new at(Dd);bt(z,Dd);bt(z,1836019558);ct(z,d);bt(z,Dd-24);bt(z,1953653094);bt(z,16+Le);bt(z,1952868452);bt(z,131072|(A?2:0));bt(z,x);A&&bt(z,H);ct(z,m);bt(z,20+lc);bt(z,1953658222);bt(z,16781057);bt(z,u);bt(z,C+ak+c);for(lc=Le=0;lc<u;lc++)m=k[lc],d=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-d,Dd=d-Le+xv,bt(z,m),bt(z,h?Ma[lc]:t),bt(z,wv[lc]),bt(z,Dd),Le+=m;l&&(bt(z,l.size),bt(z,1935763823),
bt(z,0),bt(z,1),bt(z,p+c));e&&ct(z,e);return z.data.buffer},it=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);
for(var b=0;et(a,b);){var c=ft(a,b);if(1836476516==c.type)return gt(c);b=ht(c.type)?b+8:b+c.size}return window.NaN},Ys=function(a,b,c){for(;et(a,b);){var d=ft(a,b);
if(d.type==c)return d;b+=d.size}return null},ft=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);
return new jt(a,b,c,d)},gt=function(a){var b=a.data.getUint8(a.offset+8)?28:20;
return a.data.getUint32(a.offset+b)},et=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},ht=function(a){return 1836019558==a||1836019574==a||1953653094==a},jt=function(a,b,c,d){this.data=a;
this.offset=b;this.size=c;this.type=d;this.o=8},Zs=function(a){var b=a.data.getInt32(a.offset+a.o);
a.o+=4;return b},kt=function(a){var b=a.data.getUint32(a.offset+a.o);
a.o+=4;return b},$s=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},lt=function(a){var b,c=[];
do b=a.data.getUint8(a.offset+a.o),c.push(b),a.o++;while(0!=b);c.pop()},at=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));
this.o=0},bt=function(a,b){a.data.setInt32(a.o,b);
a.o+=4},ct=function(a,b){for(var c=0;c+4<=b.size;)bt(a,b.data.getUint32(b.offset+c)),c+=4;
for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))},mt=function(a){return(a=Ys(a,0,1836019558))?a.offset+a.size:null},nt=function(a,b){this.A=a;
this.o=0;this.B=b||0},qt=function(a){for(var b=ot(a,!1);236==b;)pt(a),b=ot(a,!1);
return b},rt=function(a){var b=ot(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 nt(c,a.B+a.o);
a.o+=b;return c},ut=function(a){for(var b=ot(a,!0),c=tt(a),d=1;d<b;d++)c=256*c+tt(a);
return c},pt=function(a){var b=ot(a,!0);
a.o+=b},wt=function(a){var b=a.o;
a.o=0;var c=!1;vt(a,440786851)&&(a.o=0,vt(a,408125543)&&(c=!0));a.o=b;return c},xt=function(a){var b=a.o;
a.o=0;var c=1E6;vt(a,408125543)&&(ot(a,!0),vt(a,357149030)&&(ot(a,!0),vt(a,2807729)&&(c=ut(a))));a.o=b;return c},At=function(a,b){var c=a.o;
a.o=0;if(!zt(a)||!vt(a,160))return a.o=c,window.NaN;ot(a,!0);if(!vt(a,161))return a.o=c,window.NaN;var d=ot(a,!0);tt(a);var e=tt(a)<<8|tt(a);a.o+=d-3;if(!vt(a,155))return a.o=c,window.NaN;d=ut(a);a.o=c;return(e+d)*b/1E9},zt=function(a){if(wt(a)){if(!vt(a,408125543))return!1;
ot(a,!0)}if(!vt(a,524531317))return!1;ot(a,!0);return!0},vt=function(a,b){for(;qt(a)!=b;)if(pt(a),a.o>=a.A.byteLength)return!1;
return!0},ot=function(a,b){var c=tt(a);
if(1==c){for(var d=c=0;7>d;d++)c=256*c+tt(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+tt(a),e*=128;return b?c-e:c},tt=function(a){return a.A.getUint8(a.o++)},Bt=function(a,b,c,d,e){this.info=a;
this.o=b;this.range=c;this.B=null;this.A=d;this.D=!1;this.C=e},Ct=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)},Gt=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=Ct(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=Ct(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0},Ht=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);et(k,h);){var m=ft(k,h);
1936286840==m.type?d=m.data.getUint32(m.offset+16):1836476516==m.type?d=gt(m):1952867444==m.type&&(e=m);h=ht(m.type)?h+8:h+m.size}!d&&c&&(d=it(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 nt(new window.DataView(a.info.o.o.buffer));d=new nt(new window.DataView(a.o));e=b;h=xt(c);c=d.o;d.o=0;if(zt(d)&&vt(d,231))if(k=ot(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},It=function(a){var b;
if(1==a.info.o.info.A){a:{for(var c=0,d=new window.DataView(a.o);et(d,c);){b=ft(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=ht(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;et(b,d);){var k=ft(b,d);1836476516==k.type?e=gt(k):1836019558==k.type&&(h=k);d=ht(k.type)?d+8:d+k.size}!e&&c&&(e=it(c));if(h&&e){h=Ys(b,
h.offset+8,1953653094);c=Ys(b,h.offset+8,1952868452);h=Ys(b,h.offset+8,1953658222);b=Zs(c);Zs(c);b&2&&Zs(c);b=b&8?Zs(c):0;var m=Zs(h),l=m&1,c=m&4,d=m&256,k=m&512,p=m&1024,m=m&2048,t=kt(h);l&&Zs(h);c&&Zs(h);for(var u=l=0;u<t;u++){var x=d?Zs(h):b;k&&Zs(h);c&&0==u||!p||Zs(h);m&&Zs(h);l+=x}b=l/e}else b=window.NaN}}else e=new nt(new window.DataView(a.info.o.o.buffer)),b=At(new nt(new window.DataView(a.o)),xt(e));return b||a.info.J},Jt=function(a){return 1==a.info.o.info.A?a.D:wt(new nt(new window.DataView(a.o)))},
Kt=function(a,b){return a.B&&a.B[b]?(0,window.parseInt)(a.B[b],10):null},Lt=function(){this.Aa=0;
this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1},Mt=function(a){if(a.o.length<a.Aa+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.Aa+1;b++)a.o[b]=c[b],a.A[b]=d[b]}},Nt=function(a,b,c,d,e,h){zs.call(this,a,b,c||void 0);
this.indexRange=d;this.C=null;this.index=new Lt;this.A=e;this.lastModified=h},Ot=function(a,b,c,d){for(var e=[];b<=a.index.Fb();b++){var h;
h=a.index;var k=b;h=js(h.Vj(k),k+1<h.Aa||h.B?h.o[k+1]-h.o[k]:-1);var k=a.index.Fe(b),m=a.index.Ee(b),l=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+l);e.push(new As(3,a,h,b,k,m,l,p,b==a.index.Fb()&&l+p==h.length));if(h.start+l+p>=c+d)break}return new Hs(e)},Pt=function(a,b,c){a.Hh(b);
if(!a.hd())return c=js(b.range.end+1,c),c.end+1>a.A&&(c=new hs(c.start,a.A-1)),a=[new As(4,b.o,c)],new Hs(a);4==b.type&&(b=a.lj(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 Ot(a,d,e,c)},Rt=function(a,b){Lj.call(this);
this.J=this.duration=0;this.isLive=this.B=!1;this.G=Qt();this.D=window.Infinity;this.o={};this.L=a||"";this.F=this.H=0;this.C=null;this.K=Qt();this.U=b||!1;this.A=!1},St=function(a){return Qb(a.o,function(a){return!!a.info.Ge},a)},Vt=function(a,b,c,d){return d?Tt(a):Ut(a,b,c)},Ut=function(a,b,c){var d=new Rt;
d.duration=c||0;F(a,function(a){var c=Wt(a,b,d.duration),k=is(a.init),m=is(a.index),l=(0,window.parseInt)(a.clen,10),p=Xt(a.url,c,a.s),t=(0,window.parseInt)(a.lmt,10);p&&(d.o[Yt(a)]=new Nt(p,c,k,m,l,t))});
return d},Tt=function(a){var b=new Rt;
F(a,function(a){var d=Wt(a),e=Xt(a.url,d,a.s);e&&(b.o[Yt(a)]=new Ks(e,d,"",void 0,void 0,!0))});
b.B=!0;b.A=!0;b.isLive=!0;return b},Wt=function(a,b,c){var d=a.type,e=Yt(a),h=null;
Tr(d)&&(h=(a.size||"640x360").split("x"),h=new Yr(+h[0],+h[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label));var k=null,m=null;Sr(d)&&(k=new Mr,a.name&&(m=new Ur(a.name,a.audio_track_id,"1"==a.isDefault)));var l=(0,window.parseInt)(a.bitrate,10)/8,p=(0,window.parseInt)(a.clen,10);c=c&&p?p/c:0;var t=null;b&&a.drm_families&&(t={},F(a.drm_families.split(","),function(a){t[a]=b[a]}));
return new Pr(e,d,k,h,m,t,l,c)},Yt=function(a){var b=a.itag;
a.xtags&&(b=a.itag+";"+a.xtags);return b},Xt=function(a,b,c){a=new Zr(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",Jr(c));return a},$t=function(a,b){var c=ks(b,"id"),c=c.replace(":",";");
"captions"==c&&(c=ks(b,"lang"));var d=ks(b,"mimeType"),e=ks(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(ks(b,"bandwidth"),10)/8,h=(0,window.parseInt)(ls(b,"BaseURL").getAttribute("yt:contentLength"),10),h=a.duration&&h?h/a.duration:0,k=null;if(Tr(d)){var k=(0,window.parseInt)(ks(b,"width"),10),m=(0,window.parseInt)(ks(b,"height"),10),l=(0,window.parseInt)(ks(b,"frameRate"),10),p=ks(b,"yt:stereoLayout"),t="equirectangular"==ks(b,"yt:projectionType"),u,x;t&&"layout_top_bottom"==p?u=
3:t&&!p?u=2:"layout_left_right"==p&&(x=1);k=new Yr(k,m,l,u,x)}x=u=null;Sr(d)&&(u=new Mr((0,window.parseInt)(ks(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=ks(b,"lang")||"",(m=ls(b,"Role"))?(m=ks(m,"value")||"",x=x&&Yb(Zt,m)?new Ur(ks(b,"yt:langName")||x+" - "+m,x+"."+Zt[m],"main"==m):null):x=null);l=null;if(m=ls(b,"ContentProtection"))if((l=m.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},m=m.firstChild;null!=m;m=m.nextSibling)"yt:SystemURL"==
m.nodeName&&(l[m.attributes.type.textContent]=m.textContent.trim());else l=null;return new Pr(c,d,u,k,x,l,e,h)},au=function(a,b){a.F=1;
a.G=Qt();return Hd(Lr(b||a.L).then(y(a.P,a)),y(a.O,a))},bu=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=is(e):c=c+"?range="+e);return new ns(b.o,b.xe,b.durationSecs,b.A,c,d)},cu=function(a){a=a.o;
for(var b in a){var c=a[b].index;if(c&&c.hf())return c.wg()}return window.NaN},du=function(a){a=a.o;
for(var b in a){var c=a[b].index;if(c&&c.hf())return c.Bs()}return 0},eu=function(a){var b=a.o,c;
for(c in b)if((a=b[c].index)&&a.hf()){c=0;for(b=a.Gf();b<=a.Fb();b++)c+=a.Ee(b);c/=a.Zk();return.5*Math.round(c/.5)}return window.NaN},fu=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)})})},gu=function(a,b){var c=(0).toString();
if(!a.o[c]){var d=new Yr(0,0,0,void 0,void 0,"auto"),d=new Pr(c,"",void 0,d);a.o[c]=b?new Ks(new Zr("http://www.youtube.com/videoplayback"),d,""):new Nt(new Zr("http://www.youtube.com/videoplayback"),d,new hs(0,0),new hs(0,0),0,window.NaN)}},hu=function(){var a=r("yt.player.utils.videoElement_");
a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a},ku=function(a){var b=hu();
try{if(b.canPlayType){a=a?iu:ju;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}},lu=function(a){a=P("div",{"class":a});
window.document.body.appendChild(a);var b="none"==Xq(a,"display");dh(a);return b},mu=function(a,b,c){this.o=a;
this.B=b;this.D=c;this.C={};this.A=null;this.fairPlayCert=""},ou=function(a){return!a.A&&nu()&&"com.microsoft.playready"==a.B},pu=function(a){return!a.A&&nu()&&"com.apple.fps.1_0"==a.B},nu=function(){var a=window.MSMediaKeys;
qu&&wc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null},uu=function(a){return window.navigator.requestMediaKeySystemAccess&&(Dl&&ru("45")||tu&&a)},wu=function(a,b){this.A=[];
this.o={};this.B={};this.C=null;this.G=b;vu(this,a)},vu=function(a,b){Ob(b,function(a){a.forEach(function(a){a.Ge&&Ob(a.Ge,function(b,c){xu[c]&&Ob(xu[c],function(b){this.o[b]=this.o[b]||new mu(c,b,a.Ge[c]);
this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a);
a.A=yu.filter(function(a){return!!this.o[a]},a)},Au=function(a){var b=a.A.shift(),c=a.o[b],d=zu(a.B[c.o]);
window.navigator.requestMediaKeySystemAccess(b,d).then(ui(y(a.F,a,c)),ui(y(a.D,a,c)))},zu=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]},Bu=function(a){var b=nu(),c=hu();
if(b){if(qu){a.C(new mu("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,m;Ob(this.B[b.o],function(l,p){d(p,a)&&(b.C[p]=!0,c|=0==p.indexOf("audio/"),m|=0==p.indexOf("video/"))},this);
return c&&m},a))?a.o[c]:null;
a.A=[];a.C(c)},Cu=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},Du=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 Cu(a.translationLanguage))},Fu=function(a){var b={format:a.C,
languageCode:a.A,languageName:a.F,displayName:Eu(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},Eu=function(a){var b=a.F||"",c=[b];
"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",Q("YTP_ASR_SETTINGS_LABEL"),")");a.D&&c.push(" - ",a.D);a.o&&c.push(" >> ",a.o.languageName);return c.join("")},Gu=function(a,b){var c=new Du;
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},Hu=function(a,b){this.id=a;
this.Gb=b;this.captionTracks=[];this.Ai=this.Nk=null;this.po=0},Iu=function(a,b,c){this.A=a||0;
this.o=b||0;this.B=c},Ju=function(a,b,c){return new Iu(Wr[a]||0,Wr[b]||0,c)},Ku=function(a){var b=Wr.auto;
return a.A==b&&a.o==b},Mu=function(a,b){if(b.B&&Ku(b))return Lu;
if(b.B||Ku(a))return b;if(a.B||Ku(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 Iu(c,d,!1)},Ou=function(a){var b=a.o||a.A;
return $b(Nu,function(a){return Wr[a]==b})||"auto"},Pu=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.Gb&&!d[a.id]){var b=new Hu(a.id,a.Gb);d[a.id]=b;this.audioTracks.push(b)}},this))}},Qu=function(a,b){this.o=a;
this.A=b},Ru=function(a){this.o=[];
if(a)a:{var b;if(a instanceof Ru){if(b=a.Qa(),a=a.Na(),0>=this.ab()){for(var c=this.o,d=0;d<b.length;d++)c.push(new Qu(b[d],a[d]));break a}}else b=Wb(a),a=Vb(a);for(d=0;d<b.length;d++)Su(this,b[d],a[d])}},Su=function(a,b,c){var d=a.o;
d.push(new Qu(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},Tu=function(){Ru.call(this)},Uu=function(a,b){Lj.call(this);
this.A=a;this.B=new Tu;this.o=null;this.D={};this.C=b||""},Xu=function(a,b,c){var d;
for(c=Vu(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Lb*d.rows))]?Wu(d,b):null)return d;c--}return Wu(a.A.o[0],b)},Zu=function(a,b,c){c=Vu(a.A,c);
for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Lb*d.rows)),!d.B[e]){d=a;var h=c,k=h+"-"+e;d.D[k]||(d.D[k]=!0,Su(d.B,h,{Wp:h,cq:e}))}Yu(a)},Yu=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.Wp,b.cq);c.onload=y(a.F,a,b.Wp,b.cq);a.o=c}},$u=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.Lb=(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},Wu=function(a,b){var c=Math.floor(b/(a.Lb*a.rows)),d=a.Lb*a.rows,e=b%d,h=e%a.Lb,e=Math.floor(e/a.Lb),k,m=a.Dn()+1-d*c;
m<a.Lb?(k=m,d=1):(k=a.Lb,d=m<d?Math.ceil(m/a.Lb):a.rows);return{url:a.getUrl(c),Mw:h,Lb:k,row:e,rows:d,fq:a.H*k,bq:a.G*d}},av=function(a,b){this.o=this.A(a,b);
this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)},Vu=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},bv=function(a,b,c,d){c=c.split("#");
c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");$u.call(this,a,b,c,0);this.o=null;this.J=d?3:0},cv=function(a,b){this.F=b;
av.call(this,a,0)},dv=function(a,b){return void 0==b?a:"1"==b?!0:!1},ev=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];
return a},fv=function(a,b){return void 0==b?a:Number(b)},gv=function(a,b){return void 0==b?a:b.toString()},iv=function(a){if(a&&(a=a.match(hv))){var b=(0,window.parseFloat)(a[2]);
if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN},jv=function(a,b){var c=Wr.auto,d=Wr[b];
return d>Wr.medium?new Iu(d,c,!1):d>=c?new Iu(c,d,!1):a},kv=function(){return!!r("yt.scheduler.instance")},lv=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):vi(a,b||0)},mv=function(a){if(!(0,window.isNaN)(a)){var b=r("yt.scheduler.instance.cancelJob");
b?b(a):xi(a)}},ov=function(){var a=r("yt.scheduler.instance.start");
a&&(xi(nv),a())},pv=function(){var a=r("yt.scheduler.instance.pause");
a&&(a(),xi(nv),nv=vi(ov,800))},qv=function(a,b){this.version=a;
this.args=b},rv=function(a){if(!a.Ae){var b={};
a.call(b);a.Ae=b.version}return a.Ae},tv=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=rv(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;}},uv=function(a,b){this.topic=a;
this.o=b},Cv=function(a,b){var c=vv,d=yv();
if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var m=function(){if(zv[e])try{if(k&&c instanceof uv&&c!=d)try{k=tv(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){zi(l)}};
Av[c.toString()]?kv()?lv(m,void 0):vi(m,0):m()}});
zv[e]=!0;Bv[c.toString()]||(Bv[c.toString()]=[]);Bv[c.toString()].push(e);return e},Ev=function(a,b){var c=Cv(function(d){a.apply(b,arguments);
Dv(c)},b);
return c},Dv=function(a){var b=yv();
b&&(ga(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete zv[a]}))},yv=function(){return r("yt.pubsub2.instance_")},Fv=function(a){qv.call(this,1,arguments);
this.o=a},Hv=function(a){var b=a||window;
if(!(b.performance&&b.performance.timing&&b.performance.getEntriesByType))return{sj:0,Sr:0};a=Rg(b||window);for(var c=[],d=b.document.getElementsByTagName("*"),e=0,h=d.length;e<h;e++){var k=d[e];if("IMG"==k.tagName||"IFRAME"==k.tagName){var m=Gv(k,k.src,a);if(m){if("IFRAME"==k.tagName){var l;try{l=Hv(k.contentWindow).sj}catch(p){l=0}0<l&&(m.timing=l)}c.push(m)}}(m=b.getComputedStyle(k)["background-image"])&&(m=Iv.exec(m))&&1<m.length&&(m=Gv(k,m[1],a))&&c.push(m)}l=b.performance.getEntriesByType("resource");
d={};e=0;for(h=l.length;e<h;e++)k=l[e],d[k.name]=k.responseEnd;e=0;for(h=c.length;e<h;e++)k=c[e],k.timing||(k.timing=d[k.url]||0);b=Jv(b,l);a=Kv(b,a,c);k=c=0;if(a.length)for(d=l=0,e=a.length;d<e;d++)h=a[d],k=h.timing-k,0<k&&1>l&&(c+=(1-l)*k),k=h.timing,l=h.progress;return{sj:Math.round(c||b),Sr:k}},Gv=function(a,b,c){if(b&&a.getBoundingClientRect){var d=a.getBoundingClientRect();
a=Math.max(d.top,0);var e=Math.min(d.right,c.width);c=Math.min(d.bottom,c.height);d=Math.max(d.left,0);if(c>a&&e>d)return new Lv(a,e,c,d,b)}return null},Jv=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 m={},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?m[k.src]=!0:"LINK"==k.tagName&&"stylesheet"==k.rel&&
k.href&&(m[k.href]=!0);b.some(function(a){if(!m[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},Kv=function(a,b,c){for(var d={0:0},e=0,h=0,k=c.length;h<k;h++){var m=c[h],l=a;
m.timing>a&&(l=m.timing);d[l]||(d[l]=0);m=(m.o-m.C)*(m.B-m.A);d[l]+=m;e+=m}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 p in d)b=new Mv((0,window.parseFloat)(p),d[p]),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},Lv=function(a,b,c,d,e){this.o=c;
this.A=d;this.B=b;this.C=a;this.url=e},Mv=function(a,b){this.area=b;
this.timing=a},Rv=function(a,b,c){Nv(c)[a]=b||Qt();
b||Ov(a);b=ti("TIMING_ACTION",void 0);a=Nv(c);if(r("yt.timing.ready_")&&b&&a._start&&Pv(c)){b=!0;var d=ti("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)&&Qv(c)}},Sv=function(a,b){var c=Nv(b);
return a in c},Uv=function(a,b,c){Tv(c).info[a]=b},Xv=function(a){Vv(a);
Wv();q("yt.timing.pingSent_",!1,void 0)},Pv=function(a){a=Nv(a);
if(a.aft)return a.aft;for(var b=ti("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN},Zv=function(a){return Math.round(Yv.timing.navigationStart+a)},$v=function(a){var b=window.location.protocol,c=Yv.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=Zv(d.startTime),a.wfce=Zv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=Zv(c.startTime),a.wffe=Zv(c.responseEnd))},Qv=function(a){var b=Nv(a),c=Tv(a).span,d=Tv(a).info,e=r("yt.timing.reportbuilder_");
if(e){if(e=e(b,c,d,a))aw(e),Xv(a)}else{var h=ti("TIMING_ACTION",void 0),k=ti("CSI_SERVICE_NAME","youtube"),e={v:2,s:k,action:h};if(Yv.now&&Yv.timing){var m=Yv.timing.navigationStart+Yv.now(),m=Math.round(K()-m);d.yt_hrd=m}var m=ti("TIMING_INFO",{}),l;for(l in m)d[l]=m[l];l=d.srt;delete d.srt;var p;l||0===l||(p=Yv.timing||{},l=Math.max(0,p.responseStart-p.navigationStart),(0,window.isNaN)(l)&&d.pt&&(l=d.pt));if(l||0===l)d.srt=Math.round(l);d.h5jse&&(m=window.location.protocol+r("ytplayer.config.assets.js"),
(m=Yv.getEntriesByName?Yv.getEntriesByName(m)[0]:null)?d.h5jse=Math.round(d.h5jse-m.responseEnd):delete d.h5jse);b.aft=Pv(a);m=b._start;if("cold"==d.yt_lt){p||(p=Yv.timing||{});var t;a:if(t=p,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>m&&(b.fpt=
t);t=c||Tv(void 0).span;u=p.redirectEnd-p.redirectStart;0<u&&(t.rtime_=u);u=p.domainLookupEnd-p.domainLookupStart;0<u&&(t.dns_=u);u=p.connectEnd-p.connectStart;0<u&&(t.tcp_=u);u=p.connectEnd-p.secureConnectionStart;p.secureConnectionStart>=p.navigationStart&&0<u&&(t.stcp_=u);u=p.responseStart-p.requestStart;0<u&&(t.req_=u);u=p.responseEnd-p.responseStart;0<u&&(t.rcv_=u);Yv.getEntriesByType&&$v(b);(p=ti("SPEEDINDEX_FOR_ACTIONS",void 0))&&-1<p.indexOf(h)&&(h=Qt(),p=Hv(),h=Qt()-h,0<p.sj&&(d.si=p.sj,
b.vsc=Zv(p.Sr),c.sid=h))}t=Nv(a);h=t.pbr;p=t.vc;t=t.pbs;h&&p&&t&&h<p&&p<t&&1==Tv(a).info.yt_vis&&"youtube"==k&&(Uv("yt_lt","hot_bg",a),k=b.vc,h=b.pbs,delete b.aft,c.aft=Math.round(h-k));(k=ti("PREVIOUS_ACTION"))&&(d.pa=k);d.p=ti("CLIENT_PROTOCOL")||"unknown";d.t=ti("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var A in d)"_"!=A.charAt(0)&&(e[A]=d[A]);b.ps=Qt();d={};A=[];for(var C in b)"_"!=C.charAt(0)&&(t=Math.max(Math.round(b[C]-m),0),d[C]=t,A.push(C+
"."+t));e.rt=A.join(",");b=e;C=[];for(var H in c)"_"!=H.charAt(0)&&C.push(H+"."+Math.round(c[H]));b.it=C.join(",");(H=r("ytdebug.logTiming"))&&H(e,d,c);Xv(a);ti("EXP_DEFER_CSI_PING")?(bw(),q("yt.timing.deferredPingArgs_",e,void 0),a=vi(bw,0),q("yt.timing.deferredPingTimer_",a,void 0)):aw(e);a=new Fv(d.aft+(l||0));c=vv;(e=yv())&&e.publish.call(e,c.toString(),c,a)}},aw=function(a){if(ti("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})}ti("EXP_DEFER_CSI_PING")&&(xi(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=ti("CSI_LOG_WITH_YT")?"/csi_204":c,b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=ti("DOUBLE_LOG_CSI")?"/csi_204?"+b.substring(1):null;window.navigator&&window.navigator.sendBeacon?
(iq(a),b&&iq(b)):(hq(a),b&&hq(b));q("yt.timing.pingSent_",!0,void 0)},bw=function(a){if(ti("EXP_DEFER_CSI_PING")){var b=r("yt.timing.deferredPingArgs_");
b&&(a&&(b.yt_fss=a),aw(b))}},Nv=function(a){return Tv(a).tick},Tv=function(a){return r("ytcsi."+(a||"")+"data_")||Vv(a)},Vv=function(a){var b={tick:{},
span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b},dw=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=cw)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},ew=function(){for(var a=dw(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));
return b.join("")},fw=function(){return ji(dw(),function(a){return(a&15).toString(16)}).join("")},gw=function(a,b,c){this.errorCode=a;
this.o=b;this.details=c||{}},hw=function(a){var b,c;
for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""},iw=function(a){return(a=a.exec(oc))?a[1]:""},ru=function(a){return 0<=Ua(jw,a)},kw=function(){},lw=function(){this.buffered=new kw},mw=function(a,b){this.C=a;
this.o=!!b;this.B=!1;this.A={}},nw=function(a){return a.o?a.C:hf(a.C,a.A)},ow=function(a,b){this.A=a;
this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.eE,set:this.iE});Object.defineProperty(this,"buffered",{get:this.cE})},pw=function(){this.length=0},qw=function(a){this.activeSourceBuffers=this.sourceBuffers=[];
this.o=a;this.A=window.NaN;this.B=0;Object.defineProperty(this,"duration",{get:this.dE,set:this.hE});Object.defineProperty(this,"readyState",{get:this.fE});this.o.addEventListener("webkitsourceclose",y(this.gE,this),!0)},rw=function(a,b,c,d,e){Dr.call(this);
this.A=this.o=null;this.C=b;this.B=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new qw(a);this.F=this.D=this.G=null;this.H=d;this.M=c;this.P=e;Er(this,this.B,["sourceopen","webkitsourceopen"],this.K);Er(this,this.B,["sourceclose","webkitsourceclose"],this.J)},tw=function(a,b){a.D=b},uw=function(a,b){a.F=b},vw=function(a){if(!a.G){var b;
b=a.B;b=b.DG?b.o.webkitMediaSourceURL:window.URL.createObjectURL(b);a.G=new mw(b,!0)}return a.G},ww=function(a){try{return"open"==a.B.readyState}catch(b){return!1}},xw=function(a){try{return"closed"==a.B.readyState}catch(b){return!0}},yw=function(a){return a.o.updating||a.A.updating},zw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)},Aw=function(a){return a.o?!!a.o.appendBuffer:zw()},Bw=function(a){if(/opus/.test(a)&&(Dl&&!ru("38")||dq()))return!1;
if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!bq())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!hu().canPlayType(a)},Cw=function(a){this.wc=a},Dw=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},Hw=function(a,b){if(2.2!=Ew&&ku(a.A))return[];
for(var c={},d=hu(),e=0;e<b.length;e++){var h=b[e];if(Or(h.wc)in Fw||"5"==Or(h.wc)?0:Gw(d,h.wc.mimeType)){var k=h.wc.video.quality;c[k]&&2!=c[k].wc.A||(c[k]=h)}}var m=[];c.auto&&m.push(c.auto);F(Vr,function(a){(h=c[a])&&m.push(h)});
return m},Gw=function(a,b){var c=a.canPlayType(b);
Iw?c=c||Jw[b]:2.2==Ew?c=c||Kw[b]:Zp()&&(c=c||Lw[b]);return!!c},Mw=function(){var a=Zp()&&!ru(29),b=Yp("google tv")&&Yp("chrome")&&!ru(30);
return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)},Uw=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 m=k.mimeType,l={};k.video&&(k.video.width&&(l[Nw.name]=k.video.width),k.video.height&&(l[Ow.name]=k.video.height),k.video.fps&&(l[Pw.name]=k.video.fps),k.o&&(l[Qw.name]=8*k.o));k.audio&&k.audio.o&&(l[Rw.name]=k.audio.o);k=l;l=void 0;for(l in Sw){var p=Sw[l];if(k[p.name]&&Tw(h,p))if(h.o){if(h.o[p.name]<k[p.name]){h=!1;break a}}else m=m+"; "+p.name+"="+k[p.name]}h=
Bw(m)}else h=!0}h&&(c[e.info.B]=c[e.info.B]||[],c[e.info.B].push(e.info))}return c},Vw=function(a,b,c){var d={},e;
Ob(b,function(a,b){var m=a.filter(function(a){return a.Ge?c&&a.Ge[c.o]&&c.C[a.mimeType]?261==Or(a)?(e||(e=hu()),!1):!0:!1:!0},this);
m.length&&(d[b]=m)},a);
return d},ex=function(a,b,c,d){function e(a){return!!h[a]}
var h=Uw(a,b);St(b)&&(h=Vw(a,h,c));c=Ww;if(!a.A)c=Xw;else if(Yp("cros armv7")&&!a.C.ga("html5_enable_cros_vp9")||Yp("windows nt 5.1"))c=Yw;b=Zw;d&&(a.A&&(c=Yw),b=$w);a.C.ga("html5_enable_aac_51_clear")&&(b=ax);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=oe(h["9"],c,0);oe(h.h,c,0)>1.5*k&&(d="h")}c=h[d];k=h[b];c=bx(a,c);cx(c,k);return new Pu(c,k,dx(a,h,d,b))},dx=function(a,b,c,d){var e=b.h;
b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=bx(a,e),cx(e,b),new Pu(e,b)):null},cx=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})},bx=function(a,b){var c=zh(b,function(a){return 32<a.video.fps});
c&&(b=a.D||Tw(a,Pw)?ae(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):ae(b,function(a){return!(32<a.video.fps)}));
c&&aq()&&(b=ae(b,function(a){return 299!=Or(a)}));
return b},Tw=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"',Bw(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Bw(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Bw(e+"; "+b.name+"="+b.valid)&&!Bw(e+"; "+b.name+"="+b.$g));c[d]=e}return a.B[b.name]},fx=function(a,b){this.A=a;
this.o=b;this.B=0},gx=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)},hx=function(a,b,c,d,e,h,k,m,l){this.itag=a;
this.url=b;this.zo=c;this.width=d;this.height=e;this.bitrate=k;this.fps=h;this.audioItag=m||null;this.o=l||""},ix=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 hx(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},jx=function(a,b){this.wc=a;
this.B=b;this.o=null},kx=function(a,b,c,d,e,h,k,m,l){var p=new Mr;
d=new Yr(d,e,h,null,void 0,k);c=new Pr(c,"application/x-mpegURL",p,d,void 0,l);a=new fx(a,b);a.B=m?m:1369843;return new jx(c,a)},lx=function(a,b,c){if(!Iw&&!cq())return[];
b=ix(b);if(!b)return[];var d={sO:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,h=[],k=[],m=[],l;for(l in b){var p=b[l];if(p.width){var t=b[p.audioItag];t&&(h.push(p),e="fairplay"==p.o?d:null,m.push(kx([t],[p],p.itag,p.width,p.height,p.fps,void 0,void 0,e)))}else k.push(p)}e=m.reduce(function(a,b){return!!b.wc.Ge&&a},!0)?d:null;
m.push(kx(k,h,"93",0,0,0,"auto",c,e));return Hw(a.G,m)},mx=function(a,b){this.wc=a;
this.o=b},nx=function(a,b,c,d,e,h,k){var m=new Mr;
c in Wr||(c="small");e&&h?(h=(0,window.parseInt)(h,10),e=(0,window.parseInt)(e,10)):(h=Wr[c],e=Math.round(16*h/9));c=new Yr(e,h,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new mx(new Pr(d,b,m,c),a)},ox=function(a){var b=[];
F(a,function(a){a.url&&b.push(nx(a.url,a.type,"medium","0"))});
return b},px=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||Jr(e.s);e.url=lj(e.url,{signature:h})}e.url&&c.push(nx(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Hw(a.G,c)},rx=function(a){Lj.call(this);
this.Td=new ue(0,0);this.Pa=this.X=this.la=!1;this.Qb="";this.wb=this.jb=!1;this.Za={};this.rd="";this.captionTracks=[];this.Ea=[];this.ob=0;this.captionTranslationLanguages=[];this.Fa=!1;this.U=new Hu("und",new Ur("Default","und",!0));this.Ia=0;this.Sd=this.yd=!1;this.H=null;this.M=[];this.zd=new Wd(this.yr,5E3,this);I(this,this.zd);this.J=[];this.C={};this.keywords={};this.D={};qx(this,a)},xx=function(a,b){var c=b||{};
c.iv_invideo_url&&(a.wf=Xp(c.iv_invideo_url));c.iv_ads_only&&(a.ho="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.bb=c.cta_conversion_urls);a.isPharma=dv(a.isPharma,c.is_pharma);a.author=gv(a.author,c.author);a.ji=dv(a.ji,c.cc_asr);var d=c.ttsurl;sx.test(d)?a.ki=d:d&&(d=Wp(d),sx.test(d)&&(a.ki=d));c.caption_tracks&&c.caption_audio_tracks&&(tx(a,c.caption_tracks),a.Ea=ij(c.caption_audio_tracks),c.default_audio_track_index&&(a.ob=(0,window.parseInt)(c.default_audio_track_index,10)||0),c.caption_translation_languages&&
ux(a,c.caption_translation_languages));a.Fa=dv(a.Fa,c.cc_contribute);a.clientPlaybackNonce=gv(a.clientPlaybackNonce,c.cpn);a.subscribed=gv(a.subscribed,c.subscribed);a.sentiment=ev(a.sentiment,c.sentiment,vx);a.shortViewCount=gv(a.shortViewCount,c.short_view_count_text);a.title=gv(a.title,c.title);a.ypcPreview=gv(a.ypcPreview,c.ypc_preview);a.ypcOrigin=gv(a.ypcOrigin,c.ypc_origin);a.paygated=dv(a.paygated,c.paygated);a.requiresPurchase=dv(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
wx(c.keywords));c.rvs&&(a.K=ij(c.rvs));a.contentCheckOk=dv(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=dv(a.racyCheckOk,"1"==c.rco);a.oauthToken=gv(a.oauthToken,c.oauth_token);a.visitorData=gv(a.visitorData,c.visitor_data);c.session_data&&(a.va=fj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Ib=fj(c.endscreen_autoplay_session_data,"&"));a.Va=gv(a.Va,c.tracking_list||c.tv_list);F(rx.D,function(a){a in c&&(this.C[a]=c[a])},a)},qx=function(a,b){var c=b||{};
a.$d="1"!=c.hlsdvr?!1:Mw()?!0:yx&&5>zx?!1:!0;a.pf=c.ad_query_id;a.qf=c.agcid;a.ai="1"==c.infringe||"1"==c.muted;a.cb=c.authkey;a.Bb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||ew());a.Wh=K();a.Pk=dv(a.Pk,c.cenchd);a.enableCardio=dv(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=dv(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.Bf=fv(a.Bf,c.end||c.endSeconds);a.Si=gv(a.Si,c.itct);a.Ol=dv(a.Ol,c.noiba);a.Wf="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=dv(a.isMdxPlayback,c.mdx);a.Sl=dv(a.Sl,c.reload);a.Tl=dv(a.Tl,c.utpsa);a.vb=c.cyc;for(var d in rx.o){var e=c[d+"_webp"]||c[d];Ax.test(e)&&(a.Za[rx.o[d]]=e)}d=c.murlmq_webp;Ax.test(d)&&(a.rd=d);a.L=gv(a.L,c.vvt);a.rf=c.osig;a.sd=c.ptchn;a.ud=c.oid;a.$=c.ptk;a.wd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.yi=c.vm;a.ci=c.of;a.playlistId=
gv(a.playlistId,c.list);a.xd=c.pyv_view_beacon_url;a.tf=c.pyv_quartile25_beacon_url;a.uf=c.pyv_quartile50_beacon_url;a.vf=c.pyv_quartile75_beacon_url;a.sf=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Xd=c.sdetail;!a.Ua&&c.session_data&&(a.Ua=fj(c.session_data,"&").feature);a.isFling=1==fv(a.isFling?1:0,c.is_fling);a.vnd=fv(a.vnd,c.vnd);a.fa=gv(a.fa,c.ctrl);a.ea=gv(a.ea,c.ytr);a.ia=c.ytrcc;
a.oh=jv(a.oh,c.vq);a.uh=jv(a.uh,c.suggestedQuality);a.ca=c.approx_threed_layout||0;a.Zd=dv(a.Zd,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=gv(a.vssCredentialsToken,c.vss_credentials_token);a.Um=gv(a.Um,c.vss_credentials_token_type);Bx(a,c.watermark);a.ypcGid=gv(a.ypcGid,c.ypc_gid);a.heartbeatToken=gv(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=fv(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=fv(a.heartbeatRetries,c.heartbeat_retries);
a.heartbeatSoftFail=dv(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.J.push("ad")):"1"!=c.supported_without_ads&&(a.ap=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ha=c.atc);c.license_info&&(a.hn=Cx(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.Ti="1"==c.autonav);c.autoplay&&(a.Nc="1"==c.autoplay);
c.iv_load_policy&&(a.sa=ev(a.sa,c.iv_load_policy,Dx));c.cc_lang_pref&&(a.Vd=gv(c.cc_lang_pref,a.Vd));c.cc_load_policy&&(a.Wd=ev(a.Wd,c.cc_load_policy,Dx));c.channel_path&&(a.mi=gv(c.channel_path,a.mi));"0"==c.dash&&(a.Ao=!0);c.dashmpd&&(a.G=hf(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=Jr(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.ff=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.Kp="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.J.push("fresca");c.idpj&&(a.Kj=Ya(c.idpj));c.ismb&&(a.Ah=Ya(c.ismb));c.is_episodic&&(a.Ml="1"==c.is_episodic);c.is_listed&&(a.isListed=dv(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.og=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));c.live_chunk_readahead&&(a.Mk=fv(a.Mk,c.live_chunk_readahead));
c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.live_manifest_duration&&(a.Vl=Ya(c.live_manifest_duration));c.ldpj&&(a.jn=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.$h=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):rx.A);c.partnerid&&(a.O=Ya(c.partnerid));c.probe_url&&(a.probeUrl=Xp(hf(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=gv(c.profile_picture,a.profilePicture));c.pyv_billable_url&&
Ex.test(c.pyv_billable_url)&&(a.xa=c.pyv_billable_url);c.pyv_conv_url&&Ex.test(c.pyv_conv_url)&&(a.na=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ja=d.quartile_0_url,a.bc=d.quartile_25_url,a.od=d.quartile_50_url,a.qd=d.quartile_75_url,a.ac=d.quartile_100_url);"1"==c.spacecast_module&&(a.J.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=fv(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.Ga||(a.clipStart=
c.start);c.two_stage_token&&(a.Lj=c.two_stage_token);c.url_encoded_third_party_media&&(a.cf=ij(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.J.push("ypc");c.ypc_clickwrap_module&&a.J.push("ypc_clickwrap");a.nf=gv(a.nf,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);
a.D.focEnabled=dv(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=dv(a.D.rmktEnabled,c.rmktEnabled);a.C=c;xx(a,c);Fx(a);c.adpings&&(a.Ud=c.adpings?hj(c.adpings):null);c.feature&&(a.Yd=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.M=ij(c.multifeed_metadata_list))},Gx=function(a){return K()>a.Wh+18E6},Hx=function(a){return!(!a.A||!a.A.videoInfos.length)},Fx=function(a){if(!Ix(a)){if(a.adaptiveFormats){var b=Vt(Jx(a,a.adaptiveFormats),a.hn,a.lengthSeconds,
a.Ga);
if(!Kx(b)){a.o=b;I(a,a.o);St(a.o)&&(a.X=!0);return}b.dispose()}a.G&&(a.la=!0)}},Kx=function(a){return a.A&&Bw('video/webm; codecs="vp9"')&&Qb(a.o,function(a){return Qr(a.info)})},Ix=function(a){return!Mw()||a.Ao?!0:!1},Lx=function(a){a.isDisposed()||(a.oe=!1,a.S("dataloaded",a.C))},Ox=function(a,b){if(!a.isDisposed()){a.A=null;
a.cg=null;a.P=null;var c=Ix(a)||b.Ql;if(!c&&a.spacecastAdaptiveFormats)a.o=Vt(Jx(a,a.spacecastAdaptiveFormats),a.hn,a.lengthSeconds),I(a,a.o),a.A=ex(b.G,a.o,a.H,!0);else if(a.spacecastFormatMap){var d=Jx(a,a.spacecastFormatMap);a.P=px(b,d);a.A=new Pu(ji(a.P,function(a){return a.wc}))}a.A&&(d=oe(a.A.videoInfos,function(a,b){return b.video.o&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=Ju(d.quality,d.quality,!0),a.oh=d,a.uh=d);
a.A||c||!a.o||(b.F||gu(a.o,a.Ga),a.A=ex(b.G,a.o,a.H));a.A||(a.P=Mx(a,b),a.P.length&&(a.A=new Pu(ji(a.P,function(a){return a.wc}))));
Nx(a)}},Mx=function(a,b){if(a.hlsFormats){var c=Jx(a,a.hlsFormats),c=lx(b,c,a.Ah);
if(c.length)return c}if(a.cf&&a.Rp)return c=ox(a.cf),Hw(b.G,c);c=Jx(a,a.og,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.Ah,h={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(h.ibw=e?String(e):"1369843");d={url:hf(d,h),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return px(b,c)},Px=function(a){return a.B&&a.B.Ge||null},Qx=function(a){a.Gj||(a.C.storyboard_spec?a.Gj=new av(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.o&&(a.Gj=new cv(a.C.live_storyboard_spec,
a.o)));
return a.Gj},Rx=function(a){var b=Qx(a);
!a.uj&&b&&(a.uj=new Uu(b),I(a,a.uj));return a.uj},Sx=function(a){return a.o&&!(0,window.isNaN)(du(a.o))?du(a.o):0},Tx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.cf)},Ux=function(a){return!!(a.o||a.og||a.cf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)},Vx=function(a){var b=jb(a.J,"ypc");
a.ypcPreview&&(b=!1);return Tx(a)&&!a.oe&&!a.la&&!a.X&&(Ux(a)||jb(a.J,"fresca")||b)},Jx=function(a,b,c){b=ij(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=hf(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b},wx=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},Bx=function(a,b){if(b){var c=b.split(",");
2<=c.length&&(a.Ka=c[1],Ax.test(a.Ka)&&-1==a.Ka.search(rx.F)||(a.Ka=""))}},Cx=function(a){a=ij(a);
var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b},tx=function(a,b){for(var c=ij(b),d=0;d<c.length;d++){var e=c[d],h=e.u;
sx.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 Du(h)))}},ux=function(a,b){for(var c=ij(b),d=0;d<c.length;d++){var e=c[d];
a.captionTranslationLanguages.push(new Cu({languageCode:e.lc,languageName:e.n}))}},Nx=function(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.U),c=0;c<a.Ea.length;c++)for(var d=a.Ea[c],e=0;e<b.length;e++){var h=b[e],k=h.Gb.id==d.aid;
if(h==a.U&&c==a.ob||k){if(d.i)for(var k=d.i.split(","),m=0;m<k.length;m++)h.captionTracks[m]=a.captionTracks[(0,window.parseInt)(k[m],10)];d.d&&(h.Nk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(h.Ai=a.captionTracks[(0,window.parseInt)(d.f,10)]);h.po=(0,window.parseInt)(d.v,10)}}},Wx=function(a,b){return!!a.C[b]},Xx=function(a){return a.Ga&&!a.$d},Yx=function(a){return a.Ga&&a.$d},Zx=function(a){if(a.ca||a.ad["3D"])return!0;
a=a.ad("yt3d:enable");return"true"==a||"LR"==a||"RL"==a},$x=function(a,b){(0,window.isNaN)(a.af)&&(a.af=a.Mk,a.Wf&&a.af--,a.o&&1.5>=eu(a.o)&&(a.Xi=.5>Math.random()),(!a.isLowLatencyLiveStream&&b.ga("html5_live_disable_dg_pacing")||a.Xi)&&a.af++,a.af=Math.max(0,a.af));
return a.af},ay=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.ca)return!0}return!1},gy=function(a){Lj.call(this);
this.startSeconds=0;this.L=!1;this.o=0;this.title="";this.B=0;this.A=[];this.H=this.F=!1;this.va=this.Ib=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":by(this,a.list);break;case "user_favorites":cy(this,a.list);break;case "search":dy(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.D=Hr(a.list),a.video?(this.A=a.video.slice(0),this.F=!0):ey(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=ji(this.A,function(a){return a.video_id});
fy(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 rx.o)b="playlist_"+c,b=a[b+"_webp"]||a[b],Ax.test(b)&&(this.P[rx.o[c]]=b);this.M=a.thumbnail_ids?a.thumbnail_ids.split(","):[]},hy=function(a){return!!(a.playlist||a.list||a.api)},iy=function(a){var b=a.o+1;
return b>=a.B?0:b},jy=function(a){var b=a.o-1;
return 0>b?a.B-1:b},ky=function(a,b){a.o=le(b,0,a.B-1);
a.startSeconds=0},by=function(a,b){a.H||(a.D=new Gr("UU","PLAYER_"+b),fy(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))},cy=function(a,b){a.H||(a.D=new Gr("FL","PLAYER_"+b),fy(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))},dy=function(a,b){if(!a.H){a.D=new Gr("SR",b);
var c={search_query:b};a.U&&(c.mob="1");fy(a,"/search_ajax?style=json&embeddable=1",c)}},ey=function(a){if(!a.H){var b={list:a.D},c=a.xb();
c&&c.videoId&&(b.v=c.videoId);fy(a,"/list_ajax?style=json&action_get_list=1",b)}},fy=function(a,b,c){a.O&&tj(hf(b,c),{format:"JSON",
sb:function(a,b){ly(this,b)},
onError:function(){this.S("error")},
context:a})},ly=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.xb();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:my(a,c);a.setShuffle(!1);a.H=!1;a.F=!0;a.J++;a.G&&a.G()}},my=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}}},ny=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},oy=function(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey},py=function(a){return hy(a)?(a.fetch=0,new gy(a)):new rx(a)},qy=function(a,b,c,d){var e=b.xb();
M(a.element,"ytp-suggestion-set",!!e.videoId);var h=b.sg();d=b.gc(c,d?d:"mqdefault.jpg");var k=b instanceof rx?ny(b.lengthSeconds):null,m=!!h,h=m&&"RD"==Hr(h).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCount?b.author+" \u2022 "+e.shortViewCount:b.author,watch:Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.bl(c),episodic_title:b.title,is_episodic:e.Ml,is_featured:e.Kp,is_list:m,is_mix:h,background:d?"background-image: url("+d+")":""};b instanceof gy&&
(c.playlist_length=b.B,c.episodic_length=b.B,c.episodic_index=b.Mb());a.update(c)},ry=function(a){var b=a.W().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",Q("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",
Q("YTP_AUTOPLAY_PAUSED_2")]],["span","ytp-upnext-close"]];R.call(this,c);var d=this.ra["ytp-upnext-cancel"],c=this.ra["ytp-upnext-close"],e=new R(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":Q("YTP_AUTOPLAY_CANCEL")},Q("YTP_CANCEL")]);I(this,e);e.R("click",this.oq,this);e.o(d);d=new R(["button",["ytp-upnext-close-button","ytp-button"]]);I(this,d);d.R("click",this.oq,this);d.o(c);c=this.ra["ytp-upnext-autoplay-icon"];Mf(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.A=a;this.L=Og("ytp-svg-autoplay-ring",this.element);this.H=this.G=this.D=this.F=null;this.J=new Wd(this.pi,5E3,this);I(this,this.J);this.K=0;this.T(c,"click",this.JB);this.nq();this.T(a,"autonavvisibility",this.nq);b&&this.T(this.ra["ytp-upnext-moving-thumbnail"],"load",this.JH)},sy=function(a){a.D||(Ji("a11y-announce",Q("YTP_PLAYLIST_UP_NEXT")+" "+a.F.title),a.K=Qt(),a.D=new Wd(a.tk,25,a),a.tk());
be(a.element,"ytp-upnext-autoplay-paused")},uy=function(a){ty(a);
a.K=Qt();a.tk();L(a.element,"ytp-upnext-autoplay-paused")},ty=function(a){a.D&&(a.D.dispose(),a.D=null)},vy=function(){},wy=function(a){var b=window.location;
a=hf(a,{})+"";a=a instanceof mg?a:qg(a);b.href=ng(a)},yy=function(a,b){var c=ti("EVENT_ID");
c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=ti("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Ze(window.location.href);e&&d.push(e);e=Ze(a);if(jb(d,e)||!e&&ua(a,"/"))if(d=Xe(a),d=Ve(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)){var e=ti("ST_BASE36",!0),h;h=ti("ST_SHORT",!0)?"ST-":"s_tempdata-";d=h=e?h+Va(d).toString(36):h+Va(d);e=c?ff(c):"";ik.set(""+d,e,5,"/","youtube.com");c&&(c=c.itct||c.ved,d=r("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new vy))}}},zy=function(a,
b){window.open(a,b||Va(a).toString(36))},Ay=function(a){var b=!a.W().Fa&&3!=a.getPresentingPlayerType();
return a.Oa()||b},By=function(a,b,c){if(!c&&oy(a))return Wl(a),!0;
b.pauseVideo();a=a.currentTarget.getAttribute("href");yy(a,null);return!1},Ey=function(a,b,c){if(Cy(b.W())&&2!=b.getPresentingPlayerType()){if(oy(c))return b.Oa()&&Dy(b),Wl(c),!0}else{var d=oy(c);
d&&b.pauseVideo();yy(a,null);d&&(zy(a),Wl(c))}return!1},Fy=function(a){var b=a.W(),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.P;this.H=-1;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",Q("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",Q("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"],Q("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"],Q("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.A=a;this.D=null;this.R("click",this.CF);this.R("keypress",
this.DF);c&&this.T(this.ra["ytp-videowall-moving-thumbnail"],"load",this.FF)},Hy=function(a){if(1E5<Gy(a.A.app.la)){var b=a.D.Yk();
b&&a.update({moving_thumbnail:b})}},Iy=function(a,b){Pq.call(this,a,"videowall-endscreen");
this.$=b;this.J=0;this.G=[];this.H=this.D=null;this.M=this.O=!1;this.K=new Dr(this);I(this,this.K);this.P=new Wd(pa(L,this.element,"ytp-show-tiles"),0);I(this,this.P);var c=this.A.W().experiments.ga("video_wall_pagination");if(c){var d=new R(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":Q("YTP_PREVIOUS")}]);I(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.sA,this)}this.X=new Gq(["div","ytp-endscreen-content"]);I(this,this.X);this.X.o(this.element);c&&(c=new R(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":Q("YTP_NEXT")}]),I(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.rA,this));this.A.W().experiments.ga("video_wall_redesign")&&
L(this.element,"ytp-endscreen-redesign");this.F=new ry(a);I(this,this.F);Br(this.A,this.F.element,4);this.ka();this.R("transitionend",this.AC)},Ky=function(a){return Jy(a.A)&&a.bi()&&!a.H},Ly=function(a,b,c){return 0==b&&a.D.length&&(b=c/Iy.o,c/=Iy.o,3<=b&&3<=c&&py(a.D[0]).xb().Ml||2<=b&&2<=c&&a.A.W().experiments.ga("video_wall_moving_thumbnails_first"))?2*Iy.o:Iy.o},Ny=function(a){var b=My(a.$);
b!=a.O&&(a.O=b,a.A.S("autonavvisibility"))},Py=function(a){vq.call(this,a);
Bi({});this.ua="endscreen";this.logEvent="end";this.A=null;var b=a.W();Oy(a)?this.A=new Iy(this.o,this):b.ea?this.A=new Cr(this.o):this.A=new Pq(this.o);Br(this.o,this.A.element,4)},Ry=function(a){var b=a.getVideoData(),b=b&&b.Ga,c=a.getPresentingPlayerType();
return Qy(a.W())&&2!=c&&3!=c&&!b},Ty=function(a){var b=a.o.getVideoData(),c=!Oy(a.o)||!(!b.K||!b.K.length);
a.o.W();b=Wx(b,"ypc_module");a=Sy(a.o.app);return c&&!b&&!a},Oy=function(a){a=a.W();
return a.rd&&!a.ea},My=function(a){return a.A instanceof Iy&&a.A.C&&Ky(a.A)},Uy=function(a){var b=Math.max(1E3*(a.o.getVideoData().lengthSeconds-10),0),b=new qq(b,0x8000000000000,{id:"preload"}),c=new qq(0x8000000000000,0x8000000000000,{id:"load",
priority:6});a.gb([b,c])},Vy=function(a){return Ry(a)?new Py(a):null},Xy=function(a){return(a=Wy[a.toString()])?a:"YTP_ERROR_LICENSE"},Yy=function(){var a=[],b=[];
return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}},Zy=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},$y=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},az=function(a,b){var c=$y(a,b);
return 0<=c?a.end(c):window.NaN},bz=function(a){return a&&a.length?a.end(a.length-1):window.NaN},cz=function(a,b){var c=az(a,b);
return 0<=c?c-b:0},dz=function(){},fz=function(a){a.src&&(Iw&&0<a.readyState&&(a.currentTime=Math.max(ez,0)),a.removeAttribute("src"),a.load(),!a.mf||!a.mf.o||a.mf&&a.mf.equals(null)||(a.mf&&a.mf.dispose(),a.mf=null))},gz=function(a,b){this.A=a||64;
this.o=b||null},lz=function(a,b,c,d){if(T(a,128))return a;
var e=a.A,h=a.o,k=b.target;if(!T(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)T(a,256)?(e^=256)||(e=64):T(a,32)||T(a,2)||T(a,4)||(e=4,T(a,1)&&T(a,8)&&(e|=1),h=null);else if("playing"==b.type)e=8,h=null,T(a,32)&&(e|=32),d&&T(a,1)&&hz(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:Q("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(h=b,e|=128)}else if("progress"==b.type)iz(a)&&hz(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=jz(k)&&(e|=1),e&=-3;else if("waiting"==b.type)T(a,2)||(e|=1);else if("timeupdate"==b.type)T(a,16)||T(a,4)||(e=hz(c,k)?e|1:e&-2),1<k.o.readyState&&0<k.getCurrentTime()&&(e&=-65);else return a;
return kz(a,e,h)},hz=function(a,b){return a?mz(a,b.getCurrentTime(),Qt(),jz(b)):!1},kz=function(a,b,c){return b==a.A&&c==a.o||b&128&&!c||b&2&&b&16?a:new gz(b,c)},nz=function(a,b){return kz(a,a.A|b)},oz=function(a,b){return kz(a,a.A&~b)},pz=function(a){return kz(a,(a.A|4)&-9)},T=function(a,b){return!!(a.A&b)},iz=function(a){return T(a,8)&&!T(a,2)},qz=function(a){return T(a,64)&&!T(a,8)&&!T(a,4)},rz=function(a){return T(a,1)&&!T(a,2)},sz=function(a){return T(a,128)?-1:T(a,2)?0:T(a,1)&&!T(a,32)?3:T(a,
64)?-1:T(a,8)?1:T(a,4)?2:-1},tz=function(a,b,c){Lj.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.kz,clientVersion:c.innertubeContextClientVersion,hl:c.mz,gl:c.lz}},videoId:a});this.J="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.A=new Wd(y(this.D,this));I(this,this.A);this.D()?this.A.start(this.o):this.A.start(1E4)},uz=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)},vz=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},zz=function(a,b){a.B("suggested_sidebar_title",b.A?Q("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.A}):"");
var c=a.ra["ytp-fresca-suggested-sidebar-close-button"];Mf(c,Sf());a.T(c,"click",a.pA);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:"+wz(a),m=xz(a);c.update({suggested_title:a.Ns,suggested_content:yz(a),badge_content:m,image_style:k,link_destination:a.getVideoUrl()});k=c.ra["ytp-fresca-suggested-image-badge"];M(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=m?"":"none";c.R("click",this.Hz,this);this.A.push(c)}},a);
a.B("sidebar_items",a.A)},Az=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 uz(a);I(this,this.F);this.D=new vz(a);I(this,this.D);this.F.ka();this.F.o(this.element);
this.D.ka();this.D.o(this.element)},Ez=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=Bz(b),M(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.A.imageUrl,b=a.ra["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&&!Cz(a.K))if(Dz(a.A.A)&&!Bz(a.A)){b=a.F;c=a.A.A.o[0];var d;d=a.A.A;d=d.A?Q("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.A}):"";var e="background-image:"+wz(c);b.update({suggested_header_central:d,suggested_title:c.Ns,suggested_content:yz(c),badge_content:xz(c),link_destination:c.getVideoUrl(),image_style:e});M(b.ra["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.F.show();a.D.ka()}else b=a.A.A,!(0<b.o.length)||
Dz(b)||Bz(a.A)||a.D.F?a.D.ka():(zz(a.D,a.A.A),a.D.show()),a.F.ka();else a.F.ka(),a.D.ka()},Fz=function(a){var b=Math.floor(K()/1E3);
if(b>a)return"";a-=b;return 86400>a?ny(a):259200>a?Q("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})},Gz=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)},Jz=function(a,b,c){ga(a)?(this.date=Hz(a,b||0,c||1),Iz(this,c||1)):ia(a)?(this.date=Hz(a.getFullYear(),a.getMonth(),a.getDate()),
Iz(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),Iz(this,a))},Hz=function(a,b,c){b=new Date(a,b,c);
0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b},Iz=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))},Kz=function(){},Mz=function(a){if("number"==typeof a){var b=new Kz;
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(":",Qa(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=Lz(a);b.D=[c,c];b.o={fN:a,Zn:a};b.A=[];return b}b=new Kz;b.C=a.id;b.B=-a.std_offset;b.D=a.names;b.o=a.names_ext;b.A=a.transitions;return b},Lz=function(a){var b=["GMT"];
b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Qa(Math.floor(a/60)%100,2),":",Qa(a%60,2));return b.join("")},Nz=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]},Rz=function(a,b){this.A=[];
this.o=b||Oz;"number"==typeof a?Pz(this,a):Qz(this,a)},Sz=function(a){return a.getHours?a.getHours():0},Qz=function(a,b){for(Tz&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<Uz.length;++c){var d=b.match(Uz[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}}},Pz=function(a,b){var c;
if(4>b)c=a.o.gk[b];else if(8>b)c=a.o.$n[b-4];else if(12>b)c=a.o.Su[b-8],c=c.replace("{1}",a.o.gk[b-8]),c=c.replace("{0}",a.o.$n[b-8]);else{Pz(a,10);return}Qz(a,c)},Vz=function(a,b){var c;
c=String(b);var d=a.o||Oz;if(void 0!==d.pw){for(var e=[],h=0;h<c.length;h++){var k=c.charCodeAt(h);e.push(48<=k&&57>=k?String.fromCharCode(d.pw+k-48):c.charAt(h))}c=e.join("")}return c},Wz=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.");
},Xz=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.Wu[c]:a.o.Xu[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),Vz(a,Qa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.o.Gv[c];break a;case 4:k=a.o.Qn[c];break a;case 3:k=a.o.Sn[c];break a;default:k=Vz(a,Qa(c+1,k))}return k;case "k":return Wz(e),Vz(a,Qa(Sz(e)||24,k));case "S":return Vz(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Qa(0,k-3):""));case "E":return c=d.getDay(),4<=k?a.o.bo[c]:a.o.Tn[c];
case "a":return Wz(e),k=Sz(e),a.o.Ln[12<=k&&24>k?1:0];case "h":return Wz(e),Vz(a,Qa(Sz(e)%12||12,k));case "K":return Wz(e),Vz(a,Qa(Sz(e)%12,k));case "H":return Wz(e),Vz(a,Qa(Sz(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.o.aw[c];break a;case 4:k=a.o.Xn[c];break a;case 3:k=a.o.Wn[c];break a;default:k=Vz(a,Qa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.o.$v[c];break a;case 4:k=a.o.Un[c];break a;case 3:k=a.o.Vn[c];break a;default:k=Vz(a,Qa(c+1,k))}return k;case "Q":return c=
Math.floor(d.getMonth()/3),4>k?a.o.Uv[c]:a.o.Nv[c];case "d":return Vz(a,Qa(d.getDate(),k));case "m":return Wz(e),Vz(a,Qa(e.getMinutes(),k));case "s":return Wz(e),Vz(a,Qa(e.getSeconds(),k));case "v":return k=h||Mz(c.getTimezoneOffset()),k.C;case "V":return a=h||Mz(c.getTimezoneOffset()),2>=k?a.C:0<Nz(a,c)?n(a.o.Vu)?a.o.Vu:a.o.DST_GENERIC_LOCATION:n(a.o.Zn)?a.o.Zn:a.o.STD_GENERIC_LOCATION;case "w":return c=a.o.jk,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),b=a.o.ik||0,c=e.valueOf()+864E5*(((n(c)?
c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),Vz(a,Qa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=h||Mz(c.getTimezoneOffset()),4>k?a.D[0<Nz(a,c)?2:0]:a.D[0<Nz(a,c)?3:1];case "Z":return e=h||Mz(c.getTimezoneOffset()),4>k?(k=-(e.B-Nz(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Qa(Math.floor(k/60)%100,2),Qa(k%60,2)),k=a.join("")):k=Vz(a,Lz(e.B-Nz(e,c))),k;default:return""}},Yz=function(a){this.D=a.thumbnailUrl?a.thumbnailUrl:null;
this.o=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Ns=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},wz=function(a){return(a=a.D)?"url("+a+")":""},yz=function(a){if("COMPLETE"==a.A){var b=Math.floor(K()/1E3);
a=a.o?b-a.o:0;return 172800<a?Q("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(K()/1E3),a=a.o?a.o-b:0,172800<a?Q("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_STREAMING_SOON")):a.B&&2<a.B?Q("YTP_FRESCA_VIEWERS_WATCHING_NOW",{VIEWER_COUNT:a.B}):Q("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")},
xz=function(a){return"COMPLETE"==a.A&&a.C?ny(a.C):a.isLive()?Q("YTP_FRESCA_LIVE_BADGE"):null},Zz=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 Yz(a[b]))},Dz=function(a){return 1==a.o.length&&a.o[0].isLive()},aA=function(a,b){this.state=-1;
this.B=a;this.messageText=[];this.C=!1;b&&$z(this,b)},$z=function(a,b){var c=b.lifeCycleState;
c&&(a.state=bA[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 Zz(b)},cA=function(a){switch(a.state){case 6:return!a.o()&&a.B?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),
null,Q("YTP_FRESCA_EVENT_OFFLINE")]:a.o()?[]:[Q("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),Q("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[Q("YTP_FRESCA_EVENT_OVER_MESSAGE"),Q("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Bz(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.B&&a.startTime){var b=ti("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;Oz={Qn:b.months,Un:b.months,Sn:b.shortMonths,Vn:b.shortMonths,gk:b.dateFormats,bo:b.weekdays,Xn:b.shortMonths,
Tn:b.shortWeekdays,Wn:b.shortWeekdays,kw:b.weekendRange,ik:b.firstDayOfWeek,jk:b.firstWeekCutoffDay,Ln:b.amPms};c=(new Rz(d)).format(new Date(1E3*c))}b=Math.floor(K()/1E3);return[b<=a.startTime?Q("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?Q("YTP_FRESCA_EVENT_STARTING_SOON"):Q("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.B?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,Q("YTP_FRESCA_EVENT_OFFLINE")]:a.B?[Q("YTP_FRESCA_EVENT_OFFLINE")]:[Q("YTP_FRESCA_STAND_BY_MESSAGE")]}},Bz=function(a){if(!a.startTime)return!1;
var b=a.startTime-Math.floor(K()/1E3);return jb(dA,a.state)&&86459>=b&&86400<=b},eA=function(a){vq.call(this,a);
this.logEvent=this.ua="fresca";this.B=this.J=!1;this.C=null;Bi({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.H=!1;this.K="leanback"!=this.o.W().Ba},gA=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.K&&(b.imageUrl||b.messageText.length))return!0;var d=fA(a.o),d=rz(d)||T(d,2),e;if(e=!a.A.o())(e=!a.B)||(e=!(fA(a.o).kb()&&!Xx(a.o.getVideoData())&&!a.o.app.A.K)&&d);return e||a.J&&a.o.app.A.K||!a.B&&6<b.state?c:!1},iA=function(a,b){var c=gA(a,b);
if(!a.B)switch(b.state){case 6:b.o()&&(a.B=!0,zq(a));break;case 8:case 7:a.B=!0}c&&Ez(a.D,b);c&&!a.loaded?(a.load(),hA(a.o)):!c&&a.loaded&&(a.unload(),hA(a.o))},jA=function(a){return Wx(a.getVideoData(),"fresca_module")?new eA(a):null},kA=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};hA(c,d)}},lA=function(){if(!Tg)return!1;
try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}},oA=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");
if(mA){var b=nA();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");},pA=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");},qA=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Jg(a);
"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=Jg(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null},nA=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},rA=function(a){this.A=a||window;
this.o=[]},sA=function(a,b,c){c=y(c,a.A);
b=Ol(b,"mouseleave",c);a.o.push(b);return b},wA=function(a,b,c,d){c=y(c,d||a.A);
b=Ql(b,c);a.o.push(b)},yA=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.wx,this)},zA=function(a){a=a.A;
return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},AA=function(a){a=a.A;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null},DA=function(a){a=ma(a);
delete BA[a];ac(BA)&&CA&&CA.stop()},FA=function(){CA||(CA=new Wd(function(){EA()},20));
var a=CA;a.isActive()||a.start()},EA=function(){var a=K();
Ob(BA,function(b){GA(b,a)});
ac(BA)||FA()},HA=function(){J.call(this);
this.o=0;this.endTime=this.startTime=null},IA=function(a,b,c,d){HA.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},GA=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;JA(a,a.progress);1==a.progress?(a.o=0,DA(a),a.Zb(),a.fh()):a.kb()&&a.am()},JA=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]},KA=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},LA=function(a){return Math.pow(a,3)},MA=function(a){return 3*a*a-2*a*a*a},NA=function(a){this.o="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1},OA=function(a,b){var c=a.A(b,void 0);
return-1==(0==c?a.o:c)?"rtl":"ltr"},PA=function(){this.o=[];
this.A=uq},QA=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},SA=function(a){return a.o.slice(RA(a,0x7ffffffffffff),a.o.length)},RA=function(a,b){var c=Bb(a.o,function(a){return b-a.start||1});
return 0>c?-(c+1):c},TA=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},UA=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 Wd(this.Pd,250,this);I(this,this.M);this.D=new Wd(this.Pd,0,this);I(this,this.D);this.A=[];this.o=new PA},VA=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},WA=function(a,b){var c=[];
if(!b.length)return c;b.sort(uq);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},XA=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},YA=function(a){return da(a)&&a.length?a[0]:a},ZA=function(a){var b=/.+/;
return w(a)&&null!=b&&null!=a&&a.match(b)?a:""},$A=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},aB=function(a){return w(a)?a:""},bB=function(a,b,c){for(var d in b)if(b[d]==a)return a;
return c},cB=function(a,b){return"true"==a||"false"==a?"true"==a:b},dB=function(a,b){return w(a)?(0,window.parseFloat)(a):b},eB=function(a,b,c,d,e){a=(0,window.parseFloat)(a);
if(null!=a&&!(0,window.isNaN)(a)){if(d)return le(a,b,c);if(a>=b&&a<=c)return a}return e},fB=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},gB=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]:[]},hB=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new te((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},iB=function(a){function b(a){return ae(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)},jB=function(a,b,c,d){this.value=a;
this.target=b;this.showLinkIcon=c;this.fj=d},lB=function(a){if(!a)return null;
var b=aB(a.value);if(!b)return null;var c=bB(a.target,kB,"current");return null==c?null:new jB(b,c,cB(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)},mB=function(a){return a.value?a.value:null},oB=function(a){var b;
(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=nB(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1},nB=function(a){a=a.replace(/^(https?:)?\/\//,"");
a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()},pB=function(a){a=mB(a);
if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!oB(a))||(b=Ye(Xe(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=jj(a);if(!b||!b.v)return null;if(b.t)return XA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=hj(a[1]))&&a.t?XA(a.t):-1},qB=function(a){a=mB(a);
a=a.replace(/https?:\/\//g,"");return oB(a)?(a=jj(a))&&a.v?a.v:null:null},sB=function(a,b,c,d){(a=mB(a))?oB(a)?d=kj(a,{feature:"iv",
src_vid:c,annotation_id:b},!1):(a?(b=nB(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(rB,d.pageId,d.Bb),a=new O(a),sf(a,d(a.B)),d=a.toString()):d=a):d=null;return d},rB=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},tB=function(a,b){return b?b:oB(a)?"current":"new"},vB=function(a){this.A=a;
this.o=0;this.D=window.NaN;this.B=0;this.wa=[];this.C=uB(this.A);this.F=this.G=0},wB=function(a){a.C.startTime=a.B;
a.C.endTime=a.o;a.wa.length&&cb(a.wa).isEmpty()?a.wa[a.wa.length-1]=a.C:a.wa.length&&a.C.isEmpty()||a.wa.push(a.C);a.G+=a.o-a.B;a.C=uB(a.A);a.B=a.o},xB=function(a){return a.G+a.A.A()-a.B},yB=function(a){a.wa.length&&a.o==a.B||wB(a);
var b=a.wa;a.wa=[];return b},zB=function(a,b,c){c-=a.D;
return b==a.o&&.5<c},AB=function(a,b){this.o=b;
this.B=!1;this.videoData=a},BB=function(a,b,c){AB.call(this,b,c);
this.C=a},CB=function(a){G.call(this);
this.o=a;this.B={};this.P=window.NaN;this.F=new Wd(this.$A,3E4,this);I(this,this.F);this.G=new Wd(this.kj,100,this);I(this,this.G);this.A="N";this.D=0;this.O=window.NaN;this.U=0;this.K=this.X="";this.$=-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))},DB=function(a,b,c,d){var e=a.B[c];
e||(e=[],a.B[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))},EB=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.Ba;b.docid=a.o.videoData.videoId;b.ns=a.o.o.ha;b.fexp=a.o.o.experiments.experimentIds.toString();b.cl=a.o.o.xa;a.o.o.adFormat&&(b.adformat=a.o.o.adFormat);a.o.videoData.Ga&&(b.live=a.o.videoData.$d?"dvr":"live");b.html5="1";return b},FB=function(a,b,c,d){var e=a.o.A();
c=[c,e.toFixed(3)];d&&c.push(d);DB(a,b,"error",c)},GB=function(a,b){var c=a.B.cat||[];
c.push(b);a.B.cat=c},IB=function(a,b,c,d){this.La=b;
this.segments=[];this.experimentIds=[];this.J=this.Ja=this.ia=this.ha=this.Ea=this.autoplay=this.autonav=!1;this.X="yt";this.K=this.A=this.D=null;this.U=!1;this.C="watchtime"==c;this.O="playback"==c;this.Fa="delayplay"==c;this.F="atr"==c;this.Ia="engage"==c;this.ca=!1;this.$=this.F?"/api/stats/"+c:"//"+b.xd+"/api/stats/"+c;d&&(this.ia=d.fs,d.rtn&&(this.A=d.rtn),this.C?(this.Ib=d.state,0<d.rti&&(this.D=d.rti)):(this.Ka=d.mos,this.Ua=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.L);this.bb=b.la;this.cb=ec(b.A);this.va=b.$;this.jb=b.Ba;this.experimentIds=b.experiments.experimentIds;this.ea=b.Z;this.X=b.ha;this.region=b.region;this.Qb=b.xa?b.xa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Za=HB();this.ca=b.experiments.o;this.G=a.oauthToken||this.G;b=this.La;this.autoplay=b.experiments.ga("legacy_autoplay_flag")||"detailpage"!=b.Ba?a.Nc:a.Nc&&a.Ti;this.autonav=a.Ti||
this.autonav;this.K=a.Lj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.P=a.vssCredentialsToken;this.sa=a.Um;this.H=a.Jj;this.fa=a.ff;a.B&&(this.na=a.B.id,a.F&&a.F.id!=this.na&&(this.M=a.F.id));this.J=a.tg;this.ob=a.Kj;a.Ga&&(this.Pa=a.$d?"dvr":"live");this.vb=a.jn;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Va||a.playlistId;this.la=a.fa;this.xa=a.ea;this.ac=a.Zd;this.subscribed=a.subscribed;this.videoId=a.videoId;this.bc=a.yi;this.visitorData=a.visitorData;this.osid=
a.osid;this.wb=a.ci;this.referrer=a.referrer;this.Wa=a.Ua||a.Yd;this.searchQuery=a.searchQuery},JB=function(a,b){if(a.F)return null;
var c=a.G&&nj(),d=a.ca&&!!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,Zb:b}},KB=function(a,b,c,d){b.cmt=b.len;
b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=hf(a,b);c?tj(a,c):hq(a)},MB=function(a){var b={ns:a.X,
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.na,fs:a.ia?"1":"0",rt:a.o(a.Va),of:a.wb,adformat:a.adFormat,content_v:a.bb,euri:a.va,subscribed:a.subscribed,lact:a.Za,live:a.Pa,cl:a.Qb,mos:a.Ka,q:a.searchQuery,osid:a.osid,state:a.Ib,vm:a.bc,volume:a.Ua};qa(b,a.cb);a.autonav&&(b.autonav="1");if(a.La.experiments.ga("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.J)b.autoplay="1";a.ha&&(b["final"]=
"1");a.J&&(b.splay="1");a.fa&&(b.delay=a.fa);a.ea&&(b.hl=a.ea);a.region&&(b.cr=a.region);n(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);n(a.Z)&&(b.len=a.o(a.Z));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.A&&(b.rtn=a.o(a.A));a.Wa&&(b.feature=a.Wa);a.playlistId&&(b.list=a.playlistId);a.la&&(b.ctrl=a.la);a.xa&&(b.ytr=a.xa);a.ac&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.C?(b.idpj=a.ob,b.ldpj=a.vb,null!=a.D&&(b.rti=a.o(a.D))):n(a.adType)&&(b.at=a.adType);(a.O||a.Fa)&&
a.K&&(b.tst=a.K);a.C&&(b.st=LB(a,ji(a.segments,function(a){return a.startTime})),b.et=LB(a,ji(a.segments,function(a){return a.endTime})));
zh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=LB(a,ji(a.segments,function(a){return a.visibilityState})));
zh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=LB(a,ji(a.segments,function(a){return a.playbackRate})));
zh(a.segments,function(a){return"-"!=a.yk})&&(b.cc=ji(a.segments,function(a){return a.yk}).join(","));
if(zh(a.segments,function(a){return!!a.vk})){var c="au";
a.O&&(c="au_d");b[c]=ji(a.segments,function(a){return a.vk}).join(",")}nj()&&a.P&&(b.ctt=a.P,b.cttype=a.sa);
a.Ia&&(b.etype=n(a.B)?a.B:0);return b},LB=function(a,b){return ji(b,a.o).join(",")},NB=function(a){G.call(this);
this.o=a;this.A=new CB(a);I(this,this.A);this.B=new vB(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 BB(this.B,this.o.videoData,this.o.o)},PB=function(a,b,c){var d=OB(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=vi(y(a.JA,a,c,b),d);return c},RB=function(a,b){var c=QB(a.o);
qa(c,{state:a.F});c=new IB(a.o.videoData,a.o.o,b,c);c.H=a.o.A();a.o.videoData.Ga||(c.Z=a.o.D());c.Va=OB(a.o);c.segments=[uB(a.o)];return c},SB=function(a,b){var c=RB(a,"watchtime");
c.segments=b;c.H=a.B.o;return c},TB=function(a){a.B.update();
return SB(a,yB(a.B))},WB=function(a){a.o.videoData.remarketingUrl&&!a.O&&(UB(a,a.o.videoData.remarketingUrl),a.O=!0);
a.o.videoData.ppvRemarketingUrl&&!a.P&&(UB(a,a.o.videoData.ppvRemarketingUrl),a.P=!0);VB(a)},ZB=function(a,b){if(!a.isDisposed()){T(b.state,2)?(a.F="paused",0<XB(b,2)&&a.C&&TB(a).send()):T(b.state,8)?(a.F="playing",a.C&&(0,window.isNaN)(a.G)&&PB(a,!1)):a.F="paused";
var c=a.A,d=b.state,e=OB(c.o),h;h=b.state;if(T(h,128))h="ER";else if(T(h,16)||T(h,32))h="S";else{var k=YB[sz(h)];"B"==k&&T(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 m=EB(c);m.qoealert="1";m=hf(c.o.o.ud,m);hq(m)}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?DB(c,e,"cmt",[c.o.A().toFixed(3)]):c.kj(e);DB(c,e,"vps",[h]);c.A=h}T(d,
128)&&FB(c,e,d.o.errorCode,d.o.errorDetail);(T(d,2)||T(d,128))&&c.kh(e);a.D&&T(b.state,128)&&(a.pj("error-100"),xi(a.D))}},$B=function(a){a.D=wi(y(a.pj,a,"heartbeat"),3E4)},VB=function(a){a.o.videoData.D.eventLabel=a.o.o.Ba;
a.o.videoData.D.playerStyle=a.o.o.o;a.o.videoData.xa&&(a.o.videoData.D.feature="pyv");a.o.videoData.D.vid=a.o.videoData.videoId;a.o.videoData.D.isAd=!("adunit"!=a.o.o.Ba&&!a.o.videoData.xa)},UB=function(a,b,c){a.o.o.experiments.o&&a.o.videoData.visitorData&&mj(b)?tj(b,{Zb:c,
headers:{"X-Goog-Visitor-Id":a.o.videoData.visitorData}}):hq(b,c)},aC=function(a){this.da=a;
this.o={}},eC=function(a,b,c){if(b){var d=bC(a,b);
a.o[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=tb(c||[]);30==d["a-type"]&&(c=cC(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);dC(a,d,b)}},fC=function(a,b,c,d,e,h){if(b){var k=bC(a,b);
k["iv-event"]=3;k["i-time"]=a.o[b]||"";hc(k,d||{});b=tb(e||[]);30==k["a-type"]&&(d=cC(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);dC(a,k,b,c,h)}},gC=function(a,b){if(b){var c=bC(a,b);
c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=[];if(30==c["a-type"]){var e=cC(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}dC(a,c,d)}},cC=function(a,b,c){a=a.da.getVideoData();
if(a.bb){if((c=a.bb[c])&&Ex.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.na)return lj(a.na,{label:c,value:"a_id="+b});return""},dC=function(a,b,c,d,e){var h=1,k,m=-1;
if(d){var l=!1;k=function(){h--;h||l||((0,window.clearTimeout)(m),l=!0,d())};
m=(0,window.setTimeout)(function(){l=!0;d()},1E3)}F(c||[],function(a){h++;
hq(a,k)});
e&&(h++,0!=e&&a.da.vg(e,k));a.ib(b,k)},bC=function(a,b){var c={};
if(b){var d=new vf(b);F(d.Qa(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.da.getCurrentTime().toFixed(2);
c.ps=a.da.W().o;return c},hC=function(a,b,c,d){d=bC(a,d);
d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;dC(a,d,c)},iC=function(a,b,c,d){c&&(c=bC(a,c),c["iv-event"]=b,dC(a,c,d))},jC=function(a,b){this.fa=a;
this.context=b;this.Vm=!1;this.K=0},kC=function(a,b,c,d,e,h){b=new qq(b,c,{id:d});
b.A="iv-module";e&&tq(b).subscribe("onEnter",e,a);h&&tq(b).subscribe("onExit",h,a);a.context.A.gb([b])},lC=function(a){return K()-a.K},mC=function(a,b,c,d,e,h,k){var m=y(function(){k&&this.context.A.pauseVideo();
var a=jj(b),d=null;"ei"in a&&(d={ei:a.ei},b=nf(b,"ei"));yy(b,d);zy(b,"current"==c?"_top":void 0)},a);
"new"==c&&(m(),m=null);var l={};l.interval=lC(a);fC(a.context.logger,d,m,l,e,h)},nC=function(a,b){var c=["div",
"ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-shop-badge",Q("YTP_SPONSORED_PRODUCT_BADGE")],["span","ytp-cards-teaser-label","{{text}}"]]];R.call(this,c);this.da=a;this.K=new yr(this,250,!1,250);I(this,this.K);this.P=b;this.A=null;this.M=new Wd(this.wB,300,this);this.L=new Wd(this.uB,2E3,this);this.O=new NA(null);this.G=[];this.F=this.D=this.J=this.H=null;this.T(b.element,"mouseover",this.Yt);this.T(b.element,"mouseout",this.se);this.T(a,
"cardsteasershow",this.uC);this.T(a,"cardsteaserhide",this.Lh);this.T(a,"cardstatechange",this.Qr);this.T(a,"presentingplayerstatechange",this.Qr);this.R("click",this.HG);this.R("mouseenter",this.FG);this.R("mouseleave",this.GG)},oC=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},pC=function(a,b){if(b){var c=b.Gk?"":["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,oC(b.Ld)]];a.D=new R(c);a.D.o(a.element);c=Og("ytp-cards-hover-card",void 0);a.T(c,"click",pa(a.wq,b));a.T(c,"mouseenter",a.yy);a.T(c,"mouseleave",a.zy)}},rC=function(a,b){a.B("text",b.teaserText);
a.element.setAttribute("dir",OA(a.O,b.teaserText));a.K.show();pC(a,b.Hi);b.Hi&&b.Hi.Gk&&L(a.element,"ytp-cards-combined-teaser");a.H=new Wd(function(){L(this.da.Ca(),"ytp-cards-teaser-shown")},0,a);
a.H.start();qC(a.P,!1);a.A=new Wd(a.Lh,580+b.durationMs,a);a.A.start();b.Bw&&L(a.element,"ytp-cards-auto-open-hover-card");b.Dz&&(new Wd(function(){L(this.da.Ca(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.G.push(a.R("mouseover",a.Yt,a));a.G.push(a.R("mouseout",a.se,a))},sC=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={Ep:a.impression,click:a.click,close:a.close,MD:a.teaser_impression,Fm:a.teaser_click}},tC=function(a,b,c){sC.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.Ld=b.meta_info;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},uC=function(a,b,c){sC.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=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=lB({target:"current",value:b.signin_url}));this.G=b.signin_title||null;this.F=b.signin_message||null},vC=function(a,b,c){uC.call(this,a,b,c);
this.H=b.ypc_flow_type;this.C=b.innertube_request_params},wC=function(a,b,c){this.o=a;
this.B=b;this.D=c;this.C=new NA(null)},zC=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"],xC(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"]=Q("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",xC(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.B&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",Q("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:mB(b.B)},["span",["iv-button-content"],Q("YTP_SIGN_IN")]]]));e=new R(["div",e].concat(d));d=e.element;yC(b,d);wA(a.o.o,d,pa(a.G,b),a);
F(Ng("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=Og("iv-card-sign-in-button",d),a.B(d,b.B,b.id,b.Ta,b.o.click,5));return e},EC=function(a,b,c,d){var e=AC(a,b.url,b.id),h=b.displayDomain?["div",
"iv-card-image-text",b.displayDomain]:"",k=BC(a,b),m=["iv-card"];b.A&&m.push("iv-card-unavailable");e=["div",m,["a","iv-click-target",{href:e},CC(b.imageUrl,h),["div","iv-card-content",xC(a,"h2",void 0,b.title),k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],xC(a,"h2",void 0,b.G||""),["p","",b.F],["a",["iv-card-sign-in-button","iv-button"],{href:mB(b.A)},xC(a,"span","iv-button-content",Q("YTP_SIGN_IN"))]]]));e=new R(e);DC(a,e,b,c,d);return e},GC=function(a,b,c){var d=AC(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},CC(b.G,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],FC(a,b)]]];c=new R(c);DC(a,c,b);return c},HC=function(a,b){return b.customMessage?xC(a,"div","iv-card-message",b.customMessage):""},CC=function(a,b){var c=
["div",
"iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c},FC=function(a,b){if(!b.Ld||0==b.Ld.length)return"";
var c=["ul","iv-card-meta-info"];F(b.Ld,function(a){c.push(xC(this,"li","",a))},a);
return c},xC=function(a,b,c,d){c?w(c)?c={"class":c}:da(c)&&(c={"class":c.join(" ")}):c={};
c.dir=OA(a.C,d);return[b,c,d]},BC=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=OA(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},yC=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=Og(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),m=Og("iv-card-poll-choice-percent",h);oh(m,Q("YTP_DRAWER_POLL_PERCENT",{PERCENT:k}));h=Og("iv-card-poll-result-bar",h);Uq(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)},IC=function(a,b,c,d){d?(c&&a.o.videoData.Ga||a.o.A.pauseVideo(),a.o.A.Oa()&&Dy(a.o.A),fC(a.o.logger,b.Ta,d,void 0,b.o.click,5)):a.D(b.url,b.id,b.Ta,b.o.click,5)},AC=function(a,b,c){return b?sB(b,c,a.o.videoData.videoId,a.o.B):null},DC=function(a,b,c,d,e){c.A&&JC(a,Ng("iv-card-sign-in-button",b.element),c,c.A,e);
JC(a,Ng("iv-click-target",b.element),c,c.url,d)},JC=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)},KC=function(a,b,c){sC.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.Ld=b.meta_info;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},LC=function(a,b,c){sC.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=lB({target:"current",value:b.signin_url}));this.F=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null},NC=function(a,b,c){uC.call(this,a,b,c);
this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new MC(a[b]))},MC=function(a){this.merchant=E(a.merchant);
this.price=E(a.price)},OC=function(a,b,c){uC.call(this,a,b,c);
this.H=b.ypc_item_type;this.C=b.ypc_item_id;this.J=b.ypc_flow_type},PC=function(a,b,c){sC.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.Ld=b.meta_info;this.C=!!b.is_live_now;this.url=lB({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},QC=function(a,b,c){sC.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.Ld=b.meta_info;this.C=!!b.is_paygated;this.F=!!b.user_has_entitlement;this.url=lB({target:b.target||"new",value:b.url})},SC=function(a,b,c){jC.call(this,b,c);
this.da=a;this.Ui=this.U=this.D=this.P=this.Z=!1;this.X=null;this.xk=new Wd(v,c.B.useTabletControls?4E3:3E3);this.O=new Wd(v);this.C=new wC(c,y(this.jg,this),y(this.Wi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},Q("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":Q("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.H=new R(a);this.B=this.H.element;this.M=new yr(this.H,330,RC(this,"drawer_peek"));
RC(this,"drawer_peek")&&L(this.B,"ytp-drawer-peek");this.$=Og("iv-drawer-header",this.B);this.Fc=Og("iv-drawer-content",this.B);a=["iv-drawer-teaser"];this.C.o.B.experiments.Dw&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:Q("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.ca=(new R(a)).element;Og("iv-drawer-teaser-text",this.ca);this.A=[];this.F=this.J=this.o=null;this.G=
[];c=1E3*c.videoData.lengthSeconds;kC(this,0,c,"",this.qw,this.Vw);if(2==this.context.A.getPresentingPlayerType()?0:RC(this,"product_listing_ads_cards_drawer_auto_open")||RC(this,"cards_drawer_auto_open"))a=this.context.B.experiments.Sb("cards_drawer_auto_open_offset"),b=0<=a?a:c+a,b<c&&(kC(this,b,0x8000000000000,"",this.HF),a=this.context.B.experiments.Sb("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&kC(this,b,0x8000000000000,"",this.zw))},ZC=function(a,b){var c=b&&b.data&&b.data.card_type;
if(c&&TC[c]){c=new TC[c](b.id,b.data,b.Ta);a.Z||($d(a.ma(),["html5-stop-propagation","iv-drawer-manager"]),Br(a.da,a.B,5),UC(a),a.Z=!0);VC(a,c.id);var d=WC(a,c);if(d){var e={Sa:c,zk:d.element,Yp:!1,Yi:!1},h=XC(a,e);wb(a.A,h,0,e);d.o(a.Fc,h);a.fi();c.D?kC(a,c.startMs,0x8000000000000,c.id,pa(a.yD,e)):(d=1E3*a.context.A.getCurrentTime(),5E3>d&&d>c.startMs&&a.xm(e,!1),kC(a,c.startMs,c.startMs+1,c.id,pa(a.xm,e,!1)),M(a.da.Ca(),"ytp-cards-shopping-active",YC(a)))}}},VC=function(a,b){var c=aD(a,b);
c&&(c==a.o&&(a.o=null),a.da.us(c.Sa.id),dh(c.zk),qb(a.A,c),a.fi())},cD=function(a,b,c){a.D||(RC(a,"drawer_peek")&&be(a.B,"ytp-drawer-peek"),a.M.show(),a.J=new Wd(function(){L(this.context.A.Ca(),"ytp-iv-drawer-open")},0,a),a.J.start(),a.D=!0,a.K=K(),hC(a.context.logger,7,void 0,c&&c.Sa?c.Sa.Ta:void 0),F(a.A,function(a){a.Yi||(a.Yi=!0,eC(this.context.logger,a.Sa.Ta,a.Sa.o.Ep))},a),bD(a.da),b&&(a.F=new Wd(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(c){}a=null}this.L=a;this.$.focus()},330,a),a.F.start()))},dD=function(a){a.D&&(RC(a,"drawer_peek")?L(a.B,"ytp-drawer-peek"):a.M.ka(),be(a.context.A.Ca(),"ytp-iv-drawer-open"),a.D=!1,hC(a.context.logger,10),bD(a.da),a.F&&a.F.stop(),a.F=new Wd(function(){this.L&&(this.L.focus(),this.L=null)},330,a),a.F.start())},RC=function(a,b){return a.context.B.experiments.ga(b)},UC=function(a){var b=Og("iv-drawer-close-button",a.B);
a.context.o.R(b,"click",a.Kw,a);a.context.o.R(a.Fc,"touchend",function(){this.xk.start()},a);
RC(a,"drawer_peek")&&(b=Og("ytp-drawer-peek"))&&a.context.o.R(b,"click",a.OA,a);a.context.o.R(a.Fc,"scroll",a.Zw,a);a.X=Ml(a.Fc,"mousewheel",y(a.IF,a));a.context.C.subscribe("onHideControls",function(){this.Ui=!0},a);
a.context.C.subscribe("onShowControls",function(){this.Ui=!1},a);
a.context.C.subscribe("onVideoAreaChange",function(){this.Ui=Zd(this.da.Ca(),"ytp-autohide")},a);
a.G.push(Hi("iv-teaser-shown",a.Cz,a));a.G.push(Hi("iv-teaser-clicked",a.Az,a));a.G.push(Hi("iv-hover-card-clicked",a.zz,a));RC(a,"teaser_on_button_hover")&&a.G.push(Hi("iv-button-mouseover",a.GD,a));RC(a,"log_teaser_hover")&&a.G.push(Hi("iv-teaser-mouseover",a.Bz,a))},WC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return EC(a.C,b);
case "collaborator":var c=a.C,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:AC(c,b.url,b.id),"data-ytid":b.channelId},CC(b.profileImageUrl),["div","iv-card-content",HC(c,b),["h2","iv-card-primary-link",b.title],FC(c,b)]]],d=new R(d);DC(c,d,b);return d;case "donation":return c=a.C,d=y(c.F,c,b),EC(c,b,d,d);case "episode":return GC(a.C,b,"iv-card-episode");case "movie":return GC(a.C,b,"iv-card-movie");case "playlist":return c=a.C,d=["div",["iv-card","iv-card-playlist"],
["a","iv-click-target",{href:AC(c,b.url,b.id)},CC(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",HC(c,b),xC(c,"h2","iv-card-primary-link",b.title),FC(c,b)]]],d=new R(d),DC(c,d,b),d;case "poll":return zC(a.C,b);case "productListing":var c=a.C,d=AC(c,b.url,b.id),e=!kb(b.offers)&&(b.sponsored||c.o.B.experiments.ga("trueview_shopping_v2_rendering")),h=["iv-card"],k="",m=BC(c,b);e&&(h.push("iv-card-product-listing"),
k="iv-card-primary-link",m=b.offers[0],e=["div",null],m.price&&e.push(["div","iv-card-offer-price",m.price]),m.merchant&&e.push(["div","iv-card-offer-merchant",m.merchant]),m=e);e=b.sponsored?["div","iv-card-sponsored",Q("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},xC(c,"h2",k,b.title),m]]];d=new R(d);h=window.document.createElement("span");oh(h,Q("YTP_SPONSORED_PRODUCT_INFO"));d.Jb(h,"adInfo");DC(c,d,b);return d;case "tip":return c=a.C,d=y(c.H,c,b),EC(c,b,d,d);case "video":return c=a.C,d=AC(c,b.url,b.id),h=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.C?["span",["yt-badge","yt-badge-live"],Q("YTP_LIVE_NOW")]:"",d=["div",["iv-card",
"iv-card-video"],["a","iv-click-target",{href:d},CC(b.B,h),["div","iv-card-content",HC(c,b),xC(c,"h2","iv-card-primary-link",b.title),FC(c,b),k]]],d=new R(d),DC(c,d,b),d}return null},XC=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},eD=function(a,b){if(a.H.C){var c=new IA([0,
a.Fc.scrollTop],[0,b.zk.offsetTop],600,MA);a.context.o.R(c,"animate",function(a){this.Fc.scrollTop=a.y},a);
a.context.o.R(c,"finish",function(a){this.Fc.scrollTop=a.y},a);
c.play()}else a.H.rb(!0),a.Fc.scrollTop=b.zk.offsetTop,a.H.rb(!1)},fD=function(a){return a.o&&a.o.Sa||a.A[0]&&a.A[0].Sa},aD=function(a,b){return eb(a.A,function(a){return a.Sa.id==b},a)},YC=function(a){return zh(a.A,function(a){return a.Sa.sponsored&&"productListing"==a.Sa.type})},iD=function(a){if(!gD.test(a))throw Error("'"+a+"' is not a valid hex color");
4==a.length&&(a=a.replace(hD,"#$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)]},jD=function(a,b,c,d,e){IA.call(this,b,c,d,e);
this.element=a},kD=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");
jD.apply(this,arguments)},lD=function(a,b,c){jC.call(this,a,b);
this.annotation=c;this.isActive=!1},mD=function(a,b,c){lD.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},nD=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},oD=function(a,b,c){this.type=a;
this.trigger=b;this.url=c},rD=function(a){if(!a)return null;
var b=bB(a.type,pD),c=bB(a.trigger,qD),d=lB(YA(a.url));YA(a.subscribeData);return b?new oD(b,c,d):null},sD=function(a,b,c,d,e,h,k,m,l,p,t,u,x,A){this.D=a;
this.bgColor=b;this.F=c;this.C=d;this.A=e;this.J=h;this.B=k;this.textAlign=m;this.textSize=l;this.G=p;this.H=t;this.effects=u;this.o=x;this.K=A},uD=function(a){if(!a)return null;
var b=$A(a.fgColor,"#1A1A1A"),c=$A(a.bgColor,"#FFF"),d=$A(a.borderColor,"#000"),e=eB(a.borderWidth,0,5,!1,0),h=eB(a.bgAlpha,0,1,!1,.8),k=$A(a.highlightFontColor,"#F2F2F2"),m=eB(a.highlightWidth,0,5,!1,3),l=aB(a.textAlign),p=eB(a.textSize,3.3,30.1,!0,3.6107),t=aB(a.fontWeight),u=hB(a.padding),x=iB(a.effects),A=eB(a.cornerRadius,0,10,!0,0);if(a=YA(a.gradient)){var C=eB(a.x1,0,100,!0,0),H=eB(a.y1,0,100,!0,0),z=eB(a.x2,0,100,!0,100),N=eB(a.y2,0,100,!0,100),Ma=$A(a.color1,"#FFF"),ta=$A(a.color2,"#000");
a=new tD(C,H,z,N,Ma,ta,eB(a.opacity1,0,100,!0,100),eB(a.opacity2,0,100,!0,0))}else a=null;return new sD(b,c,d,e,h,k,m,l,p,t,u,x,A,a)},tD=function(a,b,c,d,e,h,k,m){this.D=a;
this.G=b;this.F=c;this.H=d;this.o=e;this.A=h;this.B=k;this.C=m},vD=function(a,b){this.o=a;
this.videoId=b},yD=function(a,b,c){var d=a.F,e=a.G,h=a.o?a.o:"xy",k=wD(c,a.C,h);
a=xD(c,a.A,h);var h=640*b.width*k/100,m=360*b.height*a/100;return new we(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-m,h,m)},wD=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;
return(d+((c?a.width:a.height)-d)*b)/d},xD=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;
return(d+((c?a.height:a.width)-d)*b)/d},zD=function(a,b,c,d,e,h,k,m,l,p,t){this.x=a;
this.y=b;this.D=c;this.B=d;this.t=e;this.K=h;this.F=k;this.G=m;this.C=l;this.A=p;this.o=t},BD=function(a,b){if(!a)return null;
var c=dB(a.x,0),d=dB(a.y,0),e=dB(a.w,0),h=dB(a.h,0),k=fB(a.t),m=dB(a.scaleSlope,1);return b(c,d,e,h,k,dB(a.d,0),dB(a.px,0),dB(a.py,0),dB(a.scaleSlopeX,m),dB(a.scaleSlopeY,m),bB(a.scaleDimension,AD,"xy"))},DD=function(a,b){var c=CD(b,yD(a,new we(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=le(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=le(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e},ED=function(a){return a?BD(a,function(a,c,d,e,h,k,m,l,p,t,u){return new zD(a,c,d,e,h,k,m,l,p,t,u)}):null},FD=function(a,b,c,d,e,h,k,m,l,p,t,u,x){zD.call(this,a,b,c,d,e,m,l,p,t,u,x);
this.H=h;this.J=k},GD=function(a){if(!a)return null;
var b=dB(a.sx,0),c=dB(a.sy,0);return BD(a,function(a,e,h,k,m,l,p,t,u,x,A){return new FD(a,e,h,k,m,b,c,l,p,t,u,x,A)})},HD=function(a,b,c,d){this.type=a;
this.A=b;this.o=c;this.B=d},JD=function(a){if(!a)return null;
var b=bB(a.type,ID,"rect"),c=gB(a.rectRegion,ED),d=gB(a.anchoredRegion,GD);a=gB(a.shapelessRegion,ED);return new HD(b,c,d,a)},KD=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},LD=function(a,b){this.A=a;
this.o=b},MD=function(a,b){this.state=a;
this.o=b},OD=function(a){if(!a)return null;
var b=bB(a.state,ND);a=ZA(a.ref);return b?new MD(b,a):null},PD=function(a,b,c,d){this.o=a||[];
this.B=b||[];this.C=c;this.A=d;this.value=!1},QD=function(a){if(!a)return null;
var b=gB(a.condition,OD),c=gB(a.notCondition,OD),d=cB(a.show_delay,!1);a=cB(a.hide_delay,!1);return b||c?new PD(b,c,d,a):null},RD=function(a,b,c){F(a.o,pa(b,!1),c);
F(a.B,pa(b,!0),c)},SD=function(a,b,c,d,e,h,k,m,l,p,t,u,x,A,C,H){this.id=a;
this.author=b;this.type=c;this.style=d;this.F=e;this.A=h;this.D=k||[];this.J=m||[];this.o=l;this.H=p;this.B=t;this.G=u;this.C=A;this.data=C;this.Ta=H},WD=function(a){if(!a)return null;
var b=ZA(a.id),c=ZA(a.author),d=bB(a.type,TD),e=bB(a.style,UD),h=aB(YA(a.TEXT)),k=aB(a.data),k=0!=k.length?de(k):{},m;var l=YA(a.segment);l?(ZA(l.timeRelative),m=ZA(l.spaceRelative),m=(l=gB(l.movingRegion,JD))?new LD(m,l):null):m=null;var l=gB(a.action,rD),p=gB(a.trigger,QD),t=uD(YA(a.appearance));t||(t=uD({}));var u=bB(a.coordinate_system,VD,"video_relative"),x;x=(x=YA(a.image_source))?new vD(aB(x.standard_url),aB(x.video_id)):null;var A=cB(a.closeable,!0),C=aB(a.html_blob);a=aB(a.log_data);return b&&
d?new SD(b,c,d,e,h,m,l,p,t,u,x,A,0,C,k,a):null},YD=function(a){return XD(a,function(a){return"click"==a.trigger})},XD=function(a,b){return zh(a.D,b,void 0)},ZD=function(a,b,c){F(a.D,b,c)},$D=function(a,b){return eb(a.D,b,void 0)},aE=function(a,b,c){F(a.J,b,c)},bE=function(a,b){ji(a.J,b,void 0)},dE=function(a){return(a=cE(a))?KD(a):null},cE=function(a){a.A?(a=a.A,a=a.o.length?a.o[0]:null):a=null;
return a},eE=function(a,b){var c=dE(a);
return c&&b?xD(b,c.A,c.o?c.o:"xy"):1},fE=function(a,b,c){lD.call(this,a,b,c);
this.G=this.C=this.H=!1;this.F=5E3;this.o=null;this.Jg=P("div","iv-promo-contents");this.A=this.B=this.$b=null;this.D=new Wd(function(){this.$b.setAttribute("aria-hidden",!0);S(this.B,!1);S(this.A,!0)},700,this)},gE=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.ma().setAttribute("aria-hidden",!0);a.ma().setAttribute("aria-label",Q("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ma().tabIndex=0;var e;if(b.image_url){e=P("div",["iv-promo-img","iv-click-target"]);var h=P("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(h);b.video_duration&&!b.is_live?(h=P("span","iv-promo-video-duration",
b.video_duration),e.appendChild(h)):b.playlist_length&&(h=P("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(h));a.jg(e,a.annotation.getUrl(),a.annotation.id,a.annotation.Ta,null,c)}h=a.annotation.getUrl();a.$b=h?P("a",{href:mB(h),"class":"iv-promo-txt"}):P("div","iv-promo-txt");var k,m,l;switch(a.annotation.style){case "cta":case "website":k=P("p",null,P("strong",null,b.text_line_1));m=P("p",null,P("span","iv-promo-link",b.text_line_2));L(a.$b,"iv-click-target");a.jg(a.$b,
a.annotation.getUrl(),a.annotation.id,a.annotation.Ta,null,c);break;case "playlist":case "video":k=P("p",null,P("span",null,b.text_line_1));m=P("p",null,P("strong",null,b.text_line_2));b.is_live&&(k=m,m=P("span",["yt-badge","iv-promo-badge-live"],Q("YTP_LIVE_NOW")));L(a.$b,"iv-click-target");a.jg(a.$b,a.annotation.getUrl(),a.annotation.id,a.annotation.Ta,null,c);d.push("iv-promo-video");break;case "vote":k=P("p",null,P("strong",null,b.text_line_1)),m=P("p",null,P("span",null,b.text_line_2)),l=P("div",
"iv-promo-button-container"),c=P("button",["iv-button","iv-promo-button"],P("span","iv-button-content",b.button_text)),a.context.o.R(c,"click",function(a){a.stopPropagation();fC(this.context.logger,this.annotation.Ta,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.$b=Og("iv-promo-txt",this.Jg);a=Og("iv-promo-button-container",this.Jg);var d=P("div",["iv-promo-txt","iv-click-target"]),e=P("p",null,P("strong",null,c.text_line_3)),c=P("p",null,c.text_line_4);ah(d,e,c);
dh(a);eh(d,this.$b);be(this.ma(),"iv-promo-with-button");this.jg(d,this.annotation.getUrl(),this.annotation.id,this.annotation.Ta)},a),l.appendChild(c),d.push("iv-promo-with-button")}k&&a.$b.appendChild(k);
m&&a.$b.appendChild(m);a.Jg.appendChild(a.$b);l&&a.Jg.appendChild(l);k=P("div","iv-promo-actions");a.A=P("button",["iv-promo-expand","ytp-button"]);a.A.title=Q("YTP_EXPAND");a.context.o.R(a.A,"click",pa(a.pl,5E3),a);k.appendChild(a.A);S(a.A,!1);a.context.o.R(a.ma(),"mouseover",a.Mx,a);a.context.o.R(a.ma(),"mouseout",a.Lx,a);a.context.o.R(a.ma(),"touchend",pa(a.pl,5E3),a);a.B=P("button",["iv-promo-close","ytp-button"]);a.B.title=Q("YTP_CLOSE");a.context.o.R(a.B,"click",a.JF,a);k.appendChild(a.B);$d(a.ma(),
d);e&&$g(a.ma(),e);$g(a.ma(),a.Jg);$g(a.ma(),k)},hE=function(a){a.C||a.G||a.o||(L(a.ma(),"iv-promo-collapsed"),a.C=!0,a.D.start())},iE=function(a){a.D.stop();
a.C&&(be(a.ma(),"iv-promo-collapsed"),a.C=!1,a.$b&&a.$b.removeAttribute("aria-hidden"),S(a.A,!1),S(a.B,!0))},jE=function(a,b){a.o||(a.o=Ud(function(){this.o&&(Vd(this.o),this.o=null);
hE(this)},b,a))},lE=function(a,b,c){this.o={};
this.A=!1;this.D="ivTrigger:"+a;this.B=c;RD(b,function(a,b){var c=kE(b.state,b.o);this.B.subscribe(c,y(this.C,this,c,a));this.o[c]=a},this)},kE=function(a,b){var c="ivTriggerCondition:"+a;
return b?c+":"+b:c},nE=function(a,b,c){this.B=a;
this.annotation=b;this.o=c;this.A=null;this.C=this.isVisible=!1;mE(b,a)},mE=function(a,b){bE(a,function(c){return new lE(a.id,c,b)})},oE=function(a){Ce(a.B,"resize",a.Os,a);
Ce(a.B,"onVideoAreaChange",a.dr,a)},pE=function(a){a.A&&(a.A.stop(),a.A=null)},qE=function(a,b){this.start=a<b?a:b;
this.end=a<b?b:a},rE=function(){},sE=function(a,b,c,d,e,h,k,m){this.F=a;
this.H=b;this.G=c;this.J=d;this.o=e;this.A=h;this.C=n(k)?k:null;this.D=n(m)?m:null},tE=function(){this.wa=[];
this.Aa=[];this.tc=[]},uE=function(a,b,c){0==cb(a.wa)?a.tc.length-=2:(a.wa.push(0),a.Aa.push(1));
a.tc.push(b,c);a.Wb=a.Xc=[b,c]},vE=function(a,b,c,d){var e=a.Wb[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),h=a.Wb[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);
a.wa.push(3);a.Aa.push(1);a.tc.push(b,c,d,90,e,h);a.sh=!1;a.Wb=[e,h]},xE=function(a,b){for(var c=a.tc,d=0,e=0,h=a.wa.length;e<h;e++){var k=a.wa[e],m=wE[k]*a.Aa[e];
b(k,c.slice(d,d+m));d+=m}},yE=function(a,b){this.B=a;
this.K=null==b?1:b},zE=function(a,b,c){this.B=a;
this.o=b;this.A=null==c?1:c},AE=function(){},BE=function(a){J.call(this);
this.F=a||Lg();this.U=null;this.Lc=!1;this.o=null;this.G=void 0;this.H=this.L=this.D=null},CE=function(a,b){a.L&&F(a.L,b,void 0)},DE=function(a,b,c,d,e){BE.call(this,e);
this.width=a;this.height=b;this.C=c||null;this.M=d||null},EE=function(a){var b=a.Hf();
return b?b.width/(a.C?new ue(a.C,a.M):a.Hf()).width:0},FE=function(a,b){J.call(this);
this.Tg=a;this.il=b;this[Ec]=!1},JE=function(a,b,c,d){FE.call(this,a,b);
a=this.il;b=this.ma();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)/EE(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.il;a=this.ma();if(d instanceof yE)a.setAttribute("fill",d.B),a.setAttribute("fill-opacity",d.K);else if(d instanceof sE){b="lg-"+d.F+"-"+d.H+"-"+d.G+"-"+d.J+"-"+d.o+"-"+d.A;var e=GE(c,b);if(!e){var e=HE(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=HE(c,"stop",{offset:"0%",style:h});e.appendChild(h);h="stop-color:"+d.A;ga(d.D)&&(h+=";stop-opacity:"+d.D);d=HE(c,"stop",{offset:"100%",style:h});e.appendChild(d);e=IE(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")},KE=function(a,b){FE.call(this,a,b)},LE=function(a,b){FE.call(this,a,b)},ME=function(a,b,c,d){JE.call(this,a,b,c,d)},NE=function(a,b,c,
d){JE.call(this,a,b,c,d)},OE=function(a,b){FE.call(this,a,b)},PE=function(a,b,c,d){JE.call(this,a,b,c,d)},QE=function(a,b,c,d){JE.call(this,a,b,c,d)},RE=function(a,b){FE.call(this,a,b)},SE=function(a,b,c,d,e){DE.call(this,a,b,c,d,e);
this.B={};this.O=zc&&!wc(526);this.K=new zm(this)},HE=function(a,b,c){a=a.F.o.createElementNS("http://www.w3.org/2000/svg",b);
c&&TE(a,c);return a},TE=function(a,b){for(var c in b)a.setAttribute(c,b[c])},VE=function(a,b,c,d){b=HE(a,"path",{d:UE(b)});
c=new PE(b,a,c,d);a.A.ma().appendChild(c.ma())},UE=function(a){var b=[];
xE(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(" ")},IE=function(a,b,c){if(b in a.B)return a.B[b];
var d="_svgdef_"+WE++;c.setAttribute("id",d);a.B[b]=d;a.J.appendChild(c);return d},GE=function(a,b){return b in a.B?a.B[b]:null},YE=function(){XE||(XE=new Sd(400),XE.start());
return XE},ZE=function(){this.o=!1;
this.D=this.B=null},$E=function(a,b,c){a.B?(a.B.setSize(b,c),a.B.clear()):(b=new SE(b,c,void 0,void 0,void 0),a.B=b,a.B.Fi(),a.D=P("div"),b=a.B.ma(),a.D.appendChild(b));
return a.B},aF=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},bF=function(a,b){var c=":"+(AE.getInstance().o++).toString(36);
b.setAttribute("result",c);a.appendChild(b);return c},cF=function(a,b){var c=bF(a,aF("feGaussianBlur",{"in":b,
stdDeviation:"1.8"})),c=bF(a,aF("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},aF("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=bF(a,aF("feComposite",{"in":c,in2:b,operator:"in"}));return bF(a,aF("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))},dF=function(a,b){var c=bF(a,aF("feOffset",{"in":b,
dx:"-7",dy:"-7"})),c=bF(a,aF("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=bF(a,aF("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=bF(a,aF("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=bF(a,aF("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=bF(a,aF("feComposite",{operator:"out","in":c,in2:d}));return bF(a,aF("feComposite",{operator:"over","in":b,in2:c}))},eF=function(a,b){return b},fF=function(a){var b=
aF("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";
F(a,function(a){a:{switch(a){case "bevel":a=cF;break a;case "dropshadow":a=dF;break a}a=eF}c=a(b,c)});
return b},hF=function(a){a=ae(a,function(a){return a in gF});
Cb(a,function(a,c){return gF[a]-gF[c]});
return a},iF=function(a){return eb(a,function(a){return"dropshadow"==a})?new te(0,7,7,0):new te(0,0,0,0)},kF=function(a,b,c,d,e){var h=d?d.getWidth()/2+1:0;
b=jF(b,c,h);VE(a,b,d,e)},jF=function(a,b,c){var d=new tE;
uE(d,a.left+b+c,a.top+c);d.yb(a.left+a.width-b-c,a.top+c);vE(d,b,b,-90);d.yb(a.left+a.width-c,a.top+a.height-b-c);vE(d,b,b,0);d.yb(a.left+b+c,a.top+a.height-c);vE(d,b,b,90);d.yb(a.left+c,a.top+b+c);vE(d,b,b,180);d.close();return d},mF=function(a,b,c,d){var e=a.K;
return e?new sE(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 yE(a.bgColor,lF(d,a.A))},lF=function(a,b){return a?Math.max(b,.9):b},nF=function(a,b){var c=xe(a),d=iF(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 we(c.left,c.top,c.right-c.left,c.bottom-c.top)},oF=function(a,b,c){if(c.length&&(b=Mg("g",void 0,b),b.length)){var d=hF(c);
if(d){c="effects:"+(d?d.join("|"):"");var e=GE(a,c);e?a=e:(d=fF(d),a=0<d.childNodes.length?IE(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}},pF=function(){ZE.call(this);
this.C=0},qF=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"},rF=function(){ZE.call(this)},sF=function(a,b,c){ZE.call(this);
this.C=a||0;this.G=b||0;this.F=c||!1},tF=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 we(e,h,c,d)},uF=function(){ZE.call(this)},vF=function(){pF.call(this)},wF=function(a,b){this.o=a;
this.A=b||null},CD=function(a,b){var c;
c=a.A?DD(a.A,new wF(a.o)):a.o;var d=b.clone(),e=c.left;c=c.top;e instanceof re?(d.left+=e.x,d.top+=e.y):(d.left+=e,ga(c)&&(d.top+=c));return d},xF=function(a,b,c,d,e){this.o=a;
this.Z=b;this.F=c;this.fa=d;this.ca=e;this.P=!1;this.G=new rA(this);this.O=this.D=this.H=this.M=this.A=null;this.X=!1;this.$=this.K=this.L=null;this.Zl=new xm(this.Kx,100,this);this.J=new Wd(this.ep,500,this);this.U=this.B=this.C=null},zF=function(a,b){var c=y(function(a,c,h){c=h?yF(this,c,y(h,this)):yF(this,c);
this.G.R(b,a,c)},a);
c("mouseover","d",a.Ps);c("mouseout","c",a.se);c("click","a");c("touchend","a")},AF=function(a){if(a.o.G){var b;
XD(a.o,function(a){return"close"==a.type})?b=a.A:(a.C=P("div","annotation-close-button"),S(a.C,!1),oi(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",yF(a,"b",c));a.G.R(b,"touchend",yF(a,"b",c))}},yF=function(a,b,c){return y(function(a){if(this.ca)c&&c(a);
else if(a.event.target instanceof window.Element){var e=a.event.target;S(e,!1);try{var h=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(vh(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{S(e,
!0)}}e=nr(a.target);a=new re(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.fa.S(b,this.o)},a)},HF=function(a){if(a.A||a.B){var b=dE(a.o);
if(b){var c=BF(a);if(a.A){var b=DD(b,c),d=CF(DF(a.F));kr(a.A,b.width,b.height);$q(a.A,b.left,b.top);a.M=new we(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=dE(a.o))&&d?wD(d,e.C,e.o?e.o:"xy"):1;var h=eE(a.o,d),d=a.o.o;d.H?d=d.H:(d="speech"==a.o.style?1.6:.8,d=new te(d,d,d,d));d=new te(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,m=0,l=0,p;p=CF(DF(a.F));var t=a.F.app.ia,u=DF(t.o).Ma(),u=new we(0,0,u.width,u.height);if(t.C.A&&!EF(t)){if(t.o.W().Ja){var x=FF(t)?69:48;u.top+=x;u.height-=x}t.B&&(u.height-=FF(t.B.B)?72:50)}ye(p,u)?p=null:(u.top+=20,u.height-=40,"player_relative"!=a.o.H&&(u.left-=p.left,u.top-=p.top),p=u);p&&(m=p.top-(b.top+b.height),l=b.top-(p.top+p.height),k=0<m||0<l);if(k&&p){d=p;e=m;var h=l,A;a.D&&(l=GF(a,23,b,e,h),a.C&&(A=43-l.width,0<A&&(b.left+l.left-A>d.left&&(l.left-=A),
l.width+=A)),A=l,kr(a.D,l.width,l.height),$q(a.D,l.left,l.top));a.C&&(A?b=new re(A.left+A.width-23-18,a.X?A.top+2:A.top+A.height-18-2):(A=GF(a,18,b,e,h),b=new re(A.left,A.top),kr(a.C,A.width,A.height)),$q(a.C,b));a.O=new we(a.M.left+A.left,a.M.top+A.top,A.width,A.height);a.L=a.G.R(DF(a.F),"mousemove",a.GF)}else a.D&&(A=e/h*d.height*4.2/100,A=new ue(A,A),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,A=new we(b.width-A.width-e,b.height-A.height-e,A.width,A.height)):A=new we(b.width-
A.width-3*d.height/100,(b.height-A.height)/2,A.width,A.height),kr(a.D,A.width,A.height),$q(a.D,A.left,A.top)),a.C&&(A=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,$q(a.C,A&&e?new re(b.width-9,-9):A?new re(b.width-9,45<b.height?9:b.height-9):e?new re(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new re(45<b.width?b.width-9-18:-9,b.height-9):new re(-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;A=CF(DF(a.F));
c.style.fontSize=360*b.textSize*eE(a.o,A)/100+"px";A=a.o.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==A||"highlightText"==A?"center":"left";b.G&&(c.style.fontWeight=b.G);a=a.A;c=a.style.overflow;A=(b=Og("annotation-link-icon",a))?pr(b):!1;e=(d=Og("annotation-close-button",a))?pr(d):!1;A&&S(b,!1);e&&S(d,!1);l=h="";if(m=Og("inner-text",a))h=m.style.overflow,l=m.style.position,m.style.overflow="visible",m.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||
a.scrollWidth>a.offsetWidth){p=k=ur(a);t=5;for(u=Math.floor(k/2);u;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=p,p=Math.min(p+u,k)):p=Math.max(p-u,t),u=Math.floor(u/2),a.style.fontSize=p+"px";p!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;m&&(m.style.overflow=h,m.style.position=l);e&&S(d,!0);A&&S(b,!0)}}}},GF=function(a,b,c,d,e){var h=0<e;
b=new we(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.X=!0);return b},IF=function(a){return"label"!=a.o.style||a.B.o},BF=function(a){var b;
b=CF(DF(a.F));if("player_relative"==a.o.H){var c=DF(a.F).Ma();b=new we(-b.left,-b.top,c.width,c.height)}else b=new we(0,0,b.width,b.height);return new wF(b,a.U?dE(a.U):null)},JF=function(a,b){return b?new we(a.x+b.left,a.y+b.top,b.width,b.height):null},LF=function(a){vq.call(this,a);
this.ea=!0;this.ua="iv-module";this.logEvent="iv";this.L=0;this.B={};this.P={};this.J=new aC(a);a=KF;this.H=new Dr(this);I(this,this.H);this.subscribe("onHideControls",this.aB,this);this.subscribe("onShowControls",this.nC,this);this.subscribe("presentingplayerstatechange",this.SB,this);this.subscribe("resize",this.Pq,this);this.subscribe("d",this.wF,this);this.subscribe("c",this.se,this);this.subscribe("a",this.Uz,this);this.subscribe("b",this.tA,this);this.subscribe("vast_info_card_add",this.HC,
this);this.U=P("DIV",[a.tv,"html5-stop-propagation"]);this.X=P("DIV",a.Qu);this.K=this.A=this.C=this.D=null;this.O=[]},MF=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){a.o.W().experiments.ga("text_content_for_xml_node_value")&&e.textContent?c[e.tagName]=e.textContent.trim():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(MF(a,e))}return c},NF=function(a,b,c){return!(a.loaded&&a.L==b&&a.o.getVideoData().videoId==c)},PF=function(a,b){var c=OF(a,b);
if(!c&&"marker"!=b.type)return null;aE(b,function(a){a=y(this.FC,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new nE(a.Z,b,c)},RF=function(a,b){var c=LF.A(),d=null;
switch(b.type){case "branding":if(a.o.W().sd)break;a.D.element.appendChild(c);d=new mD(c,QF(a),b);break;case "promotion":Br(a.o,c,4),d=new fE(c,QF(a),b)}d&&d.rj();return d},VF=function(a){var b=a.o.getVideoData();
if(b.wf){var c=a.o.W(),d=c.K.remove(b.videoId);if(d){var e={format:"XML",Rc:{}};c.experiments.ga("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.Rc.gaming="1");e.Zb=y(function(a,b,c){NF(this,a,b)||(a=oj(c)&&c.responseXML?c.responseXML:null)&&SF(this,a)},a,a.L,b.videoId);
kv()&&(e.Zb=TF(a,e.Zb));e.Hb={ic_only:1};UF(a,e,d);tj(b.wf,e)}}},UF=function(a,b,c){b.method="POST";
b.Hb=b.Hb||{};c.Oe&&(b.Hb.ic_xml=c.Oe);c.mg&&(b.Hb.ic_track=c.mg);if(a=a.o.getVideoData(1))b.Hb.organic_video_id=a.videoId},WF=function(a){var b=new R(["div"]);
S(b.element,!1);var c=new SC(a.o,b.element,QF(a));b.o(a.D.element);c.rj();return c},QF=function(a){a.K||(a.K=new nD(new rA(a),a.o.W(),a.o.getVideoData(),a.J,a.o,a.Z));
return a.K},SF=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var h=MF(a,d[e]),k=null;
try{k=WD(h)}catch(m){}k&&(LF.D(k)?(h=RF(a,k))&&(a.P[k.id]=h):LF.C(k)?(a.A||(a.A=WF(a)),ZC(a.A,k),c=!0):(h=PF(a,k))&&(a.B[k.id]=h))}c&&bD(a.o);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)},ZF=function(a,b,c,d){d?XF(a,b,c):YF(a,b,c)},YF=function(a,b,c){if(b=a.B[b])pE(b),c&&c.A?(a=y(a.bp,a,b),b.A=new Wd(a,2E3),b.A.start()):a.bp(b)},XF=function(a,b,c){if(b=a.B[b])pE(b),c&&c.C?(a=y(a.Mr,a,b),b.A=new Wd(a,2E3),b.A.start()):a.Mr(b)},$F=function(a,b,c){if("new"==
b.target)return!1;
var d=mB(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!oB(d))return!1;d=jj(d);if(d.list||d.p)return!1;b=qB(b);if(!b)return!1;if(c==b)return!0;a=a.o.W();return a.M&&a.na?!0:!1},OF=function(a,b){if(aG(b)){var c=b.G||XD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new xF(b,y(a.U.appendChild,a.U),a.o,a.Z,c)}return null},aG=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;
if("text"==a.type)for(var b in UD)if(a.style==UD[b])return!0;return!1},bG=function(a,b,c,d){a.S(kE(b,d),c,d)},TF=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(lv(b,void 0))}},a)},cG=function(a){return!!a.A&&a.A.isAvailable()},dG=function(a){cG(a);
return!!a.A&&a.A.D},eG=function(a,b,c){cG(a);
a.A&&(b?cD(a.A,!!c):dD(a.A))},fG=function(a,b,c){a.o.S(b?"cardsteasershow":"cardsteaserhide",c)},gG=function(){Bi({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"})},hG=function(a){this.A=[];
this.U=!1;this.L=a;R.call(this,["div","caption-window",{id:"caption-window-"+a.id},["div","caption-window-transform",["span","captions-text",{tabindex:0,"aria-live":"assertive"}]]]);this.M=this.ra["caption-window-transform"];this.D=this.ra["captions-text"];this.G=P("span",{"class":"captions-text",style:"visibility: hidden"});oh(this.G,"C");this.type=0;this.K={};this.O=null},jG=function(a,b,c){var d="";
c&&(c=b&&null!=b.ae?b.ae:a.K.ae,null!=c&&(d=iD(b&&b.background?b.background:a.K.background),d="rgba("+d[0]+","+d[1]+","+d[2]+","+c+")"));if(!b)return{background:d};c="";var e=1;if(b.color||null!=b.ye)c=iD(b.color||a.K.color),e=null==b.ye?a.K.ye:b.ye,c="rgba("+c[0]+","+c[1]+","+c[2]+","+e+")";a="";if(null!=b.Qe&&0!=b.Qe){var h="rgba(34, 34, 34, "+e+")",e="rgba(204, 204, 204, "+e+")";b.vo&&(e=h=b.vo);switch(b.Qe){case 4:a="2px 2px 3px "+h+", 2px 2px 4px "+h+", 2px 2px 5px "+h;break;case 1:a="1px 1px "+
h+", 2px 2px "+h+", 3px 3px "+h;break;case 2:a="1px 1px "+e+", 0 1px "+e+", -1px -1px "+h+", 0 -1px "+h;break;case 3:a="0 0 4px "+h+", 0 0 4px "+h+", 0 0 4px "+h+", 0 0 4px "+h}}e="";switch(b.fontFamily){case 1:e='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:e='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:e='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:e='"Comic Sans MS", Impact, Handlee, fantasy';
break;case 6:e='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:e=$p()&&aq()?"sans-serif-smallcaps":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';break;case 0:case 4:e='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var h=b.offset||1,k=1+.25*(b.Og||0);1!=h&&(k*=.8);return{color:c,fill:c,"background-color":d,"text-shadow":a,"font-variant":7==b.fontFamily?"small-caps":"","font-family":e,
"font-weight":b.bold?"bold":"","font-style":b.ah?"italic":"","text-decoration":b.zj?"underline":"","vertical-align":iG[h],"font-size":1==k?"":100*k+"%",visibility:b.cp?"hidden":""}},lG=function(a,b,c,d){var e=a.L.params,h=e.ye;
null==h&&(h=b.textOpacity);var k=e.Qe;null==k&&(k=b.charEdgeStyle);var m=e.ae;null==m&&(m=b.backgroundOpacity);var k={background:e.background||b.background,ae:m,bold:e.bold,color:e.color||b.color,ah:e.ah,zj:e.zj,fontFamily:e.fontFamily||b.fontFamily,ye:h,Qe:k,offset:e.offset||1,Og:e.Og||b.fontSizeIncrement},h=!1,l;for(l in k)if(a.K[l]!=k[l]){a.K=k;h=!0;break}h&&(l=jG(a,a.K,2==a.type),Uq(a.G,l),Uq(a.D,l));c=c/360*16;l=iD(e.windowColor||b.windowColor);k=e.Xm;Uq(a.M,{"background-color":"rgba("+l[0]+
","+l[1]+","+l[2]+","+(null==k?b.windowOpacity:k)+")","font-size":c+"px"});b=e.Ul;c=e.Im;l=e.textAlign;Uq(a.element,{left:null==b?"50%":b+"%",top:null==c?"100%":c+"%",display:!1===e.isVisible?"none":"","text-align":kG[null==l?2:l]});1==e.Gm?a.D.setAttribute("dir","rtl"):a.D.removeAttribute("dir");a.O&&be(a.element,a.O);e=e.anchorPoint;null==e&&(e=7);a.O="anchor-point-"+e;L(a.element,a.O);a.ph(d||a.A,h);a.Pm()},mG=function(a){oh(a.G,"C");
a.M.appendChild(a.G);var b=a.G.offsetHeight;a.M.removeChild(a.G);return b},nG=function(a,b,c,d){a.U=a.U||c!=b.o;
var e;d==c&&(e=a.D.children[a.D.children.length-1]);e||(e=window.document.createElement("span"),Uq(e,jG(a,c,!0)),a.D.appendChild(e));c=b.D.split("\n");d=a.L.Fg.length;for(var h=0;h<c.length;h++){var k=0<h||0==a.A.length||!b.H,m=!d||a.A.length+1>=d||h+1<c.length;!k||0==a.A.length&&0==h||e.appendChild(window.document.createElement("br"));c[h]?(k&&e.appendChild(window.document.createTextNode("\u00a0")),b.J?e.appendChild(window.document.createTextNode(c[h])):Mf(e,e.innerHTML+c[h]),m&&e.appendChild(window.document.createTextNode("\u00a0"))):
k!=m&&e.appendChild(window.document.createTextNode("\u00a0"))}a.A.push(b)},oG=function(){this.o=[];
this.A=[]},pG=function(a,b,c,d,e,h,k,m){qq.call(this,a,a+b,{priority:c});
k&&(delete k.background,delete k.backgroundColor,delete k.ae,delete k.Qe,delete k.color,delete k.fontFamily,delete k.Og,delete k.ye,delete k.windowColor,delete k.Xm);this.C=d;this.D=e;this.J=!!m;this.H=h||!1;this.o=k||null},qG=function(a,b,c,d,e){qq.call(this,a,a+b,{priority:c});
delete e.background;delete e.backgroundColor;delete e.ae;delete e.Qe;delete e.color;delete e.fontFamily;delete e.Og;delete e.ye;delete e.windowColor;delete e.Xm;this.o=!1;this.id=d;this.params=e;this.Fg=[]},rG=function(a){return a.params.aq?a.params.aq:a.params.OD?2:1<a.Fg.length?1:0},sG=function(){return new qG(0,0x8000000000000,0,"0",{})},uG=function(a){oG.call(this);
this.A.push(sG());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)tG(a[b],this.o)},tG=function(a,b){var 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=a.getAttribute("w")||"0",h=!!a.getAttribute("append"),k=h?6:5,m=oA("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");
vG(c,d,k,e,h,m.firstChild,{},b)},vG=function(a,b,c,d,e,h,k,m){switch(h.tagName){case "b":k.bold=!0;
break;case "i":k.ah=!0;break;case "u":k.zj=!0;break;case "font":var l=h.getAttribute("color");wG.test(l);k.color=l}for(l=0;l<h.childNodes.length;l++){var p=h.childNodes[l];if(3==p.nodeType)m.push(new pG(a,b,c,d,p.nodeValue,e||0<l,ac(k)?void 0:k,!0));else{var t={};qa(t,k);vG(a,b,c,d,!0,p,t,m)}}},xG=function(a){oG.call(this);
this.B={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=b.getAttribute("id");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.o=!0:e=sG();var h={};e&&qa(h,e.params);d.getAttribute("rc")&&(h.mj=(0,window.parseInt)(d.getAttribute("rc"),
10));d.getAttribute("cc")&&(h.Lw=(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.Ul=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(h.Im=(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.Gm=1,0==(0,window.parseInt)(d.getAttribute("pd"),
10)&&(h.Gm=0));d.getAttribute("bc")&&(h.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(h.ae=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(h.color=d.getAttribute("fc"));d.getAttribute("sd")&&(h.OD=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||0x8000000000000;d=d.getAttribute("id")||"0";b=new qG(b,e,0,d,h)}else b=null}this.B[c]=b;this.A.push(b);break;case "text":for(c=
this.o.length,tG(a,this.o);c<this.o.length;c++)b=this.o[c],(h=this.B[b.C])&&h.Fg.push(b)}a=a.nextSibling}0==this.A.length&&this.A.push(sG())},FG=function(a){oG.call(this);
var b={gj:{},Ur:{},Vr:{}},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=k.getAttribute("id"),e=b.gj,m=b,l=k,k={},p=l.getAttribute("p");p&&qa(k,m.gj[p]);m=yG(l,"b");null!=m&&(k.bold=m);m=yG(l,"i");null!=m&&(k.ah=m);m=yG(l,"u");null!=m&&(k.zj=m);m=zG(l,"et");null!=m&&(k.Qe=m);m=zG(l,"of");null!=m&&(k.offset=m);m=AG(l,"bc");null!=m&&
(k.background=m);m=AG(l,"ec");null!=m&&(k.vo=m);m=AG(l,"fc");null!=m&&(k.color=m);m=zG(l,"fs");void 0!=m&&0!=m&&(k.fontFamily=m);m=BG(l,"sz");void 0!=m&&(k.Og=m/100-1);m=BG(l,"bo");void 0!=m&&(k.ae=m/255);l=BG(l,"fo");void 0!=l&&(k.ye=l/255);e[h]=k;break;case "ws":e=k.getAttribute("id");b.Vr[e]=CG(b,k);break;case "wp":e=k.getAttribute("id"),b.Ur[e]=DG(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=EG(b,h);if(h=c[k.id])h.end=k.start;c[k.id]=k;this.A.push(k);
break;case "p":for(var k=b,l=h,m=[],p=BG(l,"t")||0,t=BG(l,"d")||0,u=l.getAttribute("w")||"0",x=!!yG(l,"a"),A=x?6:5,C=k.gj[l.getAttribute("p")],H=l.childNodes,z=0;z<H.length;z++){var N=H[z];if("s"==N.tagName){0<z&&(x=!0);var Ma=N,N=p,ta=t,Ka=u,pb=x,nd=A,ak=Ma.textContent?Ma.textContent:"",bk=k.gj[Ma.getAttribute("p")],Ma=BG(Ma,"t")||0,N=new pG(N+Ma,ta-Ma,nd,Ka,ak,pb,bk,!0)}else N=new pG(p,t,A,u,l.textContent?l.textContent:"",x,C,!0);m.push(N)}l=m;if(0<l.length)for(k=c[l[0].C],k||(k=EG(b,h,a--),this.A.push(k)),
h=0;h<l.length;h++)m=l[h],l[h].C=k.id,k.Fg.push(m),this.o.push(m)}},BG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return(0,window.parseFloat)(c)},yG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return"1"==c},zG=function(a,b){var c=BG(a,b);
if(void 0!=c)return c},AG=function(a,b){var c=a.getAttribute(b);
if(null!=c)return wG.test(c),c},CG=function(a,b){var c={},d=b.getAttribute("ws");
d&&qa(c,a.Vr[d]);d=zG(b,"mh");null!=d&&(c.aq=d);d=zG(b,"ju");null!=d&&(c.textAlign=d);d=zG(b,"pd");null!=d&&(c.Gm=d);d=AG(b,"wfc");null!=d&&(c.windowColor=d);d=BG(b,"wfo");void 0!=d&&(c.Xm=d/255);return c},DG=function(a,b){var c={},d=b.getAttribute("wp");
d&&qa(c,a.Ur[d]);d=zG(b,"ap");null!=d&&(c.anchorPoint=d);d=BG(b,"cc");null!=d&&(c.Lw=d);d=BG(b,"ah");null!=d&&(c.Ul=d);d=BG(b,"rc");null!=d&&(c.mj=d);d=BG(b,"av");null!=d&&(c.Im=d);return c},EG=function(a,b,c){c=c||b.getAttribute("id")||"0";
var d=BG(b,"t"),e=BG(b,"d")||0x8000000000000,h={};qa(h,DG(a,b));qa(h,CG(a,b));return new qG(d,e,0,c,h)},LG=function(a,b){oG.call(this);
this.A.push(sG());for(var c=a.split(GG),d=1;d<c.length;d++){var e;e=c[d];var h=b;if(""==e||0==e.search(HG))e=null;else{var k=e.split(IG),m=0,l=k[m++].match(JG);l||(l=k[m++].match(JG));l?(e=KG(l[1],h)||0,h=KG(l[3],h)||0,k=k.slice(m).join("\n"),k=Lf(k),e=new pG(e,h-e,5,"0",k)):e=null}e&&this.o.push(e)}},KG=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},MG=function(a,b){this.o=[];
this.A=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new LG(a,b||0):(c=oA(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new FG(c):new xG(c):new uG(c):null:null;c&&(this.A=c.A,this.o=c.o)},NG=function(){this.B=[];
this.o=[];this.A=-1},OG=function(a,b){return b?a.o.concat(a.B):a.o},PG=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)}},QG=function(a,b){var c=db(a.o,y(b.equals,b));
-1!=c&&(a.A=c)},RG=function(a){this.Fp=!!a;
this.o=new NG;this.D=[]},SG=function(a,b){return eb(OG(a.o,!0),function(a){return a.toString()==b})},TG=function(a){RG.call(this,a.ji);
this.A=null;this.C=void 0;this.B=null;this.D=a.captionTranslationLanguages},UG=function(){this.xa=this.la=!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.Ia=2.5;this.va=2;this.sa=25;this.F=2097152;this.J=!1;this.G=1800;this.ha=!1;this.o=1.15;this.C=1.05;this.Wa=!0;this.liveChunkReadahead=3;this.Ua=Yp("xboxone")||cq()||Zp();this.X=!1;this.Pa=Dl&&!0;this.Va=!0;this.La=this.Ka=this.fa=!1;this.na=this.Z=0;this.Ea=.8;this.Ja=this.Fa=!1;this.K=!0;this.ea=this.ia=!1;this.ca=10;this.$=1.25},VG=function(a,b){1080<b&&!a.la&&
(a.B=36700160,a.D=5242880,a.L=10485760,a.F=4194304,a.la=!0);
2160<b&&!a.xa&&(a.B=104857600,a.xa=!0)},WG=function(){this.wa=[]},XG=function(a,b){G.call(this);
this.A=b;this.H=new WG;this.C=!0;this.J=this.D=this.F=this.G=this.o=null;this.B=window.NaN},YG=function(a,b){a.G=b},ZG=function(a){var b;
if(b=!a.C&&null!==a.o)b=a.o,b=b.o.Hh(b);return b&&!a.D&&!(a.o&&30<a.o.startTime-a.A.getCurrentTime())},$G=function(a){a.isDisposed();
var b;b=a.o;b=Ms(b.o,b);if(!a.H.contains(b.o[0].C)){var c=Is(b).getUrl();a.D=tj(c,{format:"RAW",Zb:y(a.K,a),withCredentials:!0});a.F=b;var c=a.H,d=a.F.o[0].C,e=Ab(c.wa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.wa[e-1]&&e<c.wa.length&&1==c.wa[e]-d?(ob(c.wa,e),ob(c.wa,e-1)):0<e&&1==d-c.wa[e-1]?c.wa[e-1]=d:e<c.wa.length&&1==c.wa[e]-d?c.wa[e]=d:(wb(c.wa,e,0,d),wb(c.wa,e+1,0,d)))}a.o=cb(b.o)},aH=function(a){a.B=wi(y(function(){ZG(this)&&$G(this)},a),1E3);
ZG(a)&&$G(a)},bH=function(a,b){RG.call(this);
this.B=a;this.A=new XG(new UG,b)},cH=function(a){hG.call(this,a);
this.type=1;this.F="100%";this.D.style.padding="0"},dH=function(a){hG.call(this,a);
this.D.style.whiteSpace="nowrap";this.type=2;this.H=0;this.P=new Wd(this.X,433,this);I(this,this.P);this.A=[];this.J=[];this.F=[]},fH=function(a){if(!a.P.isActive())if(a.H>=a.A.length)eH(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.A.length,d=a.H;d<c;d++){var e=a.A[d];if("\n"==e.D){a.H++;a.J[b]++;break}if(e.H||0==a.F[b].length)a.F[b]+=e.D,a.H++,a.J[b]++;else break}eH(a);d<c&&!a.P.isActive()&&(b=mG(a),L(a.D,"caption-rollup"),a.element.style.overflow="hidden",a.D.style.top=-b+"px",a.P.start())}},eH=function(a){if(!a.P.isActive()){for(var b=a.L.params.mj||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.A.splice(0,c))}b=a.F.join("\n");a=a.D;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>")}Mf(a,b)}},gH=function(a){for(var b="",c=0;32>c;c++)b+="\u2014";
oh(a.G," "+b+" ");a.M.appendChild(a.G);b=a.G.offsetWidth;a.M.removeChild(a.G);return b},hH=function(a,b,c,d){RG.call(this,d);
c||(c=jj(a).hl||"",c=c.split("_").join("-"));this.B=lj(a,{hl:c});this.C=b;this.F={};this.A=null},iH=function(a){vq.call(this,a,"subtitlesModuleData");
this.ua="captions";this.logEvent="cc";gG();this.ea=!0;this.fa=this.L=this.ha=!1;this.Y=a.W();this.D=null;this.ca=DF(a);this.da=a;this.C={};this.P=null;this.$=[];this.O={};this.U={};this.sa=this.K=this.na=!1;this.A=this.B=this.H=this.J=null;this.va=!1;this.ia=new Wd(this.Km,0,this);I(this,this.ia);this.la=new Wd(this.qD,2E3,this);I(this,this.la);this.X=new Dr(this);I(this,this.X);this.xa=null},jH=function(a){return"3"!=a.Y.B?!1:!!a.da.app.B.o.textTracks},kH=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])},lH=function(a,b){jH(a);
if(b&&a.D.captionTracks.length){var c=a.o.Eh().po;if(2==c||3==c)return!0}if(1==a.Y.ia||1==a.D.Wd||"alwayson"==a.D.ad("yt:cc")||jH(a))return!0;c=Bq(a,"module-enabled");return null!=c?!!c:"on"==a.D.ad("yt:cc")},mH=function(a){return jH(a)?!a.D.Ga:a.D.captionTracks.length&&a.o.Eh().Ai?!0:lH(a,!0)},oH=function(a){a.A&&a.A==a.B.fe()&&nH(a);
a.B.Xl(y(a.Xq,a),!0,jH(a)?"vtt":void 0,a.o.Eh())},qH=function(a){jH(a);
a.L=!0;jH(a)||(pH(a),a.sq())},sH=function(a){jH(a);
a.B.fe()&&rH(a,a.B.fe())},nH=function(a){a.A&&(a.A=null,jH(a)||(yq(a),a.$=[],a.A=null,a.Km()),a.B.Jm())},rH=function(a,b,c){jH(a);
!b||a.A&&b.equals(a.A)||(null!=c&&(a.K=c),a.G?(a.A=b,tH(a),a.km("control_subtitles_set_track",Fu(b)),a.L||qH(a)):(a.B.Wl(b,y(a.Yq,a)),a.ha=!0))},uH=function(a){Cq(a,"display-settings",a.C)},pH=function(a,b){var c=CF(a.ca).height;
Ob(a.O,function(a){lG(a,this.C,c)},a);
a.H&&lG(a.H,a.C,c);a.J&&lG(a.J,a.C,c);a.Km();n(b)&&!b||uH(a)},wH=function(a){if(a.loaded){if(!jH(a)){var b=a.la;
b.isActive()&&Xd(b)}Cq(a,"module-enabled",!1);nH(a);vH(a.o);a.K=!1;a.G?(tH(a),a.km("control_subtitles_set_track")):a.o.Da("captionschanged",{});jH(a)||sH(a)}},xH=function(a){return iH.prototype.Xa(a)?new iH(a):null},zH=function(a,b){jH(a);
if(b&&!a.H){a.H=new hG(yH);a.P.element.appendChild(a.H.element);var c=new pG(0,0,0,a.H.L.id,Q("YTP_SAMPLE_SUBTITLES"),void 0,void 0,!0);lG(a.H,a.C,CF(a.ca).height,[c])}else!b&&a.H&&(a.H.dispose(),a.H=null)},DH=function(a,b){if(b)if(dc(b,"reset"))qa(a.C,AH),uH(a),pH(a);
else{if(!BH){var c={};c.color=a.Fk;c.textOpacity=a.$l;c.background=a.Fk;c.backgroundOpacity=a.$l;c.windowColor=a.Fk;c.windowOpacity=a.$l;c.charEdgeStyle=a.Ew;c.fontFamilyOption=a.lx;c.fontSizeIncrement=a.mx;BH=c}var c=BH,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])}pH(a,CH(a.Y))}},tH=function(a){var b={};
a.A&&(b=Fu(a.A));a.o.Da("captionschanged",b)},FH=function(a){this.da=a;
this.A=null;this.o=new we(0,0,0,0);this.D=new ue(0,0);this.C=this.B=0;EH&&wc(11)&&(this.A=window.document.createElement("canvas").getContext("2d"),wc(12.10532)||(this.B=3))},IH=function(a,b){if(null===a.A)return b;
var c=new ue(b.videoWidth,b.videoHeight);if(!ve(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=GH(DF(a.da)),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?HH(a,b,0,0,a.o.width,a.o.top-1):HH(a,b,0,b.videoHeight-a.o.top+1,a.o.width,a.o.top-
1))&&--a.B:2<=a.o.left&&(a.C?HH(a,b,0,0,a.o.left-1,a.o.height):HH(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},HH=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},JH=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 FH(a)},KH=function(a,b){JH.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},NH=function(a,b){if(!(b.P||Dl&&!LH||MH&&!LH&&wc(38)||Ac&&!LH&&wc(27)||EH&&!fq()&&wc(11)))return!1;
if(Zx(a)&&3!=a.ca&&4!=a.ca)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},OH=function(a,b){JH.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.da=a;this.J=a.W().experiments.ga("white_noise_with_interval");this.C=0},PH=function(a,b){OH.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},QH=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},RH=function(a){this.length=a.length||a;
for(var b=0;b<this.length;b++)this[b]=a[b]||0},SH=function(a){var b=a[0],c=a[1];
a=a[2];return Math.sqrt(b*b+c*c+a*a)},TH=function(){this.o=new window.Float32Array(16);
this.B=new window.Float32Array(16);this.A=new window.Float32Array(16);this.identity()},UH=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},YH=function(a,b){ea(a);
VH();for(var c=b?WH:XH,d=[],e=0;e<a.length;e+=3){var h=a[e],k=e+1<a.length,m=k?a[e+1]:0,l=e+2<a.length,p=l?a[e+2]:0,t=h>>2,h=(h&3)<<4|m>>4,m=(m&15)<<2|p>>6,p=p&63;l||(p=64,k||(m=64));d.push(c[t],c[h],c[m],c[p])}return d.join("")},$H=function(a){var b=[];
ZH(a,function(a){b.push(a)});
return b},ZH=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=aI[c];
if(null!=e)return e;if(!D(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
VH();for(var d=0;;){var e=c(-1),h=c(0),k=c(64),m=c(64);if(64===m&&-1===e)break;b(e<<2|h>>4);64!=k&&(b(h<<4&240|k>>2),64!=m&&b(k<<6&192|m))}},VH=function(){if(!XH){XH={};
aI={};WH={};for(var a=0;65>a;a++)XH[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),aI[XH[a]]=a,WH[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(aI["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}},bI=function(a){var b=new window.Float32Array(3),c=SH(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}},cI=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),m=Array(256),l=0;256>l;++l)h[l]=l,k[l]=l,m[l]=0;for(var p=0,t=0,l=0;l<c;++l){var u=a[l],x=b(h,u);k[t]==u?m[t]+=4:0==(m[t]>>=1)&&(k[t]=u,m[t]=1);1<m[u]&&b(h,k[u]);t=u;0==x&&++p;if(0!=x||l+1==c){for(;0<p;)--p,0==p%2?d[e++]=0:d[e++]=254,p>>=1;if(255==x||254==x)d[e++]=255;0!=x&&(d[e++]=x)}}return d.slice(0,e)},dI=function(){this.F=this.H=this.A=this.G=this.B=0;
this.D=new window.Float32Array(3);this.C=-1;this.o=[]},eI=function(a,b){this.F=a;
this.O=b;this.B=new TH;this.ca=this.$=this.fa=this.La=null;this.C=.872;this.U=this.X=this.Z=this.A=this.o=0;this.H=!0;this.D=this.K=0;this.G=new window.Float32Array(3);this.L=new FH(a);this.ea=this.F.W().experiments.ga("enable_html5_spherical_direction_logging")?new dI:null},fI=function(a,b){eI.call(this,a,b);
this.P=null;this.J=0;this.M=!0},gI=function(){},hI=function(a,b,c){return a[b]=a[b]||c},iI=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;
return-1},jI=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},lI=function(){var a;
if((a=Object.create)&&kI.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},oI=function(){var a=mI.href,b;
if(nI.dpo)b=nI.h;else{b=nI.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},pI=function(a){var b=hI(nI,"PQ",[]);
nI.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)},qI=function(a){return hI(hI(nI,"H",lI()),a,lI())},uI=function(a,b,c){b&&0<b.length&&(b=rI(b),c&&0<c.length&&(b+="___"+rI(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=hI(sI,"_p",lI()),hI(b,c,lI())[a]=(new Date).getTime(),b=tI.r,"function"===typeof b?b(a,"_p",c):b.push([a,
"_p",c]))},rI=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")},vI=function(a){throw Error("Bad hint"+(a?": "+a:""));
},AI=function(a,b,c,d){var e=a.split(";"),h=e.shift(),k=wI[h],m=null;
k?m=k(e,b,c,d):vI("no hint processor for: "+h);m||vI("failed to generate load url");b=m;c=b.match(xI);(d=b.match(yI))&&1===d.length&&zI.test(b)&&c&&1===c.length||vI("failed sanity: "+a);return m},aaa=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=BI(a);CI.test(c)||vI("invalid_callback");b=DI(b);d=d&&d.length?DI(d):null;return[(0,window.encodeURIComponent)(a.cD).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.co?"/am="+e(a.co):"",a.sr?"/rs="+e(a.sr):"",a.ru?"/t="+e(a.ru):"","/cb=",e(c)].join("")},BI=function(a){"/"!==a.charAt(0)&&vI("relative path");
for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))vI("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]),m=(0,window.decodeURIComponent)(h[1]);2==h.length&&k&&m&&(a[k]=a[k]||m)}b="/"+c.join("/");baa.test(b)||vI("invalid_prefix");c=EI(a,"k",!0);d=EI(a,"am");e=EI(a,"rs");a=EI(a,"t");return{cD:b,version:c,co:d,sr:e,ru:a}},DI=function(a){for(var b=
[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");
caa.test(e)&&b.push(e)}return b.join(",")},EI=function(a,b,c){a=a[b];
!a&&c&&vI("missing: "+b);if(a){if(daa.test(a))return a;vI("invalid: "+b)}return null},eaa=function(){var a=oI();
if(!a)throw Error("Bad hint");return a},FI=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];
e&&0>iI.call(b,e)&&c.push(e)}return c},faa=function(a){"loading"!=GI.readyState?HI(a):GI.write("<"+II+' src="'+(0,window.encodeURI)(a)+'"></'+II+">")},HI=function(a){var b=GI.createElement(II);
b.setAttribute("src",a);b.async="true";(a=GI.getElementsByTagName(II)[0])?a.parentNode.insertBefore(b,a):(GI.head||GI.body||GI.documentElement).appendChild(b)},gaa=function(a,b){var c=b&&b._c;
if(c)for(var d=0;d<JI.length;d++){var e=JI[d][0],h=JI[d][1];h&&Object.prototype.hasOwnProperty.call(c,e)&&h(c[e],a,b)}},haa=function(a,b,c){KI(function(){var c;
c=b===oI()?hI(LI,"_",lI()):lI();c=hI(qI(b),"_",c);a(c)},c)},NI=function(a,b){var c=b||{};
"function"==typeof b&&(c={},c.callback=b);gaa(a,c);var d=a?a.split(":"):[],e=c.h||eaa(),h=hI(nI,"ah",lI());if(h["::"]&&d.length){for(var k=[],m=null;m=d.shift();){var l=m.split("."),l=h[m]||h[l[1]&&"ns:"+l[0]||""]||e,p=k.length&&k[k.length-1]||null,t=p;p&&p.hint==l||(t={hint:l,features:[]},k.push(t));t.features.push(m)}var u=k.length;if(1<u){var x=c.callback;x&&(c.callback=function(){0==--u&&x()})}for(;d=k.shift();)MI(d.features,c,d.hint)}else MI(d||[],c,e)},MI=function(a,b,c){function d(a,b){if(u)return 0;
OI.clearTimeout(t);x.push.apply(x,C);var d=((LI||{}).config||{}).update;d?d(h):h&&hI(nI,"cu",[]).push(h);if(b){uI("me0",a,A);try{haa(b,c,p)}finally{uI("me1",a,A)}}return 1}
a=jI(a)||[];var e=b.callback,h=b.config,k=b.timeout,m=b.ontimeout,l=b.onerror,p=void 0;"function"==typeof l&&(p=l);var t=null,u=!1;if(k&&!m||!k&&m)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var l=hI(qI(c),"r",[]).sort(),x=hI(qI(c),"L",[]).sort(),A=[].concat(l);0<k&&(t=OI.setTimeout(function(){u=!0;m()},k));
var C=FI(a,x);if(C.length){var C=FI(a,l),H=hI(nI,"CP",[]),z=H.length;H[z]=function(a){function b(){var a=H[z+1];a&&a()}
function c(b){H[z]=null;d(C,a)&&pI(function(){e&&e();b()})}
if(!a)return 0;uI("ml1",C,A);0<z&&H[z-1]?H[z]=function(){c(b)}:c(b)};
if(C.length){var N="loaded_"+nI.I++;LI[N]=function(a){H[z](a);LI[N]=null};
a=AI(c,C,"gapi."+N,l);l.push.apply(l,C);uI("ml0",C,A);b.sync||OI.___gapisync?faa(a):HI(a)}else H[z](gI)}else d(C)&&e&&e()},KI=function(a,b){if(nI.hee&&0<nI.hel)try{return a()}catch(c){b&&b(c),nI.hel--,NI("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;
}})}else try{return a()}catch(c){throw b&&b(c),c;
}},PI=function(){Lj.call(this);
this.o={}},QI=function(a,b,c){if(!a.o[b]&&(c.Oe||c.mg)){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)}},RI=function(){J.call(this);
this.A=null;this.C=this.D=!1},UI=function(a,b){var c="";
b&&(SI(a,b),c=nw(b));a.o.src&&""==c||(c&&a.o.src!=c&&TI(a,c),b&&b.o||a.load(),a.C||(a.addEventListener("volumechange",y(a.F,a)),a.C=!0))},XI=function(a){a.o.ended&&VI(a,0);
if(!a.o.src&&a.A){var b=nw(a.A);TI(a,b);a.A.o||a.load()}a.play();WI&&7<=zx&&Ol(a,"playing",y(function(){vi(y(this.G,this,this.getCurrentTime(),0),500)},a))},SI=function(a,b){a.A&&a.A.equals(b)||(a.A&&a.A.dispose(),a.A=b)},jz=function(a){return cz(YI(a),a.getCurrentTime())},VI=function(a,b){0<a.o.readyState&&(WI&&4>zx&&(b=Math.max(.1,b)),a.o.currentTime=b)},ZI=function(a){a.o.src&&(Iw&&0<a.getCurrentTime()&&VI(a,0),a.o.removeAttribute("src"),a.load(),a.A&&a.A.o&&SI(a,null))},$I=function(a){var b=YI(a);
return 0<bz(b)&&a.o.duration?az(b,a.getCurrentTime()):0},aJ=function(a){var b=a.o.duration;
return window.Infinity==b?1:b?$I(a)/b:0},iaa=function(a,b,c){this.target=a;
this.type=b;this.o=c||null},bJ=function(a){RI.call(this);
this.o=a;this.B={}},TI=function(a,b){var c=a.o.playbackRate;
a.o.src=b;a.o.playbackRate=c},YI=function(a){return a.o.buffered||Yy()},cJ=function(a,b){b?a.o.setAttribute("crossorigin","anonymous"):a.o.removeAttribute("crossorigin")},dJ=function(a,b,c){Uq(a.o,b,c)},fJ=function(){if(null==r("_lact",window)){var a=(0,window.parseInt)(ti("LACT"),10),a=(0,window.isFinite)(a)?K()-Math.max(a,0):-1;
q("_lact",a,window);-1==a&&eJ();Ml(window.document,"keydown",eJ);Ml(window.document,"keyup",eJ);Ml(window.document,"mousedown",eJ);Ml(window.document,"mouseup",eJ);Hi("page-mouse",eJ);Hi("page-scroll",eJ);Hi("page-resize",eJ)}},eJ=function(){null==r("_lact",window)&&(fJ(),r("_lact",window));
var a=K();q("_lact",a,window);Ji("USER_ACTIVE")},HB=function(){var a=r("_lact",window);
return null==a?-1:Math.max(K()-a,0)},jaa=function(a){a=a.responseText;
if(!ua(a,")]}'"))return gJ(""),"";a=JSON.parse(a.substr(4)).id;gJ(a);return a},iJ=function(){vi(function(){hJ=null},3E5)},jJ=function(){return r("yt.www.ads.biscotti.lastId_")||""},gJ=function(a){q("yt.www.ads.biscotti.lastId_",a,void 0)},kJ=function(a,b){this.experimentIds=a?a.split(","):[];
this.flags=fj(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"]&&qu&&wc(8);this.H=!!c["9417025"];this.O=!!c["9417026"];this.C=!!c["9417027"];this.Dw=!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"]},sJ=function(a){G.call(this);
a=ec(a);this.O={};this.experiments=new kJ(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.va=b;this.H=(this.M=kaa.test(this.va))?gv("",a.loaderUrl):this.va;this.Ya=Vp(this.H);this.fa=(this.nf=(this.bc=dv(!1,a.ssl_stream))||dv(!1,a.ssl))?"https":"http";this.baseYtUrl=Sp(a.BASE_YT_URL)||Sp(this.va)||this.fa+"://www.youtube.com/";"adunit"==a.el?lJ.test(this.H)?this.Ba="adunit":this.Ba="embedded":this.experiments.ga("legacy_el")?
this.Ba=a.el||this.Ba:"embedded"==a.el||this.Ya?this.Ba=ev(this.Ba,a.el,laa):a.el&&(this.Ba="embedded");fJ();b=null;var c=a.ps,d=jb(mJ,c);!c||d&&!this.Ya||(b=c);this.o=b;this.D=(this.Ob=jb(mJ,this.o))&&"play"!=this.o;this.Ib=!this.D;this.A={};this.A.c=a.c||"web";this.A.cver=a.cver||"html5";this.A.cplayer="UNIPLAYER";this.vb=dv(!1,a.edu_mode);this.ca=!(!hu().defaultPlaybackRate||Ac&&!Yp("chrome")||yx||nJ||Yp("android")||Yp("silk"));a.use_media_volume?b=!1:(b=hu(),c=b.muted,b.muted=!c,b=b.muted!=c);
this.wb=b;this.qf=oJ;(yx||nJ||qu)&&"blazer"!=this.o&&CH(this);this.Ja=dv("adunit"!=this.Ba&&"detailpage"!=this.Ba&&!this.Ob,a.showinfo);this.isMobile=this.experiments.ga("better_mobile_in_player")?pJ||nJ||fq()||yx||qJ(this):dv("blazer"==this.o,a.is_html5_mobile_device);this.ac=dv(!1,a.playsinline);this.experiments.ga("better_mobile_in_player")?(b=pJ&&2.3>=Ew,c=dv(this.isMobile||!1,a.override_native_controls)):(b=this.isMobile&&pJ&&2.3>=Ew,c=qJ(this)||!b&&dv("native"==this.o,a.use_native_controls));
this.B="0"!=a.controls?c?"3":"1":"0";this.useTabletControls=this.isMobile;this.color=ev("red",a.color,maa);this.Xd="3"==this.B||dv(!1,a.modestbranding)&&"red"==this.color;dv(!1,a.nologo)&&(c=this.H,naa.test(c),Vp(c));this.P=0==this.H.indexOf(this.baseYtUrl);this.qd=(c=!this.P&&"detailpage"!=this.Ba&&!this.D&&!this.Ob)&&!this.Xd&&"1"==this.B;this.sd="embedded"==this.Ba&&c&&!this.Ja&&!this.qd;this.vf=(this.Yd=b)&&!this.experiments.ga("better_mobile_in_player");this.J=nJ?!1:!0;this.Td=this.M||!1;this.$=
"detailpage"==this.Ba?"":(this.H||a.post_message_origin||"").substring(0,128);this.C=!a.disableCast&&!this.isMobile&&("detailpage"==this.Ba||"embedded"==this.Ba||"profilepage"==this.Ba);this.cb=(this.L=dv(!1,a.autoplay))||"detailpage"==this.Ba;this.Pa=!this.isMobile&&!eq()||dv(!1,a.autoplayoverride);b=("detailpage"==this.Ba||"adunit"==this.Ba)&&"blazer"==this.o;this.Fa=!dv(!0,a.fs);this.Ua=!this.Fa&&(b||Ch());this.rd=dv(!this.Ob,a.rel);this.tf="adunit"!=this.Ba;this.ea="profilepage"==this.Ba;this.Ia=
"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.ha=b;this.Bb=gv("",a.authuser);this.uf=!!this.Bb&&dv(!this.D,a.showwatchlater);this.ob=dv(!1,a.disablekb);this.pageId=gv("",a.pageid);this.Zd=jv(Lu,a.vq);this.pf=gv("",a.playerapiid);this.sf=dv(!0,a.canplaylive);this.Sd=dv(this.Ob,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 ue(b,c))):b=null;this.wd=b;this.mute=this.Ya&&dv(!1,a.mute);this.storeUserVolume=!this.mute&&dv("0"!=this.B,a.store_user_volume);this.useMediaVolume=this.experiments.ga("native_controls_assume_media_volume")&&"3"==this.B||dv(!1,a.use_media_volume);this.rf=dv(!1,a.retryneterr)&&this.Ya;this.yd="3"==this.B?3:ev(void 0,a.iv_load_policy,Dx);this.na=
dv(!1,a.iv_allow_in_place_switch);this.Va=gv("",a.cc_lang_pref);this.ia=ev(void 0,a.cc_load_policy,Dx);this.la=void 0==a.content_v?void 0:a.content_v.toString();this.Ud=void 0==a.framer?void 0:a.framer.toString();this.Z=gv("en_US",a.hl);this.region=gv("US",a.cr);this.hostLanguage=gv("en",a.host_language);this.Wd=dv(!1,a.privembed);this.Qb="";this.Ea=new Uj;this.F=dv(!0,a.deviceHasDisplay);this.Za=fv(this.Za,a.ismb);rJ(this,a);this.O=a;this.K=new PI;this.U=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")||zi(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.Vd={apiaryHost:gv("",b.apiary_host),oO:gv("",b.apiary_host_firstparty),gapiHintOverride:dv(!1,b.gapi_hint_override),
gapiHintParams:gv("",b.gapi_hint_params),innertubeApiKey:gv("",b.innertube_api_key),innertubeApiVersion:gv("",b.innertube_api_version),kz:this.A.c,innertubeContextClientVersion:gv("",b.innertube_context_client_version),mz:this.hostLanguage,lz:this.region};this.od=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&dv(!1,a.airplay_button);this.G=new Dw(this.experiments,this.F,"web"==this.A.c.toLowerCase().substr(0,3)||aq()||bq());this.enableSafetyMode=dv(!1,a.enable_safety_mode);this.bb="detailpage"==
this.Ba&&"blazer"!=this.o&&"mweb-polymer"!=this.o},tJ=function(a,b){a.jb=b.get("d",a.jb);
a.Ka=b.get("f",a.Ka)},rJ=function(a,b){a.adFormat=void 0;
var c;(c=b.adformat)||(c=(c=b.attrib)&&Yb(uJ,c)&&Yb(vJ,c)?vJ[c]+"_"+uJ[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],h=a.experiments.ga("disable_monetization_on_indisplay_playbacks"),d=!(1==d[1]&&8==e)&&(6==e&&!h||7==e||8==e||10==e);if(a.M||a.Ya||d)a.adFormat=c,a.O.adformat=b.adformat,d||(a.Ba="adunit")}}if(c=b.video_id&&b.video_id!=a.Qb)a.Qb=b.video_id;(b.adpings||c)&&b.adpings&&hj(b.adpings);a.vb?d="s.youtubeeducation.com":a.Ib?(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.xd=d;a.ud="//"+a.xd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.zd=d,a.O.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.O.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var k in wJ)c=wJ[k],d=b[c],void 0!=d&&(a.A[c]=d);!a.xa&&b.cl&&(a.xa=+b.cl);a.userAge=fv(a.userAge,b.user_age);a.userDisplayImage=gv(a.userDisplayImage,b.user_display_image);Ax.test(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=gv(a.userDisplayName,b.user_display_name);a.userGender=gv(a.userGender,b.user_gender);a.X=gv(a.X,b.eventid);a.X&&(cw=a.X);a.csiPageType=gv(a.csiPageType,b.csi_page_type);a.sa=gv(a.sa,b.csi_service_name);a.Ia=dv(a.Ia,b.enablecsi);b.enabled_engage_types&&(a.Ea=new Uj(b.enabled_engage_types.split(",")));a.na=dv(a.na,b.iv_allow_in_place_switch)},xJ=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 hf(a.baseYtUrl+"get_video_metadata",b)},yJ=function(a){var b=Ze(a.baseYtUrl),c=$e(a.baseYtUrl);
c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.vb?"www.youtube.com":b},zJ=function(a){return"gaming"==a.o?"gaming.youtube.com":yJ(a)},AJ=function(a,b,c){return a.fa+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")},BJ=function(a){if(a.Be)a:{a=a.Be;
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},Qy=function(a){return"leanback"==a.Ba||a.Ob||!a.rd&&!a.ea?!1:!0},Cy=function(a){return"detailpage"==a.Ba&&"gaming"!=a.o},qJ=function(a){return nJ&&!a.ac||eq()||a.experiments.ga("better_mobile_in_player")&&(Yp("nintendo 3ds")||pJ&&3>Ew||fq()&&!wc("10"))?!0:!1},CH=
function(a){return dq()||"TV"==a.A.cplatform},CJ=function(a){return"CHROMECAST/ANCHOVY"==a.A.cmodel},DJ=function(a,b,c,d){this.G=c;
this.C=DF(a).A;this.K=10;this.D=!0;this.U=this.P=this.X=this.B=this.A=null;this.Z=b;this.o=null;this.da=a;this.ca=d;this.F=new we(0,0,0,0);this.L=!1;this.J=!0},paa=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=oaa(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.X=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},oaa=function(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);
b.shaderSource(c,a.o.al());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.o.Vk());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.jd(b,a.U,a.G);return 0},EJ=function(a){a.A&&(dh(a.A),a.A=null);
a.B=null;a.D=!1;a.o&&a.o.destroy(a.ca);a.o=null;a.C.removeAttribute("crossorigin");a.C.style.display="";a.K=10},FJ=function(a){vq.call(this,a);
this.ea=!0;this.ua="webgl";this.C=new Dr(this);I(this,this.C);this.D=new R(["div","webgl"]);this.D.o(DF(a).D);this.da=a;this.A=null;this.B=!1},qaa=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;Ax.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.A=a.ypc_item_url;this.videoId=a.ypc_vid},GJ=function(){Oq.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.ra["ytp-drawer-close-button"];Mf(a,Sf());var b=this.ra["ytp-drawer-open-button"];this.T(a,"click",this.D);this.T(b,"click",this.show);this.A=new Wd(pa(be,this.element,"ytp-drawer-closed"),0);I(this,this.A);this.Jb(null);this.ka()},HJ=function(a,b,c){Lj.call(this);
this.C=0==c;this.A=new GJ;this.A.subscribe("close-clicked",this.F,this);I(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}}"]]);I(this,this.B);this.H=this.B.ra["html5-ypc-purchase"];
this.B.T(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)},IJ=function(a){a.C||(a.D.appendChild(a.B.element),a.A.Jb(null),Lq(a.D,"block"))},raa=function(a){a.C||a.A.show()},JJ=function(a){vq.call(this,a);
this.logEvent=this.ua="ypc";this.B=this.D=this.A=null;this.H=window.NaN;this.C=null},saa=function(a){return Wx(a.getVideoData(),"ypc_module")?new JJ(a):null},taa=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 HJ(a.C.element,a.A,d);a.B.subscribe("ypcContentRequest",a.DA,a);a.B.subscribe("ypcModuleCloseClicked",a.rB,a);Qy(b)&&(b=new qq(0x8000000000000,0x8000000000000,{priority:2}),a.gb([b]));raa(a.B);xi(a.H);a.H=vi(y(function(){if(this.B){var a=this.B;a.C||a.A.ka()}},a),d)},KJ=function(){return cj("yt-player-quality")||"auto"},MJ=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 LJ(a)},LJ=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}},NJ=function(a){this.A=window.Float32Array?new window.Float32Array(a):Array(a);
this.o=a-1},OJ=function(a,b){a.o=(a.o+1)%a.A.length;
a.A[a.o]=b},uaa=function(){this.D=new NJ(50);
this.A=null;this.C=this.B=0;this.o=[]},vaa=function(a,b){0!=a.o.length&&(b.D=a.o.length,b.H=oe(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=[])},waa=function(a,b){if(a.A&&!(b>=a.B&&b<a.C)){var c=a.A.If(b);
a.B=a.A.Fe(c);a.C=a.B+a.A.Ee(c);var d=K()/1E3,c=ps(a.A,c),d=d-(c?c.A:window.NaN);OJ(a.D,d);a.o.push(d)}},xaa=function(a,b){this.o=a;
this.A=b;this.B=1},RJ=function(a,b,c,d){d/=a.B;
var e=PJ(a.o)+1/Gy(a.o),h;h=Math.max(.9*(d-3),QJ(a.o)+a.o.o.o*e);c=h/e*a.A.Ea/(b+c);c=Math.min(c,d);c=Math.max(a.A.va,Math.min(a.A.sa,c));return Math.min(a.A.F,Math.max(65536,Math.ceil(c*b)))},SJ=function(a){var b=Gy(a.o);
a=1E-9+QJ(a.o)+1048576*PJ(a.o);return b*Math.min(1,1048576/(b*a))},TJ=function(a){return SJ(a)/a.B},UJ=function(a,b,c){this.audio=a;
this.video=b;this.reason=c},yaa=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.Z=null;this.K=!1},zaa=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,VJ(a,b),WJ(a),a.B=XJ(a),new UJ(YJ(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);VJ(a,b);b=XJ(a);if("r"==c&&b==a.B){if(d)return null;a.B=b;return new UJ(YJ(a),b,c)}a.D=c;ZJ(a);return null},$J=function(a){return!!a.P&&9E4>=Qt()-a.P},YJ=function(a){aK(a);
return a.C},XJ=function(a){aK(a);
return a.G},ZJ=function(a){a.B&&a.G&&bK(a,a.B.info)<bK(a,a.G.info)&&(a.K=a.K||a.G.info.video.width>1.6*a.B.info.video.width||"r"==a.D)},cK=function(a){var b=a.D;
a.D="a";a.M=Qt();a.K=!1;return new UJ(a.L,a.B,b)},aK=function(a){if(!(!a.o.isLocked()&&-1<a.M&&8E3>Qt()-a.M)){a.P&&!$J(a)&&(a.P=0,VJ(a,a.o));
WJ(a);var b=TJ(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-bK(a,a.C.info);0<c&&!(bK(a,a.A[c])<=d);c--);for(b=b/a.H.o-bK(a,a.C.info);c<a.A.length-1&&!(bK(a,a.A[c+1])>=b);c++);a.O=c;a.G=a.F.o[a.A[c].id];ZJ(a)}}},VJ=function(a,b){a.o=b;
var c=a.J.videoInfos;if(!a.o.isLocked()&&(c=ae(c,function(a){return bK(this,a)>this.H.H?!1:!this.F.o[a.id].D},a),$J(a))){var c=ae(c,function(a){return a.id!=this.Z.id},a),d=ae(c,function(a){a=Or(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=ae(c,b.C,b);d.length||(d=[c[0]]);d.sort(y(function(a,b){return bK(this,a)-bK(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--):bK(a,e)*a.H.o>bK(a,h)&&(ob(d,c-1),c--)}a.A=d;VG(a.H,d[d.length-1].video.jD)},Aaa=function(a,b){if(b)a.C=a.F.o[b];
else{var c=eb(a.J.o,function(a){return!!a.Gb&&a.Gb.isDefault}),c=c||a.J.o[0];
a.C=a.F.o[c.id]}WJ(a)},WJ=function(a){if(!a.C.info.Gb&&(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=TJ(a.U)/a.H.o,b=bK(a,a.C.info)+bK(a,a.A[b])>c}b&&(a.C=a.F.o[a.J.o[1].id])}},Baa=function(a){var b=a.H.C,c=TJ(a.U)/b-bK(a,a.C.info),b=fb(a.A,function(a){return bK(this,a)<c},a);
0>b&&(b=0);a.O=b;a.G=a.F.o[a.A[b].id]},bK=function(a,b){return a.H.Fa&&b.C?b.C:b.o},Caa=function(){this.o=this.A=0;
this.B=[]},dK=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]},eK=function(){this.o=this.A=!1},fK=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 eK;this.H=null;this.G=0;this.K=b.Mp()},hK=function(a,b){a.D.push(b);
a.A=cb(b.info.o);a.F+=gK(b)},tK=function(a){for(var b;a.D.length&&5==a.D[0].state;)b=a.D.shift(),!b.L&&b.o&&(a.F=iK(b,a.F)),jK(b)&&(b=oK(b),F(b,a.O,a));
a.D.length&&jK(a.D[0])&&!Cs(a.D[0].info.o[0])&&(b=a.D[0],!b.L&&b.o&&(a.F=iK(b,a.F)),b=oK(b),F(b,a.O,a))},uK=function(a){return!(!a.o.length||1!=a.o[0].info.o.info.A||0!=a.o[0].info.B)},vK=function(a){var b=Ct(a.o[0]);
return b.getInt32(0)>b.byteLength&&1==a.o.length},xK=function(a,b){vK(a);
var c=a.o[0],d=wK(a);if(!d)return null;c=b||c.info.o.index.Uk(c.info.C);return(d=dt(d,c))?d:null},zK=function(a){var b=a.o[0],c=wK(a);
if(c&&(c=mt(c)))if(c>Ct(b).byteLength){var d=a.o[1];yK(a,b.range);yK(a,js(d.range.start,c-b.range.length))}else yK(a,js(b.range.start,c))},wK=function(a){var b=a.o[0],c=Ct(b),d=mt(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=mt(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c},Daa=function(a,b){if(a.M)return a.o[0].range;
var c=!!a.B.info.audio,d=a.B.ii();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.X)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 hs(a.o[0].C?0:a.o[0].range.start,h)},yK=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 As(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=js(c.range.start,e);d=new Bt(d,c.o,h,c.A,c.C);e=new As(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 hs(h.end+1,c.range.end);c=new Bt(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)},CK=function(a,b){var c=AK(a,b);
if(0<=c)return c;a.A=a.B.Qg(b).o[0];BK(a)&&(a.C=null);a.H=null;a.G=0;return a.A.startTime},EK=function(a,b){DK(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=vb(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},FK=function(a){a.J.A||a.J.start();
EK(a,!1);BK(a)&&(a.C=null)},Eaa=function(a){return zh(a.o,function(a){return a.info.F})},BK=function(a){return!!a.C&&a.C.H},GK=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&&!Bs(a.A,cb(b))&&b.push(a.A);return b},HK=function(a){if(!a.A||!a.A.A)return!1;
a=GK(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},AK=function(a,b){if(HK(a)){var c;
a:{c=GK(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},IK=function(a){return zh(a.D,function(a){return 3<=a.state})},JK=function(a){return!(!a.A||!a.B.hd()||a.A.o==a.B)},KK=function(a){return JK(a)&&a.A.o.info.o<a.B.info.o},DK=function(a){F(a.D,a.Z,a);
a.D=[];a.A=null},LK=function(a){return!!a.A&&a.A.C<a.B.index.Gf()},MK=function(a){a.A&&F(a.o,function(a){3==a.info.type&&a.info.C>this.A.C&&(this.A=a.info)},a)},Faa=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=js(0,this.length);d=new As(d.type,d.o,e,d.C,d.startTime,d.duration,d.B,e.length,d.H);c[0]=d}this.C=null},Gaa=function(a){var b=a.length-a.A;
F(a.o,function(a){b+=a.range.length});
return b},NK=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;Haa++;this.L=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(ui(y(this.lD,this)),ui(y(this.Wj,this)));K();this.H=!1;b()},PK=function(a){a.B.push(a.G.subarray(0,a.o));
a.o=0;a.G=a.H?null:new window.Uint8Array(OK(a))},QK=function(a){a.C.read().then(ui(y(a.oA,a)),ui(y(a.Wj,a)));
var b=K();a.L=b},OK=function(a){a=a.xg();
return Math.max(16384,.125*a)},RK=function(a,b,c,d){this.status=0;
this.A=null;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=ui(y(this.rF,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",ui(y(this.sF,this)),!1)},SK=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},TK=function(a){var b;
b=a.timing;b={rt:((K()-b.o)/1E3).toFixed(2),lb:b.B,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=a.B?as(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},UK=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},VK=function(a,b){a.state=b;
if(4<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.P&&a.P(a)},Iaa=function(a){return Te(a.info.o,function(a){return 3==a.type})},WK=function(a){if(a.A){var b=a.A;
a.A=null;b.Cs()}a=a.timing;a.C&&(a.C=!1)},YK=function(a){var b=a.A.Gh("content-type"),c=a.A.xg();
return(!XK(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)},oK=function(a){a=a.o;
var b=a.o;a.o=[];a.C=cb(b).info;return b},jK=function(a){return 2<=a.state&&!!a.o&&!!a.o.o.length},ZK=function(a,b){XK(a)&&!a.A.xg()&&(a.C.fa=!1,a.C.La=!1);
if(b||XK(a)&&!YK(a)){if(!a.o){var c=b?a.A.Rk():a.A.xg();a.o=new Faa(a.info.o,c)}for(;a.A.Pp();)for(var c=a.o,d=a.A.Lr(),e=0,h=0,k=0;k<c.B.length;k++){var m=c.B[k];if(e+m.A<=c.A)e+=m.A;else{var l;var p=c,t=m;1==t.type?(p.D=!0,l=!1):3==t.type||4==t.type?(t=p.D&&!p.F,p.F=!0,l=t):l=!1;var p=c,t=m,u=c.A-e,x=h,A=d,C=Math.min(t.A-u,A.length-x),H=void 0,H=new As(t.type,t.o,t.range,t.C,t.startTime,t.duration,t.B+u,C,t.B+u+C==t.range.length&&t.H),z=u=void 0,u=A.buffer,x=A.byteOffset+x,A=js(A.byteOffset,A.length);
1==t.type?(u.slice?u=u.slice(x,C):(t=new window.Uint8Array(u,x,C),u=(new window.Uint8Array(t)).buffer),z=js(0,C)):z=js(x,C);p.o.push(new Bt(H,u,z,A,l));p=C;c.A+=p;h+=p;e+=m.A;if(h==d.length)break}}}},iK=function(a,b){a.L=!0;
return b-Js(a.info)+gK(a)},gK=function(a){return a.o&&a.L?Gaa(a.o):Js(a.info)},XK=function(a){return!!(a.C.fa||a.C.La&&a.A&&a.A instanceof NK)},Jaa=function(a,b,c){this.A=a;
this.K=b;this.P=c;this.B=this.F=this.o=window.NaN;this.J=this.L=this.C=!1;this.D=0;this.G=this.M=window.NaN},bL=function(a,b,c){if(a.C){var d=(b-a.F)/1E3,e=c-a.B;
0<e&&(.2<d||1024>e?(a.D+=d,.2<d&&$K(a.A,.05,e)):$K(a.A,d,e),a.J=!0)}else c>=a.A.o.o&&(aL(a.A,(b-a.o)/1E3),a.C=!0);a.F=b;a.B=c},cL=function(a){return a.B>=a.A.o.o},dL=function(a){var b=a.K-a.B,b=1E3*(b*a.H.tailDelay+b/a.H.byterate),c=K(),b=cL(a)?b+c:b+Math.max(c,a.o+1E3*a.H.delay);
a.G=b},eL=function(a,b,c,d){Lj.call(this);
this.H=a;this.C=b;this.D=c;this.B=this.A=null;this.L=new xaa(a,b);this.o=null;this.G=new yaa(this.L,b,this.D,d);this.F=this.ia=this.ea=this.ha=window.NaN;this.M=!1;this.J=window.NaN;this.xa=0;this.K=!1;this.na={};this.O="";this.X=this.$=0;this.la=b.Ka?new Caa:null;this.fa=this.ca=window.NaN},hL=function(a){0==a.F&&(a.A.B.B||fL(a,a.A,!0),a.B.B.B||fL(a,a.B,!0));
a.seek(a.F);gL(a,"gv")},jL=function(a){a.o&&a.o.o&&a.o.o.removeEventListener&&(a.o.o.removeEventListener("updateend",y(a.Ec,a),!1),a.o.A.removeEventListener("updateend",y(a.Ec,a),!1),a.o.o.removeEventListener("error",y(a.aj,a,!0),!1),a.o.A.removeEventListener("error",y(a.aj,a,!1),!1));
a.o=null;a.K=!0;iL(a)},kL=function(a){a.o&&xw(a.o)&&jL(a)},lL=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},nL=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.hd())return b.B.B||fL(a,b,!1),!1;CK(b,a.F)}var d=b.D.length+c.D.length;(IK(b)||IK(c)||a.D.isLive)&&--d;if(2<=d+1)return!1;d=b.A;4==d.type&&d.o.hd()&&(b.A=cb(d.o.lj(d)),d=b.A);if(!d.H&&!d.o.Hh(d)||d.o.info.audio&&4==d.type)a=!1;else if(KK(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=mL(a,b,!0);if(a.C.ea){c=Qt();if(!(0,window.isNaN)(a.ca)&&!(0,window.isNaN)(a.fa)){var e=
a.fa+(c-a.ca)/1E3;b=Math.min(b,e)}a.ca=c;a.fa=b}else a.G.o.isLocked()||(e=30+2*((Qt()-a.xa)/1E3),b=Math.min(b,e));c=d>a.F+b}a=c?!1:!0}return a},oL=function(a,b,c){if(!a.o||ww(a.o)||Aw(a.o)){var d=a.F,e=a.L;
c=RJ(e,b.B.info.o,c.B.info.o,0);e=QJ(e.o)+c*PJ(e.o)+c/Gy(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;DK(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.Qg(d,!0).o[0])}}},qL=function(a,b,c){nL(a,b,c);
var d=b.A;if(b.K)d=b.B.Qg(window.Infinity);else if(b.A.o.hd()){!KK(b)||a.C.J||a.D.A||(oL(a,b,c),b.A||CK(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);JK(b)&&(KK(b)||25>=e)&&0==h&&(a.D.A?d.o=b.B:(h=d.startTime+eL.o,d.A&&(h+=d.duration),CK(b,h),d=b.A));d.o.ii()?(c=RJ(a.L,d.o.info.o,c.B.info.o,e),e=JK(b),c=Pt(d.o,d,c),c.range&&1<c.o.length&&(e?c=Pt(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=Pt(d.o,d,c.range.length-e.A)))),d=c):d=Ms(d.o,
d)}else d.o.ii()?(c=RJ(a.L,b.B.info.o,c.B.info.o,0),d=Pt(d.o,d,c)):d=Ms(d.o,d);hK(b,pL(a,d))},pL=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=cK(c);break a}}else c.L=d;c=null}c&&a.S("videoformatchange",c)}c=Js(b);var d=a.H,e=a.L,h=Math.min(e.A.Ia,QJ(e.o)),e=SJ(e);c=new SK(a.C,b,new Jaa(d,c,c-h*e));d=y(a.bC,a);c.isDisposed();c.P=d;c.start(Math.max(0,b.o[0].D-a.F));return c},Kaa=function(a,b){var c=b.o.o;
return Te(c,function(a){return Gt(a)},a)&&!(c[0]&&c[0].info.o.Pl())},Laa=function(a,b){F(b.o.o,function(a){Cs(a.info)&&a.info.o.Zo(a);
if(this.D.B&&3==a.info.type&&1==a.info.o.info.A){var b;b=Ct(a);if(b=Ys(b,0,1701671783)){lt(b);lt(b);kt(b);kt(b);kt(b);kt(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=Xs(b)}else b=null;a.B=b;a.B&&(a.D="T"==a.B["Overlayed-With-Slate"],this.D.A&&(b=Kt(a,"Sequence-Number"),null!=b&&(a.info.C=b)))}if(this.C.Ja&&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=Ys(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=Ys(new window.DataView(b.buffer),0,1701671783)}a.o=b.buffer;a.range=js(0,a.o.byteLength);a.A=a.range}},a)},rL=function(a){if((0,window.isNaN)(a.ha)){var b=y(a.Ec,a);
a.ha=vi(b,0)}},sL=function(a){if((0,window.isNaN)(a.ea)){var b=y(function(){this.ea=window.NaN;
this.Ec()},a);
a.ea=vi(b,1E3)}},wL=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||Ds(b.C,h.info)||(b.C=null,ww(a.o)&&c.abort(),c.o=null);var k=a.D.isLive&&Jt(h),m=!a.D.B&&b.P.X&&uK(b);if(k||a.D.A)c.o=null;else{if(k=m||!h.C)k=h.info.o.o,c.o==k?k=!1:(tL(a,c,k),c.o=k,a.S("initsegment",c.o),k=c.updating);if(k)return!0}k=mL(a,b,!1);k=a.F+k;null!==d&&0<=d&&(k=Math.min(k,d));d=Daa(b,k);if(!d)return!1;if(m){if(vK(b))return!1;if(k=xK(b))return uL(a,c,new window.Uint8Array(k),h,b)?(zK(b),!0):!1}k=new window.Uint8Array(h.o,d.start,
d.length);if(a.la&&h.info.o.info.video&&1==h.info.o.info.A){var l=a.la,p=k;0==h.info.B&&(l.A=0,l.o=0,l.B=[]);if(!((0,window.isNaN)(l.A)||8>p.length)){for(var t=new window.DataView(p.buffer,p.byteOffset),u=!1;!u;)if(l.A==l.o)a:{var u=l,x=t,A=p.length;if(u.A+7>=A){for(var C=u.A;C<A;C++)u.B.push(x.getUint8(C));u=!0}else{var H=C=void 0;if(0<u.B.length){for(C=0;8>u.B.length;C++)u.B.push(x.getUint8(C));C=dK(u.B,0);H=dK(u.B,4);u.B=[]}else C=x.getUint32(u.o),H=x.getUint32(u.o+4);if(1836019558==H||1836019574==
H||1718909296==H||1936286840==H)u.A+=C,u.o=u.A;else if(1835295092==H)u.A+=C,u.o+=8;else{u.A=window.NaN;u=!0;break a}u=u.o>=A}}else a:if(u=l,x=t,A=p.length,u.o+5>=A){for(C=u.o;C<A;C++)u.B.push(x.getUint8(C));u=!0}else{C=void 0;if(0<u.B.length){for(C=0;6>u.B.length;C++)u.B.push(x.getUint8(C));C=dK(u.B,0);12==C&&6==u.B[4]&&45==u.B[5]&&x.setUint8(u.o+5,63);u.o+=C+4;u.B=[]}for(;u.o<u.A&&u.o+5<A;){C=x.getUint32(u.o);if(0>=C){u.A=window.NaN;u=!0;break a}12==C&&6==x.getUint8(u.o+4)&&45==x.getUint8(u.o+5)&&
x.setUint8(u.o+5,63);u.o+=C+4}u=u.o>=A}(0,window.isNaN)(l.A)||(l.A-=p.length,l.o-=p.length)}}l=!1;if(3==h.info.type&&(1==h.info.o.info.A||2==h.info.o.info.A))if(l=1==h.info.o.info.A&&a.C.Ua&&!m&&!b.L&&0==h.info.B&&0<h.info.startTime)Ht(h,0);else if(a.D.B&&0==h.info.B){if(2!=h.info.o.info.A)for(m=new window.DataView(k.buffer),p=0;et(m,p);)t=ft(m,p),p+=t.size;a:if(uK(b)&&!Jt(b.o[0])&&vK(b))e=!1;else{p=null===b.H?h.info.startTime:b.H;if(0==Ht(h,p)){var z=Fs(h.info);z.smst=1;a.kd(!0,"fmt.unparseable",
z)}else if(t=It(h),b.H=p+t,a.D.A&&h.info.o.info.video)for(z in u=Kt(h,"Ingestion-Walltime-Us"),m=a.D,p=new ns(h.info.C,p,t,u?u/1E6:0,"sq/"+h.info.C),m.o)p.o>m.o[z].index.Fb()&&m.o[z].index.wa.push(p);z=0;h.info.o.info.video&&null!==e&&h.info.duration&&(m=vL(h,b,e),25<=Math.abs(m)&&(z=m/1E3));z&&!Jt(h)&&(m=It(h)+z,p=vL(h,b,e),t=Fs(h.info),t.deltaOffsetMs=p,t.cumOffsetMs=e-p,t.finalDurSecs=m,a.kd(!1,"qoe.avsync",t));if(z&&uK(b)&&!Jt(b.o[0])){b.G+=1E3*(It(h)-h.info.duration+z);b.H+=z;e=It(h)+z;b:{z=
0;for(m=new window.DataView(h.o);et(m,z);){p=ft(m,z);if(1936286840==p.type){z=p.data.getUint32(p.offset+16);break b}z=ht(p.type)?z+8:z+p.size}z=window.NaN}if((0,window.isNaN)(z))b:{z=h.info.o.o;m=0;for(p=new window.DataView(h.o);et(p,m);){t=ft(p,m);if(1836476516==t.type){z=gt(t);break b}m=ht(t.type)?m+8:m+t.size}z=z?it(z):window.NaN}if(e=xK(b,e*z)){if(uL(a,c,new window.Uint8Array(e),h,b)){zK(b);e=!0;break a}e=!1;break a}}else b.G+=1E3*(It(h)-h.info.duration);e=null}if(null!=e)return e}if(!uL(a,c,
k,h,b))return!1;b.L=!0;l?(Ht(h,h.info.startTime),c.abort(),c.o=null,Gs(h.info)):(yK(b,d),Gs(b.C),Zy(c.buffered));h.C&&(c.o=h.info.o.o,a.S("initsegment",c.o));return!0},uL=function(a,b,c,d,e){return tL(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)),FK(e),!1)},vL=function(a,b,c){a=1E3*(It(a)-a.info.duration);
return c-(b.G+a)},tL=function(a,b,c){try{Aw(a.o)?b.appendBuffer(c):b.append(c)}catch(d){if((a.C.K||a.C.ia)&&11==d.code)return vi(y(a.kd,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")&&zi(d);return!1}return!xw(a.o)},mL=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.ea&&(c=Gy(a.H),d=Math.min(d,30+Math.max(b-Math.max(1-.4*a.C.$,0)*c,0)*a.C.ca/b));return d},xL=function(a){if(a.D.isLive){if(!a.A.B.index.hf())return window.NaN;
var b=a.A.B.index.Gf(),c=a.A.B.index.Fb(),d=a.A.B.index;return 1>a.C.liveChunkReadahead?d.Fe(c)+d.Ee(c)-.2:d.Fe(Math.max(b,c-a.C.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.A.B.index.wg(),a.B.B.index.wg()))},yL=function(a,b,c,d){if(b.B.hd())if(d){var e=az(d.buffered,c),h=window.NaN,k=b.C;
k&&(h=az(d.buffered,k.o.index.Fe(k.C)));if(e==h&&HK(b))return c;d=AK(b,c);if(0<=d)return d;EK(b,!0);b.B.info.video&&b.C&&!b.C.F&&!Eaa(b)&&(d=b.C,b.o.length&&(d=cb(b.o).info),d=b.A||d,d=Pt(d.o,d,d.range.length-(d.A+d.B)),hK(b,pL(a,d)));if((0,window.isNaN)(e))return CK(b,c);CK(b,e+eL.o)}else CK(b,c);else b.B.B||fL(a,b,!1),0!=c&&DK(b);return c},zL=function(a,b,c){b.B!=c&&(b.B=c,c.B||fL(a,b,!1))},fL=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.No(d);F(c,function(a){if("f"!=a.o[0].o.info.B){var c=pL(this,a);!Cs(a.o[a.o.length-1])&&hK(b,c)}},a);
b.B.B=!0},AL=function(a){if(!a.B.A)return"";
a=as(a.B.A.o.F.o);return a.substr(0,a.indexOf("."))},gL=function(a,b,c){a.na[b]=c?window.performance.timing.navigationStart+c:Qt()},iL=function(a){a.A&&EK(a.A,!1);
a.B&&EK(a.B,!1)},BL=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 Dr(this);I(this,this.B);this.C?(this.B.T(this.C,"message",this.zG),this.B.T(this.C,"keystatuseschange",this.cB)):this.o&&(Er(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Jq),Er(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Iq),Er(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Hq))},CL=function(a,b){G.call(this);
this.A=a;this.o=b;this.F={};this.B=null;this.D=new Dr(this);I(this,this.D);this.C=this.G=null},EL=function(a){if(a.o.A)return a.o.A.createMediaKeys().then(ui(y(function(a){this.G=a;
this.A.setMediaKeys(a)},a)));
ou(a.o)?DL(a):pu(a.o)?(DL(a),a.A.webkitSetMediaKeys(a.C)):Maa(a);return null},Maa=function(a){Er(a.D,a.A,["keymessage",
"webkitkeymessage"],a.CG);Er(a.D,a.A,["keyerror","webkitkeyerror"],a.BG);Er(a.D,a.A,["keyadded","webkitkeyadded"],a.AG)},DL=function(a){a.C=new (nu())(a.o.B)},FL=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},GL=function(){this.keys=[];
this.values=[]},HL=function(a,b){return fb(a.keys,function(a){return Gb(b,a)})},Naa=function(a,b,c){this.url=a;
this.interval=b;this.o=c},Oaa=function(a,b,c){this.o=a;
this.headers=b;this.message=c},JL=function(a,b,c,d,e){G.call(this);
this.A=a;this.o=d;this.o.subscribe("oauthtoken",this.Es,this);this.C={session_id:e};a=this.A.D;pu(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://"));IL(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.vF,
this.uF,this.tF,this),I(this,this.B)},IL=function(a,b){if(Paa.test(b)){for(var c in a.C)b=of(b,c,a.C[c]);
a.H=b}else KL(a,"drm.net","t.u")},KL=function(a,b,c,d){a.isDisposed()||a.o.S("licenseerror",b,c,d);
a.dispose()},LL=function(a,b){this.o=a;
this.contentType=b||null},NL=function(a,b,c,d){Lj.call(this);
c=c.ga("edge_nonprefixed_eme");a.addKey||a.webkitAddKey||nu()||uu(c);this.G=a;this.o=b;this.subscribe("newlicense",this.zB,this);this.subscribe("newsession",this.AB,this);this.subscribe("sessionready",this.jC,this);this.U=fw();this.K=null;this.C=new GL;this.A=[];this.D=ML;this.J=new CL(a,b);I(this,this.J);this.B=null;ou(b)&&(this.B=new CL(a,b),I(this,this.B));this.M=2;this.H=new Dr(this);I(this,this.H);this.L=!1;this.P=null;this.F=!1;a=this.G;this.o.A?this.H.T(a,"encrypted",this.PA):(b=ou(this.o)?
["msneedkey"]:["needkey","webkitneedkey"],Er(this.H,a,b,this.xB));(a=EL(this.J))?a.then(ui(y(this.pB,this)),ui(y(this.aA,this))):this.F=!0;this.B&&EL(this.B);this.O=d},PL=function(a,b,c){a.isDisposed()||ou(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,OL(a,b))))},OL=function(a,b){a.C.get(b.o);
var c=new JL(a.o,a.J,b,a,a.U);c.Es(a.K);return c},QL=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.ha?this.B=hj(this.o.ha):this.B=[]},RL=function(a,b,c,d){this.videoData=a;
this.o=b;this.reason=c;this.A=d},Qaa=function(a,b){this.Y=a;
this.o=b},SL=function(a,b){return Mu(Mu(a.Y.Zd,b.oh),b.uh)},UL=function(a,b){var c=KJ();
return"auto"!=c?Ju("auto",c,!1):TL(a,b)},TL=function(a,b){if(CH(a.Y)&&Tw(a.Y.G,Ow))return Lu;
var c;c=!!b.A.o;var d;qJ(a.Y)&&(d=window.screen&&window.screen.width?new ue(window.screen.width,window.screen.height):null);d||(d=a.Y.wd?a.Y.wd.clone():a.o.Ma());(nJ||VL||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=Ju("auto",e.quality,!1)}else e=Lu;c=e.o;dq()&&(c=Math.max(c,Wr.hd1080));
(Yp("armv7")||Yp("android"))&&!CH(a.Y)&&Qr(b.A.videoInfos[0])&&(c=Math.min(c,Wr.large));c=Math.max(c,Wr.medium);e.o!=c&&(e=new Iu(e.A,c,e.B));return e},Raa=function(a){this.C=this.o=window.NaN;
this.A=this.B=!1;this.D=!!a},WL=function(a,b){a.o=b;
a.B=!0},mz=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},XL=function(a){if(a.Ql)return 4;
var b=yh("visibilityState",window.document);return b&&"visible"!=b?3:a.Xf?2:a.Rl?1:0},Saa=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},YL=function(){this.endTime=this.startTime=-1;
this.yk="-";this.playbackRate=1;this.visibilityState=0;this.vk=""},Taa=function(a,b,c,d,e,h,k,m,l){this.videoData=a;
this.o=b;this.C=c;this.D=d;this.A=e;this.F=h;this.J=k;this.H=m;this.G=l||function(){};
this.B=null},OB=function(a){return ZL(a)()},ZL=function(a){a.B||(a.B=pa(function(a){return Math.round(Qt()-a)/1E3},Qt()));
return a.B},QB=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.ai&&(c.infringe=1);a.tg&&(c.splay=1);a.Ga&&(c.live=a.$d?"dvr":"live");a.Nc&&(c.autoplay=1);a.Xd&&(c.sdetail=a.Xd);a.O&&(c.partnerid=a.O);a.osid&&(c.osid=a.osid);qa(b,c);return b},uB=function(a){var b=new YL;
b.yk=a.C().cc||"-";var c=a.o;b.playbackRate=c.Be&&c.Be.o.playbackRate||1;c=XL(a.o);0!=c&&(b.visibilityState=c);a=a.H();a.Gb&&a.Gb.id&&"und"!=a.Gb.id&&(b.vk=a.Gb.id);return b},$L=function(a,b){this.state=a;
this.o=b},XB=function(a,b){return T(a.state,b)&&!T(a.o,b)?1:!T(a.state,b)&&T(a.o,b)?-1:0},aM=function(a,b,c,d,e){Lj.call(this);
this.Ea=new Raa(a.experiments.ga("html5_always_underrun_on_empty_buffer"));this.G=c;this.Ja=d;this.F=new UA(y(this.getCurrentTime,this),y(this.EE,this),y(this.getPlayerState,this),e);I(this,this.F);this.ia=window.NaN;this.P=this.H=null;this.Y=a;this.xa=new Qaa(a,this.Ja);this.K=!1;this.L=this.D=null;this.$=[];this.fa=new eK;this.O=new eK;this.jb=this.Fa=!1;this.Ia=window.NaN;this.C=new gz;this.na=[];this.J=b;this.ea=this.la=null;this.M=window.NaN;this.ha=new Dr;I(this,this.ha);this.o=new rx;this.A=
this.ca=null;this.U=window.NaN;this.B=null;this.bb=this.cb=!1;this.sa=window.NaN;this.Pa=this.Ua=this.Za=this.va=!1;this.Va=window.NaN;this.ob=a.experiments.ga("html5_force_play_on_suspend_event");this.vb=a.experiments.ga("html5_force_play_on_suspend_event_limited");this.X=null;this.wb=this.Y.experiments.ga("html5_playing_event_buffer_underrun")},bM=function(a){kv()?mv(a.sa):xi(a.sa)},cM=function(a){if(a.B){var b=a.B;
if(!b.isDisposed()&&b.C){b.F="paused";var c=TB(b);c.ha=!0;c.send();c=b.A;"PL"==c.A&&(c.A="N");var d=OB(c.o);DB(c,d,"vps",[c.A]);c.kh(d);xi(b.D);b.dispose()}Mb(a.B);a.B=null}},dM=function(a){return a.A?a.A.ma():null},fM=function(a){if(Tx(a.o))return!0;
eM(a,"api.invalidparam");return!1},gM=function(a,b){a.Fa=!!b;
fM(a)&&!a.fa.A&&(a.fa.start(),a.B&&a.B.lg(),a.yo())},jM=function(a){a.A&&UI(a.A);
gM(a);fM(a)&&!T(a.C,128)&&(a.O.A||(a.O.start(),hM(a,nz(a.C,8)),Vx(a.o)||hM(a,nz(a.C,1))),iM(a))},iM=function(a){a.isDisposed();
if(!a.O.o&&a.fa.o&&!T(a.C,128)&&!a.$.length&&(a.F.C||a.F.lg(),!kM(a))){if(a.D){var b=a.D;a.jb=!!b.P&&!!b.U}a.O.o=!0;a.o.Ga&&(lM(a,window.Infinity,!0),mM(a,!0),a.Y.experiments.ga("disable_live_background_seek_to_head")||3!=XL(a.Y)||(a.bb=!0));if(a.B&&(b=a.B,b.o.videoData.enableCardio&&b.o.videoData.enableCardioBeforePlayback&&(b.pj("connected"),$B(b)),b.o.videoData.Ga)){var b=b.A,c=b.o.videoData.o;c&&eu(c)&&GB(b,"live-segment-"+eu(c).toFixed(1));c=$x(b.o.videoData,b.o.o.experiments);GB(b,"live-readahead-"+
c);null!=b.o.videoData.Xi&&GB(b,"live-low-latency-extra-buffer-"+b.o.videoData.Xi)}a.S("playbackready",a);Sv("pbr",a.G.o)||a.G.A("pbr",void 0)}},oM=function(a,b,c,d){a.o.B=c;
a.o.F=d||c;if(a.B){var e=a.o,h=TL(a.xa,e),e=eb(e.A.videoInfos,y(h.C,h)),e=new RL(a.o,c,b,e?e.id:"");d&&"i"==b&&nM(a,b,d);d=a.B.A;c=OB(d.o);DB(d,c,"vfs",[e.o.id,e.A,d.X,e.reason]);d.X=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),DB(d,c,"view",e));DB(d,c,"vps",[d.A]);d.kh(c)}a.S("internalvideoformatchange",a.o,"m"==b)},nM=function(a,b,c){a.o.F=c;
if(a.B){var d=a.B.A;c=new RL(a.o,c,b,"");var e=OB(d.o);c.o.id!=d.K&&(DB(d,e,"afs",[c.o.id,d.K,c.reason]),d.K=c.o.id)}"i"!=b&&a.S("internalaudioformatchange",a.o,"m"==b)},eM=function(a,b,c,d){var e,h;
Tb(Uaa,c)?e=c:c?h=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:h||Q(e),messageKey:e};hM(a,kz(a.C,128,b));bM(a);pM(a);qM(a)},kM=function(a){return!!a.$.length||0<QA(a.F.o,-0x8000000000000).length},rM=function(a){a.Y.experiments.ga("html5_crossorigin_video")&&a.A&&(a.o.cf||!a.o.A||a.o.A.o?cJ(a.A,!1):cJ(a.A,!0))},tM=function(a,b){a.A&&sM(a);
a.A=b;Vaa(a);rM(a)},sM=function(a){a.o&&a.Y.experiments.ga("new_ended_replay")&&(a.o.startSeconds=a.getCurrentTime());
a.L=null;a.D&&(rL(a.D),a.D.K=!0);a.A&&(a.B&&a.fa.A&&T(a.C,64)&&!a.o.ce&&uM(a),vM(a),Fr(a.ha),ZI(a.A),a.A=null)},yM=function(a){if(!T(a.C,128)&&(jM(a),T(a.C,64)&&hM(a,nz(a.C,8)),a.O.o&&a.A))if(a.o.A){a.Y.experiments.ga("new_ended_replay")&&T(a.C,2)&&lM(a,0,!0);
if(a.o.Ga){var b=a.getCurrentTime()<Sx(a.o),c=Xx(a.o)&&T(a.C,4);(b||c)&&lM(a,window.Infinity,!0);wM(a)?mM(a,!0):a.K&&lM(a,window.Infinity,!0)}if(a.o.A.o)b=xM(a),a.D.resume();else{pM(a);var b=a.o.cg.A(),c=a.o,d={};c.$&&(d.ptk=c.$,d.oid=c.ud,d.ptchn=c.sd,d.pltype=c.wd);qa(b.A,d);c=a.Y.A;qa(b.A,{c:c.c,cver:c.cver})}(c=a.A.A)&&c.equals(b)?XI(a.A):Waa(a,b)}else eM(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")},zM=function(a){vM(a);
pM(a);xM(a)},BM=function(a){if(a.o.A){var b=AM(a)||Lu;
a=ae(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},CM=function(a){return Mu(Mu(SL(a.xa,a.o),UL(a.xa,a.o)),AM(a))},AM=function(a){return a.o.Pk?Lu:a.H?a.H.D:Hx(a.o)&&a.o.A.o&&St(a.o.o)?ML:Lu},DM=function(a,b,c){if(!a.isDisposed()&&!T(a.C,128)&&(c&&(a.o.uh=c),Hx(a.o))){"m"==b&&c&&Ku(c)&&(b="a");
c=CM(a);if(a.o.A.o){if(a.D&&"i"!=b){var d=a.D;d.isDisposed()||((c=zaa(d.G,c,b))&&d.S("videoformatchange",c),zL(d,d.B,XJ(d.G)),d.G.o.isLocked()&&"m"==b&&(FK(d.B),FK(d.A)),KK(d.B)&&oL(d,d.B,d.A),rL(d))}}else{d=a.o;a:{var e=a.o.P;if(c.o){for(var h=0;h<e.length;h++){var k=e[h].wc,m=Wr[k.video.quality];if((!c.B||"auto"!=k.video.quality)&&m<=c.o){c=e[h];break a}}c=e[e.length-1]}else c=e[0]}d.cg=c;oM(a,b,a.o.cg.wc)}a.C.kb()&&yM(a)}},EM=function(a){fu(a.o.o,{c:a.Y.A.c,
cver:a.Y.A.cver});var b=a.Y,c=a.o,d=new UG;if(cq()||b.experiments.M)d.X=!0;cq()&&(d.U=-1);if(Yp("trident/")||Yp("edge/"))d.A=240;Rq&&(d.M=41943040);if(CH(b)||!zw()){var e=b.experiments;d.B=8388608;d.D=524288;d.L=2097152;d.F=1048576;d.va=1.5;d.sa=15;d.J=!zw();d.Wa=!1;bq()&&!e.K&&(d.H=625E3);aq()&&(d.H=75E4);d.Fa=!0;d.o*=1.3;d.C*=1.3}dq()&&(e=CJ(b),d.B=20971520,d.D=1572864,e&&(d.H=812500,d.G=1E3));b.experiments.G&&(d.H=window.NaN);d.Va=b.F;b.experiments.ga("big_buffers_for_anchovy")&&CJ(b)&&(d.P=5);
d.liveChunkReadahead=$x(c,b.experiments);d.Ka=!b.experiments.ga("disable_fpa_sei_removal")&&Yp("windows nt")&&(Zx(c)||ay(c));var e=b.experiments.Sb("dash_html5_refresh_mapping_interval"),h=b.experiments.Sb("dash_html5_refresh_mapping_min_buffer");e&&(d.Z=e);h&&(d.na=h);b.isMobile&&(d.ha=b.experiments.ga("mweb_uniplayer_disable_adaptation"));if(e=b.experiments.Sb("html5_deadzone_multiplier"))d.o*=e,d.C*=e;if(e=b.experiments.Sb("html5_request_sizing_multiplier"))d.Ea=e;b.experiments.ga("html5_strip_emsg")&&
(d.Ja=!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.o&&c.o.A&&(d.Ia=.2);b.experiments.ga("html5_use_tight_max_buffer_depth")&&(d.ea=!0,d.ca=b.experiments.Sb("html5_tight_max_buffer_allowed_impaired_time")||d.ca,d.$=b.experiments.Sb("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.$);a.D=new eL(a.la,d,a.o.o,a.o.A);a.D.subscribe("initsegment",a.bB,a);a.D.subscribe("videoformatchange",a.lB,a);a.D.subscribe("audioformatchange",
a.kB,a);a.D.subscribe("error",a.Mj,a);a.D.subscribe("seekrequired",a.tD,a);b=jb(a.$,"spacecast")||a.Fa;c=a.kn();c=c.Gb.isDefault?void 0:c;a.D.initialize(a.o.startSeconds,CM(a),b,c);a.o.probeUrl&&(a.D.O=a.o.probeUrl);if(a.$.length||a.Fa)a.D.K=!0;a.Fa&&uM(a)},uM=function(a){var b=new $L(new gz(4),a.C);
ZB(a.B,b)},pM=function(a){a.D&&(a.D.dispose(),a.D=null);
a.L&&(a.L.dispose(),a.L=null)},xM=function(a){a.L||(a.D?a.D.seek(a.getCurrentTime()):EM(a),a.L=new rw(a.A.ma(),a.o.lengthSeconds,a.o.A.videoInfos[0].mimeType,a.o.A.o[0].mimeType,a.Y.F),tw(a.L,y(a.D.ww,a.D)),uw(a.L,y(function(){eM(this,"fmt.unplayable",void 0,"msi.1")},a)));
try{return vw(a.L)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),eM(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}},FM=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)},qM=function(a){a.A&&(a.A.pause(),vM(a),pM(a),a.o&&(a.o.startSeconds=a.getCurrentTime()),a.M=window.NaN,ZI(a.A),T(a.C,128)||hM(a,kz(a.C)))},lM=function(a,b,c,d){if(!a.A||
!a.O.o||!a.A.o.src&&a.Y.experiments.ga("new_ended_replay"))a.o.startSeconds=b||0;
else{b=le(b||0,Sx(a.o),GM(a,!1));var e=a.o.Ga&&!T(a.C,4)&&wM(a,b);mM(a,e);a.o.startSeconds=b;a.M=b;WL(a.Ea,b);c?a.ms():(T(a.C,32)||(hM(a,nz(a.C,32)),T(a.C,8)&&a.pauseVideo(!0),a.S("beginseeking",a)),d&&(a.ea||(a.ea=new Wd(a.ms,d,a)),a.ea.start()),HM(a,!0));a.P&&b>a.o.Bf&&(a.F.zh(a.P),a.P=null);b<a.ug()&&hM(a,oz(a.C,2));a.S("seekto",a,b)}},Xaa=function(a){if(!a.A)return 0;
if(Xx(a.o))return 1;if(Yx(a.o)){if(a.K)return 1;var b=a.A,c=YI(b),b=(0<bz(c)&&b.o.duration?c.end(c.length-1):0)-Sx(a.o);a=GM(a,!0)-Sx(a.o);return Math.max(0,Math.min(1,b/a))}return aJ(a.A)},IM=function(a,b){var c={};
if(b){a.B?qa(c,MB(RB(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:Zy(d.o.played||Yy()),vbu:Zy(YI(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:Gy(d.H).toFixed(3),lhd:QJ(d.H).toFixed(3),ltd:(1E9*PJ(d.H)).toFixed(3),laa:d.A.C?
Gs(d.A.C):"",lva:d.B.C?Gs(d.B.C):"",lar:d.A.A?Gs(d.A.A):"",lvr:d.B.A?Gs(d.B.A):"",lvh:AL(d)};d.o&&!xw(d.o)&&(e.lab=Zy(d.o.o.buffered),e.lvb=Zy(d.o.A.buffered));qa(c,e)}c.state=a.C.A.toString(16);T(a.C,128)&&(c.debug_error=a.C.o);kM(a)&&(c.preroll="1");a.o.Ah&&(c.ismb=a.o.Ah);a.o.isLowLatencyLiveStream&&(c.lowlatency="1");a.o.Ga&&a.o.o&&eu(a.o.o)&&(c.segduration=eu(a.o.o))}c.debug_videoId=a.o.videoId;return c},JM=function(a,b){a.S("internalvideodatachange",b||"dataupdated",a,a.o)},Vaa=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),
function(a){this.ha.T(this.A,a,this.GE,this)},a);
a.Y.od&&(a.ha.T(a.A,"webkitplaybacktargetavailabilitychanged",a.Rz,a),a.ha.T(a.A,"webkitcurrentplaybacktargetiswirelesschanged",a.Sz,a))},KM=function(a){var b=a.getCurrentTime(),c=a.o;
!Sv("pbs",a.G.o)&&Yv.measure&&Yv.getEntriesByName&&(Yv.getEntriesByName("mark_navigation_requested")[0]?Yv.measure("measure_above_the_fold","mark_navigation_requested"):Yv.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.Pa&&a.G.info("yt_pre",
a.jb?"2":"1");a.Y.Xf&&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],gL(b,"vri",c.fetchStart),gL(b,"vdns",c.domainLookupEnd),gL(b,"vreq",c.requestStart),gL(b,"fvb",c.responseStart),gL(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.P),c.length&&(c=c[0],gL(b,"ari",c.fetchStart),gL(b,"adns",c.domainLookupEnd),gL(b,"areq",c.requestStart),gL(b,
"avb",c.responseStart),gL(b,"arc",c.responseEnd)));var b=b.na,d;for(d in b)a.G.A(d,b[d])}},Yaa=function(a){if(a.ia&&a.A){var b=a.A.o.seekable||Yy();
b.length&&b.end(0)>a.ia&&(a.A.o.currentTime=a.ia,a.ia=window.NaN,a.Ka=a.ha.T(a.A,"canplay",a.IA,a))}},HM=function(a,b){if(a.A&&a.o){var c=a.getCurrentTime();
if(c<Sx(a.o))lM(a,GM(a,!1),!0);else{if(a.K){var d=GM(a,!1);if(c<d-10){if(a.o.Wf||Xx(a.o)&&a.Y.experiments.ga("html5_live_only_stick_to_head")){lM(a,d,!0);return}a.o.Ga&&mM(a,!1)}}if(a.D&&(d=a.D,d.o)){d.resume();if(d.M&&!xw(d.o)){var e=d.F<=c&&c<d.F+10,h=0<=$y(d.o.A.buffered,d.F+eL.o);e&&h&&(d.M=!1)}d.M||(d.F=c);sL(d)}5<c&&(a.o.startSeconds=c);(d=kv())?mv(a.sa):xi(a.sa);!rz(a.C)&&a.A.o.paused||T(a.C,128)||(e=y(a.Rx,a),a.sa=0==(a.A.o.played||Yy()).length?d?lv(e,100):vi(e,100):d?lv(e,500):vi(e,500));
a.o.Jj=c;!b&&a.C.kb()&&a.B&&(c=a.B,c.B.update(),Vx(c.o.videoData)&&c.o.videoData.ff&&!c.M&&xB(c.B)>=c.o.videoData.ff&&(c.C&&c.o.videoData.ff&&(d=RB(c,"delayplay"),d.Ea=!0,d.send(),c.M=!0),WB(c)),d=c.U,d.B||!d.o.Ib||d.o.Wd||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=xB(d.C)>=e),d&&c.U.send());a.S("progresssync",a,b)}}},hM=function(a,b){var c=a.C;
if(b.A!=c.A||b.o!=c.o){c=new $L(b,a.C);a.C=b;var d=!a.na.length;a.na.push(c);0>XB(c,8)&&(xi(a.U),a.U=window.NaN,mM(a,!1));0<XB(c,8)&&!a.o.ce&&(0,window.isNaN)(a.U)&&(a.U=vi(y(a.yq,a),15E3));0<XB(c,32)&&mM(a,!1);if(T(c.state,2)&&Yx(a.o)){var e=a.getCurrentTime();a.o.lengthSeconds!=e&&(a.o.lengthSeconds=e,JM(a));HM(a,!0)}0<XB(c,2)&&a.tm();a.B&&ZB(a.B,c);if(d)try{for(d=0;d<a.na.length;d++){var c=a.na[d],h=a.F,e=c;if(h.C&&!h.G&&(h.Pd(),T(e.o,16))){var e=h,k=TA(e.o,Math.max(e.B-2E3,0));null!=k&&0x7ffffffffffff>
k&&e.D.start()}a.S("statechange",c)}}finally{a.na.length=0}}},LM=function(a){T(a.C,2)||T(a.C,32)||(a.M=window.NaN)},mM=function(a,b){a.o.Ga&&a.K!=b&&(a.K=b,a.S("liveviewshift",b))},Waa=function(a,b){Zaa(a,b);
a.Y.qf?vi(y(function(){XI(this.A)},a),0):XI(a.A)},Zaa=function(a,b){a.G.A("vta");
UI(a.A,b);if(Px(a.o)&&Px(a.o)&&!a.H&&a.A){var c=a.o.H;if(c){var d=a.A.ma();a.H=new NL(d,c,a.Y.experiments,a.o.Ga);a.H.subscribe("newsession",a.yB,a);a.H.subscribe("licenseerror",a.eB,a);a.H.subscribe("qualitychange",a.fB,a);a.H.subscribe("heartbeatparams",a.FE,a);c=a.H;d=a.o.oauthToken;c.K=d;c.S("oauthtoken",d)}else eM(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.L&&pv();xi(a.U);a.o.ce||(a.U=vi(y(a.yq,a),15E3))},vM=function(a){a.H&&(a.H.dispose(),a.H=null)},GM=function(a,b){if(!a.A)return 0;
if(!a.o.Ga){var c=a.o;return c.o&&!(0,window.isNaN)(cu(c.o))?cu(c.o):c.lengthSeconds}if(b&&(a.K||Xx(a.o)))return a.getCurrentTime();if(a.D)return c=xL(a.D),Math.max(c,Sx(a.o))||0;c=a.A.o.seekable||Yy();return(1>c.length?window.NaN:c.end(c.length-1))||0},wM=function(a,b){void 0==b&&(b=a.getCurrentTime());
return b>=GM(a,!1)-1},NM=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;U(this,"cueVideoById",this.ln);U(this,"loadVideoById",this.pn);U(this,"cueVideoByUrl",this.JE);U(this,"loadVideoByUrl",this.UE);U(this,"playVideo",this.md);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Tj);U(this,"clearVideo",this.HE);U(this,"getVideoBytesLoaded",this.PE);U(this,"getVideoBytesTotal",this.QE);U(this,"getVideoLoadedFraction",this.nn);U(this,"getVideoStartBytes",this.RE);U(this,
"cuePlaylist",this.IE);U(this,"loadPlaylist",this.ts);U(this,"nextVideo",this.Qj);U(this,"previousVideo",this.Rj);U(this,"playVideoAt",this.qn);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.WE);U(this,"getPlaylist",this.Cc);U(this,"getPlaylistIndex",this.NE);U(this,"getPlaylistId",this.Ce);U(this,"loadModule",this.Pj);U(this,"unloadModule",this.ys);U(this,"setOption",this.De);U(this,"getOption",this.zb);U(this,"getOptions",this.Ch);U(this,"mute",this.mute);U(this,"unMute",this.unMute);
U(this,"isMuted",this.Dc);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Eb);U(this,"seekTo",this.Ub);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.ME);U(this,"setPlaybackRate",this.Dh);U(this,"getAvailablePlaybackRates",this.Nj);U(this,"getPlaybackQuality",this.Oj);U(this,"setPlaybackQuality",this.Sj);U(this,"getAvailableQualityLevels",this.qs);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.Bh);U(this,"addEventListener",this.addEventListener);
U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.mn);U(this,"getVideoEmbedCode",this.rs);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.os);U(this,"removeCueRange",this.us);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.KE);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.xs);U(this,"hideVideoInfo",this.SE);MM(this,"getInternalApiInterface",this.LE);MM(this,"getAdState",this.getAdState);
MM(this,"isNotServable",this.TE);MM(this,"getUpdatedConfigurationData",this.OE);MM(this,"updateRemoteReceivers",this.YE);MM(this,"sendAbandonmentPing",this.VE);MM(this,"setAutonav",this.vs);MM(this,"setAutonavState",this.ws);MM(this,"setMinimized",this.XE);MM(this,"channelSubscribed",v);MM(this,"channelUnsubscribed",v)},U=function(a,b,c){a.B[b]=y(c,a)},MM=function(a,b,c){a.C[b]=y(c,a)},OM=function(a,b){NM.call(this,a,b);
U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.ZE);U(this,"cueVideoByPlayerVars",this.$E);U(this,"loadVideoByPlayerVars",this.Uj);U(this,"preloadVideoByPlayerVars",this.iF);U(this,"seekBy",this.Sc);U(this,"updatePlaylist",this.pF);U(this,"updateLastActiveTime",this.oF);U(this,"updateVideoData",this.qF);U(this,"getStoryboardFormat",this.eF);U(this,"getProgressState",this.gf);U(this,"getHousebrandProperties",this.cF);U(this,"setPlaybackQualityRange",this.jF);
U(this,"getCurrentPlaylistSequence",this.bF);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.vg);U(this,"setCardsVisible",this.Fh);U(this,"handleGlobalKeyDown",this.gF);U(this,"getAudioTrack",this.Eh);U(this,"setAudioTrack",this.sn);U(this,"getAvailableAudioTracks",this.zs);U(this,"getMaxPlaybackQuality",this.dF);U(this,"setSizeStyle",this.lF);U(this,"forceFrescaUpdate",this.aF);U(this,"setAutonav",this.vs);U(this,"setAutonavState",this.ws);U(this,"showControls",this.nF);
U(this,"hideControls",this.hF);U(this,"getVisibilityState",this.fF);U(this,"shouldSendVisibilityState",this.mF);U(this,"getVideoContentRect",this.As);U(this,"setSafetyMode",this.kF);U(this,"setFauxFullscreen",this.AD);U(this,"cancelPlayback",this.oo)},PM=function(a,b){OM.call(this,a,b)},$aa=function(a){(a=wq(a.app))&&zM(a)},RM=function(a){return(a=QM(a.app.D,"endscreen"))?My(a):!1},SM=function(a){var b=QM(a.app.D,"endscreen");
return b&&Ty(b)?!0:(a=QM(a.app.D,"ypc"))&&a.Xa()?!0:!1},TM=function(a,b){a.S("autonavcancel",b)},fA=function(a){var b=a.app;
a=a.playerType;return 3==b.getPresentingPlayerType()?b.H.P:wq(b,a).getPlayerState()},DF=function(a){return a.app.G},UM=function(a){return a.app.O&&!a.Oa()||!!a.Cc()},VM=function(a){if(a=QM(a.app.D,"captions"))a.K=!0,a.loaded?a.A&&a.A!=a.B.fe()?wH(a):a.Xq():a.load()},WM=function(a,b){var c=QM(a.app.D,"captions"),d=c.nd("displaySettings",b);
uH(c);return d},Dy=function(a){if(Ch())if(a.Oa())(a=Ah(["exitFullscreen",
"cancelFullscreen","cancelFullScreen"],window.document))&&a.call(window.document);else{a=DF(a).element;var b=Ah(["requestFullscreen","requestFullScreen"],a);b&&b.apply(a)}else a.Da("onFullscreenToggled")},XM=function(a){return(a=wq(a.app))?Ou(SL(a.xa,a.o)):"unknown"},YM=function(a){(a=QM(a.app.D,"webgl"))?a.B?(a=a.A,a=a.o?a.o.kf():{}):a={}:a={};
return a},ZM=function(a,b){var c=QM(a.app.D,"webgl");
c&&c.B&&(c=c.A,c.o&&c.o.Jh(b))},aN=function(a,b){a.W().experiments.ga("ui_logging")&&$M(a,"controlclicked",{controlClicked:b})},$M=function(a,b,c,d){var e=wq(a.app);
c.event=b;a.Oa()&&(c.fs=1);c.ux=1;e.logEvent(c,d)},bD=function(a){a.S("cardstatechange",Cz(a)&&bN(a)?1:0)},Cz=function(a){return(a=QM(a.app.D,"iv-module"))?cG(a):!1},bN=function(a){return(a=QM(a.app.D,"iv-module"))?dG(a):!1},cN=function(a,b,c){(a=QM(a.app.D,"iv-module"))&&fG(a,b,c)},vH=function(a){(a=wq(a.app))&&a.B&&wB(a.B.B)},hA=function(a,b){a.Da("onFrescaStateChange",b);
var c=wq(a.app);if(c&&b&&c.B){var c=c.B.A,d=b.hasActiveStream;DB(c,OB(c.o),"stream",[d?"A":"I"])}},dN=function(a){return(a=QM(a.app.D,"fresca"))?!!a.D&&a.D.D.C:!1},eN=function(a){var b=wq(a.app,1);
if(!b)return!1;var c=b.getVideoData();return Tx(c)&&!Xx(c)&&2!=a.getPresentingPlayerType()&&(!kM(b)||3==a.getPresentingPlayerType())},fN=function(a){return a.app.ea.play_pause||2==a.getPresentingPlayerType()?!0:!kM(wq(a.app,1))},gN=function(a,b,c){var d=a.app;
a=c||a.playerType;if(c=wq(d,a))c.F.zh.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||xq(d,"cuerangesremoved",b)},Br=function(a,b,c){a=DF(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));ch(a,b,d);b.setAttribute("data-layer",c)},Jy=function(a){if(!a.W().bb)return!1;
var b=a.getVideoData();return!!b&&!b.ypcPreview&&!b.Ga&&!jb(b.J,"ypc")&&!a.Cc()},hN=function(a){a=a.fmt_list;
if(!a)return{};var b=[];F(a,function(a){a.itag&&(b[a.itag.toString()]=!0)});
return b},iN=function(a,b,c){if(!a)return null;
var d=b.docid;b=hN(b);return d&&b?aba(a,d,b,c):null},aba=function(a,b,c,d){d=ji(d.split(","),hj);
var e=ae(d,function(a){return!!c[a.itag]});
if(!e.length)return null;var h=Ze(a)||"",k=$e(a),m={};F(e,function(a){if(a){var b=jN(a);b&&(m[b]=a)}});
var l=[];F(d,function(a){if(c[a.itag]){var d=rf(qf(Df(a.url),h),k),e=Xe(a.url),d=zf(zf(d,"orig_host",Ve(e[1],e[2],e[3],e[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}else if((d=jN(a))&&m[d])return;l.push(ff(a))});
return l.join(",")},jN=function(a){return a.quality?a.quality:a.quality_label||""},bba=function(a,b,c){var d=kN(b);
d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),tj(a,{format:"JSON",method:"GET",timeout:2E3,sb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Md:function(){var a=kN(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})},kN=function(a){var b=window.acceleratorMeta;
return(b?b.docid:null)===a?b:null},lN=function(a){vq.call(this,a);
this.logEvent=this.ua="spacecast";this.A=null},cba=function(a){return a.getVideoData().spacecastModule?new lN(a):null},mN=function(a){vq.call(this,a);
this.ua="ypc_license_checker";this.logEvent="ypc_license";this.H=!1;this.C=0;this.D=!1;this.A=window.NaN;this.B=null},nN=function(a){return Wx(a.getVideoData(),"ypc_license_checker_module")},dba=function(a){return nN(a)?new mN(a):null},oN=function(a){var b=a.o.getVideoData();
return Px(b)?!!a.B:!!b.heartbeatToken},pN=function(a,b){if(!a.A&&a.H&&oN(a)){var c=a.o.getVideoData(),d=a.o.W();
if(Px(c)||!CH(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=vi(y(a.vD,a),c)}},qN=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=Q("YTP_ERROR_LICENSE"),eM(a.o.app.A,"heartbeat",c,void 0)):pN(a)}},rN=function(a){try{return de(a)}catch(b){return null}},sN=function(a){a.C=0;
a.A&&(xi(a.A),a.A=window.NaN);a.D=!1},eba=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},tN=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 eba(a[b]))},uN=function(a){vq.call(this,a);
this.ua="creatorendscreen";this.B=this.D=null;this.A={};this.H={};this.C=null;this.J=!1},fba=function(a){return vN(a)?new uN(a):null},vN=function(a){return wN(a.W().o)?!0:Wx(a.getVideoData(),"iv_endscreen_url")},wN=function(a){return"creator-endscreen-editor"===a},xN=function(a,b){yq(a);
a.C&&(Jq(a.C),a.C.dispose(),a.C=null);for(var c in a.A){var d=a.A[c];Jq(d);d.dispose()}a.A={};a.H={};if((a.D=b)&&b.elements){c=[];d=new qq(b.startMs,b.startMs+b.durationMs,{id:"ytp-ce-in-endscreen"});c.push(d);a.C=new R(["div","ytp-ce-shadow"]);Br(a.o,a.C.element,4);for(var e=0;e<b.elements.length;++e){var h=b.elements[e],d={VIDEO:gba,PLAYLIST:hba,CHANNEL:iba,WEBSITE:jba},d=d[h.type]?d[h.type](h):null;a.A[h.id]=d;a.H[h.id]=h;Br(a.o,d.element,4);var k=new qq(h.startMs,h.endMs,{id:"ytp-ce-element-"+
h.id});c.push(k);kba(a,d,h)}a.gb(c);a.un()}},gba=function(a){a=["div",
["ytp-ce-element","ytp-ce-video"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",yN(zN(a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.o,tabindex:"-1"},["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)},hba=function(a){a=["div",
["ytp-ce-element","ytp-ce-playlist"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",yN(zN(a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.o,tabindex:"-1"},["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)},iba=function(a){var b=["div",
["ytp-ce-element","ytp-ce-channel",a.G?"ytp-ce-channel-this":"ytp-ce-channel-that"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["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",tabindex:"-1"}],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",yN(zN(a))]],b=new R(b),c=Mg("div","ytp-ce-channel-subscribe",b.element)[0];a.A&&Mf(c,a.A);return b},jba=function(a){a=["div",
["ytp-ce-element","ytp-ce-website"],{tabindex:0,"aria-label":a.title,"aria-hidden":!0},["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",tabindex:"-1"}]]]]],
["div","ytp-ce-expanding-image",yN(zN(a))],["div","ytp-ce-expanding-icon",yN(a.F)]];return new R(a)},zN=function(a){a=a.C.thumbnails;
return a[a.length-1].url},yN=function(a){return a?{style:"background-image: url("+a+")"}:{}},kba=function(a,b,c){b.R("mouseenter",y(a.Hs,a,c));
b.R("mouseleave",y(a.Is,a,c));b.R("click",y(a.Gs,a,c));b.R("keypress",y(a.Gs,a,c));b.R("focus",y(function(a,b){L(a.element,"ytp-ce-force-expand");this.Hs(b)},a,b,c));
b.R("blur",y(function(a,b){be(a.element,"ytp-ce-force-expand");this.Is(b)},a,b,c));
var d=y(function(a,b,c){c=gh(c);F(c,function(c){d(c);sh(c)&&(a.T(c,"focus",y(function(a,b){L(a.element,"ytp-ce-force-expand");AN(this,b.id,!0)},this,a,b)),a.T(c,"click",y(function(a,b){L(a.element,"ytp-ce-force-expand");
AN(this,b.id,!0);this.J=!0},this,a,b)),a.T(c,"blur",y(function(a,b){this.J?(this.J=!1,a.element.focus()):(be(a.element,"ytp-ce-force-expand"),AN(this,b.id,!1))},this,a,b)))},this)},a,b,c);
d(b.element)},AN=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)},BN=function(a,b,c){function d(){k||(h++,h==e.length&&(m.stop(),c&&c()))}
if(!b||wN(a.o.W().o))c&&c();else{var e=lba(a,b),h=0,k=!1,m=new Wd(function(){k=!0},1E3,a);
m.start();for(a=0;a<e.length;a++)hq(e[a],d)}},lba=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(mba(b[e],c));return d},mba=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})},CN=function(a){vq.call(this,a);
this.ua="ypc_clickwrap";this.logEvent="ypc-clickwrap";Bi({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},nba=function(a){return Wx(a.getVideoData(),"ypc_clickwrap_module")?new CN(a):null},DN=function(a){this.D=Math.exp(Math.log(.5)/a);
this.A=this.C=0},EN=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=[]},GN=function(a,b){FN(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},FN=function(a,b){a.H!=b&&(a.H=b,Eb(a.C,b))},HN=function(a){this.C=a;
this.A=[]},oba=function(a){this.o=a;
this.F=this.G=0;this.A=-1;this.K=new NJ(100);this.J=0;this.L=Qt();this.C=new EN(4,.6);this.D=new DN(4);this.H=new HN(this.o.A);this.o.D?this.B=new DN(this.o.A):this.B=new EN(this.o.A,.5,.1);a=cj("yt-player-bandwidth")||{};this.B.o(this.o.C,0<a.byterate?a.byterate:this.o.B);0<a.delay&&this.C.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.D.o(1,+a.tailDelay);this.A=Qt()},$K=function(a,b,c){b=Math.max(b,.05);
a.B.o(b,c/b);IN(a)},aL=function(a,b){a.C.o(1,b);
-1<a.A&&3E4<Qt()-a.A&&JN(a)},KN=function(a,b,c){(0,window.isNaN)(c)||(a.F+=c);
(0,window.isNaN)(b)||(a.G+=b);a.H.o(b,c/b);IN(a)},LN=function(a,b,c){b=Math.max(b,a.o.o);
a.D.o(1,c/b);-1<a.A&&3E4<Qt()-a.A&&JN(a)},QJ=function(a){a=a.C.B();
a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)},PJ=function(a){return a.D.B()||0},Gy=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},MN=function(a){var b={};
b.delay=QJ(a);b.tailDelay=PJ(a);b.byterate=Gy(a);return b},JN=function(a){bj("yt-player-bandwidth",MN(a),2592E3);
a.A=Qt()},IN=function(a){var b=Qt();
a.L=b;500<b-a.J&&(OJ(a.K,1/(1/Gy(a)+PJ(a))),a.J=b)},NN=function(a){return 4E3<=Qt()-a.L},pba=function(){this.o=8192;
this.A=17;this.B=13E4;this.C=.5;this.D=!1},ON=function(){G.call(this);
this.o=[];this.F={};this.B={};this.C={};this.A=this.G=null;this.D=[];this.H=null},PN=function(a){a.o=ae(a.o,function(a){try{a.destroy()}catch(c){zi(c)}return!1},a)},qba=function(a,b,c){QN(a);
a.H=b;a.D=tb(c);F(a.o,function(a){0<=ib(c,a.ua)&&(a.G=b,a.cj(!!a.G))})},QN=function(a){F(a.D,function(a){if(a=QM(this,a))a.G=null,a.cj(!1)},a);
a.H=null;a.D=[]},RN=function(a){a=QM(a,"iv-module");
return!(!a||!a.loaded)},SN=function(a,b){if(!b)return ji(a.o,function(a){return a.ua});
var c=QM(a,b);return c?c.jf():[]},QM=function(a,b){return eb(a.o,function(a){return a.ua==b})},rba=function(a){var b={};
F(a.o,function(a){qa(b,a.Ih())});
return b},TN=function(a,b,c){this.C=b;
this.o=c;this.D=a;this.A=!0},UN=function(a,b){jc.call(this,"adError");
this.B=a;this.o=b?b:null},VN=function(a,b,c){jc.call(this,a);
this.B=b;this.o=null!=c?c:null},WN=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(!D(E(h)))return(0,window.encodeURIComponent)(h).replace(/%2C/g,",")}catch(k){}return a})},sba=function(a){this.o=a},tba=function(){var a=XN();
return YN(a,"disableExperiments")},YN=function(a,b){if(Yb(a.o,b)){var c=a.o[b];
if(fa(c))return c}return!1},uba=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},ZN=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""},V=function(){return $N.H},XN=function(){var a=$N;
if(null==a.G){var b={},c=(new O(Vg().location.href)).o;if(Jf(c,"tcnfp"))try{b=de(c.get("tcnfp"))}catch(d){}a.G=new sba(b)}return a.G},aO=function(a,b,c,d){this.A=a;
this.o=le(c||0,0,1);this.B=null!=d?d:!0},bO=function(a){this.B=a;
this.A=new Je;this.o=null},vba=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}},xba=function(){this.A=null!=aa.G_testRunner;
this.o=new Je;cO(this,31061770,.05);cO(this,31061771,.05);cO(this,31061772,.05);cO(this,31061773,.05);cO(this,31061774,.01);cO(this,31061775,.01);cO(this,41351082,.01);cO(this,41351083,.01);cO(this,41351016,.05);cO(this,41351017,.05);cO(this,41351020,0);cO(this,41351021,0);cO(this,41351088,.01);cO(this,41351089,.01);cO(this,136961001,.01);cO(this,136961002,.01);cO(this,41351032,.05);cO(this,41351033,.05);cO(this,265944520,.05);cO(this,265944521,.05);cO(this,265944522,.05);cO(this,265944523,.05);wba(this);
var a;a=XN();a=uba(a);null!=a&&(this.A=!1,dO(this,a.map(String)))},fO=function(){eO||(eO=new xba);
return eO},yba=function(){var a=fO();
F(a.o.Qa(),function(a){ua(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)},cO=function(a,b,c){D(E("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new aO(b,0,c),gO(a,"GvnExternalLayer").A.set(b.getId(),b))},wba=function(a){tba()||F(a.o.Na(),function(a){vba(a)},a)},dO=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||D(E(a)))){var h=null!=c?c:!0;gO(this,a).o=new aO(b,0,0,h)}},a)},hO=function(a,b){return a.A?!1:zh(a.o.Na(),function(a){return!!a.o&&a.o.getId()==b})},iO=function(){var a=[9418778,
9417893,9417894,9417895,9419817];return fO().A?!1:zh(a,function(a){return hO(fO(),a)})},jO=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(",")},gO=function(a,b){var c=a.o.get(b);
null==c&&(c=new bO(b),a.o.set(b,c));return c},kO=function(){fO();
return iO()},mO=function(a){return null!=a?lO(zba,a):!1},lO=function(a,b){try{var c=(new O(b)).A,c=c.replace(/^www./i,"");
return zh(a,function(a){return Aba(a,c)})}catch(d){return!1}},Aba=function(a,b){if(D(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},oO=function(a){var b=!1;
nO(a,Bba)?b=!1:hO(fO(),265944523)&&mO(a)?b=!0:"https:"==window.location.protocol&&(nO(a,Cba)||V())&&(b=!0);if(b){b=new O(a);if("https"==b.C)return a;pf(b,"https");return b.toString()}return a},nO=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)},pO=function(a){window.open(oO(a),"_blank")},rO=function(a,b,c){null!=a?(zf(a,"label",b),null!=c&&zf(a,"value",c.join(";")),a=a.toString()):a="";
qO(a)},qO=function(a,b,c,d,e){null!=a&&null!=b&&(a=WN(a,b));
try{if(null!=c){b=a;var h=(c||{}).viewability||"na";if(D(E(h)))a=b;else{var k=new O(b);Jf(k.o,"label")?(zf(k,"acvw",h),a=k.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!e&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(e=e||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},h=0;h<e.length;++h){m.URL_SIGNALS=e[h];var l=WN(c,m);if(2048>l.length){a=l;break a}}a=c}}catch(t){}try{a=oO(a);var p=!V()||hO(fO(),41351089);null!=d&&d?sO.Gr(a,
p):$N.F?sO.Er(a,p):sO.Br(a,p)}catch(t){}},tO=function(a,b){null!=a&&F(a,function(a){qO(a,b)})},Dba=function(a,b){if(D(E(b)))return a;
var c=new O(a),d=c.A;return null!=d&&va(d,".g.doubleclick.net")?(zf(c,"ged",b),c.toString()):a},uO=function(a,b){this.message=a;
this.errorCode=b},wO=function(a,b,c){return vO("adLoadError",a,b||null,vb(arguments,2))},xO=function(a,b,c){return vO("adPlayError",a,b||null,vb(arguments,2))},yO=function(a,b,c,d,e){var h=a.apply(null,sb([c,
d],vb(arguments,3)));b.aa(new VN("log",null,h))},vO=function(a,b,c,d){if(c instanceof TN)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 TN(a,b,e);a.B=c;return a},zO=function(a,b,c,d){var e=xO.apply(null,sb([b,
c],vb(arguments,3)));a.aa(new UN(e))},BO=function(){return!AO()&&(pc("iPod")||pc("iPhone")||pc("Android")||pc("IEMobile"))},AO=function(){return pc("iPad")||pc("Android")&&!pc("Mobile")||pc("Silk")},CO=function(){return BO()||AO()},EO=function(){return Eba&&!DO||Oa(oc,"iPod")},FO=function(){return EO()||DO},IO=function(a,b){if(null==GO[b]){var c;
D(HO)&&(c=a.exec(oc))&&(HO=c[1]);(c=HO)?(c=c.replace(/_/g,"."),GO[b]=0<=Ua(c,b)):GO[b]=!1}return GO[b]},JO=function(){var a=oc;
return a?Oa(a,"Nintendo WiiU"):!1},KO=function(){var a;
(a=Oa(oc,"CrKey")||Oa(oc,"PlayStation")||Oa(oc,"Roku"))||(a=(a=oc)?Oa(a,"AppleTV")||Oa(a,"GoogleTV")||Oa(a,"HbbTV")||Oa(a,"NetCast.TV")||Oa(a,"Opera TV")||Oa(a,"POV_TV")||Oa(a,"SMART-TV")||Oa(a,"SmartTV"):!1);return a||Oa(oc,"Xbox")},MO=function(){return EO()||LH&&(!LH||!IO(LO,4))||!V()&&KO()?!1:!0},NO=function(){this.A=.01>Math.random();
this.B=Math.floor(4503599627370496*Math.random())},Fba=function(a,b){b.id="";
var c=OO();b.c=a.B;b.domain=c.A;return b},OO=function(){var a=Vg(),b=window.document;
return new O(a.parent==a?a.location.href:b.referrer)},PO=function(){},QO=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},RO=function(){this.domLoading=QO("domLoading");
this.domComplete=QO("domComplete");this.unloadEventStart=QO("unloadEventStart")},Gba=function(a){var b={},c=new RO,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},SO=function(a){for(var b=[],c=a=Vg(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);
else break;return b},TO=function(){this.o={};
this.A=0},UO=function(a,b){this.D=a;
this.B=!0;this.o=b},VO=function(a,b){UO.call(this,String(a),b);
this.C=a;this.o=!!b},WO=function(a,b){UO.call(this,a,b)},XO=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 WO("",new we(c,b,Number(a[3])-c,Number(a[2])-b))}return new WO("",new we(0,0,0,0))},ZO=function(){YO||(YO=new TO);
return YO},$O=function(a){var b=new we(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new we(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),m=Math.min(e.left+e.width,h.left+h.width);if(k<=m){var l=Math.max(e.top,h.top),h=Math.min(e.top+e.height,h.top+h.height);if(l<=h){e.left=k;e.top=l;e.width=m-k;e.height=h-l;e=!0;break a}}e=!1}if(!e)return c}return b},aP=function(a,b){var c=a.getBoundingClientRect(),d=gr(a,b);
return new we(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))},bP=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 we(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 UO("vp",d));d&&0<d?(e=xe(b),h=xe(c),e=e.top>=h.top&&e.top<h.bottom):e=!1;a.setItem(new VO(512,e));d&&0<d?(e=xe(b),h=xe(c),e=e.bottom<=h.bottom&&e.bottom>h.top):e=!1;a.setItem(new VO(1024,e));d&&0<d?(e=xe(b),h=xe(c),
e=e.left>=h.left&&e.left<h.right):e=!1;a.setItem(new VO(2048,e));d&&0<d?(b=xe(b),c=xe(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new VO(4096,c))}},cP=function(a){this.o=ic.apply(null,arguments);
return this},dP=function(a,b){a.o.eb=dc(a.o,"eb",0)|b},eP=function(a,b){var c=0;
Xb(Vg(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=ZO();d.o={};var h=new VO(32,!0);h.B=!1;d.setItem(h);h=Vg().document;h=h.webkitVisibilityState||h.mozVisibilityState||h.visibilityState||h.msVisibilityState||"";d.setItem(new VO(64,"hidden"!=h.toLowerCase().substring(h.length-6)?!0:!1));var k;try{var m;var l=Vg().top;try{m=!!l.location.href||""===l.location.href}catch(u){m=!1}if(m){var p=SO(e);k=p&&0!=p.length?"1":"0"}else k="2"}catch(u){k="2"}d.setItem(new VO(256,
"2"==k));d.setItem(new VO(128,"1"==k));p=m=Vg().top;"2"==k&&(p=Vg());l=aP(e,p);d.setItem(new WO("er",l));var t;try{t=p.document&&!p.document.body?null:Rg(p||window)}catch(u){t=null}t?(p=Ug(Lg(p.document).o),d.setItem(new VO(16384,!!p)),t=p?new we(p.x,p.y,t.width,t.height):null):t=null;d.setItem(new WO("vi",t));if(t&&"1"==k){k=SO(e);e=[];for(p=0;p<k.length;p++)(h=aP(k[p],m))&&e.push(h);e.push(t);t=$O(e)}bP(d,l,t);d.A&&(k=Math.round(K()/1E3)-d.A,d.setItem(new UO("ts",k)));d.A=Math.round(K()/1E3)}else d=
ZO(),d.o={},d.A=Math.round(K()/1E3),d.setItem(new VO(32,!1));this.B=d;this.o=new cP("ve",4);c&&dP(this.o,1);Xb(Vg(),"ima","video","client","crossdomainTag")&&dP(this.o,4);Xb(Vg(),"ima","video","client","sdkTag")&&dP(this.o,8);Xb(Vg(),"ima","video","client","jsTag")&&dP(this.o,2);b&&dc(b,"fullscreen",!1)&&dP(this.o,16);this.A=d=null;if(c&&(c=Xb(Vg(),"ima","video","client"),c.getEData)){this.A=c.getEData();if(c=Xb(Vg(),"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=XO(d).getValue(),k=XO(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new WO("er",e))),c.getItem("vi")&&(t=c.getItem("vi").getValue(),t.top+=d.top,t.left+=d.left,m=[],m.push(t),m.push(d),m.push(k),d=$O(m),bP(c,e,d),c.setItem(new WO("vi",k))));d=this.A.getTimeSinceTagLoadSeconds()}this.o.extend(Gba(d))},Hba=function(a,b){try{return(new eP(a,b)).Ac()}catch(c){return"tle;"+Na(c.name,12)+";"+Na(c.message,
40)}},fP=function(a){return function(b){return!n(b[a])&&n(0)?0:b[a]}},hP=function(a,b){return function(c){c=c[a];
if(da(c))return gP(c,b)}},gP=function(a,b){return ae(a,function(a,d){return jb(b,d)})},iP=function(a){try{return!!a&&null!=a.location.href&&nc(a,"foo")}catch(b){return!1}},Iba=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},Jba=function(){var a=jP;
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""},kP=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},lP=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},mP=function(a,b){var c=[];
Iba(a,function(a,e){var h=null;if(ia(a)&&2>b)h=mP(a,b+1);else if(0===a||a)h=String(a);h&&c.push(e+"="+(0,window.encodeURIComponent)(h))});
return c.join("&")},nP=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);lP(d,"load",e);lP(d,"error",e)};
kP(d,"load",e);kP(d,"error",e)}d.src=b;a.google_image_requests.push(d)},oP=function(a,b,c){this.D=a;
this.C=b;this.A=c;this.B=this.o},pP=function(a,b,c){this.message=a;
this.fileName=b||"";this.lineNumber=c||-1},rP=function(a,b,c,d,e){var h;
try{h=c()}catch(l){var k=a.A;try{var m=qP(l),k=(e||a.B).call(a,b,m,void 0,d)}catch(p){a.o("pAR",p)}if(!k)throw l;}finally{}return h},tP=function(a,b,c,d){var e=sP;
return function(){for(var h=[],k=0;k<arguments.length;++k)h[k]=arguments[k];return rP(e,a,function(){return b.apply(c,h)},d)}},qP=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 pP(b,a.fileName,a.lineNumber)},uP=function(a,b,c,d){return tP(a,b,c,d)},vP=function(a,b){return tP(a,b,void 0,void 0)},Kba=function(){for(var a=W,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,iP(a)&&(b=a);
return b},wP=function(a){return{visible:1,
hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0},yP=function(){var a;
xP.mozVisibilityState?a="mozvisibilitychange":xP.webkitVisibilityState?a="webkitvisibilitychange":xP.visibilityState&&(a="visibilitychange");return a},zP=function(a){a=a.match(/[\d]+/g);
if(!a)return"";a.length=3;return a.join(".")},AP=function(a,b,c,d){c=tP(d||"osd_or_lidar::"+b,c,void 0,void 0);
kP(a,b,c,void 0);return c},Lba=function(a,b){this.o=a;
this.A=b},Mba=function(a){this.url=a;
this.Np=!1;this.depth=ga(void 0)?void 0:null},CP=function(a){a=a?a:BP();
for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Np){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new Lba(c,d)},BP=function(){var a=aa,b=[],c=null,d=null;
do{var e=a;iP(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new Mba(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.Np=!0);return b},DP=function(a,b){var c=a||W;
c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new ue(-1,-1):b?(new ue(c.innerWidth,c.innerHeight)).round():Rg(c||window).round()}catch(d){return new ue(-12245933,-12245933)}},Nba=function(){var a=EP.getInstance().F,b=0<=FP?GP()-FP:-1,c=HP?GP()-IP:-1,d=0<=JP?GP()-JP:-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},GP=function(){return(new Date).getTime()-Oba},Pba=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("&")},KP=function(){var a=P("div");
a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a},LP=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Wq(a,"display"))return!0;
b=a;a=a.parentElement}if(b&&(a=Jg(b))){var c,d;try{if(c=Vg(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return LP(d)}return!1},OP=function(a){MP.e=-1;
MP.i=6;MP.n=7;MP.t=8;if(!NP){var b=[];F(Wb(MP),function(a){b[MP[a]+1]=a});
var c=b.join("");NP=(c=a&&a[c])&&y(c,a)}return NP},QP=function(){return VL&&qu&&ru("6.0.1")&&0<=Ua(PP,"10.1")?!0:!1},RP=function(a,b){this.C=null;
this.G=a;this.J=b||1;this.o="u"},SP=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 re(e,h),new re(c-e,h),new re(e,d-h),new re(c-e,d-h)]):[new re(e,0),new re(0,h),new re(e,d-1),new re(c-1,h)];case 3:return[new re(c-1,0),new re(e,h),new re(0,d-1)];default:return[new re(e,h)]}},TP=function(a,b){var c;
try{c=b||a.C.getBoundingClientRect()}catch(e){c=new te(0,0,0,0)}var d=SP(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d},UP=function(a,b,c,d){RP.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},Qba=function(a,b,c){this.snapshot=a;
this.A=b;this.o=c},Rba=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ua(PP,"11")&&c)||Tg&&9>vc||0<a.A.length)return!1;
try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,h=Jg(b),k=[];if(e){var m=KP(),d=SP(a,d);F(d,function(a,b){var d=new VP("e",h,c,String(b));this.A.push(d);k.push(y(d.Hp,d,m,a))},a);
ch(b,m,0)}else d=TP(a,d),F(d,function(a,d){var e=new VP("e",h,c,String(d));this.A.push(e);k.push(y(e.Gp,e,b,a))},a);
var l=!0;F(k,function(a){l=l&&a()});
l?(a.o="l",a.C=b,a.H=!e):(F(a.A,function(a){a.remove()}),a.A=[]);
return l},Sba=function(a){if(a.C&&a.H){var b=TP(a);
F(b,function(a,b){this.A[b]&&this.A[b].setPosition(a)},a)}},WP=function(a){F(a.A,function(a){a.remove()});
a.A=[];a.o="d"},Xba=function(a){var b=K(),c=a.F?b-a.F:0,d=-1,e=ji(a.A,function(a){return XP(a,b)});
4==a.A.length?d=a.G?Tba(e):Uba(e):3==a.A.length?d=Vba(e):1==a.A.length&&(d=[-1,0,1,2,3,5][XP(a.A[0],b)+1]);a.D=d==a.B?a.D+c:0;c=new Qba(d,a.B,c);a.B=d;a.F=b;Wba(a,d);Sba(a);return c},ZP=function(a){var b=Jb(Sb(YP));
F(a,function(a){0<=a&&++b[a]});
return b},Uba=function(a){a=ZP(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},Vba=function(a){var b=ZP(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},Tba=function(a){a=ZP(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},Wba=function(a,b){if(0==b&&$P(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"}},$P=function(a){return"n"==a.o?!0:"l"==a.o&&a.D>=a.L},VP=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(Yba));this.G=Jb(Sb(YP));"e"==this.B&&(aQ[this.F]=y(this.Wx,this));Tg?(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="'+bQ(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=Zba(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a},Zba=function(a,b){function c(a,c,d){var e=b.createElement("param");
e.name=c;e.value=d;a.appendChild(e)}
var d=bQ(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},bQ=function(a,b){var c=gf("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.F);
"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=gf(c,"delay","1"));return c},XP=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=cQ(a);$ba(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||ga(c.xj))e=d=2}else null===c.xj||c.Hm>=d?(d=10<=e?4:0,e=0):e>c.xj?(c=(e-c.xj)/(d-c.Hm)*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},cQ=function(a){var b=null;
try{b=a.module.fc()}catch(c){}return b},$ba=function(a,b,c){var d=c-1E3,e=a.o.length;
F(a.o,function(a,b){a.Hm<=d&&(e=Math.min(e,b+1))});
var h=a.o.length-e;0<h&&a.o.splice(e,h);a.o.unshift({xj:b,Hm:c})},dQ=function(){this.F=!0;
this.o=new VP("s",xP);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},eQ=function(a,b){b!==a.A&&(a.A=b,a.P(b),a.U++)},fQ=function(a){var b=cQ(a.o);
null===a.O&&null!==b&&null!==a.H&&(a.O=K()-a.H);return b},gQ=function(a){var b=a.K.getBoundingClientRect(),c;
c=null!=a.M?a.M.clone():new re(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},hQ=function(a){a.D&&(a.L=gQ(a));
a.o.setPosition(a.L);a.G=W.setTimeout(vP("osd_or_lidar::sfm_tpto",y(a.X,a)),125)},aca=function(a){if(a.F){var b=y(function(){1===wP(xP)?(this.B=null,hQ(this)):(W.clearTimeout(this.G),eQ(this,0))},a),c=yP();
if(c){var d=AP(xP,c,b,"osd_or_lidar::sfm_pv");a.J=function(){lP(xP,c,d);this.J=null}}a.F=!1;
a.A=null;b()}},iQ=function(a){a.F||(W.clearTimeout(a.G),null===a.J||a.J(),a.F=!0)},jQ=function(a,b){RP.call(this,a,b);
this.B=[];this.F=this.H=null;this.D=!0},bca=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?SP(a,c):TP(a,c);for(var d=0;d<c.length;++d){var e=c[d],h=new dQ,k;k=h;var m=b,l=y(a.K,a),p=e;if(null===k.H){var t="DIV"==m.tagName||"INS"==m.tagName;k.D=!t;k.K=m;e=gQ(k);if(null!=p){e=p;p=new re(0,0);if(k.D){var u=k.K.getBoundingClientRect();p.x+=u.left;p.y+=u.top}k.M=new re(e.x-p.x,e.y-p.y)}k.P=l;l=!1;t?(l=KP(),k.C=l,ch(m,l,0),l=k.o.Hp(l,e)):l=k.o.Gp(m,e);l?(k.H=K(),k.L=e,k=!0):(k.o.remove(),k.C&&dh(k.C),k=!1)}else k=!1;
if(!k)return kQ(a),a.o="c",!1;a.B.push(h)}a.F=K();a.o="l";return!0},eca=function(a){var b=Jb(Sb(cca));
F(a.B,function(a){null!=a.A&&0<=a.A&&++b[a.A]});
switch(a.J){case 4:return dca(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}},dca=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},lQ=function(a){a.D&&null!==a.F&&"d"!=a.o&&(F(a.B,function(a){aca(a)}),a.o="r",a.D=!1)},mQ=function(a){a.D||(F(a.B,function(a){iQ(a)}),a.D=!0)},kQ=function(a){mQ(a);
F(a.B,function(a){iQ(a);a.o&&(a.o.remove(),a.o=null);a.C&&(dh(a.C),a.C=null)});
a.B=[];a.o="d"},EP=function(){this.D=!1;
this.F=void 0;this.A=!iP(W.top);var a=BP();this.G=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Ze(a[a.length-1].url)||"":"";this.B=this.C=this.o=null;this.H=0},pQ=function(a,b,c,d){this.o=nQ.clone();
this.C=this.area=0;this.wd=-1;this.ud=-2;this.aE=(new Date).getTime();this.Ko=this.yi=-1;this.Td=[0,0,0,0,0];this.cb=[0,0,0,0,0];this.X=[0,0,0,0,0];this.pf=[0,0,0,0,0];this.H=c;this.ha=this.ca=-1;this.Yd=this.Zd=null;this.na=-1;this.SD=d;this.uf=v;this.Sp=function(){};
this.$=this.element=b;this.B=null;this.Z=1;this.Va=!1;this.D=null;this.Ud=this.bb=this.$D=!1;this.qd=1;this.ci=!0;b=EP.getInstance();this.LD=b.H++;oQ(this,a,b.A)},fca=function(a,b,c,d,e){if(!(0>a.H)){var h=W.innerWidth,k=W.innerHeight,m=new te(Math.round(W.mozInnerScreenY),Math.round(W.mozInnerScreenX+h),Math.round(W.mozInnerScreenY+k),Math.round(W.mozInnerScreenX));
c=new te(W.screenY+d,W.screenX+c.width,W.screenY+c.height,W.screenX);e||(d=new te(m.top-c.top,m.right-c.left,m.bottom-c.top,m.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.ze(m,c,b,e,!0,!0)}},hca=function(a,b,c){var d=OP(W&&W.document);
if(d){c||oQ(a,W,!0);if(a.Ud)var e=gca(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=Ug(window.document),e=d(e-k.x,h-k.y)?.5:0,d=!1;a.ze(a.o,e,b,c,!0,d)}},qQ=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}},gca=function(a,b){var c=Ug(window.document),d=a.qd,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,m=Math.floor(a.o.bottom-c.y)-d,c=(m-h)*(k-e);
if(h>m||e>k)return 0;var d=!!b(e,h),l=!!b(k,m);if(d&&l)return 1;var p=!!b(k,h),t=!!b(e,m);if(d)m=qQ(h,m,function(a){return!!b(e,a)}),k=qQ(e,k,function(a){return!!b(a,h)});
else if(p)m=qQ(h,m,function(a){return!!b(k,a)}),e=qQ(k,e,function(a){return!!b(a,h)});
else if(t)h=qQ(m,h,function(a){return!!b(e,a)}),k=qQ(e,k,function(a){return!!b(a,m)});
else if(l)h=qQ(m,h,function(a){return!!b(k,a)}),e=qQ(k,e,function(a){return!!b(a,m)});
else{var u=Math.floor((e+k)/2),x=Math.floor((h+m)/2);if(!b(u,x))return 0;h=qQ(x,h,function(a){return!!b(u,a)});
m=qQ(x,m,function(a){return!!b(u,a)});
e=qQ(u,e,function(a){return!!b(a,x)});
k=qQ(u,k,function(a){return!!b(a,x)})}return(m-h)*(k-e)/c},rQ=function(a,b,c){0>a.H||a.ze(a.o,a.C,b,c,!0,!0)},sQ=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},tQ=function(a,b,c){a.Z=c;
if(!a.$||QP()||QP())return a.Va=!0,!1;c=new UP(!1,void 0,void 0,a.Z);var d=Rba(c,a.$,String(a.LD));d?(a.Sp=b,a.B=c):a.Va=!0;return d},vQ=function(a,b,c){if(!a.element||!QP())return!1;
a.Z=c||1;c=new jQ(!1,a.Z);var d=bca(c,a.element,y(function(a){uQ(this,GP(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d?(a.D=c,lQ(c)):a.$D=!0;return d},uQ=function(a,b,c,d,e){0>a.H||!wQ(a)||(c?a.D&&mQ(a.D):(oQ(a,d,!0),a.D&&lQ(a.D)),d=e||0,ga(e)||-1==a.ca||(d=[1,
.75,.5,.3,.01][a.ca]||0),a.ze(a.o,d,b,c,!1,!1),!a.ne()||a.Nl()||a.D&&kQ(a.D))},wQ=function(a){return null!==a.D&&"d"!=a.D.getStatus()},oQ=function(a,b,c){b=c?b:b.top;
try{var d=nQ.clone(),e=new re(0,0);if(a.$){if(c||1!=a.SD||!LP(a.$))d=a.$.getBoundingClientRect();e=gr(a.$,b)}var h=e.x,k=e.y;a.o=new te(Math.round(k),Math.round(h+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(h))}catch(m){a.o=nQ.clone()}a.area=(a.o.bottom-a.o.top)*(a.o.right-a.o.left)},xQ=function(a,b){var c=Math.pow(10,b);
return Math.floor(a*c)/c},ica=function(a){a.B&&WP(a.B);
a.D&&kQ(a.D)},jca=function(){this.o={};
for(var a in yQ)this.o[yQ[a]]=0},zQ=function(a,b){0==a.o[b]&&(a.o[b]=1)},kca=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},AQ=function(a,b,c,d){this.Ua=0;
this.zd=[0,0,0,0,0];this.yd=[0,0,0,0,0];this.sa=[0,0,0,0,0];this.od=this.fa=0;this.K={};this.J=new jca;this.rf={};this.eg=this.F="";this.qf=!1;this.Ib=[];this.ea=void 0;this.sf=this.mr=this.nr=this.Xd=!1;this.M=void 0;this.Vd=0;this.Ea=-1;this.xd=this.la=0;this.P=-1;this.Wa=this.L=this.O=this.sd=void 0;this.Ia=this.La=0;this.jb=.1>Math.random()?1:0;this.wb=0;this.vb=-1;this.Wd=!1;this.Za=this.rd=0;this.xa=!1;this.Pa=this.Ka=this.bc=0;this.ac=!1;this.Ja=[0,0,0,0,0];this.ia=this.Sd=this.ob=this.Fa=
this.A=this.U=this.gp=0;this.va=-1;this.nf=this.vf=0;this.gq=this.tf=this.vr=this.G=!1;this.Wh=0;this.Tp=!1;this.Qb=v;pQ.call(this,a,b,c,d)},BQ=function(a){return n(a)&&0<=a&&1>=a},CQ=function(a,b){var c=b-a.H||1,d=1E4;
n(a.P)&&-1!=a.P&&(d=Math.max(d,a.P/3));return c>d?1:c},lca=function(a){var b=0;
.5<=a.C&&(b+=1);BQ(a.L)&&(b+=2);a.xa&&(b+=4);a.G&&(b+=8);-1!=a.ha&&(b+=16,1==a.ha&&(b+=32));a.Wa&&(b+=128);a.Wa&&0<a.C&&(b+=256);return b},DQ=function(a,b){var c=a.Vd;
HP||a.ea||-1==a.Ea||(c+=b-a.Ea);return c},mca=function(a){a.Ud=!0;
a.qd=2},EQ=function(a,b){ub(a.Ib,Jb(b-a.Ib.length+1));
a.Ib[b]=xQ(a.C,2)},HQ=function(a,b){var c=a.rf[b];
if(null!=c)return c;if(a.bb)return{"if":0};c=a.o.clone();c.round();var d=ji(a.Ib,function(a){return 100*a|0}),e=EP.getInstance(),h={};
h["if"]=e.A?1:void 0;h.sdk=a.M?a.M:void 0;h.t=a.aE;h.p=[c.top,c.left,c.bottom,c.right];h.tos=a.Td;h.mtos=a.cb;h.ps=void 0;h.pt=d;h.vht=DQ(a,GP());h.mut=a.xd;h.a=a.L;h.ns=a.Wh;h.ft=a.rd;h.at=a.bc;h.as=a.ac?1:0;h.atos=a.Ja;h.uac=a.gp;h.vpt=a.wb;h.is=lca(a);h.ic=kca(a.J);if("h"==a.M||"as"==a.M)h.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(h.std="csm");a.Ud&&(h.efpf=a.qd);a.B&&(h.swf=a.B.getStatus(),h.px=a.Z);a.D&&(h.sfm=a.D.getStatus(),h.px=a.Z);0<a.nf&&(h.nnut=a.nf);h.tcm=a.jb;h.nmt=
a.Sd;h.bt=a.ia;h.pst=a.va;h.mmct=a.vf;h.vpaid=a.sd;h.dur=a.P;h.vmtime=a.Ia;h.vmtos=a.zd;h.vmmtos=a.yd;nca(a,b)&&(a.ne()&&(h.dtos=a.Ua,a.Ua=0,h.vmdtos=a.fa,a.fa=0,h.dav=a.Pa,a.Pa=0,a.od++,h.dtoss=a.od),h.dat=a.Ka,a.Ka=0,h.dft=a.Za,a.Za=0);!a.ne()&&2E3<=a.fa&&(h.vmdtos=a.fa);e.B&&(h.ps=[e.B.width,e.B.height]);h.dom=e.G;a.Va&&(h.fmf="1",h.px=a.Z);a.Xd&&(h.ven="1");a.nr&&(h.veh="1");a.U&&(h.vds=a.U);a.A&&(h.vmer=a.A);a.Fa&&(h.vmmk=a.Fa);a.ob&&(h.vmiec=a.ob);FQ()?(h.c=xQ(a.C,2),h.ss=xQ(oca(a),2)):h.tth=
GP()-GQ;h.mc=xQ(a.wd,2);h.lte=xQ(a.ud,2);return h},oca=function(a){if(a.G)return 1;
var b=W.screen.width*W.screen.height;return 0>=b?-1:a.area*a.C/b},nca=function(a,b){if(jb(pca,b))return!0;
var c=a.K[b];return n(c)&&(a.K[b]=!0,!c)?!0:!1},QQ=function(){if(!IQ){IQ=!0;
var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!JQ){var b;if(a){var c=tP("osd_or_lidar::throttled_scroll_raf_callback",KQ,void 0,void 0);b=function(){a(function(){W.setTimeout(c,0)})}}else b=KQ;
LQ=new xm(tP("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=y(LQ.Kf,LQ);JQ=AP(W,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!MQ){if(a){var d=tP("osd_or_lidar::throttled_resize_raf_callback",NQ,void 0,void 0);b=function(){a(function(){W.setTimeout(d,0)})}}else b=NQ;
OQ=new xm(tP("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=y(OQ.Kf,OQ);MQ=AP(W,"resize",b,"osd_or_lidar::throttled_resize")}qca();PQ()}},NQ=function(){RQ(!1);
KQ()},KQ=function(){SQ(TQ(),!1)},tca=function(){var a,b=EP.getInstance();
UQ&&(b.o=DP(W,UQ));if(rca)return a=new VQ,a.J=!0,a;if(sca)return a=new VQ,a.D=!0,a;if(WQ){a=XQ;RQ(!1);var c=EP.getInstance(),d=c.C,b=d.height-a;0>=b&&(b=d.height,a=0);c.o=new ue(d.width,b);b=new VQ;b.G=!0;b.B=c.o;b.A=d;b.C=a;return b}if(YQ)return a=new VQ,a.F=!0,a;if(ZQ)return a=new VQ,a.H=!0,a;if($Q)return a=new VQ,a.K=!0,a;a:{var b=b.o,e=new VQ;e.B=b;e.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var h=UQ,k=W||W,k=k.top,c=b||DP(k,h),d=Ug(Lg(k.document).o);
a=-1==c.width||-12245933==c.width?new te(c.width,c.width,c.width,c.width):new te(d.y,d.x+c.width,d.y+c.height,d.x)}catch(m){a=e;break a}e.L=a;e.o=!0}a=e}return a},SQ=function(a,b){var c;
if(!aR)if(window.clearTimeout(bR),bR=null,0==a.length)b||cR();else{var d=tca();try{var e=GP();if(d.D)for(c=0;c<a.length;c++)rQ(a[c],e,b);else if(d.J)for(c=0;c<a.length;c++)rQ(a[c],e,b);else if(d.G)for(c=0;c<a.length;c++)fca(a[c],e,d.A,d.C,b);else if(d.F)for(c=0;c<a.length;c++)hca(a[c],e,b);else if(d.H)F(a,function(a){if(b){if(a.B){var c=a.B;3<=c.B&&(c.B=3);a.ca=-1}}else if(a.B&&"d"!=a.B.getStatus()){var c=Xba(a.B),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.ca=sQ(d[c.A+1]);a.ze(a.o,e,a.H+c.o,
!1,!0,!1);!a.ne()||a.Nl()||a.ci||a.B&&WP(a.B);(c=2==c.snapshot||$P(a.B))||(c=a.B,c="f"==c.o&&c.D>=c.K);c&&(a.Sp(a),a.ci=!1,a.B&&WP(a.B))}});
else if(d.K)for(c=0;c<a.length;c++)uQ(a[c],e,b,W);else if(d.o){var h=EP.getInstance();for(c=0;c<a.length;c++)a[c].update(e,d.L,b,W,h.A)}++uca}finally{b?F(a,function(a){a.C=0}):cR()}}},qca=function(){var a=PQ,b=yP();
b&&(dR=dR||AP(xP,b,a,"osd_or_lidar::visibility"))},PQ=function(){var a=FQ();
if(a){if(!HP){var b=GP();IP=b;F(eR,function(a){a.Vd=DQ(a,b)})}HP=!0;
RQ(!0)}else b=GP(),HP=!1,GQ=b,F(eR,function(a){0<=a.H&&(a.Ea=b)});
SQ(TQ(),!a)},FQ=function(){if(vca())return!0;
var a=wP(W.document);return 1==a||0==a},cR=function(){W&&(bR=W.setTimeout(vP("osd_or_lidar::psamp_to",function(){SQ(TQ(),!1)}),Nba()))},wca=function(a){return eb(eR,function(b){return b.F==a})},TQ=function(){return 0==eR.length?fR:0==fR.length?eR:sb(fR,eR)},xca=function(){var a=W.document;
return a.body&&a.body.getBoundingClientRect?!0:!1},RQ=function(a){var b=EP.getInstance();
b.o=DP(W,UQ);if(!a){b.C=W&&W.outerWidth?new ue(W.outerWidth,W.outerHeight):new ue(-12245933,-12245933);var c;a=W;a.top!=a&&(a=a.top);var d=0,e=0,h=EP.getInstance().o;try{var k=a.document,m=k.body,l=k.documentElement;if("CSS1Compat"==k.compatMode&&l.scrollHeight)d=l.scrollHeight!=h.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=h.width?l.scrollWidth:l.offsetWidth;else{var p=l.scrollHeight,t=l.scrollWidth,u=l.offsetHeight,x=l.offsetWidth;l.clientHeight!=u&&(p=m.scrollHeight,t=m.scrollWidth,u=
m.offsetHeight,x=m.offsetWidth);p>h.height?p>u?(d=p,e=t):(d=u,e=x):p<u?(d=p,e=t):(d=u,e=x)}c=new ue(e,d)}catch(A){c=new ue(-12245933,-12245933)}b.B=c}},yca=function(a,b){if(1<=Math.random())return!1;
var c=!1;F(eR,function(b){b=vQ(b,a,3);c=c||b});
($Q=c)&&F(eR,function(a){wQ(a)||b(a)});
return c},zca=function(a){var b=!1;
F(eR,function(c){c=tQ(c,a,n(1)&&1>Math.random()?3:1);b=b||c});
(ZQ=b)&&F(eR,function(b){b.B||a(b)});
return b},Aca=function(a){F(a,function(a){null==eb(eR,function(c){return c.element==a.element&&c.eg==a.eg})&&eR.push(a)})},vca=function(){return zh(eR,function(a){return a.G})},VQ=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},gR=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(gR(a[e],b,c+1));return d.join(b[c])},Cca=function(){var a=BP(),b=a.length-1,c=CP(a),a=c.o,d=c.A,c=[];
d?(a&&c.push(hR(b,[d.url,2],0,[a.url,0],a.depth)),c.push(hR(b,[d.url,2],0))):a&&a.url&&(c.push(hR(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=Bca.exec(a.url))&&d[0]||"")&&c.push(hR(b,[d,1],a.depth)));c.push(hR(b));return c},hR=function(a,b,c,d,e){a=[a];
if(n(b)&&n(c)){for(var h=0;h<c;h++)a.push("");a.push(b)}if(n(d)&&n(e)){b=e-a.length+1;for(h=0;h<b;h++)a.push("");a.push(d)}return a},iR=function(){var a=Cca();
return ji(a,function(a){return gR(a)})},Dca=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("&")},jR=function(){this.D=this.B=this.A=this.F=this.C=!1;
this.o={};this.o.start=this.oy;this.o.firstquartile=this.cy;this.o.midpoint=this.iy;this.o.thirdquartile=this.qy;this.o.complete=this.Zx;this.o.pause=this.ky;this.o.resume=this.ly;this.o.skip=this.my;this.o.viewable_impression=this.ty;this.o.mute=this.jy;this.o.unmute=this.ry;this.o.fullscreen=this.ey;this.o.exitfullscreen=this.by;this.o.fully_viewable_audible_half_duration_impression=this.fy;this.o.measurable_impression=this.hy;this.o.abandon=this.Yx;this.o.engagedview=this.ay;this.o.impression=
this.gy;this.o.creativeview=this.$x},Fca=function(a){if(!a.C){a.C=!0;
try{FP=GP(),1>Math.random()&&(a.D=!0),kR=Kba(),RQ(!1),xca()?(window.setTimeout(function(){},1),EP.getInstance().A?Eca(a):QQ()):lR=!0}catch(b){throw eR=[],fR=[],b;
}}},Eca=function(a){var b;
if(Rq&&ga(W.screenX)&&ga(W.mozInnerScreenX)&&ga(W.outerWidth)){var c=W.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&&(XQ=b,WQ=!0);b=!0}else b=
!1;if(b)QQ();else if(b=W&&W.document,b=Tg&&wc(8)&&ha(OP(b))?YQ=!0:!1,b)a.F=1>Math.random(),QQ();else{if(QP()){if(yca(W,y(a.sl,a))){QQ();a.B=!0;return}}else if(zca(y(a.sl,a))){QQ();a.A=!0;return}window.clearTimeout(bR);bR=null;mR="i";aR=!0}},nR=function(a,b){a.Vd=DQ(a,GP());
var c=!FQ();SQ([a],c);a.ea=!0;return HQ(a,b)},Gca=function(a,b,c){if(!b.gq){b.gq=!0;
"i"!=mR&&(aR=!1);if(a.A&&!b.B&&!b.Va){var d=1>Math.random()?3:1;tQ(b,y(a.sl,a),d)}if(a.B&&!wQ(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}vQ(b,W,d)}b.K={};b.K.firstquartile=!1;b.K.midpoint=!1;b.K.thirdquartile=!1;b.K.complete=!1;b.K.pause=!1;b.K.skip=!1;b.K.viewable_impression=!1;b.od=0;c=n(c)?c.opt_nativeTime:void 0;
JP=c=ga(c)?c:GP();b.H=c;h=!1;FQ()||(h=!0,b.Ea=c);SQ([b],h)}},oR=function(a){if(w(a)){var b=db(eR,function(b){return b.F==a});
0<=b&&(ica(eR[b]),ob(eR,b))}},Hca=function(a,b,c){var d=eb(eR,function(a){return a.element==c});
null!==d&&d.F!=b&&(oR(d.F),d=null);d||(d=pR(a,c),d.F=b,d.M="h");return d},pR=function(a,b){var c;
c=new AQ(W,b,-1,7);c.uf=y(a.rl,a);EP.getInstance().F=79463069;Aca([c]);QQ();return c},Ica=function(a,b){var c=Zb(qR,function(b){return b==a}),c={v:"421v",
e:rR[c]},d=HQ(b,a);hc(c,d);b.rf[a]=d;return sR(c,tR)},sR=function(a,b,c){var d={};
n(a)&&Ob(b,function(b,c){c in Object.prototype||null!=b&&(ha(b)?d[c]=b(a):d[c]=a[b])});
n(c)&&hc(d,c);b=Pba(d);n(void 0)&&n(void 0)&&(c=(void 0)(b),b+="&undefined="+c);return b},Kca=function(a,b,c,d){var e=b.toLowerCase();
if(b=Zb(qR,function(a){return a==e})){b={v:"421v",
e:rR[b]};if(lR)return b.msg="ue",b;c=a.So(c,d);b.nas=eR.length;if(!c)return b.msg="nf",b;Fca(a);"i"==mR&&(c.bb=!0,a.um(c));a.F&&mca(c);var h=d.opt_fullscreen;n(h)&&(c.G=!!h);jb(Jca,e)&&(Gca(a,c,d),a.D&&a.Yo(c));if(h=a.o[e])if(a=h.call(a,c,d),n(a))return hc(b,a),b}},uR=function(a,b){var c=a[b];
n(c)&&(a[b]=Math.floor(1E3*c))},vR=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1},xR=function(a){return!!(1<<a&wR)},Pca=function(){try{Lca()}catch(d){}var a="a=1&b="+wR+"&",b=[],c=99;
F(Mca,function(a,c){var h=!1;try{h=a(W)}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(Nca,function(b){var e="false";try{e=b(W)}catch(h){}a+=String.fromCharCode(c++)+"="+e+"&"});
F(Oca,function(b){var e="";try{var h=b(W);b=[];for(var k=0,m=0;m<h.length;m++){for(var l=h.charCodeAt(m);255<l;)b[k++]=l&255,l>>=8;b[k++]=l}e=YH(b,!0)}catch(p){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)},Lca=function(){if(!yR){var a=function(){zR=!0;
W.document.removeEventListener("webdriver-evaluate",a,!0)};
W.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){AR=!0;W.document.removeEventListener("webdriver-evaluate-response",b,!0)};
W.document.addEventListener("webdriver-evaluate-response",b,!0);yR=!0}},BR=function(){jR.call(this)},Rca=function(a,b,c){var d=eb(eR,y(function(a){return a.element?CR(a.element,c)==b&&a.eg==c:!1},a));
null!==d&&d.F!=b&&(oR(d.F),d=void 0);if(d)return d;d=Qca(c);if(d=eb(d,y(function(a){return CR(a,c)==b},a)))return d=pR(a,d),d.M="as",d.F=b,d.eg=c,d},Qca=function(a){var b=W.document,c=Kb(ji(["embed",
"object"],function(a){return tb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=ae(c,function(a){if(!a||!jh(a)||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})},CR=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},DR=function(a,b){EP.getInstance();
var c;switch(a.M){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.eg;a.element&&ha(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.U|=4,!1}if(ha(c)){var e=Ica(b,a);try{return c(a.F,e,b),!0}catch(h){a.U|=2}}else a.U|=1;return!1},Sca=function(a,b,c){a=EP.getInstance();
if(a.D!=b){a.D=b;var d=zh(eR,function(a){return a.Tp});
F(eR,function(a){b||d||(a.H=c);a.tf=b;a.Tp=!1})}},ER=function(){var a={};
a.moatInit=Pca();return a},FR=function(a,b,c){var d={},e=BR.getInstance(),h={};
hc(h,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});a=h.opt_bounds?{v:"421v",e:a,msg:"ol"}:Kca(e,a,b,h);d.viewability=sR(a,tR);b=wR=(new Date).getTime();c=xR(5);b=(zR?!c:c)?b|2:b&-3;c=xR(2);b=(AR?!c:c)?b|8:b&-9;b={s1:(b>>>0).toString(16)};d.moatViewability=sR(a,Tca,b);d.googleViewability=sR(a,Uca,b);return d},GR=function(){J.call(this);
this.o=null;this.D=new zm(this);I(this,this.D);this.F=null;this.K=new Je;this.J=new Je;this.B=this.C=null;this.A=!1;this.G=(ha(null),null)},IR=function(){null!=HR||(HR=new GR);
return HR},KR=function(a){if(null==a)return!1;
if(EO()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=JR(a);return 0>=b-a.width&&42>=c-a.height},JR=function(a){return ha(a.getBoundingClientRect)&&mh(Jg(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},Vca=function(a,b){a.C=b},MR=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):$N.B)null!=e.opt_fullscreen||(e.opt_fullscreen=KR(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=JR(a.C));return rP(sP,"lidar::handlevast_html5",pa(FR,b,c,e),void 0,LR)||{}}return{}},Wca=function(){var a=IR();
if(!a.A)return null;if(null!=a.B)return a.B;a.B=rP(sP,"lidar::getinitsignals_html5",ER,void 0,LR)||null;return a.B},NR=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};
b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.o.send("activityMonitor","pageSignals",b)}},Xca=function(a,b,c){if(!$N.C)return"";
var d=b?a.J.get(b):$N.B;a={};null!=c&&(a.fullscreen=c);c="";try{c=Hba(function(){return d},a)}catch(e){c="sdktle;"+Na(e.name,12)+";"+Na(e.message,40)}return c},OR=function(a,b,c){if(kb(a))return null;
a=ae(a,function(a){var b=a.B;return"application/x-mpegurl"==E(a.o).toLowerCase()||"progressive"==b});
kb(c)||(c=ji(c,function(a){return a.toLowerCase()}),a=ae(a,function(a){return jb(c,E(a.o).toLowerCase())}));
if(!ga(b)||0>=b)b=BO()?500:1E3;return Yca(a,b)},Yca=function(a,b){return Zca(a,b)||$ca(a,b)||ada(a,b)},Zca=function(a,b){var c=null;
F(a,function(a){var e=a.qe,h=a.pe;e>b||h<b||!(null==c||c.qe>e)||(c=a)});
return c},$ca=function(a,b){var c=null;
F(a,function(a){var e=a.qe,h=a.pe;h>b||(null==c||c.pe<h?c=a:null!=c&&c.pe==h&&c.qe>e&&(c=a))});
return c},ada=function(a,b){var c=null;
F(a,function(a){var e=a.qe,h=a.pe;if(!(e<b))if(null!=c&&c.qe==e&&c.pe<h)c=a;else if(null==c||c.qe>e)c=a});
return c},PR=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 zm(this);this.K={}},QR=function(a,b){null==b||a.G||(a.o=b,bda(a),a.G=!0)},SR=function(a){null!=a.o&&a.G&&(RR(a),a.G=!1,a.J=!1,a.F=!1,a.A=0,a.C=[],a.H=!1)},bda=function(a){RR(a);
!(a.o instanceof J)&&"ontouchstart"in window.document.documentElement&&FO()?(a.K={touchstart:y(a.zC,a),touchmove:y(a.yC,a),touchend:y(a.xC,a)},Ob(a.K,function(a,c){this.o.addEventListener(c,a,!1)},a)):a.D.R(a.o,"click",a.ip)},RR=function(a){a.D.za(a.o,"click",a.ip);
Ob(a.K,function(a,c){this.o.removeEventListener(c,a,!1)},a);
a.K={}},cda=function(a,b){a.C=[];
F(b,function(a){nb(this.C,a.identifier)},a)},TR=function(a,b){return zh(b,function(a){return jb(this.C,a.identifier)},a)},UR=function(a){null!=a?lO(dda,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=mO(a)?eda(a):null:a=null;
return a},VR=function(a,b,c){if(null==a)return null;
c=new O((null!=c?c:"//www.youtube.com/")+"watch");var d=c.o;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");tf(c,d);return c.toString()},WR=function(a){return null===a?!1:"pharma"==(new O(a)).Ve().toLowerCase()},eda=function(a){if(D(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 O(a)).o;return Jf(a,"v")?a.get("v").toString():Jf(a,"video_id")?a.get("video_id").toString():null},fda=function(a){return D(E(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"},XR=function(){J.call(this)},
YR=function(a){J.call(this);
this.o=a;this.Z=new vm(4);this.B=0;this.U=this.C=this.L=this.H=!1;this.M=this.fd();this.K=this.ke();this.X=15E3;this.O=!1},$R=function(a){a.L=!1;
a.C=!1;a.H=!1;a.B=0;a.U=!1;a.Z.clear();ZR(a);Mb(a.D)},bS=function(a){a.C||(a.C=!0,ZR(a),a.aa("start"),MO()||!LH||LH&&IO(LO,3)||EO()&&(!FO()||!IO(aS,4))||a.Bl())},cS=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},ZR=function(a){a.J&&(Vd(a.J),a.J=null)},eS=function(){J.call(this);
this.A=new dS;this.o=new zm(this);var a=XN();if(a){a:{if(Yb(a.o,"videoElementMockDuration")&&(a=a.o.videoElementMockDuration,ga(a)))break a;a=window.NaN}this.duration=a}},gda=function(){var a=["video/mp4"],b=["video/ogg"],c=new eS;
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},hda=function(a){this.startTime=0;
this.endTime=a},dS=function(){this.length=0;
this.o=[]},fS=function(){throw Error("Do not instantiate directly");
},gS=function(){fS.call(this)},hS=function(){fS.call(this)},iS=function(a,b){var c;
a:{var d=a(b||ida,void 0,void 0);c=Lg().createElement("DIV");d=jda(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c},jda=function(a){if(!ia(a))return String(a);
if(a instanceof fS){if(a.Zc===jS)return a.getContent();if(a.Zc===kS)return Fa(a.getContent())}return"zSoyz"},lS=function(a,b){return null!=a&&a.Zc===b},mS=function(a){if(null!=a)switch(a.Cd){case 1:return 1;
case -1:return-1;case 0:return 0}return null},nS=function(){fS.call(this)},X=function(a){return null!=a&&a.Zc===jS?a:a instanceof wg?oS(xg(a),a.Ff()):oS(Fa(String(String(a))),mS(a))},pS=function(){fS.call(this)},qS=function(){fS.call(this)},rS=function(){fS.call(this)},sS=function(){fS.call(this)},tS=function(){fS.call(this)},uS=function(a,b){this.content=String(a);
this.Cd=null!=b?b:null},vS=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}},yS=function(a,b,c){var d="key_"+a+":"+b,e=wS[d];
if(void 0===e||0>e)wS[d]=0,xS[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');},zS=function(a,b){var c=xS["key_"+a+":"+b];
c||""==b||(c=xS["key_"+a+":"]);return c?c:kda;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');},kda=function(){return""},DS=function(a){return lS(a,jS)?String(String(a.getContent()).replace(AS,"").replace(BS,"&lt;")).replace(lda,CS):Fa(String(a))},ES=function(a){return lS(a,jS)?String(String(a.getContent()).replace(AS,"").replace(BS,"&lt;")).replace(mda,CS):String(a).replace(nda,CS)},oda=function(a){return"%"+a.charCodeAt(0).toString(16)},
GS=function(a){a=wa(String(a));
FS.lastIndex=0;return FS.test(a)?a.replace(FS,oda):a},IS=function(a){var b=HS[1]||(HS[1]=new NA(1)),c=mS(a);
null==c&&(c=dg(a+"",lS(a,jS)));return pda(c!=b.o?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")},CS=function(a){return qda[a]},JS=function(a){return rda[a]},LS=function(a){return String(a).replace(KS,JS)},sda=function(a,b,c){return""+zS("a",a.wi)(a,null,c)},tda=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+X(IS(a.Wc))+">"+X(a.Wc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},
uda=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+X(IS(a.Wc))+">"+X(a.Wc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+X(a.$f)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'},vda=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'},
MS=function(a){return""+zS("b",a.wi)(a,null,void 0)},wda=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+X(a.ID)+'<div class="videoAdUiSkipIcon"></div></button></div>'},NS=function(a){var b="";
a=2<=a.yj&&1<=a.Xh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:X(a.Xh),totalAds:X(a.yj),timeLeft:X(a.wj)}):ra("Ad {$timeLeft}",{timeLeft:X(a.wj)});return b+=a},PS=function(){var a=OS(),b=oS("</a>"),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:X(a),
endFormat:X(b)});return oS(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))},OS=function(){return oS('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')},QS=function(a){return oS("<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'>"+
X(a.heading)+"</div><div class='videoAdUiPopupText'>"+X(a.message)+"</div><div class='videoAdUiPopupButtons'>"+X(a.buttons)+"</div></form></div></div>")},xda=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+X(c[e])+"</li>";
b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+X(a.Qk)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+X(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+X(a.control)+"</a>";a=""+QS({heading:RS(""+X(a.heading)),message:RS(b),buttons:RS("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+X(a.close)+"</button>")});return oS(a)},yda=function(a){for(var b=""+X(a.question),
c=a.options,d=c.length,e=0;e<d;e++)var h=c[e],b=b+("<label for='videoAdUiMuteOption"+DS(e)+"'><input type='radio' id='videoAdUiMuteOption"+DS(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+DS(e)+"' />"+X(h)+"</label>");
a=""+QS({heading:RS(X(a.heading)+" <a class='videoAdUiMuteUndo'>"+X(a.undo)+"</a>"),message:RS(b),buttons:RS("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")});return oS(a)},zda=function(a){var b=String(""+a.heading);
return oS(QS({heading:b?new uS(b,void 0):"",message:RS(""+X(a.message)),buttons:RS("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")}))},Ada=function(){return oS('<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>')},
TS=function(a,b,c){if(null==a||!mh(Jg(a),a))throw xO(SS,null,"containerElement","element");
this.D=a;this.A=this.o=null;this.C=b;this.F=c||!1;this.B=null;this.o=P("div",{style:"display:none;"});a=XN();YN(a,"useVideoElementMock")?(a=gda(),b=P("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.Gg=P("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.vj=P("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.Gg.appendChild(a.vj),b.appendChild(a.Gg),a.o.R(a,["loadeddata","playing",
"pause","ended"],a.MC),a=b):a=P("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+ra("Advertisement")});a.setAttribute("webkit-playsinline",!0);this.A=a;this.D.appendChild(this.o);this.o.appendChild(this.A);this.C&&(a=P("div",{id:this.C,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.o.appendChild(a));this.F&&(this.B=P("div",{style:"position:absolute;width:100%;height:100%;"}),this.o.appendChild(this.B))},WS=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 zm(this);this.F=null;this.C=!1;this.ia=this.fd();this.ha=this.ke();this.K=-1;this.ca=!1;this.G=-1;this.B=this.$=this.L=null;this.X="";this.o=!1;this.ea=null!=b;this.na=this.M=this.fa=this.A=null;this.D=void 0;this.H=this.la=null;this.J=this.sa=0;this.ea?(this.o=!0,this.A=b,this.D=2):(a=y(this.Sw,this),US?a():(VS.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)))},XS=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=UR(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!V()&&hO(fO(),41351017)&&(d.enabled_engage_types="3,4,5");
a.C=!1;a.B&&a.B.A?(a.la=d,a.A.preloadVideoByPlayerVars(a.la)):a.A.cueVideoByPlayerVars(d);a.aa("loaded")},YS=function(a){a.U.za(a.F,"tick",a.qq);
null!=a.F&&(a.F.stop(),a.F=null)},ZS=function(a){null!=a.va&&Vd(a.va)},$S=function(a){J.call(this);
this.sessionId=a||Xa();this.A=[]},aT=function(a,b,c,d,e){jc.call(this,a);
this.zc=b;this.Kd=c;this.hp=d;this.B=e},bT=function(a,b){$S.call(this,b);
this.B=a;this.Oc=null;this.C=new zm(this);this.logger=null;this.C.R(Vg(),"message",this.receive)},cT=function(a){if(null==a||!w(a)||!ua(a,"ima://"))return null;
a=a.substr(6);try{return de(a)}catch(b){return null}},Bda=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://"+ge(e)},dT=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},eT=function(a,b){J.call(this);
this.C=a;this.B=b;this.o={};this.A=new zm(this);this.A.R(Vg(),"message",this.D)},gT=function(a,b,c,d){a.o.hasOwnProperty(b)||(c=new bT(b,c),a.A.R(c,a.C,function(a){a=new fT(a.type,a.zc,a.Kd,a.hp,a.getOrigin(),b);
this.aa(a)}),c.Oc=d,c.connect(),a.o[b]=c)},fT=function(a,b,c,d,e,h){aT.call(this,a,b,c,d,e);
this.o=h},iT=function(){var a=r("google.ima.gptProxyInstance",Vg());
if(null!=a)return a;zm.call(this);this.B=new eT("gpt",!0);I(this,this.B);this.R(this.B,"gpt",this.F);this.o=null;hT()||Vg().top===Vg()||(this.o=new eT("gpt",!1),I(this,this.o),this.R(this.o,"gpt",this.D))},hT=function(){return!!r("googletag.cmd",Vg())},jT=function(){var a=r("googletag.console",Vg());
return null!=a?a:null},kT=function(a,b,c,d,e,h,k,m,l,p,t,u,x){this.C=a;
this.D=p;this.F=b;this.G=d;this.H=m;this.J=u;this.K=e;this.M=h;this.L=x;this.o=k;this.A=l;this.B=t},Cda=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,m,l,p,t,u){if("%"==p)return"%";var x=c.shift();if("undefined"==typeof x)throw Error("[goog.string.format] Not enough arguments");arguments[0]=x;return lT[p].apply(null,arguments)})},mT=function(a,b){J.call(this);
this.C=new zm(this);this.H=!1;this.J=Xa();this.F=new Je;var c=this.J,d=("https:"==window.document.location.protocol?"https:":"http:")+Cda("//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=P("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Em(this.C,c,"load",this.qx);
a.appendChild(c);this.A=c;c=this.F.get("*");null==c&&(c=new bT(this.J,"*"),this.H&&(c.Oc=nh(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.Jx);this.C.R(this.D,"touch",this.Xx);null!=this.o&&(this.C.R(this.D,"displayContainer",this.Gx),this.C.R(this.D,"videoDisplay",this.Ux),this.C.R(this.o,Vb(Dda),this.LC));c=Vg();d=r("google.ima.gptProxyInstance",c);null==d&&(d=new iT,q("google.ima.gptProxyInstance",d,c))},nT=function(a,b){var c=
dr(a.A),d=ji(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)},oT=function(a,b,c,d,e){if(!(e||null!=a&&mh(Jg(a),a)))throw xO(SS,null,"containerElement","element");
this.B=a;var h=e=null!=b||null!=d,k=!1;$N.o||($N.o||FO()||LH&&(!LH||!IO(LO,4))||KO())&&e||(CO()||KO()||(k=!0),h=!1);this.D=h;this.H=k||h&&null!=d;$N.o?a=null:(e=P("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.A=a;this.o=this.D||!this.A||$N.o||!CO()?null:new TS(this.A,null,!0);a=null;this.D?b?a=new YR(b):d&&(a=new WS(d)):this.o&&(a=new YR(this.o.A));this.C=(this.F=a)?c||null:null;this.J=null!=this.C;NO.getInstance().o(8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});
null===this.A?(b=this.B,$N.B=b):this.D&&b&&!ha(b.getBoundingClientRect)&&(b=this.B,$N.B=b);this.G=null==this.A||$N.o?null:new mT(this.A,this)},pT=function(a){return a.J&&a.C?a.C:null!=a.o?a.o.B:null},rT=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 m=d.parentElement.childNodes,l=0,p=0;p<m.length;++p){var t=m[p];if(t.nodeName&&t.nodeName.toString().toLowerCase()===k){if(d===t){k="."+l;break a}++l}}}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,m=0;m<x.length;++m)if(e===x[m]){h.push(m);break}e=u;u=e.parent}}catch(A){}e=h.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<qT.length-1;++u)c.push(lf(a,qT[u])||"");u=lf(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<qT.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()},
sT=function(){J.call(this);
this.currentTime=0},tT=function(a){sT.call(this);
this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw xO(SS,null,"content","currentTime");this.A=a;this.o=new Sd(250);this.B=new zm(this);Bm(this.B,this.o,"tick",this.C,this)},uT=function(){this.reset()},vT=function(){this.A=this.o=null},xT=function(){this.o=wT();
this.J=-1;this.M=this.P=this.D=this.H=this.F=null;this.C=wT();this.B=null;this.U=this.K=this.L="";this.G=this.O=this.Z=this.A=null},wT=function(){return Math.floor(4503599627370496*Math.random())},yT=function(a){if($N.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},AT=function(a,b){J.call(this);
this.o=a;this.F=!!b;this.B=zT(this);if(!this.B){var c=Tg&&!wc("7")?"readystatechange":"load";this.A=Oc(this.o,c,this.D,!1,this);this.C=window.setInterval(y(this.D,this),100)}},BT=function(a){a.C&&(window.clearInterval(a.C),a.C=null)},zT=function(a){var b=!1;
try{if(a.F||!Tg||wc("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},CT=function(){J.call(this);
this.C=!1;this.impressionUrls=[]},DT=function(a,b,c){jc.call(this,a);
this.B=b||null;this.o=c||null},ET=function(a,b){this.G=a;
this.F=ji(b,function(a){return a.clone()});
this.D="";this.A=this.B=0;this.o=!0;this.C=[]},FT=function(a){a.D="";
a.B=0;a.A=0;a.o=!0;a.C=[]},GT=function(){CT.call(this);
this.H=[];this.F=!1;this.B="not_loaded";this.A=null;this.D=0;this.o=null;this.J=new Ig},HT=function(a){var b=["googletag",
"googletag.cmd"];return eb(a,function(a){return Te(b,function(b){return null!==r(b,a)})})||null},IT=function(a){return a.C?ji(a.H,function(a){return a.clone()}):[]},Eda=function(a){a=IT(a);
return null!=a?ji(a,function(a){return a.F}):void 0},KT=function(a,b,c){var d=0,e=0;
null!=b&&(b=new O(b.o),d=Number(b.o.get("pod")||0),e=Number(b.o.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(JT.o,d,e,c)}catch(h){}},Fda=function(a,b){var c=LT(a);
if(null!==c){KT(c,b,!0);try{c.refreshAllSlots()}catch(d){}}},MT=function(a,b){a.G=b;
a.setVideoContent("","");var c=LT(a);null===c||KT(c,null,!1)},LT=function(a){null==a.o&&NT(a);
return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.companionAds?a.o.googletag.companionAds():null},OT=function(a){null==a.o&&NT(a);
return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.pubads?a.o.googletag.pubads():null},PT=function(a){a.A&&(a.A.stop(),a.A.za("tick",a.Gq,!1,a),a.A.dispose(),a.A=null)},TT=function(a){if("retrieved"!=a.B&&"not_available"!=a.B&&null!==LT(a)){var b;
var c=LT(a);if(null!==c&&null!=c.getDisplayAdsCorrelator)try{b=c.getDisplayAdsCorrelator()}catch(h){b=null}else b=null;switch(b){case "not_loaded":case "not_available":a.B=b;break;default:b=Number(b),(0,window.isNaN)(b)?a.B="not_available":(a.G=b,a.B="retrieved")}}(b=QT(a))||(b=RT(a)&&"not_available"==a.B);if(b){if(!a.K&&RT(a)){var d;try{if(null==a.o)d=[];else{var e=a.o.googleGetCompanionAdSlots();d=ji(e,a.xD,a)}}catch(h){d=[]}a.H=d;a.K=!0}a.C=!0;PT(a);QT(a)?a.aa(new DT("companions_success")):ST(a)}else a.A||
(a.D=K()+5E3,a.A=new Sd(100),a.A.R("tick",a.Gq,!1,a),a.A.start())},QT=function(a){return RT(a)&&"retrieved"==a.B},RT=function(a){a.F||(NT(a),a.F=null!=a.o&&null!=a.o.googleGetCompanionAdSlots);
return a.F},NT=function(a){var b=wh(a.J);
try{a.o=HT([b,b.top])}catch(c){a.o=null}},ST=function(a){a.aa(new DT("companion_initialization_failed",Error("Partial or full service initialization failure.")))},UT=function(a,b,c){a.aa(new DT("companion_slot_init",null,b));
var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Oc(d,"click",y(a.xA,a,b),!1,a)},VT=function(a,b){jc.call(this,a);
this.o=b},WT=function(a){jc.call(this,a)},XT=function(){},$T=function(a,b){if(null==a||0>=a.width||0>=a.height)throw xO(SS,null,"ad slot size",a.toString());
this.A=a;this.o=null!=b?b:new XT;this.D=ZT(Gda,this.o.B)?this.o.B:"All";this.C=ZT(Hda,this.o.creativeType)?this.o.creativeType:"All";this.G=ZT(Ida,this.o.C)?this.o.C:"SelectExactMatch";this.H=ZT(Jda,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},cU=function(a,b){var c=[];
F(b,function(a){!D(E(a.o.C))&&((0,window.isNaN)(a.o.o)||(0,window.isNaN)(aU(a))||aU(a)==a.o.o)&&bU(this,a)?c.push(a):(a=Kda(this,a),null!=a&&!D(E(a.o.C))&&c.push(a))},a);
return c},bU=function(a,b){var c;
if(c="Flash"!=b.getContentType()||dU){if(c="All"==a.D||a.D==b.o.La)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||ve(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:eU(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},Kda=function(a,b){var c=b.A;
return null!=c?eb(c,function(a){return bU(this,a)},a):null},eU=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);
return new ue(c*a.width,c*a.height)},ZT=function(a,b){return null!=b&&Tb(a,b)},fU=function(a){switch(a){case 1:return"endslate";
default:return"fullslot"}},gU=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)},Lda=function(a){var b={};
F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Sa(d[0]),d=Sa(d[1]),0<a.length&&(b[a]=d))});
return b},iU=function(a,b){if(a[b])return hU(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return hU(a[d]);return!1},hU=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},jU=function(a){O.call(this,a);
this.G=new Je;a=this.B;var b=a.indexOf(";"),c=null;0<=b?(sf(this,a.substring(0,b)),c=a.substring(b+1)):sf(this,a);Mda(this,c)},Mda=function(a,b){D(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)},Nda=function(a){if(D(E("ord")))return null;
a=a.G.get("ord");return null!=a?a:null},kU=function(a,b,c){D(E(b))||(c=ji(c,E),a.G.set(b,c))},lU=function(a,b){var c=[E(b)];
ub(c,Oda(a));return c.join(";")},Oda=function(a){var b=Nda(a);
null!=b?D(E("ord"))||a.G.remove("ord"):b=[E(K())];var c=[];F(a.G.Qa(),function(a){F(this.G.get(a),function(b){ub(c,a+"="+b)})},a);
ub(c,"ord="+b[0]);kU(a,"ord",b);return c},nU=function(a){if(null==a)return!1;
a=new O(a);var b=a.B;return va(a.A,"googleads.g.doubleclick.net")&&mU("/pagead/(live/)?ads",b)},oU=function(a){a=a.o;
return null!=a?"bid.g.doubleclick.net"==(new O(a)).A:!1},pU=function(a){if(null==a)return!1;
var b=new jU(a);a=b.A;b=lU(b,b.B);return!va(a,".g.doubleclick.net")&&va(a,"doubleclick.net")&&mU("/(ad|pfad)[x|i|j]?/",b)},qU=function(a){if(null==a)return!1;
a=new O(a);var b=a.B;return va(a.A,"doubleclick.net")&&mU("/gampad/(live/)?ads",b)},Pda=function(a){return nU(a.o)||pU(a.o)||qU(a.o)||oU(a)},Qda=function(a){a=a.o;
if(null==a)return null;a=(new O(a)).o;return null!=a.get("ms")?E(a.get("ms")):null},mU=function(a,b){return D(E(b))?!1:(new RegExp(a)).test(b)},rU=function(a){return wO(Rda,null,a.parentNode.nodeName,a.nodeName)},sU=function(a){return wO(Sda,null,a.parentNode.nodeName,a.nodeName)},tU=function(a,b){return null!=a?ae(gh(a),function(a){return a.nodeName==b}):[]},uU=function(a,b){var c=a.getAttribute(b);
return null!=c?c.toLowerCase():null},vU=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=Sa(c);return b?Ja(c):c},wU=function(a,b,c,d){null!=a&&F(gh(a),function(a){if(a.nodeName==b)c.call(d,a);
else throw rU(a);})},xU=function(a){return D(E(a))?window.NaN:Ya(E(a))},yU=function(a,b){if(null!=a){var c=a.split(":");
if(3==c.length)return c=new Gz(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},zU=function(a,b){if(!D(E(a)))switch(a.toLowerCase()){case "true":case "1":return!0;
case "false":case "0":return!1}return null!=b?b:!1},BU=function(a,b){if(b)return a;
var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ga(a,"/pagead/adview")?AU(a)?0:2:Ga(a,"/pagead/conversion")?AU(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+yT(JT);var d=a.indexOf("&adurl=");c=-1!=d?Ra(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c},AU=function(a){return Te(Tda,function(b){var c=a||"";
return 0<=jf(c,0,b,c.search(kf))})},CU=function(a,b){this.o=a;
this.A=b},DU=function(a){return a.A?-1:a.o},EU=function(a,b){a.A&&(a.A=!1,a.o=a.o*b/100)},FU=function(){this.o=new Je},GU=function(a,b){this.A=a;
this.B=b},HU=function(a,b){GU.call(this,"progress",a);
this.o=b},JU=function(a,b){F(b,function(a){var b=a.getType().toLowerCase(),e=IU(this,b);
e.push(a);this.o.set(b,e)},a)},KU=function(a,b,c,d){b=b.toLowerCase();
var e=IU(a,b);null!=d?(d=new HU(c,d),null!=d?e.push(d):e.push(new GU(b,c))):e.push(new GU(b,c));a.o.set(b,e)},IU=function(a,b){return null!=b?a.o.get(b.toLowerCase())||[]:[]},Uda=function(a,b){var c=IU(a,"progress");
F(c,function(a){EU(a.o,b)});
Cb(c,function(a,b){return DU(a.o)-DU(b.o)})},LU=function(a,b){return ji(IU(a,b)||[],function(a){return a.getUrl()})},OU=function(a,b,c){var d=new FU;
wU(a,"Tracking",function(a){var h=uU(a,"event"),k=BU(vU(a),b);MU(k)&&null!=h&&(null!=c&&(k=c(h,k)),"progress"==h?(a=uU(a,"offset"),a=NU(a),null!=a&&KU(d,h,k,a)):KU(d,h,k))});
return d},Vda=function(a){if(D(E(a)))return null;
a=new O(a);if("thismessage"!=a.C||"extensions"!=a.A)return null;a=a.B;if(!ua(a,"/"))return null;a=a.substr(1);return D(E(a))?null:a},NU=function(a){if(D(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 CU(a,!0))):(a=yU(a),0<=a&&(b=new CU(a,!1)));return b},MU=function(a){var b=!0;
if(D(E(a)))b=!1;else try{new O(a)}catch(c){b=!1}return b},PU=function(a,b){this.o=null!=a?a:new FU;
this.K=null!=b?b:[]},Wda=function(a,b){var c=b.o;
F(c.Qa(),function(a){JU(this.o,c.get(a))},a)},QU=function(a,b){var c=LU(a.o,b);
return null!=c?c:[]},RU=function(a,b){PU.call(this);
this.A=a;this.B=b},SU=function(){},TU=function(a,b){PU.call(this,b);
this.A=a},UU=function(a){PU.call(this);
this.A=a},VU=function(a){PU.call(this);
this.A=(0,window.isNaN)(a)?-1:a},WU=function(){this.fa=-1;
this.F={};this.ea="";this.Vf=new FU},XU=function(a,b,c){a.ea=b;
a.F=c},YU=function(a,b){var c=[],d=a.Ci();
F(d,function(a){a=IU(a.Vf,b)||[];c=sb(a,c)},a);
return c},ZU=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)},aV=function(a,b,c,d,e){WU.call(this);
D(E(a))&&(a=Xa()+"_ima");this.X=E(a);this.na=b;this.La=c;this.Z=d;this.C=e;this.K=[];null!=this.Z?this.ha=$U[this.Z]||"Other":this.ha=null},Xda=function(){this.A=this.C=1;
this.o=this.B=0;this.D=1},bV=function(a,b,c,d,e,h,k,m,l,p){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.qe=e;this.pe=h;this.F=k;this.C=m;this.D=oO(E(l));this.A=p},cV=function(a,b,c,d,e,h){WU.call(this);
this.gg(a);this.B=b;this.A=c;this.L=tb(d);this.la=null;this.C=e;this.Wa=tb(h);xb(this.Wa,null,function(a){return a.J})},dV=function(a){var b=new Je,c=a.Ci();
F(c,function(a){if(a instanceof cV){var c=a.A;F(c.Qa(),function(a){b.set(a,sb(c.get(a),b.get(a)||[]))},this)}},a);
return b},eV=function(a,b){var c=eb(a.L,function(a){return!D(E(a.o))&&-1!=a.o.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c.getUrl():null},fV=function(a,b,c){G.call(this);
this.A=a;this.B=b;this.F=c;this.D=0;this.o=new zm(this);Yda(this)},Yda=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)},gV=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?n(void 0)?gV(a,b,void 0,d):a:c},hV=function(a,b){a[b]||(a[b]=[]);
return a[b]},iV=function(a,b){return a[b]?a[b].length:0},jV=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&&Zda(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0},Zda=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(!jV(a,b))return!1}else return!1;return!0},lV=function(){var a=window.event||kV;
if(!a)return null;var b;(b=a.which?1<<$da[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b},mV=function(a,b,c){G.call(this);
this.A=a;this.D=b;this.K=c;this.C=0;this.o={};this.B=new zm(this);I(this,this.B);aea(this)},aea=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)},bea=function(a,b){Ob(a.o,function(a,d){b=of(b,d,a)});
return b},nV=function(a,b,c,d,e){aV.call(this,a,b,c,d,e);
this.ca=this.A=null;this.xa=-2;this.B=null;this.$=this.M=v;this.P=[];this.sa=[];this.D=!1},qV=function(a,b){a.B=b;
null!=a.A&&null!=b&&(oV(a,a.M),pV(a,a.$))},oV=function(a,b){null!=a.B&&null!=a.A&&F(a.P,function(a){this.B.za(a,"click",this.M);
!D(E(this.gd()))&&this.B.R(a,"click",b)},a);
a.M=b},pV=function(a,b){null!=a.B&&null!=a.A&&(a.B.za(a.A,"creativeview",a.$),a.B.R(a.A,"creativeview",b));
a.$=b},rV=function(a,b){var c=a.X,d={};
d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");D(E(c))||(d.id=c);return P("div",d,b)},sV=function(a){if(!a.D)return null;
var b=YU(a,"start");ub(b,YU(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];F(b,function(a){if(!D(E(a))){var b;b=Lg().xx("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:cea});Uq(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",oO(a.getUrl()));b.setAttribute("id",h);this.sa.push(h);nb(c,b)}},a);
return c}return null},dea=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,Jw:this.Tk(a)})},a);
new mV(b,a.A,d)}else d=new Je,F(a.P,function(a){d.set(a,this.Tk(a))},a),new fV(b,a.A,d)},eea=function(a){var b=[],c=a.Ci();
F(c,function(a){b=sb(b,a.K)},a);
return b},tV=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)},vV=function(a,b,c,d,e,h,k,m,l,p,t,u,x,A,C,H){this.La=a;
this.ca=b;this.L=c;this.Ja=d;this.xa=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.$=m?tb(m):[];this.K=l?tb(l):[];this.D=p?tb(p):[];this.X=[];this.J=[];this.H=null;this.ea=[];this.Wa=!0;this.A=this.o=null;this.G=new Je(u);this.M=null!=H;this.Fa=(this.P=null!=x)?A||!1:!1;this.Ia=this.nz?C||!1:!1;this.Ka=E(x);this.Pa=E(H);this.Ea=this.B=null;this.C=new Xda;this.Z=new ue(0,0);this.fa=String(Math.floor(1E9*Math.random()));this.O=this.U=this.F=null;this.na=Math.random();this.va=K();this.sa=this.la=0;this.ia=
this.ha=!1;F(this.D,function(a){a.O=this},this);
uV(this,t)},DV=function(a){var b=a.getExtension("AdFormat");
if(null!=b)return b.A+"_"+b.B+"_"+b.C;b=wV(a);b=xV(a,yV)?"14":iU(b,"hideMaster")||iU(b,"blockAllAds")?"3":a.isLinear()?zV(a)?"2_3":null!=AV(a)?BV(a)?"2_1":"2_2":"2":"1";return CV(a)+"_"+b},CV=function(a){return EV(a)?4:xV(a,yV)?14:xV(a,fea)?15:FV(a,gea)||FV(a,GV)?1:HV(a)?2:0},IV=function(a){return null!=a.ca?a.ca:""},JV=function(a){return null!=a.A?sb(JV(a.A),a.$):a.$},KV=function(a){return null!=a.A?sb(KV(a.A),a.K):a.K},LV=function(a){return null!=a.A?sb(a.J,LV(a.A)):a.J},wV=function(a){return null!=
a.o?a.o.F:{}},hea=function(a){var b={};
F(a.D,function(a){a=a.F;for(var d in a)b[d]=a[d]});
return b},MV=function(a){return null!=a.o?a.o.ea:""},iea=function(a){var b=[];
F(a.G.Na(),function(a){ub(b,QU(a,"companionClick"))});
return b},NV=function(a,b){a.o=b;
a.Z=null!=a.o&&a.o instanceof nV?a.o.hc():new ue(0,0)},OV=function(a){return null!=a.La?a.La:""},QV=function(a){if(null==a.A||PV(a.A.L))return[];
var b=[OV(a.A)];ub(b,QV(a.A));return b},jea=function(a){var b=QV(a).reverse();
b.push(OV(a));return b},RV=function(a){if(null==a.A||PV(a.A.L))return[];
var b=[IV(a.A)];ub(b,RV(a.A));return b},SV=function(a){if(!V())return null;
if(null!=a.A){var b=SV(a.A);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.A:null},kea=function(a){var b=RV(a).reverse();
b.push(IV(a));return b},PV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a},TV=function(a){if(null==a.A)return[a.L];
var b=TV(a.A);b.push(a.L);PV(b[0])&&b.shift();return b},UV=function(a){a=a.getExtension("waterfall");
return null!=a&&-1!=a.Mb()?a.Mb():-1},VV=function(a){if(-1!=a.xa)return a.xa;
a=a.getExtension("pod");return null!=a&&-1!=a.A?a.A:-1},WV=function(a,b,c,d){a=LV(a);
return cU(new $T(new ue(b,c),d),a)},XV=function(a){var b=a.B.Nf,c=a.B.Mf;
if(!b||!c)if(a=a.B.o?lf(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 ue(b,c)},lea=function(a){if(!a.B||YV(a)&&!xV(a,["ADSENSE/ADX"]))return[];
var b=XV(a);if(0>=b.width||0>=b.height)return[];var c=new XT;c.creativeType="All";c.B="All";c.C="SelectNearMatch";c.o=40;var d=WV(a,b.width,b.height,c);if(!kb(d))return d;c.A="ResizeSmaller";d=ae(LV(a),function(a){return a.o.Zg()},a);
return cU(new $T(new ue(b.width,b.height),c),d)},ZV=function(a){return!kb(a.ea)&&a.B.Db("enable_ad_video_end_renderers")},mea=function(a){var b=null,c=0;
F(lea(a),function(a){var e;e=XV(this);e=!a.o.Zg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.o.hc():eU(a.o.hc(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b},$V=function(a,b){return b||null==a.A?a.X:sb(a.X,$V(a.A))},uV=function(a,b){a.X=b?tb(b):[];
F(a.X,function(a){ub(this.J,tb(a.o))},a);
F(a.J,function(a){aW(a,this)},a);
V()&&a.isLinear()&&(a.J=ae(a.J,function(a){return 60>=a.getHeight()}))},bW=function(a,b){return zh(a.D,function(a){return a instanceof cV&&"linear"==b||a instanceof nV&&"nonlinear"==b?!0:!1})},dW=function(a){return-1!=cW(a)&&0!=cW(a)&&7>=cW(a)},eW=function(a){var b=a.o;
return YV(a)&&null!=b&&b instanceof nV&&(90<a.Z.height||null!=a.B&&a.B.Df)},fW=function(a,b){if(null==b)return null;
var c=b.getExtension("adx");return null!=c?c:fW(a,b.A)},AV=function(a){var b=fW(a,a.A);
if(null!=b){if("skippable"==b.A)return b.B;if("nonskippable"==b.A)return null}var b=null,c=new CU(5,!1),d=nea(a);"implicit"==d&&(b=c);var e=a.o;null==b&&null!=e&&e instanceof cV&&(b=e.C);null!=b||"explicit"!=d||(b=c);if(V()&&a.isLinear()){if(null!=b)return a.B.Db("enable_probabilistic_show_skip_as_nonskip")&&!zV(a)&&YV(a)&&33>=gW(a)&&a.B.Jf("probability_to_change_skip")>a.na?null:(0,window.isNaN)(a.B.F)?c:new CU(a.B.F,!1);if(a.B.Db("enable_probabilistic_show_nonskip_as_skip")&&!zV(a)&&YV(a)&&a.B.Jf("probability_to_change_skip")>
a.na)return c}return b},nea=function(a){if(null!=eb(a.G.Na(),function(a){return!kb(QU(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof TU)switch(b.A){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.o;return V()&&null!=a&&(a=a.Vf,null!=a&&!kb(IU(a,"skip")))?"explicit":"none"},hW=function(a){if(null==a.B)return!1;
var b=a.B.o;null!=b&&va(b,"/PrefetchedAd")&&null!=a.A&&(b=a.A.G.get("LocalRedirect"),b=null!=b?b.Dd():null);(a=nU(b)||qU(b)||pU(b))||(null!=b?(b=(new O(b)).A,a=va(b,"viral.adsense.net")):a=!1);return a},BV=function(a){if(null==a.ca||null==a.B)return!1;
var b;(b=hW(a)||!1)&&!(b=YV(a)&&!xV(a,["ADSENSE/ADX"]))&&(xV(a,GV)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.A:!1):b=!1);if(b||a.A&&a.A.M&&hW(a.A))return!0;a=FV(a,["ADSENSE/ADX"])||a.A&&HV(a);return V()&&!a},iW=function(a){return null===a.o?null:a.o.gd()},gW=function(a){return null!=a.o?a.o.fa:-1},jW=function(a){return null!==a.H?10:ZV(a)?(a=a.B.Jf("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0},cW=function(a){return gW(a)+jW(a)},kW=function(a){return null===
a.o?null:a.o.Hl()},YV=function(a){return xV(a,lW)},EV=function(a){return null!=a.A&&EV(a.A)||xV(a,oea)},zV=function(a){var b=kW(a);
return xV(a,["402"])||w(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")},mW=function(a){return YV(a)&&BV(a)&&!dW(a)&&!D(E(a.F))&&null!==AV(a)&&0<DU(AV(a))},HV=function(a){return FV(a,lW)||FV(a,["402"])},nW=function(a){a=a.getExtension("InfoCards");
return null!=a?a.A:null},oW=function(a){a=a.getExtension("InfoCardsTracking");
return null!=a?a.A:null},xV=function(a,b){return null!=a.ca?jb(b,a.L):!1},FV=function(a,b){for(var c=TV(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(jb(b,c[d]))return!0;
break}return!1},pW=function(){J.call(this);
this.B=[]},qW=function(){return new vV("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Je)},rW=function(a){pW.call(this);
this.o=a;this.G=null;this.H=!1;this.C=null;this.D=new zm;Bm(this.D,this.o,["companions_success","companion_initialization_failed"],this.iC,this);Bm(this.D,this.o,"companion_display_error",this.zA,this);Bm(this.D,this.o,["companion_slot_init","companion_click"],this.vA,this);this.o.C?this.H=!0:this.o.initialize()},vW=function(a,b){Mb(a.A);
a.A=new J;a.C=b;a.F=!0;a.H?sW(a):(a.F=tW(uW(b),[]),a.F||(a.C=null,a.A=null));return a.A},sW=function(a){var b=a.C;
a.C=null;if(null!=a.o)if(kb(a.B))wW(a,Error("Companion slots not available."));else if(null!=b){var c=pea(a,b),d=a.o;try{d.o.googleSetCompanionAdContents(ji(a.B,d.uw,d)),d.sendImpressionUrls()}catch(h){d.aa(new DT("companion_display_error",h))}if(0<c.length&&b.Wa){a=a.o;if(d=0!=c.length)d=TV(b),d=PV(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=LT(a);if(null!==c){KT(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(h){}}}}}else wW(a,Error("Invalid master ad."))},
wW=function(a,b){a.aa(new VT("companion_display_error",b))},qea=function(a){hO(fO(),9419278)&&tO(a)},pea=function(a,b){var c=[],d=[];
F(a.B,function(a){FT(a);zh(a.F,function(d){a:{d=WV(b,d.width,d.height);if(!kb(d)&&(d=rea(d,c),null!=d)){var e=d.B;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}e=d.o.K;hO(fO(),9419278)&&ub(e,iea(b));c.push(d);var l=d.getContent(),p=d.getWidth(),t=d.getHeight();d="IFrame"!=d.o.La;a.D=l;a.B=p;a.A=t;a.o=d;a.C=e||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);
var e=uW(b);a.F=tW(e,c);a.F||F(a.B,function(a){FT(a)},a);
return d},tW=function(a,b){if(null==a)return!0;
var c=a.o;return"all"==a.A?sea(c,b):"any"==a.A?tea(c,b):!0},uW=function(a){return null==a||null==a.o||(0,window.isNaN)(a.o.o)?null:eb($V(a,!0),function(a){a=a.o;
return kb(a)?!1:(0,window.isNaN)(a[0].o.o)?!1:a[0].o.o==aU(a[0])})},sea=function(a,b){return Te(a,function(a){return jb(b,a)})},tea=function(a,b){return zh(a,function(a){return jb(b,a)})},rea=function(a,b){return eb(a,function(a){return!jb(b,a)})},xW=function(a){this.o=a},yW=function(a,b){jc.call(this,"adsManagerLoaded");
this.o=a;this.B=b},zW=function(a,b,c,d){a.o.Yc(new xW(b),c,d);
return a.o},AW=function(a){jc.call(this,a);
this.D=[];this.C={};this.o=null;this.B=!0},BW=function(){this.B=new Je;
this.A=!V()&&.01>Math.random();this.C=0;this.o="0";this.D=""},uea=function(){var a=BW.getInstance();
a.sendMessage("ff",a.C);a.C=0},CW=function(a,b,c,d){d=d||{};
var e=new O("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+vea());d.cid=wea(a);d.utv=b;d.utt=c;d.cd6=yT(JT);b=jO(fO());D(E(b))||(d.xid=b);Ob(d,function(a,b){zf(e,b,a)},a);
return e.toString()},yea=function(a,b){if(null!=b){var c=xa(b),d=xea.exec(c),c=E((new O(c)).o.get("client"));
a.o=d&&2==d.length?d[1]:D(c)?"0":c}else a.o="0"},vea=function(){var a=JT.A,b="html5";
null!=a&&(Oa(a,"android")?b="android":Oa(a,"ios")&&(b="ios"));return b},wea=function(a){D(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},DW=function(a,b,c){this.F=b;
this.C=c;this.D=null;this.A=new zm(this);this.K=a;this.B=this.o=null;this.H=!1},zea=function(a){if(null===a.D)EW(a);
else{var b=new O(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(D(E(c))||D(E(b)))EW(a);else if(c==d&&b==e)EW(a);else{var h=a.F.Ue();h.setVideoContent(c,b);Fda(h,a.D);a.B=new Sd(100);Bm(a.A,a.B,"tick",function(){var a;a:{var b=OT(h);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&EW(this)},a);
a.B.start()}}},Aea=function(a){a.o=new Sd;
Fm(a.A,a.o,"tick",function(){EW(this)},a);
Td(a.o,a.K);a.o.start()},EW=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()},FW=function(){J.call(this);
this.o=new Je;this.A=null;this.K=new zm(this);I(this,this.K);this.G="";this.C=this.L=this.F=this.B=null;this.J=-1},HW=function(){null!=GW||(GW=new FW);
return GW},IW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;HW().aa(new VN("measurable_impression",null,c))},JW=function(a,b){var c={};
c.queryId=a;c.viewabilityString=b;HW().aa(new VN("viewable_impression",null,c))},KW=function(a,b,c){var d={};
d.queryId=a;d.viewabilityString=b;d.eventName=c;HW().aa(new VN("externalActivityEvent",null,d))},Bea=function(a,b){a.B=b},Cea=function(a,b){if(a.A)if(a.C){var c=K()-a.J;
b(a.C+"_ct"+c)}else{var c=200,d=fO();hO(d,31061771)?c=300:hO(d,31061772)?c=400:hO(d,31061773)&&(c=500);var e=a.o,c=window.setTimeout(function(){b("timeout");F(e.Qa(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.o.set(c,b);d={};a.D&&(d.isFullscreen=a.D.ke());d.osdId=a.G;d.eventId=c;NO.getInstance().A&&(a.H=K(),d.loggingId=Math.random(),NO.getInstance().o(43,{step:"sendingMessage",logid:d.loggingId,time:a.H}));a.A.send("activityMonitor","fetchAdTagUrl",d)}else b("")},Dea=function(a){return ha(a.getBoundingClientRect)&&mh(Jg(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,
top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},Eea=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.ke());e.isOverlay=null!=a.B;a.B&&(e.overlayBounds=Dea(a.B));if(hO(fO(),41351021)){var h={};h.opt_fullscreen=e.isFullscreen;e.isOverlay&&(h.opt_bounds=e.overlayBounds);d(FR(b,c,h))}else{var k=a.o;b=window.setTimeout(function(){d({viewability:"timeout"});F(k.Qa(),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({})},LW=function(){},MW=function(a,b,c){this.A=a;
this.o=c;this.B=b},Fea=function(a){this.B=a},NW=function(a){this.B=a;
this.A=this.o=!1},Gea=function(a,b,c){this.o=a;
this.A=b;this.B=c},OW=function(){this.o=new Je},PW=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");
var d=[];Me(a.o,c)&&(d=a.o.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});
a.o.set(c,d)},QW=function(a,b){this.o=a;
this.A=b},Iea=function(a){var b=new OW;
F(gh(ih(a.o)),function(a){switch(a.nodeName){case "Preroll":a=RW(this,a);PW(b,a,0);break;case "Midroll":var d=uU(a,"timeOffset"),e=yU(d);if(-1==e)throw wO(SW,null,"timeOffset",E(d));a=RW(this,a);PW(b,a,e);break;case "Postroll":a=RW(this,a);PW(b,a,-1);break;default:throw wO(TW,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.o.Qa().length)throw wO(Hea);return b},RW=function(a,b){var c=[];
F(gh(b),function(a){switch(a.nodeName){case "Ad":var b=E(vU(a));if(!D(b)){a=uU(a,"bumper");var h=this.A.clone();h.o=b;b=new NW(h);b.o=null!=a;b.A="always"==a;nb(c,b)}break;default:throw wO(TW,null,a.parentNode.nodeName,a.nodeName);}},a);
return c},UW=function(a,b,c){PU.call(this);
this.A=a;this.B=b;this.C=c},VW=function(){},WW=function(){this.C=null;
this.D="http://www.google.com/adsense/support";this.F=0;this.o=15;this.B=5;this.A=3},Jea=function(a,b){a.o=b},XW=function(a,b,c,d,e,h,k,m,l,p,t){PU.call(this,p,t);
this.D=a;this.F=b;this.B=c;this.G=l;this.H=k;this.C=h;this.A=e},YW=function(){},Lea=function(a,b){var c;
F(gh(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new WW:null;break;case "params":null!=c&&Kea(this,c,a)}},a);
return c},Kea=function(a,b,c){F(gh(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)},ZW=function(){},$W=function(){},aX=function(){},bX=function(){},hX=function(a,b,c){var d={};
a=new cX(a,n(b)?b:null,n(c)?c:null);dX(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;eX(d);fX(d,a);gX(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=ib(Mea,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d},iX=function(a,b){var c={},d=new cX(null,a,n(b)?b:null);
dX(c,d);eX(c);fX(c,d);gX(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.Le&&null!=e.Le.video_start_delay?(e=e.Le.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))}Nea(c,
d);Oea(c,d);d=a.va;for(h=a;null!=h;)d=h.la+","+d,h=h.A;c.RWT=d;return c},cX=function(a,b,c){this.error=a;
this.o=b;this.display=c},Pea=function(){var a=Wca();
if(null!=a)return a.moatInit},jX=function(a,b,c,d){V()&&Qea(c,b)?(d=d(),null!=d&&(a[c]=d,sO.Op(b)&&(a[c]=(0,window.encodeURIComponent)(a[c])))):a[c]=""},Qea=function(a,b){return zh(Rea[a],function(a){return null!=b.match(a)})},dX=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():""}}},Oea=function(a,b){a.AD_CPN={toString:function(){return b.display.Ef()}};
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.fd()?b.display.fd().width.toString():""}};
a.P_H={toString:function(){return null!=b.display&&null!=b.display.fd()?b.display.fd().height.toString():""}}},eX=function(a){a.SDKV=yT(JT);
a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}},fX=function(a,b){if(null!=b.o&&null!=b.o.B&&null!=b.o.B.Cb&&V()){var c=b.o.B.Cb;
F(Sea,function(b){b in c&&(a[b]=c[b])})}},gX=function(a,b){if(null!=b.o){a.AD_ID=jea(b.o);
a.AD_SYS=kea(b.o);var c=SV(b.o);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=UR(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=DV(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"}},Nea=function(a,b){null!=b.o&&(a.AD_LEN={toString:function(){var a=cW(b.o);
return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.Pf()?"0":Math.round(100*b.display.Jd()).toString():""}})},kX=function(a){this.o=a||{}},lX=function(a){this.o=a||{}},mX=function(a){this.o=a||{}},nX=function(a){this.o=a||{}},oX=function(a){this.o=a||{}},pX=function(a){this.o=a||{}},qX=function(a){this.o=a||{}},rX=function(a){this.o=a||{}},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,b){return new lX(hV(a.o,"card")[b])},zX=function(a){return(a=a.o.placement)?new nX(a):yX},AX=function(a){a=a.o.show_in_endcap;
return null!=a?a:!1},EX=function(){if(!BX){var a={};
BX={Rb:a};a.type={type:"e",label:1,qa:0};a.id={type:"s",label:1,qa:""};a.link_url={type:"s",label:1,qa:""};a.title={type:"s",label:1,qa:""};a.image={type:"m",label:1,qa:Tea,ua:CX()};a.event={type:"m",label:3,ua:DX()};a.target={type:"s",label:1,qa:""}}return BX},DX=function(){if(!FX){var a={};
FX={Rb:a};a.type={type:"e",label:1,qa:0};a.base_url={type:"s",label:1,qa:""}}return FX},CX=function(){if(!GX){var a={};
GX={Rb:a};a.image_url={type:"s",label:1,qa:""};a.thumbnail_url={type:"s",label:1,qa:""};a.image_height={type:"i",label:1,qa:0};a.image_width={type:"i",label:1,qa:0}}return GX},HX=function(a,b,c){PU.call(this,c);
this.A=a;this.B=b||null},IX=function(a){this.o=a},KX=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var h=b.attributes[e],k=c.Rb[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]=JX[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.Rb[h.nodeName],m=KX(a,h,k.ua);3==k.label?(d[h.nodeName]||(d[h.nodeName]=[]),d[h.nodeName].push(m)):
d[h.nodeName]=m}return d},Uea=function(a,b){var c=new FU;
F(gh(b),function(a){"CustomTracking"==a.nodeName&&null!=gh(a)&&(c=OU(a,!1,y(function(a,b){return LX(a,b)},this)))},a);
return c},LX=function(a,b){return WN(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";
default:return""}}}})},MX=function(a,b){PU.call(this);
this.B=a;this.A=E(b)},NX=function(a,b){this.logger=null;
this.B=b;this.o={};this.A=[];this.o.CustomTracking=OU;this.o.UI=this.D},OX=function(a,b){if(null==b)return null;
var c={};F(gh(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},PX=function(a,b,c,d,e,h){PU.call(this,h);
this.B=a;this.D=b;this.F=c;this.C=d;this.A=e},QX=function(a){return null!=a.A?a.A.length:0},RX=function(){NX.call(this,0,"mute_");
this.o.SurveyOptions=this.C},SX=function(a,b,c,d){PU.call(this);
this.C=a;this.B=b;this.D=c;this.A=d},TX=function(){},UX=function(){PU.call(this)},VX=function(){},Vea=function(a,b){F(gh(b),function(a){a.nodeName==this.o.ew&&vU(a)},a)},WX=function(a,b,c,d){PU.call(this);
this.B=a;this.C=b;this.D=c;this.A=d},XX=function(){},YX=function(a){PU.call(this);
this.A=a},ZX=function(){},$X=function(a,b,c,d,e,h,k,m,l){PU.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=m||null;this.G=l||null},aY=function(){NX.call(this,0,"why_this_ad_");
this.A.push("targeting_reason")},bY=function(a,b){return null!=a?Te(b,function(b){return b in a}):!1},Wea=function(a,b){return null!=a?zh(b,function(b){return b in a}):!1},cY=function(){},dY=function(){PU.call(this)},eY=function(){},fY=function(){},Xea=function(a,b){this.o=a;
this.A=b},gY=function(a,b,c){this.o=a;
this.A=b;this.B=c},aU=function(a){a=a.o.getAd().o;
return null!=a?a.o:window.NaN},aW=function(a,b){a.o.O=b;
F(a.A,function(a){aW(a,b)},a)},Yea=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Kb?'<a class="text-image-link" target="_blank" href="'+X(a.Kb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+X(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+X(a.duration)+"</div>":"")+"</a>":"")+(a.Kb?'<a class="text-title" href="'+X(a.Kb)+'" target="_blank" dir='+X(a.dir)+">"+X(a.title)+"</a>":
"")+'<div class="text-description" dir='+X(a.dir)+">"+X(a.text)+"</div>"+(a.Rr&&a.Kb?'<a target="_blank" href="'+X(a.Kb)+'" class="text-ad-channel">'+X(a.Rr)+"</a>":"")+"</div></div>"},Zea=function(a){return'<div class="flash-container '+(a.zf?"click-capture":"")+'">'+(a.Kb?'<a class="click-layer" target="_blank" href="'+X(a.Kb)+'"></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="'+
X(a.width)+'" height="'+X(a.height)+'"><param name="movie" value="'+X(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+GS(a.Kb)+'"><embed width="'+X(a.width)+'" height="'+X(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+X(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+GS(a.Kb)+'"></object></div>'},
$ea=function(a){return'<div class="image-container" id="'+X(a.id)+'" style="width:'+X(a.width)+";height:"+X(a.height)+';">'+(a.Kb?'<a target="_blank" href="'+X(a.Kb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0"></a></div>'},afa=function(a){return'<div class="image-container" id="'+X(a.id)+'">'+(a.Kb?'<a target="_blank" href="'+X(a.Kb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'},hY=function(a){return'<div class="image-container" id="'+
X(a.id)+'" style="width:'+X(a.width)+";height:"+X(a.height)+';"></div>'},iY=function(a,b,c,d){nV.call(this,a,b,"Static",c,d);
this.qo=!1},jY=function(a,b,c,d){nV.call(this,a,b,"Html",c,d)},kY=function(a,b,c,d){nV.call(this,a,b,"Static",c,d)},lY=function(a,b){nV.call(this,a,b,"Static","text","")},mY=function(a,b,c,d,e){nV.call(this,a,b,c,d,e)},oY=function(a,b,c){if(kb(c))return new nV(a,b,"",null,"");
var d=nY(c);c=d.A;var e=d.o,d=d.B;switch(c){case "Html":return new jY(a,b,e,d);case "Static":switch($U[e]){case "Image":return new kY(a,b,e,d);case "Flash":return new iY(a,b,e,d);case "Text":return new lY(a,b)}}return new mY(a,b,c,e,d)},nY=function(a){var b=eb(a,function(a){return"Static"==a.A&&"Flash"==$U[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"==$U[a.o]}),h=eb(a,function(a){return"Static"==a.A&&"Text"==
$U[a.o]});
return dU&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=h?h:a[0]},bfa=function(a,b,c,d,e,h){var k=nY(h),m=oY(a.id,a.size,[k]);
m.D=!0;m.J=a.apiFramework;m.U=b;m.K=c;m.o=d;e&&(m.Vf=e);qb(h,k);var l=[];F(h,function(h){h=oY(a.id,a.size,[h]);h.D=!0;h.J=a.apiFramework;h.U=b;h.K=c;h.o=d;e&&(h.Vf=e);l.push(new gY(h,[],a.adSlotId))});
return new gY(m,l,a.adSlotId)},pY=function(a,b,c){this.A=a;
this.o=b;this.B=c},qY=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.Re()},cfa=function(a){pr(a.o)||(S(a.o,!0),F(a.H,function(a){qO(a)}))},dfa=function(a,b,c,d,e,h,k,m,l,p){b=oY("icon"+a,b,p);
b.J=k;b.U=m.iconClickThrough;return new qY(b,a,c,d,e,h,l)},rY=function(a){this.C=a;
this.logger=null},sY=function(a){if(null==a)return!1;
a=ih(a);return null!=a&&"VAST"==a.nodeName},uY=function(a,b){var c=[],d=null;
try{var e=oA(a),h=ih(e);null!=h&&"CompanionAds"==h.nodeName&&(d=tY(rY.prototype,h,b))}catch(k){}null!=d&&c.push(d);return c},vY=function(a){if(null==a)return 0;
a=(0,window.parseInt)(a.getAttribute("version"),10);return ga(a)&&!(0,window.isNaN)(a)?a:0},ffa=function(a){var b=[],c=ih(a.C),d=vY(c);
wU(c,a.o.uu,function(a){var c;c=wY(a);if(null==c)throw rU(a);var k=a.getAttribute(this.A.Rh);a=Number(a.getAttribute(this.A.Rn));c=efa(this,c,k||null,a||0);null!=c&&(c.sa=d,b.push(c))},a);
return b},wY=function(a){var b=null;
F(gh(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw rU(a);}});
return b},efa=function(a,b,c,d){var e,h,k=[],m=[],l=[],p=[],t=new Je,u,x=b.nodeName==a.o.lw,A=x,C=x,H;
F(gh(b),function(a){switch(a.nodeName){case this.o.hw:if(x){if(null!=u)throw sU(a);u=vU(a);H=Vda(u);A=zU(b.getAttribute(this.A.zu),A);C=zU(b.getAttribute(this.A.fv),C)}else throw rU(a);break;case this.o.wu:e=vU(a);break;case this.o.xu:h=vU(a);break;case this.o.Uu:vU(a);break;case this.o.cw:vU(a);break;case this.o.Th:a=vU(a);MU(a)&&k.push(BU(a));break;case this.o.ERROR:a=vU(a);m.push(BU(a));break;case this.o.Nu:a=gfa(this,a);l=a.creatives;p=a.Nw;break;case this.o.cv:t=hfa(this,a,H)}},a);
return new vV(E(c),e,ifa(e),h,0,0,d,m,k,l,p,t,u,A,C,jfa(t))},jfa=function(a){var b=null;
a=a.get("AdSense");null!=a&&(a=QU(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b},ifa=function(a){if(D(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"}},kfa=function(a){if(D(E(a)))return"none";
switch(a){case "all":case "any":case "none":return a;default:return"none"}},hfa=function(a,b,c){var d=new Je;
try{var e=tU(b,a.o.bv);F(e,function(a){var b=a.getAttribute(this.A.TYPE);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new eY).parse(a);break;case "pod":a=(new cY).parse(a);break;case "waterfall":a=(new fY).parse(a);break;case "dart":a=(new $W).parse(a);break;case "dfp":b="DFP";a=(new aX).parse(a);break;case "adsense":b="AdSense";a=(new ZW).parse(a);break;case "textad":b="TextAd";a=(new XX).parse(a);break;case "templatead":b="TemplateAd";a=(new VX).parse(a);break;case "infocards":var b="InfoCards",
e=new IX(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new IX(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,l=tU(a,"AdXml");1==l.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+pA(ih(l[0])));a=tU(a,"VASTAdTagURI");l=null;1==a.length&&(l=a[0].textContent);a=new MX(e,l)}else a=null;break;case "viral":b="viral";a=(new ZX).parse(a);break;case "adx":b="adx";a=(new SU).parse(a);break;case "why_this_ad":b="why_this_ad";a=(new aY).parse(a);
break;case "mute":b="mute";a=(new RX).parse(a);break;case "sodar":a=(new TX).parse(a);break;case "adformat":b="AdFormat";a=(new VW).parse(a);break;default:e=new bX,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(Wda(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},gfa=function(a,b){var c=[],d=[];
wU(b,a.o.Mu,function(a){var b=a.getAttribute(this.A.Rn),k;D(E(b))||(k=(0,window.parseFloat)(b));var m=a.getAttribute(this.A.Rh),l=!1;F(gh(a),function(a){switch(a.nodeName){case this.o.LINEAR:if(l)throw sU(a);a=lfa(this,a,(0,window.isNaN)(k)?0:k,m||null);ub(c,a);l=!0;break;case this.o.Iu:if(l)throw sU(a);a=tY(this,a,(0,window.isNaN)(k)?void 0:k);ub(d,a);l=!0;break;case this.o.Iv:if(l)throw sU(a);a=mfa(this,a,(0,window.isNaN)(k)?0:k,m||null);ub(c,a);l=!0}},this)},a);
return{creatives:c,Nw:d}},mfa=function(a,b,c,d){var e=[],h=new FU;
F(gh(b),function(a){switch(a.nodeName){case this.o.Hv:a=nfa(this,a,c,d);null!=a&&e.push(a);break;case this.o.kk:h=OU(a);break;default:throw rU(a);}},a);
0!=e.length||h.isEmpty()||(a=new nV(null,new ue(-1,-1),"",null,""),a.o=c,a.ia=d,e.push(a));F(e,function(a){h&&(a.Vf=h)});
return e},xY=function(a,b){var c={};
c.id=b.getAttribute(a.A.Rh);c.adSlotId=b.getAttribute(a.A.vu);c.apiFramework=b.getAttribute(a.A.Oh);var d=Ya(b.getAttribute(a.A.Vh)),e=Ya(b.getAttribute(a.A.Ph));c.size=new ue(d,e);d=b.getAttribute(a.A.av);e=b.getAttribute(a.A.$u);D(E(d))||D(E(e))||(c.rO=new ue(Ya(d),Ya(e)));return c},nfa=function(a,b,c,d){var e=xY(a,b);
b.getAttribute(a.A.Oh);b.getAttribute(a.A.Tv);b.getAttribute(a.A.xv);var h=b.getAttribute(a.A.Ev),h=yU(h,-1),k=[];new Je;var m={},l="",p,t=[];F(gh(b),function(a){switch(a.nodeName){case this.o.Kv:t.push(vU(a));break;case this.o.Jv:p=vU(a);break;case this.o.fk:m=yY(a);l=E(vU(a));break;case this.o.Sh:case this.o.Uh:case this.o.Qh:a=zY(this,a);null!=a&&k.push(a);break;default:throw rU(a);}},a);
a=oY(e.id,e.size,k);XU(a,l,m);a.J=e.apiFramework;a.U=p;a.K=t;a.xa=h;a.o=c;a.ia=d;return a},zY=function(a,b){var c=uU(b,a.A.Ou);
if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.o.Uh:d="Static";break a;case a.o.Sh:d="IFrame";break a;case a.o.Qh:d="Html";break a;default:throw wO(ofa,null,d);}var e=vU(b);null!=e||(e="");return new pY(d,c,e)},tY=function(a,b,c){var d=[],e=kfa(uU(b,a.A.Qv));
wU(b,a.o.Hu,function(a){a=pfa(this,a,c);null!=a&&d.push(a)},a);
return new Xea(d,e)},pfa=function(a,b,c){var d=xY(a,b),e=[],h=new FU,k,m=[];
F(gh(b),function(a){switch(a.nodeName){case this.o.Ku:m.push(vU(a));break;case this.o.kk:h=OU(a,!0);break;case this.o.Ju:k=vU(a);break;case this.o.Au:vU(a);break;case this.o.fk:vU(a);break;case this.o.Sh:case this.o.Uh:case this.o.Qh:a=zY(this,a);null!=a&&e.push(a);break;default:throw rU(a);}},a);
return kb(e)?null:bfa(d,k,m,c,h,e)},lfa=function(a,b,c,d){var e=new FU,h={},k="",m=[],l,p=new Je,t=[],u=[],x,A=NU(uU(b,a.A.Wv));
F(gh(b),function(a){switch(a.nodeName){case this.o.jv:u=qfa(this,a);break;case this.o.fk:h=yY(a);k=E(vU(a));break;case this.o.hk:x=yU(vU(a),0);break;case this.o.kk:e=OU(a);break;case this.o.Bv:t=rfa(this,a);break;case this.o.iw:a=sfa(this,a);p=a.customClicks;l=a.clickThrough;m=a.clickTrackingUrls;break;default:throw rU(a);}},a);
F(m,function(a){KU(e,"click",a)});
a=new cV(x,l,p,t,A,u);XU(a,k,h);a.o=c;a.ia=d;e&&(a.Vf=e);return a},sfa=function(a,b){var c,d=[],e=new Je;
F(gh(b),function(a){switch(a.nodeName){case this.o.Fu:c=vU(a);break;case this.o.Gu:a=vU(a);d.push(a);break;case this.o.Ru:var b=uU(a,this.A.Rh);null!=b||(b="");var m=e.get(b,[]);m.push(vU(a));e.set(b,m);break;default:throw rU(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}},rfa=function(a,b){var c=[];
wU(b,a.o.Av,function(a){var b=uU(a,this.A.Tu),h=uU(a,this.A.TYPE),k=uU(a,this.A.jw),m=Ya(a.getAttribute(this.A.Vh)),l=Ya(a.getAttribute(this.A.Ph)),p=a.getAttribute(this.A.Oh),t=vU(a),u=xU(a.getAttribute(this.A.Mn)),x=xU(a.getAttribute(this.A.Dv));a=xU(a.getAttribute(this.A.zv));b=new bV(b,h,k,u,x,a,m,l,t,p);c.push(b)},a);
return c},qfa=function(a,b){var c=[];
wU(b,a.o.hv,function(a){a=tfa(this,a);null!=a&&c.push(a)},a);
return c},tfa=function(a,b){var c=b.getAttribute(a.A.Mv),d=uU(b,a.A.mw),e=uU(b,a.A.ow),h=Ya(b.getAttribute(a.A.Vh)),k=Ya(b.getAttribute(a.A.Ph)),h=new ue(h,k),k=b.getAttribute(a.A.Oh),m=NU(uU(b,a.A.Lv)),l=b.getAttribute(a.A.hk),l=yU(l,-1),p=[],t=[],u={};
F(gh(b),function(a){switch(a.nodeName){case this.o.nv:t.push(vU(a));break;case this.o.kv:u=ufa(this,a);break;case this.o.Sh:case this.o.Uh:case this.o.Qh:a=zY(this,a);null!=a&&p.push(a);break;default:throw rU(a);}},a);
return kb(p)?null:dfa(c,h,d,e,l,m,k,u,t,p)},ufa=function(a,b){var c=[],d;
F(gh(b),function(a){switch(a.nodeName){case this.o.lv:d=vU(a);break;case this.o.mv:c.push(vU(a));break;default:throw rU(a);}},a);
return{iconClickThrough:d,tO:c}},yY=function(a){a=vU(a);
return null!=a?Lda(a):{}},AY=function(a,b){this.A=a;
this.o=b},vfa=function(a){var b=[],c=tU(a,"vmap:Extensions")[0];
if(c){var d;wU(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=tU(d,"yt:BreakTime"),!kb(b)))return ji(b,function(a){return uU(a,"timeOffset")})}return[uU(a,"timeOffset")]},yfa=function(a){var b=new OW;
F(gh(ih(a.A)),function(a){if("vmap:AdBreak"==a.nodeName){var d=wfa(this,a);a=vfa(a);F(a,function(a,c){var k=yU(a);0<c&&(d=xfa(this,d));if("start"==a||0==k)PW(b,d,0);else if("end"==a)PW(b,d,-1);else{if(-1==k)throw wO(SW,null,"timeOffset",E(a));PW(b,d,k)}},this)}},a);
if(0==b.o.Qa().length)throw wO(BY);return b},xfa=function(a,b){return ji(b,function(a){var b=new NW(a.B.clone());
b.o=a.o;b.A=a.A;return b},a)},zfa=function(a){a=uU(a,"timeOffset");
var b=yU(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b},Afa=function(a){return(a=eb(gh(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?eb(gh(a),function(a){return"VAST"==a.nodeName}):null},wfa=function(a,b){var c=[],d="",e=null,h=!1,k=!1;
F(gh(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=qA(a,"vmap:VASTData/VAST")||qA(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Afa(a));if(!e){var c=tU(a,"vmap:AdTagURI"),m="";c.length&&(m=E(vU(c[0])));if(D(m))throw wO(Bfa,null,a.parentNode.nodeName,a.nodeName);d=m}}break;case "vmap:Extensions":a=tU(a,"vmap:Extension"),a=Cfa(this,a),null!=a&&(h=!0,a=uU(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var m=null;e?m=Dfa(a,e):D(d)||(m=Efa(a,d));m&&(V()&&(m.yh=zfa(b)),m=new NW(m),m.o=h,m.A=h&&!k,nb(c,m));return c},Cfa=function(a,b){return eb(b,function(a){return"bumper"==uU(a,"type")},a)},Efa=function(a,b){var c=a.o.clone();
D(c.A)||(c.A="");c.o=b;return c},Dfa=function(a,b){var c=a.o.clone();
c.A=pA(b);c.o="";return c},Gfa=function(a,b){if(null!=a){var c;
null!=a?(c=ih(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return BW.getInstance().A=!1,new QW(a,b);null!=a?(c=ih(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return BW.getInstance().A=!1,new AY(a,b);if(sY(a)){if(!sY(a))throw wO(TW);c=ih(a);var d=vY(c);if(1>d||3<d)throw wO(Ffa);c=tU(c,"Ad");if(kb(c))throw wO(CY);c=wY(c[0]);if(null==c)throw wO(DY);if(1!=tU(c,"AdSystem").length)throw wO(DY);return new rY(a)}}return null},EY=function(){},FY=function(a,b){this.A=a;
this.B=b},GY=function(a,b){"auto"!=a.A.df&&"click"!=a.A.df||b.set("vpa",a.A.df)},HY=function(a){D("")||(a.set("mpt",""),D("")||a.set("mpv",""))},IY=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||""))},JY=function(a,b){b.set("osd",2);
-1!=a.B.J&&b.set("frm",a.B.J);var c=a.B.Z;null!=c&&b.set("ms",c);b.set("sdr",1)},KY=function(a){return $N.o?"h.3.0.0":null!=a.B?yT(a.B):null},LY=function(){this.o=["video"]},MY=function(a,b,c){if(null!=c){var d;
null==b.D&&(b.D=new uT);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 vT);e=b.M;var h=c!=b.P;(d=0==d.o%100||h)||(d=36E5<(null===e.o?0:(new Jz).getTime()-e.o));d&&e.reset();b.P=c;b=e.A;null!==b&&a.set("tok",b)}},NY=function(a,b){a.set("sz",Math.max(null!=b.Nf?b.Nf:0,null!=b.Kc?b.Kc:0)+"x"+Math.max(null!=b.Mf?b.Mf:0,null!=b.Jc?b.Jc:0))},OY=function(a){var b={};
b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=W.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!W.navigator&&"unknown"!==typeof W.navigator.javaEnabled&&!!W.navigator.javaEnabled&&W.navigator.javaEnabled();W.screen&&(b.u_h=W.screen.height,b.u_w=W.screen.width,b.u_ah=W.screen.availHeight,b.u_aw=W.screen.availWidth,b.u_cd=W.screen.colorDepth);W.navigator&&W.navigator.plugins&&(b.u_nplug=W.navigator.plugins.length);W.navigator&&W.navigator.mimeTypes&&(b.u_nmime=W.navigator.mimeTypes.length);for(var d in b)a.set(d,
b[d]);a.set("dt",Hfa)},PY=function(a){if(a.Cb&&a.Cb.LACT){var b=a.Cb.LACT.toString();
if(b)return ab(b)}return a.H},QY=function(a){return V()&&a.Cb&&a.Cb.VIS?a.Cb.VIS.toString():null},VY=function(a,b,c,d){var e=new Je;
kO()||e.set("ad_type",c.adType);dU&&e.set("flash",PP);NY(e,a);RY(c)&&(e.set("ea","0"),null!=a.Kc&&null!=a.Jc&&e.set("image_size",SY(c,a.Kc,a.Jc,a.Df)));TY(e,d);e.set("lact",PY(a));(c=QY(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.yh);OY(e);UY(a,e,!0);MY(e,b,a.D);return e},UY=function(a,b,c){D(E(a.referrer))||(a=a.referrer,c&&(a=wa(a)),WY("ref",a,b))},ZY=function(a,b,c){a=null!=b?b.split("_"):a;
F(a,function(a){if(!Tb(Ifa,a))throw wO(SS,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){jb(XY,a)||d.push(a)});
a=d}if(!MO()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw wO(YY,null,"skippablevideo");a=d}return a},$Y=function(a,b){return null!=b?b.split(/[+, ]/):a},SY=function(a,b,c,d){a.A&&(c=Math.min(c,90));
var e=0,h=0;fO();a=!V();d=d&&a;a&&(e=15,h=65);var k=[];F(Jfa,function(a){var l=b-e>=a.width&&c-h>=a.height,p=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||p)&&k.push(a.width+"x"+a.height)});
return k.join(",")},aZ=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)},bZ=function(a,b){return null!=b?String(b):null!=a?a:null},cZ=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},dZ=function(a,b,c){return null!=b&&Tb(c,b)?b:a},RY=function(a){return zh(XY,function(b){return jb(a.o,b)})},TY=function(a,b){dU?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)))}},WY=function(a,b,c){null!=b&&c.set(a,b)},fZ=function(a,b,c){FY.call(this,a,b);
var d=new LY;a=(new O(a.o)).o;d.El=dZ(d.El,a.get("cust_age"),Kfa);d.Yh=dZ(d.Yh,a.get("adsafe"),eZ);d.o=ZY(d.o,a.get("ad_type"));d.adType=d.o.join("_");d.mk=aZ(d.mk,a.get("videoad_start_delay"));d.nk=bZ(d.nk,a.get("slotname"));d.Dl=cZ(d.Dl,a.get("adtest"))||"on"==a.get("adtest");d.qk=cZ(d.qk,a.get("scs"));d.rk=bZ(d.rk,a.get("alternate_ad_url"));d.channels=$Y(d.channels,a.get("channel"));d.Jk=aZ(d.Jk,a.get("cpm"));d.Lg=bZ(d.Lg,a.get("description_url"));d.experimentIds=bZ(d.experimentIds,a.get("eid"));
d.gender=dZ(d.gender,a.get("cust_gender"),Lfa);d.A=cZ(d.A,a.get("overlay"));d.host=bZ(d.host,a.get("host"));d.B=$Y(d.B,a.get("h_ch"));d.hostTierId=aZ(d.hostTierId,a.get("ht_id"));d.Fl=cZ(d.Fl,a.get("lsv"));var e;null!=this.A.language?e=this.A.language:(e=aa.navigator||null,e=ZN(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var h=null!=a.get("hl")?String(a.get("hl")):null;e=bZ(h,e);var k;null!=e&&!D(E(e))&&(k=ZN(e));d.language=bZ(d.language,k);d.zp=aZ(d.zp,a.get("linearAdSlotWidth"));
d.yp=aZ(d.yp,a.get("linearAdSlotHeight"));d.Zi=aZ(d.Zi,a.get("max_ad_duration"));d.Yl=aZ(d.Yl,a.get("min_ad_duration"));d.$i=aZ(d.$i,a.get("sdmax"));d.Bp=aZ(d.Bp,a.get("nonLinearAdSlotWidth"));d.Ap=aZ(d.Ap,a.get("nonLinearAdSlotHeight"));d.Tf=bZ(d.Tf,a.get("client"));d.hj=bZ(d.hj,a.get("t_pyv"));k=a.get("sdki");d.nj=aZ(d.nj,w(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=aZ(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Em=dZ(d.Em,a.get("targeting"),Mfa);d.Qi=aZ(d.Qi,a.get("video_format"));
d.Tm=aZ(d.Tm,a.get("video_cpm"));d.Gl=bZ(d.Gl,a.get("loeid"));d.an=bZ(d.an,a.get("yt_pt"));d.Ym=bZ(d.Ym,a.get("ytdevice"));d.Zm=bZ(d.Zm,a.get("ytdevicever"));d.$m=bZ(d.$m,a.get("dbp"));d.C=bZ(d.C,a.get("ms"));d.adBlock=aZ(d.adBlock,a.get("adBlock"));d.url=bZ(d.url,a.get("url"));d.wk=bZ(d.wk,a.get("avo"));this.o=d;this.J=b;this.K=c;D(E(this.o.experimentIds))||(b=this.o.experimentIds.split(","),dO(fO(),b))},Ofa=function(a){return zh(Nfa,function(a){return jb(this.o.o,a)},a)},gZ=function(a){return V()?
1:jb(a.o.adType.split("_"),"text")?3:1},Pfa=function(a){a=a.o.channels?a.o.channels:[];
xb(a);a=vb(a,0,30);return a.join("+")},hZ=function(a,b){return Math.round(1.1*(a||0)+0*b)},iZ=function(a,b){FY.call(this,a,b)},jZ=function(a,b){FY.call(this,a,b)},kZ=function(a){FY.call(this,a,null)},lZ=function(a){FY.call(this,a,null)},mZ=function(a,b){FY.call(this,a,b);
V()&&this.A.Db("doubleclick_gpt_retagging")&&(this.B.C=wT())},nZ=function(a){if(D(E(a)))return!1;
a=new O(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},Qfa=function(a){var b=[];
F(a,function(a){0<a.length&&b.push(ji(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")},oZ=function(a,b,c){mZ.call(this,a,b);
var d=fO();this.J=iO()?!1:D(E(a.B));a=new LY;kO()||(a.o=ZY(a.o,this.A.B),a.adType=a.o.join("_"));a.experimentIds=bZ(a.experimentIds,this.A.C);this.o=a;this.K=b;this.G=c;D(E(this.o.experimentIds))||dO(d,this.o.experimentIds.split(","))},Rfa=function(a){var b=VY(a.A,a.K,a.o,a.G);
b.set("sdkv",KY(a));b.set("sdki",a.F().toString(16));return b},Sfa=function(a,b){var c=Rfa(a),d=ji(c.Qa(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
zf(b,"afvparams",d.join("&"))},pZ=function(a,b,c){FY.call(this,a,b);
var d=fO();this.J=iO()?!1:D(E(a.B));d=new LY;kO()||(d.o=ZY(d.o,this.A.B),d.adType=d.o.join("_"));d.experimentIds=bZ(d.experimentIds,this.A.C);this.o=d;this.K=b;this.G=c;D(E(this.o.experimentIds))||(b=this.o.experimentIds.split(","),d=fO(),dO(d,b))},Tfa=function(a){var b=VY(a.A,a.K,a.o,a.G);
b.set("sdkv",KY(a));return b},Ufa=function(a,b){var c=Tfa(a),d=ji(c.Qa(),function(a){var b=c.get(a);
return a+"="+(null!=b?b:"")});
kU(b,"afvparams",[wa(d.join("&"))])},qZ=function(a){FY.call(this,a,null)},Wfa=function(a){if(null==a.A||null==a.A.Cb)return{};
var b={},c=a.A.Cb;F(Vfa,function(a){a in c&&(b[a]=c[a])});
return b},Xfa=function(a,b){var c;
if(!pU(a.o)&&!qU(a.o)||(kO()?null==a.o||-1==a.o.search("afvbase="):D(E(a.B))||null==a.o||-1==a.o.search("afvbase=")))if(pU(a.o))c=new jZ(a,JT);else if(nU(a.o))c=new fZ(a,JT,b);else if(qU(a.o))c=new mZ(a,JT);else if(oU(a))c=new iZ(a,JT);else if(c=a.o,null!=c?(c=(new O(c)).A,c=va(c,".fwmrm.net")):c=!1,c)c=new kZ(a);else{c=a.o;if(null!=c){c=new O(c);var d=c.B;c=va(c.A,"youtube.com")&&mU("/get_midroll_info",d)}else c=!1;c=c?new qZ(a):new lZ(a)}else c=pU(a.o)?new pZ(a,JT,b):new oZ(a,JT,b);return c},Yfa=
function(a){a=ae(a,function(a){return 0<VV(a)});
Cb(a,function(a,c){return VV(a)-VV(c)});
return a},Zfa=function(a){return ae(a,function(a){return-1==VV(a)})},rZ=function(a){this.o=a},$fa=function(){this.o=0},aga=function(a,b,c,d,e,h){var k=y(function(a){d(a,Error(Gm(a)))},a),m=y(function(a){6==a?sZ(this,b,!1,c,k,e,h):k(a)},a);
sZ(a,b,!0,c,m,e,h)},sZ=function(a,b,c,d,e,h,k){var m=new on;
m.Z=c;pn(m,cga(h));var l=new zm,p=y(function(){l.dispose();m.dispose()},a);
c=y(function(){e(m.A);p()},a);
Fm(l,m,"success",function(){var a;try{a=m.o?m.o.responseXML:null}catch(b){a=null}if(null==a){var c=Bn(m);try{a=oA(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(mA&&(a=nA())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);
Fm(l,m,["error","timeout"],c,a);var t;"POST"==k&&(b=new O(b),t=b.o.toString(),tf(b,""),b=b.toString());a.o=K();m.send(oO(b),k,t)},tZ=function(a,b,c){var d=null,e=c+b;
F(a.D,function(h){if(iU(h.F,"rm")){var k=iX(a);EV(a)&&(k.FILLED_OPPORTUNITY=0);tO(a.K,k);(k=a.B)&&k.afcRmFallback&&(d=h)}else{if(k=h instanceof nV)0==c&&0==b||h instanceof lY?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()||dU))if(null==d)d=h,e=k;else if(k==e&&h.o<d.o||k<e)d=h,e=k}});
NV(a,d)},uZ=function(a){var b=null;
F(a.D,function(a){a instanceof cV&&(null===b||a.o<b.o)&&(b=a)});
NV(a,b)},vZ=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},wZ=function(a,b,c){null!=a.o?dga(a,b,c):a.Fd()?ega(a,b,y(function(a){!this.Fd()||!V()&&301==a.getErrorCode()?c(a):wZ(this,b,c)},a)):c(new TN("adLoadError","The ad source contains no more ads.",1005))},fga=function(a,b){a.D=b;
a.ads=a.K(a.C,a.J);a.A=-1},gga=function(a,b,c,d){var e=a.F.clone();
e.A="";e.o=b.Pa;xZ(a,b,e,c,d)},xZ=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 vZ?(hga(a,b,this.D&&b.Fa,b.Ia),d(a)):a instanceof rZ?e(new TN("adLoadError","Ad source cannot contain playlist response.",2)):e(new TN("adLoadError","Unknown ad source.",2))},a),e)},iga=function(a){var b=0;
for(a=a.A;null!=a;)a=a.A,b++;return b},dga=function(a,b,c){a.o.Fd()?wZ(a.o,y(function(a){this.B(a,b,y(function(a){this.Fd()?wZ(this,b,c):c(a)},this))},a),y(function(a){yZ(this.ads[this.A],a);
this.o=null;V()||301!=a.getErrorCode()?this.Fd()?wZ(this,b,c):c(a):c(a)},a)):(0==a.o.G&&yZ(a.ads[a.A],wO(zZ)),a.o=null,wZ(a,b,c))},yZ=function(a,b){if(b.A){1012==b.getErrorCode()&&(b=wO(AZ));
var c=hX(b,a);tO(a.$,c)}},ega=function(a,b,c){a.A++;
var d=a.ads[a.A];d.P||d.M?d.M?gga(a,d,y(function(a){this.o=a;wZ(this,b,c)},a),y(function(a){a=BZ(a);
yZ(d,a);c(a)},a)):4<=iga(d)?(a=wO(jga,null,"4"),yZ(d,a),c(a)):a.L?a.H(d,y(function(a){this.o=a;
wZ(this,b,c)},a),y(function(a){a=BZ(a);
yZ(d,a);c(a)},a)):c(wO(kga)):a.B(d,b,c)},BZ=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;
default:a=wO(zZ)}return a},hga=function(a,b,c,d){F(a.ads,function(a){a.A=b});
fga(a,c);a.L=d},CZ=function(a,b,c,d){vZ.call(this,[],a,b,c);
this.M=d},DZ=function(a,b,c,d,e){this.D=a;
this.B=b;this.C=c;this.o=d;this.F=e},lga=function(a,b,c,d){var e;
try{e=oA(b.A)}catch(h){d(wO(TW,h));return}null!=e?EZ(a,e,b,c,d):d(wO(TW))},FZ=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(wO(mga,null,b.o)):$N.C?Cea(HW(),y(a.A,a,b,c,d)):a.A(b,c,d)},nga=function(a){var b="third_party";
nU(a.o)?b="adsense":pU(a.o)?b="dart":qU(a.o)?b="xfp":oU(a)&&(b="dbm");a={rt:b};NO.getInstance().o(17,a,!0)},EZ=function(a,b,c,d,e){var h;
try{var k=Gfa(b,c);if(!k)throw wO(TW);h=k.B();oga(a,h,c,d)}catch(m){m instanceof TN?e(m):e(wO(pga,m))}},oga=function(a,b,c,d){var e=b.o;
if(null!=e)d(new rZ(e));else{var h=b.B;if(null==h)throw wO(CY);F(h,function(a){a.B=c;var d=XN();d&&YN(d,"useCompanionsAsEndSlate")&&(a.H=mea(a));var e=a.getExtension("InfoCards");if(null==e)d=[];else{for(var d=[],e=e.B?e.B:new kX,h=0;h<iV(e.o,"card");h++){var t=xX(e,h);AX(zX(t))&&d.push(t)}0==d.length&&0<iV(e.o,"card")&&a.B.Db("enable_ad_video_end_renderers")&&(d=[xX(e,0)])}a.ea=d;a.la=this.B.o;V()&&(a.Ea=b.A)},a);
e=Yfa(h);h=Zfa(h);0<h.length&&0<=UV(h[0])?d(new CZ(h,c,a,a.D)):d(new vZ(e,h,c,a))}},GZ=function(a){this.o=a+K()},cga=function(a){var b=K();
a=a.o-b;return 0<a?a:0},qga=function(a,b){this.o=a;
this.A=b;$N.o&&IR().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}JT.J=c},sga=function(a,b,c,d){var e=b.G;
V()&&e&&dO(fO(),e,!1);e=null;null!=a.o&&(e=new DW(1E3,a.o,a.A));var h=Qda(b);null!=h&&Pda(b)&&(a.A.Z=h);(new DZ(a.A,new $fa,a.o,e,new GZ(8E3))).fetch(b,y(function(a){a instanceof rZ?c(a):rga(this,a,c,d)},a),d)},rga=function(a,b,c,d){var e=[],h=y(function(a,b){a.Fd()?wZ(a,y(function(b){e.push(b);
h(a,null)},this),y(function(b){301==b.getErrorCode()?d(wO(HZ)):h(a,b)},this)):0<e.length?c(e):(null==b&&(b=wO(BY)),1012==b.getErrorCode()&&(b=wO(AZ)),d(b))},a);
h(b,null)},tga=function(a){this.B=a;
this.A=new co;this.o=!1},JZ=function(a,b,c,d){var e=y(function(a){c(a);
go(this.A);this.o=!1;IZ(this)},a),h=y(function(a){d(a);
go(this.A);this.o=!1;IZ(this)},a);
fo(a.A,y(function(){sga(this.B,b,e,h)},a));
IZ(a)},IZ=function(a){if(!a.o){var b=ho(a.A);
null!=b&&(a.o=!0,b())}},KZ=function(a,b,c){J.call(this);
this.C=new tga(new qga(b,c));this.A=b;this.o=!0;this.B=c},uga=function(a,b,c){if(a.o){var d=null!=c?c:{};
BW.getInstance().end("rtr");yea(BW.getInstance(),b.o);BW.getInstance().start("vl");JZ(a.C,b,y(function(a){LZ(this,a,d)},a),y(function(a){MZ(this,a,d)},a))}},vga=function(a,b,c){if(!a.o){var d=null!=c?c:{};
JZ(a.C,b,y(function(a){LZ(this,a,d)},a),y(function(a){MZ(this,a,d)},a))}},LZ=function(a,b,c){if(a.o)if(b instanceof rZ)b=new NZ(b.o,a),b.G=a.A,a.aa(new yW(b,c));
else{var d;try{d=OZ(b),d.G=a.A,a.aa(new yW(d,c)),BW.getInstance().end("vl")}catch(e){MZ(a,wO(PZ,null),c)}}else b instanceof rZ?MZ(a,wO(wga,null,"Unsupported ad format."),c):(d=new AW("adsLoaderSdkAdLoaded"),d.D=b,d.C=c,a.aa(d))},MZ=function(a,b,c){a.o?("always"==$N.A&&null!=a.A&&vW(a.A,qW()),a.aa(new UN(b,c))):(c=new AW("adsLoaderSdkAdError"),c.o=b,a.aa(c))},xga=function(a){return'<div class="close-padding"><a class="close-button" title="'+X(a.close)+'" role="button" tabindex="0"></a></div>'},yga=
function(){return'<div class="recall-button"></div>'},zga=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="attribution-button">'+X(a.text)+"</a>"},QZ=function(a,b){this.K=a;
this.J=P("div",{"class":"controls"});this.o=P("div",{"class":"adDisplay"});this.U=b||v;this.bd=new zm(this)},RZ=function(a){var b=P("div",{"class":"ima-container"});
wr(b,"opacity 0.4s");a.bd.R(b,"mouseover",a.wy);a.bd.R(b,"mouseout",a.UD);b.appendChild(a.J);a.J.appendChild(a.o);return b},SZ=function(a,b){this.L=a;
this.O=new Je;this.P=15E3;this.G=P("span");QZ.call(this,a[0],b);this.o.appendChild(this.G)},TZ=function(a,b){QZ.call(this,a[0],b);
this.C=a;L(this.o,"ima-container-stack")},UZ=function(a,b,c,d,e){HA.call(this);
this.A=a;this.D=b;this.G=c;this.B=d;this.F=da(e)?e:[e]},VZ=function(a,b,c,d,e){return new UZ(a,b,{opacity:d},{opacity:e},{property:"opacity",
duration:b,timing:c,delay:0})},Aga=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="fullslot-attribution-button">'+X(a.text)+"</a>"},Bga=function(a){return'<div class="fullslot-autoclose">'+X(a.Aw)+"</div></div>"},WZ=function(a){return""+ra("Ad will close in {$xSeconds}",{xSeconds:X(a.qg)})},XZ=function(a){J.call(this);
this.D=new Sd(200);I(this,this.D);this.A=0;this.C=!1;this.K=a;this.J=new zm(this);this.J.R(this.D,"tick",this.UB)},YZ=function(a){a.D.stop();
a.C=!1},$Z=function(){J.call(this);
this.o=!1;this.B=this.C=this.A=null;this.D=new zm(this);this.A=iS(Ada);this.C=Og("videoAdUiUnmutedIcon",this.A);this.B=Og("videoAdUiMutedIcon",this.A);ZZ(this);this.D.R(this.A,"click",this.F)},ZZ=function(a){a.C&&a.B&&(a.o?(Uq(a.C,"display","none"),Uq(a.B,"display","block")):(Uq(a.C,"display","block"),Uq(a.B,"display","none")))},a_=function(a,b){J.call(this);
this.A=a;this.Z=0;this.O=!1;this.C=0==DU(this.A.skipOffset)?3:1;this.o=this.B=this.$=this.L=this.K=this.D=null;this.G=new zm(this);this.F=this.J=this.H=null;this.U=!1;this.M=new PR;this.X="";Cga(this,b);this.G.R(this.M,"click",this.HD);QR(this.M,this.B)},Cga=function(a,b){a.D=iS(vda);
a.K=Og("videoAdUiPreSkipButton",a.D);a.L=Og("videoAdUiPreSkipText",a.K);a.$=Og("videoAdUiPreSkipThumbnail",a.K);oh(a.L,MS({qg:b_(a)}));var c=fda(a.A.fa)||"";if(a.A.showContentThumbnail&&!D(E(c))){var d=window.document.createElement("img");d.setAttribute("src",c);L(d,"videoAdUiPreSkipThumbnailImage");a.$.appendChild(d)}else L(a.L,"videoAdUiPreSkipTextOnly");a.o=iS(wda,{ID:Sa(""+ra("Skip Ad {$skipSymbol}",{skipSymbol:X("")}))});a.B=Og("videoAdUiSkipButton",a.o);hO(fO(),9428661)&&(L(a.B,"autofocused"),
a.G.R(a.B,"blur",y(function(){be(this.B,"autofocused")},a)),a.B.autofocus=!0);
S(a.D,!1);b.appendChild(a.D);0==DU(a.A.skipOffset)?a.aa("skipshown"):(S(a.o,!1),or(a.o,0));b.appendChild(a.o)},b_=function(a){return null!=a.A.skipOffset&&-1!=DU(a.A.skipOffset)?DU(a.A.skipOffset):-1},c_=function(a,b){var c=b_(a);
if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+gU(c));c=MS({qg:d,wi:a.X});oh(a.L,c)}},d_=function(a){null!=a.F&&(Vd(a.F),a.F=null)},g_=function(a,b,c){J.call(this);
this.o=a;this.X=!1;this.Fa=c;this.ea=this.fa=this.ca=this.F=this.L=this.O=this.H=this.ia=this.ha=this.K=this.A=null;this.va=!1;this.Ea=this.la=this.na=this.J=this.M=this.C=this.D=this.sa=this.$=this.Z=this.G=null;this.B=new zm(this);this.Ia=[];this.U=[];this.X=!this.o.D&&hO(fO(),9416126);a={Wc:this.o.Wc,$f:this.o.$f,Me:this.o.Me,wi:this.X?"redesign2014q4":""};this.A=iS(this.o.H,a);this.B.R(this.A,"touchmove",this.Qy);this.$=Og("videoAdUiProgress",this.A);this.sa=Og("videoAdUiBuffer",this.A);this.K=
Og("videoAdUiAttributionContainer",this.A);this.ha=Og("videoAdUiAttributionIconContainer",this.A);this.ia=Og("videoAdUiAttribution",this.A);this.H=Og("videoAdUiVisitAdvertiserLinkText",this.A);this.O=Og("videoAdUiVisitAdvertiserIcon",this.A);this.L=Og("videoAdUiAuthorIcon",this.A);this.F=Og("videoAdUiAuthorName",this.A);this.ca=Og("videoAdUiLearnMore",this.A);this.fa=Og("videoAdUiLearnMoreText",this.A);this.X?(this.J=Og("videoAdUiTopButtonShare",this.A),this.na=Og("videoAdUiTopButtonShareTooltip",
this.A),this.la=Og("videoAdUiTopButtonInfo",this.A),this.Ea=Og("videoAdUiTopButtonWatchLater",this.A)):this.J=Og("videoAdUiShare",this.A);this.G=Og("videoAdUiTitle",this.A);this.Z=Og("videoAdUiTopBar",this.A);this.ea=Og("videoAdUiBottomBar",this.A);null!=this.L&&this.B.R(this.L,"click",this.xw);null!=this.F&&(c=new PR,this.U.push(c),this.B.R(c,"click",this.yw),QR(c,this.F));null!=this.ca&&(c=new PR,c.L=!0,this.U.push(c),this.B.R(c,"click",this.Vp),QR(c,this.ca));null!=this.fa&&(c=new PR,c.L=!0,this.U.push(c),
this.B.R(c,"click",this.Vp),QR(c,this.fa));null!=this.J&&this.B.R(this.J,"click",this.ED);null!=this.G&&(c=new PR,this.U.push(c),this.B.R(c,"click",this.QD),QR(c,this.G));null==this.Z||!V()&&CO()||this.B.R(this.A,"mouseover",this.DD);null!=this.H&&this.B.R(this.H,"click",this.Fj);null!=this.O&&this.B.R(this.O,"click",this.Fj);null!=this.K&&null!=this.o.C&&e_(this.o.C)&&(L(this.K,"videoAdUiWtaClickable"),this.B.R(this.K,"click",this.bD),this.B.R(this,"why_this_ad_got_it",this.bE));null!=this.o.skipOffset&&
(this.C=new a_(this.o,this.A),this.C.ig(this),this.C.X=a.wi);this.o.M&&(this.M=new $Z,this.M.ig(this),this.ea.insertBefore(this.M.A,this.K));400>=((0,window.parseInt)(Xq(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=vh(b,"html5-video-player");null!=a&&(this.X&&L(a,"videoAdUiRedesign"),M(a,"ytp-video-ad-learn-more-ui",this.o.A));S(this.A,!1);b.appendChild(this.A);this.o.A||this.X||
!this.o.K||(this.D=P("div",{style:"width:100%;height:100%;pointer-events:auto;"}),this.A.appendChild(this.D));f_(this)},Dga=function(a){null!=a.D&&S(a.D,!1)},h_=function(a){a.C&&(a.C.dispose(),a.C=null)},Ega=function(a,b){a.Ia=b;
F(b,function(a){a.display(this.A)},a)},i_=function(a){null!=a.H&&(S(a.H,!0),oh(a.H,a.o.visitAdvertiserText));
null!=a.O&&S(a.O,!0)},j_=function(a,b){if(null!=a.A){var c=vh(lh(a.A),"html5-video-player");
null!=c&&M(c,"ytp-ad-end-cap",b)}},f_=function(a){var b=a.o.U&&(a.Fa>a.o.ca||0==a.Fa),c=b&&a.o.X,d=b&&a.o.$,e=b&&a.o.B,h=b&&a.o.O,b=b&&a.o.G,k=a.o.P&&a.o.o,m="0px";
null!=a.G&&(S(a.G,b),null!=a.L&&S(a.L,c),null!=a.F&&S(a.F,d),null!=a.ca&&S(a.ca,e),null!=a.J&&(S(a.J,h),h&&a.aa("videoShareShown")),null!=a.la&&S(a.la,!1),null!=a.Ea&&S(a.Ea,!1),null!=a.Z&&S(a.Z,b||c||d||e));null!=a.K&&k_(a);null!=a.$&&(S(a.$,k),k&&(m=Xq(a.$,"height")));null!=a.ea&&Uq(a.ea,"bottom",m);null!=a.fa&&S(a.fa,V()&&a.o.A&&!e);null!=a.ha&&S(a.ha,a.o.J)},Fga=function(a,b,c,d,e){var h=NS({wj:"",
Xh:0,yj:0});a.o.o&&a.o.L&&(b=gU(c-b),h=NS({wj:a.o.D?" \u2022 "+b:a.X?" \u00b7 "+b:": ("+b+")",Xh:d,yj:e}));oh(a.ia,h);k_(a)},k_=function(a){S(a.K,a.o.F&&(!a.o.o||a.va))},l_=function(a,b,c){this.D=a;
this.B=b;this.G=c;this.A=this.C=this.F=this.o=null},e_=function(a){return a.G&&(null!=a.D||null!=a.B)},m_=function(a,b,c){b=Og(b,a.o);
null!=b&&a.C.R(b,"click",c)},n_=function(a,b,c){null!=a.o&&a.o.parentElement.removeChild(a.o);
a.o=iS(b,c);m_(a,"videoAdUiPopupCloseIcon",a.oi);a.F.appendChild(a.o);b=Og("videoAdUiPopupFrame",a.o);null!=b&&Oc(b,"submit",function(a){a.preventDefault()});
a=Og("videoAdUiPopupDefaultButton",a.o);null!=a&&a.focus()},o_=function(){this.Wc=NS({wj:"",
Xh:0,yj:0});this.$f=""+ra("Learn More {$suffix}",{suffix:X("")});this.visitAdvertiserText=""+ra("Visit Advertiser's Site");this.Me=PS();this.skipOffset=null;this.ca=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.$=this.X=this.Z=this.A=!1;this.H=null;this.showContentThumbnail=!0;this.D=!1},p_=function(a,b,c,d){var e=new o_;
e.A=a;e.ea=b;e.skipOffset=c;e.fa=null!=d?d.contentId:null;e.K=d.XD;e.H=sda;e.ha=VR(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e},r_=function(a,b,c,d,e){XZ.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,fU(this.G));a=this.o;b=new o_;b.skipOffset=new CU(this.H.B,!1);this.B=new a_(b,a);d&&d.text&&(d=iS(Aga,d),this.o.appendChild(d));e?(e=this.o,d=WZ({qg:q_(this.L)}),a=iS(Bga,{Aw:d}),oh(a,d),e.appendChild(a),e=a):e=null;this.F=e},Gga=function(a){var b=Og("videoAdUiSkipButton",a.o);
return b?ir(b,a.o):new re(0,0)},q_=function(a){a=Math.ceil(a);
return"0:"+(10>a?"0"+a:""+a)},s_=function(a){G.call(this);
this.L=!!a;this.F="";this.C=new FU;this.B=new Je;this.G=[];this.K=!1;this.A={};this.J={};this.D=-1;this.H=[]},Hga=function(a,b){null!=b&&F(b,function(a){jb(this.H,a)||this.H.push(a)},a)},t_=function(a,b,c,d){var e;
$N.o||(e=HW().L||void 0);F(b,function(a){var b=this.A,m=c||{};jX(b,a,"MOAT_INIT",Pea);jX(b,a,"MOAT_VIEWABILITY",hd(m.moatViewability||""));jX(b,a,"GOOGLE_VIEWABILITY",hd(m.googleViewability||""));qO(a,this.A,c,d,e)},a)},Iga=function(a,b){switch(b){case "abandon":return!Me(a.B,b)&&!Me(a.B,"skip")&&!Me(a.B,"instreamAdComplete")&&(Me(a.B,"impression")||a.K);
case "click":return!0;case "firstquartile":case "midpoint":case "thirdquartile":return a.L?!Me(a.B,b)&&!Me(a.B,"skip"):!Me(a.B,b);case "instreamAdComplete":case "complete":return!Me(a.B,b)&&!Me(a.B,"skip");default:return!Me(a.B,b)}},u_=function(a,b){J.call(this);
this.o=a;this.A=new zm(this);I(this,this.A);this.A.R(b,["companion_impression","companion_click"],this.B)},v_=function(a){J.call(this);
this.ads=a;this.H=null;this.$=new zm(this);I(this,this.$);this.K="normal";this.C=this.volume=null;this.B=new PO;this.Fa=!1;this.content={};this.D=new s_;this.fa=!1;this.sa=hO(fO(),41351021);this.Ea=null;var b=0;F(a,function(a){b+=cW(a)});
F(a,function(b,d){var e=b.C;e.C=a.length;var h=d+1;e.A=h;e.D=h})},Y=function(a){if(w_(a)){if(null!=AV(a.H)&&!MO())throw xO(YY,null,"skippablevideo");
if(null!=kW(a.H)&&x_(a,a.H.A))throw xO(YY,null,"vpaidWithSkippabilityOverride");return a.H}throw xO(y_,null,"An ad has not been selected.\n"+Error().stack);},x_=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:x_(a,b.A)},w_=function(a){return null!==a.H},Jga=function(a){return zh(a.ads,function(a){return zh(z_(a),function(a){a=a.getUrl();
return!D(E(UR(a)))})},a)},z_=function(a){var b=a.A;
if(b&&b.M&&(b=b.D,!kb(b)&&b[0]instanceof cV))return b[0].L;b=a.o;return A_(a)?b.L:[]},A_=function(a){a=a.o;
return null!=a&&a instanceof cV},B_=function(a){null==a.J&&(a.J=new zm(a));
return a.J},D_=function(a,b){if(null!=a.G){a.$.removeAll();
Em(a.$,a.G,"companion_display_error",function(){});
var c=vW(a.G,b);null!=c&&(a.$.R(c,"companion_impression",a.wA),a.$.R(c,"companion_click",a.dm),V()&&(c=new u_(b,c),a.oa("companionInitialized",c)));if(!a.G.jo())throw xO(C_);}},Kga=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,m={};m._scs_=d;m._bgu_=k;m._bgp_=h;m._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(m);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;c.getElementsByTagName("head")[0].appendChild(d)}}})},E_=function(a,b){a.D.o(new jc(b))},F_=function(a,
b){a.D.o(new jc(b));
a.oa(b)},G_=function(a){if(!a.fa)throw xO(y_,null,"Ads manager is not correctly configured.");
},H_=function(a){do if(YV(a))return!1;
while(a=a.A);return!0},I_=function(a,b){for(var c=b;null!=c;)F(c.G.Na(),a.nD,a),c=c.A},Lga=function(a){if(!da(a))throw xO(y_,null,"adsRenderingSettings.mimeTypes should be an array");
var b=sb(Vb(J_),Vb($U));F(a,function(a){if(!jb(b,a))throw xO(y_,null,"Invalid or unsuppoted mime type "+a);})},K_=function(a){v_.call(this,a);
this.L=null;this.ia=P("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.U=!1;this.ca=[]},L_=function(a,b){var c=eea(b);
F(c,function(a){KU(this.D.C,"click",a)},a)},M_=function(a,b){var c=hX(b,Y(a)),d=JV(Y(a));
tO(d,c)},N_=function(a){K_.call(this,a);
this.Z=!1;this.F=this.O=null;this.ea=!1},O_=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.D,b=b.F;
a={text:null!=c?c:a.ha.C,url:null!=b?b:a.ha.D};null==a.text&&(c=ra("Ads by Google"),c=oS(""+c),a.text=c);return a},P_=function(a){return w_(a)&&eW(Y(a))},Mga=function(a){var b=Q_(a);
b.rba=a.U;NO.getInstance().o(37,b)},Q_=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=BW.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},R_=function(a,b){if(a.F){a.Gi(new jc("close"));
var c={};c.pid=BW.getInstance().o;c.evt=b;NO.getInstance().o(35,c)}},Nga=function(a,b){function c(a,b){for(var c in a)for(var k=c.toLowerCase(),m=0;m<S_.length;m++){var l=S_[m];
if(k==l)throw Error('Cannot override "'+l+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")},T_=function(a,b){BE.call(this,b);
this.K=a;this.B=new zm(this);this.A=new Je},U_=function(a){return a.ma()?a.ma().firstChild:null},V_=function(a){v_.call(this,a);
this.A=null;this.L=!0;this.na=this.ia=this.Z=!1;this.la=Xa();this.ca=this.ea=0;this.X=-1;this.F=null;this.U=0;this.O=1;this.ha=-1},W_=function(a){var b;
b=a.Vb("getAdRemainingTime");b=ga(b)?b:-2;if(!ga(b)||0>b)b=30;Vd(a.ha);a.ha=Ud(a.stop,1E3*b,a)},X_=function(a,b,c,d){d=xO(b,c,d);
var e=hX(d,Y(a)),h=JV(Y(a));tO(h,e);b.message=d.getMessage();zO(a,b,c)},Y_=function(a){VN.call(this,"adMetadata",a)},Oga=function(a,b,c){var d=v,e=new O("https://www.googleapis.com/youtube/v3/videos");
zf(e,"id",a);zf(e,"part","snippet,status");zf(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=y(b,c),d=y(d,c));Z_(new on,e,b,d)},Pga=function(a,b,c){var d=v,e=new O("https://www.googleapis.com/youtube/v3/channels");
zf(e,"id",a);zf(e,"part","snippet,statistics");zf(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));Z_(new on,e,b,d)},Z_=function(a,b,c,d){zf(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");
pn(a,2E3);var e=new zm(a);Em(e,a,"success",function(a){a=a.target;var b;b=a.o?de(a.o.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Em(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.A&&(b=Error(Gm(a.A)));d(b);e.dispose();a.dispose()});
a.send(b)},$_=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}},a0=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}},Sga=function(a){var b=oS,c;
c=a.image;lS(c,b0)?c=LS(c):lS(c,c0)?c=LS(c):c instanceof mg?c=LS(ng(c)):c instanceof sg?c=LS(tg(c)):(c=String(c),c=Qga.test(c)?c.replace(KS,JS):"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="'+DS(c)+'"></div><div class="iv-endcap-headline" dir='+ES(a.dir)+">"+X(a.headline)+'</div><div class="iv-endcap-description" dir='+ES(a.dir)+">"+X(a.description)+'</div><a class="iv-endcap-action" href="';
var d;d=a.target;lS(d,b0)?d=LS(d):lS(d,c0)?d=LS(d):d instanceof mg?d=LS(ng(d)):d instanceof sg?d=LS(tg(d)):(d=String(d),d=Rga.test(d)?d.replace(KS,JS):"#zSoyz");return b(c+DS(d)+'" target="_blank" dir='+ES(a.dir)+">"+X(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>')},g0=function(a,b,c,
d,e){XZ.call(this,d);
this.F=a;this.M=b;this.L=e;this.G=new zm(this);I(this,this.G);this.B=new PR;I(this,this.B);a=(a=c.o.product_card)?new qX(a):d0;d=new oX(hV(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 vX(a):e0).o.image_url;c=iS(Sga,{headline:null!=e?e:"",description:null!=h?h:"",image:null!=a?a:"",action:null!=c?c:"",target:null!=d?d:""});b.appendChild(c);b=Og("iv-endcap-action",c);this.G.R(this.B,"click",this.H);QR(this.B,b);this.o=Og("iv-endcap-countdown-inner",
c);null!=this.o&&Uq(this.o,"stroke-dasharray","0 "+f0)},Tga=function(){var a=ra("Your video will play after this ad.");
return oS(""+('<div class="videoAdInterstitial"><p>'+a+"</p></div>"))},h0=function(){G.call(this);
this.B=iS(Tga);this.o=0},i0=function(a){a.o&&(Vd(a.o),a.A(v))},j0=function(a){jc.call(this,a)},k0=function(a){J.call(this);
this.C=a;this.M=new Je;this.J=-1;this.K=this.O=!1;this.G=""},l0=function(a){this.o=!1;
this.mute=a.Pf();this.volume=a.Jd()},m0=function(a){null!=a.A&&a.A.dispose();
null!=a.o&&a.o.Sf();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},n0=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=Uga[c]||null;null!=d&&null!=a.o&&a.o.wm(d);a.C.o(new jc(c))}a.aa(b)}},o0=function(a){0>a.J||a.O||!a.o.Kg(a.J)&&!a.o.Ze()||!a.K||(a.O=!0,n0(a,"engagedview",!0,!0),a.aa(new j0("viewCount")))},p0=function(a){o0(a);
if(V()){var b=a.C;if(!(b.L&&Me(b.B,"skip")||0>b.D))for(var c=IU(b.C,"progress"),d=b.D;d<c.length;d++){var e=c[d];b.D=d+1;qO(e.getUrl(),b.A)}}n0(a,"complete",!0,!0)},q0=function(a){v_.call(this,a);
this.F=this.A=null;this.Z=!1;this.O=new k0(this.D);this.ha=this.va=this.ia=this.X=!1;this.na=this.U=1;this.L=null;this.Ja=new h0;this.la=new Uj;this.Ka=!1;this.ca=[];this.ea=!1;this.Ia=!CO()&&hO(fO(),9416126)},r0=function(a,b){var c=Ud(function(){this.la.remove(c);
b.call(this)},0,a);
Tj(a.la,c)},s0=function(a){Mb(a.A);
a.A=null;Mb(a.O);Mb(a.D);a.ia=!1;a.ha=!1},t0=function(a){a.mh();
w_(a)?a.start():a.stop()},Wga=function(a){if(!w_(a))return!1;
var b=a.C.ge();if(null==b)return!1;var c=Y(a),d;if(d=c.H?c.H.o.Zg()?c.H.o.Il():c.H.getContent():"")Vga(a,b,d);else if(ZV(c)&&c.B.Db("enable_ad_video_end_renderers")){d=jW(c);var e=!c.B.Db("ad_video_end_disable_auto_open_drawer");a.F=new g0(a.o,b,c.ea[0],d,e);B_(a).R(a.F,"click",y(a.Do,a,null));a.A&&j_(a.A,!0);a.C.ld();a.F.start();F_(a,"video_card_endcap_impression")}null!=a.F&&(B_(a).R(a.F,"timeUpdate",a.gr),B_(a).R(a.F,"end",a.ax));return null!=a.F},Vga=function(a,b,c){NO.getInstance().o(34,{evt:"start"},
!0);
var d=P("div");L(d,"controls");var e=P("div");L(e,"adDisplay");L(e,"endslate");e.innerHTML=c;(c=gh(e)[0])&&Uq(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&B_(this).R(a,"click",y(this.Do,this,b))},a);
d.appendChild(e);e=new WW;Jea(e,jW(Y(a)));e.B=0;e.A=0;a.F=new r_(d,e,1,{},!0);B_(a).R(a.F,"skip",a.Eo);$g(b,a.F.getContainer());a.C.ld();a.F.start();F_(a,"video_card_endcap_impression");a.A&&(Dga(a.A),h_(a.A))},v0=function(a,b){u0(a);
null!=a.o&&a.o.vp();a.oa("complete");F_(a,b);E_(a,"instreamAdComplete");t0(a)},u0=function(a){a.F&&(a.F.dispose(),a.F=null);
a.A&&j_(a.A,!1);a.Z=!1},w0=function(a){var b=w_(a)?Y(a).F:null;
if(b){var c;a:{if(w_(a)&&(c=nW(a.H),null!=c))break a;c=""}var d;a:{if(w_(a)&&(d=oW(a.H),null!=d))break a;d=""}var e=Y(a).B;(c||d||e.allowAdsPayCreator)&&a.o.zl(b,c||null,d||null,e.allowAdsPayCreator)}},x0=function(a,b,c,d){b=IU(b.o,c);
kb(b)||(a[d]=b[0].getUrl())},y0=function(a,b,c){b=c.getExtension(b);
null!=b&&(x0(a,b,"annotation_click","cta_annotation_clicked"),x0(a,b,"annotation_close","cta_annotation_closed"),x0(a,b,"annotation_start","cta_annotation_shown"))},Xga=function(a,b){var c=YV(b)&&!b.P?OV(b):null,d=null!=AV(b)&&!BV(b),e=null!=a.A&&a.A.o.A,h=b.B,k=WR(a.lp());
if(!k){var m=b.getExtension("AdSense");null!=m&&(k=m.isPharma())}var m=DV(b),l;a.A?(l={},y0(l,"AdSense",b),y0(l,"dart",b),y0(l,"DFP",b)):l=null;return new kT(m,c,0,l,e,d,a.B.loadVideoTimeout,h?h.Ji:!1,!1,SV(b),a.B.ag,k,h?h.Db("legacy_autoplay_flag"):!1)},Yga=function(a){var b=0,c=0;
F(a.ads,function(a){!A_(a)||V()&&0!=c||(c++,b+=cW(a))},a);
var d=1;F(a.ads,function(a){var b=a.C;b.C=c;A_(a)&&(b.A=d,b.D=d,d++)},a)},z0=function(a){var b=a.A;
return b&&b.M&&(b=b.D,!kb(b)&&b[0]instanceof cV)?b[0].gd():iW(a)},B0=function(a,b){if(!A_(b))throw xO(A0);
var c=b.o;if(!D(E(null)))return new bV("","","",0,0,0,0,0,null,"");var d=z_(b),e=a.o.wr(d,a.B.bitrate,a.B.Wg||[],null!=b&&(V()||a.C.Mi()||a.C.vl()||CO()));Zga(d,a.B.bitrate,e,IV(b));if(null!=e)return c.la=e;try{$ga(a,b)}catch(h){}throw xO(aha);},$ga=function(a,b){if(NO.getInstance().A){var c=new Uj,d=!1;
F(z_(b),function(a){Tj(c,a.o);"VPAID"==a.A&&(d=!0)},a);
var e=a.o.$k(),e={aid:OV(b),mt:c.Na().join(","),smt:e.join(","),hvp:d,st:TV(b).join(",")};NO.getInstance().o(28,e)}},Zga=function(a,b,c,d){if(!V())try{var e=ji(a,function(a){return a.pe}),h=ji(a,function(a){return a.o});
a={};a.brs=e.join(",");a.mts=h.join(",");a.pubbr=b;a.selbr=null===c?-1:c.pe;a.selmt=null===c?"":c.o;a.ic=!1;a.nat=!1;a.iyh=mO(c.getUrl())?"1":"0";a.as=d;NO.getInstance().o(22,a)}catch(k){}},C0=function(a,b){b in a.ca||(a.ca.push(b),a.oa(b))},E0=function(a,b,c){b.getMessage();
b.getErrorCode();D0(a,c);a.mh();w_(a)?(yO(xO,a,b,c,void 0),a.start()):(zO(a,b,c),a.stop())},D0=function(a,b){var c=xO(F0,b),c=hX(c,Y(a),a.o),d=JV(Y(a));
tO(d,c)},G0=function(a){if($N.o){var b=z0(Y(a));
null!=b&&pO(b)}a.oa("click")},H0=function(a,b){Tb(bha,b)&&Bm(B_(a),a.O,b,a.ar,a)},I0=function(a){if(!a.ea){var b=Y(a),c=b.F;
if(mW(b)&&!V()&&!a.C.Mi()&&c){var b=a.o.getCurrentTime(),d=a.o.Hd(),e=new O("//s.youtube.com/s");zf(e,"ns","yt");zf(e,"el","adunit");zf(e,"docid",c);zf(e,"eurl",window.document.URL);zf(e,"len",d.toFixed(2));zf(e,"tv","1");zf(e,"ps","trueview-instream");zf(e,"st",b.toFixed(2));zf(e,"et",b.toFixed(2));zf(e,"rt",b.toFixed(2));qO(e.toString());a.ea=!0}}},cha=function(a){var b=Y(a).U;
if(null!=b){var b=b.videoId,c=a.B.baseYouTubeUrl;if(D(E(b)))b=null;else{var c=new O((null!=c?c:"//www.youtube.com/")+"watch"),d=c.o;d.set("v",b);tf(c,d);c.J="action=share";b=c.toString()}null!=b&&(pO(b),a.Cr())}},dha=function(a){a=J0(a)||K0(a);
null!=a&&rO(a,"sharebuttondisplayed")},J0=function(a){a=Y(a).getExtension("AdSense");
return null!=a?new O(a.B):null},K0=function(a){if(a=Y(a).o)if(a=YU(a,"start"),!kb(a))return new O(a[0].getUrl());
return null},eha=function(a){var b=Y(a),c=b.U;
null!=c&&(b=VR(c.videoId,null!=AV(b),a.B.baseYouTubeUrl),null!==b&&(a.o.pause(),pO(b)))},L0=function(a){r0(a,function(){this.oa("skip");
t0(this)})},M0=function(a,b){Oga(b,function(a){a=new a0(a);
w_(this)&&Y(this).F==a.videoId&&(fha(this,a),!D(E(a.channelId))&&a.isListed&&Pga(a.channelId,function(a){a=new $_(a);if(null!=this.A){var b=this.A,c=a.A;b.o.$=!D(E(c));b.o.La=c;null!=b.F&&(c=ra("by {$userDisplayName}",{userDisplayName:""+b.o.La}),oh(b.F,(new uS(""+c,void 0)).getContent()));f_(b);b=this.A;c=a.o;b.o.X=!D(E(c));if(null!=b.L){var 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")}f_(b)}w_(this)&&(Y(this).O=a,this.oa("youTubeChannelMetadata"));if(a=this.A)a=Y(this),b=a.U,a=V()&&kb(LV(a))&&null!=a.O&&null!=b&&b.isListed;if(a){a=Y(this);B_(this).R(window,"message",this.Ex);var b=Y(this),c=b.O.channelId,k=DV(b),m=this.B.contentId,l=this.B.baseYouTubeUrl,l=new O((null!=l?l:"//www.youtube.com/")+"ad_companion"),p=l.o;p.set("adformat",k);p.set("p",c);p.set("render","video_wall_companion");m&&p.set("content",m);c=new mY("1",new ue(300,
250),"IFrame",null,l.toString());c.O=b;c.D=!0;a.J=[new gY(c,[],null)];D_(this,a)}},this))},a)},fha=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;
c.o.G=!D(E(d));c.o.title=d;N0.test(Yf(c.o.title,void 0));null!=c.G&&oh(c.G,c.o.title);f_(c);c=a.A;null!=c.na?oh(c.na,""+ra("Share")):null!=c.J&&oh(c.J,""+ra("Share"))}w_(a)&&(Y(a).U=b,a.oa("youTubeVideoMetadata"))},O0=function(a){var b=Y(a).O;
if(null!=b){var c;c=a.B.baseYouTubeUrl;b=E(b.channelId);c=D(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ua(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.o.pause(),pO(c))}},gha=function(a){var b=BW.getInstance();
if(b.A){var c={};if(null!=a.L){var d=(new O(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.qe;c.cd3=a.L.o;c.cd5=b.o;c.cm2=a.B.bitrate;c.cd2=mO(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.fd(),c.cd4=d.width+"x"+d.height);a=a.L.G;D(E(a))||(c.cd7=a)}b.end("bt",c)}},P0=function(a,b){jc.call(this,"vpaidEvent");
this.sessionId=b},Q0=function(a){v_.call(this,a);
this.Ja=this.Ia=this.la=!1;this.ea=[];this.U=Xa();this.A=null;this.F=!0;this.ia=-1;this.ha=new Sd(500);this.na=this.X=-1;this.Z=1;this.va=this.Ka="";this.ca=!1;this.O=2==$N.D},S0=function(a){var b=MV(Y(a)),c=E(iW(Y(a))),d=kW(Y(a)),c={desiredBitrate:a.B.bitrate,
creativeData:b,viewMode:a.K,clickThroughUrl:c,adUrl:d};kW(Y(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.B.surveyCreativeData&&(c.creativeData=a.B.surveyCreativeData);R0(a,"initAd",c);F(a.ea,function(a){R0(this,a.type,a.params)},a);
a.la=!0;a.ea=[]},T0=function(a,b,c){c=c||null;
a.la?R0(a,b,c):a.ea.push({type:b,params:c})},R0=function(a,b,c){c=c||{};
c.session=a.U;c.type=b;a.O?window.parent.postMessage(ge(c),"*"):null!=a.L.contentWindow&&a.L.contentWindow.postMessage(ge(c),"*")},U0=function(a,b,c,d){d=xO(b,c,d);
var e=hX(d,Y(a)),h=JV(Y(a));tO(h,e);b.message=d.getMessage();zO(a,b,c)},X0=function(a,b){if(w(b.type))switch(b.type){case "friendlyReady":S0(a);
break;case "videoCall":switch(b.func){case "load":case "play":a.C.Xg();a.va!=b.src&&(a.va=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.X=b.duration;break;case "returnRemainingTime":a.ia=b.remainingTime;break;case "AdClickThru":E_(a,"click");a.oa("click");break;case "AdDurationChange":a.X=b.duration;a.ia=b.remainingTime;Y(a).o.gg(a.X);a.oa("durationChange");break;case "AdError":U0(a,V0,Error(b.message));a.stop();break;case "AdExpandedChange":a.oa("expandedChanged");
break;case "AdImpression":var c=Y(a);kb(LV(c))||D_(a,c);a.oa("impression");break;case "AdLinearChange":c=b.isLinear;!a.F&&c?(a.oa("contentPauseRequested"),T0(a,"becameLinear")):!c&&a.F&&(a.oa("contentResumeRequested"),T0(a,"becameNonlinear"),T0(a,"getAdRemainingTime"),T0(a,"getAdDuration"));a.F=c;var d=Y(a);d.ha=!0;d.ia=c;a.oa("linearChanged");break;case "AdLoaded":Vd(a.na);a.Ia=!0;d=b.companions;c=Y(a);kb(LV(c))&&(d=uY(d,c.o.o),kb(d)||uV(c,d));W0(a);F_(a,"loaded");break;case "AdPaused":a.ca=!0;F_(a,
"pause");break;case "AdPlaying":a.ca=!1;F_(a,"resume");break;case "AdRemainingTimeChange":a.ia=b.remainingTime;break;case "AdSkipped":F_(a,"skip");break;case "AdSkippableStateChange":F_(a,"skippableStateChanged");break;case "AdStarted":E_(a,"impression");E_(a,"creativeview");a.oa("start");break;case "AdStopped":E_(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.F?E_(a,"acceptinvitationlinear"):E_(a,"acceptinvitation");break;case "AdUserMinimize":E_(a,"collapse");break;case "AdUserClose":F_(a,
"userClose");break;case "AdVideoComplete":F_(a,"complete");break;case "AdVideoFirstQuartile":F_(a,"firstquartile");break;case "AdVideoMidpoint":F_(a,"midpoint");break;case "AdVideoStart":E_(a,"start");break;case "AdVideoThirdQuartile":F_(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.Z&&a.oa("volumeChange");0==c&&0!=a.Z?(E_(a,"mute"),a.oa("mute")):0==a.Z&&0!=c&&E_(a,"unmute");a.Z=c;a.A.setVolume(c);break;case "Ping":qO(b.url)}},Y0=function(a,b){R0(a,"wrapperCall",{messageType:b})},
W0=function(a){a.Ia&&a.Ja&&(T0(a,"startAd"),a.ha.start(),a.F||(T0(a,"becameNonlinear"),T0(a,"getAdRemainingTime")),T0(a,"getAdDuration"))},Z0=function(a){this.o=a},$0=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.$=h;this.U=$N.A;this.o=null;this.ca=this.fa=-1;this.X="normal";this.M=null;this.G=e;this.A=[];this.ha=this.O=this.ea=this.L=!1;this.Z=k;hha(this)},a1=function(a,b,c,d){a.fa=b;
a.ca=c;null!=d&&(a.X=d);null!=a.o&&a.o.ed(b,c,d)},hha=function(a){F(a.J,function(a){a=new O(a.B.o);
var c=a.o.get("max_ad_duration");n(c)||a.o.get("pmxd")})},b1=function(a){return a.F<a.J.length&&null!=a.J[a.F]},iha=function(a,b){var c;
if(c=V()&&!kb(b)&&0==a.sc)c=b[0],c=null!=c&&null==kW(c)&&bW(c,"nonlinear");return c?(c=RV(b[0]),"ADSENSE"==(0<c.length?c.pop():IV(b[0])).toUpperCase()):!1},d1=function(a){!b1(a)||2<=a.A.length-a.C?a.ea||(a.aa("adBreakInitialized"),a.ea=!0):c1(a)},c1=function(a){var b=a.J[a.F];
Bm(a.H,a.K,"adsLoaderSdkAdLoaded",a.jq,a);$N.A="on_master_ad";vga(a.K,b.B,b)},jha=function(a){null==a.sc||zh(a.A,function(a){return!a.A})||(a.A=ae(a.A,function(a){return!(a.A&&!a.B)}))},i1=function(a){var b;
a:{if(a.C<a.A.length&&(b=a.A[a.C].o,!kb(b))){b=null!=b[0]&&null==wV(b[0]).rm;break a}b=!1}if(b){b=a.A[a.C];try{if(a.O||(e1(a),a.o=f1(a,b.o),g1(a)),a.o.init(a.X),null!=a.M&&a.o.setVolume(a.M),h1(a.o))a.aa("contentResumeRequested"),a.G.ld(),a.o.start(),null!=a.D&&a.D.start();else{var c=a.o;if(null!=c&&c instanceof q0)a.G.Xg(),a.o.start();else{var d=a.o;if(null!=d&&d instanceof Q0)a.G.ld(),a.o.isLinear()?a.G.Xg():a.aa("contentResumeRequested"),a.o.start();else{var e=a.o;if(null!=e&&e instanceof V_)a.G.ld(),
a.o.isLinear()||a.aa("contentResumeRequested"),a.o.start();else throw Error("Unknown ads manager type.");}}}}catch(h){a.C++,i1(a)}b1(a)&&c1(a)}else a.aa("contentResumeRequested"),j1(a)},f1=function(a,b){var c=OZ(b);
c.G=a.Z;null!=a.B&&(a.B.dispose(),a.B=null);a.B=new zm(a);Bm(a.B,c,"companionBackfill",a.kq,a);c.Yc(new Z0(a.G),{currentTime:0},a.$);c.ed(a.fa,a.ca,a.X);return c},e1=function(a){a.G.ka();
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)},g1=function(a){if(null==a.o)throw Error("The current ads manager is not defined");
var b=a.o;Bm(a.B,b,"adError",a.Mz,a);Bm(a.B,b,k1,a.kq,a);a.B.R(b,["allAdsCompleted"],v);Bm(a.B,b,"contentPauseRequested",a.Cy,a);Bm(a.B,b,"contentResumeRequested",a.Ey,a);Bm(a.B,b,"userClose",a.Fy,a);Bm(a.B,b,"autoClose",a.By,a);h1(a.o)&&(b=a.getCurrentAd(),null==b||!eW(b))&&(b=Y(a.o).o.xa,0<b||a.$.lo)&&(0>=b&&(b=15),null!=a.D&&a.D.dispose(),a.D=new Sd(1E3*b),Fm(a.B,a.D,"tick",a.BB,a))},h1=function(a){return null!=a&&a instanceof K_},j1=function(a){a.L=!1;
a.aa("allAdsCompleted")},kha=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==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}},l1=function(a){jc.call(this,a);
this.o=null},m1=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;lha(this,b)},mha=function(a){this.o=a;
this.B=this.A=!1},n1=function(a){a.o.start();
a.A=!0},o1=function(a){null!=a.C&&(a.C.dispose(),a.C=null);
a.o.stop();a.A=!1},nha=function(a){if(a.A){var b=eb(a.B,function(a){return-1==a.o},a);
null!=b&&p1(a,!0,b)}},lha=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 mha(a),function(a,b){return zb(a.o,b.o)})},a)},oha=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},pha=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},q1=function(a){a.aa(new l1("contentTrackingError"))},p1=function(a,b,c){if(null!=c){if(!c.A){var d=new l1("requestAds");
d.o=c.o;a.aa(d);c.A=!0}b&&!c.B&&(b=new l1("playAds"),b.o=c.o,a.aa(b),c.B=!0)}},r1=function(a,b){G.call(this);
this.C=a;this.o=-1;this.B=b},s1=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},NZ=function(a,b){v_.call(this,[]);
this.ia=a;this.M=new Je;this.F=this.A=null;this.Z=new co;this.L=null;this.X=b;this.na=this.ca=!1;this.O=null;this.ea=this.ha=-1;this.la=null;this.va=0;this.U=!1},v1=function(a,b){a.U=!1;
a.Af(b);0==b.sc?a.Ni():(-1==b.sc?(t1(a)||!V()&&a.ca)&&u1(a):n1(a.F),a.L=null)},w1=function(a){null!=a.J&&(a.J.dispose(),a.J=null);
a.ca=!1;null!=a.F&&o1(a.F)},x1=function(a){if(null==a.L){var b=go(a.Z);
if(null!=b){a.L=b;var c=a.M.get(a.L.o);if(null==c)a.L=null,x1(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.L=null,x1(a);else if(null!=a.la&&s1(a.la,c))a.L=null,x1(a);else if("requestAds"==b.type)a.U?(a.Z.isEmpty()||"playAds"!=ho(a.Z).type||go(a.Z),v1(a,c)):(b=B_(a),Bm(b,c,k1,a.aa,a),Bm(b,c,"adError",a.Jo,a),Bm(b,c,"allAdsCompleted",a.hq,a),Bm(b,c,"contentPauseRequested",a.kp,a),Bm(b,c,"contentResumeRequested",a.Ni,a),Bm(b,c,"userClose",a.Iy,a),Bm(b,c,"autoClose",a.Hy,a),Bm(b,c,"adBreakInitialized",
a.iq,a),c.init(a.ha,a.ea,a.K));else if("playAds"==b.type)if(null!=a.A&&a.A.kb()&&a.Af(a.A),a.U)v1(a,c);else if(a.A=c,a.A.setVolume(a.volume),a1(a.A,a.ha,a.ea,a.K),a.A.O){c=a.A;if(c.C<c.A.length){b=c.A[c.C];e1(c);try{c.o=f1(c,b.o),g1(c)}catch(d){c.C++,i1(c)}}a.oa("contentResumeRequested");a.F.getCurrentTime()>=a.va?null!=a.A&&a.A.start():a.L=null}else a.A.start()}}},u1=function(a){if(!a.na){a.na=!0;
a.X.o=!0;try{NO.getInstance().o(44,{cmpl:!0})}catch(b){}a.oa("allAdsCompleted");-1==a.O&&y1(a)}},y1=function(a){hO(fO(),41351033)||JT.clear();
null!=a.G&&(a=a.G.Ue(),null!=a&&MT(a,JT.o))},t1=function(a){return 0==a.M.Na().length},qha=function(){},OZ=function(a){if(kb(a))throw Error("Ads manager creation failure, no ads.");
var b=a[0],c=zV(b)&&V(),c=0!=$N.D||c;switch(null!=kW(b)&&c?"vpaid":dU&&null!=(null===b.o?null:b.o.Ri())&&0!=$N.D?"flash_vpaid":YV(b)&&null==kW(b)&&bW(b,"nonlinear")?"overlay":bW(b,"linear")?"video":bW(b,"nonlinear")&&null==kW(b)?"overlay":null){case "overlay":return YV(b)?new N_(a):new K_(a);case "video":return new q0(a);case "vpaid":return new Q0(a);case "flash_vpaid":return new V_(a)}throw Error("Ads manager creation failure, failed to determine ad type.");},z1=function(a){J.call(this);
this.A=a;a=new rW(new GT);this.o=new KZ(new qha,a,JT);this.o.R("adsManagerLoaded",this.aa,!1,this);this.o.R("adError",this.aa,!1,this);this.o.R("adLoadError",this.aa,!1,this)},A1=function(a,b,c){yba();
var d="",e=CP(),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=rT(b.o,a.A.B);b.Dm=a.A.H;uga(a.o,b,c)},B1=function(a,b){OM.call(this,a,b)},C1=function(a){this.app=a;
vq.call(this,a.Ra)},D1=function(a,b,c){this.Y=a;
this.o=b||"";this.B=c||null;this.C=!1},E1=function(a,b){var c=a.Y;
if(c.Ia&&("detailpage"==c.Ba||"leanback"==c.Ba||"embedded"==c.Ba&&(c.L&&c.Pa||c.experiments.B))&&!a.C){a.C=!0;ti("TIMING_ACTION")||si("TIMING_ACTION",a.Y.csiPageType);a.Y.sa&&si("CSI_SERVICE_NAME",a.Y.sa);if(a.B){var c=a.B.C,d;for(d in c)Rv(d,c[d],a.o);d=a.B.B;for(var e in d)Uv(e,d[e],a.o);e=a.B;e.C={};e.B={}}if(e=yh("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}Uv("yt_vis",d,a.o)}Uv("yt_pt","html5",
a.o);b&&!Sv("pbs",a.o)&&a.A("pbs",b);e=a.Y;("detailpage"!=e.Ba||"blazer"==e.o)&&Sv("_start",a.o)&&Qv(a.o)}},G1=function(a,b){this.B=a;
this.A=ga(b)?b:null;if(jb(F1,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");},H1=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}},rha=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},J1=function(a,b){return"9t_D9IIh_ZI"==b.$||I1(a,["9418752",
"9418753"])},K1=function(a,b){return jb(a.experiments.experimentIds,b)},I1=function(a,b){return zh(b,pa(jb,a.experiments.experimentIds))},L1=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1},M1=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=Na(c||"",50),b.error_message=d)}},N1=function(a,b){if(a){var c=QV(a).reverse();
b.ad_id=sb(c,OV(a)).join(",");c=RV(a).reverse();b.ad_sys=sb(c,IV(a)).join(",");c=SV(a);null!=c&&(b.aqi=c)}},O1=function(a,b){if(a[b])return L1(a[b]);
var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return L1(a[d]);return!1},P1=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},Q1=function(a,b,c){var d=new PO;
d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.X;d.showContentThumbnail=a.showContentThumbnail;d.ag={};c.fa&&(d.ag.ctrl=c.fa);c.ea&&(d.ag.ytr=c.ea);c.ia&&(d.ag.ytrcc=c.ia);c.isMdxPlayback&&(d.ag.mdx="1");a.F?(d.sk=!0,d.Ww=!0,d.showContentThumbnail=!1,d.Qm=!0,d.Rm=!0,d.useShareButton=!1):a.C&&(d.sk=!0);return d},S1=function(a){var b=new EY;
b.F=a.A.Ea;var c=a.app.G.Ma();b.Nf=c.width;b.Mf=c.height;b.Kc=c.width;b.Jc=100;a.W();b.Co=!0;b.G=a.W().experiments.experimentIds;b.Db=y(a.W().experiments.ga,a.W().experiments);b.Jf=y(a.W().experiments.Sb,a.W().experiments);b.fl=y(a.W().experiments.D,a.W().experiments);b.allowAdsPayCreator=a.A.allowAdsPayCreator;b.Co?(a.W(),c=HB()):c=-1;c&&(b.H=c);a.A.tagForChildDirected&&(b.Ji=!0);if(K1(a.W(),"9415521")||a.A.wb)b.Ki=!0;c=R1(a);b.Cb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:sha(a),VIS:tha(a)};
a.W();b.afcRmFallback=a.A.K;K1(a.W(),"9417581")&&(b.D="yt_"+R1(a).videoId);b.language=a.W().Z;return b},sha=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
a.W();return HB().toString()}}},tha=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:XL(a.W()).toString()}}},uha=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;
var b=a.G?a.G.A():null;return null==b||0>b?"0":Math.ceil(.001*K()-b).toString()}}},T1=function(a,b,c,d){this.A=this.B="";
this.C=a;this.F=b;this.o=c;this.D=d},W1=function(a){var b=U1(a);
b.format="2_3";b.at="2_3";b.trsp="1";V1(a.o,3,b)},U1=function(a){var b={};
b.l_ns=a.F;b.l_state=a.D;b.break_type=a.C.o();b.sst=H1(a.C);b.sidx=0;a.B&&(b.at=a.B);a.A&&(b.ad_id=a.A);return b},Y1=function(){var a=r("yt.www.watch.ads.loadAfc");
ha(a)?a():X1=!0},Z1=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"},a2=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():$1=!0},b2=function(){var a=r("yt.www.watch.ads.setCompanion");
a&&a()},vha=function(a){var b=r("yt.www.watch.ads.showForcedMpu");
b&&b(a)},d2=function(a,b,c,d){Lj.call(this);
this.D=!!b;this.G=a;this.A=c||a;this.J=!!d;this.o=new Dr(this);this.C=this.H=null;this.F=this.B=!1;b&&(zc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));c2(this)},c2=function(a){a.C=null;
a.H=null;a.o.T(a.A,e2("over"),a.Zr);a.o.T(a.A,"touchstart",a.cn);a.D&&a.o.T(a.A,e2("down"),a.Fz)},f2=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},e2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a},g2=function(a,b){this.A=a;
this.o=b},h2=function(a){return a.o-a.A},i2=function(a,b){return a.A+b*h2(a)},j2=function(a,b,c){return h2(a)?le((b-a.A)/h2(a),0,1):null!=c?c:window.Infinity},k2=function(){this.A=this.position=this.C=this.o=this.D=this.B=this.width=window.NaN},l2=function(a,b,c,d,e){var h=b.bq/b.rows,k=Math.min(c/(b.fq/b.Lb),d/h),m=b.fq*k,l=b.bq*k,m=Math.floor(m/b.Lb)*b.Lb,l=Math.floor(l/b.rows)*b.rows,p=m/b.Lb,t=l/b.rows,u=-b.Mw*p,x=-b.row*t;
e&&45>=h&&(t-=1/k);a=a.style;a.width=p+"px";a.height=t+"px";e||(d=(d-t)/2,c=(c-p)/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/"+m+"px "+l+"px";if(e)return new ue(p,t)},wha=function(){this.B=!1;
this.A=0;this.o=""},m2=function(a,b,c,d){Lj.call(this);
this.o=a;this.A=d;this.videoData=null;this.adType=c;this.adSystem=b},xha=function(a,b){this.o=a;
this.A=b||0},n2=function(a){var b=[];
F(a.split("_"),function(a,b){this[b]=Ya(a)},b);
return new xha(Tb(yha,b[1])?b[1]:0,Tb(zha,b[2])?b[2]:0)},Aha=function(){this.clickThroughUrl="";
this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0},o2=function(a){var b;
b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",Q("YTP_ADVERTISEMENT")]],["div","ad-container"]];R.call(this,b);this.A=a;this.D=this.G=this.F=null},p2=function(a){a.F||(a.F=a.ra["ad-container"],a.A.W().J&&L(a.F,"ad-container-single-media-element-annotations"));
return a.F},r2=function(a){a.D&&(a.A.W().J?(be(a.D,"ad-video"),q2(a.A.app,a.D),a.D=null):(dh(a.D),fz(a.D)))},s2=function(a){if(!a.G){if(a.A.W().useTabletControls){var b=window.document.createElement("button");
L(b,"video-click-tracking");ah(b,Q("YTP_VISIT_ADVERTISERS_SITE"));var c=window.document.createElement("div");L(c,"video-click-tracking-container");c.appendChild(b);p2(a).appendChild(c)}else b=window.document.createElement("div"),$d(b,["video-click-tracking","ad-video"]),p2(a).appendChild(b);a.G=b}return a.G},Bha=function(a){this.o=a},Cha=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},t2=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}},Dha=function(a,b){this.D=null;
this.B=window.NaN;this.A=null;this.o=a;this.C=b},u2=function(a,b,c){a.o.S("AD_LOGGING_EVENT",b,c)},x2=function(a,b,c){v2(a);
var d=w2(a);c&&qa(d,c);d.ad_error=b;u2(a,7,d)},w2=function(a){var b={},c=a.o.videoData,d=a.o.C.ug(),e=y2(a.o);
N1(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=Ze(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.Ef():null)&&(b.ad_cpn=e);b.format=a.o.Tc();b.at=a.o.yg();b.ad_mt=Math.round(1E3*Math.max(Eha(a.o),0));return b},v2=function(a){a.D||(a.D="InstreamAdDisplay ("+a.o.Tc()+")")},z2=function(a,b){G.call(this);
this.C=Math.max(0,a);this.B=this.A=0;this.D=b;this.o=window.NaN},B2=function(a,b,c,d,e,h){m2.call(this,b,a,2,c);
this.K=!1;this.G=this.M=this.P=null;this.o.subscribe("control_toggle_play_pause",this.vt,this);this.o.subscribe("control_play",this.An,this);this.o.subscribe("control_pause",this.zn,this);this.D=new Dha(this,this.o);this.B=new rA(this);this.C=A2(b);this.C.subscribe("statechange",this.qt,this);this.C.subscribe("internalAbandon",this.gt,this);this.C.subscribe("internalvideodatachange",this.ut,this);this.F=this.H=!1;this.O=d;this.L=!!e;this.U=!!h;this.J=new z2(15E3,y(this.Xj,this))},D2=function(a,b){var c=
a.o.W();
if(a.o.A.X&&"3"==c.B){var c=a.o.app.G,d=c.app.W();qJ(d);c.L=!b;C2(c)}},G2=function(a){var b=new wha;
b.B=a.F;b.A=Qt();a.videoData&&a.videoData.clientPlaybackNonce&&(b.o=a.videoData.clientPlaybackNonce);qM(A2(a.o));E2(a.o,0,b);F2(a.o,0);a.S("adEnd",a);D2(a,!0)},H2=function(a,b){a.o.W().experiments.ga("html5_ad_error_releases")?qM(a.C):a.C.hg();
E2(a.o,0);a.S("adError",b)},I2=function(a){return a.videoData&&a.videoData.B?a.videoData.B.mimeType:null},y2=function(a){return a.videoData&&a.videoData.cg?nw(a.videoData.cg.A()):null},Eha=function(a){return a.C?a.C.getCurrentTime():0},Fha=function(a,b){this.o=a;
this.C=b;this.o.Tc();this.B=this.D=0;this.A=null},J2=function(a,b,c){a.o.S("AD_LOGGING_EVENT",b,c)},K2=function(a){var b={};
N1(a.o.getCurrentAd(),b);a.D&&a.B&&(b.ot=a.B-a.D);var c;c=a.C.Oa()?2:a.C.app.ha?1:0;b.ad_ps=c;b.format=a.o.Tc();b.at=a.o.yg();return b},L2=function(a,b,c,d){m2.call(this,b,a,1,c);
this.B=null;this.F=!1;this.H=null;this.D=new Fha(this,b);this.C=new rA(this);this.G=!!d},M2=function(a,b){a.H!=b&&(a.H=b)},N2=function(a,b,c,d){G.call(this);
this.L=null;this.U=a;this.A=b.fb;this.H=b;this.J=b.getId();this.o=c;this.F=d;this.B=new T1(this.A,this.zg(),c,d);this.D=null;this.O=new zm(this);this.C=new zm(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/},O2=function(a){var b=new G1(2,10);
a.A=b;a.B.C=b},P2=function(a,b){a.L=b;
var c=b.Tc();a.B.B=c},Q2=function(a,b){var c=r("yt.www.watch.ads.setAdId");
c&&c(b);a.B.A=b},R2=function(a){a=H1(a.A);
return 0==a||-1==a?a:1E3*a},S2=function(a){a.o.W().experiments.ga("log_backfill_requests")&&W1(a.B);
a2()},e3=function(a){var b=a.H,c=a.A;
b.o=a.L;b.fb=c;I(b,b.o);0==b.F&&(a=b.o.yg(),b.B.fa.at=a);b.o instanceof B2?b.A=!0:b.o instanceof T2?b.isVisible=!1:b.o instanceof U2?b.isVisible=!1:b.o instanceof W2&&(b.isVisible=!1);b.C="loaded";b3(b)},Gha=function(a){this.o=a},T2=function(a){m2.call(this,a,2,3,null);
this.D=a.W().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&&(yi(a.C),a.C=0,a.B=0,a.F=0)},h3=function(a,b,c){N2.call(this,2,a,b,c);
this.G=new Gha(this.o.A);Z1()},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.bb,this.F=c,b=this.B,c=b.indexOf(";sz="),a=fj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{Cw:b[0],hD:b[1],kD:a})&&(this.C=a.Cw,this.H=a.hD,this.J=a.kD)},j3=function(a){this.A=a?a:""},W2=function(a,b,c,d){L2.call(this,1,a,b,d);
this.J=c},k3=function(a,b,c){N2.call(this,1,a,b,c);
a=this.o.A;this.Z=a.ha?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;Z1()},m3=function(a,b){var c=b.getCurrentAd(),d=RV(c);
d.unshift(IV(c));for(c=0;c<d.length;++c){var e=Hha[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 zh(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 m=h.call(e||a.L,b);n(m)&&(a.C=a.C&&(m==b||m instanceof Error),a.B=b=m);if(yd(b)||"function"===typeof aa.Promise&&b instanceof aa.Promise)d=!0,a.G=!0}catch(l){b=l,a.C=!0,u3(a)||(c=!0)}}a.B=b;d&&(m=y(a.K,a,!0),d=y(a.K,a,!1),b instanceof n3?(s3(b,m,d),b.P=!0):b.then(m,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.va;var d=0,c=c.ca.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);N2.call(this,2,a,b,d)},z3=function(a,b){m2.call(this,a,14,14,b)},A3=function(a,b,c){N2.call(this,14,a,b,c)},B3=function(a,b,c){N2.call(this,14,a,b,c)},Iha=function(a,b,c,d,e){this.C=a;
this.A=b;this.o=c;this.Y=this.C.W();this.D=d;this.F=R1(this.C).lengthSeconds;this.G=e;this.B="html5";C3(this)&&"embedded"==this.Y.Ba?this.B="html5_embed":nJ||yx?this.B="html5_ios":Yp("android")?this.B="html5_android":fq()?this.B="html5_wp":aq()?this.B="html5_ps3":"leanback"==this.Y.Ba?(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"):eq()?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)?zh(a.B,function(a){return G3(a)||E3(a)}):!1},C3=function(a){return!H3(a)||J1(a.Y,a.o)},U2=function(a,b){L2.call(this,4,a,b)},I3=function(a,b,c){N2.call(this,4,a,b,c);
var d=this.o.A;this.G=E(d.Za);var e=R1(this.o)&&R1(this.o).spacecastModule;this.K=new Iha(b,a,d,c,!!e)},J3=function(a,b,c){this.B=a;
this.o=b;this.A=c||0},Jha=function(a){return 0<((a.o|a.A)&3)},K3=function(a,b,c,d,e){Lj.call(this);
this.H=!0;this.A=!1;this.isVisible=!0;this.C="unloaded";this.J=!1;this.F=b;this.B=a;this.fb=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.fb.A)?1E3*H1(a.fb):0x8000000000000},Kha=function(a){return D3(a)||a.B.o&&1E3*a.B.o.getCurrentTime()>=N3(a)?!1:Te(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.fb.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.fb.o()},E3=function(a){return 3==a.fb.o()},R3=function(a){a.C="loading";
D3(a)&&!zh(a.G,Jha)&&zq(a.B);if(a.K)a.C="loaded",a.A=!0,b3(a);else{var b=a.G.shift();b?(D3(a)&&O3(a.B,"nl"),b=b.create(a,a.B),I(a,b),b.load()):(V1(a.B,2,P3(a,{})),Q3(a,!1),a.C="error",b3(a))}},S3=function(a){a.o&&(a.o.Ha("adEnd",a.Ss,a),a.o.Ha("adError",a.Ts,a),a.o.Ha("AD_LOGGING_EVENT",a.Vs,a),a.o.Ha("select",a.Rs,a),a.o.Ha("adCompanionInitialized",a.Us,a))},b3=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.fb.o();
b.sst=H1(a.fb);b.sidx=0;return b},T3=function(a){var b=0;
a.M&&(b|=1);a.L&&(b|=2);var c=0;a.D&&(a.H&&(c=4),b||a.Z||(b=c,c=0));a=new Je;a.set(3,b);a.set(4,c);return a},U3=function(a,b){var c=[];
if(a.ea)return c.push("pla"==(a.ca||"").toLowerCase()?new J3(8,16):new J3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.Z&&c.push(new J3(7,16)),c;if(a.P){var d=0;if(a.B||a.G)d|=1;a.O&&(d|=4);a.U&&(d|=8);c.push(new J3(5,d))}d=0;a.J&&(a.B&&(d|=1),a.G&&(d|=2),a.O&&a.D&&(d|=4),a.U&&a.D&&(d|=8));var e=T3(a),h=e.get(3);d&&h&&Lha(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.Z||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(Mha(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},Mha=function(a){var b=a.o.A,c=[];
if(b.P&&!J1(a.o.W(),b))c=X3;else if(b.la){var d=b.la.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new G1(3):0<e?new G1(2,e):new G1(1);c.push(e)}}else c=X3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new G1(5,Ya(b[a])));Cb(c,rha);return c},Pha=function(a,b){this.Y=a;
this.F=this.Y.isMobile;this.Va=this.Y.F;this.C="leanback"==this.Y.Ba;this.o=this.F||this.C;this.X=!this.C&&!qJ(a);this.B=L1(b.instream);this.ia=1==b.livestream;this.G=L1(b.trueview);this.La=L1(b.aftv);this.la=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.xa=b.cafe_experiment_id;this.adTag=b.ad_tag;this.Ka=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.Pa=Nha(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.na=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.B||this.G)&&!this.Y.useMediaVolume;this.Ua=b.cid;this.$=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.Ea=(0,window.parseInt)(b.forced_skip_offset,10);this.ca=b.force_ad_type;this.va=b.force_ad_url;this.Za=b.freewheel_ad_tag;this.gender=$b(Oha,function(a){return a==b.ad_gender});
this.sa=b.dbp;this.K=L1(b.afc_rm_fallback);this.bb=!!b.mpu;this.H=L1(b.afv)&&!this.o;this.L=this.La&&this.G;this.M=this.La&&this.B&&!L1(b.no_afv_instream);this.J=L1(b.dclk);this.ha=L1(b.gpt_migration);this.ea=L1(b.forced_ad)&&!this.o;this.P=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.cb=!!b.fqsf;this.O=L1(b.invideo)&&!this.o;this.U=L1(b.mpu)&&!this.o;jb(this.Pa,"yt_mabv");this.Z=!!b.pla;this.jb=L1(b.shortform);this.D=L1(b.sffb);this.Ia=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.ob=b.pla_ad_tag;fa(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=L1(b.tag_for_child_directed);
this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.fa=this.La&&this.D&&!this.H;this.Fa=this.H||this.fa;this.vb=(0,window.parseInt)(b.ad_device,10);this.Ja=b.tpas_video_id;this.Wa=b.tpas_partner_id;this.vmap=b.vmap;this.Ob=this.Y.Ob;this.wb=b.post_ad_requests;this.showContentThumbnail=!0},Lha=function(a,b){if(D(E(a.dynamicAllocationAdTag)))return!1;
var c=(a.B||a.G)&&a.J;a.D&&a.J&&(c=c||a.O||a.U);if(!c)return!1;c=a.L||a.M;if(!(c||a.D&&a.H))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ha?25:102);window.document.referrer&&(d+=wa("ref="+wa(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength},Nha=function(a){if(D(E(a)))return[];
a=(new O(a)).o.get("channel");return null!=a?a.split("+"):[]},Y3=function(a,b){G.call(this);
this.C=a;this.o=new zm(this);I(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.W().experiments;this.M=c.ga("enable_dynamic_ad_break")&&!!this.G.lengthSeconds&&600<this.G.lengthSeconds;this.P=c.Sb("dynamic_ad_break_pause_threshold_sec")||5;this.O=c.Sb("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!=jj(a.o.W().H).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=lj("/gen_204?"+ff({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}),{});hq(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.Ft()},d4=function(a,b){a.D[b]&&(gN(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)||xi(a.A),c=K()+c,a.A=0==d?Mq(y(a.At,a,b,c,100),0):Mq(y(a.zt,a,b,c,100),0))},f4=function(a,b,c){a.o.W();
a=R1(a.o).$h;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)},Qha=function(a,b){i4(a);
0<b&&(a.F=vi(y(a.C,a),1E3*b))},i4=function(a){xi(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:H1(b.fb)},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&&zh(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.ha=new $3(this.o,this.F);this.X=zh(this.B,function(a){return D3(a)})},Rha=function(a){a.J.length||(a.J=ae(a.B,function(a){return"unloaded"==a.C}),0==a.J.length?zq(a.o):(a.X||zq(a.o),m4(a)))},m4=function(a){if(a.J.length){var b=a.J.shift();
b.subscribe("adBreakComplete",a.Bg,a);b.subscribe("adCompanionInitialized",a.yn,a);R3(b)}},Sha=function(a,b){function c(a){return a&&5!=a.fb.o()}
var d=ib(a.B,b),e=vb(a.B,0,d),d=vb(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!=H1(b.fb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.D.Et(b,d);c=a.D.Dt(b,c);c=new qq(d,c,e);a.G[b.getId()]=c;a.o.gb([c]);a.D.xt(b)}},o4=function(a,b){var c=b.getId();
a.G[c]&&(d4(a.D,c),gN(a.o.o,[a.G[c]],void 0),delete a.G[c])},r4=function(a,b){if(n(b)){var c=a.Zj(b);
if(c)if(a.A==c&&!c.A&&c.isVisible)c.show();else{if(a.A){if(5==c.fb.o()){a.A.A?a.P.push(b):c.show();return}a.lf(a.A)}if(k4(a.F,c))a.A=null,c=a.G[c.getId()],c.visible||(c.visible=!0,a.o.o.gb([c],1)),a.o.W()&&(K1(a.o.W(),"9412857")||K1(a.o.W(),"9412859"))&&a.Ys();else{5!=c.fb.o()&&(a.A=c);c.subscribe("adBreakComplete",a.xn,a);c.subscribe("adCompanionInitialized",a.yn,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.Bt(c);c.show()}}}},s4=function(a,
b,c){l4.call(this,a,b);
this.L=[];this.M=[];this.H=[];this.$=c;this.Z=window.NaN;this.U=a.A.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],Kha(c)){var d=new K3(c.B,c.F,c.fb,c.G,!0);b[a]=d;this.L.push(c)}this.X||this.Cg()},u4=function(a){t4(a);
a.Z=vi(y(a.Cg,a),1E3*(a.U-10))},t4=function(a){xi(a.Z);
a.Z=window.NaN},v4=function(a,b){l4.call(this,a,b);
this.M=a;this.$=!0;this.L=[];this.ia=1;this.fa=null;this.U=0},w4=function(a){if(null==a.A&&0<a.L.length){var b=a.L[0];
b.isVisible?(a.$=a.H.K,a.ca=Math.ceil(K()/1E3),b.subscribe("adBreakComplete",a.Z,a),a.A=b,b.show()):a.Z()}else null!=a.A&&a.U++},Tha=function(a,b){this.G=a;
this.A=b;this.J=K();this.F=0;this.o=a.A;this.D={};this.H=new Bha(a);var c=[];this.o.P&&this.o.B&&c.push("4_2");this.o.J&&(this.o.B&&c.push("1_2"),this.o.G&&c.push("1_2_1"),this.o.O&&c.push("1_1"),this.o.U&&c.push("1_3"));this.o.L&&c.push("2_2_1");this.o.M&&c.push("2_2");this.o.H&&c.push("2_1");(this.o.Fa||this.o.K)&&c.push("2_3");this.o.Z&&c.push("14_14");this.C=c.join(",");this.B="";this.D.allowed=this.C;(c=this.o.excludedAds)&&(this.D.ex_ads=c)},Uha=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.je());a=this.B.je();a.length&&(a=a[a.length-1],-1==a&&this.A.gb([this.o[a]]));0<this.A.A.A&&this.A.subscribe("endseeking",this.D,this)},Vha=function(a,b){A4(a);
0<b&&(a.C=vi(y(a.D,a),1E3*b))},A4=function(a){-1!=a.C&&(xi(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 qq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new qq(-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.Rt,this)},E4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.K},Wha=function(a){a=a.getAttribute("breakType");
return!!a&&zh(a.split(","),function(a){a=Sa(a);return"linear"==a})},Xha=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)(Qa(b/1E3,2,d)),h=Math.floor(e/60),k=Math.floor(h/60),h=h%60,d=Qa(e%60,2,d);c=d=k||c?k+":"+Qa(h,2)+":"+d:h+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c},Zha=function(a,b){var c=Math.max(Math.abs(a.C),Math.abs(a.J));
F(b,y(function(a){var e=zh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),h=Yha(this,a);
if(e||!h)return!1;this.B[h]=a},a));
return 0<Sb(a.B)},Yha=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.Qt:a.Pt,c=K()+c,a.A=Mq(y(d,a,b,c,100),0))},G4=function(a,b,c){a.o.W();
a=R1(a.o).$h;b.setVolume(c*a)},H4=function(a){G.call(this);
this.G=this.B=this.C=this.J=this.A=null;this.M=this.K=!1;this.o=a;this.H=null;this.P={};this.O=new zm(this);this.F=new zm(this);this.L=this.D=null},$ha=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 m={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":h,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return m[a]||a})});
return a},aia=function(a,b){var c=oA(b),d=c.childNodes[0];
if(!d)return b;var e=eb(gh(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var h=eb(gh(e),function(a){return"Extensions"==a.localName}),k=h?gh(h):[],k=eb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),h=(h=h.removeChild(k))?gh(h):[],m=e,l=1;
F(h,function(a){a=a.getAttribute("timeOffset");a=$ha(e,a,l);l++;d.insertBefore(a,m.nextSibling);m=a});
d.removeChild(e)}h=a.D.Kt(d);h||(Mb(a.D),a.D=new C4);return e||h?pA(c):b},bia=function(a){var b=Q1(a.o.A,a.o.W(),R1(a.o));
b.Xw=!0;b.lo=!1;b.jr=10;b.jm=a.D.It();return b},I4=function(a,b){var c=a.G?a.G.A():0,c=0<c?Math.floor(K()/1E3-c):0;
q4(a.o,b,{tfla:c})},cia=function(a,b){var c=wV(b),d=J4(b);
if(O1(c,"rm")&&a.o.A.K)return a.C=new T2(a.o),a.C.show(),!1;if(O1(c,"blockAllAds"))return a.A.sendImpressionUrls(),a.C=new W2(a.o,a.A,1,!0),!1;if(O1(c,"hideMaster")&&14!=d)return a.C=new W2(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 L2(d,a.o,c,!0);a.C.show();a.K=!1;return!0},K4=function(a,b){Z1();
a2();if(b&&a.o.W().experiments.ga("log_backfill_requests")){var c=b.C.o,d=1;-1==c?d=3:0<c&&(d=2);var e=14==n2(DV(b)).o?16:4,c=0<c?new G1(d,c):new G1(d);W1(new T1(c,CV(b),a.o,e))}},M4=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.o.A;
!c.o&&c.Fa&&(a.C=new T2(a.o),a.C.show());L4(a)}},N4=function(a){a.C&&(a.C.dispose(),a.C=null)},J4=function(a){var b=RV(a);
a=0<b.length?b.pop():IV(a);a=dia[a.toUpperCase()];return null!=a?a:0},L4=function(a){a.M||(zq(a.o),a.M=!0)},O4=function(a){C1.call(this,a);
this.logEvent=this.ua="ad";this.A=this.B=this.J=null;this.X=this.$=!1;this.C=this.L=null;$N.o=!0;$N.C=!1;$N.H=!0;a=$N;var b=!$p();a.F=b;$N.D=0;this.K=null;this.ha={};this.fa={at:"0"};this.H=new o2(this.o);Br(this.o,this.H.element,4);this.ca=this.D=null;this.O=-1;this.Ea=new Uha(this);this.P=new Dr(this);I(this,this.P);this.U=null},R1=function(a){return P4(a.app)},V1=function(a,b,c){a=a.J;
c=c||{};var d=(K()-a.J)/1E3;c.art=d;d=a.G.W();d.zd&&(c.feature=d.Ka);c.ad_flags=a.o.adFlags;(d=a.o.Ua)&&(c.cid=d);c.mt=a.A.getCurrentTime();(d=HB())&&(c.lact=d);(d=a.A.Bh())&&(c.len=d);a.o.cb&&(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?t2(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.vb;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],m=c;switch(a){case "trsp":h.slot_pos=d;break;case "break_type":jb(F1,Ya(d))&&(h.m_pos=m.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=Cha(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;case "ad_event":h.event=t2(d);break;case "ck_xy":a=d.split("x"),
2==a.length&&(h.i_x=a[0],h.i_y=a[1])}}k=A2(b.o);h=R1(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*H1(c.A.fb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.o.W();e.ei=h.eventId;e.lact=HB();e.vol=Math.round(b.o.app.Ra.Eb());e.vis=XL(c);c=Q4(b.o);e.p_w=c.width;e.p_h=c.height;e.rt=K();if(c=(c=dM(k))&&Jg(c)===window.document?er(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Re(e);if("undefined"==typeof k)throw Error("Keys are undefined");
c=new vf(null,0,void 0);e=Qe(e);for(h=0;h<k.length;h++)a=k[h],d=e[h],da(d)?Af(c,a,d):Gf(c,a,d);b=b.o.W().baseYtUrl+"api/stats/ads";b=new O(b);tf(b,c);hq(b.toString())}},R4=function(a,b,c){c=c||{};
c.ad_error=b;V1(a,7,c)},S4=function(a,b,c){a.app.Ra.Da(b,c)},T4=function(a){if(!a.$){var b=a.W().baseYtUrl;
hq(b+"mac_204?action_fcts=1");a.$=!0}},U4=function(a){return a.B instanceof v4?a.B:null},W4=function(a){a=a.H;
if(a.A.W().J)a=a.A.app.B;else{if(!a.D){var b;b=a.A.app;if(b.Y.J){var c=ar(b.B.o),d=mr(b.B.o);b.xa=new we(c.x,c.y,d.width,d.height);sM(b.F);b.B.o.loop=!1;b.B.o.playbackRate=1;ZI(b.B);b=b.B.ma()}else b=V4.getTag(void 0,void 0);a.D=b;$d(a.D,["video-stream","ad-video"])}a=new bJ(a.D)}return a},A2=function(a){if(!a.D){var b=ec(a.W().O);
a.W().experiments.ga("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=R1(a).eventId;b.content_v=R1(a).videoId;b=new sJ(b);b.Ba="adunit";var c=W4(a);b.Be=c;a.D=new aM(b,2,new D1(b,""),a.app.G,y(a.app.L.S,a.app.L))}return a.D},Z4=function(a){if(a.D&&a.D==wq(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.Ma(),new we(0,0,a.width,a.height)):nr(a.Ca())},$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;Rha(a.B)},p4=function(a){a.X=!0;
a.S("command_redirect_controls",a,["play_pause"],void 0);a.C||a.pauseVideo()},a5=function(a){r2(a.H);
a.X=!1;Dq(a)},F2=function(a,b){switch(b){case 1:a.O=1;
S4(a,"onAdStart");break;case 0:a.O=0,S4(a,"onAdEnd")}},E2=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.fa||(d.fa=Ev(d.pq,d)),KM(d.F),E1(d.K,b5(d)));0==b&&c&&(d.A.ca=c);c=d.Y;"leanback"==c.Ba&&c.Ya&&(0==b?d.Fa=d.B:d.Fa=a,d.o.Da("onAdStateChange",b))},O3=function(a,b){var c=b;
"nl"==b&&(c=a.J,c.F++,c=c.F.toString());a.ha[c]=K();"bs"!=c&&"fb"!=c||Aq(a,a.ha,a.fa)},q4=function(a,b,c){a=a.Ea;
var d=c5,d=d||c5;I1(a.o.W(),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(eia,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.Aq,this);a.o.addEventListener("onCaptionsTrackListChanged",this.zq,this);this.D=!1;this.o=c;c.subscribe("proxyStateChange",this.Mq,this);c.subscribe("remotePlayerChange",this.hm,this);c.subscribe("remoteQueueChange",this.im,this);this.L=new gz;this.H=this.G=window.NaN;this.K=0;this.B={};this.F=null;this.J=new xm(this.PD,1E3,this);I(this,this.J);this.M=0;this.C=!1;a=this.A.o.zb("captions","track");ac(a)||g5(this,a);this.im();this.hm()},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 gz));
Cy(a.A.app.Ra.W())||(a.C=!0)},g5=function(a,b){if(m5(a)&&!a.D){if(b){var c={style:a.A.o.zb("captions","displaySettings")};
hc(c,b);a.o.Bm(n5(a),c)}else a.o.Bm(n5(a),null);a.B=vo(a.o).B}},o5=function(a){a.o.pause();
var b=vo(a.o);i5(a,oo(b));j5(a);k5(a,new gz(4))},q5=function(a){a.o.play();
p5(a);k5(a,new gz(8))},r5=function(a,b){var c=a.A.o.Cc();
c?yo(a.o,n5(a),b,c.Mb(),a.A.o.getVideoData().playlistId):yo(a.o,n5(a),b);k5(a,new gz(1))},s5=function(a,b){if(b){var c=a.A.o.zb("captions","tracklist",{Fp:1});
c&&c.length?a.A.o.De("captions","track",b):(a.A.o.Pj("captions"),a.D=!0)}else a.A.o.De("captions","track",{})},m5=function(a){return mo(vo(a.o))==n5(a)},n5=function(a){return a.A.o.getVideoData().videoId},p5=function(a){j5(a);
if(!a.o.isDisposed()){var b=vo(a.o);b.kb()&&k5(a,new gz(8));i5(a,oo(b));a.G=vi(y(function(){p5(this)},a),500)}},j5=function(a){xi(a.G);
a.G=window.NaN},t5=function(a){xi(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 $L(b,c))},u5=function(a){C1.call(this,a);
this.ua=this.logEvent="remote";this.C={key:Fj(),name:Q("YTP_MDX_MY_COMPUTER")};this.B=null;this.H=[];this.J=this.L=this.A=null;this.O=[this.C];this.D=this.C;this.P=new gz;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.Ra.Da("onMdxReceiversChange")},w5=function(a){Oq.call(this,["div",
"html5-video-player",{tabindex:-1,id:a.X.attrs.id},["div","html5-video-container",{"data-layer":0}]]);oi(this.element,"version",a.X.assets.js);this.app=a;this.M=null;this.D=this.ra["html5-video-container"];this.ca=!!this.D;this.G=new we(0,0,0,0);this.A=null;this.J=new we(0,0,0,0);this.O=this.$=0;this.L=!1;this.K=window.NaN;a=a.W();this.H=null;this.addEventListener=y(this.element.addEventListener,this.element);this.removeEventListener=y(this.element.removeEventListener,this.element);this.dispatchEvent=
function(){};
a=Cy(a)&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&window.matchMedia?y(window.matchMedia,window):v;this.X=a("(max-width: 656px)");this.la=a("(min-width: 657px)");this.ha=a("(min-width: 1294px) and (min-height: 630px)");this.ea=a("(min-width: 1720px) and (min-height: 980px)");this.ia=a("(min-width: 967px)");this.fa=a("(min-width: 1320px) and (min-height: 870px)");this.F=null;Bi({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_SPONSORED_PRODUCT_BADGE:"Shop",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",YTP_MULTICAM_INDEX:"Viewing $CAMERA_INDEX of $CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"More cameras available"});this.app.Ra.addEventListener("initializingmode",this.uy,this);this.app.Ra.addEventListener("videoplayerreset",
this.xG,this);this.app.Ra.addEventListener("videodatachange",this.wG,this);this.app.Ra.addEventListener("presentingplayerstatechange",this.Qx,this)},gia=function(a,b){a.A=b;
a.L=!1;if(!a.A.parentNode)try{ch(a.D,a.A,0)}catch(d){var c="videoElement_: "+!!a.A+", containerElement: "+!!a.D+", containerElement.childNodes: "+!(!a.D||!a.D.childNodes)+", containerInitiallyTruthy: "+a.ca+", isDisposed: "+a.isDisposed();throw Error(c);}a.F&&(a.F.disconnect(),a.F=null);!a.app.W().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 we(0,0,0,0),x5(this))}},a)),a.F.observe(a.A,{attributes:!0}));
a.J=new we(0,0,0,0);x5(a);C2(a);fia(a)},fia=function(a){L(a.A,"video-stream");
L(a.A,"html5-main-video");var b=a.app.W();b.Fa&&a.A.setAttribute("data-no-fullscreen",!0);b.ac&&a.A.setAttribute("webkit-playsinline","");b.Yd&&a.T(a.A,"click",a.A.play,a.A)},z5=function(a,b){if(a.A){var c=a.app.W();
Iw&&(a.A.setAttribute("x-webkit-airplay","allow"),b.title?a.A.setAttribute("title",b.title):a.A.removeAttribute("title"));var d;c.vf&&b.videoId?d=b.gc(c,"default.jpg"):c.experiments.ga("legacy_poster_behavior")||zc&&!y5&&!Zp()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.A.poster=d)}c=b.ad("yt:bgcolor");a.D.style.backgroundColor=c?c:"";a.$=iv(b.ad("yt:stretch"));c=b.ad("yt:crop");a.O="fullwidth"==c?window.Infinity:iv(c)},GH=function(a){return(a=a.A)?
A5(a.videoWidth,a.videoHeight):window.NaN},CF=function(a,b){var c=a.Ma(),d=B5(a,c,GH(a),C5(a),b);
return new we((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)},B5=function(a,b,c,d,e){c=a.$||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 Iw?!0:"3"!=a.app.W().B&&!(0,window.isNaN)(GH(a))},E5=function(a){a=
(a=wq(a.app))&&a.getPlayerState();
return!a||T(a,2)||qz(a)},C2=function(a){var b="3"==a.app.W().B&&!a.L&&!E5(a);
a.A.controls=b;a.A.tabIndex=b?0:-1},x5=function(a){var b=GH(a),c=a.Ma(),d=1,e=C5(a),h=!1,k=B5(a,c,b);
E5(a)?(b=-c.height,Iw?b*=window.devicePixelRatio:tu&&(b-=window.screen.height),b=new we(0,b,c.width,c.height)):e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new we((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new we(0,0,c.width,c.height);ye(a.J,b)||(a.J=b,kr(a.A,ze(b)),$q(a.A,Ae(b)),h=!0);c=new we((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ye(a.G,c)||(a.G=c,h=!0);Uq(a.A,"transform",1==d?"none":"scaleX("+d+")");return h},F5=function(a,b,c,d){Dr.call(this);
this.T(a,"click",this.K);this.T(a,"dblclick",this.H);this.J=b;this.C=c;this.D=d||null;this.A=new Wd(this.G,200,this);I(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&&hq(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,hia);Ml(c,"loadeddata",y(c.Gw,c));Ml(c,"volumechange",y(c.Iw,c));nJ&&6<=zx&&Ml(c,"webkitbeginfullscreen",y(c.play,c));b||c.src||c.load();a.A.push(c);return c},J5=function(a,b,c,d){Lj.call(this);
this.C=a;this.P=y(b,null);this.A=0;this.F=!1;this.B=new re(window.NaN,window.NaN);this.o=new Dr(this);I(this,this.o);b=d?4E3:3E3;this.J=new Wd(pa(this.qb,1,!1),b,this);I(this,this.J);this.K=new Wd(pa(this.qb,2,!1),b,this);I(this,this.K);this.L=new Wd(pa(this.qb,512,!1),0,this);I(this,this.L);this.M=c&&0<c.M.length?5E3:3E3;d||(this.G=this.o.T(a,"mouseover",this.Vt),this.o.T(a,"mousemove",this.sG),this.o.T(a,"mouseleave",this.Gz));Rq?this.o.T(a,"keypress",this.oz):this.o.T(a,"focusin",this.ix);this.D=
this.o.T(a,"mousedown",this.Ut);this.H=this.o.T(a,"touchstart",this.Wt);this.O=null;this.qb(640,!0)},K5=function(a){R.call(this,["span"]);
Mf(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,m=0;m<k;m++){var l=4*m;h.data[l]=h.data[l+1]=h.data[l+2]=Math.floor(35*Math.random());h.data[l+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),I(this,this.A));a=DF(this.D).Ma();this.A&&L5(this.A,a.width,a.height)},iia=function(a,b,c){Q5("add_to_watch_later_list",a,b,c)},jia=function(a,b,c){Q5("delete_from_watch_later_list",a,b,c)},Q5=function(a,b,c,d){tj(c?c+"playlist_video_ajax?action_"+
a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",
Rc:{feature:b.feature||null,authuser:b.Bb||null,pageid:b.pageId||null},Hb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.wO||null,add_to_playlists:b.mO||null,plid:ti("PLAYBACK_ID")||null},context:b.context,onError:b.onError,sb:function(a,c){var d=c.result;d&&d.actions&&G5(d.actions);b.sb.call(this,a,c)},
Zb:b.Zb,withCredentials:!!d})},R5=function(a,b){R.call(this,["span",
"","{{sparkline_container}}"]);this.F=a;this.D=b;this.A=new K5("");I(this,this.A);this.B("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}}"]]]]);this.T(this.ra["html5-video-info-panel-close"],"click",this.ka);this.D=new R5(200,14);I(this,this.D);this.B("bandwidth_sparkline",this.D);this.F=new R5(200,14);I(this,this.F);this.B("live_latency_sparkline",this.F);this.G=new Wd(this.H,500,this);I(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&&(Jq(a.o),a.o=null)},W5=function(a){Oq.call(this,["div",
"ytp-ad-progress-bar-container",["div","ytp-ad-progress-bar"]]);this.D=a;this.H=this.ra["ytp-ad-progress-bar"];this.A=null;this.T(a,"presentingplayerstatechange",this.G);this.ka();this.G()},X5=function(a){R.call(this,["div",
"ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.A=new yr(this,500);I(this,this.A);this.da=a;this.D=null},Z5=function(a){var b=fA(a.da);
iz(b)?(b=a.da.getVideoData(),b.Ga&&!b.$d?Y5(a,3):Y5(a,2),a.A.show(!0)):T(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=Q("YTP_PAUSE");d=Nf?'<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=Q("YTP_PLAY");d=Nf?'<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=Q("YTP_STOP"),d=Nf?'<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.B("label",c);d&&Mf(e,d)}},$5=function(a,b){var c=["button",
["ytp-button","ytp-cards-button"],{"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"},["span","ytp-cards-button-icon-default"],["span","ytp-cards-button-icon-shopping"]];R.call(this,c);var c=Og("ytp-cards-button-icon-default",this.element),d=Og("ytp-cards-button-icon-shopping",this.element);Mf(c,Nf?'<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>');
Mf(d,Nf?'<div class="ytp-icon ytp-icon-shopping-card"></div>':'<svg height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><path class="ytp-svg-shadow" d="M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z" /><path class="ytp-svg-fill" d="M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z" fill-opacity="1" /><path class="ytp-svg-shadow-fill" d="M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z" fill="#000" fill-opacity="0.15" /></svg>');
var e=a.W().experiments,h=a.Ca();Ob(kia,function(a,b){e.ga(b)&&F(a,function(a){L(h,a)})});
this.da=a;this.H=b;this.A=null;this.D=new yr(this,250,!0,100);I(this,this.D);this.ka();this.R("click",this.F);this.R("mouseover",this.G);qC(this,!0)},qC=function(a,b){b?(a.element.title=Q("YTP_DRAWER_HEADER_TEXT_2"),a.A=a6(a.H.A,a.element)):(a.A(),a.A=null,a.element.title="")},b6=function(a,b,c){this.va=!!c;
this.ha=this.fa=null;Oq.call(this,a);this.ia=new yr(this,b);this.K=null},c6=function(a){a.K&&(window.document.activeElement&&mh(a.element,window.document.activeElement)&&(sh(a.K),a.K.focus()),a.K=null)},d6=function(a){return a.C&&3!=a.ia.o},f6=function(a,b){this.D=[a];
this.F=a;e6(this,a);this.size=new ue(0,0);this.H=this.J=null;this.na=this.sa=0;b6.call(this,["div",["ytp-popup",b||null],{child:a}],100,!0);this.R("keydown",this.gH)},e6=function(a,b){a.F.Ha("size-change",a.wh,a);
a.F=b;a.F.subscribe("size-change",a.wh,a)},g6=function(a){kr(a.element,a.sa||"100%",a.na||"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=mr(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=mr(b.ra["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&&Xd(a.J);
a.H&&Xd(a.H);b.Ha("back",a.te,a);c.subscribe("back",a.te,a);c.o(a.element);e6(a,c);if(a.C){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;g6(a);d=0==!d?-e.width:a.size.width;kr(a.element,e);Uq(c.element,"transform","translateX("+d+"px)");Uq(c.element,"opacity","0");a.J=new Wd(pa(a.JD,b,c,-d),20,a);a.J.start()}else Uq(c.element,"transform","translateX(0)"),Uq(c.element,"opacity","1"),Jq(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){Oq.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.Ow);if(0<=c)return;c=~c;wb(a.A,c,0,b);ch(a.element,b.element,c)}b.subscribe("size-change",a.gm,a);a.S("size-change")},n6=function(a,b,c,d){Oq.call(this,a);
this.priority=b;c&&m6(this,c);d&&this.Jb(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.B("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 m="ytp-panel-options";k.push(["button",["ytp-button",m],Q("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Oq.call(this,e);this.D=this.ra["ytp-panel-content"];this.H=b;this.F=!1;c&&(this.T(this.ra[h],"click",this.L),this.F=!0,d&&this.T(this.ra[m],"click",d));this.H.subscribe("size-change",this.G,this);this.T(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.ea=new Dr(this);I(this,this.ea);this.L=new Oq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);I(this,this.L);this.la=new p6(a,this.L);I(this,this.la);var b=new k6("contextmenu");I(this,b);this.O=new q6(8);I(this,this.O);l6(b,this.O,!0);this.O.R("click",this.PG,this);this.P=new q6(7);I(this,this.P);l6(b,this.P,!0);this.P.R("click",this.ZA,this);this.M=new q6(6);I(this,this.M);l6(b,this.M,!0);this.M.R("click",this.OG,this);var c=this.A.W();c.experiments.ga("loop_toggle_killswitch")||
(this.$=new s6(Q("YTP_LOOP"),5),I(this,this.$),l6(b,this.$,!0),this.$.R("click",this.nB,this));this.ca=new n6(o6({href:"{{href}}",target:"_blank"},void 0,!0),4,Q("YTP_REPORT_ISSUE"));I(this,this.ca);l6(b,this.ca,!0);this.ca.R("click",this.RG,this);this.X=new q6(3);I(this,this.X);l6(b,this.X,!0);this.X.R("click",this.NG,this);var d=new n6(o6(),2,Q("YTP_SHOW_VIDEO_INFO"));I(this,d);l6(b,d,!0);d.R("click",this.SG,this);c="//"+yJ(c)+"/html5";c=new n6(o6({href:c,target:"_blank"},void 0,!0),1,Q("YTP_HTML5_CONTEXT_MENU_LINK"));
I(this,c);l6(b,c,!0);c.R("click",this.Jz,this);b=new p6(this.A,b);I(this,b);f6.call(this,b);L(this.element,"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Dl&&wc(43)&&(b=!0);MH&&!wc(41)&&(b=!1);b&&(this.G=new R(["div","ytp-html5-clipboard"]),I(this,this.G),this.G.o(this.element));u6(this);this.T(this.A,"fullscreentoggled",this.MG);this.T(this.A,"loopchange",this.mB);this.T(this.A,"pageTransition",this.QG);this.T(this.A,"videodatachange",this.TG);
this.T(DF(this.A),"contextmenu",this.EA);this.T(this.L.element,"click",this.FA);v6(this,a.getVideoData());this.o(window.document.body)},x6=function(a,b){var c;
if(a.G){oh(a.G.element,b);Nq(a.G.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.tb():(a.L.Jb(b,"text"),i6(a,a.la),Nq(a.L.element),a.G&&(a.G=null,u6(a)))},v6=function(a,b){var c=a.A.W(),d=!c.D&&!!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.O&&(c.partnerid=b.O),c=hf("//support.google.com/googleplay/",c));a.M.rb(d&&b.allowEmbed);a.O.rb(d);a.P.rb(d&&!b.Ga);a.ca.Jb(c,"href")},u6=function(a){var b=!!a.G;
m6(a.X,Q(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));r6(a.X,!b);m6(a.M,Q(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));r6(a.M,!b);m6(a.O,Q(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));r6(a.O,!b);m6(a.P,Q(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));r6(a.P,!b)},y6=function(a){this.F=new Dr(this);
zr.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.D=new Wd(this.bu,0,this);I(this,this.D);this.bu();this.T(a,"presentingplayerstatechange",this.VG);"detailpage"==a.W().Ba&&this.T(a,"videoplayerreset",this.UG)},z6=function(a,b,c){var d=qz(c),e=!b.W().experiments.ga("disable_new_pause_state3");
b=T(c,2)&&!SM(b)&&(!e||!Sy(b.app));d||b?a.show():(a.ka(),T(c,1)||a.stop())},A6=function(a,b,c,d,e,h,k){Dr.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);this.T(b,"mousedown",a);this.T(c.element,"mousedown",a);this.T(b,"keydown",this.D);this.T(c.element,"keydown",this.D);this.T(b,"keyup",this.F);this.T(c.element,"keyup",this.F)},C6=function(a,b,c){var d=!1,e=a.o.W();
if(!e.ob){switch(b){case 80:c&&(a.o.Rj(),d=!0);break;case 78:c&&(a.o.Qj(),d=!0);break;case 74:a.o.Sc(-10);d=!0;break;case 76:a.o.Sc(10);d=!0;break;case 77:a.o.Dc()?a.o.unMute():a.o.mute();d=!0;break;case 75:Z5(a.H);iz(fA(a.o))?a.o.pauseVideo():a.o.md();d=!0;break;case 190:if(c){if(e.ca)for(b=a.o.Nj(),c=a.o.app.U,e=0;e<b.length-1;e++)b[e]==c&&(a.o.Dh(b[e+1],!0),d=!0)}else B6(a,1),d=!0;break;case 188:if(c){if(e.ca)for(b=a.o.Nj(),c=a.o.app.U,e=b.length-1;1<=e;e--)b[e]==c&&(a.o.Dh(b[e-1],!0),d=!0)}else B6(a,
-1),d=!0;break;case 70:Ay(a.o)&&(Dy(a.o),d=!0)}d&&a.G.qb(2,!0)}return d},E6=function(a,b,c,d){if(QM(a.o.app.D,"captions")){for(var e=a.o.zb("captions","displaySettings"),h,k=0;k<D6.length;k++){var m=D6[k];
if(m.option==b){h=m.options;break}}for(var l,k=0;k<h.length;k++)h[k].option==e[b]&&(l=k);if(d)if(c){if(0==l)return!1}else if(l==h.length-1)return!1;d={};d[b]=h[(l+(c?h.length-1:1))%h.length].option;WM(a.o,d);return!0}return!1},B6=function(a,b){if(T(fA(a.o),4)){var c=a.o.getVideoData().B;
c&&(c=c.video)&&a.o.Sc(b/(c.fps||30))}},G6=function(a){var b=["ytp-large-play-button",
"ytp-button"];a.W().isMobile&&b.push("ytp-touch-device");R.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.W();Mf(this.element,b.Ob?Nf?'<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>':
Nf?'<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 yr(this,250);I(this,this.D);this.T(a,"presentingplayerstatechange",this.G);F6(this,fA(a))},F6=function(a,b){if(a.A.W().tf&&!a.F){z6(a.D,a.A,b);
var c;c=(c=a.A.getVideoData())&&c.title?Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):Q("YTP_PLAY");a.B("label",c)}else a.ka()},H6=function(a,b,c){var d=b.xb(c),e=a.W(),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",Q("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]]);this.A=a;this.D=c;this.R("click",this.F)},
I6=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":Q("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.ra["ytp-playlist-menu-close"];Mf(c,Sf());this.T(c,"click",this.jH);this.T(this.ra["ytp-playlist-menu-title-name"],
"click",this.wC);this.G=this.H=this.A=null;this.L=this.ra["ytp-playlist-menu-items"];this.F=[];this.J=b},J6=function(a,b){a.A!=b&&(a.A&&a.A.Ha("shuffle",a.sm,a),a.A=b,a.H=null,b?b.subscribe("shuffle",a.sm,a):a.C&&a.J())},K6=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":Q("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];R.call(this,d);Mf(this.ra["ytp-playlist-menu-button-icon"],Tf());this.F=a;this.A=null;this.J=c;this.G=b.A;this.T(a,"videodatachange",this.H);this.T(a,"onPlaylistUpdate",this.H);this.T(a,"presentingplayerstatechange",this.D);this.T(a,"resize",this.D);this.ka();this.H();
Lb(this,a6(this.G,this.element));this.R("click",this.J)},L6=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:Q("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},Q("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:Q("YTP_SHARE_LINK"),"aria-label":Q("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",["input","ytp-share-panel-include-playlist-checkbox",
{type:"checkbox",checked:!0}],Q("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",Q("YTP_SHARE_PANEL_ERROR")]]];b6.call(this,d,250);this.D=a;this.F=b.A;this.J=c;this.A=[];this.M=this.ra["ytp-share-panel-inner-content"];this.P=this.ra["ytp-share-panel-loading-spinner"];Mf(this.P,Vf());this.G=this.ra["ytp-share-panel-close"];Mf(this.G,Sf());this.T(this.G,"click",this.J);Lb(this,a6(this.F,this.G));
this.L=this.ra["ytp-share-panel-include-playlist-checkbox"];this.T(this.L,"click",this.ku);this.H=this.ra["ytp-share-panel-link"];Lb(this,a6(this.F,this.H));this.R("click",this.HB);this.T(a,"videoplayerreset",this.ka);this.T(a,"fullscreentoggled",this.vH)},lia=function(a){switch(a){case "facebook":return Nf?'<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 Nf?'<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 Nf?'<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}},M6=function(a){for(var b=0;b<a.A.length;b++)Jq(a.A[b]),Mb(a.A[b]);
a.A=[]},N6=function(a,b,c,d,e){c=["button",
["ytp-button","ytp-share-button"],{title:Q("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];R.call(this,c);Mf(this.element,Nf?'<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-38" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-38" /></svg>');
this.A=a;this.F=e;this.R("click",d);this.T(a,"videodatachange",this.D);this.T(a,"resize",this.D);this.D();Lb(this,a6(b.A,this.element))},O6=function(a){R.call(this,["div",
"ytp-webgl-spherical-control",{tabindex:0,"aria-label":Q("YTP_SPHERICAL_CONTROL")}]);Mf(this.element,Nf?'<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-40" 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-41" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-40" /><use fill="#fff" xlink:href="#ytp-svg-40" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-41" /><use fill="#999" xlink:href="#ytp-svg-41" /></svg>');
this.D=a;this.fa=this.ea=this.G=this.H=null;this.A=[];this.F=0;this.ca=null;this.J=new yA(this.xH,null,this);I(this,this.J);this.P=-1;this.U=this.K=this.X=this.M=this.$=this.L=0;this.O=!1;this.T(a,"videodatachange",this.Hn);this.T(a,"onApiChange",this.Hn);this.ka();this.Hn()},P6=function(a,b,c,d){a.$=le(b+a.$,-1,1);
a.X=le(c+a.X,-1,1);a.U=le(d+a.U,-1,1);1!=a.F&&(a.F=1,L(a.element,"ytp-dragging"),a.P=K(),a.J.start())},Q6=function(a){a.J.stop();
a.F=0;a.$=0;a.X=0;a.U=0;a.A=[];be(a.element,"ytp-dragging")},R6=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;ZM(a.D,{shader:"Spherical",yaw:b,pitch:c,fov:d})},S6=function(a,b){if(!(-1<a.A.indexOf(b)))switch(b){case 37:case 65:P6(a,1,0,0);
a.A.push(b);break;case 39:case 68:P6(a,-1,0,0);a.A.push(b);break;case 38:case 87:P6(a,0,1,0);a.A.push(b);break;case 40:case 83:P6(a,0,-1,0);a.A.push(b);break;case 107:P6(a,0,0,-1);a.A.push(b);break;case 109:P6(a,0,0,1),a.A.push(b)}},T6=function(a,b){var c=a.A.indexOf(b);
if(-1<c)switch(a.A.splice(c,1),b){case 37:case 65:P6(a,-1,0,0);break;case 39:case 68:P6(a,1,0,0);break;case 38:case 87:P6(a,0,-1,0);break;case 40:case 83:P6(a,0,1,0);break;case 107:P6(a,0,0,1);break;case 109:P6(a,0,0,-1)}0==a.A.length&&(Q6(a),a.F=2,a.J.start())},V6=function(a){var b=["div",
"ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",Q("YTP_PLAYBACK_STALLED_AT_START")]];R.call(this,b);this.G=this.ra["ytp-spinner-svg"];Mf(this.G,Vf());this.F=this.ra["ytp-spinner-message"];this.D=a;this.A=new Wd(this.show,500,this);this.T(a,"presentingplayerstatechange",this.AH);this.T(a,"onFrescaStateChange",this.VA);this.T(a,"playbackstalledatstart",this.OB);U6(this,fA(a))},U6=function(a,b){var c;
T(b,128)?c=0:!(c=T(b,16))&&(c=T(b,1))&&(c=QM(a.D.app.D,"fresca"),c=!(c&&c.loaded));c?a.A.start():a.ka()},W6=function(a,b){var c=["button",
["ytp-airplay-button","ytp-button"],{title:Q("YTP_AIRPLAY")}];R.call(this,c);this.A=a;this.R("click",this.F);this.T(a,"airplayactivechange",this.D);this.T(a,"airplayavailabilitychange",this.D);this.D();Lb(this,a6(b.A,this.element))},X6=function(a,b){Oq.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.ha=b.A;this.ca=new xm(this.XG,250,this);I(this,this.ca);this.J=DF(a).Ma().width;this.F=this.ra["ytp-storyboard-filmstrip"];this.ia=this.ra["ytp-storyboard-lens"];this.la=this.ra["ytp-storyboard-lens-thumbnail"];this.na=this.ra["ytp-storyboard-lens-timestamp"];
this.ea=this.ra["ytp-storyboard-thumbnail"];dh(this.ea);this.P=0;this.fa=!1;this.$=this.A=0;this.X=this.L=this.H=window.NaN;this.K=this.G=null;this.M=new Dr(this);this.O=new yr(this,100);this.T(this.D,"resize",this.WG);this.T(this.D,"beginseeking",this.Uw)},Y6=function(a,b){a.K&&a.K.Ha("l",a.Cj,a);
var c=!!a.G;a.G=b&&Qx(b);a.K=b&&Rx(b);a.fa=!!b&&b.Ga;a.G?(c||(a.M.T(a.D,"videodatachange",a.YG),a.M.T(a.D,"progresssync",a.dk),a.M.T(a.D,"videoplayerreset",a.dk),a.M.T(a.D,"endseeking",a.gx)),a.K.subscribe("l",a.Cj,a),a.X=window.NaN,a.H=window.NaN,a.L=window.NaN,a.dk(),a.O.show(!1,200)):(c&&Fr(a.M),a.ca.stop(),mv(a.P),a.O.ka(),a.O.stop())},Z6=function(a,b){var c=a.ea.cloneNode(!1),d=Xu(a.K,b,a.A);
l2(c,d,a.A,a.$);return c},$6=function(a){R.call(this,["div",
"ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.K=this.ra["ytp-storyboard-framepreview-img"];this.A=a;this.J=this.F=null;this.H=window.NaN;this.D=new Dr(this);this.G=new yr(this,100);this.T(a,"beginseeking",this.aH)},b7=function(a,b){var c=!!a.F;
a.F=b&&Qx(b);a.J=b&&Rx(b);a.F?(c||(a.D.T(a.A,"videodatachange",a.eH),a.D.T(a.A,"progresssync",a.cH),a.D.T(a.A,"resize",a.$G),a.D.T(a.A,"presentingplayerstatechange",a.dH),a.D.T(a.A,"endseeking",a.bH)),a.H=window.NaN,a7(a),a.G.show(!1,200)):(c&&Fr(a.D),a.G.ka(),a.G.stop())},a7=function(a){var b=a.A.getCurrentTime(),c=DF(a.A).Ma(),d=Vu(a.F,c.width),b=a.F.o[d].ck(b);
b!=a.H&&(a.H=b,Zu(a.J,b,c.width),b=Xu(a.J,b,c.width),l2(a.K,b,c.width,c.height))},d7=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);this.T(a,"fullscreentoggled",this.Ir);this.T(a,"presentingplayerstatechange",this.cu);this.R("click",this.fH);var c;c=Bh("fullscreenerror",window.document);"msfullscreenerror"==c&&(c="MSFullscreenError");c&&this.T(window.document,c,this.XA);a.W().Ua||c7(this);this.cu();this.Ir(a.Oa())},c7=function(a){if(!a.A){var b=Q(void 0!=Ah(["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);I(a,a.A);a.A.o(a.D.Ca());a.element.setAttribute("aria-disabled",!0);a.F();a.F=null}},e7=function(a,b,c){var d=["button",
["ytp-multicam-button","ytp-button"],{title:Q("YTP_SWITCH_CAMERA"),"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"}];R.call(this,d);Mf(this.element,Nf?'<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-44" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-44" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-44" /></svg>');
this.D=a;this.A=!1;this.F=b.A;this.H=new Wd(this.J,0,this);I(this,this.H);this.R("click",c);this.T(a,"presentingplayerstatechange",pa(this.G,!1));this.T(a,"videodatachange",this.K);this.G(!0);Lb(this,a6(this.F,this.element))},f7=function(a,b){this.F=new Dr(this);
I(this,this.F);var c=["div","ytp-multicam-menu",{role:"dialog"},["div","ytp-multicam-menu-header",["div","ytp-multicam-menu-title",Q("YTP_SWITCH_CAMERA"),["button",["ytp-multicam-menu-close","ytp-button"],{"aria-label":Q("YTP_CLOSE")}]]],["div","ytp-multicam-menu-items"]];b6.call(this,c,250);c=this.ra["ytp-multicam-menu-close"];Mf(c,Sf());this.T(c,"click",b);this.A=a;this.G=this.ra["ytp-multicam-menu-items"];this.D=[];this.H=b},g7=function(a,b,c,d,e,h,k,m){this.B=a;
this.G=b;this.o=c;this.D=d;this.A=e;this.F=h;this.C=k;this.H=m},h7=function(){this.B=null;
this.D=this.o=0;this.C=new yA(this.A,null,this);I(this,this.C)},l7=function(a,b,c){var d=window.document.createElement("span");
Mf(d,c);c=d.getElementsByTagName("path")[0].getAttribute("d");var e=b.getElementsByTagName("path")[0];b=e.getAttribute("d");var h=i7(b),k=i7(c);j7(a,function(a){e.setAttribute("d",k7(h,k,a))},200)},j7=function(a,b,c){a.B=b;
a.D=Qt();a.o=c;a.A()},i7=function(a){var b=[];
a=a.match(mia);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},k7=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},p7=function(a,b){R.call(this,["button",
["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);Mf(this.element,Wf());this.A=a;this.O=b.A;this.D=this.F=window.NaN;this.A.W().U||(this.G=this.element.getElementsByTagName("path")[0],this.K=this.element.getElementsByTagName("svg")[1],this.M=this.G.getAttribute("d"));this.H=new h7;I(this,this.H);this.R("click",this.L);this.T(a,"resize",this.J);this.T(a,"onVolumeChange",this.U);Lb(this,a6(b.A,this.element));this.J(DF(a).Ma());m7(this,a.Eb(),a.Dc())},m7=function(a,b,c){b=c?0:b/100;
if(a.A.W().U)b=0==b?Wf():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&&(Mf(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)?q7(a,b):j7(a.H,y(function(a){q7(this,d+(this.D-d)*a)},a),250);
a.D=b}a.B("title",c?Q("YTP_UNMUTE"):Q("YTP_MUTE"));r7(a.O)},q7=function(a,b){a.F=b;
var c=a.M,d=le(2*b,0,1);d&&(c+=" "+k7(nia,oia,d),(d=le(2*(b-.5),0,1))&&(c+=" "+k7(pia,qia,d)));a.G.setAttribute("d",c);a.K.style.opacity=Math.max(b/-.5,0)},s7=function(a,b){var c=["button",
["ytp-pip-button","ytp-button"],{title:Q("YTP_PIP")}];R.call(this,c);Mf(this.element,Nf?'<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))},u7=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 h7;I(this,this.H);this.T(a,"fullscreentoggled",this.J);this.T(a,"presentingplayerstatechange",this.K);this.T(a,"videodatachange",this.J);t7(this,fA(a));this.R("click",this.L,this)},v7=function(a){switch(a){case 1:return Nf?'<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 Nf?'<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 Nf?'<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-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>';
case 4:return Nf?'<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-42" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-42" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-42" /></svg>'}},t7=function(a,b){var c,d=Xx(a.A.getVideoData()),e=!1;
iz(b)?c=d?4:2:T(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.D!=c){var h;switch(c){case 2:h=Q("YTP_PAUSE");break;case 3:h=Q("YTP_REPLAY");break;case 1:h=Q("YTP_PLAY");break;case 4:h=Q("YTP_STOP")}3==c?(a.F||(a.F=a6(a.G,a.element)),Mf(a.element,v7(c)),a.update({title:h,label:null})):(a.F&&(a.F(),a.F=null),a.update({title:null,label:h}),d=v7(c),a.D&&3!=a.D&&!a.A.W().U?l7(a.H,a.element,d):Mf(a.element,d));r7(a.G);a.D=c}},w7=function(a,b,c){var d,e;
c?(d="ytp-next-button",e=Nf?'<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=
Nf?'<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}}"}]);Mf(this.element,e);this.A=a;this.P=b.A;this.F=c;this.D=this.K=null;this.M=!1;this.J=this.L=this.G=null;this.H=!1;this.T(a,"fullscreentoggled",this.Dg);this.T(a,"videodatachange",this.Dg);this.T(a,"onPlaylistUpdate",this.Dg);this.F||this.T(a,"resize",this.du);this.Dg()},x7=function(a){a.D&&a.D.Ha("shuffle",a.Dg,a)},
y7=function(a){return!!a.D&&!a.F&&3<=a.A.getCurrentTime()&&2!=a.A.getPresentingPlayerType()},z7=function(a){var b={duration:null,
preview:null,text:null,title:null,url:null},c=a.A.W(),d=UM(a.A),e=a.F&&Jy(a.A);if(a.H)b.title=Q("YTP_REPLAY");else if(d){var h=null;a.D&&(h=a.D.xb(a.F?iy(a.D):jy(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?ny(h.lengthSeconds):null;b.preview=h.gc(c,"default.jpg")}b.title=Q(a.F?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.K.K&&a.K.K.length&&(h=py(a.K.K[0]),b.url=h.bl(c),b.text=h.title,b.duration=h instanceof rx?ny(h.lengthSeconds):
null,b.preview=h.gc(c,"default.jpg")),b.title=Q("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.iH,a)):a.G&&(a.G(),a.G=null,a.za(a.L),a.L=null);r7(a.P)},B7=function(a,b){var c=["div",
"ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":Q("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:Q("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:Q("YTP_WATCH_ALL")}]];Oq.call(this,c);this.D=a;this.Ja=b.A;this.na=!1;this.G=this.cb=0;this.fa=1;this.ob=this.K=
0;this.H=window.NaN;this.Ua=!1;this.O=this.ea=0;this.vb=this.ra["ytp-ad-progress-list"];this.wb=this.ra["ytp-marker-progress-list"];this.Pa=this.ra["ytp-marker-crenellation-list"];this.ca={};this.la={};this.X=window.Infinity;c=b.A;this.M=this.ra["ytp-clip-end"];Mf(this.M,Qf());Lb(this,a6(c,this.M));this.sa=new d2(this.M,!0);I(this,this.sa);this.sa.subscribe("hoverstart",this.gu,this);this.sa.subscribe("hoverend",this.fu,this);this.T(this.M,"click",this.ek);this.Ka=this.ra["ytp-clip-end-exclude"];
this.Ib=this.ra["ytp-clip-start-exclude"];this.$=0;this.P=this.ra["ytp-clip-start"];Mf(this.P,Rf());Lb(this,a6(c,this.P));this.va=new d2(this.P,!0);I(this,this.va);this.va.subscribe("hoverstart",this.gu,this);this.va.subscribe("hoverend",this.fu,this);this.T(this.P,"click",this.ek);this.bb=this.ra["ytp-load-progress"];this.ia=0;this.Qb=this.ra["ytp-play-progress"];this.ha=this.ra["ytp-hover-progress"];this.J=0;this.jb=this.ra["ytp-progress-bar"];this.F=null;this.Fa=this.ra["ytp-scrubber-button"];
this.Ea=new re;this.Va=new k2;this.A=new g2(0,0);this.L=this.Ia=!1;this.Za=null;this.T(a,"presentingplayerstatechange",this.lH);this.T(a,"videodatachange",this.eu);this.T(a,"videoplayerreset",this.Ox);this.T(a,"cuerangesadded",this.ju);this.T(a,"cuerangesremoved",this.tH);this.T(a,"cuerangemarkersupdated",this.ju);this.T(a,"onPlaybackQualityChange",this.mH);A7(this,a.getVideoData(),!0)},F7=function(a){if(a.G){var b=a.D.gf(),c=new g2(b.seekableStart,b.seekableEnd),d=j2(c,b.loaded,0),b=j2(c,b.current,
0),e=a.A.A!=c.A||a.A.o!=c.o;
a.A=c;C7(a,b,d);e&&D7(a);E7(a)}},A7=function(a,b,c){var d=!!b&&Tx(b);
a.Ia=d&&b.$d;G7(a,eN(a.D));c&&(d?(c=b.clipEnd,a.$=b.clipStart,a.X=c,H7(a),C7(a,a.J,a.ia)):a.ek(),b=a.Ja,1==b.D&&b.Ic());F7(a)},I7=function(a){return!!a&&Tx(a)&&!!a.B&&a.B.video.o},J7=function(a,b){a.Ua=b;
M(a.bb,"ytp-fast-load",b)},K7=function(a,b,c,d){b=le(b,0,a.L?60:40);
a.K=b;var e=a.fa;a.fa=b/(a.L?60:40)*(Math.max(h2(a.A)/a.G,1)-1)+1;b=a.G*a.fa;a.O=le(d*b-c,0,b-a.G);e!=a.fa&&D7(a)},D7=function(a){var b=L7(a),c=-b.B/b.o,d=(-b.B+b.width)/b.o,e=gh(a.Pa),h=0;
if(a.K>.2*(a.L?60:40))for(var k=h2(a.A)/60*d,m=Math.ceil(h2(a.A)/60*c);m<k;m++){var l=e[h];l||(l=window.document.createElement("div"),a.Pa.appendChild(l));h++;l.className=0==m%60?"ytp-60m-progress":0==m%30?"ytp-30m-progress":0==m%15?"ytp-15m-progress":"ytp-1m-progress";l.style.left=(60*m/h2(a.A)-c)*b.o+"px"}b=a.Ia?a.A.o:0;a.update({boundTimeLeft:ny(i2(a.A,c)-b),boundTimeRight:ny(i2(a.A,d)-b)});for(c=e.length-1;c>=h;c--)dh(e[c]);a.element.style.height=a.K+(a.L?8:5)+"px";a.S("height-change",a.K);a.Fa.style.height=
a.K+(a.L?20:13)+"px";for(var p in a.ca)M7(a,a.ca[p],a.la[p]);H7(a);C7(a,a.J,a.ia)},L7=function(a){var b=a.Ea.x,c=a.G*a.fa,b=le(b,0,a.G);
a.Va.update(b,a.G,-a.O,-(c-a.O-a.G));return a.Va},C7=function(a,b,c){a.J=b;
a.ia=c;var d=L7(a),e=a.A.o,h=i2(a.A,a.J);a.update({ariamin:Math.floor(a.A.A),ariamax:Math.floor(e),arianow:Math.floor(h),arianowtext:Q("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:ny(h),DURATION:ny(e)})});var e=j2(a.A,a.$,0),k=j2(a.A,a.X,1),h=le(b,e,k);c=a.Ua?1:le(c,e,k);k=b*d.o+d.B;a.Fa.style.display=0<=k&&b<=d.width?"":"none";a.Fa.style.left=k+"px";N7(a,a.Qb,d,e,h);N7(a,a.bb,d,e,c)},N7=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.W().isMobile?(b.style.width=d+"px",Wq(b,"transform")):Uq(b,"transform","scalex("+(c.width?d/c.width:0)+")")},H7=function(a){var b=a.$>a.A.A,c=0<a.A.o&&a.X<a.A.o;
M(a.element,"ytp-clip-start-enabled",b);M(a.element,"ytp-clip-end-enabled",c);b=b?j2(a.A,a.$,0):0;c=c?j2(a.A,a.X,1):1;a.P.style.left=Math.round(1E3*b)/10+"%";a.M.style.left=Math.round(1E3*c)/10+"%";a.Ib.style.width=Math.round(1E3*b)/10+"%";a.Ka.style.left=Math.round(1E3*c)/10+"%";a.Ka.style.width=Math.round(1E3*(1-c))/10+"%"},E7=function(a){var b=L7(a);
N7(a,a.ha,b,a.J,b.A);M(a.ha,"ytp-hover-progress-light",b.A>a.J)},M7=function(a,b,c){var d=L7(a),e=j2(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=j2(a.A,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=le(e,0,h-k)),h=Math.min(h,e+k),b.color&&(c.style.background=b.color)}N7(a,c,d,e,h,!0);c.className=b.style},O7=function(a,b){var c=b.getId();
a.ca[c]==b&&(dh(a.la[c]),delete a.ca[c],delete a.la[c])},G7=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new d2(a.jb,!0),a.F.subscribe("hovermove",a.qH,a),a.F.subscribe("hoverend",a.pH,a),a.F.subscribe("dragstart",a.oH,a),a.F.subscribe("dragmove",a.sH,a),a.F.subscribe("dragend",a.rH,a),a.Za=a.R("keydown",a.nH)):a.F&&(a.element.setAttribute("aria-disabled",!0),a.za(a.Za),a.F.cancel(),a.F.dispose(),a.F=null)},Q7=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 yr(this,250);I(this,this.A);this.D=a;Mf(this.ra["ytp-remote-display-status-icon"],Of());this.T(a,"presentingplayerstatechange",this.F);P7(this,fA(a))},P7=function(a,b){if(3==a.D.getPresentingPlayerType()){var c;
c=T(b,128)?Q("YTP_MDX_PLAYER_ERROR"):Q("YTP_MDX_STATUS_CONNECTED");var d=a.D.zb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.A.show()}else a.A.ka()},R7=function(a,b,c){var d=["button",
["ytp-remote-button","ytp-button"],{title:Q("YTP_MDX_TOOLTIP")}];R.call(this,d);this.da=a;this.G=c;this.D=null;this.T(a,"onMdxReceiversChange",this.A);this.T(a,"presentingplayerstatechange",this.A);this.T(a,"resize",this.A);this.A();this.R("click",this.F,this);Lb(this,a6(b.A,this.element))},S7=function(a,b){s6.call(this,Q("YTP_ANNOTATIONS"),5);
this.G=b;this.da=a;this.D=!1;this.T(a,"videodatachange",this.F);this.T(a,"onApiChange",this.F);this.subscribe("select",this.H,this);this.F()},T7=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;I(this,this.H);this.P=new p6(c,this.H,a,e);I(this,this.P);this.R("keydown",this.uH);this.R("click",this.open)},U7=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],m=h==a.K;m&&(d=!0);if(k&&k.priority==-e){var m=a,l=h;m6(m.D[l],m.Gc(l,!0));delete a.D[h]}else k=new n6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":m?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.Gc(h,!0)),k.R("click",y(a.EB,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},V7=function(a,b){T7.call(this,Q("YTP_AUDIO_TRACK_TITLE"),2,a,b);
this.da=a;this.L=new R(["div","",["span","",Q("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);m6(this,this.L);this.M={};this.F=!1;this.T(a,"videodatachange",this.J);this.T(a,"onPlaybackAudioChange",this.J);this.J()},W7=function(a,b){s6.call(this,Q("YTP_AUTOPLAY"),6);
this.J=b;this.da=a;this.G=!1;this.D=[];this.T(a,"presentingplayerstatechange",this.F);this.subscribe("select",this.K,this);this.F()},X7=function(a,b){T7.call(this,Q("YTP_QUALITY_TITLE"),1,a,b);
L(this.H.element,"ytp-quality-menu");this.da=a;this.M={};this.L="unknown";this.F=!1;this.T(a,"videodatachange",this.G);this.T(a,"videoplayerreset",this.G);this.T(a,"onPlaybackQualityChange",this.J);this.G()},Y7=function(a,b,c){var d=(a=a.M[b])?a.qualityLabel:(d=Wr[b])?d+"p":Q("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},Z7=function(a,b){T7.call(this,Q("YTP_MDX_TITLE"),0,a,b);
this.da=a;this.F=!1;this.L={};this.T(a,"onMdxReceiversChange",this.J);this.T(a,"presentingplayerstatechange",this.J);this.J()},$7=function(a,b){T7.call(this,Q("YTP_SPEED_TITLE"),4,a,b);
this.da=a;this.F=!1;this.G=null;this.T(a,"presentingplayerstatechange",this.lu);this.lu()},b8=function(a,b,c,d){T7.call(this,a8(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);U7(this,ji(d.options,this.G))},a8=function(a){return(a.message?Q(a.message):a.text)||""},c8=function(a,b){this.J={};
this.A=new k6;for(var c=0;c<D6.length;c++){var d=D6[c],e=new b8(-c,a,b,d);I(this,e);e.subscribe("settingChange",this.K,this);this.J[d.option.toString()]=e;l6(this.A,e,!0)}c=new n6(o6(),-D6.length,Q("YTP_RESET"));I(this,c);c.R("click",y(this.K,this,"reset",!0));l6(this.A,c,!0);p6.call(this,a,this.A,Q("YTP_OPTIONS"))},d8=function(a,b){for(var c in b){var d=a.J[c];
if(d){var e=b[c].toString();d.D[e]&&d.Vc(e)}}},e8=function(a,b){T7.call(this,Q("YTP_AUTO_TRANSLATE"),0,a,b);
this.F={}},f8=function(a,b){T7.call(this,Q("YTP_SUBTITLES"),3,a,b,y(this.FD,this));
this.da=a;this.M=!1;this.F={};this.L=new R(["div","",["span","",Q("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);I(this,this.L);m6(this,this.L);this.J=new e8(a,b);I(this,this.J);this.J.subscribe("select",this.BC,this);this.G=new c8(a,b);I(this,this.G);this.G.subscribe("settingChange",this.FH,this);this.T(a,"videodatachange",this.Nh);this.T(a,"onApiChange",this.Nh);this.T(a,"onCaptionsTrackListChanged",this.Nh);this.T(a,"captionschanged",this.Nh);this.Nh()},i8=function(a){a.fontFamily=
g8.indexOf(a.fontFamilyOption);
a.charEdgeStyle=h8.indexOf(a.charEdgeStyle)},j8=function(a,b){T7.call(this,Q("YTP_THREED_SHORT"),7,a,b);
this.da=a;this.F=!1;this.T(a,"videodatachange",this.J);this.G=null;this.J()},k8=function(a){this.A=a;
this.G=new k6("ytp-main-menu-id");I(this,this.G);a=new p6(a,this.G);I(this,a);f6.call(this,a,"ytp-settings-menu");this.M=this.L=null;this.P=!1},m8=function(a){if(!a.P){a.P=!0;
var b=new X7(a.A,a);I(a,b);b=new f8(a.A,a);I(a,b);b=new S7(a.A,a);I(a,b);a.A.W().ca&&(b=new $7(a.A,a),I(a,b));b=new j8(a.A,a);I(a,b);a.A.W().bb&&(b=new W7(a.A,a),I(a,b));b=new V7(a.A,a);I(a,b);a.A.W().C&&(a.M=new Z7(a.A,a),I(a,a.M));l8(a.L,a.G.A.length)}},n8=function(a,b){l6(a.G,b);
l8(a.L,a.G.A.length)},o8=function(a,b){a.C&&1>=a.G.A.length&&a.ka();
a.G.remove(b);l8(a.L,a.G.A.length)},p8=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:Q("YTP_SETTINGS")}];R.call(this,d);Mf(this.element,Uf());this.D=c;this.D.subscribe("show",this.G,this);this.da=a;this.F=!0;this.R("click",this.J);this.T(this.da,"onPlaybackQualityChange",this.A);this.T(a,"videodatachange",this.A);this.T(a,"webglsettingschanged",this.A);this.T(a,"resize",this.H);Lb(this,a6(b.A,this.element));this.A();this.G(!1)},l8=function(a,b){a.F=!!b;
a.H(DF(a.da).Ma())},q8=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 h7;I(this,this.H);this.T(a,"sizestylechange",this.D);this.T(a,"fullscreentoggled",this.D);this.T(a,"presentingplayerstatechange",this.D);this.D();this.R("click",this.J);Lb(this,a6(this.G,this.element))},s8=function(a,b){var c=["button",
["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:Q("YTP_SUBTITLES_TOOLTIP")}];R.call(this,c);this.A=a;c=this.A.W().Z;-1!=r8.indexOf(c)?Mf(this.element,Nf?'<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>'):
Mf(this.element,Nf?'<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-43" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-43" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-43" /></svg>');this.T(a,"videodatachange",this.D);
this.T(a,"resize",this.D);this.T(a,"onApiChange",this.D);this.T(a,"onCaptionsTrackListChanged",this.D);this.T(a,"captionschanged",this.D);this.D();this.R("click",this.F);Lb(this,a6(b.A,this.element))},t8=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},Q("YTP_LIVE")]);I(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.GH);this.T(a,"presentingplayerstatechange",this.Eg);this.T(a,"resize",this.Eg);this.T(a,"liveviewshift",this.HH);this.T(a,"videodatachange",
this.IH);var c=a.getVideoData();c&&(this.F=c.Ga,M(this.element,"ytp-live",this.F));this.Eg()},v8=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.X=this.J=0;this.U=this.ra["ytp-volume-slider"];this.$=this.ra["ytp-volume-slider-handle"];this.K=new d2(this.U,!0);I(this,this.K);this.K.subscribe("dragstart",this.rC,this);this.K.subscribe("dragmove",this.qC,this);this.K.subscribe("dragend",
this.pC,this);this.P=null;this.D=this.G=this.F=!1;this.T(a,"onVolumeChange",this.LH);this.T(a,"resize",this.pu);this.T(a,"onShowControls",this.xo);this.T(a,"onHideControls",this.xo);this.T(this.element,"keydown",this.sC);this.T(this.element,"focus",pa(this.ou,!0));this.T(this.element,"blur",pa(this.ou,!1));this.pu(DF(a).Ma());this.L=FF(b);u8(this,this.A.Eb(),this.A.Dc())},u8=function(a,b,c){var d=Math.round(b),e=d+"% "+Q("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+Q("YTP_SCREENREADER_VOLUME_MUTED"):
"");
c=c?0:b/100;a.B("valuenow",d);a.B("valuetext",e);a.$.style.left=(a.L?72:48)*c+"px";a.J=b},w8=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=a.T(a.element,"mousewheel",a.KH):(a.za(a.P),a.P=null),M(a.O,"ytp-volume-slider-active",b))},x8=function(a,b){var c=a.W();
R.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:Q("YTP_URL_NAVIGATE_TO",{WEBSITE:zJ(c)}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.o?(Mf(this.element,Nf?'<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")):Mf(this.element,Nf?'<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);this.T(a,"videodatachange",this.D);this.D();Lb(this,a6(b.A,this.element))},y8=function(a,b,c){Dr.call(this);
var d=a.W();this.da=a;this.B=b;this.O=window.NaN;this.P=null;this.U=c;this.U.subscribe("autohideupdate",this.BH,this);c=!qz(fA(a));var e=new R(["div","ytp-gradient-bottom"]);I(this,e);Br(a,e.element,8);this.H=new yr(e,250,c,100);I(this,this.H);this.A=new R(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);I(this,this.A);Br(a,this.A.element,8);this.G=new yr(this.A,250,c,100);I(this,this.G);c=this.A.element.children[0];this.o=new k8(a);I(this,this.o);Br(a,this.o.element,6);this.o.subscribe("show",
this.WD,this);this.o.subscribe("show",b.CD,b);this.F=new B7(a,b);I(this,this.F);this.F.o(this.A.element,0);e=new X6(a,b);I(this,e);Br(a,e.element,4);this.F.subscribe("height-change",e.ZG,e);e=new $6(a);I(this,e);Br(a,e.element,4);e=new Gq(["div","ytp-left-controls"]);I(this,e);e.o(c);var h=new w7(a,b,!1);I(this,h);h.o(e.element);h=new u7(a,b);I(this,h);h.o(e.element);h=new w7(a,b,!0);I(this,h);h.o(e.element);h=new R(["span"]);I(this,h);h.o(e.element);if(d.wb){var k=new p7(a,b);I(this,k);k.o(h.element);
k=new d2(h.element);I(this,k);k.subscribe("hoverstart",this.EH,this);k=new d2(e.element);I(this,k);k.subscribe("hoverend",this.DH,this)}this.C=new v8(a,b,this.A.element);I(this,this.C);this.C.o(h.element);this.M=new t8(a,b);I(this,this.M);this.M.o(e.element);e=new Gq(["div","ytp-right-controls"]);I(this,e);e.o(c);c=new s8(a,b);I(this,c);c.o(e.element);c=new p8(a,b,this.o);I(this,c);this.o.L=c;c.o(e.element);c=y(this.RD,this);this.K=new f7(a,c);I(this,this.K);Br(a,this.K.element,5);this.J=new e7(a,
b,c);I(this,this.J);this.J.o(e.element);d.qd&&(c=new x8(a,b),I(this,c),c.o(e.element));c=new q8(a,b);I(this,c);c.o(e.element);d.C&&(c=new Q7(a),I(this,c),Br(a,c.element,4),c=new R7(a,b,this.o),I(this,c),c.o(e.element));d.od&&(d=new W6(a,b),I(this,d),d.o(e.element));d=hu();d.webkitSetPresentationMode&&ha(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new s7(a,b),I(this,d),d.o(e.element));this.D=new d7(a,b);I(this,this.D);this.D.o(e.element);this.T(a,"resize",
this.Jn);this.T(a,"fullscreentoggled",this.CH);this.T(a,"progresssync",this.In);this.Jn()},z8=function(a,b){qz(fA(a.da))||b?b&&(a.G.ka(),a.H.ka(),a.B.A.yf(a.ma())):b||(a.G.show(),a.H.show(),a.In())},A8=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.ra["ytp-title-link"];this.K=this.ra["ytp-title-channel-logo"];this.H=this.ra["ytp-title-playlist-icon"];
Mf(this.H,Tf());this.G=null;this.T(a,"videodatachange",this.F);this.T(a,"videoplayerreset",this.F);this.T(a,"resize",this.J);this.J(DF(a).Ma());this.F()},C8=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"):(be(a.element,"ytp-title-extra-info"),c&&(b.author&&b.mi&&b.profilePicture?B8(a,b.videoId,b.author,b.mi,b.profilePicture):(c=xJ(a.A.W(),b.videoId,!1),tj(c,{method:"GET",sb:y(a.M,a,b.videoId),withCredentials:!0}))))},B8=function(a,b,c,d,e){d=a.A.W().fa+"://"+yJ(a.A.W())+d;
a.K.style.backgroundImage="url("+e+")";a.B("channelImageLink",d);a.B("channelNameLink",d);a.B("channelName",Q("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.G=b;C8(a)},D8=function(a,b,c){var d=DF(a).Ma();
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.ha=a.W().isMobile;this.ia=b;this.la=c;this.P=this.ra["ytp-tooltip-bg"];this.sa=this.ra["ytp-tooltip-image"];this.ea=y(this.tB,this);this.X=y(this.vB,this);this.A=null;this.L=new yr(this,100);I(this,this.L);this.D=null;this.U=!1;this.M=this.K=null;
this.F=window.NaN;this.J="";this.ca=0;this.fa=d.width;this.O=!0;this.na=d;this.G=1;this.$=new Wd(this.xz,250,this);I(this,this.$)},F8=function(a,b){if(null!=a.D)if(b)switch(a.D){case 3:case 2:E8(a);
a.L.show(!1,400);break;default:a.L.show()}else a.L.ka();a.O=b},a6=function(a,b){if(a.ha)return v;
b.addEventListener("mouseover",a.X);return y(function(){this.A==b&&this.Ic();b.removeEventListener("mouseover",this.X)},a)},G8=function(a,b,c,d){(0,window.isNaN)(a.F)||(a.F=window.NaN,a.P.style.background="");
a.A=b;a.U=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(b=b.getAttribute("data-tooltip-image"))a.sa.style.backgroundImage="url("+b+")";M(a.element,"ytp-tooltip-image-enabled",!!b);a.D=c;a.H.addEventListener("resize",a.nu,a);a.O&&(E8(a),a.L.show(!1,400))},E8=function(a){var b=a.A.getAttribute("data-tooltip-text");
if(b&&!a.U){a.B("text",b);var c=a.A.getAttribute("data-duration");a.update({title:a.J,duration:c});var d=a.A.getAttribute("data-preview"),e=96*a.G,h=54*a.G,k=120*a.G,m=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-m)/2+"px/"+k+"px "+m+"px":"";$d(a.element,["ytp-text-detail","ytp-preview"]);M(a.element,"ytp-has-duration",!!c)}else a.B("text",a.J),ce(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);c=mr(a.A);d=ir(a.A,
a.H.Ca());H8(a,d.x+c.width/2,!!b,d.y+c.height/2,c.height)},H8=function(a,b,c,d,e){a.element.style.left="0px";
a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.fa,200)+"px";c=mr(a.element);b-=c.width/2;var h=2==a.D||3==a.D;1==a.D||h&&a.ia(a.A)?(L(a.element,"ytp-bottom"),b=le(b,a.ca,a.ca+a.fa-c.width)):a.la(a.A)?(L(a.element,"ytp-top"),d=DF(a.H).Ma().width,b=le(b,12,d-c.width-12)):(h=DF(a.H).Ma(),b=le(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"},r7=function(a){a.A&&!a.U&&a.A.hasAttribute("title")&&(a.J=a.A.getAttribute("title"),
a.A.removeAttribute("title"),a.O&&E8(a))},I8=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=Xu(a.M,a.F,c);l2(a.P,e,c,d,!0);a.$.start()}},L8=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.MH,this);this.T(a,"videoplayerreset",this.OH);this.T(a,"WATCH_LATER_VIDEO_ADDED",this.Oz);this.T(a,"WATCH_LATER_VIDEO_REMOVED",this.$B);this.T(a,"WATCH_LATER_ERROR",this.NH);this.T(a,"resize",this.qu);this.qu(DF(a).Ma());J8(this,2);K8(this);Lb(this,a6(b.A,this.element))},K8=function(a,b){if(b)a.update({title:b,
image:null});else{var c=a.F.W();c.userDisplayName?a.update({title:Q("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:Q("YTP_WATCH_LATER"),image:null})}r7(a.J)},J8=function(a,b){if(b!=a.G){var c=a.element;
switch(b){case 3:Mf(c,Vf());break;case 1:Mf(c,Nf?'<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-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 2:Mf(c,Nf?'<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-49" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-49" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-49" /></svg>');break;case 4:Mf(c,Nf?'<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}},M8=function(a){var b=a.W();
R.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":Q("YTP_URL_NAVIGATE_TO",{WEBSITE:zJ(b)}),"data-sessionlink":"feature=player-watermark"}]);Mf(this.element,Nf?'<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;this.T(a,"videodatachange",this.F);this.F()},O8=function(a){Dr.call(this);
gG();var b=a.W(),c=DF(a);this.o=a;ria(this);var d=fA(a);this.Fa=!1;this.va=!0;this.sa=!1;this.X=this.J=null;var e=new y6(a);I(this,e);Br(a,e.element,4);var h=new V6(a);I(this,h);Br(a,h.element,4);this.P=new X5(a);I(this,this.P);Br(a,this.P.element,4);var k=new R(["div","ytp-gradient-top"]);I(this,k);Br(a,k.element,1);this.la=new yr(k,250,!0,100);I(this,this.la);this.D=new R(["div","ytp-chrome-top"]);I(this,this.D);Br(a,this.D.element,1);this.ia=new yr(this.D,250,!0,100);I(this,this.ia);this.O=new G6(a);
I(this,this.O);this.O.o(e.element);k=a.getVideoData();this.C=new J5(c,y(this.IG,this),k,b.useTabletControls);I(this,this.C);this.C.subscribe("autohideupdate",this.JG,this);this.A=new D8(a,y(this.Ip,this),y(this.Qp,this));I(this,this.A);Br(a,this.A.element,4);this.G=new $5(a,this);I(this,this.G);Br(a,this.G.element,2);var m=new nC(a,this.G);I(this,m);Br(a,m.element,5);m=y(this.Pr,this);this.Z=new I6(a,m);I(this,this.Z);Br(a,this.Z.element,5);this.ea=new K6(a,this,m);I(this,this.ea);this.ea.o(this.D.element);
m=new A8(a);I(this,m);m.o(this.D.element);m=new Gq(["div","ytp-chrome-top-buttons"]);I(this,m);m.o(this.D.element);if(b.uf){var l=new L8(a,this,this.D.element);I(this,l);l.o(m.element)}l=y(this.$t,this);this.M=new L6(a,this,l);I(this,this.M);Br(a,this.M.element,5);this.ha=new N6(a,this,0,l,this.D.element);I(this,this.ha);this.ha.o(m.element);m=null;m=new O6(a);I(this,m);Br(a,m.element,3);(this.B="1"==b.B?new y8(a,this,this.C):null)&&I(this,this.B);b.Ua?(l=new F5(c,y(this.Rq,this),y(this.dC,this),
y(this.Qq,this)),I(this,l)):this.T(c,"click",y(function(a){this.Qq(a)||this.Rq(a)},this));
this.T(c,"touchstart",this.eC);this.K=new w6(a);I(this,this.K);this.K.subscribe("show",this.au,this);this.na=!1;b.sd&&(l=new M8(a),I(this,l),Br(a,l.element,7));l=new W5(a);I(this,l);Br(a,l.element,4);this.fa=k.videoId;this.F=null;this.H=!1;this.xa=[];this.ca=new R(["div","",{tabindex:0}]);this.ca.R("focus",this.jx,this);this.$=new R(["div","",{tabindex:0}]);this.$.R("focus",this.kx,this);k=a.Ca();k.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL"));switch(b.color){case "white":L(k,"ytp-color-white");
break;case "blue":L(k,"ytp-color-blue")}(this.U=b.useTabletControls?null:new A6(a,c,this.K,this.C,m,this.P,y(this.Fo,this)))&&I(this,this.U);this.T(a,"resize",this.Fn);this.T(a,"fullscreentoggled",this.KG);this.T(a,"presentingplayerstatechange",this.LG);this.T(a,"videodatachange",this.Zt);this.T(a,"videoplayerreset",this.RB);this.T(a,"autonavvisibility",this.vh,this);this.T(a,"cardstatechange",this.ng,this);this.T(a,"minimized",this.ng,this);this.T(a,"onFrescaStateChange",this.ng,this);N8(this,d);
this.vh();this.Fn();this.Ea=[c.D,h.element,e.element,this.P.element,this.O.element]},P8=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.X=null):(b.element.getAttribute("aria-expanded"),a.J=c,a.X=b,c.Ke(b.element),b.element.setAttribute("aria-expanded",!0));
a.ng()},EF=function(a){var b=Cz(a.o)&&bN(a.o);
a.o.app.W();dN(a.o);return a.sa||b||!!a.J||dN(a.o)||a.o.app.W().Rl},Q8=function(a,b){if(!b)return!1;
for(var c=0;c<a.Ea.length;c++)if(mh(a.Ea[c],b))return!1;return Zd(b,"ytp-player-content")||Zd(b,"html5-endscreen")||b==a.o.Ca()?!1:!0},R8=function(a,b){if("3"==a.o.W().B){var c=fA(a.o);
if((T(c,8)||T(c,4))&&(!T(c,2)||a.o.W().experiments.ga("disable_native_controls_ended"))&&(c=Tl(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1},FF=function(a){return a.o.Oa()||!1},N8=function(a,b){var c=b.kb()&&!T(b,32);
a.C.qb(128,!c);c=3==a.o.getPresentingPlayerType();a.C.qb(256,c);var c=a.o.Ca(),d;T(b,2)?d=["ended-mode"]:(d=[],T(b,8)?d.push("playing-mode"):T(b,4)&&d.push("paused-mode"),T(b,1)&&!T(b,32)&&d.push("buffering-mode"),T(b,32)&&d.push("seeking-mode"),T(b,64)&&d.push("unstarted-mode"));Gb(a.xa,d)||(ce(c,a.xa),a.xa=d,$d(c,d));a.B&&z8(a.B,EF(a));d=a.o.W();var e=qz(b);M(c,"ytp-hide-controls","1"!=d.B||e);M(c,"ytp-native-controls","3"==d.B&&!e&&!T(b,2));if(T(b,128)){a.F||(a.F=new P5(a.o),I(a,a.F),a.F.o(c),
Br(a.o,a.F.element,4));var c=a.F,h=b.o,e=c.D.W();d=h.message;var k="embedded"==e.Ba,m=h.messageKey,l,h=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=m||e.Ob?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==m||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==m?(l="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=m||e.Ob||(l="//"+yJ(e)+"/html5",m="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(l="//support.google.com/youtube/?p=player_error1",m="YTP_ERROR_GENERIC_WITH_LINK",e.P&&
!e.M&&(h=!0));l&&(d=Q(m,{BEGIN_LINK:'<br/><a href="'+l+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(l=0;l<c.F.length;l++)c.za(c.F[l]);c.F=[];c.B("content",new K5(d));if(h)for(l=y(c.G,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=c.T(d[e],"click",l),c.F.push(k);a.F.show()}else a.F&&(a.F.dispose(),a.F=null)},S8=function(a,b){a.C.isDisposed()||a.C.qb(16,b)},T8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;
for(var d=null;b;){if("none"!=Xq(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=T8(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},ria=function(a){a=a.o.W();
var b=a.U;if(lu("ytp-normal-css-loaded")){var c=lu("ytp-sprite-mode-css-loaded");b!=c&&zi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}},U8=function(){},Z=function(a,b){if(b<a.C){var c=b+a.D,d=a.o[c];
return d===V8?a.o[c]=[]:d}d=a.A[b];return d===V8?a.A[b]=[]:d},W8=function(a,b){if(ga(b)){if((0,window.isNaN)(b))return"NaN";
if(window.Infinity===b)return"Infinity";if(-window.Infinity===b)return"-Infinity"}return b},X8=function(a){var b=a;
a=sia;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]||V8):this.A[c]=this.A[c]||V8},b9=function(a,b){G.call(this);
var c=b;c instanceof Hh||(c=new Hh(c));var d=this.X=c,e;a:{var h=d.args.legacy_config;if(h){var k=h?de(h):null;if(k){var m,l=new X8(k),p=Z(l,1),t=Z(l,2),u=Z(l,3),x=Z(l,4),A=Z(l,5),C=Z(l,6),H=Z(l,7),z=Z(l,8),N=Z(l,9),Ma=Z(l,10),ta=Z(l,11),Ka=Z(l,12),pb=Z(l,13),nd=Z(l,14),ak=Z(l,15),bk=Z(l,16),wv=Z(l,17),rq=Z(l,18),sq=Z(l,19),xv=Z(l,20),Le=Z(l,21),lc=Z(l,22),$C=Z(l,23),Dd=Z(l,24),n7=Z(l,25),o7=Z(l,26),tia=Z(l,27),uia=Z(l,28),via=Z(l,29),wia=Z(l,30),xia=Z(l,31),yia=Z(l,32),zia=Z(l,33),Aia=Z(l,34),Bia=
Z(l,35),Cia=Z(l,36),Dia=Z(l,37),Eia=Z(l,38),Fia=Z(l,39),Gia=Z(l,40),Hia=Z(l,41),Iia=Z(l,42),Jia=Z(l,43),Kia=Z(l,44),Lia=Z(l,45),Mia=Z(l,46),Nia=Z(l,47),Oia=Z(l,48),Pia=Z(l,49),Qia=Z(l,50),Ria=Z(l,51),Sia=Z(l,52),Tia=Z(l,53),Uia=Z(l,54),Via=Z(l,55),Wia=Z(l,56),Xia=Z(l,57),Yia=Z(l,58),Zia=Z(l,59),$ia=Z(l,60),aja=Z(l,61),bja=Z(l,62),cja=Z(l,63),dja=Z(l,64),eja=Z(l,65),fja=Z(l,66),gja=Z(l,67),hja=Z(l,68),ija=Z(l,69),jja=Z(l,70),kja=Z(l,71),lja=Z(l,72),mja=Z(l,73),nja=Z(l,74),oja=Z(l,75),pja=Z(l,76),qja=
Z(l,77),rja=Z(l,78),sja=Z(l,79),tja=Z(l,80),uja=Z(l,81),vja=Z(l,82),wja=Z(l,83),xja=Z(l,84),yja=Z(l,85),zja=Z(l,86),Aja=Z(l,87),Bja=Z(l,88),Cja=Z(l,89),Dja=Z(l,90),Eja=Z(l,91),Fja=Z(l,92),Gja=Z(l,93),Hja=Z(l,94),Ija=Z(l,95),Jja=Z(l,96),Kja=Z(l,97),Lja=Z(l,98),Mja=Z(l,99),Nja=Z(l,100),Oja=Z(l,101),Pja=Z(l,102),Qja=Z(l,103),Rja=Z(l,104),Sja=Z(l,105),Tja=Z(l,106),Uja=Z(l,107),Vja=Z(l,108),Wja=Z(l,109),Xja=Z(l,110),Yja=Z(l,111),Zja=Z(l,112),$ja=Z(l,113),aka=Z(l,114),bka=Z(l,115),cka=Z(l,116),dka=Z(l,
117),eka=Z(l,118),fka=Z(l,119),gka=Z(l,120),hka=Z(l,121),ika=Z(l,122),jka=Z(l,123),kka=Z(l,124),lka=Z(l,125),mka=Z(l,126),nka=Z(l,127),oka=Z(l,128),pka=Z(l,129),qka=Z(l,130),rka=Z(l,131),ska=Z(l,132),tka=Z(l,133),uka=Z(l,134),vka=Z(l,135),wka=Z(l,136),xka=Z(l,137),yka=Z(l,138),zka=Z(l,139),Aka=Z(l,140),Bka=Z(l,141),Cka=Z(l,142),Dka=Z(l,143),Eka=Z(l,144),Fka=Z(l,145),Gka=Z(l,146),Hka=Z(l,147),Ika=Z(l,148),Jka=Z(l,149),Kka=Z(l,150),Lka=Z(l,151),Mka=Z(l,153),Nka=Z(l,154),Oka=Z(l,155),Pka=Z(l,156),Qka=
Z(l,157),Rka=Z(l,158),Ska=Z(l,159),Tka=Z(l,160),Uka=Z(l,161),Vka=Z(l,162),Wka=Z(l,163),Xka=Z(l,164),Yka=Z(l,165),Zka=Z(l,166),$ka=Z(l,167),ala=Z(l,168),bla=Z(l,169),dla=Z(l,170),ela=Z(l,171),fla=Z(l,172),gla=Z(l,173),hla=Z(l,174),ila=Z(l,175),jla=Z(l,176),kla=Z(l,177),lla=Z(l,178),mla=Z(l,179),nla=Z(l,180),ola=Z(l,181),pla=Z(l,182),qla=Z(l,183),rla=Z(l,184),sla=Z(l,185),tla=Z(l,186),ula=Z(l,187),vla=Z(l,188),wla=Z(l,189),xla=Z(l,190),yla=Z(l,191),zla=Z(l,192),Ala=Z(l,193),Bla=Z(l,194),Cla=Z(l,195),
Dla=Z(l,196),Ela=Z(l,197),Fla=Z(l,198),Gla=Z(l,199),Hla=Z(l,200),Ila=Z(l,201),Jla=Z(l,202),Kla=Z(l,203),Lla=Z(l,204),Mla=Z(l,205),Nla=Z(l,206),Ola=Z(l,207),Pla=Z(l,208),Qla=Z(l,209),Rla=Z(l,210),Sla=Z(l,211),Tla=Z(l,212),Ula=Z(l,213),Vla=Z(l,214),Wla=Z(l,215),Xla=Z(l,216),Yla=Z(l,217),Zla=Z(l,218),$la=Z(l,219),ama=Z(l,220),bma=Z(l,221),cma=Z(l,222),dma=Z(l,223),ema=Z(l,224),fma=Z(l,225),gma=Z(l,226),hma=Z(l,227),jma=Z(l,228),kma=Z(l,229),lma=Z(l,230),mma=Z(l,231),nma=Z(l,232),oma=Z(l,233),pma=Z(l,
234),qma=Z(l,235),rma=Z(l,236),sma=Z(l,237),tma=Z(l,238),uma=Z(l,239),vma=Z(l,240),wma=Z(l,241),xma=Z(l,242),yma=Z(l,243),zma=Z(l,245),Ama=Z(l,246),Bma=Z(l,247),Cma=Z(l,248),Dma=Z(l,249),Ema=Z(l,250),Fma=Z(l,251),Gma=Z(l,252),Hma=Z(l,253),Ima=Z(l,254),Jma=Z(l,255),Kma=Z(l,256),Lma=Z(l,257),Mma=Z(l,258),Nma=Z(l,259),Oma=Z(l,260),Pma=Z(l,261),Qma=Z(l,262),Rma=Z(l,263),Sma=Z(l,264),Tma=Z(l,265),Uma=Z(l,266),Vma=Z(l,267),Wma=Z(l,268),Xma=Z(l,269),Yma=Z(l,270),Zma=Z(l,271),$ma=Z(l,272),ana=Z(l,273),bna=
Z(l,275),cna=Z(l,276),dna=Z(l,277),ena=Z(l,278),fna=Z(l,279),gna=Z(l,280),hna=Z(l,281),ina=Z(l,282),jna=Z(l,283),kna=Z(l,284),lna=Z(l,285),mna=Z(l,286),nna=Z(l,287),ona=Z(l,288),pna=Z(l,289),qna=Z(l,290),rna=Z(l,291),sna=Z(l,292),tna=Z(l,293),una=Z(l,294),vna=Z(l,295),wna=Z(l,296),xna=Z(l,297),yna=Z(l,298),zna=Z(l,299),Ana=Z(l,300),Bna=Z(l,301),Cna=Z(l,302),Dna=Z(l,303),Ena=Z(l,304),Fna=Z(l,306),Gna=Z(l,307),Hna=Z(l,308),Ina=Z(l,309),Jna=Z(l,310),Kna=Z(l,311),Lna=Z(l,312),Mna=Z(l,313),Nna=Z(l,314),
Ona=Z(l,315),Pna=Z(l,316),Qna=Z(l,317),Rna=Z(l,318),Sna=Z(l,319),Tna=Z(l,320),Una=Z(l,321),Vna=Z(l,322),Wna=Z(l,323),Xna=Z(l,324),Yna=Z(l,325),Zna=Z(l,326),$na=Z(l,327),aoa=Z(l,328),boa=Z(l,329),coa=Z(l,330),doa=Z(l,331),eoa=Z(l,332),foa=Z(l,333),goa=Z(l,334),hoa=Z(l,335),ioa=Z(l,336),kK=Z(l,337);m={el:p,ps:t,autonav:u,autoplay:x,eventid:A,fexp:C,fflags:H,isHtml5MobileDevice:z,legacyBehavior:N,playerErrorLogFraction:Ma,canWatchLater:ta,mute:Ka,partnerid:pb,showinfo:nd,ss:ak,watchXlb:bk,dclk:wv,ivModule:rq,
iv3Module:sq,iv3EditModule:xv,ivInvideoUrl:Le,ivLoadPolicy:lc,atc:$C,loudness:Dd,infringe:n7,subtitlesXlb:o7,ccFont:tia,ccModule:uia,ccFontsUrl:via,cc3Module:wia,ttsurl:xia,ccAsr:yia,ccContribute:zia,ccAutoCaps:Aia,ccLoadPolicy:Bia,captionTracks:Cia,captionAudioTracks:Dia,captionTranslationLanguages:Eia,defaultAudioTrackIndex:Fia,cr:Gia,hostLanguage:Hia,hl:Iia,enablecsi:Jia,csiPageType:Kia,c:Lia,cbr:Mia,cbrver:Nia,cos:Oia,cosver:Pia,cplatform:Qia,cbrand:Ria,cmodel:Sia,cnetwork:Tia,isRtl:Uia,enhanceModule:Via,
enhanceXlb:Wia,regionModule:Xia,previewSplitMode:Yia,status:Zia,reason:$ia,errorcode:aja,errordetail:bja,apiaryHost:cja,apiaryHostFirstparty:dja,gapiHintOverride:eja,gapiHintParams:fja,innertubeApiKey:gja,innertubeApiVersion:hja,innertubeContextClientVersion:ija,loaderurl:jja,multicameraModule:kja,multicameraPreroll:lja,multifeedMetadataList:mja,allowEmbed:nja,allowedDomains:oja,ypcItemTitle:pja,ypcItemUrl:qja,ypcItemThumbnail:rja,ypcOfferHeadline:sja,ypcOfferDescription:tja,ypcOfferId:uja,ypcOfferButtonText:vja,
ypcFullVideoMessage:wja,ypcModule:xja,ypcVid:yja,ypcLicenseCheckerModule:zja,heartbeatServerUrl:Aja,ypcLicenseSessionToken:Bja,purchaseId:Cja,heartbeatToken:Dja,heartbeatInterval:Eja,heartbeatRetries:Fja,ypcClickwrapModule:Gja,ypcClickwrapMessage:Hja,livestream:Ija,livePlayback:Jja,authTimeout:Kja,hlsdvr:Lja,streaminglibModule:Mja,frescaModule:Nja,frescaPreroll:Oja,frescaXlb:Pja,enableCardio:Qja,enableCardioBeforePlayback:Rja,liveChunkReadahead:Sja,innertubeClientVersion:Tja,adHost:Uja,adHostTierId:Vja,
coreDbp:Wja,googleCustAge:Xja,googleCustGender:Yja,pyvAdChannel:Zja,showPyvInRelated:$ja,tagForChildDirected:aka,playerWide:bka,enablesizebutton:cka,bannerUrl:dka,profilePicture:eka,channelTitle:fka,spacecastAddress:gka,timestamp:hka,fmtList:ika,urlEncodedFmtStreamMap:jka,adaptiveFmts:kka,licenseInfo:lka,idup:mka,dashmpd:nka,hlsvp:oka,hlsFormats:pka,probeUrl:qka,storyboardSpec:rka,liveStoryboardSpec:ska,ismb:tka,surveySmartpixelUrl:uka,surveycreativedata:vka,threedXlb:wka,threedModule:xka,threedConverted:yka,
approxThreedLayout:zka,threedLayout:Aka,t:Bka,token:Cka,noGetVideoLog:Dka,tmi:Eka,plid:Fka,pltype:Gka,ptchn:Hka,ptk:Ika,oid:Jka,idpj:Kka,ldpj:Lka,userAge:Mka,userGender:Nka,sw:Oka,remarketingUrl:Pka,ppvRemarketingUrl:Qka,rmktenabled:Rka,baseurl:Ska,videostatsPlaybackBaseUrl:Tka,subscribed:Uka,engaged:Vka,vid:Wka,uid:Xka,aid:Yka,focenabled:Zka,socialenabled:$ka,ytfocenabled:ala,ytfochistoryenabled:bla,ssrt:dla,delay:ela,cl:fla,osid:gla,vm:hla,videoId:ila,title:jla,lengthSeconds:kla,keywords:lla,ucid:mla,
allowRatings:nla,avgRating:ola,viewCount:pla,author:qla,thumbnailUrl:rla,isListed:sla,liveDefaultBroadcast:tla,vq:ula,watermark:vla,accountPlaybackToken:wla,watchAjaxToken:xla,yvaXlb:yla,yvaModule:zla,yvaPreroll:Ala,ypcXlb:Bla,authuser:Cla,pageid:Dla,userDisplayName:Ela,userDisplayImage:Fla,playlistTitle:Gla,playlistLength:Hla,index:Ila,iurl:Jla,iurlmq:Kla,iurlhq:Lla,iurlsd:Mla,iurlmaxres:Nla,iurlWebp:Ola,iurlmqWebp:Pla,iurlhqWebp:Qla,iurlsdWebp:Rla,iurlmaxresWebp:Sla,start:Tla,end:Ula,resume:Vla,
of:Wla,list:Xla,q:Yla,referrer:Zla,sdetail:$la,sourceid:ama,externalList:bma,forcedExperiments:cma,cctp:dma,adformat:ema,listtype:fma,privembed:gma,afvInstreamMax:hma,adLanguageIso6392:jma,adTag:kma,afvAdTagRestrictedToInstream:lma,maxDynamicAllocationAdTagLength:mma,asLaunchedInCountry:nma,adFlags:oma,adPreroll:pma,aftv:qma,invideo:rma,dynamicAllocationAdTag:sma,gutTag:tma,pyvInRelatedCafeExperimentId:uma,afvAdTag:vma,nO:wma,loeid:xma,adDevice:yma,cafeExperimentId:zma,adsenseVideoDocId:Ama,fw:Bma,
adSlots:Cma,shortform:Dma,tpasPartnerId:Ema,instream:Fma,trueview:Gma,midrollFreqcap:Hma,mpvid:Ima,mpu:Jma,afv:Kma,tpasAdTypeId:Lma,tpasVideoId:Mma,sffb:Nma,contentOwnerName:Oma,afvMergeEnabled:Pma,excludedAds:Qma,noAfvInstream:Rma,adAge:Sma,adGender:Tma,adLoggingFlag:Uma,showContentThumbnail:Vma,cid:Wma,afvInvideoAdTag:Xma,allowHtml5Ads:Yma,supportedWithoutAds:Zma,instreamLong:$ma,adBreaks:ana,afcRmFallback:bna,allowAdInAutoplay:cna,c4:dna,dbp:ena,fqsf:fna,gptMigration:gna,xfp:hna,midrollPrefetchSize:ina,
trueviewLactt:jna,xfpTag:kna,advideo:lna,ad3Module:mna,vmap:nna,serverPrefetchedVast:ona,amsBaseTag:pna,fadeOutStartMilliseconds:qna,fadeOutDurationMilliseconds:rna,fadeInStartMilliseconds:sna,fadeInDurationMilliseconds:tna,applyFadeOnMidrolls:una,adModule:vna,pla:wna,plaAdTag:xna,vastAdsModule:yna,forcedSkipOffset:zna,enabledEngageTypes:Ana,freewheelAdTag:Bna,postAdRequests:Cna,enablejsapi:Dna,ssl:Ena,baseYtUrl:Fna,controls:Gna,disablekb:Hna,jsapicallback:Ina,svt:Jna,canplaylive:Kna,storeUserVolume:Lna,
useMediaVolume:Mna,sslStream:Nna,dash:Ona,liveStartWalltime:Pna,oauthToken:Qna,visitorData:Rna,vvt:Sna,osig:Tna,paygated:Una,videoMastheadAdQuartileUrls:Vna,tvList:Wna,pyvViewBeaconUrl:Xna,pyvQuartile25BeaconUrl:Yna,pyvQuartile50BeaconUrl:Zna,pyvQuartile75BeaconUrl:$na,pyvQuartile100BeaconUrl:aoa,pyvBillableUrl:boa,rco:coa,cco:doa,feature:eoa,isFling:foa,ctrl:goa,ytr:hoa,ytrcc:ioa,startseconds:null==kK?kK:+kK,sentiment:Z(l,338),spacecastFormatMap:Z(l,339),spacecastAdaptiveFormats:Z(l,340),suggestedquality:Z(l,
341),rvs:Z(l,342),urlEncodedThirdPartyMedia:Z(l,343),vssCredentialsToken:Z(l,344),vssCredentialsType:Z(l,345),ypcGid:Z(l,346),ypcPreview:Z(l,347),ypcOrigin:Z(l,348),requiresPurchase:Z(l,349),mdx:Z(l,350),retryneterr:Z(l,351),itct:Z(l,352),ypcOverlayTimeout:Z(l,353),app:Z(l,354),cweb:Z(l,355),pyvConvUrl:Z(l,356),cver:Z(l,357),on3g:Z(l,358),autohide:Z(l,359),useNativeControls:Z(l,360),useTabletControls:Z(l,361),codeDbp:Z(l,362),rel:Z(l,363),attrib:Z(l,364)};var V2={},Dt;for(Dt in m){var joa=Y8[Dt]?
Y8[Dt]:Dt.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();V2[joa]=m[Dt]}e=V2;break a}}e=null}var lK;if(e){var Th=d.args,vl=e,tA=[],Bc;for(Bc in Th)koa[Bc]||(vl.hasOwnProperty(Bc)?typeof Th[Bc]!=typeof vl[Bc]?tA.push("wrong type. key ["+Bc+"]: ("+typeof Th[Bc]+") "+Th[Bc]+"; ("+typeof vl[Bc]+") "+vl[Bc]):Th[Bc]!==vl[Bc]&&tA.push("values differ. key ["+Bc+"]: ("+typeof Th[Bc]+") "+Th[Bc]+"; ("+typeof vl[Bc]+") "+vl[Bc]):tA.push("missing. key ["+Bc+" ]: ("+typeof Th[Bc]+") "+Th[Bc]));lK=tA}else lK=
[];for(var ap=lK,X2=Math.floor(Math.random()*ap.length),ap=ap.slice(X2).concat(ap.slice(0,X2)),mK=0;mK<ap.length;mK++)zi(Error("Discrepancy in legacy config: "+ap[mK]));var bp=this.X.args||{};this.Y=new sJ(bp);I(this,this.Y);this.Y.experiments.ga("legacy_autoplay_flag")||"detailpage"!=this.Y.Ba||(bp.autoplay="1");this.Ib=dv("detailpage"==this.Y.Ba&&"blazer"!=this.Y.o||"books"==this.Y.o,bp.enablesizebutton);this.ha=dv(!1,bp.player_wide);this.O=this.Y.Ya&&dv(!1,bp.external_list);this.ac=this.Y.Ya&&
dv(!1,bp.external_play_video);this.sa=new Dr(this);I(this,this.sa);this.Ja=null;this.L=new Be;this.$=new Be;this.o=new PM(this);I(this,this.o);this.Ra=new PM(this,1);I(this,this.Ra);this.G=new w5(this);I(this,this.G);this.G.subscribe("resize",this.BE,this);this.M=1;this.Ua={};var nK;if(this.Y.storeUserVolume){var Y2=cj("yt-player-volume")||{},Z2=Y2.volume;nK={volume:(0,window.isNaN)(Z2)?100:le(Math.floor(Z2),0,100),muted:!!Y2.muted}}else nK={volume:100,muted:this.Y.mute};this.Z=nK;this.da=this.Y.Ya?
new OM(this,1):new NM(this,1);I(this,this.da);this.Fa=this.B=null;this.Ka={};var cp=this.Y,wl=new pba;CH(cp)&&(wl.D=!0,wl.C=.1);cp.Za&&(wl.B=cp.Za/8);wl.A=cp.experiments.Sb("html5_bandwidth_window_size")||wl.A;cp.experiments.Sb("html5_elbow_bytes")&&(wl.o=cp.experiments.Sb("html5_elbow_bytes"));this.la=new oba(wl);this.Va={internalvideodatachange:this.Xz,liveviewshift:this.yE,playbackready:this.Yz,playbackstarted:this.Zz,statechange:this.$z,signatureexpired:this.oC};var xj=new ON,$2=this.o;xj.A!=
$2&&(PN(xj),xj.F={},xj.A=$2);var Uh={};Uh.loaded=y(this.Bq,this);Uh.unloaded=y(this.Cq,this);Uh.destroyed=y(this.bm,this);Uh.command_pause=Z8(this.pauseVideo,this);Uh.command_play=Z8(this.ef,this);Uh.command_seek=Z8(this.rg,this);Uh.command_redirect_controls=y(this.ls,this);Uh.command_stop_redirect_controls=y(this.tj,this);xj.G=Uh;this.W().K.subscribe("vast_info_card_add",pa(xj.J,"vast_info_card_add"),xj);this.D=xj;I(this,this.D);this.K=new D1(this.Y,"",this.D);var a3=new aM(this.Y,1,this.K,this.G,
y(this.L.S,this.L));$8(this,a3,this.Va);this.A=a3;this.A.la=this.la;this.wb={airplayactivechange:this.Pz,airplayavailabilitychange:this.Qz,beginseeking:this.vE,endseeking:this.wE,internalaudioformatchange:this.bA,internalvideodatachange:this.gn,internalvideoformatchange:this.NC,playbackstalledatstart:this.tC,progresssync:this.AE,seekto:this.CE,onLoadProgress:this.iB,onVideoProgress:this.PC,playbackready:this.NB,statechange:this.zE,connectionissue:this.BA,heartbeatparams:this.xE,videoelementevent:this.DE};
this.P=this.F=null;this.Za=this.bb=-1;this.xa=this.H=this.J=null;this.ea={};this.va=null;this.ob=new Wd(this.G.Je,16,this.G);I(this,this.ob);this.Pa=!1;this.ca=!0;this.Ia=this.C=null;this.Ea=!1;this.U=a9(this,cj("yt-player-playback-rate")||1);this.na=null;this.bc=this.jb=!1;this.vb=null;this.fa=0;this.Qb=new U5(this.G.element);I(this,this.Qb);this.cb=0;this.o.addEventListener("crn_"+b9.B,this.Vz,this);this.o.addEventListener("crx_"+b9.B,this.Wz,this);this.o.addEventListener("crn_"+b9.A,this.lq,this);
this.o.addEventListener("crx_"+b9.A,this.lq,this);this.G.initialize(a);Nf=this.Y.U;var Et=new rx(this.X.args);if(Tx(Et)){this.A.qh(Et,y(this.Ij,this));if(Cy(this.Y)){var pK;var loa=Et.videoId,c3=cj("yt-player-restore-playhead");pK=c3?c3[loa]:void 0;pK&&(Et.startSeconds=pK)}dj("yt-player-restore-playhead");(this.Y.experiments.ga("legacy_autoplay_flag")?this.Y.cb:Et.Nc)&&(this.Y.Pa||this.Y.experiments.J)&&gM(this.A)}this.K.A("fs",void 0);var Kf=this.G;Kf.isDisposed();var uA=Kf.app.W();uA.J||Kf.En("tag-pool-enabled");
uA.Ob&&Kf.En("house-brand");"gvn"==uA.o&&Kf.En("ytp-gvn");uA.P&&(Kf.K=Hi("yt-dom-content-change",Kf.Je,Kf));Kf.T(window,"resize",Kf.Je,Kf);var yl=this.da;yl.o=this.G.element;for(var Ft in yl.B)yl.o[Ft]=yl.B[Ft];for(Ft in yl.C)yl.o[Ft]=yl.C[Ft];var d3,qK=Bh("fullscreenchange",this.G.element);"msfullscreenchange"==qK&&(qK="MSFullscreenChange");(d3=qK)&&this.sa.T(this.G,d3,this.WA);this.sa.T(window,"resize",this.cC);var vA=this.X.args;c9(this);var rK=P4(this);this.o.Da("onVolumeChange",this.Z);if(vA&&
hy(vA)){var f3=Cy(this.Y);f3&&!this.O&&(vA.fetch=0);d9(this,vA);if(f3&&!this.O)e9(this);else if(!Tx(rK)){var sK=this.C,moa=y(this.Fq,this);sK.G=moa;sK.F&&vi(sK.G,0)}}var ep=this.X.args.jsapicallback;ep&&(ha(ep)||(ep=r(ep)),ep&&Z8(y(ep,aa,this.Y.pf),aa));this.Y.C&&pp("embedded"==this.Y.Ba);Y4(this,this.A);var xA=ku(this.Y.F);"fmt.noneavailable"==xA?eM(this.A,xA,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==xA?eM(this.A,xA,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):(this.Y.experiments.ga("legacy_autoplay_flag")?
this.Y.cb:rK.Nc)&&this.Y.Pa&&Tx(rK)?f9(this):"leanback"!=this.Y.Ba&&g9(this);this.ia=new O8(this.o);I(this,this.ia);aN(this.Ra,"init")},h9=function(a,b){a.Ja||(a.Ja=new T5(a),I(a,a.Ja),Br(a.o,a.Ja.element,4));
a.Ja.rb(b)},c9=function(a){var b=V4.getTag(!0,!a.Y.F);
a.B=new bJ(b);a.Fa=a.B;a.F&&tM(a.F,a.B);a.B.o.loop=a.Ea;a.B.o.playbackRate=a.U;a.Y.useMediaVolume?(a.na&&a.sa.za(a.na),a.na=a.sa.T(a.B,"volumechange",a.qB)):(a.B.setVolume(a.Z.volume/100),a.B.o.muted=a.Z.muted);gia(a.G,b);a.Y.Be=a.B;UI(a.B)},i9=function(a){if(a.B){a.na&&(a.sa.za(a.na),a.na=null);
a.F&&sM(a.F);var b=a.G;b.A&&(dh(b.A),b.A=null);a.Y.Be=null;V4.releaseTag(a.B.ma());a.B=null}},q2=function(a,b){a.Y.J?(a.xa&&(a.B.setPosition(new re(a.xa.left,a.xa.top)),a.B.setSize(ze(a.xa)),a.xa=null),ZI(a.B),sM(a.F),tM(a.F,a.B),a.B.o.loop=a.Ea,a.B.o.playbackRate=a.U):V4.releaseTag(b)},Y4=function(a,b){a.F!=b&&(a.F&&(PN(a.D),xq(a,"cuerangesremoved",a.F.F.o.o||[]),X4(a)),b!=a.A&&(a.Ka[b.J]=b),a.F=b,b.la=a.la,a.B&&tM(b,a.B),$8(a,b,a.wb),a.gn("newdata",b,b.getVideoData()),b.fa.o&&a.gn("dataloaded",
b,b.getVideoData()),xq(a,"cuerangesadded",a.F.F.o.o||[]),iz(b.getPlayerState())&&yM(b))},$8=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)},X4=function(a){sM(a.F);
var b=a.F,c=a.wb,d;for(d in c)b.Ha(d,c[d],a);b=a.F;b!=a.A&&(c=b.J,a.Ka[c]==b&&delete a.Ka[c]);a.F=null},wq=function(a,b){return b?1==b?a.A:a.Ka[b]||null:a.F},j9=function(a){var b=a.D;
F([LF.B,fba,Vy,jA,cba,xH,FJ.A,nba,dba,saa],b.Rw,b);a.o.S("videoready",a.getVideoData())},l9=function(a){if(a.Y.C){a.H||(a.H=new u5(a),k9(a,a.H));
var b=Bp();v5(a.H,xp(),b);var c=a.H;c&&!c.F&&c.Xa(a.Ra)&&c.create();b&&a.H.load()}},k9=function(a,b){I(a,b);
b.subscribe("loaded",a.Bq,a);b.subscribe("unloaded",a.Cq,a);b.subscribe("command_pause",Z8(a.pauseVideo,a));b.subscribe("command_play",Z8(a.ef,a));b.subscribe("command_seek",Z8(a.rg,a));b.subscribe("command_redirect_controls",a.ls,a);b.subscribe("command_stop_redirect_controls",a.tj,a)},m9=function(a,b){b&&b.F&&("ad"==b.ua&&ce(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.J)==(2==b)?aJ(a.Fa):0},g9=function(a){a.o.S("initializingmode");
o9(a,2)},f9=function(a){if(T(a.A.getPlayerState(),128))return!1;
a.o.S("initializingmode");Y4(a,a.A);o9(a,3);var b;(b=!a.Y.J)||(r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(i9(a),c9(a),tM(a.A,a.B));jM(a.A);if(T(a.A.getPlayerState(),128))return!1;p9(a,3);return a.bc=!0},Z8=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);
vi(function(){a.apply(b||this,c)},0)}},q9=function(a,b){a.Ea!=b&&(a.Ea=b,a.F==a.A&&(a.B.o.loop=b),a.o.S("loopchange",b))},r9=function(a,b,c){!(0,window.isNaN)(b)&&a.B&&(b=a9(a,b),a.U!=b&&(a.U=b,a.A==a.F&&(a.B.o.playbackRate=b),c&&bj("yt-player-playback-rate",b),a.o.Da("onPlaybackRateChange",b)))},a9=function(a,b){var c=1,c=a.Y.ca?s9:[1];
return c=1>b?eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b})},t9=function(a,b){var c=wq(a,b);
return c?c.kn():a.getVideoData().U},u9=function(a,b,c,d){if(a=wq(a,c))d=d||b,b=Ju(b,d,!0),bj("yt-player-quality",d,604800),DM(a,"m",b)},v9=function(a,b){var c=wq(a,b);
return c?c.ug():0},x9=function(a,b){var c=IM(a.A,b);
if(a.F&&a.F!=a.A){var d=IM(a.F,b),e;for(e in d)c["ad_"+e]=d[e]}(d=w9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Ra.Oj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return ge(c)},y9=function(a,b){return 3==a.getPresentingPlayerType()?sz(a.H.P):2==b?a.Za:a.bb},z9=function(a){m9(a,a.J);
a.Y.C&&m9(a,a.H);a.jb=!1;a.tj();q9(a,!1);a.Ua={};a=a.K;var b=a.B;b.C={};b.B={};a.C=!1},w9=function(a){a=a.Qb;
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=A9();
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.Mb()])&&c.encrypted_id!=a.C.xb().videoId||(b.index=a.C.Mb()));ly(a.C,b);a.Ia&&B9(a,a.Ia)}else a.Ia=null}else a.Ck()},d9=function(a,b){if(a.C){a.C.Ha("error",a.Ck,a);
Mb(a.C);a.C=null;var c=QM(a.D,"playlist");c&&(qb(a.D.o,c),c.destroy())}b&&(a.O&&(b.fetch=0),a.C=new gy(b),a.C.subscribe("error",a.Ck,a))},C9=function(a,b,c,d){b in a.Ua||(c=new qq(c,d,{id:b,
priority:1}),c.A=b9.A,a.A.F.gb([c]),a.Ua[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.J?a.Za!=b&&(a.Za=b,a.o.Da("onAdStateChange",b)):a.bb!=b&&(a.bb=b,a.o.Da("onStateChange",b))},E9=function(a,b,c){a.Y.experiments.ga("legacy_autoplay_flag")||"detailpage"!=a.Y.Ba||(b.autoplay="1");
var d=new rx(b);b&&hy(b)?(Cy(a.Y)&&!a.O&&(b.fetch=0),d9(a,b)):a.C&&d9(a,null);a.O=dv(!1,b.external_list);Cy(a.Y)&&!a.O&&e9(a);return D9(a,d,c)},F9=function(a,b){a.P&&a.P.getVideoData().videoId==b.videoId||(b.Pa=!0,a.P||(a.P=new aM(a.Y,1,a.K,a.G,y(a.L.S,a.L)),a.P.la=a.la),a.P.qh(b,y(a.Ij,a)),gM(a.P,!0))},D9=function(a,b,c){if(!Sv("_start",a.K.o)){var d=a.K.o;
Uv("yt_sts","p",d);Rv("_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.Va,h;for(h in e)c.Ha(h,e[h],a);a.A.dispose();a.A=b;$8(a,b,a.Va);z9(a)}else{d=wq(a,c);if(!d)return!1;a.ob.stop();G9(a,c);d.qh(b,y(a.Ij,a))}if(!fM(d))return!1;a.Pa&&(d.Za=!1,a.Pa=!1);if(d==a.A)return o9(a,1),f9(a);jM(d);return!0},H9=function(a,b,c){c=wq(a,c);
b&&c==a.A&&(c.getVideoData().tg=!0)},I9=function(a,b,c){var d=wq(a,c);
d&&(G9(a,c),d.qh(b,y(a.Ij,a)),rJ(d.W(),b.C),d==a.A&&(o9(a,1),g9(a)))},K9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");
if(a.o.Oa()||"detailpage"!=a.Y.Ba){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.ca=!1,J9(a,b,void 0,void 0,void 0)):E9(a,{video_id:b},1)}else a.ac||"gaming"==a.Y.o?a.o.Da("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.Y.getVideoUrl(b,d),d=c||{},d.lact=HB(),a.Y.experiments.ga("send_presence_signal_vis_desktop")&&(d.vis=XL(a.Y)),r("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?window.spf.navigate(b):wy(b))},J9=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.Fq,a);b.G=a;b.F&&vi(b.G,0)},Sy=function(a){Cy(a.Y)&&!a.O&&e9(a);
return!(!a.C||!a.C.hasNext())},L9=function(a,b){P4(a).autonavState=b;
a.o.S("autonavchange",b)},M9=function(a,b,c){a.O&&!a.o.Oa()?a.o.Da("onPlaylistNext"):a.C?Cy(a.Y)&&!a.o.Oa()?B9(a,"yt.www.watch.lists.next"):(a.C.hasNext(b)&&ky(a.C,iy(a.C)),a.C.F?D9(a,a.C.xb(void 0,c),1):a.ca=!1):Jy(a.o)&&wq(a,1).getVideoData().K&&(b=ji(wq(a,1).getVideoData().K,py)[0],K9(a,b.xb().videoId,b.va,b.sg()))},N9=function(a,b){if(a.O&&!a.o.Oa())a.o.Da("onPlaylistPrevious");
else if(a.C)if(Cy(a.Y)&&!a.o.Oa())B9(a,"yt.www.watch.lists.prev");else{var c=a.C;(c.K||b||0<=c.o-1)&&ky(a.C,jy(a.C));a.C.F?D9(a,a.C.xb(),1):a.ca=!1}},B9=function(a,b){var c=r(b);
if(c){var d=A9();d&&d.list&&c();a.Ia=null}else a.Ia=b},O9=function(a,b){a.O&&!a.o.Oa()?a.o.Da("onPlaylistIndex",b):a.C&&(a.C.F?D9(a,a.C.xb(b),1):a.ca=!1,ky(a.C,b))},A9=function(){var a=r("yt.www.watch.lists.getState");
return a?a():null},Q9=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 qq(1E3*c,1E3*d,b);c.A=b9.B;P9(a,[c],1);return!0},P9=function(a,b,c){var d=wq(a,c);
d&&(d.F.gb(b),c&&a.getPresentingPlayerType()!=c||xq(a,"cuerangesadded",b))},b5=function(a){var b=Qt(),c=a.getCurrentTime();
a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)},S9=function(a,b,c){a.Z=b;
c&&a.Y.storeUserVolume&&!a.Y.useMediaVolume&&!b.unstorable&&(bj("yt-player-volume",b),bj("yt-player-volume",b,2592E3));R9(a);a.Y.useMediaVolume||(b=ec(b),a.Y.storeUserVolume||(b.unstorable=!0),a.o.Da("onVolumeChange",b))},R9=function(a){var b=a.getVideoData();
b.ai||(a.B.setVolume(a.Z.volume*(a.Y.useMediaVolume?rx.A:b.$h)/100),a.B.o.muted=a.Z.muted)},T9=function(a,b){var c=!!b,d=!!a.cb!=c;
a.cb=b;a.Y.experiments.ga("legacy_player_fullscreen_order")?d&&(a.K.A("fsc"),a.Y.Xf=c,a.G.Je()):(a.Y.Xf=c,a.G.Je(),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.Ra.Ce()&&(c.listId=a.Ra.Ce()),a.o.Da("onFullscreenChange",c))},xq=function(a,b,c){a.o.S(b,c);
if(c&&CH(a.Y)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.o.Da(d,c)}},U9=function(a){var b=a.A.getVideoData(),b=new rx({video_id:b.videoId,
oauth_token:b.oauthToken});I9(a,b,1)},G9=function(a,b){Dv(a.fa);
a.fa=0;var c=wq(a,b);c&&1!=a.M&&2!=a.M&&(PN(a.D),1==b&&m9(a,a.J),qM(c),xq(a,"cuerangesremoved",a.F.F.o.o||[]),c.F.reset())},V9=function(a,b){if(fN(a.Ra)){var c=a.ea.play_pause?a.va:null;
c?c.re("control_play"):a.ef(b)}},W9=function(a,b,c,d,e){var h=wq(a,e);
if(!h||2!=h.J&&!Xx(h.getVideoData()))(h=a.ea.seek?a.va:null)?h.re("control_seek",b):a.rg(b,c,d,e)},X9=function(a,b,c){a.Ib=b;
a.ha=c;a.o.S("sizestylechange",b,c);a.G.Je()},Y9=function(a,b,c,d,e){c=a.Y.Ya&&a.J&&b==a.J.ua?a.J.nd(c,d):(a.Y.Ya||e)&&a.H&&a.H.F&&b==a.H.ua?a.H.nd(c,d):b&&c?(a=QM(a.D,b))?a.nd(c,d):null:null;
return c},Z9=function(a,b,c){if(b){if(a.Y.Ya&&a.J&&b==a.J.ua)return a.J.jf();
if((a.Y.Ya||c)&&a.H&&a.H.F&&b==a.H.ua)return a.H.jf()}else return b=SN(a.D),a.Y.Ya&&a.J&&b.push(a.J.ua),(a.Y.Ya||c)&&a.H&&a.H.F&&b.push(a.H.ua),b;return SN(a.D,b)},wn=wn||{},aa=this,ka="closure_uid_"+(1E9*Math.random()>>>0),la=0,K=Date.now||function(){return+new Date};B(sa,Error);sa.prototype.name="CustomError";var Kg;var Sa=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&<>"']/,La=/&([^;\s<&]+);?/g,$m={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},Zm={"'":"\\'"},Pa=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},noa=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)},ae=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,m=0;m<d;m++)if(m in k){var l=k[m];
b.call(c,l,m,a)&&(e[h++]=l)}return e},ji=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},oe=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},zh=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},Te=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.Wa=!1;G.prototype.isDisposed=function(){return this.Wa};
G.prototype.dispose=function(){this.Wa||(this.Wa=!0,this.V())};
G.prototype.V=function(){if(this.La)for(;this.La.length;)this.La.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.ur=!1};mc[" "]=v;var oc;a:{var $9=aa.navigator;if($9){var a$=$9.userAgent;if(a$){oc=a$;break a}}oc=""};var Ac=qc(),Tg=pc("Trident")||pc("MSIE"),tu=pc("Edge"),EH=tu||Tg,Rq=pc("Gecko")&&!(Oa(oc,"WebKit")&&!pc("Edge"))&&!(pc("Trident")||pc("MSIE"))&&!pc("Edge"),zc=Oa(oc,"WebKit")&&!pc("Edge"),y5=zc&&pc("Mobile"),VL=pc("Macintosh"),LH=pc("Android"),Eba=sc(),DO=pc("iPad"),b$;a:{var c$="",d$=function(){var a=oc;if(Rq)return/rv\:([^\);]+)(\)|;)/.exec(a);if(tu)return/Edge\/([\d\.]+)/.exec(a);if(Tg)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(zc)return/WebKit\/(\S+)/.exec(a);if(Ac)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
d$&&(c$=d$?d$[1]:"");if(Tg){var e$=tc();if(null!=e$&&e$>(0,window.parseFloat)(c$)){b$=String(e$);break a}}b$=c$}var vc=b$,uc={},f$=aa.document,xc=f$&&Tg?tc()||("CSS1Compat"==f$.compatMode?(0,window.parseInt)(vc,10):5):void 0;var Xc=!Tg||yc(9),ooa=Tg&&!wc("9");!zc||wc("528");Rq&&wc("1.9b")||Tg&&wc("8")||Ac&&wc("9.5")||zc&&wc("528");Rq&&!wc("8")||Tg&&wc("9");var poa={CLICK:"click",LM:"rightclick",yJ:"dblclick",iL:"mousedown",oL:"mouseup",nL:"mouseover",mL:"mouseout",lL:"mousemove",jL:"mouseenter",kL:"mouseleave",PM:"selectstart",cO:"wheel",MK:"keypress",LK:"keydown",NK:"keyup",QI:"blur",bK:"focus",zJ:"deactivate",cK:Tg?"focusin":"DOMFocusIn",dK:Tg?"focusout":"DOMFocusOut",fJ:"change",EM:"reset",OM:"select",lN:"submit",yK:"input",vM:"propertychange",RJ:"dragstart",MJ:"drag",OJ:"dragenter",QJ:"dragover",PJ:"dragleave",DROP:"drop",NJ:"dragend",zN:"touchstart",
yN:"touchmove",xN:"touchend",wN:"touchcancel",MI:"beforeunload",pJ:"consolemessage",rJ:"contextmenu",GJ:"DOMContentLoaded",ERROR:"error",nK:"help",LOAD:"load",dL:"losecapture",XL:"orientationchange",zM:"readystatechange",FM:"resize",NM:"scroll",IN:"unload",hK:"hashchange",$L:"pagehide",aM:"pageshow",pM:"popstate",sJ:"copy",cM:"paste",xJ:"cut",II:"beforecopy",JI:"beforecut",KI:"beforepaste",UL:"online",RL:"offline",MESSAGE:"message",oJ:"connect",uI:Cc("AnimationStart"),sI:Cc("AnimationEnd"),tI:Cc("AnimationIteration"),
CN:Cc("TransitionEnd"),iM:"pointerdown",oM:"pointerup",hM:"pointercancel",lM:"pointermove",nM:"pointerover",mM:"pointerout",jM:"pointerenter",kM:"pointerleave",gK:"gotpointercapture",eL:"lostpointercapture",tL:"MSGestureChange",uL:"MSGestureEnd",vL:"MSGestureHold",wL:"MSGestureStart",xL:"MSGestureTap",yL:"MSGotPointerCapture",zL:"MSInertiaStart",AL:"MSLostPointerCapture",CL:"MSPointerCancel",DL:"MSPointerDown",FL:"MSPointerEnter",GL:"MSPointerHover",HL:"MSPointerLeave",IL:"MSPointerMove",JL:"MSPointerOut",
KL:"MSPointerOver",LL:"MSPointerUp",TEXT:"text",mN:"textInput",mJ:"compositionstart",nJ:"compositionupdate",lJ:"compositionend",YJ:"exit",VK:"loadabort",WK:"loadcommit",XK:"loadredirect",YK:"loadstart",ZK:"loadstop",IM:"responsive",XM:"sizechanged",JN:"unresponsive",XN:"visibilitychange",hN:"storage",LJ:"DOMSubtreeModified",HJ:"DOMNodeInserted",JJ:"DOMNodeRemoved",KJ:"DOMNodeRemovedFromDocument",IJ:"DOMNodeInsertedIntoDocument",EJ:"DOMAttrModified",FJ:"DOMCharacterDataModified",LI:"beforeprint",jI:"afterprint"};B(Dc,jc);
Dc.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?Rq&&(nc(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()};
Dc.prototype.stopPropagation=function(){Dc.N.stopPropagation.call(this);this.o.stopPropagation?this.o.stopPropagation():this.o.cancelBubble=!0};
Dc.prototype.preventDefault=function(){Dc.N.preventDefault.call(this);var a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ooa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ec="closure_listenable_"+(1E6*Math.random()|0),Gc=0;Jc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.o))return!1;var e=this.o[a];b=Kc(e,b,c,d);return-1<b?(Ic(e[b]),ob(e,b),0==e.length&&(delete this.o[a],this.A--),!0):!1};
Jc.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,Ic(d[e]);delete this.o[c];this.A--}return b};var Sc="closure_lm_"+(1E6*Math.random()|0),ad={},Vc=0,dd="__closure_events_fn_"+(1E9*Math.random()>>>0);B(J,G);J.prototype[Ec]=!0;f=J.prototype;f.ig=function(a){this.xa=a};
f.addEventListener=function(a,b,c,d){Oc(this,a,b,c,d)};
f.removeEventListener=function(a,b,c,d){Zc(this,a,b,c,d)};
f.aa=function(a){var b,c=this.xa;if(c){b=[];for(var d=1;c;c=c.xa)b.push(c),++d}c=this.Pa;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=ed(h,d,!0,a)&&e;a.A||(h=a.currentTarget=c,e=ed(h,d,!0,a)&&e,a.A||(e=ed(h,d,!1,a)&&e));if(b)for(k=0;!a.A&&k<b.length;k++)h=a.currentTarget=b[k],e=ed(h,d,!1,a)&&e;return e};
f.V=function(){J.N.V.call(this);this.removeAllListeners();this.xa=null};
f.R=function(a,b,c,d){return Lc(this.P,String(a),b,!1,c,d)};
f.za=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};fd.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 kd;var ud=new fd(function(){return new pd},function(a){a.reset()},100);
od.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};
pd.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null};
pd.prototype.reset=function(){this.next=this.scope=this.o=null};var qd,sd=!1,td=new od;Bd.prototype.reset=function(){this.context=this.A=this.C=this.o=null;this.B=!1};
var Cd=new fd(function(){return new Bd},function(a){a.reset()},100);
Ad.prototype.then=function(a,b,c){return Gd(this,ha(a)?a:null,ha(b)?b:null,c)};
xd(Ad);Ad.prototype.cancel=function(a){0==this.o&&vd(function(){var b=new Nd(a);Id(this,b)},this)};
Ad.prototype.J=function(a){this.o=0;zd(this,2,a)};
Ad.prototype.K=function(a){this.o=0;zd(this,3,a)};
Ad.prototype.H=function(){for(var a=null;a=Jd(this);)Kd(this,a,this.o,this.G);this.F=!1};
var Rd=jd;B(Nd,sa);Nd.prototype.name="cancel";B(Sd,J);f=Sd.prototype;f.enabled=!1;f.xc=null;f.vx=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.aa("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.V=function(){Sd.N.V.call(this);this.stop();delete this.A};B(Wd,G);f=Wd.prototype;f.Sg=0;f.V=function(){Wd.N.V.call(this);this.stop();delete this.o;delete this.A};
f.start=function(a){this.stop();this.Sg=Ud(this.B,n(a)?a:this.C)};
f.we=function(a){this.isActive()||this.start(a)};
f.stop=function(){this.isActive()&&Vd(this.Sg);this.Sg=0};
f.isActive=function(){return 0!=this.Sg};
f.Uo=function(){this.Sg=0;this.o&&this.o.call(this.A)};fe.prototype.Ac=function(a){var b=[];he(this,a,b);return b.join("")};
var ke={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},je=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;f=re.prototype;f.clone=function(){return new re(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=te.prototype;f.getWidth=function(){return this.right-this.left};
f.getHeight=function(){return this.bottom-this.top};
f.clone=function(){return new te(this.top,this.right,this.bottom,this.left)};
f.contains=function(a){return this&&a?a instanceof te?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=ue.prototype;f.clone=function(){return new ue(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=we.prototype;f.clone=function(){return new we(this.left,this.top,this.width,this.height)};
f.contains=function(a){return a instanceof we?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};B(Be,G);f=Be.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&&qb(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];De(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.ab=function(a){if(a){var b=this.A[a];return b?b.length:0}a=0;for(b in this.A)a+=this.ab(b);return a};
f.V=function(){Be.N.V.call(this);this.clear();this.B.length=0};var Fe="StopIteration"in aa?aa.StopIteration:{message:"StopIteration",stack:""};Ee.prototype.next=function(){throw Fe;};
Ee.prototype.dc=function(){return this};f=Je.prototype;f.ab=function(){return this.Aa};
f.Na=function(){Oe(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.A[this.o[b]]);return a};
f.Qa=function(){Oe(this);return this.o.concat()};
f.Se=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(Ke(this.A,c)&&this.A[c]==a)return!0}return!1};
f.equals=function(a,b){if(this===a)return!0;if(this.Aa!=a.ab())return!1;var c=b||Ne;Oe(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.Aa};
f.clear=function(){this.A={};this.Ae=this.Aa=this.o.length=0};
f.remove=function(a){return Ke(this.A,a)?(delete this.A[a],this.Aa--,this.Ae++,this.o.length>2*this.Aa&&Oe(this),!0):!1};
f.get=function(a,b){return Ke(this.A,a)?this.A[a]:b};
f.set=function(a,b){Ke(this.A,a)||(this.Aa++,this.o.push(a),this.Ae++);this.A[a]=b};
f.forEach=function(a,b){for(var c=this.Qa(),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 Je(this)};
f.dc=function(a){Oe(this);var b=0,c=this.Ae,d=this,e=new Ee;e.next=function(){if(c!=d.Ae)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw Fe;var e=d.o[b++];return a?e:d.A[e]};
return e};var We=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,kf=/#|$/,mf=/[?&]($|#)/;f=O.prototype;f.toString=function(){var a=[],b=this.C;b&&a.push(xf(b,g$,!0),":");var c=this.A;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(xf(b,g$,!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(xf(c,"/"==c.charAt(0)?qoa:roa,!0));(c=this.o.toString())&&a.push("?",c);(c=this.Ve())&&a.push("#",xf(c,soa));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.C;c?pf(b,a.C):c=!!a.H;c?b.H=a.H:c=!!a.A;c?qf(b,a.A):c=null!=a.D;var d=a.B;if(c)rf(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=ua(e,"/"),e=e.split("/"),h=[],k=0;k<e.length;){var m=e[k++];"."==m?d&&k==e.length&&h.push(""):".."==m?((1<h.length||1==h.length&&""!=h[0])&&h.pop(),d&&k==e.length&&h.push("")):
(h.push(m),d=!0)}d=h.join("/")}else d=e}c?sf(b,d):c=""!==a.o.toString();c?tf(b,uf(a.o.toString())):c=!!a.J;c&&(b.J=a.Ve());return b};
f.clone=function(){return new O(this)};
f.To=function(){return this.o.toString()};
f.Ve=function(){return this.J};
var g$=/[#\/\?@]/g,roa=/[\#\?:]/g,qoa=/[\#\?]/g,yf=/[\#\?@]/g,soa=/#/g;f=vf.prototype;f.ab=function(){Hf(this);return this.Aa};
f.remove=function(a){Hf(this);a=If(this,a);return Me(this.o,a)?(this.A=null,this.Aa=this.Aa-this.o.get(a).length,this.o.remove(a)):!1};
f.clear=function(){this.o=this.A=null;this.Aa=0};
f.isEmpty=function(){Hf(this);return 0==this.Aa};
f.Se=function(a){var b=this.Na();return jb(b,a)};
f.Qa=function(){Hf(this);for(var a=this.o.Na(),b=this.o.Qa(),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){Hf(this);var b=[];if(w(a))Jf(this,a)&&(b=sb(b,this.o.get(If(this,a))));else{a=this.o.Na();for(var c=0;c<a.length;c++)b=sb(b,a[c])}return b};
f.set=function(a,b){Hf(this);this.A=null;a=If(this,a);Jf(this,a)&&(this.Aa=this.Aa-this.o.get(a).length);this.o.set(a,[b]);this.Aa=this.Aa+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.Qa(),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 vf;a.A=this.A;this.o&&(a.o=this.o.clone(),a.Aa=this.Aa);return a};
f.extend=function(a){for(var b=0;b<arguments.length;b++)Se(arguments[b],function(a,b){Gf(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 Nf=void 0;var Eg={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 Xf=/<[^>]*>|&[^;]+;/g,N0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),bg=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),$f=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]"),ag=/^http:\/\/.*/,toa=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
Zf=/\s+/,cg=/[\d\u06f0-\u06f9]/;fg.prototype.$e=!0;fg.prototype.he=function(){return this.o};
fg.prototype.toString=function(){return"Const{"+this.o+"}"};
var eg={};jg.prototype.$e=!0;var ig={};jg.prototype.he=function(){return this.o};
var Cg=kg(""),Bg=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;mg.prototype.$e=!0;mg.prototype.he=function(){return this.o};
mg.prototype.Kl=!0;mg.prototype.Ff=function(){return 1};
var og=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,lg={};pg("about:blank");sg.prototype.$e=!0;sg.prototype.he=function(){return this.o};
sg.prototype.Kl=!0;sg.prototype.Ff=function(){return 1};
var rg={};wg.prototype.Kl=!0;wg.prototype.Ff=function(){return this.A};
wg.prototype.$e=!0;wg.prototype.he=function(){return this.o};
var Ag=/^[a-zA-Z0-9-]+$/,Dg={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},uoa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},vg={};yg("<!DOCTYPE html>",0);yg("",0);yg("<br>",0);var Xg=!Tg||yc(9),fh=!Rq&&!Tg||Tg&&yc(9)||Rq&&wc("1.9.1");Tg&&wc("9");var kh=Tg||Ac||zc;var Pg={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=Ig.prototype;f.ma=function(a){return w(a)?this.o.getElementById(a):a};
f.xx=function(a,b,c){return Wg(this.o,arguments)};
f.createElement=function(a){return this.o.createElement(a)};
f.appendChild=$g;f.isElement=jh;f.contains=mh;var xh=zc?"webkit":Rq?"moz":Tg?"ms":Ac?"o":"",h$=r("yt.dom.getNextId_");if(!h$){h$=function(){return++voa};
q("yt.dom.getNextId_",h$,void 0);var voa=0};var Eh={enablejsapi:1},Fh={},Gh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Hh.prototype.clone=function(){var a=new Hh,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 Mh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",Nh=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],i$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],Kh=Ih()?i$.concat(Nh):Nh.concat(i$);var MH=pc("Firefox"),nJ=sc()||pc("iPod"),yx=pc("iPad"),oJ=pc("Android")&&!(rc()||pc("Firefox")||qc()||pc("Silk")),Dl=rc(),qu=pc("Safari")&&!(rc()||pc("Coast")||qc()||pc("Edge")||pc("Silk")||pc("Android"))&&!(sc()||pc("iPad")||pc("iPod"));var di=K(),Sh=null,bi=Array(50),ai=-1,ci=!1;var pi={};var ri=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",ri,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ai=window.yt&&window.yt.msgs_||r("window.ytcfg.msgs")||{};q("yt.msgs_",Ai,void 0);
var ra=function(a,b){var c=b||{},d=a in Ai?Ai[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},Qt=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 woa=r("yt.pubsub.instance_")||new Be;Be.prototype.subscribe=Be.prototype.subscribe;Be.prototype.unsubscribeByKey=Be.prototype.oc;Be.prototype.publish=Be.prototype.S;Be.prototype.clear=Be.prototype.clear;q("yt.pubsub.instance_",woa,void 0);var Ei=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Ei,void 0);var Gi=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Gi,void 0);var Fi=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Fi,void 0);
var Di=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Di,void 0);B(Mi,Li);Mi.prototype.ab=function(){var a=0;He(this.dc(!0),function(){a++});
return a};
Mi.prototype.clear=function(){var a=Ie(this.dc(!0)),b=this;F(a,function(a){b.remove(a)})};B(Ni,Mi);f=Ni.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.ab=function(){return this.o.length};
f.dc=function(a){var b=0,c=this.o,d=new Ee;d.next=function(){if(b>=c.length)throw Fe;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)};B(Oi,Ni);B(Pi,Ni);Qi.prototype.set=function(a,b){n(b)?this.o.set(a,ge(b)):this.o.remove(a)};
Qi.prototype.get=function(a){var b;try{b=this.o.get(a)}catch(c){return}if(null!==b)try{return de(b)}catch(c){throw"Storage: Invalid value was encountered";}};
Qi.prototype.remove=function(a){this.o.remove(a)};B(Ri,Qi);Ri.prototype.set=function(a,b){Ri.N.set.call(this,a,Ti(b))};
Ri.prototype.A=function(a){a=Ri.N.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Ri.prototype.get=function(a){if(a=this.A(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};B(Ui,Ri);Ui.prototype.set=function(a,b,c){if(b=Ti(b)){if(c){if(c<K()){Ui.prototype.remove.call(this,a);return}b.expiration=c}b.creation=K()}Ui.N.set.call(this,a,b)};
Ui.prototype.A=function(a,b){var c=Ui.N.A.call(this,a);if(c)if(!b&&Vi(c))Ui.prototype.remove.call(this,a);else return c};B(Wi,Ui);var Zi,j$=new Oi;Zi=j$.isAvailable()?new Wi(j$):null;var aj,k$=new Pi;aj=k$.isAvailable()?new Wi(k$):null;var Xj={CI:"atp",YM:"ska",yM:"que",ML:"mus",UM:"sus"};var pj=null;"undefined"!=typeof window.XMLHttpRequest?pj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(pj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var sj={"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"};Bj.prototype.F=function(a,b,c,d){b?a(d):a({text:c.responseText})};
Bj.prototype.D=function(a,b){a(Error("Request error: "+b.status))};
Bj.prototype.G=function(a){a(Error("request timed out"))};Ej.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.o+",status:"+this.status+"}"};B(Lj,G);Lj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Z.subscribe(a,b,c)};
Lj.prototype.Ha=function(a,b,c){return this.isDisposed()?!1:Ce(this.Z,a,b,c)};
Lj.prototype.oc=function(a){return this.isDisposed()?!1:this.Z.oc(a)};
Lj.prototype.S=function(a,b){return this.isDisposed()?!1:this.Z.S.apply(this.Z,arguments)};B(Mj,Lj);Mj.prototype.qc=function(){return this.screens};
Mj.prototype.contains=function(a){return!!Jj(this.screens,a)};
Mj.prototype.get=function(a){return a?Kj(this.screens,a):null};
Mj.prototype.info=function(a){$h(this.F,a)};B(Qj,Lj);var l$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=Qj.prototype;f.start=function(){!this.o&&(0,window.isNaN)(this.A)&&this.ds()};
f.stop=function(){this.o&&(this.o.abort(),this.o=null);(0,window.isNaN)(this.A)||(xi(this.A),this.A=window.NaN)};
f.V=function(){this.stop();Qj.N.V.call(this)};
f.ds=function(){this.A=window.NaN;this.o=tj(Cj(this.G,"/pairing/get_screen"),{method:"POST",Hb:{pairing_code:this.F},timeout:5E3,sb:y(this.nE,this),onError:y(this.mE,this),Md:y(this.oE,this)})};
f.nE=function(a,b){this.o=null;var c=b.screen||{};c.dialId=this.C;c.name=this.D;this.S("pairingComplete",new ei(c))};
f.mE=function(a){this.o=null;a.status&&404==a.status?this.B>=l$.length?this.S("pairingFailed",Error("DIAL polling timed out")):(a=l$[this.B],this.A=vi(y(this.ds,this),a),this.B++):this.S("pairingFailed",Error("Server error "+a.status))};
f.oE=function(){this.o=null;this.S("pairingFailed",Error("Server not responding"))};B(Rj,Mi);Rj.prototype.set=function(a,b){this.A.set(this.o+a,b)};
Rj.prototype.get=function(a){return this.A.get(this.o+a)};
Rj.prototype.remove=function(a){this.A.remove(this.o+a)};
Rj.prototype.dc=function(a){var b=this.A.dc(!0),c=this,d=new Ee;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=Uj.prototype;f.ab=function(){return this.o.ab()};
f.removeAll=function(a){a=Qe(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
f.remove=function(a){return this.o.remove(Vj(a))};
f.clear=function(){this.o.clear()};
f.isEmpty=function(){return this.o.isEmpty()};
f.contains=function(a){return Me(this.o,Vj(a))};
f.Na=function(){return this.o.Na()};
f.clone=function(){return new Uj(this)};
f.equals=function(a){return this.ab()==Pe(a)&&Wj(this,a)};
f.dc=function(){return this.o.dc(!1)};Yj.prototype.equals=function(a){return a?this.id==a.id:!1};var ck=/\s*;\s*/;f=Zj.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+'"');n(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(ck),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=n(this.get(a));this.set(a,"",0,b,c);return d};
f.Qa=function(){return dk(this).keys};
f.Na=function(){return dk(this).values};
f.isEmpty=function(){return!this.o.cookie};
f.ab=function(){return this.o.cookie?(this.o.cookie||"").split(ck).length:0};
f.Se=function(a){for(var b=dk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
f.clear=function(){for(var a=dk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var ik=new Zj(window.document);ik.A=3950;var uk,lk="";B(xk,Mj);f=xk.prototype;f.start=function(){wk(this)&&this.S("screenChange");!cj("yt-remote-lounge-token-expiration")&&yk(this);xi(this.o);this.o=vi(y(this.start,this),1E4)};
f.Hj=function(a,b){wk(this);Nj(this,a);zk(this,!1);this.S("screenChange");b(a);a.token||yk(this)};
f.remove=function(a,b){var c=wk(this);Pj(this,a)&&(zk(this,!1),c=!0);b(a);c&&this.S("screenChange")};
f.Bj=function(a,b,c,d){var e=wk(this),h=this.get(a.id);h?(h.name!=b&&(h.name=b,zk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.S("screenChange")};
f.V=function(){xi(this.o);xk.N.V.call(this)};
f.Ix=function(a){wk(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)}zk(this,!b);b&&$h(this.F,"Missed "+b+" lounge tokens.")};
f.Hx=function(a){$h(this.F,"Requesting lounge tokens failed: "+a)};B(Bk,Lj);f=Bk.prototype;f.start=function(){var a=(0,window.parseInt)(cj("yt-remote-fast-check-period")||"0",10);(this.C=K()-144E5<a?0:a)?Fk(this):(this.C=K()+3E5,bj("yt-remote-fast-check-period",this.C),this.pm())};
f.isEmpty=function(){return ac(this.o)};
f.update=function(){Ak("Updating availability on schedule.");var a=this.D(),b=Pb(this.o,function(b,d){return b&&!!Kj(a,d)},this);
Ek(this,b)};
f.V=function(){xi(this.B);this.B=window.NaN;this.A&&(this.A.abort(),this.A=null);Bk.N.V.call(this)};
f.pm=function(){xi(this.B);this.B=window.NaN;this.A&&this.A.abort();var a=Gk(this);if(Sb(a)){var b=Cj(this.F,"/pairing/get_screen_availability"),c={lounge_token:Wb(a).join(",")};this.A=Dj(this.F,b,c,y(this.gC,this,a),y(this.fC,this))}else Ek(this,{}),Fk(this)};
f.gC=function(a,b){this.A=null;var c=Wb(Gk(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;Ek(this,d);Fk(this)}else this.$a("Changing Screen set during request."),this.pm()};
f.fC=function(a){this.$a("Screen availability failed: "+a);this.A=null;Fk(this)};
f.$a=function(a){$h("OnlineScreenService",a)};B(Ik,Mj);f=Ik.prototype;f.start=function(){this.A.start();this.o.start();this.screens.length&&(this.S("screenChange"),this.o.isEmpty()||this.S("onlineScreenChange"))};
f.Hj=function(a,b,c){this.A.Hj(a,b,c)};
f.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
f.Bj=function(a,b,c,d){this.A.contains(a)?this.A.Bj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,$h(this.F,a),d(Error(a)))};
f.qc=function(a){return a?this.screens:sb(this.screens,ae(this.B,function(a){return!this.contains(a)},this))};
f.es=function(){return ae(this.qc(!0),function(a){return!!this.o.o[a.id]},this)};
f.gs=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var h=new Qj(this.D,a,b,c);h.subscribe("pairingComplete",y(function(a){Mb(h);d(Jk(this,a))},this));
h.subscribe("pairingFailed",function(a){Mb(h);e(a)});
h.start();return y(h.stop,h)};
f.tx=function(a,b){for(var c=2,d=b(a,c);Mk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.qE=function(a,b,c,d){tj(Cj(this.D,"/pairing/get_screen"),{method:"POST",Hb:{pairing_code:a},timeout:5E3,sb:y(function(a,d){var k=new ei(d.screen||{});if(!k.name||Mk(this,k.name))k.name=this.tx(k.name,b);c(Jk(this,k))},this),
onError:y(function(a){d(Error("pairing request failed: "+a.status))},this),
Md:y(function(){d(Error("pairing request timed out."))},this)})};
f.V=function(){Mb(this.A);Mb(this.o);Ik.N.V.call(this)};
f.Tx=function(){Nk(this);this.S("screenChange");this.o.update()};
Ik.prototype.dispose=Ik.prototype.dispose;B(Pk,Lj);f=Pk.prototype;f.ej=function(a){this.B=a;this.S("sessionScreen",this.B)};
f.kc=function(a){this.isDisposed()||(a&&Qk(this,""+a),this.B=null,this.S("sessionScreen",null))};
f.info=function(a){$h(this.M,a)};
f.ks=function(){return null};
f.zm=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(){Qk(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
f.V=function(){this.zm("");Pk.N.V.call(this)};B(Sk,Pk);f=Sk.prototype;f.ym=function(a){if(this.o){if(this.o==a)return;Qk(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&&Uk(this);Tk(this,"getMdxSessionStatus")};
f.Zf=function(a){this.info("launchWithParams: "+ge(a));this.C=a;this.o&&Uk(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.zm=v;f.V=function(){this.info("disposeInternal");xi(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;Sk.N.V.call(this)};
f.$C=function(a,b){if(!this.isDisposed())if(b){var c=ee(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+ge(c));switch(d){case "mdxSessionStatus":Rk(this,c.screenId);break;default:Qk(this,"Unknown youtube message: "+d)}}else Qk(this,"Unable to parse message.")}else Qk(this,"No data in message.")};
f.Oo=function(a,b,c,d){Lk(this.J,this.A.label,a,this.A.friendlyName,y(function(e){e?b(e):0<=d?(Qk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),vi(y(this.Oo,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
f.ks=function(){return this.o};
f.rE=function(a){this.isDisposed()||a||(Qk(this,"Cast session died."),this.kc())};B(Vk,Pk);f=Vk.prototype;f.ym=function(a){this.D=a;this.D.addUpdateListener(this.L)};
f.Zf=function(a){this.C=a;this.G()};
f.stop=function(){this.o();this.o=v;xi(this.F);this.D?this.D.stop(y(this.kc,this,null),y(this.kc,this,"Failed to stop DIAL device.")):this.kc()};
f.V=function(){this.o();this.o=v;xi(this.F);this.D&&this.D.removeUpdateListener(this.L);this.D=null;Vk.N.V.call(this)};
f.uE=function(a){this.isDisposed()||a||(Qk(this,"DIAL session died."),this.o(),this.o=v,this.kc())};
f.Ll=function(a){this.K=Fj();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,Xk(this));a(b);Wk(this)}else this.G=y(function(){xi(this.F);this.G=v;this.F=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,Xk(this));a(b);Wk(this)},this),this.F=vi(y(function(){this.G()},this),100)};
f.jz=function(a,b){Lk(this.J,this.H.receiver.label,a,this.A.friendlyName,y(function(a){a&&a.token?(this.ej(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Ll(b)},this),y(function(a){Qk(this,"Failed to get DIAL screen: "+a);
this.Ll(b)},this))};B(Yk,Pk);Yk.prototype.stop=function(){this.kc()};
Yk.prototype.ym=v;Yk.prototype.Zf=function(){xi(this.o);this.o=window.NaN;var a=Kj(this.J.qc(),this.A.label);a?this.ej(a):this.kc(Error("No such screen"))};
Yk.prototype.V=function(){xi(this.o);this.o=window.NaN;Yk.N.V.call(this)};B(Zk,Lj);f=Zk.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.Sq,this),y(this.ZB,this),d,e);c.customDialLaunchCallback=y(this.KA,this);window.chrome.cast.initialize(c,y(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.C),Wh(bl),this.A.subscribe("onlineScreenChange",y(this.hs,this)),this.B=el(this),window.chrome.cast.setCustomReceivers(this.B,v,y(function(a){this.$a("Failed to set initial custom receivers: "+ge(a))},this)),this.S("yt-remote-cast2-availability-change",cl(this)),b(!0))},this),y(function(a){this.$a("Failed to initialize API: "+ge(a));
b(!1)},this))};
f.zD=function(a,b){al("Setting connected screen ID: "+a+" -> "+b);if(this.o){var c=this.o.B;if(!a||c&&c.id!=a)al("Unsetting old screen status: "+this.o.A.friendlyName),Mb(this.o),this.o=null}if(a&&b){if(!this.o){c=Kj(this.A.qc(),a);if(!c){al("setConnectedScreenStatus: Unknown screen.");return}var d=$k(this,c);d||(al("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.$a("Failed to set initial custom receivers: "+ge(a))},this)));
al("setConnectedScreenStatus: new active receiver: "+d.friendlyName);dl(this,new Yk(this.A,d),!0)}this.o.zm(b)}else al("setConnectedScreenStatus: no screen.")};
f.BD=function(a){this.isDisposed()?this.$a("Setting connection data on disposed cast v2"):this.o?this.o.Zf(a):this.$a("Setting connection data without a session")};
f.tE=function(){this.isDisposed()?this.$a("Stopping session on disposed cast v2"):this.o?(this.o.stop(),Mb(this.o),this.o=null):al("Stopping non-existing session")};
f.requestSession=function(){window.chrome.cast.requestSession(y(this.Sq,this),y(this.kC,this))};
f.V=function(){this.A.Ha("onlineScreenChange",y(this.hs,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.C);Xh(bl);Mb(this.o);Zk.N.V.call(this)};
f.$a=function(a){$h("Controller",a)};
f.Tq=function(a,b){this.o==a&&(b||dl(this,null),this.S("yt-remote-cast2-session-change",b))};
f.XB=function(a,b){if(!this.isDisposed())if(a)switch(al("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.o)if(this.o.A.label!=a.label)al("onReceiverAction_: Stopping active receiver: "+this.o.A.friendlyName),this.o.stop();else{al("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:dl(this,new Yk(this.A,a));
break;case window.chrome.cast.ReceiverType.DIAL:dl(this,new Vk(this.A,a));break;case window.chrome.cast.ReceiverType.CAST:dl(this,new Sk(this.A,a));break;default:this.$a("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.o&&this.o.A.label==a.label?this.o.stop():this.$a("Stopping receiver w/o session: "+a.friendlyName)}else this.$a("onReceiverAction_ called without receiver.")};
f.KA=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.$a("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.$a("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 al("Reselecting dial screen."),
this.S("yt-remote-cast2-session-change",this.o.B),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.$a('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);dl(this,new Vk(this.A,b))}b=this.o;b.H=a;return b.H.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(y(b.jz,b,(b.H.extraData||{}).screenId||null)):new window.Promise(y(b.Ll,b))};
f.Sq=function(a){if(!this.isDisposed()){al("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)al("Got resumed cast session before resumed mdx connection."),dl(this,new Sk(this.A,b),!0);else{this.$a("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.o.A,d=Kj(this.A.qc(),c.label);d&&fi(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(al("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.o),this.o=new Sk(this.A,b),this.o.subscribe("sessionScreen",y(this.Tq,this,this.o)),this.o.Zf(null));this.o.ym(a)}}};
f.sE=function(){return this.o?this.o.ks():null};
f.kC=function(a){this.isDisposed()||(this.$a("Failed to estabilish a session: "+ge(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&dl(this,null))};
f.ZB=function(a){al("Receiver availability updated: "+a);if(!this.isDisposed()){var b=cl(this);this.D=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;cl(this)!=b&&this.S("yt-remote-cast2-availability-change",cl(this))}};
f.hs=function(){if(!this.isDisposed()){var a=cl(this);this.B=el(this);al("Updating custom receivers: "+ge(this.B));window.chrome.cast.setCustomReceivers(this.B,v,y(function(){this.$a("Failed to set custom receivers.")},this));
var b=cl(this);b!=a&&this.S("yt-remote-cast2-availability-change",b)}};
Zk.prototype.setLaunchParams=Zk.prototype.BD;Zk.prototype.setConnectedScreenStatus=Zk.prototype.zD;Zk.prototype.stopSession=Zk.prototype.tE;Zk.prototype.getCastSession=Zk.prototype.sE;Zk.prototype.requestSession=Zk.prototype.requestSession;Zk.prototype.init=Zk.prototype.init;Zk.prototype.dispose=Zk.prototype.dispose;var pl=null,rl=[];Hl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Hl.prototype.Jp=function(){return this.event?!1===this.event.returnValue:!1};
Hl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Hl.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var Gl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Jl=r("yt.events.listeners_")||{};q("yt.events.listeners_",Jl,void 0);var Ll=r("yt.events.counter_")||{count:0};q("yt.events.counter_",Ll,void 0);var fm=!1,dm=null,gm=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",gm,void 0);new tm;tm.prototype.set=function(a){this.o=a};
tm.prototype.reset=function(){this.set(K())};
tm.prototype.get=function(){return this.o};um.prototype.stringify=function(a){return this.A.Ac(a)};
um.prototype.parse=function(a){return this.o(a)};f=vm.prototype;f.get=function(a){a=wm(this,a);return this.o[a]};
f.set=function(a,b){a=wm(this,a);this.o[a]=b};
f.ab=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.ab(),b=this.ab(),c=[],a=this.ab()-a;a<b;a++)c.push(this.get(a));return c};
f.Qa=function(){for(var a=[],b=this.ab(),c=0;c<b;c++)a[c]=c;return a};
f.Se=function(a){for(var b=this.ab(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};B(xm,G);f=xm.prototype;f.kg=!1;f.hh=0;f.We=null;f.Kf=function(a){this.o=arguments;this.We||this.hh?this.kg=!0:ym(this)};
f.stop=function(){this.We&&(Vd(this.We),this.We=null,this.kg=!1,this.o=[])};
f.pause=function(){this.hh++};
f.resume=function(){this.hh--;this.hh||!this.kg||this.We||(this.kg=!1,ym(this))};
f.V=function(){xm.N.V.call(this);this.stop()};
f.vC=function(){this.We=null;this.kg&&!this.hh&&(this.kg=!1,ym(this))};B(zm,G);var Cm=[];f=zm.prototype;f.R=function(a,b,c,d){return Am(this,a,b,c,d)};
f.za=function(a,b,c,d,e){if(da(b))for(var h=0;h<b.length;h++)this.za(a,b[h],c,d,e);else c=c||this.handleEvent,e=e||this.C||this,c=Pc(c),d=!!d,b=Fc(a)?Nc(a.P,String(b),c,d,e):a?(a=Rc(a))?Nc(a,b,c,d,e):null:null,b&&($c(b),delete this.A[b.key]);return this};
f.removeAll=function(){Ob(this.A,function(a,b){this.A.hasOwnProperty(b)&&$c(a)},this);
this.A={}};
f.V=function(){zm.N.V.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Hm.prototype.o=null;var m$;B(Km,Hm);m$=new Km;f=Mm.prototype;f.Xe=null;f.Pc=!1;f.pg=null;f.Wm=null;f.lh=null;f.Lf=null;f.ie=null;f.ve=null;f.bf=null;f.Ab=null;f.xh=0;f.Qc=null;f.Ej=null;f.Ye=null;f.Vg=-1;f.xr=!0;f.Ne=!1;f.nl=0;f.ij=null;var Um={},Sm={};f=Mm.prototype;f.setTimeout=function(a){this.D=a};
f.mD=function(a){a=a.target;var b=this.ij;b&&3==xn(a)?b.Kf():this.Wr(a)};
f.Wr=function(a){try{if(a==this.Ab)a:{var b=xn(this.Ab),c=this.Ab.A,d=this.Ab.getStatus();if(Tg&&!yc(10)||zc&&!wc("420+")){if(4>b)break a}else if(3>b||3==b&&!Ac&&!Bn(this.Ab))break a;this.Ne||4!=b||7==c||(8==c||0>=d?this.o.Mc(3):this.o.Mc(2));dn(this);var e=this.Ab.getStatus();this.Vg=e;var h=Bn(this.Ab);(this.Pc=200==e)?(4==b&&Wm(this),this.F?(Ym(this,b,h),Ac&&this.Pc&&3==b&&(this.C.R(this.A,"tick",this.gD),this.A.start())):Vm(this,h),this.Pc&&!this.Ne&&(4==b?this.o.dj(this):(this.Pc=!1,Qm(this)))):
(this.Ye=400==e&&0<h.indexOf("Unknown SID")?3:0,Tm(),Wm(this),Xm(this))}}catch(k){this.Ab&&Bn(this.Ab)}finally{}};
f.gD=function(){var a=xn(this.Ab),b=Bn(this.Ab);this.xh<b.length&&(dn(this),Ym(this,a,b),this.Pc&&4!=a&&Qm(this))};
f.EC=function(a){cn(y(this.DC,this,a),0)};
f.DC=function(a){this.Ne||(dn(this),Vm(this,a),Qm(this))};
f.Zq=function(a){cn(y(this.CC,this,a),0)};
f.CC=function(a){this.Ne||(Wm(this),this.Pc=a,this.o.dj(this),this.o.Mc(4))};
f.cancel=function(){this.Ne=!0;Wm(this)};
f.TC=function(){this.pg=null;var a=K();0<=a-this.Wm?(2!=this.Lf&&this.o.Mc(3),Wm(this),this.Ye=2,Tm(),Xm(this)):bn(this,this.Wm-a)};f=jn.prototype;f.kl=null;f.nc=null;f.jj=!1;f.Wo=null;f.zi=null;f.ll=null;f.ml=null;f.yc=null;f.Ed=-1;f.Ug=null;f.Hg=null;f.connect=function(a){this.ml=a;a=kn(this.o,null,this.ml);Tm();this.Wo=K();var b=this.o.H;null!=b?(this.Ug=b[0],(this.Hg=b[1])?(this.yc=1,ln(this)):(this.yc=2,nn(this))):(Bf(a,"MODE","init"),this.nc=new Mm(this,0,void 0,void 0,void 0),this.nc.Xe=this.kl,Pm(this.nc,a,!1,null,!0),this.yc=0)};
f.Fw=function(a){if(a)this.yc=2,nn(this);else{Tm();var b=this.o;b.Hc=b.be.Ed;Vn(b,9)}a&&this.Mc(2)};
f.Kk=function(a){return this.o.Kk(a)};
f.Vo=function(){return!1};
f.Oq=function(a,b){this.Ed=a.Vg;if(0==this.yc)if(b){try{var c=this.A.parse(b)}catch(d){c=this.o;c.Hc=this.Ed;Vn(c,2);return}this.Ug=c[0];this.Hg=c[1]}else c=this.o,c.Hc=this.Ed,Vn(c,2);else if(2==this.yc)if(this.jj)Tm(),this.ll=K();else if("11111"==b){if(Tm(),this.jj=!0,this.zi=K(),c=this.zi-this.Wo,!Tg||yc(10)||500>c)this.Ed=200,this.nc.cancel(),Tm(),mn(this.o,this,!0)}else Tm(),this.zi=this.ll=K(),this.jj=!1};
f.dj=function(){this.Ed=this.nc.Vg;if(this.nc.Pc)0==this.yc?this.Hg?(this.yc=1,ln(this)):(this.yc=2,nn(this)):2==this.yc&&(a=!1,(a=!Tg||yc(10)?this.jj:200>this.ll-this.zi?!1:!0)?(Tm(),mn(this.o,this,!0)):(Tm(),mn(this.o,this,!1)));else{0==this.yc?Tm():2==this.yc&&Tm();var a=this.o;a.Hc=this.Ed;Vn(a,2)}};
f.rh=function(){return this.o.rh()};
f.isActive=function(){return this.o.isActive()};
f.Mc=function(a){this.o.Mc(a)};B(on,J);var yn=/^https?$/i,xoa=["POST","PUT"];f=on.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.X=b;this.O=!1;this.B=!0;this.o=this.M?Lm(this.M):Lm(m$);this.L=this.M?Jm(this.M):Jm(m$);this.o.onreadystatechange=y(this.Kq,this);try{sm(vn(this,"Opening Xhr")),this.U=!0,this.o.open(b,String(a),!0),this.U=!1}catch(h){sm(vn(this,"Error opening Xhr: "+h.message));un(this,h);return}a=c||"";var e=this.headers.clone();
d&&Se(d,function(a,b){e.set(b,a)});
d=eb(e.Qa(),rn);c=aa.FormData&&a instanceof aa.FormData;!jb(xoa,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.$&&(this.o.responseType=this.$);Yb(this.o,"withCredentials")&&(this.o.withCredentials=this.Z);try{An(this),0<this.D&&(this.K=qn(this.o),sm(vn(this,"Will abort after "+this.D+"ms if incomplete, xhr2 "+this.K)),this.K?(this.o.timeout=this.D,this.o.ontimeout=y(this.Xo,this)):this.J=Ud(this.Xo,this.D,this)),sm(vn(this,"Sending request")),this.G=!0,this.o.send(a),this.G=!1}catch(h){sm(vn(this,"Send error: "+h.message)),un(this,h)}};
f.Xo=function(){"undefined"!=typeof wn&&this.o&&(this.F="Timed out after "+this.D+"ms, aborting",this.A=8,vn(this,this.F),this.aa("timeout"),en(this,8))};
f.V=function(){this.o&&(this.B&&(this.B=!1,this.C=!0,this.o.abort(),this.C=!1),tn(this,!0));on.N.V.call(this)};
f.Kq=function(){this.isDisposed()||(this.U||this.G||this.C?zn(this):this.WB())};
f.WB=function(){zn(this)};
f.isActive=function(){return!!this.o};
f.getStatus=function(){try{return 2<xn(this)?this.o.status:-1}catch(a){return-1}};f=Cn.prototype;f.Ng=null;f.Xb=null;f.ub=null;f.jl=null;f.Bi=null;f.mo=null;f.Ei=null;f.bh=0;f.Iz=0;f.Nb=null;f.de=null;f.Bd=null;f.Te=null;f.be=null;f.Dj=null;f.Yf=-1;f.Up=-1;f.Hc=-1;f.Pg=0;f.xf=0;f.Pe=8;var Wn=new J;B(En,jc);B(Fn,jc);B(Gn,jc);f=Cn.prototype;f.connect=function(a,b,c,d,e){Tm();this.jl=b;this.Ng=c||{};d&&n(e)&&(this.Ng.OSID=d,this.Ng.OAID=e);this.be=new jn(this);this.be.kl=null;this.be.A=this.D;this.be.connect(a)};
f.Vo=function(){return 0==this.o};
f.Wq=function(a){this.de=null;Qn(this,a)};
f.Vq=function(){this.Bd=null;this.ub=new Mm(this,0,this.B,"rpc",this.F);this.ub.Xe=null;this.ub.nl=0;var a=this.mo.clone();zf(a,"RID","rpc");zf(a,"SID",this.B);zf(a,"CI",this.Dj?"0":"1");zf(a,"AID",this.Yf);In(this,a);if(!Tg||yc(10))zf(a,"TYPE","xmlhttp"),Pm(this.ub,a,!0,this.Ei,!1);else{zf(a,"TYPE","html");var b=this.ub,c=!!this.Ei;b.Lf=3;b.ie=Cf(a.clone());an(b,c)}};
f.Oq=function(a,b){if(0!=this.o&&(this.ub==a||this.Xb==a))if(this.Hc=a.Vg,this.Xb==a&&3==this.o)if(7<this.Pe){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.Bd){if(this.ub)if(this.ub.lh+3E3<this.Xb.lh)Ln(this),this.ub.cancel(),this.ub=null;else break a;Tn(this);Tm()}}else this.Up=c[1],0<this.Up-this.Yf&&37500>c[2]&&this.Dj&&0==this.xf&&!this.Te&&(this.Te=cn(y(this.eA,this),6E3));else Vn(this,11)}else"y2f%"!=b&&Vn(this,11);else if(this.ub==a&&Ln(this),!D(b)){c=
this.D.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.Yf=e[0];e=e[1];2==this.o?"c"==e[0]?(this.B=e[1],this.Ei=e[2],e=e[3],null!=e?this.Pe=e:this.Pe=6,this.o=3,this.Nb&&this.Nb.uo(this),this.mo=kn(this,this.rh()?this.Ei:null,this.jl),Rn(this)):"stop"==e[0]&&Vn(this,7):3==this.o&&("stop"==e[0]?Vn(this,7):"noop"!=e[0]&&this.Nb&&this.Nb.to(this,e),this.xf=0)}}};
f.eA=function(){null!=this.Te&&(this.Te=null,this.ub.cancel(),this.ub=null,Tn(this),Tm())};
f.dj=function(a){var b;if(this.ub==a)Ln(this),this.ub=null,b=2;else if(this.Xb==a)this.Xb=null,b=1;else return;this.Hc=a.Vg;if(0!=this.o)if(a.Pc)1==b?(K(),Wn.aa(new Fn(Wn,a.bf?a.bf.length:0)),Mn(this),this.C.length=0):Rn(this);else{var c=a.Ye,d;if(!(d=3==c||7==c||0==c&&0<this.Hc)){if(d=1==b)this.Xb||this.de||1==this.o||2<=this.Pg?d=!1:(this.de=cn(y(this.Wq,this,a),Sn(this,this.Pg)),this.Pg++,d=!0);d=!(d||2==b&&Tn(this))}if(d)switch(c){case 1:Vn(this,5);break;case 4:Vn(this,10);break;case 3:Vn(this,
6);break;case 7:Vn(this,12);break;default:Vn(this,2)}}};
f.bx=function(a){if(!jb(arguments,this.o))throw Error("Unexpected channel state: "+this.o);};
f.ND=function(a){a?Tm():(Tm(),Un(this,8))};
f.Kk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new on;a.Z=!1;return a};
f.isActive=function(){return!!this.Nb&&this.Nb.isActive(this)};
f.Mc=function(){Wn.aa(new Gn(Wn))};
f.rh=function(){return!(!Tg||yc(10))};
f=Xn.prototype;f.uo=function(){};
f.to=function(){};
f.so=function(){};
f.Ak=function(){};
f.Lo=function(){return{}};
f.isActive=function(){return!0};B(Yn,Sd);Yn.prototype.F=function(){if(500<this.o){var a=this.o;24E4>2*a&&(a*=2);Td(this,a)}this.G()};
Yn.prototype.start=function(){Yn.N.start.call(this);this.D=K()+this.o};
Yn.prototype.stop=function(){this.D=0;Yn.N.stop.call(this)};B(Zn,Xn);f=Zn.prototype;f.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
f.Ha=function(a,b,c){return Ce(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(),ao(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 Cn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.o;e&&(e.Nb=null);d.Nb=this;this.o=d;e?this.o.connect(a,b,this.C,e.B,e.Yf):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&&Nn(this.o,c)};
f.uo=function(){var a=this.A;a.stop();Td(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)Nn(this.o,a[b])}this.S("handlerOpened")};
f.so=function(a,b){var c=2==b&&401==this.o.Hc;if(4!=b&&!c){if(6==b||410==this.o.Hc)c=this.A,c.stop(),Td(c,500);this.A.start()}this.S("handlerError",b)};
f.Ak=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.Lo=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.to=function(a,b){if("S"==b[0])this.J=b[1];else if("gracefulReconnect"==b[0]){var c=this.A;c.stop();Td(c,500);this.A.start();Kn(this.o)}else this.S("handlerMessage",new Fl(b[0],b[1]))};
f.lE=function(){this.A.stop();var a=this.o,b=0;a.ub&&b++;a.Xb&&b++;0!=b?this.A.start():this.connect(this.F,this.D)};f=co.prototype;f.ab=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=noa(b,a);0<=c?(ob(b,c),b=!0):b=!1;return b||qb(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=io.prototype;f.reset=function(a){this.videoIds=[];this.A="";lo(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.kb=function(){return 1==this.o};
f.setVideoId=function(a){jo(this,"setVideoId");var b=this.index;this.index=ib(this.videoIds,a);b!=this.index&&ko(this);return-1!=b};
f.remove=function(a){jo(this,"remove");var b=mo(this);return qb(this.videoIds,a)?(this.index=ib(this.videoIds,b),!0):!1};
f.clone=function(){return new io(ro(this))};B(uo,Lj);f=uo.prototype;f.play=function(){1==this.A?(this.o?this.o.play(null,v,y(function(){this.$a("Failed to play video with cast v2 channel.");wo(this,"play")},this)):wo(this,"play"),Bo(this,1,oo(vo(this))),Co(this)):Ao(this,this.play)};
f.pause=function(){1==this.A?(this.o?this.o.pause(null,v,y(function(){this.$a("Failed to pause video with cast v2 channel.");wo(this,"pause")},this)):wo(this,"pause"),Bo(this,2,oo(vo(this))),Co(this)):Ao(this,this.pause)};
f.bs=function(a){if(1==this.A){if(this.o){var b=vo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;b.kb()||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.$a("Failed to seek in video with cast v2 channel.");wo(this,"seekTo",{newTime:a})},this))}else wo(this,"seekTo",{newTime:a});
Bo(this,3,a);Co(this)}else Ao(this,pa(this.bs,a))};
f.stop=function(){if(1==this.A){this.o?this.o.stop(null,v,y(function(){this.$a("Failed to stop video with cast v2 channel.");wo(this,"stopVideo")},this)):wo(this,"stopVideo");
var a=vo(this);lo(a);xo(this,a);Co(this)}else Ao(this,this.stop)};
f.setVolume=function(a,b){if(1==this.A){var c=vo(this);if(this.B){if(c.volume!=a){var d=Math.round(a)/100;this.B.setReceiverVolumeLevel(d,y(function(){Do("set receiver volume: "+d)},this),y(function(){this.$a("failed to set receiver volume.")},this))}c.muted!=b&&this.B.setReceiverMuted(b,y(function(){Do("set receiver muted: "+b)},this),y(function(){this.$a("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);wo(this,"setVolume",e)}c.muted=b;c.volume=a;xo(this,c);Co(this)}else Ao(this,pa(this.setVolume,a,b))};
f.Bm=function(a,b){if(1==this.A){var c=vo(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:ge(b.style)};hc(d,c.B);wo(this,"setSubtitlesTrack",d)}else d={videoId:a},wo(this,"setSubtitlesTrack",d);xo(this,c)}else Ao(this,pa(this.Bm,a,b))};
f.cs=function(a,b){if(1==this.A){wo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Gb.id});var c=vo(this);c.audioTrackId=b.Gb.id;xo(this,c)}else Ao(this,pa(this.cs,a,b))};
f.dispose=function(){if(3!=this.A){var a=this.A;this.A=3;this.S("proxyStateChange",a,this.A)}uo.N.dispose.call(this)};
f.V=function(){xi(this.D);this.D=window.NaN;zo(this);this.C=null;this.F.clear();to(this,null);uo.N.V.call(this)};
f.fn=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();)go(this.F).apply(this);else 3==a&&this.dispose()}};
f.PB=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.D))&&this.S(a)};
f.iA=function(a){if(!a)this.eh(null),to(this,null);else if(this.B.receiver.volume){a=this.B.receiver.volume;var b=vo(this);if(b.volume!=a.level||b.muted!=a.muted)Do("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,xo(this,b),Co(this)}};
f.eh=function(a){Do("Cast media: "+!!a);this.o&&this.o.removeUpdateListener(this.J);if(this.o=a)this.o.addUpdateListener(this.J),Eo(this),Co(this)};
f.hA=function(a){a?(Eo(this),Co(this)):this.eh(null)};
f.$a=function(a){$h("CP",a)};B(Go,Lj);f=Go.prototype;
f.connect=function(a,b){if(b){if(this.ya.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);n(e)&&(k.currentIndex=e);c&&(this.ya.A=c);this.ya.videoId=d;this.ya.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.ya.videoIds=[d];this.ya.index=0}this.ya.state=3;no(this.ya,h);this.ib("Connecting with setPlaylist and params: "+ge(k));this.o.connect({method:"setPlaylist",params:ge(k)},
a,mk())}else this.ib("Connecting without params"),this.o.connect({},a,mk());Io(this)};
f.dispose=function(){this.isDisposed()||(this.S("beforeDispose"),Ho(this,3));Go.N.dispose.call(this)};
f.V=function(){Jo(this);Lo(this);Ko(this);xi(this.G);this.G=window.NaN;xi(this.H);this.H=window.NaN;this.B=null;Nl(this.P);this.P.length=0;this.o.dispose();Go.N.V.call(this);this.A=this.ya=this.o=null};
f.ib=function(a){$h("conn",a)};
f.Ax=function(){this.C(2)};
f.nA=function(){this.ib("Channel opened");this.M&&(this.M=!1,Ko(this),this.J=vi(y(function(){this.ib("Timing out waiting for a screen.");this.C(1)},this),15E3));
sk($n(this.o),this.O)};
f.jA=function(){this.ib("Channel closed");(0,window.isNaN)(this.D)?tk(!0):tk();this.dispose()};
f.kA=function(a){tk();(0,window.isNaN)(this.F())?(this.ib("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,this.ib("Channel error: "+a+" with reconnection in "+this.F()+" ms"),Ho(this,2))};
f.lA=function(a){a.params?this.ib("Received: action="+a.action+", params="+ge(a.params)):this.ib("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=de(a.params.devices);this.A=ji(a,function(a){return new Yj(a)});
a=!!eb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
Qo(this,a);break;case "loungeScreenConnected":Qo(this,!0);break;case "loungeScreenDisconnected":rb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
Qo(this,!1);break;case "remoteConnected":var b=new Yj(de(a.params.device));eb(this.A,function(a){return a.equals(b)})||nb(this.A,b);
break;case "remoteDisconnected":b=new Yj(de(a.params.device));rb(this.A,function(a){return a.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":So(this,a);break;case "nowPlaying":Uo(this,a);break;case "onStateChange":To(this,a);break;case "onVolumeChanged":Vo(this,a);break;case "onSubtitlesTrackChanged":Ro(this,a);break;default:this.ib("Unrecognized action: "+a.action)}};
f.mA=function(a){a.params?this.ib("Received: action="+a.action+", params="+ge(a.params)):this.ib("Received: action="+a.action);Wo(this,a);Xo(this,a);if(Oo(this)){var b=this.ya.clone(),c=!1,d,e,h,k,m,l;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,m=a.params.volume,l=a.params.muted,n(a.params.currentError)&&de(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==mo(this.ya)&&(delete a.params.videoId,
ac(a.params)?this.ya.B=null:this.ya.B=a.params,this.S("remotePlayerChange"));else if(mo(this.ya)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=mo(this.ya)):this.ya.setVideoId(""),e&&(e=e.split(","),qo(this.ya,e,d))):qo(this.ya,[]);e=this.ya;var p=d;jo(e,"add");p&&!jb(e.videoIds,p)?(e.videoIds.push(p),e=!0):e=!1;e&&Mo(this,"getPlaylist");d&&this.ya.setVideoId(d);b.index==this.ya.index&&Gb(b.videoIds,
this.ya.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.S("remoteQueueChange"):this.S("remoteQueueChange");n(h)&&(a=(0,window.parseInt)(h,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.ya.o&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.ya.o,this.ya.o=a,1==this.ya.o?No(this):Lo(this));k&&(a=(0,window.parseInt)(k,10),no(this.ya,(0,window.isNaN)(a)?0:a),c=!0);n(m)&&(a=(0,window.parseInt)(m,10),(0,window.isNaN)(a)||(c=c||this.ya.volume!=a,this.ya.volume=a),n(l)&&(l="true"==
l,c=c||this.ya.muted!=l,this.ya.muted=l));c&&this.S("remotePlayerChange")}}};
f.rD=function(){if(this.B){var a=this.B;this.B=null;this.ya.videoId!=a&&Mo(this,"getNowPlaying")}};
Go.prototype.subscribe=Go.prototype.subscribe;Go.prototype.unsubscribeByKey=Go.prototype.oc;Go.prototype.$=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.F())?Oo(this)&&(a=1):a=2);return a};
Go.prototype.getProxyState=Go.prototype.$;Go.prototype.C=function(a){this.ib("Disconnecting with "+a);Jo(this);this.S("beforeDisconnect",a);1==a&&tk();ao(this.o,a);this.dispose()};
Go.prototype.disconnect=Go.prototype.C;Go.prototype.X=function(){var a=this.ya;this.B&&(a=this.ya.clone(),po(a,this.B,a.index));return ro(a)};
Go.prototype.getPlayerContextData=Go.prototype.X;
Go.prototype.fa=function(a){var b=new io(a);b.videoId&&b.videoId!=this.ya.videoId&&(this.B=b.videoId,xi(this.G),this.G=vi(y(this.rD,this),5E3));var c=[];this.ya.A==b.A&&this.ya.videoId==b.videoId&&this.ya.index==b.index&&Gb(this.ya.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ya.o==b.o&&this.ya.volume==b.volume&&this.ya.muted==b.muted&&oo(this.ya)==oo(b)&&ge(this.ya.B)==ge(b.B)||c.push("remotePlayerChange");this.ya.reset(a);F(c,function(a){this.S(a)},this)};
Go.prototype.setPlayerContextData=Go.prototype.fa;Go.prototype.U=function(){return this.o.C.loungeIdToken};
Go.prototype.getLoungeToken=Go.prototype.U;Go.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:""};
Go.prototype.getOtherConnectedRemoteId=Go.prototype.K;Go.prototype.F=function(){var a=this.o;return a.A.enabled?a.A.D-K():window.NaN};
Go.prototype.getReconnectTimeout=Go.prototype.F;Go.prototype.ha=function(){if(!(0,window.isNaN)(this.F())){var a=this.o.A;a.enabled&&(a.stop(),a.start(),a.F())}};
Go.prototype.reconnect=Go.prototype.ha;Go.prototype.ca=function(a,b){Mo(this,a,b);Po(this)};
Go.prototype.sendMessage=Go.prototype.ca;var dp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(kp,Mj);f=kp.prototype;f.qc=function(a){return this.Tb.$_gs(a)};
f.contains=function(a){return!!this.Tb.$_c(a)};
f.get=function(a){return this.Tb.$_g(a)};
f.start=function(){this.Tb.$_st()};
f.Hj=function(a,b,c){this.Tb.$_a(a,b,c)};
f.remove=function(a,b,c){this.Tb.$_r(a,b,c)};
f.Bj=function(a,b,c,d){this.Tb.$_un(a,b,c,d)};
f.V=function(){for(var a=0,b=this.o.length;a<b;++a)this.Tb.$_ubk(this.o[a]);this.o.length=0;this.Tb=null;kp.N.V.call(this)};
f.pE=function(){this.S("screenChange")};
f.DB=function(){this.S("onlineScreenChange")};
Ik.prototype.$_st=Ik.prototype.start;Ik.prototype.$_gspc=Ik.prototype.qE;Ik.prototype.$_gsppc=Ik.prototype.gs;Ik.prototype.$_c=Ik.prototype.contains;Ik.prototype.$_g=Ik.prototype.get;Ik.prototype.$_a=Ik.prototype.Hj;Ik.prototype.$_un=Ik.prototype.Bj;Ik.prototype.$_r=Ik.prototype.remove;Ik.prototype.$_gs=Ik.prototype.qc;Ik.prototype.$_gos=Ik.prototype.es;Ik.prototype.$_s=Ik.prototype.subscribe;Ik.prototype.$_ubk=Ik.prototype.oc;var lp=null,mp=null,rp=null,$o=null,qp=[];var Rp=/^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]+)?\/)/,sx=/^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]+)?([\/\?\#]|$)/,
Paa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,kaa=/^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(\/+|\?|#|$)/,Ax=/^((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]+)?([\/\?\#]|$))/,
kq=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ex=/^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)/,jq=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,cs=/^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]+)?([\/\?\#]|$)/,
lJ=/^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]+)?([\/\?\#]|$))/,
naa=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Tp=/^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|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|([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 Up=["2mdn.net","googleads.g.doubleclick.net"];var Iw=nJ||yx;var nq={},mq=0,yoa=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",yoa,void 0);var oq=1;pq.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)};
pq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(qq,pq);qq.prototype.getId=function(){return this.K};
qq.prototype.getId=qq.prototype.getId;qq.prototype.toString=function(){return qq.N.toString.call(this)};B(vq,Lj);f=vq.prototype;f.gb=function(a,b){for(var c=0;c<a.length;c++)a[c].A=this.ua;this.o.gb(a,b)};
f.create=function(){this.F||(this.Xa(this.o),L(this.o.Ca(),this.ua+"-created"),this.o.addEventListener("crn_"+this.ua,this.Yb,this),this.o.addEventListener("crx_"+this.ua,this.jc,this),this.F=!0)};
f.destroy=function(){this.loaded&&this.unload();be(this.o.Ca(),this.ua+"-created");this.o.removeEventListener("crn_"+this.ua,this.Yb,this);this.o.removeEventListener("crx_"+this.ua,this.jc,this);this.F=!1;this.S("destroyed",this.ua)};
f.load=function(){this.loaded=!0;L(this.o.Ca(),this.ua+"-loaded");this.S("loaded",this.ua)};
f.unload=function(){this.loaded=!1;be(this.o.Ca(),this.ua+"-loaded");this.S("unloaded",this.ua)};
f.Yb=function(){};
f.jc=function(){};
f.re=function(){};
f.log=function(a){$M(this.o,this.logEvent,a)};
f.Ih=function(){return null};
f.pauseVideo=function(){this.S("command_pause",!1,this.o.playerType)};
f.nd=function(){};
f.jf=function(){return[]};
f.Xa=function(){return!1};
f.km=function(a,b){this.G&&this.G.re&&this.G.re.apply(this.G,arguments)};
f.cj=function(){};B(Gq,G);Gq.prototype.o=function(a,b){n(b)?ch(a,this.element,b):a.appendChild(this.element)};
Gq.prototype.update=function(a){for(var b in a)this.B(b,a[b])};
Gq.prototype.B=function(a,b){var c=this.xa["{{"+a+"}}"];c&&Iq(this,c[0],c[1],b)};
Gq.prototype.V=function(){this.ra={};this.xa={};Jq(this);Gq.N.V.call(this)};B(R,Gq);f=R.prototype;f.Jb=function(a,b){this.B(b||"content",a)};
f.show=function(){this.C||(Lq(this.element,""),this.C=!0)};
f.ka=function(){this.C&&(Lq(this.element,"none"),this.C=!1)};
f.rb=function(a){a?this.show():this.ka()};
f.R=function(a,b,c){return this.T(this.element,a,b,c)};
f.T=function(a,b,c,d){c=y(c,d||this);d={target:a,type:b,listener:c};this.Z.push(d);a.addEventListener(b,c);return d};
f.za=function(a){for(var b=0;b<this.Z.length;b++)if(this.Z[b]==a){a=this.Z.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
f.focus=function(){sh(this.element);this.element.focus()};
f.V=function(){for(;this.Z.length;){var a=this.Z.pop();a.target.removeEventListener(a.type,a.listener)}R.N.V.call(this)};B(Oq,R);Oq.prototype.subscribe=function(a,b,c){return this.U.subscribe(a,b,c)};
Oq.prototype.Ha=function(a,b,c){return this.U.Ha(a,b,c)};
Oq.prototype.oc=function(a){return this.U.oc(a)};
Oq.prototype.S=function(a,b){return this.U.S.apply(this.U,arguments)};B(Pq,Oq);Pq.prototype.create=function(){this.L=!0};
Pq.prototype.destroy=function(){this.L=!1};
Pq.prototype.bi=function(){return!1};B(Qq,R);var Vq={},rr=/[^\d]+$/,sr={cm:1,"in":1,mm:1,pc:1,pt:1},tr={em:1,ex:1};var zoa=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Tg)return wc("10.0");
var a=window.document.createElement("DIV"),b=zc?"-webkit":Rq?"-moz":Tg?"-ms":Ac?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Ag.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in uoa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Fg("div",b,void 0);a.innerHTML=xg(b);return""!=Wq(a.firstChild,"transition")});B(yr,G);f=yr.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(),xr(this,!1),this.o=null,this.A.stop()):this.B.C||(xr(this,!this.C),this.o=1,b?this.A.start(b):this.Mm()))};
f.ka=function(){3!=this.o&&(1==this.o||2==this.o?(this.B.ka(),this.o=null,this.A.stop()):this.B.C&&(xr(this,!0),this.o=3,this.A.start(this.F)))};
f.Mm=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:xr(this,this.C);this.C?(this.o=3,this.A.start(this.D)):this.o=null;break;case 3:this.B.ka();xr(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.Mm()};
f.V=function(){this.B.isDisposed()||this.B.element.removeAttribute("aria-hidden");yr.N.V.call(this)};B(zr,R);B(Ar,zr);Ar.prototype.rb=function(a){a?this.A.show():this.A.ka()};B(Cr,Pq);Cr.prototype.create=function(){Cr.N.create.call(this);bh(this.element);this.F.o(this.element);var a=this.A.getVideoData().videoId;a&&(a=xJ(this.A.W(),a,!0),tj(a,{method:"GET",sb:this.G,context:this,Qw:!0}))};
Cr.prototype.G=function(a,b){if(this.L){var c=b.user_info,d=c.channel_banner_url;Ax.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Ax.test(e)||(e="");this.D.B("background",d?"background-image: url("+d+")":"");this.F.B("image",e);this.F.B("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.F.ra["html5-subscribe-button-container"];c?d.innerHTML=xg(c):bh(d)}};
Cr.prototype.show=function(){Cr.N.show.call(this);this.D.rb(!0)};
Cr.prototype.ka=function(){Cr.N.ka.call(this);this.D.rb(!1)};B(Dr,G);Dr.prototype.T=function(a,b,c,d){c=ui(y(c,d||this.Ia));a.addEventListener(b,c);a={target:a,name:b,hi:c};this.L.push(a);return a};
Dr.prototype.za=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.hi);break}};
Dr.prototype.V=function(){Fr(this);Dr.N.V.call(this)};Gr.prototype.toString=function(){return this.type+this.id};var D5=16/9,Aoa=4/3,s9=[.25,.5,1,1.25,1.5,2];var Ir={hB:function(a){a.reverse()},
BL:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
GM:function(a,b){a.splice(0,b)}};var Nr={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 Nw={name:"width",video:!0,valid:640,$g:99999},Ow={name:"height",video:!0,valid:360,$g:99999},Pw={name:"framerate",video:!0,valid:30,$g:9999},Qw={name:"bitrate",video:!0,valid:3E5,$g:2E9},Rw={name:"channels",video:!1,valid:2,$g:99},Sw={Vh:Nw,Ph:Ow,A:Pw,Mn:Qw,o:Rw};Ur.prototype.A=function(){return this.name};
Ur.prototype.getId=function(){return this.id};
Ur.prototype.o=function(){return this.isDefault};
Ur.prototype.toString=function(){return this.name};
Ur.prototype.getName=Ur.prototype.A;Ur.prototype.getId=Ur.prototype.getId;Ur.prototype.getIsDefault=Ur.prototype.o;var Nu={BI:"auto",qN:"tiny",SK:"light",SMALL:"small",Cv:"medium",LARGE:"large",mK:"hd720",iK:"hd1080",jK:"hd1440",kK:"hd2160",lK:"hd2880",rK:"highres",UNKNOWN:"unknown"},Wr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Vr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var Xr=[["60",55],["50",49],["48",39]];Zr.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.A="")};
Zr.prototype.get=function(a){$r(this);return this.o[a]||null};
Zr.prototype.getUrl=function(){this.A||(this.A=fs(this));return this.A};
Zr.prototype.clone=function(){var a=new Zr(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};hs.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};f=os.prototype;f.Ee=function(a){return(a=ps(this,a))?a.duration:0};
f.Uk=function(a){return this.Ee(a)};
f.Gf=function(){return this.wa.length?this.wa[0].o:-1};
f.Fb=function(){return this.wa.length?this.wa[this.wa.length-1].o:-1};
f.wg=function(){var a=this.wa[this.wa.length-1];return a?a.endTime:window.NaN};
f.Bs=function(){return this.wa[0].startTime};
f.Zk=function(){return this.wa.length};
f.Vj=function(){return 0};
f.If=function(a){return(a=qs(this,a))?a.o:-1};
f.Qo=function(a){return ps(this,a).sourceURL};
f.Fe=function(a){return(a=ps(this,a))?a.startTime:0};
f.hf=function(){return 0<this.wa.length};ts.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""};
ts.prototype.get=function(a){return this.A[a]||this.o.get(a)};
ts.prototype.getUrl=function(){this.B||(this.B=vs(this));return this.B};var n$=0;zs.prototype.Pl=function(){return!1};
zs.prototype.hd=function(){return!!this.o&&!!this.index&&this.index.hf()};
zs.prototype.rr=function(a){return[a]};
zs.prototype.lj=function(a){return[a]};As.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)};B(Ks,zs);f=Ks.prototype;f.ii=function(){return!1};
f.Mp=function(){return this.A};
f.No=function(){if(this.A)return[];var a=new As(1,this,this.initRange);return[new Hs([a],this.G)]};
f.Qg=function(a,b){if(this.A&&ga(a)&&!(0,window.isFinite)(a)){var c=new As(3,this,null,-1);return new Hs([c],"",!0)}c=this.index.If(a);b&&(c=Math.min(this.index.Fb(),c+1));return Ls(this,c,!0)};
f.Zo=function(a){this.o=new window.Uint8Array(Ct(a).buffer)};
f.Pl=function(){return!1};
f.Hh=function(a){return 0==a.A||this.A?!0:this.index.Fb()>a.C&&this.index.Gf()<=a.C+1};
f.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=tb(a),0==d.wa.length)d.wa=a;else{var e=d.wa.length?cb(d.wa).endTime:0,h=a[0].o-d.Fb();1<h&&lb(d.wa);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.wa.push(a[h])}}rs(this.index,c);this.C=b};
f.hd=function(){return this.A?!0:Ks.N.hd.call(this)};Ps.prototype.update=function(a,b){var c=void 0;this.A&&(c=this.A);var d=new Ps,e=a.getElementsByTagName("S");if(e.length){var h=+ks(a,"timescale")||1,k=+ks(a,"startNumber")||0,m;m=((+e[0].getAttribute("t")||0)-(+ks(a,"presentationTimeOffset")||0))/h;m=c?c.xe+c.durationSecs:b?m:0;var l;l=Date.parse(ks(a,"yt:segmentIngestTime"));var p=Date.parse(ks(a,"yt:mpdResponseTime")),p=K()-p;l=(l+p)/1E3;p=c?k-c.o:1;d.C=0<p?0:-p+1;for(p=0;p<e.length;p++)for(var t=e[p],u=+t.getAttribute("d")/h,x=(t.getAttribute("yt:sid")||
0)/h,A=+t.getAttribute("r")||0,C=0;C<=A;C++)if(c&&k<=c.o)k++;else{var H=new Os(k,m,u,l+x);d.o.push(H);var z;z=t;var N=h,Ma=H.xe,ta=z.getAttribute("yt:cuepointTimeOffset"),H=z.getAttribute("yt:cuepointDuration");ta&&H?(Ma=+ta/N+Ma,N=+H/N,z=z.getAttribute("yt:cuepointContext")||null,z=new Ns(Ma,N,z)):z=null;z&&d.B.push(z);k++;m+=u;l+=u+x}d.o.length&&(d.A=cb(d.o))}this.C=d.C;this.A=d.A||this.A;ub(this.o,d.o);ub(this.B,d.B)};jt.prototype.skip=function(a){this.o+=a};f=Lt.prototype;f.Vj=function(a){return this.o[a]};
f.Fe=function(a){return this.A[a]/this.C};
f.Ee=function(a){a=this.Uk(a);return 0<=a?a/this.C:-1};
f.Uk=function(a){return a+1<this.Aa||this.B?this.A[a+1]-this.A[a]:-1};
f.Gf=function(){return 0};
f.Fb=function(){return this.Aa-1};
f.wg=function(){return this.B?this.A[this.Aa]/this.C:window.NaN};
f.Bs=function(){return 0};
f.Zk=function(){return this.Aa};
f.Qo=function(){return""};
f.If=function(a){a=Ab(this.A.subarray(0,this.Aa),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
f.hf=function(){return 0<=this.Fb()};B(Nt,zs);f=Nt.prototype;f.No=function(a){var b=new As(1,this,this.initRange),c=new As(2,this,this.indexRange),d=[],e=[b];Ds(b,c)?e.push(c):(d.push(new Hs([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=js(b.range.end+1,a-c),e.push(new As(4,this,a)));d.push(new Hs(e));return d};
f.Zo=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.Fb())return;if(1==this.info.A){var b=this.index,c=Ct(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 m=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;h=b;h.Aa++;Mt(h);h.o[h.Aa]=h.o[h.Aa-1]+m;h.A[h.Aa]=h.A[h.Aa-1]+k}}else this.C=Ct(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 nt(a);if(440786851==qt(a)&&(pt(a),408125543==qt(a))){e=a;h=e.o;d=ot(e,!0);e.o=h;a=rt(a);for(var e=a.B+a.o,l=qt(a);357149030!=l;)pt(a),l=qt(a);
a=rt(a);for(var m=1E6,p=1E9,h=0;!(a.o>=a.A.byteLength);)if(l=qt(a),2807729==l)m=ut(a);else if(2807730==l)p=ut(a);else if(17545==l){var h=a,l=ot(h,!0),t=0;4==l?t=h.A.getFloat32(h.o):8==l&&(t=h.A.getFloat64(h.o));h.o+=l;h=t}else pt(a);b.C=p/m;a=new nt(k);if(475249515==qt(a)){a=rt(a);k=!0;for(m=!1;!(a.o>=a.A.byteLength);)if(l=qt(a),187==l){p=rt(a);l=e;if(179!=qt(p))t=null;else if(t=ut(p),183!=qt(p))t=null;else{for(var p=rt(p),u=l;!(p.o>=p.A.byteLength);)241==qt(p)?u=ut(p)+l:pt(p);t=[u,t]}k&&c==t[0]&&
(m=!0);k=!1;m&&(t[0]+=1);p=b;l=t[0];t=t[1];Mt(p);p.o[p.Aa]=l;p.A[p.Aa]=t;p.Aa++}else pt(a);c=d+e;a=h;Mt(b);b.B=!0;b.A[b.Aa]=a;b.o[b.Aa]=c}}this.C=null}};
f.rr=function(a){for(var b=this.lj(a.info),c=[],d=a.C,e=0;e<b.length;e++){var h=js(b[e].range.start+b[e].B-a.info.range.start+a.range.start,b[e].A);c.push(new Bt(b[e],a.o,h,a.A,d));d=!1}return c};
f.lj=function(a){for(var b=0;b<this.index.Fb()&&a.range.start>=this.index.Vj(b+1);)b++;return Ot(this,b,a.range.start,a.range.length).o};
f.Hh=function(a){return this.hd()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
f.Qg=function(a,b){var c=this.index.If(a);b&&(c=Math.min(this.index.Fb(),c+1));return Ot(this,c,this.index.Vj(c),0)};
f.Pl=function(){var a;if(a=this.hd()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.Aa]:-1)!=this.A;return a};
f.ii=function(){return!0};
f.Mp=function(){return!1};B(Rt,Lj);
Rt.prototype.X=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.B=!0;this.C||(this.C=new Rs);Vs(this.C,a,this.U);this.S("refresh");for(a=0;a<b.length;a++){var c=$t(this,b[a]);if(!this.o[c.id]){var d=Xt(ls(b[a],"BaseURL").textContent,c),e=ls(b[a],"Initialization"),h=ks(e,"sourceURL"),e=is(ks(e,"range"));this.o[c.id]=new Ks(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=vb(ls(b[a],"SegmentList").getElementsByTagName("SegmentURL"),h.C),h=h.o,e=[],k=0;k<d.length;k++)e.push(bu(d[k],h[k]));c.update(e,this.isLive,this.J)}Ws(this.C);return!0}this.duration=ms(ks(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){e=b[a];c=$t(this,e);h=ls(e,"BaseURL");d=Xt(h.textContent,c);k=ls(e,"SegmentBase");e=is(k.attributes.indexRange.value);k=is(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=(0,window.parseInt)(h.getAttribute("yt:contentLength"),
10);c=new Nt(d,c,k,e,h,window.NaN);if(!c){b=!1;break a}this.o[c.info.id]=c}b=!0}return b};
var Zt={commentary:1,alternate:2,dub:3,main:4};
Rt.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*ms(ks(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.D;this.J=(0,window.parseInt)(ks(a,"yt:earliestMediaSequence"),10)||0;Te(a.getElementsByTagName("Period"),this.X,this);this.F=2;this.S("loaded");(0,window.isFinite)(this.D)&&(a=Qt()-this.G,a=Math.max(0,this.D-a),vi(y(this.M,this),a));return this};
Rt.prototype.O=function(a){this.H=a.status;this.F=3;this.S("load_error");return Fd(a)};
Rt.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.hf()){a=c.Fb()+1;break a}}a=0}a=hf(this.L,{start_seq:a.toString()});au(this,a)}};var Ew,pJ;var o$=oc,o$=o$.toLowerCase();if(Ga(o$,"android")){var p$=o$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(p$)Ew=Number(p$[1]);else{var q$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},r$=o$.match("("+Wb(q$).join("|")+")");Ew=r$?q$[r$[0]]:0}}else Ew=void 0;pJ=0<=Ew;var O5,iu=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],ju=['audio/mp4; codecs="mp4a.40.2"'];var xu={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},yu=sb(xu.widevine,xu.playready);B(wu,G);wu.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)}};
wu.prototype.D=function(){this.isDisposed()||(0<this.A.length?Au(this):this.C(null))};Cu.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};Du.prototype.getUrl=function(){return this.J};
Du.prototype.toString=function(){return this.A+": "+Eu(this)+" - "+this.G};
Du.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Hu.prototype.o=function(){return this.Gb};
Hu.prototype.toString=function(){return this.Gb.name};
Hu.prototype.getLanguageInfo=Hu.prototype.o;Iu.prototype.equals=function(a){return this.A==a.A&&this.o==a.o&&this.B==a.B};
var ML=Ju("auto","large",!1),Lu=Ju("auto","auto",!1);Ju("small","auto",!1);Iu.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o};
Iu.prototype.C=function(a){if(!a.video)return!1;a=Wr[a.video.quality];return this.A<=a&&(!this.o||this.o>=a)};var Dx={$K:1,aL:2,bL:3};Qu.prototype.getValue=function(){return this.A};
Qu.prototype.clone=function(){return new Qu(this.o,this.A)};f=Ru.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.Qa=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
f.Se=function(a){return zh(this.o,function(b){return b.getValue()==a})};
f.clone=function(){return new Ru(this)};
f.ab=function(){return this.o.length};
f.isEmpty=function(){return kb(this.o)};
f.clear=function(){lb(this.o)};B(Tu,Ru);B(Uu,Lj);Uu.prototype.F=function(a,b){this.o=this.o.onload=null;var c=this.A.o[a];c.B[b]=!0;Yu(this);var d=c.Lb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.Wk()-1)];this.S("l",c[0],c[1])};
Uu.prototype.V=function(){this.o&&(this.o=this.o.onload=null);Uu.N.V.call(this)};f=$u.prototype;f.getWidth=function(){return this.H};
f.getHeight=function(){return this.G};
f.Wk=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=hf(b,{sigh:this.F}));return Xp(b)};
f.ck=function(a){return le(0==this.D?Math.round(a*this.A/this.L):Math.round(1E3*a/this.D),0,this.Wk()-1)};
f.Dn=function(){return this.A-1};
f.St=function(){return this.A?0:-1};
f.Tt=function(){};av.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};
av.prototype.C=function(a,b,c,d){return new $u(a,b,c,d)};
av.prototype.getUrl=function(a,b){return this.o[a].getUrl(b)};
av.prototype.D=function(){};B(bv,$u);f=bv.prototype;f.Wk=function(){return this.o?this.o.Zk():-1};
f.ck=function(a){var b=this.rows*this.Lb*this.J,c=-1,d=-1,e=this.o;e&&(c=e.Fb(),d=e.If(a));return d>c-b?-1:d};
f.Dn=function(){return this.o?this.o.Fb():-1};
f.St=function(){return this.o?this.o.Gf():-1};
f.Tt=function(a){this.o=a?a.index:null};B(cv,av);cv.prototype.A=function(a,b){return cv.N.A.call(this,"$N|"+a,b)};
cv.prototype.C=function(a,b,c){return new bv(a,b,c,this.F.isLive)};
cv.prototype.D=function(a){for(var b=0;b<this.o.length;b++)this.o[b].Tt(a)};var hv=/^([0-9\.]+)\:([0-9\.]+)$/;var nv=0;qv.prototype.Ac=function(){return{version:this.version,args:this.args}};
uv.prototype.toString=function(){return this.topic};var Boa=r("yt.pubsub2.instance_")||new Be;Be.prototype.subscribe=Be.prototype.subscribe;Be.prototype.unsubscribeByKey=Be.prototype.oc;Be.prototype.publish=Be.prototype.S;Be.prototype.clear=Be.prototype.clear;q("yt.pubsub2.instance_",Boa,void 0);var zv=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",zv,void 0);var Bv=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Bv,void 0);var Av=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Av,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);B(Fv,qv);var vv=new uv("timing-sent",Fv);var Iv=/url\((http[^\)]+)\)/i;var Yv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Wv=y(Yv.clearResourceTimings||Yv.webkitClearResourceTimings||Yv.mozClearResourceTimings||Yv.msClearResourceTimings||Yv.oClearResourceTimings||v,Yv),Ov=Yv.mark?function(a){Yv.mark(a)}:v;var zx,WI;var s$=oc,t$=s$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!t$||2>t$.length)zx=void 0;else{var u$=s$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);zx=u$&&6==u$.length?Number(u$[5].replace("_",".")):0}(WI=0<=zx)&&0<=oc.search("Safari")&&oc.search("Version");var cw=K().toString();var vx={TK:0,DJ:1,wK:2};var jw=function(){if(MH)return iw(/Firefox\/([0-9.]+)/);if(Tg||tu||Ac)return vc;if(Dl)return iw(/Chrome\/([0-9.]+)/);if(qu&&!(sc()||pc("iPad")||pc("iPod")))return iw(/Version\/([0-9.]+)/);if(nJ||yx){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(oc);if(a)return a[1]+"."+a[2]}else if(oJ)return(a=iw(/Android\s+([0-9.]+)/))?a:iw(/Version\/([0-9.]+)/);return""}();kw.prototype.start=function(){return 0};
kw.prototype.end=function(){return window.Infinity};
kw.prototype.length=1;f=lw.prototype;f.addEventListener=function(){};
f.removeEventListener=function(){};
f.dispatchEvent=function(){};
f.abort=function(){};
f.remove=function(){};
f.appendBuffer=function(){};mw.prototype.dispose=function(){if(!this.B){if(this.o)try{window.URL.revokeObjectURL(this.C)}catch(a){}this.B=!0}};
mw.prototype.isDisposed=function(){return this.B};
mw.prototype.equals=function(a){return null!=a&&nw(a)==nw(this)};f=ow.prototype;f.append=function(a){this.A.webkitSourceAppend(this.B,a)};
f.abort=function(){this.A.webkitSourceAbort(this.B)};
f.cE=function(){return this.A.webkitSourceState==this.A.SOURCE_CLOSED?new pw:this.A.webkitSourceBuffered(this.B)};
f.eE=function(){return this.C};
f.iE=function(a){this.C=a;this.A.webkitSourceTimestampOffset(this.B,a)};f=qw.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.DG=function(){return this.o.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new ow(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.fE=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.gE=function(){lb(this.sourceBuffers)};
f.dE=function(){return this.A};
f.hE=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};B(rw,Dr);rw.prototype.gg=function(a){ww(this)?this.B.duration=a:this.C=a};
rw.prototype.K=function(){if(!this.isDisposed()&&ww(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 lw,this.D&&(this.D(this),this.D=null)}catch(a){this.F&&this.F()}}};
rw.prototype.J=function(){this.dispose()};Cw.prototype.A=function(){return null};
var Fw={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var Ww="9h8(H*".split(""),Yw="h98H(*".split(""),Zw="oMavAV".split(""),ax="moMavAV".split(""),$w="aoMvAV".split(""),Xw=["f"],Kw={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Lw={"application/x-mpegURL":"maybe"},Jw={"application/x-mpegURL":"maybe"};B(jx,Cw);
jx.prototype.A=function(){if(!this.o||this.o.isDisposed()){var a;a=this.B;gx(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.zo+","+h.zo)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
h.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.o=new mw("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.o};B(mx,Cw);mx.prototype.A=function(){return new mw(this.o)};B(rx,Lj);rx.F=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;rx.A=1;rx.G=-21;rx.H=18E3;rx.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(" ");rx.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(" ");
rx.o={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};rx.C=["www.youtube.com","manifest.googlevideo.com"];f=rx.prototype;f.adModule=!1;f.adaptiveFormats="";f.hn=null;f.allowEmbed=!0;f.backgroundable=!1;f.$d=!1;f.wf="";f.ho=!1;f.ai=!1;f.$h=rx.A;f.Lj=null;f.watchAjaxToken=null;f.author="";f.Jj=0;f.ji=!1;f.Ao=!1;f.ki="";f.mi="";f.clientPlaybackNonce="";f.contentCheckOk=!1;f.ff=0;f.Pk=!1;f.enableCardio=!1;
f.enableCardioBeforePlayback=!1;f.Bf=0;f.oe=!1;f.ap=!1;f.Kj=0;f.Ah=0;f.Ti=!1;f.Nc=!1;f.Ml=!1;f.Kp=!1;f.Ol=!1;f.isListed=!1;f.Wf=!1;f.Ga=!1;f.isLiveDefaultBroadcast=!1;f.isLowLatencyLiveStream=!1;f.isMdxPlayback=!1;f.isPharma=!1;f.Sl=!1;f.tg=!1;f.Rp=!1;f.Tl=!1;f.Mk=3;f.af=window.NaN;f.Xi=null;f.liveStartWalltime=0;f.Vl=null;f.lengthSeconds=0;f.jn=0;f.paygated=!1;f.profilePicture="";f.racyCheckOk=!1;f.autonavState=1;f.oh=Lu;f.ce=!1;f.startSeconds=0;f.uj=null;f.sentiment=2;f.spacecastModule=!1;
f.lk=null;f.uh=Lu;f.cf=null;f.title="";f.og="";f.hlsFormats="";f.Gj=null;f.Um="vvt";f.requiresPurchase=!1;f.clipStart=0;f.clipEnd=window.Infinity;f.pz=function(a){(this.H=a)&&"fairplay"==this.H.o&&(this.H.fairPlayCert=this.fairPlayCert);Lx(this)};
f.HA=function(a){this.isDisposed()||(this.o=a,I(this,this.o),this.Ga?this.o.subscribe("refresh",this.rq,this):this.o.isLive=!1,Rv("mrc"),St(this.o)&&(this.X=!0),Lx(this))};
f.GA=function(a){this.isDisposed()||(this.oe=!1,this.S("dataloaderror",new gw("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
f.rq=function(){this.o.isLive||this.o.Ha("refresh",this.rq,this);var a=vb(this.o.C.C,this.Ia);0<a.length&&(this.S("cuepointupdated",a),this.Ia+=a.length)};
f.ad=function(a){return w(this.keywords[a])?this.keywords[a]:null};
f.yr=function(){var a={format:"RAW",method:"GET",context:this,sb:this.YA,onError:this.uq,withCredentials:this.yd};this.Sd&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});tj(this.Qb,a);Rv("vir")};
f.gc=function(a,b){if(30==this.O){var c=this.Za["default.jpg"];return c?c:this.videoId?hf("//docs.google.com/vt",{id:this.videoId,authuser:this.Bb,authkey:this.cb}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Za[b])||a.D||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:AJ(a,this.videoId,b)};
f.Yk=function(){return this.rd};
f.YA=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.oe=!1;var c=hj(b);"fail"==c.status?this.S("onStatusFail",c):(Rv("virc"),F(rx.B,function(a){a in this.C&&(c[a]=this.C[a])},this),qx(this,c),Lx(this))}else this.uq(a)}};
f.uq=function(a){if(!this.isDisposed()){var b="manifest.net.retryexhausted",c=!0,d={backend:"gvi",rc:a.status};this.jb&&(this.wb?d.retried="1":(this.wb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.zd.start()));this.S("dataloaderror",new gw(b,c,d))}};
f.sg=function(){return null};
f.xb=function(){return this};
f.bl=function(a){return a.getVideoUrl(this.videoId)};B(gy,Lj);f=gy.prototype;f.hasNext=function(a){return this.K||!!a||this.o+1<this.B};
f.xb=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 rx(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.D||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.M.length)return AJ(a,this.M[0],b)};
f.Yk=function(){return null};
f.Mb=function(){return this.o};
f.sg=function(){return this.D?this.D.toString():null};
f.bl=function(a){return a.getVideoUrl(this.xb().videoId,this.sg())};
f.V=function(){this.G=null;Nb(this.A);gy.N.V.call(this)};B(ry,R);f=ry.prototype;f.pi=function(){this.G&&(this.J.stop(),this.za(this.H),this.H=null,this.G.close(),this.G=null)};
f.nq=function(){this.rb(RM(this.A))};
f.CB=function(){window.focus();this.pi()};
f.tk=function(){var a=Math.min(Qt()-this.K,1E4),a=Math.min(a/1E4,1);this.L.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.D&&this.D.start()};
f.select=function(a){var b=this.A.W();if(b.experiments.ga("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;$M(this.A,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.F.xb(),this.pi(),this.G=new window.Notification(Q("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.gc(b)}),this.H=this.T(this.G,"click",this.CB),this.J.start())}ty(this);b=this.F.xb().videoId;
K9(this.A.app,b,a?this.F.Ib:this.F.va,this.F.sg())};
f.JB=function(a){this.A.W().experiments.ga("endscreen_204_logging")&&$M(this.A,"xendscreen",{action:"click",autonav:!0,index:0});!Xl(a)&&oy(a)&&(this.select(),Wl(a))};
f.oq=function(a){Wl(a);aN(this.A,"autonavcancel");TM(this.A,!0)};
f.JH=function(a){120<Sl(a).naturalWidth&&L(this.element,"ytp-moving-thumbnail-loaded")};
f.V=function(){ty(this);this.pi();ry.N.V.call(this)};B(Fy,R);f=Fy.prototype;f.fg=function(){var a=this.D.xb().videoId;K9(this.A.app,a,this.D.va,this.D.sg())};
f.CF=function(a){this.A.W().experiments.ga("endscreen_204_logging")&&$M(this.A,"xendscreen",{action:"click",autonav:!1,index:this.H});By(a,this.A,!this.A.Oa()&&this.G)&&this.fg()};
f.EF=function(){this.za(this.F);this.F=null;Hy(this)};
f.DF=function(a){switch(a.keyCode){case 13:case 32:Xl(a)||(this.fg(),Wl(a))}};
f.FF=function(a){120<Sl(a).naturalWidth&&L(this.element,"ytp-videowall-moving-thumbnail-loaded")};B(Iy,Pq);Iy.o=2;f=Iy.prototype;f.create=function(){Iy.N.create.call(this);var a=this.A.getVideoData();a&&(this.D=a.K);this.He();this.K.T(this.A,"resize",this.He);this.K.T(this.A,"videodatachange",this.BF);this.K.T(this.A,"autonavchange",this.Ms);this.K.T(this.A,"autonavcancel",this.zx)};
f.destroy=function(){Fr(this.K);Nb(this.G);this.D=[];this.G=[];Iy.N.destroy.call(this);be(this.element,"ytp-show-tiles");this.P.stop()};
f.bi=function(){return 1!=this.A.getVideoData().autonavState};
f.show=function(){Iy.N.show.call(this);this.A.W().isMobile?Xd(this.P):this.P.start();(this.M||this.H&&this.H!=this.A.getVideoData().clientPlaybackNonce)&&TM(this.A,!1);var a=Jy(this.A),b=!this.H&&this.bi()&&a;a&&this.A.W().experiments.ga("ui_logging")&&this.$.log({cancelButtonShow:b?"1":"0",state:this.bi()?"enabled":"disabled"});b?2==this.A.getVideoData().autonavState?sy(this.F):3==this.A.getVideoData().autonavState&&uy(this.F):TM(this.A,!0);Ny(this);this.A.W().experiments.ga("endscreen_204_logging")&&
this.O&&$M(this.A,"xendscreen",{action:"show",autonav:!0})};
f.ka=function(){Iy.N.ka.call(this);uy(this.F);Ny(this)};
f.AC=function(a){Sl(a)==this.element&&this.He()};
f.He=function(){if(this.D&&this.D.length){var a=this.A.W(),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 m=mr(this.element),l=96,p=54;k&&!d&&(l=144,p=81);var t=m.width/m.height,u=l/p;!Cy(a)||
this.A.Oa()||k||(l*=.9,p*=.9);var x=a=0,A=Math.max(m.width/l,2),C=Math.max(m.height/p,2);if(b||c)A=Math.min(A,4),C=Math.min(C,4);for(var c=this.D.length,H=Math.pow(Iy.o,2),z=c*H,N=Ly(this,0,C),Ma=Ly(this,1,C),z=z+(Math.pow(N,2)-H),z=z+(Math.pow(Ma,2)-H);0<z&&(a<A||x<C);){var ta=a/Iy.o,Ka=x/Iy.o,pb=a<=A-Iy.o&&z>=Ka*H,nd=x<=C-Iy.o&&z>=ta*H;if(ta/Ka*u>t&&nd)z-=ta*H,x+=Iy.o;else if(pb)z-=Ka*H,a+=Iy.o;else if(nd)z-=ta*H,x+=Iy.o;else break}u=!1;A=Iy.o+N;z>=3*H&&6>=c*H-z&&(x>=A||a>=A)&&Ma<=Iy.o&&(u=!0);
l*=a;p*=x;H=1;H=l/p<t?m.height/p:m.width/l;t=k?2:1.42;b&&(t=4);H=Math.min(H,t);l*=H;p*=H;b=k?1:1.21;l*=le(m.width/l||1,1,b);p*=le(m.height/p||1,1,b);l=Math.floor(Math.min(m.width,l));p=Math.floor(Math.min(m.height,p));m=this.X.element;kr(m,l,p);Uq(m,{marginLeft:l/-2+"px",marginTop:p/-2+"px"});b=this.F;t=py(this.D[0]);b.F=t;qy(b,t,b.A.W(),"hqdefault.jpg");be(b.element,"ytp-moving-thumbnail-loaded");b.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});
1E5<Gy(b.A.app.la)&&(t=b.F.Yk())&&b.update({moving_thumbnail:t});M(this.element,"ytp-endscreen-takeover",Ky(this));Ny(this);k=k?4:1;b=l+k;p+=k;t=0;l=!Ky(this);H=!1;for(z=0;z<a;z++)for(A=0;A<x;A++)if(C=Ma>Iy.o&&1<=t&&!H?t+1:t,Ka=0,u&&z>=a-Iy.o&&A>=x-Iy.o?Ka=1:0==A%Iy.o&&0==z%Iy.o&&(A<N&&z<N?0==A&&0==z&&(Ka=N):Ma>Iy.o&&A>=x-Ma&&z>=a-Ma?A==x-Ma&&z==a-Ma&&(H=!0,C=1,Ka=Ma):Ka=Iy.o),C=me(C+this.J,c),0!=Ka){ta=this.G[t];ta||(ta=new Fy(this.A),this.G[t]=ta,m.appendChild(ta.element));var pb=Math.floor(p*A/
x),nd=Math.floor(b*z/a),ak=Math.floor(p*(A+Ka)/x)-pb-k,bk=Math.floor(b*(z+Ka)/a)-nd-k;$q(ta.element,nd,pb);kr(ta.element,bk,ak);Uq(ta.element,"transitionDelay",(A+z)/20+"s");M(ta.element,"videowall-still-mini",1==Ka);M(ta.element,"videowall-still-large",2<Ka);Ka=C;C=py(this.D[C]);pb=l&&(d?0==t:!e);ta.D=C;ta.H=Ka;Ka=ta.A.W();qy(ta,C,Ka,Zd(ta.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");be(ta.element,"ytp-videowall-moving-thumbnail-loaded");ta.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});
pb?(L(ta.element,"ytp-videowall-active"),Hy(ta)):Ka.experiments.ga("video_wall_moving_thumbnails_hover")&&!ta.F&&(ta.F=ta.R("mouseover",ta.EF));t++}h&&M(this.element,"ytp-endscreen-paginate",t<c);for(d=this.G.length-1;d>=t;d--)ta=this.G[d],dh(ta.element),Mb(ta);this.G.length=t}};
Iy.B=1.42;Iy.A=1.21;f=Iy.prototype;f.BF=function(){var a=this.A.getVideoData().K;this.D!=a&&(this.J=0,this.D=a,this.He())};
f.rA=function(){this.J+=this.G.length;this.He()};
f.sA=function(){this.J-=this.G.length;this.He()};
f.Ms=function(a){1==a?(this.M=!1,this.H=this.A.getVideoData().clientPlaybackNonce,ty(this.F),this.C&&this.He()):(this.M=!0,this.C&&Ky(this)&&(2==a?sy(this.F):3==a&&uy(this.F)))};
f.zx=function(a){a?(this.A.W().experiments.ga("endscreen_204_logging")&&$M(this.A,"xendscreen",{action:"show",autonav:!1}),this.Ms(1)):(this.H=null,this.M=!1);this.He()};B(Py,vq);f=Py.prototype;f.Xa=function(a){return Ry(a)};
f.create=function(){Py.N.create.call(this);Uy(this);this.o.getVideoData().subscribe("dataupdated",this.fr,this)};
f.destroy=function(){this.o.getVideoData().Ha("dataupdated",this.fr,this);yq(this);this.A.L&&this.A.destroy();Py.N.destroy.call(this)};
f.load=function(){Py.N.load.call(this);this.A.show();this.o.W().ea&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
f.unload=function(){Py.N.unload.call(this);this.A.ka()};
f.Yb=function(a){Py.N.Yb.call(this,a);Ty(this)&&(this.A.L||this.A.create(),"load"==a.getId()&&this.load())};
f.jc=function(a){"load"==a.getId()&&this.loaded&&this.unload();Py.N.jc.call(this,a)};
f.fr=function(){yq(this);Uy(this)};var Uaa={rI:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",yI:"ERROR_AUTHENTICATION_EXPIRED",zI:"ERROR_AUTHENTICATION_MALFORMED",AI:"ERROR_AUTHENTICATION_MISSING",GI:"ERROR_BAD_REQUEST",WI:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",dJ:"ERROR_CGI_PARAMS_MALFORMED",eJ:"ERROR_CGI_PARAMS_MISSING",BJ:"YTP_DEVICE_FALLBACK",WJ:"YTP_ERROR_LICENSE",aK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",eK:"YTP_ERROR_FORMAT_UNAVALIABLE",fK:"YTP_ERROR_GEO_FAILURE",sK:"YTP_ERROR_GENERIC_WITHOUT_LINK",uK:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
tK:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",KK:"YTP_ERROR_INVALID_DRM_MESSAGE",RK:"LEARN_MORE",QL:"YTP_ERROR_NOT_SIGNED_IN",wM:"YTP_ERROR_PURCHASE_NOT_FOUND",xM:"YTP_ERROR_PURCHASE_REFUNDED",CM:"YTP_ERROR_RENTAL_EXPIRED",ZI:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",$I:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",bJ:"YTP_ERROR_CAST_TOKEN_FAILED",aJ:"YTP_ERROR_CAST_TOKEN_EXPIRED",cJ:"YTP_ERROR_CAST_TOKEN_MALFORMED",SERVER_ERROR:"YTP_ERROR_SERVER_ERROR",gN:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",iN:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
jN:"YTP_ERROR_STREAMING_NOT_ALLOWED",kN:"YTP_ERROR_STREAMING_UNAVAILABLE",KM:"YTP_ERROR_RETRYABLE_ERROR",vN:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",uN:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",KN:"YTP_ERROR_UNSUPPORTED_DEVICE",LN:"YTP_ERROR_UNUSUAL_ACTIVITY",TN:"YTP_ERROR_VIDEO_FORBIDDEN",UN:"YTP_ERROR_VIDEO_NOT_FOUND"},Wy={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 laa={iI:"adunit",AJ:"detailpage",TJ:"embedded",QK:"leanback",tM:"profilepage"};var ez=WI&&4>zx?.1:0,hia=new dz;f=dz.prototype;f.mf=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.Gw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};
f.Iw=function(){};gz.prototype.kb=function(){return T(this,8)&&!T(this,64)&&!T(this,2)};var dA=[1,2,3,4,5],bA={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};B(tz,Lj);tz.prototype.C=function(){this.A.isActive()&&Xd(this.A)};
tz.prototype.D=function(){var a={headers:{"Content-Type":"application/json"},Rc:{alt:"json",key:this.G},postBody:this.H,format:"JSON",timeout:1E4,sb:y(this.K,this),onError:y(this.B,this),Md:y(this.B,this)};this.F&&(a.headers["X-Goog-Visitor-Id"]=this.F);uj(this.J,a)};
tz.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())};
tz.prototype.B=function(){this.isDisposed()||(this.S("error"),192E4>this.o&&(this.o*=2),this.A.start(this.o))};B(uz,R);uz.prototype.D=function(a){if(!oy(a)||this.A.W().experiments.ga("disable_fresca_video_navigation"))By(a,this.A,!0);else{var b=a.currentTarget.getAttribute("href");K9(this.A.app,b.substring(b.length-11),void 0,void 0);Wl(a)}};B(vz,R);f=vz.prototype;f.Hz=function(a){if(!oy(a)||this.D.W().experiments.ga("disable_fresca_video_navigation"))By(a,this.D,!0);else{var b=a.currentTarget.getAttribute("href");K9(this.D.app,b.substring(b.length-11),void 0,void 0);Wl(a)}};
f.pA=function(){this.F=!0;this.ka()};
f.show=function(){var a=!this.C;vz.N.show.call(this);a&&hA(this.D)};
f.ka=function(){var a=this.C;vz.N.ka.call(this);a&&hA(this.D)};
f.V=function(){Nb(this.A);vz.N.V.call(this)};B(Az,R);Az.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;Ez(this,this.A,!0);return}Bz(this.A)||this.B("countdown",Fz(this.A.startTime));xi(this.G);this.G=vi(y(this.J,this),1E3)}};
Az.prototype.V=function(){xi(this.G);Az.N.V.call(this)};var Oz;
Oz={Xu:["BC","AD"],Wu:["Before Christ","Anno Domini"],Gv:"JFMAMJJASOND".split(""),$v:"JFMAMJJASOND".split(""),Qn:"January February March April May June July August September October November December".split(" "),Un:"January February March April May June July August September October November December".split(" "),Sn:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Vn:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),bo:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Xn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Tn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Wn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),o:"SMTWTFS".split(""),aw:"SMTWTFS".split(""),Uv:["Q1","Q2","Q3","Q4"],Nv:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Ln:["AM","PM"],gk:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],$n:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Su:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],ik:6,kw:[5,6],jk:5};Gz.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};
Gz.prototype.clone=function(){return new Gz(this.F,this.D,this.o,this.A,this.B,this.C)};
Gz.prototype.times=function(a){return new Gz(this.F*a,this.D*a,this.o*a,this.A*a,this.B*a,this.C*a)};
f=Jz.prototype;f.Ho=Oz.ik;f.Io=Oz.jk;f.clone=function(){var a=new Jz(this.date);a.Ho=this.Ho;a.Io=this.Io;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(),Qa(this.getMonth()+1,2),Qa(this.getDate(),2)].join("")+""};
f.valueOf=function(){return this.date.valueOf()};var Uz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Rz.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-Nz(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(Xz(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var Tz=!1;Yz.prototype.isLive=function(){return"LIVE"==this.A};
Yz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.A};
Yz.prototype.getVideoUrl=function(){return this.F};aA.prototype.o=function(){return this.C};
aA.prototype.getMessage=function(){return this.messageText.length?this.messageText:cA(this)};
aA.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))};B(eA,vq);f=eA.prototype;f.Xa=function(){return Wx(this.o.getVideoData(),"fresca_module")};
f.create=function(a){eA.N.create.call(this);var b=this.o.W();Gw(hu(),"application/x-mpegURL")||Mw()?(this.J=this.B=!1,this.K&&(this.D=new Az(this.o),Br(this.o,this.D.element,4)),this.C=a||null,this.C||(a=this.o.getVideoData(),this.C=new tz(a.videoId,a.visitorData||ti("VISITOR_DATA",""),b.Vd)),this.C.subscribe("payload",this.YB,this),this.C.subscribe("error",this.Lq,this),this.o.addEventListener("presentingplayerstatechange",this.Js,this)):eM(this.o.app.A,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};
f.destroy=function(){this.o.removeEventListener("presentingplayerstatechange",this.Js,this);Nb(this.C,this.D);eA.N.destroy.call(this)};
f.Js=function(a){this.A&&(this.J=T(a.state,2),rz(fA(this.o))&&this.C.C(),iA(this,this.A))};
f.Lq=function(){if(!this.B){var a=this.o.getVideoData();a.hlsvp||a.G?this.o.W().experiments.ga("disable_fresca_error_fallback")||(this.B=!0,zq(this)):(kA(this,new aA(this.o.getVideoData().isLiveDefaultBroadcast)),iA(this,this.A))}};
f.YB=function(a){if(!a||a.error)this.Lq();else{var b=this.A?this.A.broadcastId:"",c=this.o.getVideoData();kA(this,new aA(c.isLiveDefaultBroadcast,a));this.H=this.H||c.isLiveDefaultBroadcast&&""!=b&&b!=this.A.broadcastId;6!=this.A.state||(c.hlsvp||c.G)&&!this.H?iA(this,this.A):(this.H=!1,this.o.pn(c.videoId))}};var mA=Tg&&lA();rA.prototype.R=function(a,b,c,d){c=y(c,d||this.A);a=Ml(a,b,c);this.o.push(a);return a};
rA.prototype.za=function(a){Nl(a);qb(this.o,a)};
rA.prototype.removeAll=function(){Nl(this.o);this.o.length=0};B(yA,G);f=yA.prototype;f.start=function(){this.stop();this.C=!1;var a=zA(this),b=AA(this);a&&!b&&this.A.mozRequestAnimationFrame?(this.o=Oc(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(id(this.B),20)};
f.stop=function(){if(this.isActive()){var a=zA(this),b=AA(this);a&&!b&&this.A.mozRequestAnimationFrame?$c(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.wx=function(){this.C&&this.o&&$c(this.o);this.o=null;this.F.call(this.D,K())};
f.V=function(){this.stop();yA.N.V.call(this)};var BA={},CA=null;B(HA,J);f=HA.prototype;f.kb=function(){return 1==this.o};
f.bj=function(){this.uc("begin")};
f.fh=function(){this.uc("end")};
f.Zb=function(){this.uc("finish")};
f.uc=function(a){this.aa(a)};B(IA,HA);f=IA.prototype;f.play=function(a){if(a||0==this.o)this.progress=0,this.A=this.B;else if(this.kb())return!1;DA(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.bj();this.uc("play");-1==this.o&&this.uc("resume");this.o=1;var b=ma(this);b in BA||(BA[b]=this);FA();GA(this,a);return!0};
f.stop=function(a){DA(this);this.o=0;a&&(this.progress=1);JA(this,this.progress);this.uc("stop");this.fh()};
f.pause=function(){this.kb()&&(DA(this),this.o=-1,this.uc("pause"))};
f.V=function(){0==this.o||this.stop(!1);this.uc("destroy");IA.N.V.call(this)};
f.destroy=function(){this.dispose()};
f.am=function(){this.uc("animate")};
f.uc=function(a){this.aa(new KA(a,this))};
B(KA,jc);NA.prototype.A=dg;B(UA,G);f=UA.prototype;f.gb=function(a){this.Pd();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.Pd()};
f.zh=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.Pd()};
f.lg=function(){this.C=!0;this.Pd()};
f.reset=function(){this.C=this.G=!1;this.D.stop();this.o.o=[];this.A=[];this.Pd();this.F=null};
f.Pd=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();T(b,32)&&this.M.start();for(var c=T(this.K(),2)?0x8000000000000:1E3*this.O(),d=T(b,2),e=[],h=[],k=0;k<this.A.length;k++){var m=this.A[k];m.active&&(d?0x8000000000000>m.end:!m.contains(c))&&h.push(m)}e=e.concat(WA(this,h));h=void 0;if(d)h=QA(this.o,0x7ffffffffffff),h=h.concat(SA(this.o));else{if(this.B<=c&&b.kb()&&!T(b,16)&&!T(b,32)){b=this.o;d=c;h=[];for(k=RA(b,this.B);k<
b.o.length&&!(m=b.o[k],(m.end<=d||m.contains(d))&&h.push(m),m.start>d);++k);b=h}else b=QA(this.o,c);h=b}e=e.concat(VA(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.B&&tq(d).S("onEnter",d),this.L("crn_"+d.A,d)):(d.B&&tq(d).S("onExit",d),this.L("crx_"+d.A,d))}this.J=!1;a--}this.K().kb()&&(a=TA(this.o,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.P(),this.D.start(a)))}};
f.V=function(){this.F=this.o=this.A=null;UA.N.V.call(this)};var kB={wJ:"current",PL:"new"};vB.prototype.update=function(){var a=this.A.A()||0,b=OB(this.A);if(a!=this.o||zB(this,a,b)){if(a<this.o||a-this.o>b-this.D+.5||zB(this,a,b))wB(this),this.B=a;this.D=b;this.o=a}};AB.prototype.A=function(){return{ps:this.o.o,el:this.o.Ba}};
AB.prototype.send=function(){if(!this.B){var a;a=this.A();a=hf(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.o&&this.videoData.visitorData&&mj(a)?tj(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):hq(a);this.B=!0}};B(BB,AB);
BB.prototype.A=function(){var a=BB.N.A.call(this);qa(a,this.o.A);qa(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.o.$,framer:this.o.Ud,list:this.videoData.Va||this.videoData.playlistId,w:le(this.videoData.Jj/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:xB(this.C),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Yd});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.L:this.videoData.Nc)a.autoplay="1";this.o.Bb&&(a.authuser=this.o.Bb);this.o.pageId&&(a.pageid=this.o.pageId);this.videoData.tg&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);qa(a,BB.N.A.call(this));qa(a,this.o.A);return a};B(CB,G);var YB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};f=CB.prototype;
f.kj=function(a){a=0<=a?a:OB(this.o);var b=this.o.F();if(!(0,window.isNaN)(this.Z)&&!(0,window.isNaN)(b.B)){var c=b.B-this.Z;0<c&&DB(this,a,"bwm",[c,(b.F-this.ca).toFixed(3)])}this.Z=b.B;this.ca=b.F;(0,window.isNaN)(b.o)||DB(this,a,"bwe",[b.o.toFixed(0)]);(0,window.isNaN)(b.A)||(c=b.A,b.C<c&&(c=b.C),this.O!=c&&(DB(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&&DB(this,a,"bat",[this.C.level,this.C.charging?"1":"0"]);c=XL(this.o.o);
this.$!=c&&(DB(this,a,"vis",[c]),this.$=c);DB(this,a,"cmt",[this.o.A()]);0<b.D&&DB(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.lk&&(this.B.acc=[this.o.videoData.lk.join(":")])};
f.kh=function(a){if(!this.isDisposed()&&!ac(this.B)){a=0<=a?a:OB(this.o);this.G.isActive()||this.kj(a);var b=BJ(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&&DB(this,a,"df",[d]);this.U=c;a=EB(this);hc(a,this.o.o.A);a=hf(this.o.o.ud,a);for(var e in this.B)a+="&"+e+"="+this.B[e].join(",");hq(a);this.B={};this.F.start()}};
f.lg=function(){DB(this,OB(this.o),"vps",["N"]);this.o.videoData.Pa&&GB(this,"preload");this.o.videoData.Sl&&GB(this,"reload");this.o.videoData.Wf&&GB(this,"monitor");this.o.videoData.Ga&&GB(this,"live");this.P=wi(y(this.kh,this),1E4);this.F.start()};
f.Hr=function(){this.o.videoData.H&&GB(this,"drm-"+this.o.videoData.H.o)};
f.onError=function(a,b){var c=OB(this.o);FB(this,c,a,b);this.kj(c)};
f.$A=function(){var a=OB(this.o);"PL"==this.A&&(DB(this,a,"vps",[this.A]),this.kh(a))};
f.V=function(){CB.N.V.call(this);yi(this.P)};IB.prototype.send=function(a){if(!this.U){var b=MB(this),b=hf(this.$,b);if(this.F)this.L&&(a={method:"POST",Hb:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),tj(b,a));else{var c=JB(this,a);c?tj(b,c):hq(b,a)}this.U=!0}};
IB.prototype.o=function(a){return(1*a.toFixed(3)).toString()};B(NB,G);f=NB.prototype;f.JA=function(a,b){if(!this.isDisposed()){this.G=window.NaN;this.B.update();var c=yB(this.B),d=SB(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=PB(this,!0,a));d.send();this.K++}};
f.lg=function(){this.A.lg()};
f.onError=function(a,b){this.A.onError(a,b)};
f.pj=function(a){var b=this.o.o,c=this.o.videoData,d={ns:b.ha,el:b.Ba,eurl:b.$,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.L:c.Nc)d.autoplay="1";"heartbeat"==a&&(d.tpmt=xB(this.B));qa(d,b.A);UB(this,hf("//www.youtube.com/live_204",d))};
f.V=function(){NB.N.V.call(this);xi(this.G);this.G=window.NaN;var a=this.B;yi(a.F);a.F=window.NaN};aC.prototype.ib=function(a,b){$M(this.da,"iv",a,b)};f=jC.prototype;f.rj=function(){this.context.C.subscribe("resize",this.fi,this)};
f.ma=function(){return this.fa};
f.jg=function(a,b,c,d,e,h){this.context.o.R(a,"click",pa(this.Wi,b,c,d,e||[],h||0),this);this.context.o.R(a,"touchstart",pa(function(){this.Vm=!1}),this);
this.context.o.R(a,"touchmove",pa(function(){this.Vm=!0}),this)};
f.Wi=function(a,b,c,d,e,h){if(this.Vm)return!1;h&&(h.stopPropagation(),h.preventDefault());(b=sB(a,b,this.context.videoData.videoId))&&mC(this,b,tB(b,a.target),c,d,e,a.fj);return!1};
f.show=function(){this.K=K()};
f.ka=function(){};
f.destroy=function(){dh(this.ma())};
f.fi=function(){};B(nC,R);f=nC.prototype;f.Qr=function(){Cz(this.da)&&bN(this.da)&&this.C&&3!=this.K.o&&this.Lh()};
f.HG=function(a){this.D&&mh(this.D.element,Sl(a))||(this.F&&this.F.Gk?this.wq(this.F):(this.Lh(),Ji("iv-teaser-clicked",!!this.A),this.da.Fh(!0)))};
f.FG=function(){Ji("iv-teaser-mouseover");this.A.stop()};
f.GG=function(){be(this.element,"ytp-cards-auto-open-hover-card")};
f.uC=function(a){this.A||!a||bN(this.da)||this.H&&this.H.isActive()||(this.F=a.Hi,rC(this,a),Ji("iv-teaser-shown"))};
f.wq=function(a){a.fj&&this.da.pauseVideo();yy(a.lr,void 0);zy(a.lr,a.target);Ji("iv-hover-card-clicked")};
f.yy=function(){L(this.element,"ytp-hover-card-active")};
f.zy=function(){be(this.element,"ytp-hover-card-active")};
f.Yt=function(){this.L.stop();this.A&&this.A.isActive()&&this.M.start()};
f.se=function(){this.M.stop();this.A&&!this.A.isActive()&&this.L.start()};
f.wB=function(){this.A&&this.A.stop()};
f.uB=function(){this.Lh()};
f.Lh=function(){!this.A||this.J&&this.J.isActive()||(this.D&&(Jq(this.D),this.D=null),this.F=null,this.K.ka(),be(this.da.Ca(),"ytp-cards-teaser-shown"),be(this.da.Ca(),"ytp-cards-button-teaser-merge"),be(this.element,"ytp-cards-combined-teaser"),this.J=new Wd(function(){for(var a=0;a<this.G.length;a++)this.za(this.G[a]);this.G=[];this.A&&(this.A.dispose(),this.A=null);qC(this.P,!0)},330,this),this.J.start())};
f.V=function(){var a=this.da.Ca();a&&be(a,"ytp-cards-teaser-shown");Nb(this.H,this.J,this.A,this.D,this.F);nC.N.V.call(this)};B(tC,sC);B(uC,sC);B(vC,uC);var Coa=!Tg;wC.prototype.A=function(a,b){var c=uh(b.target,"label");c&&M(c,"iv-card-poll-choice-focused",a)};
wC.prototype.G=function(a,b){var c=vh(b.target,"iv-card-poll");if(c)if(a.B)Og("iv-card-sign-in-button",c).click();else{var d=window.parseInt,e;e=b.target;e=Coa&&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);
yC(a,c);uj(this.o.videoData.wf,{Rc:{action_poll_vote:1},Hb:{poll_id:a.id,index:d,session_token:a.F}});c={};c["link-id"]=d;fC(this.o.logger,a.Ta,void 0,c,a.o.click,5)}};
wC.prototype.F=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.H,a.C));IC(this,a,!0,b)};
wC.prototype.H=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.H,a.C,a.J));IC(this,a,!1,b)};B(KC,sC);B(LC,sC);B(NC,uC);B(OC,uC);B(PC,sC);B(QC,sC);B(SC,jC);f=SC.prototype;f.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.da.Ca())?(a=mr(a),a=177<a.width&&177<a.height):a=!1;return a};
f.qw=function(){this.U&&cD(this)};
f.Vw=function(){(this.U=this.D)&&dD(this)};
f.HF=function(){RC(this,"product_listing_ads_cards_drawer_auto_open")&&!YC(this)||cD(this)};
f.zw=function(){dD(this)};
f.OA=function(a){if(Zd(this.B,"ytp-drawer-peek")){var b=Og("iv-drawer-close-button",this.B);mh(b,Sl(a))||cD(this)}};
f.fi=function(){var a=this.isAvailable();S(this.ma(),a);M(this.context.A.Ca(),"ytp-iv-drawer-enabled",a);a&&(this.P||(hC(this.context.logger,11),this.P=!0),F(this.A,function(a){a.Yp||(a.Yp=!0,iC(this.context.logger,11,a.Sa.Ta))},this));
bD(this.da)};
f.destroy=function(){cN(this.da,!1);this.da.Ca().removeChild(this.B);Ii(this.G);Nl(this.X);this.J&&this.J.dispose();this.F&&this.F.dispose();SC.N.destroy.call(this)};
var TC={adspaycreator:uC,associated:uC,associated:uC,collaborator:tC,donation:vC,episode:QC,fundraising:uC,location:uC,merch:uC,movie:QC,playlist:KC,poll:LC,product:uC,productListing:NC,simple:uC,tip:OC,video:PC};f=SC.prototype;f.IF=function(a){this.xk.start();a.preventDefault();if(a=Zl(a||window.event,!1))this.Fc.scrollTop+=a};
f.xm=function(a,b){if(!Zd(this.da.Ca(),"ytp-cards-teaser-shown")){this.o!=a&&(this.o=a);if(pr(this.ma())){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&&RC(this,"hover_card_for_video_card_teaser")){var d=a.Sa,e=d.url?sB(d.url,a.Sa.id,this.context.videoData.videoId,
this.context.B):null,h=e?tB(e,d.url.target):null;e&&h&&(c={pO:d.id,title:d.title,lr:e,target:"current"==h?"_top":void 0,fj:d.url.fj,imageUrl:d.B,videoDuration:d.videoDuration,Ld:d.Ld,Gk:RC(this,"combined_teaser_link")})}cN(this.da,!0,{teaserText:a.Sa.teaserText,durationMs:b?2E3:a.Sa.teaserDurationMs,Hi:c,Dz:RC(this,"merge_button_with_teaser"),Bw:b&&RC(this,"hover_card_on_button_hover")})}}this.O.isActive()||((!this.D||!this.xk.isActive()&&this.Ui)&&eD(this,a),this.O.start(910+a.Sa.teaserDurationMs))}};
f.GD=function(){this.o&&this.xm(this.o,!0)};
f.yD=function(a){this.D||(this.o=a,eD(this,a),cD(this,!1,a))};
f.Kw=function(){this.D&&(hC(this.context.logger,4,fD(this).o.close),dD(this))};
f.Zw=function(){M(this.B,"iv-drawer-scrolled",0<this.Fc.scrollTop)};
f.Cz=function(){var a=fD(this);iC(this.context.logger,8,a.Ta,a.o.MD)};
f.Bz=function(){var a=this.o;iC(this.context.logger,13,a.Sa.Ta,void 0);var b=RC(this,"hover_card_for_video_card_teaser");"video"==a.Sa.type&&b&&(a=this.o,a.Yi||(a.Yi=!0,eC(this.context.logger,a.Sa.Ta,a.Sa.o.Ep)))};
f.zz=function(){var a=this.o.Sa;fC(this.context.logger,a.Ta,void 0,void 0,a.o.click,5)};
f.Az=function(a){var b=fD(this);this.o?a?(a=this.context.logger,iC(a,9,b.Ta,b.o.Fm)):(a=this.context.logger,iC(a,12,b.Ta,b.o.Fm)):(a=this.context.logger,hC(a,12,b.o.Fm));a.da.vg(4,void 0)};var hD=/#(.)(.)(.)/,gD=/^#(?:[0-9a-f]{3}){1,2}$/i;B(jD,IA);jD.prototype.C=v;jD.prototype.am=function(){this.C();jD.N.am.call(this)};
jD.prototype.fh=function(){this.C();jD.N.fh.call(this)};
jD.prototype.bj=function(){this.C();jD.N.bj.call(this)};
B(kD,jD);kD.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};B(lD,jC);lD.prototype.rj=function(){lD.N.rj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&kC(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ka)};B(mD,lD);mD.prototype.J=function(a,b,c,d){this.A.stop();if(!this.B){var e=mr(a);jr(a,e.width);jr(b,e.width);$q(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;S(a,!0);this.D=new Wd(function(){L(this.ma(),"iv-branding-active")},0,this);
this.D.start()}};
mD.prototype.H=function(a,b){be(this.ma(),"iv-branding-active");this.F=new Wd(function(){S(a,!1);jr(b,0)},250);
this.F.start();this.B=!1};
mD.prototype.show=function(){if(!this.isActive){mD.N.show.call(this);if(!this.G){L(this.ma(),"iv-branding");var a=this.annotation.data;this.C=a.image_width;this.o=P("img",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});S(this.o,!1);var b=P("div","branding-img-container",this.o);this.ma().appendChild(b);var c=P("div","iv-branding-context-name");oh(c,a.channel_name);var d=P("div","iv-branding-context-subscribe");this.annotation.C?Mf(d,this.annotation.C):
a.num_subscribers&&oh(d,a.num_subscribers);b=P("div","iv-branding-context-subscribe-caret");c=P("div","branding-context-container-inner",b,c,d);S(c,!1);d=P("div","branding-context-container-outer",c);Uq(d,"right",this.C+"px");this.ma().appendChild(d);this.jg(this.o,this.annotation.getUrl(),this.annotation.id,this.annotation.Ta);this.A=new Wd(pa(this.H,c,d),500,this);this.context.o.R(this.ma(),"mouseover",y(this.J,this,c,d,b,a.image_height));this.context.o.R(this.ma(),"mouseout",y(this.A.start,this.A));
this.G=!0}eC(this.context.logger,this.annotation.Ta);S(this.ma(),!0);this.isActive=!0;var a=this.o,e,b=nr(a).width,c=ga(void 0)?void 0:b;e=e||0;$q(a,c);e=new kD(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,LA);this.context.o.R(e,"begin",pa(S,a,!0));e.play()}};
mD.prototype.ka=function(){this.isActive&&(S(this.ma(),!1),this.isActive=!1)};var pD={CLOSE:"close",WL:"openUrl",bw:"subscribe"},qD={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",MM:"rollOut",Sv:"rollOver",Vv:"shown"};var AD={gO:"xx",hO:"xy",kO:"yx",lO:"yy"};B(FD,zD);var ID={Bu:"anchored",AM:"rect",SM:"shapeless"};var ND={CLOSED:"closed",eM:"playerControlShow",Sv:"rollOver",Vv:"shown"};var UD={Bu:"anchored",Eu:"branding",gJ:"channel",vJ:"cta",qK:"highlightText",PK:"label",gM:"playlist",qM:"popup",bN:"speech",bw:"subscribe",rN:"title",VIDEO:"video",$N:"vote",bO:"website"},TD={Eu:"branding",XI:"card",pK:"highlight",IMAGE:"image",MARKER:"marker",uM:"promotion",TEXT:"text",dO:"widget"},VD={VN:"video_relative",fM:"player_relative"};SD.prototype.getUrl=function(){var a=$D(this,function(a){return"openUrl"==a.type&&null!=a.url});
return a?a.url:null};
SD.prototype.showLinkIcon=function(){return XD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(fE,lD);f=fE.prototype;f.show=function(){this.isActive||(fE.N.show.call(this),this.H||(gE(this),this.H=!0),S(this.ma(),!0),this.annotation&&this.annotation.Ta&&eC(this.context.logger,this.annotation.Ta),be(this.ma(),"iv-promo-inactive"),this.ma().removeAttribute("aria-hidden"),this.isActive=!0,this.o&&(Vd(this.o),this.o=null),iE(this),jE(this,this.F))};
f.ka=function(){this.isActive&&(L(this.ma(),"iv-promo-inactive"),this.isActive=!1,this.ma().setAttribute("aria-hidden",!0))};
f.Wi=function(a,b,c,d,e,h){return this.C?!1:fE.N.Wi.call(this,a,b,c,d,e,h)};
f.pl=function(a,b){b.stopPropagation();iE(this);jE(this,a);this.$b.focus()};
f.Mx=function(a){this.G=!0;this.pl(500,a)};
f.Lx=function(){this.G=!1;hE(this)};
f.JF=function(a){a.stopPropagation();this.ka();gC(this.context.logger,this.annotation.Ta)};
f.destroy=function(){this.D.dispose();fE.N.destroy.call(this)};lE.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=nE.prototype;f.ka=function(){this.isVisible=!1;this.o&&(oE(this),this.o.ka())};
f.show=function(){this.isVisible=!0;this.o&&(this.o.show(),this.B.subscribe("resize",this.Os,this),this.B.subscribe("onVideoAreaChange",this.dr,this))};
f.destroy=function(){if(this.o){oE(this);var a=this.o;a.G.removeAll();a.Zl.dispose();a.J.dispose();a.A&&dh(a.A);a.B&&a.B.ma()&&dh(a.B.ma())}pE(this)};
f.dr=function(){HF(this.o)};
f.Os=function(){HF(this.o)};qE.prototype.clone=function(){return new qE(this.start,this.end)};B(sE,rE);tE.prototype.Xc=null;tE.prototype.Wb=null;tE.prototype.sh=!0;var wE=[2,2,6,6,0];f=tE.prototype;f.clear=function(){this.wa.length=0;this.Aa.length=0;this.tc.length=0;delete this.Xc;delete this.Wb;delete this.sh;return this};
f.yb=function(a){var b=cb(this.wa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.wa.push(1),this.Aa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.tc.push(c,d)}this.Aa[this.Aa.length-1]+=b/2;this.Wb=[c,d]};
f.close=function(){var a=cb(this.wa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.wa.push(4),this.Aa.push(1),this.Wb=this.Xc);return this};
f.clone=function(){var a=new this.constructor;a.wa=this.wa.concat();a.Aa=this.Aa.concat();a.tc=this.tc.concat();a.Xc=this.Xc&&this.Xc.concat();a.Wb=this.Wb&&this.Wb.concat();a.sh=this.sh;return a};
f.transform=function(a){if(!this.sh)throw Error("Non-simple path");a.transform(this.tc,0,this.tc,0,this.tc.length/2);this.Xc&&a.transform(this.Xc,0,this.Xc,0,1);this.Wb&&this.Xc!=this.Wb&&a.transform(this.Wb,0,this.Wb,0,1);return this};
f.isEmpty=function(){return 0==this.wa.length};B(yE,rE);zE.prototype.getWidth=function(){return this.B};ba(AE);AE.prototype.o=0;B(BE,J);f=BE.prototype;f.Ay=AE.getInstance();f.getId=function(){return this.U||(this.U=":"+(this.Ay.o++).toString(36))};
f.ma=function(){return this.o};
f.ig=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");BE.N.ig.call(this,a)};
f.Fi=function(){this.o=this.F.createElement("DIV")};
f.render=function(a){if(this.Lc)throw Error("Component already rendered");this.o||this.Fi();a?a.insertBefore(this.o,null):this.F.o.body.appendChild(this.o);this.D&&!this.D.Lc||this.Cf()};
f.Cf=function(){this.Lc=!0;CE(this,function(a){!a.Lc&&a.ma()&&a.Cf()})};
f.Mg=function(){CE(this,function(a){a.Lc&&a.Mg()});
this.G&&this.G.removeAll();this.Lc=!1};
f.V=function(){this.Lc&&this.Mg();this.G&&(this.G.dispose(),delete this.G);CE(this,function(a){a.dispose()});
this.o&&dh(this.o);this.D=this.o=this.H=this.L=null;BE.N.V.call(this)};
f.ee=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);qb(this.L,a);b&&(a.Mg(),a.o&&dh(a.o));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;BE.N.ig.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(DE,BE);DE.prototype.A=null;DE.prototype.Hf=function(){return this.Lc?mr(this.ma()):ga(this.width)&&ga(this.height)?new ue(this.width,this.height):null};
DE.prototype.drawText=function(a,b,c,d,e,h,k,m,l,p,t){var u=m.size/2;c="bottom"==k?c+e-u:"center"==k?c+e/2:c+u;e=b+d;d=Math.round(me(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=m.size;k={"font-family":m.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;m.bold&&(k["font-weight"]="bold");m.ah&&(k["font-style"]="italic");0!=d&&(k.transform=
"rotate("+d+" "+b+" "+c+")");b=HE(this,"text",k);b.appendChild(this.F.o.createTextNode(a));null==l&&Rq&&VL&&(a="black",p instanceof yE&&(a=p.B),l=new zE(1,a));p=new QE(b,this,l,p);(t||this.A).ma().appendChild(p.ma());return p};
DE.prototype.resume=function(){};B(FE,J);f=FE.prototype;f.il=null;f.Tg=null;f.ma=function(){return this.Tg};
f.addEventListener=function(a,b,c,d){Oc(this.Tg,a,b,c,d)};
f.removeEventListener=function(a,b,c,d){Zc(this.Tg,a,b,c,d)};
f.V=function(){FE.N.V.call(this);var a=this.Tg;if(a)if(Fc(a))a.removeAllListeners(void 0);else if(a=Rc(a)){var b=0,c;for(c in a.o)for(var d=a.o[c].concat(),e=0;e<d.length;++e)$c(d[e])&&++b}};B(JE,FE);JE.prototype.fill=null;B(KE,FE);B(LE,FE);B(ME,JE);B(NE,JE);B(OE,KE);OE.prototype.clear=function(){bh(this.ma())};
OE.prototype.setSize=function(a,b){TE(this.ma(),{width:a,height:b})};
B(PE,ME);B(QE,NE);B(RE,LE);RE.prototype.setPosition=function(a,b){TE(this.ma(),{x:a,y:b})};
RE.prototype.setSize=function(a,b){TE(this.ma(),{width:a,height:b})};var XE;B(SE,DE);var WE=0;f=SE.prototype;f.Fi=function(){var a=HE(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=HE(this,"g");this.J=HE(this,"defs");this.A=new OE(b,this);a.appendChild(this.J);a.appendChild(b);this.o=a;this.C&&(this.ma().setAttribute("preserveAspectRatio","none"),this.O?this.Aj():this.ma().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.M:"")))};
f.Aj=function(){if(this.Lc){var a=this.Hf();if(0==a.width)this.ma().style.visibility="hidden";else{this.ma().style.visibility="";var b=a.width/this.C,a=a.height/this.M;this.A.ma().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.setSize=function(a,b){kr(this.ma(),a,b)};
f.Hf=function(){if(!Rq)return this.Lc?mr(this.ma()):SE.N.Hf.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Lc&&(c||d))return null;var e,h;c&&(e=this.ma().parentNode,h=mr(e),a=(0,window.parseFloat)(a)*h.width/100);d&&(e=e||this.ma().parentNode,h=h||mr(e),b=(0,window.parseFloat)(b)*h.height/100);return new ue(a,b)};
f.clear=function(){this.A.clear();bh(this.J);this.B={}};
f.Cf=function(){var a=this.Hf();SE.N.Cf.call(this);a||this.aa("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(YE(),"tick",this.Aj);this.Aj()}};
f.Mg=function(){SE.N.Mg.call(this);this.O&&this.K.za(YE(),"tick",this.Aj)};
f.V=function(){delete this.B;delete this.J;delete this.A;this.K.dispose();delete this.K;SE.N.V.call(this)};ZE.prototype.ma=function(){return this.D};
ZE.prototype.A=function(){};var gF={bevel:1,dropshadow:2};B(pF,ZE);
pF.prototype.A=function(a,b){var c=dE(a);if(c){var d=DD(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=cE(a))&&c.o?c.o:null)&&c.length?c[0]:null){var h=Ae(CD(b,yD(e,new we(e.H,e.J,e.D,e.B),b.o))),k=d.clone(),c=new we(h.x,h.y,1,1),m=Math.max(k.left+k.width,c.left+c.width),l=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=m-k.left;k.height=l-k.top;var c=a.o,k=nF(k,c.effects),m=$E(this,k.width,k.height),l=mF(c,k.width,k.height,this.o),
d=new we(d.left-k.left,d.top-k.top,d.width,d.height),p=new re(h.x-k.left,h.y-k.top);this.C=17*xD(b.o,e.A,e.o?e.o:"xy");e=c.o;var h=a.o,t=this.o&&YD(a),u=t?h.C+1:h.C,t=(h=u?new zE(u,t?h.D:h.F):null)?h.getWidth()/2:0,u=qF(d,p),x=this.F(d,e,p,u),A=p.x,p=p.y,C=d.width,H=d.height,z=d.left,d=d.top,N=new tE;uE(N,z+e+t,d+t);"t"==u&&(N.yb(x.start,d+t),N.yb(A,p),N.yb(x.end,d+t));N.yb(z+C-e-t,d+t);vE(N,e,e,-90);"r"==u&&(N.yb(z+C-t,x.start),N.yb(A,p),N.yb(z+C-t,x.end));N.yb(z+C-t,d+H-e-t);vE(N,e,e,0);"b"==u&&
(N.yb(x.end,d+H-t),N.yb(A,p),N.yb(x.start,d+H-t));N.yb(z+e+t,d+H-t);vE(N,e,e,90);"l"==u&&(N.yb(z+t,x.end),N.yb(A,p),N.yb(z+t,x.start));N.yb(z+t,d+e+t);vE(N,e,e,180);N.close();VE(m,N,h,l);if(l=this.ma())L(l,"annotation-shape"),L(l,"annotation-speech-shape"),$q(l,k.left,k.top),kr(l,k.width,k.height),oF(m,l,c.effects)}}}};
pF.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=le(c-a/2,d+b,d+e-a-b);return new qE(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 qE(0,0)};B(rF,ZE);rF.prototype.A=function(a,b){var c=dE(a);if(c){var d=DD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=nF(d,c.effects),h=$E(this,e.width,e.height);kF(h,new we(0,0,d.width,d.height),c.o,new zE(!c.B&&this.o?1:c.B,c.bgColor),new yE("#000",0));d=this.ma();L(d,"annotation-shape");or(d,lF(this.o,c.A));$q(d,e.left,e.top);kr(d,e.width,e.height)}}};B(sF,ZE);
sF.prototype.A=function(a,b){var c=DD(dE(a),b);if(!(0>=c.width||0>=c.height)){var d=tF(c,this.G);d.left+=c.left;d.top+=c.top;var e=a.o,h=nF(d,e.effects),k=$E(this,h.width,h.height),m=new yE("#000",0),l=tF(d,this.C),d=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":"":"",l=HE(k,"image",{x:l.left,y:l.top,width:l.width,height:l.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});l.setAttributeNS("http://www.w3.org/1999/xlink","href",
d);var p=new RE(l,k);k.A.ma().appendChild(p.ma());if(d=this.ma()){or(d,lF(this.o,e.A));if(this.F&&0<e.B){var l=new zE(e.B,e.bgColor),c=new we(0,0,c.width,c.height),t=l.getWidth()/2+1;var t=jF(c,e.o,t),u=GE(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",UE(t));x.setAttribute("fill","#FFF");u.appendChild(x);t=IE(k,"mask",u)}p=p.ma();t&&p.setAttribute("mask","url(#"+
t+")");kF(k,c,e.o,l,m)}L(d,"annotation-shape");L(d,"annotation-image-shape");$q(d,h.left,h.top);kr(d,h.width,h.height);oF(k,d,e.effects)}}};B(uF,ZE);uF.prototype.A=function(a,b){var c=dE(a);if(c){var d=DD(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=nF(d,c.effects),h=$E(this,e.width,e.height),k=new we(0,0,d.width,d.height),d=mF(c,d.width,d.height,this.o),m=c.o,l=a.o,p=this.o&&YD(a),t=p?l.C+1:l.C;kF(h,k,m,t?new zE(t,p?l.D:l.F):null,d);if(k=this.ma())L(k,"annotation-shape"),L(k,"annotation-popup-shape"),$q(k,e.left,e.top),kr(k,e.width,e.height),oF(h,k,c.effects)}}};B(vF,pF);vF.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 qE(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 qE(0,0)};f=xF.prototype;f.Ps=function(){this.P||(this.C&&S(this.C,!0),this.D&&S(this.D,!0),this.B&&(this.B.o=!0,or(this.A,IF(this)?1:0),this.B.A(this.o,BF(this))),this.J.isActive()&&this.J.stop(),this.P=!0,this.K=sA(this.G,DF(this.F),function(a){this.Zl.stop();this.se(a)}))};
f.se=function(){this.P&&(this.O?this.J.start():this.ep(),this.B&&(this.B.o=!1,or(this.A,IF(this)?1:0),this.B.A(this.o,BF(this))),this.P=!1,this.K&&(this.G.za(this.K),this.K=null))};
f.ep=function(){this.C&&S(this.C,!1);this.D&&S(this.D,!1)};
f.GF=function(a){this.$=a;this.Zl.Kf()};
f.Kx=function(){var a=this.$,b=new re(a.clientX,a.clientY),c=dr(this.F.Ca()),d=JF(c,this.M),c=(this.D&&pr(this.D)||this.C&&pr(this.C))&&JF(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.Ps():this.se(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=BF(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new rF:"popup"==this.o.style?e=new uF:"anchored"==this.o.style?e=new pF:"speech"==this.o.style?e=new vF:"image"==this.o.type&&("video"==this.o.style?e=new sF(Aoa,D5,!0):"channel"==this.o.style&&(e=new sF));e&&(e.A(this.o,d),this.B=e,d=e.ma())&&(S(d,!1),L(d,"annotation-type-"+
this.o.type.toLowerCase()),this.Z(d))}if(b){d=["annotation"];"highlightText"!=this.o.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=P("div",d);S(this.A,!1);this.o.F&&(this.H=P("div","inner-text"),"label"==this.o.style&&(L(this.H,"label-text"),this.H.style.backgroundColor=this.o.o.bgColor),oh(this.H,this.o.F),this.A.appendChild(this.H));oi(this.A,"annotation_id",this.o.id);this.Z(this.A);zF(this,this.A);if(YD(this.o)&&"image"!=this.o.type&&this.o.showLinkIcon()){if(e=
this.o.getUrl())d=this.A,e=new O(mB(e)),d.title=e.A+e.B;this.D=P("span","annotation-link-icon");S(this.D,!1);this.A.appendChild(this.D)}AF(this);YD(this.o)||(this.A.style.cursor="default")}c&&("subscribe"==this.o.style?Og("yt-uix-subscription-button",this.A)||Mf(this.A,this.o.C):this.o.C&&Mf(this.A,this.o.C));if(a||b){a:{a=this.o.A.o;if(a.length&&(a=KD(a[0]))){a=a.K;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.ma()&&(this.B.ma().style.zIndex=a)}S(this.A,!0);or(this.A,IF(this)?1:0);HF(this);
this.B&&this.B.ma()&&S(this.B.ma(),!0)};
f.ka=function(){this.A&&S(this.A,!1);this.B&&this.B.ma()&&S(this.B.ma(),!1);this.L&&(this.G.za(this.L),this.L=null)};B(LF,vq);LF.F="AnnotationsModule";var KF={HI:"video-annotations",Qu:"video-custom-annotations",tv:"video-legacy-annotations"};LF.D=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
LF.C=function(a){return"card"==a.type};
LF.B=function(a){return LF.Xa(a)?new LF(a):null};
LF.Xa=function(a){var b=a.W();return"leanback"==b.Ba?!1:!b.K.isEmpty()||LF.o(b.o)?!0:Wx(a.getVideoData(),"iv3_module")};
LF.A=function(){var a=P("div",["annotation","annotation-type-custom"]);S(a,!1);return a};
LF.o=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
f=LF.prototype;f.nd=function(a,b){if(!LF.o(this.o.W().o))return null;switch(a){case "loadCustomAnnotationsXml":var c=oA(b);c&&SF(this,c);return!0;case "removeCustomAnnotationById":return b&&this.A&&(VC(this.A,b),bD(this.o)),!0}return null};
f.jf=function(){return LF.o(this.o.W().o)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
f.Xa=function(){return LF.Xa(this.o)};
f.create=function(){LF.N.create.call(this);this.H.T(this.o,"onVideoAreaChange",y(this.S,this,"onVideoAreaChange"));this.H.T(this.o,"onHideControls",y(this.S,this,"onHideControls"));this.H.T(this.o,"onShowControls",y(this.S,this,"onShowControls"));this.H.T(this.o,"resize",y(this.S,this,"resize"));this.D=new R(["div",["ytp-player-content","ytp-iv-player-content"]]);Br(this.o,this.D.element,4);this.C=new R(["div",["ytp-iv-video-content"]]);this.C.element.appendChild(P("DIV","video-annotations",this.U,
this.X));var a=this.o.W(),b=this.o.getVideoData();1!=(a.yd||b.sa)&&null===a.K.get(b.videoId)||this.load()};
f.destroy=function(){Fr(this.H);be(this.o.Ca(),"ytp-iv-drawer-open");Jq(this.D);this.D.dispose();this.C.dispose();LF.N.destroy.call(this)};
f.Pq=function(){if(this.C){var a=CF(DF(this.o),!0);kr(this.C.element,a.width,a.height);$q(this.C.element,a.left,a.top)}};
f.SB=function(a){T(a.state,2)&&(cG(this)&&dG(this)&&2!=this.o.getPresentingPlayerType()&&eG(this,!1),fG(this,!1))};
f.load=function(){LF.N.load.call(this);this.L++;var a=this.o.getVideoData(),b=a.videoId,c=y(this.TA,this,b,this.L);kv()&&(c=TF(this,c));c={format:"XML",Zb:c,Rc:{}};a.isPharma&&(c.Rc.pharma="1");c.method="POST";c.withCredentials=!0;var d=this.o.W();"gaming"==d.o&&(c.Rc.gaming="1");(b=d.K.remove(b))&&UF(this,c,b);a.wf&&(b=b&&(b.Oe||b.ri),a.ho&&!b||tj(a.wf,c));Br(this.o,this.C.element,4);this.Pq()};
f.unload=function(){this.J.ib({"iv-event":1});yq(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,bD(this.o));this.B={};this.P={};LF.N.unload.call(this);Jq(this.C)};
f.TA=function(a,b,c){if(!NF(this,b,a)&&(a=oj(c)&&c.responseXML?c.responseXML:null)){SF(this,a);L(this.o.Ca(),this.ua+"-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 qq(c,e,h);a.push(b)}}this.gb(a)}};
f.HC=function(a){this.F&&a==this.o.getVideoData().videoId&&(this.loaded?VF(this):this.load())};
f.Yb=function(a){LF.N.Yb.call(this,a);a=a.getId();var b=this.B[a];b&&!b.C&&(b=b.annotation,XF(this,a),eC(this.J,b.Ta))};
f.jc=function(a){LF.N.jc.call(this,a);YF(this,a.getId())};
f.bp=function(a){a&&(a.ka(),bG(this,"shown",!1,a.annotation.id),this.ti(a.annotation,"hidden"))};
f.Mr=function(a){a&&(a.show(),bG(this,"shown",!0,a.annotation.id),this.ti(a.annotation,"shown"))};
f.FC=function(a,b,c){var d=this.B[a];if(d&&b.value!=c){b.value=c;var e=!1;aE(d.annotation,function(a){e|=a.value});
ZF(this,a,b,e)}};
f.Uz=function(a){if(a&&a.id){var b=a.getUrl();if(b){var c=mB(b);if(c){var d=y(this.ti,this,a,"click"),e=this.o.getVideoData();if("new"==tB(c,b.target)||$F(this,b,e.videoId))d(),d=null;fC(this.J,a.Ta,d)}}}};
f.ti=function(a,b){ZD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.o.getVideoData(),e;if(!(e=!$F(this,c.url,d.videoId))){e=qB(c.url);var h=pB(c.url);if(e){if(d.videoId==e)this.S("command_seek",h||0);else{var k=QF(this).A;K9(k.app,e,void 0,void 0);h&&eN(QF(this).A)&&QF(this).A.Ub(h)}e=!0}else e=!1;e=!e}e&&(d=sB(c.url,a.id,d.videoId,this.o.W()))&&(this.pauseVideo(),e=tB(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=jj(c),h=null,"ei"in e&&(h={ei:e.ei},c=nf(c,"ei")),yy(c,h),zy(c,
d))}},this)};
f.aB=function(){bG(this,"playerControlShow",!1)};
f.nC=function(){bG(this,"playerControlShow",!0)};
f.wF=function(a){bG(this,"rollOver",!0,a.id)};
f.se=function(a){bG(this,"rollOver",!1,a.id)};
f.tA=function(a){if(a||a.id)this.B[a.id].C=!0,YF(this,a.id),a&&(gC(this.J,a.Ta),this.ti(a,"close")),bG(this,"closed",!0,a.id)};
f.V=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)mv(a[b]);this.O.length=0;LF.N.V.call(this)};var wG=/^#(?:[0-9a-f]{3}){1,2}$/i,g8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),h8=["none","raised","depressed","uniform","dropShadow"],kG=["left","right","center"],r8=["en_CA","en_US","es_MX","fr_CA"];var v$=[{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"}],w$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],D6=[{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:v$},{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:v$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:w$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:v$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:w$},{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%"}]}];B(hG,R);var iG=["sub","","super"];f=hG.prototype;f.getType=function(){return this.type};
f.Pm=function(){jr(this.element,"100%");jr(this.element,this.D.offsetWidth+1)};
f.ph=function(a,b){for(var c=0;c<a.length&&a[c]==this.A[c];c++);if(this.U||b||this.A.length>c)c=0,this.Dk();for(;c<a.length;c++){var d=a[c];nG(this,d,d.o,0<c?a[c-1].o:null)}};
f.toString=function(){return hG.N.toString.call(this)};
f.Dk=function(){this.U=!1;this.A=[];bh(this.D)};B(pG,qq);pG.prototype.toString=function(){return pG.N.toString.call(this)};
B(qG,qq);B(uG,oG);B(xG,oG);B(FG,oG);B(LG,oG);var HG=/NOTE/,GG=/(?:\r\n|\r|\n){2,}/,IG=/\r\n|\r|\n/,JG=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(RG,G);f=RG.prototype;f.Mo=function(a){var b=this.o.A,c=OG(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
f.fe=function(){return null};
f.seek=function(){};
f.Jm=function(){};
f.V=function(){RG.N.V.call(this);this.Jm()};B(TG,RG);f=TG.prototype;f.Wl=function(a,b){this.isDisposed();var c=this.Rg(a),d=y(function(c){this.B=null;c=new MG(c.responseText);b(c,a)},this);
this.B&&this.B.abort();this.B=tj(c,{format:"RAW",sb:d,withCredentials:!0});this.A&&this.A.Ai!=a&&(this.A.Nk=a)};
f.Xl=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)PG(this.o,this.A.captionTracks[b]);a()};
f.Rg=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 lj(b,c)};
f.fe=function(){return this.A?this.A.Ai:null};
f.Mo=function(){return this.A?this.A.Nk:null};
f.V=function(){this.B&&this.B.abort();TG.N.V.call(this)};WG.prototype.contains=function(a){a=Ab(this.wa,a);return 0<=a||0>a&&1==(-a-1)%2};
WG.prototype.length=function(){return this.wa.length/2};B(XG,G);XG.prototype.V=function(){yi(this.B);this.B=window.NaN;this.C=!0;this.D&&this.D.abort()};
XG.prototype.resume=function(){this.C=!1;yi(this.B);this.seek(this.A.getCurrentTime());aH(this)};
XG.prototype.seek=function(a){this.o=cb(this.J.Qg(a).o)};
XG.prototype.K=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.C||null===this.G||(a=new MG(a.responseText,1E3*this.F.o[0].startTime),this.G(a));this.D=this.F=null};B(bH,RG);f=bH.prototype;f.Wl=function(a,b){YG(this.A,function(c){b(c,a)});
this.A.J=this.B.o[a.A];this.A.resume()};
f.Xl=function(a){PG(this.o,new Du({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.Jm=function(){var a=this.A;yi(a.B);a.B=window.NaN;a.C=!0};
f.Rg=function(){return""};
f.V=function(){this.A.dispose();bH.N.V.call(this)};B(cH,hG);var Doa={cp:!0};cH.prototype.Pm=function(){jr(this.element,this.F);var a=Math.round((this.L.params.mj||15)*mG(this));this.element.style.maxHeight=a+"px"};
cH.prototype.ph=function(a,b){var c,d=this.L.Fg;this.F="100%";cH.N.ph.call(this,d,b);this.F=this.D.offsetWidth+"px";cH.N.ph.call(this,a,b);var e,h;for(c=a.length;c<d.length;c++){var k=d[c],m=null;k.o?k.o==e?m=h:(m={},qa(m,k.o),m.cp=!0):m=Doa;nG(this,k,m,h);e=k.o;h=m}};B(dH,hG);dH.prototype.Pm=function(){jr(this.element,"100%");var a=Math.min(gH(this),this.element.offsetWidth);jr(this.element,a+"px");jr(this.M,"100%")};
dH.prototype.ph=function(a){var b=a.length;if(0>=b)this.Dk();else{for(var c=0;c<b&&0<=this.A.indexOf(a[c]);)c++;this.A=this.A.concat(a.slice(c));fH(this)}};
dH.prototype.Dk=function(){this.A=[];this.F=[];this.H=0;this.F=[];this.J=[];eH(this)};
dH.prototype.X=function(){this.element.style.overflow="visible";this.D.style.top=0;be(this.D,"caption-rollup");this.F.push("");this.J.push(0);fH(this)};B(hH,RG);hH.prototype.Wl=function(a,b){this.isDisposed();var c=this.Rg(a),d=y(function(c){this.A=null;c=new MG(c.responseText);b(c,a)},this);
this.A&&this.A.abort();this.A=tj(c,{format:"RAW",sb:d,withCredentials:!0});QG(this.o,a)};
hH.prototype.Xl=function(a,b,c){var d=this.B;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Fp&&(b.asrs=1);d=lj(d,b);b=y(function(b){this.A=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,k=b.getElementsByTagName("track"),m=k.length,l=0;l<m;l++){var p=k[l].getAttribute("formats"),t=c,u=k[l].getAttribute("lang_code"),x=k[l].getAttribute("lang_translated"),A=k[l].getAttribute("name"),C=k[l].getAttribute("kind"),H=k[l].getAttribute("id"),z="true"==k[l].getAttribute("lang_default"),
N="true"==k[l].getAttribute("cantran"),Ma=k[l].getAttribute("vss_id");PG(d,new Du({formats:p,format:t,languageCode:u,languageName:x,name:A,kind:C,id:H,is_servable:!0,is_default:z,is_translateable:N,vss_id:Ma}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)m=b[k].getAttribute("lang_code"),l=b[k].getAttribute("lang_translated"),p=b[k].getAttribute("lang_original"),t=b[k].getAttribute("id"),u="true"==b[k].getAttribute("lang_default"),m={languageCode:m,languageName:l,languageOriginal:p,
id:t,is_default:u},this.F[m.languageCode]=m.languageName,this.D.push(new Cu(m))}a()},this);
this.A&&this.A.abort();this.A=tj(d,{format:"RAW",sb:b,withCredentials:!0})};
hH.prototype.Rg=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=lj(b,c)};
hH.prototype.V=function(){this.A&&this.A.abort();hH.N.V.call(this)};B(iH,vq);var yH=new qG(0,0,0,"0",{}),Eoa=new qG(0,0,0,"0",{anchorPoint:0,Ul:5,Im:5,mj:2,textAlign:0});f=iH.prototype;
f.create=function(){iH.N.create.call(this);this.D=this.o.getVideoData();-1==r8.indexOf(this.Y.Z)&&L(this.o.Ca(),"cc-international");this.C=ec(AH);qa(this.C,Bq(this,"display-settings"));kH(this,"fontFamilyOption","fontFamily",g8);kH(this,"charEdgeStyle","charEdgeStyle",h8);jH(this)||(this.P=new R(["div",["ytp-player-content","ytp-subtitles-player-content"]]),Br(this.o,this.P.element,4),this.X.T(this.o,"resize",this.sq));this.X.T(this.o,"onPlaybackAudioChange",this.cA);mH(this)&&this.load()};
f.destroy=function(){Fr(this.X);jH(this)||(Jq(this.P),this.P.dispose());iH.N.destroy.call(this)};
f.load=function(){this.sa="1"==this.D.C.cc_auto_caps||"1"==this.Y.O.cc_auto_caps;iH.N.load.call(this);this.ha=!0;if(this.D.Ga)this.B=new bH(this.D.o,this.o),this.xa=this.X.T(this.o,"seekto",this.xF);else{var a=this.D.Vd||this.Y.Va||this.D.ad("yt:cc_default_lang")||this.Y.Z,a=a&&a.split("_").join("-");this.D.captionTracks.length?this.B=new TG(this.D):this.B=new hH(this.D.ki,this.D.videoId,a,this.D.ji)}oH(this)};
f.unload=function(){this.G&&(tH(this),this.km("control_subtitles_set_track"));if(jH(this)){var a;a=Mg("track",void 0,this.ca.A);for(var b=0;b<a.length;b++)dh(a[b])}else zH(this,!1),nH(this),this.xa&&this.X.za(this.xa),this.B.dispose(),this.B=null;this.K=this.fa=this.L=this.ha=!1;iH.N.unload.call(this)};
f.Xq=function(){this.ha=!1;if(jH(this))for(var a=OG(this.B.o,void 0),b=0;b<a.length;b++){var c=a[b],d={kind:"subtitles",label:Eu(c),srclang:c.A,src:this.B.Rg(c)};c.isDefault&&(d["default"]=1);for(var c=this.da.app.B,d=[P("track",d)],e=0;e<d.length;e++)c.o.appendChild(d[e])}else if(c=this.K||lH(this,!this.fa),a=OG(this.B.o,!0),0<a.length){this.fa=!0;b=this.A&&-1!=a.indexOf(this.A);if(c&&!b)if(c=this.B.Mo(),!c&&this.K&&(c=a[0]),c)this.na=!0,rH(this,c),b=!0;else if(this.L||qH(this),a=this.B.o.B,a.length&&
(a=a[0].toString(),this.K||this.sa))a=SG(this.B,a),rH(this,a,void 0),b=!0;this.o.Da("onCaptionsTrackListChanged");b||sH(this)}else if(this.B.fe())sH(this);else if(a=this.o.app.D,b=QM(a,this.ua))qb(a.o,b),b.destroy()};
f.Yq=function(a,b){jH(this);this.na&&(this.na=!1,this.o.Da("onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){nH(this);this.A=b;this.va=toa.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);b!=this.B.fe()&&(this.K&&!CH(this.Y)&&(this.J||(this.J=new hG(Eoa)),c=Eu(b),c=(c?c+"\n":"")+Q("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:Uf()}),this.P.element.appendChild(this.J.element),c=new pG(0,0,0,this.J.L.id,c),
lG(this.J,this.C,CF(this.ca).height,[c]),this.la.we()),this.o.Da("captionschanged",Fu(b)),(this.Y.experiments.ga("cc_sticky_behavior")||this.K||CH(this.Y))&&Cq(this,"module-enabled",!0),vH(this.o))}this.L||qH(this);this.gb(a.A.concat(a.o))};
f.Yb=function(a){this.$.push(a);this.ia.we()};
f.jc=function(a){qb(this.$,a);this.ia.we()};
f.iD=function(a){if(this.A)if(a instanceof qG){var b=this.O[a.id];b&&b.getType()!=rG(a)&&(b.dispose(),delete this.O[a.id],b=null);if(!b){var b=this.O,c=a.id,d;a:switch(rG(a)){case 1:d=new cH(a);break a;case 2:d=new dH(a);break a;default:d=new hG(a)}b=b[c]=d;b=b.element;M(b,"captions-asr","asr"==this.A.B);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.va?1:0);this.P.element.appendChild(b)}}else b=a.C,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};
f.sq=function(){jH(this);this.L&&pH(this)};
f.qD=function(){Jq(this.J);this.J.dispose();this.J=null};
f.Km=function(){this.ia.stop();if(this.L){bc(this.U);this.$.sort(uq);F(this.$,this.iD,this);var a=CF(this.ca).height;Ob(this.O,function(b,c){!this.U[c]||this.H?(b.dispose(),delete this.O[c]):lG(b,this.C,a,this.U[c])},this)}};
var AH={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};f=iH.prototype;
f.nd=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.C.fontSizeIncrement=Math.max(-2,Math.min(4,b)),pH(this)),this.C.fontSizeIncrement;case "reload":b&&oH(this);break;case "stickyLoading":void 0!=b&&this.Y.Ya&&Cq(this,"module-enabled",!!b);break;case "track":if(b){if(jH(this))break;if(!ia(b))break;if(ac(b)){wH(this);break}for(var c,d=OG(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?Gu(h,b.translationLanguage):
h)}c&&rH(this,c,!0)}else return this.A&&this.A!=this.B.fe()?Fu(this.A):{};return"";case "tracklist":return this.fa?ji(OG(this.B.o,b&&b.includeAsr),function(a){return Fu(a)}):[];
case "translationLanguages":return this.fa?this.B.D:[];case "displaySettings":return b&&ia(b)&&DH(this,b),c=ec(this.C),c.fontFamilyOption=g8[c.fontFamily],c.charEdgeStyle=h8[c.charEdgeStyle],c;case "sampleSubtitles":jH(this)||void 0==b||(zH(this,!!b),pH(this));break;case "xmlTrack":b&&this.Y.Ya&&(nH(this),jH(this)||(c=new MG(b.xml),this.A=new Du({languageName:b.name}),this.Yq(c,this.A)))}};
f.jf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.Y.Ya&&a.push("stickyLoading","xmlTrack");return a};
f.Fk=function(a,b){return a&&w(a)&&wG.test(a)?a:b};
f.$l=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
f.Ew=function(a,b){if(a&&w(a)){var c=h8.indexOf(a);return-1!=c?c:b}return b};
f.lx=function(a,b){if(a&&w(a)){var c=g8.indexOf(a);return-1!=c?c:b}return b};
f.mx=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};
var BH=null;f=iH.prototype;f.Xa=function(a){if("lb3"==a.W().o)return!1;a=a.getVideoData();var b;if(b=a.Ga)b=a.o,b=!(!b||null==b.o.en);return!!(a.ki||a.captionTracks.length||b)};
f.cj=function(a){a?nH(this):this.loaded&&(this.unload(),this.load())};
f.xF=function(){this.B.seek(this.o.getCurrentTime())};
f.Ih=function(){var a=this.A;return a?{cc:a.G}:null};
f.cA=function(){this.D.captionTracks.length&&(this.loaded?oH(this):mH(this)&&this.load())};FH.prototype.destroy=function(){null!=this.A&&(this.A.canvas.remove?this.A.canvas.remove():this.A.canvas.removeNode(!0),this.A=null)};f=JH.prototype;f.al=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.Vk=function(){return this.o};
f.jd=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
f.Qs=function(){};
f.vn=function(a){this.H&&(360>=Wr[a]?this.F(!0):this.F(!1))};
f.$c=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,IH(this.D,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.kr=function(){return!0};
f.kf=function(){return{shader:"NoOp"}};
f.Jh=function(){};
f.destroy=function(){this.D&&this.D.destroy()};B(KH,JH);KH.prototype.jd=function(a,b,c){KH.N.jd.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)};
KH.prototype.$c=function(a,b,c){this.B&&(a.uniform1i(this.C,this.A),this.B=!1);KH.N.$c.call(this,a,b,c)};
KH.prototype.kf=function(){return{shader:"Anaglyph3D",displayMode:this.A}};
KH.prototype.Jh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.A=(0,window.parseInt)(a.displayMode,10),this.B=!0),this.G())};B(OH,JH);
OH.prototype.jd=function(a,b,c){OH.N.jd.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.da.getVideoData())&&a.B&&this.vn(a.B.video.quality)};
OH.prototype.$c=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());OH.N.$c.call(this,a,b,c)};
OH.prototype.kf=function(){return{shader:"WhiteNoise"}};B(PH,OH);PH.prototype.jd=function(a,b,c){PH.N.jd.call(this,a,b,c);this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,1)};
PH.prototype.$c=function(a,b,c){this.G&&(a.uniform1i(this.A,1),this.G=!1);PH.N.$c.call(this,a,b,c)};
PH.prototype.kf=function(){return{shader:"EdgeEnhance"}};QH.prototype.BYTES_PER_ELEMENT=4;QH.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]};
QH.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(QH.BYTES_PER_ELEMENT=4,QH.prototype.BYTES_PER_ELEMENT=QH.prototype.BYTES_PER_ELEMENT,QH.prototype.set=QH.prototype.set,QH.prototype.toString=QH.prototype.toString,q("Float32Array",QH,void 0));RH.prototype.BYTES_PER_ELEMENT=8;RH.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]};
RH.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{RH.BYTES_PER_ELEMENT=8}catch(a){}RH.prototype.BYTES_PER_ELEMENT=RH.prototype.BYTES_PER_ELEMENT;RH.prototype.set=RH.prototype.set;RH.prototype.toString=RH.prototype.toString;q("Float64Array",RH,void 0)};TH.prototype.identity=function(){this.o.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
TH.prototype.get=function(){return this.o};var XH=null,aI=null,WH=null;f=eI.prototype;f.al=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n gl_Position = vec4(aVertPos.xyz, 1.0);\n pos = aVertPos;\n}"};
f.Vk=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.jd=function(a,b){this.La=a.getUniformLocation(b,"uVMat");this.$=a.getUniformLocation(b,"uFOVx");this.ca=a.getUniformLocation(b,"uFOVy");this.fa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.fa,0)};
f.Qs=function(){this.H=!0};
f.vn=v;
f.$c=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.$,this.o);a.uniform1f(this.ca,this.A);this.D=le(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]);UH(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]);UH(e,e.B);a.uniformMatrix4fv(this.La,
!1,this.B.get());this.H=!1}e=K();if(this.ea){this.G[0]=-this.B.get()[8];this.G[1]=-this.B.get()[9];this.G[2]=-this.B.get()[10];var k=this.ea,h=this.G,m=this.F.getCurrentTime(),l=e/1E3,p=this.F.getPlayerState(),t=null,u,x,A;1==p?(u=k.B,A=k.H,x=m):(u=k.G,A=k.F,x=l);var C=0!=k.o.length;if(C){var H=150<=k.o.length;if(k.C!=p||.5<x-A||x<A||H){t=null;if(5<=k.o.length){for(var t=k.o,C=Array(2*t.length),z=H=0,N=0;N<t.length;++N)C[N]=t[N].x-H&255,C[N+t.length]=t[N].y-z&255,H=t[N].x,z=t[N].y;H=cI(C);t=k.B;C=
1==k.C?k.A:0;H=YH(H,!0);z="";for(N=H.length-1;0<=N&&"."==H.charAt(N);--N)z+="=";H=H.substring(0,H.length-z.length)+z;t={start:t,duration:C,data:H}}k.o=[];k.A=0;C=!1}}if(1==p||2==p||3==p){if(C)for(u=u+k.A+.2;u<x;){H=(u-A)/(x-A);k.A+=.2;var C=k.D,z=h,N=H,H=new window.Float32Array(3),Ma=SH(C),ta=SH(z),Ka=(C[0]*z[0]+C[1]*z[1]+C[2]*z[2])/(Ma*ta);if(.999999<Ka)Ma=C[0],ta=C[1],C=C[2],H[0]=(z[0]-Ma)*N+Ma,H[1]=(z[1]-ta)*N+ta,H[2]=(z[2]-C)*N+C;else{var pb=0,nd=0;-.999999>Ka?(Ka=new window.Float32Array(3),pb=
(Ma+ta)/2,C[0]?(pb/=Math.sqrt(C[0]*C[0]+C[1]+C[1]),Ka[0]=-C[1]*pb,Ka[1]=C[0]*pb,Ka[2]=0):(pb/=Math.sqrt(C[2]*C[2]+C[1]+C[1]),Ka[0]=0,Ka[1]=-C[2]*pb,Ka[2]=C[1]*pb),.5>=N?(ta=Ma,z=Ka,N*=2):(C=Ka,N=2*N-1),pb=Math.PI/2,nd=1):(pb=Math.acos(Ka),nd=Math.sqrt(1-Ka*Ka));Ka=Math.sin((1-N)*pb)/nd/Ma;pb=Math.sin(N*pb)/nd/ta;N=(1-N)*Ma+N*ta;H[0]=(C[0]*Ka+z[0]*pb)*N;H[1]=(C[1]*Ka+z[1]*pb)*N;H[2]=(C[2]*Ka+z[2]*pb)*N}C=H;k.o.push(bI(C));u+=.2}else k.B=m,k.G=l,k.o.push(bI(h)),k.A=0;k.D=h;k.H=m;k.F=l;k.C=p}k=t;k&&
(h=wq(this.F.app))&&h.B&&(h=h.B.A,m=k.start,l=k.duration,k=k.data,DB(h,OB(h.o),"dir",[m.toFixed(3),l.toFixed(3),k]))}(this.Z!=this.o||this.X!=this.A)&&3E4<e-this.U&&c==this.o&&d==this.A&&(this.Z=this.o,this.X=this.A,this.U=e,(c=wq(this.F.app))&&c.B&&(c=c.B.A,d=Math.round(360*this.o/Math.PI),e=Math.round(360*this.A/Math.PI),DB(c,OB(c.o),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,IH(this.L,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.kr=function(){return!1};
f.kf=function(){return{shader:"Spherical",yaw:this.K,pitch:this.D,fov:this.C}};
f.Jh=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=le(a.fov,.32,1.05)),this.H=!0,this.O()};
f.destroy=function(){this.L&&this.L.destroy()};B(fI,eI);f=fI.prototype;f.al=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n gl_Position = vec4(aVertPos.xyz, 1.0);\n pos = aVertPos;\n}"};
f.Vk=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.jd=function(a,b,c){fI.N.jd.call(this,a,b,c);this.P=a.getUniformLocation(b,"mode");a.uniform1i(this.P,this.J)};
f.$c=function(a,b,c,d){this.M&&(a.uniform1i(this.P,this.J),this.M=!1);fI.N.$c.call(this,a,b,c,d)};
f.kf=function(){var a=fI.N.kf.call(this);a.shader="Spherical3D";a.displayMode=this.J;return a};
f.Jh=function(a){void 0!=a.displayMode&&(this.J=(0,window.parseInt)(a.displayMode,10),this.M=!0,this.O());fI.N.Jh.call(this,a)};var OI=window,GI=window.document,mI=OI.location,kI=/\[native code\]/,LI=hI(OI,"gapi",{});var nI;nI=hI(OI,"___jsl",lI());hI(nI,"I",0);hI(nI,"hel",10);var tI=hI(nI,"perf",lI());hI(tI,"g",lI());var sI=hI(tI,"i",lI());hI(tI,"r",[]);lI();lI();var wI=lI(),JI=[];JI.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?nI[b]=hI(nI,b,[]).concat(c):hI(nI,b,c)}if(b=a.u)a=hI(nI,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var baa=/^(\/[a-zA-Z0-9_\-]+)+$/,daa=/^[a-zA-Z0-9\-_\.,!]+$/,CI=/^gapi\.loaded_[0-9]+$/,caa=/^[a-zA-Z0-9,._-]+$/,zI=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,yI=/\/cb=/g,xI=/\/\//g;wI.m=function(a,b,c,d){(a=a[0])||vI("missing_hint");return"https://apis.google.com"+aaa(a,b,c,d)};var II=(0,window.decodeURI)("%73cript");LI.load=function(a,b){return KI(function(){return NI(a,b)})};B(PI,Lj);PI.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
PI.prototype.get=function(a){return this.o[a]||null};
PI.prototype.isEmpty=function(){return ac(this.o)};B(RI,J);RI.prototype.G=function(a,b){this.o.paused||this.getCurrentTime()>a||10<b||(this.play(),vi(y(this.G,this,this.getCurrentTime(),b+1),500))};
RI.prototype.addEventListener=function(a,b,c,d){RI.N.addEventListener.call(this,a,b,c,d);this.B[a]||(b=y(this.yG,this),this.o.addEventListener(a,b),this.B[a]=b)};
RI.prototype.F=function(){this.D&&!this.o.muted&&(this.o.muted=!0)};
RI.prototype.V=function(){this.C&&this.removeEventListener("volumechange",this.F);RI.N.V.call(this)};B(bJ,RI);f=bJ.prototype;f.ma=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 $q(this.o,a)};
f.setSize=function(a){return kr(this.o,a)};
f.setVolume=function(a){this.o.volume=a};
f.yG=function(a){this.aa(new iaa(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 Wq(this.o,a)};
f.V=function(){for(var a in this.B)this.o.removeEventListener(a,this.B[a]);bJ.N.V.call(this)};var hJ=null;var maa={BM:"red",WHITE:"white",OI:"blue"};kJ.prototype.ga=function(a){return"true"==this.flags[a]};
kJ.prototype.Sb=function(a){return(0,window.parseFloat)(this.flags[a])};
kJ.prototype.D=function(a){return this.flags[a]?this.flags[a].toString():""};var uJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},vJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},mJ="blogger books docs google-live play picasaweb".split(" ");B(sJ,G);var wJ={RI:"cbrand",SI:"cbr",TI:"cbrver",GK:"c",JK:"cver",IK:"ctheme",HK:"cplayer",hL:"cmodel",OL:"cnetwork",YL:"cos",ZL:"cosver",dM:"cplatform"};f=sJ.prototype;f.Ba="detailpage";f.Xf=!1;f.Rl=!1;f.Ql=!1;f.Be=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"==zJ(this)?c="https://youtu.be/"+a:(c=this.fa+"://"+zJ(this)+"/watch",b.v=a,(a=jJ())&&(b.ebc=a));return hf(c,b)};
f.V=function(){this.Be=null;sJ.N.V.call(this)};DJ.prototype.M=function(){this.L=!1;if(this.B&&(this.C.videoWidth||this.C.videoHeight)){if(0==this.K){var a=CF(DF(this.da));if(!ye(this.F,a)){this.F=a;var b,c,d,a=DF(this.da).Ma();this.o.kr()?("Anaglyph3D"!=this.Z?b=!1:(b=GH(DF(this.da)),c=this.da.getVideoData(),b=(0,window.isNaN)(b)||c.ad("yt:stretch")||c.ad("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 we(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.Qs()}}this.o.$c(this.B,this.C,this.P,this.X)}this.D&&this.H()};
DJ.prototype.$=function(a){this.J!=a&&this.A&&((this.J=a)?(this.G.appendChild(this.A),this.H(),EH||(this.C.style.display="none")):(dh(this.A),this.C.style.display=""))};
DJ.prototype.H=function(){!this.L&&this.J&&((0,window.requestAnimationFrame)(this.M.bind(this)),this.L=!0)};B(FJ,vq);FJ.A=function(a){return FJ.Xa(a)?new FJ(a):null};
FJ.prototype.Xa=function(){return FJ.Xa(this.o)};
FJ.o=function(a){var b=a.W().A.c.toLowerCase(),c=a.getVideoData();a=a.W().experiments;if(NH(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Dl&&!LH||EH&&!fq()&&wc(11)||MH&&!LH&&wc(38)||Ac&&!LH&&wc(27))a:{if(c.o&&3!=c.ca)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")||Dl&&!LH||MH&&!LH&&wc(38)||Ac&&!LH&&wc(27)||EH&&!fq()&&wc(11))&&c.o&&ay(c)?"Spherical3D":a.H&&"web"==b&&Dl&&!LH?"NoOp":(a.O||a.ga("white_noise_with_interval"))&&
"web"==b&&Dl&&!LH?"WhiteNoise":a.C&&"web"==b&&Dl&&!LH?"EdgeEnhance":null}return b};
FJ.Xa=function(a){return a.W().F?null!=FJ.o(a):!1};
f=FJ.prototype;f.zF=function(){var a=this.A;a.D||(0,window.requestAnimationFrame)(a.M.bind(a))};
f.LB=function(a){var b=this.A;b.o&&b.o.vn(a)};
f.yF=function(a){var b=this.A,c=b.D;b.D=T(a.state,8);b.D&&!c&&b.H()};
f.V=function(){FJ.N.V.call(this)};
f.create=function(){var a=FJ.o(this.da);this.A=new DJ(this.da,a,this.D.element,this);a:{a=this.A;a.o=null;var b=a.$.bind(a),c=y(a.H,a);switch(a.Z){case "Anaglyph3D":a.o=new KH(a.da,c);break;case "Spherical":a.o=new eI(a.da,c);break;case "WhiteNoise":a.o=new OH(a.da,b);break;case "EdgeEnhance":a.o=new PH(a.da,b);break;case "NoOp":a.o=new JH(a.da,!0,b);break;case "Spherical3D":a.o=new fI(a.da,c)}if(a.o){a.K=paa(a);if(0==a.K){a.J&&!EH&&(a.C.style.display="none");a=!0;break a}a.da.app.A.Mj(new gw("html5.missingapi.webgl",
!1));EJ(a)}a=!1}if(this.B=a)this.C.T(this.o,"resize",this.zF),this.C.T(this.o,"onPlaybackQualityChange",this.LB),this.C.T(this.o,"presentingplayerstatechange",this.yF);FJ.N.create.call(this)};
f.destroy=function(){Fr(this.C);EJ(this.A);this.B=!1;FJ.N.destroy.call(this);this.A=null};B(GJ,Oq);GJ.prototype.D=function(){this.ka();this.S("close-clicked")};
GJ.prototype.ka=function(){this.A.stop();L(this.element,"ytp-drawer-closed")};
GJ.prototype.Jb=function(a){a?(GJ.N.Jb.call(this,a),Lq(this.element,"block")):Lq(this.element,"none")};
GJ.prototype.show=function(){this.A.start()};B(HJ,Lj);HJ.prototype.V=function(){HJ.N.V.call(this);this.C||dh(this.D)};
HJ.prototype.o=function(a){this.C||(this.A.o(a),this.A.Jb(this.B.element),a.appendChild(this.D))};
HJ.prototype.F=function(){this.S("ypcModuleCloseClicked")};
HJ.prototype.G=function(){this.S("ypcContentRequest")};B(JJ,vq);f=JJ.prototype;f.Xa=function(){return Wx(this.o.getVideoData(),"ypc_module")};
f.create=function(){JJ.N.create.call(this);this.A=new qaa(this.o.getVideoData());vi(y(this.AF,this),0);this.C=new R(["div",["ytp-player-content","ytp-ypc-player-content"]]);Br(this.o,this.C.element,4)};
f.destroy=function(){JJ.N.destroy.call(this);this.A=null;this.C&&(Jq(this.C),this.C.dispose(),this.C=null)};
f.AF=function(){this.F&&!this.loaded&&this.load()};
f.load=function(){JJ.N.load.call(this);var a=this.o.W(),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=rx.B,d=0;d<c.length;d++){var e=c[d];b.C.hasOwnProperty(e)&&(a[e]=b.C[e])}this.o.Uj(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&&taa(this,a,b),!this.A.videoId&&this.B?IJ(this.B):b.ypcPreview?(this.o.Da("ypcStateChanged",
!0),zq(this)):this.B||zq(this)};
f.unload=function(){yq(this);(0,window.isNaN)(this.H)||xi(this.H);Nb(this.D,this.B);this.B=this.D=null;JJ.N.unload.call(this);this.o.Da("ypcStateChanged",!1)};
f.Yb=function(a){JJ.N.Yb.call(this,a);IJ(this.B)};
f.jc=function(a){JJ.N.jc.call(this,a);a=this.B;a.C||(Lq(a.D,"none"),a.A.Jb(a.B.element))};
f.DA=function(){this.A.o?"embedded"==this.o.W().Ba?zy(this.A.o):wy(this.A.o):this.A.offerId&&(this.o.Oa()&&Dy(this.o),this.o.Da("onYpcContentRequest",this.A.offerId))};
f.rB=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};NJ.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)};
NJ.prototype.Na=function(){var a=[];this.forEach(y(a.push,a));return a};eK.prototype.start=function(){this.A=!0};
eK.prototype.reset=function(){this.o=this.A=!1};fK.prototype.O=function(a){if(4==a.info.type){var b=a.info.o.rr(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)};
fK.prototype.Z=function(a){a.dispose();this.F-=gK(a)};var Haa=0;f=NK.prototype;f.lD=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.F?(this.J=a.headers,this.G=new window.Uint8Array(OK(this)),QK(this)):this.C.cancel("Cancelling")):this.Wj()};
f.oA=function(a){if(this.F)if(K(),a.done)this.C=null,this.Wj();else{a=a.value;this.D+=a.length;var b=a.length>=Math.max(OK(this)/2,16384),c=a.length+this.o>OK(this);(b||c)&&0!==this.o&&PK(this);b?this.B.push(a):(this.G.set(a,this.o),this.o+=a.length);this.F({timeStamp:K(),loaded:this.D});QK(this)}};
f.Wj=function(){this.F&&(this.H=!0,this.K())};
f.Gh=function(a){return this.J.get(a)};
f.Rk=function(){return this.D};
f.xg=function(){return+this.Gh("content-length")};
f.$o=function(){return 200<=this.status&&300>this.status&&!!this.D};
f.Pp=function(){return!!this.B.length||this.H&&0<this.o};
f.Lr=function(){this.B.length||PK(this);return this.B.shift()};
f.Ds=function(){this.B.length||PK(this);return this.B[0]};
f.Cs=function(){this.C&&this.C.cancel("Cancelling");this.K=this.F=null};f=RK.prototype;f.rF=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.sF=function(a){this.B||(this.status=this.o.status,this.F(a))};
f.Gh=function(a){try{return this.o.getResponseHeader(a)}catch(b){return zi(b),""}};
f.xg=function(){return+this.Gh("content-length")};
f.Rk=function(){return this.A.byteLength};
f.$o=function(){return 200<=this.status&&300>this.status&&!!this.A};
f.Pp=function(){return this.C&&!!this.A};
f.Lr=function(){var a=this.A;this.A=null;return new window.Uint8Array(a)};
f.Ds=function(){return new window.Uint8Array(this.A)};
f.Cs=function(){this.B=!0;this.o.abort()};SK.B=!1;SK.A=1E4;SK.o=2048;f=SK.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&&UK(this);VK(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=n$-1,ys(c)),this.G=0;else if(c){this.G++;b=1E4*(.5+Math.random());1==this.G&&(b=2E3);vi(y(this.tn,this,a),b);return}b?this.tn(a):vi(y(this.tn,this,a),0)};
f.tn=function(a){if(!this.isDisposed()){this.K=n$++;if(this.o){var b=this.info,c=this.o.A,d=this.o.length;this.J=b.range?new hs(b.range.start+c,b.range.end):js(c,d);this.B=Is(this.info,this.J)}else this.J=this.info.range,this.B=Is(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.XC,this),h=y(this.ZC,
this),k=y(this.YC,this);this.A=(this.C.fa||this.C.La&&5>this.O)&&"function"==typeof window.fetch&&window.ReadableByteStream&&Iaa(this)&&this.info.range?new NK(a,h,k,e):new RK(a,h,k,e)}catch(m){this.H="net.ssl",VK(this,6)}0<this.C.G&&(this.F=vi(y(this.qr,this),this.C.G));this.B.get("itag");this.B.get("range");K()}};
f.ZC=function(){this.M=0;var a=this.timing;this.B&&as(this.B.o);a.o=K();a.F=a.o;a.B=0;a.L=!1;a.J=!1;a.D=0;a.H=MN(a.A);dL(a);a.M=a.G-a.o};
f.YC=function(a){if(!this.isDisposed()){this.D=this.A.status;ZK(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:K();50>c-b.F||bL(b,c,a);b=this.timing;b.B>b.P&&b.B>b.A.o.o&&3>this.state&&VK(this,3)}};
f.XC=function(){var a=this.A;if(!this.isDisposed()){this.F&&(xi(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.$o()){var c="";YK(this)&&(c=a.Ds(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=cs.test(c)?c:""));if(c){var a=this.info.B,d=this.B;d.o===a.o&&(a.o=ws(d,c));VK(this,4)}else{var c=a.xg(),a=a.Rk(),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?(ZK(this,!0),c=this.timing,d=K(),c.L||(c.L=
!0,d=d>c.o&&4E12>d?d:K(),bL(c,d,a),e=(d-c.o)/1E3,!c.J&&cL(c)&&$K(c.A,e,a),cL(c)&&LN(c.A,a,c.D),KN(c.A,(d-c.o)/1E3,c.B),c.C&&(c.C=!1)),K(),VK(this,5)):(b=!0,this.H="net.closed")}}else b=!0,this.H="net.connect";b&&(UK(this),VK(this,6),K())}};
f.qr=function(){this.F=window.NaN;if(!(this.isDisposed()||this.C.Pa&&this.A&&cL(this.timing)&&"quic"==this.A.Gh("client-protocol"))){var a=K(),b=!1;if(cL(this.timing)){var c=this.timing.G;dL(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.o+1E3*b.H.delay);b?(b=this.timing,a=a>b.o&&4E12>a?a:K(),c=(a-b.o)/1E3,cL(b)?(b.D+=(a-b.F)/1E3,LN(b.A,b.K,b.D)):aL(b.A,c),KN(b.A,c,b.B),WK(this),this.H="net.timeout",VK(this,6)):this.F=vi(y(this.qr,this),this.C.G)}};
f.isDisposed=function(){return-1==this.state};
f.dispose=function(){Cs(this.info.o[0])&&5!=this.state&&(this.info.o[0].o.B=!1);VK(this,-1);this.P=null;WK(this);xi(this.F);this.F=window.NaN};B(eL,Lj);eL.H=!1;eL.o=2/24;eL.D=1E3;eL.C=.2;eL.A=1E4;eL.G=1800;eL.F=25;eL.B="Not enough storage";f=eL.prototype;f.initialize=function(a,b,c,d){a=a||0;var e=this.G;d=d&&d.id;e.D="i";"auto"!=KJ()&&(e.D="s");VJ(e,b);Aaa(e,d);e.L=e.C;Baa(e);e.B=e.G;b=cK(e);this.A=new fK(this.C,b.audio);this.B=new fK(this.C,b.video);this.S("videoformatchange",b);this.F=a;c?(this.K=!0,sL(this)):hL(this)};
f.resume=function(){this.K&&(this.K=!1)};
f.ww=function(a){this.A.L=!1;this.B.L=!1;this.resume();this.o=a;Aw(a)&&(a.o.addEventListener("updateend",y(this.Ec,this),!1),a.A.addEventListener("updateend",y(this.Ec,this),!1),a.o.addEventListener("error",y(this.aj,this,!0),!1),a.A.addEventListener("error",y(this.aj,this,!1),!1));gL(this,"msa");Yv.measure&&Yv.getEntriesByName("vta").length&&Yv.measure("measure_vta_to_msa","vta");this.U&&this.P&&ov();this.Ec();this.ia=wi(y(this.Ec,this),1E4)};
f.bC=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?gL(this,"vrr"):d&&gL(this,"arr"),a.start(e);else if(5==a.state)c?(this.U=a.getUrl(),pv()):d&&(this.P=a.getUrl()),this.D.A&&(b=b.info.video?this.B:this.A,b.K=!1),Kaa(this,a)?(Laa(this,a),this.Ec()):this.kd(!0,"fmt.unparseable",TK(a));else if(3==a.state)this.Ec(),c&&pv();else if(6==a.state&&UK(a)){if(this.kd(!1,a.getErrorCode(),TK(a)),
!this.isDisposed()){if(c=b.info.video&&(0<a.G||410==a.D||500==a.D||503==a.D)&&90&&!$J(this.G)){var d=this.G,h=b.info;$J(d);d.Z=h;d.P=Qt();d.M=-1;VJ(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.Z(b.D.pop());3==a.info.o[0].type?(a.o&&a.o.C?(a=a.o.C,a=new As(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 As(a.type,a.o,a.range,a.C,a.startTime,0,
a.B,0,!1)),b.A=a):b.A=null}this.Ec()}else a.start(e)}}else Cs(a.info.o[0])?(b.D=!0,this.Ec()):this.kd(!0,"net.retryexhausted",TK(a))}};
f.Ec=function(){this.ha=window.NaN;kL(this);if(this.o&&ww(this.o)&&!yw(this.o))if(this.D.isLive)(0,window.isNaN)(this.J)?(this.J=this.F+3600,this.o.gg(this.J)):this.J<=this.F+1800&&(this.J+=1800,this.o.gg(this.J));else{var a=Math.max(this.A.B.index.wg(),this.B.B.index.wg());(!(0,window.isFinite)(this.J)||this.J!=a)&&0<a&&(this.o.gg(a),this.J=a)}if(!this.isDisposed())if(a=this.D,a.isLive&&Qt()-a.G>=a.D)3==this.D.F?this.kd(!0,"manifest.net.retryexhausted",{rc:this.D.H.toString()}):(this.D.M(),sL(this));
else{if(this.C.Z&&Qt()-this.D.K>=1E3*this.C.Z&&(this.o&&!xw(this.o)?Math.min(cz(this.o.A.buffered,this.F),cz(this.o.o.buffered,this.F)):0)>=this.C.na){var a=this.D,b=a.o,c;for(c in b)ys(b[c].F);a.K=Qt()}this.D.isLive&&(LK(this.B)||LK(this.A))&&(c=xL(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?sL(this):(kL(this),tK(this.B),tK(this.A),this.D.A&&(MK(this.B),MK(this.A)),this.A.B.B||(!this.K||NN(this.H)?hL(this):sL(this)),!this.o||lL(this,this.A,this.o.o)||
lL(this,this.B,this.o.A)||((c=wL(this,this.B,this.o.A,null,this.A.G))&&!this.$&&(this.$=K(),gL(this,"vda"),this.X&&pv()),a=az(this.o.A.buffered,this.F+eL.o),(0,window.isNaN)(a)&&!BK(this.B)&&this.o.o.buffered.length||(BK(this.B)&&(a=window.NaN),a=wL(this,this.A,this.o.o,a,null),c|=a,a&&!this.X&&(this.X=K(),gL(this,"ada"),this.$&&pv())),BK(this.B)&&BK(this.A)&&ww(this.o)&&!yw(this.o)&&(a=this.o,ww(a)&&a.B.endOfStream(),JN(this.H)),c&&!Aw(this.o)&&rL(this)),this.C.ha||(zL(this,this.B,XJ(this.G)),zL(this,
this.A,YJ(this.G))),this.B.B.D||this.A.B.D?this.kd(!0,"net.retryexhausted"):(nL(this,this.B,this.A)&&qL(this,this.B,this.A),nL(this,this.A,this.B)&&qL(this,this.A,this.B),this.C.Wa&&this.O&&!this.K&&NN(this.H)&&(c=this.O,this.O="",a=Ze(c),tj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:y(this.kd,this,!1,"pathprobe.net",{shost:a})})),this.D.B&&sL(this)))}};
f.aj=function(a){a=(a=a?this.A:this.B)&&a.C;this.kd(!0,"fmt.unplayable",a?Fs(a):void 0)};
f.seek=function(a){if(!this.isDisposed()&&!this.B.K&&!this.A.K){kL(this);this.xa=Qt();this.B.B=XJ(this.G);var b=yL(this,this.B,a,this.o&&this.o.A);this.A.B=YJ(this.G);var c=yL(this,this.A,b,this.o&&this.o.o);this.F=Math.max(a,b,c);this.M=!0;rL(this)}};
f.V=function(){jL(this);this.A&&(DK(this.A),DK(this.B));yi(this.ia);this.B=this.A=null;eL.N.V.call(this)};
f.kd=function(a,b,c){this.isDisposed()||(this.S("error",new gw(b,a,c)),a&&(this.o&&ww(this.o)&&(a=this.o,ww(a)&&a.B.endOfStream("network")),this.dispose()))};B(BL,G);f=BL.prototype;f.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.J=c;this.A=d};
f.zG=function(a){this.G.call(this.A,new window.Uint8Array(a.message))};
f.cB=function(){};
f.mq=function(a,b){zi(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.F.call(this.A,c)};
f.Jq=function(a){this.G.call(this.A,a.message)};
f.Iq=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.Hq=function(){this.J.call(this.A)};
f.update=function(a){this.C?this.C.update(a).then(null,ui(y(this.mq,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.V=function(){this.D=null;BL.N.V.call(this)};B(CL,G);f=CL.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 BL(null,null,null,c,null);b.then(null,ui(y(c.mq,c,"t.g")));return c}if(ou(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 BL(null,null,null,null,b)}if(pu(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 BL(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 BL(this.A,this.o,b,null,null)};
f.CG=function(a){var b=FL(this,a);b&&b.Jq(a)};
f.BG=function(a){var b=FL(this,a);b&&b.Iq(a)};
f.AG=function(a){(a=FL(this,a))&&a.Hq()};
f.V=function(){this.A=null;CL.N.V.call(this)};GL.prototype.get=function(a){a=HL(this,a);return-1!=a?this.values[a]:null};
GL.prototype.remove=function(a){a=HL(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
GL.prototype.removeAll=function(){this.keys=[];this.values=[]};
GL.prototype.set=function(a,b){var c=HL(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};B(JL,G);f=JL.prototype;f.Es=function(a){this.G=a};
f.vF=function(a){if(!this.isDisposed()){this.F||(this.F=!0,this.o.S("newsession",this));if(ou(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($H(a.childNodes[0].data))}if(pu(this.A))for(b=YH(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,
sb:this.gB,onError:this.xq,context:this};b=this.H;this.G&&(b=of(b,"access_token",this.G));tj(b,a)}};
f.tF=function(){this.isDisposed()||this.D||(this.o.S("sessionready"),this.D=!0)};
f.gB=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=Xs(b.slice(c+2)),a=null==b?null:new Oaa(e,b,a.subarray(d+4))));a?0!=a.o?KL(this,"drm.auth","t.f;c."+a.o,Xy(a.o)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,b=null,(c=a.headers["Heartbeat-Url"])&&
(b=new Naa(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),pu(this.A)&&(a.message=new window.Uint8Array($H(String.fromCharCode.apply(null,a.message)))),this.B.update(a.message)):KL(this,"drm.net","t.p","YTP_ERROR_SERVER_ERROR")}else this.xq(a)};
f.uF=function(a){this.isDisposed()||KL(this,"drm.keyerror","t.s"+a)};
f.xq=function(a){KL(this,"drm.net","t.r;c."+a.status)};
f.V=function(){this.o=null;JL.N.V.call(this)};B(NL,Lj);f=NL.prototype;f.PA=function(a){a=new LL(new window.Uint8Array(a.initData),a.initDataType);PL(this,a,!0)};
f.xB=function(a){PL(this,new LL(a.initData,a.contentType),!0)};
f.pB=function(){this.isDisposed()||(this.F=!0,this.A.length&&OL(this,this.A[0]))};
f.aA=function(a){if(!this.isDisposed()){zi(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.zB=function(a,b){a&&jb(a,"HD")&&!Ku(this.D)&&!ou(this.o)&&(this.D=Lu,this.S("qualitychange"));b&&!this.P&&(this.P=b,this.S("heartbeatparams",b))};
f.AB=function(){this.isDisposed()||(this.A.shift(),this.A.length&&OL(this,this.A[0]))};
f.jC=function(){if(ou(this.o)&&(this.M--,0==this.M)){var a=this.B;a.A.msSetMediaKeys(a.C)}};
f.V=function(){this.o.A&&this.G.setMediaKeys(null);this.G=null;this.A=[];F(this.C.values,function(a){a.dispose()});
this.C.removeAll();NL.N.V.call(this)};QL.prototype.D=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
QL.prototype.F=function(a){return"r3a="+Math.floor(this.o.lengthSeconds%Ya(a.c3a))};
QL.prototype.C=function(a){a=Ya(a.c);var b;b=r("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};YL.prototype.isEmpty=function(){return this.endTime==this.startTime};B(aM,Lj);aM.o=1;aM.A=10;aM.B=5;aM.C=5;f=aM.prototype;f.V=function(){xi(this.U);yi(this.Ia);cM(this);pM(this);bM(this);sM(this);Nb(this.ea,this.o);this.P=null;this.va=!1};
f.qh=function(a,b){this.$.length=0;this.fa.reset();this.O.reset();this.M=this.ia=window.NaN;this.ca=null;this.cb=!1;this.A&&ZI(this.A);vM(this);cM(this);pM(this);bM(this);Mb(this.o);if(2==this.J||lJ.test(this.Y.H))a.Rp=!0;this.Y.Xf&&(a.autonavState=this.o.autonavState);this.o=a;this.o.subscribe("dataupdated",this.KC,this);this.o.subscribe("dataloaded",this.yo,this);this.o.subscribe("dataloaderror",this.Mj,this);this.o.subscribe("onStatusFail",this.JC,this);if(a.Bf&&a.Bf>a.startSeconds){var c=a.Bf;
this.P&&(this.F.zh(this.P),this.P=null);this.P=new qq(1E3*c,0x7ffffffffffff);tq(this.P).subscribe("onEnter",this.hg,this);this.F.gb([this.P])}cM(this);this.o.cf||(c=new Taa(this.o,this.Y,b,y(this.ug,this),y(this.getCurrentTime,this),y(this.rx,this),y(this.Ja.Ma,this.Ja),y(this.kn,this),y(this.Fx,this)),this.B=new NB(c));this.va=!1;JM(this,"newdata");hM(this,new gz)};
f.getVideoData=function(){return this.o};
f.W=function(){return this.Y};
f.yo=function(){if(Vx(this.o))Vx(this.o),this.fa.o=!0,4!=this.J&&(this.$=tb(this.o.J)),Ox(this.o,this.Y),Hx(this.o)&&(this.o.Ga&&(this.X=new uaa),this.o.A.o&&EM(this),DM(this,"i")),JM(this,"dataloaded"),this.O.A&&iM(this);else if(this.o.la){var a=this.o,b=this.Y.experiments;a.oe=!0;a.la=!1;cs.test(a.G)||zi(Error("DASH MPD Origin invalid: "+a.G),"WARNING");var c;if(b.F)c=a.G;else{c=a.G;var d=Ze(c);c=0>rx.C.indexOf(d)?Wp(c):Xp(c)}(d=b.Sb("html5_dash_mpd_version"))&&(c=hf(c,{mpd_version:d}));!a.isLowLatencyLiveStream&&
b.ga("html5_live_disable_dg_pacing")&&(c=hf(c,{pacing:0}));au(new Rt(c,b.ga("html5_live_nonzero_first_segment_start_time")),c).then(a.HA,a.GA,a);Rv("mrs")}else if(this.o.X)this.B&&(a=this.B.A,GB(a,"protected"),a.o.videoData.H?a.Hr():a.o.videoData.subscribe("dataloaded",a.Hr,a)),a=this.o,b=this.Y.G,c=this.Y.experiments,St(a.o),b=new wu(Uw(b,a.o),c),I(a,b),a.X=!1,a.oe=!0,a=y(a.pz,a),b.C=a,uu(b.G.ga("edge_nonprefixed_eme"))?Au(b):Bu(b);else if(!this.o.oe){a:switch(b=this.Y,a=this.o,c=this.Ja.Ma(),d=
XL(this.Y),a.O){case 38:b=a.videoId.indexOf(":");b=hf("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.rf});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=sJ.prototype.baseYtUrl&&(c=b.baseYtUrl);b=hf(c+"get_video_info",{docid:a.videoId,authuser:a.Bb,authkey:a.cb,eurl:b.$});break a;case 33:b=hf("//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.$,
ps:b.o,el:b.Ba,hl:b.Z,list:a.playlistId,agcid:a.qf,aqi:a.pf,sts:16873,lact:HB()};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.Va&&(e.cc_lang_pref=b.Va);b.ia&&2!=b.ia&&(e.cc_load_policy=b.ia);b.mute&&(e.mute=b.mute);a.sa&&2!=b.yd&&(e.iv_load_policy=a.sa);a.Si&&(e.itct=a.Si);a.Nc&&(e.autoplay="1");a.Ti&&(e.autonav="1");a.Ol&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ia&&(e.ytrcc=a.ia);
a.Tl&&(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.tg&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");b.la&&(e.content_v=b.la);a.Wf&&(e.livemonitor=1);b.Bb&&(e.authuser=b.Bb);b.pageId&&(e.pageid=b.pageId);b.X&&(e.ei=b.X);b.bc&&(e.ssl_stream="1");b.M&&(e.iframe="1");a.Lj&&(e.tst=a.Lj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.Ya&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);b.Ya&&a.Vl&&
(e.live_manifest_duration=a.Vl);b.Ya&&a.vb&&(e.cyc=a.vb);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=hf(b.baseYtUrl+"get_video_info",e)}a=this.o;c=this.Y.experiments.L;d=this.Y.experiments.o;e=!this.Y.experiments.ga("disable_gvi_cors");a.isDisposed()||(a.Qb=b,a.jb=!!c,a.Sd=!!d,a.yd=!!e,a.oe=!0,a.yr())}};
f.hg=function(a){this.pauseVideo();a=0==a?new gz:new gz(14);hM(this,a)};
f.logEvent=function(a,b){if(this.B){var c=this.B,d={};d.rt=OB(c.o).toFixed(3);qa(d,QB(c.o));var e=c.o.o,h=c.o.videoData,k=h.Ua||e.zd,k={ns:e.ha,html5:"1",el:e.Ba,ps:e.o,fexp:e.experiments.experimentIds.join(",")||void 0,feature:k||void 0,ctrl:h.fa||void 0,ytr:h.ea||void 0,list:h.playlistId,d:e.jb,f:e.Ka};if(e.experiments.ga("legacy_autoplay_flag")?e.L:h.Nc)k.autoplay="1";h.subscribed&&(k.subscribed=h.subscribed);qa(d,k);delete d.fexp;qa(d,a);d=lj(c.o.o.baseYtUrl+"player_204",d);UB(c,d,b)}};
f.qj=function(a){this.$=this.$.filter(function(b){return a!=b});
this.O.A&&iM(this)};
f.getPlayerState=function(){return this.C};
f.kn=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.bB=function(a){if(this.H){var b=this.H;if(ou(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),m=new window.Uint8Array(c.length+k.length);m.set(c);m.set(k,c.length);c=m}e+=h}}a=c;0!=a.length&&PL(b,new LL(a),!1)}}};
f.lB=function(a){oM(this,a.reason,a.video.info,a.audio.info);var b=Qx(this.o);b&&b.D(a.video);this.X&&(this.X.A=a.audio.index)};
f.kB=function(a){nM(this,a.reason,a.audio.info)};
f.Mj=function(a){if("fmt.unplayable"==a.errorCode&&this.A){var b=this.A.getErrorCode();a.details.merr=b?b.toString():"0"}Gx(this.o)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)Gx(this.o),this.o.ce&&!this.Za&&(this.Za=!0,this.S("signatureexpired"));else if(FM(a)&&this.o.A.A)a=this.o,a.A=a.A.A,zM(this),yM(this);else if(a.o)b=this.D?this.D.G.o:null,b=FM(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,eM(this,a.errorCode,b,hw(a));else if(this.B)this.B.onError(a.errorCode,
hw(a))};
f.pauseVideo=function(a){T(this.C,64)&&!a&&(T(this.C,8)?hM(this,pz(this.C)):hM(this,oz(this.C,8)));this.A&&(T(this.C,128)||(a?hM(this,nz(this.C,256)):hM(this,pz(this.C))),this.A.pause())};
f.ms=function(){if(!(0,window.isNaN)(this.M)&&this.A){var a=this.ug();!this.o.Ga&&this.M>=Math.floor(a)?(this.M=a,this.S("endseeking",this),this.pauseVideo(!0),this.hg()):(this.D&&this.D.seek(this.M),(!this.o.Ga||1<=this.A.o.readyState)&&VI(this.A,this.M))}this.ea&&(this.ea.dispose(),this.ea=null);T(this.C,32)&&(hM(this,nz(oz(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.Y.experiments.ga("new_ended_replay")?this.o.startSeconds||0:this.o.Jj||this.o.startSeconds||0);this.Y.experiments.ga("new_ended_replay")&&(a=le(a,Sx(this.o),GM(this,!1)));return a};
f.ug=function(){return this.o.lengthSeconds?this.o.lengthSeconds:GM(this,!1)?GM(this,!1):0};
f.rx=function(){var a=new Saa;if(this.la&&this.D){var b=this.la;a.B=b.F;a.F=b.G;a.o=Gy(b);b=this.D;b.o&&!xw(b.o)&&(a.A=cz(b.o.A.buffered,b.F),a.C=cz(b.o.o.buffered,b.F));a.o=SJ(b.L);Gy(b.H);QJ(b.H);PJ(b.H)}else this.A&&(a.A=jz(this.A));this.X&&vaa(this.X,a);return a};
f.KC=function(){if(this.H){var a=this.H,b=this.o.oauthToken;a.K=b;a.S("oauthtoken",b)}rM(this);JM(this)};
f.JC=function(a){eM(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
f.GE=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.Y.rf&&2==this.A.getErrorCode()){(0,window.setTimeout)(y(function(){this.A&&(this.o.cg&&this.A.load(),yM(this))},this),500);
if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":var d=this.A.o.duration;(!this.L||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.o.lengthSeconds!=d&&(this.o.lengthSeconds=d,JM(this));break;case "ratechange":this.D&&(this.D.L.B=Math.max(1,this.A.o.playbackRate));this.F.lg();break;case "loadedmetadata":this.o.startSeconds&&(0<(this.A.o.seekable||Yy()).length?this.Y.experiments.ga("new_ended_replay")?lM(this,this.o.startSeconds,!0):this.A.o.currentTime=this.o.startSeconds:(this.ia=
this.o.startSeconds,this.pauseVideo(!0)));case "loadstart":yi(this.Ia);this.Bk()||(this.Ia=wi(y(this.Bk,this),100));break;case "progress":Yaa(this);case "suspend":HM(this);this.S("onLoadProgress",this,Xaa(this));T(this.C,8)&&(this.ob?c=!0:this.vb&&((0,window.isNaN)(this.Va)||this.Va+1<this.A.getCurrentTime())&&(c=!0,this.Va=this.A.getCurrentTime()));break;case "seeked":LM(this);break;case "seeking":this.D&&this.D.seek(this.A.getCurrentTime());WL(this.Ea,this.A.getCurrentTime());break;case "playing":this.G.A("plev");
this.bb&&(this.bb=!1,wM(this)||lM(this,window.Infinity,!0));break;case "timeupdate":this.cb=!0;this.Bk();LM(this);HM(this);if(!this.A||this.A.o.src!=b)return;this.S("onVideoProgress",this,this.A.getCurrentTime());this.X&&this.K&&waa(this.X,this.A.getCurrentTime());break;case "waiting":if(0<(this.A.o.played||Yy()).length&&0==YI(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=lz(this.C,a,this.Ea,this.wb),hM(this,
a),c&&this.A.play())}};
f.Rz=function(a){a="available"==a.o.availability;a!=this.Ua&&(this.Ua=a,this.S("airplayavailabilitychange"))};
f.Sz=function(){var a=!!this.A.o.webkitCurrentPlaybackTargetIsWireless;a!=this.Pa&&(function(){this.Y.Ql=a}.apply(this),this.Pa=a)&&(Ox(this.o,this.Y),DM(this,"m"));
this.S("airplayactivechange")};
f.Bk=function(){var a=this.A;a&&this.cb&&!this.o.ce&&!Sv("vfp",this.G.o)&&2<=a.o.readyState&&!a.o.ended&&0<bz(YI(a))&&this.G.A("vfp");if((a=this.A)&&!this.o.ce&&0<a.o.duration&&(!Sv("pbp",this.G.o)&&a.o.paused&&2<=a.o.readyState&&0<bz(YI(a))&&this.G.A("pbp",void 0),0<a.getCurrentTime())){yi(this.Ia);xi(this.U);this.U=window.NaN;this.o.ce=!0;KM(this);if(this.B){a=this.B;if(!a.C){var b=RB(a,"playback");a.J=[10+a.o.videoData.Kj,10,10,40+a.o.videoData.jn-a.o.videoData.Kj,40];var c=a.B;yi(c.F);c.F=window.NaN;
c.F=wi(y(c.update,c),100);c.D=OB(c.A);c.C=uB(c.A);b.A=PB(a,!0);b.Ja=!0;b.send();a.o.videoData.$&&(b=a.o.o,c=a.o.videoData,b=hf(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.$,oid:c.ud,ptchn:c.sd,pltype:c.wd,content_v:b.la}),UB(a,b));a.o.videoData.enableCardio&&(a.pj("playback"),a.D||$B(a));a.o.videoData.ff||WB(a);a.C=!0;a=a.B;a.o=a.A.A();a.D=OB(a.A);.5<a.o-a.B&&(a.B=a.o)}vi(y(this.tm,this),4500)}this.S("playbackstarted");kv()&&
ov();return!0}return!1};
f.IA=function(){this.Ka&&(this.ha.za(this.Ka),delete this.Ka,XI(this.A))};
f.Rx=function(){if(this.A){var a=this.getCurrentTime();if(T(this.C,8)&&mz(this.Ea,a,Qt(),jz(this.A))){var b=this.ug();b&&1>Math.abs(b-a)?this.hg():hM(this,nz(this.C,1))}else T(this.C,4)&&rz(this.C)&&5<jz(this.A)&&hM(this,oz(this.C,1));HM(this)}};
f.Fx=function(){this.o.Ga||this.S("connectionissue")};
f.tD=function(){VI(this.A,this.A.getCurrentTime()+.1)};
f.yB=function(a){var b={};qa(b,this.Y.A);b.cpn=this.o.clientPlaybackNonce;this.o.L&&(b.vvt=this.o.L);this.Y.Bb&&(b.authuser=this.Y.Bb);this.Y.pageId&&(b.pageid=this.Y.pageId);hc(a.C,b);IL(a,a.H)};
f.eB=function(a,b,c){c=n(c)?c:"YTP_ERROR_LICENSE";b=b.substr(0,256);eM(this,a,c,b)};
f.fB=function(){DM(this,"r");JM(this)};
f.FE=function(a){this.S("heartbeatparams",a)};
f.yq=function(){if(!this.o.ce&&this.A){0<this.A.o.readyState&&5<=jz(this.A)&&(hM(this,nz(this.C,1)),this.S("playbackstalledatstart"));if(this.B)this.B.onError("qoe.start15s");this.S("loadsofttimeout")}};
f.tm=function(){if(!this.va){var a=new QL(this.o),b;"c1a"in a.B?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)vi(y(this.tm,this),4500);else{var c;if(a.o&&a.o.ha){b=[a.o.ha];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=RB(a,"atr"),b.L=c,b.send(),a.L=!0),this.va=!0)}}};
f.EE=function(){return this.A?this.A.o.playbackRate:1};var x$={"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};B(NM,G);f=NM.prototype;f.KE=function(){return Wb(this.B)};
f.LE=function(){return Wb(this.C)};
f.ma=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.$.subscribe(a,b);this.app.W().experiments.ga("publish_internal_events_externally")&&this.app.L.subscribe(a,b)};
f.cx=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.$.subscribe(a,e);this.app.W().experiments.ga("publish_internal_events_externally")&&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}Ce(this.app.$,a,b);this.app.W().experiments.ga("publish_internal_events_externally")&&Ce(this.app.L,a,b)};
f.fx=function(a,b){var c=w(b)?a+b:a+ma(b),d=this.D[c];d&&(Ce(this.app.$,a,d),this.app.W().experiments.ga("publish_internal_events_externally")&&Ce(this.app.L,a,d),cc(this.D,c))};
f.getPlayerState=function(){return y9(this.app)};
f.Ub=function(a,b){H9(this.app,!0,this.playerType);W9(this.app,a,b,void 0,this.playerType)};
f.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
f.Bh=function(){return v9(this.app,this.playerType)};
f.Eb=function(){return this.app.Z.volume};
f.setVolume=function(a){a=le(Math.floor(a),0,100);S9(this.app,{volume:a,muted:this.Dc()})};
f.Dc=function(){return this.app.Z.muted};
f.mute=function(){S9(this.app,{muted:!0,volume:this.Eb()})};
f.unMute=function(){S9(this.app,{muted:!1,volume:Math.max(5,this.Eb())})};
f.md=function(){H9(this.app,!0,this.playerType);V9(this.app,this.playerType)};
f.pauseVideo=function(){var a=this.app,b=this.playerType;if(fN(a.Ra)){var c=a.ea.play_pause?a.va:null;c?c.re("control_pause"):a.pauseVideo(b)}};
f.Tj=function(){var a=this.app;a.Y.P&&(a.o.Oa()&&Dy(a.o),a.o.S("pageTransition"));U9(a)};
f.HE=function(){};
f.ME=function(){return this.app.U};
f.Dh=function(a){r9(this.app,a)};
f.Nj=function(){return this.app.Y.ca?s9:[1]};
f.Oj=function(){var a=wq(this.app,this.playerType);return a&&(a=a.getVideoData().B)?a.video.quality:"unknown"};
f.Sj=function(a){var b=this.app,c=wq(b,this.playerType);c&&!b.Y.isMobile&&(a=Ju(a,a,!0),DM(c,"p",a))};
f.qs=function(){var a=wq(this.app,this.playerType);return a?(a=ji(BM(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
f.PE=function(){return this.nn()};
f.QE=function(){return 1};
f.nn=function(){return n9(this.app)};
f.RE=function(){return 0};
f.setSize=function(){this.app.G.Je()};
f.vs=function(a){L9(this.app,a?2:1)};
f.ws=function(a){L9(this.app,a)};
f.XE=function(a){var b=this.app;b.Y.Rl=a;b.o.S("minimized")};
f.Pj=function(a){var b=this.app.D;b.isAvailable(a)&&(a=QM(b,a))&&!a.loaded&&a.load()};
f.ys=function(a){var b=this.app.D;b.isAvailable(a)&&(a=QM(b,a))&&a.loaded&&a.unload()};
f.pn=function(a,b,c){a=E9(this.app,LJ(a,b,c),this.playerType);H9(this.app,a,this.playerType)};
f.ln=function(a,b,c){var d=this.playerType;I9(this.app,new rx(LJ(a,b,c)),d)};
f.UE=function(a,b,c){a=MJ(a,b,c);b=E9(this.app,a,this.playerType);H9(this.app,b,this.playerType);b=this.app;(a=(new O(a.mediaContentUrl)).o)&&tJ(b.Y,a)};
f.JE=function(a,b,c){a=MJ(a,b,c);b=this.playerType;I9(this.app,new rx(a),b);b=this.app;(a=(new O(a.mediaContentUrl)).o)&&tJ(b.Y,a)};
f.getVideoUrl=function(){var a=this.app.W();if(a.D)return"";var b=P4(this.app),c=void 0;b.Ga||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.Ce()||void 0,c)};
f.mn=function(){return x9(this.app)};
f.rs=function(){var a=this.app,b=P4(a),c=a.G.Ma(),a="https://"+zJ(a.Y)+"/embed/"+b.videoId;b.playlistId&&(a=hf(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+Fa(a)+'" frameborder="0" allowfullscreen></iframe>'};
f.os=function(a,b,c){return Q9(this.app,a,b,c)};
f.us=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.zh(e);xq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
f.ts=function(a,b,c,d){var e=this.app;e.ca=!1;J9(e,a,b,c,d);H9(this.app,!0,this.playerType)};
f.IE=function(a,b,c,d){var e=this.app;e.ca=!0;J9(e,a,b,c,d)};
f.Qj=function(){M9(this.app);H9(this.app,!0,this.playerType)};
f.Rj=function(){N9(this.app);H9(this.app,!0,this.playerType)};
f.qn=function(a){O9(this.app,a);H9(this.app,!0,this.playerType)};
f.setShuffle=function(a){var b=this.app.C;b&&b.setShuffle(a)};
f.WE=function(a){var b=this.app.C;b&&(b.K=a)};
f.Cc=function(){var a=this.app.C;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.xb(c);d&&b.push(d.videoId)}return b};
f.NE=function(){var a=this.app.C;return a?a.Mb():-1};
f.Ce=function(){var a=this.app.C;return a&&a.D?a.D.toString():null};
f.De=function(a,b,c){return Y9(this.app,a,b,c)};
f.zb=function(a,b,c){return Y9(this.app,a,b,c)};
f.Ch=function(a){return Z9(this.app,a)};
f.getVideoData=function(){var a=wq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Ce();b&&(a.list=b);return a};
f.xs=function(){h9(this.app,!0)};
f.SE=function(){h9(this.app,!1)};
f.getAdState=function(){return this.app.getAdState()};
f.TE=function(a){if(a!=this.app.X.args.video_id)return!1;a=(a=wq(this.app,1))?a.getPlayerState():null;return!(!a||!T(a,128)||5!=x$[a.o.errorCode])};
f.OE=function(){var a=this.app.X.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.YE=function(a,b){var c=this.app;c.Y.C&&(c.H||(c.H=new u5(c),k9(c,c.H)),v5(c.H,a,b),6!=c.M&&(c.H.Xa(c.Ra)?(1!=c.M&&3!=c.M||!b||m9(c,c.J),a.length&&1!=c.M&&l9(c)):m9(c,c.H)))};
f.destroy=function(){this.app.dispose()};
f.VE=function(){var a=wq(this.app);a&&!T(a.getPlayerState(),128)&&(a.S("internalAbandon"),cM(a),bM(a))};
f.V=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;NM.N.V.call(this)};B(OM,NM);f=OM.prototype;f.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
f.os=function(a,b,c,d,e){return Q9(this.app,a,b,c,d,e)};
f.ZE=function(a,b,c,d){QI(this.app.W().K,a,{Oe:b,mg:c,ri:d})};
f.$E=function(a){var b=this.playerType;I9(this.app,new rx(a),b)};
f.getPlayerState=function(a){return y9(this.app,a)};
f.Uj=function(a){E9(this.app,a,this.playerType)};
f.iF=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.P&&b.P.getVideoData().videoId==a.videoId||(a=new rx(a),F9(b,a))};
f.md=function(){V9(this.app,this.playerType)};
f.Ub=function(a,b){W9(this.app,a,b,void 0,this.playerType)};
f.ts=function(a,b,c,d){var e=this.app;e.ca=!1;J9(e,a,b,c,d)};
f.Qj=function(a){M9(this.app,a)};
f.Rj=function(a){N9(this.app,a)};
f.qn=function(a){O9(this.app,a)};
f.Sc=function(a,b,c){var d=this.app,e=this.playerType;W9(d,d.getCurrentTime()+a,b,c,e)};
f.pF=function(a){if(a){var b=this.Ce();if(!b||b==a.list){var c=a.video;(b=this.app.C)?this.app.Ra.Oa()&&((c=c[b.Mb()])&&c.encrypted_id!=b.xb().videoId||(a.index=b.Mb())):d9(this.app,{list:a.list,index:a.index,playlist_length:c.length});ly(this.app.C,a)}}else a=this.app,e9(a),a.o.Da("onPlaylistUpdate")};
f.oF=function(){eJ()};
f.qF=function(a){var b=wq(this.app,this.playerType||1);b&&(b=b.getVideoData(),xx(b,a),b.S("dataupdated"))};
f.eF=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec};
f.cF=function(){var a=this.app.W();return{Ob:a.Ob,Ya:a.Ya}};
f.getVideoData=function(){var a=OM.N.getVideoData.call(this),b=wq(this.app,this.playerType),b=b?b.getVideoData():{};a.backgroundable=b.backgroundable;a.cpn=b.clientPlaybackNonce;a.isLive=b.Ga;a.itct=b.Si;return a};
f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):OM.N.getCurrentTime.call(this)};
f.Bh=function(a){return a?v9(this.app,a):OM.N.Bh.call(this)};
f.gf=function(){var a=this.app.getVideoData(),b=wq(this.app),c=eN(this.app.Ra),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),h=this.Bh(),k=wq(this.app,void 0);if(k)var m=$I(k.A),k=(0,window.isNaN)(m)?k.getCurrentTime():m;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:h,loaded:k,seekableEnd:GM(b,!0),seekableStart:Sx(b.o)}};
f.nn=function(a){return n9(this.app,a)};
f.canPlayType=function(a){return this.app.canPlayType(a)};
f.jF=function(a,b){u9(this.app,a,this.playerType,b)};
f.bF=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.If(a),c=c.index.Fe(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};
f.vg=function(a){var b=this.app,c=wq(b,this.playerType);c&&b.Y.Ea.contains(a.toString())&&c.B&&(b=RB(c.B,"engage"),b.B=a,b.send(void 0))};
f.Fh=function(a,b){var c=QM(this.app.D,"iv-module");c&&cG(c)&&eG(c,a,b)};
f.gF=function(a,b){var c=this.app;c.ia&&(c=c.ia,c.U&&C6(c.U,a,b))};
f.Eh=function(){return t9(this.app,this.playerType)};
f.sn=function(a){var b=this.app,c=this.playerType,d=b.ea.set_audio_track?b.va:null;if(d)d.re("control_set_audio_track",a);else{if(c=b=wq(b,c))if(c=!b.isDisposed()&&!T(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=YJ(d),c.S("audioformatchange",new UJ(d.L,d.B,d.D)),c.o&&!c.o.o.remove?a=!1:(zL(c,c.A,YJ(c.G)),FK(c.A),rL(c),a=!0)),c=!a;c&&(zM(b),yM(b))}};
f.zs=function(){var a=wq(this.app,this.playerType);return a.o.A?a.o.A.audioTracks:[]};
f.dF=function(){var a=wq(this.app,this.playerType);return a&&a.getVideoData().B?Ou(UL(a.xa,a.o)):"unknown"};
f.lF=function(a,b){X9(this.app,a,b)};
f.aF=function(){var a=QM(this.app.D,"fresca");a&&a.C.C()};
f.nF=function(){var a=this.app.ia;a.sa=!1;a.ng()};
f.hF=function(){var a=this.app.ia;a.sa=!0;a.ng()};
f.fF=function(){return XL(this.app.W())};
f.mF=function(){return this.app.W().experiments.ga("send_presence_signal_vis_desktop")};
f.As=function(a){return CF(this.app.G,a)};
f.kF=function(a){this.app.W().enableSafetyMode=a};
f.AD=function(a){Ch();T9(this.app,a?2:0)};
f.oo=function(){var a=wq(this.app),b=a.Y.experiments.ga("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.D&&(a.D.K=!0,b||iL(a.D));if(a=QM(this.app.D,"endscreen"))a=My(a)?!!a.A.F.D:!1,a&&TM(this.app.Ra,!0)};
f.Tj=function(){var a=this.app.W();!a.experiments.ga("disable_new_pause_state3")&&Cy(a)&&"blazer"!=a.o?this.oo():OM.N.Tj.call(this)};B(PM,OM);f=PM.prototype;f.pn=function(a,b,c){this.Uj(LJ(a,b,c))};
f.Ca=function(){return DF(this).element};
f.W=function(){return this.app.W()};
f.Cc=function(){return this.app.C};
f.getVideoData=function(a){return(a=wq(this.app,a||this.playerType))&&a.getVideoData()};
f.Oa=function(){return this.app.W().Xf};
f.addEventListener=function(a,b,c){this.app.L.subscribe(a,b,c)};
f.removeEventListener=function(a,b,c){Ce(this.app.L,a,b,c)};
f.S=function(a,b){this.W().experiments.ga("publish_internal_events_externally")||!this.W().Ya||"videodatachange"!=a&&"audiotrackchanged"!=a&&"resize"!=a&&"cardstatechange"!=a||this.app.$.S.apply(this.app.$,arguments);this.app.L.S.apply(this.app.L,arguments)};
f.Da=function(a,b){this.W().experiments.ga("publish_internal_events_externally")||this.app.$.S.apply(this.app.$,arguments);this.app.L.S.apply(this.app.L,arguments)};
f.Sj=function(a){u9(this.app,a,this.playerType)};
f.mn=function(a){return x9(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.W().getVideoUrl(d.videoId,h?void 0:this.Ce()||void 0,k,b,c)};
f.Fh=function(a,b){var c=QM(this.app.D,"iv-module");c&&eG(c,a,b)};
f.vg=function(a,b){var c=this.app,d=wq(c,this.playerType);d&&c.Y.Ea.contains(a.toString())&&d.B&&(c=RB(d.B,"engage"),c.B=a,c.send(b))};
f.gb=function(a,b){P9(this.app,a,b||this.playerType)};
f.qj=function(a){var b=wq(this.app,this.playerType);b&&b.qj(a)};
f.zb=function(a,b,c){return Y9(this.app,a,b,c,!0)};
f.Ch=function(a){return Z9(this.app,a,!0)};
f.De=function(a,b,c){return Y9(this.app,a,b,c,!0)};
f.Dh=function(a,b){r9(this.app,a,b)};
f.setVolume=function(a){a=le(Math.floor(a),0,100);S9(this.app,{volume:a,muted:this.Dc()},!0)};
f.mute=function(){S9(this.app,{muted:!0,volume:this.Eb()},!0)};
f.unMute=function(){S9(this.app,{muted:!1,volume:Math.max(5,this.Eb())},!0)};B(lN,vq);f=lN.prototype;f.Xa=function(){return!!this.o.getVideoData().spacecastModule};
f.create=function(){lN.N.create.call(this);var a;a:{var b=cj("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(){lN.N.destroy.call(this);this.A=null};
f.load=function(){lN.N.load.call(this);if(this.A){var a=this.o.getVideoData().videoId,b=K();bba(this.A,a,y(this.vy,this,a,b))}else zq(this)};
f.nd=function(a){switch(a){case "getVideo":a=this.o.getVideoData();var b=!!(a&&Tx(a)&&a.B&&a.B.video.o);return{docid:a.videoId,isFastLoad:b}}};
f.vy=function(a,b,c){if(this.A){b=K()-b;var d=!1,e=this.o.getVideoData(),h="unknown",k=hN(c);e.lk=Wb(k);if(c){c.status&&(h=c.status);if(k=iN(this.A,c,e.adaptiveFormats))e.spacecastAdaptiveFormats=k;if(c=iN(this.A,c,e.og))e.spacecastFormatMap=c;if(k||c)Ox(e,this.o.W()),e.P||$aa(this.o),d=Ou(e.oh),this.o.Sj(d),d=!0}(c=2==this.o.getPresentingPlayerType())&&!d?vd(function(){var a=this.o.app;a.J&&a.J.F&&a.J.OF()},this):zq(this);
Ji("yt-spacecast-cache-watch-video-cached",a,d);hq("/gen_204?"+ff({a:"spacecast",module:"player",status:h,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}),void 0)}};B(mN,vq);f=mN.prototype;f.Xa=function(){return nN(this.o)};
f.create=function(){mN.N.create.call(this);var a=new qq(1E3,0x7ffffffffffff,{priority:0});this.gb([a]);this.o.addEventListener("heartbeatparams",this.Ks,this);this.o.addEventListener("presentingplayerstatechange",this.Ls,this)};
f.destroy=function(){sN(this);mN.N.destroy.call(this);this.o.removeEventListener("heartbeatparams",this.Ks,this);this.o.removeEventListener("presentingplayerstatechange",this.Ls,this)};
f.Yb=function(){this.H=!0;pN(this,2E3)};
f.Ks=function(a){this.B=a;pN(this,2E3)};
f.Ls=function(a){T(a.state,2)||T(a.state,64)?sN(this):(T(a.state,1)||T(a.state,8))&&pN(this,2E3)};
f.vD=function(){var a,b,c=this.o.W(),d=this.o.getVideoData();b=c.baseYtUrl;T(fA(this.o),4)?this.A=window.NaN:oN(this)?(Px(d)?(a="GET",b=hf(this.B.url,{request_id:fw()}),d.L&&(b=hf(b,{vvt:d.L})),d.oauthToken&&(b=hf(b,{access_token:d.oauthToken}))):(a="GET",c=c.A,b=hf(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=hf(b,{cpn:d.clientPlaybackNonce}),tj(b,{format:"RAW",method:a,timeout:3E4,sb:y(this.rz,this),
onError:y(this.qz,this),Md:y(this.uz,this),withCredentials:!0})):sN(this)};
f.rz=function(a){if(this.A){a=a.responseText;var b;b=(b=rN(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(y$))?"0"==b[1]?0:1:-1;if(-1==b)qN(this,"decode");else if(this.C=0,this.A=window.NaN,1==b){this.D=!1;b="YTP_ERROR_LICENSE";var c=rN(a);c?a=c.reason||Q(b):((a=a.match(y$))&&(a=(0,window.parseInt)(a[1],10))&&(b=Xy(a)),a=Q(b));eM(this.o.app.A,"heartbeat",a,void 0)}else this.D=!0,pN(this)}};
f.qz=function(a){qN(this,"net-"+a.status)};
f.uz=function(){qN(this,"timeout")};
var y$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(uN,vq);f=uN.prototype;f.Xa=function(){return vN(this.o)};
f.create=function(){uN.N.create.call(this);this.load()};
f.load=function(){uN.N.load.call(this);this.o.addEventListener("resize",this.un,this);var a=this.o.getVideoData().videoId;this.B&&this.B.abort();a={Zb:y(this.QA,this,a),Rc:{v:a}};"embedded"==this.o.W().Ba&&(a.Rc.ptype="embedded");var b=this.o.getVideoData().C.iv_endscreen_url;b&&(this.B=tj(b,a))};
f.unload=function(){xN(this,null);this.o.removeEventListener("resize",this.un,this);this.B&&(this.B.abort(),this.B=null);uN.N.unload.call(this)};
f.nd=function(a,b){if(!wN(this.o.W().o))return null;switch(a){case "loadCustomEndscreenJson":var c=new tN(b);xN(this,c);return!0;case "unloadCustomEndscreenJson":return xN(this,null),!0}return null};
f.QA=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 tN(JSON.parse(d)))}xN(this,c)};
for(var z$=[346,426,470,506,570,640,853,1280,1920],A$=[],B$=0;B$<z$.length;B$++)A$.push("ytp-ce-size-"+z$[B$]);var Foa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];f=uN.prototype;
f.un=function(){if(this.D&&this.D.elements){var a=this.o.As(),b=a.width,c=a.height,d=b/c,e;e=null;for(var h=-1,k=0;k<z$.length;k++){var m=Math.abs(b-z$[k]);if(-1==h||e>=m)h=k,e=m}e=A$[h];for(h=0;h<this.D.elements.length;++h){var m=this.D.elements[h].id,k=this.A[m],l=this.H[m],p=l.width*d/l.aspectRatio,m=Math.round(p*c),t=a.left+Math.round(l.left*b),u=a.top+Math.round(l.top*c);kr(k.element,Math.round(l.width*b),m);$q(k.element,t,u);ce(k.element,Foa);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(l.top+p/2)][Math.round(l.left+l.width/2)]);ce(k.element,A$);L(k.element,e);(k=Mg("div","ytp-ce-expanding-overlay-body",k.element)[0])&&Uq(k,"height",m+"px")}}};
f.Yb=function(a){uN.N.Yb.call(this,a);if("ytp-ce-in-endscreen"==a.getId())BN(this,this.D.impressionUrls);else{var b=a.getId().substring(15);a=this.A[b];b=this.H[b];L(a.element,"ytp-ce-element-show");a.element.removeAttribute("aria-hidden");BN(this,b.impressionUrls)}};
f.jc=function(a){if("ytp-ce-in-endscreen"!=a.getId()){var b=a.getId().substring(15),b=this.A[b];be(b.element,"ytp-ce-element-show");b.element.setAttribute("aria-hidden",!0);uN.N.jc.call(this,a)}};
f.Gs=function(a,b){if(!b||!b.keyCode||13==b.keyCode){for(var c=b.target;c&&!Zd(c,"ytp-ce-element");){Zd(c,"subscribe-label")&&BN(this,a.clickUrls);if(Zd(c,"ytp-ce-channel-subscribe"))return;c=lh(c)}b.preventDefault();b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.H?(BN(this,a.clickUrls),this.o.pauseVideo(),this.Fs(a.o,a.B,"_blank")):(c=y(this.Fs,this,a.o,a.B,"_top"),BN(this,a.clickUrls,c))}};
f.Hs=function(a){BN(this,a.D);AN(this,a.id,!0)};
f.Is=function(a){AN(this,a.id,!1)};
f.Fs=function(a,b,c){yy(a,b);zy(a,c)};B(CN,vq);f=CN.prototype;f.Xa=function(){return Wx(this.o.getVideoData(),"ypc_clickwrap_module")};
f.create=function(){CN.N.create.call(this);this.load()};
f.load=function(){CN.N.load.call(this);this.A=new R(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Q("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.o.getVideoData().C.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],Q("YTP_YPC_START_RENTAL_BUTTON")]]);Br(this.o,this.A.element,4);I(this,this.A);this.B=this.A.ra["ytp-ypc-clickwrap-confirm"];this.A.T(this.B,"click",this.AA,this)};
f.unload=function(){CN.N.unload.call(this);Rl(this.B);Jq(this.A);this.A.dispose();this.A=null};
f.AA=function(){zq(this);this.destroy()};DN.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.A=b*(1-c)+c*this.A;this.C+=a};
DN.prototype.B=function(){return this.A/(1-Math.pow(this.D,this.C))};EN.prototype.o=function(a,b){FN(this,"index");this.C.push({index:this.J++,weight:a,value:b});this.A+=a;for(FN(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)}};
EN.prototype.B=function(){return this.F?(GN(this,this.D-this.F)+GN(this,this.D)+GN(this,this.D+this.F))/3:GN(this,this.D)};HN.prototype.o=function(a,b){this.A.push(b);this.A.length>this.C&&this.A.shift()};
HN.prototype.B=function(){return qe.apply(null,this.A)};B(ON,G);ON.prototype.Rw=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]);I(this,b)}}else b=null;b&&b.Xa(this.A)&&!jb(this.o,b)&&(b.create(),this.o.push(b),jb(this.D,b.ua)&&(b.G=this.H,b.cj(!!b.G)))}};
ON.prototype.J=function(a,b){F(this.o,function(c){c.S(a,b)})};
ON.prototype.isAvailable=function(a){a=QM(this,a);return!(!a||!a.ea)};TN.prototype.getMessage=function(){return this.C};
TN.prototype.getErrorCode=function(){return this.o};
TN.prototype.getType=function(){return this.D};
TN.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.B?" Caused by: "+this.B:"")};B(UN,jc);UN.prototype.getError=function(){return this.B};var k1="adMetadata click companionBackfill complete durationChange firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),C$="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(" "),
Goa="acceptinvitation click close collapse creativeview expand progress".split(" "),D$=["viewable_impression","measurable_impression","externalActivityEvent"],E$={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};B(VN,jc);VN.prototype.getAd=function(){return this.B};
var bha={RH:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",SN:"videoClicked",Nn:"engagedview",ZJ:"expandedChanged",STARTED:"start",Th:"impression",Pn:"measurable_impression",ao:"viewable_impression",On:"fully_viewable_audible_half_duration_impression",$J:"externalActivityEvent",PAUSED:"pause",JM:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",SJ:"durationChange",
DI:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",rM:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Xv:"skipshown",UK:"linearChanged",$M:"skippableStateChanged",SH:"adMetadata",QH:"adBreakReady",cL:"log",VOLUME_CHANGED:"volumeChange",ZN:"mute",hJ:"companionBackfill",jO:"youTubeVideoMetadata",iO:"youTubeChannelMetadata",MN:"urlNavigationRequested",BN:"trackingUrlPinged",ON:"video_card_endcap_action",PN:"video_card_endcap_collapse",QN:"video_card_endcap_dismiss",
RN:"video_card_endcap_impression",fO:"why_this_ad_url",eO:"why_this_ad_got_it",NL:"MUTE_AD",kJ:"companionInitialized",jJ:"companionImpression",iJ:"companionClick"};var sO={ov:5E3,pv:15E3,Ov:"://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(" "),Pv:/\bocr\b/,Ik:0,Nd:{},Er:function(a,b){a&&(sO.Op(a)?sO.Gr(a,b):sO.Br(a,b))},
Op:function(a){return D(E(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new O(a)).Ve().match(sO.Pv)?!0:null!=eb(sO.Ov,function(b){return null!=a.match(b)})},
Gr:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?sO.Lp(function(b){sO.zr(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):sO.zr(c)}},
zr:function(a){var b=P("iframe",{src:a,style:"display:none"});a=Jg(b).body;var c,d=Ud(function(){$c(c);dh(b)},sO.pv);
c=Yc(b,["load","error"],function(){Ud(function(){Vd(d);dh(b)},sO.ov)});
a.appendChild(b)},
Lp:function(a,b){var c=sO.Nd.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete sO.Nd[c];d||(d=!0,null!=sO.Nd.imageLoadingEnabled||(sO.Nd.imageLoadingEnabled=b),a(b))};
b?b(c):sO.yz(c)}},
yz:function(a){var b=new window.Image,c,d=""+sO.Ik++;sO.Nd[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=="},
wD: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=""+sO.Ik++;sO.Nd[c]=b;b.onload=b.onerror=function(){delete sO.Nd[c]};
window.document.body.appendChild(b)}},
Ar:function(a){if(a){var b=new window.Image,c=""+sO.Ik++;sO.Nd[c]=b;b.onload=b.onerror=function(){delete sO.Nd[c]};
b.src=a}},
Br:function(a,b){a&&(b?sO.Lp(function(b){b?sO.Ar(a):sO.wD(a)}):sO.Ar(a))},
xO:function(a){null!=a&&F(a,function(a){sO.Er(a)})}};var $N=new function(){this.A="always";this.D=1;this.o=!1;this.C=!0;this.H=!1;this.F=!0;this.G=null};var lW=["ADSENSE","ADSENSE/ADX"],gea=["DART","DART_DFA","DART_DFP"],oea=["FREEWHEEL","YT:FREEWHEEL"],yV=["SHOPPING","YT:SHOPPING"],GV=["GDFP"],fea=["VIRAL","ADSENSE-VIRAL"],$U={"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"},J_={qL:"video/mp4",sL:"video/mpeg",fL:"application/x-mpegURL",TL:"video/ogg",nN:"video/3gpp",aO:"video/webm",pL:"audio/mpeg",
rL:"audio/mp4"};aO.prototype.getId=function(){return this.A};bO.prototype.getId=function(){return this.B};var eO=null;var dda=["*.googlesyndication.com","gcdn.2mdn.net"],zba=["*.youtu.be","*.youtube.com"],Cba="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(" "),Bba=["c.googlesyndication.com"],
Hoa=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];uO.prototype.getErrorCode=function(){return this.errorCode};
uO.prototype.getMessage=function(){return this.message};
var wga=new uO("Unable to request ads from server. Cause: {0}.",1005),Ioa=new uO("Unable to request ads from server due to network error.",1012),SW=new uO("Cannot parse the {0} value for the adslist response: {1}.",900),y_=new uO("Invalid usage of the API. Cause: {0}",900),C_=new uO("Unable to display one or more required companions.",602),Joa=new uO("There was a problem requesting ads from the server.",1005),mga=new uO("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),YY=new uO("The provided ad type: {0} is not supported.",1005),SS=new uO("The provided {0} information: {1} is invalid.",1101),Koa=new uO("The provided skip offset was invalid.",1105),Loa=new uO("The extension contained is neither skippable nor nonskippable.",1105),BY=new uO("The response does not contain any valid ads.",1009),Moa=new uO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Hea=new uO("The ad playlist response was malformed or empty.",
1010),TW=new uO("The ad response was not understood and cannot be parsed.",1010),pga=new uO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),Noa=new uO("The ad response contains unexpected element. Cause {0}.",1010),PZ=new uO("No assets were found in the VAST ad response.",200),Sda=new uO("Duplicate node in <{0}>: {1}",101),CY=new uO("The VAST response document is empty.",1009),aha=new uO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),HZ=new uO("Ad request reached a timeout.",301),DY=new uO("VAST response was malformed and could not be parsed.",100),F$=new uO("VAST media file loading reached a timeout of {0} seconds.",402),AZ=new uO("Ad request could not be completed due to a network error.",301),Ooa=new uO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),jga=new uO("The maximum number of VAST wrappers ({0}) has been reached.",302),Poa=new uO("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),A0=new uO("Video player received an ad with unexpected or incompatible linearity",201),Rda=new uO("Unknown node in <{0}>: {1}",101),ofa=new uO("Invalid VAST resource type: {0}",101),Ffa=new uO("Invalid VAST version",102),kga=new uO("No additional VAST wrappers allowed.",300),zZ=new uO("No Ads VAST response after one or more Wrappers",303),F0=new uO("There was an error playing the video ad.",400),Bfa=new uO("VMAP unsupported node in <{0}>: {1}",1010),V0=new uO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var G$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var GO={},HO="",aS=/OS (\S+) like/,LO=/Android ([\d\.]+)/;ba(NO);NO.prototype.o=function(a,b,c){if(this.A||c){b=b||{};b.lid=a;a=jO(fO());D(E(a))||(b.e=a);b=Fba(this,b);var d=new O("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(b,function(a,b){zf(d,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},this);
a=OO();pf(d,a.C);qO(d.toString())}};f=PO.prototype;f.vw=!1;f.fo=!1;f.ko=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.Ww=!1;f.Wg=null;f.surveyCreativeData=null;f.XD=!0;f.Rm=!1;f.YD=!1;f.useShareButton=!1;f.Sm=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.ZD=!0;f.sk=!1;f.Xw=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.Qm=!1;f.ag=null;f.loadVideoTimeout=15E3;f.lo=!0;f.jr=0;f.jm=-1;window.console&&"function"===typeof window.console.log&&y(window.console.log,window.console);RO.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 YO=null;UO.prototype.getValue=function(){return this.o};
UO.prototype.Ac=function(){return this.B?this.A():""};
UO.prototype.A=function(){return String(this.o)};
B(VO,UO);VO.prototype.A=function(){return this.o?"1":"0"};
B(WO,UO);WO.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)):""};
TO.prototype.setItem=function(a){this.o[a.D]=a};
TO.prototype.getItem=function(a){return dc(this.o,a,null)};
TO.prototype.Ac=function(a){var b=[];a||(a=0);for(var c in this.o){var d=this.o[c];d instanceof VO?d.getValue()&&(a|=d.C):(d=this.o[c].Ac())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};f=cP.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("_")};eP.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("_")};new Sd(200);var H$={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},qR={Yn:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",Rv:"resume",SKIPPED:"skip",ao:"viewable_impression",Fv:"mute",gw:"unmute",FULLSCREEN:"fullscreen",Zu:"exitfullscreen",On:"fully_viewable_audible_half_duration_impression",Pn:"measurable_impression",tu:"abandon",Nn:"engagedview",Th:"impression",Pu:"creativeview",LOADED:"loaded"},
Jca="start firstquartile midpoint thirdquartile resume loaded".split(" "),pca=["abandon"],rR={UNKNOWN:-1,Yn:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,Rv:7,SKIPPED:8,ao:9,Fv:10,gw:11,FULLSCREEN:12,Zu:13,On:14,Pn:15,tu:16,Nn:17,Th:18,Pu:19,LOADED:20},tR={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",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",mmct:"mmct",tcm:"tcm",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",lte:"lte",tth:"tth"},Tca={gmm:"gmm",j:"dom"},Uca={vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",vmdtos:"vmdtos",tcm:"tcm",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",bt:"bt",pst:"pst",nmt:"nmt",
mmct:"mmct",c:fP("c"),at:"at",atos:hP("atos",[0,2,4]),avt:hP("atos",[2]),dav:"dav",ta:function(a,b){return function(c){if(!n(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 n(b)?gP(d,b):d}}}("tos",[0,
2,4]),j:"dom",mtos:hP("mtos",[0,2,4]),gmm:"gmm",ss:fP("ss"),vsv:hd("w1"),t:"t"},yQ={WN:1,xI:2,vI:4,FULLSCREEN:8,FI:16,EI:32,wI:64,tJ:128,bM:256};var Bca=/https?:\/\/[^\/]+/;oP.prototype.o=function(a,b,c,d,e){var h={};h.context=a;b instanceof pP||(b=qP(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(m){}d=this.D;try{if(Math.random()<(c||d.A)){var k=d.o+(e||this.C)+("&"+mP(h,1)),k=k.substring(0,2E3);nP(aa,k)}}catch(m){}return this.A};var xP=window.document,W=window;var sP;sP=new oP(new function(){this.o="http"+("http:"===W.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.A=.01},"jserror",!0);
var LR=sP.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$=zP(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$=zP(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");I$=
!0;J$=zP(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$=zP(b.GetVariable("$version"))}catch(c){}})();
var dU=I$,PP=J$;if(xP&&xP.URL){var jP=xP.URL,Qoa=!(jP&&0<Jba().length);sP.A=Qoa};var MP={},NP=null;MP.le=0;MP.nt=2;MP.Fr=3;var GQ=0,Oba=(new Date).getTime(),FP=-1,HP=!1,IP=-1,JP=-1;MP.Po=5;MP.me=1;MP.om=4;RP.prototype.getStatus=function(){return this.o};
B(UP,RP);var YP={HN:-1,LOADING:0,gv:1,Lu:2,rv:3,VISIBLE:4},Yba={LOADING:0,gv:1,Lu:2,tN:3,SL:4,EN:5,FN:6,DN:7,VL:8,sN:9},aQ={};f=VP.prototype;f.Hp=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.Gp=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&&!se(a,ar(this.module))&&$q(this.module,a)};
f.remove=function(){if(this.module)try{dh(this.module)}catch(a){}this.module=null};
f.Wx=function(a){this.A=a?3:4};
q("gteh",uP("osd_or_lidar::gteh_ex",function(a,b){var c=aQ[a];ha(c)&&c(b)}),void 0);
var cca={rv:0,VISIBLE:1},Roa=new re(-99999,0);dQ.prototype.X=function(){var a=fQ(this);if(null===a)hQ(this);else if(null===this.B)this.B=a,hQ(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(hQ(this),eQ(this,0)):(this.o.setPosition(Roa),this.G=W.setTimeout(vP("osd_or_lidar::sfm_cpto",y(this.Z,this)),125))}};
dQ.prototype.Z=function(){var a=fQ(this),b=a-this.B;this.B=a;a=4<=b?1:0;hQ(this);eQ(this,0==a?1:0)};
B(jQ,RP);jQ.prototype.K=function(){var a=eca(this);this.A!=a&&(this.A=a,this.H(a))};ba(EP);var nQ=new te(0,0,0,0);f=pQ.prototype;f.update=function(a,b,c,d,e){if(0>this.H)return null;c||oQ(this,d,e);return this.ze(this.o,b,a,c,!1,!0)};
f.ze=function(a,b,c,d,e,h,k){k=this.Ro(c,k||{});var m=null;ga(b)?this.C=this.Ig(b):(m=b,this.C=this.Ig(a,m));h&&(this.wd=Math.max(this.wd,this.C));h=wP(xP);this.ha=0==h?-1:1==h?0:1;h=sQ(this.C);ga(b)||(this.Zd=m.right-m.left,this.Yd=m.bottom-m.top);this.Nm(h,k,this.ca,e,d,m);this.ca=d?-1:h;this.H=c;-1!=h&&0>this.yi&&(this.yi=c);-1==this.Ko&&this.ne()&&(this.Ko=c);-2==this.ud&&(this.ud=a!=nQ&&0!=this.area&&this.Yd&&this.Zd?this.Ig(a,new te(0,this.Zd,this.Yd,0)):-1);this.uf(this);return this.C};
f.Ro=function(a){a=a-this.H||1;return 1E4<a?1:a};
f.Ig=function(a,b){var c=null;if(!ga(a)&&n(b)){c=null===a||null===b?nQ.clone():new te(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;c=(c.bottom-c.top)*(c.right-c.left);return c/this.area}return ga(a)?a:0};
f.Om=function(a,b){this.Td[a]+=b};
f.Lm=function(a,b){this.X[a]+=b;this.X[a]>this.cb[a]&&(this.cb[a]=this.X[a])};
f.qm=function(a){this.X[a]=0};
f.Nm=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.Om(c,b);h=h||null;d=-1!=c&&2>=c;h?(d&&-1!=this.na&&(this.pf[this.na]+=b),h=100*this.area/((h.bottom-h.top)*(h.right-h.left)),this.na=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):this.na=-1;for(h=c;0<=h&&4>=h;h++)this.Lm(h,b);for(h=0;4>=h;++h)(h<a||e||-1==a)&&this.qm(h)};
f.Nl=function(){return!1};
f.ne=function(){return!1};B(AQ,pQ);f=AQ.prototype;
f.ze=function(a,b,c,d,e,h,k){k=k||this.Qb(this)||{};this.P=k.duration||this.P;this.sd=k.isVpaid||this.sd;this.Wa=h;this.O=k.volume;BQ(this.O)||(this.gp++,BQ(this.L)&&(this.O=this.L));AQ.N.ze.call(this,a,b,c,d,e,h,k);-1==this.vb&&this.Wd&&(this.vb=this.wb);(a=this.ne())&&zQ(this.J,1);BQ(this.L)&&zQ(this.J,2);this.xa&&zQ(this.J,4);this.G&&zQ(this.J,8);-1!=this.ha&&(zQ(this.J,16),1==this.ha&&zQ(this.J,32));this.xa&&a&&zQ(this.J,64);this.Wa&&zQ(this.J,128);this.Wa&&0<this.C&&zQ(this.J,256);return this.C};
f.Ro=function(a,b){var c=n(b.currentTime)?b.currentTime:this.Ia,d=CQ(this,a),e=c-this.Ia,h=b.isYouTube,k=n(b.isPlaying)?b.isPlaying:!0;2!=this.jb?(0<=e?(this.ia+=Math.max(d-e,0),this.La=Math.min(e,d)):(this.Sd+=Math.abs(e),this.La=0),-1==this.va&&0<e&&(this.va=0<=JP?GP()-JP:-1)):(k||this.ea||(this.ia+=d),-1==this.va&&k&&(this.va=0<=JP?GP()-JP:-1));this.Ia=c;if(h){if(1==this.jb)return this.La;if(2==this.jb)return k?d:0}return CQ(this,a)};
f.Ig=function(a,b){return this.tf?0:this.G?1:AQ.N.Ig.call(this,a,b)};
f.Om=function(a,b){AQ.N.Om.call(this,a,b);this.zd[a]+=this.La;2>=a&&(this.Ua+=b,this.fa+=this.La)};
f.Lm=function(a,b){AQ.N.Lm.call(this,a,b);this.sa[a]+=this.La;this.sa[a]>this.yd[a]&&(this.yd[a]=this.sa[a])};
f.qm=function(a){AQ.N.qm.call(this,a);this.sa[a]=0};
f.Nm=function(a,b,c,d,e,h){if(!this.ea){AQ.N.Nm.call(this,a,b,c,d,e,h);a=-1==c||-1==a?-1:Math.max(c,a);this.wb+=b;this.vr&&(this.rd+=b,this.Za+=b);this.vr=this.G;d=d&&-1!=c&&2>=c?a:c;c=-1!=d&&2>=d;if(this.xa=BQ(this.O)&&.1<=this.O&&BQ(this.L)&&.1<=this.L){this.bc+=b;for(this.Ka+=b;0<=d&&4>=d;d++)this.Ja[d]+=b;c?this.Pa+=b:this.la+=b}else this.ac=!1;this.la>this.xd&&(this.xd=this.la);if(c||!n(this.O)||.1>this.O)this.la=0;b=this.O;this.L=n(b)?Number(b)?xQ(b,3):0:b}};
f.Nl=function(){return!0};
f.ne=function(){return 2E3<=Math.max(this.X[2],this.cb[2])};var JQ=null,LQ=null,MQ=null,OQ=null,dR=null,IQ=!1,eR=[],fR=[],aR=!1,bR=null,XQ=0,WQ=!1,YQ=!1,sca=!1,rca=!1,ZQ=!1,$Q=!1,UQ=AO()||BO(),uca=0;var kR=null,mR="",lR=!1;f=jR.prototype;f.So=function(){};
f.Yo=v;f.pr=v;f.wo=v;f.eo=v;f.sl=function(a){if(a){if(!a.qf){var b=HQ(a,"start"),b=sR(b,tR),c=kR||W,d=[];d.push("v=421v");d.push("r=fp");d.push("efm="+(this.A?1:0));d.push("esfm="+(this.B?1:0));d.push(b);d.push(Dca(c));b="&"+d.join("&");nP(W,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.qf=!0}a.bb=!0;this.um(a)}};
f.oy=function(a){a.Wh++;EQ(a,0);.1<=a.L&&(a.ac=!0);return HQ(a,"start")};
f.cy=function(a){EQ(a,1);SQ([a],!FQ());return HQ(a,"firstquartile")};
f.iy=function(a){EQ(a,2);a.Wd=!0;SQ([a],!FQ());return HQ(a,"midpoint")};
f.qy=function(a){EQ(a,3);SQ([a],!FQ());return HQ(a,"thirdquartile")};
f.Zx=function(a){EQ(a,4);SQ([a],!FQ());var b=HQ(a,"complete");a.G=!1;oR(a.F);return b};
f.ky=function(a){return nR(a,"pause")};
f.Yx=function(a){return nR(a,"abandon")};
f.ly=function(a){var b=FQ();a.ea&&!b&&(a.Ea=GP());SQ([a],!b);a.ea=!1;return HQ(a,"resume")};
f.ty=function(a){var b=HQ(a,"viewable_impression");a.nr=!0;return b};
f.my=function(a){var b=!FQ();SQ([a],b);b=HQ(a,"skip");a.G=!1;oR(a.F);return b};
f.jy=function(a){SQ([a],!FQ());return HQ(a,"mute")};
f.ry=function(a){SQ([a],!FQ());return HQ(a,"unmute")};
f.ey=function(a){a.G=!0;SQ([a],!FQ());return HQ(a,"fullscreen")};
f.by=function(a){a.G=!1;SQ([a],!FQ());return HQ(a,"exitfullscreen")};
f.fy=function(a){return HQ(a,"fully_viewable_audible_half_duration_impression")};
f.hy=function(a){return HQ(a,"measurable_impression")};
f.ay=function(a){return HQ(a,"engagedview")};
f.gy=function(a){return HQ(a,"impression")};
f.$x=function(a){return HQ(a,"creativeview")};
f.rl=function(a){a.ne()&&!a.Xd&&this.pr(a);this.wo(a)};
f.um=v;var wR=(new Date).getTime(),yR=!1,zR=!1,AR=!1,Mca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return xR(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 xR(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 xR(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 xR(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 xR(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return zR},
function(){return AR},
function(){return xR(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 xR(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]||vR(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 vR(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 xR(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 vR(a.CSS.supports)},
function(){return vR(window.Intl.Collator)},
function(a){return vR(a.document.createElement("dialog").show)},
function(){return xR(8)},
function(a){return vR(a.document.createElement("div").animate([{transform:"scale(1)",$w:"ease-in"},{transform:"scale(1.3)",$w:"ease-in"}],{duration:1300,vO:1}).reverse)},
function(a){return vR(a.document.createElement("div").animate)},
function(a){return vR(a.document.documentElement.webkitRequestFullScreen)},
function(a){return vR(a.navigator.getBattery)},
function(a){return vR(a.navigator.permissions.query)},
function(){return vR((new window.AudioContext).createBuffer)},
function(){return xR(9)},
function(){return vR(window.webkitRequestAnimationFrame)},
function(a){return vR(a.BroadcastChannel.call)},
function(a){return vR(a.FontFace)},
function(a){return vR(a.Gamepad)},
function(){return xR(10)},
function(a){return vR(a.MutationEvent)},
function(a){return vR(a.MutationObserver)},
function(a){return vR(a.crypto.getRandomValues)},
function(a){return vR(a.document.body.createShadowRoot)},
function(a){return vR(a.document.body.webkitCreateShadowRoot)},
function(a){return vR(a.fetch)},
function(){return xR(11)},
function(a){return vR(a.navigator.serviceWorker.register)},
function(a){return vR(a.navigator.webkitGetGamepads)},
function(a){return vR(a.speechSynthesis.speak)},
function(a){return vR(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return xR(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 xR(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 xR(14)},
function(a){return"undefined"==typeof a.navigator.AO},
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")}],Nca=[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}],Oca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];B(BR,jR);ba(BR);f=BR.prototype;f.So=function(a,b){EP.getInstance();var c;b.opt_adElement?c=Hca(this,a,b.opt_adElement):(c=Rca(this,a,b.opt_sdkID||""))||(c=wca(a)||void 0);c&&c.Qb==v&&(c.Qb=y(this.eo,this));return c};
f.eo=function(a){EP.getInstance();a.A=0;a.ob=0;var b;if("as"==a.M){var c="getVideoMetadata"+a.eg;if(ha(a.element[c]))try{b=a.element[c]()}catch(e){a.A|=4}else a.A|=2}else if("h"==a.M)if(c=r("ima.common.getVideoMetadata"),ha(c))try{b=c(a.F)}catch(e){a.A|=4}else a.A|=2;else a.A|=1;a.A||(n(b)?null===b?a.A|=16:ac(b)?a.A|=32:null!=b.errorCode&&(a.ob=b.errorCode,a.A|=64):a.A|=8);null!=b||(b={});c=b;a.Fa=0;for(var d in H$)null==c[d]&&(a.Fa|=H$[d]);null!=c.currentTime||a.vf++;uR(c,"currentTime");uR(c,"duration");
return b};
f.pr=function(a){DR(a,"viewable_impression")&&(a.Xd=!0)};
f.wo=function(a){var b=a.Ja[0];(15E3<=b||a.Wd&&(-1!=a.P?b>=a.P/2:-1!=a.vb&&b>=a.vb))&&!a.sf&&DR(a,"fully_viewable_audible_half_duration_impression")&&(a.sf=!0)};
f.Yo=function(a){EP.getInstance();a.mr||a.bb||!DR(a,"measurable_impression")||(a.mr=!0)};
f.rl=function(a){EP.getInstance();BR.N.rl.call(this,a)};
f.um=function(){EP.getInstance()};
q("Goog_AdSense_Lidar_sendVastEvent",uP("lidar::handlevastevent_ex",FR,void 0,function(){return{v:"421","if":EP.getInstance().A?"1":"0",nas:String(eR.length)}}),void 0);
q("Goog_AdSense_Lidar_getInitSignals",tP("lidar::getinitsignals_ex",ER,void 0,void 0),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",uP("lidar::geturlsignalsarray_ex",function(){return iR()}),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsList",uP("lidar::geturlsignalslist_ex",function(){return ge(iR())}),void 0);B(GR,J);var HR=null;GR.prototype.destroy=function(){this.D.za(this.o,"activityMonitor",this.H);this.B=null;this.A=!1};
GR.prototype.init=function(a){if(!this.A){if(this.o=a||null)this.D.R(this.o,"activityMonitor",this.H),NR(this);if($N.C&&!(aa.ima&&aa.ima.video&&aa.ima.video.client&&aa.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);var b=aa.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.A=!0}};
GR.prototype.H=function(a){var b=a.Kd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.zc){case "getPageSignals":NR(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;d.viewabilityData=MR(this,e,c,a,h);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,NO.getInstance().o(43,{step:"beforeLookup",logid:b,time:K()},!0)),c.engagementString=Xca(this,a,k),this.o.send("activityMonitor","engagement",c)}};
q("ima.common.getVideoMetadata",function(a){var b=IR();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=IR().o;d?d.send("activityMonitor","viewableImpression",c):IR().aa(new VN("viewable_impression",null,c))},void 0);
q("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=IR().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=IR().o;d?d.send("activityMonitor","measurableImpression",c):IR().aa(new VN("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=IR().o)?a.send("activityMonitor","externalActivityEvent",d):IR().aa(new VN("externalActivityEvent",null,d))},void 0);
q("ima.common.updateEngagementDetectionValue",function(a){if($N.C){var b=IR().o;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);B(PR,J);f=PR.prototype;f.zC=function(a){this.J=!0;this.A=a.touches.length;this.B&&(window.clearTimeout(this.B),this.B=0,this.M=!0);(this.H=TR(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);cda(this,a.touches)};
f.yC=function(a){this.A=a.touches.length;if(!FO()||!IO(aS,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.xC=function(a){this.L?this.Ok():(!this.J||1!=this.A||this.F||this.M||this.H||!TR(this,a.changedTouches)||(this.B=window.setTimeout(y(this.Ok,this),300)),this.A=a.touches.length,0==this.A&&(this.F=this.J=!1,this.C=[]),this.M=!1)};
f.ip=function(){this.Ok()};
f.Ok=function(){this.B=0;this.aa(new jc("click"))};
f.V=function(){SR(this);this.D.dispose();this.D=null;PR.N.V.call(this)};B(XR,J);var Dda={NI:"beginFullscreen",CLICK:"click",UJ:"end",VJ:"endFullscreen",ERROR:"error",LOADED:"loaded",gL:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",ZM:"skip",Xv:"skipShown",TM:"shareClicked",Yn:"start",pN:"timeUpdate",YI:"cardsStateChange",oN:"timedMetadata",YN:"volumeChange"};f=XR.prototype;f.pp=function(){return!1};
f.kb=function(){return!0};
f.wm=v;f.up=v;f.zl=v;f.Ef=function(){return null};
f.vp=v;f.sp=v;B(YR,XR);f=YR.prototype;f.wr=function(a,b,c,d){if(d&&(d=eb(a,function(a){return null!==UR(a.getUrl())}),null!==d))return d;
a=ae(a,function(a){var b=a.o,c=a.getUrl();D(E(c))||"progressive"!=a.B&&"application/x-mpegurl"!=E(b).toLowerCase()?a=!1:(b=E(b).toLowerCase(),a=D(b)||LH&&IO(LO,2.3)&&Ga(b,"application/ogg")?!1:LH&&(Ga(b,"video/mp4")||Ga(b,"video/3gpp"))||FO()&&(Ga(b,"application/x-mpegurl")||Ga(b,"application/vnd.apple.mpegurl"))?!0:!D(this.o.canPlayType(b)));return a},this);
return OR(a,b,c)};
f.$k=function(){return ae(Vb(J_),function(a){return!D(this.o.canPlayType(a))},this)};
f.Am=function(a){this.X=0<a.o?a.o:15E3};
f.load=function(a){$R(this);this.o.src=a;this.o.load()};
f.getVideoUrl=function(){return this.o.src};
f.setVolume=function(a){this.o.volume=a};
f.Jd=function(){return this.o.volume};
f.play=function(){this.O=!1;Ud(this.o.play,0,this.o);this.J||(this.J=Ud(this.Hw,this.X,this))};
f.pause=function(){this.O=!0;this.o.pause()};
f.Qf=function(){return this.o.paused?FO()||Dl?this.o.currentTime<this.o.duration:!0:!1};
f.Pf=function(){return this.o.muted};
f.Al=function(){EO()&&this.o.webkitDisplayingFullscreen&&this.o.webkitExitFullscreen()};
f.ke=function(){return KR(this.o)};
f.Kg=function(a){var b;a:{for(b=this.Z.Na();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
f.Rf=function(a){this.o.currentTime=a};
f.getCurrentTime=function(){return this.o.currentTime};
f.qp=function(){return cS(this)};
f.Hd=function(){return(0,window.isNaN)(this.o.duration)?-1:this.o.duration};
f.Ze=function(){return this.o.ended};
f.fd=function(){return new ue(this.o.offsetWidth,this.o.offsetHeight)};
f.tp=function(){return this.o.seeking};
f.V=function(){this.Sf();this.o=null;YR.N.V.call(this)};
f.getError=function(){return this.o.error};
f.Pi=function(){this.Sf();this.A=new zm(this);this.A.R(this.o,G$,this.IB);this.A.R(this.o,"canplay",this.gA);this.A.R(this.o,"ended",this.Sy);this.A.R(this.o,"webkitbeginfullscreen",this.Bl);this.A.R(this.o,"webkitendfullscreen",this.xp);this.A.R(this.o,"pause",this.Uy);this.A.R(this.o,"playing",this.TB);this.A.R(this.o,"timeupdate",this.Vy);this.A.R(this.o,"volumechange",this.Wy);this.A.R(this.o,"error",this.wp);this.A.R(this.o,oJ||FO()&&(!FO()||!IO(aS,8))?"loadeddata":"canplay",this.jB);this.F=
new PR;this.A.R(this.F,"click",this.Ry);QR(this.F,this.o);this.G=new Sd(1E3);this.A.R(this.G,"tick",this.Ty);this.G.start()};
f.Sf=function(){null!=this.F&&(SR(this.F),this.F=null);null!=this.G&&this.G.dispose();null!=this.A&&(this.A.dispose(),this.A=null);$R(this)};
f.IB=function(a){this.aa(a.type)};
f.gA=function(){var a;if(a=qu)a=oc,a=!(a&&(Oa(a,"SMART-TV")||Oa(a,"SmartTV")));a&&!this.U&&(this.Rf(.001),this.U=!0)};
f.jB=function(){this.L||(this.L=!0,this.aa("loaded"))};
f.TB=function(){this.aa("play");FO()||oJ||bS(this)};
f.Vy=function(){if(!this.C&&(FO()||oJ)){if(0>=this.getCurrentTime())return;if(oJ&&this.Ze()&&1==this.Hd()){this.wp();return}bS(this)}if(FO()||JO()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.Rf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}var a=this.Z;a.o[a.A]=this.o.currentTime;a.A=(a.A+1)%a.B;this.aa("timeUpdate")};
f.Wy=function(){this.aa("volumeChange")};
f.Uy=function(){var a;this.C&&FO()&&!this.O&&2>cS(this)-this.o.currentTime?(this.D=new Sd(250),this.A.R(this.D,"tick",this.dA),this.D.start(),a=!0):a=!1;a||this.aa("pause")};
f.Sy=function(){var a=hO(fO(),136961002),b=!0;if(FO()||JO()||a&&LH)b=this.B>=this.o.duration-1.5;!this.H&&b&&this.aa("end")};
f.Bl=function(){this.aa("beginFullscreen")};
f.xp=function(){this.aa("endFullscreen")};
f.wp=function(){ZR(this);this.aa("error")};
f.Ry=function(){this.aa("click")};
f.Ty=function(){var a=this.fd(),b=this.ke();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.Bl():this.K&&!b&&this.xp(),this.M=a,this.K=b};
f.Hw=function(){if(!this.C){try{NO.getInstance().o(16)}catch(a){}$R(this);this.aa("mediaLoadTimeout")}};
f.dA=function(){if(this.Ze()||!this.Qf())Mb(this.D);else{var a=this.o.duration-this.o.currentTime,b=cS(this)-this.o.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.D),this.play())}};B(eS,J);dS.prototype.start=function(a){return this.o[a].startTime};
dS.prototype.end=function(a){return this.o[a].endTime};
f=eS.prototype;f.readyState=0;f.currentTime=0;f.duration=window.NaN;f.Uf=!0;f.Cp=!1;f.autoplay=!1;f.controls=!1;f.volume=1;f.muted=!1;f.src="";f.Zy=1;f.playbackRate=0;f.Qd=null;f.Vi=0;f.eD=4;f.Gg=null;f.vj=null;
f.play=function(){this.Cp&&(this.currentTime=0,this.aa("timeupdate"));this.Uf&&(this.Uf=!1,this.aa("play"),this.readyState=this.eD,2>=this.readyState?this.aa("waiting"):this.aa("playing"));if(null===this.Qd||this.Qd.isDisposed())this.Qd=new Sd(10),this.Qd.R("tick",y(this.Or,this));this.Vi=K();this.Qd.start();this.autoplay=!1};
f.pause=function(){this.autoplay=!1;this.Uf||(this.Qd.stop(),this.Uf=!0,this.aa("timeupdate"),this.aa("pause"))};
f.load=function(){this.readyState=0;this.Uf=!0;this.aa("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.A;a.o.push(new hda(this.duration));a.length=a.o.length;this.aa("loadedmetadata");0<this.currentTime&&this.aa("timeupdate");this.aa("loadeddata");this.aa("canplay");this.aa("canplaythrough");this.aa("progress");this.playbackRate=this.Zy};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.aa("seeking");this.currentTime=c;this.aa("seeked");this.Or();break;case "duration":this.duration=Number(b);this.aa("durationchange");break;case "volume":this.volume=Number(b),this.aa("volumechange")}};
f.Or=function(){var a=K()-this.Vi,b=this.currentTime+a/1E3;this.Vi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.aa("timeupdate");this.currentTime==this.duration&&(this.Cp=this.Uf=!0,this.Qd.stop(),this.aa("ended"))};
f.V=function(){this.Qd&&this.Qd.dispose();this.o.dispose()};
f.MC=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.vj&&(this.vj.innerText=b);c&&this.Gg&&(this.Gg.style.backgroundColor=c)};Tg&&wc(8);var jS={},b0={},c0={},kS={};fS.prototype.Cd=null;fS.prototype.getContent=function(){return this.content};
fS.prototype.toString=function(){return this.content};
B(gS,fS);B(hS,fS);var ida={};B(nS,fS);nS.prototype.Zc=jS;B(pS,fS);pS.prototype.Zc={};pS.prototype.Cd=1;B(qS,fS);qS.prototype.Zc=b0;qS.prototype.Cd=1;B(rS,fS);rS.prototype.Zc=c0;rS.prototype.Cd=1;B(sS,fS);sS.prototype.Zc={};sS.prototype.Cd=1;B(tS,hS);tS.prototype.Zc={};tS.prototype.Cd=1;B(uS,gS);uS.prototype.Zc=kS;var oS=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.Cd=d);return e}}(nS);
vS(pS);vS(qS);vS(rS);var pda=vS(sS);vS(tS);var wS={},xS={},RS=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.Cd=d);return e}}(nS),FS=/['()]/g,HS={},qda={"\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;"},rda={"\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"},lda=/[\x00\x22\x27\x3c\x3e]/g,nda=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,mda=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,KS=/[\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,
Rga=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Qga=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,AS=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,BS=/</g;yS("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">'+X(a.$f)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+X(a.$f)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
X(IS(a.Wc))+">"+X(a.Wc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+X(IS(a.Me))+">"+X(a.Me)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
yS("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">'+X(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
X(a.yO)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+X(a.zO)+'</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"'+X(IS(a.Wc))+">"+X(a.Wc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
X(IS(a.Me))+">"+X(a.Me)+'</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>'});
yS("b","",function(a){a=a||{};return""+ra("You can skip this ad in {$xSeconds}",{xSeconds:X(a.qg)})});
yS("b","redesign2014q4",function(a){a=a||{};return""+ra("You can skip to video in {$xSeconds}",{xSeconds:X(a.qg)})});B(TS,G);TS.prototype.initialize=function(){CO()&&this.A.load()};
TS.prototype.V=function(){dh(this.o);TS.N.V.call(this)};
TS.prototype.show=function(){var a=this.o;null!=a&&(a.style.display="block")};
TS.prototype.ka=function(){var a=this.o;null!=a&&(a.style.display="none")};B(WS,XR);var Soa=["video/mp4","video/webm"],Toa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},VS=[],US=!1;f=WS.prototype;f.wr=function(a,b,c){var d=eb(a,function(a){return null!==UR(a.getUrl())});
if(null!==d)return d;a=ae(a,function(a){a=E(a.o);return this.o?this.A.canPlayType(a):jb(Soa,a)},this);
kb(c)||(d=OR(a,b,c));return null!=d?d:OR(a,b,[])};
f.Am=function(a){this.B=a};
f.load=function(a,b){null!==a&&(this.X=a,this.o?XS(this,a,b):(this.L=a,this.$=b))};
f.getVideoUrl=function(){return this.X};
f.setVolume=function(a){this.ea?this.aa("volumeChange"):this.o?(a=le(100*a,0,100),this.A.setVolume(a),this.G=-1,this.aa("volumeChange")):this.G=a};
f.Jd=function(){return this.o?this.A.getVolume()/100:this.G};
f.play=function(){if(!D(E(this.X))){if(!this.C){ZS(this);var a=15E3;null!=this.B&&0<this.B.o&&(a=this.B.o);this.va=Ud(this.KB,a,this)}this.o?(this.ca=!1,!this.C&&this.B&&this.B.A?this.A.loadVideoByPlayerVars(this.la):this.A.playVideo()):this.ca=!0}};
f.pause=function(){this.o&&this.C&&this.A.pauseVideo()};
f.Qf=function(){return this.o?2==this.A.getPlayerState(this.D):!1};
f.Pf=function(){return this.o?this.A.isMuted():0==this.Jd()};
f.Al=function(){};
f.ke=function(){var a=$N.o?$N.B:window.document.getElementById(this.O);return a?KR(a):!1};
f.Kg=function(a){return this.o?this.A.getCurrentTime(this.D)>=a:!1};
f.Rf=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.qp=function(){return this.o&&this.C?this.A.getVideoLoadedFraction(this.D)*this.A.getDuration(this.D):0};
f.Hd=function(){return this.o&&this.C?this.A.getDuration(this.D):-1};
f.getError=function(){return null};
f.$k=function(){return Vb(J_)};
f.Ze=function(){return this.o?0==this.A.getPlayerState(this.D):!1};
f.fd=function(){var a=$N.o?$N.B:window.document.getElementById(this.O);return a?new ue(a.offsetWidth,a.offsetHeight):new ue(0,0)};
f.tp=function(){return!1};
f.pp=function(){return 1==this.sa};
f.kb=function(){return this.o?1==this.A.getPlayerState(this.D):!1};
f.Yy=function(){var a=this.fd(),b=this.ke();if(a.width!=this.ia.width||a.height!=this.ia.height)!this.ha&&b?this.aa("beginFullscreen"):this.ha&&!b&&this.aa("endFullscreen"),this.ia=a,this.ha=b};
f.Pi=function(){this.fa=y(this.Dq,this);this.M=y(this.Cl,this);this.na=y(this.Eq,this);this.Ea=y(this.lC,this);this.ea&&(this.A.addEventListener("onAdStateChange",this.M),this.A.addEventListener("onReady",this.fa),this.A.addEventListener("onStateChange",this.M),this.A.addEventListener("onVolumeChange",this.na),this.A.addEventListener("onSharePanelOpened",this.Ea));this.Z=new Sd(1E3);this.U.R(this.Z,"tick",this.Yy);this.Z.start()};
f.Sf=function(){this.ea&&(this.A.removeEventListener("onAdStateChange",this.M),this.A.removeEventListener("onReady",this.fa),this.A.removeEventListener("onStateChange",this.M),this.A.removeEventListener("onVolumeChange",this.na),this.A.removeEventListener("onSharePanelOpened",this.Ea));null!=this.Z&&this.Z.dispose()};
f.Sw=function(){var a=this.O,b={playerVars:ec(Toa),events:{cardstatechange:y(this.Xy,this),onError:y(this.QB,this),onReady:y(this.Dq,this),onAdStateChange:y(this.Cl,this),onStateChange:y(this.Cl,this),onVolumeChange:y(this.Eq,this)}},c=r("YT");this.A=null!=c&&null!=c.Player?new c.Player(a,b):null};
f.QB=function(){this.aa("error")};
f.Dq=function(){this.o=!0;this.H&&this.zl(this.H.videoId,this.H.Oe,this.H.mg,this.H.ri);-1!=this.G&&(this.setVolume(this.G),this.G=-1);null!=this.L&&(XS(this,this.L,this.$),this.$=this.L=null);-1!=this.K&&(this.Rf(this.K),this.K=-1);this.ca&&this.play()};
f.Xy=function(a){this.sa=a.data;this.aa("cardsStateChange")};
f.Cl=function(a){switch(a.data){case 0:this.C?this.aa("end"):this.aa("error");break;case 1:this.C||(ZS(this),this.C=!0,this.J=0,this.aa("start"));this.aa("play");YS(this);this.F=new Sd(100);this.U.R(this.F,"tick",this.qq);this.F.start();break;case 2:this.aa("pause"),YS(this)}};
f.Eq=function(){this.aa("volumeChange")};
f.lC=function(){this.aa("shareClicked")};
f.qq=function(){if(nJ||JO()){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.aa("timeUpdate")};
f.KB=function(){this.aa("mediaLoadTimeout")};
f.zl=function(a,b,c,d){if(b||c)this.o?this.A.addInfoCardXml(a,b,c,d):this.H={videoId:a,Oe:b,mg:c,ri:d}};
f.Ef=function(){if(!this.o)return null;var a=this.A.getVideoData();return a?a.cpn:null};
f.wm=function(a){this.o&&UR(this.getVideoUrl())&&this.A.sendVideoStatsEngageEvent(a)};
f.up=function(a){this.o&&this.A.setCardsVisible(a)};
f.vp=function(){this.o&&this.A.showControls()};
f.sp=function(){this.o&&this.A.hideControls()};
f.V=function(){YS(this);ZS(this);this.Sf();this.o=!1;this.U.dispose();this.K=-1;this.$=null;this.ca=!1;this.L=null;this.G=-1;this.fa=this.A=this.B=null;this.C=!1;this.X="";WS.N.V.call(this)};
q("onYouTubeIframeAPIReady",function(){US=!0;F(VS,function(a){a()});
lb(VS)},window);B($S,J);$S.prototype.o=!1;$S.prototype.connect=function(){for(this.o=!0;!kb(this.A);){var a=this.A.shift();this.sendMessage(a.name,a.type,a.data)}};
$S.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.A.push({name:a,type:b,data:c})};
B(aT,jc);aT.prototype.getOrigin=function(){return this.B};
aT.prototype.toString=function(){return""};B(bT,$S);bT.prototype.sendMessage=function(a,b,c){null!=this.Oc&&null!=this.Oc.postMessage&&this.Oc.postMessage(Bda(this,a,b,c),"*");null!=this.Oc&&null==this.Oc.postMessage&&NO.getInstance().o(11)};
bT.prototype.V=function(){this.C.dispose();bT.N.V.call(this)};
bT.prototype.receive=function(a){a=a.o;var b=cT(a.data);if(dT(this,b)){if(null==this.Oc)this.Oc=a.source,this.o||this.connect();else if(this.Oc!=a.source)return;dT(this,b)&&this.aa(new aT(b.name,b.type,b.data||{},b.sid,a.origin))}};B(eT,J);eT.prototype.send=function(a){var b=a.o;this.o.hasOwnProperty(b)&&this.o[b].send(a.type,a.zc,a.Kd)};
eT.prototype.V=function(){this.A.dispose();for(var a in this.o)Mb(this.o[a]);eT.N.V.call(this)};
eT.prototype.D=function(a){a=a.o;var b=cT(a.data);if(null!=b){var c=b.channel;if(this.B&&!this.o.hasOwnProperty(c)){var d=b.sid;gT(this,c,d,a.source);this.aa(new fT(b.name,b.type,b.data||{},d,a.origin,c))}}};
B(fT,aT);B(iT,zm);
iT.prototype.F=function(a){var b=a.getOrigin(),c=Xe("//imasdk.googleapis.com"),b=Xe(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.o)gT(this.o,a.o,a.hp,Vg().parent),null!=this.o&&this.o.send(a);else if(c=a.Kd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.zc,"isGptPresent"==c?d=hT():"isConsolePresent"==c&&(d=null!=jT());else if(hT())if("pubads"==b||"companionAds"==b){d=a.zc;var e,h=Vg().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=jT(),null!=e&&(h=e[h],null!=h))try{h.apply(e,c)}catch(k){}}else if(null===b){e=a.zc;d=Vg();if(jb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{h=e.apply(d,c)}catch(k){}d=h}n(d)&&(a.Kd.returnValue=d,this.B.send(a))}};
iT.prototype.D=function(a){this.B.send(a)};kT.prototype.isPharma=function(){return this.J};var lT={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Pa(" ",Number(c)-a.length):Pa(" ",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+Pa(" ",a):h+Pa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,h,k,m){return lT.f((0,window.parseInt)(a,10),b,c,d,0,h,k,m)}};
lT.i=lT.d;lT.u=lT.d;B(mT,J);f=mT.prototype;f.V=function(){this.C.dispose();null!==this.B&&(this.B.dispose(),this.B=null);He(this.F.dc(!1),function(a){a.dispose()});
this.F.clear();dh(this.A);mT.N.V.call(this)};
f.Jx=function(a){var b=a.Kd,c=dr(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(!qu||FO()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
f.Xx=function(a){var b=a.Kd,c=dr(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,nT(this,b.touches),nT(this,b.targetTouches),nT(this,b.changedTouches),b.scale,b.rotation);this.A.dispatchEvent(d)};
f.Ux=function(a){if(null!=this.o){var b=a.Kd;switch(a.zc){case "startTracking":this.o.Pi();break;case "stopTracking":this.o.Sf();break;case "exitFullscreen":this.o.Al();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.Rf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions;this.o.Am(new kT(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.LC=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.Ze();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.Hd();break;case "volumeChange":a="volumeChange";b.volume=this.o.Jd();break;default:return}this.D.send("videoDisplay",a,b)};
f.Gx=function(a){switch(a.zc){case "showVideo":null!=this.B?SR(this.B):(this.B=new PR,this.C.R(this.B,"click",this.IC));QR(this.B,pT(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.ka()}};
f.IC=function(){this.D.send("displayContainer","videoClick")};
f.qx=function(){He(this.F.dc(!1),function(a){a.Oc=nh(this.A);a.connect()},this);
this.H=!0};oT.prototype.initialize=function(){null!=this.o&&this.o.initialize()};
oT.prototype.destroy=function(){Mb(this.o);Mb(this.G);Mb(this.F);dh(this.A)};
oT.prototype.ka=function(){null!=this.o&&this.o.ka()};
oT.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 qT="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");B(sT,J);B(tT,sT);tT.prototype.start=function(){this.o.start()};
tT.prototype.stop=function(){this.o.stop()};
tT.prototype.V=function(){tT.N.V.call(this);this.B.dispose();this.o.dispose()};
tT.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.aa(new jc("currentTimeUpdate"))}else this.aa(new jc("contentWrapperError")),this.stop()};uT.prototype.reset=function(){this.o=0;this.A=null};vT.prototype.reset=function(){this.A=this.o=null};var JT=new xT;xT.prototype.clear=function(){this.o=wT();this.D=this.H=this.F=null;this.C=wT();this.B=null;this.U=this.K=this.L="";this.G=this.O=this.A=null};B(AT,J);AT.prototype.A=null;AT.prototype.V=function(){delete this.o;BT(this);$c(this.A);AT.N.V.call(this)};
AT.prototype.D=function(){zT(this)&&(BT(this),$c(this.A),this.A=null,this.B=!0,this.aa("ifload"))};B(CT,J);B(DT,jc);DT.prototype.getError=function(){return this.B};ET.prototype.getContent=function(){return this.D};
ET.prototype.clone=function(){var a=new ET(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};B(GT,CT);ba(GT);f=GT.prototype;f.V=function(){this.A&&this.A.dispose();GT.N.V.call(this)};
f.initialize=function(){if(!this.C){var a;var b=wh(new Ig);try{r("googletag"),HT([b,b.top]),a=!0}catch(c){a=!1}a?TT(this):(this.C=!0,this.B="not_available")}};
f.setVideoContent=function(a,b){var c=OT(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
f.Gq=function(){0<this.D&&K()>=this.D?(this.C=!0,PT(this),ST(this)):TT(this)};
f.xD=function(a){var b=ji(a.adSizes,function(a){return new ue(a.adWidth,a.adHeight)});
return new ET(a.slotId,b)};
f.uw=function(a){var b={};b.slotId=a.G;b.adContent=a.getContent();b.adWidth=a.B;b.adHeight=a.A;b.friendlyIframeRendering=a.o;hO(fO(),9419278)&&(b.onAdContentSet=y(this.yA,this,a));return b};
f.yA=function(a,b){var c;if(a.o)c=b.querySelector("iframe");else{var d=ih(b);d&&(c=ih(d))}if(c&&"IFRAME"==c.tagName)if(d=new AT(c,!0),d.B)UT(this,a,c);else{var e=c;Yc(d,"ifload",function(){UT(this,a,e)},!1,this)}};
f.xA=function(a){this.aa(new DT("companion_click",null,a))};
f.sendImpressionUrls=function(a){tO(this.impressionUrls,a)};B(VT,jc);VT.prototype.getError=function(){return this.o};B(WT,jc);var Hda={IMAGE:"Image",ev:"Flash",ALL:"All"},Gda={HTML:"Html",IFRAME:"IFrame",dN:"Static",ALL:"All"},Ida={vK:"IgnoreSize",QM:"SelectExactMatch",RM:"SelectNearMatch"},Jda={CJ:"DisallowResize",HM:"ResizeSmaller"};B(jU,O);jU.prototype.toString=function(){return lU(this,jU.N.toString.call(this))};
jU.prototype.To=function(){return""};
jU.prototype.Ve=function(){return""};
jU.prototype.clone=function(){return new jU(this.toString())};var Tda=["ai","sigh"];GU.prototype.getUrl=function(){return this.B};
GU.prototype.getType=function(){return this.A};
B(HU,GU);FU.prototype.isEmpty=function(){return this.o.isEmpty()};B(RU,PU);SU.prototype.parse=function(a){a=ih(a);var b=vU(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw wO(Loa);a=a.getAttribute("offset");a=NU(a);if("skippable"==c&&null==a)throw wO(Koa);return new RU(c,a)};B(TU,PU);B(UU,PU);B(VU,PU);VU.prototype.Mb=function(){return this.A};f=WU.prototype;f.gg=function(a){this.fa=a};
f.Hl=function(){return null};
f.Ri=function(){return null};
f.getAd=function(){return this.O};
f.Ci=function(){for(var a=[this],b=this.O.A;b;){var c=ZU(this,b)||ZU(this,b,!0);null!=c&&a.push(c);b=b.A}return a};B(aV,WU);f=aV.prototype;f.getContent=function(){return ph(this.ee())};
f.Zg=function(){return!1};
f.Il=function(){return this.Zg()?ph(this.ee(!0)):""};
f.getContentType=function(){return this.ha};
f.hc=function(){return this.na};
f.getWidth=function(){return this.hc().width};
f.getHeight=function(){return this.hc().height};
f.Hl=function(){return"VPAID"==this.J?this.C:null};
f.Ri=function(){return"VPAID"==this.J&&"Flash"==this.Z?this.C:null};
f.gd=function(){return this.U};bV.prototype.getWidth=function(){return this.F};
bV.prototype.getHeight=function(){return this.C};
bV.prototype.getUrl=function(){return this.D};B(cV,WU);cV.prototype.gd=function(){return this.B};
cV.prototype.getMediaUrl=function(a){var b="";zh(this.L,function(c){var d=c.getUrl();return!D(E(a))&&a!=c.o||null==d||D(E(d))?!1:(b=d,!0)},this);
return b};
cV.prototype.Hl=function(){return eV(this,"javascript")};
cV.prototype.Ri=function(){return eV(this,"x-shockwave-flash")};B(fV,G);fV.prototype.G=function(){this.C=K()};
fV.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=dr(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("&"))};
fV.prototype.H=function(){this.D++};
fV.prototype.V=function(){fV.N.V.call(this);this.o.dispose()};var $da=[0,2,1],kV=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){kV=a},!0);
window.mb=function(a){if(a){var b=lV();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=gV(a.href,"mb",b,void 0)))}};B(mV,G);mV.prototype.G=function(){this.F=K()};
mV.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.Jw);if(8==(this.A&8)){var d=dr(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=lV())&&(this.o.mb=d);"A"==c.tagName.toUpperCase()&&Hg(c,bea(this,c.href))};
mV.prototype.H=function(){this.C++};var cea=Tg?'javascript:""':"about:blank";B(nV,aV);nV.prototype.G=function(a){null==this.B||D(E(this.gd()))||(this.B.R(a,"click",this.M),this.P.push(a))};
nV.prototype.ee=function(a){a?(null==this.ca&&(this.ca=this.Re(a),ah(this.ca,sV(this))),a=this.ca):(null==this.A&&(this.A=this.Re(),ah(this.A,sV(this))),a=this.A);null!=this.B&&this.B.R(a,"creativeview",this.$);return a};
nV.prototype.Tk=function(){var a=this.getAd().B;a&&a.Db("cleanup_text_overlay_spam_signals");return 2};
nV.prototype.Ci=function(){for(var a=[this],b=this.getAd().A;b;){var c=this.D?ZU(this,b)||ZU(this,b,!0):tV(this,b)||tV(this,b,!0);null!=c&&a.push(c);b=b.A}return a};f=vV.prototype;f.getContentType=function(){var a=this.o,b="";if(null===a)return b;if(a instanceof cV)a=a.la,null===a||(b=E(a.o));else if(a instanceof nV)switch(a.La){case "IFrame":case "Html":case "Static":b=E(a.Z)}return b};
f.getExtension=function(a){return this.G.get(a)};
f.isLinear=function(){return this.ha?this.ia:eW(this)?!0:YV(this)?"video"==this.Ja:bW(this,"linear")};
f.nz=function(){return this.P};
f.getWidth=function(){return this.isLinear()?0:this.Z.width};
f.getHeight=function(){return this.isLinear()?0:this.Z.height};
f.toString=function(){return"Ad: "+this.La};B(pW,J);pW.prototype.jo=function(){return!0};
pW.prototype.Ue=function(){return null};B(rW,pW);f=rW.prototype;f.V=function(){this.destroy();rW.N.V.call(this)};
f.destroy=function(){null!=this.D&&this.D.dispose();this.C=null;F(this.B,function(a){FT(a)},this);
this.A=null};
f.jo=function(){return this.F};
f.iC=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.o){var a=IT(this.o);null!=a&&(this.B=a)}this.H=!0;null!=this.C&&sW(this);this.aa(new jc("initialized"))};
f.zA=function(a){wW(this,a.getError())};
f.vA=function(a){if(null!=a.o){var b=a.o;"companion_slot_init"==a.type?md(function(){null!=this.A&&this.A.aa(new WT("companion_impression"))},this):"companion_click"==a.type&&(qea(b.C),null!=this.A&&this.A.aa(new WT("companion_click")))}};
f.Ue=function(){return this.o};f=xW.prototype;f.Sk=function(){return pT(this.o)};
f.Di=function(){return this.o.B};
f.ge=function(){return this.o.B};
f.Li=function(){var a=this.o.F;return null!=a?a:new WS};
f.Xg=function(){var a=this.o;null!=a.o&&a.o.show()};
f.ld=function(){};
f.Lk=function(){return null!=this.o.C};
f.tl=function(){return this.o.D};
f.vl=function(){return!1};
f.Mi=function(){return this.o.H};
f.setSize=function(a,b){this.o.setSize(a,b)};
f.ka=function(){};B(yW,jc);B(AW,jc);ba(BW);var xea=/iu\=\/(\d+)\//;BW.prototype.start=function(a){this.A&&this.B.set(a,K())};
BW.prototype.end=function(a,b){if(this.A&&Me(this.B,a)){var c=K()-this.B.get(a),d=CW(this,a,c,b);qO(d);this.B.remove(a);this.C+=c}};
BW.prototype.sendMessage=function(a,b,c){this.A&&(a=CW(this,a,b,c),qO(a))};DW.prototype.start=function(a,b){this.D=a;this.G=b;Aea(this);this.F.H?this.J():Fm(this.A,this.F,"initialized",this.J,this)};
DW.prototype.J=function(){var a=this.F.Ue(),b;b=a.C?"retrieved"!=a.B?void 0:a.G:void 0;a=Eda(a);null!=b&&(this.C.C=b);null!=a&&(this.C.G=a);zea(this)};B(FW,J);var GW=null;FW.prototype.destroy=function(){this.K.za(this.A,"activityMonitor",this.M);this.A=null};
FW.prototype.M=function(a){var b=a.Kd;switch(a.zc){case "appStateChanged":Sca(BR.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":KW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":IW(b.queryId,b.viewabilityString);break;case "pageSignals":this.L=b.pageSignals;break;case "viewableImpression":JW(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;HW().C=b;HW().J=K();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.o.get(a);c&&(this.o.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":BR.getInstance();EP.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.o.get(a);if(NO.getInstance().A){var d=-1;this.H&&(d=K()-this.H);var e=!1;c||(e=!0);Yb(b,"loggingId")&&NO.getInstance().o(43,{step:"receivedResponse",time:K(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.o.remove(a),c(b.engagementString))}};
q("ima.bridge.getNativeViewability",function(a,b){HW();b({})},void 0);
q("ima.bridge.getVideoMetadata",function(){var a=HW().F;return ha(a)?a():{}},void 0);
q("ima.bridge.triggerViewEvent",JW,void 0);q("ima.bridge.triggerMeasurableEvent",IW,void 0);q("ima.bridge.triggerExternalActivityEvent",KW,void 0);B(NW,Fea);B(QW,LW);QW.prototype.B=function(){return new MW(this.o,null,Iea(this))};B(UW,PU);VW.prototype.parse=function(a){if(null==a)return null;var b,c,d;F(gh(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 UW(b,c,d):null};B(XW,PU);XW.prototype.isPharma=function(){return this.G};YW.prototype.parse=function(a){var b;wU(a,"config",function(a){null!=b||(b=Lea(this,a))},this);
return b};ZW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,h,k,m,l=!1,p=!1;F(gh(a),function(a){switch(a.nodeName){case "AttributionText":c=vU(a);break;case "AttributionUrl":d=vU(a);break;case "ConversionUrl":h=vU(a);break;case "CustomTracking":null!=gh(a)&&(e=OU(a));break;case "is_pharma":a=uU(a,"bool");p=zU(E(a));break;case "CheckedEvents":a=gh(a);b=ji(a,function(a){return uU(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":vU(a);break;case "VisibleUrl":k=vU(a);break;case "UI":m=(new YW).parse(a);break;case "ShowYouTubeAnnotations":var u=vU(a);l=zU(E(u),!1);case "QueryId":vU(a)}},this);
null!=m||(m=new WW);return new XW(c,d,h,0,k,m,l,0,p,e,b)};$W.prototype.parse=function(a){if(null==a)return null;var b;F(gh(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gh(a)&&(b=OU(a))}});
a=null;null!=b&&0<IU(b,"skip").length&&(a="Generic");return new TU(a,b)};aX.prototype.parse=function(a){if(null==a)return null;var b,c;F(gh(a),function(a){switch(a.nodeName){case "SkippableAdType":b=vU(a);break;case "CustomTracking":null!=gh(a)&&(c=OU(a))}});
return new TU(b,c)};bX.prototype.parse=function(a){if(null==a)return null;var b;F(gh(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gh(a)&&(b=OU(a))}},this);
return new PU(b)};var Mea=[202,1009],Sea=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Rea={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$,BX,FX,O$,P$,Q$,R$,S$,T$,GX,U$;kX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
lX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
lX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
var V$=new mX;lX.prototype.getVersion=function(){var a=this.o.version;return a?new mX(a):V$};
var Uoa=new sX,d0=new qX,Voa=new rX,Woa=new tX,Xoa=new uX,yX=new nX,Yoa=new wX;mX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
mX.prototype.getMajorVersion=function(){var a=this.o.major_version;return null!=a?a:0};
nX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
oX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
oX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
oX.prototype.getId=function(){var a=this.o.id;return null!=a?a:""};
oX.prototype.setTitle=function(a){this.o.title=a};
var Tea=new vX;pX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
pX.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
qX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
var e0=new vX;rX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
var Zoa=new vX,$oa=new vX,apa=new vX;sX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
tX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
uX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
vX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
wX.prototype.equals=function(a){return jV(this.o,a?a.o:null)};
var bpa=new vX;var JX;
JX={event:{type:{TYPE_IMPRESSION_GALLERY:7,TYPE_NONE:0,TYPE_EXPAND:2,TYPE_DISMISS_ENDCAP:11,TYPE_DISMISS:4,TYPE_IMPRESSION_ENDCAP:8,TYPE_COLLAPSE:3,TYPE_COLLAPSE_ENDCAP:10,TYPE_HEADLINE_CLICK:5,TYPE_ACTION:6,TYPE_IMPRESSION:1,TYPE_ACTION_ENDCAP:9}},action:{type:{TYPE_IRDB:8,TYPE_APPLICATION_STORE:4,TYPE_ATTRIBUTION:5,TYPE_NONE:0,TYPE_FUNDRAISING:10,TYPE_INTERNAL:13,TYPE_PLAYLIST:7,TYPE_HELPOUTS:15,TYPE_COLLAPSE:17,TYPE_RESPONSE:12,TYPE_SUBSCRIPTION:6,TYPE_CHANNEL:2,TYPE_MERCH:9,TYPE_LETTERMAN:14,TYPE_EXTERNAL:16,
TYPE_HEADLINE:1,TYPE_VIDEO:3,TYPE_INLINE_APPLICATION_STORE:19,TYPE_RESULTS:11,TYPE_VOTE:18}},ad_card:{attribution_position:{POSITION_BOTTOM_LEFT:0,POSITION_TOP_LEFT:1,POSITION_TOP_RIGHT:2,POSITION_BOTTOM_RIGHT:3}},card:{type:{TYPE_PRODUCT:1,TYPE_NONE:0,TYPE_APP:2,TYPE_LOCATION:5,TYPE_VOTE:3,TYPE_WEBSITE:4},prominence:{PROMINENCE_NONE:0,PROMINENCE_FEATURE:2,PROMINENCE_HIGHLIGHT:1}}};B(HX,PU);IX.prototype.parse=function(a){var b=pA(a);if(D(E(b)))return null;var c;if(this.o){c=KX;if(!K$){var d={};K$={Rb:d};if(!L$){var e={};L$={Rb:e};e.type={type:"e",label:1,qa:0};if(!M$){var h={};M$={Rb:h};h.major_version={type:"i",label:1,qa:0};h.minor_version={type:"i",label:1,qa:0}}e.version={type:"m",label:1,qa:V$,ua:M$};e.priority={type:"i",label:1,qa:0};e.start_time_ms={type:"j",label:1,qa:"0"};e.end_time_ms={type:"j",label:1,qa:""};e.action={type:"m",label:3,ua:EX()};e.event={type:"m",label:3,ua:DX()};
R$||(h={},R$={Rb:h},h.headline={type:"s",label:1,qa:""},h.description={type:"s",label:1,qa:""},h.attribution_icon_url={type:"s",label:1,qa:""},h.skippable_seconds={type:"i",label:1,qa:0},h.attribution_position={type:"e",label:1,qa:0});e.ad_card={type:"m",label:1,qa:Uoa,ua:R$};if(!O$){h={};O$={Rb:h};h.headline={type:"s",label:1,qa:""};h.image={type:"m",label:1,qa:e0,ua:CX()};h.description={type:"s",label:1,qa:""};h.rating={type:"f",label:1,qa:0};h.review_text={type:"s",label:1,qa:""};if(!P$){var k=
{};P$={Rb:k};k.merchant={type:"s",label:1,qa:""};k.price={type:"s",label:1,qa:""};k.shipping={type:"s",label:1,qa:""};k.shipping_tax={type:"s",label:1,qa:""};k.condition={type:"s",label:1,qa:""};k.unit_price={type:"s",label:1,qa:""};k.energy_label={type:"s",label:1,qa:""};k.description={type:"s",label:1,qa:""};k.rating={type:"f",label:1,qa:0};k.review_text={type:"s",label:1,qa:""};k.action={type:"m",label:3,ua:EX()};k.event={type:"m",label:3,ua:DX()}}h.offer={type:"m",label:3,ua:P$}}e.product_card=
{type:"m",label:1,qa:d0,ua:O$};Q$||(h={},Q$={Rb:h},h.app_id={type:"s",label:1,qa:""},h.app_name={type:"s",label:1,qa:""},h.icon={type:"m",label:1,qa:Zoa,ua:CX()},h.price={type:"s",label:1,qa:""},h.rating_image={type:"s",label:1,qa:""},h.review_count={type:"i",label:1,qa:0},h.app_store_logo={type:"m",label:1,qa:$oa,ua:CX()},h.button_text={type:"s",label:1,qa:""},h.screenshots={type:"m",label:3,ua:CX()},h.rating={type:"f",label:1,qa:0},h.back_button_text={type:"s",label:1,qa:""},h.screenshots_text=
{type:"s",label:1,qa:""},h.cover_photo={type:"m",label:1,qa:apa,ua:CX()});e.app_card={type:"m",label:1,qa:Voa,ua:Q$};e.prominence={type:"e",label:1,qa:0};S$||(h={},S$={Rb:h},h.call_to_action_text={type:"s",label:1,qa:""});e.social_card={type:"m",label:1,qa:Woa,ua:S$};T$||(h={},T$={Rb:h},h.vote_line_1={type:"s",label:1,qa:""},h.vote_line_2={type:"s",label:1,qa:""},h.confirm_line_1={type:"s",label:1,qa:""},h.confirm_line_2={type:"s",label:1,qa:""});e.vote_card={type:"m",label:1,qa:Xoa,ua:T$};e.sponsored=
{type:"b",label:1,qa:!1};e.teaser_text={type:"s",label:1,qa:""};N$||(h={},N$={Rb:h},h.hide_in_drawer={type:"b",label:1,qa:!1},h.show_in_endcap={type:"b",label:1,qa:!1},h.show_in_companion_mobile={type:"b",label:1,qa:!1},h.show_in_cta={type:"b",label:1,qa:!1},h.override_clickthrough={type:"b",label:1,qa:!1});e.placement={type:"m",label:1,qa:yX,ua:N$};U$||(h={},U$={Rb:h},h.latitude_e6={type:"i",label:1,qa:0},h.longitude_e6={type:"i",label:1,qa:0},h.address={type:"s",label:1,qa:""},h.image={type:"m",
label:1,qa:bpa,ua:CX()},h.headline={type:"s",label:1,qa:""});e.location_card={type:"m",label:1,qa:Yoa,ua:U$}}d.card={type:"m",label:3,ua:L$};d.event={type:"m",label:3,ua:DX()}}a=c(this,a,K$);a=c=new kX(a);d=new FU;for(e=0;e<iV(a.o,"card");e++)if(h=xX(a,e),AX(zX(h)))for(k=0;k<iV(h.o,"event");k++){var m,l=k;m=new pX(hV(h.o,"event")[l]);l=null;switch(m.getType()){case 9:l="video_card_endcap_action";break;case 10:l="video_card_endcap_collapse";break;case 11:l="video_card_endcap_dismiss";break;case 8:l=
"video_card_endcap_impression"}l&&(m=m.o.base_url,KU(d,l,LX(l,null!=m?m:"")))}a=d}else a=Uea(this,a);return new HX(b,c,a)};B(MX,PU);MX.prototype.Dd=function(){return this.A};NX.prototype.D=function(a){var b={};F(this.A,function(a){b[a]=[]});
var c=new RegExp("^"+this.B);F(gh(a),function(a){"config"!=a.nodeName||F(gh(a),function(a){"params"!=a.nodeName||F(gh(a),function(a){var d=this.B?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=vU(a));null!=a.getAttribute("learn_more")&&(e=e+"|");jb(this.A,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};B(PX,PU);B(RX,NX);RX.prototype.parse=function(a){if(null==a)return null;a=OX(this,a);var b=a.UI;return new PX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
RX.prototype.C=function(a){var b=[],c=0;F(gh(a),function(a){if("SurveyOption"==a.nodeName){var e,h;F(gh(a),function(a){switch(a.nodeName){case "DisplayName":e=vU(a);break;case "URL":h=vU(a)}},this);
null!=e&&null!=h&&(b.push({label:e,url:h}),c++)}},this);
return b};B(SX,PU);TX.prototype.o={Zv:"Siub",Yv:"Scs",Du:"Bgub",Cu:"Bgp"};TX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(gh(a),function(a){switch(a.nodeName){case this.o.Zv:b=vU(a);break;case this.o.Yv:c=vU(a);break;case this.o.Du:d=vU(a);break;case this.o.Cu:e=vU(a)}},this);
return b&&c&&d&&e?new SX(b,c,d,e):null};B(UX,PU);VX.prototype.o={dw:"TEMPLATE_PARAMETERS",ew:"TEMPLATE_URL"};VX.prototype.parse=function(a){if(null==a)return null;F(gh(a),function(a){switch(a.nodeName){case this.o.dw:Vea(this,a)}},this);
return new UX};B(WX,PU);XX.prototype.o={uv:"Line1",vv:"Line2",wv:"Line3",qv:"ImageUrl"};XX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(gh(a),function(a){switch(a.nodeName){case this.o.uv:b=vU(a,!0);break;case this.o.vv:c=vU(a,!0);break;case this.o.wv:d=vU(a,!0);break;case this.o.qv:e=vU(a)}},this);
return new WX(b,c,d,e)};B(YX,PU);ZX.prototype.parse=function(a){if(null==a)return null;var b;F(gh(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),D(E(a))||(b=a)}},this);
return new YX(b)};B($X,PU);B(aY,NX);var cpa=["menu","got_it","targeting_reason_header"],dpa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];aY.prototype.parse=function(a){if(null==a)return null;a=OX(this,a);var b=a.UI;if(!bY(b,cpa))return null;var c,d=!0,e=!1;F(dpa,function(a){Wea(b,a)&&(bY(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 $X(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};cY.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 UU(a)};B(dY,PU);eY.prototype.parse=function(a){return null!=a?new dY:null};fY.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new VU(a)};f=gY.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()};B(iY,nV);iY.prototype.Re=function(){var a=this.J,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:oO(E(this.C)),width:this.getWidth(),height:this.getHeight(),Kb:this.gd(),zf:this.qo||!a},b=V()&&iU(this.F,"hideMaster")?hY:Zea,a=iS(b,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.X;F(a.getElementsByTagName("object"),this.G,this);F(a.getElementsByTagName("a"),this.G,this);return a};B(jY,nV);jY.prototype.Re=function(){var a=P("div");a.innerHTML=this.C;this.G(a);return rV(this,a)};B(kY,nV);kY.prototype.getContent=function(){var a=kY.N.getContent.call(this);this.D&&(a=a.replace('src=""','src="'+oO(E(this.C))+'"'));return a};
kY.prototype.Il=function(){var a=kY.N.Il.call(this);this.D&&(a=a.replace('src=""','src="'+oO(E(this.C))+'"'));return a};
kY.prototype.Re=function(a){var b="";this.D||(b=oO(E(this.C)));b={id:this.X,url:b,Kb:this.gd(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=V()&&iU(this.F,"hideMaster")?hY:a?afa:$ea;a=iS(a,b);F(a.getElementsByTagName("a"),this.G,this);return a};
kY.prototype.Zg=function(){return!0};B(lY,nV);f=lY.prototype;f.hc=function(){return new ue(this.getWidth(),this.getHeight())};
f.getHeight=function(){return 63};
f.getWidth=function(){return null!=this.H?nr(this.H).width:0};
f.Tk=function(a){var b=this.getAd().B;return b&&b.Db("cleanup_text_overlay_spam_signals")?Zd(a,"text-image-link")?9:Zd(a,"text-ad-channel")?1:0:Zd(a,"text-image")?9:Zd(a,"text-ad-channel")?1:0};
f.Re=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.B,e="rtl";null!=d&&(e=N0.test(Yf(d,void 0))?"rtl":"ltr");d={title:d,text:c.C+" "+c.D,dir:e,Kb:this.gd()};if(c=c.A)d.image=oO(c),a=eb(a.D,function(a){return a instanceof cV}),null!=a&&(d.duration=gU(a.fa));
b.A&&(d.Rr=b.A);this.H=iS(Yea,d);F(this.H.getElementsByTagName("a"),this.G,this);this.H.id=this.X;this.H.style.height=this.getHeight()+"px";return this.H};B(mY,nV);mY.prototype.Re=function(){var a=E(this.C);D(E(this.gd()))||(a=new O(a),zf(a,"clickTAG",wa(this.gd())),a=a.toString());var b=P("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",oO(a));this.G(b);return rV(this,b)};pY.prototype.getContentType=function(){return null!=this.o?$U[this.o]||"Other":null};qY.prototype.ee=function(){return this.o};
qY.prototype.display=function(a){this.C=a;this.C.appendChild(this.o);a=this.o;var b=mr(this.C),b="left"==this.D?"0px":"right"==this.D?b.width-this.B.hc().width+"px":this.D+"px",c;c=mr(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";Uq(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});S(this.o,!1)};
qY.prototype.update=function(a,b){var c=null!=this.G?DU(this.G):0;this.A=0<=this.A?this.A:b;c<=a&&c+this.A>=a?cfa(this):S(this.o,!1)};B(rY,LW);
rY.prototype.o={uu:"Ad",fk:"AdParameters",wu:"AdSystem",xu:"AdTitle",PH:"Advertiser",Au:"AltText",Fu:"ClickThrough",Gu:"ClickTracking",Hu:"Companion",Iu:"CompanionAds",Ju:"CompanionClickThrough",Ku:"CompanionClickTracking",Mu:"Creative",uJ:"CreativeExtensions",Nu:"Creatives",Ru:"CustomClick",Uu:"Description",hk:"Duration",ERROR:"Error",bv:"Extension",cv:"Extensions",Qh:"HTMLResource",hv:"Icon",jv:"Icons",kv:"IconClicks",lv:"IconClickThrough",mv:"IconClickTracking",nv:"IconViewTracking",Sh:"IFrameResource",Th:"Impression",
xK:"InLine",LINEAR:"Linear",Av:"MediaFile",Bv:"MediaFiles",Hv:"NonLinear",Iv:"NonLinearAds",Jv:"NonLinearClickThrough",Kv:"NonLinearClickTracking",sM:"Pricing",Uh:"StaticResource",cw:"Survey",AN:"Tracking",kk:"TrackingEvents",NN:"VAST",hw:"VASTAdTagURI",iw:"VideoClicks",lw:"Wrapper"};
rY.prototype.A={vu:"adSlotID",zu:"allowMultipleAds",Oh:"apiFramework",Mn:"bitrate",Ou:"creativeType",Tu:"delivery",hk:"duration",XJ:"event",fv:"followAdditionalWrappers",$u:"expandedHeight",av:"expandedWidth",Ph:"height",Rh:"id",xv:"maintainAspectRatio",zv:"maxBitrate",Dv:"minBitrate",Ev:"minSuggestedDuration",Lv:"offset",Mv:"program",Qv:"required",Tv:"scalable",Rn:"sequence",Wv:"skipoffset",TYPE:"type",VERSION:"version",jw:"codec",Vh:"width",mw:"xPosition",ow:"yPosition"};
rY.prototype.B=function(){return new MW(this.C,ffa(this),null)};B(AY,LW);AY.prototype.B=function(){return new MW(this.A,null,yfa(this))};f=EY.prototype;
f.clone=function(){var a=new EY;"auto"==this.df?a.df="auto":"click"==this.df&&(a.df="click");a.o=this.o;a.Le=ec(this.Le);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.Nf=this.Nf;a.Mf=this.Mf;a.Kc=this.Kc;a.Jc=this.Jc;a.Bc=this.Bc;a.Ji=this.Ji;a.Ki=this.Ki;a.Dm=this.Dm;a.B=this.B;a.C=this.C;a.yh=this.yh;a.Ii=this.Ii;a.afcRmFallback=this.afcRmFallback;a.K=this.K;a.J=this.J;a.Df=this.Df;this.G&&(a.G=tb(this.G));
a.Db=this.Db;a.Jf=this.Jf;a.fl=this.fl;a.allowAdsPayCreator=this.allowAdsPayCreator;a.Xp=this.Xp;return a};
f.Le=null;f.Cb=null;f.df="unknown";f.Xp=0;f.Nf=0;f.Mf=0;f.Kc=0;f.Jc=0;f.Df=!1;f.Bc=null;f.Ji=!1;f.Ki=!1;f.Dm=!0;f.Db=function(){return!1};
f.Jf=function(){return window.NaN};
f.fl=function(){return""};
f.yh=0;f.Co=!0;f.Ii=null;f.afcRmFallback=!1;f.allowAdsPayCreator=!1;FY.prototype.H=function(){return this.C(this.D()).toString()};
FY.prototype.F=function(){var a;a=1;MO()&&(a+=4);if(!V()){var b=0;hO(fO(),41351017)&&(b+=7168);a=a+b}return a};var eZ={GN:"ultrahigh",oK:"high",Cv:"medium"},Kfa={kI:1E3,lI:1001,mI:1002,nI:1003,oI:1004,pI:1005,qI:1006},Lfa={yv:1,dv:2},Mfa={qJ:"content",VM:"site",WM:"site_content"};f=LY.prototype;f.Yh="high";f.Dl=!1;f.mk=1;f.nk=null;f.adType="video";f.adBlock=1;f.El=null;f.qk=!0;f.rk=null;f.Jk=null;f.Lg=null;f.experimentIds=null;f.gender=null;f.host=null;f.hostTierId=null;f.Fl=!1;f.language=null;f.zp=null;f.yp=null;f.Zi=1E5;f.$i=null;f.Bp=null;f.Ap=null;f.Yl=0;f.Tf=null;f.hj=null;f.nj=null;f.Em=null;
f.tagForChildDirectedTreatment=-1;f.url=null;f.Qi=null;f.Tm=null;f.Gl=null;f.an=null;f.Ym=null;f.Zm=null;f.$m=null;f.wk=null;var Hfa=(new Date).getTime();var Ifa={VI:"bumpervideo",ev:"flash",IMAGE:"image",aN:"skippablevideo",cN:"standardvideo",eN:"staticimage",TEXT:"text",VIDEO:"video"},XY=["flash","image","staticimage"],Jfa=[new ue(200,200),new ue(250,250),new ue(300,250),new ue(336,280),new ue(450,50),new ue(468,60),new ue(480,70),new ue(728,90)];B(fZ,FY);var Nfa=["bumpervideo","skippablevideo","standardvideo","video"];fZ.prototype.G={yu:"allow",Yu:"exclude",DM:"require"};fZ.prototype.F=function(){var a=fZ.N.F.call(this);V()&&this.o.nj&&(a|=this.o.nj);return a};
fZ.prototype.C=function(a){var b=new O(this.A.o),c=new O("//"+b.A+b.B),b=a.Qa();F(b,function(b){zf(c,b,a.get(b))});
hO(fO(),41351083)||pf(c,"https");return c};
fZ.prototype.D=function(){var a=new Je;a.set("sdkv",KY(this));a.set("sdki",this.F().toString(16));a.set("video_product_type",null!=this.o.Tf?V()?5:ua(this.o.Tf,"ca-games-")?4:ua(this.o.Tf,"ca-video-")?0:-1:-1);a.set("correlator",this.J.o);a.set("client",this.o.Tf);V()&&!D(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",gZ(this));a.set("channel",Pfa(this));a.set("output","xml_vast3");this.o.Dl&&
a.set("adtest","on");dU&&a.set("flash",PP);WY("alternate_ad_url",this.o.rk,a);WY("cpm",this.o.Jk,a);NY(a,this.A);V()||Tb(eZ,this.o.Yh)&&a.set("adsafe",this.o.Yh);this.o.host&&(a.set("host",this.o.host),WY("ht_id",this.o.hostTierId,a),null!=this.o.B&&WY("h_ch",this.o.B.join("+"),a));WY("hl",this.o.language,a);WY("cust_age",this.o.El,a);WY("cust_gender",this.o.gender,a);-1!=this.o.tagForChildDirectedTreatment&&WY("tfcd",this.o.tagForChildDirectedTreatment,a);WY("slotname",this.o.nk,a);if(RY(this.o)&&
(a.set("ea","0"),null!=this.A.Kc&&null!=this.A.Jc)){var b=SY(this.o,this.A.Kc,this.A.Jc,this.A.Df);a.set("image_size",b);D(b)&&(this.o.o=ZY(this.o.o,this.o.adType,!0),this.o.adType=this.o.o.join("_"))}a.set("ad_type",this.o.adType);b=jO(fO());D(E(b))||a.set("eid",b);OY(a);MY(a,this.J,this.A.D||this.o.Lg);a.set("unviewed_position_start","1");b=this.o.mk;a.set("videoad_start_delay",null!=b?b:1);IY(this,a);JY(this,a);GY(this,a);Ofa(this)&&a.set("video_format",null!=this.o.Qi&&V()?this.o.Qi:Dl&&ru(6)||
MH&&ru(4)||LH&&IO(LO,2.3)?43:18);b=null!=this.o.hj?this.o.hj:jb(this.o.adType.split("_"),"text")?this.G.yu:this.G.Yu;a.set("t_pyv",b);WY("min_ad_duration",this.o.Yl,a);0<this.o.Zi&&a.set("max_ad_duration",hZ(this.o.Zi,gZ(this)));0<this.o.$i&&a.set("sdmax",hZ(this.o.$i,gZ(this)));TY(a,this.K);V()&&(b=UR(this.o.Lg),null!=b&&a.set("video_doc_id","yt_"+b));WY("description_url",this.o.Lg,a);V()&&(WY("lact",PY(this.A),a),WY("loeid",this.o.Gl,a),WY("lsv",this.o.Fl,a),this.o.qk||WY("scs","false",a),WY("targeting",
this.o.Em,a),WY("video_cpm",this.o.Tm,a),WY("yt_pt",this.o.an,a),WY("ytdevice",this.o.Ym,a),WY("ytdevicever",this.o.Zm,a),WY("yt_vis",QY(this.A),a),WY("dbp",this.o.$m,a),WY("avo",this.o.wk,a));null!=a.get("ms")||WY("ms",this.o.C,a);HY(a);UY(this.A,a,!1);null!=this.A.Le&&WY("loc",this.A.Le.page_location,a);return a};B(iZ,FY);iZ.prototype.C=function(a){var b=new O(this.A.o);F(a.Qa(),function(c){D(a.get(c))?b.o.remove(c):zf(b,c,a.get(c))});
hO(fO(),41351083)||pf(b,"https");return b};
iZ.prototype.D=function(){var a=new Je;a.set("sdkv",KY(this));JY(this,a);GY(this,a);HY(a);null!=this.A.Bc&&a.set("adk",this.A.Bc);return a};B(jZ,FY);jZ.prototype.D=function(){return new Je};
jZ.prototype.C=function(){var a=new jU(this.A.o),b=KY(this);b&&kU(a,"dc_sdkv",[b]);(b=this.F().toString(16))&&kU(a,"dc_sdki",[b]);(b=this.B.H)&&kU(a,"dc_submodel",[b]);null!=this.A.Bc&&kU(a,"dc_adk",[this.A.Bc]);b=new Je;IY(this,b);JY(this,b);GY(this,b);HY(b);Me(b,"js")&&kU(a,"dc_js",[b.get("js")]);Me(b,"msid")&&kU(a,"dc_msid",[b.get("msid")]);Me(b,"frm")&&kU(a,"dc_frm",[b.get("frm")]);Me(b,"osd")&&kU(a,"dc_osd",[b.get("osd")]);Me(b,"sdr")&&kU(a,"dc_sdr",[b.get("sdr")]);kU(a,"dcmt",["text/xml"]);
Me(b,"vpa")&&kU(a,"vpa",[b.get("vpa")]);Me(b,"mpt")&&kU(a,"mpt",[b.get("mpt")]);Me(b,"mpv")&&kU(a,"mpv",[b.get("mpv")]);hO(fO(),41351083)||pf(a,"https");return a};B(kZ,FY);kZ.prototype.C=function(a){a=new O(a.get("adTagUrl"));hO(fO(),41351083)||pf(a,"https");return a};
kZ.prototype.H=function(){var a=E(this.D().get("adTagUrl"));hO(fO(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};
kZ.prototype.D=function(){var a=new Je;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(lZ,FY);lZ.prototype.C=function(a){return new O(a.get("adTagUrl"))};
lZ.prototype.D=function(){var a=new Je;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(mZ,FY);mZ.prototype.C=function(a){var b=new O(this.A.o);F(a.Qa(),function(c){D(a.get(c))?b.o.remove(c):zf(b,c,a.get(c))});
hO(fO(),41351083)||pf(b,"https");return b};
mZ.prototype.D=function(){var a=new Je,b=jO(fO());D(E(b))||a.set("eid",b);a.set("sdkv",KY(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);IY(this,a);JY(this,a);GY(this,a);HY(a);var b=(new O(this.A.o)).o,c=new LY;c.A=cZ(c.A,b.get("overlay"));a.set("afvsz",SY(c,this.A.Kc,this.A.Jc,this.A.Df));b=this.B.B;null!=b&&(this.B.B=null,a.set("fbidx",b));b=this.B.O;null!=b&&a.set("ppid",b);b="null";c=this.B.F;null!=c?b=c:nZ(this.A.location)?
b=this.A.location:nZ(this.A.referrer)&&(b=this.A.referrer);a.set("url",b);b=this.B.H;null!=b&&a.set("submodel",b);b=this.B.G;null==b||V()||(b=Qfa(b),a.set("ciu_szs",b));a.set("impl","");a.set("unviewed_position_start","1");return a};B(oZ,mZ);oZ.prototype.C=function(a){a=oZ.N.C.call(this,a);this.J||Sfa(this,a);return a};B(pZ,jZ);pZ.prototype.C=function(a){a=pZ.N.C.call(this,a);this.J||Ufa(this,a);return a};B(qZ,FY);var Vfa=["CPN","MT","LACT","VIS","TSLA"];qZ.prototype.C=function(){var a=new O(WN(this.A.o,Wfa(this)));hO(fO(),41351083)||pf(a,"https");return a};
qZ.prototype.D=function(){return new Je};vZ.prototype.Fd=function(){return null!=this.o&&this.o.Fd()?!0:0<this.ads.length&&this.A<this.ads.length-1};
vZ.prototype.K=function(a,b){return this.D?0<a.length?a:b:vb(b,0,1)};
vZ.prototype.B=function(a,b,c){var d;if(!(d=null!=a.o)){var e=this.F;d=e.Kc||0;e=e.Jc||0;YV(a)&&!a.P?bW(a,"nonlinear")?tZ(a,d,e):uZ(a):bW(a,"linear")?uZ(a):bW(a,"nonlinear")&&tZ(a,d,e);d=null!=a.o}d?(this.G++,b(a)):(b=kb(a.D)?wO(DY):a.isLinear()?wO(PZ):wO(Ooa),d=hX(b,a),iU(hea(a),"rm")?b.A=!1:tO(a.$,d),c(b))};
vZ.prototype.H=function(a,b,c){var d=this.F.clone();d.A="";d.o=a.Ka;d.Bc=rT(d.o,d.Ii);xZ(this,a,d,b,c)};B(CZ,vZ);CZ.prototype.Fd=function(){return null!=this.o&&this.o.Fd()?!0:0<this.ads.length&&this.A<this.ads.length-1&&0==this.G};
CZ.prototype.K=function(a,b){return b};
CZ.prototype.B=function(a,b,c){var d=-1,d=null==this.o?UV(a):UV(this.ads[this.A]);this.M.B=d;CZ.N.B.call(this,a,b,c)};
CZ.prototype.H=function(a,b,c){this.M.B=-1;CZ.N.H.call(this,a,b,c)};DZ.prototype.fetch=function(a,b,c){D(E(a.A))?qU(a.o)&&null!=this.o&&!this.o.H?this.o.start(a,y(function(){FZ(this,a,b,c)},this)):FZ(this,a,b,c):lga(this,a,b,c)};
DZ.prototype.A=function(a,b,c,d){var e=Xfa(a,this.C).H(),e=Dba(e,d);d=a.Ki&&lO(Hoa,e)?"POST":"GET";aga(this.B,e,y(function(d){EZ(this,d,a,b,c)},this),y(function(b,d){var e;
e=8==b?wO(HZ):5==b||6==b?wO(Ioa):wO(Joa,d);c(e);e="third_party";nU(a.o)?e="adsense":pU(a.o)?e="dart":qU(a.o)&&(e="xfp");e={rt:e,ec:b};NO.getInstance().o(18,e,!0)},this),this.F,d);
nga(a)};GZ.prototype.reset=function(a){this.o=a+K()};B(KZ,J);var epa={NORMAL:"normal",FULLSCREEN:"fullscreen"};B(QZ,G);f=QZ.prototype;f.Yg=!1;f.fp=1E3;f.Zp=30;f.$p=45E3;f.or=15E3;f.Tr=!1;f.Hk=function(){var a=RZ(this);this.o.appendChild(this.K);this.display(this.K);this.play();return a};
f.ma=function(){null==this.M&&(this.M=this.Hk());return this.M};
f.play=function(){null==this.A&&(this.A=Ud(function(){this.Yg||(this.ka(),this.Tr=!0);this.A=null},this.Tr?this.or:this.$p,this))};
f.stop=function(){null!=this.A&&(Vd(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(){or(this.ma(),1);null!=this.B&&(Vd(this.B),this.B=null)};
f.ka=function(){or(this.ma(),this.Zp/100);null==this.B&&(this.B=Ud(function(){this.U();this.B=null},400,this))};
f.wy=function(){this.show();this.Yg=!0;this.F=Ud(function(){this.Yg&&this.stop();this.F=null},this.fp,this)};
f.UD=function(){null!=this.F&&(Vd(this.F),this.F=null);this.Yg&&this.play();this.Yg=!1};
f.V=function(){QZ.N.V.call(this);this.stop();Mb(this.bd)};B(SZ,QZ);f=SZ.prototype;f.Hk=function(){var a=RZ(this);L(a,"ima-container-rotator");this.H=P("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=P("div",{id:Xa(),"class":"ima-container-selector"});e.style.top=d+"px";this.bd.R(e,"click",function(a){this.fg(a.target)});
this.O.set(e.id,a);this.G.appendChild(e)},this);
this.fg(ih(this.G));this.play();return a};
f.play=function(){null==this.C&&(this.C=new Sd(this.P),this.bd.R(this.C,"tick",this.sD));SZ.N.play.call(this);this.C.start()};
f.stop=function(){null!=this.C&&this.C.stop();SZ.N.stop.call(this)};
f.sD=function(){var a=this.D;this.fg((n(a.nextElementSibling)?a.nextElementSibling:hh(a.nextSibling))||ih(this.D.parentNode))};
f.fg=function(a){this.D&&be(this.D,"ima-container-active");L(a,"ima-container-active");var b=this.O.get(a.id);eh(b,this.H);this.D=a;this.H=b;this.display(b)};B(TZ,QZ);TZ.prototype.ka=v;TZ.prototype.Hk=function(){var a=RZ(this);F(this.C,function(a){L(a,"ima-container-highlight");this.o.appendChild(a);this.display(a)},this);
this.play();return a};B(UZ,HA);f=UZ.prototype;f.play=function(){if(this.kb())return!1;this.bj();this.uc("play");this.startTime=K();this.o=1;if(zoa())return Uq(this.A,this.G),this.C=Ud(this.yx,void 0,this),!0;this.Cm(!1);return!1};
f.yx=function(){mr(this.A);wr(this.A,this.F);Uq(this.A,this.B);this.C=Ud(y(this.Cm,this,!1),1E3*this.D)};
f.stop=function(){this.kb()&&this.Cm(!0)};
f.Cm=function(a){vr(this.A,"");Vd(this.C);Uq(this.A,this.B);this.endTime=K();this.o=0;a?this.uc("stop"):this.Zb();this.fh()};
f.V=function(){this.stop();UZ.N.V.call(this)};
f.pause=function(){};B(XZ,J);f=XZ.prototype;f.start=function(){this.yl();this.A=0;YZ(this);this.C=!0;this.D.start()};
f.play=function(){this.C||(YZ(this),this.C=!0,this.D.start())};
f.pause=function(){this.C&&YZ(this)};
f.yl=function(){};
f.UB=function(){this.A+=.2;this.xl(this.A,this.K);this.aa("timeUpdate");0>=this.K-this.A&&(YZ(this),this.aa("end"))};
f.xl=v;f.V=function(){this.C=!1;this.J.dispose();XZ.N.V.call(this)};B($Z,J);$Z.prototype.F=function(){this.o?this.aa("videoUnmuteClicked"):this.aa("videoMuteClicked")};
$Z.prototype.V=function(){this.D.dispose();this.D=null;$Z.N.V.call(this)};B(a_,J);f=a_.prototype;f.V=function(){null!=this.H&&(this.H.dispose(),this.H=null);null!=this.J&&(this.J.dispose(),this.J=null);d_(this);null!=this.D&&(dh(this.D),this.D=null);null!=this.B&&(this.B=null);null!=this.o&&(dh(this.o),this.o=null);this.M.dispose();this.M=null;this.G.dispose();this.G=null;this.U=!1;a_.N.V.call(this)};
f.update=function(a,b){this.Z=b;if(!(0>=this.Z||null==this.A.skipOffset||0>DU(this.A.skipOffset))){var c=DU(this.A.skipOffset);c>=this.Z||3==this.C||(0>a?this.C=1:a<=c?(2!=this.C&&(c_(this,0),VZ(this.D,.5,"ease-out",0,1).play(),S(this.D,!0)),this.C=2):(3!=this.C&&(S(this.o,!0),this.J=new UZ(this.D,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.H=VZ(this.o,.5,"ease-out",0,1),this.J.play(),this.H.play(),this.B.autofocus&&
this.B.focus(),this.G.R(lh(this.o),"mouseover",this.pD),this.G.R(lh(this.o),"mouseout",this.Kr),this.Kr()),this.C=3,this.aa("skipshown")))}2==this.C&&c_(this,a)};
f.skip=function(){return null==this.A.skipOffset||3!=this.C||this.O?!1:(this.O=!0,this.aa("PUBLISHER_INVOKED_SKIP"),!0)};
f.HD=function(a){V()||a.stopPropagation();3!=this.C||this.O||(this.O=!0,this.aa("skip"))};
f.Kr=function(){null==this.F&&(this.F=Ud(function(){this.U=!0;VZ(this.o,.5,"ease-in",1,.5).play();this.F=null},this.U?5E3:15E3,this))};
f.pD=function(){or(this.o,1);d_(this)};
f.setVisible=function(a){null!=this.K&&S(this.K,a);null!=this.B&&S(this.B,a)};B(g_,J);f=g_.prototype;f.show=function(){null!=this.A&&S(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.V=function(){null!=this.A&&(dh(this.A),this.A=null);h_(this);F(this.U,function(a){SR(a)});
this.U=[];this.D=null;this.B.dispose();this.B=null;this.va=!1;g_.N.V.call(this)};
f.update=function(a,b,c,d,e){this.va=!0;null!=this.A&&(null!=this.ia&&Fga(this,a,c,d,e),null!=this.$&&jr(this.$,a/c*100+"%"),null!=this.sa&&jr(this.sa,b/c*100+"%"),0<c&&null!=this.o.skipOffset&&null!=this.C&&(EU(this.o.skipOffset,c),this.C.update(a,c)),this.o.G&&0<c&&5>c-a&&L(this.Z,"videoAdUiTopBarNoFade"),F(this.Ia,function(b){b.update(a,c)},this))};
f.xw=function(){this.aa("videoAuthorIconClicked")};
f.yw=function(){this.aa("videoAuthorClicked")};
f.Vp=function(){this.aa("videoLearnMoreClicked")};
f.ED=function(){this.aa("videoShareClicked")};
f.QD=function(){this.aa("videoTitleClicked")};
f.Qy=function(a){a.preventDefault()};
f.Fj=function(){this.aa("click")};
f.DD=function(){L(this.Z,"videoAdUiTopBarTransitions")};
f.bD=function(){var a=vh(this.A,"html5-video-player"),b=this.o.C;null!=a&&(b.C=new zm(b),b.A=new J,b.A.ig(this),b.F=a,b.ir(),b.A.aa("why_this_ad_url"));null!=this.C&&this.C.setVisible(!1)};
f.bE=function(){null!=this.C&&this.C.setVisible(!0)};f=l_.prototype;
f.ir=function(){var a={heading:"",targetingReasons:[],learnMore:"",Qk:"",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=oS(X(b[0])+OS()+X(c)+oS("</a>")+X(d));a.Qk=b}a.targetingReasons=tb(this.D.F);a.close=this.D.B}else a.Qk=PS(),b=ra("Got It"),a.close=""+b;null!=this.B&&(a.mute=this.B.C);n_(this,xda,a);m_(this,"videoAdUiWhyThisAdCloseButton",this.oi);m_(this,"videoAdUiWhyThisAdControl",this.Bo);m_(this,"videoAdUiWhyThisAdMute",this.aD);
a=this.Bo;b=Og("videoAdUiWhyThisAdGenericMessage",this.o);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.C.R(b,"click",a))};
f.oi=function(){null!=this.C&&(this.C.dispose(),this.C=null);e_(this)&&null!=this.o&&(null!=this.A&&(this.A.aa("why_this_ad_got_it"),this.A.dispose(),this.A=null),this.o.parentElement.removeChild(this.o),this.o=null)};
f.Bo=function(){null!=this.A&&this.A.aa("why_this_ad_settings_url")};
f.aD=function(){if(null!=this.B){this.A.aa("mute_interaction_url");var a,b=QX(this.B);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},n_(this,zda,a),m_(this,"videoAdUiMuteCancel",this.ir),m_(this,"videoAdUiMuteConfirm",this.Pw);else{this.A.aa("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=IU(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);
n_(this,yda,a);m_(this,"videoAdUiMuteUndo",this.TD);m_(this,"videoAdUiMuteConfirm",this.KD);m_(this,"videoAdUiMuteCancel",this.Ek)}}};
f.Pw=function(){this.A.aa("mute_url");this.Ek()};
f.TD=function(){this.A.aa("mute_undo_url");this.oi()};
f.KD=function(){if(null!=this.B){for(var a=QX(this.B),b=!1,c=0;c<a;c++){var d=Og("videoAdUiMuteOption"+c,this.o);if(null!=d&&d.checked){b=!0;qO(this.B.A[c].url);break}}if(!b)return}this.Ek()};
f.Ek=function(){this.A.aa("MUTE_AD");this.oi()};B(r_,XZ);f=r_.prototype;f.start=function(){this.yl();this.B.update(0,this.L);VZ(this.o,this.H.A,"ease-out",0,1).play();this.J.R(this.B,"skip",this.tw);r_.N.start.call(this)};
f.getContainer=function(){return this.o};
f.yl=function(){var a=mr(this.o);if(1==this.G){var b=400>=(0,window.parseInt)(Xq(this.o,"width"),10)||400>=a.width;M(this.o,"videoAdUi-mobile",b)}else if(2==this.G){var c=ih(this.o),d=mr(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.tw=function(){this.pause();this.aa("skip")};
f.xl=function(a,b){this.B.update(a,b);if(this.F){var c=WZ({qg:q_(b-a)});oh(this.F,c)}};
f.V=function(){this.B&&this.B.dispose();bh(this.o);r_.N.V.call(this)};B(s_,G);s_.prototype.o=function(a){if($N.o){var b=MR(IR(),a.type,this.F);this.M(a.type,b)}else Eea(HW(),a.type,this.F,y(this.M,this,a.type))};
s_.prototype.M=function(a,b){var c=ec(b||{});if("timeout"==(c.viewability||"")){var d=this.J[a];null!=d&&(c.viewability=d)}null!=c.viewability&&(d=c.viewability,null!=d&&(this.A.VIEWABILITY=d));"impression"==a&&!this.K&&null!=this.G&&0<this.G.length&&(d=jb(this.H,"impression"),t_(this,this.G,{},d),this.K=!0);if(Iga(this,a)){var d=$N.F&&jb(this.H,a),e=LU(this.C,a);0<e.length&&(t_(this,e,c,d),this.B.set(a,!0))}this.A.VIEWABILITY="na"};B(u_,J);u_.prototype.B=function(a){switch(a.type){case "companion_impression":this.aa(new VN("companionImpression",this.o));break;case "companion_click":this.aa(new VN("companionClick",this.o))}};B(v_,J);f=v_.prototype;f.mh=function(){var a=ib(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};
f.oj=function(){if(!w_(this)){if(kb(this.ads))throw xO(PZ);this.H=this.ads[0];if(null==this.H.o)throw wO(PZ);}};
f.oa=function(a,b){var c=w_(this)?Y(this):null;this.aa(new VN(a,c,b))};
f.wA=function(){};
f.dm=function(){};
f.destroy=function(){this.dispose()};
f.V=function(){w_(this)&&(NV(this.H,null),this.H=null);Mb(this.J);this.G=this.J=null;this.fa=!1;$N.o?IR().F=null:this.sa&&(HW().F=null);v_.N.V.call(this)};
f.je=function(){return[]};
f.getCurrentAd=function(){return this.ads[0]};
f.init=function(a){G_(this);this.Oi(a);this.Fa=!0;this.gh();if($N.o){a=IR();var b=y(this.mp,this);a.F=b}else this.sa&&(a=HW(),b=y(this.mp,this),a.F=b)};
f.gh=function(){this.oa("loaded")};
f.sendImpressionUrls=function(a){w_(this)&&V()&&tO(KV(Y(this)),a)};
f.Dr=v;f.Yc=function(a,b,c){if(!this.fa){if(null==a)throw xO(SS,null,"displayContainer");if(null!=c){var d=new Uj(Wb(this.B));if(!Ue(Wb(c),d.contains,d))throw xO(SS,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.B;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Wg&&(c.Wg=[]);Lga(c.Wg);if(!ga(c.loadVideoTimeout)||0>=c.loadVideoTimeout)c.loadVideoTimeout=15E3;hc(d,c)}this.content=b;this.C=a;this.oj();this.o=this.C.Li(Jga(this));this.fa=!0}};
f.ue=function(a){a=iU(wV(a),"rm")?a.K:KV(a);F(a,function(a){nb(this.D.G,a)},this)};
f.Od=function(a,b){F(b,function(b){b=YU(a,b);JU(this.D.C,b)},this)};
f.ih=function(a){if(a instanceof cV){var b=dV(a);F(b.Qa(),function(a){var d=b.get(a);F(d,function(b){KU(this.D.C,a,b)},this)},this)}};
f.getCurrentTime=function(){return-1};
f.Gd=function(){return-1};
f.Of=function(){return-1};
f.ed=function(a,b,c){this.Oi(c)};
f.pause=v;f.resume=v;f.skip=v;f.start=function(){G_(this);if(!this.Fa)throw wO(y_,null,"Must call init before start.");};
f.stop=function(){this.destroy()};
f.wl=function(){return null!=this.volume?this.volume:0};
f.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&zO(this,SS,null,"volume",String(a));this.volume=a};
f.Oi=function(a){if(!Tb(epa,a))throw xO(SS,null,"view mode",a);this.K=a};
f.getMediaUrl=function(){return null};
f.lp=function(){return null};
f.np=function(){return null};
f.Ef=function(){return null};
f.nh=function(){E_(this,"abandon")};
f.mp=function(){return{currentTime:this.getCurrentTime(),duration:this.Gd(),isPlaying:null!=this.o?this.o.kb():!1,isVpaid:null!=this.getCurrentAd()?null!=kW(this.getCurrentAd()):!1,isYouTube:V(),volume:this.wl()}};
f.nD=function(a){F(sb(C$,Vb(E$)),function(b){var c=IU(a.o,b);kb(c)||this.lm(b,c)},this);
Hga(this.D,a.K)};
f.lm=function(a,b){F(b,function(a){var b=a.getType();a=a.getUrl();KU(this.D.C,b,a)},this)};B(K_,v_);f=K_.prototype;f.start=function(){K_.N.start.call(this);this.C.ld();this.L=this.C.ge();if(null!=this.L){E_(this,"show_ad");bh(this.L);var a=this.no();$N.o?Vca(IR(),a):Bea(HW(),a);this.L.appendChild(a);this.ni();F(this.ca,function(a){a()});
lb(this.ca);this.U=!0}};
f.ed=function(a,b,c){K_.N.ed.call(this,a,b,c);this.ni()};
f.V=function(){Mb(this.A);this.C=this.A=null;this.U=!1;$N.o?IR().C=null:HW().B=null;null!=this.L&&(bh(this.L),this.L=null);K_.N.V.call(this)};
f.no=function(){var a=Y(this).o;if(null==a)throw a=xO(PZ),M_(this,a),a;var b=Y(this);qV(a,B_(this));oV(a,this.Bx);a.D||pV(a,pa(this.ql,b,a));try{D_(this,b)}catch(d){throw M_(this,d),d;}this.ue(b);var c=iX(b,this.o);this.D.A=c;b.o&&(this.ue(b),(b=b.o)&&this.Od(b,Goa));this.Od(a,["start"]);L_(this,a);return this.Zh([a.ee()])};
f.op=function(a,b){return new QZ(a[0],b)};
f.Zh=function(a){null!=this.A&&this.A.stop();this.A=this.op(a,y(this.xi,this));a=this.A.ma();M(a,"autoalign",this.B.ko);V()&&M(a,"viewmode-fullscreen","fullscreen"==this.K);a.appendChild(this.ia);B_(this).R(a,"click",kc);(w_(this)&&YV(Y(this))||this.B.useStyledNonLinearAds)&&this.uk(this.A.o);return a};
f.uk=function(a){var b=B_(this);this.X=iS(yga);b.R(this.X,"click",this.Sx);var c=ra("Close"),c=iS(xga,{close:""+c});b.R(c,"click",this.Gi);L(a,"extra-padding");null!=this.la&&728<=this.la.getWidth()&&L(a,"wide-overlay-ad");a.appendChild(c)};
f.ni=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=mr(this.C.ge()),h;h=V()?mr(ih(this.A.o)):mr(this.A.o);if(h.width+c>e.width||h.height+d>e.height)throw c=xO(Moa,null),M_(this,c),d={},d.pid=BW.getInstance().o,d.cz=h.width+"x"+h.height,d.sz=e.width+"x"+e.height,d.ct=Y(this).o.getContentType(),d.vm=this.K,NO.getInstance().o(38,d,!0),this.stop(),c;}};
f.Bx=function(a){F_(this,"click");kc(a)};
f.Gi=function(){E_(this,"close");this.xi(!0)};
f.ql=function(a,b){pV(b,v);this.U?this.jh(a,b):this.ca.push(y(this.jh,this,a,b))};
f.jh=function(a){a=iX(a,this.o);this.D.A=a;F_(this,"impression");E_(this,"creativeview");F_(this,"start")};
f.xi=function(a){null!=this.A&&(this.A.stop(),null!=this.X&&eh(this.X,this.A.o),a?this.oa("userClose"):this.oa("autoClose"))};
f.Sx=function(a){kc(a);this.A.show();this.A.play();eh(this.A.o,this.X);Ud(function(){S(this.ia,!1)},500,this);
S(this.ia,!0);this.oa("userRecall")};B(N_,K_);f=N_.prototype;f.op=function(a,b){if(this.Z||null==b)b=v;var c;V()&&this.Z?c=new QZ(a[0],b):1<a.length?P_(this)||"fullscreen"==this.K&&V()?c=new TZ(a):(c=new SZ(a),c.P=15E3):c=new QZ(a[0],b);c.fp=100;this.Z&&(c.Zp=30);c.$p=45E3;c.or=6E3;M(c.o,"scalable",this.Z);M(c.ma(),"yt-text-overlay",V()&&this.Z);return c};
f.uD=function(a){var b=a.o;null!=b?(null==this.ha&&(this.ha=a.getExtension("AdSense").C),pV(b,pa(this.ql,a,b)),oV(b,pa(this.Cx,a,b)),"Text"==b.getContentType()&&(this.Z=!0),this.O.push(b)):(b=wO(PZ),b=hX(b,a),tO(JV(a),b))};
f.Yc=function(a,b,c){N_.N.Yc.call(this,a,b,c);this.B.ko=!0;a=Y(this);kb(LV(a))?V()&&this.oa("companionBackfill"):D_(this,a)};
f.no=function(){null==this.O&&(this.O=[],F(this.ads,this.uD,this));if(0==this.O.length)throw xO(PZ);var a=[];F(this.O,function(b){qV(b,B_(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.qo=!0);a.push(b.ee());dea(b,this.ha.F)},this);
if(0==a.length)throw xO(PZ);Mga(this);return this.Zh(a)};
f.start=function(){N_.N.start.call(this);!this.ea&&P_(this)&&(this.ea=!0,this.oa("contentPauseRequested"));null!=this.F&&this.F.start();if(this.U){var a=Q_(this);NO.getInstance().o(33,a)}};
f.Gi=function(a){N_.N.Gi.call(this,a);F(this.O,function(a){var c=iX(a.getAd(),this.o);this.D.A=c;this.Od(a,["close"]);E_(this,"close");this.D=new s_},this)};
f.xi=function(a){N_.N.xi.call(this,a);P_(this)&&(null!=this.L&&bh(this.L),this.ea&&(this.ea=!1,this.oa("contentResumeRequested")))};
f.Zh=function(a){a=N_.N.Zh.call(this,a);if(P_(this)){var b=fU(2);L(this.A.o,b);L(a,b)}return a};
f.uk=function(a){if(P_(this)){var b=lh(a);b&&((a=gh(a)[0])&&Uq(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").C||new WW,this.F=new r_(b,a,2,O_(this),!0),B_(this).R(this.F,"skip",this.Vx),B_(this).R(this.F,"end",this.Gy))}else N_.N.uk.call(this,a),b=iS(zga,O_(this)),a.appendChild(b)};
f.ql=function(a,b){this.U?this.jh(a,b):this.ca.push(y(this.jh,this,a,b));pV(b,v);this.oa("impression")};
f.jh=function(a,b){var c=iX(a,this.o);this.D.A=c;this.ue(a);this.Od(b,["creativeview"]);E_(this,"impression");E_(this,"creativeview");F_(this,"start");this.D=new s_};
f.Cx=function(a,b,c){c=hr(c);a=a.getExtension("AdSense");a=new O(a.B);var d=b.getWidth();(0,window.isNaN)(d)&&(d=mr(b.ee()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=mr(b.ee()).height);b=fO();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.K,"sdkv=h.0.0.0","eids="+jO(b)];V()||(c=mr(this.C.ge()),d=this.F?Gga(this.F):new re(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));rO(a,"elementclick",b);F(this.O,function(a){var b=iX(a.getAd(),this.o);this.D.A=b;L_(this,
a);E_(this,"click");this.D=new s_},this);
this.oa("click")};
f.Oi=function(a){this.K!=a&&(N_.N.Oi.call(this,a),this.oa("expandedChanged"))};
f.ni=function(){N_.N.ni.call(this,this.F?15:0,this.F?65:0)};
f.Vx=function(){R_(this,"skip")};
f.Gy=function(){R_(this,"close")};var S_=["classid","data","movie","type","typemustmatch"];B(T_,BE);f=T_.prototype;f.pk="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.ma()&&kr(U_(this),this.J,this.C);return this};
f.Cf=function(){T_.N.Cf.call(this);for(var a=this.ma(),b=this.A.Qa(),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(Tg&&!yc(11)){d=this.K;c={allowFullScreen:"true",AllowScriptAccess:this.pk,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()};Nga(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(Fg("param",{name:h,value:d[h]}));h=Gg({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);h=Fg("object",h,c)}else h={AllowScriptAccess:this.pk,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=Gg({src:this.K,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},h),h=Fg("embed",h);a.innerHTML=xg(h);this.J&&this.C&&this.setSize(this.J,this.C);this.B.R(this.ma(),Vb(poa),kc)};
f.Fi=function(){if(null!=this.M&&!(0<=Ua(PP,this.M)))throw Error("Method not supported");var a=this.F.createElement("DIV");a.className="goog-ui-media-flash";this.o=a};
f.V=function(){T_.N.V.call(this);this.A=null;this.B.dispose();this.B=null};B(V_,v_);var fpa=ug(gg(hg("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));ug(gg(hg("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));f=V_.prototype;f.V=function(){this.Z=!1;this.A&&this.A.dispose();Vd(this.X);this.L&&this.oa("contentResumeRequested");this.oa("allAdsCompleted");V_.N.V.call(this)};
f.Of=function(){var a=this.Vb("getAdRemainingTime");return ga(a)?a:-1};
f.wl=function(){var a=this.Vb("getAdVolume");return ga(a)?a:-1};
f.Yc=function(a,b,c){V_.N.Yc.call(this,a,b,c);this.L=Y(this).o instanceof cV};
f.init=function(a){V_.N.init.call(this,a);window[this.la]=y(this.hx,this);B_(this).R(HW(),D$,this.Jy);this.A=new T_(fpa);this.A.setSize(this.ea,this.ca);this.A.pk="always";a=Y(this);a=null===a.o?null:a.o.Ri();D(E(a))?(X_(this,V0,Error("Flash VPAID ad url is empty.")),this.stop()):(this.A.A.set("vpaid",a),this.A.A.set("vpaidEventHandler",this.la),this.C.ld(),this.A.render(this.C.ge()),this.X=Ud(this.UA,this.B.loadVideoTimeout,this))};
f.start=function(){if(this.Z){V_.N.start.call(this);var a=Y(this);this.D.F=a.fa;var b=iX(a);this.D.A=b;if(b=a.o)this.ue(a),this.Od(b,C$),this.ih(b),I_(this,a);this.C.ld();E_(this,"show_ad");this.F=new Sd(250);B_(this).R(this.F,"tick",this.Nz);this.F.start();this.Vb("startAd");this.L?this.oa("contentPauseRequested"):(this.oa("contentResumeRequested"),W_(this))}else this.ia=!0};
f.stop=function(){this.na||(this.na=!0,this.Vb("stopAd"),this.C.ka(),null!=this.F&&(this.F.stop(),this.F=null),V_.N.stop.call(this))};
f.ed=function(a,b,c){V_.N.ed.call(this,a,b,c);this.ea=a;this.ca=b;this.Vb("resizeAd",a,b,c)};
f.pause=function(){null!=this.F&&this.F.stop();this.Vb("pauseAd")};
f.resume=function(){null!=this.F&&this.F.start();this.Vb("resumeAd")};
f.setVolume=function(a){this.Vb("setAdVolume",a)};
f.gh=function(){};
f.skip=function(){this.Vb("skipAd")};
f.Gd=function(){var a=this.Vb("getAdDuration");if(ga(a))return a;a=this.Of();return 0<=a?this.U/1E3+a:-2};
f.isLinear=function(){var a=this.Vb("getAdLinear");return fa(a)?a:this.L};
f.Nz=function(){this.U+=250};
f.Vb=function(a){if(!this.A||!U_(this.A))return null;for(var b=U_(this.A),c=[],d=0;d<arguments.length;d++)c.push(arguments[d]);var d=c.shift(),e=!1;this.Z&&(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.Jy=function(a){var b=a.type;if(jb(D$,b)){if("externalActivityEvent"==b&&(b=a.o.eventName,!E$[b]))return;F_(this,b)}};
f.UA=function(){X_(this,F$,null,(this.B.loadVideoTimeout/1E3).toString());this.stop()};
f.getCurrentTime=function(){return this.U/1E3};
f.hx=function(a,b){switch(a){case "flashReady":this.Vb("handshakeVersion","2.0");var c=MV(Y(this));U_(this.A).initAd(this.ea,this.ca,this.K,this.B.bitrate,c);break;case "AdLoaded":Vd(this.X);this.Z=!0;var c=this.Vb("getAdCompanions"),d=w(c)?c:"",c=Y(this);kb(LV(c))&&(d=uY(d,c.o.o),kb(d)||uV(c,d));F_(this,"loaded");this.ia&&(this.ia=!1,this.start());break;case "AdStarted":E_(this,"impression");E_(this,"creativeview");this.oa("start");break;case "AdVideoStart":E_(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=E(iW(Y(this)))),null!=c&&pO(c));E_(this,"click");this.oa("click");break;case "AdDurationChange":this.oa("durationChange");break;case "AdRemainingTimeChange":this.oa("durationChange");W_(this);break;case "AdError":c="AdError";b&&(c=b.message);X_(this,V0,Error(c));this.stop();break;case "AdExpandedChange":this.oa("expandedChanged");break;case "AdImpression":c=Y(this);kb(LV(c))||D_(this,c);this.oa("impression");break;case "AdLinearChange":c=this.isLinear();!this.L&&c?
(this.oa("contentPauseRequested"),Vd(this.ha)):this.L&&!c&&(this.oa("contentResumeRequested"),W_(this));this.L=c;d=this.H;d.ha=!0;d.ia=c;this.oa("linearChanged");break;case "AdVolumeChange":c=b.volume;c!=this.O&&(c!=this.O&&this.oa("volumeChange"),0==c&&0!=this.O?(E_(this,"mute"),this.oa("mute")):0==this.O&&0!=c&&E_(this,"unmute"),this.O=c);break;case "AdPaused":F_(this,"pause");break;case "AdUserClose":F_(this,"userClose");break;case "AdUserMinimize":E_(this,"collapse");break;case "AdVideoFirstQuartile":F_(this,
"firstquartile");break;case "AdVideoMidpoint":F_(this,"midpoint");break;case "AdVideoThirdQuartile":F_(this,"thirdquartile");break;case "AdVideoComplete":F_(this,"complete");break;case "AdUserAcceptInvitation":this.L?E_(this,"acceptinvitationlinear"):E_(this,"acceptinvitation");break;case "AdStopped":E_(this,"stop");this.stop();break;case "AdSkipped":F_(this,"skip");break;case "AdSkippableStateChange":F_(this,"skippableStateChanged");break;case "AdPlaying":F_(this,"resume");break;case "AdLog":this.oa("log")}};B(Y_,VN);$_.prototype.videoCount=0;a0.prototype.isListed=!0;B(g0,XZ);var f0=Math.ceil(10*3.14);g0.prototype.H=function(a){V()||a.stopPropagation();this.aa("click")};
g0.prototype.start=function(){g0.N.start.call(this);this.F&&(this.L&&780<=mr(this.M).width&&this.F.up(!0),this.F.sp())};
g0.prototype.xl=function(a,b){var c=a/b*f0+" "+f0;null!=this.o&&Uq(this.o,"stroke-dasharray",c)};B(h0,G);h0.prototype.show=function(a,b){i0(this);nJ&&a?(a.appendChild(this.B),this.o=Ud(y(this.A,this,b),2E3)):b()};
h0.prototype.A=function(a){this.o=0;dh(this.B);a()};
h0.prototype.V=function(){i0(this);h0.N.V.call(this)};B(j0,jc);B(k0,J);l0.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Uga={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};f=k0.prototype;f.V=function(){m0(this);k0.N.V.call(this)};
f.oB=function(a){var b=a.o;this.C.J.measurable_impression=null!=b?b.viewabilityString:null;a.o.queryId==this.G&&n0(this,"measurable_impression",!0,!1)};
f.RC=function(a){a=a.o;a.queryId==this.G&&(this.C.J.viewable_impression=null!=a?a.viewabilityString:null,n0(this,"viewable_impression",!0,!0))};
f.SA=function(a){a=a.o;var b=E$[a.eventName];b&&a.queryId==this.G&&(this.C.J[b]=null!=a?a.viewabilityString:null,n0(this,b,!0,!0))};
f.hz=function(){var a=this.o.Hd();if(-1!=a){this.o.Kg(.25*a)&&n0(this,"firstquartile",!0,!0);this.o.Kg(.5*a)&&n0(this,"midpoint",!0,!0);this.o.Kg(.75*a)&&n0(this,"thirdquartile",!0,!0);var b=this.C,c=this.o.getCurrentTime();if(!b.L||!Me(b.B,"skip")){0>b.D&&(Uda(b.C,a),b.D=0);for(var a=IU(b.C,"progress"),d=b.D;d<a.length;d++){var e=a[d];if(DU(e.o)>c)break;b.D=d+1;qO(e.getUrl(),b.A)}}}o0(this)};
f.gz=function(){this.K=!0;n0(this,"impression",!0,!0);n0(this,"creativeview",!0,!0);null!=this.L||null!=this.B||this.A.R(this.o,"click",this.Jl);null!=this.L&&(this.F=new PR,this.A.R(this.F,"click",this.Jl,!1),QR(this.F,this.L));null!=this.B&&(this.H=new PR,this.A.R(this.H,"click",this.Jl,!1),QR(this.H,this.B));n0(this,"start",!0,!0);(this.o.Pf()||0==this.o.Jd())&&n0(this,"mute",!1,!1)};
f.iz=function(){var a=this.o.Pf(),b=this.o.Jd(),c=this.D;c.mute&&!a||!a&&0==c.volume&&0<b?n0(this,"unmute",!1,!1):this.D.muted(a,b)&&n0(this,"mute",!1,!1);this.D.mute=a;this.D.volume=b};
f.ez=function(){this.o.Ze()?p0(this):this.o.Qf()&&!this.o.tp()&&(this.D.o=!0,n0(this,"pause",!1,!1))};
f.fz=function(){this.D.o&&(this.D.o=!1,n0(this,"resume",!1,!1))};
f.$y=function(){p0(this)};
f.Jl=function(){n0(this,"click",!1,!1)};
f.az=function(){n0(this,"error",!1,!1)};
f.dz=function(){n0(this,"mediaLoadTimeout",!1,!1)};
f.Uq=function(){n0(this,"skipshown",!0,!1)};
f.ox=function(a){n0(this,a.type,!1,!1)};
f.GC=function(a){this.aa(a)};
f.QC=function(){n0(this,"videoShareShown",!0,!1)};
f.Dp=function(){n0(this,"skip",!0,!1)};
f.VB=function(){n0(this,"skip",!0,!1)};
f.bz=function(){n0(this,"fullscreen",!1,!1)};
f.RA=function(){n0(this,"exitfullscreen",!1,!1)};B(q0,v_);f=q0.prototype;f.V=function(){u0(this);this.Ja.dispose();s0(this);F(this.la.Na(),Vd);var a=!1;null!=this.C&&(a=this.C.tl(),this.C.ka(),this.C=null);this.X&&(this.X=!1,this.o.Qf()||this.o.Ze()||this.o.pause(),FO()&&!a&&(this.o.Rf(.001),this.o.load("","")),EO()&&this.o.ke()&&!a&&this.o.Al(),this.oa("contentResumeRequested"),this.oa("allAdsCompleted"));q0.N.V.call(this)};
f.oj=function(){q0.N.oj.call(this);Y(this).B.Db("desktop_block_progress_events_after_ad_skip")&&(this.D=new s_(!0),this.O=new k0(this.D))};
f.mh=function(){s0(this);q0.N.mh.call(this);w_(this)&&(this.D=new s_(Y(this).B.Db("desktop_block_progress_events_after_ad_skip")),this.O=new k0(this.D),this.ea=!1,this.oa("loaded"))};
f.dm=function(a){q0.N.dm.call(this,a);null!=this.o&&hO(fO(),9419278)&&this.o.wm(1)};
f.Do=function(a,b){b.preventDefault();this.Z||(this.Z=!0,F_(this,"video_card_endcap_action"));a&&(this.F.pause(),pO(a))};
f.Eo=function(){r0(this,function(){v0(this,"video_card_endcap_dismiss")})};
f.ax=function(){v0(this,"video_card_endcap_collapse")};
f.wz=function(a,b,c){if(!this.ia){this.ia=!0;var d=UR(b);d&&(a.F=d);if(this.B.useVideoAdUi){var d=a.getExtension("AdSense"),e;(e=this.Ia||a.B.Db("show_ads_pay_this_creator_info_card"))||(e=null===b?!1:"modules"==(new O(b)).Ve().toLowerCase()||WR(b));e=e||null!=d&&d.H;var d=dW(a)?null:AV(a),h;if(V()||KO())h=0;else{if(h=CO()){a:{for(h=0;h<this.ads.length;++h)if(!H_(this.ads[h])){h=!1;break a}h=CO()}h=!h||null==this.C||!this.C.Lk()}h=h||mW(a)||this.B.Sm}if(h||!V()&&e)this.B.Rm=!0,this.B.Sm=!0;if(V()||
this.B.Sm){h=this.B;var k=D(E(iW(a)))?!1:this.B.Rm,m=V()||!1,l=V();H_(a);d=p_(e,a.F,d,h);d.B=k;d.M=h.YD;d.P=m;d.L=!0;d.J=l;d.D=h.Qm;d.O=h.useShareButton;d.Z=h.ZD;d.ca=0;h.Qm&&(d.$f=""+ra("Visit Advertiser"))}else HV(a)?(h=a.F,!D(E(h))&&null!==d&&0<DU(d)&&(e=!0),d=p_(e,h,d,this.B),d.H=e?uda:tda):(d=p_(e,a.F,d,this.B),d.U=!1,d.F=!1,d.o=!1);e=this.C.Di();null===e?e=window.document.body:bh(e);h=Y(this);var k=1E3*cW(h),m=h.getExtension("why_this_ad"),l=h.getExtension("mute"),p=h.B.Db("enable_why_this_ad_for_desktop");
d.C=new l_(m,l,p);e_(d.C)&&(l=null!=m?m.C:void 0,m="<span class='videoAdUiAdSettingsShortTooltip'>",l?m+=X(l):(l=ra("Click for Ad Settings"),m+=l),m=oS(m+"</span>"),d.Me=m);this.A=new g_(d,e,k);e=h.F;null!=e&&(w0(this),d.Z&&M0(this,e));e=this.A;e.M&&(e=e.M,h=0==this.U,e.o!=h&&(e.o=h,ZZ(e)));this.Ia&&(h=a.getExtension("AdSense"),null!=h?(e=this.A,h=E(h.A),null!=e.H&&(S(e.H,!0),h=new O(h),h=(h.A+h.B).replace(/^www\./i,""),D(E(h))?i_(e):oh(e.H,h)),null!=e.O&&S(e.O,!0)):i_(this.A));e=[];d.F&&e.push("adAttribution");
d.o&&e.push("countdown")}else d&&this.B.sk&&(w0(this),M0(this,d));d=this.O;e=this.o;h=this.C.Sk();k=this.A;m0(d);d.C.F=a.fa;d.o=e;d.B=k||null;d.o.Pi();d.D=new l0(d.o);d.L=h||null;d.A=new zm(d);d.G=a.fa;e=$N.o?IR():HW();d.A.R(e,"externalActivityEvent",d.SA);d.A.R(e,"measurable_impression",d.oB);d.A.R(e,"viewable_impression",d.RC);d.A.R(d.o,"timeUpdate",d.hz);d.A.R(d.o,"volumeChange",d.iz);d.A.R(d.o,"pause",d.ez);d.A.R(d.o,"play",d.fz);d.A.R(d.o,"end",d.$y);d.A.R(d.o,"beginFullscreen",d.bz);d.A.R(d.o,
"endFullscreen",d.RA);d.A.R(d.o,"skip",d.Dp);d.A.R(d.o,"skipShown",d.Uq);d.A.R(d.o,"start",d.gz);d.A.R(d.o,"error",d.az);d.A.R(d.o,"mediaLoadTimeout",d.dz);null!=d.B&&(d.A.R(d.B,"urlNavigationRequested",d.GC),d.A.R(d.B,"videoShareShown",d.QC),d.A.R(d.B,"skipshown",d.Uq),d.A.R(d.B,"skip",d.Dp),d.A.R(d.B,"PUBLISHER_INVOKED_SKIP",d.VB),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.ox));B_(this).R(this.O,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.ar);B_(this).R(this.o,"loaded",this.OC);B_(this).R(this.o,"cardsStateChange",this.Ky);B_(this).R(this.o,"timeUpdate",this.gr);B_(this).R(this.o,"volumeChange",this.Ny);B_(this).R(this.o,"shareClicked",this.Cr);this.ue(a);d=iX(a,this.o);this.D.A=d;d=a.o;
null!=d&&d instanceof cV&&(this.Od(d,C$),this.ih(d),d=B_(this),Bm(d,this.O,"error",this.Ly,this),Bm(d,this.O,"mediaLoadTimeout",this.My,this));I_(this,a);null!=AV(a)&&(this.O.J=30);this.o.Am(Xga(this,a));this.o.load(b,c)}};
f.dD=function(a,b,c){null!==a.H&&NO.getInstance().o(34,{evt:"filled"},!0);this.va||(this.va=!0,this.oa("contentPauseRequested"));this.X=!0;this.wz(a,b,c);E_(this,"show_ad");this.setVolume(this.U);this.A&&(D(E(z0(a)))?(b=this.A,null!=b.D&&(b.B.za(b.D,"click",b.Fj),Uq(b.D,"cursor","default"))):(b=this.A,null!=b.D&&(b.B.R(b.D,"click",b.Fj),Uq(b.D,"cursor","pointer"))),b=a.o.Wa,kb(b)||Ega(this.A,b),this.A.show());this.C.Xg();try{D_(this,a)}catch(d){E0(this,C_,d);return}BW.getInstance().end("pi");BW.getInstance().start("bt");
this.Ja.show(this.C.Di(),y(this.o.play,this.o))};
f.gh=function(){Yga(this);this.oa("loaded");this.aa(new Y_(Y(this)))};
f.skip=function(){w_(this)&&null!=AV(Y(this))&&(null!=this.A?this.A.skip():(E_(this,"skip"),L0(this)))};
f.Dr=function(){F_(this,"skipshown")};
f.start=function(){q0.N.start.call(this);BW.getInstance().start("pi");this.ca=[];try{var a=Y(this);this.L=B0(this,a);r0(this,y(q0.prototype.dD,this,a,this.L.getUrl(),this.L.o))}catch(b){D0(this,b),this.mh(),w_(this)?(yO(xO,this,F0,b,void 0),this.start()):(this.X?yO(xO,this,F0,b,void 0):(null!=this.G&&vW(this.G,qW()),zO(this,F0,b)),this.stop())}};
f.wl=function(){G_(this);return this.o.Pf()?0:this.o.Jd()};
f.setVolume=function(a){G_(this);this.X?this.o.setVolume(a):this.U=a};
f.pause=function(){G_(this);this.F?this.F.pause():this.o.pause()};
f.resume=function(){G_(this);this.F?this.F.play():this.o.play()};
f.getCurrentTime=function(){G_(this);var a=this.F?this.F.A:0;return this.o.getCurrentTime()+a};
f.Gd=function(){G_(this);var a=w_(this)?jW(Y(this)):0;return this.o.Hd()+a};
f.Of=function(){G_(this);var a=this.Gd(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
f.Ef=function(){return this.o.Ef()};
f.Ly=function(){this.o.getError();E0(this,F0,xO(F0,this.o.getError()))};
f.My=function(){E0(this,F$,xO(F$,null,(this.B.loadVideoTimeout/1E3).toString()))};
f.lm=function(a,b){q0.N.lm.call(this,a,b);H0(this,a)};
f.ar=function(a){switch(a.type){case "start":gha(this);uea();this.oa("start");Kga(this);break;case "impression":this.oa("impression");break;case "why_this_ad_url":this.Ka=this.o.Qf();C0(this,"why_this_ad_url");this.pause();break;case "pause":this.oa("pause");break;case "why_this_ad_got_it":C0(this,"why_this_ad_got_it");this.Ka||this.resume();break;case "resume":this.oa("resume");break;case "firstquartile":this.oa("firstquartile");break;case "midpoint":this.oa("midpoint");break;case "thirdquartile":this.oa("thirdquartile");
break;case "complete":Wga(this)||(this.oa("complete"),E_(this,"instreamAdComplete"),t0(this));break;case "click":this.A&&this.A.o.B?this.o.Qf()?this.resume():this.pause():G0(this);break;case "engagedview":I0(this);this.oa("engagedview");break;case "urlNavigationRequested":this.aa(a);break;case "videoAuthorIconClicked":O0(this);break;case "videoAuthorClicked":O0(this);break;case "videoClicked":this.oa("videoClicked");break;case "videoLearnMoreClicked":this.F&&!this.Z&&(this.Z=!0,F_(this,"video_card_endcap_action"));
this.o.pause();hO(fO(),41351017)&&I0(this);G0(this);break;case "videoShareClicked":cha(this);break;case "videoShareShown":dha(this);break;case "videoTitleClicked":eha(this);break;case "videoMuteClicked":this.na=this.U;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.na);break;case "skipshown":this.oa("skippableStateChanged");break;case "skip":this.F?this.Eo():L0(this);break;case "MUTE_AD":this.oa("MUTE_AD"),r0(this,function(){t0(this)})}};
f.Cr=function(){var a=J0(this)||K0(this);null!=a&&rO(a,"sharebuttonclicked")};
f.ue=function(a){q0.N.ue.call(this,a);H0(this,"impression")};
f.Od=function(a,b){q0.N.Od.call(this,a,b);F(b,function(a){H0(this,a)},this)};
f.ih=function(a){q0.N.ih.call(this,a);a instanceof cV&&(a=dV(a),F(a.Qa(),function(a){H0(this,a)},this))};
f.lp=function(){if(!w_(this))return null;try{return B0(this,Y(this)).getUrl()}catch(a){return null}};
f.getMediaUrl=function(){if(!w_(this))return null;var a=Y(this);if(!A_(a))throw xO(A0);a=a.o.L;return kb(a)?null:a[0].getUrl()};
f.OC=function(){this.oa("adCanPlay")};
f.Ky=function(){var a=this.A;null!=a.A&&M(a.A,"ytp-iv-drawer-open",this.o.pp())};
f.gr=function(){var a=this.Gd(),b;G_(this);b=this.F?this.Gd():this.o.qp();var c=this.getCurrentTime(),d=0,e=0;w_(this)&&(e=Y(this),d=e.C.A,e=e.C.C);if(null!=this.A&&0<=a&&0<=c){if(!this.ha&&3==Y(this).sa){var h=this.o.Hd(),k=gW(Y(this)),h=Math.abs(h-k);2<h&&(h=xO(Poa,null,Number(h).toFixed(2)),h=hX(h,Y(this),this.o),k=JV(Y(this)),tO(k,h));this.ha=!0}this.A.update(c,b,a,d,e)}};
f.Ny=function(){var a=this.o.Jd();if(a!=this.U&&(this.U=a,this.oa("volumeChange"),0==a&&this.oa("mute"),this.A)){var b=this.A;b.M&&(b=b.M,a=0==a,b.o!=a&&(b.o=a,ZZ(b)))}};
f.Ex=function(a){var b=a.o;if("companion-setup-complete"==b.data){a=Y(this);var c=(0,window.encodeURIComponent)(E(iW(a)))+","+(0,window.encodeURIComponent)((J0(this)||K0(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=iW(a)?210:185}else"pause-video"==b.data&&this.pause()};B(P0,jc);B(Q0,v_);f=Q0.prototype;
f.init=function(a){Q0.N.init.call(this,a);B_(this).R(window,"message",this.SC);B_(this).R(this.ha,"tick",this.fD);a=$N.o?IR():HW();B_(this).R(a,D$,this.Oy);if(this.O)this.aa(new P0(0,this.U));else{a=kW(Y(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=of(a,"v",this.B.contentId));V()&&(b=lf(a,"st"),a=of(a,"st",b?b+" yt":"yt"))}a=E(a)}else{var b=new O(a),c=new O("http://tpc.googlesyndication.com/pagead/js/loader12.html");
"https"==b.C&&pf(c,"https");this.Ka=b.A;a=tf(c,a||"",void 0).toString()}this.L=P("iframe",{src:oO(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});B_(this).R(this.L,"load",this.Tw);this.C.ge().appendChild(this.L)}};
f.Yc=function(a,b,c){Q0.N.Yc.call(this,a,b,c);this.F=Y(this).o instanceof cV;this.A=a.Li(!1);this.na=Ud(this.Py,this.B.loadVideoTimeout,this);this.O||(B_(this).R(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.aC),B_(this).R(this.A,G$,this.uA))};
f.stop=function(){this.ha.stop();this.C.ka();Q0.N.stop.call(this)};
f.isLinear=function(){return 1==this.F};
f.start=function(){Q0.N.start.call(this);if(!V()){var a={};a.pid=BW.getInstance().o;a.dn=this.Ka;a["if"]=this.O;NO.getInstance().o(29,a,!0)}a=Y(this);this.D.F=a.fa;var b=iX(a,this.A);this.D.A=b;if(b=a.o)this.ue(a),this.Od(b,C$),this.ih(b),I_(this,a);this.A.Pi();E_(this,"show_ad");this.C.ld();null!=this.L&&(this.L.style.display="block");this.Ja=!0;this.F&&this.oa("contentPauseRequested");W0(this)};
f.ed=function(a,b,c){Q0.N.ed.call(this,a,b,c);T0(this,"resizeAd",{width:a,height:b,viewMode:c})};
f.pause=function(){this.ca||T0(this,"pauseAd")};
f.resume=function(){this.ca&&T0(this,"resumeAd")};
f.setVolume=function(a){Q0.N.setVolume.call(this,a);T0(this,"setAdVolume",{value:a})};
f.V=function(){this.O&&this.aa(new P0(0,this.U));dh(this.L);this.F&&this.oa("contentResumeRequested");this.oa("allAdsCompleted");this.la=!1;this.ea=[];Vd(this.na);this.ha.dispose();Q0.N.V.call(this)};
f.gh=function(){};
f.Tw=function(){if(!this.O){var a=this.A.$k();kb(a)&&(a=this.B.Wg);T0(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}S0(this)};
f.SC=function(a){a=a.o;if(this.O){if(a=cT(a.data),null!=a){try{var b=de(a.data)}catch(c){return}null!=b&&b.session==this.U&&X0(this,b)}}else if(a.source==this.L.contentWindow){try{b=de(a.data)}catch(c){return}b.session==this.U&&X0(this,b)}};
f.Py=function(){U0(this,F$,null,(this.B.loadVideoTimeout/1E3).toString());this.stop()};
f.Oy=function(a){var b=a.type;if(jb(D$,b)){if("externalActivityEvent"==b&&(b=a.o.eventName,!E$[b]))return;F_(this,b)}};
f.aC=function(a){switch(a.type){case "timeUpdate":a=this.A.Hd();var b=this.A.getCurrentTime();R0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":Y0(this,"ended");break;case "loaded":Y0(this,"loadstart");break;case "mediaLoadTimeout":Y0(this,"stalled");break;case "play":Y0(this,"playing");break;default:Y0(this,a.type)}};
f.uA=function(a){a=a.type;"loadedmetadata"==a?(a=this.A.Hd(),R0(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):Y0(this,a)};
f.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
f.Gd=function(){return this.X};
f.Of=function(){return this.ia};
f.fD=function(){T0(this,"getAdRemainingTime")};f=Z0.prototype;f.Sk=function(){return this.o.Sk()};
f.Di=function(){return this.o.Di()};
f.ge=function(){return this.o.ge()};
f.Li=function(a){return this.o.Li(a)};
f.setSize=function(a,b){this.o.setSize(a,b)};
f.Lk=function(){return this.o.Lk()};
f.tl=function(){return this.o.tl()};
f.vl=function(){return this.o.vl()};
f.Mi=function(){return this.o.Mi()};
f.ka=v;f.Xg=v;f.ld=v;B($0,J);f=$0.prototype;f.init=function(a,b,c){a1(this,a,b,c);null==this.H&&(this.H=new zm(this),Bm(this.H,this.K,"adsLoaderSdkAdError",this.Lz,this));d1(this)};
f.start=function(){this.L=!0;jha(this);0<this.A.length?i1(this):("always"==$N.A&&null!=this.Z&&vW(this.Z,qW()),yO(wO,this,BY,void 0,void 0),0==this.sc&&this.aa("contentResumeRequested"),j1(this))};
f.destroy=function(){null!=this.H&&(this.H.dispose(),this.H=null);e1(this);$N.A=this.U;this.L=!1};
f.getCurrentAd=function(){return this.C<this.A.length?this.A[this.C].o[0]:null};
f.kb=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.nh=function(){null!=this.o&&this.o.nh()};
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.jq=function(a){$N.A=this.U;var b=a.D;kb(b)?this.F++:(a=a.C,a.o&&F(b,function(a){a.Wa=!1},this),this.O=iha(this,b),nb(this.A,new Gea(b,a.o,a.A)),this.F++,this.H.za(this.K,"adsLoaderSdkAdLoaded",this.jq,!1,this));
d1(this)};
f.Lz=function(a){a=a.o;$N.A=this.U;a.getMessage();yO(wO,this,BY,void 0,void 0);this.F++;if(!b1(this)||2<=this.A.length-this.C)a=wO(BY),this.aa(new UN(a));d1(this)};
f.BB=function(){e1(this);j1(this)};
f.Mz=function(a){a.getError();this.C++;i1(this)};
f.Fy=function(){this.aa("userClose")};
f.By=function(){this.aa("autoClose")};
f.Ey=function(){this.C++;i1(this)};
f.Cy=function(){this.ha||(this.aa("contentPauseRequested"),this.ha=!0)};
f.kq=function(a){if("impression"==a.type)try{NO.getInstance().o(44,{imp:!0})}catch(b){}"vpaidEvent"!=a.type&&kha(this,a.type,a.getAd());this.aa(a)};B(l1,jc);B(m1,J);m1.prototype.getCurrentTime=function(){return this.o.currentTime};
m1.prototype.D=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)q1(this);else{var b=oha(this,a);this.F?F(b,function(a){p1(this,!0,a)},this):p1(this,!0,cb(b));
p1(this,!1,pha(this,a))}}};
m1.prototype.G=function(){q1(this)};B(r1,G);r1.prototype.A=function(){return this.o};B(NZ,v_);f=NZ.prototype;
f.Yc=function(a,b,c){null!=this.F&&(o1(this.F),this.F.dispose(),this.F=null);NZ.N.Yc.call(this,a,b,c);var d=this.ia.o.Qa();b=new tT(b);var e=4;c&&0<=c.jm&&(e=c.jm);this.va=null!=c?c.jr:0;this.F=new m1(b,d,{prefetch:e});var h=1;F(d,function(b){if((0,window.isNaN)(b))throw wO(SW,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 $0(c,b,d,this.X,a,this.B,this.G);if(Me(this.M,b))throw wO(Noa,null,"Multiple ad breaks cannot share same ad play time.");this.M.set(b,
c)}},this);
this.O=cb(d);zh(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){NZ.N.init.call(this,a);null!=this.F&&(w1(this),a=B_(this),Bm(a,this.F,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Bm(a,this.F,"adBreakReady",this.Kz,this),Bm(a,this.X,"contentComplete",this.CA,this),this.X.o=!1,a=this.F,a.A||(null==a.C&&(a.C=new zm(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.oa("contentResumeRequested"))};
f.gh=function(){this.je();this.aa(new Y_(null))};
f.destroy=function(){this.dispose()};
f.V=function(){this.X.o=!0;if(0<this.M.ab()){var a=this.M.Na();F(a,this.Af,this);this.M.clear()}w1(this);y1(this);null!=this.C&&(this.C.ka(),this.C=null);NZ.N.V.call(this)};
f.start=function(){NZ.N.start.call(this)};
f.stop=function(){null!=this.A&&(this.Af(this.A),this.Ni())};
f.ed=function(a,b,c){NZ.N.ed.call(this,a,b,c);this.ha=a;this.ea=b;this.K=c;null!=this.A&&a1(this.A,this.ha,this.ea,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.nh=function(){null!=this.A&&this.A.nh()};
f.setVolume=function(a){NZ.N.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};
f.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
f.Gd=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Gd():-1):a=-1;return a};
f.Of=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Of():-1):a=-1;return a};
f.je=function(){return this.ia.o.Qa()};
f.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};
f.oj=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(fo(this.Z,a),x1(this))};
f.Iy=function(){this.oa("userClose")};
f.Hy=function(){this.oa("autoClose")};
f.Af=function(a){a.destroy();this.M.remove(a.sc);this.A=null;null!=this.J&&(this.J.za(a,k1,this.aa,!1,this),this.J.za(a,"adError",this.Jo,!1,this),this.J.za(a,"allAdsCompleted",this.hq,!1,this),this.J.za(a,"contentPauseRequested",this.kp,!1,this),this.J.za(a,"contentResumeRequested",this.Ni,!1,this),this.J.za(a,"adBreakInitialized",this.iq,!1,this))};
f.CA=function(a){this.ca=!0;-1==this.O?a.B=!1:V()&&!t1(this)||u1(this);nha(this.F)};
f.Kz=function(a){var b=a.o;a=0==b;var c=-1==b;this.U?(a?this.oa("contentResumeRequested"):!c||V()&&!t1(this)||u1(this),this.U=!1):(c?Ud(function(){var a=this.M.get(b);a&&this.Af(a);V()&&!t1(this)||u1(this)},500,this):a&&Ud(function(){this.oa("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.aa(new VN("adBreakReady",null,a)))};
f.Jo=function(a){var b=a.getError(),c=b.getErrorCode();try{var d={err:!0};d.ec=c;NO.getInstance().o(44,d)}catch(e){}V()&&b&&"adLoadError"==b.getType()&&this.aa(a)};
f.hq=function(a){this.Af(a.target);(t1(this)||!V()&&this.ca)&&u1(this);this.L=null;x1(this)};
f.kp=function(){var a=this.F;a.o.stop();a.A=!1;this.oa("contentPauseRequested")};
f.Ni=function(){this.oa("contentResumeRequested");this.na||n1(this.F);this.L=null};
f.iq=function(a){this.L=null;x1(this);a=a.target;var b={};b.adBreakTime=a.sc;this.aa(new VN("prefetched",a.getCurrentAd(),b))};
f.oa=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.aa(new VN(a,b))};
f.np=function(a,b){return this.la=new r1(a,b)};B(z1,J);z1.prototype.V=function(){null!=this.o&&(this.o.za("adsManagerLoaded",this.aa),this.o.za("adError",this.aa),this.o.za("adLoadError",this.aa),this.o=null);z1.N.V.call(this)};B(B1,OM);f=B1.prototype;f.md=function(){H9(this.app,!0,this.playerType);this.app.ef(this.playerType)};
f.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
f.Sc=function(a,b,c){H9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.rg(d.getCurrentTime()+a,b,c,e)};
f.Ub=function(a,b){H9(this.app,!0,this.playerType);this.app.rg(a,b,void 0,this.playerType)};
f.Tj=function(){U9(this.app)};B(C1,vq);C1.prototype.getAdState=function(){return-1};D1.prototype.reset=function(){Xv(this.o)};
D1.prototype.A=function(a,b){Rv(a,b,this.o)};
D1.prototype.info=function(a,b){Uv(a,b,this.o)};
D1.prototype.span=function(a,b,c){var d=this.o,e=Tv(d).span,d=Nv(d);b in d&&(e[a]=(c||Qt())-d[b])};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Sq();return b?(b=b.toLowerCase(),b+=$a("hidden"),!n(a)||b in a?b:null):null})();G1.prototype.o=function(){return this.B};
var F1=[2,5];T1.prototype.B="";T1.prototype.A="";var X1=!1,$1=!1;Hi("showCompanionAdLoaded",function(){$1&&(a2(),$1=!1)});
Hi("watchAdsInit",function(){X1&&(X1=!1,Y1())});var yha={fI:0,dI:1,cI:2,eI:3,bI:4,XH:5,$H:6,aI:7,ZH:8,WH:9,hI:10,VH:11,YH:12,UH:13,gI:14,TH:15},zha={CK:0,DK:1,FK:2,EK:3,zK:4,AK:5,BK:6};B(d2,Lj);f=d2.prototype;f.cancel=function(){this.F&&this.S("dragend",0,0,null);this.B&&this.S("hoverend",0,0,null);Fr(this.o);c2(this)};
f.Zr=function(a){Fr(this.o);this.o.T(this.A,e2("move"),this.Xr);this.o.T(this.A,e2("out"),this.Yr);this.o.T(this.A,"touchstart",this.cn);this.D&&this.o.T(this.A,e2("down"),this.bn);var b=Sl(a);a=Vl(a);this.B=!0;this.S("hoverstart",a.x,a.y,b);this.S("hovermove",a.x,a.y,b)};
f.Xr=function(a){var b=Sl(a);a=Vl(a);if(this.C){var c=Ul(this.C),d=Vl(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.Yr=function(a){var b=Vl(a),c=Ul(a);c&&mh(this.G,c)?(this.C=a,this.S("hovermove",b.x,b.y,c)):(Fr(this.o),c2(this),this.B=!1,this.S("hoverend",b.x,b.y,c))};
f.Fz=function(a){this.Zr(a);this.bn(a)};
f.bn=function(a){if(!ga(a.button)||0==a.button){Fr(this.o);this.o.T(window.document,e2("move"),this.Ez);this.o.T(window.document,e2("up"),this.jE);var b=Sl(a);if(zc)this.o.T(this.A,"dragstart",this.Yw);else if(Wl(a),(EH||Rq)&&b)a:{for(var c=b;c;){if(sh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.F=!0;a=Vl(a);this.S("dragstart",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)}};
f.Yw=function(a){Wl(a)};
f.Ez=function(a){var b=Sl(a);b==window.document&&(b=null);a=Vl(a);this.S("hovermove",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)};
f.jE=function(a){Fr(this.o);this.F=!1;var b=Tl(a),c=Sl(a);a=Vl(a);b&&mh(this.G,b)?(this.o.T(this.A,e2("move"),this.Xr),this.o.T(this.A,e2("out"),this.Yr),this.o.T(this.A,e2("down"),this.bn),this.o.T(this.A,"touchstart",this.cn),this.S("dragend",a.x,a.y,c)):(c2(this),this.B=!1,this.S("dragend",a.x,a.y,c),this.S("hoverend",a.x,a.y,c))};
f.cn=function(a){var b=a.changedTouches[0];b&&(Fr(this.o),this.o.T(this.A,"touchmove",this.kE),this.o.T(this.A,"touchend",this.$r),this.o.T(this.A,"touchcancel",this.$r),this.H=b.identifier,a=Sl(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.kE=function(a){var b=f2(this,a);b&&(Wl(a),a=Sl(a),this.S("hovermove",b.pageX,b.pageY,a),this.D&&this.S("dragmove",b.pageX,b.pageY,a))};
f.$r=function(a){var b=f2(this,a);if(b){Fr(this.o);c2(this);this.B=!1;var c=Sl(a);this.D&&(this.J||Wl(a),this.F=!1,this.S("dragend",b.pageX,b.pageY,c));this.S("hoverend",b.pageX,b.pageY,c)}};
f.V=function(){this.D&&(zc&&this.G.removeAttribute("draggable"),this.G.style.removeProperty("touch-action"));Fr(this.o);d2.N.V.call(this)};k2.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.D=d;this.o=b-c-d;this.C=le(a-c,0,this.o);this.position=this.C+c;this.A=this.C/this.o};B(m2,Lj);m2.prototype.Tc=function(){return this.adSystem+"_"+this.adType};
m2.prototype.yg=function(){return this.Tc()};
m2.prototype.getCurrentAd=function(){return this.A?this.A.getCurrentAd():null};
m2.prototype.Xj=v;B(o2,R);o2.prototype.V=function(){o2.N.V.call(this);this.D&&(q2(this.A.app,this.D),this.D=null);r2(this);bh(p2(this));bh(s2(this));this.G=this.F=null;delete this.A};B(z2,G);z2.prototype.start=function(){(0,window.isNaN)(this.o)&&(this.B=K(),this.o=Ud(this.D,this.C-this.A,this))};
z2.prototype.stop=function(){(0,window.isNaN)(this.o)||(this.B=this.A=0,Vd(this.o),this.o=window.NaN)};
z2.prototype.pause=function(){(0,window.isNaN)(this.o)||(this.A=K()-this.B,Vd(this.o),this.o=window.NaN)};
z2.prototype.V=function(){(0,window.isNaN)(this.o)||Vd(this.o)};B(B2,m2);B2.o=15;f=B2.prototype;f.Xj=function(){x2(this.D,13);this.L||this.A.destroy();this.F=this.H=!1;G2(this)};
f.Tc=function(){var a=0,a=this.getCurrentAd(),b=DV(a);if(4==n2(b).A)return b;if(zV(a))a=3;else if(null!=AV(a))a=BV(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
f.yg=function(){return this.adSystem+"_"+this.adType};
f.show=function(){var a=this.o,b=A2(a);Y4(a.app,b);this.D.B=Qt();this.G=this.o.Ca();this.C.subscribe("progresssync",this.ht,this);this.o.A.X&&dh(Og("video-ad-status-bar",this.G));$d(this.G,["ad-showing","ad-interrupting"]);this.o.subscribe("resize",this.Bn,this);try{this.B.R(this.A,"adError",this.SF),this.B.R(this.A,"click",this.RF),this.B.R(this.A,"complete",this.UF),this.B.R(this.A,"engagedview",this.VF),this.B.R(this.A,"pause",this.jt),this.B.R(this.A,"start",this.kt),this.B.R(this.A,"skip",this.YF),
this.B.R(this.A,"MUTE_AD",this.Xj),this.B.R(this.A,"skippableStateChanged",this.ZF),this.B.R(this.A,"youTubeChannelMetadata",this.WF),this.B.R(this.A,"companionInitialized",this.TF),this.B.R(p2(this.o.H),"mouseup",this.XF),this.Bn(),this.L||this.A.start()}catch(c){H2(this,c)}a=this.o.W();this.o.A.F&&a.experiments.ga("ad_info_icon_in_card")&&S4(this.o,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
f.ut=function(a,b,c){if("newdata"==a&&this.videoData!=c){a={video_id:c.videoId};b=new Aha;b.isSkippable=this.O;b.skip=y(this.A.skip,this.A);b.skipShown=y(this.A.Dr,this.A);var d=this.getCurrentAd();if(d){b.clickThroughUrl=iW(d)||"";var e;if(!(e=this.o.A.Ea)){e=c.lengthSeconds;var h=AV(d);h?(EU(h,e),e=DU(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:tb(d.F),closeButton:d.B,adSettingsLink:tb(d.A),
controlText:d.J,continueButton:d.H,cancelButton:d.G}}b.videoId=c.videoId;b.videoId||(b.videoUrl=y2(this)||"");c.spacecastModule=this.U;E2(this.o,-1,a,b)}this.videoData=c};
f.qt=function(a){a=a.state;T(a,1)||this.J.pause();T(a,128)?H2(this,Error(a.o.message||"Video player error.")):T(a,1)&&this.J.start()};
f.kt=function(){this.K=!0;this.F=!1;if(!this.H){this.H=!0;var a=this.D;v2(a);var b=w2(a);if((0,window.isNaN)(a.B))v2(a);else{var c=Qt()-a.B;b.ad_stl=c}u2(a,4,b);F2(this.o,1);D2(this,!1);(a=Q("ADS_INSTREAM_FIRST_PLAY"))&&S4(this.o,"onAdAnnounce",a)}E2(this.o,1);this.S("adPlay",this)};
f.jt=function(){this.K&&(this.K=!1,E2(this.o,2))};
f.UF=function(){if(!this.F){var a=this.D;v2(a);var b=w2(a),c=I2(a.o);c?b.ad_fmt=c:v2(a);u2(a,5,b);G2(this);this.F=this.H=!1}};
f.VF=function(){var a=this.D;a.o.S("AD_LOGGING_EVENT",777,w2(a))};
f.YF=function(){this.F=!0;var a=this.D,b=w2(a),c=I2(a.o);c?b.ad_fmt=c:v2(a);u2(a,14,b);G2(this)};
f.ZF=function(){var a=Q("ADS_INSTREAM_SKIPPABLE");a&&S4(this.o,"onAdAnnounce",a)};
f.WF=function(){var a=this.getCurrentAd();if(a){var b=a.U,a=a.O,c=this.o.W();if(a&&b)d={},d.videoTitle=b.title,d.channelThumbnailUrl=a.o,d.channelTitle=a.A,d.channelVideoCount=a.videoCount,d.showAdInfoIcon=this.o.A.F&&c.experiments.ga("ad_info_icon_in_card"),S4(this.o,"onAdMetadataAvailable",d);else if(this.o.A.F&&c.experiments.ga("ad_info_icon_in_card")){var d={showAdInfoIcon:!0};S4(this.o,"onAdMetadataAvailable",d)}}};
f.TF=function(a){a=a.event;var b=a.o;b&&b instanceof J&&this.S("adCompanionInitialized",a.getAd(),b)};
f.SF=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}x2(this.D,32,b);H2(this,a.event.getError())};
f.RF=function(){var a=this.D;v2(a);var b=w2(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}u2(a,15,b);this.A.pause();this.S("select")};
f.ht=function(){};
f.gt=function(){this.A.nh();D2(this,!0)};
f.V=function(){this.o.Ha("control_toggle_play_pause",this.vt,this);this.o.Ha("control_play",this.An,this);this.o.Ha("control_pause",this.zn,this);this.o.Ha("resize",this.Bn,this);this.B.removeAll();this.C.Ha("statechange",this.qt,this);this.C.Ha("internalAbandon",this.gt,this);this.C.Ha("internalvideodatachange",this.ut,this);this.C.Ha("progresssync",this.ht,this);this.L||this.A.destroy();this.P&&(bh(this.P),this.P=null);this.M&&(dh(this.M),this.M=null);this.G&&(ce(this.G,["ad-showing","ad-interrupting"]),
this.G=null);this.F=!1;Z4(this.o);this.J.dispose();this.J=null;B2.N.V.call(this)};
f.vt=function(){this.K?this.zn():this.An()};
f.An=function(){this.A.resume();this.kt()};
f.zn=function(){this.A.pause();this.jt()};
f.Bn=function(){kr(p2(this.o.H),this.o.app.G.Ma())};
f.XF=function(a){n(a.o)||Il(a);var b=a.o;n(a.A)||Il(a);this.D.A=new re(b,a.A)};B(L2,m2);f=L2.prototype;
f.show=function(){if(!this.F||!d5(this.o)){L(this.o.Ca(),"ad-showing");this.B=p2(this.o.H);var a=this.A.getCurrentAd().getHeight();this.B.style.height=Zq(a,!0);L(this.B,"ad-overlay");this.C.R(this.B,"mouseup",this.dG);try{this.C.R(this.A,"autoClose",this.aG),this.C.R(this.A,"userClose",this.eG),this.C.R(this.A,"userRecall",this.fG),this.C.R(this.A,"click",this.bG),this.C.R(this.A,"impression",this.cG),this.C.R(this.A,"adError",this.$F),M2(this,"normal"),this.G||this.A.start(),this.Cn(),this.o.subscribe("resize",
this.$j,this),this.o.subscribe("presentingplayerstatechange",this.wt,this),this.S("adEnd",this)}catch(b){this.S("adError",b)}}};
f.V=function(){this.C.removeAll();this.o.Ha("resize",this.$j,this);this.o.Ha("presentingplayerstatechange",this.wt,this);be(this.o.Ca(),"ad-showing");this.A&&(this.G||this.A.destroy(),this.A=null);this.B&&be(this.B,"ad-overlay");this.B=null;this.F=!1;L2.N.V.call(this)};
f.eG=function(){this.B&&this.A&&this.A.getCurrentAd()&&(this.B.style.height=Zq(0,!0));this.F=!0;var a=this.D;a.B=K();var b=K2(a);J2(a,6,b);this.o.S("overlay_ad_close")};
f.aG=function(){this.o.S("overlay_ad_close")};
f.fG=function(){this.o.S("overlay_ad_open")};
f.bG=function(){this.o.pauseVideo();var a=this.D;a.B=K();var b=K2(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}J2(a,100,b)};
f.cG=function(){var a=Q("ADS_OVERLAY_IMPRESSION");a&&S4(this.o,"onAdAnnounce",a);this.o.S("overlay_ad_open")};
f.dG=function(a){this.D.A=a.target==a.currentTarget?null:new re(a.pageX,a.pageY)};
f.$F=function(a){a=a.event.getError();this.S("adError",a)};
f.wt=function(a){T(a.state,16)&&M2(this,"normal")};
f.$j=function(){};
f.Cn=function(){var a=this.D;a.D=K();var b=K2(a);J2(a,3,b)};B(N2,G);N2.A="rm";N2.o=10;N2.D=200;N2.B=200;N2.C=190;f=N2.prototype;
f.load=function(){var a;a=this.o.app.G.Ma();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=U1(b);c.ck_wh=a.width+"x"+a.height;R4(b.o,14,c);b2();this.Uc(Error("The player size is too small."))}else if(this.D=this.o.L)a=this.B,V1(a.o,9,U1(a)),a=S1(this.o),(b=this.o.A.serverPrefetchedVast)&&0<(this.F&3)?(a.A=b,this.o.A.serverPrefetchedVast=void 0):a.o=this.Dd(),this.D.R("adsManagerLoaded",this.Xs,!1,this),this.D.R("adError",this.Ws,!1,this),this.Yj(this.D,
a)};
f.wn=function(){var a=Q1(this.o.A,this.o.W(),R1(this.o));a.surveyCreativeData=this.o.A.surveyCreativeData;a.youTubeAdNamespace=this.zg();return a};
f.zg=function(){return this.U};
f.Xs=function(a){if(a.B===this){Rv("aml");try{var b=this.wn(),c=a.o}catch(d){this.Ie(d);return}this.C.R(c,"companionBackfill",y(this.MF,this,c));this.C.R(c,"loaded",y(this.LF,this,c));this.C.R(c,"adError",y(this.KF,this,c));this.C.R(c,"allAdsCompleted",v);this.C.R(c,"contentPauseRequested",v);this.C.R(c,"contentResumeRequested",v);c=zW(a,this.o.K,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Ie(d)}}};
f.LF=function(a,b){this.C.removeAll();var c=b.getAd(),d=c.isLinear(),e=this.B,h=U1(e);h.ad_man=d?"instream":"overlay";V1(e.o,12,h);e=a.getMediaUrl();switch(d?this.Ag(a,c,e):this.Rd(a,c)){case 0:e3(this);break;case 1:a.destroy();this.Uc(Error("Unable to create a display state."));break;case 2:c=this.B;R4(c.o,21,U1(c));a.destroy();this.Uc(Error("Fallback to next ad."));break;case 3:this.Uc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
f.KF=function(a,b){this.C.removeAll();a.destroy();this.Ie(b.getError())};
f.Ws=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.o===this&&this.Ie(b)};
f.MF=function(){S2(this)};
f.Ag=function(a,b,c){var d=R1(this.o)&&R1(this.o).spacecastModule;if(d&&c&&!this.M.test(c)||!this.o.A.Va&&!this.M.test(c))return 3;Q2(this,OV(b));P2(this,new B2(this.zg(),this.o,a,null!=AV(b),void 0,d));return 0};
f.Rd=function(a,b){Q2(this,OV(b));P2(this,new L2(this.zg(),this.o,a));return 0};
f.Ie=function(a){if(a){var b=this.B,c=U1(b);a&&M1(a,c);R4(b.o,32,c);this.Uc(a)}};
f.Uc=function(){R3(this.H)};
f.V=function(){this.D&&(this.D.za("adsManagerLoaded",this.Xs,!1,this),this.D.za("adError",this.Ws,!1,this));this.O.removeAll();this.C.removeAll();N2.N.V.call(this)};
f.Yj=function(a,b){try{A1(a,b,this),Rv("ar")}catch(c){this.Ie(c)}};B(T2,m2);T2.prototype.show=function(){Y1();this.D||this.S("adEnd",this);this.C=wi(y(this.H,this),1E3)};
T2.prototype.V=function(){g3(this);T2.N.V.call(this)};
T2.prototype.H=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.yg();this.D?(a&&a()&&this.F++,2<=this.F?(b.format=this.Tc(),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))};B(h3,N2);h3.prototype.wn=function(){var a=h3.N.wn.call(this);a.fo=0==this.J;a.vw=d5(this.o)?a.fo:!0;return a};
h3.prototype.Dd=function(){var a;var b=this.G;a=R2(this);(b=4==this.F&&b.o.afvInvideoAdTag?b.o.afvInvideoAdTag:b.o.afvAdTag)?(ua(b,"http:")&&(b=b.substr(5)),a=lj(b,{videoad_start_delay:a})):a="";return a};
h3.prototype.Rd=function(a,b){if(this.o.A.o)return 1;1==this.A.o()&&(O2(this),V1(this.o,1));return h3.N.Rd.call(this,a,b)};
h3.prototype.Uc=function(a){var b=this.o.A;b.o?h3.N.Uc.call(this,a):b.fa||this.F&4?(P2(this,new T2(this.o)),e3(this)):h3.N.Uc.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 m=k;k=fc(this.J);c&&(k.pos=c);m&&null==k.tile&&(k.tile=m.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=gj(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 O(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};B(W2,L2);W2.prototype.$j=function(){};
W2.prototype.Tc=function(){return"1_3"};
W2.prototype.Cn=function(){1==this.J?this.S("AD_LOGGING_EVENT",2,{}):W2.N.Cn.call(this)};B(k3,N2);k3.prototype.Dd=function(){return this.Z.o(H1(this.A),this.F)};
k3.prototype.Rd=function(a,b){Q2(this,OV(b));var c=wV(b);if(O1(c,"rm"))return 1==this.F||d5(this.o)||b2(),a.sendImpressionUrls(),this.o.A.K?(P2(this,new T2(this.o)),0):2;if(O1(c,"blockAllAds"))return a.sendImpressionUrls(),P2(this,new W2(this.o,a,1)),0;if(O1(c,"hideMaster"))return P2(this,new W2(this.o,a,0)),0;if(this.o.A.o)return 1;P2(this,new L2(this.zg(),this.o,a));return 0};B(l3,k3);var Hha={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=l3.prototype;f.Dd=function(){if(this.o.A.ha){var a=new j3(this.o.A.dynamicAllocationAdTag);return a.o(H1(this.A),this.P)}a=new i3(this.o.A.dynamicAllocationAdTag,this.o.A,this.J);return a.o(H1(this.A),this.P)};
f.Yj=function(a,b){if(this.K){b.B=P1(this.K);var c=this.o.A.xa;c&&(b.C=c);b.yh=R2(this)}l3.N.Yj.call(this,a,b)};
f.Ag=function(a,b,c){m3(this,a);return 1!=this.G&&2!=this.G?1:l3.N.Ag.call(this,a,b,c)};
f.Rd=function(a,b){m3(this,a);switch(this.G){case 1:return l3.N.Rd.call(this,a,b);case 2:var c;this.o.A.o?c=1:(1==this.A.o()&&(O2(this),V1(this.o,1)),Q2(this,OV(b)),P2(this,new L2(2,this.o,a)),c=0);return c;default:return 1}};
f.zg=function(){return this.G||0};
f.Uc=function(a){var b=this.o.A;b.o?l3.N.Uc.call(this,a):b.fa||this.K&4?(P2(this,new T2(this.o)),e3(this)):l3.N.Uc.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.hi=function(a){r3(this);p3(this,!0,a)};
n3.prototype.then=function(a,b,c){var d,e,h=new Ad(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)};
xd(n3);B(q3,sa);q3.prototype.message="Deferred has already fired";q3.prototype.name="AlreadyCalledError";B(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={};B(y3,N2);y3.A="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";y3.B="43";y3.o=function(a){var b=new n3;tj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Md: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)},
sb:function(a){b.hi(a)}});
return b};
y3.prototype.Dd=function(){return""};
y3.prototype.Yj=function(a,b){var c=this.F;c&1||c&4||c&8?this.G?c&8?vha(this.G):("goo.gl"==Ze(this.G)?(c=y3.o("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.G),t3(c,function(a){a=de(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new O(a.longUrl);zf(a,"video_format","43");return y3.o(a.toString())},this)):c=y3.o(this.G),t3(c,function(c){b.A=c.responseText;
A1(a,b,this)},this),s3(c,null,this.Ie,this)):this.Ie(Error("Invalid empty URL")):this.Ie(Error("Invalid request type: "+c))};B(z3,m2);z3.prototype.show=function(){var a=R1(this.o).videoId;if(a){var b=this.A.getCurrentAd();QI(this.o.W().K,a,{Oe:nW(b)||null,mg:oW(b)||null,ri:!1});a={};a.format=this.Tc();a.at=this.yg();N1(b,a);this.S("AD_LOGGING_EVENT",3,a)}};B(A3,N2);A3.prototype.Dd=function(){return this.o.A.ob||""};
A3.prototype.Rd=function(a,b){Q2(this,OV(b));P2(this,new z3(this.o,a));5!=this.A.o()&&S2(this);return 0};
A3.prototype.Ag=function(){return 1};B(B3,A3);B3.prototype.Dd=function(){return this.o.A.va||""};B(U2,L2);U2.prototype.$j=function(){};
U2.prototype.Tc=function(){return"4_3"};B(I3,N2);
I3.prototype.Dd=function(){var a;if(D(this.G)||0!=H1(this.A)){var b=this.K;if(b.o.Wa&&b.o.Ja){a={};var c="youtube_watch_"+b.B;a.nw="10613";a.asnw=b.o.Wa;a.ssnw=b.o.Wa;a.caid=b.o.Ja;a.vdur=b.F;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.o.na)||(c._fw_d_001=b.o.na);b.o.gender&&(c._fw_d_002=b.o.gender);b.o.Ia&&(c["_fwu:10613:lang"]=b.o.Ia);b.o.sa&&(c._fw_dbp=b.o.sa);b.o.$&&(c._fw_distributorvideoassetid=b.o.$);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,m=0;m<k.length&&(G3(k[m])&&h++,k[m].getId()!=b.A.getId());m++);}else h=0;d=d+h}e.slid=d;e.ptgt="a";e.slau=F3(b);e.tpos=E3(b.A)?b.F.toString():H1(b.A.fb).toString();d=gj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=gj(e,"&")+";"}b.D&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=D3(b.A)?"10":E3(b.A)?b.F.toString():H1(b.A.fb).toString(),d+=gj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=gj(e,"&")+";");b.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=gj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+gj(a,"&")+";"+gj(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?"+gj(a,"&")+";"+gj(c,"&")+";"+gj(d,"&")}else a=""}else a=this.G;return a};
I3.prototype.Ag=function(a,b){return I3.N.Ag.call(this,a,b,null)};
I3.prototype.Rd=function(a,b){var c=wV(b);if(O1(c,"rm"))return this.H.D=ec(a),2;if(this.o.A.o)return 1;if(O1(c,"hideMaster")){if(a.G&&a.G.Ue()){var c=a.G.Ue(),d;d=a.getCurrentAd();if(V()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}P2(this,new U2(this.o,a));return 0}return I3.N.Rd.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}};B(K3,Lj);f=K3.prototype;f.getId=function(){return this.F};
f.show=function(){this.J?this.o instanceof L2&&M2(this.o,"normal"):(this.J=!0,this.o instanceof B2&&O3(this.B,"bs"),this.o.subscribe("adEnd",this.Ss,this),this.o.subscribe("adError",this.Ts,this),this.o.subscribe("AD_LOGGING_EVENT",this.Vs,this),this.o.subscribe("select",this.Rs,this),this.o.subscribe("adCompanionInitialized",this.Us,this),this.o.show(),Q3(this,!0))};
f.Ss=function(){this.A&&(S3(this),T4(this.B));b3(this)};
f.Ts=function(a){if(a){var b={};M1(a,b);P3(this,b);R4(this.B,32,b)}S3(this);b3(this)};
f.Vs=function(a,b){P3(this,b);V1(this.B,a,b)};
f.Rs=function(){this.H=!1};
f.Us=function(a,b){this.S("adCompanionInitialized",a,b)};
f.V=function(){S3(this);this.o=null;null!=this.D&&(this.D.dispose(),this.D=null);K3.N.V.call(this)};var X3=[new G1(1)];var Oha={yv:"m",dv:"f"};B(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=RB(b,"engage"),a.B=1,b=ZL(b.o),a=pa(KB,a.$,MB(a),JB(a),b)):a=null):a=null;this.A=a}};
Y3.prototype.D=function(){this.B&&this.A&&this.A()};B($3,G);$3.prototype.U=function(){this.B=window.NaN};
$3.prototype.L=function(){if(T(fA(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));xi(this.B);this.B=window.NaN;this.A=0}}else T(fA(this.o.o),4)&&0==this.A&&a4(this)&&(this.A=this.o.getCurrentTime(1),this.B=vi(y(this.U,this),1E3*this.P),
this.H=K()/1E3)};
$3.prototype.V=function(){xi(this.B);this.B=window.NaN;this.A=0;this.o.Ha("applicationplayerstatechange",this.L,this)};B(c4,G);f=c4.prototype;f.Ft=function(){this.o.subscribe("beginseeking",this.ak,this)};
f.Et=function(a,b){return a.A&&G3(a)?b+this.C+this.B:b};
f.Dt=function(a,b){return!a.A||E3(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.C+this.B};
f.xt=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 qq(c,c+this.B-1,b);this.D[a.getId()]=b;this.o.gb([b])}};
f.Bt=function(a){a.A&&G3(a)&&(d4(this,a.getId()),this.ak())};
f.ak=function(){(0,window.isNaN)(this.A)||(xi(this.A),this.A=window.NaN);var a=W4(this.o);f4(this,a,this.o.app.Ra.Eb()/100);dJ(a,"transition","");dJ(a,"opacity","1")};
f.Ct=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),dJ(a,"opacity","0"),f4(this,a,0),vi(y(this.gG,this),0)))};
f.gG=function(){var a=W4(this.o);dJ(a,"transition","opacity "+String(this.F)+"ms linear");dJ(a,"opacity","1");e4(this,a,this.F,1)};
f.At=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?Mq(y(this.At,this,a,b,c),c):window.NaN}};
f.zt=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),e=this.o.app.Ra.Eb()/100,d=Math.min(e,a.o.volume+(e-a.o.volume)*c/d);f4(this,a,d);this.A=d<e?Mq(y(this.zt,this,a,b,c),c):window.NaN}};
f.V=function(){this.ak();this.o.Ha("beginseeking",this.ak,this)};B(g4,c4);f=g4.prototype;f.Ft=v;f.Et=function(a,b){return b};
f.Dt=function(a,b){return b};
f.xt=v;f.Bt=v;f.Ct=v;f.V=v;B(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 l=!k4(this,a);l!=h.visible&&(h.visible=l,c.push(h));l||(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.gb(c,1);if(d){var h=0;0<this.B&&(h=K()/1E3-this.B);Qha(this,a-h-e+2)}else i4(this)}};
h4.prototype.A=function(){return this.B};
h4.prototype.V=function(){i4(this);this.o.Ha("endseeking",this.C,this)};B(l4,G);f=l4.prototype;f.Bg=function(a){a.Ha("adBreakComplete",this.Bg,this);a.Ha("adCompanionInitialized",this.yn,this);this.O=vi(y(this.NF,this,a),0)};
f.yn=function(a,b){Mb(this.K);this.K=new Y3(this.o,b)};
f.NF=function(a){var b=Sha(this,a),c=b.previous,b=b.next;this.O=window.NaN;var d,e=!1;switch(a.fb.o()){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ga(b.fb.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.lf(a)):(this.C[a.getId()]=a,n4(this,a,d),zq(this.o));Sb(this.C)==this.B.length&&this.F.C();m4(this)};
f.lf=function(a){a.Ha("adBreakComplete",this.Bg,this);this.A&&a==this.A&&(this.A=null,null!=this.K&&a.A&&(this.K.B=!0));o4(this,a);qb(this.B,a);delete this.C[a.getId()];Mb(a)};
f.Ys=v;f.Zj=function(a){return this.C[a]};
f.xn=function(a){if(a.A){if(!E3(a)&&a.H){var b=this.o;a5(b);Eq(b);this.D.Ct(a)}else M3(a)&&!a.H?(b=this.o,a5(b),Eq(b)):a5(this.o);this.lf(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.lf(a)};
f.V=function(){xi(this.O);Mb(this.D);Mb(this.F);Mb(this.ha);F(this.B,this.lf,this);l4.N.V.call(this);Mb(this.K)};B(s4,l4);f=s4.prototype;f.Zj=function(a){a=s4.N.Zj.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.fb=a.fb;c.F=a.getId()}b&&"loaded"==b.C?(a.Ha("adBreakComplete",this.Bg,this),this.C[a.getId()]=b,this.B[this.B.indexOf(a)]=b,Mb(a)):(this.Cg(),b&&(Mb(b),b=null,this.lf(a)));b&&!b.A&&this.Cg();return b};
f.Bg=function(a){!D3(a)&&(2!=a.fb.o()||10!=H1(a.fb))||"loaded"==a.C&&a.A||this.Cg();s4.N.Bg.call(this,a)};
f.xn=function(a){a.A&&10<this.U?u4(this):this.Cg();s4.N.xn.call(this,a)};
f.Cg=function(){if(!this.isDisposed())for(t4(this);this.L.length&&this.M.length+this.H.length<this.$;){var a=this.L.shift();a.subscribe("adBreakComplete",this.$s,this);this.M.push(a);R3(a)}};
f.Ys=function(){u4(this)};
f.$s=function(a){a.Ha("adBreakComplete",this.$s,this);qb(this.M,a);this.H.push(a)};
f.V=function(){t4(this);F(this.M,Mb);F(this.H,Mb);F(this.L,Mb);s4.N.V.call(this)};B(v4,l4);v4.prototype.qh=function(a){this.fa=a};
v4.prototype.getVideoData=function(){return this.fa};
v4.prototype.ea=function(a){"loaded"==a.C&&this.L.push(a);a.Ha("adBreakComplete",this.ea,this)};
v4.prototype.Z=function(){if(null!=this.A&&0<this.L.length){var a=this.L.shift();delete this.C[H1(a.fb)];var b=Math.floor(K()/1E3)-this.ca;this.ca=null;a.Ha("adBreakComplete",this.Z,this);this.lf(a);this.A=null}0<this.U?(this.U--,w4(this)):(a=this.M,a5(a),Eq(a),(0,window.isFinite)(b)&&(this.$?lM(this.H,window.Infinity,!0):lM(this.H,this.H.getCurrentTime()+b,!0)))};var c5=["9412857","9412859"];B(z4,G);z4.prototype.G=function(){this.o||(this.o=y4(this.B.je()));this.A.o.gb(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.je(),function(a){var h=this.o[a];if(h){var l=this.B.M.get(a);l&&l.sc>b?(a=!s1(this.H,l),a!=h.visible&&(h.visible=a,c.push(h)),a||(h=l.sc-b,h<e&&(e=h,d=l))):!l||l.kb()?(gN(this.A.o,[h],void 0),delete this.o[a]):!h.visible&&l&&(h.visible=!0,c.push(h))}},this);
0<c.length&&this.A.o.gb(c,1);if(d){var h=0;0<this.F&&(h=K()/1E3-this.F);Vha(this,a-h-e+2)}else A4(this)}};
z4.prototype.V=function(){z4.N.V.call(this);this.A.Ha("endseeking",this.D,this);A4(this)};B(C4,G);f=C4.prototype;f.It=function(){return 4};
f.bk=function(a){return a};
f.Kt=function(){return!1};
f.Gt=v;f.Kh=v;f.Ht=v;f.Jt=v;f.Lt=v;B(D4,G);f=D4.prototype;f.It=function(){return 4-this.C/1E3};
f.bk=function(a){return Yb(this.B,1E3*a)?this.B[1E3*a]/1E3:a};
f.Kt=function(a){var b=!1,c={};F(gh(a),y(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?x4(e):null)b=b||Wha(a),c[e]=a},this));
if(!b||0==Sb(c))return!1;a=ji(Wb(c),function(a){return(0,window.parseInt)(a,10)});
if(!Zha(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",Xha(this,c))},this));
return!0};
f.Gt=function(a){if(!(0>=this.H)){var b=[];F(a,y(function(a){if(Yb(this.B,1E3*a)){var d=new qq(1E3*this.bk(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.gb(b)}};
f.Ht=function(a){if(Yb(this.B,1E3*a)){var b=W4(this.o);a=Math.max(0,1E3*a-1E3*this.o.getCurrentTime(1));dJ(b,"transition","opacity "+String(a)+"ms linear");dJ(b,"opacity","0");F4(this,b,a,0)}};
f.Jt=function(a){E4(this,1E3*a)&&(this.D[a]&&(gN(this.o.o,[this.D[a]],void 0),delete this.D[a]),this.Kh())};
f.Rt=function(){T(fA(this.o.o),4)&&this.Kh()};
f.Kh=function(){(0,window.isNaN)(this.A)||(xi(this.A),this.A=window.NaN);var a=W4(this.o);G4(this,a,this.o.app.Ra.Eb()/100);dJ(a,"transition","");dJ(a,"opacity","1")};
f.Lt=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.bk(a)+this.G/1E3),0>=this.F||(a=W4(this.o),dJ(a,"opacity","0"),G4(this,a,0),(0,window.isNaN)(this.A)||xi(this.A),this.A=Mq(y(this.qG,this),0)))}};
f.qG=function(){var a=W4(this.o);dJ(a,"transition","opacity "+String(this.F)+"ms linear");dJ(a,"opacity","1");F4(this,a,this.F,1)};
f.Qt=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?Mq(y(this.Qt,this,a,b,c),c):window.NaN}};
f.Pt=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-K()),e=this.o.app.Ra.Eb()/100,d=Math.min(e,a.o.volume+(e-a.o.volume)*c/d);G4(this,a,d);this.A=d<e?Mq(y(this.Pt,this,a,b,c),c):window.NaN}};
f.V=function(){this.Kh();this.o.Ha("applicationplayerstatechange",this.Rt,this);D4.N.V.call(this)};B(H4,G);var dia={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.H=this.o.L){var b=this.o.A;this.D=b.applyFadeOnMidrolls?new D4(this.o):new C4;var c=S1(this.o);c.A=aia(this,a);c.Ii=this.o.K.B;c.Cb.TSLA=uha(this);c.Cb.GET_MIDROLL_POSITION_IN_SEC=y(this.D.bk,this.D);if(a=T3(b).get(3))if(I1(this.o.W(),["9418778","9417893","9417894","9417895","9419817"])||(c.B=P1(a)),b=b.xa)c.C=b;this.H.R("adsManagerLoaded",this.Nt,!1,this);this.H.R("adError",this.Mt,!1,this);A1(this.H,c,this)}};
f.Nt=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=bia(this);this.A=zW(a,this.o.K,b,c)}catch(d){M4(this,d);return}if(this.G=this.A.np(b,this.o.A.A)){this.D.Gt(this.A.je());this.L=new $3(this.o,this.G);this.J=new z4(this.o,this.A,this.G);I(this,this.J);vi(y(this.J.G,this.J),0);jb(this.A.je(),0)||L4(this);this.F.R(this.A,"companionBackfill",y(this.nG,this));this.F.R(this.A,"prefetched",y(this.kG,this));this.F.R(this.A,"loaded",y(this.jG,this));this.F.R(this.A,"adError",y(this.iG,this),!1);this.F.R(this.A,"start",y(this.lG,
this));this.F.R(this.A,"complete",y(this.hG,this));this.F.R(this.A,"contentPauseRequested",y(this.oG,this));this.F.R(this.A,"contentResumeRequested",y(this.pG,this));this.F.R(this.A,"allAdsCompleted",y(this.mG,this));Z3(this.o,this.Ot,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.Ot=function(){if(T(fA(this.o.o),16)||T(fA(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&&n1(a.F)};
f.oG=function(a){N4(this);(this.B=a.getAd())&&this.B.isLinear()&&(a=J4(this.B),this.C=new B2(a,this.o,this.A,null!=AV(this.B),!0),p4(this.o),this.D.Jt(this.B.C.o),this.C.show(),I4(this,"show_instream_ads"))};
f.pG=function(a){L4(this);if(this.o.getCurrentTime(1)<this.o.o.getVideoData().lengthSeconds){var b=this.o;a5(b);Eq(b);this.B&&this.B.isLinear()&&this.D.Lt(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.J;if(null!=b.o[0]){var c=b.o[0];delete b.o[0];b.o[0]=new qq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.A.o.gb([c,b.o[0]],1);b.A.gb([b.o[0]])}this.B=a;return}b=cia(this,a)}this.B&&this.B.isLinear()&&
T4(this.o);this.B&&this.B.isLinear()?(I4(this,"set_previous_ad_end_time"),b=this.G,0<b.B&&(b.o=K()/1E3),B4(this.J)):a&&a!==this.B&&!a.isLinear()&&b&&B4(this.J);this.J.G();this.B=a};
f.mG=function(){this.L.J=!0};
f.lG=function(a){(a=a.getAd())&&this.C&&(a=J4(a),this.C.adSystem=a)};
f.hG=function(a){a.getAd().isLinear()||this.B!==a.getAd()||(N4(this),this.B=null)};
f.kG=function(a){var b=a.getAd();null!=b&&(this.P[a.o.adBreakTime]=b)};
f.jG=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.iG=function(a){M4(this,a.getError())};
f.Mt=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.o===this&&M4(this,b)};
f.nG=function(a){a=a&&a.getAd();K4(this,a)};
f.V=function(){N4(this);this.H&&(this.H.za("adsManagerLoaded",this.Nt,!1,this),this.H.za("adError",this.Mt,!1,this));this.O.removeAll();this.F.removeAll();this.o.o.removeEventListener("applicationplayerstatechange",this.Ot,this);this.M=!1;this.A&&(this.A.destroy(),this.A=null);Mb(this.D);Mb(this.L);H4.N.V.call(this)};B(O4,C1);O4.B=10;O4.A=1E3;O4.o="livead";O4.Xa=function(a){return!!a.Ra.getVideoData().adModule};
f=O4.prototype;f.Xa=function(){return O4.Xa(this.app)};
f.create=function(){O4.N.create.call(this);this.P.T(this.o,"beginseeking",y(this.S,this,"beginseeking"));this.P.T(this.o,"endseeking",y(this.S,this,"endseeking"));this.P.T(this.o,"resize",y(this.S,this,"resize"));this.P.T(this.o,"presentingplayerstatechange",y(this.S,this,"presentingplayerstatechange"));this.P.T(this.o,"webglsettingschanged",y(this.S,this,"webglsettingschanged"));O3(this,"i");this.A=new Pha(this.W(),this.o.getVideoData().C||{});this.J=new Tha(this,this.o);this.$=!1;if(this.L)this.L.o.B.C=
wT();else{var a=this.A.X?void 0:s2(this.H),b=new B1(this.app,2),c=p2(this.H);b.A||(b.A=ec(b.B),b.A.addEventListener=y(b.cx,b),b.A.removeEventListener=y(b.fx,b));this.K=new oT(c,void 0,a,b.A,!0);this.K.setSize(-1,-1);this.L=new z1(this.K)}if(this.A.vmap&&!this.A.ea){this.C=new H4(this);try{this.C.load(this.A.vmap)}catch(x){zi(x),q4(this,"vmap_load_exception"),this.C.dispose(),this.C=null,$4(this,W3(new V3(this)))}}else{try{if(ti("EXP_QUICK_FETCH_BISCOTTI")&&!this.A.serverPrefetchedVast){var d=Qt(),
e=jJ();if(e)this.Zs(d,e);else{var h=y(this.Zs,this,d),k=y(this.PF,this,d),m;try{var l=r("yt.www.ads.biscotti.getId_"),p;if(l)p=l();else{if(!hJ){var t=Kr("//googleads.g.doubleclick.net/pagead/id",{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0}).then(jaa),u=Ed(iJ,iJ,void 0);u.B=!0;Md(t,u);hJ=t}p=hJ}m=p}catch(x){m=Fd(x)}this.U=m.then(h,k)}}}catch(x){zi(x)}$4(this,W3(new V3(this)))}this.J&&(a={},a.allowed=this.J.C,Aq(this,{},a))};
f.Zs=function(a,b){var c=b?0:2,d=Math.round(Qt()-a);this.log({biscotti:1,dur:d,bstate:c})};
f.PF=function(a){a=Math.round(Qt()-a);this.log({biscotti:1,dur:a,bstate:1})};
f.destroy=function(){this.X&&a5(this);this.app.W().experiments.ga("disable_new_pause_state3")||yq(this);Z4(this);Nb(this.B,this.D,this.C);this.J=this.A=this.C=this.ca=this.D=this.B=null;r2(this.H);$1=X1=!1;this.U&&this.U.cancel();this.F&&O4.N.destroy.call(this)};
f.W=function(){return this.app.W()};
f.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
f.Oa=function(){return this.o.Oa()||this.A.C};
f.Ih=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.Ih.call(this);return a};
f.Ca=function(){return this.o.Ca()};
f.getVideoData=function(){return this.ca};
f.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
f.OF=function(){if(this.D){var a;a=this.C?this.C.C:this.B.A.o;null!=a&&a.Xj()}};
f.getAdState=function(){return this.O};
f.Yb=function(a){O4.N.Yb.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.Zj(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));dJ(e,"transition","opacity "+String(d)+"ms linear");dJ(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.Ht(b)):0>b?(b=this.L.o,d=new AW("contentComplete"),
b.aa(d),d.B&&(hO(fO(),41351033)||b.B.clear(),null!=b.A&&(d=b.A.Ue(),null!=d&&MT(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);n(b.C[a]);)a++;var d=b.ia++,c=0==a?new G1(1):new G1(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.ea,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 L2&&M2(b.o,"fullscreen"));this.C&&"ytp-ad-fadeout"==a.style&&this.C.D.Kh();"livead"===a.getId()&&null!=U4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(gN(this.o,[a],1),w4(U4(this)))};
f.re=function(a){this.S(a)};
f.vz=function(a,b){a.subscribe("cuepointupdated",this.QF,this);this.ca=a;var c=U4(this);null!=c&&(c.H=b)};
f.QF=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.xe>c&&(a=new qq(1E3*Math.floor(c+Math.random()*Math.max(a.xe-10-c,0)),1E3*a.xe,{id:"livead",priority:2}),this.gb([a],1))},this)}};
f.nd=function(a){switch(a){case "addata":var b=this.A;return{adTag:b.adTag,adTest:b.Ka,forceAdType:b.ca,isAfvSkippableInstreamEnabled:b.L,isAfvStandardInstreamEnabled:b.M,isBlazer:b.F,isDoubleClickEnabled:b.J,isForcedAd:b.ea,isFreeWheelEnabled:b.P,isHouseBrandPlayer:b.Ob,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 m2?b.adType:!1,adSkipped:b instanceof B2?b.F:!1,hasVideoStarted:b instanceof B2?b.H:!1,skippable:b instanceof B2?b.O:!1};case "getContentVideoData":return b=R1(this),{adModule:b.adModule,partnerTrackingToken:b.$,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.jf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};e5.prototype.o=function(){return this.B};
var eia=[2,5];var W$=!1,X$=!1;Hi("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}});
Hi("watchAdsInit",function(){if(W$){W$=!1;var a=r("yt.www.watch.ads.loadAfc");ha(a)?a():W$=!0}});new e5(1);B(f5,R);f5.prototype.L=function(a,b){xi(this.A);this.context&&(this.A=Mq(y(this.L,this,a,b),b),a.call(this,new Date-this.K))};
f5.prototype.V=function(){xi(this.A);this.context=null;f5.N.V.call(this)};B(h5,G);f=h5.prototype;f.V=function(){k5(this,new gz);j5(this);t5(this);this.A.o.removeEventListener("onVolumeChange",this.Aq,this);this.A.o.removeEventListener("onCaptionsTrackListChanged",this.zq,this);var a=this.o;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.o.Ha("proxyStateChange",this.Mq,this),this.o.Ha("remotePlayerChange",this.hm,this),this.o.Ha("remoteQueueChange",this.im,this));s5(this,this.B);this.F&&this.A.o.sn(this.F);this.o=this.A=null};
f.rG=function(a,b){2==this.o.A||(m5(this)?this.Px.apply(this,arguments):this.C&&this.Nx.apply(this,arguments))};
f.Nx=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.Px=function(a,b){if(1081==vo(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":vo(this.o).kb()?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.Kf();break;case "control_subtitles_set_track":g5(this,c[0]);break;case "control_set_audio_track":c=c[0],m5(this)&&
(this.o.cs(n5(this),c),this.F=c)}};
f.Aq=function(a){if(m5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=vo(this.o);b==c.volume&&a==c.muted||this.o.setVolume(b,a)}};
f.zq=function(){ac(this.B)||s5(this,this.B);this.D=!1};
f.Mq=function(a,b){t5(this);2==b&&this.Nr()};
f.hm=function(){if(m5(this)){j5(this);var a=vo(this.o);switch(a.o){case 1:p5(this);k5(this,new gz(8));break;case 3:k5(this,new gz(1));break;case 0:k5(this,new gz(2));this.J.stop();var b=this.A.o;(b=wq(b.app,b.playerType||1))&&b.hg(!0);i5(this,this.A.o.getVideoData().lengthSeconds);break;case 2:k5(this,new gz(4));i5(this,oo(a));break;case -1:k5(this,new gz);break;case -1E3:k5(this,new gz(128,{}))}0==this.K&&(b=this.A.o,(b=wq(b.app,b.playerType||1))&&b.hg(!1));this.K=a.o;a=vo(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=vo(this.o);-1==a.volume||Math.round(this.A.o.Eb())==a.volume&&this.A.o.Dc()==a.muted||(this.A.o.setVolume(a.volume),a.muted?this.A.o.mute():this.A.o.unMute())}else l5(this)};
f.im=function(){m5(this)||l5(this)};
f.PD=function(){var a=this.M;j5(this);i5(this,a);-1==vo(this.o).o?r5(this,a):this.o.bs(a);k5(this,new gz(1))};
f.Nr=function(){t5(this);j5(this);var a=this.o.C.getReconnectTimeout();2!=this.o.A||(0,window.isNaN)(a)?this.C=!1:this.H=vi(y(this.Nr,this),1E3)};B(u5,C1);var gpa=["play_pause","seek","set_audio_track"],hpa=["captions"];f=u5.prototype;f.Xa=function(){return 1<this.O.length};
f.create=function(){u5.N.create.call(this);this.H.push(Hi("yt-remote-before-disconnect",this.fA,this));this.H.push(Hi("yt-remote-connection-change",this.Nq,this));this.Nq();var a=this.o.app.M;this.D&&this.D!=this.C&&1!=a&&3!=a&&this.load()};
f.destroy=function(){Ii(this.H);this.H.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,gpa,hpa);var a=Op();if(0!=a){var b=this.A?mo(vo(this.A)):null;b&&b!=this.o.getVideoData().videoId||vi(y(function(){this.K=a||0;this.o.S("progresssync",a,void 0)},this),0)}}};
f.unload=function(){this.loaded&&(this.D=this.C,Dq(this),Mb(this.B),this.B=null,u5.N.unload.call(this))};
f.V=function(){this.F&&this.destroy();Nb(this.B,this.A);this.A=this.B=null;u5.N.V.call(this)};
f.re=function(a,b){this.B&&this.B.rG.apply(this.B,arguments)};
f.getCurrentTime=function(){return this.K};
f.fA=function(a){1==a&&(this.L=this.A?vo(this.A):null);this.J=a};
f.Nq=function(){var a=Np();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)&&mo(a)==this.o.getVideoData().videoId?this.o.ln(mo(a),oo(a)):this.o.ln(this.o.getVideoData().videoId)))};
f.nd=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)zl();else if(this.D=b||this.C,b.key==this.C.key)Gp();else{var c=0,d="",e=this.o.Cc();e&&(c=e.Mb(),d=this.o.getVideoData().playlistId);if(e=this.o.Cc()){for(var h=[],k=0;k<e.B;k++)h[k]=e.xb(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()};
Kp(b,c);Mb(this.B);this.B=null;this.load()}return this.D;case "castSelector":return c=xp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&zl(),c}};
f.jf=function(){return["casting","receivers","currentReceiver","castSelector"]};B(w5,Oq);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.uy=function(){this.J=new we(0,0,0,0);this.G=new we(0,0,0,0)};
f.En=function(a){$d(this.element,arguments)};
f.Je=function(){if(this.A){var a=this.Ma();if(!a.isEmpty()){var b=!ve(a,ze(this.G)),c=x5(this);b&&(this.G.width=a.width,this.G.height=a.height);a=this.app.W();(c||b||a.P)&&this.S("resize")}}};
f.wG=function(a,b){z5(this,b)};
f.xG=function(a){a.getVideoData()&&z5(this,a.getVideoData())};
f.Ma=function(){var a=this.app.W(),b=Dh()==this.element;if(b&&Zp())return new ue(window.outerWidth,window.outerHeight);if(b||a.Td){var c;window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.H&&this.H.media==a||(this.H=window.matchMedia(a)),c=this.H&&this.H.matches);if(c)return new ue(window.innerWidth,window.innerHeight)}else if(this.X){if(a.experiments.ga("flex_theater_mode")&&this.app.ha||a.experiments.ga("player_scaling_360p_to_720p")&&this.ia.matches)return new ue(this.element.clientWidth,
this.element.clientHeight);if(this.X.matches)return new ue(426,240);a=this.app.ha;if((a?this.fa:this.ea).matches)return new ue(1280,720);if(a||this.ha.matches)return new ue(854,480);if(this.la.matches)return new ue(640,360)}return new ue(this.element.clientWidth,this.element.clientHeight)};
f.Qx=function(){this.A&&C2(this);this.Je()};
f.V=function(){this.F&&(this.F.disconnect(),this.F=null);this.K&&Ii(this.K);this.A=this.D=this.M=null;w5.N.V.call(this)};B(F5,Dr);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.Go=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.EG=function(a,b){return this.o.length?this.o.pop():I5(this,a,b)};
f.oD=function(a){a&&jb(this.A,a)&&(fz(a),Rl(a),qb(this.A,a))};
f.Xt=function(a){return this.o.length>=(a||1)};
f.rw=function(){this.o=[];this.Xt(4)?F(this.A,function(a){a.src||a.load();this.o.push(a)},this):this.Go(4)};
H5.prototype.fillPool=H5.prototype.Go;H5.prototype.getTag=H5.prototype.EG;H5.prototype.releaseTag=H5.prototype.oD;H5.prototype.hasTags=H5.prototype.Xt;H5.prototype.activateTags=H5.prototype.rw;B(J5,Lj);f=J5.prototype;f.sG=function(a){a=Vl(a);if(!se(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.qb(b,!0)}};
f.Gz=function(){this.F&&this.qb(8,!0);this.qb(2,!1)};
f.Vt=function(a){var b=Vl(a);se(b,this.B)||(this.B=b,(a=Sl(a))&&this.P(a)&&(this.qb(4,!0),this.o.za(this.G),this.G=this.o.T(this.C,"mouseout",this.tG)))};
f.tG=function(a){a=Ul(a);a&&this.P(a)||(this.B=new re(window.NaN,window.NaN),this.qb(4,!1),this.o.za(this.G),this.G=this.o.T(this.C,"mouseover",this.Vt))};
f.oz=function(){this.qb(1,!0)};
f.ix=function(a){a=Sl(a);a instanceof window.Element&&!(0<a.tabIndex)||this.qb(1,!0)};
f.Ut=function(){this.F=!0;this.o.za(this.D);this.D=this.o.T(window.document,"mouseup",this.uG)};
f.uG=function(){this.F=!1;this.qb(8,!1);this.o.za(this.D);this.D=this.o.T(this.C,"mousedown",this.Ut)};
f.Wt=function(a){if(a=a.changedTouches[0])this.O=a.identifier,this.o.za(this.H),this.H=this.o.T(this.C,"touchend",this.vG),this.qb(1024,!0)};
f.vG=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.O){b=d;break}}b&&(this.o.za(this.H),this.H=this.o.T(this.C,"touchstart",this.Wt),this.qb(1024,!1))};
f.qb=function(a,b){this.isDisposed();var c=!this.A;b?(this.A|=a,a&1&&this.J.start(),a&2&&this.K.start()):(this.A&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.L.stop());this.A&512&&!(this.A&128)&&this.L.we(this.M);var d=!this.A;c!=d&&this.S("autohideupdate",d)};B(K5,R);B(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.ka=function(){xi(this.A);M5.N.ka.call(this)};B(P5,R);P5.prototype.show=function(){P5.N.show.call(this);this.A&&this.A.show()};
P5.prototype.ka=function(){P5.N.ka.call(this);this.A&&this.A.ka()};
P5.prototype.G=function(a){var b=Cy(this.D.W());By(a,this.D,!b)&&(a={as3:!1,html5:!0,player:!0,cpn:this.D.getVideoData().clientPlaybackNonce},b=this.D,b.Da("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a}),b.Oa()&&Dy(b))};
P5.prototype.V=function(){P5.N.V.call(this)};B(R5,R);B(T5,R);T5.prototype.show=function(){T5.N.show.call(this);this.H()};
T5.prototype.ka=function(){T5.N.ka.call(this);this.G.stop()};
T5.prototype.H=function(){var a=wq(this.A),b=this.A.getVideoData(),c=this.A.G.A,d=this.A.W(),e=BJ(d),h=this.A.la.K.Na(),k=8*cb(h)/1024,m=b.Ga&&this.A.W().experiments.showEndToEndLatency,l;l=this.A;l=(l=l.A&&l.A.X)?l.D.Na():[0];var p=cb(l),p=120<p?"Uncertain":p.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,A=b.videoId,C=b.clientPlaybackNonce,H=b.clientPlaybackNonce?"":"display:none",e=
e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.D?AL(a.D):"",z;a:{if(b.og&&(z=b.og.match(/url=(https?)/))&&2==z.length){z=z[1];break a}z=""}c={video_id:A,cpn:C,cpn_style:H,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:z||d.fa,dimensions:c.clientWidth+" x "+c.clientHeight+(1<x?" * "+x:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.A.Ra.Eb())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:m?"":"display:none",live_latency_message:p,
drm_style:u?"":"display:none",drm:u?t.o+" / "+t.B:""};b.B&&(d=Rr(b.B)?"yes":"no",d+=" ("+b.B.id,b.F&&Rr(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);Mf(b.A.element,h);h=this.F;l=S5(h,l);Mf(h.A.element,l);this.update(c);this.G.start()};U5.prototype.isDisposed=function(){return!this.B};
U5.prototype.dispose=function(){V5(this);delete this.B};B(W5,Oq);W5.prototype.F=function(){var a=this.D.gf();this.H.style.width=100*j2(new g2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
W5.prototype.G=function(){2==this.D.getPresentingPlayerType()?this.A||(this.show(),this.A=this.T(this.D,"progresssync",this.F),this.F()):this.A&&(this.ka(),this.za(this.A),this.A=null)};B(X5,R);B($5,R);var kia={shopping_card_icon_always_visible:["ytp-cards-always-show-teaser-icon"],shopping_card_badge_enabled:["ytp-cards-enable-shop-badge"],shopping_card_icon_with_teaser:["ytp-cards-use-shopping-icon-with-teaser","ytp-cards-icon-teaser-blue"],shopping_card_icon_without_teaser:["ytp-cards-use-shopping-icon-without-teaser"],shopping_card_icon_hover_blue:["ytp-cards-icon-hover-blue"]};$5.prototype.V=function(){this.A&&this.A();$5.N.V.call(this)};
$5.prototype.G=function(){Ji("iv-button-mouseover")};
$5.prototype.F=function(a){Cz(this.da);var b=Zd(this.da.Ca(),"ytp-cards-teaser-shown");Ji("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.da.Fh(!bN(this.da),a)};B(b6,Oq);f=b6.prototype;f.show=function(){b6.N.show.call(this);this.va&&(this.fa=this.T(window,"blur",this.tb),this.ha=this.T(window.document,"click",this.kH))};
f.ka=function(){b6.N.ka.call(this);c6(this);this.fa&&(this.za(this.fa),this.za(this.ha))};
f.Ke=function(a){this.K=a;this.ia.show();a&&window.document.activeElement&&mh(a,window.document.activeElement)&&this.focus()};
f.tb=function(){c6(this);this.ia.ka();this.za(this.fa);this.za(this.ha)};
f.kH=function(a){var b=Tl(a);b&&(mh(this.element,b)||this.K&&mh(this.K,b)||!oy(a))||this.tb()};B(f6,b6);f=f6.prototype;f.show=function(){f6.N.show.call(this);this.wh();this.S("show",!0)};
f.ka=function(){f6.N.ka.call(this);1>=this.D.length||(this.F.Ha("back",this.te,this),Jq(this.D[this.D.length-1]),e6(this,this.D[0]),this.D=[this.F],this.F.o(this.element),Uq(this.F.element,"transform","translateX(0)"),Uq(this.F.element,"opacity","1"),this.wh());this.S("show",!1)};
f.wh=function(){this.C&&(g6(this),kr(this.element,this.size))};
f.te=function(){var a=this.D.pop();h6(this,a,this.D[this.D.length-1],!0)};
f.JD=function(a,b,c){this.J.dispose();this.J=null;j6(this,!0,[a,b]);Uq(a.element,"transform","translateX("+c+"px)");Uq(a.element,"opacity","0");Uq(b.element,"transform","translateX(0)");Uq(b.element,"opacity","1");kr(this.element,this.size);this.H=new Wd(pa(this.Tz,a,b),250,this);this.H.start()};
f.Tz=function(a,b){j6(this,!1,[a,b]);Jq(a);this.H.dispose();this.H=null};
f.gH=function(a){if(!Xl(a))switch(Yl(a)){case 27:this.tb();Wl(a);break;case 37:1<this.D.length&&this.te();Wl(a);break;case 39:Wl(a)}};
f.focus=function(){this.F.focus()};
f.V=function(){f6.N.V.call(this);this.J&&this.J.dispose();this.H&&this.H.dispose()};B(k6,Oq);f=k6.prototype;f.remove=function(a){qb(this.A,a);a.Ha("size-change",this.gm,this);a=tb(this.A);this.Jb(a);this.S("size-change")};
f.removeAll=function(){for(var a=0;a<this.A.length;a++)this.A[a].Ha("size-change",this.gm,this);this.A=[];this.Jb([]);this.S("size-change")};
f.Ow=function(a,b){return b.priority-a.priority};
f.gm=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()};B(n6,Oq);n6.prototype.B=function(a,b){n6.N.B.call(this,a,b);this.S("size-change")};B(p6,Oq);p6.prototype.G=function(){this.S("size-change")};
p6.prototype.focus=function(){this.H.focus()};
p6.prototype.L=function(){this.S("back")};B(q6,n6);q6.prototype.A=function(a){Xl(a)||39!=Yl(a)||(this.element.click(),Wl(a))};B(s6,n6);s6.prototype.L=function(){t6(this,!this.A);this.S("select",this.A)};
s6.prototype.getValue=function(){return this.A};B(w6,f6);f=w6.prototype;f.ka=function(){Fr(this.ea);w6.N.ka.call(this)};
f.Jz=function(a){oy(a)&&this.A.pauseVideo();this.tb()};
f.EA=function(a){if("gvn"!=this.A.W().o){var b=Tl(a);if(!this.C&&(!b||"A"!=b.tagName&&!vh(b,"ytp-no-contextmenu"))){Wl(a);this.element.style.left="";this.element.style.top="";var c=Vl(a);c.x++;c.y++;this.Ke();b=er(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 we(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;$q(this.element,Ae(b));this.ea.T(window.document,"contextmenu",this.LA)}}};
f.FA=function(){Nq(this.L.element)};
f.LA=function(a){Xl(a)||mh(this.element,Tl(a))||this.tb()};
f.MG=function(a){this.tb();this.o(a?this.A.Ca():window.document.body)};
f.NG=function(){x6(this,this.A.mn(!0))};
f.OG=function(){x6(this,this.A.rs())};
f.PG=function(){x6(this,this.A.getVideoUrl(!0,!0))};
f.ZA=function(){x6(this,this.A.getVideoUrl(!1,!0))};
f.mB=function(a){t6(this.$,a)};
f.nB=function(){var a=this.$.getValue();q9(this.A.app,a);this.tb()};
f.QG=function(){this.tb()};
f.RG=function(a){var b=this.A,c=wq(b.app);c&&c.Mj(new gw("feedback",!1,{gpu:w9(b.app)}));b=Cy(this.A.W());By(a,this.A,!b)&&(a=this.A,a.Da("onFeedbackStartRequest",{as3:!1,html5:!0,player:!0}),a.Oa()&&Dy(a));this.tb()};
f.SG=function(){this.A.xs();this.tb()};
f.TG=function(a,b){v6(this,b)};B(y6,zr);f=y6.prototype;f.show=function(){this.C||(this.F.T(this.api,"videodatachange",this.D.we,this.D),this.F.T(this.api,"videoplayerreset",this.D.we,this.D));y6.N.show.call(this)};
f.ka=function(){Fr(this.F);y6.N.ka.call(this)};
f.VG=function(a){var b=this.api.W();b.experiments.ga("disable_new_pause_state3")&&Cy(b)&&(a=qz(a.state)&&!qz(a.o)||UM(this.api)&&T(a.state,2),Uq(this.element,"transition-delay",a?"2s":""));this.D.we()};
f.UG=function(){this.element.style.backgroundImage=""};
f.bu=function(){3==this.api.getPresentingPlayerType()?this.A.show():z6(this.A,this.api,fA(this.api));this.C&&3!=this.A.o&&this.VD(this.api.Cc(),this.api.getVideoData())};
f.VD=function(a){for(var b=this.api.W(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof rx&&!e.videoId)){if(!b.isMobile||b.experiments.ga("mobile_hq_cued_thumbnail")){c=DF(this.api).Ma();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+")":""};B(A6,Dr);
A6.prototype.D=function(a){var b=!1,c=Yl(a),d=Tl(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,h=!1,k=!1,m=this.o.W();Xl(a)?(e=!1,k=!0):m.ob&&(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 l=d.getAttribute("role");!l||"option"!=l&&"button"!=l&&0!=l.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:l=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==l?b=!0:e&&("option"==l?(d&&"option"==d.getAttribute("role")&&d.focus(),h=b=!0):l&&0==l.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),h=b=!0))}if(this.B&&this.B.C&&e&&!h)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:S6(this.B,c),h=!0}m.Ob||!e||h||(h=String.fromCharCode(c).toLowerCase(),this.A+=h,0=="awesome".indexOf(this.A)?(h=!0,7==this.A.length&&(l=this.o.Ca(),d=!Zd(l,"ytp-color-party"),
M(l,"ytp-color-party",d))):(this.A=h,h=0=="awesome".indexOf(this.A)));if(e&&!h){switch(c){case 32:Z5(this.H);iz(fA(this.o))?this.o.pauseVideo():this.o.md();k=h=!0;break;case 37:this.o.Sc(-5);k=h=!0;break;case 39:this.o.Sc(5);k=h=!0;break;case 38:this.o.setVolume(Math.min(this.o.Eb()+5,100));k=h=!0;break;case 40:this.o.setVolume(Math.max(this.o.Eb()-5,0));k=h=!0;break;case 27:this.J()&&(k=h=!0);break;case 36:this.o.Ub(0);k=h=!0;break;case 35:this.o.Ub(window.Infinity);k=h=!0;break;case 67:QM(this.o.app.D,
"captions")&&(VM(this.o),k=h=!0);break;case 66:E6(this,"background")&&(h=!0);break;case 79:E6(this,"textOpacity")&&(h=!0);break;case 87:E6(this,"windowOpacity")&&(h=!0);break;case 187:E6(this,"fontSizeIncrement",!1,!0)&&(h=!0);break;case 189:E6(this,"fontSizeIncrement",!0,!0)&&(h=!0)}var p;48<=c&&57>=c?p=c-48:96<=c&&105>=c&&(p=c-96);(0,window.isNaN)(p)||(k=this.o.gf(),this.o.Ub(p/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=h=!0)}}b&&this.C(!0);(b||k)&&this.G.qb(2,!0);(h||e&&C6(this,c,a.shiftKey))&&
Wl(a);m.Ya&&(a={keyCode:Yl(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:Xl(a),fullscreen:this.o.Oa()},this.o.Da("onKeyPress",a))};
A6.prototype.F=function(a){a=Yl(a);this.B&&this.B.C&&T6(this.B,a);9==a&&this.C(!0)};
A6.prototype.C=function(a){M(this.o.Ca(),"ytp-keyboard-focus",a);M(this.K.element,"ytp-keyboard-focus",a)};B(G6,R);G6.prototype.G=function(a){var b=this.A.W();b.experiments.ga("disable_new_pause_state3")&&Cy(b)&&Uq(this.element,"transition-delay",qz(a.state)&&!qz(a.o)?"2s":"");F6(this,a.state)};B(H6,R);H6.prototype.F=function(a){By(a,this.A)&&this.A.qn(this.D)};B(I6,b6);f=I6.prototype;f.show=function(){I6.N.show.call(this);this.D.addEventListener("videodatachange",this.Mh,this);this.D.addEventListener("onPlaylistUpdate",this.Mh,this);this.Mh()};
f.ka=function(){I6.N.ka.call(this);this.D.removeEventListener("videodatachange",this.Mh,this);this.D.removeEventListener("onPlaylistUpdate",this.Mh,this);J6(this,null)};
f.Mh=function(){J6(this,this.D.Cc());var a=this.A.author;this.update({title:this.A.title,subtitle:Q(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.A.Mb()+1,PLAYLIST_LENGTH:this.A.B}),playlisturl:this.D.getVideoUrl(!0)});this.sm()};
f.sm=function(){var a=this.A.J;if(a==this.H)this.G.element.setAttribute("aria-checked",!1),this.G=this.F[this.A.Mb()];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 H6(this.D,this.A,b);this.F.push(d);d.o(this.L)}this.G=this.F[this.A.Mb()];this.H=a}this.G.element.setAttribute("aria-checked",!0)};
f.jH=function(){this.J()};
f.wC=function(a){var b=this.D.getVideoUrl(!0);Ey(b,this.D,a)};
f.focus=function(){this.G.focus()};
f.V=function(){this.ka();I6.N.V.call(this)};B(K6,R);K6.prototype.D=function(){this.A&&2!=this.F.getPresentingPlayerType()&&400<=DF(this.F).Ma().width?(this.update({text:Q("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.A.Mb()+1,PLAYLIST_LENGTH:this.A.B}),title:Q("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.A.title})}),this.C||(this.show(),r7(this.G))):this.C&&(this.ka(),r7(this.G))};
K6.prototype.H=function(){this.A&&this.A.Ha("shuffle",this.D,this);(this.A=this.F.Cc())&&this.A.subscribe("shuffle",this.D,this);this.D()};B(L6,b6);f=L6.prototype;f.HB=function(a){a=Tl(a);mh(this.M,a)||mh(this.G,a)||this.J()};
f.tb=function(){L6.N.tb.call(this);this.F.yf(this.element)};
f.show=function(){L6.N.show.call(this);this.ku()};
f.ku=function(){L(this.element,"ytp-share-panel-loading");be(this.element,"ytp-share-panel-fail");var a=this.D.getVideoData(),b=this.D.Ce(),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.W();e.Bb&&(d.authuser=e.Bb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var h=this.D.W();tj(h.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.wH,sb:function(a,b){b&&b.actions&&G5(b.actions);
this.mC.call(this,0,b)},
Rc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.B("link",a);this.B("linkText",a);Nq(this.H)};
f.mC=function(a,b){if(!this.isDisposed()){be(this.element,"ytp-share-panel-loading");M6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var h=c[e],k=lia(h.img);if(k){var m=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}]);Mf(m.ra["ytp-share-panel-service-button-icon"],k);m.R("click",pa(this.hC,h.url));Lb(m,a6(this.F,m.element));this.A.push(m);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:Q("YTP_MORE")}]);Mf(c.ra["ytp-share-panel-service-button-icon"],Nf?'<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.sB,this,b.more));Lb(c,a6(this.F,c.element));this.A.push(c);this.B("buttons",this.A)}};
f.wH=function(){be(this.element,"ytp-share-panel-loading");L(this.element,"ytp-share-panel-fail")};
f.hC=function(a,b){if(oy(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 mg?a:qg("undefined"!=typeof a.href?a.href:String(a));var h=d.target||a.target,k=[],m;for(m in d)switch(m){case "width":case "height":case "top":case "left":k.push(m+"="+d[m]);break;case "target":case "noreferrer":break;default:k.push(m+"="+(d[m]?1:0))}m=k.join(",");(sc()||pc("iPad")||pc("iPod"))&&c.navigator&&c.navigator.standalone&&h&&
"_self"!=h?(m=c.document.createElement("A"),Hg(m,e),m.setAttribute("target",h),d.noreferrer&&m.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),m.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",h,m),e=ng(e),c&&(EH&&Ga(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=ej(hg("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Fa(e)+'">'),c.document.write(xg(e)),c.document.close())):c=c.open(ng(e),
h,m);c&&(c.opener||(c.opener=window),c.focus());Wl(b)}};
f.sB=function(a,b){if(Ey(a,this.D,b)){var c=this.D.app,d=c.getVideoData();c.o.Da("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.Y.Ba})}};
f.vH=function(a){!a&&d6(this)&&this.J()};
f.focus=function(){this.H.focus()};
f.V=function(){L6.N.V.call(this);M6(this)};B(N6,R);N6.prototype.D=function(){var a=this.A.W().Sd&&2!=this.A.getPresentingPlayerType();M(this.F,"ytp-share-button-visible",!!this.A.getVideoData().videoId&&300<=DF(this.A).Ma().width&&!a)};
N6.prototype.V=function(){N6.N.V.call(this);be(this.F,"ytp-share-button-visible")};B(O6,R);f=O6.prototype;
f.Hn=function(){var a=YM(this.D).shader;"Spherical"==a||"Spherical3D"==a?this.C||(a=DF(this.D).D,L(this.D.Ca(),"ytp-webgl-spherical"),this.show(),this.H=new d2(a,!0,null,!0),this.H.subscribe("dragstart",this.NA,this),this.H.subscribe("dragmove",this.tq,this),this.H.subscribe("dragend",this.MA,this),this.G=new d2(this.element,!0),this.G.subscribe("dragstart",this.GB,this),this.G.subscribe("dragend",this.FB,this),this.ea=this.R("keydown",this.zH),this.fa=this.R("keyup",this.dB),this.T(a,"click",this.yH,
this)):this.C&&(Q6(this),be(this.D.Ca(),"ytp-webgl-spherical"),this.ka(),this.H.dispose(),this.H=null,this.G.dispose(),this.G=null,this.za(this.ea),this.za(this.fa))};
f.GB=function(a,b,c){Q6(this);var d=dr(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?P6(this,0<a?-1:1,0,0):P6(this,0,0<b?-1:1,0)};
f.FB=function(){Q6(this);this.F=2;this.J.start()};
f.NA=function(a,b){Q6(this);this.O=!1;this.ca=new re(a,b);L(this.D.Ca(),"ytp-dragging")};
f.tq=function(a,b){var c=new re(a,b),d;d=this.ca;d=new re(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.O=!0);this.ca=c;var c=YM(this.D),e=c.fov,h=Math.PI*e*.8,k=DF(this.D).Ma();d.scale(1/k.width*h,1/k.height*h);R6(this,c.yaw+d.x,c.pitch+d.y,e,c,K())};
f.MA=function(a,b){this.tq(a,b);be(this.D.Ca(),"ytp-dragging");this.F=2;this.J.start()};
f.yH=function(a){this.O&&(a.stopPropagation(),this.O=!1)};
f.xH=function(a){var b=YM(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.$,d=d+h*this.X,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}R6(this,c,d,e,b,a);this.J.start()};
f.zH=function(a){!Xl(a)&&S6(this,Yl(a))&&Wl(a)};
f.dB=function(a){T6(this,Yl(a))};
f.V=function(){this.G&&(this.H.dispose(),this.H=null,this.G.dispose(),this.G=null);O6.N.V.call(this)};B(V6,R);f=V6.prototype;f.show=function(){V6.N.show.call(this)};
f.ka=function(){this.A.stop();this.F.style.display="none";V6.N.ka.call(this)};
f.AH=function(a){U6(this,a.state)};
f.VA=function(){U6(this,fA(this.D))};
f.OB=function(){this.F.style.display="block"};B(W6,R);W6.prototype.F=function(){var a=wq(this.A.app);a&&a.A.o.webkitShowPlaybackTargetPicker()};
W6.prototype.D=function(){var a=wq(this.A.app);this.rb(!!a&&a.Ua);(a=wq(this.A.app))&&a.Pa?Mf(this.element,Nf?'<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>'):
Mf(this.element,Nf?'<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>')};B(X6,Oq);X6.B=84;X6.C=10;X6.D=72;X6.o=200;X6.A=.555;f=X6.prototype;f.Uw=function(){Y6(this,this.D.getVideoData())};
f.gx=function(){this.O.ka()};
f.dk=function(){this.A=Math.floor(this.J/Math.min(10,Math.ceil(this.J/72)));this.$=.555*this.A;var a=this.D.gf(),b=Vu(this.G,this.A),b=this.G.o[b].ck(a.current);if(b!=this.X){var c=Math.round(2*this.A),d=Math.round(2*this.$),e=Xu(this.K,b,c),c=l2(this.la,e,c,d,!0);$q(this.ia,(this.J-c.width)/2);this.element.style.height=Zq(c.height+84,!0);this.X=b}oh(this.na,ny(this.fa?a.current-a.seekableEnd:a.current));mv(this.P);a=y(this.Cj,this);this.P=lv(a,void 0);this.ca.Kf()};
f.YG=function(a,b){Y6(this,b)};
f.Cj=function(){S(this.F,!1);mv(this.P);var a=this.D.gf(),b=this.G.o[0].St(),c=this.G.o[0].Dn(),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--)dh(this.F.children[e-this.H]);for(e=d-1;e>=this.H;e--)dh(this.F.children[e-this.H]);for(e=this.H-1;e>=d;e--)this.F.insertBefore(Z6(this,e),this.F.firstChild);e=this.L+1}else bh(this.F),e=d;for(;e<=
c;e++)this.F.appendChild(Z6(this,e));for(e=d;e<=c;e++)Uq(this.F.children[e-d],"transform","translatex("+(-a+(e-b)*this.A)+"px)");this.H=d;this.L=c;S(this.F,!0)};
f.XG=function(){for(var a=this.H;a<=this.L;a++)Zu(this.K,a,2*this.A)};
f.WG=function(){var a=DF(this.D).Ma();this.J!=a.width&&(this.J=a.width,this.G&&(this.dk(),this.Cj()))};
f.ZG=function(a){this.element.style.bottom=a+"px"};
f.show=function(){X6.N.show.call(this);F8(this.ha,!1)};
f.ka=function(){this.G&&Y6(this,null);X6.N.ka.call(this);F8(this.ha,!0)};
f.V=function(){Y6(this,null);X6.N.V.call(this)};B($6,R);f=$6.prototype;f.aH=function(){b7(this,this.A.getVideoData())};
f.bH=function(){this.C||this.G.ka()};
f.dH=function(a){T(a.state,32)||T(a.state,16)||T(a.state,1)||this.G.ka()};
f.eH=function(a,b){b7(this,b)};
f.cH=function(){var a=fA(this.A);(T(a,32)||T(a,16))&&a7(this)};
f.$G=function(){this.H=window.NaN;a7(this)};
f.ka=function(){this.F&&b7(this,null);$6.N.ka.call(this)};B(d7,R);f=d7.prototype;f.fH=function(){this.D.W().Ua?(aN(this.D,this.D.Oa()?"fullscreen_exit":"fullscreen_enter"),Dy(this.D)):this.A&&d6(this.A)?this.A.tb():(S8(this.G,!0),this.A.Ke(this.element))};
f.XA=function(){c7(this);S8(this.G,!0);this.A.Ke(this.element)};
f.cu=function(){this.rb(Ay(this.D))};
f.Ir=function(a){a?(Mf(this.element,Nf?'<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=Q("YTP_EXIT_FULLSCREEN")):(Mf(this.element,Nf?'<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=Q("YTP_FULLSCREEN"));this.B("title",this.A?null:a);r7(this.G.A)};
f.V=function(){this.A?S8(this.G,!1):(this.F(),this.F=null);d7.N.V.call(this)};B(e7,R);e7.prototype.K=function(a){this.G("newdata"==a)};
e7.prototype.G=function(a){var b=this.D.getVideoData(),c=b.M,d=fA(this.D),d=(iz(d)||T(d,4))&&0<c.length;this.rb(d);a&&(this.A=!0);if(d){this.A&&this.H.we();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=Q("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.gc(this.D.W(),"default.jpg")});r7(this.F)}};
e7.prototype.J=function(){a:{var a=this.F,b=this.element,c=Q("YTP_MORE_CAMERAS_AVAILABLE");if(a.D)if(3==a.D)a.Ic();else break a;G8(a,b,3,c)}this.A=!1};B(f7,b6);f=f7.prototype;f.show=function(){var a=this.C;f7.N.show.call(this);a||(this.F.T(this.A,"presentingplayerstatechange",this.Gn),this.F.T(this.A,"videodatachange",this.Gn),this.Gn())};
f.ka=function(){Fr(this.F);f7.N.ka.call(this)};
f.Gn=function(){for(var a=this.A.getVideoData(),b=a.M,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.qA,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=AJ(this.A.W(),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=fA(this.A);iz(a)||T(a,4)||b.length||!d6(this)||this.H()};
f.qA=function(a){var b=this.A,c=this.A.getVideoData().M[a];a=wq(b.app,1).getVideoData();if(b.W().experiments.ga("legacy_multicam_switch"))b.Uj({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=wq(b.app,1),wq(b.app)!=c&&(Y4(b.app,c),a.Ga||b.Ub(d));else{var e=wq(b.app,4);e||(e=new aM(b.W(),4,b.app.K,DF(b),y(b.app.L.S,b.app.L)));wq(b.app)!=e&&Y4(b.app,e);E9(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.M,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.D[c].focus();break}};
f.V=function(){Nb(this.D);f7.N.V.call(this)};g7.prototype.clone=function(){return new g7(this.B,this.G,this.o,this.D,this.A,this.F,this.C,this.H)};
g7.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};B(h7,G);var Y$=new g7(0,0,.4,0,.2,1,1,1);h7.prototype.A=function(){var a=Qt()-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=ne(Y$.B,Y$.o,a);var c=ne(Y$.o,Y$.A,a),d=ne(Y$.A,Y$.C,a);b=ne(b,c,a);c=ne(c,d,a);b=ne(b,c,a)}this.B(b);1>a&&this.C.start()};
var mia=/[0-9.-]+|[^0-9.-]+/g;B(p7,R);
var nia=["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"],oia=["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"],pia=["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"],qia=["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"];p7.prototype.J=function(a){this.rb(300<=a.width)};
p7.prototype.L=function(){this.A.Dc()?(aN(this.A,"unmute"),this.A.unMute()):(aN(this.A,"mute"),this.A.mute())};
p7.prototype.U=function(a){m7(this,a.volume,a.muted)};B(s7,R);s7.prototype.D=function(){var a=wq(this.A.app);a&&(a=a.A,a.o.webkitSetPresentationMode("picture-in-picture"==a.o.webkitPresentationMode?"inline":"picture-in-picture"))};B(u7,R);u7.prototype.K=function(a){t7(this,a.state)};
u7.prototype.J=function(){M(this.element,"ytp-play-button-playlist",UM(this.A))};
u7.prototype.L=function(){2==this.D?aN(this.A,"pause"):3==this.D?aN(this.A,"replay"):1==this.D?aN(this.A,"play"):4==this.D&&aN(this.A,"stop");iz(fA(this.A))?this.A.pauseVideo():this.A.md()};
u7.prototype.V=function(){this.F&&this.F();u7.N.V.call(this)};B(w7,R);f=w7.prototype;f.Dg=function(){x7(this);this.J&&(this.za(this.J),this.J=null);this.K=this.A.getVideoData(1);if(this.D=this.A.Cc())this.D.subscribe("shuffle",this.Dg,this),this.J=this.T(this.A,"progresssync",this.hH);this.H=y7(this);z7(this);this.du(DF(this.A).Ma())};
f.du=function(a){var b=UM(this.A)||this.F&&Jy(this.A);this.rb(b&&(this.F||400<=a.width))};
f.iH=function(a){aN(this.A,this.F?"next":"previous");var b=!0;this.M?b=By(a,this.A):Wl(a);b&&(this.F?this.A.Qj(!0):this.H?this.A.Ub(0):this.A.Rj(!0))};
f.hH=function(){var a=y7(this);a!=this.H&&(this.H=a,z7(this))};
f.V=function(){this.G&&(this.G(),this.G=null);x7(this);w7.N.V.call(this)};B(B7,Oq);f=B7.prototype;f.nH=function(a){if(!Xl(a)){var b=!1;switch(Yl(a)){case 36:this.D.Ub(0);b=!0;break;case 35:this.D.Ub(window.Infinity);b=!0;break;case 34:this.D.Sc(-60);b=!0;break;case 33:this.D.Sc(60);b=!0;break;case 38:this.D.Sc(5);b=!0;break;case 40:this.D.Sc(-5),b=!0}b&&Wl(a)}};
f.eu=function(a,b){A7(this,b,"newdata"==a)};
f.Ox=function(){this.eu("newdata",this.D.getVideoData())};
f.mH=function(){I7(this.D.getVideoData())?fA(this.D).kb()&&J7(this,!0):J7(this,!1)};
f.lH=function(a){0<XB(a,64)||!I7(this.D.getVideoData())?J7(this,!1):iz(a.state)&&0>XB(a,64)&&J7(this,!0)};
f.qH=function(a,b,c){var d=dr(this.element),e=L7(this).o,h=c?c.getAttribute("data-tooltip"):void 0;h&&(a=j2(this.A,Number(c.getAttribute("data-position")),0)*e+dr(this.jb).x);this.Ea.x=a-d.x;this.Ea.y=b-d.y;c=L7(this);a=i2(this.A,c.A);d=h||ny(this.Ia?a-this.A.o:a);b=this.Ja;c=c.position+this.cb;h=!!h;3==b.D&&b.Ic();1!=b.D&&(b.element.className="ytp-tooltip ytp-bottom",b.D=1,b.O&&b.L.show(),e=b.H.getVideoData(),b.K=Qx(e),b.K&&(b.M=Rx(e),b.M.subscribe("l",b.mu,b)));b.update({text:d,title:""});M(b.element,
"ytp-text-detail",!!h);d=-1;b.K&&(d=Vu(b.K,96*b.G),d=b.K.o[d].ck(a));I8(b,d);H8(b,c,!!h);M(this.ha,"ytp-hover-progress-shown",!T(fA(this.D),64));E7(this)};
f.pH=function(){var a=this.Ja;1==a.D&&a.Ic();be(this.ha,"ytp-hover-progress-shown")};
f.oH=function(a,b){yi(this.H);this.H=window.NaN;this.ob=b;L(this.element,"ytp-drag");(this.na=iz(fA(this.D)))&&this.D.pauseVideo()};
f.rH=function(){this.ea=0;be(this.element,"ytp-pull-ui");be(this.element,"ytp-pulling");if(0<this.K){var a=Qt(),b=this.K,c=L7(this).position;yi(this.H);this.H=Mq(y(this.iu,this,a,b,c),0)}this.D.Ub(i2(this.A,L7(this).A));be(this.element,"ytp-drag");this.na&&!T(fA(this.D),2)&&this.D.md()};
f.iu=function(a,b,c){var d=1-Math.pow(1-(Qt()-a)/200,3),e=c+d*(this.J*this.G-c);if(0>d||1<d)d=1;K7(this,(1-d)*b,e,this.J);this.H=1>d?Mq(y(this.iu,this,a,b,c),0):window.NaN};
f.sH=function(a,b){var c=!1,d=!1,e=L7(this);3600<=h2(this.A)&&(K7(this,this.ob-b-10,e.position,e.A),d=!0,c=this.K>.1*(this.L?60:40),e=L7(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.ea||xi(this.H);c&&(this.H=Mq(y(this.hu,this,Qt(),this.O),0));this.ea=c;this.D.Ub(i2(this.A,e.A),!1)};
f.hu=function(a,b){if(this.ea){var c=this.G*(this.fa-1);this.O=le(b+this.ea*(Qt()-a)*.3,0,c);D7(this);this.D.Ub(i2(this.A,L7(this).A),!1);0<this.O&&this.O<c&&(this.H=Mq(y(this.hu,this,a,b),0))}};
f.setPosition=function(a,b,c){this.cb=a;this.G=b;this.L=c;D7(this)};
f.gu=function(){Mf(this.P,Pf());Mf(this.M,Pf());L(this.element,"ytp-clip-hover")};
f.fu=function(){Mf(this.P,Rf());Mf(this.M,Qf());be(this.element,"ytp-clip-hover")};
f.ek=function(){this.$=0;this.X=window.Infinity;H7(this);C7(this,this.J,this.ia)};
f.ju=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.ca[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.ca[d]=c;this.la[d]=e;M7(this,c,e);"ytp-chapter-marker"==c.style?this.wb.appendChild(e):this.vb.appendChild(e)}}else O7(this,c)}};
f.tH=function(a){for(var b=0;b<a.length;b++)O7(this,a[b])};
f.V=function(){xi(this.H);this.H=window.NaN;G7(this,!1);B7.N.V.call(this)};B(Q7,R);Q7.prototype.F=function(a){P7(this,a.state)};B(R7,R);
R7.prototype.A=function(){var a=!1;-1!=this.da.Ch().indexOf("remote")&&(a=1<this.da.zb("remote","receivers").length);this.rb(a&&400<=DF(this.da).Ma().width);var b=1;a&&this.da.zb("remote","casting")&&(b=2);if(this.D!=b){this.D=b;switch(b){case 1:Mf(this.element,Nf?'<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:Mf(this.element,Of())}M(this.element,"ytp-remote-button-active",!!this.da.zb("remote","casting"))}};
R7.prototype.F=function(){aN(this.da,"remote");if(this.da.zb("remote","castSelector"))this.da.Oa()&&Dy(this.da),this.da.De("remote","castSelector",!0);else{var a=this.G,b=this.element;d6(a)?a.tb():(m8(a),a.M.open(),a.Ke(b))}};B(S7,s6);S7.prototype.F=function(){QM(this.da.app.D,"iv-module")&&3!=this.da.getPresentingPlayerType()?this.D||(n8(this.G,this),this.D=!0):this.D&&(o8(this.G,this),this.D=!1);t6(this,RN(this.da.app.D))};
S7.prototype.H=function(a){RN(this.da.app.D);a?this.da.Pj("iv-module"):this.da.ys("iv-module")};B(T7,n6);f=T7.prototype;f.open=function(){i6(this.A,this.P)};
f.Vc=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.Jb(this.Gc(a));this.K=a};
f.Pb=function(a){this.Vc(a);this.S("select",a)};
f.EB=function(a){"true"!=this.D[a].element.getAttribute("aria-disabled")&&this.Pb(a)};
f.Gc=function(a){return a.toString()};
f.uH=function(a){Xl(a)||39!=Yl(a)||(this.open(),Wl(a))};
f.V=function(){T7.N.V.call(this);for(var a in this.D)this.D[a].dispose()};B(V7,T7);V7.prototype.J=function(){var a=this.da.zs();1<a.length?(U7(this,ji(a,this.G)),this.M=Ib(a,this.G,this),this.L.Jb(a.length?" ("+a.length+")":""),this.S("size-change"),this.Vc(this.G(this.da.Eh())),this.F||(n8(this.A,this),this.F=!0)):this.F&&(o8(this.A,this),this.F=!1)};
V7.prototype.Pb=function(a){V7.N.Pb.call(this,a);this.da.sn(this.M[a]);this.A.te()};
V7.prototype.G=function(a){return a.toString()};B(W7,s6);W7.prototype.F=function(){var a=this.da.getPresentingPlayerType();if(2!=a&&3!=a&&Jy(this.da))this.G||(n8(this.J,this),this.G=!0,this.D.push(this.T(this.da,"videodatachange",this.F)),this.D.push(this.T(this.da,"videoplayerreset",this.F)),this.D.push(this.T(this.da,"onPlaylistUpdate",this.F)),this.D.push(this.T(this.da,"autonavchange",this.H)),this.H(this.da.getVideoData().autonavState));else if(this.G)for(o8(this.J,this),this.G=!1,a=0;a<this.D.length;a++)this.za(this.D[a])};
W7.prototype.H=function(a){t6(this,1!=a)};
W7.prototype.K=function(a){this.da.app.o.Da("onAutonavChangeRequest",1!=(a?2:1))};B(X7,T7);
X7.prototype.G=function(){var a=this.da.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=BM(wq(this.da.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.M=a;a=this.da.qs();if(b=!this.da.W().experiments.ga("disable_missing_qualities"))b=this.da.getVideoData().B,b=!!b&&!Rr(b);b&&(b=this.da.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.G));b&&a.unshift("missing-qualities");U7(this,a);if(a.length){this.J();this.F||(n8(this.A,this),this.F=!0);return}}this.F&&(o8(this.A,this),this.F=
!1)};
X7.prototype.J=function(){var a=XM(this.da);this.D[a]&&(this.L=this.da.Oj(),this.Vc(a),"auto"==a&&this.Jb(this.Gc(a)))};
X7.prototype.Pb=function(a){"missing-qualities"!=a&&(X7.N.Pb.call(this,a),this.da.Sj(a),this.A.tb())};
X7.prototype.Gc=function(a,b){if("missing-qualities"==a)return["a",{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},Q("YTP_MISSING_FORMATS")];var c=["div",null,Y7(this,a)],d=XM(this.da);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(Y7(this,this.L,["ytp-menu-label-secondary"])));return c};B(Z7,T7);Z7.prototype.J=function(){var a=-1!=this.da.Ch().indexOf("remote")?this.da.zb("remote","receivers"):[];1<a.length&&!this.da.zb("remote","castSelector")?(this.L=Ib(a,this.G,this),U7(this,ji(a,this.G)),a=this.da.zb("remote","currentReceiver"),this.Vc(this.G(a)),this.F||(n8(this.A,this),this.F=!0)):this.F&&(o8(this.A,this),this.F=!1)};
Z7.prototype.G=function(a){return a.key};
Z7.prototype.Gc=function(a){return this.L[a].name};
Z7.prototype.Pb=function(a){Z7.N.Pb.call(this,a);this.da.De("remote","currentReceiver",this.L[a]);this.A.tb()};B($7,T7);f=$7.prototype;f.Xk=function(a){return a.toString()};
f.Gc=function(a){return"1"==a?Q("YTP_NORMAL_SPEED"):a.toString()};
f.lu=function(){var a=this.da.getPresentingPlayerType();2!=a&&3!=a?this.F||(n8(this.A,this),this.F=!0,this.G=this.T(this.da,"onPlaybackRateChange",this.MB),U7(this,ji(this.da.Nj(),this.Xk)),this.Vc(this.Xk(this.da.app.U))):this.F&&(o8(this.A,this),this.F=!1,this.za(this.G),this.G=null)};
f.MB=function(a){this.Vc(this.Xk(a))};
f.Pb=function(a){$7.N.Pb.call(this,a);this.da.Dh((0,window.parseFloat)(a),!0);this.A.te()};B(b8,T7);b8.prototype.Vc=function(a){b8.N.Vc.call(this,a)};
b8.prototype.G=function(a){return a.option.toString()};
b8.prototype.Gc=function(a){return a8(this.F[a])};
b8.prototype.Pb=function(a){b8.N.Pb.call(this,a);this.S("settingChange",this.J,this.F[a].option)};B(c8,p6);c8.prototype.K=function(a,b){this.S("settingChange",a,b)};
c8.prototype.focus=function(){this.A.focus()};B(e8,T7);e8.prototype.G=function(a){return a.languageCode};
e8.prototype.Gc=function(a){return this.F[a].languageName||""};
e8.prototype.Pb=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)};B(f8,T7);f=f8.prototype;f.Kn=function(a){return ac(a)?"__off__":a.displayName};
f.Gc=function(a){return"__off__"==a?Q("YTP_LANGUAGE_OFF"):"__translate__"==a?Q("YTP_AUTO_TRANSLATE"):"__contribute__"==a?Q("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.F[a]).displayName};
f.Pb=function(a){if("__translate__"==a)this.J.open();else if("__contribute__"==a){this.da.pauseVideo();this.da.Oa()&&Dy(this.da);a=this.da.W();var b=this.da.getVideoData();zy(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.da.De("captions","track","__off__"==a?{}:this.F[a]),f8.N.Pb.call(this,a),this.A.te()};
f.FD=function(){i6(this.A,this.G)};
f.Nh=function(){var a=-1!=this.da.Ch().indexOf("captions"),b=this.da.getVideoData().Fa;if(a||b){var c,d;if(a){var e=this.da.zb("captions","track"),h=this.da.zb("captions","tracklist",{includeAsr:!0}),k=this.da.zb("captions","translationLanguages"),m=this.da.zb("captions","displaySettings");i8(m);this.F=Ib(h,this.Kn,this);c=ji(h,this.Kn);if(k.length){d=this.J;var l=k;d.F=Ib(l,d.G,d);U7(d,ji(l,d.G));c.push("__translate__")}d=this.Kn(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));U7(this,c);this.Vc(d);a?(d8(this.G,m),this.L.Jb(h.length?" ("+h.length+")":""),this.S("size-change"),a&&k.length&&this.D.__translate__.element.setAttribute("aria-disabled",!!ac(e))):(this.L.Jb(""),this.S("size-change"));this.M||(n8(this.A,this),this.M=!0)}else this.M&&(o8(this.A,this),this.M=!1)};
f.BC=function(a){var b=this.da.zb("captions","track"),b=ec(b);b.translationLanguage=this.J.F[a];this.da.De("captions","track",b)};
f.FH=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=g8[b];break;case "charEdgeStyle":c.charEdgeStyle=h8[b];break;default:c[a]=b}c=WM(this.da,c);i8(c);d8(this.G,c)};B(j8,T7);var ipa={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};j8.prototype.Gc=function(a){return Q(ipa[(0,window.parseInt)(a,10)])};
j8.prototype.J=function(){var a=YM(this.da);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.F||(this.G=a.shader,n8(this.A,this),this.F=!0,U7(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Vc(a.toString())):this.F&&(o8(this.A,this),this.F=!1)};
j8.prototype.Pb=function(a){j8.N.Pb.call(this,a);ZM(this.da,{shader:this.G,displayMode:a});this.A.te();this.da.S("webglsettingschanged",YM(this.da))};B(k8,f6);k8.prototype.Ke=function(a){m8(this);0<this.G.A.length&&k8.N.Ke.call(this,a)};
k8.prototype.show=function(){k8.N.show.call(this)};B(p8,R);p8.prototype.H=function(a){this.rb(this.F&&400<=a.width)};
p8.prototype.J=function(a){aN(this.da,"settings");this.D.C?this.D.tb():(this.da.Pj("captions"),this.D.Ke(Sl(a)))};
p8.prototype.G=function(a){this.B("pressed",a)};
p8.prototype.A=function(){var a=this.da.getPresentingPlayerType(),b=2!=a&&3!=a,c=YM(this.da),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&0==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.da.Oj();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)};B(q8,R);q8.prototype.J=function(){aN(this.A,this.A.app.ha?"size_small":"size_large");var a=this.A.app,b=!a.ha;X9(a,!0,b);a.o.Da("SIZE_CLICKED",b)};
q8.prototype.D=function(){this.rb(this.A.app.Ib&&!this.A.Oa()&&3!=this.A.getPresentingPlayerType());if(this.C){var a=this.A.app.ha;if(this.F!=a){var b=a?Nf?'<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>':
Nf?'<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-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.W().U||null==this.F?Mf(this.element,b):l7(this.H,this.element,b);a=(this.F=a)?Q("YTP_DEFAULT_VIEW"):Q("YTP_THEATER_MODE");
this.B("title",a);r7(this.G)}}};B(s8,R);s8.prototype.F=function(){aN(this.A,"subtitles");VM(this.A)};
s8.prototype.D=function(){var a=!!QM(this.A.app.D,"captions");this.rb(a&&300<=DF(this.A).Ma().width);a&&this.B("pressed",!!this.A.zb("captions","track").displayName)};B(t8,R);f=t8.prototype;f.Eg=function(){var a=DF(this.A).Ma().width,b=350<=a&&(!this.F||!T(fA(this.A),64));this.rb(b);M(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.A.gf(),b=ny(a.current),this.J!=b&&(this.B("currenttime",b),this.J=b),a=ny(a.duration),this.K!=a&&(this.B("duration",a),this.K=a))};
f.HH=function(a){if(this.H!=a){this.H=a;this.Eg();var b=this.G.element;(b.disabled=a)?this.D&&(this.D(),this.D=null,b.removeAttribute("title")):(b.title=Q("YTP_GOTO_LIVE_TOOLTIP"),this.D=a6(this.L,this.G.element))}};
f.IH=function(a,b){this.F=b.Ga;M(this.element,"ytp-live",this.F);this.Eg()};
f.GH=function(a){a.target==this.G.element?(aN(this.A,"live"),this.A.Ub(window.Infinity),this.A.md()):aN(this.A,"time")};
f.V=function(){this.D&&this.D();t8.N.V.call(this)};B(v8,R);f=v8.prototype;f.pu=function(a){this.rb(this.A.W().wb&&350<=a.width)};
f.sC=function(a){if(!Xl(a)){var b=Yl(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=le(c,0,100),0==c?this.A.mute():(this.A.Dc()&&this.A.unMute(),this.A.setVolume(c)),Wl(a))}};
f.KH=function(a){Wl(a);(a=Zl(a||window.event,!0)||-Zl(a||window.event,!1))&&this.A.setVolume(this.J+le(a/20,-10,10))};
f.rC=function(){aN(this.A,"volume");w8(this,this.G,!0,this.D,this.H.H);this.X=this.J;this.A.Dc()&&this.A.unMute()};
f.qC=function(a){a-=dr(this.U).x;this.A.setVolume(100*le(a/(this.L?78:52),0,1))};
f.pC=function(){w8(this,this.G,!1,this.D,this.H.H);0==this.J&&(this.A.mute(),this.A.setVolume(this.X))};
f.LH=function(a){u8(this,a.volume,a.muted)};
f.xo=function(){w8(this,this.G,this.F,this.D,this.H.H)};
f.ou=function(a){w8(this,this.G,this.F,a,this.H.H)};
f.V=function(){v8.N.V.call(this);be(this.O,"ytp-volume-slider-active")};B(x8,R);x8.prototype.D=function(){var a=!!this.A.getVideoData().videoId;this.rb(a);a&&(a=this.A.getVideoUrl(!0,!1,!1,!0),this.B("url",a))};
x8.prototype.F=function(a){aN(this.A,"youtube");var b=this.A.getVideoUrl(!oy(a),!1,!0,!0);Ey(b,this.A,a)};B(y8,Dr);f=y8.prototype;f.EH=function(){L(this.C.element,"ytp-volume-control-hover");var a=this.C;w8(a,!0,a.F,a.D,a.H.H)};
f.DH=function(){be(this.C.element,"ytp-volume-control-hover");var a=this.C;w8(a,!1,a.F,a.D,a.H.H)};
f.In=function(){if(this.U.A){var a=this.F;F7(a);var b=a.D.getCurrentTime();(b<a.$||b>a.X)&&a.ek();this.M.Eg()}};
f.BH=function(){this.In()};
f.CH=function(a){a&&window.document.activeElement==this.D.element&&this.da.Ca().focus();this.Jn()};
f.WD=function(){F8(this.B.A,!this.o.C)};
f.Jn=function(){var a=FF(this.B),b=DF(this.da).Ma(),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.ca=c;e.fa=d;c=this.C;c.L=a;u8(c,c.A.Eb(),c.A.Dc())}c=this.o;b=Math.min(300*(a?1.5:1),Math.round(.6*(b.height-(FF(this.B)?72:50))));c.sa=Math.min(350*(a?1.5:1),d);c.na=b;c.wh()};
f.ma=function(){return this.A.element};
f.RD=function(){P8(this.B,this.J,this.K)};B(A8,R);A8.prototype.J=function(a){a=400>a.width&&this.A.Cc()&&2!=this.A.getPresentingPlayerType();this.H.style.display=a?"":"none"};
A8.prototype.P=function(a){aN(this.A,"title");var b=this.A.getVideoUrl(!oy(a),!1,!0);Ey(b,this.A,a)};
A8.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&&Ax.test(b)&&B8(this,a,c,d,b))};
A8.prototype.F=function(){C8(this);var a=this.A.getVideoData();this.B("title",a.title);!this.A.W().D&&a.videoId?(this.B("url",this.A.getVideoUrl(!0)),this.D||(this.D=this.T(this.L,"click",this.P))):this.D&&(this.B("url",null),this.za(this.D),this.D=null)};B(D8,R);f=D8.prototype;f.vB=function(a){3==this.D&&this.Ic();a=a.currentTarget;this.D||(a.removeEventListener("mouseover",this.X),a.addEventListener("mouseout",this.ea),G8(this,a,2))};
f.tB=function(a){(a=Ul(a))&&mh(this.A,a)||this.Ic()};
f.mu=function(a,b){if(a<=this.F&&this.F<=b){var c=this.F;this.F=window.NaN;I8(this,c)}};
f.xz=function(){Zu(this.M,this.F,96*this.G)};
f.nu=function(){ve(DF(this.H).Ma(),this.na)||this.Ic()};
f.Ic=function(){switch(this.D){case 2:this.A.removeEventListener("mouseout",this.ea),this.A.addEventListener("mouseover",this.X);case 3:this.H.removeEventListener("resize",this.nu,this);this.U||this.A.setAttribute("title",this.J);this.J="";this.A=null;break;case 1:this.K&&(this.K=null,this.M.Ha("l",this.mu,this),this.M=null),this.H.removeEventListener("videoready",this.Ic,this),this.$.stop()}this.D=null;this.O&&this.L.ka()};
f.yf=function(a){if(this.A)for(var b=0;b<arguments.length;b++)mh(arguments[b],this.A)&&this.Ic()};
f.V=function(){null!=this.D&&this.Ic();D8.N.V.call(this)};B(L8,R);f=L8.prototype;f.qu=function(a){this.rb(300<=a.width)};
f.Oz=function(){this.D=!0;this.A=!1;J8(this,1)};
f.MH=function(){aN(this.F,"watchlater");var a=this.F.getVideoData().videoId;if(!this.A){this.A=!0;J8(this,3);K8(this);var b=this.F.app,c=!this.D;(c?iia:jia)({videoIds:a,Bb:b.Y.Bb,pageId:b.Y.pageId,onError:b.VC,sb:c?b.UC:b.WC,context:b},b.Y.baseYtUrl,!0)}};
f.NH=function(a){this.A=!1;J8(this,4);K8(this,a)};
f.$B=function(){this.A=this.D=!1;J8(this,2)};
f.OH=function(){this.A=this.D=!1;J8(this,2);K8(this)};
f.V=function(){L8.N.V.call(this);be(this.H,"ytp-watch-later-button-visible")};B(M8,R);M8.prototype.F=function(){if(this.D.getVideoData().videoId){var a=this.D.getVideoUrl(!0,!1,!1,!0);this.B("url",a);this.A||(this.A=this.R("click",this.G))}else this.A&&(this.B("url",null),this.za(this.A),this.A=null)};
M8.prototype.G=function(a){var b=this.D.getVideoUrl(!oy(a),!1,!0,!0);Ey(b,this.D,a)};B(O8,Dr);f=O8.prototype;f.Zt=function(a,b){if(this.fa!=b.videoId){this.fa=b.videoId;var c=this.C;c.M=b&&0<b.M.length?5E3:3E3;c.qb(512,!0);this.vh()}};
f.RB=function(){this.Zt(0,this.o.getVideoData())};
f.$t=function(){P8(this,this.ha,this.M);this.J==this.M&&this.o.Da("onSharePanelOpened")};
f.Pr=function(){P8(this,this.ea,this.Z)};
f.ng=function(){var a=!EF(this),b=a&&Cz(this.o)&&!T(fA(this.o),2);a?(this.ia.show(),this.la.show()):(this.ia.ka(),this.la.ka(),this.A.yf(this.D.element,this.G.element));b?this.G.D.show():this.G.D.ka();M(this.D.element,"ytp-cards-available",b);M(this.o.Ca(),"ytp-menu-shown",!a);var b=this.O,c=!a;(b.F=c)?b.ka():z6(b.D,b.A,fA(b.A));this.B&&z8(this.B,!a)};
f.Qp=function(a){return mh(this.D.element,a)};
f.Ip=function(a){this.o.W();return!!this.B&&mh(this.B.ma(),a)};
f.IG=function(a){if(!this.Qp(a)&&!this.Ip(a))return!1;for(;!a||!sh(a);){if(!a||a==this.o.Ca())return!1;a=lh(a)}return!0};
f.JG=function(a){var b=this.o.Ca();M(b,"ytp-autohide",a);a&&(this.A.yf(this.D.element,this.G.element),this.B&&this.A.yf(this.B.ma()),this.H=!1,be(b,"ytp-touch-mode"));b=this.o;a=!a;b.Da("onVideoAreaChange");b.Da(a?"onShowControls":"onHideControls")};
f.eC=function(a){this.C.A||R8(this,a)||Q8(this,Tl(a))||(fA(this.o),Wl(a));this.H=!0;L(this.o.Ca(),"ytp-touch-mode");this.C.qb(2,!0)};
f.Qq=function(a){if(Q8(this,Tl(a)))return!0;this.C.qb(2,!0);return this.Fo()?!0:qz(fA(this.o))?(this.o.md(),!0):!1};
f.Rq=function(a){Q8(this,Tl(a));var b=fA(this.o);T(b,2)&&SM(this.o)||R8(this,a)||(Z5(this.P),iz(b)?this.o.pauseVideo():(this.o.md(),window.document.activeElement==this.O.element&&this.o.Ca().focus()))};
f.dC=function(a){Q8(this,Tl(a))||"3"!=this.o.W().B&&3!=this.o.getPresentingPlayerType()&&Dy(this.o)};
f.KG=function(a){var b=this.o.Ca();a?b.parentElement?(b.setAttribute("aria-label",Q("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.ca.element,b),b.parentElement.insertBefore(this.$.element,b.nextSibling)):zi(Error("Player not in DOM.")):(b.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL")),Jq(this.ca),Jq(this.$));this.Fn();this.vh()};
f.Fn=function(){var a=FF(this),b=DF(this.o).Ma(),c=this.o.Oa(),d=this.o.Ca();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.LG=function(a){N8(this,a.state);this.vh()};
f.vh=function(){var a=!this.o.getVideoData().isListed&&2==this.o.getPresentingPlayerType(),a=!!this.fa&&!RM(this.o)&&!a&&(2==this.o.getPresentingPlayerType()||this.o.W().Ja||this.o.Oa());this.va!=a&&(this.va=a,M(this.o.Ca(),"ytp-hide-info-bar",!a),a||(this.A.yf(this.D.element,this.G.element),d6(this.M)&&this.$t(),d6(this.Z)&&this.Pr()))};
f.Fo=function(){if(this.K.C)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.C?(a.o.tb(),a=!0):a=!1}return a?!0:this.J?(P8(this,this.X,this.J),!0):Cz(this.o)&&bN(this.o)?(this.o.Fh(!1,!1),!0):RM(this.o)?(TM(this.o,!0),!0):!1};
f.CD=function(a){this.C.qb(64,a);this.Fa=a;this.au();M(this.o.Ca(),"ytp-settings-shown",a)};
f.au=function(){var a=this.Fa||this.K.C;this.na!=a&&(this.na=a,this.o.Da("onAutonavPauseRequest",this.na))};
f.jx=function(){T8(this,this.o.Ca(),!0).focus()};
f.kx=function(){T8(this,this.o.Ca(),!1).focus()};var V8=[],Z$=aa.JSON&&aa.JSON.stringify||"object"===typeof JSON&&JSON.stringify;U8.prototype.Ac="function"==typeof window.Uint8Array?function(){var a=window.Uint8Array.prototype.toJSON;window.Uint8Array.prototype.toJSON=function(){return YH(this)};
try{var b=Z$.call(null,this.o,W8)}finally{window.Uint8Array.prototype.toJSON=a}return b}:Z$?function(){return Z$.call(null,this.o,W8)}:function(){return ge(this.o,W8)};
U8.prototype.toString=function(){return this.o.toString()};
U8.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]=ji(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]}};B(X8,U8);var sia=[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.Mb=function(){return Z(this,201)};var koa={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"};B(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){zi(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 zi(e),e.stack;}};
b9.C=function(a,b){Rv("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.Yz=function(){this.Y.C&&Bp()||o9(this,5)};
f.NB=function(a){this.Y.C&&Bp()||(R9(this),iz(a.getPlayerState())&&this.ef())};
f.Jr=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!!hu().canPlayType(a)};
f.W=function(){return this.Y};
f.getVideoData=function(){return this.F.getVideoData()};
f.Ij=function(){var a=BJ(this.Y);qa(a,rba(this.D));this.J&&qa(a,this.J.Ih());a.fs=this.o.Oa();a.volume=Math.round(this.Ra.Eb());a.mos=this.Ra.Dc()?1:0;return a};
f.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.H.getCurrentTime():(a=wq(this,a))?a.getCurrentTime():0};
f.getPresentingPlayerType=function(){var a;if(a=this.Y.C&&this.H)a=this.H,a=!!a.A&&!!a.B;return a?3:wq(this).J};
f.DE=function(a){switch(a.type){case "loadedmetadata":this.K.A("fvb",void 0);this.ob.start();break;case "loadstart":this.K.A("gv",void 0);break;case "progress":case "timeupdate":!Sv("l2s",this.K.o)&&2<=bz(YI(a.target))&&this.K.A("l2s",void 0)}};
f.iB=function(a,b){this.o.Da("onLoadProgress",b)};
f.tC=function(){this.o.S("playbackstalledatstart")};
f.PC=function(a,b){this.o.Da("onVideoProgress",b)};
f.AE=function(){this.Ra.S("progresssync",void 0,void 0)};
f.$z=function(a){!this.Y.experiments.ga("disable_live_head_slowdown")&&0<XB(a,1)&&!T(a.state,64)&&P4(this).Ga&&wM(this.A)&&1<this.U&&r9(this,1,!0);if(0<XB(a,2)){var b;this.C&&("embedded"==this.Y.Ba||this.o.Oa())&&Sy(this)?(M9(this,!1,!this.Y.experiments.ga("legacy_autoplay_flag")),b=!0):b=!1;!b&&qJ(this.Y)&&dM(this.A).webkitExitFullScreen&&dM(this.A).webkitExitFullScreen()}T(a.state,128)&&(b=a.state,G9(this),b=b.o,this.o.Da("onError",x$[b.errorCode]||5),this.o.Da("onDetailedError",b));this.o.S("applicationplayerstatechange",
a);T(a.state,2)&&(a=this.getVideoData(),a.isLiveDefaultBroadcast&&E9(this,{videoId:a.videoId,livemonitor:a.Wf}))};
f.zE=function(a){!T(a.state,32)&&0>XB(a,16)&&(!T(a.state,8)||T(a.state,64)||this.B.o.ended||T(a.state,2)||this.ef());this.o.S("presentingplayerstatechange",a);p9(this,sz(a.state))};
f.Xz=function(a){"newdata"==a&&z9(this)};
f.bA=function(a){a==this.F.getVideoData()&&this.o.Da("onPlaybackAudioChange",t9(this).Gb.name)};
f.NC=function(a){var b=this.F.getVideoData();a==b&&this.o.Da("onPlaybackQualityChange",a.B.video.quality)};
f.gn=function(a,b,c){if("newdata"==a)PN(this.D),this.A==this.F?(this.B.o.loop=this.Ea,this.B.o.playbackRate=this.U):(this.B.o.loop=!1,this.B.o.playbackRate=1),this.o.S("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"==a)if(rJ(b.W(),c.C),this.F==this.A){this.Y.C&&pp("embedded"==this.Y.Ba);var d=this.Y.C&&!!Bp();if(d||!P4(this).ap||this.Y.isMobile){var e=P4(this);if(!Ux(e)||d||Hx(this.A.o)){Vx(e);d&&o9(this,6);e=!1;d=O4.Xa;!this.J&&d(this)&&(this.J=new O4(this),k9(this,this.J),e=!0);try{var h=
this.J;h&&!h.F&&h.Xa(this.Ra)&&h.create()}catch(k){zi(k),this.A&&this.A.qj("ad")}e&&(this.J.vz(P4(this),wq(this)),this.J.subscribe("overlay_ad_open",pa(this.Jr,!0),this),this.J.subscribe("overlay_ad_close",pa(this.Jr,!1),this));l9(this);j9(this)}else h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",y5||fq()||Yp("xbox")&&Yp("trident")||eq()||(h=Px(e)?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),eM(this.A,"fmt.noneavailable",h,void 0)}else h="YTP_DEVICE_FALLBACK",
y5||fq()||Yp("xbox")&&Yp("trident")||eq()||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),eM(this.A,"html5.unsupportedads",h,void 0)}else j9(this);1==b.J&&(this.getVideoData().ai?(h=this.B,h.D=!0,h.o.muted=!0):(this.B.D=!1,S9(this,this.Z)),this.getVideoData().Ga&&!this.Y.sf&&eM(this.A,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),Vx(c)&&(c.xa||c.Ja||c.D.focEnabled||c.D.rmktEnabled||this.getVideoData().Ud)&&(h=this.getVideoData(),C9(this,"part2viewed",1,0x8000000000000),C9(this,"engagedview",
Math.max(1,1E3*h.ff),0x8000000000000),h.Ga||(h=1E3*h.lengthSeconds,C9(this,"videoplaytime25",.25*h,h),C9(this,"videoplaytime50",.5*h,h),C9(this,"videoplaytime75",.75*h,h),C9(this,"videoplaytime100",h,0x8000000000000),C9(this,"conversionview",h,0x8000000000000))));this.o.S("videodatachange",a,c,b.J)}this.Y.Ya&&this.o.Da("onVideoDataChange",{type:a,playertype:b.J})};
f.Ck=function(){d9(this,null);this.o.Da("onPlaylistUpdate")};
f.lq=function(a){var b=a.getId(),c=P4(this);if("part2viewed"==b)c.xd&&hq(c.xd),c.Ja&&hq(c.Ja);else if("conversionview"==b){var d=this.A;d.B&&VB(d.B)}else"engagedview"==b&&hq(c.xa);c.na&&(d=a.getId(),d=lj(c.na,{label:d}),hq(d));switch(b){case "videoplaytime25":c.bc&&hq(c.bc);hq(c.tf);break;case "videoplaytime50":c.od&&hq(c.od);hq(c.uf);break;case "videoplaytime75":c.qd&&hq(c.qd);hq(c.vf);break;case "videoplaytime100":c.ac&&hq(c.ac),hq(c.sf)}(b=this.getVideoData().Ud)&&b[a.getId()]&&(c=b[a.getId()],
hq(c,void 0,lq(c)),b=b[a.getId()+"gaia"],hq(b,void 0,lq(b)));this.A.F.zh(a)};
f.rg=function(a,b,c,d){b=0!=b;if(d=wq(this,d))2==this.M&&f9(this),lM(d,a,b,c)};
f.CE=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.Pz=function(){this.o.S("airplayactivechange")};
f.Qz=function(){this.o.S("airplayavailabilitychange")};
f.vE=function(){this.o.S("beginseeking")};
f.wE=function(){this.o.S("endseeking")};
f.Fq=function(){var a=this.C.xb(),b=this.getVideoData();b.Nc||!this.ca?(b=b.tg,a=D9(this,a),b&&H9(this,a)):a&&I9(this,a)};
f.Vz=function(a){this.o.Da("onCueRangeEnter",a.getId())};
f.Wz=function(a){this.o.Da("onCueRangeExit",a.getId())};
f.Zz=function(){this.fa||(this.fa=Ev(this.pq,this));E1(this.K,b5(this));if(!this.jb&&"detailpage"==this.Y.Ba){this.jb=!0;var a=this.A;if(a.ca&&a.ca.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.ca.o;var d=Qt()-a.ca.A;a.ca.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=ti("TIMING_INFO",{});"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);aw(a)}}this.Y.experiments.B&&Sy(this)&&(b=this.C.xb(iy(this.C)))&&F9(this,b)};
f.pq=function(a){a=a.o;if(!(0,window.isNaN)(a)&&0<a&&this.A){var b=this.A;b.B&&0<a&&(b.B.A.B.aft=[a])}};
f.Bq=function(a){"remote"==a?(2==this.M&&f9(this),o9(this,6),m9(this,this.J)):this.bm()};
f.Cq=function(a){"remote"!=a||this.Y.C&&Bp()||(this.ef(),this.pauseVideo());this.bm()};
f.bm=function(){this.Y.Ya&&this.F?this.o.Da("onApiChange",this.F.J):this.o.Da("onApiChange")};
f.qB=function(){var a={volume:le(Math.floor(100*this.B.o.volume),0,100),muted:this.B.o.muted};this.Z=ec(a);this.o.Da("onVolumeChange",a)};
f.WA=function(){T9(this,Dh()?1:0)};
f.BE=function(){if(this.B){var a=!1;if(0!=this.B.o.readyState&&this.F){var b=mr(this.B.o),c=this.getVideoData();ve(c.Td,b)||(c.Td=b,a=!0)}b=CF(this.G);ye(this.vb,b)||(this.vb=b,a=!0);a&&(this.F&&DM(this.F,"r"),!this.Y.experiments.ga("disable_app_resize")&&this.A&&this.A!=this.F&&DM(this.A,"r"));!a&&this.Y.experiments.ga("legacy_efficient_resize")||this.o.S("resize",this.G.Ma())}};
f.cC=function(){2!=this.cb&&T9(this,Dh()==this.G.element?1:0)};
f.yE=function(a){this.o.S("liveviewshift",a)};
f.UC=function(){this.o.Da("WATCH_LATER_VIDEO_ADDED")};
f.WC=function(){this.o.Da("WATCH_LATER_VIDEO_REMOVED")};
f.VC=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.o.Da("WATCH_LATER_ERROR",c||Q("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
f.ef=function(a){(a=wq(this,a))&&(2==this.M?f9(this):!this.Y.experiments.ga("new_ended_replay")&&T(a.getPlayerState(),2)?this.rg(0):yM(a))};
f.pauseVideo=function(a){(a=wq(this,a))&&a.pauseVideo()};
f.getAdState=function(){return this.J?this.J.getAdState():-1};
f.ls=function(a,b,c){this.tj();this.va=a;b&&F(b,function(a){this.ea[a]=!0},this);
c&&qba(this.D,a,c)};
f.tj=function(){this.va=null;this.ea={};QN(this.D)};
f.oC=function(){if(!this.Pa){this.Pa=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Ga||(b.start=wq(this).getCurrentTime());b.autoplay=1;b.reload=1;E9(this,b)}};
f.BA=function(){this.o.Da("CONNECTION_ISSUE")};
f.xE=function(a){this.o.Da("heartbeatparams",a)};
f.V=function(){this.Y.C&&sp();this.A.dispose();this.P&&this.P.dispose();i9(this);Nb(Vb(this.Ka),this.C);this.Fa=null;Dv(this.fa);this.fa=0;b9.N.V.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);