var _yt_player={};(function(g){var window=this;var h;var n=function(a){return void 0!==a};
var q=function(a,b,c){a=a.split(".");c=c||r;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]={}};
var t=function(a,b){for(var c=a.split("."),d=b||r,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
var w=function(){};
var aa=function(a){a.getInstance=function(){return a.Lb?a.Lb:a.Lb=new a}};
var ba=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};
var ca=function(a){return null===a};
var da=function(a){return"array"==ba(a)};
var ea=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length};
var y=function(a){return"string"==typeof a};
var fa=function(a){return"number"==typeof a};
var ha=function(a){return"function"==ba(a)};
var ia=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
var ka=function(a){return a[la]||(a[la]=++ma)};
var na=function(a,b,c){return a.call.apply(a.bind,arguments)};
var 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)}};
var A=function(a,b,c){A=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return A.apply(null,arguments)};
var 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)}};
var qa=function(a,b){for(var c in b)a[c]=b[c]};
var ra=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
var 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,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[c].apply(a,k)}};
var sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
var ta=function(a,b){return 0==a.lastIndexOf(b,0)};
var ua=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
var C=function(a){return/^[\s\xa0]*$/.test(a)};
var va=function(a){return(0,window.encodeURIComponent)(String(a))};
var wa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
var ya=function(a){if(!za.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ca,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Da,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ea,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"&#0;"));return a};
var Ga=function(a){return Ha(a,"&")?"document"in r?Ia(a):Ja(a):a};
var Ia=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=r.document.createElement("div");return a.replace(Ka,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(f=String.fromCharCode(k))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})};
var Ja=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}})};
var La=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
var Ha=function(a,b){return-1!=a.indexOf(b)};
var Ma=function(a,b){return Ha(a.toLowerCase(),b.toLowerCase())};
var Na=function(){var a;a="";var b=ra("Skip Ad \u00bb");a=a+b;b=new RegExp(Oa("\u00bb"),"");return a.replace(b,"")};
var Oa=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
var Pa=function(a,b,c){a=n(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Qa("0",Math.max(0,b-c))+a};
var D=function(a){return null==a?"":String(a)};
var Ra=function(a){return Array.prototype.join.call(arguments,"")};
var Sa=function(a,b){for(var c=0,d=Ta(String(a)).split("."),e=Ta(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"",p=RegExp("(\\d*)(\\D*)","g"),u=RegExp("(\\d*)(\\D*)","g");do{var v=p.exec(l)||["","",""],z=u.exec(m)||["","",""];if(0==v[0].length&&0==z[0].length)break;c=Ua(0==v[1].length?0:(0,window.parseInt)(v[1],10),0==z[1].length?0:(0,window.parseInt)(z[1],10))||Ua(0==v[2].length,0==z[2].length)||Ua(v[2],z[2])}while(0==c)}return c};
var Ua=function(a,b){return a<b?-1:a>b?1:0};
var Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
var Wa=function(){return"goog_"+Xa++};
var Ya=function(a){var b=Number(a);return 0==b&&C(a)?window.NaN:b};
var Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
var $a=function(a){var b=y(void 0)?Oa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
var ab=function(a){(0,window.isFinite)(a)&&(a=String(a));return y(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
var 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};
var cb=function(a){return a};
var db=function(a){return a[a.length-1]};
var eb=function(a,b,c){b=fb(a,b,c);return 0>b?null:y(a)?a.charAt(b):a[b]};
var fb=function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
var gb=function(a,b){var c=ib(a,b,void 0);return 0>c?null:y(a)?a.charAt(c):a[c]};
var ib=function(a,b,c){for(var d=y(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};
var jb=function(a,b){return 0<=kb(a,b)};
var lb=function(a){return 0==a.length};
var nb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
var ob=function(a,b){jb(a,b)||a.push(b)};
var pb=function(a,b){var c=kb(a,b),d;(d=0<=c)&&qb(a,c);return d};
var qb=function(a,b){Array.prototype.splice.call(a,b,1)};
var rb=function(a,b){var c=fb(a,b,void 0);0<=c&&qb(a,c)};
var sb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
var 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[]};
var ub=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ea(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
var vb=function(a,b,c,d){Array.prototype.splice.apply(a,wb(arguments,1))};
var wb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
var xb=function(a,b,c){function d(a){return ia(a)?"o"+ka(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f};
var yb=function(a,b,c){return zb(a,c||Ab,!1,b)};
var Bb=function(a,b){return zb(a,b,!0,void 0,void 0)};
var zb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,p;c?p=b.call(e,a[m],m,a):p=b(d,a[m]);0<p?f=m+1:(k=m,l=!p)}return l?f:~f};
var Cb=function(a,b){a.sort(b||Ab)};
var Db=function(a,b,c){var d=c||Ab;Cb(a,function(a,c){return d(b(a),b(c))})};
var Eb=function(a,b){Db(a,function(a){return a[b]},void 0)};
var Fb=function(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;var d=a.length;c=c||Gb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};
var Ab=function(a,b){return a>b?1:a<b?-1:0};
var Gb=function(a,b){return a===b};
var Hb=function(a,b,c){c=yb(a,b,c);0>c&&vb(a,-(c+1),0,b)};
var Ib=function(a,b,c){var d={};E(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
var Jb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
var 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 f=wb(d,e,e+8192),f=Kb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
var F=function(){this.Ta=this.Ta;this.Da=this.Da};
var G=function(a,b){Lb(a,pa(Nb,b))};
var Lb=function(a,b){a.Ta?b.call(void 0):(a.Da||(a.Da=[]),a.Da.push(n(void 0)?A(b,void 0):b))};
var Nb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
var Ob=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Ob.apply(null,d):Nb(d)}};
var Pb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
var Qb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
var Rb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
var Sb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
var Tb=function(a){var b=0,c;for(c in a)b++;return b};
var Ub=function(a,b){return Vb(a,b)};
var Wb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
var Xb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
var Yb=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};
var Zb=function(a,b){return null!==a&&b in a};
var Vb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
var $b=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
var ac=function(a,b){var c=$b(a,b,void 0);return c&&a[c]};
var bc=function(a){for(var b in a)return!1;return!0};
var cc=function(a){for(var b in a)delete a[b]};
var dc=function(a,b){b in a&&delete a[b]};
var ec=function(a,b,c){return null!==a&&b in a?a[b]:c};
var fc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
var gc=function(a){var b=ba(a);if("object"==b||"array"==b){if(ha(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=gc(a[c]);return b}return a};
var 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 f=0;f<ic.length;f++)c=ic[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
var jc=function(a){var b=arguments.length;if(1==b&&da(arguments[0]))return jc.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};
var kc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.A=!1;this.uq=!0};
var lc=function(a){a.stopPropagation()};
var mc=function(a){mc[" "](a);return a};
var nc=function(a,b){try{return mc(a[b]),!0}catch(c){}return!1};
var oc=function(a){return Ha(pc,a)};
var qc=function(){return oc("Opera")||oc("OPR")};
var rc=function(){return(oc("Chrome")||oc("CriOS"))&&!qc()&&!oc("Edge")};
var sc=function(){return oc("iPhone")&&!oc("iPod")&&!oc("iPad")};
var tc=function(){var a=pc;if(uc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(vc)return/Edge\/([\d\.]+)/.exec(a);if(wc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(xc)return/WebKit\/(\S+)/.exec(a)};
var yc=function(){var a=r.document;return a?a.documentMode:void 0};
var zc=function(a){return Ac[a]||(Ac[a]=0<=Sa(Bc,a))};
var Cc=function(a,b){kc.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)};
var Dc=function(a){return!(!a||!a[Fc])};
var Gc=function(a,b,c,d,e){this.listener=a;this.o=null;this.src=b;this.type=c;this.$e=!!d;this.Tc=e;this.key=++Hc;this.Hf=this.Lh=!1};
var Ic=function(a){a.Hf=!0;a.listener=null;a.o=null;a.src=null;a.Tc=null};
var Jc=function(a){this.src=a;this.o={};this.A=0};
var Kc=function(a,b,c,d,e,f){var k=b.toString();b=a.o[k];b||(b=a.o[k]=[],a.A++);var l=Lc(b,c,e,f);-1<l?(a=b[l],d||(a.Lh=!1)):(a=new Gc(c,a.src,k,!!e,f),a.Lh=d,b.push(a));return a};
var Mc=function(a,b){var c=b.type;if(!(c in a.o))return!1;var d=pb(a.o[c],b);d&&(Ic(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d};
var Nc=function(a,b,c,d,e){a=a.o[b.toString()];b=-1;a&&(b=Lc(a,c,d,e));return-1<b?a[b]:null};
var Lc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Hf&&f.listener==b&&f.$e==!!c&&f.Tc==d)return e}return-1};
var Oc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Oc(a,b[f],c,d,e);return null}c=Pc(c);return Dc(a)?a.P(b,c,d,e):Qc(a,b,c,!1,d,e)};
var Qc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Rc(a);l||(a[Sc]=l=new Jc(a));c=Kc(l,b,c,d,e,f);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};
var 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};
var Yc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Yc(a,b[f],c,d,e);return null}c=Pc(c);return Dc(a)?Kc(a.fd,String(b),c,!0,d,e):Qc(a,b,c,!0,d,e)};
var Zc=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)Zc(a,b[f],c,d,e);else c=Pc(c),Dc(a)?a.za(b,c,d,e):a&&(a=Rc(a))&&(b=Nc(a,b,c,!!d,e))&&$c(b)};
var $c=function(a){if(fa(a)||!a||a.Hf)return!1;var b=a.src;if(Dc(b))return Mc(b.fd,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.$e):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};
var Uc=function(a){return a in ad?ad[a]:ad[a]="on"+a};
var bd=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 f=b[a];f&&f.$e==c&&!f.Hf&&(f=cd(f,d),e=e&&!1!==f)}return e};
var cd=function(a,b){var c=a.listener,d=a.Tc||a.src;a.Lh&&$c(a);return c.call(d,b)};
var Wc=function(a,b){if(a.Hf)return!0;if(!Xc){var c=b||t("window.event"),d=new Cc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.A&&0<=k;k--){d.currentTarget=c[k];var l=bd(c[k],f,!0,d),e=e&&l}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],l=bd(c[k],f,!1,d),e=e&&l}return e}return cd(a,new Cc(b,
this))};
var Rc=function(a){a=a[Sc];return a instanceof Jc?a:null};
var Pc=function(a){if(ha(a))return a;a[dd]||(a[dd]=function(b){return a.handleEvent(b)});
return a[dd]};
var H=function(){F.call(this);this.fd=new Jc(this);this.Qa=this;this.ia=null};
var ed=function(a,b,c,d){b=a.fd.o[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Hf&&k.$e==c){var l=k.listener,m=k.Tc||k.src;k.Lh&&Mc(a.fd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.uq};
var fd=function(a,b,c){this.D=c;this.B=a;this.C=b;this.A=0;this.o=null};
var gd=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
var hd=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};
var id=function(a){r.setTimeout(function(){throw a;},0)};
var jd=function(a,b){var c=a;b&&(c=A(a,b));!ha(r.setImmediate)||r.Window&&r.Window.prototype&&!oc("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(kd||(kd=ld()),kd(c)):r.setImmediate(c)};
var ld=function(){var a=r.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!oc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=A(function(a){if(("*"==d||a.origin==
d)&&a.data==c)this.port1.onmessage()},this);
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
if("undefined"!==typeof a&&!oc("Trident")&&!oc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Gn;c.Gn=null;a()}};
return function(a){d.next={Gn: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){r.setTimeout(a,0)}};
var md=function(){this.A=this.o=null};
var nd=function(){this.next=this.scope=this.o=null};
var od=function(a,b){pd||qd();rd||(pd(),rd=!0);var c=sd,d=td.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d};
var qd=function(){if(r.Promise&&r.Promise.resolve){var a=r.Promise.resolve(void 0);pd=function(){a.then(ud)}}else pd=function(){jd(ud)}};
var ud=function(){for(var a=null;a=sd.remove();){try{a.o.call(a.scope)}catch(b){id(b)}td.put(a)}rd=!1};
var vd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
var wd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var xd=function(a,b){this.o=0;this.G=void 0;this.C=this.A=this.B=null;this.D=this.F=!1;if(a!=w)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)}};
var Ad=function(){this.next=this.context=this.A=this.B=this.o=null;this.C=!1};
var Bd=function(a,b,c){var d=Cd.get();d.B=a;d.A=b;d.context=c;return d};
var Dd=function(a){return new xd(function(b,c){c(a)})};
var Ed=function(a,b){return Fd(a,null,b,void 0)};
var Gd=function(a,b){if(0==a.o)if(a.B){var c=a.B;if(c.A){for(var d=0,e=null,f=null,k=c.A;k&&(k.C||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Gd(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Hd(c),Id(c,e,3,b)))}a.B=null}else zd(a,3,b)};
var Jd=function(a,b){a.A||2!=a.o&&3!=a.o||Kd(a);a.C?a.C.next=b:a.A=b;a.C=b};
var Fd=function(a,b,c,d){var e=Bd(null,null,null);e.o=new xd(function(a,k){e.B=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 Ld?k(b):a(e)}catch(p){k(p)}}:k});
e.o.B=a;Jd(a,e);return e.o};
var 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,f=a.J,k=a.K;if(e instanceof xd)Jd(e,Bd(f||w,k||null,a)),d=!0;else if(wd(e))e.then(f,k,a),d=!0;else{if(ia(e))try{var l=e.then;if(ha(l)){Md(e,l,f,k,a);d=!0;break a}}catch(m){k.call(a,m);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Kd(a),3!=b||c instanceof Ld||Nd(a,c))}};
var Md=function(a,b,c,d,e){function f(a){l||(l=!0,d.call(e,a))}
function k(a){l||(l=!0,c.call(e,a))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
var Kd=function(a){a.F||(a.F=!0,od(a.H,a))};
var Hd=function(a){var b=null;a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b};
var Id=function(a,b,c,d){if(3==c&&b.A&&!b.C)for(;a&&a.D;a=a.B)a.D=!1;if(b.o)b.o.B=null,Od(b,c,d);else try{b.C?b.B.call(b.context):Od(b,c,d)}catch(e){Pd.call(null,e)}Cd.put(b)};
var Od=function(a,b,c){2==b?a.B.call(a.context,c):a.A&&a.A.call(a.context,c)};
var Nd=function(a,b){a.D=!0;od(function(){a.D&&Pd.call(null,b)})};
var Ld=function(a){sa.call(this,a)};
var Qd=function(a,b){H.call(this);this.o=a||1;this.A=b||r;this.B=A(this.dw,this);this.C=I()};
var Rd=function(a,b){a.o=b;a.ya&&a.enabled?(a.stop(),a.start()):a.ya&&a.stop()};
var Sd=function(a,b,c){if(ha(a))c&&(a=A(a,c));else if(a&&"function"==typeof a.handleEvent)a=A(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:r.setTimeout(a,b||0)};
var Td=function(a){r.clearTimeout(a)};
var Ud=function(a,b,c){F.call(this);this.o=a;this.C=b||0;this.A=c;this.B=A(this.eo,this)};
var Vd=function(a){a.stop();a.eo()};
var Wd=function(a){if(a.classList)return a.classList;a=a.className;return y(a)&&a.match(/\S+/g)||[]};
var Xd=function(a,b){return a.classList?a.classList.contains(b):jb(Wd(a),b)};
var J=function(a,b){a.classList?a.classList.add(b):Xd(a,b)||(a.className+=0<a.className.length?" "+b:b)};
var Yd=function(a,b){if(a.classList)E(b,function(b){J(a,b)});
else{var c={};E(Wd(a),function(a){c[a]=!0});
E(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
var Zd=function(a,b){a.classList?a.classList.remove(b):Xd(a,b)&&(a.className=$d(Wd(a),function(a){return a!=b}).join(" "))};
var ae=function(a,b){a.classList?E(b,function(b){Zd(a,b)}):a.className=$d(Wd(a),function(a){return!jb(b,a)}).join(" ")};
var L=function(a,b,c){c?J(a,b):Zd(a,b)};
var be=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};
var ce=function(a){return eval("("+a+")")};
var de=function(a){return(new ee(void 0)).nc(a)};
var ee=function(a){this.o=a};
var fe=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],fe(a,a.o?a.o.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),ge(d,c),c.push(":"),fe(a,a.o?a.o.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ge(b,
c);break;case "number":c.push((0,window.isFinite)(b)&&!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
var ge=function(a,b){b.push('"',a.replace(ie,function(a){var b=je[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),je[a]=b);return b}),'"')};
var ke=function(a,b,c){return Math.min(Math.max(a,b),c)};
var le=function(a){return me(arguments,function(a,c){return a+c},0)};
var ne=function(a){return le.apply(null,arguments)/arguments.length};
var oe=function(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0};
var pe=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
var qe=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
var re=function(a,b){this.width=a;this.height=b};
var se=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
var te=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
var ue=function(a){return new qe(a.top,a.left+a.width,a.top+a.height,a.left)};
var ve=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};
var we=function(a){return new re(a.width,a.height)};
var xe=function(a){return new oe(a.left,a.top)};
var ye=function(a,b){return b?a.replace(ze,""):a};
var Ae=function(){this.o="";this.A=Be};
var Ce=function(a){return a instanceof Ae&&a.constructor===Ae&&a.A===Be?a.o:"type_error:Const"};
var De=function(a){var b=new Ae;b.o=a;return b};
var Ee=function(){this.o="";this.A=Fe};
var Ge=function(a){var b=new Ee;b.o=a;return b};
var He=function(){this.o="";this.A=Ie};
var Je=function(a){return a instanceof He&&a.constructor===He&&a.A===Ie?a.o:"type_error:SafeUrl"};
var Ke=function(a){if(a instanceof He)return a;a=a.Ke?a.hd():String(a);Le.test(a)||(a="about:invalid#zClosurez");var b=new He;b.o=a;return b};
var Me=function(){this.o=Ne};
var Oe=function(a){return a instanceof Me&&a.constructor===Me&&a.o===Ne?"":"type_error:TrustedResourceUrl"};
var Pe=function(){this.o="";this.B=Qe;this.A=null};
var Re=function(a){return a instanceof Pe&&a.constructor===Pe&&a.B===Qe?a.o:"type_error:SafeHtml"};
var Se=function(a){function b(a){if(da(a))E(a,b);else{var f;a instanceof Pe?f=a:(f=null,a.Zk&&(f=a.ff()),a=ya(a.Ke?a.hd():String(a)),f=Te(a,f));d+=Re(f);f=f.ff();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";E(arguments,b);return Te(d,c)};
var Te=function(a,b){var c=new Pe;c.o=a;c.A=b;return c};
var Ue=function(a){return a?new Ve(We(a)):Xe||(Xe=new Ve)};
var Ye=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Ze("*",a,b)};
var $e=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=Ze("*",a,b)[0];return d||null};
var Ze=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,f=0,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&jb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
var af=function(a,b){Pb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:bf.hasOwnProperty(d)?a.setAttribute(bf[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})};
var cf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new re(a.clientWidth,a.clientHeight)};
var df=function(a){var b=ef(a);a=a.parentWindow||a.defaultView;return wc&&zc("10")&&a.pageYOffset!=b.scrollTop?new oe(b.scrollLeft,b.scrollTop):new oe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
var ef=function(a){return a.scrollingElement?a.scrollingElement:xc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
var ff=function(a){return a?a.parentWindow||a.defaultView:window};
var M=function(a,b,c){return gf(window.document,arguments)};
var gf=function(a,b){var c=b[0],d=b[1];if(!hf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ya(d.name),'"');if(d.type){c.push(' type="',ya(d.type),'"');var e={};hc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(y(d)?c.className=d:da(d)?c.className=d.join(" "):af(c,d));2<b.length&&jf(a,c,b,2);return c};
var jf=function(a,b,c,d){function e(c){c&&b.appendChild(y(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!ea(f)||ia(f)&&0<f.nodeType?e(f):E(kf(f)?tb(f):f,e)}};
var lf=function(a){return window.document.createElement(a)};
var mf=function(a,b){a.appendChild(b)};
var nf=function(a,b){jf(We(a),a,arguments,1)};
var of=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
var pf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
var qf=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};
var rf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
var sf=function(a){return tf&&void 0!=a.children?a.children:$d(a.childNodes,function(a){return 1==a.nodeType})};
var uf=function(a){return n(a.firstElementChild)?a.firstElementChild:vf(a.firstChild)};
var vf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
var wf=function(a){var b;if(xf&&!(wc&&zc("9")&&!zc("10")&&r.SVGElement&&a instanceof r.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ia(b)&&1==b.nodeType?b:null};
var yf=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||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
var We=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
var zf=function(a){try{return a.contentWindow||(a.contentDocument?ff(a.contentDocument):null)}catch(b){}return null};
var Af=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{of(a);var c=We(a);a.appendChild(c.createTextNode(String(b)))}};
var Bf=function(a){if("outerHTML"in a)return a.outerHTML;var b=We(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
var Cf=function(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Df(a)||Ef(a)):Df(a)&&Ef(a))&&wc?(a=ha(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a};
var Df=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
var Ef=function(a){a=a.tabIndex;return fa(a)&&0<=a&&32768>a};
var kf=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};
var Ff=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Gf(a,function(a){return(!e||a.nodeName==e)&&(!c||y(a.className)&&jb(a.className.split(/\s+/),c))},d)};
var Hf=function(a,b){return Ff(a,null,b,void 0)};
var Gf=function(a,b,c){for(var d=null==c,e=0;a&&(d||e<=c);){if(b(a))return a;a=a.parentNode;e++}return null};
var Ve=function(a){this.o=a||r.document||window.document};
var If=function(a){a=a.o;return a.parentWindow||a.defaultView};
var Jf=function(a){return df(a.o)};
var Kf=function(){return xc?"Webkit":uc?"Moz":wc?"ms":Lf?"O":null};
var Mf=function(a,b,c){if(y(b))(b=Nf(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Nf(c,d);f&&(c.style[f]=e)}};
var Nf=function(a,b){var c=Of[b];if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Kf()+$a(d),void 0!==a.style[d]&&(c=d));Of[b]=c}return c};
var Pf=function(a,b){var c=a.style[Za(b)];return"undefined"!==typeof c?c:a.style[Nf(a,b)]||""};
var Qf=function(a,b){var c=We(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
var Sf=function(a,b){return Qf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
var Tf=function(a,b,c){var d;b instanceof oe?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Uf(d,!1);a.style.top=Uf(b,!1)};
var Vf=function(a){return new oe(a.offsetLeft,a.offsetTop)};
var Wf=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}wc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
var Xf=function(a){if(wc&&!(8<=Yf))return a.offsetParent;var b=We(a),c=Sf(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=Sf(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};
var Zf=function(a){for(var b=new qe(0,window.Infinity,window.Infinity,0),c=Ue(a),d=c.o.body,e=c.o.documentElement,f=ef(c.o);a=Xf(a);)if(!(wc&&0==a.clientWidth||xc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Sf(a,"overflow")){var k=$f(a),l=new oe(a.clientLeft,a.clientTop);k.x+=l.x;k.y+=l.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=
Math.max(b.top,f);c=cf(If(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null};
var $f=function(a){var b=We(a),c=new oe(0,0),d;d=b?We(b):window.document;var e;(e=!wc)||(e=9<=Yf);e||(e="CSS1Compat"==Ue(d).o.compatMode);if(a==(e?d.documentElement:d.body))return c;a=Wf(a);b=Jf(Ue(b));c.x=a.left+b.x;c.y=a.top+b.y;return c};
var ag=function(a,b){var c=new oe(0,0),d=ff(We(a));if(!nc(d,"parent"))return c;var e=a;do{var f=d==b?$f(e):bg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
var cg=function(a,b){var c=dg(a),d=dg(b);return new oe(c.x-d.x,c.y-d.y)};
var bg=function(a){a=Wf(a);return new oe(a.left,a.top)};
var dg=function(a){if(1==a.nodeType)return bg(a);a=a.changedTouches?a.changedTouches[0]:a;return new oe(a.clientX,a.clientY)};
var eg=function(a,b,c){if(b instanceof re)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");fg(a,b);a.style.height=Uf(c,!0)};
var Uf=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
var fg=function(a,b){a.style.width=Uf(b,!0)};
var gg=function(a){return hg(a)};
var hg=function(a){var b=ig;if("none"!=Sf(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
var ig=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=xc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new re(b,c):(a=Wf(a),new re(a.right-a.left,a.bottom-a.top))};
var jg=function(a){var b=$f(a);a=hg(a);return new te(b.x,b.y,a.width,a.height)};
var kg=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*b+")")};
var lg=function(a,b){a.style.display=b?"":"none"};
var mg=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};
var ng=function(a){var b=Sf(a,"fontSize"),c;c=(c=b.match(og))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(wc){if(c in pg)return mg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in qg)return a=a.parentNode,c=Sf(a,"fontSize"),mg(a,b==c?"1em":b)}c=M("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;qf(c);return b};
var rg=function(){};
var sg=function(a){if(a instanceof rg)return a;if("function"==typeof a.Sb)return a.Sb(!1);if(ea(a)){var b=0,c=new rg;c.next=function(){for(;;){if(b>=a.length)throw tg;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
var ug=function(a,b,c){if(ea(a))try{E(a,b,c)}catch(d){if(d!==tg)throw d;}else{a=sg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==tg)throw d;}}};
var vg=function(a){if(ea(a))return tb(a);a=sg(a);var b=[];ug(a,function(a){b.push(a)});
return b};
var wg=function(a,b){this.A={};this.o=[];this.be=this.xa=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 wg?(c=a.Na(),d=a.Ka()):(c=Xb(a),d=Wb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
var xg=function(a,b){return yg(a.A,b)};
var zg=function(a,b){return a===b};
var Ag=function(a){if(a.xa!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];yg(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.xa!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],yg(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};
var yg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var Bg=function(a){return a.Ya&&"function"==typeof a.Ya?a.Ya():ea(a)||y(a)?a.length:Tb(a)};
var Cg=function(a){if(a.Ka&&"function"==typeof a.Ka)return a.Ka();if(y(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 Wb(a)};
var Dg=function(a){if(a.Na&&"function"==typeof a.Na)return a.Na();if(!a.Ka||"function"!=typeof a.Ka){if(ea(a)||y(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Xb(a)}};
var Eg=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||y(a))E(a,b,c);else for(var d=Dg(a),e=Cg(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
var Fg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ea(a)||y(a))return Gg(a,b,c);for(var d=Dg(a),e=Cg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0};
var Hg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
var Ig=function(a){return a.match(Jg)};
var Kg=function(a){return a?(0,window.decodeURI)(a):a};
var Lg=function(a){return Kg(Ig(a)[3]||null)};
var Mg=function(a){return Number(Ig(a)[4]||null)||null};
var Ng=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,k=null;0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?wa(k):"")}};
var Og=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("")};
var Pg=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Pg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",va(b))};
var Qg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Pg(b[c],b[c+1],a);return a};
var Rg=function(a,b){for(var c in b)Pg(c,b[c],a);return a};
var Sg=function(a){a=Rg([],a);a[0]="";return a.join("")};
var Tg=function(a,b){return Og(2==arguments.length?Qg([a],arguments[1],0):Qg([a],arguments,1))};
var Ug=function(a,b){return Og(Rg([a],b))};
var Vg=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
var Wg=function(a,b){var c=a.search(Xg),d=Vg(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 wa(a.substr(d,e-d))};
var Yg=function(a,b){for(var c=a.search(Xg),d=0,e,f=[];0<=(e=Vg(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Zg,"$1")};
var $g=function(a,b,c){a=[Yg(a,b),"&",b];null!=c&&a.push("=",va(c));return Og(a)};
var N=function(a,b){this.A=this.H=this.C="";this.D=null;this.J=this.B="";this.F=!1;var c;a instanceof N?(this.F=n(b)?b:a.F,ah(this,a.C),this.H=a.H,bh(this,a.A),ch(this,a.D),dh(this,a.B),eh(this,a.o.clone()),this.J=a.De()):a&&(c=Ig(String(a)))?(this.F=!!b,ah(this,c[1]||"",!0),this.H=fh(c[2]||""),bh(this,c[3]||"",!0),ch(this,c[4]),dh(this,c[5]||"",!0),eh(this,c[6]||"",!0),this.J=fh(c[7]||"")):(this.F=!!b,this.o=new gh(null,0,this.F))};
var ah=function(a,b,c){a.C=c?fh(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
var hh=function(a){return a.A};
var bh=function(a,b,c){a.A=c?fh(b,!0):b;return a};
var ch=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};
var dh=function(a,b,c){a.B=c?fh(b,!0):b};
var eh=function(a,b,c){b instanceof gh?(a.o=b,ih(a.o,a.F)):(c||(b=jh(b,kh)),a.o=new gh(b,0,a.F));return a};
var lh=function(a){return a.o};
var mh=function(a,b,c){a.o.set(b,c);return a};
var nh=function(a,b,c){da(c)||(c=[String(c)]);oh(a.o,b,c)};
var ph=function(a){mh(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^I()).toString(36));return a};
var qh=function(a){return a instanceof N?a.clone():new N(a,void 0)};
var rh=function(a,b,c,d){var e=new N(null,void 0);a&&ah(e,a);b&&bh(e,b);c&&ch(e,c);d&&dh(e,d);return e};
var fh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
var jh=function(a,b,c){return y(a)?(a=(0,window.encodeURI)(a).replace(b,sh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
var sh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
var gh=function(a,b,c){this.xa=this.o=null;this.A=a||null;this.B=!!c};
var th=function(a){a.o||(a.o=new wg,a.xa=0,a.A&&Ng(a.A,function(b,c){uh(a,wa(b),c)}))};
var uh=function(a,b,c){th(a);a.A=null;b=vh(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.xa++};
var wh=function(a,b){th(a);b=vh(a,b);return xg(a.o,b)};
var oh=function(a,b,c){a.remove(b);0<c.length&&(a.A=null,a.o.set(vh(a,b),tb(c)),a.xa+=c.length)};
var vh=function(a,b){var c=String(b);a.B&&(c=c.toLowerCase());return c};
var ih=function(a,b){b&&!a.B&&(th(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),oh(this,e,a))},a));
a.B=b};
var xh=function(a){var b=yh();a.innerHTML=b};
var zh=function(){return Ah?'<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-5" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-5" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-5" /></svg>'};
var Bh=function(){return Ah?'<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>'};
var Ch=function(){return Ah?'<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-6" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><use fill="#eaeaea" xlink:href="#ytp-svg-6" /></svg>'};
var Dh=function(){return Ah?'<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-7" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-7" /><use fill="#eaeaea" xlink:href="#ytp-svg-7" /></svg>'};
var yh=function(){return Ah?'<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>'};
var Eh=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>'};
var Fh=function(a,b){if(a in b)return b[a];var c=Gh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
var Hh=function(a,b){var c;Ih(a,function(a){c=Fh(a,b);return!!c});
return c};
var Jh=function(a){var b=window.document;if("on"+a in b)return a;a=Gh+a;return"on"+a in b?a:null};
var Kh=function(){return!!Hh(["fullscreenEnabled","fullScreenEnabled"],window.document)};
var Lh=function(){return Hh(["fullscreenElement","fullScreenElement"],window.document)};
var Mh=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||fc(Nh);this.assets=a.assets||{};this.attrs=a.attrs||fc(Oh);this.params=a.params||fc(Ph);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||{}};
var Qh=function(a){window.chrome?Rh(0,a):a(null)};
var Rh=function(a,b){a==Sh.length?b(null):Th(Sh[a],function(c){c?b(Sh[a]):Rh(a+1,b)})};
var Th=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","chrome-extension://"+a+Uh,!0),c.send()}catch(d){b(!1)}};
var Vh=function(a){var b=window.document.createElement("script");b.src=a;(window.document.head||window.document.documentElement).appendChild(b)};
var Wh=function(){var a=window.navigator.userAgent;return 0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")};
var Xh=function(){if(window.navigator.presentation&&Wh())Vh("//www.gstatic.com/eureka/clank"+Uh);else{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}}Qh(function(a){a?(window.chrome=window.chrome||{},window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=a,Vh("chrome-extension://"+a+Uh)):(a=window.__onGCastApiAvailable)&&"function"==typeof a&&a(!1,
"No cast extension found")})}};
var Yh=function(a){Zh();$h.push(a);ai($h)};
var bi=function(a){var b=t("yt.mdx.remote.debug.handlers_");pb(b||[],a)};
var ci=function(a,b){Zh();var c=$h,d=di(a,String(b));lb(c)?ei(d):(ai(c),E(c,function(a){a(d)}))};
var Zh=function(){$h||($h=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",$h,void 0))};
var ei=function(a){var b=(fi+1)%50;fi=b;gi[b]=a;hi||(hi=49==b)};
var ai=function(a){var b=gi;if(b[0]){var c=fi,d=hi?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c);
gi=Array(50);fi=-1;hi=!1}};
var di=function(a,b){var c=(I()-ii)/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("")};
var ji=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.o=a.uuid||a.dialId||""};
var ki=function(a,b){return!!b&&(a.id==b||a.o==b)};
var li=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.o==b.o:!0};
var mi=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.o}};
var ni=function(a){return new ji(a)};
var oi=function(a){return da(a)?O(a,ni):[]};
var pi=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.o?".."+a.o.slice(-6):"-")+"}":"null"};
var qi=function(a){return da(a)?"["+O(a,pi).join(",")+"]":"null"};
var ri=function(a,b,c){a&&(a.dataset?a.dataset[si(b)]=c:a.setAttribute("data-"+b,c))};
var si=function(a){return ti[a]||(ti[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
var ui=function(a){F.call(this);this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=Boolean(a)};
var vi=function(a,b,c){od(function(){a.apply(b,c)})};
var wi=function(a){xi(yi,arguments)};
var zi=function(a,b){return a in yi?yi[a]:b};
var Ai=function(a,b){ha(a)&&(a=Bi(a));return window.setTimeout(a,b)};
var Ci=function(a,b){ha(a)&&(a=Bi(a));return window.setInterval(a,b)};
var Di=function(a){window.clearTimeout(a)};
var Ei=function(a){window.clearInterval(a)};
var Bi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Fi(b),b;}}:a};
var Fi=function(a,b){var c=t("yt.logging.errors.log");c?c(a,b):(c=zi("ERRORS")||[],c.push([a,b]),wi("ERRORS",c))};
var Gi=function(a){xi(Hi,arguments)};
var P=function(a,b,c){var d=b||{};if(a=a in Hi?Hi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
var xi=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]}};
var Ii=function(a,b,c){var d=Ji();if(d){var e=d.subscribe(a,function(){if(!Ki||Ki!=e){var d=arguments,k=function(){Li[e]&&b.apply(c||window,d)};
try{Mi[a]?k():Ai(k,0)}catch(l){Fi(l)}}},c);
Li[e]=!0;Ni[a]||(Ni[a]=[]);Ni[a].push(e);return e}return 0};
var Oi=function(a){var b=Ji();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete Li[a]}))};
var Pi=function(a,b){var c=Ji();c&&c.publish.apply(c,arguments)};
var Qi=function(a,b){Mi[a]=!0;var c=Ji();c&&c.publish.apply(c,arguments);Mi[a]=!1};
var Ji=function(){return t("yt.pubsub.instance_")};
var Ri=function(){};
var Si=function(){};
var Ti=function(a){this.o=a};
var Ui=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.o=a};
var Vi=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.o=a};
var Wi=function(a){this.o=a};
var Xi=function(a){this.o=a};
var Yi=function(a){this.data=a};
var Zi=function(a){return!n(a)||a instanceof Yi?a:new Yi(a)};
var $i=function(a){this.o=a};
var aj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<I()||!!b&&b>I()};
var bj=function(a){this.o=a};
var cj=function(a,b){var c=[];ug(b,function(a){var b;try{b=bj.prototype.A.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}n(b)?aj(b)&&c.push(a):c.push(a)},a);
return c};
var dj=function(a,b){var c=cj(a,b);E(c,function(a){bj.prototype.remove.call(this,a)},a)};
var ej=function(){var a=fj;dj(a,a.o.Sb(!0))};
var gj=function(a,b,c){var d=c&&0<c?c:0;c=d?I()+1E3*d:0;if((d=d?fj:hj)&&window.JSON){y(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
var ij=function(a){if(!hj&&!fj||!window.JSON)return null;var b;try{b=hj.get(a)}catch(c){}if(!y(b))try{b=fj.get(a)}catch(c){}if(!y(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
var jj=function(a){hj&&hj.remove(a);fj&&fj.remove(a)};
var kj=function(a){var b=a.type;if(!n(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null;default:return n(a.value)?a.value:null}};
var lj=function(a,b){Ce(a);Ce(a);return Te(b,null)};
var mj=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");if(1==k.length&&k[0]||2==k.length){var l=wa(k[0]||""),k=wa(k[1]||"");l in d?da(d[l])?ub(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
var nj=function(a,b){var c=[];Pb(a,function(a,b){var f=va(b),k;da(a)?k=a:k=[a];E(k,function(a){""==a?c.push(f):c.push(f+"="+va(a))})});
return c.join(b)};
var oj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return mj(a,"&")};
var pj=function(a){a=a.split(",");return a=a.map(function(a){return oj(a)})};
var qj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),oj(1<a.length?a[1]:a[0])):{}};
var rj=function(a,b){return sj(a,b||{},!0)};
var sj=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=oj(e[1]||""),f;for(f in b)if(c||!Zb(e,f))e[f]=b[f];return Ug(a,e)+d};
var tj=function(a){var b;b||(b=window.location.href);var c=Ig(a)[1]||null,d=Lg(a);c&&d?(a=Ig(a),b=Ig(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Lg(b)==d&&Mg(b)==Mg(a):!0;return a};
var uj=function(){var a;a||(a=window.document.location.href);a=Ig(a)[1]||null;return null!==a&&"https"==a};
var vj=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}};
var wj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Bi(b)(m)}
var m=xj&&xj();if(!("open"in m))return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;c=(c||"GET").toUpperCase();d=d||"";m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);f="POST"==c;if(e=yj(a,e))for(var p in e)m.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(f=!1);f&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m};
var yj=function(a,b){b=b||{};for(var c in zj){var d=zi(zj[c]),e;if((e=d)&&!(e=tj(a))){e=c;var f=zi("CORS_HEADER_WHITELIST")||{},k=Lg(a);e=k?(f=f[k])?jb(f,e):!1:!0}e&&(b[c]=d)}return b};
var Aj=function(a,b){b.method="POST";b.Bb||(b.Bb={});Bj(a,b)};
var Cj=function(a,b){var c=zi("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.qJ&&(!Lg(a)||b.withCredentials||Lg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Bb&&b.Bb[c])};
var Bj=function(a,b){var c=b.format||"JSON";b.uJ&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=zi("XSRF_FIELD_NAME"),e=zi("XSRF_TOKEN"),f=b.wd;f&&(f[d]&&delete f[d],a=rj(a,f));var k=b.postBody||"",f=b.Bb;Cj(a,b)&&(f||(f={}),f[d]=e);f&&y(k)&&(d=oj(k),hc(d,f),k=Sg(d));var l=!1,m,p=wj(a,function(a){if(!l){l=!0;m&&Di(m);var d=vj(a),e=null;if(d||400<=a.status&&500>a.status)e=Dj(c,a,b.Dv);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||{},f=b.context||r;d?b.nb&&b.nb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Ub&&b.Ub.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Ud&&0<b.timeout&&(m=Ai(function(){l||(l=!0,p.abort(),Di(m),b.Ud.call(b.context||r,p))},b.timeout));
return p};
var Dj=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=ce(a));break;case "XML":if(b=(b=b.responseXML)?Ej(b):null)d={},E(b.getElementsByTagName("*"),function(a){d[a.tagName]=Fj(a)})}c&&Gj(d);
return d};
var Gj=function(a){if(ia(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=lj(De("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Gj(a[b])};
var Ej=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
var Fj=function(a){var b="";E(a.childNodes,function(a){b+=a.nodeValue});
return b};
var Hj=function(a){this.C=this.B="";this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=Mg(a)||"";b&&(this.C=":"+b);this.B=Lg(a)||"";a=pc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Sa(a,"10.0")&&(this.A=!1))};
var Ij=function(a,b,c,d){var e=a.o;if(n(d)?d:a.A)e="https://"+a.B+a.C+a.o;return Ug(e+b,c||{})};
var Jj=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,nb:pa(a.F,d,!0),onError:pa(a.D,e),Ud:pa(a.G,e)};c&&(a.Bb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Bj(b,a)};
var Kj=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")};
var Lj=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)})};
var Mj=function(a){return O(a,function(a){return{key:a.id,name:a.name}})};
var Nj=function(a){return O(a,function(a){return new Kj(a)})};
var Oj=function(a,b){return eb(a,function(a){return a.id==b})};
var Pj=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
var Qj=function(a,b){return eb(a,function(a){return ki(a,b)})};
var Rj=function(){F.call(this);this.S=new ui;G(this,this.S)};
var Sj=function(a){Rj.call(this);this.F=a;this.screens=[]};
var Tj=function(a,b){var c=a.get(b.o)||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.o=b.o||c.o;return c.name!=d}a.screens.push(b);return!0};
var Uj=function(a,b){var c=a.screens.length!=b.length;a.screens=$d(a.screens,function(a){return!!Pj(b,a)});
for(var d=0,e=b.length;d<e;d++)c=Tj(a,b[d])||c;return c};
var Vj=function(a,b){var c=a.screens.length;a.screens=$d(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c};
var Wj=function(a,b,c,d){Rj.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.o=null;this.ya=window.NaN};
var Xj=function(a,b){this.A=a;this.o=b+"::"};
var Yj=function(a){var b=new Ui;return b.isAvailable()?a?new Xj(b,a):b:null};
var Zj=function(a){this.o=new wg;if(a){a=Cg(a);for(var b=a.length,c=0;c<b;c++)ak(this,a[c])}};
var bk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a};
var ak=function(a,b){a.o.set(bk(b),b)};
var ck=function(a,b){var c=Bg(b);if(a.Ya()>c)return!1;!(b instanceof Zj)&&5<c&&(b=new Zj(b));return Fg(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.ye&&"function"==typeof c.ye?c.ye(a):ea(c)||y(c)?jb(c,a):Vb(c,a)})};
var dk=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Zj;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 Zj($d((a.capabilities||"").split(","),pa(Ub,ek))))};
var fk=function(a){this.o=a};
var gk=function(a){a=(a.o.cookie||"").split(hk);for(var b=[],c=[],d,e,f=0;e=a[f];f++)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}};
var ik=function(a,b,c){jk.set(""+a,b,c,"/","youtube.com")};
var kk=function(){var a=lk(),b=mk();jb(a,b);nk()&&Hb(a,b);a=ok(a);if(lb(a))try{a="remote_sid",jk.remove(""+a,"/","youtube.com")}catch(c){}else try{ik("remote_sid",a.join(","),-1)}catch(c){}};
var lk=function(){var a=ij("yt-remote-connected-devices")||[];Cb(a);return a};
var ok=function(a){if(lb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return O(a,function(a,b){return 0==b?a:a.substring(c.length)})};
var pk=function(a){gj("yt-remote-connected-devices",a,86400)};
var mk=function(){if(qk)return qk;var a=ij("yt-remote-device-id");a||(a=Lj(),gj("yt-remote-device-id",a,31536E3));for(var b=lk(),c=1,d=a;jb(b,d);)c++,d=a+"#"+c;return qk=d};
var rk=function(){return ij("yt-remote-session-browser-channel")};
var nk=function(){return ij("yt-remote-session-screen-id")};
var sk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=O(tk(),function(a){return a.loungeToken}),c=O(a,function(a){return a.loungeToken});
Gg(c,function(a){return!jb(b,a)})&&uk();
gj("yt-remote-local-screens",a,31536E3)};
var tk=function(){return ij("yt-remote-local-screens")||[]};
var uk=function(){gj("yt-remote-lounge-token-expiration",!0,86400)};
var vk=function(a){gj("yt-remote-online-screens",a,60)};
var wk=function(){return ij("yt-remote-online-dial-devices")||[]};
var xk=function(a,b){gj("yt-remote-session-browser-channel",a);gj("yt-remote-session-screen-id",b);var c=lk(),d=mk();jb(c,d)||c.push(d);pk(c);kk()};
var yk=function(a){a||(jj("yt-remote-session-screen-id"),jj("yt-remote-session-video-id"));kk();a=lk();pb(a,mk());pk(a)};
var zk=function(){if(!Ak){var a=Yj();a&&(Ak=new Wi(a))}return Ak?!!Ak.get("yt-remote-use-staging-server"):!1};
var Bk=function(a){Sj.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;Ck(this);this.info("Initializing with "+qi(this.screens))};
var Dk=function(a){if(a.screens.length){var b=O(a.screens,function(a){return a.id}),c=Ij(a.A,"/pairing/get_lounge_token_batch");
Jj(a.A,c,{screen_ids:b.join(",")},A(a.rw,a),A(a.qw,a))}};
var Ck=function(a){var b=oi(tk()),b=$d(b,function(a){return!a.o});
return Uj(a,b)};
var Ek=function(a,b){sk(O(a.screens,mi));b&&uk()};
var Fk=function(a,b){Rj.call(this);this.D=b;for(var c=ij("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=jb(c,l)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;Gk("Initialized with "+de(this.o))};
var Hk=function(a,b,c){var d=Ij(a.F,"/pairing/get_screen_availability");Jj(a.F,d,{lounge_token:b.token},A(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),A(function(){c(!1)},a))};
var Ik=function(a,b){var c;a:if(Tb(b)!=Tb(a.o))c=!1;else{c=Xb(b);for(var d=0,e=c.length;d<e;++d)if(!a.o[c[d]]){c=!1;break a}c=!0}c||(Gk("Updated online screens: "+de(a.o)),a.o=b,a.R("screenChange"));Jk(a)};
var Kk=function(a){(0,window.isNaN)(a.B)||Di(a.B);a.B=Ai(A(a.Jl,a),0<a.C&&a.C<I()?2E4:1E4)};
var Gk=function(a){ci("OnlineScreenService",a)};
var Lk=function(a){var b={};E(a.D(),function(a){a.token?b[a.token]=a.id:this.Xa("Requesting availability of screen w/o lounge token.")});
return b};
var Jk=function(a){var b=Xb(Qb(a.o,function(a){return a}));
Cb(b);b.length?gj("yt-remote-online-screen-ids",b.join(","),60):jj("yt-remote-online-screen-ids");a=$d(a.D(),function(a){return!!this.o[a.id]},a);
vk(O(a,mi))};
var Mk=function(a){Sj.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};Nk(this)};
var Ok=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.Zb();if(k=(c?Qj(k,c):null)||Qj(k,b)){k.o=b;var l=Pk(a,k);Hk(a.o,l,function(a){e(a?l:null)})}else c?Qk(a,c,A(function(a){var f=Pk(this,new ji({name:d,
screenId:c,loungeToken:a,dialId:b||""}));Hk(this.o,f,function(a){e(a?f:null)})},a),f):e(null)};
var Rk=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};
var Qk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Bb:{screen_ids:b},method:"POST",context:a,nb:function(a,e){var l=e&&e.screens||[];l[0]&&l[0].screenId==b?c(l[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
Bj(Ij(a.D,"/pairing/get_lounge_token_batch"),e)};
var Sk=function(a){a.screens=a.A.Zb();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.o=c[e.id]||""}a.info("Updated manual screens: "+qi(a.screens))};
var Nk=function(a){Tk(a);a.A=new Bk(a.D);a.A.subscribe("screenChange",A(a.Dw,a));Sk(a);a.B=oi(ij("yt-remote-automatic-screen-cache")||[]);Tk(a);a.info("Initializing automatic screens: "+qi(a.B));a.o=new Fk(a.D,A(a.Zb,a,!0));a.o.subscribe("screenChange",A(function(){this.R("onlineScreenChange")},a))};
var Pk=function(a,b){var c=a.get(b.id);c?(c.o=b.o,b=c):((c=Qj(a.B,b.o))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),gj("yt-remote-automatic-screen-cache",O(a.B,mi)));Tk(a);a.C[b.o]=b.id;gj("yt-remote-device-id-map",a.C,31536E3);return b};
var Tk=function(a){a.C=ij("yt-remote-device-id-map")||{}};
var Uk=function(a,b,c){Rj.call(this);this.M=c;this.J=a;this.A=b;this.B=null};
var Vk=function(a,b){ci(a.M,b)};
var Wk=function(a,b){Uk.call(this,a,b,"CastSession");this.o=null;this.D=0;this.C=null;this.G=A(this.SC,this);this.F=A(this.GB,this);this.D=Ai(A(function(){Xk(this,null)},this),12E4)};
var Yk=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];b&&Zk(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null};
var Zk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+de(c));var d={};d.type=b;c&&(d.data=c);a.o?a.o.sendMessage("urn:x-cast:com.google.youtube.mdx",d,w,A(function(){Vk(this,"Failed to send message: "+b+".")},a)):Vk(a,"Sending yt message without session: "+de(d))};
var Xk=function(a,b){Di(a.D);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=A(a.Mi,a),d=A(a.Vb,a);a.ao(b,c,d,5)}}else a.Vb(Error("Waiting for session status timed out."))};
var $k=function(a,b){Uk.call(this,a,b,"DialSession");this.D=this.H=null;this.K="";this.C=null;this.G=w;this.F=window.NaN;this.L=A(this.VC,this);this.o=w};
var al=function(a){a.o=a.J.or(a.K,a.A.label,a.A.friendlyName,A(function(a){this.o=w;this.Mi(a)},a),A(function(a){this.o=w;
this.Vb(a)},a))};
var bl=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}zk()&&(b.env_useStageMdx=1);return Sg(b)};
var cl=function(a,b){Uk.call(this,a,b,"ManualSession");this.o=Ai(A(this.Af,this,null),150)};
var dl=function(a){Rj.call(this);this.A=a;this.o=null;this.D=!1;this.B=[];this.C=A(this.AA,this)};
var el=function(a,b){return b?eb(a.B,function(a){return ki(b,a.label)},a):null};
var fl=function(a){ci("Controller",a)};
var gl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
var hl=function(a){return a.D||!!a.B.length||!!a.o};
var il=function(a,b,c){Nb(a.o);(a.o=b)?(c?a.R("yt-remote-cast2-receiver-resumed",b.A):a.R("yt-remote-cast2-receiver-selected",b.A),b.subscribe("sessionScreen",A(a.Yp,a,b)),b.B?a.R("yt-remote-cast2-session-change",b.B):c&&a.o.Af(null)):a.R("yt-remote-cast2-session-change",null)};
var jl=function(a){var b=a.A.nr(),c=a.o&&a.o.A;a=O(b,function(a){c&&ki(a,c.label)&&(c=null);var b=a.o?a.o:a.id,f=el(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new window.chrome.cast.Receiver(b,a.name),f.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return f},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};
var kl=function(a,b,c){ll()?nl(b)&&(ol(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?pl(a,c):(window.__onGCastApiAvailable=function(b,e){b?pl(a,c):(ql("Failed to load cast API: "+e),rl(!1),ol(!1),jj("yt-remote-cast-available"),jj("yt-remote-cast-receiver"),sl(),c(!1))},Xh())):ml("Cannot initialize because not running Chrome")};
var sl=function(){ml("dispose");var a=tl();a&&a.dispose();ul=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);vl(!1);Oi(wl);wl.length=0};
var xl=function(){return!!ij("yt-remote-cast-installed")};
var yl=function(){var a=ij("yt-remote-cast-receiver");return a?Ga(a.friendlyName):null};
var zl=function(){return xl()?tl()?ul.getCastSession():(ql("getCastSelector: Cast is not initialized."),null):(ql("getCastSelector: Cast API is not installed!"),null)};
var Al=function(){xl()?tl()?Bl()?(ml("Requesting cast selector."),ul.requestSession()):(ml("Wait for cast API to be ready to request the session."),wl.push(Ii("yt-remote-cast2-api-ready",Al))):ql("requestCastSelector: Cast is not initialized."):ql("requestCastSelector: Cast API is not installed!")};
var Cl=function(a){Bl()?tl().setLaunchParams(a):ql("setLaunchParams called before ready.")};
var Dl=function(){var a=El();Bl()?tl().setConnectedScreenStatus(a,"YouTube TV"):ql("setConnectedScreenStatus called before ready.")};
var ll=function(){var a;a=0<=pc.search(/\ (CrMo|Chrome|CriOS)\//);return Fl||a};
var Gl=function(a,b){ul.init(a,b)};
var nl=function(a){var b=!1;if(!ul){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new dl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){gj("yt-remote-cast-available",a);Pi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){ml("onReceiverSelected: "+a.friendlyName);
gj("yt-remote-cast-receiver",a);Pi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){ml("onReceiverResumed: "+a.friendlyName);
gj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){ml("onSessionChange: "+pi(a));
a||jj("yt-remote-cast-receiver");Pi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
ul=c}ml("cloudview.createSingleton_: "+b);return b};
var tl=function(){ul||(ul=t("yt.mdx.remote.cloudview.instance_"));return ul};
var pl=function(a,b){rl(!0);ol(!1);Gl(a,function(a){a?(vl(!0),Pi("yt-remote-cast2-api-ready")):(ql("Failed to initialize cast API."),rl(!1),jj("yt-remote-cast-available"),jj("yt-remote-cast-receiver"),sl());b(a)})};
var ml=function(a){ci("cloudview",a)};
var ql=function(a){ci("cloudview",a)};
var rl=function(a){ml("setCastInstalled_ "+a);gj("yt-remote-cast-installed",a)};
var Bl=function(){return!!t("yt.mdx.remote.cloudview.apiReady_")};
var vl=function(a){ml("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
var ol=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)};
var Hl=function(a,b){this.action=a;this.params=b||null};
var Il=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 Jl||(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}};
var Kl=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}};
var Ll=function(a,b,c,d){return $b(Ml,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
var Nl=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Ll(a,b,c,d);if(e)return e;var e=++Ol.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Il(d);if(!Gf(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Il(b);
b.currentTarget=a;return c.call(a,b)};
k=Bi(k);Ml[e]=[a,b,c,k,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",k,d):"mouseleave"==b&&f?a.addEventListener("mouseout",k,d):"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style?a.addEventListener("MozMousePixelScroll",k,d):a.addEventListener(b,k,d):a.attachEvent("on"+b,k);return e};
var Ql=function(a,b,c){var d;return d=Nl(a,b,function(){Rl(d);c.apply(a,arguments)},void 0)};
var Sl=function(a,b){return Tl(a,b,function(a){return Xd(a,"iv-card-poll-choice-input")})};
var Tl=function(a,b,c){var d=a||window.document;return Nl(d,"change",function(a){var f=Gf(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})};
var Rl=function(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in Ml){var c=Ml[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete Ml[a]}}))};
var Ul=function(a){for(var b in Ml)Ml[b][0]==a&&Rl(b)};
var Vl=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
var Wl=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:Vl(a)};
var Xl=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};
var Yl=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 oe(b,c)};
var Zl=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
var $l=function(a){a=a||window.event;return!1===a.returnValue||a.Ro&&a.Ro()};
var am=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
var bm=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};
var cm=function(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a};
var dm=function(a){ci("CAST",a)};
var em=function(a){var b=fm();b&&b.logMessage&&b.logMessage(a)};
var gm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;hm.length;)hm.shift()()};
var im=function(){if(!t("yt.mdx.remote.castv2_")&&!jm&&(lb(km)&&ub(km,wk()),cm())){var a=fm();a?(a.removeReceiverListener("YouTube",lm),a.addReceiverListener("YouTube",lm),dm("API initialized in the other binary")):(a=new window.cast.Api,mm(a),a.addReceiverListener("YouTube",lm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){Ai(function(){window.location.reload(!0)},1E3)}),Yh(em),dm("API initialized"));
jm=!0}};
var nm=function(){var a=fm();a&&(dm("API disposed"),bi(em),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(w),a.removeReceiverListener("YouTube",lm),mm(null));jm=!1;hm=null;(a=Ll(window,"message",gm,!1))&&Rl(a)};
var om=function(a){var b=fb(km,function(b){return b.id==a.id});
0<=b&&(km[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})};
var lm=function(a){a.length&&dm("Updating receivers: "+de(a));pm(a);Pi("yt-remote-cast-device-list-update");E(qm(),function(a){rm(a.id)});
E(a,function(a){if(a.isTabProjected){var c=sm(a.id);dm("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");Ai(function(){Pi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})};
var tm=function(a,b){dm("Updating "+a+" activity status: "+de(b));var c=sm(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=""),om(c),Pi("yt-remote-cast-device-status-update",c)):dm("Device not found")};
var qm=function(){im();return Nj(km)};
var pm=function(a){a=O(a,function(a){var c={id:a.id,name:Ga(a.name)};if(a=sm(a.id))c.activityId=a.o,c.status=a.status;return c});
nb(km);ub(km,a)};
var sm=function(a){var b=qm();return eb(b,function(b){return b.id==a})||null};
var rm=function(a){var b=sm(a),c=fm();c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");tm(a,b)})};
var um=function(a){im();var b=sm(a),c=fm();c&&b&&b.o?(dm("Stopping cast activity"),c.stopActivity(b.o,pa(tm,a))):dm("Dropping cast activity stop")};
var fm=function(){return t("yt.mdx.remote.castapi.api_")};
var mm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)};
var vm=function(){};
var wm=function(){this.o=I()};
var xm=function(a,b){this.A=new ee(a);this.o=b?ce:be};
var ym=function(a){this.A=0;this.B=a||100;this.o=[]};
var zm=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};
var Am=function(a,b,c){F.call(this);this.C=null!=c?A(a,c):a;this.B=b;this.A=A(this.$A,this);this.o=[]};
var Bm=function(a){a.ya=Sd(a.A,a.B);a.C.apply(null,a.o)};
var Cm=function(a){F.call(this);this.C=a;this.A={}};
var Dm=function(a,b,c,d,e){Em(a,b,c,d,!1,e)};
var Em=function(a,b,c,d,e,f){da(c)||(c&&(Fm[0]=c.toString()),c=Fm);for(var k=0;k<c.length;k++){var l=Oc(b,c[k],d||a.handleEvent,e||!1,f||a.C||a);if(!l)break;a.A[l.key]=l}return a};
var Gm=function(a,b,c,d){Hm(a,b,c,d,void 0)};
var Im=function(a,b,c,d,e){Hm(a,b,c,d,!1,e)};
var Hm=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Hm(a,b,c[k],d,e,f);else(b=Yc(b,c,d||a.handleEvent,e,f||a.C||a))&&(a.A[b.key]=b)};
var Jm=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"}};
var Km=function(){};
var Lm=function(a){var b;(b=a.o)||(b={},Mm(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b};
var Nm=function(){};
var Om=function(a){return(a=Mm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
var Mm=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};
var Pm=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 Cm(this);this.A=new Qd;Rd(this.A,250)};
var Qm=function(a,b,c){a.kf=1;a.Ld=ph(b.clone());a.Ne=c;a.F=!0;Rm(a,null)};
var Sm=function(a,b,c,d,e){a.kf=1;a.Ld=ph(b.clone());a.Ne=null;a.F=c;e&&(a.Cq=!1);Rm(a,d)};
var Rm=function(a,b){a.Tg=I();Tm(a);a.Yd=a.Ld.clone();nh(a.Yd,"t",a.G);a.eh=0;a.vb=a.o.jk(a.o.Yg()?b:null);0<a.Hk&&(a.Qi=new Am(A(a.dr,a,a.vb),a.Hk));a.C.P(a.vb,"readystatechange",a.TB);var c=a.Fe?fc(a.Fe):{};a.Ne?(a.kj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.vb.send(a.Yd,a.kj,a.Ne,c)):(a.kj="GET",a.Cq&&!xc&&(c.Connection="close"),a.vb.send(a.Yd,a.kj,null,c));a.o.Ic(1)};
var Um=function(a,b,c){for(var d=!0;!a.ue&&a.eh<c.length;){var e=Vm(a,c);if(e==Wm){4==b&&(a.Ge=4,Xm(),d=!1);break}else if(e==Ym){a.Ge=4;Xm();d=!1;break}else Zm(a,e)}4==b&&0==c.length&&(a.Ge=1,Xm(),d=!1);a.Lc=a.Lc&&d;d||($m(a),an(a))};
var Vm=function(a,b){var c=a.eh,d=b.indexOf("\n",c);if(-1==d)return Wm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Ym;d+=1;if(d+c>b.length)return Wm;var e=b.substr(d,c);a.eh=d+c;return e};
var bn=function(a,b){a.Tg=I();Tm(a);var c=b?window.location.hostname:"";a.Yd=a.Ld.clone();mh(a.Yd,"DOMAIN",c);mh(a.Yd,"t",a.G);try{a.Mc=new window.ActiveXObject("htmlfile")}catch(p){$m(a);a.Ge=7;Xm();an(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e=e+"\\x3c";else if(">"==k)e=e+"\\x3e";else{if(k in cn)k=cn[k];else if(k in dn)k=cn[k]=dn[k];else{var l=k,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u",
4096>m&&(l+="0");l+=m.toString(16).toUpperCase()}k=cn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=lj(De("b/12014412"),d);a.Mc.open();a.Mc.write(Re(c));a.Mc.close();a.Mc.parentWindow.m=A(a.iB,a);a.Mc.parentWindow.d=A(a.fq,a,!0);a.Mc.parentWindow.rpcClose=A(a.fq,a,!1);c=a.Mc.createElement("DIV");a.Mc.parentWindow.document.body.appendChild(c);d=Ke(a.Yd.toString());d=ya(Je(d));d=lj(De("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Re(d);a.o.Ic(1)};
var Tm=function(a){a.pm=I()+a.D;en(a,a.D)};
var en=function(a,b){if(null!=a.Tf)throw Error("WatchDog timer not null");a.Tf=fn(A(a.zB,a),b)};
var gn=function(a){a.Tf&&(r.clearTimeout(a.Tf),a.Tf=null)};
var an=function(a){a.o.fo()||a.ue||a.o.Li(a)};
var $m=function(a){gn(a);Nb(a.Qi);a.Qi=null;a.A.stop();a.C.removeAll();if(a.vb){var b=a.vb;a.vb=null;hn(b);b.dispose()}a.Mc&&(a.Mc=null)};
var Zm=function(a,b){try{a.o.Up(a,b),a.o.Ic(4)}catch(c){}};
var jn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;kn(a,b,function(e){e?c(!0):r.setTimeout(function(){jn(a,b,c,d,f)},f)})}};
var kn=function(a,b,c){var d=new window.Image;d.onload=function(){try{ln(d),c(!0)}catch(a){}};
d.onerror=function(){try{ln(d),c(!1)}catch(a){}};
d.onabort=function(){try{ln(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{ln(d),c(!1)}catch(a){}};
r.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
var ln=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
var mn=function(a){this.o=a;this.A=new xm(null,!0)};
var nn=function(a){var b=on(a.o,a.ng,"/mail/images/cleardot.gif");ph(b);jn(b.toString(),5E3,A(a.rv,a),3,2E3);a.Ic(1)};
var pn=function(a){var b=a.o.J;if(null!=b)Xm(),b?(Xm(),qn(a.o,a,!1)):(Xm(),qn(a.o,a,!0));else if(a.Wb=new Pm(a,0,void 0,void 0,void 0),a.Wb.Fe=a.Ek,b=a.o,b=on(b,b.Yg()?a.Cg:null,a.Gk),Xm(),!wc||10<=Yf)nh(b,"TYPE","xmlhttp"),Sm(a.Wb,b,!1,a.Cg,!1);else{nh(b,"TYPE","html");var c=a.Wb;a=Boolean(a.Cg);c.kf=3;c.Ld=ph(b.clone());bn(c,a)}};
var rn=function(a){H.call(this);this.headers=new wg;this.M=a||null;this.B=!1;this.L=this.o=null;this.U=this.H="";this.A=0;this.F="";this.C=this.O=this.G=this.S=!1;this.D=0;this.J=null;this.Y="";this.K=this.V=!1};
var sn=function(a,b){a.D=Math.max(0,b)};
var tn=function(a){return wc&&zc(9)&&fa(a.timeout)&&n(a.ontimeout)};
var un=function(a){return"content-type"==a.toLowerCase()};
var vn=function(a,b){a.B=!1;a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;wn(a);xn(a)};
var wn=function(a){a.S||(a.S=!0,a.$("complete"),a.$("error"))};
var hn=function(a,b){a.o&&a.B&&(yn(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.$("complete"),a.$("abort"),xn(a))};
var zn=function(a){if(a.B&&"undefined"!=typeof An)if(a.L[1]&&4==Bn(a)&&2==a.getStatus())yn(a,"Local request error detected and ignored");else if(a.G&&4==Bn(a))Sd(a.Qp,0,a);else if(a.$("readystatechange"),4==Bn(a)){yn(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 f=Ig(String(a.H))[1]||null;if(!f&&r.self&&r.self.location)var k=r.self.location.protocol,
f=k.substr(0,k.length-1);e=!Cn.test(f?f.toLowerCase():"")}d=e}if(d)a.$("complete"),a.$("success");else{a.A=6;var l;try{l=2<Bn(a)?a.o.statusText:""}catch(m){l=""}a.F=l+" ["+a.getStatus()+"]";wn(a)}}finally{xn(a)}}};
var xn=function(a,b){if(a.o){Dn(a);var c=a.o,d=a.L[0]?w:null;a.o=null;a.L=null;b||a.$("ready");try{c.onreadystatechange=d}catch(e){}}};
var Dn=function(a){a.o&&a.K&&(a.o.ontimeout=null);fa(a.J)&&(Td(a.J),a.J=null)};
var Bn=function(a){return a.o?a.o.readyState:0};
var En=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}};
var yn=function(a,b){return b+" ["+a.U+" "+a.H+" "+a.getStatus()+"]"};
var Fn=function(a,b,c){this.G=a||null;this.o=1;this.A=[];this.C=[];this.D=new xm(null,!0);this.H=b||null;this.J=null!=c?c:null};
var Gn=function(a,b){this.o=a;this.map=b;this.context=null};
var Hn=function(a){kc.call(this,"statevent",a)};
var In=function(a,b){kc.call(this,"timingevent",a);this.size=b};
var Jn=function(a){kc.call(this,"serverreachability",a)};
var Kn=function(a){Ln(a);if(3==a.o){var b=a.Lg++,c=a.ai.clone();mh(c,"SID",a.B);mh(c,"RID",b);mh(c,"TYPE","terminate");Mn(a,c);b=new Pm(a,0,a.B,b,void 0);b.kf=2;b.Ld=ph(c.clone());(new window.Image).src=b.Ld;b.Tg=I();Tm(b)}Nn(a)};
var Ln=function(a){if(a.Hd){var b=a.Hd;b.Wb&&(b.Wb.cancel(),b.Wb=null);b.jd=-1;a.Hd=null}a.qb&&(a.qb.cancel(),a.qb=null);a.bd&&(r.clearTimeout(a.bd),a.bd=null);On(a);a.Pb&&(a.Pb.cancel(),a.Pb=null);a.Id&&(r.clearTimeout(a.Id),a.Id=null)};
var Pn=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");a.A.push(new Gn(a.Xx++,b));2!=a.o&&3!=a.o||Qn(a)};
var Qn=function(a){a.Pb||a.Id||(a.Id=fn(A(a.aq,a),0),a.xg=0)};
var Rn=function(a,b){if(1==a.o){if(!b){a.Lg=Math.floor(1E5*Math.random());var c=a.Lg++,d=new Pm(a,0,"",c,void 0);d.Fe=null;var e=Sn(a),f=a.ai.clone();mh(f,"RID",c);a.G&&mh(f,"CVER",a.G);Mn(a,f);Qm(d,f,e);a.Pb=d;a.o=2}}else 3==a.o&&(b?Tn(a,b):0!=a.A.length&&(a.Pb||Tn(a)))};
var Tn=function(a,b){var c,d;b?6<a.we?(a.A=a.C.concat(a.A),a.C.length=0,c=a.Lg-1,d=Sn(a)):(c=b.H,d=b.Ne):(c=a.Lg++,d=Sn(a));var e=a.ai.clone();mh(e,"SID",a.B);mh(e,"RID",c);mh(e,"AID",a.zf);Mn(a,e);c=new Pm(a,0,a.B,c,a.xg+1);c.Fe=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Pb=c;Qm(c,e,d)};
var Mn=function(a,b){if(a.Gb){var c=a.Gb.Wn(a);c&&Pb(c,function(a,c){mh(b,c,a)})}};
var Sn=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;6<a.we&&0<b?(d=a.A[0].o,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.A[e].o,k=a.A[e].map,f=6>=a.we?e:f-d;try{Eg(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b));
return c.join("&")};
var Un=function(a){a.qb||a.bd||(a.F=1,a.bd=fn(A(a.$p,a),0),a.Ze=0)};
var Vn=function(a){if(a.qb||a.bd||3<=a.Ze)return!1;a.F++;a.bd=fn(A(a.$p,a),Wn(a,a.Ze));a.Ze++;return!0};
var qn=function(a,b,c){a.jj=c;a.Ec=b.jd;a.Pv(1,0);a.ai=on(a,null,a.Dk);Qn(a)};
var On=function(a){null!=a.ze&&(r.clearTimeout(a.ze),a.ze=null)};
var Wn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
var Xn=function(a,b){if(2==b||9==b){var c=null;a.Gb&&(c=null);var d=A(a.sC,a);c||(c=new N("//www.google.com/images/cleardot.gif"),ph(c));kn(c.toString(),1E4,d)}else Xm();Yn(a,b)};
var Yn=function(a,b){a.o=0;a.Gb&&a.Gb.Hn(a,b);Nn(a);Ln(a)};
var Nn=function(a){a.o=0;a.Ec=-1;if(a.Gb)if(0==a.C.length&&0==a.A.length)a.Gb.bk(a);else{var b=tb(a.C),c=tb(a.A);a.C.length=0;a.A.length=0;a.Gb.bk(a,b,c)}};
var on=function(a,b,c){var d=qh(c);if(""!=d.A)b&&bh(d,b+"."+d.A),ch(d,d.D);else var e=window.location,d=rh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.vg&&Pb(a.vg,function(a,b){mh(d,b,a)});
mh(d,"VER",a.we);Mn(a,d);return d};
var fn=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){a()},b)};
var Xm=function(){Zn.$(new Hn(Zn))};
var $n=function(){};
var ao=function(a,b){Qd.call(this);this.D=0;if(ha(a))b&&(a=A(a,b));else if(a&&ha(a.handleEvent))a=A(a.handleEvent,a);else throw Error("Invalid listener argument");this.G=a;Oc(this,"tick",A(this.F,this));this.stop();Rd(this,5E3+2E4*Math.random())};
var bo=function(a,b){this.L=a;this.C=b;this.B=new ui;this.A=new ao(this.MC,this);this.o=null;this.K=!1;this.F=null;this.J="";this.H=this.D=0;this.G=[]};
var co=function(a){return{firstTestResults:[""],secondTestResults:!a.o.jj,sessionId:a.o.B,arrayId:a.o.zf}};
var eo=function(a,b){a.H=b||0;a.A.stop();a.o&&(3==a.o.o&&Rn(a.o),Kn(a.o));a.H=0};
var fo=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()};
var go=function(){this.o=[];this.A=[]};
var ho=function(a){lb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])};
var io=function(a,b){a.A.push(b)};
var jo=function(a){ho(a);return a.o.pop()};
var ko=function(a){ho(a);return db(a.o)};
var lo=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)};
var mo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");};
var no=function(a){a.volume=-1;a.muted=!1;a.audioTrackId=null;a.B=null;a.o=-1;a.C=0;a.D=I()};
var oo=function(a){a.index=-1;a.videoId="";no(a)};
var po=function(a){return a.A?a.videoId:a.videoIds[a.index]};
var qo=function(a,b){a.C=b;a.D=I()};
var ro=function(a){switch(a.o){case 1:return(I()-a.D)/1E3+a.C;case -1E3:return 0}return a.C};
var so=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&no(a)};
var to=function(a,b,c){mo(a,"setPlaylist");c=c||po(a);Fb(a.videoIds,b)&&c==po(a)||(a.videoIds=tb(b),a.setVideoId(c))};
var uo=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=gc(a.B);b.playerTime=a.C;b.playerTimeAt=a.D;return b};
var vo=function(a,b){Rj.call(this);this.A=0;this.C=a;this.G=[];this.F=new go;this.D=window.NaN;this.B=this.o=null;this.K=A(this.Jy,this);this.H=A(this.Mg,this);this.J=A(this.Iy,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Am,this),wo(this))):c=3;0!=c&&(b?this.Am(c):Ai(A(function(){this.Am(c)},this),0));
xo(this,zl())};
var yo=function(a){return new lo(a.C.getPlayerContextData())};
var zo=function(a,b,c,d,e){var f=yo(a);d=d||0;var k={videoId:b,currentIndex:d,listId:e||f.A};so(f,b,d);n(c)&&(qo(f,c),k.currentTime=c);Ao(a,"setPlaylist",k);e||Bo(a,f)};
var wo=function(a){E(["remotePlayerChange","remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,pa(this.sA,a),this))},a)};
var Co=function(a){E(a.G,function(a){this.C.unsubscribeByKey(a)},a);
a.G.length=0};
var Do=function(a,b){50>a.F.Ya()&&io(a.F,b)};
var Eo=function(a,b,c){var d=yo(a);qo(d,c);-1E3!=d.o&&(d.o=b);Bo(a,d)};
var Ao=function(a,b,c){a.C.sendMessage(b,c)};
var Bo=function(a,b){Co(a);a.C.setPlayerContextData(uo(b));wo(a)};
var Fo=function(a){Di(a.D);a.D=Ai(A(function(){this.R("remotePlayerChange");this.D=window.NaN},a),2E3)};
var xo=function(a,b){a.B&&(a.B.removeUpdateListener(a.K),a.B.removeMediaListener(a.H),a.Mg(null));a.B=b;a.B&&(Go("Setting cast session: "+a.B.sessionId),a.B.addUpdateListener(a.K),a.B.addMediaListener(a.H),a.B.media.length&&a.Mg(a.B.media[0]))};
var Ho=function(a){var b=a.o.customData;if(a.o.media){var c=a.o.media,d=yo(a);c.contentId!=d.videoId&&Go("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.o=b.playerState;qo(d,a.o.getEstimatedTime());Bo(a,d)}else Go("No cast media video. Ignoring state update.")};
var Go=function(a){ci("CP",a)};
var Io=function(a,b,c){Rj.call(this);this.D=window.NaN;this.M=!1;this.H=this.G=this.L=this.J=window.NaN;this.O=[];this.B=this.ta=this.o=null;this.ea=a;this.O.push(Nl(window,"beforeunload",A(this.jw,this)));this.A=[];this.ta=new lo;3==c["mdx-version"]&&(this.ta.A="RQ"+b.token);this.V=b.id;this.o=Jo(this,c);this.o.subscribe("handlerOpened",this.Oy,this);this.o.subscribe("handlerClosed",this.Ky,this);this.o.subscribe("handlerError",this.Ly,this);this.ta.A?this.o.subscribe("handlerMessage",this.My,this):
this.o.subscribe("handlerMessage",this.Ny,this);fo(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.ta.videoId;nk()&&gj("yt-remote-session-video-id",a)},this)};
var Jo=function(a,b){return new bo(Ij(a.ea,"/bc",void 0,!1),b)};
var Ko=function(a,b){a.R("proxyStateChange",b)};
var Lo=function(a){a.D=Ai(A(function(){this.gb("Connecting timeout");this.C(1)},a),2E4)};
var Mo=function(a){Di(a.D);a.D=window.NaN};
var No=function(a){Di(a.J);a.J=window.NaN};
var Oo=function(a){Po(a);a.L=Ai(A(function(){Qo(this,"getNowPlaying")},a),2E4)};
var Po=function(a){Di(a.L);a.L=window.NaN};
var Ro=function(a){var b=a.o;return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)};
var So=function(a,b){b&&(Mo(a),No(a));b==Ro(a)?b&&(Ko(a,1),Qo(a,"getSubtitlesTrack")):b?(a.K()&&a.ta.reset(),Ko(a,1),Qo(a,"getNowPlaying"),To(a)):a.C(1)};
var Uo=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ta.videoId&&(bc(b.params)?a.ta.B=null:a.ta.B=b.params,a.R("remotePlayerChange"))};
var Vo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.ta.A=b.params.listId||a.ta.A;so(a.ta,c,d);a.R("remoteQueueChange")};
var Wo=function(a,b){b.params=b.params||{};Vo(a,b);Xo(a,b)};
var Xo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);qo(a.ta,(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.ta.o&&(c=-1E3);a.ta.o=c;1==a.ta.o?Oo(a):Po(a);a.R("remotePlayerChange")};
var Yo=function(a,b){var c="true"==b.params.muted;a.ta.volume=(0,window.parseInt)(b.params.volume,10);a.ta.muted=c;a.R("remotePlayerChange")};
var Zo=function(a,b){switch(b.action){case "loungeStatus":var c=be(b.params.devices);a.A=O(c,function(a){return new dk(a)});
break;case "loungeScreenDisconnected":rb(a.A,function(a){return"LOUNGE_SCREEN"==a.type});
break;case "remoteConnected":var d=new dk(be(b.params.device));eb(a.A,function(a){return a.equals(d)})||ob(a.A,d);
break;case "remoteDisconnected":d=new dk(be(b.params.device)),rb(a.A,function(a){return a.equals(d)})}};
var $o=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)No(a);else return;c==Ro(a)?c&&Ko(a,1):c?(Mo(a),a.K()&&a.ta.reset(),Ko(a,1),Qo(a,"getNowPlaying"),To(a)):a.C(1)};
var To=function(a){Di(a.H);a.H=Ai(A(a.C,a,1),864E5)};
var Qo=function(a,b,c){c?a.gb("Sending: action="+b+", params="+de(c)):a.gb("Sending: action="+b);a.o.sendMessage(b,c)};
var ap=function(a,b){var c=bp(a);return $d(b,function(a){return a.o?(a=Oj(this.B,a.o),!!a&&"RUNNING"==a.status):!!Pj(c,a)},a)};
var cp=function(a,b,c){var d=dp,e="";Di(d.A);d.A=window.NaN;d.C="";if(Oj(d.B,a)){if(!e){var f=e=Lj();im();var k=sm(a),l=fm();if(l&&k){var m=new window.cast.Receiver(k.id,k.name),m=new window.cast.LaunchRequest("YouTube",m);m.parameters="pairingCode="+f;m.description=new window.cast.LaunchDescription;m.description.text=window.document.title;b&&(m.parameters+="&v="+b,c&&(m.parameters+="&t="+Math.round(c)),m.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN",
om(k),Pi("yt-remote-cast-device-status-update",k));dm("Sending a cast launch request with params: "+m.parameters);l.launch(m,pa(tm,a))}else dm("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=Ai(A(d.J,d,a,0,e),ep[0])}else d.gb("No DIAL device with id: "+a)};
var fp=function(a,b){var c=Qj(bp(a),b);a.gb("Found screen: "+pi(c)+" with key: "+b);return c};
var gp=function(a){var b=dp,c=Qj(b.o,a);b.gb("Found online screen: "+pi(c)+" with key: "+a);return c};
var hp=function(a){var b=dp,c=Oj(b.B,a);if(!c){var d=Qj(b.F,a);d&&(c=Oj(b.B,d.o))}b.gb("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c};
var bp=function(a){return sb(a.D,$d(a.F,function(a){return!Pj(this.D,a)},a))};
var ip=function(a){Sj.call(this,"ScreenServiceProxy");this.Lb=a;this.o=[];this.o.push(this.Lb.$_s("screenChange",A(this.QC,this)));this.o.push(this.Lb.$_s("onlineScreenChange",A(this.hA,this)))};
var kp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);fj&&ej();kk();lp||(lp=new Hj,zk()&&(lp.o="/api/loungedev"));mp||(mp=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",mp,void 0));qp();var b=rp();if(!b){var c=new Mk(lp);q("yt.mdx.remote.screenService_",c,void 0);b=rp();kl(a,c,function(a){a?El()&&Dl():c.subscribe("onlineScreenChange",function(){Pi("yt-remote-receiver-availability-change")})})}};
var sp=function(){Oi(tp);tp.length=0;Nb(up);up=null;mp&&(E(mp,function(a){a(null)}),mp.length=0,mp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
dp&&(Nb(dp),dp=null);lp=null;nm()};
var vp=function(){if(wp()&&xl()){var a=[];if(ij("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||xp())a.push({key:"cast-selector-receiver",name:yp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return t("yt.mdx.remote.cloudview.initializing_")?[]:zp()};
var zp=function(){var a=[],a=Ap()?rp().Lb.$_gos():oi(ij("yt-remote-online-screens")||[]),b=Bp();b&&xp()&&(Pj(a,b)||a.push(b));Ap()||(b=Nj(wk()),b=$d(b,function(b){return!Qj(a,b.id)}),a=sb(a,b));
return Mj(a)};
var Cp=function(){if(wp()&&xl()){var a=yl();return a?{key:"cast-selector-receiver",name:a}:null}return Dp()};
var Dp=function(){var a=zp(),b=Ep(),c=Bp();c||(c=Fp());return eb(a,function(a){return c&&ki(c,a.key)||b&&(a=hp(a.key))&&a.id==b?!0:!1})};
var yp=function(){if(wp()&&xl())return yl();var a=Bp();return a?a.name:null};
var Bp=function(){var a=El();if(!a)return null;if(!dp){var b=rp().Zb();return Qj(b,a)}return fp(dp,a)};
var Gp=function(a,b){Hp("Connecting to: "+de(a));if("cast-selector-receiver"==a.key)Ip(b||null),Cl(b||null);else{Jp();Ip(b||null);var c=null;dp?c=gp(a.key):(c=rp().Zb(),c=Qj(c,a.key));if(c)Kp(c);else{if(dp&&(c=hp(a.key))){Lp(c);return}Ai(function(){Mp(null)},0)}}};
var Jp=function(){if(dp){var a=dp;Di(a.A);a.A=window.NaN;a.C=""}a:{if(a=xp())if(a=a.getOtherConnectedRemoteId()){Hp("Do not stop DIAL due to "+a);Np("");break a}(a=Ep())?(Hp("Stopping DIAL: "+a),um(a),Np("")):(a=Bp())&&a.o&&(Hp("Stopping DIAL: "+a.o),um(a.o))}Bl()?tl().stopSession():ql("stopSession called before API ready.");(a=xp())?a.disconnect(1):(Qi("yt-remote-before-disconnect",1),Qi("yt-remote-connection-change",!1));Mp(null)};
var Op=function(){var a=Pp(),a=a?a.currentTime:0,b=Qp();0==a&&b&&(a=ro(yo(b)));return a};
var Qp=function(){var a=xp();return a&&3!=a.getProxyState()?new vo(a,void 0):null};
var Hp=function(a){ci("remote",a)};
var wp=function(){return!!t("yt.mdx.remote.castv2_")};
var Ap=function(){return t("yt.mdx.remote.screenService_")};
var rp=function(){if(!up){var a=Ap();up=a?new ip(a):null}return up};
var El=function(){return t("yt.mdx.remote.currentScreenId_")};
var Rp=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(dp){var b=dp;b.H=I()+3E5;if(b.G=a){var c=fp(b,a);if(c&&!Pj(b.o,c)){a=tb(b.o);a.push(c);var c=ap(b,a),d=!Fb(b.o,c,li);lb(a)||vk(O(c,mi));d&&(b.gb("Updating online screens: "+qi(b.o)+" -> "+qi(c)),b.o=c,b.R("onlineReceiverChange"))}}}};
var Ep=function(){return t("yt.mdx.remote.currentDialId_")};
var Np=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)};
var Pp=function(){return t("yt.mdx.remote.connectData_")};
var Ip=function(a){q("yt.mdx.remote.connectData_",a,void 0)};
var xp=function(){return t("yt.mdx.remote.connection_")};
var Mp=function(a){var b=xp();Ip(null);a?cb(!xp()):(Rp(""),Np(""));q("yt.mdx.remote.connection_",a,void 0);mp&&(E(mp,function(b){b(a)}),mp.length=0);
b&&!a?Qi("yt-remote-connection-change",!1):!b&&a&&Pi("yt-remote-connection-change",!0)};
var Fp=function(){var a=nk();if(!a)return null;if(Ap()){var b=rp().Zb();return Qj(b,a)}return dp?fp(dp,a):null};
var Kp=function(a){cb(!El());Rp(a.id);a=new Io(lp,a,Sp());a.connect(1,Pp());a.subscribe("beforeDisconnect",function(a){Qi("yt-remote-before-disconnect",a)});
a.subscribe("beforeDispose",function(){xp()&&(xp(),Mp(null))});
Mp(a)};
var Lp=function(a){Ep();Hp("Connecting to: "+(a?a.toString():"null"));Np(a.id);var b=Pp();b?cp(a.id,b.videoIds[b.index],b.currentTime):cp(a.id)};
var qp=function(){var a=Sp();if(bc(a)){var a=mk(),b=ij("yt-remote-session-name")||"",c=ij("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)}};
var Sp=function(){return t("yt.mdx.remote.channelParams_")||{}};
var Tp=function(a,b){var c=(b?Up:Vp).exec(a);return c?c[0]:""};
var Wp=function(a){var b=Xp.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Yp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Fi(a,"WARNING"));return b||c};
var Zp=function(a){a=new N(a);ah(a,window.document.location.protocol);bh(a,window.document.location.hostname);window.document.location.port&&ch(a,window.document.location.port);return a.toString()};
var $p=function(a){a=new N(a);ah(a,window.document.location.protocol);return a.toString()};
var aq=function(a,b,c){a&&(c?a&&(a=M("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),We(a).body.appendChild(a)):bq(a,b))};
var cq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||aq(a,void 0)}catch(b){aq(a,void 0)}};
var bq=function(a,b){var c=new window.Image,d=""+dq++;eq[d]=c;c.onload=c.onerror=function(){b&&eq[d]&&b();delete eq[d]};
c.src=a};
var fq=function(a,b){this.start=a;this.end=b;this.B=gq++};
var hq=function(a,b){return a.start-b.start||a.end-b.end||a.B-b.B};
var iq=function(a,b,c){fq.call(this,a,b);a=c||{};this.J=a.id||"";this.F=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.o=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.C=null;this.tooltip=a.tooltip};
var jq=function(a){return{start:a.start,end:a.end,id:a.J,priority:a.F,namespace:a.o,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}};
var kq=function(a){return a.C||(a.C=new ui)};
var lq=function(a,b){return a.start-b.start||a.F-b.F||a.B-b.B};
var mq=function(a,b){Rj.call(this);this.H=this.sa="";this.va=b||"";this.ea=this.loaded=this.J=!1;this.V=this.G=null;this.o=a;if(this.va){var c=Yj("yt-html5-player-modules::"+this.va);c&&(this.V=new Wi(c))}};
var nq=function(a){var b=a.o,c=b.app;a=a.sa;var b=b.playerType,d=oq(c,b);if(d){for(var d=d.F,e=[],f=d.o.o,k=f.length-1;0<=k;k--){var l=f[k];if(l.o==a){var m=d.A.indexOf(l);0<=m&&d.A.splice(m,1);var p=d.o,m=p.o,p=yb(m,l,p.A);0<=p&&qb(m,p);e.push(l)}}d.oc();b&&c.getPresentingPlayerType()!=b||pq(c,"cuerangesremoved",e)}};
var qq=function(a){a.o.Yi(a.sa)};
var rq=function(a,b,c){var d={},e;for(e in b)d[a.sa+"_"+e]=b[e];b={};for(var f in c)b[a.sa+"_"+f]=c[f];a=a.o.app.C;qa(a.C,d||null);qa(a.B,b||null)};
var sq=function(a,b){if(!a.V)return null;var c;try{c=a.V.get(b)}catch(d){a.V&&a.V.remove(b)}return c};
var tq=function(a,b,c){if(a.V)try{a.V.set(b,c)}catch(d){}};
var uq=function(a){a.R("command_stop_redirect_controls")};
var vq=function(a){a.R("command_play",!1,a.o.playerType)};
var wq=function(a){F.call(this);this.ra={};this.ma={};this.element=xq(this,a)};
var xq=function(a,b){var c=0,d=lf(b[c++]);if(y(b[c])){var e=b[c++];if(e=yq(a,d,"className",e))zq(a,d,"className",e),a.ra[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.ra[e[f]]=d;zq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=xq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,f=d,l=void 0;for(l in k){var m=k[l];null!=m&&zq(e,f,l,y(m)?yq(e,f,l,m):m)}}else y(k)&&(e=yq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d};
var Aq=function(a){qf(a.element)};
var yq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ma[d]=[b,c],null):d};
var Bq=function(a,b,c){(b=a.ma["{{"+b+"}}"])&&zq(a,b[0],b[1],c)};
var Cq=function(a){return da(a)&&y(a[0])};
var zq=function(a,b,c,d){if("child"==c){of(b);if(!da(d)||Cq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];null!=f&&(!f.nodeType||1!=f.nodeType&&3!=f.nodeType?Cq(f)?c.push(xq(a,f)):f.element?c.push(f.element):c.push(window.document.createTextNode(String(f.toString()))):c.push(f))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())};
var Dq=function(a,b){a&&(a.style.display=b)};
var Eq=function(a,b){var c=Fh("requestAnimationFrame",window);return Ai(function(){c?c.call(window,a):a()},b||0)};
var Fq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
var Q=function(a){wq.call(this,a);this.B=!0;this.V=[]};
var R=function(a,b,c,d,e){d=A(d,e||a);e={target:b,type:c,listener:d};a.V.push(e);b.addEventListener(c,d);return e};
var Gq=function(a){Q.call(this,a);this.O=new Rj;G(this,this.O)};
var Hq=function(a,b,c){Gq.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.A=a;this.J=b;this.K=!1};
var Iq=function(){Q.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"]]])};
var Jq=function(a,b){da(b)||(b=[b]);var c=O(b,function(a){return y(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Kq(a,c.join(","))};
var Kq=function(a,b){Mf(a,"transition",b)};
var Lq=function(a,b){(a=y(a)?window.document.getElementById(a):a)&&a.style&&(lg(a,b),L(a,"hid",!b))};
var Mq=function(a){return(a=y(a)?window.document.getElementById(a):a)?!("none"==a.style.display||Xd(a,"hid")):!1};
var Nq=function(a){E(arguments,function(a){!ea(a)||a instanceof window.Element?Lq(a,!0):E(a,function(a){Nq(a)})})};
var Oq=function(a){E(arguments,function(a){!ea(a)||a instanceof window.Element?Lq(a,!1):E(a,function(a){Oq(a)})})};
var Pq=function(a,b,c,d){F.call(this);this.B=a;c||(Qq(this,!0),a.ga());this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Ud(this.gm,0,this);G(this,this.A)};
var Qq=function(a,b){var c=a.B.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
var Rq=function(a,b){Q.call(this,b||["div","ytp-thumbnail-overlay"]);this.C=new Pq(this,500);G(this,this.C);this.A=a};
var Sq=function(a){Rq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])};
var Tq=function(a,b){Hq.call(this,a,b,"subscribecard-endscreen");this.C=new Sq(a);G(this,this.C);Uq(this.A,this.C.element,4);this.D=new Iq;G(this,this.D);this.ga()};
var Vq=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",P("YTP_ADVERTISEMENT")]],["div","ad-container"]];Q.call(this,b);this.A=a;this.C=this.F=this.D=null};
var Wq=function(a){a.D||(a.D=a.ra["ad-container"],a.A.W().H&&J(a.D,"ad-container-single-media-element-annotations"));return a.D};
var Xq=function(a){a.C&&(a.A.W().H?(Zd(a.C,"ad-video"),Yq(a.A.app,a.C),a.C=null):(qf(a.C),Zq(a.C)))};
var $q=function(a){if(!a.F){if(a.A.W().useTabletControls){var b=lf("button");J(b,"video-click-tracking");nf(b,P("YTP_VISIT_ADVERTISERS_SITE"));var c=lf("div");J(c,"video-click-tracking-container");c.appendChild(b);Wq(a).appendChild(c)}else b=lf("div"),Yd(b,["video-click-tracking","ad-video"]),Wq(a).appendChild(b);a.F=b}return a.F};
var ar=function(a,b){this.type=a||"";this.id=b||""};
var br=function(a){return new ar(a.substr(0,2),a.substr(2))};
var cr=function(a){a=a.split("");dr.wR(a,3);dr.wR(a,2);dr.yY(a,3);dr.wR(a,39);dr.yY(a,2);dr.G6(a,74);dr.yY(a,2);return a.join("")};
var er=function(a,b){return new xd(function(c,d){b.nb=function(a){vj(a)?c(a):d(a)};
b.onError=d;Bj(a,b)})};
var fr=function(a){function b(e,f,k){return Ed(e,function(e){return 0>=f||403===e.status?Dd(e):c(k).then(function(){return b(er(a,d),f-1,Math.pow(2,4-f+1)*k)})})}
function c(a){return new xd(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(er(a,d),3,1E3)};
var gr=function(a){this.o=a||0};
var hr=function(a,b,c,d,e,f,k,l){this.id=""+a;this.A=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.o=k||0;this.C=l||0;this.audio=c||null;this.video=d||null;this.Hb=e||null;this.fe=f||null;this.B=ir[jr(this)]||""};
var jr=function(a){return a.id.split(";",1)[0]};
var kr=function(a){return!(a.audio&&a.video)};
var lr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
var mr=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
var nr=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
var or=function(a,b,c,d,e,f,k,l){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<pr.length;b++){var m=pr[b],p=qr[m];if(f>=Math.floor(16*p/9)||a>=p){f=m;break a}}f="tiny"}this.quality=f;this.QB=qr[this.quality];this.o=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;if(!(c=l)){a:{for(c=0;c<rr.length;c++)if(this.fps>rr[c][1]){c=rr[c][0];break a}c=""}c=qr[this.quality]+"p"+c}this.qualityLabel=c};
var sr=function(a){this.B=a;this.D=this.C=this.F="";this.o={};this.A=""};
var tr=function(a){a.A||(a.A=ur(a));return a.A};
var vr=function(a){wr(a);return a.D};
var xr=function(a){wr(a);return Rb(a.o,function(a){return null!==a})};
var wr=function(a){if(a.B){if(!yr.test(a.B))throw Error("Untrusted URL: "+a.B);var b=qh(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=zr(c);qa(a.o,Ar(b.co()));qa(a.o,d);a.B="";a.A=""}};
var ur=function(a){wr(a);var b=a.F+(a.F?"://":"//")+a.D+a.C;if(xr(a)){var c=[];Pb(a.o,function(a,b){null!==a&&c.push(b+"="+a)});
a=c.join("&");b+="?"+a}return b};
var zr=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Br(c,a[b],a[b+1]);return c};
var Ar=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Br(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
var Br=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};
var Cr=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
var Dr=function(a){a=a.split("-");return 2==a.length&&(a=new Cr((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};
var Er=function(a,b){return new Cr(a,a+b-1)};
var Fr=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""};
var Gr=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};
var Hr=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)};
var Ir=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.A=d;this.o=a;this.sourceURL=e;this.startTime=b;this.range=f||null};
var Jr=function(){this.ua=[]};
var Kr=function(a,b){var c=yb(a.ua,new Ir(b,0,0,0,""),function(a,b){return a.o-b.o});
return 0<=c?a.ua[c]:null};
var Lr=function(a,b){var c=yb(a.ua,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.ua[c]:a.ua[Math.max(0,-c-2)]};
var Mr=function(a,b){var c=fb(a.ua,function(a){return a.o>=b},a);
0<c&&a.ua.splice(0,c)};
var Nr=function(a){this.o=a;this.A={};this.B=""};
var Or=function(a,b){var c=b.indexOf("?");if(0<c){var d=Ar(b.substr(c+1));Pb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=zr(b);Pb(d,function(a,b){this.set(b,a)},a)};
var Pr=function(a){a.B||(a.B=Qr(a));return a.B};
var Qr=function(a){var b=tr(a.o),c=[];Pb(a.A,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=xr(a.o)?"&":"?";return b+a+d};
var Rr=function(a,b){var c=new sr(b);Pb(a.A,function(a,b){c.set(b,null)});
return c};
var Sr=function(a){this.o=a;this.C=a.clone();this.A=0;this.B=-1};
var Tr=function(a){var b=tr(a.C),c=new N(b);c.A.match("\\.googlevideo\\.com$")?(bh(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(bh(c,"www.youtube.com"),b=c.toString()):b=Zp(b);a.o=new sr(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))};
var Ur=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 Sr(a)};
var Vr=function(a){return!!a.o&&!!a.index&&a.index.dg()};
var Wr=function(a,b,c,d,e,f,k,l,m){this.o=b;this.range=c;this.type=a;this.C=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.B=k||0;this.A=0<=l?l:this.range?this.range.length:window.NaN;this.G=!!m;this.range?(this.F=this.B+this.A==this.range.length,this.D=this.startTime+this.duration*this.B/this.range.length,this.H=this.duration*this.A/this.range.length):(this.F=0!=this.A,this.D=this.startTime,this.H=this.duration);this.J=this.D+this.H};
var Xr=function(a){return 1==a.type||2==a.type};
var Yr=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B};
var Zr=function(a){cb(1==a.length||Gg(a,function(a){return!!a.range}));
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Cr(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)};
var $r=function(a){var b="";Pb(as(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
var as=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.H).toFixed(1);return b};
var bs=function(a,b){this.B=a[0].o.F;this.A=b||"";this.o=a;this.range=this.o[0].range&&0<this.o[0].A?Zr(this.o):null};
var cs=function(a,b){var c;/http[s]?:\/\//.test(a.A)?c=new Nr(new sr(a.A)):(c=new Nr(a.B.o),a.A&&Or(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c};
var ds=function(a){if(a.range)return a.range.length;a=a.o[0];return Math.round(a.H*a.o.info.o)};
var es=function(a,b,c,d,e){Ur.call(this,a,b,d);this.index=e||new Jr;this.C=c;this.A=!0};
var fs=function(a,b){a.mh(b);return gs(a,b.F?b.C+1:b.C,!1)};
var gs=function(a,b,c){var d=a.index.bo(b),e=a.index.ee(b),f=a.index.ag(b);c?f=c=0:c=0<a.info.o?a.info.o*f:1E3;a=new Wr(3,a,null,b,e,f,0,c,b==a.index.Kb()&&!a.A&&0<c);return new bs([a],d)};
var hs=function(a,b,c){this.$d=a;this.durationSecs=b;this.context=c};
var is=function(a,b,c,d){this.o=a;this.$d=b;this.durationSecs=c;this.A=d||window.NaN};
var js=function(){this.o=[];this.A=null;this.C=0;this.B=[]};
var ks=function(a){var b=a.B;a.B=[];return b};
var ls=function(){this.C=[];this.D=!1;this.o=null;this.A={};this.B={}};
var ms=function(a,b){for(var c=b.getElementsByTagName("SegmentTimeline"),d=0;d<c.length;d++){var e=c[d].parentNode.parentNode;"Period"==e.nodeName?a.o=new js:"AdaptationSet"==e.nodeName?a.A[e.attributes.mimeType.value]=new js:"Representation"==e.nodeName&&(a.B[e.attributes.id.value]=new js)}a.D=!0};
var ns=function(a,b){a.D||ms(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var f=d[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=a.o:"AdaptationSet"==f.nodeName?k=a.A[f.attributes.mimeType.value]:"Representation"==f.nodeName&&(k=a.B[f.attributes.id.value]);if(null==k)return;k.update(d[e]);ub(c,ks(k))}Db(c,function(a){return a.$d});
ub(a.C,c)};
var os=function(a){a.o&&(a.o.o=[]);Pb(a.A,function(a){a.o=[]});
Pb(a.B,function(a){a.o=[]})};
var ps=function(a,b){var c=qs(a,0,1836019558);if(!c)return null;var d=qs(a,c.offset+8,1835427940),e=qs(a,c.offset+8,1953653094);if(!d||!e)return null;var f=qs(a,e.offset+8,1952868452),k=qs(a,e.offset+8,1953658222),l=qs(a,e.offset+8,1952867444);if(!f||!k||!l)return null;var m=qs(a,e.offset+8,1935763823),e=qs(a,e.offset+8,1935763834);if(m){var p=rs(m),u=rs(m);if(0!=p||1!=u)return null;p=rs(m)}for(var v=rs(f),z=rs(f),x=v&2,ga=v&1?ts(f):0,xa=x?rs(f):0,K=v&8?rs(f):0,u=v&16?rs(f):0,Y=v&32?rs(f):0,v=rs(k),
Mb=v&1,yd=v&4,np=v&256,f=v&512,op=v&1024,PB=v&2048,v=rs(k),QB=Mb?rs(k):0,pp=yd?rs(k):0,Mb=[],zu=[],Pl=[],RB=[],aO=0,Rf=0,Ec=0;Ec<v;Ec++){var Z4=np?rs(k):K;f&&Mb.push(rs(k));var he=Y;yd&&0==Ec?he=pp:op&&(he=rs(k));zu.push(he);he=PB?rs(k):0;0==Ec&&(aO=he);Pl.push(Rf+he);RB.push(Ec);Rf+=Z4}Cb(RB,function(a,b){return Pl[a]-Pl[b]});
k=[];for(Ec=0;Ec<v;Ec++)k[RB[Ec]]=Ec;Rf=x?4:0;Ec=16*v;he=68+Rf+l.size+Ec+(m?m.size:0)+(e?e.size:0);c=he-c.size;K=new us(he);vs(K,he);vs(K,1836019558);ws(K,d);vs(K,he-24);vs(K,1953653094);vs(K,16+Rf);vs(K,1952868452);vs(K,131072|(x?2:0));vs(K,z);x&&vs(K,xa);ws(K,l);vs(K,20+Ec);vs(K,1953658222);vs(K,16781057);vs(K,v);vs(K,ga+QB+c);for(Ec=Rf=0;Ec<v;Ec++)l=k[Ec],d=Math.round(b*l/v),l=Math.round(b*(l+1)/v)-d,he=d-Rf+aO,vs(K,l),vs(K,f?Mb[Ec]:u),vs(K,zu[Ec]),vs(K,he),Rf+=l;m&&(vs(K,m.size),vs(K,1935763823),
vs(K,0),vs(K,1),vs(K,p+c));e&&ws(K,e);return K.data.buffer};
var xs=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;ys(a,b);){var c=zs(a,b);if(1836476516==c.type)return As(c);b=Bs(c.type)?b+8:b+c.size}return window.NaN};
var qs=function(a,b,c){for(;ys(a,b);){var d=zs(a,b);if(d.type==c)return d;b+=d.size}return null};
var zs=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Cs(a,b,c,d)};
var As=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
var ys=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};
var Bs=function(a){return 1836019558==a||1836019574==a||1953653094==a};
var Cs=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.o=8};
var rs=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
var ts=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};
var us=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.o=0};
var vs=function(a,b){a.data.setInt32(a.o,b);a.o+=4};
var ws=function(a,b){for(var c=0;c+4<=b.size;)vs(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))};
var Ds=function(a){return(a=qs(a,0,1836019558))?a.offset+a.size:null};
var Es=function(a,b){this.A=a;this.o=0;this.B=b||0};
var Fs=function(a){for(var b=Gs(a,!1);236==b;)Hs(a),b=Gs(a,!1);return b};
var Is=function(a){var b=Gs(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 Es(c,a.B+a.o);a.o+=b;return c};
var Js=function(a){for(var b=Gs(a,!0),c=Ks(a),d=1;d<b;d++)c=256*c+Ks(a);return c};
var Hs=function(a){var b=Gs(a,!0);a.o+=b};
var Ls=function(a){var b=a.o;a.o=0;var c=!1;Ms(a,440786851)&&(a.o=0,Ms(a,408125543)&&(c=!0));a.o=b;return c};
var Ns=function(a,b,c){var d=a.o;a.o=0;if(Ls(a)){if(!Ms(a,408125543))return!1;Gs(a,!0)}if(!Ms(a,524531317))return!1;Gs(a,!0);if(!Ms(a,231))return!1;var e=Gs(a,!0);b=Math.floor(1E9*b/c);if(Math.ceil(Math.log(b)/Math.log(2)/8)>e)return!1;for(c=e-1;0<=c;c--)a.A.setUint8(a.o+c,b&255),b>>>=8;a.o=d;return!0};
var Ms=function(a,b){for(;Fs(a)!=b;)if(Hs(a),a.o>=a.A.byteLength)return!1;return!0};
var Gs=function(a,b){var c=Ks(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Ks(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Ks(a),e*=128;return b?c-e:c};
var Ks=function(a){return a.A.getUint8(a.o++)};
var Os=function(a,b,c,d,e){this.info=a;this.o=b;this.range=c;this.A=d;this.B=e};
var Ps=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)};
var Qs=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=Ps(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=Ps(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0};
var Rs=function(a,b){if(1==a.info.o.info.A){for(var c=a.info.o.o,d=window.NaN,e,f=0,k=new window.DataView(a.o);ys(k,f);){var l=zs(k,f);1936286840==l.type?d=l.data.getUint32(l.offset+16):1836476516==l.type?d=As(l):1952867444==l.type&&(e=l);f=Bs(l.type)?f+8:f+l.size}!d&&c&&(d=xs(c));e.data.getUint8(e.offset+8)?(c=e.data,e=e.offset+12,d=Math.round(b*d),c.setUint32(e,Math.round(d/4294967296)),c.setUint32(e+4,Math.round(d&4294967295))):e.data.setUint32(e.offset+12,Math.round(b*d));return!0}new window.DataView(a.info.o.o.buffer);
d=new Es(new window.DataView(a.o));e=d.o;d.o=0;c=1E6;Ms(d,408125543)&&(Gs(d,!0),Ms(d,357149030)&&(Gs(d,!0),Ms(d,2807729)&&(c=Js(d))));d.o=e;return Ns(d,b,c)};
var Ss=function(a){var b;a:{for(var c=0,d=new window.DataView(a.o);ys(d,c);){b=zs(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=Bs(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,f;ys(b,d);){var k=zs(b,d);1836476516==k.type?e=As(k):1836019558==k.type&&(f=k);d=Bs(k.type)?d+8:d+k.size}!e&&c&&(e=xs(c));if(f&&e){f=
qs(b,f.offset+8,1953653094);c=qs(b,f.offset+8,1952868452);f=qs(b,f.offset+8,1953658222);b=rs(c);rs(c);b&2&&rs(c);b=b&8?rs(c):0;var l=rs(f),m=l&1,c=l&4,d=l&256,k=l&512,p=l&1024,l=l&2048,u=f.data.getUint32(f.offset+f.o);f.o+=4;m&&rs(f);c&&rs(f);for(var v=m=0;v<u;v++){var z=d?rs(f):b;k&&rs(f);c&&0==v||!p||rs(f);l&&rs(f);m+=z}b=m/e}else b=window.NaN}return b||a.info.H};
var Ts=function(a){1==a.info.o.info.A?(a=Ps(a),a=!!qs(a,0,1718909296)):a=Ls(new Es(new window.DataView(a.o)));return a};
var Us=function(){this.xa=0;this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1};
var Vs=function(a){if(a.o.length<a.xa+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.xa+1;b++)a.o[b]=c[b],a.A[b]=d[b]}};
var Ws=function(a,b,c,d,e,f){Ur.call(this,a,b,c||void 0);this.indexRange=d;this.C=null;this.index=new Us;this.A=e;this.lastModified=f};
var Xs=function(a,b,c,d){for(var e=[];b<=a.index.Kb();b++){var f;f=a.index;var k=b;f=Er(f.Aj(k),k+1<f.xa||f.B?f.o[k+1]-f.o[k]:-1);var k=a.index.ee(b),l=a.index.ag(b),m=Math.max(0,c-f.start),p=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Wr(3,a,f,b,k,l,m,p,b==a.index.Kb()&&m+p==f.length));if(f.start+m+p>=c+d)break}return new bs(e)};
var Ys=function(a,b,c){a.mh(b);if(!Vr(a))return c=Er(b.range.end+1,c),c.end+1>a.A&&(c=new Cr(c.start,a.A-1)),a=[new Wr(4,b.o,c)],new bs(a);4==b.type&&(b=a.Vi(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 Xs(a,d,e,c)};
var Zs=function(a){Rj.call(this);this.H=this.duration=0;this.isLive=this.C=!1;this.F=$s();this.A=window.Infinity;this.o={};this.K=a||"";this.D=this.G=0;this.B=null;this.J=$s()};
var at=function(a){return Rb(a.o,function(a){return!!a.info.fe},a)};
var bt=function(a,b,c){var d=new Zs;d.duration=c||0;E(a,function(a){var c=a.type,k=a.itag,l=null;if(mr(c))var m=a.size.split("x"),l=new or(+m[0],+m[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label);var p=null,u=null;lr(c)&&(p=new gr,a.name&&(u=new nr(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(k=a.itag+";"+a.xtags);var v=(0,window.parseInt)(a.bitrate,10)/8,m=(0,window.parseInt)(a.clen,10),z=d.duration&&m?m/d.duration:0,x=null;b&&a.drm_families&&(x={},E(a.drm_families.split(","),
function(a){x[a]=b[a]}));
c=new hr(k,c,p,l,u,x,v,z);l=Dr(a.init);p=Dr(a.index);u=ct(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);u&&(d.o[k]=new Ws(u,c,l,p,m,a))});
return d};
var ct=function(a,b,c){a=new sr(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",cr(c));return a};
var dt=function(a,b){var c=Fr(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Fr(b,"lang"));var d=Fr(b,"mimeType"),e=Fr(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Fr(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Gr(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(mr(d)){var k=(0,window.parseInt)(Fr(b,"width"),10),l=(0,window.parseInt)(Fr(b,"height"),10),m=(0,window.parseInt)(Fr(b,"frameRate"),10),p=Fr(b,"yt:projectionType"),u=Fr(b,"yt:stereoLayout"),
v="equirectangular"==p,z,x;v&&"layout_top_bottom"==u?z=3:v&&!p?z=2:"layout_left_right"==u&&(x=1);k=new or(k,l,m,z,x)}x=z=null;lr(d)&&(z=new gr((0,window.parseInt)(Fr(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=Fr(b,"lang")||"",(l=Gr(b,"Role"))?(l=Fr(l,"value")||"",x=x&&Zb(et,l)?new nr(Fr(b,"yt:langName")||x+" - "+l,x+"."+et[l],"main"==l):null):x=null);m=null;if(l=Gr(b,"ContentProtection"))if((m=l.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==m.textContent)for(m=
{},l=l.firstChild;null!=l;l=l.nextSibling)"yt:SystemURL"==l.nodeName&&(m[l.attributes.type.textContent]=l.textContent.trim());else m=null;return new hr(c,d,z,k,x,m,e,f)};
var ft=function(a,b){a.D=1;a.F=$s();return Ed(fr(b||a.K).then(A(a.M,a)),A(a.O,a))};
var gt=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=Dr(e):c=c+"?range="+e);return new Ir(b.o,b.$d,b.durationSecs,b.A,c,d)};
var ht=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c&&c.dg())return c.cg()}return window.NaN};
var it=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c&&c.dg())return c.Hr()}return 0};
var jt=function(a,b){Pb(a.o,function(a){Pb(b,function(b,e){var f=a.F;f.o.set(e,b);f.C.set(e,b)})})};
var kt=function(a,b){var c=(0).toString();if(!a.o[c]){var d=new hr(c,"",void 0,new or(0,0,0,void 0,void 0,"auto"));a.o[c]=b?new es(new sr("http://www.youtube.com/videoplayback"),d,""):new Ws(new sr("http://www.youtube.com/videoplayback"),d,new Cr(0,0),new Cr(0,0),0,window.NaN)}};
var lt=function(){return mt("android")&&mt("chrome")&&!nt()};
var ot=function(){return mt("(ps3; leanback shell)")||mt("ps3")&&mt("cobalt")};
var pt=function(){return mt("(ps4; leanback shell)")||mt("ps4")&&mt("cobalt")};
var qt=function(){var a=/WebKit\/([0-9]+)/.exec(pc);return!!(a&&600<=a[1])};
var rt=function(){return Fl&&mt("crkey")};
var tt=function(){return mt("nintendo wiiu")};
var ut=function(){return mt("iemobile")||mt("windows phone")&&mt("edge")};
var nt=function(){return mt("trident/")||mt("edge/")};
var mt=function(a){var b=pc;return b?0<=b.toLowerCase().indexOf(a):!1};
var vt=function(){var a=t("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a};
var wt=function(a){var b=vt();try{if(b.canPlayType){a=a?xt:zt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
var At=function(a){a=M("div",{"class":a});window.document.body.appendChild(a);var b="none"==Qf(a,"display");qf(a);return b};
var Bt=function(a,b,c){this.o=a;this.A=b;this.D=c;this.C={};this.B=null;this.fairPlayCert=""};
var Ct=function(a){return!a.B&&Dt()&&"com.microsoft.playready"==a.A};
var Et=function(a){return!a.B&&Dt()&&"com.apple.fps.1_0"==a.A};
var Dt=function(){var a=window.MSMediaKeys;Ft&&zc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
var Gt=function(){return window.navigator.requestMediaKeySystemAccess&&(Fl&&Ht("45")||vc)};
var It=function(a){this.A=[];this.o={};this.B={};this.C=null;Jt(this,a)};
var Jt=function(a,b){Pb(b,function(a){a.forEach(function(a){a.fe&&Pb(a.fe,function(b,c){Kt[c]&&Pb(Kt[c],function(b){this.o[b]=this.o[b]||new Bt(c,b,a.fe[c]);this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a);
a.A=Lt.filter(function(a){return!!this.o[a]},a)};
var Mt=function(a){var b=a.A.shift(),c=a.o[b],d=Nt(a.B[c.o]);window.navigator.requestMediaKeySystemAccess(b,d).then(Bi(A(a.F,a,c)),Bi(A(a.D,a,c)))};
var Nt=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Pb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]};
var Ot=function(a){var b=Dt(),c=vt();if(b){if(Ft){a.C(new Bt("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=A(c.canPlayType,c):d=function(){return!1};
c=(c=eb(a.A,function(a){var b=this.o[a],c,l;Pb(this.B[b.o],function(m,p){d(p,a)&&(b.C[p]=!0,c|=0==p.indexOf("audio/"),l|=0==p.indexOf("video/"))},this);
return c&&l},a))?a.o[c]:null;
a.A=[];a.C(c)};
var Pt=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};
var Qt=function(a){a=a||{};this.K=a.formats||"";this.D=a.format||1;if(1==this.D)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.D=Math.max(d,this.D))}this.o=a.languageCode||"";this.F=a.languageName;this.B=a.kind||"";this.C=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.A=null;a.translationLanguage&&(this.A=new Pt(a.translationLanguage))};
var Rt=function(a){var b={format:a.D,languageCode:a.o,languageName:a.F,displayName:St(a),kind:a.B,name:a.C,id:a.M,is_servable:a.L,is_default:a.isDefault,is_translateable:a.H,vss_id:a.G};a.A&&(a=a.A,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.o,id:a.id,is_default:a.isDefault});return b};
var St=function(a){var b=a.F||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",P("YTP_ASR_SETTINGS_LABEL"),")");a.C&&c.push(" - ",a.C);a.A&&c.push(" >> ",a.A.languageName);return c.join("")};
var Tt=function(a,b){var c=new Qt;c.o=a.o;c.F=a.F;c.C=a.C;c.B=a.B;c.isDefault=!1;c.H=a.H;c.G=a.G;c.J=a.J;c.A=b;return c};
var Ut=function(a,b){this.id=a;this.Hb=b;this.captionTracks=[];this.wg=this.lk=null;this.En=0};
var Vt=function(a,b,c){this.A=a||0;this.o=b||0;this.B=c};
var Wt=function(a,b,c){return new Vt(qr[a]||0,qr[b]||0,c)};
var Xt=function(a){var b=qr.auto;return a.A==b&&a.o==b};
var Yt=function(a,b){if(b.B&&Xt(b))return Zt;if(b.B||Xt(a))return b;if(a.B||Xt(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 Vt(c,d,!1)};
var $t=function(a){var b=a.o||a.A;return ac(au,function(a){return qr[a]==b})||"auto"};
var bu=function(a,b,c){this.videoInfos=a;this.o=b||null;this.audioTracks=[];this.A=c||null;if(this.o){var d={};E(this.o,A(function(a){if(a.Hb&&!d[a.id]){var b=new Ut(a.id,a.Hb);d[a.id]=b;this.audioTracks.push(b)}},this))}};
var cu=function(a,b){this.o=a;this.A=b};
var du=function(a){this.o=[];if(a)a:{var b,c;if(a instanceof du){if(b=a.Na(),c=a.Ka(),0>=a.Ya()){a=this.o;for(var d=0;d<b.length;d++)a.push(new cu(b[d],c[d]));break a}}else b=Xb(a),c=Wb(a);for(d=0;d<b.length;d++)eu(this,b[d],c[d])}};
var eu=function(a,b,c){var d=a.o;d.push(new cu(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};
var fu=function(){du.call(this)};
var gu=function(a,b){Rj.call(this);this.A=a;this.B=new fu;this.o=null;this.D={};this.C=b||""};
var hu=function(a,b,c){var d;for(c=iu(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Fb*d.rows))]?ju(d,b):null)return d;c--}return ju(a.A.o[0],b)};
var ku=function(a,b,c){c=iu(a.A,c);for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Fb*d.rows)),!d.B[e]){d=a;var f=c,k=f+"-"+e;d.D[k]||(d.D[k]=!0,eu(d.B,f,{Zo:f,ep:e}))}lu(a)};
var lu=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=mu(a.A.o[b.Zo],b.ep);c.onload=A(a.F,a,b.Zo,b.ep);a.o=c}};
var nu=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.Fb=(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};
var mu=function(a,b){var c=a.K,c=c.replace("$N",a.C),c=c.replace("$L",a.M.toString()),c=c.replace("$M",b.toString());a.F&&(c=Ug(c,{sigh:a.F}));return $p(c)};
var ju=function(a,b){var c=Math.floor(b/(a.Fb*a.rows)),d=a.Fb*a.rows,e=b%d,f=e%a.Fb,e=Math.floor(e/a.Fb),k,l=a.Om()+1-d*c;l<a.Fb?(k=l,d=1):(k=a.Fb,d=l<d?Math.ceil(l/a.Fb):a.rows);return{url:mu(a,c),yv:f,Fb:k,row:e,rows:d,fp:a.H*k,cp:a.G*d}};
var ou=function(a,b){this.o=this.A(a,b);this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)};
var iu=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};
var pu=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");nu.call(this,a,b,c,0);this.o=null;this.J=d?3:0};
var qu=function(a,b){this.F=b;ou.call(this,a,0)};
var ru=function(){if(void 0==tu&&(tu=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new window.Uint8Array(1);window.crypto.getRandomValues(a);tu=!0}catch(e){}if(tu){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]}else{a=Array(16);for(b=0;16>b;b++){for(var c=I(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=uu)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};
var vu=function(){for(var a=ru(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
var wu=function(){return O(ru(),function(a){return(a&15).toString(16)}).join("")};
var xu=function(a,b){return void 0==b?a:"1"==b?!0:!1};
var yu=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
var Au=function(a,b){return void 0==b?a:Number(b)};
var Bu=function(a,b){return void 0==b?a:b.toString()};
var Cu=function(a){if(a&&(a=a.match(Du))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
var Eu=function(a,b){var c=qr.auto,d=qr.medium;if("tivo"==b)return new Vt(c,qr.large,!1);var e=qr[b];return e>d?new Vt(e,c,!1):e>=c?new Vt(c,e,!1):a};
var Fu=function(){return!!t("yt.scheduler.instance")};
var Gu=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=t("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):Ai(a,b||0)};
var Hu=function(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):Di(a)};
var Iu=function(){var a=t("yt.scheduler.instance.start");a&&(Di(Ju),a())};
var Ku=function(){var a=t("yt.scheduler.instance.pause");a&&(a(),Di(Ju),Ju=Ai(Iu,800))};
var Lu=function(a,b){this.version=a;this.args=b};
var Mu=function(a){if(!a.be){var b={};a.call(b);a.be=b.version}return a.be};
var Nu=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=Mu(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;}};
var Ou=function(a,b){this.topic=a;this.o=b};
var Pu=function(a,b){var c=Qu,d=Ru();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var l=function(){if(Su[e])try{if(k&&c instanceof Ou&&c!=d)try{k=Nu(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){Fi(l)}};
Tu[c.toString()]?Fu()?Gu(l,void 0):Ai(l,0):l()}});
Su[e]=!0;Uu[c.toString()]||(Uu[c.toString()]=[]);Uu[c.toString()].push(e);return e};
var Vu=function(a,b){var c=Pu(function(d){a.apply(b,arguments);Wu(c)},b);
return c};
var Wu=function(a){var b=Ru();b&&(fa(a)&&(a=[a]),E(a,function(a){b.unsubscribeByKey(a);delete Su[a]}))};
var Ru=function(){return t("yt.pubsub2.instance_")};
var Xu=function(a){Lu.call(this,1,arguments);this.o=a};
var Yu=function(a,b,c){Zu(c)[a]=b||I();b||$u(a);b=zi("TIMING_ACTION");a=Zu(c);if(t("yt.timing.ready_")&&b&&a._start&&av(c)){b=!0;var d=zi("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&bv(c)}};
var cv=function(a,b){var c=Zu(b);return a in c};
var dv=function(a,b,c){ev(c).info[a]=b};
var fv=function(a){gv(a);hv();q("yt.timing.pingSent_",!1,void 0)};
var av=function(a){a=Zu(a);if(a.aft)return a.aft;for(var b=zi("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN};
var iv=function(a){return Math.round(jv.timing.navigationStart+a)};
var kv=function(a){var b=window.location.protocol,c=jv.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=iv(d.startTime),a.wfce=iv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=iv(c.startTime),a.wffe=iv(c.responseEnd))};
var bv=function(a){var b=Zu(a),c=ev(a).span,d=ev(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))lv(e),fv(a)}else{e={v:2,s:zi("CSI_SERVICE_NAME","youtube"),action:zi("TIMING_ACTION")};if(jv.now&&jv.timing){var f=jv.timing.navigationStart+jv.now(),f=Math.round(I()-f);d.yt_hrd=f}var f=zi("TIMING_INFO")||{},k;for(k in f)d[k]=f[k];k=d.srt;delete d.srt;var l;k||0===k||(l=jv.timing||{},k=Math.max(0,l.responseStart-l.navigationStart),(0,window.isNaN)(k)&&d.pt&&(k=d.pt));if(k||0===k)d.srt=k;
d.h5jse&&(f=window.location.protocol+t("ytplayer.config.assets.js"),(f=jv.getEntriesByName?jv.getEntriesByName(f)[0]:null)?d.h5jse=Math.round(d.h5jse-f.responseEnd):delete d.h5jse);b.aft=av(a);f=b._start;if("cold"==d.yt_lt){l||(l=jv.timing||{});var m;a:if(m=l,m.msFirstPaint)m=Math.max(0,m.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ha(p))){var p=p(),u=1E3*Math.min(p.requestTime||window.Infinity,p.startLoadTime||window.Infinity),u=window.Infinity===u?0:m.navigationStart-u;m=Math.max(0,
Math.round(1E3*p.firstPaintTime+u)||0);break a}m=0}0<m&&m>f&&(b.fpt=m);m=c||ev(void 0).span;p=l.redirectEnd-l.redirectStart;0<p&&(m.rtime_=p);p=l.domainLookupEnd-l.domainLookupStart;0<p&&(m.dns_=p);p=l.connectEnd-l.connectStart;0<p&&(m.tcp_=p);p=l.connectEnd-l.secureConnectionStart;l.secureConnectionStart>=l.navigationStart&&0<p&&(m.stcp_=p);p=l.responseStart-l.requestStart;0<p&&(m.req_=p);p=l.responseEnd-l.responseStart;0<p&&(m.rcv_=p);jv.getEntriesByType&&kv(b)}(l=zi("PREVIOUS_ACTION"))&&(d.pa=
l);d.p=zi("CLIENT_PROTOCOL")||"unknown";d.t=zi("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var v in d)"_"!=v.charAt(0)&&(e[v]=d[v]);b.ps=I();d={};v=[];for(var z in b)"_"!=z.charAt(0)&&(m=Math.max(Math.round(b[z]-f),0),d[z]=m,v.push(z+"."+m));e.rt=v.join(",");b=e;z=[];for(var x in c)"_"!=x.charAt(0)&&z.push(x+"."+c[x]);b.it=z.join(",");(x=t("ytdebug.logTiming"))&&x(e,d,c);fv(a);zi("EXP_DEFER_CSI_PING")?(mv(),q("yt.timing.deferredPingArgs_",e,void 0),a=
Ai(mv,0),q("yt.timing.deferredPingTimer_",a,void 0)):lv(e);a=new Xu(d.aft+(k||0));c=Qu;(e=Ru())&&e.publish.call(e,c.toString(),c,a)}};
var lv=function(a){if(zi("DEBUG_CSI_DATA")){var b=t("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}zi("EXP_DEFER_CSI_PING")&&(Di(t("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",b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=zi("CSI_LOG_WITH_YT")?"/csi_204?"+b.substring(1):null;window.navigator&&
window.navigator.sendBeacon?(cq(a),b&&cq(b)):(aq(a),b&&aq(b));q("yt.timing.pingSent_",!0,void 0)};
var mv=function(a){if(zi("EXP_DEFER_CSI_PING")){var b=t("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),lv(b))}};
var Zu=function(a){return ev(a).tick};
var ev=function(a){return t("ytcsi."+(a||"")+"data_")||gv(a)};
var gv=function(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};
var nv=function(a,b,c){this.errorCode=a;this.o=b;this.details=c||{}};
var ov=function(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""};
var pv=function(a){return(a=a.exec(pc))?a[1]:""};
var Ht=function(a){return 0<=Sa(qv,a)};
var rv=function(){};
var tv=function(){this.buffered=new rv};
var uv=function(a,b){this.C=a;this.o=!!b;this.B=!1;this.A={}};
var vv=function(a){return a.o?a.C:Ug(a.C,a.A)};
var wv=function(a,b){this.A=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.FC,set:this.JC});Object.defineProperty(this,"buffered",{get:this.DC})};
var xv=function(){this.length=0};
var yv=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.o=a;this.A=window.NaN;this.B=0;Object.defineProperty(this,"duration",{get:this.EC,set:this.IC});Object.defineProperty(this,"readyState",{get:this.GC});this.o.addEventListener("webkitsourceclose",A(this.HC,this),!0)};
var zv=function(a){F.call(this);this.M=[];this.Ia=a||this};
var Av=function(a,b,c,d){for(var e=0;e<c.length;e++)S(a,b,c[e],d)};
var S=function(a,b,c,d,e){d=Bi(A(d,e||a.Ia));b.addEventListener(c,d);b={target:b,name:c,Mh:d};a.M.push(b);return b};
var Bv=function(a){for(;a.M.length;){var b=a.M.pop();b.target.removeEventListener(b.name,b.Mh)}};
var Cv=function(a,b,c,d,e){zv.call(this);this.A=this.o=null;this.C=b;this.B=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new yv(a);this.F=this.D=this.G=null;this.H=d;this.L=c;this.S=e;Av(this,this.B,["sourceopen","webkitsourceopen"],this.K);Av(this,this.B,["sourceclose","webkitsourceclose"],this.J)};
var Dv=function(a,b){a.D=b};
var Ev=function(a,b){a.F=b};
var Fv=function(a){if(!a.G){var b;b=a.B;b=b.LE?b.o.webkitMediaSourceURL:window.URL.createObjectURL(b);a.G=new uv(b,!0)}return a.G};
var Gv=function(a){try{return"open"==a.B.readyState}catch(b){return!1}};
var Hv=function(a){try{return"closed"==a.B.readyState}catch(b){return!0}};
var Iv=function(a){return a.o.updating||a.A.updating};
var Jv=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
var Kv=function(a){return a.o?!!a.o.appendBuffer:Jv()};
var Lv=function(a){if(/opus/.test(a)&&(Fl&&!Ht("38")||rt()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!pt())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!vt().canPlayType(a)};
var Mv=function(a){this.hc=a};
var Nv=function(a,b){this.A=a;this.C=b;this.B={};this.o=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null};
var Ov=function(a,b){if(2.2!=Pv&&wt(a.A))return[];for(var c={},d=vt(),e=0;e<b.length;e++){var f=b[e];if(jr(f.hc)in Qv||"5"==jr(f.hc)?0:Rv(d,f.hc.mimeType)){var k=f.hc.video.quality;c[k]&&2!=c[k].hc.A||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);E(pr,function(a){(f=c[a])&&l.push(f)});
return l};
var Rv=function(a,b){var c=a.canPlayType(b);Sv?c=c||Tv[b]:2.2==Pv?c=c||Uv[b]:lt()&&(c=c||Vv[b]);return!!c};
var Wv=function(){var a=lt()&&!Ht(29),b=mt("google tv")&&mt("chrome")&&!Ht(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
var Xv=function(a,b){var c={},d;for(d in b.o){var e=b.o[d],f;a:{f=a;var k=e.info;if(k.id!=(0).toString()||f.A){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Yv.name]=k.video.width),k.video.height&&(m[Zv.name]=k.video.height),k.video.fps&&(m[$v.name]=k.video.fps),k.o&&(m[aw.name]=8*k.o));k.audio&&k.audio.o&&(m[bw.name]=k.audio.o);k=m;m=void 0;for(m in cw){var p=cw[m];if(k[p.name]&&dw(f,p))if(f.o){if(f.o[p.name]<k[p.name]){f=!1;break a}}else l=l+"; "+p.name+"="+k[p.name]}f=Lv(l)}else f=!0}f&&(c[e.info.B]=
c[e.info.B]||[],c[e.info.B].push(e.info))}return c};
var ew=function(a,b,c){var d={},e;Pb(b,function(a,b){var l=a.filter(function(a){return a.fe?c&&a.fe[c.o]&&c.C[a.mimeType]?261==jr(a)?(e||(e=vt()),!1):!0:!1:!0},this);
l.length&&(d[b]=l)},a);
return d};
var fw=function(a,b,c,d){function e(a){return!!f[a]}
var f=Xv(a,b);at(b)&&(f=ew(a,f,c));c=gw;if(!a.A)c=hw;else if(mt("cros armv7")||mt("windows nt 5.1"))c=iw;b=jw;d&&(a.A&&(c=iw),b=kw);d=eb(c,e);b=eb(b,e);if(!d||!b)return null;if("9"==d&&f.h){c=function(a,b){return Math.max(a,b.video.height)};
var k=me(f["9"],c,0);me(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=lw(a,c);mw(c,k);return new bu(c,k,nw(a,f,d,b))};
var nw=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=lw(a,e),mw(e,b),new bu(e,b)):null};
var mw=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})};
var lw=function(a,b){var c=Ih(b,function(a){return 32<a.video.fps});
c&&(b=a.C||dw(a,$v)?$d(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):$d(b,function(a){return!(32<a.video.fps)}));
c&&ot()&&(b=$d(b,function(a){return 299!=jr(a)}));
return b};
var dw=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name,e;a.o?e=!!a.o[b.name]:(b.video?(e='video/webm; codecs="vp9"',Lv(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Lv(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Lv(e+"; "+b.name+"="+b.valid)&&!Lv(e+"; "+b.name+"="+b.Ig));c[d]=e}return a.B[b.name]};
var ow=function(a,b){this.A=a;this.o=b;this.B=0};
var pw=function(a){for(var b=[],c=[],d=0,e=a.o.length;d<e;++d){var f=a.o[d];f.bitrate<=a.B?b.push(f):c.push(f)}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)};
var qw=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Ln=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.o=m||""};
var rw=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new qw(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b};
var tw=function(a,b){this.hc=a;this.B=b;this.o=null};
var uw=function(a,b,c,d,e,f,k,l,m){c=new hr(c,"application/x-mpegURL",new gr,new or(d,e,f,null,void 0,k),void 0,m);a=new ow(a,b);a.B=l?l:1369843;return new tw(c,a)};
var vw=function(a,b,c){if(!Sv&&!qt())return[];b=rw(b);if(!b)return[];var d={sJ:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],l=[],m;for(m in b){var p=b[m];if(p.width){var u=b[p.audioItag];u&&(f.push(p),e="fairplay"==p.o?d:null,l.push(uw([u],[p],p.itag,p.width,p.height,p.fps,void 0,void 0,e)))}else k.push(p)}e=l.reduce(function(a,b){return!!b.hc.fe&&a},!0)?d:null;
l.push(uw(k,f,"93",0,0,0,"auto",c,e));return Ov(a.F,l)};
var ww=function(a,b){this.hc=a;this.o=b};
var xw=function(a,b,c,d,e,f,k){var l=new gr;c in qr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=qr[c],e=Math.round(16*f/9));c=new or(e,f,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new ww(new hr(d,b,l,c),a)};
var yw=function(a){var b=[];E(a,function(a){a.url&&b.push(xw(a.url,a.type,"medium","0"))});
return b};
var zw=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];if(e.sig||e.s){var f=e.sig||cr(e.s);e.url=rj(e.url,{signature:f})}e.url&&c.push(xw(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Ov(a.F,c)};
var Aw=function(a){Rj.call(this);this.je=new re(0,0);this.$a=this.Y=this.ma=!1;this.ac="";this.Nb=this.rb=!1;this.bb={};this.captionTracks=[];this.Ea=[];this.ub=0;this.captionTranslationLanguages=[];this.Ga=!1;this.U=new Ut("und",new nr("Default","und",!0));this.La=0;this.ie=this.Dd=!1;this.J=null;this.he=new Ud(this.Dq,5E3,this);G(this,this.he);this.K=[];this.C={};this.keywords={};this.D={};Bw(this,a)};
var Cw=function(a,b){var c=b||{};c.iv_invideo_url&&(a.Ye=$p(c.iv_invideo_url));c.iv_ads_only&&(a.yn="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.ib=c.cta_conversion_urls);a.isPharma=xu(a.isPharma,c.is_pharma);a.author=Bu(a.author,c.author);a.Oh=xu(a.Oh,c.cc_asr);var d=c.ttsurl;Dw.test(d)?a.Ph=d:d&&(d=Zp(d),Dw.test(d)&&(a.Ph=d));c.caption_tracks&&c.caption_audio_tracks&&(Ew(a,c.caption_tracks),a.Ea=pj(c.caption_audio_tracks),c.default_audio_track_index&&(a.ub=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&Fw(a,c.caption_translation_languages));a.Ga=xu(a.Ga,c.cc_contribute);a.clientPlaybackNonce=Bu(a.clientPlaybackNonce,c.cpn);a.subscribed=Bu(a.subscribed,c.subscribed);a.sentiment=yu(a.sentiment,c.sentiment,Gw);a.title=Bu(a.title,c.title);a.ypcPreview=Bu(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Bu(a.ypcOrigin,c.ypc_origin);a.paygated=xu(a.paygated,c.paygated);a.requiresPurchase=xu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=Hw(c.keywords));
c.rvs&&(a.H=pj(c.rvs));a.contentCheckOk=xu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=xu(a.racyCheckOk,"1"==c.rco);a.oauthToken=Bu(a.oauthToken,c.oauth_token);a.visitorData=Bu(a.visitorData,c.visitor_data);c.session_data&&(a.aa=mj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Yb=mj(c.endscreen_autoplay_session_data,"&"));a.ab=Bu(a.ab,c.tv_list);a.L=yu(a.L,c.beyond_config,Iw);E(Aw.G,function(a){a in c&&(this.C[a]=c[a])},a)};
var Bw=function(a,b){var c=b||{};a.Ed="1"!=c.hlsdvr?!1:Wv()?!0:Jw&&5>Kw?!1:!0;a.gg=c.ad_query_id;a.hg=c.agcid;a.Ih="1"==c.infringe||"1"==c.muted;a.ob=c.authkey;a.zb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||vu());a.Ts=I();a.nk=xu(a.nk,c.cenchd);a.enableCardio=xu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=xu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.cf=Au(a.cf,c.end||c.endSeconds);a.Ia=Bu(a.Ia,c.itct);a.fl=xu(a.fl,c.noiba);a.yf="1"==c.livemonitor;
a.Fa="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=xu(a.isMdxPlayback,c.mdx);a.ml=xu(a.ml,c.reload);a.nl=xu(a.nl,c.utpsa);a.Mb=c.cyc;for(var d in Aw.A){var e=c[d+"_webp"]||c[d];Lw.test(e)&&(a.bb[Aw.A[d]]=e)}a.M=Bu(a.M,c.vvt);a.ig=c.osig;a.yd=c.ptchn;a.zd=c.oid;a.Z=c.ptk;a.Bd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.eventId&&cb(/^[A-Za-z0-9_-]*=*/g.test(a.eventId));
a.osid=c.osid;a.nv=c.vm;a.Yu=c.of;a.playlistId=Bu(a.playlistId,c.list);a.Cd=c.pyv_view_beacon_url;a.kg=c.pyv_quartile25_beacon_url;a.lg=c.pyv_quartile50_beacon_url;a.Dh=c.pyv_quartile75_beacon_url;a.jg=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.pe=c.sdetail;!a.va&&c.session_data&&(a.va=mj(c.session_data,"&").feature);a.isFling=1==Au(a.isFling?1:0,c.is_fling);a.vnd=Au(a.vnd,c.vnd);a.ea=Bu(a.ea,
c.ctrl);a.fa=Bu(a.fa,c.ytr);a.ha=c.ytrcc;a.Vg=Eu(a.Vg,c.vq);a.$g=Eu(a.$g,c.suggestedQuality);a.da=c.approx_threed_layout||0;a.re=xu(a.re,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Bu(a.vssCredentialsToken,c.vss_credentials_token);a.lm=Bu(a.lm,c.vss_credentials_token_type);Mw(a,c.watermark);a.ypcGid=Bu(a.ypcGid,c.ypc_gid);a.heartbeatToken=Bu(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Au(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=
Au(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=xu(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.K.push("ad")):"1"!=c.supported_without_ads&&(a.no=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ia=c.atc);c.license_info&&(a.Bm=Nw(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.al="1"==
c.autonav);c.autoplay&&(a.xf="1"==c.autoplay);c.iv_load_policy&&(a.Ca=yu(a.Ca,c.iv_load_policy,Ow));c.cc_lang_pref&&(a.ne=Bu(c.cc_lang_pref,a.ne));c.cc_load_policy&&(a.oe=yu(a.oe,c.cc_load_policy,Ow));c.channel_path&&(a.Qh=Bu(c.channel_path,a.Qh));"0"==c.dash&&(a.Nn=!0);c.dashmpd&&(a.G=Ug(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=cr(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.Se=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.So="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.K.push("fresca");c.idpj&&(a.qj=Ya(c.idpj));c.ismb&&(a.hh=Ya(c.ismb));c.is_episodic&&(a.bl="1"==c.is_episodic);c.is_listed&&(a.isListed=xu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Sf=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Ya(c.length_seconds));if(c.live_chunk_readahead||
c.hls_live_chunk_readahead)a.pl=Au(a.pl,c.live_chunk_readahead||c.hls_live_chunk_readahead);c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.ldpj&&(a.Cm=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Hh=a.perceptualLoudnessDb?Math.pow(10,Math.min(Aw.D-a.perceptualLoudnessDb,0)/20):Aw.o);c.partnerid&&(a.V=Ya(c.partnerid));c.probe_url&&(a.probeUrl=$p(Ug(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Bu(c.profile_picture,a.profilePicture));
c.pyv_billable_url&&Pw.test(c.pyv_billable_url)&&(a.na=c.pyv_billable_url);c.pyv_conv_url&&Pw.test(c.pyv_conv_url)&&(a.qa=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Qa=d.quartile_0_url,a.wc=d.quartile_25_url,a.xc=d.quartile_50_url,a.yc=d.quartile_75_url,a.vc=d.quartile_100_url);"1"==c.spacecast_module&&(a.K.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Au(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||
a.Fa||(a.clipStart=c.start);c.two_stage_token&&(a.rj=c.two_stage_token);c.url_encoded_third_party_media&&(a.Pf=pj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.K.push("ypc");c.ypc_clickwrap_module&&a.K.push("ypc_clickwrap");a.Xu=Bu(a.Xu,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);
a.D.focEnabled=xu(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=xu(a.D.rmktEnabled,c.rmktEnabled);a.C=c;Cw(a,c);Qw(a);c.adpings&&(a.ke=c.adpings?oj(c.adpings):null);c.feature&&(a.qe=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q)};
var Rw=function(a){return I()>a.Ts+1E3*Aw.F};
var Sw=function(a){return!(!a.B||!a.B.videoInfos.length)};
var Qw=function(a){Tw(a)||(a.adaptiveFormats?(a.o=bt(Uw(a,a.adaptiveFormats),a.Bm,a.lengthSeconds),at(a.o)&&(a.Y=!0)):a.G&&(a.ma=!0))};
var Tw=function(a){return!Wv()||a.Nn?!0:!1};
var Vw=function(a){a.isDisposed()||(a.Pd=!1,a.R("dataloaded",a.C))};
var Ww=function(a,b){if(!a.isDisposed()){a.B=null;a.Ff=null;a.O=null;var c=Tw(a)||b.jl;if(!c&&a.spacecastAdaptiveFormats)a.o=bt(Uw(a,a.spacecastAdaptiveFormats),a.Bm,a.lengthSeconds),a.B=fw(b.F,a.o,a.J,!0);else if(a.spacecastFormatMap){var d=Uw(a,a.spacecastFormatMap);a.O=zw(b,d);a.B=new bu(O(a.O,function(a){return a.hc}))}if(a.B){var e,f=0;
O(a.B.videoInfos,function(a){!e&&a.video.o&&f<a.video.height&&(e=a.video.quality,f=a.video.height)});
e&&(d=Wt(e,e,!0),a.Vg=d,a.$g=d)}a.B||c||!a.o||(b.K||kt(a.o,a.Fa),a.B=fw(b.F,a.o,a.J));a.B||(a.O=Xw(a,b),a.O.length&&(a.B=new bu(O(a.O,function(a){return a.hc}))));
Yw(a)}};
var Xw=function(a,b){if(a.hlsFormats){var c=Uw(a,a.hlsFormats),c=vw(b,c,a.hh);if(c.length)return c}if(a.Pf&&a.Wo)return c=yw(a.Pf),Ov(b.F,c);c=Uw(a,a.Sf,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.hh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Ug(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return zw(b,c)};
var Zw=function(a){return a.A&&a.A.fe||null};
var $w=function(a){a.mj||(a.C.storyboard_spec?a.mj=new ou(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.o&&(a.mj=new qu(a.C.live_storyboard_spec,a.o)));return a.mj};
var ax=function(a){var b=$w(a);!a.aj&&b&&(a.aj=new gu(b),G(a,a.aj));return a.aj};
var bx=function(a){return a.o&&!(0,window.isNaN)(it(a.o))?it(a.o):0};
var cx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.Pf)};
var dx=function(a){return!!(a.o||a.Sf||a.Pf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
var ex=function(a){var b=jb(a.K,"ypc");a.ypcPreview&&(b=!1);return cx(a)&&!a.Pd&&!a.ma&&!a.Y&&(dx(a)||jb(a.K,"fresca")||b)};
var Uw=function(a,b,c){b=pj(b);var d={};c&&E(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
E(b,function(a){a.url&&(a.url=Ug(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
var Hw=function(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b};
var Mw=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Ua=c[1],Lw.test(a.Ua)&&-1==a.Ua.search(Aw.H)||(a.Ua=""))}};
var Nw=function(a){a=pj(a);var b={};E(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b};
var Ew=function(a,b){for(var c=pj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Dw.test(f)&&(f={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k},"asr"!=e.k&&(f.format=3),a.captionTracks.push(new Qt(f)))}};
var Fw=function(a,b){for(var c=pj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new Pt({languageCode:e.lc,languageName:e.n}))}};
var Yw=function(a){for(var b=a.B?a.B.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 f=b[e],k=f.Hb.id==d.aid;if(f==a.U&&c==a.ub||k){if(d.i)for(var k=d.i.split(","),l=0;l<k.length;l++)f.captionTracks[l]=a.captionTracks[(0,window.parseInt)(k[l],10)];d.d&&(f.lk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.wg=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.En=(0,window.parseInt)(d.v,10)}}};
var fx=function(a,b){return!!a.C[b]};
var gx=function(a){return a.Fa&&!a.Ed};
var hx=function(a){return a.Fa&&a.Ed};
var ix=function(a){if(a.da||a.Sc["3D"])return!0;a=a.Sc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
var jx=function(a){Rj.call(this);this.startSeconds=0;this.L=!1;this.o=0;this.title="";this.B=0;this.A=[];this.J=this.F=!1;this.aa=this.Yb=this.G=null;this.views=0;this.V=0!=a.fetch;this.C=[];this.o=Math.max(0,a.index||0);this.H=!!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.O={};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.K=0;if(a.list)switch(a.listType){case "user_uploads":kx(this,a.list);break;case "user_favorites":lx(this,a.list);break;case "search":mx(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.D=br(a.list),a.video?(this.A=a.video.slice(0),this.F=!0):nx(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.o&&(this.A=[]);E(b,function(a){a&&this.A.push({video_id:a})},this);
this.B=this.A.length;b=O(this.A,function(a){return a.video_id});
ox(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 Aw.A)b="playlist_"+c,b=a[b+"_webp"]||a[b],Lw.test(b)&&(this.O[Aw.A[c]]=b);this.M=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
var px=function(a){return!!(a.playlist||a.list||a.api)};
var qx=function(a,b){var c=a.o+1;c>=a.B&&(c=a.H||b?0:-1);return c};
var rx=function(a,b){var c=a.o-1;0>c&&(c=a.H||b?a.B-1:-1);return c};
var sx=function(a,b){var c=qx(a,b);if(-1==c)return null;tx(a,c);return a.sb(c)};
var ux=function(a,b){var c=rx(a,b);if(-1==c)return null;tx(a,c);return a.sb(a.o)};
var tx=function(a,b){a.o=ke(b,0,a.B-1);a.startSeconds=0};
var kx=function(a,b){a.J||(a.D=new ar("UU","PLAYER_"+b),ox(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
var lx=function(a,b){a.J||(a.D=new ar("FL","PLAYER_"+b),ox(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
var mx=function(a,b){if(!a.J){a.D=new ar("SR",b);var c={search_query:b};a.U&&(c.mob="1");ox(a,"/search_ajax?style=json&embeddable=1",c)}};
var nx=function(a){if(!a.J){var b={list:a.D},c=a.sb();c&&c.videoId&&(b.v=c.videoId);ox(a,"/list_ajax?style=json&action_get_list=1",b)}};
var ox=function(a,b,c){a.V&&Bj(Ug(b,c),{format:"JSON",nb:function(a,b){vx(this,b)},
onError:function(){this.R("error")},
context:a})};
var vx=function(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.H=b.loop);var c=a.sb();a.A=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.A.push(a))},a);
a.B=a.A.length;b.index?a.o=b.index:wx(a,c);a.setShuffle(!1);a.J=!1;a.F=!0;a.K++;a.G&&a.G()}};
var wx=function(a,b){if(b){var c=b.videoId;if(!a.A[a.o]||a.A[a.o].video_id!=c)for(var d=0;d<a.A.length;d++)if(a.A[d].video_id==c){a.o=d;break}}};
var xx=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f};
var yx=function(a){return(!fa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
var zx=function(a){return px(a)?(a.fetch=0,new jx(a)):new Aw(a)};
var Ax=function(a,b,c,d){var e=b.sb();L(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Te();d=b.Cc(c,d?d:"mqdefault.jpg");var k=b instanceof Aw?xx(b.lengthSeconds):null,l=!!f,f=l&&"RD"==br(f).type;c={title:b.title,author:b.author,watch:P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.Ak(c),episodic_title:b.title,is_episodic:e.bl,is_featured:e.So,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof jx&&(c.playlist_length=b.B,c.episodic_length=
b.B,c.episodic_index=b.o);a.update(c)};
var Bx=function(a){var b=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",P("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",P("YTP_AUTOPLAY_PAUSED_2")]],
["span","ytp-upnext-close"]];Q.call(this,b);var c=this.ra["ytp-upnext-cancel"],b=this.ra["ytp-upnext-close"],d=new Q(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":P("YTP_AUTOPLAY_CANCEL")},P("YTP_CANCEL")]);G(this,d);d.P("click",this.Qs,this);d.o(c);c=new Q(["button",["ytp-upnext-close-button","ytp-button"]]);G(this,c);c.P("click",this.Qs,this);c.o(b);b=this.ra["ytp-upnext-autoplay-icon"];b.innerHTML='<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.C=a;this.G=$e("ytp-svg-autoplay-ring",this.element);this.A=this.D=null;this.F=0;R(this,b,"click",this.RF);this.tp();R(this,a,"autonavvisibility",this.tp)};
var Cx=function(a){a.A||(Pi("a11y-announce",P("YTP_PLAYLIST_UP_NEXT")+" "+a.D.title),a.F=$s(),a.A=new Ud(a.Wm,25,a),a.Wm());Zd(a.element,"ytp-upnext-autoplay-paused")};
var Dx=function(a){Ex(a);a.F=$s();a.Wm();J(a.element,"ytp-upnext-autoplay-paused")};
var Ex=function(a){a.A&&(a.A.dispose(),a.A=null)};
var Fx=function(a,b){Q.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=0;this.J=null};
var Gx=function(a){var b=window.location;a=Ug(a,{})+"";a=a instanceof He?a:Ke(a);b.href=Je(a)};
var Hx=function(a,b){var c=zi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=zi("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Lg(window.location.href);e&&d.push(e);e=Lg(a);if(jb(d,e)||!e&&ta(a,"/"))if(d=Ig(a),d=Hg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d=zi("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Va(d).toString(36):"s_tempdata-"+Va(d),c=c?Sg(c):"",ik(d,c,5)}};
var Ix=function(a,b){window.open(a,b||Va(a).toString(36))};
var Jx=function(a){var b=!a.W().va&&3!=a.getPresentingPlayerType();return a.Ja()||b};
var Kx=function(a,b,c){if(!c&&yx(a))return Zl(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");Hx(a,null);return!1};
var Lx=function(a,b,c){if(Mx(b.W())&&2!=b.getPresentingPlayerType()){if(yx(c))return b.Ja()&&Nx(b),Zl(c),!0}else{var d=yx(c);d&&b.pauseVideo();Hx(a,null);d&&(Ix(a),Zl(c))}return!1};
var Ox=function(a,b,c){var d='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="ytp-'+a+'" d="'+(c&&(xc||uc)?c:b)+'">';return d=(c?d+('<animate attributeType="XML" attributeName="d" fill="freeze" from="'+c+'" to="'+b+'" dur="0.2s" keySplines=".4 0 1 1" repeatCount="1"/>'):d+"<animate/>")+('</path></defs><use xlink:href="#ytp-'+a+'" class="ytp-svg-shadow"/><use xlink:href="#ytp-'+a+'" class="ytp-svg-fill"/></svg>')};
var Px=function(a){var b=a.W(),c=b.experiments.ka("video_wall_redesign");this.D=b.experiments.ka("endscreen_redirect")&&!Qx(b);Q.call(this,["a","videowall-still",{tabindex:null,href:"{{url}}",target:this.D?"_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",c?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",
P("YTP_FEATURED")],["span",c?"ytp-redesign-videowall-still-info":"videowall-still-info",["span",c?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",c?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",["span",c?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",c?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author}}"],["span",c?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration",
"{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",c?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",P("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular",
c?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],P("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",c?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],P("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.C=a;this.A=null;this.P("click",this.F);this.P("keypress",
this.G)};
var Rx=function(a,b,c){Hq.call(this,a,b,"videowall-endscreen");this.Y=c;this.H=0;this.D=[];this.G=this.C=null;this.L=this.U=!1;this.M=new Ud(pa(J,this.element,"ytp-show-tiles"),0);G(this,this.M);if(b=this.A.W().experiments.ka("video_wall_pagination"))c=new Q(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":P("YTP_PREVIOUS")}]),G(this,c),c.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>',
c.o(this.element),c.P("click",this.Sy,this);this.S=new wq(["div","ytp-endscreen-content"]);G(this,this.S);this.S.o(this.element);b&&(b=new Q(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":P("YTP_NEXT")}]),G(this,b),b.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>',b.o(this.element),b.P("click",this.Ry,this));this.A.W().experiments.ka("video_wall_redesign")&&
J(this.element,"ytp-endscreen-redesign");this.F=new Bx(a);G(this,this.S);Uq(this.A,this.F.element,4);this.ga();this.P("transitionend",this.xd)};
var Sx=function(a){return Tx(a.A.W(),a.A.getVideoData(),a.A.$b())&&a.Jh()&&!a.G};
var Ux=function(a,b,c,d){return 0==b&&c>=3*Rx.o&&d>=3*Rx.o&&a.C.length&&zx(a.C[0]).sb().bl?2*Rx.o:Rx.o};
var Vx=function(a){var b=Wx(a.Y);b!=a.U&&(a.U=b,a.A.app.Oa("autonavvisibility"))};
var Xx=function(a){mq.call(this,a);Gi({});this.sa="endscreen";this.H="end";this.A=null;var b=a.W();Yx(a)?this.A=new Rx(this.o,this.S,this):b.Z?this.A=new Tq(this.o,this.S):this.A=new Hq(this.o,this.S);Uq(this.o,this.A.element,4)};
var Zx=function(a){var b=a.getVideoData(),b=b&&b.Fa;return $x(a.W())&&1==a.getPresentingPlayerType()&&!b};
var ay=function(a){var b=a.o.getVideoData(),c=!Yx(a.o)||!(!b.H||!b.H.length);a.o.W();b=fx(b,"ypc_module");a=by(a.o.app);return c&&!b&&!a};
var Yx=function(a){a=a.W();return a.wc&&!a.Z};
var Wx=function(a){return a.A instanceof Rx&&a.A.B&&Sx(a.A)};
var cy=function(a){var b=Math.max(1E3*(a.o.getVideoData().lengthSeconds-10),0),b=new iq(b,0x8000000000000,{id:"preload"}),c=new iq(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.jb([b,c])};
var dy=function(a){return Zx(a)?new Xx(a):null};
var ey=function(a){return(a=fy[a.toString()])?a:"YTP_ERROR_LICENSE"};
var gy=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
var hy=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};
var iy=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};
var jy=function(a,b){var c=iy(a,b);return 0<=c?a.end(c):window.NaN};
var ky=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
var ly=function(a,b){var c=jy(a,b);return 0<=c?c-b:0};
var my=function(){};
var ny=function(a){var b=a.duration||0;return window.Infinity==b?1:b?(0<ky(a.buffered)&&a.duration?jy(a.buffered,a.currentTime):0)/b:0};
var Zq=function(a){a.src&&(Sv&&0<a.readyState&&(a.currentTime=Math.max(oy,0)),a.removeAttribute("src"),a.load(),!a.Xe||!a.Xe.o||a.Xe&&a.Xe.equals(null)||(a.Xe&&a.Xe.dispose(),a.Xe=null))};
var py=function(a,b){a.defaultPlaybackRate=b;a.playbackRate=b};
var qy=function(a,b){this.A=a||64;this.o=b||null};
var ry=function(a,b,c,d){if(T(a,128))return a;var e=a.A,f=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,f=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),f=null);else if("playing"==b.type)e=8,f=null,T(a,32)&&(e|=32),d&&T(a,1)&&sy(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.getErrorCode())b=
"progressive.net";else if(3==k.getErrorCode())b="fmt.decode";else if(4==k.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:P("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)ty(a)&&sy(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=uy(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=sy(c,k)?e|1:e&-2),1<k.o.readyState&&
0<k.getCurrentTime()&&(e&=-65);else return a;return vy(a,e,f)};
var sy=function(a,b){return a?wy(a,b.getCurrentTime(),$s(),uy(b)):!1};
var vy=function(a,b,c){return b==a.A&&c==a.o||b&128&&!c||b&2&&b&16?a:new qy(b,c)};
var yy=function(a,b){return vy(a,a.A|b)};
var zy=function(a,b){return vy(a,a.A&~b)};
var Ay=function(a){return vy(a,(a.A|4)&-9)};
var T=function(a,b){return!!(a.A&b)};
var ty=function(a){return T(a,8)&&!T(a,2)};
var By=function(a){return T(a,64)&&!T(a,8)&&!T(a,4)};
var Cy=function(a){return T(a,1)&&!T(a,2)};
var Dy=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};
var Ey=function(a,b,c){Rj.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.Bx,clientVersion:c.innertubeContextClientVersion,hl:c.Ex,gl:c.Cx}},videoId:a});this.J="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.A=new Ud(A(this.D,this));G(this,this.A);this.D()?this.A.start(this.o):this.A.start(1E4)};
var Fy=function(a){Q.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.P("click",this.C,
this)};
var Gy=function(a){Q.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.C=a;this.D=!1};
var Hy=function(a,b){Bq(a,"suggested_sidebar_title",b.A?P("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.A}):"");var c=a.ra["ytp-fresca-suggested-sidebar-close-button"];xh(c);R(a,c,"click",a.Qy);Ob(a.A);a.A=[];E(b.o,function(a,b){if(!(5<=b)&&a){var c=new Q(["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:"+Iy(a),l=Jy(a);c.update({suggested_title:a.Pr,suggested_content:Ky(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.ra["ytp-fresca-suggested-image-badge"];L(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.P("click",this.Wx,this);this.A.push(c)}},a);
Bq(a,"sidebar_items",a.A)};
var Ly=function(a){Q.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.F=0;this.A=null;this.G=-1;this.D=new Fy(a);G(this,this.D);this.C=new Gy(a);G(this,
this.C);this.D.ga();this.D.o(this.element);this.C.ga();this.C.o(this.element)};
var My=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=Ny(b),L(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.H(!0),a.A.A)if(Oy(a.A.A)&&!Ny(a.A)){b=a.D;c=a.A.A.o[0];var d;
d=a.A.A;d=d.A?P("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.A}):"";var e="background-image:"+Iy(c);b.update({suggested_header_central:d,suggested_title:c.Pr,suggested_content:Ky(c),badge_content:Jy(c),link_destination:c.getVideoUrl(),image_style:e});L(b.ra["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.D.show();a.C.ga()}else b=a.A.A,!(0<b.o.length)||Oy(b)||Ny(a.A)||a.C.D?a.C.ga():(Hy(a.C,a.A.A),a.C.show()),a.D.ga()};
var Py=function(a,b,c,d,e,f){y(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=f||0)};
var Qy=function(a,b,c){fa(a)?(this.date=Ry(a,b||0,c||1),Sy(this,c||1)):ia(a)?(this.date=Ry(a.getFullYear(),a.getMonth(),a.getDate()),Sy(this,a.getDate())):(this.date=new Date(I()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Sy(this,a))};
var Ry=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
var Sy=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
var Ty=function(){};
var Uy=function(a){if("number"==typeof a){var b=new Ty;b.B=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Pa(c,2));c=d.join("")}b.C=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Vy(a);b.D=[c,c];b.o={rI:a,mn:a};b.A=[];return b}b=new Ty;b.C=a.id;b.B=-a.std_offset;b.D=a.names;b.o=a.names_ext;b.A=a.transitions;return b};
var Vy=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")};
var Wy=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]};
var Xy=function(a,b){this.A=[];this.o=b||Yy;"number"==typeof a?Zy(this,a):$y(this,a)};
var $y=function(a,b){for(az&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<bz.length;++c){var d=b.match(bz[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}}};
var Zy=function(a,b){var c;if(4>b)c=a.o.Lj[b];else if(8>b)c=a.o.nn[b-4];else if(12>b)c=a.o.Ft[b-8],c=c.replace("{1}",a.o.Lj[b-8]),c=c.replace("{0}",a.o.nn[b-8]);else{Zy(a,10);return}$y(a,c)};
var cz=function(a,b){var c;c=String(b);var d=a.o||Yy;if(void 0!==d.Wu){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.Wu+k-48):c.charAt(f))}c=e.join("")}return c};
var dz=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.");};
var ez=function(a,b,c,d,e,f){var k=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.o.Jt[c]:a.o.Kt[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),cz(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.o.ru[c];break a;case 4:k=a.o.bn[c];break a;case 3:k=a.o.fn[c];break a;default:k=cz(a,Pa(c+1,k))}return k;case "k":return dz(e),cz(a,Pa(e.getHours()||24,k));case "S":return cz(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));
case "E":return c=d.getDay(),4<=k?a.o.sn[c]:a.o.gn[c];case "a":return dz(e),k=e.getHours(),a.o.Xm[12<=k&&24>k?1:0];case "h":return dz(e),cz(a,Pa(e.getHours()%12||12,k));case "K":return dz(e),cz(a,Pa(e.getHours()%12,k));case "H":return dz(e),cz(a,Pa(e.getHours(),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.o.Lu[c];break a;case 4:k=a.o.ln[c];break a;case 3:k=a.o.kn[c];break a;default:k=cz(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.o.Ku[c];break a;case 4:k=a.o.hn[c];break a;
case 3:k=a.o.jn[c];break a;default:k=cz(a,Pa(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.o.Eu[c]:a.o.yu[c];case "d":return cz(a,Pa(d.getDate(),k));case "m":return dz(e),cz(a,Pa(e.getMinutes(),k));case "s":return dz(e),cz(a,Pa(e.getSeconds(),k));case "v":return k=f||Uy(c.getTimezoneOffset()),k.C;case "V":return a=f||Uy(c.getTimezoneOffset()),2>=k?a.C:0<Wy(a,c)?n(a.o.It)?a.o.It:a.o.DST_GENERIC_LOCATION:n(a.o.mn)?a.o.mn:a.o.STD_GENERIC_LOCATION;case "w":return c=a.o.Oj,e=new Date(e.getFullYear(),
e.getMonth(),e.getDate()),b=a.o.Nj||0,c=e.valueOf()+864E5*(((n(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),cz(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Uy(c.getTimezoneOffset()),4>k?a.D[0<Wy(a,c)?2:0]:a.D[0<Wy(a,c)?3:1];case "Z":return e=f||Uy(c.getTimezoneOffset()),4>k?(k=-(e.B-Wy(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=cz(a,Vy(e.B-Wy(e,c))),k;default:return""}};
var fz=function(a){this.D=a.thumbnailUrl?a.thumbnailUrl:null;this.o=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Pr=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};
var Iy=function(a){return(a=a.D)?"url("+a+")":""};
var Ky=function(a){if("COMPLETE"==a.A){var b=Math.floor(I()/1E3);a=a.o?b-a.o:0;return 172800<a?P("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(I()/1E3),a=a.o?a.o-b:0,172800<a?P("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_STREAMING_SOON")):a.B&&2<a.B?P("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.B}):P("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};
var Jy=function(a){return"COMPLETE"==a.A&&a.C?xx(a.C):a.isLive()?P("YTP_FRESCA_LIVE_BADGE"):null};
var gz=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 fz(a[b]))};
var Oy=function(a){return 1==a.o.length&&a.o[0].isLive()};
var hz=function(a,b){this.state=-1;this.B=a;this.messageText=[];this.C=!1;b&&iz(this,b)};
var iz=function(a,b){var c=b.lifeCycleState;c&&(a.state=jz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.C=0<=fb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.A=new gz(b)};
var kz=function(a){switch(a.state){case 6:return!a.o()&&a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.o()?[]:[P("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),P("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[P("YTP_FRESCA_EVENT_OVER_MESSAGE"),P("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Ny(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.B&&a.startTime){var b=zi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;
Yy={bn:b.months,hn:b.months,fn:b.shortMonths,jn:b.shortMonths,Lj:b.dateFormats,sn:b.weekdays,ln:b.shortMonths,gn:b.shortWeekdays,kn:b.shortWeekdays,Tu:b.weekendRange,Nj:b.firstDayOfWeek,Oj:b.firstWeekCutoffDay,Xm:b.amPms};c=(new Xy(d)).format(new Date(1E3*c))}b=Math.floor(I()/1E3);return[b<=a.startTime?P("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?P("YTP_FRESCA_EVENT_STARTING_SOON"):P("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:
a.B?[P("YTP_FRESCA_EVENT_OFFLINE")]:[P("YTP_FRESCA_STAND_BY_MESSAGE")]}};
var Ny=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(I()/1E3);return jb(lz,a.state)&&86459>=b&&86400<=b};
var mz=function(a){mq.call(this,a);this.H=this.sa="fresca";this.B=this.K=!1;this.C=null;Gi({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.F=!1;this.L="leanback"!=this.o.W().Ba};
var nz=function(a,b){if(!a.L)return!1;var c=!!b.getMessage().length||!!b.imageUrl;if(!a.B&&6>b.state)return c;if(a.o.app.o.K&&(b.imageUrl||b.messageText.length))return!0;var d=oz(a.o),d=Cy(d)||T(d,2),e;if(e=!a.A.o())(e=!a.B)||(e=!(oz(a.o).Za()&&!gx(a.o.getVideoData())&&!a.o.app.o.K)&&d);return e||a.K&&a.o.app.o.K||!a.B&&6<b.state?c:!1};
var pz=function(a,b){var c=nz(a,b);if(!a.B)switch(b.state){case 6:b.o()&&(a.B=!0,qq(a));break;case 8:case 7:a.B=!0}c&&My(a.D,b);c&&!a.loaded?(a.load(),qz(a.o)):!c&&a.loaded&&(a.unload(),qz(a.o))};
var rz=function(a){return fx(a.getVideoData(),"fresca_module")?new mz(a):null};
var sz=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};qz(c,d)}};
var tz=function(){if(!wc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
var uz=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(vz){var b=wz();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
var xz=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");};
var yz=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=We(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=We(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
var wz=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}}return a};
var zz=function(a){this.A=a||window;this.o=[]};
var Az=function(a,b,c){c=A(c,a.A);b=Ql(b,"mouseleave",c);a.o.push(b);return b};
var Bz=function(a,b,c,d){c=A(c,d||a.A);b=Sl(b,c);a.o.push(b)};
var Cz=function(a,b,c){F.call(this);this.o=null;this.C=!1;this.F=a;this.D=c;this.A=b||window;this.B=A(this.ew,this)};
var Dz=function(a){a=a.A;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
var Ez=function(a){a=a.A;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
var Fz=function(a){a=ka(a);delete Gz[a];bc(Gz)&&Hz&&Hz.stop()};
var Iz=function(){Hz||(Hz=new Ud(function(){Jz()},20));
var a=Hz;a.isActive()||a.start()};
var Jz=function(){var a=I();Pb(Gz,function(b){Kz(b,a)});
bc(Gz)||Iz()};
var Lz=function(){H.call(this);this.o=0;this.endTime=this.startTime=null};
var Mz=function(a,b,c,d){Lz.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};
var Kz=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;Nz(a,a.progress);1==a.progress?(a.o=0,Fz(a),a.Ub(),a.Ng()):a.Za()&&a.xl()};
var Nz=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]};
var Oz=function(a,b){kc.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};
var Pz=function(a){return Math.pow(a,3)};
var Qz=function(a){return 3*a*a-2*a*a*a};
var Rz=function(a){this.o=[];this.A=a};
var Sz=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};
var Tz=function(a,b,c){return a.o.slice(Uz(a,b),null==c?a.o.length:Uz(a,c))};
var Uz=function(a,b){var c=Bb(a.o,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
var Vz=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};
var Wz=function(a,b,c,d,e,f){F.call(this);this.C=0;this.K=!1;this.G=null;this.H=!1;this.B=f;this.J=this.F=!1;this.V=a;this.O=b;this.M=c;this.U=this.B?null:d;this.S=e;this.L=new Ud(this.oc,250,this);G(this,this.L);this.D=new Ud(this.oc,0,this);G(this,this.D);this.A=[];this.o=new Rz(this.B?lq:hq)};
var Xz=function(a,b){var c=[];if(!b.length)return c;a.B||b.sort(lq);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};
var Yz=function(a,b){var c=[];if(!b.length)return c;b.sort(lq);for(var d=0;d<b.length;d++){var e=b[d],f=a.A.indexOf(e);!a.B&&0>f||(a.A.splice(f,1),c.push([2,e]))}return c};
var Zz=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];1==d[0]?(e.C&&kq(e).R("onEnter",e),a.S("crn_"+e.o,e)):(e.C&&kq(e).R("onExit",e),a.S("crx_"+e.o,e))}};
var $z=function(a){var b=Vz(a.o,Math.max(a.C-2E3,0));null!=b&&(!a.B||0x7ffffffffffff>b)&&a.D.start()};
var aA=function(a){var b=Vz(a.o,a.C);null!=b&&(b=(b-a.C)/a.O(),a.D.start(b))};
var bA=function(a){return T(a.M(),2)?0x8000000000000:1E3*a.V()};
var cA=function(a){var b=0;-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b};
var dA=function(a){return da(a)&&a.length?a[0]:a};
var eA=function(a){var b=/.+/;return y(a)&&null!=b&&null!=a&&a.match(b)?a:""};
var fA=function(a,b){if(null==a)return b;var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c};
var gA=function(a){return y(a)?a:""};
var hA=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
var iA=function(a,b){return"true"==a||"false"==a?"true"==a:b};
var jA=function(a,b){return y(a)?(0,window.parseFloat)(a):b};
var kA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return ke(a,b,c);if(a>=b&&a<=c)return a}return e};
var lA=function(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;E(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b};
var mA=function(a,b){if(null==a)return null;if(ea(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
var nA=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new qe((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};
var oA=function(a){function b(a){return $d(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
var pA=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Ni=d};
var qA=function(a){if(!a)return null;var b=gA(a.value);if(!b)return null;var c=hA(a.target,rA,"current");return null==c?null:new pA(b,c,iA(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
var sA=function(a){return a.value?a.value:null};
var tA=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=uA(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
var uA=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
var vA=function(a){a=sA(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!tA(a))||(b=Kg(Ig(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=qj(a);if(!b||!b.v)return null;if(b.t)return cA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=oj(a[1]))&&a.t?cA(a.t):-1};
var wA=function(a){a=sA(a);a=a.replace(/https?:\/\//g,"");return tA(a)?(a=qj(a))&&a.v?a.v:null:null};
var xA=function(a,b,c,d){(a=sA(a))?tA(a)?d=sj(a,{feature:"iv",src_vid:c,annotation_id:b},!1):(a?(b=uA(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(yA,d.pageId,d.zb),a=new N(a),dh(a,d(a.B)),d=a.toString()):d=a):d=null;return d};
var yA=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};
var zA=function(a,b){return b?b:tA(a)?"current":"new"};
var AA=function(a){this.A=a;this.o=0;this.D=window.NaN;this.B=0;this.ua=[];this.C=BA(this.A);this.F=this.G=0};
var CA=function(a){a.C.startTime=a.B;a.C.endTime=a.o;a.ua.length&&db(a.ua).isEmpty()?a.ua[a.ua.length-1]=a.C:a.ua.length&&a.C.isEmpty()||a.ua.push(a.C);a.G+=a.o-a.B;a.C=BA(a.A);a.B=a.o};
var DA=function(a){return a.G+a.A.B()-a.B};
var EA=function(a){a.ua.length&&a.o==a.B||CA(a);var b=a.ua;a.ua=[];return b};
var FA=function(a,b,c){c-=a.D;return b==a.o&&.5<c};
var GA=function(a,b){this.experimentIds=(a||"").split(",");this.flags=mj(b||"","&");var c={};E(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;HA=HA||this.ka("use_legacy_params");this.F=!!c["9408846"];this.A=!!c["932250"]||!!c["9406444"];this.Z=!!c["945066"]||!!c["9405188"];this.B=!!c["945069"]||!!c["9405408"];this.U=!!c["945074"]||!!c["9405191"];this.M=!!c["945090"]||!!c["9405409"];this.O=!!c["9416855"];this.C=c["9408912"]?5E3:c["9408913"]?7E3:c["9408914"]?9E3:c["9408915"]?11E3:c["9408916"]?13E3:c["9408917"]?15E3:1E4;this.da=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&Ft&&zc(8);this.aa=this.ka("enable_spherical3d_chrome");
this.S=!!c["9417025"];this.ea=!!c["9417026"];this.G=!!c["9417027"];this.pv=!0;this.H=!!c["909722"];this.Da=!!c["922333"];this.K=!!c["937009"];this.enableAudioCast=!!c["9408394"];this.L=!!c["9408919"];this.o=!!c["9414740"];this.vC=!!c["9414661"];this.V=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.D=!!c["9414843"];this.Y=!!c["9418683"];this.fa=!!c["9407182"]};
var IA=function(a,b){this.o=b;this.C=!1;this.A=a};
var JA=function(a,b,c){IA.call(this,b,c);this.D=a};
var KA=function(a){gj("yt-player-bandwidth",a,2592E3)};
var LA=function(){return ij("yt-player-quality")||"auto"};
var MA=function(a){F.call(this);this.o=a;this.B={};this.S=window.NaN;this.F=new Ud(this.Dz,3E4,this);G(this,this.F);this.G=new Ud(this.Si,100,this);G(this,this.G);this.A="N";this.D=0;this.O=window.NaN;this.V=0;this.K=this.Y="";this.Z=-1;this.J=this.L=0;this.M=this.H=!1;this.C=null;window.navigator.getBattery&&window.navigator.getBattery().then(A(function(a){this.C=a},this))};
var NA=function(a,b,c,d){var e=a.B[c];e||(e=[],a.B[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
var OA=function(a){var b={event:"streamingstats"};if(a.o.o.A){b.fmt=a.o.o.A.id;var c=a.o.o.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.o.o.clientPlaybackNonce;b.ei=a.o.o.eventId;b.el=a.o.A.Ba;b.docid=a.o.o.videoId;b.ns=a.o.A.aa;b.fexp=a.o.A.experiments.experimentIds.toString();b.cl=a.o.A.fa;a.o.A.D&&(b.adformat=a.o.A.D);a.o.o.Fa&&(b.live=a.o.o.Ed?"dvr":"live");b.html5="1";return b};
var PA=function(a,b){var c=a.B.cat||[];c.push(b);a.B.cat=c};
var QA=function(a,b,c,d){this.ub=b;this.segments=[];this.experimentIds=[];this.Ta=this.Ia=this.ia=this.fa=this.Ca=this.autoplay=this.autonav=!1;this.aa="yt";this.J=this.A=this.D=null;this.Y=!1;this.C="watchtime"==c;this.U="playback"==c;this.Ea="delayplay"==c;this.V="atr"==c;this.Ga="engage"==c;this.Da=!1;this.ab=this.V?"/api/stats/"+c:"//"+b.zd+"/api/stats/"+c;d&&(this.ia=d.fs,d.rtn&&(this.A=d.rtn),this.C?(this.vc=d.state,0<d.rti&&(this.D=d.rti)):(this.La=d.mos,this.Ua=d.volume,d.at&&(this.adType=
d.at),d.allowed&&(this.K=d.allowed),d.ex_ads&&(this.O=d.ex_ads)),d.autonav&&(this.autonav=d.autonav));this.ib=b.D;this.autoplay=b.autoplay;this.ob=b.ea;this.rb=fc(b.A);this.va=b.O;this.Mb=b.Ba;this.experimentIds=b.experiments.experimentIds;this.ea=b.Y;this.aa=b.aa;this.region=b.region;this.wc=b.fa?b.fa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.bb=RA();this.Da=b.experiments.o;HA&&(this.referrer=b.referrer,this.B=b.ia,this.searchQuery=b.searchQuery);this.G=a.oauthToken||
this.G;this.autoplay=this.ub.experiments.ka("stop_autoplay_flag_persist")?a.xf:a.xf||this.autoplay;this.autonav=a.al||this.autonav;this.J=a.rj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.S=a.vssCredentialsToken;this.qa=a.lm;this.H=a.pj;this.da=a.Se;a.A&&(this.na=a.A.id,a.F&&a.F.id!=this.na&&(this.M=a.F.id));this.Ta=a.Xf;this.Nb=a.qj;a.Fa&&(this.Qa=a.Ed?"dvr":"live");this.Yb=a.Cm;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.ab||a.playlistId;this.ha=a.ea;this.ma=a.fa;
this.xc=a.re;this.subscribed=a.subscribed;this.videoId=a.videoId;this.yc=a.nv;this.visitorData=a.visitorData;this.osid=a.osid;this.ac=a.Yu;HA?this.B=a.va||this.B:(this.referrer=a.referrer,this.B=a.va||a.qe,this.searchQuery=a.searchQuery)};
var SA=function(a){var b={ns:a.aa,el:a.Mb,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.$a),of:a.ac,adformat:a.ib,content_v:a.ob,euri:a.va,subscribed:a.subscribed,lact:a.bb,live:a.Qa,cl:a.wc,mos:a.La,q:a.searchQuery,osid:a.osid,state:a.vc,vm:a.yc,volume:a.Ua};qa(b,a.rb);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.fa&&(b["final"]="1");a.Ta&&(b.splay="1");a.da&&(b.delay=a.da);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.B&&(b.feature=a.B);a.playlistId&&(b.list=a.playlistId);a.ha&&(b.ctrl=a.ha);a.ma&&(b.ytr=a.ma);a.xc&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.C?(b.idpj=a.Nb,b.ldpj=a.Yb,null!=a.D&&(b.rti=a.o(a.D))):(n(a.adType)&&(b.at=a.adType),n(a.K)&&(b.allowed=a.K),n(a.O)&&(b.ex_ads=a.O));(a.U||a.Ea)&&a.J&&(b.tst=
a.J);a.C&&(b.st=TA(a,O(a.segments,function(a){return a.startTime})),b.et=TA(a,O(a.segments,function(a){return a.endTime})));
Ih(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=TA(a,O(a.segments,function(a){return a.visibilityState})));
Ih(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=TA(a,O(a.segments,function(a){return a.playbackRate})));
Ih(a.segments,function(a){return"-"!=a.$j})&&(b.cc=O(a.segments,function(a){return a.$j}).join(","));
if(Ih(a.segments,function(a){return!!a.Xj})){var c="au";
a.U&&(c="au_d");b[c]=O(a.segments,function(a){return a.Xj}).join(",")}uj()&&a.S&&(b.ctt=a.S,b.cttype=a.qa);
a.Ga&&(b.etype=n(a.F)?a.F:0);return b};
var TA=function(a,b){return O(b,a.o).join(",")};
var UA=function(a){F.call(this);this.o=a;this.B=new MA(a);G(this,this.B);this.A=new AA(a);this.F="paused";this.G=window.NaN;this.J=[10,10,10,40];this.K=this.H=0;this.S=this.O=this.M=this.L=this.C=!1;this.D=window.NaN;this.V=new JA(this.A,this.o.o,this.o.A)};
var VA=function(a,b,c){var d=WA(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=Ai(A(a.mz,a,c,b),d);return c};
var XA=function(a,b){var c=YA(a.o);qa(c,{state:a.F});c=new QA(a.o.o,a.o.A,b,c);c.H=a.o.B();a.o.o.Fa||(c.Z=a.o.F());c.$a=WA(a.o);c.segments=[BA(a.o)];return c};
var ZA=function(a,b){var c=XA(a,"watchtime");c.segments=b;c.H=a.A.o;return c};
var $A=function(a){a.A.update();return ZA(a,EA(a.A))};
var aB=function(a){a.o.o.remarketingUrl&&!a.O&&(bB(a,a.o.o.remarketingUrl),a.O=!0);a.o.o.ppvRemarketingUrl&&!a.S&&(bB(a,a.o.o.ppvRemarketingUrl),a.S=!0);cB(a)};
var dB=function(a,b){if(!a.isDisposed()){T(b.state,2)?(a.F="paused",0<eB(b,2)&&a.C&&$A(a).send()):T(b.state,8)?(a.F="playing",a.C&&(0,window.isNaN)(a.G)&&VA(a,!1)):a.F="paused";var c=a.B,d=b.state,e=WA(c.o),f;f=b.state;if(T(f,128))f="ER";else if(T(f,16)||T(f,32))f="S";else{var k=fB[Dy(f)];"B"==k&&T(f,4)&&(k="PB");f=k}if(f!=c.A){k=f;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.H();if(!c.isDisposed()){var l=OA(c);l.qoealert="1";l=Ug(c.o.A.yc,
l);aq(l)}c.M=!0}"B"!=k||"PL"!=c.A&&"PB"!=c.A||(c.H=!0);c.D=e}!c.o.A.experiments.A||"B"!=f&&"PB"!=f?NA(c,e,"cmt",[c.o.B().toFixed(3)]):c.Si(e);NA(c,e,"vps",[f]);c.A=f}if(T(d,128))c.onError(d.o.errorCode,d.o.errorDetail);(T(d,2)||T(d,128))&&c.Sg(e);a.D&&T(b.state,128)&&(a.Xi("error-100"),Di(a.D))}};
var gB=function(a){a.D=Ci(A(a.Xi,a,"heartbeat"),3E4)};
var cB=function(a){a.o.o.D.eventLabel=a.o.A.Ba;a.o.o.D.playerStyle=a.o.A.o;a.o.o.na&&(a.o.o.D.feature="pyv");a.o.o.D.vid=a.o.o.videoId;a.o.o.D.isAd=!("adunit"!=a.o.A.Ba&&!a.o.o.na)};
var bB=function(a,b,c){a.o.A.experiments.o&&a.o.o.visitorData&&tj(b)?Bj(b,{Ub:c,headers:{"X-Goog-Visitor-Id":a.o.o.visitorData}}):aq(b,c)};
var hB=function(a,b){this.ca=b;this.o={}};
var iB=function(a,b,c){if(b){var d=jB(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=kB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);lB(a,d,b)}};
var mB=function(a,b,c,d,e,f){if(b){var k=jB(a,b);k["iv-event"]=3;k["i-time"]=a.o[b]||"";hc(k,d||{});b=tb(e||[]);30==k["a-type"]&&(d=kB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);lB(a,k,b,c,f)}};
var nB=function(a,b){if(b){var c=jB(a,b);c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=[];if(30==c["a-type"]){var e=kB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}lB(a,c,d)}};
var kB=function(a,b,c){a=a.ca.getVideoData();if(a.ib){if((c=a.ib[c])&&Pw.test(c))return a=va("[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.qa)return rj(a.qa,{label:c,value:"a_id="+b});return""};
var lB=function(a,b,c,d,e){var f=1,k,l=-1;if(d){var m=!1;k=function(){f--;f||m||((0,window.clearTimeout)(l),m=!0,d())};
l=(0,window.setTimeout)(function(){m=!0;d()},1E3)}E(c||[],function(a){f++;
aq(a,k)});
e&&(f++,0!=e&&a.ca.$f(e,k));a.gb(b,k)};
var jB=function(a,b){var c={};if(b){var d=new gh(b);E(d.Na(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.ca.getCurrentTime().toFixed(2);
c.ps=a.ca.W().o;return c};
var oB=function(a,b,c,d){d=jB(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;lB(a,d,c)};
var pB=function(a,b,c,d){c&&(c=jB(a,c),c["iv-event"]=b,lB(a,c,d))};
var qB=function(a,b){this.Z=a;this.context=b;this.nm=!1;this.K=0};
var rB=function(a,b,c,d,e,f){b=new iq(b,c,{id:d});b.o="iv-module";e&&kq(b).subscribe("onEnter",e,a);f&&kq(b).subscribe("onExit",f,a);a.context.A.jb([b])};
var sB=function(a){return I()-a.K};
var tB=function(a,b,c,d,e,f,k){var l=A(function(){k&&this.context.A.pauseVideo();var a=qj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Yg(b,"ei"));Hx(b,d);Ix(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=sB(a);mB(a.context.logger,d,l,m,e,f)};
var uB=function(a,b){Q.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.ca=a;this.H=new Pq(this,250,!1,250);G(this,this.H);this.J=b;this.ya=null;this.D=[];this.C=this.A=this.G=this.F=null;R(this,a,"cardsteasershow",this.ZA);R(this,a,"cardsteaserhide",this.Gj);this.P("click",this.NE);this.P("mouseenter",this.Yz);this.P("mouseleave",this.Zz)};
var vB=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];E(a,function(a){b.push(["li","",a])});
return b};
var wB=function(a,b){if(b){var c=b.fk?"":["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,vB(b.od)]];a.A=new Q(c);a.A.o(a.element);c=$e("ytp-cards-hover-card",void 0);R(a,c,"click",pa(a.Cp,b));R(a,c,"mouseenter",a.Lw);R(a,c,"mouseleave",
a.Mw)}};
var xB=function(a,b){Bq(a,"text",b.teaserText);a.H.show();wB(a,b.ni);b.ni&&b.ni.fk&&J(a.element,"ytp-cards-combined-teaser");a.F=new Ud(function(){J(this.ca.Aa(),"ytp-cards-teaser-shown")},0,a);
a.F.start();yB(a.J,!1);a.ya=new Ud(a.Gj,580+b.durationMs,a);a.ya.start();b.lv&&J(a.element,"ytp-cards-auto-open-hover-card");b.Sx&&(new Ud(function(){J(this.ca.Aa(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.D.push(a.P("mouseover",a.ya.stop,a.ya));a.D.push(a.P("mouseout",function(){this.ya.start()}))};
var zB=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.Pa=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={Mo:a.impression,click:a.click,close:a.close,rC:a.teaser_impression,Xl:a.teaser_click}};
var AB=function(a,b,c){zB.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.od=b.meta_info;this.url=qA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var BB=function(a,b,c){zB.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=qA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=qA({target:"current",value:b.signin_url}));this.G=b.signin_title||null;this.F=b.signin_message||null};
var CB=function(a,b,c){BB.call(this,a,b,c);this.H=b.ypc_flow_type;this.C=b.innertube_request_params};
var DB=function(a,b,c){this.o=a;this.A=b;this.B=c};
var EB=function(a,b){var c=["ul",""];E(b.choices,function(a){c.push(["li",b.B+"-"+a.index.toString(),["label",b.C==a.index?"iv-card-poll-choice-checked":"",["div","iv-card-poll-choice-percent"],a.desc,["input","iv-card-poll-choice-input",{type:"radio",name:b.B,value:a.index.toString()}]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d=["iv-card","iv-card-poll"],e=[["div","iv-card-content",["h2","",b.title],["form","",["fieldset","",c]]]];b.A&&(d.push("iv-card-unavailable"),e.push(["div",["iv-card-sign-in"],["h2","",P("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:sA(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]));d=new Q(["div",d,{tabindex:"0"}].concat(e));e=d.element;void 0!==b.C&&FB(b,e);Bz(a.o.o,e,pa(a.D,b),a);b.A&&(e=$e("iv-card-sign-in-button",e),a.A(e,b.A,b.id,b.Pa,b.o.click,
5));return d};
var GB=function(a,b,c,d){var e=HB(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=IB(b),l=["iv-card"];b.A&&l.push("iv-card-unavailable");e=["div",l,{tabindex:"0"},["a","iv-click-target",{href:e},JB(b.imageUrl,f),["div","iv-card-content",["h2","",b.title],k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],["h2","",b.G],["p","",b.F],["a",["iv-card-sign-in-button","iv-button"],{href:sA(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]]));e=new Q(e);KB(a,e,b,c,d);
return e};
var LB=function(a,b,c){var d=HB(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"],f={},e=b.C&&b.B?["span",e,f,b.B]:"";c=["div",["iv-card",c],{tabindex:"0"},["a","iv-click-target",{href:d},JB(b.G,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],MB(b)]]];c=new Q(c);KB(a,c,b);return c};
var NB=function(a){return a.customMessage?["div","iv-card-message",a.customMessage]:""};
var JB=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
var MB=function(a){if(!a.od||0==a.od.length)return"";var b=["ul","iv-card-meta-info"];E(a.od,function(a){b.push(["li","",a])});
return b};
var IB=function(a){if(!a.customMessage)return"";var b=["iv-card-action","iv-card-primary-link"],c={};a.B&&(b.push("iv-card-action-icon"),c.style="background-image: url("+a.B+");");b=["div",b,c,["span","",a.customMessage]];a.showLinkIcon&&(b.push("\u00a0"),b.push(["span","iv-card-link-icon"]));return b};
var FB=function(a,b){OB(a,b);Yd(b,["iv-card-poll-expanded","iv-card-poll-voted"]);b.querySelector("fieldset").disabled=!0};
var OB=function(a,b){var c=0;E(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=e.count/c,e=$e(a.B+"-"+e.index.toString(),b),k=$e("iv-card-poll-choice-percent",e);Af(k,P("YTP_DRAWER_POLL_PERCENT",{PERCENT:(100*f).toFixed(0)}));e=$e("iv-card-poll-result-bar",e);Mf(e,"transform","scaleX("+f.toFixed(2)+")")}};
var SB=function(a,b,c){c?(a.o.A.pauseVideo(),a.o.A.Ja()&&Nx(a.o.A),mB(a.o.logger,b.Pa,c,void 0,b.o.click,5)):a.B(b.url,b.id,b.Pa,b.o.click,5)};
var HB=function(a,b,c){return b?xA(b,c,a.o.C.videoId,a.o.B):null};
var KB=function(a,b,c,d,e){c.A&&TB(a,Ye("iv-card-sign-in-button",b.element),c,c.A,e);TB(a,Ye("iv-click-target",b.element),c,c.url,d)};
var TB=function(a,b,c,d,e){E(b,function(a){if(e){var b=A(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.o.o.P(a,"click",b)}else this.A(a,d,c.id,c.Pa,c.o.click,5)},a)};
var UB=function(a,b,c){zB.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.od=b.meta_info;this.url=qA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var VB=function(a,b,c){zB.call(this,a,b,c);this.B=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.C=b.old_vote;this.A=null;b.signin_url&&(this.A=qA({target:"current",value:b.signin_url}))};
var WB=function(a,b,c){BB.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new XB(a[b]))};
var XB=function(a){this.merchant=D(a.merchant);this.price=D(a.price)};
var YB=function(a,b,c){BB.call(this,a,b,c);this.H=b.ypc_item_type;this.C=b.ypc_item_id;this.J=b.ypc_flow_type};
var ZB=function(a,b,c){zB.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.od=b.meta_info;this.C=!!b.is_live_now;this.url=qA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var $B=function(a,b,c){zB.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.od=b.meta_info;this.C=!!b.is_paygated;this.F=!!b.user_has_entitlement;this.url=qA({target:b.target||"new",value:b.url})};
var aC=function(a,b,c){qB.call(this,b,c);this.ca=a;this.Bi=this.D=this.S=this.V=!1;this.O=null;this.Zj=new Ud(w,c.B.useTabletControls?4E3:3E3);this.B=new DB(c,A(this.Lf,this),A(this.Di,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},P("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":P("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.H=new Q(a);this.F=this.H.element;this.M=new Pq(this.H,
330,!1);this.U=$e("iv-drawer-header",this.F);this.zc=$e("iv-drawer-content",this.F);a=["iv-drawer-teaser"];this.B.o.B.experiments.pv&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:P("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.Y=(new Q(a)).element;$e("iv-drawer-teaser-text",this.Y);this.A=[];this.C=this.J=this.o=null;this.G=[];(bC(this)||this.context.B.experiments.ka("cards_drawer_auto_open"))&&
2!=c.A.getPresentingPlayerType()&&(a=this.context.B.experiments.Bc("cards_drawer_auto_open_offset"),c=1E3*c.C.lengthSeconds,b=0<=a?a:c+a,b<c&&(rB(this,b,0x8000000000000,"",this.kv),a=this.context.B.experiments.Bc("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&rB(this,b,0x8000000000000,"",this.hv)))};
var cC=function(a,b){var c=dC(a,b);c&&(c==a.o&&(a.o=null),a.ca.yr(c.Ra.id),qf(c.ak),pb(a.A,c),a.Kh())};
var eC=function(a,b){a.D||(a.M.show(),a.J=new Ud(function(){J(this.context.A.Aa(),"ytp-iv-drawer-open")},0,a),a.J.start(),a.D=!0,a.K=I(),oB(a.context.logger,7,void 0,b&&b.Ra?b.Ra.Pa:void 0),E(a.A,function(a){a.Ei||(a.Ei=!0,iB(this.context.logger,a.Ra.Pa,a.Ra.o.Mo))},a),fC(a.ca),a.C=new Ud(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.L=a;this.U.focus()},330,a),a.C.start())};
var gC=function(a){a.D&&(a.M.ga(),Zd(a.context.A.Aa(),"ytp-iv-drawer-open"),a.D=!1,oB(a.context.logger,10),fC(a.ca),a.C&&a.C.stop(),a.C=new Ud(function(){this.L&&(this.L.focus(),this.L=null)},330,a),a.C.start())};
var hC=function(a,b){return a.context.B.experiments.ka(b)};
var iC=function(a){var b=$e("iv-drawer-close-button",a.F);a.context.o.P(b,"click",a.wv,a);a.context.o.P(a.zc,"touchend",function(){this.Zj.start()},a);
a.context.o.P(a.zc,"scroll",a.Kv,a);a.O=Nl(a.zc,"mousewheel",A(a.hE,a));a.context.D.subscribe("onHideControls",function(){this.Bi=!0},a);
a.context.D.subscribe("onShowControls",function(){this.Bi=!1},a);
a.context.D.subscribe("onVideoAreaChange",function(){this.Bi=Xd(this.ca.Aa(),"ytp-autohide")},a);
a.G.push(Ii("iv-teaser-shown",a.Rx,a));a.G.push(Ii("iv-teaser-clicked",a.Px,a));a.G.push(Ii("iv-hover-card-clicked",a.Ox,a));hC(a,"teaser_on_button_hover")&&a.G.push(Ii("iv-button-hovered",a.nC,a));hC(a,"log_teaser_hover")&&a.G.push(Ii("iv-teaser-hovered",a.Qx,a))};
var jC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return GB(a.B,b);case "collaborator":var c=a.B,d=["div",["iv-card","iv-card-channel"],{tabindex:"0"},["a",["iv-click-target","g-hovercard"],{href:HB(c,b.url,b.id),"data-ytid":b.channelId},JB(b.profileImageUrl),["div","iv-card-content",NB(b),["h2","iv-card-primary-link",b.title],MB(b)]]],d=new Q(d);KB(c,d,b);return d;case "donation":return c=a.B,d=
A(c.C,c,b),GB(c,b,d,d);case "episode":return LB(a.B,b,"iv-card-episode");case "movie":return LB(a.B,b,"iv-card-movie");case "playlist":return c=a.B,d=["div",["iv-card","iv-card-playlist"],{tabindex:"0"},["a","iv-click-target",{href:HB(c,b.url,b.id)},JB(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",NB(b),["h2","iv-card-primary-link",b.title],MB(b)]]],d=new Q(d),KB(c,d,b),d;case "poll":return EB(a.B,b);case "productListing":var c=
a.B,d=HB(c,b.url,b.id),e=!lb(b.offers)&&(b.sponsored||c.o.B.experiments.vC),f=["iv-card"],k="",l=IB(b);e&&(f.push("iv-card-product-listing"),k="iv-card-primary-link",l=b.offers[0],e=["div",null],l.price&&e.push(["div","iv-card-offer-price",l.price]),l.merchant&&e.push(["div","iv-card-offer-merchant",l.merchant]),l=e);e=b.sponsored?["div","iv-card-sponsored",P("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],
["div","iv-ad-info-callout"]]]]:"";d=new Q(["div",f,{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},["h2",k,b.title],l]]]);f=lf("span");f.innerHTML=P("YTP_AD_SETTINGS_INFO",{BEGIN_FORMAT:'<a target="_blank" href="https://www.google.com/settings/ads/onweb">',END_FORMAT:"</a>"});d.Db(f,"adInfo");KB(c,d,b);return d;case "tip":return c=a.B,d=A(c.F,
c,b),GB(c,b,d,d);case "video":return c=a.B,d=HB(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.C?["span",["yt-badge","yt-badge-live"],P("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],{tabindex:"0"},["a","iv-click-target",{href:d},JB(b.B,f),["div","iv-card-content",NB(b),["h2","iv-card-primary-link",b.title],MB(b),k]]],d=new Q(d),KB(c,d,b),d}return null};
var kC=function(a,b){if(0==a.A.length)return 0;var c=ib(a.A,function(a){return b.Ra.startMs>a.Ra.startMs||b.Ra.startMs==a.Ra.startMs&&b.Ra.timestamp>=a.Ra.timestamp?!0:!1});
return-1==c?0:c+1};
var lC=function(a,b){if(a.H.B){var c=new Mz([0,a.zc.scrollTop],[0,b.ak.offsetTop],600,Qz);a.context.o.P(c,"animate",function(a){this.zc.scrollTop=a.y},a);
a.context.o.P(c,"finish",function(a){this.zc.scrollTop=a.y},a);
c.play()}else a.H.yb(!0),a.zc.scrollTop=b.ak.offsetTop,a.H.yb(!1)};
var mC=function(a){return a.o&&a.o.Ra||a.A[0]&&a.A[0].Ra};
var dC=function(a,b){return eb(a.A,function(a){return a.Ra.id==b},a)};
var bC=function(a){return a.context.B.experiments.ka("product_listing_ads_cards_drawer_auto_open")};
var nC=function(a){return Ih(a.A,function(a){return a.Ra.sponsored&&"productListing"==a.Ra.type})};
var oC=function(a){if(!pC.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(qC,"#$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)]};
var rC=function(a,b,c,d,e){Mz.call(this,b,c,d,e);this.element=a};
var sC=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");rC.apply(this,arguments)};
var tC=function(a,b,c){qB.call(this,a,b);this.annotation=c;this.isActive=!1};
var uC=function(a,b,c){tC.call(this,a,b,c);this.A=null;this.G=!1;this.o=null;this.B=!1;this.C=0;this.F=this.D=null};
var vC=function(a,b,c,d,e,f){this.o=a;this.B=b;this.C=c;this.logger=d;this.A=e;this.D=f};
var wC=function(a,b,c){this.type=a;this.trigger=b;this.url=c};
var xC=function(a){if(!a)return null;var b=hA(a.type,yC),c=hA(a.trigger,zC),d=qA(dA(a.url));dA(a.subscribeData);return b?new wC(b,c,d):null};
var AC=function(a,b,c,d,e,f,k,l,m,p,u,v,z,x){this.F=a;this.C=b;this.G=c;this.D=d;this.A=e;this.L=f;this.B=k;this.K=l;this.textSize=m;this.H=p;this.J=u;this.effects=v;this.o=z;this.M=x};
var BC=function(a){if(!a)return null;var b=fA(a.fgColor,"#1A1A1A"),c=fA(a.bgColor,"#FFF"),d=fA(a.borderColor,"#000"),e=kA(a.borderWidth,0,5,!1,0),f=kA(a.bgAlpha,0,1,!1,.8),k=fA(a.highlightFontColor,"#F2F2F2"),l=kA(a.highlightWidth,0,5,!1,3),m=gA(a.textAlign),p=kA(a.textSize,3.3,30.1,!0,3.6107),u=gA(a.fontWeight),v=nA(a.padding),z=oA(a.effects),x=kA(a.cornerRadius,0,10,!0,0);if(a=dA(a.gradient)){var ga=kA(a.x1,0,100,!0,0),xa=kA(a.y1,0,100,!0,0),K=kA(a.x2,0,100,!0,100),Y=kA(a.y2,0,100,!0,100),Mb=fA(a.color1,
"#FFF"),yd=fA(a.color2,"#000");a=new CC(ga,xa,K,Y,Mb,yd,kA(a.opacity1,0,100,!0,100),kA(a.opacity2,0,100,!0,0))}else a=null;return new AC(b,c,d,e,f,k,l,m,p,u,v,z,x,a)};
var CC=function(a,b,c,d,e,f,k,l){this.D=a;this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=k;this.C=l};
var DC=function(a,b){this.o=a;this.videoId=b};
var EC=function(a,b,c){var d=a.F,e=a.G,f=a.o?a.o:"xy",k=FC(c,a.C,f);a=GC(c,a.A,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new te(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)};
var FC=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
var GC=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
var HC=function(a,b,c,d,e,f,k,l,m,p,u){this.x=a;this.y=b;this.D=c;this.B=d;this.t=e;this.K=f;this.F=k;this.G=l;this.C=m;this.A=p;this.o=u};
var IC=function(a,b){if(!a)return null;var c=jA(a.x,0),d=jA(a.y,0),e=jA(a.w,0),f=jA(a.h,0),k=lA(a.t),l=jA(a.scaleSlope,1);return b(c,d,e,f,k,jA(a.d,0),jA(a.px,0),jA(a.py,0),jA(a.scaleSlopeX,l),jA(a.scaleSlopeY,l),hA(a.scaleDimension,JC,"xy"))};
var KC=function(a,b){var c=LC(b,EC(a,new te(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=ke(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=ke(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
var MC=function(a){return a?IC(a,function(a,c,d,e,f,k,l,m,p,u,v){return new HC(a,c,d,e,f,k,l,m,p,u,v)}):null};
var NC=function(a,b,c,d,e,f,k,l,m,p,u,v,z){HC.call(this,a,b,c,d,e,l,m,p,u,v,z);this.H=f;this.J=k};
var OC=function(a){if(!a)return null;var b=jA(a.sx,0),c=jA(a.sy,0);return IC(a,function(a,e,f,k,l,m,p,u,v,z,x){return new NC(a,e,f,k,l,b,c,m,p,u,v,z,x)})};
var PC=function(a,b,c,d){this.type=a;this.A=b;this.o=c;this.B=d};
var QC=function(a){if(!a)return null;var b=hA(a.type,RC,"rect"),c=mA(a.rectRegion,MC),d=mA(a.anchoredRegion,OC);a=mA(a.shapelessRegion,MC);return new PC(b,c,d,a)};
var SC=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};
var TC=function(a,b){this.A=a;this.o=b};
var UC=function(a,b){this.state=a;this.o=b};
var VC=function(a){if(!a)return null;var b=hA(a.state,WC);a=eA(a.ref);return b?new UC(b,a):null};
var XC=function(a,b,c,d){this.o=a||[];this.B=b||[];this.C=c;this.A=d;this.value=!1};
var YC=function(a){if(!a)return null;var b=mA(a.condition,VC),c=mA(a.notCondition,VC),d=iA(a.show_delay,!1);a=iA(a.hide_delay,!1);return b||c?new XC(b,c,d,a):null};
var ZC=function(a,b,c){E(a.o,pa(b,!1),c);E(a.B,pa(b,!0),c)};
var $C=function(a,b,c,d,e,f,k,l,m,p,u,v,z,x,ga,xa){this.id=a;this.author=b;this.type=c;this.style=d;this.F=e;this.A=f;this.D=k||[];this.J=l||[];this.o=m;this.H=p;this.C=u;this.G=v;this.B=x;this.data=ga;this.Pa=xa};
var aD=function(a){if(!a)return null;var b=eA(a.id),c=eA(a.author),d=hA(a.type,bD),e=hA(a.style,cD),f=gA(dA(a.TEXT)),k=gA(a.data),k=0!=k.length?be(k):{},l;var m=dA(a.segment);m?(eA(m.timeRelative),l=eA(m.spaceRelative),l=(m=mA(m.movingRegion,QC))?new TC(l,m):null):l=null;var m=mA(a.action,xC),p=mA(a.trigger,YC),u=BC(dA(a.appearance));u||(u=BC({}));var v=hA(a.coordinate_system,dD,"video_relative"),z;z=(z=dA(a.image_source))?new DC(gA(z.standard_url),gA(z.video_id)):null;var x=iA(a.closeable,!0),ga=
gA(a.html_blob);a=gA(a.log_data);return b&&d?new $C(b,c,d,e,f,l,m,p,u,v,z,x,0,ga,k,a):null};
var eD=function(a){return(a=fD(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
var gD=function(a){return hD(a,function(a){return"click"==a.trigger})};
var hD=function(a,b){return Ih(a.D,b,void 0)};
var iD=function(a,b,c){E(a.D,b,c)};
var fD=function(a,b){return eb(a.D,b,void 0)};
var jD=function(a,b,c){E(a.J,b,c)};
var kD=function(a,b){O(a.J,b,void 0)};
var lD=function(a){return(a=mD(a))?SC(a):null};
var mD=function(a){a.A?(a=a.A,a=a.o.length?a.o[0]:null):a=null;return a};
var nD=function(a,b){var c=lD(a);return c&&b?GC(b,c.A,c.o?c.o:"xy"):1};
var oD=function(a,b,c){tC.call(this,a,b,c);this.G=this.C=this.H=!1;this.F=5E3;this.o=null;this.qg=M("div","iv-promo-contents");this.A=this.B=this.Qb=null;this.D=new Ud(function(){this.Qb.setAttribute("aria-hidden",!0);Oq(this.B);Nq(this.A)},700,this)};
var pD=function(a){var b=a.annotation.data,c;if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.F=b.collapse_delay_ms||a.F;var d=["iv-promo","iv-promo-inactive"];a.la().setAttribute("aria-hidden",!0);a.la().setAttribute("aria-label",P("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.la().tabIndex=0;var e;if(b.image_url){e=M("div",["iv-promo-img","iv-click-target"]);var f=M("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&
!b.is_live?(f=M("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=M("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Lf(e,eD(a.annotation),a.annotation.id,a.annotation.Pa,null,c)}f=eD(a.annotation);a.Qb=f?M("a",{href:sA(f),"class":"iv-promo-txt"}):M("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=M("p",null,M("strong",null,b.text_line_1));l=M("p",null,M("span","iv-promo-link",b.text_line_2));
J(a.Qb,"iv-click-target");a.Lf(a.Qb,eD(a.annotation),a.annotation.id,a.annotation.Pa,null,c);break;case "playlist":case "video":k=M("p",null,M("span",null,b.text_line_1));l=M("p",null,M("strong",null,b.text_line_2));b.is_live&&(k=l,l=M("span",["yt-badge","iv-promo-badge-live"],P("YTP_LIVE_NOW")));J(a.Qb,"iv-click-target");a.Lf(a.Qb,eD(a.annotation),a.annotation.id,a.annotation.Pa,null,c);d.push("iv-promo-video");break;case "vote":k=M("p",null,M("strong",null,b.text_line_1)),l=M("p",null,M("span",
null,b.text_line_2)),m=M("div","iv-promo-button-container"),c=M("button",["iv-button","iv-promo-button"],M("span","iv-button-content",b.button_text)),a.context.o.P(c,"click",function(a){a.stopPropagation();mB(this.context.logger,this.annotation.Pa,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Qb=$e("iv-promo-txt",this.qg);a=$e("iv-promo-button-container",this.qg);var d=M("div",["iv-promo-txt","iv-click-target"]),e=M("p",null,M("strong",null,c.text_line_3)),c=M("p",
null,c.text_line_4);nf(d,e,c);qf(a);rf(d,this.Qb);Zd(this.la(),"iv-promo-with-button");this.Lf(d,eD(this.annotation),this.annotation.id,this.annotation.Pa)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Qb.appendChild(k);
l&&a.Qb.appendChild(l);a.qg.appendChild(a.Qb);m&&a.qg.appendChild(m);k=M("div","iv-promo-actions");a.A=M("button",["iv-promo-expand","ytp-button"]);a.A.title=P("YTP_EXPAND");a.context.o.P(a.A,"click",pa(a.Ik,5E3),a);k.appendChild(a.A);Oq(a.A);a.context.o.P(a.la(),"mouseover",a.ww,a);a.context.o.P(a.la(),"mouseout",a.vw,a);a.context.o.P(a.la(),"touchend",pa(a.Ik,5E3),a);a.B=M("button",["iv-promo-close","ytp-button"]);a.B.title=P("YTP_CLOSE");a.context.o.P(a.B,"click",a.iE,a);k.appendChild(a.B);Yd(a.la(),
d);e&&mf(a.la(),e);mf(a.la(),a.qg);mf(a.la(),k)};
var qD=function(a){a.C||a.G||a.o||(J(a.la(),"iv-promo-collapsed"),a.C=!0,a.D.start())};
var rD=function(a){a.D.stop();a.C&&(Zd(a.la(),"iv-promo-collapsed"),a.C=!1,a.Qb&&a.Qb.removeAttribute("aria-hidden"),Oq(a.A),Nq(a.B))};
var sD=function(a,b){a.o||(a.o=Sd(function(){this.o&&(Td(this.o),this.o=null);qD(this)},b,a))};
var tD=function(a,b,c){this.o={};this.A=!1;this.D="ivTrigger:"+a;this.B=c;ZC(b,function(a,b){var c=uD(b.state,b.o);this.B.subscribe(c,A(this.C,this,c,a));this.o[c]=a},this)};
var uD=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
var vD=function(a,b,c){this.B=a;this.annotation=b;this.o=c;this.A=null;this.C=this.isVisible=!1;wD(b,a)};
var wD=function(a,b){kD(a,function(c){return new tD(a.id,c,b)})};
var xD=function(a){a.B.unsubscribe("onResize",a.Qr,a);a.B.unsubscribe("onVideoAreaChange",a.hq,a)};
var yD=function(a){a.A&&(a.A.stop(),a.A=null)};
var zD=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
var AD=function(){};
var BD=function(a,b,c,d,e,f,k,l){this.D=a;this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=n(k)?k:null;this.C=n(l)?l:null};
var CD=function(){this.ua=[];this.xa=[];this.dc=[]};
var DD=function(a,b,c){0==db(a.ua)?a.dc.length-=2:(a.ua.push(0),a.xa.push(1));a.dc.push(b,c);a.Ob=a.Pc=[b,c]};
var ED=function(a,b,c,d){var e=a.Ob[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Ob[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ua.push(3);a.xa.push(1);a.dc.push(b,c,d,90,e,f);a.Zg=!1;a.Ob=[e,f]};
var FD=function(a,b){for(var c=a.dc,d=0,e=0,f=a.ua.length;e<f;e++){var k=a.ua[e],l=GD[k]*a.xa[e];b(k,c.slice(d,d+l));d+=l}};
var HD=function(a,b){this.J=a;this.K=null==b?1:b};
var ID=function(a,b,c){this.B=a;this.o=b;this.A=null==c?1:c};
var JD=function(){};
var KD=function(a){H.call(this);this.M=a||Ue();this.S=null;this.Le=!1;this.o=null;this.D=void 0;this.F=this.H=this.J=null};
var LD=function(a,b){a.H&&E(a.H,b,void 0)};
var MD=function(a,b,c,d,e){KD.call(this,e);this.width=a;this.height=b;this.C=c||null;this.K=d||null};
var ND=function(a){var b=a.zg();return b?b.width/(a.C?new re(a.C,a.K):a.zg()).width:0};
var OD=function(a,b){H.call(this);this.Bg=a;this.Ck=b;this[Fc]=!1};
var PD=function(a,b,c,d){OD.call(this,a,b);a=this.Ck;b=this.la();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",c.A),c=c.getWidth(),y(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/ND(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Ck;a=this.la();if(d instanceof HD)a.setAttribute("fill",d.J),a.setAttribute("fill-opacity",d.K);else if(d instanceof BD){b="lg-"+d.D+"-"+d.G+"-"+d.F+"-"+d.H+"-"+d.o+"-"+d.A;var e=
QD(c,b);if(!e){var e=RD(c,"linearGradient",{x1:d.D,y1:d.G,x2:d.F,y2:d.H,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.o;fa(d.B)&&(f+=";stop-opacity:"+d.B);f=RD(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.A;fa(d.C)&&(f+=";stop-opacity:"+d.C);d=RD(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=SD(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};
var TD=function(a,b){OD.call(this,a,b)};
var UD=function(a,b){OD.call(this,a,b)};
var VD=function(a,b,c,d){PD.call(this,a,b,c,d)};
var WD=function(a,b){OD.call(this,a,b)};
var XD=function(a,b,c,d){PD.call(this,a,b,c,d)};
var YD=function(a,b){OD.call(this,a,b)};
var ZD=function(a,b,c,d,e){MD.call(this,a,b,c,d,e);this.A={};this.O=xc&&!zc(526);this.L=new Cm(this)};
var RD=function(a,b,c){a=a.M.o.createElementNS("http://www.w3.org/2000/svg",b);c&&$D(a,c);return a};
var $D=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
var aE=function(a,b,c,d){b=RD(a,"path",{d:bE(b)});c=new XD(b,a,c,d);a.B.la().appendChild(c.la())};
var bE=function(a){var b=[];FD(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(" ")};
var SD=function(a,b,c){if(b in a.A)return a.A[b];var d="_svgdef_"+cE++;c.setAttribute("id",d);a.A[b]=d;a.G.appendChild(c);return d};
var QD=function(a,b){return b in a.A?a.A[b]:null};
var dE=function(){eE||(eE=new Qd(400),eE.start());return eE};
var fE=function(){this.o=!1;this.D=this.B=null};
var gE=function(a,b,c){a.B?(a.B.setSize(b,c),a.B.clear()):(b=new ZD(b,c,void 0,void 0,void 0),a.B=b,a.B.ko(),a.D=M("div"),b=a.B.la(),a.D.appendChild(b));return a.B};
var hE=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Pb(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
var iE=function(a,b){var c;c=":"+(JD.getInstance().o++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
var jE=function(a,b){var c=iE(a,hE("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=iE(a,hE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},hE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=iE(a,hE("feComposite",{"in":c,in2:b,operator:"in"}));return iE(a,hE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
var kE=function(a,b){var c=iE(a,hE("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=iE(a,hE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=iE(a,hE("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=iE(a,hE("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=iE(a,hE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=iE(a,hE("feComposite",{operator:"out","in":c,in2:d}));return iE(a,hE("feComposite",{operator:"over","in":b,
in2:c}))};
var lE=function(a,b){return b};
var mE=function(a){var b=hE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";E(a,function(a){a:{switch(a){case "bevel":a=jE;break a;case "dropshadow":a=kE;break a}a=lE}c=a(b,c)});
return b};
var nE=function(a){a=$d(a,function(a){return a in oE});
Cb(a,function(a,c){return oE[a]-oE[c]});
return a};
var pE=function(a){return eb(a,function(a){return"dropshadow"==a})?new qe(0,7,7,0):new qe(0,0,0,0)};
var qE=function(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;b=rE(b,c,f);aE(a,b,d,e)};
var rE=function(a,b,c){var d=new CD;DD(d,a.left+b+c,a.top+c);d.tb(a.left+a.width-b-c,a.top+c);ED(d,b,b,-90);d.tb(a.left+a.width-c,a.top+a.height-b-c);ED(d,b,b,0);d.tb(a.left+b+c,a.top+a.height-c);ED(d,b,b,90);d.tb(a.left+c,a.top+b+c);ED(d,b,b,180);d.close();return d};
var sE=function(a,b,c,d){var e=a.M;return e?new BD(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 HD(a.C,tE(d,a.A))};
var tE=function(a,b){return a?Math.max(b,.9):b};
var uE=function(a,b){var c=ue(a),d=pE(b);ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=window.NaN);return new te(c.left,c.top,c.right-c.left,c.bottom-c.top)};
var vE=function(a,b,c){if(c.length&&(b=Ze("g",void 0,b),b.length)){var d=nE(c);if(d){c="effects:"+(d?d.join("|"):"");var e=QD(a,c);e?a=e:(d=mE(d),a=0<d.childNodes.length?SD(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
var wE=function(){fE.call(this);this.C=0};
var xE=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"};
var yE=function(){fE.call(this)};
var zE=function(a,b,c){fE.call(this);this.C=a||0;this.G=b||0;this.F=c||!1};
var AE=function(a,b){var c=a.width,d=a.height,e=0,f=0;0<b&&(a.width/a.height>b?(d=a.width/b,f=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new te(e,f,c,d)};
var BE=function(){fE.call(this)};
var CE=function(){wE.call(this)};
var DE=function(a,b){this.o=a;this.A=b||null};
var LC=function(a,b){var c;c=a.A?KC(a.A,new DE(a.o)):a.o;var d=b.clone(),e=c.left;c=c.top;e instanceof oe?(d.left+=e.x,d.top+=e.y):(d.left+=e,fa(c)&&(d.top+=c));return d};
var EE=function(a,b,c,d,e){this.o=a;this.U=b;this.F=c;this.Da=d;this.aa=e;this.S=!1;this.G=new zz(this);this.O=this.D=this.H=this.M=this.A=null;this.Y=!1;this.Z=this.K=this.L=null;this.tl=new Am(this.uw,100,this);this.J=new Ud(this.po,500,this);this.V=this.B=this.C=null};
var FE=function(a,b){var c=A(function(a,c,f){c=f?GE(this,c,A(f,this)):GE(this,c);this.G.P(b,a,c)},a);
c("mouseover","d",a.Rr);c("mouseout","c",a.Og);c("click","a");c("touchend","a")};
var HE=function(a){if(a.o.G){var b;hD(a.o,function(a){return"close"==a.type})?b=a.A:(a.C=M("div",["annotation-close-button",
"hid"]),ri(a.C,"annotation_id",a.o.id),a.A.appendChild(a.C),b=a.C);var c=function(a){a.stopPropagation()};
a.G.P(b,"click",GE(a,"b",c));a.G.P(b,"touchend",GE(a,"b",c))}};
var GE=function(a,b,c){return A(function(a){if(this.aa)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;Oq(e);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Hf(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,
a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{Nq(e)}}e=jg(a.target);a=new oe(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.Da.R(b,this.o)},a)};
var IE=function(a){if(a.A||a.B){var b=lD(a.o);if(b){var c=JE(a);if(a.A){var b=KC(b,c),d=KE(LE(a.F));eg(a.A,b.width,b.height);Tf(a.A,b.left,b.top);a.M=new te(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=lD(a.o))&&d?FC(d,e.C,e.o?e.o:"xy"):1;var f=nD(a.o,d),d=a.o.o;d.J?d=d.J:(d="speech"==a.o.style?1.6:.8,d=new qe(d,d,d,d));d=new qe(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.D&&(d.right+=1.5*c.o.height/100);a.A.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+
d.left+"px";"label"==a.o.style&&a.H&&(a.H.style.padding=a.A.style.padding);var d=c.o,k=!1,l=0,m=0,p;p=KE(LE(a.F));var u=a.F.app.ea,v=LE(u.o).Ma(),v=new te(0,0,v.width,v.height);if(u.B.A&&!ME(u)){if(u.o.W().Ga){var z=NE(u)?69:48;v.top+=z;v.height-=z}u.F&&(v.height-=NE(u.F.C)?72:50)}ve(p,v)?p=null:(v.top+=20,v.height-=40,"player_relative"!=a.o.H&&(v.left-=p.left,v.top-=p.top),p=v);p&&(l=p.top-(b.top+b.height),m=b.top-(p.top+p.height),k=0<l||0<m);if(k&&p){d=p;e=l;var f=m,x;a.D&&(m=OE(a,23,b,e,f),a.C&&
(x=43-m.width,0<x&&(b.left+m.left-x>d.left&&(m.left-=x),m.width+=x)),x=m,eg(a.D,m.width,m.height),Tf(a.D,m.left,m.top));a.C&&(x?b=new oe(x.left+x.width-23-18,a.Y?x.top+2:x.top+x.height-18-2):(x=OE(a,18,b,e,f),b=new oe(x.left,x.top),eg(a.C,x.width,x.height)),Tf(a.C,b));a.O=new te(a.M.left+x.left,a.M.top+x.top,x.width,x.height);a.L=a.G.P(LE(a.F),"mousemove",a.gE)}else a.D&&(x=e/f*d.height*4.2/100,x=new re(x,x),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,x=new te(b.width-x.width-e,
b.height-x.height-e,x.width,x.height)):x=new te(b.width-x.width-3*d.height/100,(b.height-x.height)/2,x.width,x.height),eg(a.D,x.width,x.height),Tf(a.D,x.left,x.top)),a.C&&(x=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Tf(a.C,x&&e?new oe(b.width-9,-9):x?new oe(b.width-9,45<b.height?9:b.height-9):e?new oe(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new oe(45<b.width?b.width-9-18:-9,b.height-9):new oe(-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.L:b.F;x=KE(LE(a.F));c.style.fontSize=360*b.textSize*nD(a.o,x)/100+"px";x=a.o.style;c.style.textAlign=b.K?b.K:"title"==x||"highlightText"==x?"center":"left";b.H&&(c.style.fontWeight=b.H);a=a.A;c=a.style.overflow;b=$e("annotation-link-icon",a);x=Mq(b);d=$e("annotation-close-button",a);e=Mq(d);b&&x&&Oq(b);d&&e&&Oq(d);m=f="";if(l=$e("inner-text",a))f=l.style.overflow,m=l.style.position,l.style.overflow="visible",l.style.position="static";a.style.overflow="scroll";
if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){p=k=ng(a);u=5;for(v=Math.floor(k/2);v;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=p,p=Math.min(p+v,k)):p=Math.max(p-v,u),v=Math.floor(v/2),a.style.fontSize=p+"px";p!=u&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=u+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);d&&e&&Nq(d);b&&x&&Nq(b)}}}};
var OE=function(a,b,c,d,e){var f=0<e;b=new te(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),J(a.A,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),J(a.A,"annotation-extend-up"),a.Y=!0);return b};
var PE=function(a){return"label"!=a.o.style||a.B.o};
var JE=function(a){var b;b=KE(LE(a.F));if("player_relative"==a.o.H){var c=LE(a.F).Ma();b=new te(-b.left,-b.top,c.width,c.height)}else b=new te(0,0,b.width,b.height);return new DE(b,a.V?lD(a.V):null)};
var QE=function(a,b){return b?new te(a.x+b.left,a.y+b.top,b.width,b.height):null};
var RE=function(a){mq.call(this,a);this.ea=!0;this.sa="iv-module";this.H="iv";this.K=0;this.B={};this.L={};this.D=new hB(0,a);a=SE;this.subscribe("onHideControls",this.Ez,this);this.subscribe("onShowControls",this.RA,this);this.subscribe("onStateChange",this.vA,this);this.subscribe("d",this.bE,this);this.subscribe("c",this.Og,this);this.subscribe("a",this.oy,this);this.subscribe("b",this.Ty,this);this.subscribe("vast_info_card_add",this.nB,this);this.subscribe("cards_drawer_set_visible",this.Hy,this);
this.O=M("DIV",[a.eu,"html5-stop-propagation"]);this.U=M("DIV",a.Dt);this.C=null;a=M("DIV",a.ht,this.O,this.U);J(a,this.sa);LE(this.o).U.appendChild(a);this.F=this.A=null;this.M=[]};
var TE=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 f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""):
e&&f.push(TE(a,e))}return c};
var UE=function(a,b,c){return!(a.loaded&&a.K==b&&a.o.getVideoData().videoId==c)};
var VE=function(a,b){var c=WE(a,b);if(!c&&"marker"!=b.type)return null;jD(b,function(a){a=A(this.jB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new vD(a.S,b,c)};
var XE=function(a,b){var c=RE.o(),d=null;switch(b.type){case "branding":if(a.o.W().xc)break;a.C.element.appendChild(c);d=new uC(c,YE(a),b);break;case "promotion":Uq(a.o,c,4),d=new oD(c,YE(a),b)}d&&d.Zi();return d};
var ZE=function(a){var b=a.o.getVideoData();if(b.Ye){var c=a.o.W(),d=c.J.remove(b.videoId);if(d){var e={format:"XML",wd:{}};c.experiments.ka("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.wd.gaming="1");e.Ub=A(function(a,b,c){UE(this,a,b)||(a=vj(c)&&c.responseXML?c.responseXML:null)&&$E(this,a)},a,a.K,b.videoId);
Fu()&&(e.Ub=aF(a,e.Ub));e.Bb={ic_only:1};bF(a,e,d);Bj(b.Ye,e)}}};
var bF=function(a,b,c){b.method="POST";b.Bb=b.Bb||{};c.ve&&(b.Bb.ic_xml=c.ve);c.Qf&&(b.Bb.ic_track=c.Qf);if(a=a.o.getVideoData(1))b.Bb.organic_video_id=a.videoId};
var cF=function(a,b){if(!a.A){var c=new Q(["div","hid"]);a.A=new aC(a.o,c.element,YE(a));c.o(a.C.element);a.A.Zi()}var d=b&&b.data&&b.data.card_type;if(d&&dF[d]){c=a.A;d=new dF[d](b.id,b.data,b.Pa);c.V||(Yd(c.la(),["html5-stop-propagation","iv-drawer-manager"]),Uq(c.ca,c.F,5),iC(c),c.V=!0);cC(c,d.id);var e=jC(c,d);if(e){var f={Ra:d,ak:e.element,$o:!1,Ei:!1},k=kC(c,f);vb(c.A,k,0,f);e.o(c.zc,k);c.Kh();d.D?rB(c,d.startMs,0x8000000000000,d.id,pa(c.gC,f)):(e=1E3*c.context.A.getCurrentTime(),5E3>e&&e>d.startMs&&
c.Ol(f,!1),rB(c,d.startMs,d.startMs+1,d.id,pa(c.Ol,f,!1)))}}fC(a.o)};
var YE=function(a){a.F||(a.F=new vC(new zz(a),a.o.W(),a.o.getVideoData(),a.D,a.o,a.S));return a.F};
var $E=function(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=TE(a,c[d]),f=null;try{f=aD(e)}catch(k){}f&&(RE.C(f)?(e=XE(a,f))&&(a.L[f.id]=e):RE.B(f)?cF(a,f):(e=VE(a,f))&&(a.B[f.id]=e))}Pb(a.B,function(a){var b=a.annotation;b.A&&b.A.A&&(b=this.B[b.A.A])&&(a.o.V=b.annotation)},a)};
var eF=function(a,b,c,d){d?fF(a,b,c):gF(a,b,c)};
var gF=function(a,b,c){if(b=a.B[b])yD(b),c&&c.A?(a=A(a.oo,a,b),b.A=new Ud(a,2E3),b.A.start()):a.oo(b)};
var fF=function(a,b,c){if(b=a.B[b])yD(b),c&&c.C?(a=A(a.Qq,a,b),b.A=new Ud(a,2E3),b.A.start()):a.Qq(b)};
var hF=function(a,b,c){if("new"==b.target)return!1;var d=sA(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!tA(d))return!1;d=qj(d);if(d.list||d.p)return!1;b=wA(b);if(!b)return!1;if(c==b)return!0;a=a.o.W();return a.L&&a.ha?!0:!1};
var WE=function(a,b){if(iF(b)){var c=b.G||hD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new EE(b,A(a.O.appendChild,a.O),a.o,a.S,c)}return null};
var iF=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in cD)if(a.style==cD[b])return!0;return!1};
var jF=function(a,b,c,d){a.R(uD(b,d),c,d)};
var aF=function(a,b){return A(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.M.push(Gu(b,void 0))}},a)};
var kF=function(a){return!!a.A&&a.A.isAvailable()};
var lF=function(a){kF(a);return!!a.A&&a.A.D};
var mF=function(a,b){kF(a);a.A&&(b?eC(a.A):gC(a.A))};
var nF=function(a,b,c){a.R("publish_external_event",b?"cardsteasershow":"cardsteaserhide",c)};
var oF=function(a){this.ca=a;this.A=null;this.o=new te(0,0,0,0);this.D=new re(0,0);this.C=this.B=0;pF&&zc(11)&&(this.A=window.document.createElement("canvas").getContext("2d"),zc(12.10532)||(this.B=3))};
var qF=function(a,b){if(null===a.A)return b;var c=new re(b.videoWidth,b.videoHeight);if(!se(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=rF(LE(a.ca)),e=16/9;d<e?(a.o.width=c.width*d/e,a.o.left=Math.ceil(.5*(c.width-a.o.width)),a.o.width|=0):d>e&&(a.o.height=c.height*e/d,a.o.top=Math.ceil(.5*(c.height-a.o.height)),a.o.height|=0)}0<a.B&&(a.C^=1,2<=a.o.top?(a.C?sF(a,b,0,0,a.o.width,a.o.top-1):sF(a,b,
0,b.videoHeight-a.o.top+1,a.o.width,a.o.top-1))&&--a.B:2<=a.o.left&&(a.C?sF(a,b,0,0,a.o.left-1,a.o.height):sF(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(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.A.canvas};
var sF=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);try{a.A.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.A.getImageData(c,d,e,f).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};
var tF=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 oF(a)};
var uF=function(a,b){tF.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};
var vF=function(a,b){if(!(b.da||Fl&&!lt()))return!1;if(ix(a)&&3!=a.da&&4!=a.da)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};
var wF=function(a,b){tF.call(this,a,!0,b);this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float amt = 0.05;\n  float maxCol = max(max(col.x, col.y), col.z);\n  amt = amt * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - 0.5) * amt;\n  gl_FragColor = col;\n}";
this.B=null;this.ca=a;this.J=a.W().experiments.ka("white_noise_with_interval");this.C=0};
var xF=function(a,b){wF.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};
var yF=function(){this.o=new window.Float32Array(16);this.B=new window.Float32Array(16);this.A=new window.Float32Array(16);this.identity()};
var zF=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};
var AF=function(a,b){this.J=a;this.S=b;this.D=new yF;this.Z=this.Y=this.aa=this.Da=null;this.B=.872;this.O=this.U=this.V=this.A=this.o=0;this.F=!0;this.C=this.H=0;this.K=new oF(a)};
var BF=function(a,b){AF.call(this,a,b);this.M=null;this.G=0;this.L=!0};
var CF=function(){};
var DF=function(a,b,c){return a[b]=a[b]||c};
var EF=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
var FF=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};
var GF=function(){var a;if((a=Object.create)&&HF.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
var IF=function(){var a=JF.href,b;if(KF.dpo)b=KF.h;else{b=KF.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};
var LF=function(a){var b=DF(KF,"PQ",[]);KF.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)};
var MF=function(a){return DF(DF(KF,"H",GF()),a,GF())};
var NF=function(a,b,c){b&&0<b.length&&(b=OF(b),c&&0<c.length&&(b+="___"+OF(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=DF(PF,"_p",GF()),DF(b,c,GF())[a]=(new Date).getTime(),b=QF.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
var OF=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
var RF=function(a){throw Error("Bad hint"+(a?": "+a:""));};
var SF=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=TF[f],l=null;k?l=k(e,b,c,d):RF("no hint processor for: "+f);l||RF("failed to generate load url");b=l;c=b.match(UF);(d=b.match(VF))&&1===d.length&&WF.test(b)&&c&&1===c.length||RF("failed sanity: "+a);return l};
var XF=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=YF(a);ZF.test(c)||RF("invalid_callback");b=$F(b);d=d&&d.length?$F(d):null;return[(0,window.encodeURIComponent)(a.KB).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.tn?"/am="+e(a.tn):"",a.tq?"/rs="+e(a.tq):"",a.Ss?"/t="+e(a.Ss):"","/cb=",e(c)].join("")};
var YF=function(a){"/"!==a.charAt(0)&&RF("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))RF("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 f=b[d].split("="),k=(0,window.decodeURIComponent)(f[0]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");aG.test(b)||RF("invalid_prefix");c=bG(a,"k",!0);d=bG(a,"am");e=bG(a,"rs");
a=bG(a,"t");return{KB:b,version:c,tn:d,tq:e,Ss:a}};
var $F=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");cG.test(e)&&b.push(e)}return b.join(",")};
var bG=function(a,b,c){a=a[b];!a&&c&&RF("missing: "+b);if(a){if(dG.test(a))return a;RF("invalid: "+b)}return null};
var eG=function(){var a=IF();if(!a)throw Error("Bad hint");return a};
var fG=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>EF.call(b,e)&&c.push(e)}return c};
var gG=function(a){"loading"!=hG.readyState?iG(a):hG.write("<"+jG+' src="'+(0,window.encodeURI)(a)+'"></'+jG+">")};
var iG=function(a){var b=hG.createElement(jG);b.setAttribute("src",a);b.async="true";(a=hG.getElementsByTagName(jG)[0])?a.parentNode.insertBefore(b,a):(hG.head||hG.body||hG.documentElement).appendChild(b)};
var kG=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<lG.length;d++){var e=lG[d][0],f=lG[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
var mG=function(a,b,c){nG(function(){var c;c=b===IF()?DF(oG,"_",GF()):GF();c=DF(MF(b),"_",c);a(c)},c)};
var pG=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);kG(a,c);var d=a?a.split(":"):[],e=c.h||eG(),f=DF(KF,"ah",GF());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,p=k.length&&k[k.length-1]||null,u=p;p&&p.hint==m||(u={hint:m,features:[]},k.push(u));u.features.push(l)}var v=k.length;if(1<v){var z=c.callback;z&&(c.callback=function(){0==--v&&z()})}for(;d=k.shift();)qG(d.features,c,d.hint)}else qG(d||[],c,e)};
var qG=function(a,b,c){function d(a,b){if(v)return 0;rG.clearTimeout(u);z.push.apply(z,ga);var d=((oG||{}).config||{}).update;d?d(f):f&&DF(KF,"cu",[]).push(f);if(b){NF("me0",a,x);try{mG(b,c,p)}finally{NF("me1",a,x)}}return 1}
a=FF(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,p=void 0;"function"==typeof m&&(p=m);var u=null,v=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=DF(MF(c),"r",[]).sort(),z=DF(MF(c),"L",[]).sort(),x=[].concat(m);0<k&&(u=rG.setTimeout(function(){v=!0;l()},k));
var ga=fG(a,z);if(ga.length){var ga=fG(a,m),xa=DF(KF,"CP",[]),K=xa.length;xa[K]=function(a){function b(){var a=xa[K+1];a&&a()}
function c(b){xa[K]=null;d(ga,a)&&LF(function(){e&&e();b()})}
if(!a)return 0;NF("ml1",ga,x);0<K&&xa[K-1]?xa[K]=function(){c(b)}:c(b)};
if(ga.length){var Y="loaded_"+KF.I++;oG[Y]=function(a){xa[K](a);oG[Y]=null};
a=SF(c,ga,"gapi."+Y,m);m.push.apply(m,ga);NF("ml0",ga,x);b.sync||rG.___gapisync?gG(a):iG(a)}else xa[K](CF)}else d(ga)&&e&&e()};
var nG=function(a,b){if(KF.hee&&0<KF.hel)try{return a()}catch(c){b&&b(c),KF.hel--,pG("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
var sG=function(){Rj.call(this);this.o={}};
var tG=function(a,b,c){if(!a.o[b]&&(c.ve||c.Qf)){var d=a.o,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.R("vast_info_card_add",b)}};
var uG=function(){if(null==t("_lact",window)){var a=(0,window.parseInt)(zi("LACT"),10),a=(0,window.isFinite)(a)?I()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&vG();Nl(window.document,"keydown",vG);Nl(window.document,"keyup",vG);Nl(window.document,"mousedown",vG);Nl(window.document,"mouseup",vG);Ii("page-mouse",vG);Ii("page-scroll",vG);Ii("page-resize",vG)}};
var vG=function(){null==t("_lact",window)&&(uG(),t("_lact",window));var a=I();q("_lact",a,window);Pi("USER_ACTIVE")};
var RA=function(){var a=t("_lact",window);return null==a?-1:Math.max(I()-a,0)};
var wG=function(a){F.call(this);a=fc(a);this.M={};this.experiments=new GA(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.na=b;this.G=(this.L=xG.test(this.na))?Bu("",a.loaderUrl):this.na;this.fb=Wp(this.G);this.protocol=(this.Dh=(this.Yb=xu(!1,a.ssl_stream))||xu(!1,a.ssl))?"https":"http";this.baseYtUrl=Tp(a.BASE_YT_URL,this.experiments.ka("legacy_base_url"))||Tp(this.na,this.experiments.ka("legacy_base_url"))||this.protocol+
"://www.youtube.com/";"adunit"==a.el?yG.test(this.G)?this.Ba="adunit":this.Ba="embedded":this.experiments.ka("legacy_el")?this.Ba=a.el||this.Ba:"embedded"==a.el||this.fb?this.Ba=yu(this.Ba,a.el,zG):a.el&&(this.Ba="embedded");uG();b=null;var c=a.ps,d=jb(AG,c);!c||d&&!this.fb||(b=c);this.o=b;this.Ab=jb(AG,this.o);this.C="blogger"==this.o||"books"==this.o||"docs"==this.o||"google-live"==this.o||"picasaweb"==this.o;this.ub=!this.C;this.kg=xu(!this.C,a.showwatchlater);this.A={};this.A.c=a.c||"web";this.A.cver=
"html5";this.A.cplayer="UNIPLAYER";this.ib=xu(!1,a.edu_mode);this.U=!(!vt().defaultPlaybackRate||Lf&&!mt("chrome")||Jw||BG||mt("android")||mt("silk"));a.use_media_volume?b=!1:(b=vt(),c=b.muted,b.muted=!c,b=b.muted!=c);this.ob=b;this.gg=CG;(Jw||BG||Ft)&&"blazer"!=this.o&&DG(this);this.Ga=xu("adunit"!=this.Ba&&"detailpage"!=this.Ba&&!this.Ab,a.showinfo);this.isMobile=xu("blazer"==this.o,a.is_html5_mobile_device);this.Nb=xu(!1,a.playsinline);b=this.isMobile&&EG&&2.3>=Pv;c=FG(this)||!b&&xu("native"==
this.o,a.use_native_controls)?"3":"1";this.B="0"!=a.controls?c:"0";this.useTabletControls=this.experiments.ka("disable_new_tablet_mode_behavior")?xu("blazer"==this.o||"touch"==this.o,a.use_tablet_controls):this.isMobile;this.color=yu("red",a.color,GG);this.oe="3"==this.B||xu(!1,a.modestbranding)&&"red"==this.color;xu(!1,a.nologo)&&(c=this.G,HG.test(c),Wp(c));this.vc=(c=!Qx(this)&&"detailpage"!=this.Ba&&!this.C&&!this.Ab)&&!this.oe&&"1"==this.B;this.xc="embedded"==this.Ba&&c&&!this.Ga&&!this.vc;this.lg=
this.pe=b;this.H=BG?this.experiments.Da&&7<=Kw:!0;this.rb=this.L||!1;this.O="detailpage"==this.Ba?"":(this.G||a.post_message_origin||"").substring(0,128);this.ab=!!a.disableCast;this.autoplay=xu(!1,a.autoplay);this.he=xu(!1,a.autoplayoverride);this.Bd=this.autoplay||"detailpage"==this.Ba;b=this.he||!this.isMobile&&!tt();this.Ca=this.Bd&&b;b="detailpage"==this.Ba&&"blazer"==this.o;this.va=!xu(!0,a.fs);this.La=!this.va&&(b||Kh());this.wc=xu(!this.Ab,a.rel);this.jg="adunit"!=this.Ba;this.Z="profilepage"==
this.Ba;this.Ea="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.aa=b;this.zb=Bu("",a.authuser);this.bb=xu(!1,a.disablekb);this.pageId=Bu("",a.pageid);this.qe=Eu(Zt,a.vq);this.re=Bu("",a.playerapiid);this.ig=xu(!0,a.canplaylive);this.ie=xu(this.Ab,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 re(b,c))):b=null;this.yd=b;this.mute=this.fb&&xu(!1,a.mute);this.storeUserVolume=!this.mute&&xu("0"!=this.B,a.store_user_volume);this.useMediaVolume=xu(!1,a.use_media_volume);this.hg=xu(!1,a.retryneterr)&&this.fb;this.Dd="3"==this.B?3:yu(void 0,a.iv_load_policy,Ow);this.ha=xu(!1,a.iv_allow_in_place_switch);this.Qa=Bu("",a.cc_lang_pref);this.da=yu(void 0,a.cc_load_policy,
Ow);this.ea=void 0==a.content_v?void 0:a.content_v.toString();this.je=void 0==a.framer?void 0:a.framer.toString();this.Y=Bu("en_US",a.hl);this.region=Bu("US",a.cr);this.hostLanguage=Bu("en",a.host_language);this.ne=xu(!1,a.privembed);this.Mb="";this.qa=new Zj;this.K=xu(!0,a.deviceHasDisplay);this.Ua=Au(this.Ua,a.ismb);IG(this,a);this.M=a;this.J=new sG;this.V=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.ka("disable_innertube_config_reporting")||Fi(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.ke={apiaryHost:Bu("",b.apiary_host),oJ:Bu("",b.apiary_host_firstparty),gapiHintOverride:xu(!1,b.gapi_hint_override),gapiHintParams:Bu("",b.gapi_hint_params),innertubeApiKey:Bu("",b.innertube_api_key),
innertubeApiVersion:Bu("",b.innertube_api_version),Bx:this.A.c,innertubeContextClientVersion:Bu("",b.innertube_context_client_version),Ex:this.hostLanguage,Cx:this.region};this.ac=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&xu(!1,a.airplay_button);this.F=new Nv(this.K,"web"==this.A.c.toLowerCase().substr(0,3)||ot()||pt());this.enableSafetyMode=xu(!1,a.enable_safety_mode)};
var JG=function(a,b){a.$a=b.get("d",a.$a);a.Ia=b.get("f",a.Ia)};
var IG=function(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&Zb(KG,c)&&Zb(LG,c)?LG[c]+"_"+KG[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],d=!(1==d[1]&&8==e)&&(6==e||7==e||8==e||10==e);if(a.L||a.fb||d)a.D=c,a.M.adformat=b.adformat,d||(a.Ba="adunit")}}if(c=b.video_id&&b.video_id!=a.Mb)a.Mb=b.video_id;if(b.adpings||c)a.Cd=b.adpings?oj(b.adpings):null;a.ib?d="s.youtubeeducation.com":a.ub?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com",a.experiments.fa&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.zd=d;a.yc="//"+a.zd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ia=d,a.M.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.M.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in MG)c=MG[f],d=b[c],void 0!=d&&(a.A[c]=d);!a.fa&&b.cl&&(a.fa=+b.cl);a.userAge=Au(a.userAge,b.user_age);a.userDisplayImage=Bu(a.userDisplayImage,b.user_display_image);Lw.test(a.userDisplayImage)||(a.userDisplayImage="");
a.userDisplayName=Bu(a.userDisplayName,b.user_display_name);a.userGender=Bu(a.userGender,b.user_gender);a.S=Bu(a.S,b.eventid);a.S&&(uu=a.S);a.csiPageType=Bu(a.csiPageType,b.csi_page_type);a.ma=Bu(a.ma,b.csi_service_name);a.Ea=xu(a.Ea,b.enablecsi);b.enabled_engage_types&&(a.qa=new Zj(b.enabled_engage_types.split(",")));a.ha=xu(a.ha,b.iv_allow_in_place_switch)};
var NG=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.zb&&(b.authuser=a.zb);a.pageId&&(b.pageid=a.pageId);return Ug(a.baseYtUrl+"get_video_metadata",b)};
var OG=function(a){var b;b=Lg(a.baseYtUrl);var c=Mg(a.baseYtUrl);c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.ib?"www.youtube.com":b};
var PG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
var QG=function(a){var b={};if(a.sc){if(a.sc.getVideoPlaybackQuality)return a.sc.getVideoPlaybackQuality();a.sc.webkitDecodedFrameCount&&(b.totalVideoFrames=a.sc.webkitDecodedFrameCount,b.droppedVideoFrames=a.sc.webkitDroppedFrameCount)}return b};
var RG=function(a){return a.experiments.H?Mx(a)||"leanback"==a.Ba:!0};
var $x=function(a){return"leanback"==a.Ba||a.Ab||!a.wc&&!a.Z?!1:!0};
var SG=function(a){return Mx(a)||"embedded"==a.Ba||"profilepage"==a.Ba?!0:!1};
var Qx=function(a){return 0==a.G.indexOf(a.baseYtUrl)};
var Mx=function(a){return"detailpage"==a.Ba&&"gaming"!=a.o};
var FG=function(a){return BG&&!a.Nb||tt()};
var DG=function(a){return rt()||"TV"==a.A.cplatform};
var Tx=function(a,b,c){return"detailpage"==a.Ba&&"blazer"!=a.o&&!!b&&!b.ypcPreview&&!b.Fa&&!jb(b.K,"ypc")&&!c};
var TG=function(a,b,c,d){this.G=c;this.C=LE(a).A;this.K=10;this.D=!0;this.V=this.S=this.Y=this.B=this.A=null;this.U=b;this.o=null;this.ca=a;this.aa=d;this.F=new te(0,0,0,0);this.L=!1;this.J=!0};
var UG=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=VG(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.S=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.Y=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.S);b.vertexAttribPointer(a.O,3,b.FLOAT,!1,0,0);a.M();a.C.crossOrigin="use-credentials";return 0};
var VG=function(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.o.zk());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.V=e;a.o.Wc(b,a.V,a.G);return 0};
var WG=function(a){a.A&&(qf(a.A),a.A=null);a.B=null;a.D=!1;a.o&&a.o.destroy(a.aa);a.o=null;a.C.removeAttribute("crossorigin");a.C.style.display="";a.K=10};
var XG=function(a){mq.call(this,a);this.ea=!0;this.sa="webgl";this.subscribe("onResize",this.cE,this);this.subscribe("onPlaybackQualityChange",this.oA,this);this.subscribe("onStateChange",this.Xc,this);this.C=new Q(["div","webgl"]);this.C.o(LE(a).C);this.ca=a;this.A=null;this.B=!1};
var YG=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;Lw.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.A=a.ypc_item_url;this.videoId=a.ypc_vid};
var ZG=function(){Gq.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"],b=yh();a.innerHTML=b;b=this.ra["ytp-drawer-open-button"];R(this,a,"click",this.C);R(this,b,"click",this.show);this.A=new Ud(pa(Zd,this.element,"ytp-drawer-closed"),0);G(this,this.A);this.Db(null);this.ga()};
var $G=function(a,b,c){Rj.call(this);this.B=0==c;this.A=new ZG;this.A.subscribe("close-clicked",this.H,this);G(this,this.A);this.C=window.document.createElement("div");J(this.C,"html5-ypc-endscreen");this.F=window.document.createElement("div");J(this.F,"html5-ypc-overlay");this.D=new wq(["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}}"]]);G(this,this.D);this.G=this.D.ra["html5-ypc-purchase"];Nl(this.G,"click",A(this.J,this));Af(this.F,b.C);c=b.title;b.A&&(c=["a",{href:b.A,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.D.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.B});this.o(a)};
var aH=function(a){a.B||(a.C.appendChild(a.D.element),a.A.Db(null),Dq(a.C,"block"))};
var bH=function(a){a.B||a.A.show()};
var cH=function(a){mq.call(this,a);this.H=this.sa="ypc";this.A=this.B=null;this.D=window.NaN;this.C=null};
var dH=function(a){return fx(a.getVideoData(),"ypc_module")?new cH(a):null};
var eH=function(a,b,c){var d=1E4;c.C.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.C.ypc_overlay_timeout,10));a.A=new $G(a.C.element,a.B,d);a.A.subscribe("ypcContentRequest",a.fz,a);a.A.subscribe("ypcModuleCloseClicked",a.Wz,a);a.B.videoId&&a.C.element.appendChild(a.A.F);$x(b)&&(c=new iq(0x8000000000000,0x8000000000000,{priority:2}),a.jb([c]));bH(a.A);Di(a.D);a.D=Ai(A(function(){if(this.A&&!b.experiments.K){var a=this.A;a.B||a.A.ga()}},a),d)};
var fH=function(a,b,c){y(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 gH(a)};
var gH=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}};
var hH=function(a){if(a.jl)return 4;var b=Fh("visibilityState",window.document);return b&&"visible"!=b?3:a.Kg?2:a.kl?1:0};
var iH=function(a,b){F.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.Em);U(this,"loadVideoById",this.Hm);U(this,"cueVideoByUrl",this.kD);U(this,"loadVideoByUrl",this.vD);U(this,"playVideo",this.Yc);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Cr);U(this,"clearVideo",this.iD);U(this,"getVideoBytesLoaded",this.qD);U(this,"getVideoBytesTotal",this.rD);U(this,"getVideoLoadedFraction",this.Gm);U(this,"getVideoStartBytes",
this.sD);U(this,"cuePlaylist",this.jD);U(this,"loadPlaylist",this.xr);U(this,"nextVideo",this.wj);U(this,"previousVideo",this.xj);U(this,"playVideoAt",this.Im);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.xD);U(this,"getPlaylist",this.$b);U(this,"getPlaylistIndex",this.oD);U(this,"getPlaylistId",this.ce);U(this,"loadModule",this.vj);U(this,"unloadModule",this.Dr);U(this,"setOption",this.de);U(this,"getOption",this.wb);U(this,"getOptions",this.jh);U(this,"mute",this.mute);U(this,"unMute",
this.unMute);U(this,"isMuted",this.tc);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Cb);U(this,"seekTo",this.Rb);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.nD);U(this,"setPlaybackRate",this.zj);U(this,"getAvailablePlaybackRates",this.tj);U(this,"getPlaybackQuality",this.uj);U(this,"setPlaybackQuality",this.yj);U(this,"getAvailableQualityLevels",this.vr);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.ih);U(this,"addEventListener",
this.addEventListener);U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.Fm);U(this,"getVideoEmbedCode",this.wr);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.ur);U(this,"removeCueRange",this.yr);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.lD);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.Br);U(this,"hideVideoInfo",this.tD);jH(this,"getInternalApiInterface",this.mD);jH(this,"getAdState",
this.getAdState);jH(this,"isNotServable",this.uD);jH(this,"getUpdatedConfigurationData",this.pD);jH(this,"updateRemoteReceivers",this.zD);jH(this,"sendAbandonmentPing",this.wD);jH(this,"setAutonav",this.zr);jH(this,"setAutonavState",this.Ar);jH(this,"setMinimized",this.yD);jH(this,"channelSubscribed",w);jH(this,"channelUnsubscribed",w)};
var U=function(a,b,c){a.B[b]=A(c,a)};
var jH=function(a,b,c){a.C[b]=A(c,a)};
var kH=function(a,b){iH.call(this,a,b);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.AD);U(this,"cueVideoByPlayerVars",this.BD);U(this,"loadVideoByPlayerVars",this.Gr);U(this,"preloadVideoByPlayerVars",this.ND);U(this,"seekBy",this.Zc);U(this,"updatePlaylist",this.VD);U(this,"updateLastActiveTime",this.UD);U(this,"updateVideoData",this.WD);U(this,"getStoryboardFormat",this.GD);U(this,"getProgressState",this.Ue);U(this,"getHousebrandProperties",this.ED);
U(this,"setPlaybackQualityRange",this.OD);U(this,"getCurrentPlaylistSequence",this.DD);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.$f);U(this,"setCardsVisible",this.kh);U(this,"handleGlobalKeyDown",this.KD);U(this,"getAudioTrack",this.Zf);U(this,"setAudioTrack",this.Jm);U(this,"getAvailableAudioTracks",this.Er);U(this,"getMaxPlaybackQuality",this.FD);U(this,"setSizeStyle",this.QD);U(this,"forceFrescaUpdate",this.CD);U(this,"setAutonav",this.zr);U(this,"setAutonavState",
this.Ar);U(this,"showControls",this.TD);U(this,"hideControls",this.MD);U(this,"getVisibilityState",this.JD);U(this,"shouldSendVisibilityState",this.RD);U(this,"getVideoContentRect",this.ID);U(this,"setSafetyMode",this.PD)};
var lH=function(a,b){kH.call(this,a,b)};
var mH=function(a){(a=oq(a.app))&&nH(a)};
var oH=function(a){return(a=pH(a.app.C,"endscreen"))?Wx(a):!1};
var qH=function(a){var b=pH(a.app.C,"endscreen");return b&&ay(b)?!0:(a=pH(a.app.C,"ypc"))&&a.Wa()?!0:!1};
var oz=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.H.O:oq(b,a).getPlayerState()};
var LE=function(a){return a.app.F};
var rH=function(a){return a.app.O&&!a.Ja()||!!a.$b()};
var sH=function(a,b){var c=tH(a.app,"captions","displaySettings",b);a.app.Vf("onCaptionsDisplaySettings");return c};
var Nx=function(a){a=a.app;uH(a,!a.M.Ja())};
var vH=function(a){return(a=oq(a.app))?$t(wH(a.ma,a.o)):"unknown"};
var xH=function(a){(a=pH(a.app.C,"webgl"))?a.B?(a=a.A,a=a.o?a.o.We():{}):a={}:a={};return a};
var yH=function(a,b){var c=pH(a.app.C,"webgl");c&&c.B&&(c=c.A,c.o&&c.o.oh(b))};
var zH=function(a,b){a.W().experiments.ka("ui_logging")&&AH(a,"controlclicked",{controlClicked:b})};
var AH=function(a,b,c,d){var e=oq(a.app);c.event=b;a.Ja()&&(c.fs=1);c.ux=1;if(e.B){a=e.B;e=(b=a.o.A.experiments.ka("event_log_respect_caller_args"))?{}:c;e.rt=WA(a.o).toFixed(3);qa(e,YA(a.o));var f=a.o.A,k=a.o.o,l=k.va||f.ia,l={ns:f.aa,html5:"1",el:f.Ba,ps:f.o,fexp:f.experiments.experimentIds.join(",")||void 0,feature:l||void 0,ctrl:k.ea||void 0,ytr:k.fa||void 0,list:k.playlistId,d:f.$a,f:f.Ia};f.autoplay&&(l.autoplay="1");k.subscribed&&(l.subscribed=k.subscribed);qa(e,l);delete e.fexp;b&&qa(e,c);
c=rj(a.o.A.baseYtUrl+"player_204",e);bB(a,c,d)}};
var fC=function(a){a.app.Oa("cardstatechange",BH(a)&&CH(a)?1:0)};
var BH=function(a){return(a=pH(a.app.C,"iv-module"))?kF(a):!1};
var CH=function(a){return(a=pH(a.app.C,"iv-module"))?lF(a):!1};
var DH=function(a,b,c){(a=pH(a.app.C,"iv-module"))&&nF(a,b,c)};
var qz=function(a,b){a.app.Oa("onFrescaStateChange",b);var c=oq(a.app);if(c&&b&&c.B){var c=c.B.B,d=b.hasActiveStream;NA(c,WA(c.o),"stream",[d?"A":"I"])}};
var EH=function(a){return(a=pH(a.app.C,"fresca"))?!!a.D&&a.D.C.B:!1};
var FH=function(a){var b=oq(a.app,1);if(!b)return!1;var c=b.getVideoData();return cx(c)&&!gx(c)&&2!=a.getPresentingPlayerType()&&(!GH(b)||3==a.getPresentingPlayerType())};
var HH=function(a){return a.app.da.play_pause||2==a.getPresentingPlayerType()?!0:!GH(oq(a.app,1))};
var IH=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=oq(d,a))c.F.gh.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||pq(d,"cuerangesremoved",b)};
var JH=function(a,b,c){a.app.R("progresssync",b,c)};
var Uq=function(a,b,c){a=LE(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));pf(a,b,d);b.setAttribute("data-layer",c)};
var KH=function(){Gi({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"})};
var LH=function(a,b){this.L="";this.C=this.A=this.J=this.o=this.F=null;this.type=0;this.id=a;this.Ha={};qa(this.Ha,MH);b?qa(this.Ha,b):qa(this.Ha,NH);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.o=M("div",{id:"caption-window-"+this.id,"class":c});this.C=M("span",{"class":"captions-text",style:"visibility: hidden"});Af(this.C,"C");this.A=M("span",{"class":"captions-text",tabindex:7050,"aria-live":"assertive"});this.J=M("div",{"class":"caption-window-transform"});this.J.appendChild(this.A);
this.o.appendChild(this.J);this.M=1};
var OH=function(a){Tf(a.o,a.Ha.leftPercentage+"%",a.Ha.topPercentage+"%");for(var b=0;8>=b;b++)Zd(a.o,"anchor-point-"+b);J(a.o,"anchor-point-"+a.Ha.anchorPoint)};
var PH=function(a){if(!a)return a;if(-1==a.indexOf("\n"))return"&nbsp;"+a+"&nbsp;";a=a.split("\n");for(var b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")};
var QH=function(){this.A=[];this.o=[]};
var RH=function(a,b,c,d,e,f,k){iq.call(this,a,a+b,{priority:c});this.D=d;this.A=e;this.G=f||!1;this.H=k||null};
var SH=function(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=(0,window.parseInt)(a.getAttribute("w"),10)||0;a=!!a.getAttribute("append");return new RH(c,d,a?6:5,e,b,a)};
var TH=function(a,b,c,d,e,f,k){iq.call(this,a,a+b,{priority:c});this.K=!1;this.id=d;this.params=e||{};this.G=f||null;this.H=k||null;this.A="";this.D=!1;UH(this)};
var VH=function(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.D?1:0};
var WH=function(){return new TH(0,0x8000000000000,0,0,NH)};
var UH=function(a){a.G&&qa(a.params,XH(a.G));a.H&&qa(a.params,XH(a.H))};
var YH=function(a){QH.call(this);this.o.push(WH());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=SH(a[b]);this.A.push(d)}};
var ZH=function(a){QH.call(this);this.B={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=(0,window.parseInt)(b.getAttribute("id"),10);a:{var d=b,e=this.B[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e?e.K=!0:e=WH();var f={};qa(f,e?e.params:
NH);d.getAttribute("id")&&(f.id=d.getAttribute("id"));d.getAttribute("op")&&(f.operation=d.getAttribute("op"));d.getAttribute("rc")&&(f.rowCount=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.colCount=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(f.leftPercentage=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.topPercentage=(0,window.parseInt)(d.getAttribute("av"),
10));d.getAttribute("id")&&(f.id=(0,window.parseInt)(d.getAttribute("id"),10)||0);d.getAttribute("vs")&&(f.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),10));d.getAttribute("pd")&&(f.textPrintDirection=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.textPrintDirection=0));d.getAttribute("bc")&&(f.backgroundColor=(0,window.parseInt)(d.getAttribute("bc"),16));d.getAttribute("bo")&&(f.backgroundOpacity=(0,window.parseInt)(d.getAttribute("bo"),
10)/100);d.getAttribute("fc")&&(f.color=(0,window.parseInt)(d.getAttribute("fc"),16));d.getAttribute("sd")&&(f.textScrollDirection=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||0x8000000000000;d=(0,window.parseInt)(d.getAttribute("id"),10)||0;b=new TH(b,e,0,d,f)}else b=null}this.B[c]=b;this.o.push(b);break;case "text":c=SH(a),this.A.push(c),b=c.D,this.B[b]&&(b=this.B[b],c=c.A,""!=b.A&&(b.D=!0),b.A+=c)}a=
a.nextSibling}0==this.o.length&&this.o.push(WH())};
var $H=function(a){this.A=a||null;this.o={}};
var aI=function(a,b,c){var d=a.o[b];if(void 0!=d)return d;if(a.A&&(void 0==c||c))return aI(a.A,b)};
var bI=function(a,b,c){void 0!=c&&(a.o[b]=c)};
var cI=function(a,b,c){void 0!=c&&(a.o[b]=c)};
var XH=function(a){var b=a.A?XH(a.A):{};qa(b,a.o);return b};
var dI=function(a){QH.call(this);var b={Qg:{},qm:{},sm:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var f=a[e];switch(f.tagName){case "head":c=f;break;case "body":d=f}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var f=b,k=eI(e,"p"),l=void 0;k&&f.Qg[k]&&(l=f.Qg[k]);f=new $H(l);bI(f,"id",eI(e,"id"));k=fI(e,"b");void 0!=k&&(f.o.bold=k);k=fI(e,"i");void 0!=k&&(f.o.italic=k);k=fI(e,"u");void 0!=k&&(f.o.underline=k);bI(f,"charEdgeStyle",gI(e,"et"));bI(f,
"offset",gI(e,"of"));bI(f,"textType",gI(e,"tt"));cI(f,"background",hI(e,"bc"));cI(f,"charEdgeColor",hI(e,"ec"));cI(f,"color",hI(e,"fc"));k=gI(e,"fs");void 0!=k&&0!=k&&bI(f,"fontFamily",k);k=eI(e,"sz");void 0!=k&&bI(f,"fontSizeIncrement",k/100-1);k=eI(e,"bo");void 0!=k&&bI(f,"backgroundOpacity",k/255);e=eI(e,"fo");void 0!=e&&bI(f,"textOpacity",e/255);e=aI(f,"id",!1);b.Qg[e]=f;break;case "ws":f=iI(b,e);e=aI(f,"id",!1);b.sm[e]=f;break;case "wp":f=jI(b,e),e=aI(f,"id",!1),b.qm[e]=f}if(d)for(c={},a=-1,
d=d.childNodes,e=0;e<d.length;e++)switch(f=d[e],f.tagName){case "w":k=kI(b,f);if(f=c[k.id])f.end=k.start;c[k.id]=k;this.o.push(k);break;case "p":for(var k=b,l=f,m=[],p=eI(l,"t")||0,u=eI(l,"d")||0,v=eI(l,"w")||0,z=!!fI(l,"a"),x=z?6:5,ga=eI(l,"p"),ga=ga?k.Qg[ga]:null,xa=l.childNodes,K=0;K<xa.length;K++){var Y=xa[K];if("s"==Y.tagName){0<K&&(z=!0);var Mb;Mb=k;var yd=Y,Y=p,np=u,op=v,PB=z,QB=x,pp=ga,zu=yd.textContent?ya(yd.textContent):"",Pl=eI(yd,"p"),pp=Pl?Mb.Qg[Pl]:pp;Mb=eI(yd,"t")||0;Mb=new RH(Y+Mb,
np-Mb,QB,op,zu,PB,pp)}else Mb=l.textContent?ya(l.textContent):"",Mb=new RH(p,u,x,v,Mb,z,ga);m.push(Mb)}l=m;if(0<l.length)for(k=c[l[0].D],k||(k=kI(b,f),k.id=a--,this.o.push(k)),f=0;f<l.length;f++)m=l[f],l[f].D=k.id,p=k,u=m.A,""!=p.A&&(p.D=!0),p.A+=u,this.A.push(m)}};
var eI=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
var fI=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
var gI=function(a,b){var c=eI(a,b);if(void 0!=c)return c};
var hI=function(a,b){var c=a.getAttribute(b);if(null!=c)return lI.test(c),c};
var iI=function(a,b){var c=eI(b,"ws"),d;c&&a.sm[c]&&(d=a.sm[c]);c=new $H(d);bI(c,"id",eI(b,"id"));bI(c,"modeHint",gI(b,"mh"));bI(c,"textAlign",eI(b,"ju"));bI(c,"textPrintDirection",gI(b,"pd"));bI(c,"textScrollDirection",gI(b,"sd"));bI(c,"windowBorderType",gI(b,"et"));cI(c,"windowBorderColor",hI(b,"wbc"));cI(c,"windowColor",hI(b,"wfc"));d=eI(b,"wfo");void 0!=d&&bI(c,"windowOpacity",d/255);return c};
var jI=function(a,b){var c=eI(b,"wp"),d;c&&a.qm[c]&&(d=a.qm[c]);c=new $H(d);bI(c,"anchorPoint",gI(b,"ap"));bI(c,"colCount",eI(b,"cc"));bI(c,"id",eI(b,"id"));bI(c,"leftPercentage",eI(b,"ah"));bI(c,"rowCount",eI(b,"rc"));bI(c,"topPercentage",eI(b,"av"));return c};
var kI=function(a,b){var c=eI(b,"id")||0,d;d=eI(b,"t");var e=eI(b,"d")||0x8000000000000,f=jI(a,b),k=iI(a,b);return new TH(d,e,0,c,null,f,k)};
var mI=function(a,b){QH.call(this);this.o.push(WH());for(var c=a.split(nI),d=1;d<c.length;d++){var e;e=c[d];var f=b;if(""==e||0==e.search(oI))e=null;else{var k=e.split(pI),l=0,m=k[l++].match(qI);m||(m=k[l++].match(qI));m?(e=rI(m[1],f)||0,f=rI(m[3],f)||0,k=k.slice(l).join("\n"),e=new RH(e,f-e,5,0,k)):e=null}e&&this.A.push(e)}};
var rI=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};
var sI=function(a,b){this.o=[];this.A=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new mI(a,b||0):(c=uz(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new dI(c):new ZH(c):new YH(c):null:null;c&&(this.A=c.o,this.o=c.A)};
var tI=function(){this.B=[];this.o=[];this.A=-1};
var uI=function(a,b){return b?a.o.concat(a.B):a.o};
var vI=function(a,b){switch(b.B){case "asr":var c=a.B;eb(c,A(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.A)a.A=a.o.length;c=a.o;eb(c,A(b.equals,b))||c.push(b)}};
var wI=function(a,b){var c=fb(a.o,A(b.equals,b));-1!=c&&(a.A=c)};
var xI=function(a){this.No=!!a;this.o=new tI;this.D=[]};
var yI=function(a,b){return eb(uI(a.o,!0),function(a){return a.toString()==b})};
var zI=function(a){xI.call(this,a.Oh);this.A=null;this.C=void 0;this.B=null;this.D=a.captionTranslationLanguages};
var AI=function(a,b){var c=b.J,d={};if(a.C||b.D)d.fmt=a.C||"srv"+b.D;b.A&&(d.tlang=b.A.languageCode);return rj(c,d)};
var BI=function(){this.ea=this.da=!1;this.S=1;this.C=20971520;this.D=8388608;this.B=window.NaN;this.K=3145728;this.L=62914560;this.M=10485760;this.H=window.NaN;this.ma=2;this.ha=25;this.F=2097152;this.J=!1;this.G=1800;this.o=1.15;this.A=1.05;this.Da=!0;this.liveChunkReadahead=3;this.Ca=mt("xboxone")||qt()||lt();this.aa=25;this.V=!1;this.va=Fl&&!0;this.Ea=!0;this.Z=this.Ta=this.Y=!1;this.fa=this.O=0;this.na=.8;this.ia=this.qa=this.U=!1};
var CI=function(a,b){1440<b&&!a.da&&(a.C=36700160,a.D=5242880,a.K=10485760,a.F=4194304,a.da=!0);2160<b&&!a.ea&&(a.C=104857600,a.ea=!0)};
var DI=function(){this.ua=[]};
var EI=function(a,b){F.call(this);this.A=b;this.H=new DI;this.C=!0;this.J=this.D=this.F=this.G=this.o=null;this.B=0};
var FI=function(a,b){a.G=b};
var GI=function(a){var b;if(b=!a.C&&null!==a.o)b=a.o,b=b.o.mh(b);return b&&!a.D&&!(a.o&&30<a.o.startTime-a.A.getCurrentTime())};
var HI=function(a){a.isDisposed();var b;b=a.o;b=fs(b.o,b);if(!a.H.contains(b.o[0].C)){var c=Pr(cs(b));a.D=Bj(c,{format:"RAW",Ub:A(a.K,a),withCredentials:!0});a.F=b;var c=a.H,d=a.F.o[0].C,e=yb(c.ua,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ua[e-1]&&e<c.ua.length&&1==c.ua[e]-d?(qb(c.ua,e),qb(c.ua,e-1)):0<e&&1==d-c.ua[e-1]?c.ua[e-1]=d:e<c.ua.length&&1==c.ua[e]-d?c.ua[e]=d:(vb(c.ua,e,0,d),vb(c.ua,e+1,0,d)))}a.o=db(b.o)};
var II=function(a){a.B=Ci(A(function(){GI(this)&&HI(this)},a),1E3);
GI(a)&&HI(a)};
var JI=function(a,b){xI.call(this);this.B=a;this.A=new EI(new BI,b)};
var KI=function(a,b){LH.call(this,a,b);this.type=1;this.H=this.K="";this.G=!1;this.B=null;this.D=[];this.A.style.display="block";this.A.style.padding="0";var c=this.A;Zd(c,"captions-text");J(c,"caption-painton-text-rows")};
var LI=function(a){return a.D.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)};
var MI=function(a,b){LH.call(this,a,b);this.type=2;this.S=32;this.D=0;this.H=null;this.F=[];this.G=[];this.B=[];this.H=new Qd(433);this.H.stop();Nl(this.H,"tick",A(this.K,this))};
var NI=function(a){if(!OI(a))if(a.D>=a.F.length)PI(a);else{var b=a.B.length-1;0>b&&(a.G.push(0),a.D=0,a.B.push(""),b=0);for(var c=a.F.length,d=a.D;d<c;d++){var e=a.F[d];if("\n"==e.A){a.D++;a.G[b]++;break}if(e.G||0==a.B[b].length)a.B[b]+=e.A,a.D++,a.G[b]++;else break}PI(a);d<c&&!OI(a)&&(b=a.ci(),J(a.A,"caption-rollup"),a.o.style.overflow="hidden",a.A.style.top=-b+"px",a.H.start())}};
var OI=function(a){return a.H.enabled||Xd(a.A,"caption-rollup")};
var PI=function(a){if(!OI(a)){for(;a.B.length<a.Ha.rowCount;)a.B.unshift(""),a.G.unshift(0);for(;a.B.length>a.Ha.rowCount;){a.B.shift();var b=a.G.shift();0<b&&(a.D-=b,a.F.splice(0,b))}a.Zd(PH(a.B.join("\n")))}};
var QI=function(a){a.C.style.fontFamily=a.A.style.fontFamily;a.C.style.fontSize=a.A.style.fontSize;a.A.appendChild(a.C);Af(a.C,"\u2014");var b=a.C.offsetWidth;Af(a.C,String.fromCharCode(160));b=2*a.C.offsetWidth+b*a.S;a.A.removeChild(a.C);return b};
var RI=function(a,b,c,d){xI.call(this,d);c||(c=qj(a).hl||"",c=c.split("_").join("-"));this.B=rj(a,{hl:c});this.C=b;this.F={};this.A=null};
var SI=function(a,b){var c=a.B,d={v:a.C,type:"track",lang:b.o,name:b.C,kind:b.B,fmt:b.D};b.A&&(d.tlang=b.A.languageCode);return c=rj(c,d)};
var TI=function(a){mq.call(this,a,"subtitlesModuleData");this.sa="captions";this.H="cc";KH();this.ea=!0;this.da=this.O=this.fa=!1;this.X=a.W();this.D=null;this.M=LE(a);this.C={};this.U=null;this.aa=[];this.L={};this.Z={};this.na=this.K=this.ma=!1;this.Y=new LH(99,UI);this.A=this.B=this.F=null;this.qa=!1;this.ia=new Ud(this.dm,0,this);G(this,this.ia);this.ha=new Ud(this.YB,2E3,this);G(this,this.ha);this.subscribe("onResize",A(this.xp,this));this.subscribe("onCaptionsToggle",A(this.bB,this));this.subscribe("onPlaybackAudioChange",
A(this.Ay,this));this.subscribe("onCaptionsDisplaySettings",A(this.Ll,this))};
var VI=function(a){return"3"!=a.X.B?!1:!!a.M.A.textTracks};
var WI=function(a,b,c,d,e){var f=a.C[b];y(f)&&(a.C[c]=d.indexOf(f),-1==a.C[c]&&(a.C[c]=e),delete a.C[b])};
var XI=function(a,b){if(b&&a.D.captionTracks.length){var c=a.o.Zf().En;if(2==c||3==c)return!0}if(1==a.X.da||1==a.D.oe||"alwayson"==a.D.Sc("yt:cc")||VI(a))return!0;c=sq(a,"module-enabled");return null!=c?!!c:"on"==a.D.Sc("yt:cc")};
var YI=function(a){a.A&&a.A==a.B.Kd()&&ZI(a);a.B.rl(A(a.bq,a),!0,VI(a)?"vtt":void 0,a.o.Zf())};
var $I=function(a){a.O=!0;VI(a)||(aJ(a),a.xp())};
var bJ=function(a){a.B.Kd()&&cJ(a,a.B.Kd())};
var dJ=function(a){var b=[];Pb(a.L,function(a){a instanceof KI&&b.push(a)});
if(0!=b.length){b.sort(function(a,b){return b.Ha.am-a.Ha.am});
var c=eJ(a.M).height,d=b[0].Ha.am;E(b,function(a){a.Ha.am=d;var b=Math.round(a.Ha.wq*a.ci());d-=Math.round(b/c*100);a.Wd()},a)}};
var ZI=function(a){a.A&&(a.A=null,nq(a),a.aa=[],a.A=null,a.dm(),a.B.bm())};
var cJ=function(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.K=c),a.G?(a.A=b,fJ(a),a.Hl("control_subtitles_set_track",Rt(b)),a.O||$I(a)):(a.B.ql(b,A(a.cq,a)),a.fa=!0))};
var aJ=function(a,b){var c=a.M.Ma();Pb(a.L,function(a){a.ud(this.C,c)},a);
a.F&&a.F.ud(a.C,c);a.Y.ud(a.C,c);a.dm();n(b)&&!b||a.Ll()};
var gJ=function(a){if(a.loaded){var b=a.ha;b.isActive()&&Vd(b);tq(a,"module-enabled",!1);(b=oq(a.o.app))&&b.B&&CA(b.B.A);ZI(a);a.K=!1;a.G?(fJ(a),a.Hl("control_subtitles_set_track")):a.R("publish_external_event","captionschanged",{});bJ(a)}};
var hJ=function(a){return TI.prototype.Wa(a)?new TI(a):null};
var iJ=function(a,b){if(b&&!a.F){a.F=new LH(98,jJ);a.U.element.appendChild(a.F.o);var c=a.F,d=P("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Zd(PH(d)));a.F.ud(a.C,a.M.Ma())}else!b&&a.F&&(qf(a.F.o),a.F=null)};
var kJ=function(a,b){if(b)if(ec(b,"reset"))delete a.C,a.C=fc(lJ),a.Ll(),aJ(a);else{if(!mJ){var c={};c.color=a.ek;c.textOpacity=a.vl;c.background=a.ek;c.backgroundOpacity=a.vl;c.windowColor=a.ek;c.windowOpacity=a.vl;c.charEdgeStyle=a.qv;c.fontFamilyOption=a.Yv;c.fontSizeIncrement=a.Zv;mJ=c}var c=mJ,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])}aJ(a,DG(a.X))}};
var fJ=function(a){var b={};a.A&&(b=Rt(a.A));a.R("publish_external_event","captionschanged",b)};
var nJ=function(a){mq.call(this,a);this.sa="ypc_license_checker";this.H="ypc_license";this.F=!1;this.C=0;this.D=!1;this.A=window.NaN;wu();this.B=null};
var oJ=function(a){return fx(a.getVideoData(),"ypc_license_checker_module")};
var pJ=function(a){return oJ(a)?new nJ(a):null};
var qJ=function(a){var b=a.o.getVideoData();return Zw(b)?!!a.B:!!b.heartbeatToken};
var rJ=function(a,b){if(!a.A&&a.F&&qJ(a)){var c=a.o.getVideoData(),d=a.o.W();if(Zw(c)||!DG(d)||d.experiments.ka("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=Ai(A(a.cC,a),c)}};
var sJ=function(a,b){if(a.A){a.log({errorType:b});a.A=window.NaN;a.C++;var c=a.o.getVideoData();(c.heartbeatSoftFail?0:a.C>=(a.B?a.B.o:c.heartbeatRetries||5))?(c=P("YTP_ERROR_LICENSE"),tJ(a.o.app.o,"heartbeat",c,void 0)):rJ(a)}};
var uJ=function(a){try{return be(a)}catch(b){return null}};
var vJ=function(a){a.C=0;a.A&&(Di(a.A),a.A=window.NaN);a.D=!1};
var wJ=function(a){aq("/gen_204?"+a,void 0)};
var xJ=function(a,b,c){if(!a)return null;var d=b.docid;b=b.fmt_list;if(d&&b){var e={};E(b,function(a){a.itag&&(e[a.itag.toString()]=!0)});
return yJ(a,d,e,c)}return null};
var yJ=function(a,b,c,d){d=O(d.split(","),oj);if(!$d(d,function(a){return!!c[a.itag]}).length)return null;
var e=Lg(a)||"",f=Mg(a);return O(d,function(a){if(c[a.itag]){var d=ch(bh(qh(a.url),e),f),m=Ig(a.url),d=mh(mh(d,"orig_host",Hg(m[1],m[2],m[3],m[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}return Sg(a)}).join(",")};
var zJ=function(a,b,c){var d=AJ(b);d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),Bj(a,{format:"JSON",method:"GET",timeout:2E3,nb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Ud:function(){var a=AJ(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
var AJ=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
var BJ=function(a){mq.call(this,a);this.H=this.sa="spacecast";this.A=null};
var CJ=function(a){return a.getVideoData().spacecastModule?new BJ(a):null};
var DJ=function(a){mq.call(this,a);this.sa="ypc_clickwrap";this.H="ypc-clickwrap";Gi({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};
var EJ=function(a){return fx(a.getVideoData(),"ypc_clickwrap_module")?new DJ(a):null};
var FJ=function(){return[RE.A,dy,rz,CJ,hJ,XG.A,EJ,pJ,dH]};
var GJ=function(a){this.D=Math.exp(Math.log(.5)/a);this.A=this.C=0};
var HJ=function(a){this.A=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1};
var IJ=function(a,b){a.o=(a.o+1)%a.A.length;a.A[a.o]=b};
var JJ=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=[]};
var KJ=function(a,b){LJ(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};
var LJ=function(a,b){a.H!=b&&(a.H=b,Eb(a.C,b))};
var MJ=function(a){this.C=a;this.A=[]};
var NJ=function(a){this.D=a;this.F=this.G=0;this.o=-1;this.K=new HJ(100);this.J=0;this.L=$s();this.B=new JJ(4,.6);this.C=new GJ(4);this.H=new MJ(17);this.D.B?this.A=new GJ(17):this.A=new JJ(17,.5,.1);a=ij("yt-player-bandwidth")||{};this.A.o(this.D.A,0<a.byterate?a.byterate:this.D.o);0<a.delay&&this.B.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.o(1,+a.tailDelay);this.o=$s()};
var OJ=function(a,b,c){b=Math.max(b,.05);a.A.o(b,c/b);PJ(a)};
var QJ=function(a,b,c){(0,window.isNaN)(c)||(a.F+=c);(0,window.isNaN)(b)||(a.G+=b);a.H.o(b,c/b);PJ(a)};
var RJ=function(a){a=a.B.B();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
var SJ=function(a){return a.C.B()||0};
var TJ=function(a){var b=a.A.B(),b=0<b?b:1;a=a.H.B();a=0<a?a:1;return a>2*b?(b+a)/2:b};
var UJ=function(a){var b={};b.delay=RJ(a);b.tailDelay=SJ(a);b.byterate=TJ(a);return b};
var VJ=function(a){-1<a.o&&3E4<$s()-a.o&&(KA(UJ(a)),a.o=$s())};
var PJ=function(a){var b=$s();a.L=b;500<b-a.J&&(IJ(a.K,1/(1/TJ(a)+SJ(a))),a.J=b)};
var WJ=function(a){return 4E3<=$s()-a.L};
var XJ=function(){this.o=13E4;this.A=.5;this.B=!1};
var YJ=function(){F.call(this);this.o=[];this.F={};this.B={};this.C={};this.A=this.G=null;this.D=[];this.H=null};
var ZJ=function(a){a.o=$d(a.o,function(a){try{a.destroy()}catch(c){Fi(c)}return!1},a)};
var $J=function(a,b,c){aK(a);a.H=b;a.D=tb(c);E(a.o,function(a){0<=kb(c,a.sa)&&(a.G=b,a.Ki(!!a.G))})};
var aK=function(a){E(a.D,function(a){if(a=pH(this,a))a.G=null,a.Ki(!1)},a);
a.H=null;a.D=[]};
var bK=function(a){a=pH(a,"iv-module");return!(!a||!a.loaded)};
var cK=function(a,b){if(!b)return O(a.o,function(a){return a.sa});
var c=pH(a,b);return c?c.Ve():[]};
var pH=function(a,b){return eb(a.o,function(a){return a.sa==b})};
var dK=function(a){var b={};E(a.o,function(a){qa(b,a.nh())});
return b};
var eK=function(a,b,c){this.C=b;this.o=c;this.D=a;this.A=!0};
var fK=function(a,b){kc.call(this,"adError");this.C=a;this.B=b?b:null};
var gK=function(a,b,c){kc.call(this,a);this.C=b;this.B=null!=c?c:null};
var hK=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=ec(b,e),f=f.toString();if(!C(D(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})};
var iK=function(a){this.o=a};
var jK=function(){var a=kK();return lK(a,"disableExperiments")};
var lK=function(a,b){if(Zb(a.o,b)){var c=a.o[b];if("boolean"==typeof c)return c}return!1};
var mK=function(a){if(Zb(a.o,"forceExperimentIds")){a=a.o.forceExperimentIds;var b=[],c=0;da(a)&&E(a,function(a){fa(a)&&(b[c++]=a)});
return b}return null};
var nK=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
var V=function(){return oK.G};
var kK=function(){var a=oK;if(null==a.D){var b={},c=lh(new N(ff().location.href));if(wh(c,"tcnfp"))try{b=be(c.get("tcnfp"))}catch(d){}a.D=new iK(b)}return a.D};
var pK=function(a,b,c,d){this.A=a;this.o=ke(c||0,0,1);this.B=null!=d?d:!0};
var qK=function(a){this.B=a;this.A=new wg;this.o=null};
var rK=function(a){var b=Math.random(),c=0,d=a.A.Ka();E(d,function(a){c+=a.o},a);
var e=1<c?c:1;a.o=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].o,f/e>=b){a.o=d[k];break}};
var sK=function(){this.A=null!=r.G_testRunner;this.o=new wg;tK(this,31061770,.05);tK(this,31061771,.05);tK(this,31061772,.05);tK(this,31061773,.05);tK(this,41351082,.01);tK(this,41351083,.01);tK(this,41351016,.05);tK(this,41351017,.05);tK(this,41351018,.05);tK(this,41351019,.05);tK(this,41351072,.05);tK(this,41351073,.05);tK(this,41351074,.05);tK(this,41351075,.05);tK(this,41351088,.01);tK(this,41351089,.01);tK(this,136961001,.01);tK(this,136961002,.01);tK(this,41351032,.05);tK(this,41351033,.05);
uK(this);var a;a=kK();a=mK(a);null!=a&&(this.A=!1,vK(this,a.map(String)))};
var wK=function(){xK||(xK=new sK);return xK};
var yK=function(){var a=wK();E(a.o.Na(),function(a){ta(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)};
var tK=function(a,b,c){C(D("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new pK(b,0,c),zK(a,"GvnExternalLayer").A.set(b.getId(),b))};
var uK=function(a){jK()||E(a.o.Ka(),function(a){rK(a)},a)};
var vK=function(a,b,c){E(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||C(D(a)))){var f=null!=c?c:!0;zK(this,a).o=new pK(b,0,0,f)}},a)};
var AK=function(a,b){return a.A?!1:Ih(a.o.Ka(),function(a){return!!a.o&&a.o.getId()==b})};
var BK=function(a){return wK().A?!1:Ih(a,function(a){return AK(wK(),a)})};
var CK=function(a){if(a.A)return"";var b=[];E(a.o.Ka(),function(a){(a=a.o)&&a.B&&b.push(a.getId())});
return b.sort().join(",")};
var zK=function(a,b){var c=a.o.get(b);null==c&&(c=new qK(b),a.o.set(b,c));return c};
var DK=function(){return BK([9418778,9417893,9417894,9417895,9419817])};
var EK=function(a){return null!=a?FK(GK,a):!1};
var FK=function(a,b){try{var c=hh(new N(b)),c=c.replace(/^www./i,"");return Ih(a,function(a){return HK(a,c)})}catch(d){return!1}};
var HK=function(a,b){if(C(D(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};
var IK=function(a){if(JK(a,KK))return a;if("https:"==window.location.protocol&&(JK(a,LK)||V())){var b=new N(a);if("https"==b.C)return a;ah(b,"https");return b.toString()}return a};
var JK=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
var MK=function(a){window.open(IK(a),"_blank")};
var NK=function(a,b,c){null!=a?(mh(a,"label",b),null!=c&&mh(a,"value",c.join(";")),a=a.toString()):a="";OK(a)};
var OK=function(a,b,c,d,e,f){null!=a&&null!=b&&(a=hK(a,b));try{if(null!=c){b=a;var k=(c||{}).viewability||"na";if(C(D(k)))a=b;else{var l=new N(b);wh(l.o,"label")?(mh(l,"acvw",k),a=l.toString().replace(/%2C/g,",")):a=b}}null!=e&&(a=PK(a,e));a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!f&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(f=f||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},e=0;e<f.length;++e){m.URL_SIGNALS=f[e];var p=hK(c,m);if(2048>p.length){a=p;break a}}a=
c}}catch(v){}try{a=IK(a);var u=!V()||AK(wK(),41351089);null!=d&&d?QK.Iq(a,u):QK.Hq(a,u)}catch(v){}};
var RK=function(a,b){null!=a&&E(a,function(a){OK(a,b)})};
var PK=function(a,b,c){if(C(D(b)))return a;var d=new N(a),e=d.A;return null!=e&&ua(e,".g.doubleclick.net")&&(c||wh(d.o,"label"))?(mh(d,"ged",b),d.toString()):a};
var SK=function(a,b){this.message=a;this.errorCode=b};
var TK=function(a,b,c){return UK("adLoadError",a,b||null,wb(arguments,2))};
var VK=function(a,b,c){return UK("adPlayError",a,b||null,wb(arguments,2))};
var WK=function(a,b,c,d,e){var f=a.apply(null,sb([c,d],wb(arguments,3)));b.$(new gK("log",null,f))};
var UK=function(a,b,c,d){if(c instanceof eK)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new eK(a,b,e);a.B=c;return a};
var XK=function(a,b,c,d){var e=VK.apply(null,sb([b,c],wb(arguments,3)));a.$(new fK(e))};
var YK=function(){return!ZK()&&(oc("iPod")||oc("iPhone")||oc("Android")||oc("IEMobile"))};
var ZK=function(){return oc("iPad")||oc("Android")&&!oc("Mobile")||oc("Silk")};
var $K=function(){return YK()||ZK()};
var aL=function(){return bL&&!cL||Ma(pc,"iPod")};
var dL=function(){return aL()||cL};
var eL=function(a,b){if(null==fL[b]){var c;C(gL)&&(c=a.exec(pc))&&(gL=c[1]);(c=gL)?(c=c.replace(/_/g,"."),fL[b]=0<=Sa(c,b)):fL[b]=!1}return fL[b]};
var hL=function(){var a=pc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"Opera TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV"):!1};
var iL=function(){var a=pc;return a?Ma(a,"Nintendo WiiU"):!1};
var jL=function(){return Ma(pc,"PlayStation")};
var kL=function(){return aL()||lL&&(!lL||!eL(mL,4))||!V()&&(Ma(pc,"CrKey")||jL()||Ma(pc,"Roku")||hL()||Ma(pc,"Xbox"))?!1:!0};
var nL=function(){this.o=.01>Math.random();this.A=Math.floor(4503599627370496*Math.random())};
var oL=function(a,b,c,d){if(a.o||d){c=c||{};c.lid=b;b=CK(wK());C(D(b))||(c.e=b);c=pL(a,c);var e=new N("http://pagead2.googlesyndication.com/pagead/gen_204");Pb(c,function(a,b){mh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=qL();ah(e,a.C);OK(e.toString())}};
var pL=function(a,b){b.id="";var c=qL();b.c=a.A;b.domain=c.A;return b};
var qL=function(){var a=ff(),b=window.document;return new N(a.parent==a?a.location.href:b.referrer)};
var rL=function(){};
var sL=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=I()-window.performance.timing[a],Math.round(a/1E3)):null};
var tL=function(){this.domLoading=sL("domLoading");this.domComplete=sL("domComplete");this.unloadEventStart=sL("unloadEventStart")};
var uL=function(a){var b={},c=new tL,d=null;null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+I()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};
var vL=function(a){for(var b=[],c=a=ff(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
var wL=function(){this.o={};this.A=0};
var xL=function(a,b){this.D=a;this.B=!0;this.o=b};
var yL=function(a,b,c){xL.call(this,a,c);this.C=b;this.o=!!c};
var zL=function(a){xL.call(this,"sv",a);this.o=null==a?"1":"2"};
var AL=function(a,b){xL.call(this,a,b)};
var BL=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 AL("",new te(c,b,Number(a[3])-c,Number(a[2])-b))}return new AL("",new te(0,0,0,0))};
var CL=function(){DL||(DL=new wL);return DL};
var EL=function(a){var b=new te(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new te(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 f=a[d],k=Math.max(e.left,f.left),l=Math.min(e.left+e.width,f.left+f.width);if(k<=l){var m=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(m<=f){e.left=k;e.top=m;e.width=l-k;e.height=f-m;e=!0;break a}}e=!1}if(!e)return c}return b};
var FL=function(a,b){var c=a.getBoundingClientRect(),d=ag(a,b);return new te(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
var GL=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 f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new te(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;a.setItem(new xL("vp",d));d&&0<d?(e=ue(b),f=ue(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new yL("ct",512,e));d&&0<d?(e=ue(b),f=ue(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new yL("vb",
1024,e));d&&0<d?(e=ue(b),f=ue(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new yL("vl",2048,e));d&&0<d?(b=ue(b),c=ue(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new yL("vr",4096,c))}};
var HL=function(a){this.o=jc.apply(null,arguments);return this};
var IL=function(a,b){var c=ec(a.o,"eb",0);a.o.eb=c|b};
var JL=function(a,b){ea(a);KL();for(var c=b?LL:ML,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,p=m?a[e+2]:0,u=f>>2,f=(f&3)<<4|l>>4,l=(l&15)<<2|p>>6,p=p&63;m||(p=64,k||(l=64));d.push(c[u],c[f],c[l],c[p])}return d.join("")};
var NL=function(a){var b=[];OL(a,function(a){b.push(a)});
return b};
var OL=function(a,b){KL();for(var c=PL,d=0;d<a.length;){var e=c[a.charAt(d++)],f=d<a.length?c[a.charAt(d)]:0;++d;var k=d<a.length?c[a.charAt(d)]:64;++d;var l=d<a.length?c[a.charAt(d)]:64;++d;if(null==e||null==f||null==k||null==l)throw Error();b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
var KL=function(){if(!ML){ML={};PL={};LL={};for(var a=0;65>a;a++)ML[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),PL[ML[a]]=a,LL[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(PL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
var QL=function(a,b){var c=0;Yb(ff(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=CL();d.o={};var f=new yL("ef",32,!0);f.B=!1;d.setItem(f);f=ff().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new yL("tv",64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=ff().top;try{l=!!m.location.href||""===m.location.href}catch(v){l=!1}if(l){var p=vL(e);k=p&&0!=p.length?"1":"0"}else k=
"2"}catch(v){k="2"}d.setItem(new xL("is",k));p=l=ff().top;"2"==k&&(p=ff());m=FL(e,p);d.setItem(new AL("er",m));var u;try{u=p.document&&!p.document.body?null:cf(p||window)}catch(v){u=null}d.setItem(new zL(u));u?(p=Jf(Ue(p.document)),d.setItem(new yL("sp",16384,!!p)),u=p?new te(p.x,p.y,u.width,u.height):null):u=null;d.setItem(new AL("vi",u));if(u&&"1"==k){k=vL(e);e=[];for(p=0;p<k.length;p++)(f=FL(k[p],l))&&e.push(f);e.push(u);u=EL(e)}GL(d,m,u);d.A&&(k=Math.round(I()/1E3)-d.A,d.setItem(new xL("ts",k)));
d.A=Math.round(I()/1E3)}else d=CL(),d.o={},d.A=Math.round(I()/1E3),d.setItem(new yL("ef",32,!1));this.B=d;this.o=new HL("ta",c,"ve",3);c&&IL(this.o,1);Yb(ff(),"ima","video","client","crossdomainTag")&&IL(this.o,4);Yb(ff(),"ima","video","client","sdkTag")&&IL(this.o,8);Yb(ff(),"ima","video","client","jsTag")&&IL(this.o,2);b&&ec(b,"fullscreen",!1)&&IL(this.o,16);this.A=d=null;if(c&&(c=Yb(ff(),"ima","video","client"),c.getEData)){this.A=c.getEData();if(c=Yb(ff(),"ima","video","client","getLastSnapshotFromTop"))if(k=
c())this.A.extendWithDataFromTopIframe(k.buckets,k.tt,k.pd),c=this.B,d=k.er,k=k.vi,d&&k&&(d=BL(d).getValue(),k=BL(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new AL("er",e))),c.getItem("vi")&&(u=c.getItem("vi").getValue(),u.top+=d.top,u.left+=d.left,l=[],l.push(u),l.push(d),l.push(k),d=EL(l),GL(c,e,d),c.setItem(new AL("vi",k))));d=this.A.getTimeSinceTagLoadSeconds()}this.o.extend(uL(d))};
var RL=function(a,b){try{return(new QL(a,b)).nc()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};
var SL=function(a){try{return!!a&&null!=a.location.href&&nc(a,"foo")}catch(b){return!1}};
var TL=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
var UL=function(){var a=VL;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""};
var WL=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
var XL=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
var YL=function(a){var b="";TL(a,function(a,d){if(0===a||a)b+="&"+d+"="+(0,window.encodeURIComponent)(String(a))});
return b};
var ZL=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);XL(d,"load",e);XL(d,"error",e)};
WL(d,"load",e);WL(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
var $L=function(a,b,c){this.D=a;this.C=b;this.A=c;this.B=this.o};
var aM=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1};
var bM=function(a,b,c,d){var e;try{e=c()}catch(l){var f=a.A;try{var k=cM(l),f=(d||a.B).call(a,b,k,void 0,void 0)}catch(m){a.o("pAR",m)}if(!f)throw l;}finally{}return e};
var dM=function(a,b){var c=eM;return function(){var d=arguments;return bM(c,a,function(){return b.apply(void 0,d)})}};
var cM=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(f){b=d}}return new aM(b,a.fileName,a.lineNumber)};
var fM=function(a){return"function"==typeof window.encodeURIComponent?(0,window.encodeURIComponent)(a):(0,window.escape)(a)};
var gM=function(a,b){return dM(a,b)};
var hM=function(a,b){return dM(a,b)};
var iM=function(){for(var a=W,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,SL(a)&&(b=a);return b};
var jM=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
var kM=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
var lM=function(){var a;mM.mozVisibilityState?a="mozvisibilitychange":mM.webkitVisibilityState?a="webkitvisibilitychange":mM.visibilityState&&(a="visibilitychange");return a};
var nM=function(a,b,c,d){c=dM(d||"osd_or_lidar::"+b,c);WL(a,b,c,void 0);return c};
var oM=function(a,b){this.o=a;this.A=b};
var pM=function(a){this.url=a;this.Uo=!1;this.depth=fa(void 0)?void 0:null};
var qM=function(a){a=a?a:rM();for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Uo){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new oM(c,d)};
var rM=function(){var a=r,b=[],c=null,d=null;do{var e=a;SL(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new pM(c));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=r;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.Uo=!0);return b};
var sM=function(a,b){var c=a||W;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new re(-1,-1):b?(new re(c.innerWidth,c.innerHeight)).round():cf(c||window).round()}catch(d){return new re(-12245933,-12245933)}};
var tM=function(){var a=uM().G,b=0<=vM?wM()-vM:-1,c=xM?wM()-yM:-1,d=0<=zM?wM()-zM:-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 f=b;-1!=c&&c<b&&(f=c);for(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
var wM=function(){return(new Date).getTime()-AM};
var BM=function(a){var b=[];Pb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(da(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
var CM=function(){var a=M("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
var DM=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Pf(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=We(b))){var c,d;try{if(c=ff(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return DM(d)}return!1};
var EM=function(a){FM.e=-1;FM.i=6;FM.n=7;FM.t=8;if(!GM){var b=[];E(Xb(FM),function(a){b[FM[a]+1]=a});
var c=b.join("");GM=(c=a&&a[c])&&A(c,a)}return GM};
var HM=function(){return IM&&Ft&&Ht("6.0.1")&&0<=Sa(JM,"10.1")?!0:!1};
var KM=function(a,b){this.C=null;this.G=a;this.J=b||1;this.o="u"};
var LM=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);switch(a.J){case 4:return a.G?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new oe(e,f),new oe(c-e,f),new oe(e,d-f),new oe(c-e,d-f)]):[new oe(e,0),new oe(0,f),new oe(e,d-1),new oe(c-1,f)];case 3:return[new oe(c-1,0),new oe(e,f),new oe(0,d-1)];default:return[new oe(e,f)]}};
var MM=function(a,b){var c;try{c=b||a.C.getBoundingClientRect()}catch(e){c=new qe(0,0,0,0)}var d=LM(a,c);E(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
var NM=function(a,b,c,d){KM.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};
var OM=function(a,b,c){this.snapshot=a;this.A=b;this.o=c};
var PM=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Sa(JM,"11")&&c)||wc&&9>Bc||0<a.A.length)return!1;try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=We(b),k=[];if(e){var l=CM(),d=LM(a,d);E(d,function(a,b){var d=new QM("e",f,c,String(b));this.A.push(d);k.push(A(d.Qo,d,l,a))},a);
pf(b,l,0)}else d=MM(a,d),E(d,function(a,d){var e=new QM("e",f,c,String(d));this.A.push(e);k.push(A(e.Oo,e,b,a))},a);
var m=!0;E(k,function(a){m=m&&a()});
m?(a.o="l",a.C=b,a.H=!e):(E(a.A,function(a){a.remove()}),a.A=[]);
return m};
var RM=function(a){if(a.C&&a.H){var b=MM(a);E(b,function(a,b){this.A[b]&&this.A[b].setPosition(a)},a)}};
var SM=function(a){E(a.A,function(a){a.remove()});
a.A=[];a.o="d"};
var TM=function(a){var b=I(),c=a.F?b-a.F:0,d=-1,e=O(a.A,function(a){return UM(a,b)});
4==a.A.length?d=a.G?VM(e):WM(e):3==a.A.length?d=XM(e):1==a.A.length&&(d=[-1,0,1,2,3,5][UM(a.A[0],b)+1]);a.D=d==a.B?a.D+c:0;c=new OM(d,a.B,c);a.B=d;a.F=b;YM(a,d);RM(a);return c};
var ZM=function(a){var b=Jb(Tb($M));E(a,function(a){0<=a&&++b[a]});
return b};
var WM=function(a){a=ZM(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};
var XM=function(a){var b=ZM(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};
var VM=function(a){a=ZM(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};
var YM=function(a,b){if(0==b&&aN(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"}};
var aN=function(a){return"n"==a.o?!0:"l"==a.o&&a.D>=a.L};
var QM=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(Tb(bN));this.G=Jb(Tb($M));"e"==this.B&&(cN[this.F]=A(this.Gw,this));wc?(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="'+dN(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=eN(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a};
var eN=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=dN(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};
var dN=function(a,b){var c=Tg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.F);"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Tg(c,"delay","1"));return c};
var UM=function(a,b){if("e"==a.B){var c=null;try{c=a.module.it()}catch(f){}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=fN(a);gN(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||fa(c.dj))e=d=2}else null===c.dj||c.Yl>=d?(d=10<=e?4:0,e=0):e>c.dj?(c=(e-c.dj)/(d-c.Yl)*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};
var fN=function(a){var b=null;try{b=a.module.fc()}catch(c){}return b};
var gN=function(a,b,c){var d=c-1E3,e=a.o.length;E(a.o,function(a,b){a.Yl<=d&&(e=Math.min(e,b+1))});
var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({dj:b,Yl:c})};
var hN=function(){this.F=!0;this.o=new QM("s",mM);this.D=!1;this.A=this.B=this.G=this.M=this.L=this.S=this.C=this.K=null;this.V=0;this.J=this.H=this.O=null};
var iN=function(a,b){b!==a.A&&(a.A=b,a.S(b),a.V++)};
var jN=function(a){var b=fN(a.o);null===a.O&&null!==b&&null!==a.H&&(a.O=I()-a.H);return b};
var kN=function(a){var b=a.K.getBoundingClientRect(),c;c=null!=a.M?a.M.clone():new oe(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};
var lN=function(a){a.D&&(a.L=kN(a));a.o.setPosition(a.L);a.G=W.setTimeout(hM("osd_or_lidar::sfm_tpto",A(a.Y,a)),125)};
var mN=function(a){if(a.F){var b=A(function(){1===kM(mM)?(this.B=null,lN(this)):(W.clearTimeout(this.G),iN(this,0))},a),c=lM();
if(c){var d=nM(mM,c,b,"osd_or_lidar::sfm_pv");a.J=function(){XL(mM,c,d);this.J=null}}a.F=!1;
a.A=null;b()}};
var nN=function(a){a.F||(W.clearTimeout(a.G),null===a.J||a.J(),a.F=!0)};
var oN=function(a,b){KM.call(this,a,b);this.B=[];this.F=this.H=null;this.D=!0};
var pN=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?LM(a,c):MM(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new hN,k;k=f;var l=b,m=A(a.K,a),p=e;if(null===k.H){var u="DIV"==l.tagName||"INS"==l.tagName;k.D=!u;k.K=l;e=kN(k);if(null!=p){e=p;p=new oe(0,0);if(k.D){var v=k.K.getBoundingClientRect();p.x+=v.left;p.y+=v.top}k.M=new oe(e.x-p.x,e.y-p.y)}k.S=m;m=!1;u?(m=CM(),k.C=m,pf(l,m,0),m=k.o.Qo(m,e)):m=k.o.Oo(l,e);m?(k.H=I(),k.L=e,k=
!0):(k.o.remove(),k.C&&qf(k.C),k=!1)}else k=!1;if(!k)return qN(a),a.o="c",!1;a.B.push(f)}a.F=I();a.o="l";return!0};
var rN=function(a){var b=Jb(Tb(sN));E(a.B,function(a){null!=a.A&&0<=a.A&&++b[a.A]});
switch(a.J){case 4:return tN(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}};
var tN=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};
var uN=function(a){a.D&&null!==a.F&&"d"!=a.o&&(E(a.B,function(a){mN(a)}),a.o="r",a.D=!1)};
var vN=function(a){a.D||(E(a.B,function(a){nN(a)}),a.D=!0)};
var qN=function(a){vN(a);E(a.B,function(a){nN(a);a.o&&(a.o.remove(),a.o=null);a.C&&(qf(a.C),a.C=null)});
a.B=[];a.o="d"};
var wN=function(){this.F=!1;this.G=void 0;this.B=!SL(W.top);var a=rM();this.D=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Lg(a[a.length-1].url)||"":"";this.A=this.C=this.o=null;this.H=0};
var uM=function(){xN||(xN=new wN);return xN};
var yN=function(a,b,c,d,e){this.A=zN.clone();this.G=this.ea=0;this.ke=this.ne=this.ac=-1;this.Ia=[0,0,0,0,0];this.Ta=[0,0,0,0,0];this.L=[0,0,0,0,0];this.$a=[0,0,0,0,0];this.H=d;this.aa=this.S=-1;this.Dh=b;this.jg=e;this.Mb=function(){};
this.oe=function(){};
this.Y=this.element=c;this.ig=0;this.hg=-1;this.D=null;this.O=1;this.va=!1;this.F=null;this.vc=this.Ea=this.kg=!1;this.ob=1;this.je=!0;this.lg=0;b=uM();this.gg=b.H++;AN(this,a,b.B)};
var BN=function(a,b,c,d,e){if(!(0>a.H)){var f=W.innerWidth,k=W.innerHeight,l=new qe(Math.round(W.mozInnerScreenY),Math.round(W.mozInnerScreenX+f),Math.round(W.mozInnerScreenY+k),Math.round(W.mozInnerScreenX));c=new qe(W.screenY+d,W.screenX+c.width,W.screenY+c.height,W.screenX);e||(d=new qe(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.A.top?a.A=d:(a.A.right=a.A.left+f,a.A.bottom=a.A.top+k),a.ea=f*k);a.Rf(l,c,b,e,!0)}};
var CN=function(a,b,c){var d=EM(W&&W.document);if(d){c||AN(a,W,!0);if(a.vc)d=DN(a,d);else var e=Math.floor((a.A.left+a.A.right)/2),f=Math.floor((a.A.top+a.A.bottom)/2),k=df(window.document),d=d(e-k.x,f-k.y)?.5:0;a.Rf(a.A,d,b,c,!0)}};
var EN=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}};
var DN=function(a,b){function c(a,c){return Boolean(b(a,c))}
var d=df(window.document),e=a.ob,f=Math.floor(a.A.left-d.x)+1,k=Math.floor(a.A.top-d.y)+1,l=Math.floor(a.A.right-d.x)-e,m=Math.floor(a.A.bottom-d.y)-e,d=(m-k)*(l-f);if(k>m||f>l)return 0;var e=c(f,k),p=c(l,m);if(e&&p)return 1;var u=c(l,k),v=c(f,m);if(e)m=EN(k,m,function(a){return c(f,a)}),l=EN(f,l,function(a){return c(a,k)});
else if(u)m=EN(k,m,function(a){return c(l,a)}),f=EN(l,f,function(a){return c(a,k)});
else if(v)k=EN(m,k,function(a){return c(f,a)}),l=EN(f,l,function(a){return c(a,m)});
else if(p)k=EN(m,k,function(a){return c(l,a)}),f=EN(l,f,function(a){return c(a,m)});
else{var z=Math.floor((f+l)/2),x=Math.floor((k+m)/2);if(!c(z,x))return 0;k=EN(x,k,function(a){return c(z,a)});
m=EN(x,m,function(a){return c(z,a)});
f=EN(z,f,function(a){return c(a,x)});
l=EN(z,l,function(a){return c(a,x)})}return(m-k)*(l-f)/d};
var FN=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};
var GN=function(a,b,c){a.O=c;if(!Boolean(Boolean(a.Y&&!HM())&&!HM()))return a.va=!0,!1;c=new NM(!1,void 0,void 0,a.O);var d=PM(c,a.Y,String(a.gg));d?(a.oe=b,a.D=c):a.va=!0;return d};
var HN=function(a,b){if(!a.element||!HM())return!1;a.O=b||1;var c=new oN(!1,a.O),d=pN(c,a.element,A(function(a){IN(this,wM(),!1,[0,.01,.5,1,.01,.3][a])},a));
d?(a.F=c,uN(c)):a.kg=!0;return d};
var IN=function(a,b,c,d){if(!(0>a.H)&&JN(a)){c?a.F&&vN(a.F):(AN(a,W,!0),a.F&&uN(a.F));var e=d||0;fa(d)||-1==a.S||(e=[1,.75,.5,.3,.01][a.S]||0);a.Rf(a.A,e,b,c,!1);!a.Me()||a.Ai()||a.F&&qN(a.F)}};
var JN=function(a){return null!==a.F&&"d"!=a.F.getStatus()};
var AN=function(a,b,c){a.lg++;b=c?b:b.top;try{var d=zN.clone(),e=new oe(0,0);if(a.Y){if(c||1!=a.jg||!DM(a.Y))d=a.Y.getBoundingClientRect();e=ag(a.Y,b)}var f=e.x,k=e.y;a.A=new qe(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(l){a.A=zN.clone()}a.ea=(a.A.bottom-a.A.top)*(a.A.right-a.A.left)};
var KN=function(a){a.D&&SM(a.D);a.F&&qN(a.F)};
var LN=function(a,b,c,d,e){this.qa=0;this.Yb=[0,0,0,0,0];this.Nb=[0,0,0,0,0];this.ia=[0,0,0,0,0];this.ib=this.Da=0;this.J={};this.zd={};this.K=this.C="";this.yd=!1;this.Ua=[];this.ma=void 0;this.Ca=this.na=this.re=this.da=!1;this.B=void 0;this.wc=0;this.ha=-1;this.ub=this.fa=0;this.Ga=void 0;this.V=-1;this.rb=void 0;this.Qa=this.Z=0;this.La=-1;this.yc=!1;this.U=this.bb=0;this.ab=!1;this.o=0;this.Cd=this.Dd=this.xc=!1;this.he=0;this.qe=this.Bd=this.M=!1;this.ie=0;this.pe=!1;yN.call(this,a,b,c,d,e)};
var MN=function(a,b){var c=a.wc;xM||a.ma||-1==a.ha||(c+=b-a.ha);return c};
var NN=function(a){if("as"==a.B){var b="sdkVolume"+a.K;if(ha(a.element[b]))try{return Number(a.element[b]())}catch(c){return-1}}if("h"==a.B&&(b=t("ima.common.sdkVolume"),ha(b)))try{return Number(b(a.C))}catch(c){return-1}};
var ON=function(a){a.vc=!0;a.ob=2};
var PN=function(a,b){ub(a.Ua,Jb(b-a.Ua.length+1));a.Ua[b]=(100*a.G|0)/100};
var QN=function(a,b){var c=a.zd[b];if(null!=c)return c;if(a.Ea)return{"if":0};var d=a.A.clone();d.round();var e=O(a.Ua,function(a){return 100*a|0}),c=uM(),d={"if":c.B?1:void 0,
sdk:a.B?a.B:void 0,p:[d.top,d.left,d.bottom,d.right],tos:a.Ia,mtos:a.Ta,ps:void 0,pt:e,vht:MN(a,wM()),mut:a.ub,a:a.Ga,ns:a.ie,at:a.bb,as:a.ab?1:0,afvt:a.U,vpt:a.Qa};if("h"==a.B||"as"==a.B)d.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(d.std="csm");a.vc&&(d.efpf=a.ob);a.D&&(d.swf=a.D.getStatus(),d.px=a.O);a.F&&(d.sfm=a.F.getStatus(),d.px=a.O);0<a.he&&(d.nnut=a.he);d.vme=a.xc?1:0;d.nmtd=a.Dd?1:0;d.mmct=a.Cd?1:0;d.vpaid=a.rb;d.dur=a.V;d.vmtime=a.Z;d.vmtos=a.Yb;d.vmmtos=a.Nb;RN(a,b)&&
a.Me()&&(d.dtos=a.qa,d.vmdtos=a.Da,a.ib++,d.dtoss=a.ib,a.qa=0,a.Da=0);!a.Me()&&2E3<=a.Da&&(d.vmdtos=a.Da);c.A&&(d.ps=[c.A.width,c.A.height]);d.dom=c.D;a.va&&(d.fmf="1",d.px=a.O);a.da&&(d.ven="1");a.re&&(d.veh="1");a.o&&(d.vds=a.o);SN()?d.c=(100*a.G|0)/100:d.tth=wM()-TN;return d};
var RN=function(a,b){if(jb(UN,b))return!0;var c=a.J[b];return n(c)&&(a.J[b]=!0,!c)?!0:!1};
var VN=function(){if(!WN){WN=!0;var a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame;if(!XN){var b;if(a){var c=dM("osd_or_lidar::throttled_scroll_raf_callback",YN);b=function(){a(function(){W.setTimeout(c,0)})}}else b=YN;
ZN=new Am(dM("osd_or_lidar::throttled_scroll_timeout",b),100);b=A(ZN.jf,ZN);XN=nM(W,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!$N){if(a){var d=dM("osd_or_lidar::throttled_resize_raf_callback",bO);b=function(){a(function(){W.setTimeout(d,0)})}}else b=bO;
cO=new Am(dM("osd_or_lidar::throttled_resize_timeout",b),100);b=A(cO.jf,cO);$N=nM(W,"resize",b,"osd_or_lidar::throttled_resize")}dO();eO()}};
var bO=function(){fO(!1);YN()};
var YN=function(){gO(hO(),!1)};
var iO=function(){var a,b=uM();jO&&(b.o=sM(W,jO));var b=b.o,c=kO,d=lO;if(mO){a=c;fO(!1);var e=uM(),f=e.C,b=f.height-a;0>=b&&(b=f.height,a=0);e.o=new re(f.width,b);b=new nO;b.F=!0;b.B=e.o;b.A=f;b.C=a;return b}if(d)return a=new nO,a.D=!0,a;if(oO)return a=new nO,a.G=!0,a;if(pO)return a=new nO,a.H=!0,a;a:{c=new nO;c.B=b;c.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var d=jO,k=W||W,k=k.top,e=b||sM(k,d),f=Jf(Ue(k.document));a=-1==e.width||-12245933==e.width?
new qe(e.width,e.width,e.width,e.width):new qe(f.y,f.x+e.width,f.y+e.height,f.x)}catch(l){a=c;break a}c.J=a;c.o=!0}a=c}return a};
var gO=function(a,b){var c;if(!qO)if(window.clearTimeout(rO),rO=null,0==a.length)b||sO();else{var d=iO();try{var e=wM();if(d.F)for(c=0;c<a.length;c++)BN(a[c],e,d.A,d.C,b);else if(d.D)for(c=0;c<a.length;c++)CN(a[c],e,b);else if(d.G)E(a,function(a){if(b){if(a.D){var c=a.D;3<=c.B&&(c.B=3);a.S=-1}}else if(a.D&&"d"!=a.D.getStatus()){var c=TM(a.D),d=[0,0,0,0,0,.01,.5,1,.01,.3];a.G=d[c.snapshot+1];var e=FN(a.G);a.ij(e,c.o,FN(d[c.A+1]),!0,!1);a.S=e;a.Mb(a,zN);!a.Me()||a.Ai()||a.je||a.D&&SM(a.D);(c=2==c.snapshot||
aN(a.D))||(c=a.D,c="f"==c.o&&c.D>=c.K);c&&(a.oe(a),a.je=!1,a.D&&SM(a.D))}});
else if(d.H)for(c=0;c<a.length;c++)IN(a[c],e,b);else if(d.o){var f=uM();for(c=0;c<a.length;c++)a[c].update(e,d.J,b,W,f.B)}++tO}finally{b?E(a,function(a){a.G=0}):sO()}}};
var dO=function(){var a=eO,b=lM();b&&(uO=uO||nM(mM,b,a,"osd_or_lidar::visibility"))};
var eO=function(){var a=SN();if(a){if(!xM){var b=wM();yM=b;E(vO,function(a){a.wc=MN(a,b)})}xM=!0;
fO(!0)}else b=wM(),xM=!1,TN=b,E(vO,function(a){0<=a.H&&(a.ha=b)});
gO(hO(),!a)};
var SN=function(){if(wO())return!0;var a=kM(W.document);return 1==a||0==a};
var sO=function(){W&&(rO=W.setTimeout(hM("osd_or_lidar::psamp_to",function(){gO(hO(),!1)}),tM()))};
var hO=function(){return 0==vO.length?xO:0==xO.length?vO:sb(xO,vO)};
var yO=function(){var a=W.document;return a.body&&a.body.getBoundingClientRect?!0:!1};
var fO=function(a){var b=uM();b.o=sM(W,jO);if(!a){b.C=W&&W.outerWidth?new re(W.outerWidth,W.outerHeight):new re(-12245933,-12245933);var c;a=W;a.top!=a&&(a=a.top);var d=0,e=0,f=uM().o;try{var k=a.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)d=m.scrollHeight!=f.height?m.scrollHeight:m.offsetHeight,e=m.scrollWidth!=f.width?m.scrollWidth:m.offsetWidth;else{var p=m.scrollHeight,u=m.scrollWidth,v=m.offsetHeight,z=m.offsetWidth;m.clientHeight!=v&&(p=l.scrollHeight,
u=l.scrollWidth,v=l.offsetHeight,z=l.offsetWidth);p>f.height?p>v?(d=p,e=u):(d=v,e=z):p<v?(d=p,e=u):(d=v,e=z)}c=new re(e,d)}catch(x){c=new re(-12245933,-12245933)}b.A=c}};
var zO=function(){var a=AO;if(1<=Math.random())return!1;var b=!1;E(vO,function(a){a=HN(a,3);b=b||a});
(pO=b)&&E(vO,function(b){JN(b)||a(b)});
return b};
var BO=function(){var a=AO,b=!1;E(vO,function(c){c=GN(c,a,n(1)&&1>Math.random()?3:1);b=b||c});
(oO=b)&&E(vO,function(b){Boolean(b.D)||a(b)});
return b};
var CO=function(a){E(a,function(a){null==eb(vO,function(c){return c.element==a.element&&c.K==a.K})&&vO.push(a)})};
var wO=function(){return Ih(vO,function(a){return a.M})};
var nO=function(){this.A=this.B=null;this.C=0;this.J=null;this.o=this.H=this.G=this.D=this.F=!1};
var DO=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(DO(a[e],b,c+1));return d.join(b[c])};
var EO=function(){var a=rM(),b=a.length-1,c=qM(a),a=c.o,d=c.A,c=[];d?(a&&c.push(FO(b,[d.url,2],0,[a.url,0],a.depth)),c.push(FO(b,[d.url,2],0))):a&&a.url&&(c.push(FO(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=GO.exec(a.url))&&d[0]||"")&&c.push(FO(b,[d,1],a.depth)));c.push(FO(b));return c};
var FO=function(a,b,c,d,e){a=[a];if(n(b)&&n(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(n(d)&&n(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
var HO=function(){var a=EO();return O(a,function(a){return DO(a)})};
var IO=function(){var a=JO||W;if(!a)return"";var b=a.document,c=[];c.push("url="+fM(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+fM(b.referrer.substring(0,512)));return c.join("&")};
var KO=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
var LO=function(a){return!!(1<<a&MO)};
var NO=function(){try{OO()}catch(d){}var a="a=1&b="+MO+"&",b=[],c=99;E(PO,function(a,c){var f=!1;try{f=a(W)}catch(k){}b[c/32>>>0]|=f<<c%32});
E(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;E(QO,function(b){var e="false";try{e=b(W)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
E(RO,function(b){var e="";try{var f=b(W);b=[];for(var k=0,l=0;l<f.length;l++){for(var m=f.charCodeAt(l);255<m;)b[k++]=m&255,m>>=8;b[k++]=m}e=JL(b,!0)}catch(p){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
var OO=function(){if(!SO){var a=function(){TO=!0;W.document.removeEventListener("webdriver-evaluate",a,!0)};
W.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){UO=!0;W.document.removeEventListener("webdriver-evaluate-response",b,!0)};
W.document.addEventListener("webdriver-evaluate-response",b,!0);SO=!0}};
var VO=function(){if(!WO){WO=!0;try{vM=wM(),1>Math.random()&&(XO=!0),JO=iM(),fO(!1),yO()?(window.setTimeout(function(){},1),uM().B?YO():VN()):ZO=!0}catch(a){throw vO=[],xO=[],a;
}}};
var YO=function(){var a;if(uc&&fa(W.screenX)&&fa(W.mozInnerScreenX)&&fa(W.outerWidth)){var b=W.navigator.userAgent,c=b.indexOf("Firefox/");a=-1;if(0<=c){a=Math.floor(b.substr(c+8))||-1;var d=b.indexOf("Mac OS X 10."),c=-1;0<=d&&(c=Number(b.substr(d+12,1))||-1);var e=0<c?-1:b.indexOf("Windows NT "),d=-1;0<=e&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(e+11,3)]||-1);b=148;5<=c?b=4<=a?108:3<=a?127:108:0<=d&&(16==a||17==a||18==a)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][a-16]);a=b}else a=null;null!==
a&&(kO=a,mO=!0);a=!0}else a=!1;if(a)VN();else if(a=W&&W.document,a=wc&&zc(8)&&ha(EM(a))?lO=!0:!1,a)$O=1>Math.random(),VN();else{if(HM()){if(zO()){VN();aP=!0;return}}else if(BO()){VN();bP=!0;return}window.clearTimeout(rO);rO=null;cP="i";qO=!0}};
var AO=function(a){if(a){if(!a.yd){var b=[];b.push("v=379v");b.push("r=fp");b.push("efm="+(bP?1:0));b.push("esfm="+(aP?1:0));b.push(Sg(QN(a,"start")));b.push(IO());b="&"+b.join("&");ZL(W,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.yd=!0}a.Ea=!0}};
var dP=function(a,b){a.wc=MN(a,wM());var c=!SN();gO([a],c);a.ma=!0;return QN(a,b)};
var eP=function(a,b){if(!a.qe){a.qe=!0;"i"!=cP&&(qO=!1);if(bP&&!Boolean(a.D)&&!a.va){var c=1>Math.random()?3:1;GN(a,AO,c)}if(aP&&!JN(a)){a:{c=[3,1];if(!(1E-4>Math.random())){var d=Math.random();if(1>d){var e=window;try{var f=new window.Uint32Array(1);e.crypto.getRandomValues(f);d=f[0]/65536/65536}catch(k){d=Math.random()}c=c[Math.floor(d*c.length)];break a}}c=null}HN(a,c)}a.J={};a.J.firstquartile=!1;a.J.midpoint=!1;a.J.thirdquartile=!1;a.J.complete=!1;a.J.pause=!1;a.J.skip=!1;a.J.viewable_impression=
!1;a.ib=0;f=n(b)?b.opt_nativeTime:void 0;zM=f=fa(f)?f:wM();a.Ia=[0,0,0,0,0];a.Ta=[0,0,0,0,0];a.L=[0,0,0,0,0];a.$a=[0,0,0,0,0];a.H=-1;a.ac=-1;a.ke=-1;a.ig=0;a.hg=-1;a.S=-1;a.aa=-1;a.G=0;a.H=f;c=!1;SN()||(c=!0,a.ha=f);gO([a],c)}};
var fP=function(a){if(y(a)){var b=fb(vO,function(b){return b.C==a});
0<=b&&(KN(vO[b]),qb(vO,b))}};
var gP=function(a,b){if(b.opt_adElement)return hP(a,b.opt_adElement);var c=iP(a,b.opt_sdkID||"");return c?c:c=eb(vO,function(b){return b.C==a})};
var hP=function(a,b){var c=eb(vO,function(a){return a.element==b});
null!==c&&c.C!=a&&(fP(c.C),c=null);c||(c=jP(b),c.C=a,c.B="h");return c};
var iP=function(a,b){var c=eb(vO,function(c){return c.element?kP(c.element,b)==a&&c.K==b:!1});
null!==c&&c.C!=a&&(fP(c.C),c=null);if(c)return c;c=lP(b);c=eb(c,function(c){return kP(c,b)==a});
if(!c)return null;c=jP(c);c.B="as";c.C=a;c.K=b;return c};
var lP=function(a){var b=W.document,c=Kb(O(["embed","object"],function(a){return tb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=$d(c,function(a){if(!a||!ia(a)||1!=a.nodeType||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})};
var kP=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};
var jP=function(a){a=new LN(W,"",a,-1,7);a.Mb=mP;uM().G=79463069;CO([a]);VN();return a};
var mP=function(a){if(a.Me()&&!a.da){var b="as"==a.B,c="h"==a.B,d="n"==a.B,e="a"==a.B,f=t("ima.common.triggerViewEvent"),k=t("ima.bridge.triggerViewEvent");try{var l=nP("viewable_impression",a);if(c)ha(f)?(f(a.C,l),a.da=!0):a.o|=8;else if(e)ha(f)?(f(a.C,l),a.da=!0):a.o|=131072;else if(d)ha(k)?(k(a.C,l),a.da=!0):a.o|=32;else if(b){var m="triggerViewEvent"+a.K;a.element&&a.element[m]?(a.element[m](l),a.da=!0):a.o|=1}else a.o|=16}catch(x){a.o|=2}}else a.o|=4;if((15E3<=a.U||a.yc&&(-1!=a.V?a.U>=a.V/2:
-1!=a.La&&a.U>=a.La))&&!a.Ca){b="as"==a.B;c="h"==a.B;d="a"==a.B;try{if(c){var p=t("ima.common.triggerExternalActivityEvent");if(ha(p)){var u=nP("fully_viewable_audible_half_duration_impression",a);p(a.C,u,"fully_viewable_audible_half_duration_impression");a.Ca=!0}else a.o|=8192}else if(d){var v=t("ima.common.triggerExternalActivityEvent");ha(v)?(u=nP("fully_viewable_audible_half_duration_impression",a),v(a.C,u,"fully_viewable_audible_half_duration_impression"),a.Ca=!0):a.o|=65536}else if(b){var z;
z="triggerExternalActivityEvent"+a.K;a.element&&a.element[z]?(a.element[z]("fully_viewable_audible_half_duration_impression"),a.Ca=!0):a.o|=64}else a.o|=16384}catch(x){a.o|=128}}};
var oP=function(a){if(a.na||a.Ea)a.o|=1024;else{var b="as"==a.B,c="h"==a.B,d="n"==a.B,e="a"==a.B,f=t("ima.common.triggerMeasurableEvent"),k=t("ima.bridge.triggerMeasurableEvent");try{var l=nP("measurable_impression",a);if(c)ha(f)?(f(a.C,l),a.na=!0):a.o|=2048;else if(e)ha(f)?(f(a.C,l),a.na=!0):a.o|=262144;else if(d)ha(k)?(k(a.C,l),a.na=!0):a.o|=32768;else if(b){var m="triggerMeasurableEvent"+a.K;a.element&&a.element[m]?(a.element[m](),a.na=!0):a.o|=256}else a.o|=4096}catch(p){a.o|=512}}};
var nP=function(a,b){var c=$b(pP,function(b){return b==a}),c={e:qP[c],
zJ:"379v"},d=QN(b,a);hc(c,d);b.zd[a]=d;return BM(c)};
var rP=function(a,b,c){var d=a.toLowerCase();if(a=$b(pP,function(a){return a==d})){a={v:"379v",
e:qP[a]};if(c.opt_bounds)return a.msg="ol",BM(a);if(ZO)return a.msg="ue",BM(a);b=gP(b,c);a.nas=vO.length;if(!b)return a.msg="nf",BM(a);VO();"i"==cP&&(b.Ea=!0);$O&&ON(b);var e=c.opt_fullscreen;n(e)&&(b.M=Boolean(e));jb(sP,d)&&(eP(b,c),XO&&oP(b));if(e=tP[d]){c=e(b,c);if(!n(c)||y(c))return c;hc(a,c);return BM(a)}}};
var uP=function(){var a={};a.moatInit=NO();return a};
var vP=function(a,b,c){var d={};d.viewability=wP(a,b,c);a={gmm:"2"};a.j=uM().D;b=MO=(new Date).getTime();c=LO(5);b=(TO?!c:c)?b|2:b&-3;c=LO(2);b=(UO?!c:c)?b|8:b&-9;b={s1:(b>>>0).toString(16)};hc(a,b);a=BM(a);d.moatViewability=a;return d};
var wP=function(a,b,c){var d={};hc(d,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});return rP(a,b,d)};
var xP=function(a,b){var c=uM();if(c.F!=a){c.F=a;var d=Ih(vO,function(a){return a.pe});
E(vO,function(c){a||d||(c.H=b);c.Bd=a;c.pe=!1})}};
var yP=function(){H.call(this);this.o=null;this.D=new Cm(this);G(this,this.D);this.F=null;this.K=new wg;this.J=new wg;this.B=this.C=null;this.A=!1;this.G=(ha(null),null)};
var zP=function(){null!=AP||(AP=new yP);return AP};
var BP=function(a){var b=zP();a=b.K.get(a)||b.F;return null!=a?a():{}};
var CP=function(a){if(null==a)return!1;if(aL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=DP(a);return 0>=b-a.width&&42>=c-a.height};
var DP=function(a){return ha(a.getBoundingClientRect)&&yf(We(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
var EP=function(a,b){a.C=b};
var FP=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):oK.B)null!=e.opt_fullscreen||(e.opt_fullscreen=CP(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=DP(a.C));return bM(eM,"lidar::handlevast_html5",pa(vP,b,c,e),GP)||{}}return{}};
var HP=function(){var a=zP();if(!a.A)return null;if(null!=a.B)return a.B;a.B=bM(eM,"lidar::getinitsignals_html5",uP,GP)||null;return a.B};
var IP=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.o.send("activityMonitor","pageSignals",b)}};
var JP=function(a,b,c){if(!oK.C)return"";var d=b?a.J.get(b):oK.B;a={};null!=c&&(a.fullscreen=c);return RL(function(){return d},a)};
var KP=function(a,b,c){if(lb(a))return null;a=$d(a,function(a){var b=a.C;return"application/x-mpegurl"==D(a.o).toLowerCase()||"progressive"==b});
lb(c)||(c=O(c,function(a){return a.toLowerCase()}),a=$d(a,function(a){return jb(c,D(a.o).toLowerCase())}));
if(!fa(b)||0>=b)b=YK()?500:1E3;return LP(a,b)};
var LP=function(a,b){return MP(a,b)||NP(a,b)||OP(a,b)};
var MP=function(a,b){var c=null;E(a,function(a){var e=a.Rd,f=a.Qd;e>b||f<b||!(null==c||c.Rd>e)||(c=a)});
return c};
var NP=function(a,b){var c=null;E(a,function(a){var e=a.Rd,f=a.Qd;f>b||(null==c||c.Qd<f?c=a:null!=c&&c.Qd==f&&c.Rd>e&&(c=a))});
return c};
var OP=function(a,b){var c=null;E(a,function(a){var e=a.Rd,f=a.Qd;if(!(e<b))if(null!=c&&c.Rd==e&&c.Qd<f)c=a;else if(null==c||c.Rd>e)c=a});
return c};
var PP=function(){H.call(this);this.F=this.J=this.M=this.G=!1;this.A=0;this.C=[];this.H=!1;this.O=this.S=window.Infinity;this.B=0;this.L=!1;this.D=new Cm(this);this.K={}};
var QP=function(a,b){null==b||a.G||(a.o=b,RP(a),a.G=!0)};
var SP=function(a){null!=a.o&&a.G&&(TP(a),a.G=!1,a.J=!1,a.F=!1,a.A=0,a.C=[],a.H=!1)};
var RP=function(a){TP(a);!(a.o instanceof H)&&"ontouchstart"in window.document.documentElement&&dL()?(a.K={touchstart:A(a.eB,a),touchmove:A(a.dB,a),touchend:A(a.cB,a)},Pb(a.K,function(a,c){this.o.addEventListener(c,a,!1)},a)):a.D.P(a.o,"click",a.so)};
var TP=function(a){a.D.za(a.o,"click",a.so);Pb(a.K,function(a,c){this.o.removeEventListener(c,a,!1)},a);
a.K={}};
var UP=function(a,b){a.C=[];E(b,function(a){ob(this.C,a.identifier)},a)};
var VP=function(a,b){return Ih(b,function(a){return jb(this.C,a.identifier)},a)};
var WP=function(a){null!=a?FK(XP,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=EK(a)?YP(a):null:a=null;return a};
var ZP=function(a,b,c){if(null==a)return null;c=new N((null!=c?c:"//www.youtube.com/")+"watch");var d=c.o;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");eh(c,d);return c.toString()};
var $P=function(a){return null===a?!1:"pharma"==(new N(a)).De().toLowerCase()};
var YP=function(a){if(C(D(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=lh(new N(a));return wh(a,"v")?a.get("v").toString():wh(a,"video_id")?a.get("video_id").toString():null};
var aQ=function(a){return C(D(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
var bQ=function(){H.call(this)};
var cQ=function(a){H.call(this);this.o=a;this.V=new ym(4);this.B=0;this.O=this.C=this.L=this.H=!1;this.M=this.Uc();this.K=this.Od();this.U=15E3;this.S=!1};
var dQ=function(a){a.L=!1;a.C=!1;a.H=!1;a.B=0;a.O=!1;a.V.clear();eQ(a);Nb(a.D)};
var fQ=function(a){a.C||(a.C=!0,eQ(a),a.$("start"),kL()||!lL||lL&&eL(mL,3)||aL()&&(!dL()||!eL(gQ,4))||a.Pk())};
var hQ=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};
var eQ=function(a){a.J&&(Td(a.J),a.J=null)};
var iQ=function(){H.call(this);this.A=new jQ;this.o=new Cm(this);var a=kK();if(a){a:{if(Zb(a.o,"videoElementMockDuration")&&(a=a.o.videoElementMockDuration,fa(a)))break a;a=window.NaN}this.duration=a}};
var kQ=function(){var a=["video/mp4"],b=["video/ogg"],c=new iQ;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};
var lQ=function(a){this.startTime=0;this.endTime=a};
var jQ=function(){this.length=0;this.o=[]};
var mQ=function(){};
var nQ=function(){throw Error("Do not instantiate directly");};
var oQ=function(){nQ.call(this)};
var pQ=function(a,b){var c;a:{var d=a(b||qQ,void 0,void 0);c=Ue().createElement("DIV");d=rQ(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};
var rQ=function(a){if(!ia(a))return String(a);if(a instanceof nQ){if(a.Qc===sQ)return a.getContent();if(a.Qc===tQ)return ya(a.getContent())}return"zSoyz"};
var uQ=function(a,b){return null!=a&&a.Qc===b};
var vQ=function(a){if(null!=a)switch(a.ed){case 1:return 1;case -1:return-1;case 0:return 0}return null};
var wQ=function(){nQ.call(this)};
var X=function(a){return null!=a&&a.Qc===sQ?a:a instanceof Pe?xQ(Re(a),a.ff()):xQ(ya(String(String(a))),vQ(a))};
var yQ=function(){nQ.call(this)};
var zQ=function(){nQ.call(this)};
var AQ=function(){nQ.call(this)};
var BQ=function(){nQ.call(this)};
var CQ=function(){nQ.call(this)};
var DQ=function(a,b){this.content=String(a);this.ed=null!=b?b:null};
var EQ=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
var FQ=function(a,b,c){var d="key_"+a+":"+b,e=GQ[d];if(void 0===e||0>e)GQ[d]=0,HQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
var IQ=function(a,b){var c=HQ["key_"+a+":"+b];c||""==b||(c=HQ["key_"+a+":"]);return c?c:JQ;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
var JQ=function(){return""};
var KQ=function(a){return X(a)};
var LQ=function(a){return String(a).replace(MQ,"").replace(NQ,"&lt;")};
var OQ=function(a){return uQ(a,sQ)?(a=LQ(a.getContent()),String(a).replace(PQ,QQ)):ya(String(a))};
var RQ=function(a){return uQ(a,sQ)?(a=LQ(a.getContent()),String(a).replace(SQ,QQ)):String(a).replace(TQ,QQ)};
var UQ=function(a){return"%"+a.charCodeAt(0).toString(16)};
var VQ=function(a){a=va(String(a));WQ.lastIndex=0;return WQ.test(a)?a.replace(WQ,UQ):a};
var XQ=function(a){return String(a).replace(YQ,ZQ)};
var $Q=function(a){if(uQ(a,aR)||uQ(a,bR))return String(a).replace(YQ,ZQ);a instanceof He?a=XQ(Je(a)):a instanceof Me?a=XQ(Oe(a)):(a=String(a),a=cR.test(a)?a.replace(YQ,ZQ):"#zSoyz");return a};
var dR=function(a){eR[1]||(eR[1]=new mQ);var b=vQ(a);if(null==b){var c=b=0,d=!1;a=ye(a+"",uQ(a,sQ)).split(fR);for(var e=0;e<a.length;e++){var f=a[e];gR.test(ye(f,void 0))?(b++,c++):hR.test(f)?d=!0:iR.test(ye(f,void 0))?c++:aaa.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return baa(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")};
var QQ=function(a){return caa[a]};
var ZQ=function(a){return daa[a]};
var eaa=function(a,b,c){return""+IQ("a",a.Yh)(a,null,c)};
var faa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+KQ(dR(a.Oc))+">"+X(a.Oc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var gaa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+KQ(dR(a.Oc))+">"+X(a.Oc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+X(a.Bf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var haa=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'};
var jR=function(){var a="",b=ra("Share");return a+b};
var kR=function(a){return""+IQ("b",a.Yh)(a,null,void 0)};
var iaa=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="2" class="videoAdUiExtendButton videoAdUiAction" style="display: none">'+X(a.Rv)+'</button><br/><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+X(a.skipText)+'<div class="videoAdUiSkipIcon"></div><div class="videoAdUiAutoSkipText"></div></button></div>'};
var jaa=function(){var a="",b=ra("Continue Ad");return a+b};
var lR=function(a){var b="";a=2<=a.fj&&1<=a.Eh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:X(a.Eh),totalAds:X(a.fj),timeLeft:X(a.cj)}):ra("Ad {$timeLeft}",{timeLeft:X(a.cj)});return b+=a};
var mR=function(){var a=nR(),b=xQ("</a>"),c="",a=ra("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:X(a),endFormat:X(b)});return xQ(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
var nR=function(){return xQ('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
var oR=function(a){return xQ("<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>")};
var kaa=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.Tq,d=c.length,e=0;e<d;e++)b+="<li>"+X(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+X(a.bi)+"</div><a class='videoAdUiWhyThisAdUnsubscribe videoAdUiHideIfEmpty'>"+X(a.unsubscribe)+"</a><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=""+oR({heading:pR(""+X(a.heading)),message:pR(b),buttons:pR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+X(a.close)+"</button>")});return xQ(a)};
var laa=function(a){return xQ(oR({heading:pR("<div class='videoAdUiPopupBack'></div>"+X(a.heading)),message:pR(""+X(a.message)),buttons:pR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")}))};
var maa=function(a){for(var b=""+X(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+OQ(e)+"'><input type='radio' id='videoAdUiMuteOption"+OQ(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+OQ(e)+"' />"+X(f)+"</label>");a=""+oR({heading:pR(X(a.heading)+" <a class='videoAdUiMuteUndo'>"+X(a.undo)+"</a>"),message:pR(b),buttons:pR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+
X(a.confirm)+"</button>")});return xQ(a)};
var naa=function(a){var b=String(""+a.heading);return xQ(oR({heading:b?new DQ(b,void 0):"",message:pR(""+X(a.message)),buttons:pR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")}))};
var qR=function(a,b,c){if(null==a||!yf(We(a),a))throw VK(rR,null,"containerElement","element");this.D=a;this.A=this.o=null;this.C=b;this.F=c||!1;this.B=null;this.o=M("div",{style:"display:none;"});a=kK();lK(a,"useVideoElementMock")?(a=kQ(),b=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.mg=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.bj=M("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.mg.appendChild(a.bj),b.appendChild(a.mg),a.o.P(a,["loadeddata","playing","pause","ended"],a.sB),a=b):(a="",b=ra("Advertisement"),a=M("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.A=a;this.D.appendChild(this.o);this.o.appendChild(this.A);this.C&&(a=M("div",{id:this.C,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.o.appendChild(a));this.F&&(this.B=M("div",{style:"position:absolute;width:100%;height:100%;"}),
this.o.appendChild(this.B))};
var sR=function(a){H.call(this);this.S="ima-chromeless-video";var b=null;null!=a&&(y(a)?this.S=a:b=a);this.O=new Cm(this);this.F=null;this.C=!1;this.fa=this.Uc();this.ea=this.Od();this.K=-1;this.Z=!1;this.G=-1;this.B=this.Y=this.L=null;this.U="";this.o=!1;this.da=null!=b;this.ha=this.na=this.M=this.aa=this.A=null;this.D=void 0;this.H=this.ma=null;this.J=this.qa=0;this.da?(this.o=!0,this.A=b,this.D=2):(a=A(this.Ev,this),tR?a():(uR.push(a),a=lf("script"),a.src="https://www.youtube.com/iframe_api",b=
window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
var vR=function(a,b,c){var d={};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.L&&(d.utpsa=1);a.B.B&&hc(d,a.B.B)}e=WP(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()&&AK(wK(),41351017)&&(d.enabled_engage_types=
(3).toString());a.C=!1;a.B&&a.B.A?(a.ma=d,a.A.preloadVideoByPlayerVars(a.ma)):a.A.cueVideoByPlayerVars(d);a.$("loaded")};
var wR=function(a){a.O.za(a.F,"tick",a.vp);null!=a.F&&(a.F.stop(),a.F=null)};
var xR=function(a){null!=a.va&&Td(a.va)};
var yR=function(a){H.call(this);this.o=a||Wa();this.B=[]};
var zR=function(a,b,c,d,e){kc.call(this,a);this.kc=b;this.nd=c;this.ro=d;this.C=e};
var AR=function(a,b){yR.call(this,b);this.C=a;this.Kc=null;this.D=new Cm(this);this.logger=null;this.D.P(ff(),"message",this.receive)};
var BR=function(a){if(null==a||!y(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return be(a)}catch(b){return null}};
var oaa=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.o;e.channel=a.C;return"ima://"+de(e)};
var CR=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.C)return!1;c=b.sid;return null==c||"*"!=a.o&&c!=a.o?!1:!0};
var DR=function(a,b){H.call(this);this.C=a;this.B=b;this.o={};this.A=new Cm(this);this.A.P(ff(),"message",this.D)};
var ER=function(a,b,c,d){a.o.hasOwnProperty(b)||(c=new AR(b,c),a.A.P(c,a.C,function(a){a=new FR(a.type,a.kc,a.nd,a.ro,a.getOrigin(),b);this.$(a)}),c.Kc=d,c.connect(),a.o[b]=c)};
var FR=function(a,b,c,d,e,f){zR.call(this,a,b,c,d,e);this.B=f};
var GR=function(){var a=t("google.ima.gptProxyInstance",ff());if(null!=a)return a;Cm.call(this);this.B=new DR("gpt",!0);G(this,this.B);this.P(this.B,"gpt",this.F);this.o=null;HR()||ff().top===ff()||(this.o=new DR("gpt",!1),G(this,this.o),this.P(this.o,"gpt",this.D))};
var HR=function(){return!!t("googletag.cmd",ff())};
var IR=function(){var a=t("googletag.console",ff());return null!=a?a:null};
var JR=function(a,b,c,d,e,f,k,l,m,p,u,v){this.C=a;this.D=p;this.F=b;this.G=d;this.H=l;this.J=v;this.K=e;this.L=f;this.o=k;this.A=m;this.B=u};
var paa=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,m,p,u,v){if("%"==p)return"%";var z=c.shift();if("undefined"==typeof z)throw Error("[goog.string.format] Not enough arguments");arguments[0]=z;return KR[p].apply(null,arguments)})};
var LR=function(a,b){H.call(this);this.C=new Cm(this);this.H=!1;this.J=Wa();this.F=new wg;var c=this.J,d=("https:"==window.document.location.protocol?"https:":"http:")+paa("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}f=f.parent}while(f!=f.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=M("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});
Gm(this.C,c,"load",this.aw);a.appendChild(c);this.A=c;c=this.F.get("*");null==c&&(c=new AR(this.J,"*"),this.H&&(c.Kc=zf(this.A),c.connect()),this.F.set("*",c));this.D=c;this.G=b;this.o=this.G.F;this.B=null;this.C.P(this.D,"mouse",this.tw);this.C.P(this.D,"touch",this.Hw);null!=this.o&&(this.C.P(this.D,"displayContainer",this.pw),this.C.P(this.D,"videoDisplay",this.Ew),this.C.P(this.o,Wb(qaa),this.rB));c=ff();d=t("google.ima.gptProxyInstance",c);null==d&&(d=new GR,q("google.ima.gptProxyInstance",d,
c))};
var MR=function(a,b){var c=$f(a.A),d=O(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)};
var NR=function(a,b,c,d,e){if(!(e||null!=a&&yf(We(a),a)))throw VK(rR,null,"containerElement","element");this.B=a;var f=e=null!=b||null!=d,k=!1;oK.o||(oK.o||dL()||lL&&(!lL||!eL(mL,4))||Ma(pc,"CrKey")||jL()||Ma(pc,"Roku")||hL()||Ma(pc,"Xbox"))&&e||($K()||Ma(pc,"CrKey")||jL()||Ma(pc,"Roku")||hL()||Ma(pc,"Xbox")||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;oK.o?a=null:(e=M("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.A=a;this.o=this.D||!this.A||oK.o||!$K()?null:new qR(this.A,
null,!0);a=null;this.D?b?a=new cQ(b):d&&(a=new sR(d)):this.o&&(a=new cQ(this.o.A));this.C=(this.F=a)?c||null:null;this.J=null!=this.C;oL(nL.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});null===this.A?(b=this.B,oK.B=b):this.D&&b&&!ha(b.getBoundingClientRect)&&(b=this.B,oK.B=b);this.G=null==this.A||oK.o?null:new LR(this.A,this)};
var OR=function(a){return a.J&&a.C?a.C:null!=a.o?a.o.B:null};
var PR=function(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,p=0;p<l.length;++p){var u=l[p];if(u.nodeName&&u.nodeName.toString().toLowerCase()==k){if(d==u){k="."+m;break a}++m}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)?e.defaultView||e.parentWindow:null;f=[];if(e)try{var v=
e.parent;for(k=0;v&&v!=e&&25>k;++k){for(var z=v.frames,l=0;l<z.length;++l)if(e==z[l]){f.push(l);break}e=v;v=e.parent}}catch(x){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(v=0;v<QR.length-1;++v)c.push(Wg(a,QR[v])||"");v=Wg(a,"videoad_start_delay");z="";v&&(v=(0,window.parseInt)(v,10),z=0>v?"postroll":0==v?"preroll":"midroll");c.push(z)}else for(v=0;v<QR.length;++v)c.push("");c=c.join(":");v=c.length;if(0==v)c=0;else{z=305419896;for(d=0;d<v;d++)z^=(z<<5)+(z>>2)+c.charCodeAt(d)&4294967295;c=0<
z?z:4294967296+z}return c.toString()};
var RR=function(){H.call(this);this.currentTime=0};
var SR=function(a){RR.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw VK(rR,null,"content","currentTime");this.o=a;this.ya=new Qd(250);this.A=new Cm(this);Dm(this.A,this.ya,"tick",this.B,this)};
var TR=function(){this.reset()};
var UR=function(){this.A=this.o=null};
var VR=function(){this.o=WR();this.J=-1;this.M=this.S=this.C=this.H=this.D=null;this.B=WR();this.A=null;this.V=this.K=this.L="";this.G=this.O=this.U=this.F=null};
var WR=function(){return Math.floor(4503599627370496*Math.random())};
var XR=function(a){if(oK.o){var b;return"h.3.0.0"}b="h."+a.V;null!=a.F&&(b+="/n."+a.F,null!=a.D&&(b+="/"+a.D));return b};
var YR=function(a,b){H.call(this);this.o=a;this.F=!!b;this.B=ZR(this);if(!this.B){var c=wc&&!zc("7")?"readystatechange":"load";this.A=Oc(this.o,c,this.D,!1,this);this.C=window.setInterval(A(this.D,this),100)}};
var $R=function(a){a.C&&(window.clearInterval(a.C),a.C=null)};
var ZR=function(a){var b=!1;try{if(a.F||!wc||zc("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};
var aS=function(){H.call(this);this.C=!1;this.impressionUrls=[]};
var bS=function(a,b,c){kc.call(this,a);this.C=b||null;this.B=c||null};
var cS=function(a,b){this.G=a;this.F=O(b,function(a){return a.clone()});
this.D="";this.A=this.B=0;this.o=!0;this.C=[]};
var dS=function(a){a.D="";a.B=0;a.A=0;a.o=!0;a.C=[]};
var eS=function(){aS.call(this);this.H=[];this.D=!1;this.B="not_loaded";this.A=null;this.F=0;this.o=null;this.J=new Ve};
var fS=function(a){var b=["googletag","googletag.cmd"];return eb(a,function(a){return Gg(b,function(b){return!ca(t(b,a))})})||null};
var gS=function(a){return a.C?O(a.H,function(a){return a.clone()}):[]};
var raa=function(a){a=gS(a);return null!=a?O(a,function(a){return a.F}):void 0};
var hS=function(a,b,c){var d=0,e=0;null!=b&&(b=new N(b.o),d=Number(b.o.get("pod")||0),e=Number(b.o.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(iS.o,d,e,c)}catch(f){}};
var saa=function(a,b){var c=jS(a);if(null!==c){hS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
var kS=function(a,b){a.G=b;a.setVideoContent("","");var c=jS(a);null===c||hS(c,null,!1)};
var jS=function(a){null==a.o&&lS(a);return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.companionAds?a.o.googletag.companionAds():null};
var mS=function(a){null==a.o&&lS(a);return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.pubads?a.o.googletag.pubads():null};
var nS=function(a){a.A&&(a.A.stop(),a.A.za("tick",a.Mp,!1,a),a.A.dispose(),a.A=null)};
var oS=function(a){var b;if(b=!a.D)lS(a),b=null!=a.o&&null!=a.o.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.o)a.D=!0,c=[];else{var d=a.o.googleGetCompanionAdSlots();c=O(d,a.fC,a)}}catch(f){a.D=!0,c=[]}a.H=c;a.D=!0}if("retrieved"!=a.B&&"not_available"!=a.B&&!ca(jS(a))){var e;b=jS(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{e=b.getDisplayAdsCorrelator()}catch(f){e=null}else e=null;switch(e){case "not_loaded":case "not_available":a.B=e;break;default:e=Number(e),(0,window.isNaN)(e)?a.B=
"not_available":(a.G=e,a.B="retrieved")}}a.D&&"retrieved"==a.B?(a.C=!0,nS(a),a.$(new bS("companions_success"))):a.D&&"not_available"==a.B?(a.C=!0,nS(a),pS(a)):a.A||(a.F=I()+5E3,a.A=new Qd(100),a.A.P("tick",a.Mp,!1,a),a.A.start())};
var lS=function(a){var b=If(a.J);try{a.o=fS([b,b.top])}catch(c){a.o=null}};
var pS=function(a){a.$(new bS("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
var qS=function(a,b,c){a.$(new bS("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Oc(d,"click",A(a.Yy,a,b),!1,a)};
var rS=function(a,b){kc.call(this,a);this.B=b};
var sS=function(a){kc.call(this,a)};
var tS=function(){};
var uS=function(a,b){if(null==a||0>=a.width||0>=a.height)throw VK(rR,null,"ad slot size",a.toString());this.A=a;this.o=null!=b?b:new tS;this.D=vS(taa,this.o.B)?this.o.B:"All";this.C=vS(uaa,this.o.creativeType)?this.o.creativeType:"All";this.G=vS(vaa,this.o.C)?this.o.C:"SelectExactMatch";this.H=vS(waa,this.o.A)?this.o.A:"DisallowResize";this.B=null!=this.o.D?this.o.D:[];this.F=fa(this.o.o)&&0<this.o.o&&100>=this.o.o?this.o.o:90};
var wS=function(a,b){var c=[];E(b,function(a){!C(D(a.o.C))&&((0,window.isNaN)(a.o.o)||(0,window.isNaN)(xS(a))||xS(a)==a.o.o)&&yS(this,a)?c.push(a):(a=xaa(this,a),null!=a&&!C(D(a.o.C))&&c.push(a))},a);
return c};
var yS=function(a,b){var c;if(c="Flash"!=b.getContentType()||zS){if(c="All"==a.D||a.D==b.o.da)c=b.getContentType(),c=null!=c?"All"==a.C||a.C==c:!0;c&&(c=b.B,c=lb(a.B)?!0:null!=c?0<=kb(a.B,c):!1)}if(c){var d=b.o.Tb();if("IgnoreSize"==a.G||se(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:AS(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};
var xaa=function(a,b){var c=b.A;return null!=c?eb(c,function(a){return yS(this,a)},a):null};
var AS=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new re(c*a.width,c*a.height)};
var vS=function(a,b){return null!=b&&Vb(a,b)};
var BS=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
var CS=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)};
var yaa=function(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Ta(d[0]),d=Ta(d[1]),0<a.length&&(b[a]=d))});
return b};
var DS=function(a,b){if(a[b])return ES(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return ES(a[d]);return!1};
var ES=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
var FS=function(a){N.call(this,a);this.G=new wg;a=this.B;var b=a.indexOf(";"),c=null;0<=b?(dh(this,a.substring(0,b)),c=a.substring(b+1)):dh(this,a);zaa(this,c)};
var zaa=function(a,b){C(D(b))||E(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=wa(a.substring(0,b));a=wa(a.substring(b+1));b=this.G.get(e);null!=b?jb(b,a)||b.push(a):b=[D(a)];this.G.set(e,b)}},a)};
var Aaa=function(a){if(C(D("ord")))return null;a=a.G.get("ord");return null!=a?a:null};
var GS=function(a,b,c){C(D(b))||(c=O(c,D),a.G.set(b,c))};
var HS=function(a,b){var c=[D(b)];ub(c,Baa(a));return c.join(";")};
var Baa=function(a){var b=Aaa(a);null!=b?C(D("ord"))||a.G.remove("ord"):b=[D(I())];var c=[];E(a.G.Na(),function(a){E(this.G.get(a),function(b){ub(c,a+"="+b)})},a);
ub(c,"ord="+b[0]);GS(a,"ord",b);return c};
var IS=function(a){if(null==a)return!1;a=new N(a);var b=a.B;return ua(a.A,"googleads.g.doubleclick.net")&&JS("/pagead/ads",b)};
var KS=function(a){a=a.o;return null!=a?"bid.g.doubleclick.net"==hh(new N(a)):!1};
var LS=function(a){if(null==a)return!1;var b=new FS(a);a=b.A;b=HS(b,b.B);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&JS("/(ad|pfad)[x|i|j]?/",b)};
var MS=function(a){if(null==a)return!1;a=new N(a);var b=a.B;return ua(a.A,"doubleclick.net")&&JS("/gampad/(live/)?ads",b)};
var Caa=function(a){return IS(a.o)||LS(a.o)||MS(a.o)||KS(a)};
var Daa=function(a){a=a.o;if(null==a)return null;a=lh(new N(a));return null!=a.get("ms")?D(a.get("ms")):null};
var JS=function(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};
var NS=function(a){return TK(Eaa,null,a.parentNode.nodeName,a.nodeName)};
var OS=function(a){return TK(Faa,null,a.parentNode.nodeName,a.nodeName)};
var PS=function(a,b){return null!=a?$d(sf(a),function(a){return a.nodeName==b}):[]};
var QS=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
var RS=function(a,b){if(null==a)return null;var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Ta(c);return b?Ga(c):c};
var SS=function(a,b,c,d){null!=a&&E(sf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw NS(a);})};
var TS=function(a){return C(D(a))?window.NaN:Ya(D(a))};
var US=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Py(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};
var VS=function(a,b){if(!C(D(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
var WS=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ha(a,"/pagead/adview")?XS(a)?0:2:Ha(a,"/pagead/conversion")?XS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+XR(iS);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};
var XS=function(a){return Gg(Gaa,function(b){var c=a||"";return 0<=Vg(c,0,b,c.search(Xg))})};
var YS=function(a,b){this.o=a;this.A=b};
var ZS=function(a){return a.A?-1:a.o};
var $S=function(a,b){a.A&&(a.A=!1,a.o=a.o*b/100)};
var aT=function(){this.o=new wg};
var bT=function(a,b){this.B=a;this.o=b};
var cT=function(a,b){bT.call(this,"progress",a);this.A=b};
var dT=function(a,b){E(b,function(a){var b=a.getType().toLowerCase(),e=eT(this,b);e.push(a);this.o.set(b,e)},a)};
var fT=function(a,b,c,d){b=b.toLowerCase();var e=eT(a,b);null!=d?(d=new cT(c,d),null!=d?e.push(d):e.push(new bT(b,c))):e.push(new bT(b,c));a.o.set(b,e)};
var eT=function(a,b){return null!=b?a.o.get(b.toLowerCase())||[]:[]};
var Haa=function(a,b){var c=eT(a,"progress");E(c,function(a){$S(a.A,b)});
Cb(c,function(a,b){return ZS(a.A)-ZS(b.A)})};
var gT=function(a,b){return O(eT(a,b)||[],function(a){return a.o})};
var hT=function(a,b){var c=new aT;SS(a,"Tracking",function(a){var e=QS(a,"event"),f=WS(RS(a),b);iT(f)&&null!=e&&("progress"==e?(a=QS(a,"offset"),a=jT(a),null!=a&&fT(c,e,f,a)):fT(c,e,f))});
return c};
var Iaa=function(a){if(C(D(a)))return null;a=new N(a);if("thismessage"!=a.C||"extensions"!=a.A)return null;a=a.B;if(!ta(a,"/"))return null;a=a.substr(1);return C(D(a))?null:a};
var jT=function(a){if(C(D(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new YS(a,!0))):(a=US(a),0<=a&&(b=new YS(a,!1)));return b};
var iT=function(a){var b=!0;if(C(D(a)))b=!1;else try{new N(a)}catch(c){b=!1}return b};
var kT=function(a,b){this.o=null!=a?a:new aT;this.H=null!=b?b:[]};
var Jaa=function(a,b){var c=b.o;E(c.Na(),function(a){dT(this.o,c.get(a))},a)};
var lT=function(a,b){var c=gT(a.o,b);return null!=c?c:[]};
var mT=function(a,b){kT.call(this);this.A=a;this.B=b};
var nT=function(){};
var oT=function(a,b){kT.call(this,b);this.A=a};
var pT=function(a){kT.call(this);this.A=a};
var qT=function(a){kT.call(this);this.A=(0,window.isNaN)(a)?-1:a};
var rT=function(){this.aa=-1;this.L={};this.ea="";this.wf=new aT};
var sT=function(a,b,c){a.ea=b;a.L=c};
var tT=function(a,b){var c=[],d=a.fi();E(d,function(a){a=eT(a.wf,b)||[];c=sb(a,c)},a);
return c};
var uT=function(a,b,c){var d=c||!1;return eb(b.C,function(a){var b=a.o==this.o;return a instanceof this.constructor&&(d||b)},a)};
var vT=function(a,b,c,d,e){rT.call(this);C(D(a))&&(a=Wa()+"_ima");this.V=D(a);this.na=b;this.da=c;this.Da=d;this.C=e;this.J=[];null!=this.Da?this.fa=wT[this.Da]||"Other":this.fa=null};
var Kaa=function(){this.A=this.C=1;this.o=this.B=0;this.D=1};
var xT=function(a,b,c,d,e,f,k,l,m,p){this.C=a;this.o=b;this.G=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.Rd=e;this.Qd=f;this.F=k;this.D=l;this.A=IK(D(m));this.B=p};
var yT=function(a,b,c,d,e,f){rT.call(this);this.Jf(a);this.B=b;this.A=c;this.K=tb(d);this.ha=null;this.C=e;this.Ta=tb(f);xb(this.Ta,null,function(a){return a.J})};
var zT=function(a){var b=new wg,c=a.fi();E(c,function(a){if(a instanceof yT){var c=a.A;E(c.Na(),function(a){b.set(a,sb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
var Laa=function(a){a=eb(a.K,function(a){return!C(D(a.o))&&-1!=a.o.indexOf("javascript")&&("VPAID"==a.B||"surveys"==a.B)});
return null!=a?a.A:null};
var AT=function(a,b,c){F.call(this);this.A=a;this.B=b;this.C=c;this.F=0;this.o=new Cm(this);Maa(this)};
var Maa=function(a){a.C.forEach(function(a,c){this.o.P(c,"mousedown",this.G);this.o.P(c,"mouseup",this.J)},a);
a.o.P(a.B,"mouseover",a.H)};
var BT=function(a,b,c,d,e){vT.call(this,a,b,c,d,e);this.Y=this.A=null;this.ma=-2;this.B=null;this.U=this.M=w;this.Z=[];this.qa=[];this.D=!1};
var CT=function(a,b){a.B=b;null!=a.A&&null!=b&&(DT(a,a.M),ET(a,a.U))};
var DT=function(a,b){null!=a.B&&null!=a.A&&E(a.Z,function(a){this.B.za(a,"click",this.M);!C(D(this.Vc()))&&this.B.P(a,"click",b)},a);
a.M=b};
var ET=function(a,b){null!=a.B&&null!=a.A&&(a.B.za(a.A,"creativeview",a.U),a.B.P(a.A,"creativeview",b));a.U=b};
var FT=function(a,b){var c=a.V,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");C(D(c))||(d.id=c);return M("div",d,b)};
var GT=function(a){if(!a.D)return null;var b=tT(a,"start");ub(b,tT(a,"creativeview"));if(null!=b&&!lb(b)){var c=[];E(b,function(a){if(!C(D(a))){var b;b=Ue();var f;f=y(void 0)?Ge(void 0).hd():"";b=b.gw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+f,src:Naa});Mf(b,{display:"block",height:"0px",width:"0px"});f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",IK(a.o));b.setAttribute("id",f);this.qa.push(f);ob(c,b)}},a);
return c}return null};
var Oaa=function(a,b){if(null!=a.A){var c=new wg;E(a.Z,function(a){c.set(a,this.Xn(a))},a);
new AT(b,a.A,c)}};
var Paa=function(a){var b=[],c=a.fi();E(c,function(a){b=sb(b,a.J)},a);
return b};
var HT=function(a,b,c){var d=c||!1;return eb(b.C,function(a){var b=a.o==this.o;return this instanceof a.constructor&&(d||b)},a)};
var IT=function(a,b,c,d,e,f,k,l,m,p,u,v,z,x,ga,xa){this.da=a;this.Y=b;this.L=c;this.Ga=d;this.Ta=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.aa=l?tb(l):[];this.K=m?tb(m):[];this.C=p?tb(p):[];this.Z=[];this.H=[];this.G=null;this.Da=[];this.fa=!0;this.o=this.A=null;this.J=new wg(v);this.M=null!=xa;this.Ca=(this.S=null!=z)?x||!1:!1;this.Ea=this.Fx?ga||!1:!1;this.Ia=D(z);this.La=D(xa);this.va=this.B=null;this.D=new Kaa;this.U=new re(0,0);this.ea=String(Math.floor(1E9*Math.random()));this.O=this.V=this.F=
null;this.qa=I();this.ma=this.ia=0;this.na=this.ha=!1;E(this.C,function(a){a.S=this},this);
JT(this,u)};
var KT=function(a){var b;b=LT(a);b=DS(b,"hideMaster")||DS(b,"blockAllAds")?"3":MT(a)?NT(a)?"2_3":OT(a)?"2_4":PT(a)?QT(a)?"2_5":RT(a)?"2_1":"2_2":"2":"1";return(ST(a)?4:TT(a,Qaa)?15:UT(a,Raa)||UT(a,VT)?1:WT(a)?2:0)+"_"+b};
var XT=function(a){return null!=a.Y?a.Y:""};
var ZT=function(a){return null!=a.o?sb(ZT(a.o),a.aa):a.aa};
var $T=function(a){return null!=a.o?sb($T(a.o),a.K):a.K};
var aU=function(a){return null!=a.o?sb(a.H,aU(a.o)):a.H};
var LT=function(a){return null!=a.A?a.A.L:{}};
var Saa=function(a){var b={};E(a.C,function(a){a=a.L;for(var d in a)b[d]=a[d]});
return b};
var Taa=function(a){return null!=a.A?a.A.ea:""};
var bU=function(a,b){a.A=b;a.U=null!=a.A&&a.A instanceof BT?a.A.Tb():new re(0,0)};
var cU=function(a){return a.A};
var dU=function(a){return null!=a.da?a.da:""};
var eU=function(a){if(null==a.o||fU(a.o.L))return[];var b=[dU(a.o)];ub(b,eU(a.o));return b};
var Uaa=function(a){var b=eU(a).reverse();b.push(dU(a));return b};
var gU=function(a){if(null==a.o||fU(a.o.L))return[];var b=[XT(a.o)];ub(b,gU(a.o));return b};
var hU=function(a){if(!V())return null;if(null!=a.o){var b=hU(a.o);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.A:null};
var Vaa=function(a){var b=gU(a).reverse();b.push(XT(a));return b};
var fU=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
var iU=function(a){if(null==a.o)return[a.L];var b=iU(a.o);b.push(a.L);fU(b[0])&&b.shift();return b};
var jU=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.A?a.A:-1};
var kU=function(a){if(-1!=a.Ta)return a.Ta;a=a.getExtension("pod");return null!=a&&-1!=a.A?a.A:-1};
var lU=function(a,b,c,d){a=aU(a);return wS(new uS(new re(b,c),d),a)};
var mU=function(a){var b=a.B.nf,c=a.B.mf;if(!b||!c)if(a=a.B.o?Wg(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 re(b,c)};
var Waa=function(a){if(!a.B||nU(a)&&!TT(a,["ADSENSE/ADX"]))return[];var b=mU(a);if(0>=b.width||0>=b.height)return[];var c=new tS;c.creativeType="All";c.B="All";c.C="SelectNearMatch";c.o=40;var d=lU(a,b.width,b.height,c);if(!lb(d))return d;c.A="ResizeSmaller";d=$d(aU(a),function(a){return a.o.Hg()},a);
return wS(new uS(new re(b.width,b.height),c),d)};
var Xaa=function(a){var b=null,c=0;E(Waa(a),function(a){var e;e=mU(this);e=!a.o.Hg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.o.Tb():AS(a.o.Tb(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b};
var oU=function(a,b){return b||null==a.o?a.Z:sb(a.Z,oU(a.o))};
var JT=function(a,b){a.Z=b?tb(b):[];E(a.Z,function(a){ub(this.H,tb(a.o))},a);
E(a.H,function(a){pU(a,this)},a);
V()&&MT(a)&&(a.H=$d(a.H,function(a){return 60>=a.getHeight()}))};
var qU=function(a,b){return Ih(a.C,function(a){return a instanceof yT&&"linear"==b||a instanceof BT&&"nonlinear"==b?!0:!1})};
var OT=function(a){return-1!=rU(a)&&0!=rU(a)&&7>=rU(a)};
var MT=function(a){return a.ha?a.na:sU(a)?!0:nU(a)?"video"==a.Ga:qU(a,"linear")};
var PT=function(a){return null!=tU(a)};
var sU=function(a){var b=a.A;return nU(a)&&null!=b&&b instanceof BT&&(90<a.U.height||null!=a.B&&a.B.df)};
var uU=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:uU(a,b.o)};
var QT=function(a){a=a.getExtension("AdSense");if(null==a)return!1;a=eT(a.o,"video_extend_clicked");return V()?0!=a.length:!1};
var tU=function(a){var b=uU(a,a.o);if(null!=b){if("skippable"==b.A)return b.B;if("nonskippable"==b.A)return null}var b=null,c=new YS(5,!1),d=Yaa(a);"implicit"==d&&(b=c);var e=a.A;null==b&&null!=e&&e instanceof yT&&(b=e.C);null!=b||"explicit"!=d||(b=c);return null!=b&&V()?a.B.Dc("disable_skip_on_short_adsense")&&!NT(a)&&nU(a)&&33>=vU(a)?null:(0,window.isNaN)(a.B.F)?c:new YS(a.B.F,!1):b};
var Yaa=function(a){if(null!=eb(a.J.Ka(),function(a){return!lb(lT(a,"skip"))}))return"implicit";
var b=a.J.get("DFP");if(b instanceof oT)switch(b.A){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.A;return V()&&null!=a&&(a=a.wf,null!=a&&!lb(eT(a,"skip")))?"explicit":"none"};
var wU=function(a){if(null==a.B)return!1;var b=a.B.o;null!=b&&ua(b,"/PrefetchedAd")&&null!=a.o&&(b=a.o.J.get("LocalRedirect"),b=null!=b?b.gd():null);(a=IS(b)||MS(b)||LS(b))||(null!=b?(b=hh(new N(b)),a=ua(b,"viral.adsense.net")):a=!1);return a};
var RT=function(a){if(null==a.Y||null==a.B)return!1;var b;(b=wU(a)||!1)&&!(b=nU(a)&&!TT(a,["ADSENSE/ADX"]))&&(TT(a,VT)?(b=a.J.get("DFP"),b=null!=b?"InstreamSelect"==b.A:!1):b=!1);if(b||a.o&&a.o.M&&wU(a.o))return!0;a=UT(a,["ADSENSE/ADX"])||a.o&&WT(a);return V()&&!a};
var xU=function(a){return null===a.A?null:a.A.Vc()};
var vU=function(a){return null!=a.A?a.A.Vk():-1};
var yU=function(a){return null!==a.G?10:lb(a.Da)?0:(a=a.B.ii("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3))};
var rU=function(a){return vU(a)+yU(a)};
var zU=function(a){return null===a.A?null:a.A.Wk()};
var nU=function(a){return TT(a,AU)};
var ST=function(a){return null!=a.o&&ST(a.o)||TT(a,Zaa)};
var NT=function(a){var b=zU(a);return TT(a,["402"])||y(b)&&!ca(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))};
var BU=function(a){return nU(a)&&RT(a)&&!OT(a)&&!C(D(a.F))&&!ca(tU(a))&&0<ZS(tU(a))};
var WT=function(a){return UT(a,AU)||UT(a,["402"])};
var CU=function(a){return a.F};
var DU=function(a){a=a.getExtension("InfoCards");return null!=a?a.A:null};
var EU=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.A:null};
var TT=function(a,b){return null!=a.Y?jb(b,a.L):!1};
var UT=function(a,b){for(var c=iU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(jb(b,c[d]))return!0;break}return!1};
var FU=function(a){var b=NT(a)&&V();if(a=null!=zU(a))a=0!=oK.F||b;return a};
var GU=function(){H.call(this);this.B=[]};
var HU=function(){return new IT("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new wg)};
var IU=function(a){GU.call(this);this.o=a;this.G=null;this.H=!1;this.C=null;this.D=new Cm;Dm(this.D,this.o,["companions_success","companion_initialization_failed"],this.MA,this);Dm(this.D,this.o,"companion_display_error",this.$y,this);Dm(this.D,this.o,["companion_slot_init","companion_click"],this.Vy,this);this.o.C?this.H=!0:this.o.initialize()};
var JU=function(a,b){Nb(a.A);a.A=new H;a.C=b;a.F=!0;a.H?KU(a):(a.F=LU(MU(b),[]),a.F||(a.C=null,a.A=null));return a.A};
var KU=function(a){var b=a.C;a.C=null;if(null!=a.o)if(lb(a.B))NU(a,Error("Companion slots not available."));else if(null!=b){var c=$aa(a,b),d=a.o;try{d.o.googleSetCompanionAdContents(O(a.B,d.bv,d)),d.sendImpressionUrls()}catch(f){d.$(new bS("companion_display_error",f))}if(0<c.length&&b.fa){a=a.o;if(d=0!=c.length)d=iU(b),d=fU(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=jS(a);if(null!==c){hS(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else NU(a,
Error("Invalid master ad."))};
var NU=function(a,b){a.$(new rS("companion_display_error",b))};
var aba=function(a){AK(wK(),9419278)&&RK(a)};
var $aa=function(a,b){var c=[],d=[];E(a.B,function(a){dS(a);Ih(a.F,function(d){a:{d=lU(b,d.width,d.height);if(!lb(d)&&(d=bba(d,c),null!=d)){var e=d.B;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),m=d.getWidth(),p=d.getHeight(),u="IFrame"!=d.o.da;d=d.o.J;a.D=e;a.B=m;a.A=p;a.o=u;a.C=d||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);
var e=MU(b);a.F=LU(e,c);a.F||E(a.B,function(a){dS(a)},a);
return d};
var LU=function(a,b){if(null==a)return!0;var c=a.o;return"all"==a.A?cba(c,b):"any"==a.A?dba(c,b):!0};
var MU=function(a){return null==a||null==a.A||(0,window.isNaN)(a.A.o)?null:eb(oU(a,!0),function(a){a=a.o;return lb(a)?!1:(0,window.isNaN)(a[0].o.o)?!1:a[0].o.o==xS(a[0])})};
var cba=function(a,b){return Gg(a,function(a){return jb(b,a)})};
var dba=function(a,b){return Ih(a,function(a){return jb(b,a)})};
var bba=function(a,b){return eb(a,function(a){return!jb(b,a)})};
var OU=function(a){this.o=a};
var PU=function(a,b){kc.call(this,"adsManagerLoaded");this.B=a;this.C=b};
var QU=function(a,b,c,d){a.B.Gd(new OU(b),c,d);return a.B};
var RU=function(a){kc.call(this,a);this.F=[];this.D={};this.B=null;this.C=!0};
var SU=function(){this.B=new wg;this.A=!V()&&.01>Math.random();this.C=0;this.o="0";this.D=""};
var eba=function(){var a=SU.getInstance();a.sendMessage("ff",a.C);a.C=0};
var TU=function(a,b,c,d){d=d||{};var e=new N("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc=html5");d.cid=fba(a);d.utv=b;d.utt=c;d.cd6=XR(iS);b=CK(wK());C(D(b))||(d.xid=b);Pb(d,function(a,b){mh(e,b,a)},a);
return e.toString()};
var gba=function(a,b){if(null!=b){var c=wa(b),d=hba.exec(c),c=D(lh(new N(c)).get("client"));a.o=d&&2==d.length?d[1]:C(c)?"0":c}else a.o="0"};
var fba=function(a){C(a.D)&&(a.D="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;return("x"==a?c:c&3|8).toString(16)}));
return a.D};
var UU=function(a,b,c){this.F=b;this.C=c;this.D=null;this.A=new Cm(this);this.K=a;this.B=this.o=null;this.H=!1};
var iba=function(a){if(null===a.D)VU(a);else{var b=new N(a.D.o),c=D(b.o.get("vid")),b=D(b.o.get("cmsid")),d=a.C.L,e=a.C.K;a.C.L=c;a.C.K=b;if(C(D(c))||C(D(b)))VU(a);else if(c==d&&b==e)VU(a);else{var f=a.F.Ce();f.setVideoContent(c,b);saa(f,a.D);a.B=new Qd(100);Dm(a.A,a.B,"tick",function(){var a;a:{var b=mS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&VU(this)},a);
a.B.start()}}};
var jba=function(a){a.o=new Qd;Im(a.A,a.o,"tick",function(){VU(this)},a);
Rd(a.o,a.K);a.o.start()};
var VU=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()};
var WU=function(){H.call(this);this.o=new wg;this.A=null;this.F=new Cm(this);G(this,this.F);this.D="";this.G=this.B=null};
var XU=function(){null!=YU||(YU=new WU);return YU};
var ZU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;XU().$(new gK("measurable_impression",null,c))};
var $U=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;XU().$(new gK("viewable_impression",null,c))};
var aV=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;XU().$(new gK("externalActivityEvent",null,d))};
var kba=function(a,b){a.B=b};
var lba=function(a,b){if(a.A){var c=200,d=wK();AK(d,31061771)?c=300:AK(d,31061772)?c=400:AK(d,31061773)&&(c=500);var e=a.o,c=window.setTimeout(function(){b("timeout");E(e.Na(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.o.set(c,b);d={};a.C&&(d.isFullscreen=a.C.Od());d.osdId=a.D;d.eventId=c;a.A.send("activityMonitor","fetchAdTagUrl",d)}else b("")};
var mba=function(a,b,c,d){if(a.A){var e=a.o,f=window.setTimeout(function(){d({viewability:"timeout"});E(e.Na(),function(a){e.get(a)===d&&e.remove(a)})},200);
a.o.set(f,d);var k={};a.C&&(k.isFullscreen=a.C.Od());a.D&&(k.osdId=a.D);k.queryId=c;k.eventId=f;k.vastEvent=b;k.isOverlay=null!=a.B;a.B&&(k.overlayBounds=DP(a.B));a.A.send("activityMonitor","reportVastEvent",k)}else d({})};
var bV=function(){};
var cV=function(a,b,c){this.A=a;this.o=c;this.B=b};
var nba=function(a){this.B=a};
var dV=function(a){this.B=a;this.A=this.o=!1};
var oba=function(a,b,c){this.o=a;this.A=b;this.B=c};
var eV=function(){this.o=new wg};
var fV=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");var d=[];xg(a.o,c)&&(d=a.o.get(c,[]));E(b,function(a){null!=a&&ob(d,a)});
a.o.set(c,d)};
var gV=function(a,b){this.o=a;this.A=b};
var pba=function(a){var b=new eV;E(sf(uf(a.o)),function(a){switch(a.nodeName){case "Preroll":a=hV(this,a);fV(b,a,0);break;case "Midroll":var d=QS(a,"timeOffset"),e=US(d);if(-1==e)throw TK(iV,null,"timeOffset",D(d));a=hV(this,a);fV(b,a,e);break;case "Postroll":a=hV(this,a);fV(b,a,-1);break;default:throw TK(jV,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.o.Na().length)throw TK(qba);return b};
var hV=function(a,b){var c=[];E(sf(b),function(a){switch(a.nodeName){case "Ad":var b=D(RS(a));if(!C(b)){a=QS(a,"bumper");var f=this.A.clone();f.o=b;b=new dV(f);b.o=null!=a;b.A="always"==a;ob(c,b)}break;default:throw TK(jV,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
var kV=function(){this.C=null;this.D="http://www.google.com/adsense/support";this.F=0;this.o=15;this.B=5;this.A=3};
var rba=function(a,b){a.o=b};
var lV=function(a,b,c,d,e,f,k,l,m,p,u){kT.call(this,p,u);this.D=a;this.F=b;this.B=c;this.G=m;this.J=k;this.C=f;this.A=e};
var mV=function(){};
var sba=function(a,b){var c;E(sf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new kV:null;break;case "params":null!=c&&tba(this,c,a)}},a);
return c};
var tba=function(a,b,c){E(sf(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)};
var nV=function(){};
var oV=function(){};
var pV=function(){};
var qV=function(){};
var rV=function(a,b){a[b]||(a[b]=[]);return a[b]};
var sV=function(a,b){return a[b]?a[b].length:0};
var tV=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&&uba(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0};
var uba=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(!tV(a,b))return!1}else return!1;return!0};
var uV=function(a){this.o=a||{}};
var vV=function(a){this.o=a||{}};
var wV=function(a){this.o=a||{}};
var xV=function(a){this.o=a||{}};
var yV=function(a){this.o=a||{}};
var zV=function(a){this.o=a||{}};
var AV=function(a){this.o=a||{}};
var BV=function(a){this.o=a||{}};
var CV=function(a){this.o=a||{}};
var DV=function(a){this.o=a||{}};
var EV=function(a){this.o=a||{}};
var FV=function(a){this.o=a||{}};
var GV=function(a){this.o=a||{}};
var HV=function(a,b){return new vV(rV(a.o,"card")[b])};
var IV=function(a){return(a=a.o.placement)?new xV(a):JV};
var KV=function(a){a=a.o.show_in_endcap;return null!=a?a:!1};
var LV=function(){if(!MV){var a={};MV={Jb:a};a.type={type:"e",label:1,oa:0};a.id={type:"s",label:1,oa:""};a.link_url={type:"s",label:1,oa:""};a.title={type:"s",label:1,oa:""};a.image={type:"m",label:1,oa:vba,sa:NV()};a.event={type:"m",label:3,sa:OV()};a.target={type:"s",label:1,oa:""}}return MV};
var OV=function(){if(!PV){var a={};PV={Jb:a};a.type={type:"e",label:1,oa:0};a.base_url={type:"s",label:1,oa:""}}return PV};
var NV=function(){if(!QV){var a={};QV={Jb:a};a.image_url={type:"s",label:1,oa:""};a.thumbnail_url={type:"s",label:1,oa:""};a.image_height={type:"i",label:1,oa:0};a.image_width={type:"i",label:1,oa:0}}return QV};
var RV=function(a,b,c){kT.call(this,c);this.A=a;this.B=b||null};
var SV=function(a){this.o=a};
var TV=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Jb[f.nodeName];if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=UV[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){var k=
c.Jb[f.nodeName],l=TV(a,f,k.sa);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
var VV=function(a,b){kT.call(this);this.B=a;this.A=D(b)};
var WV=function(a,b){this.logger=null;this.B=b;this.o={};this.A=[];this.o.CustomTracking=hT;this.o.UI=this.D};
var XV=function(a,b){if(null==b)return null;var c={};E(sf(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};
var YV=function(a,b,c,d,e,f){kT.call(this,f);this.B=a;this.D=b;this.F=c;this.C=d;this.A=e};
var ZV=function(a){return null!=a.A?a.A.length:0};
var $V=function(){WV.call(this,0,"mute_");this.o.SurveyOptions=this.C};
var aW=function(a,b,c,d){kT.call(this);this.C=a;this.B=b;this.D=c;this.A=d};
var bW=function(){};
var cW=function(){kT.call(this)};
var dW=function(){};
var wba=function(a,b){E(sf(b),function(a){a.nodeName==this.o.Pu&&RS(a)},a)};
var eW=function(a,b,c,d){kT.call(this);this.B=a;this.C=b;this.D=c;this.A=d};
var fW=function(){};
var gW=function(a){kT.call(this);this.A=a};
var hW=function(){};
var iW=function(a,b,c,d,e,f,k,l,m,p,u){kT.call(this,d);this.K=a;this.L=b;this.J=c;this.D=e||null;this.C=f||null;this.M=k||null;this.B=l||null;this.A=m||null;this.G=p||null;this.F=u||null};
var jW=function(){WV.call(this,0,"why_this_ad_");this.A.push("targeting_reason")};
var kW=function(a,b){return null!=a?Gg(b,function(b){return b in a}):!1};
var xba=function(a,b){return null!=a?Ih(b,function(b){return b in a}):!1};
var lW=function(){};
var mW=function(){kT.call(this)};
var nW=function(){};
var oW=function(){};
var yba=function(a,b){this.o=a;this.A=b};
var pW=function(a,b,c){this.o=a;this.A=b;this.B=c};
var xS=function(a){a=cU(a.o.getAd());return null!=a?a.o:window.NaN};
var pU=function(a,b){a.o.S=b;E(a.A,function(a){pU(a,b)},a)};
var zba=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Eb?'<a class="text-image-link" target="_blank" href="'+X(a.Eb)+'">':'<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.Eb?'<a class="text-title" href="'+X(a.Eb)+'" target="_blank" dir='+X(a.dir)+">"+X(a.title)+"</a>":"")+'<div class="text-description" dir='+
X(a.dir)+">"+X(a.text)+"</div>"+(a.Zq&&a.Eb?'<a target="_blank" href="'+X(a.Eb)+'" class="text-ad-channel">'+X(a.Zq)+"</a>":"")+"</div></div>"};
var Aba=function(a){return'<div class="flash-container '+(a.$e?"click-capture":"")+'">'+(a.Eb?'<a class="click-layer" target="_blank" href="'+X(a.Eb)+'"></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='+
VQ(a.Eb)+'"><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='+VQ(a.Eb)+'"></object></div>'};
var Bba=function(a){return'<div class="image-container" id="'+X(a.id)+'" style="width:'+X(a.width)+";height:"+X(a.height)+';">'+(a.Eb?'<a target="_blank" href="'+X(a.Eb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0"></a></div>'};
var Cba=function(a){return'<div class="image-container" id="'+X(a.id)+'">'+(a.Eb?'<a target="_blank" href="'+X(a.Eb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
var qW=function(a,b,c,d){BT.call(this,a,b,"Static",c,d);this.Fn=!1};
var rW=function(a,b,c,d){BT.call(this,a,b,"Html",c,d)};
var sW=function(a,b,c,d){BT.call(this,a,b,"Static",c,d)};
var tW=function(a,b){BT.call(this,a,b,"Static","text","")};
var uW=function(a,b,c,d,e){BT.call(this,a,b,c,d,e)};
var vW=function(a,b,c){if(lb(c))return new BT(a,b,"",null,"");var d=wW(c);c=d.A;var e=d.o,d=d.B;switch(c){case "Html":return new rW(a,b,e,d);case "Static":switch(wT[e]){case "Image":return new sW(a,b,e,d);case "Flash":return new qW(a,b,e,d);case "Text":return new tW(a,b)}}return new uW(a,b,c,e,d)};
var wW=function(a){var b=eb(a,function(a){return"Static"==a.A&&"Flash"==wT[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"==wT[a.o]}),f=eb(a,function(a){return"Static"==a.A&&"Text"==wT[a.o]});
return zS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
var Dba=function(a,b,c,d,e,f){var k=wW(f),l=vW(a.id,a.size,[k]);l.D=!0;l.H=a.apiFramework;l.O=b;l.J=c;l.o=d;e&&(l.wf=e);pb(f,k);var m=[];E(f,function(f){f=vW(a.id,a.size,[f]);f.D=!0;f.H=a.apiFramework;f.O=b;f.J=c;f.o=d;e&&(f.wf=e);m.push(new pW(f,[],a.adSlotId))});
return new pW(l,m,a.adSlotId)};
var xW=function(a,b,c){this.A=a;this.o=b;this.B=c};
var yW=function(a,b,c,d,e,f,k){this.B=a;this.J=b;this.D=c;this.F=d;this.A=e;this.G=f;this.H=k;this.o=this.B.xe()};
var Eba=function(a){"none"==a.o.style.display&&(lg(a.o,!0),E(a.H,function(a){OK(a)}))};
var Fba=function(a,b,c,d,e,f,k,l,m,p){b=vW("icon"+a,b,p);b.H=k;b.O=l.iconClickThrough;return new yW(b,a,c,d,e,f,m)};
var zW=function(a){this.C=a;this.logger=null};
var AW=function(a){if(null==a)return!1;a=uf(a);return null!=a&&"VAST"==a.nodeName};
var BW=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return fa(a)&&!(0,window.isNaN)(a)?a:0};
var Gba=function(a){var b=[],c=uf(a.C),d=BW(c);SS(c,a.o.Vs,function(a){var c;c=CW(a);if(null==c)throw NS(a);var k=a.getAttribute(this.A.yh);a=Number(a.getAttribute(this.A.cn));c=Hba(this,c,k||null,a||0);null!=c&&(c.ma=d,b.push(c))},a);
return b};
var CW=function(a){var b=null;E(sf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw NS(a);}});
return b};
var Hba=function(a,b,c,d){var e,f,k=[],l=[],m=[],p=[],u=new wg,v,z=b.nodeName==a.o.WRAPPER,x=z,ga=z,xa;E(sf(b),function(a){switch(a.nodeName){case this.o.Qu:if(z){if(null!=v)throw OS(a);v=RS(a);xa=Iaa(v);x=VS(b.getAttribute(this.A.$s),x);ga=VS(b.getAttribute(this.A.Tt),ga)}else throw NS(a);break;case this.o.Xs:e=RS(a);break;case this.o.Ys:f=RS(a);break;case this.o.Ht:RS(a);break;case this.o.Nu:RS(a);break;case this.o.Ah:a=RS(a);iT(a)&&k.push(WS(a));break;case this.o.ERROR:a=RS(a);l.push(WS(a));break;
case this.o.Bt:a=Iba(this,a);m=a.creatives;p=a.zv;break;case this.o.Qt:u=Jba(this,a,xa)}},a);
return new IT(D(c),e,Kba(e),f,0,0,d,l,k,m,p,u,v,x,ga,Lba(u))};
var Lba=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=lT(a,"vast2tracking"),null!=a&&!lb(a)&&(b=a[0]));return b};
var Kba=function(a){if(C(D(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 "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}};
var Mba=function(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
var Jba=function(a,b,c){var d=new wg;try{var e=PS(b,a.o.Pt);E(e,function(a){var b=a.getAttribute(this.A.pn);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new nW).parse(a);break;case "pod":a=(new lW).parse(a);break;case "waterfall":a=(new oW).parse(a);break;case "dart":a=(new oV).parse(a);break;case "dfp":b="DFP";a=(new pV).parse(a);break;case "adsense":b="AdSense";a=(new nV).parse(a);break;case "textad":b="TextAd";a=(new fW).parse(a);break;case "templatead":b="TemplateAd";a=(new dW).parse(a);
break;case "infocards":var b="InfoCards",e=new SV(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new SV(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=PS(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+xz(uf(m[0])));a=PS(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new VV(e,m)}else a=null;break;case "viral":b="viral";a=(new hW).parse(a);break;case "adx":b="adx";a=(new nT).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new jW).parse(a);break;case "mute":b="mute";a=(new $V).parse(a);break;case "sodar":a=(new bW).parse(a);break;default:e=new qV,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(Jaa(e,a.o),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ha(f.getErrorCode)||1105==f.getErrorCode())throw f;
}return d};
var Iba=function(a,b){var c=[],d=[];SS(b,a.o.At,function(a){var b=a.getAttribute(this.A.cn),k;C(D(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.A.yh),m=!1;E(sf(a),function(a){switch(a.nodeName){case this.o.LINEAR:if(m)throw OS(a);a=Nba(this,a,(0,window.isNaN)(k)?0:k,l||null);ub(c,a);m=!0;break;case this.o.COMPANION_ADS:if(m)throw OS(a);a=DW(this,a,(0,window.isNaN)(k)?void 0:k);ub(d,a);m=!0;break;case this.o.NON_LINEAR_ADS:if(m)throw OS(a);a=Oba(this,a,(0,window.isNaN)(k)?0:k,l||null);
ub(c,a);m=!0}},this)},a);
return{creatives:c,zv:d}};
var Oba=function(a,b,c,d){var e=[],f=new aT;E(sf(b),function(a){switch(a.nodeName){case this.o.tu:a=Pba(this,a,c,d);null!=a&&e.push(a);break;case this.o.Pj:f=hT(a);break;default:throw NS(a);}},a);
0!=e.length||f.isEmpty()||(a=new BT(null,new re(-1,-1),"",null,""),a.o=c,a.ia=d,e.push(a));E(e,function(a){f&&(a.wf=f)});
return e};
var EW=function(a,b){var c={};c.id=b.getAttribute(a.A.yh);c.adSlotId=b.getAttribute(a.A.Ws);c.apiFramework=b.getAttribute(a.A.vh);var d=Ya(b.getAttribute(a.A.Ch)),e=Ya(b.getAttribute(a.A.wh));c.size=new re(d,e);d=b.getAttribute(a.A.Nt);e=b.getAttribute(a.A.Mt);C(D(d))||C(D(e))||(c.rJ=new re(Ya(d),Ya(e)));return c};
var Pba=function(a,b,c,d){var e=EW(a,b);b.getAttribute(a.A.vh);b.getAttribute(a.A.Du);b.getAttribute(a.A.ju);var f=b.getAttribute(a.A.qu),f=US(f,-1),k=[];new wg;var l={},m="",p,u=[];E(sf(b),function(a){switch(a.nodeName){case this.o.vu:u.push(RS(a));break;case this.o.uu:p=RS(a);break;case this.o.Kj:l=FW(a);m=D(RS(a));break;case this.o.zh:case this.o.Bh:case this.o.xh:a=GW(this,a);null!=a&&k.push(a);break;default:throw NS(a);}},a);
a=vW(e.id,e.size,k);sT(a,m,l);a.H=e.apiFramework;a.O=p;a.J=u;a.ma=f;a.o=c;a.ia=d;return a};
var GW=function(a,b){var c=QS(b,a.A.Ct);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.o.Bh:d="Static";break a;case a.o.zh:d="IFrame";break a;case a.o.xh:d="Html";break a;default:throw TK(Qba,null,d);}var e=RS(b);null!=e||(e="");return new xW(d,c,e)};
var DW=function(a,b,c){var d=[],e=Mba(QS(b,a.A.Bu));SS(b,a.o.vt,function(a){a=Rba(this,a,c);null!=a&&d.push(a)},a);
return new yba(d,e)};
var Rba=function(a,b,c){var d=EW(a,b),e=[],f=new aT,k,l=[];E(sf(b),function(a){switch(a.nodeName){case this.o.xt:l.push(RS(a));break;case this.o.Pj:f=hT(a,!0);break;case this.o.wt:k=RS(a);break;case this.o.bt:RS(a);break;case this.o.Kj:RS(a);break;case this.o.zh:case this.o.Bh:case this.o.xh:a=GW(this,a);null!=a&&e.push(a);break;default:throw NS(a);}},a);
return lb(e)?null:Dba(d,k,l,c,f,e)};
var Nba=function(a,b,c,d){var e=new aT,f={},k="",l=[],m,p=new wg,u=[],v=[],z,x=jT(QS(b,a.A.Gu));E(sf(b),function(a){switch(a.nodeName){case this.o.Wt:v=Sba(this,a);break;case this.o.Kj:f=FW(a);k=D(RS(a));break;case this.o.Mj:z=US(RS(a),0);break;case this.o.Pj:e=hT(a);break;case this.o.nu:u=Tba(this,a);break;case this.o.Ru:a=Uba(this,a);p=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw NS(a);}},a);
E(l,function(a){fT(e,"click",a)});
a=new yT(z,m,p,u,x,v);sT(a,k,f);a.o=c;a.ia=d;e&&(a.wf=e);return a};
var Uba=function(a,b){var c,d=[],e=new wg;E(sf(b),function(a){switch(a.nodeName){case this.o.qt:c=RS(a);break;case this.o.ut:a=RS(a);d.push(a);break;case this.o.Et:var b=QS(a,this.A.yh);null!=b||(b="");var l=e.get(b,[]);l.push(RS(a));e.set(b,l);break;default:throw NS(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
var Tba=function(a,b){var c=[];SS(b,a.o.mu,function(a){var b=QS(a,this.A.Gt),f=QS(a,this.A.pn),k=QS(a,this.A.Su),l=Ya(a.getAttribute(this.A.Ch)),m=Ya(a.getAttribute(this.A.wh)),p=a.getAttribute(this.A.vh),u=RS(a),v=TS(a.getAttribute(this.A.Ym)),z=TS(a.getAttribute(this.A.pu));a=TS(a.getAttribute(this.A.lu));b=new xT(b,f,k,v,z,a,l,m,u,p);c.push(b)},a);
return c};
var Sba=function(a,b){var c=[];SS(b,a.o.Vt,function(a){a=Vba(this,a);null!=a&&c.push(a)},a);
return c};
var Vba=function(a,b){var c=b.getAttribute(a.A.xu),d=QS(b,a.A.Uu),e=QS(b,a.A.Vu),f=Ya(b.getAttribute(a.A.Ch)),k=Ya(b.getAttribute(a.A.wh)),f=new re(f,k),k=b.getAttribute(a.A.vh),l=jT(QS(b,a.A.wu)),m=b.getAttribute(a.A.Mj),m=US(m,-1),p=[],u=[],v={};E(sf(b),function(a){switch(a.nodeName){case this.o.$t:u.push(RS(a));break;case this.o.Xt:v=Wba(this,a);break;case this.o.zh:case this.o.Bh:case this.o.xh:a=GW(this,a);null!=a&&p.push(a);break;default:throw NS(a);}},a);
return lb(p)?null:Fba(c,f,d,e,m,l,k,v,u,p)};
var Wba=function(a,b){var c=[],d;E(sf(b),function(a){switch(a.nodeName){case this.o.Yt:d=RS(a);break;case this.o.Zt:c.push(RS(a));break;default:throw NS(a);}},a);
return{iconClickThrough:d,tJ:c}};
var FW=function(a){a=RS(a);return null!=a?yaa(a):{}};
var HW=function(a,b){this.A=a;this.o=b};
var Xba=function(a){var b=[],c=PS(a,"vmap:Extensions")[0];if(c){var d;SS(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=PS(d,"yt:BreakTime"),!lb(b)))return O(b,function(a){return QS(a,"timeOffset")})}return[QS(a,"timeOffset")]};
var Yba=function(a){var b=new eV;E(sf(uf(a.A)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Zba(this,a);a=Xba(a);E(a,function(a,c){var k=US(a);0<c&&(d=$ba(this,d));if("start"==a||0==k)fV(b,d,0);else if("end"==a)fV(b,d,-1);else{if(-1==k)throw TK(iV,null,"timeOffset",D(a));fV(b,d,k)}},this)}},a);
if(0==b.o.Na().length)throw TK(IW);return b};
var $ba=function(a,b){return O(b,function(a){var b=new dV(a.B.clone());b.o=a.o;b.A=a.A;return b},a)};
var aca=function(a){a=QS(a,"timeOffset");var b=US(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};
var bca=function(a){return(a=eb(sf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?eb(sf(a),function(a){return"VAST"==a.nodeName}):null};
var Zba=function(a,b){var c=[],d="",e=null,f=!1,k=!1;E(sf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=yz(a,"vmap:VASTData/VAST")||yz(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=bca(a));if(!e){var c=PS(a,"vmap:AdTagURI"),l="";c.length&&(l=D(RS(c[0])));if(C(l))throw TK(cca,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=PS(a,"vmap:Extension"),a=dca(this,a),null!=a&&(f=!0,a=QS(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=eca(a,e):C(d)||(l=fca(a,d));l&&(V()&&(l.fh=aca(b)),l=new dV(l),l.o=f,l.A=f&&!k,ob(c,l));return c};
var dca=function(a,b){return eb(b,function(a){return"bumper"==QS(a,"type")},a)};
var fca=function(a,b){var c=a.o.clone();C(c.A)||(c.A="");c.o=b;return c};
var eca=function(a,b){var c=a.o.clone();c.A=xz(b);c.o="";return c};
var gca=function(a,b){if(null!=a){var c;null!=a?(c=uf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return SU.getInstance().A=!1,new gV(a,b);null!=a?(c=uf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return SU.getInstance().A=!1,new HW(a,b);if(AW(a)){if(!AW(a))throw TK(jV);c=uf(a);var d=BW(c);if(1>d||3<d)throw TK(hca);c=PS(c,"Ad");if(lb(c))throw TK(JW);c=CW(c[0]);if(null==c)throw TK(KW);if(1!=PS(c,"AdSystem").length)throw TK(KW);return new zW(a)}}return null};
var LW=function(){};
var MW=function(a,b){this.A=a;this.B=b};
var NW=function(a,b){"auto"!=a.A.Qe&&"click"!=a.A.Qe||b.set("vpa",a.A.Qe)};
var OW=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))};
var PW=function(a,b){var c=a.B.F;null!=c&&b.set("js","ima-"+c);c=a.A.K;null!=c&&b.set("mv",c+"."+(a.A.J||""))};
var QW=function(a,b){b.set("osd",2);-1!=a.B.J&&b.set("frm",a.B.J);var c=a.B.U;null!=c&&b.set("ms",c);b.set("sdr",1)};
var RW=function(a){return oK.o?"h.3.0.0":null!=a.B?XR(a.B):null};
var SW=function(){this.o=["video"]};
var TW=function(a,b,c){var d={};a=new UW(a,n(b)?b:null,n(c)?c:null);VW(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;WW(d);XW(d,a);YW(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=kb(ica,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d};
var ZW=function(a,b){var c={},d=new UW(null,a,n(b)?b:null);VW(c,d);WW(c);XW(c,d);YW(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.o){var e=d.o.B,f=null!=e&&null!=e.xb&&null!=e.xb.GET_MIDROLL_POSITION_IN_SEC?e.xb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.se&&null!=e.se.video_start_delay?(e=e.se.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=f&&f(e)?f(e):e)):(e=d.o.D,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=f&&f(e)?f(e):e))}jca(c,d);kca(c,d);d=a.qa;for(f=a;null!=f;)d=f.ia+","+d,f=f.o;c.RWT=d;return c};
var UW=function(a,b,c){this.error=a;this.o=b;this.display=c};
var $W=function(a,b){return Ih(lca[a],function(a){return null!=b.match(a)})};
var VW=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():""}}};
var kca=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(MT(b.o)){var a=b.o.D;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.Uc()?b.display.Uc().width.toString():""}};
a.P_H={toString:function(){return null!=b.display&&null!=b.display.Uc()?b.display.Uc().height.toString():""}}};
var WW=function(a){a.SDKV=XR(iS);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}};
var XW=function(a,b){if(null!=b.o&&null!=b.o.B&&null!=b.o.B.xb&&V()){var c=b.o.B.xb;E(mca,function(b){b in c&&(a[b]=c[b])})}};
var YW=function(a,b){if(null!=b.o){a.AD_ID=Uaa(b.o);a.AD_SYS=Vaa(b.o);var c=hU(b.o);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=WP(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=KT(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"}};
var jca=function(a,b){null!=b.o&&(a.AD_LEN={toString:function(){var a=rU(b.o);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.qf()?"0":Math.round(100*b.display.md()).toString():""}})};
var aX=function(a,b,c){if(null!=c){var d;null==b.C&&(b.C=new TR);d=b.C;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 UR);e=b.M;var f=c!=b.S;(d=0==d.o%100||f)||(d=36E5<(null===e.o?0:(new Qy).getTime()-e.o));d&&e.reset();b.S=c;b=e.A;null!==b&&a.set("tok",b)}};
var bX=function(a,b){a.set("sz",Math.max(null!=b.nf?b.nf:0,null!=b.Hc?b.Hc:0)+"x"+Math.max(null!=b.mf?b.mf:0,null!=b.Gc?b.Gc:0))};
var cX=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",nca)};
var dX=function(a){if(a.xb&&a.xb.LACT){var b=a.xb.LACT.toString();if(b)return ab(b)}return a.H};
var eX=function(a){return V()&&a.Dc&&a.Dc("send_presence_signal_vis")&&a.xb&&a.xb.VIS?a.xb.VIS.toString():null};
var fX=function(a,b,c,d){var e=new wg;DK(wK())||e.set("ad_type",c.adType);zS&&e.set("flash",JM);bX(e,a);gX(c)&&(e.set("ea","0"),null!=a.Hc&&null!=a.Gc&&e.set("image_size",hX(c,a.Hc,a.Gc,a.df)));iX(e,d);e.set("lact",dX(a));(c=eX(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.fh);cX(e);jX(a,e,!0);aX(e,b,a.D);return e};
var jX=function(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=va(a)),kX("ref",a,b))};
var lX=function(a,b,c){a=null!=b?b.split("_"):a;E(a,function(a){if(!Vb(oca,a))throw TK(rR,null,"ad_type",String(b));});
if(c){var d=[];E(a,function(a){jb(mX,a)||d.push(a)});
a=d}if(!kL()){d=[];E(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw TK(nX,null,"skippablevideo");a=d}return a};
var oX=function(a,b){return null!=b?b.split(/[+, ]/):a};
var hX=function(a,b,c,d){a.A&&(c=Math.min(c,90));var e=0,f=0;wK();a=!V();d=d&&a;a&&(e=15,f=65);var k=[];E(pca,function(a){var m=b-e>=a.width&&c-f>=a.height,p=!d&&!m&&90>=a.height&&b>=a.width&&c>=a.height;(m||p)&&k.push(a.width+"x"+a.height)});
return k.join(",")};
var pX=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
var qX=function(a,b){return null!=b?String(b):null!=a?a:null};
var rX=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};
var sX=function(a,b,c){return null!=b&&Vb(c,b)?b:a};
var gX=function(a){return Ih(mX,function(b){return jb(a.o,b)})};
var iX=function(a,b){zS?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)))}};
var kX=function(a,b,c){null!=b&&c.set(a,b)};
var tX=function(a,b,c){MW.call(this,a,b);var d=new SW;a=lh(new N(a.o));d.Sk=sX(d.Sk,a.get("cust_age"),qca);d.Fh=sX(d.Fh,a.get("adsafe"),uX);d.o=lX(d.o,a.get("ad_type"));d.adType=d.o.join("_");d.Qj=pX(d.Qj,a.get("videoad_start_delay"));d.Rj=qX(d.Rj,a.get("slotname"));d.Rk=rX(d.Rk,a.get("adtest"));d.Sj=rX(d.Sj,a.get("scs"));d.Tj=qX(d.Tj,a.get("alternate_ad_url"));d.channels=oX(d.channels,a.get("channel"));d.ik=pX(d.ik,a.get("cpm"));d.tg=qX(d.tg,a.get("description_url"));d.experimentIds=qX(d.experimentIds,
a.get("eid"));d.gender=sX(d.gender,a.get("cust_gender"),rca);d.A=rX(d.A,a.get("overlay"));d.host=qX(d.host,a.get("host"));d.B=oX(d.B,a.get("h_ch"));d.hostTierId=pX(d.hostTierId,a.get("ht_id"));d.Tk=rX(d.Tk,a.get("lsv"));var e;null!=this.A.language?e=this.A.language:(e=r.navigator||null,e=nK(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=qX(f,e);var k;null!=e&&!C(D(e))&&(k=nK(e));d.language=qX(d.language,k);d.Ho=pX(d.Ho,a.get("linearAdSlotWidth"));
d.Go=pX(d.Go,a.get("linearAdSlotHeight"));d.Fi=pX(d.Fi,a.get("max_ad_duration"));d.sl=pX(d.sl,a.get("min_ad_duration"));d.Gi=pX(d.Gi,a.get("sdmax"));d.Jo=pX(d.Jo,a.get("nonLinearAdSlotWidth"));d.Io=pX(d.Io,a.get("nonLinearAdSlotHeight"));d.uf=qX(d.uf,a.get("client"));d.Pi=qX(d.Pi,a.get("t_pyv"));k=a.get("sdki");d.Wi=pX(d.Wi,y(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=pX(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Wl=sX(d.Wl,a.get("targeting"),sca);d.zi=pX(d.zi,a.get("video_format"));
d.km=pX(d.km,a.get("video_cpm"));d.Uk=qX(d.Uk,a.get("loeid"));d.xm=qX(d.xm,a.get("yt_pt"));d.tm=qX(d.tm,a.get("ytdevice"));d.um=qX(d.um,a.get("ytdevicever"));d.wm=qX(d.wm,a.get("dbp"));d.C=qX(d.C,a.get("ms"));d.adBlock=pX(d.adBlock,a.get("adBlock"));d.url=qX(d.url,a.get("url"));d.Yj=qX(d.Yj,a.get("avo"));this.o=d;this.J=b;this.K=c;C(D(this.o.experimentIds))||(b=this.o.experimentIds.split(","),vK(wK(),b))};
var tca=function(a){return Ih(uca,function(a){return jb(this.o.o,a)},a)};
var vX=function(a){return V()?1:jb(a.o.adType.split("_"),"text")?3:1};
var vca=function(a){a=a.o.channels?a.o.channels:[];xb(a);a=wb(a,0,30);return a.join("+")};
var wX=function(a,b){return Math.round(1.1*(a||0)+0*b)};
var xX=function(a,b){MW.call(this,a,b)};
var yX=function(a,b){MW.call(this,a,b)};
var zX=function(a){MW.call(this,a,null)};
var AX=function(a){MW.call(this,a,null)};
var BX=function(a,b){MW.call(this,a,b);V()&&this.A.Dc("doubleclick_gpt_retagging")&&(this.B.B=WR())};
var CX=function(a){if(C(D(a)))return!1;a=new N(a);if(!a.C||"http"!=a.C&&"https"!=a.C)return!1;a=a.A;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
var wca=function(a){var b=[];E(a,function(a){0<a.length&&b.push(O(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
var DX=function(a,b,c){BX.call(this,a,b);var d=wK();this.J=DK()?!1:C(D(a.B));a=new SW;DK(wK())||(a.o=lX(a.o,this.A.B),a.adType=a.o.join("_"));a.experimentIds=qX(a.experimentIds,this.A.C);this.o=a;this.K=b;this.G=c;C(D(this.o.experimentIds))||vK(d,this.o.experimentIds.split(","))};
var xca=function(a){var b=fX(a.A,a.K,a.o,a.G);b.set("sdkv",RW(a));b.set("sdki",a.F().toString(16));return b};
var yca=function(a,b){var c=xca(a),d=O(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
mh(b,"afvparams",d.join("&"))};
var EX=function(a,b,c){MW.call(this,a,b);var d=wK();this.J=DK()?!1:C(D(a.B));d=new SW;DK(wK())||(d.o=lX(d.o,this.A.B),d.adType=d.o.join("_"));d.experimentIds=qX(d.experimentIds,this.A.C);this.o=d;this.K=b;this.G=c;C(D(this.o.experimentIds))||(b=this.o.experimentIds.split(","),d=wK(),vK(d,b))};
var zca=function(a){var b=fX(a.A,a.K,a.o,a.G);b.set("sdkv",RW(a));return b};
var Aca=function(a,b){var c=zca(a),d=O(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
GS(b,"afvparams",[va(d.join("&"))])};
var FX=function(a){MW.call(this,a,null)};
var Bca=function(a){if(null==a.A||null==a.A.xb)return{};var b={},c=a.A.xb;E(Cca,function(a){a in c&&(b[a]=c[a])});
return b};
var Dca=function(a,b){var c;if(!LS(a.o)&&!MS(a.o)||(DK(wK())?null==a.o||-1==a.o.search("afvbase="):C(D(a.B))||null==a.o||-1==a.o.search("afvbase=")))if(LS(a.o))c=new yX(a,iS);else if(IS(a.o))c=new tX(a,iS,b);else if(MS(a.o))c=new BX(a,iS);else if(KS(a))c=new xX(a,iS);else if(c=a.o,null!=c?(c=hh(new N(c)),c=ua(c,".fwmrm.net")):c=!1,c)c=new zX(a);else{c=a.o;if(null!=c){c=new N(c);var d=c.B;c=ua(c.A,"youtube.com")&&JS("/get_midroll_info",d)}else c=!1;c=c?new FX(a):new AX(a)}else c=LS(a.o)?new EX(a,iS,
b):new DX(a,iS,b);return c};
var Eca=function(a){a=$d(a,function(a){return 0<kU(a)});
Cb(a,function(a,c){return kU(a)-kU(c)});
return a};
var Fca=function(a){return $d(a,function(a){return-1==kU(a)})};
var GX=function(a){this.o=a};
var Gca=function(){this.o=0};
var Hca=function(a,b,c,d,e,f){var k=A(function(a){d(a,Error(Jm(a)))},a),l=A(function(a){6==a?HX(this,b,!1,c,k,e,f):k(a)},a);
HX(a,b,!0,c,l,e,f)};
var HX=function(a,b,c,d,e,f,k){var l=new rn;l.V=c;sn(l,Ica(f));var m=new Cm,p=A(function(){m.dispose();l.dispose()},a);
c=A(function(){e(l.A);p()},a);
Im(m,l,"success",function(){var a;try{a=l.o?l.o.responseXML:null}catch(b){a=null}if(null==a){var c=En(l);try{a=uz(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(vz&&(a=wz())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);
Im(m,l,["error","timeout"],c,a);var u;"POST"==k&&(b=new N(b),u=b.o.toString(),eh(b,""),b=b.toString());a.o=I();l.send(IK(b),k,u)};
var IX=function(a,b,c){var d=null,e=c+b;E(a.C,function(f){if(DS(f.L,"rm")){var k=ZW(a);ST(a)&&(k.FILLED_OPPORTUNITY=0);RK(a.K,k);(k=a.B)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof BT)0==c&&0==b||f instanceof tW?k=!0:(k=f.Tb(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.Tb().height+b-f.Tb().width,"Flash"!=f.getContentType()||zS))if(null==d)d=f,e=k;else if(k==e&&f.o<d.o||k<e)d=f,e=k}});
bU(a,d)};
var JX=function(a){var b=null;E(a.C,function(a){a instanceof yT&&(null===b||a.o<b.o)&&(b=a)});
bU(a,b)};
var KX=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.S=d;this.logger=null};
var LX=function(a,b,c){null!=a.o?Jca(a,b,c):a.ld()?Kca(a,b,A(function(a){!this.ld()||!V()&&301==a.getErrorCode()?c(a):LX(this,b,c)},a)):c(new eK("adLoadError","The ad source contains no more ads.",1005))};
var Lca=function(a,b){a.D=b;a.ads=a.K(a.C,a.J);a.A=-1};
var Mca=function(a,b,c,d){var e=a.F.clone();e.A="";e.o=b.La;MX(a,b,e,c,d)};
var MX=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.B,null!=f&&(c.A=f));a.S.fetch(c,A(function(a){a instanceof KX?(Nca(a,b,this.D&&b.Ca,b.Ea),d(a)):a instanceof GX?e(new eK("adLoadError","Ad source cannot contain playlist response.",2)):e(new eK("adLoadError","Unknown ad source.",2))},a),e)};
var Oca=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b};
var Jca=function(a,b,c){a.o.ld()?LX(a.o,A(function(a){this.B(a,b,A(function(a){this.ld()?LX(this,b,c):c(a)},this))},a),A(function(a){NX(this.ads[this.A],a);
this.o=null;V()||301!=a.getErrorCode()?this.ld()?LX(this,b,c):c(a):c(a)},a)):(0==a.o.G&&NX(a.ads[a.A],TK(OX)),a.o=null,LX(a,b,c))};
var NX=function(a,b){if(b.A){1012==b.getErrorCode()&&(b=TK(PX));var c=TW(b,a);RK(a.aa,c)}};
var Kca=function(a,b,c){a.A++;var d=a.ads[a.A];d.S||d.M?d.M?Mca(a,d,A(function(a){this.o=a;LX(this,b,c)},a),A(function(a){a=QX(a);
NX(d,a);c(a)},a)):4<=Oca(d)?(a=TK(Pca,null,"4"),NX(d,a),c(a)):a.L?a.H(d,A(function(a){this.o=a;
LX(this,b,c)},a),A(function(a){a=QX(a);
NX(d,a);c(a)},a)):c(TK(Qca)):a.B(d,b,c)};
var QX=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=TK(OX)}return a};
var Nca=function(a,b,c,d){E(a.ads,function(a){a.o=b});
Lca(a,c);a.L=d};
var RX=function(a,b,c,d){KX.call(this,[],a,b,c);this.M=d};
var SX=function(a,b,c,d,e){this.D=a;this.B=b;this.C=c;this.o=d;this.F=e};
var Rca=function(a,b,c,d){var e;try{e=uz(b.A)}catch(f){d(TK(jV,f));return}null!=e?TX(a,e,b,c,d):d(TK(jV))};
var UX=function(a,b,c,d){var e;if(e=null!=b.o){a:{try{wa(b.o)}catch(f){e=!1;break a}e=!0}e=!e}e?d(TK(Sca,null,b.o)):oK.C?lba(XU(),A(a.A,a,b,c,d)):a.A(b,c,d)};
var Tca=function(a){var b="third_party";IS(a.o)?b="adsense":LS(a.o)?b="dart":MS(a.o)?b="xfp":KS(a)&&(b="dbm");a={rt:b};oL(nL.getInstance(),17,a,!0)};
var TX=function(a,b,c,d,e){var f;try{var k=gca(b,c);if(!k)throw TK(jV);f=k.B();Uca(a,f,c,d)}catch(l){l instanceof eK?e(l):e(TK(Vca,l))}};
var Uca=function(a,b,c,d){var e=b.o;if(null!=e)d(new GX(e));else{var f=b.B;if(null==f)throw TK(JW);E(f,function(a){a.B=c;var d=kK();d&&lK(d,"useCompanionsAsEndSlate")&&(a.G=Xaa(a));if(a.B.Dc("enable_ad_video_end_renderers")){var e=a.getExtension("InfoCards");if(null==e)d=[];else for(var d=[],e=e.B?e.B:new uV,f=0;f<sV(e.o,"card");f++){var u=HV(e,f);KV(IV(u))&&d.push(u)}a.Da=d}a.ia=this.B.o;V()&&(a.va=b.A)},a);
e=Eca(f);f=Fca(f);0<f.length&&0<=jU(f[0])?d(new RX(f,c,a,a.D)):d(new KX(e,f,c,a))}};
var VX=function(a){this.o=a+I()};
var Ica=function(a){var b=I();a=a.o-b;return 0<a?a:0};
var Wca=function(a,b){this.o=a;this.A=b;oK.o&&zP().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}iS.J=c};
var Xca=function(a,b,c,d){var e=b.G;V()&&e&&vK(wK(),e,!1);e=null;null!=a.o&&(e=new UU(1E3,a.o,a.A));var f=Daa(b);null!=f&&Caa(b)&&(a.A.U=f);(new SX(a.A,new Gca,a.o,e,new VX(8E3))).fetch(b,A(function(a){a instanceof GX?c(a):Yca(this,a,c,d)},a),d)};
var Yca=function(a,b,c,d){var e=[],f=A(function(a,b){a.ld()?LX(a,A(function(b){e.push(b);f(a,null)},this),A(function(b){301==b.getErrorCode()?d(TK(WX)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=TK(IW)),1012==b.getErrorCode()&&(b=TK(PX)),d(b))},a);
f(b,null)};
var Zca=function(a){this.B=a;this.A=new go;this.o=!1};
var XX=function(a,b,c,d){var e=A(function(a){c(a);jo(this.A);this.o=!1;YX(this)},a),f=A(function(a){d(a);
jo(this.A);this.o=!1;YX(this)},a);
io(a.A,A(function(){Xca(this.B,b,e,f)},a));
YX(a)};
var YX=function(a){if(!a.o){var b=ko(a.A);null!=b&&(a.o=!0,b())}};
var ZX=function(a,b,c){H.call(this);this.C=new Zca(new Wca(b,c));this.D=a;this.A=b;this.o=!0;this.B=c};
var $ca=function(a,b,c){if(a.o){var d=null!=c?c:{};SU.getInstance().end("rtr");gba(SU.getInstance(),b.o);SU.getInstance().start("vl");XX(a.C,b,A(function(a){$X(this,a,d)},a),A(function(a){aY(this,a,d)},a))}};
var ada=function(a,b,c){if(!a.o){var d=null!=c?c:{};XX(a.C,b,A(function(a){$X(this,a,d)},a),A(function(a){aY(this,a,d)},a))}};
var $X=function(a,b,c){if(a.o)b instanceof GX?(b=new bY(b.o,a),b.G=a.A,a.$(new PU(b,c))):(b=cY(b),null!=b?(b.G=a.A,a.$(new PU(b,c)),SU.getInstance().end("vl")):aY(a,TK(dY,null),c));else if(b instanceof GX)aY(a,TK(bda,null,"Unsupported ad format."),c);else{var d=new RU("adsLoaderSdkAdLoaded");d.F=b;d.D=c;a.$(d)}};
var aY=function(a,b,c){a.o?("always"==oK.A&&null!=a.A&&JU(a.A,HU()),a.$(new fK(b,c))):(c=new RU("adsLoaderSdkAdError"),c.B=b,a.$(c))};
var cda=function(a){return'<div class="close-padding"><a class="close-button" title="'+X(a.close)+'" role="button" tabindex="0"></a></div>'};
var dda=function(){return'<div class="recall-button"></div>'};
var eda=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="attribution-button">'+X(a.text)+"</a>"};
var eY=function(a,b){this.J=a;this.H=M("div",{"class":"controls"});this.o=M("div",{"class":"adDisplay"});this.O=b||w;this.Tc=new Cm(this)};
var fY=function(a){var b=M("div",{"class":"ima-container"});Jq(b,"opacity 0.4s");a.Tc.P(b,"mouseover",a.Kw);a.Tc.P(b,"mouseout",a.xC);b.appendChild(a.H);a.H.appendChild(a.o);return b};
var gY=function(a,b){this.K=a;this.S=new wg;this.M=15E3;this.F=M("span");eY.call(this,a[0],b);this.o.appendChild(this.F)};
var hY=function(a,b){eY.call(this,a[0],b);this.C=a;J(this.o,"ima-container-stack")};
var iY=function(a,b,c,d,e){Lz.call(this);this.A=a;this.D=b;this.G=c;this.B=d;this.F=da(e)?e:[e]};
var jY=function(a,b,c,d,e){return new iY(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
var fda=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="fullslot-attribution-button">'+X(a.text)+"</a>"};
var gda=function(a){return'<div class="fullslot-autoclose">'+X(a.jv)+"</div></div>"};
var kY=function(a){var b="";a=ra("Ad will close in {$xSeconds}",{xSeconds:X(a.Uf)});return b+a};
var lY=function(a){H.call(this);this.D=new Qd(200);G(this,this.D);this.A=0;this.C=!1;this.K=a;this.J=new Cm(this);this.J.P(this.D,"tick",this.xA)};
var mY=function(a){a.D.stop();a.C=!1};
var nY=function(a,b){H.call(this);this.B=a;this.V=0;this.ea=this.G=!1;this.A=0==ZS(this.B.skipOffset)?3:1;this.H=this.J=this.o=this.C=this.ha=this.U=this.S=this.F=null;this.D=new Cm(this);this.da=!1;this.na=this.ma=this.aa=0;this.K=this.M=this.L=null;this.Z=!1;this.Y=new PP;this.O=new PP;this.fa="";hda(this,b);this.D.P(this.Y,"click",this.oC);QP(this.Y,this.C);this.D.P(this.O,"click",this.Qv);QP(this.O,this.J)};
var hda=function(a,b){a.B.J&&(a.D.P(b,"touchstart",a.kx),a.D.P(b,"touchmove",a.jx),a.D.P(b,"touchend",a.ix));a.F=pQ(haa);a.S=$e("videoAdUiPreSkipButton",a.F);a.U=$e("videoAdUiPreSkipText",a.S);a.ha=$e("videoAdUiPreSkipThumbnail",a.S);Af(a.U,kR({Uf:oY(a)}));var c=aQ(a.B.da)||"";if(a.B.showContentThumbnail&&!C(D(c))){var d=lf("img");d.setAttribute("src",c);J(d,"videoAdUiPreSkipThumbnailImage");a.ha.appendChild(d)}else J(a.U,"videoAdUiPreSkipTextOnly");a.o=pQ(iaa,{skipText:a.B.J?"\u00ab Swipe to Skip":
Ta(Na()),Rv:jaa()});a.J=$e("videoAdUiExtendButton",a.o);a.C=$e("videoAdUiSkipButton",a.o);a.H=$e("videoAdUiAutoSkipText",a.C);AK(wK(),9413054)&&(J(a.C,"autofocused"),a.D.P(a.C,"blur",A(function(){Zd(this.C,"autofocused")},a)),a.C.autofocus=!0);
lg(a.F,!1);b.appendChild(a.F);0==ZS(a.B.skipOffset)?a.$("skipshown"):(lg(a.o,!1),kg(a.o,0));b.appendChild(a.o)};
var oY=function(a){return null!=a.B.skipOffset&&-1!=ZS(a.B.skipOffset)?ZS(a.B.skipOffset):-1};
var pY=function(a,b){var c=oY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+CS(c));c=kR({Uf:d,Yh:a.fa});Af(a.U,c)}};
var qY=function(a){return 3==a.A&&a.B.S&&20<a.V};
var rY=function(a){null!=a.K&&(Td(a.K),a.K=null)};
var sY=function(a,b,c){H.call(this);this.o=a;this.O=!1;this.va=c;this.ea=this.Z=this.Y=this.F=this.K=this.L=this.H=this.da=this.aa=this.U=this.A=null;this.na=!1;this.qa=this.fa=this.ha=this.J=this.C=this.D=this.ma=this.V=this.S=this.G=null;this.B=new Cm(this);this.Ca=[];this.M=[];this.O=!this.o.C&&BK([9414784,9418335,9416126]);a={Oc:this.o.Oc,Bf:this.o.Bf,te:this.o.te,Yh:this.O?"redesign2014q4":""};this.A=pQ(this.o.H,a);this.B.P(this.A,"touchmove",this.$w);this.V=$e("videoAdUiProgress",this.A);this.ma=
$e("videoAdUiBuffer",this.A);this.U=$e("videoAdUiAttributionContainer",this.A);this.aa=$e("videoAdUiAttributionIconContainer",this.A);this.da=$e("videoAdUiAttribution",this.A);this.H=$e("videoAdUiVisitAdvertiserLinkText",this.A);this.L=$e("videoAdUiVisitAdvertiserIcon",this.A);this.K=$e("videoAdUiAuthorIcon",this.A);this.F=$e("videoAdUiAuthorName",this.A);this.Y=$e("videoAdUiLearnMore",this.A);this.Z=$e("videoAdUiLearnMoreText",this.A);this.O?(this.J=$e("videoAdUiTopButtonShare",this.A),this.ha=$e("videoAdUiTopButtonShareTooltip",
this.A),this.fa=$e("videoAdUiTopButtonInfo",this.A),this.qa=$e("videoAdUiTopButtonWatchLater",this.A)):this.J=$e("videoAdUiShare",this.A);this.G=$e("videoAdUiTitle",this.A);this.S=$e("videoAdUiTopBar",this.A);this.ea=$e("videoAdUiBottomBar",this.A);null!=this.K&&this.B.P(this.K,"click",this.fv);null!=this.F&&(c=new PP,this.M.push(c),this.B.P(c,"click",this.gv),QP(c,this.F));null!=this.Y&&(c=new PP,c.L=!0,this.M.push(c),this.B.P(c,"click",this.Yo),QP(c,this.Y));null!=this.Z&&(c=new PP,c.L=!0,this.M.push(c),
this.B.P(c,"click",this.Yo),QP(c,this.Z));null!=this.J&&this.B.P(this.J,"click",this.lC);null!=this.G&&(c=new PP,this.M.push(c),this.B.P(c,"click",this.uC),QP(c,this.G));null!=this.S&&this.B.P(this.A,"mouseover",this.kC);null!=this.H&&this.B.P(this.H,"click",this.lj);null!=this.L&&this.B.P(this.L,"click",this.lj);null!=this.U&&null!=this.o.D&&tY(this.o.D)&&(this.B.P(this.U,"click",this.JB),this.B.P(this,"why_this_ad_got_it",this.CC));null!=this.o.skipOffset&&(this.C=new nY(this.o,this.A),this.C.Wg(this),
this.C.fa=a.Yh);400>=((0,window.parseInt)(Qf(b,"width"),10)||b.width)&&J(this.A,"videoAdUi-mobile");this.o.C&&(J(this.A,"blazer"),window.settings&&window.settings.isTablet?J(this.A,"tablet"):J(this.A,"phone"));this.o.J&&J(this.A,"videoAdUi-swipeable");a=Hf(b,"html5-video-player");null!=a&&(this.O&&J(a,"videoAdUiRedesign"),L(a,"ytp-video-ad-learn-more-ui",this.o.A));lg(this.A,!1);b.appendChild(this.A);this.o.A||this.O||!this.o.L||(this.D=M("div",{style:"width:100%;height:100%;pointer-events:auto;"}),
this.A.appendChild(this.D));uY(this)};
var ida=function(a){null!=a.D&&lg(a.D,!1)};
var vY=function(a){a.C&&(a.C.dispose(),a.C=null)};
var jda=function(a,b){a.Ca=b;E(b,function(a){a.display(this.A)},a)};
var wY=function(a){null!=a.H&&(lg(a.H,!0),Af(a.H,a.o.visitAdvertiserText));null!=a.L&&lg(a.L,!0)};
var xY=function(a,b){if(null!=a.A){var c=Hf(wf(a.A),"html5-video-player");null!=c&&L(c,"ytp-ad-end-cap",b)}};
var uY=function(a){var b=a.o.U&&(a.va>a.o.Da||0==a.va),c=b&&a.o.Z,d=b&&a.o.aa,e=b&&a.o.B,f=b&&a.o.V,b=b&&a.o.G,k=a.o.O&&a.o.o,l="0px";null!=a.G&&(lg(a.G,b),null!=a.K&&lg(a.K,c),null!=a.F&&lg(a.F,d),null!=a.Y&&lg(a.Y,e),null!=a.J&&(lg(a.J,f),f&&a.$("videoShareShown")),null!=a.fa&&lg(a.fa,!1),null!=a.qa&&lg(a.qa,!1),null!=a.S&&lg(a.S,b||c||d||e));null!=a.U&&yY(a);null!=a.V&&(lg(a.V,k),k&&(l=Qf(a.V,"height")));null!=a.ea&&Mf(a.ea,"bottom",l);c=AK(wK(),41351019);null!=a.Z&&lg(a.Z,(!c||V())&&a.o.A);null!=
a.aa&&lg(a.aa,a.o.K)};
var kda=function(a,b,c,d,e){var f=lR({cj:"",Eh:0,fj:0});a.o.o&&a.o.M&&(b=CS(c-b),f=lR({cj:a.o.C?" \u2022 "+b:a.O?" \u00b7 "+b:": ("+b+")",Eh:d,fj:e}));Af(a.da,f);yY(a)};
var yY=function(a){lg(a.U,a.o.F&&(!a.o.o||a.na))};
var zY=function(a,b,c){this.A=a;this.C=b;this.H=c;this.o=this.D=this.F=this.B=null;this.G=!1};
var tY=function(a){return(a.H||null!=a.A&&null!=a.A.A)&&(null!=a.A||null!=a.C)};
var AY=function(a,b,c){b=$e(b,a.B);null!=b&&a.D.P(b,"click",c)};
var BY=function(a,b,c){b=$e(b,a.B);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&a.D.P(b,"click",c))};
var CY=function(a,b,c){null!=a.B&&a.B.parentElement.removeChild(a.B);a.B=pQ(b,c);AY(a,"videoAdUiPopupCloseIcon",a.pg);a.F.appendChild(a.B);b=$e("videoAdUiPopupFrame",a.B);null!=b&&Oc(b,"submit",function(a){a.preventDefault()});
a=$e("videoAdUiPopupDefaultButton",a.B);null!=a&&a.focus()};
var DY=function(){this.Oc=lR({cj:"",Eh:0,fj:0});var a="",b=ra("Learn More {$suffix}",{suffix:X("")});this.Bf=a+b;a="";b=ra("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.te=mR();this.skipOffset=null;this.S=!1;this.Da=6E3;this.F=!0;this.K=!1;this.M=this.o=this.L=!0;this.V=this.O=this.B=!1;this.U=!0;this.G=this.aa=this.Z=this.Y=this.A=!1;this.H=null;this.J=lda&&AK(wK(),0);this.showContentThumbnail=!0;this.C=!1};
var EY=function(a,b,c,d){var e=new DY;e.A=a;e.fa=b;e.skipOffset=c;e.da=null!=d?d.contentId:null;e.L=d.AC;e.H=eaa;e.ia=ZP(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};
var FY=function(a,b,c,d,e){lY.call(this,b.o);this.H=b;this.G=c;this.L=this.H.o;this.o=a;this.B=this.F=null;J(this.o,BS(this.G));a=this.o;b=new DY;b.skipOffset=new YS(this.H.B,!1);this.B=new nY(b,a);d&&d.text&&(d=pQ(fda,d),this.o.appendChild(d));e?(e=this.o,d=kY({Uf:GY(this.L)}),a=pQ(gda,{jv:d}),Af(a,d),e.appendChild(a),e=a):e=null;this.F=e};
var mda=function(a){var b=$e("videoAdUiSkipButton",a.o);return b?cg(b,a.o):new oe(0,0)};
var GY=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
var HY=function(){F.call(this);this.D="";this.B=new aT;this.A=new wg;this.F=[];this.J=!1;this.o={};this.H={};this.C=-1;this.G=[]};
var IY=function(a,b){if(oK.o){var c=FP(zP(),b.type,a.D);a.K(b.type,c)}else mba(XU(),b.type,a.D,A(a.K,a,b.type))};
var nda=function(a,b){null!=b&&E(b,function(a){jb(this.G,a)||this.G.push(a)},a)};
var JY=function(a,b,c,d,e){var f;oK.o||(f=XU().G||void 0);E(b,function(a){var b=this.o,m=c||{};if(V()&&$W("MOAT_INIT",a)){var p=HP();null!=p&&(b.MOAT_INIT=p.moatInit,QK.ll(a)&&(b.MOAT_INIT=(0,window.encodeURIComponent)(b.MOAT_INIT)))}else b.MOAT_INIT="";m=m.moatViewability||"";V()&&$W("MOAT_VIEWABILITY",a)?(b.MOAT_VIEWABILITY=m,QK.ll(a)&&(b.MOAT_VIEWABILITY=(0,window.encodeURIComponent)(b.MOAT_VIEWABILITY))):b.MOAT_VIEWABILITY="";OK(a,this.o,c,d,e,f)},a)};
var oda=function(a,b){switch(b){case "abandon":return!xg(a.A,b)&&!xg(a.A,"skip")&&!xg(a.A,"complete")&&(xg(a.A,"impression")||a.J);case "click":return!0;case "complete":return!xg(a.A,b)&&!xg(a.A,"skip");default:return!xg(a.A,b)}};
var KY=function(a){H.call(this);this.ads=a;this.J=null;this.Y=new Cm(this);G(this,this.Y);this.S="normal";this.C=this.volume=null;this.B=new rL;this.Ea=!1;this.content={};this.F=new HY;this.da=!1;var b=0;E(a,function(a){b+=rU(a)});
E(a,function(b,d){var e=b.D;e.C=a.length;var f=d+1;e.A=f;e.D=f})};
var LY=function(a){if(MY(a)){if(PT(a.J)&&!kL())throw VK(nX,null,"skippablevideo");if(FU(a.J)&&NY(a,a.J.o))throw VK(nX,null,"vpaidWithSkippabilityOverride");return a.J}throw VK(OY,null,"An ad has not been selected.\n"+Error().stack);};
var NY=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:NY(a,b.o)};
var MY=function(a){return null!==a.J};
var pda=function(a){return Ih(a.ads,function(a){return Ih(PY(a),function(a){return!C(D(WP(a.A)))})},a)};
var PY=function(a){var b=a.o;if(b&&b.M&&(b=b.C,!lb(b)&&b[0]instanceof yT))return b[0].K;b=a.A;return QY(a)?b.K:[]};
var QY=function(a){a=a.A;return null!=a&&a instanceof yT};
var RY=function(a){null==a.H&&(a.H=new Cm(a));return a.H};
var SY=function(a,b){if(null!=a.G){a.Y.removeAll();Gm(a.Y,a.G,"companion_display_error",function(){});
var c=JU(a.G,b);null!=c&&(a.Y.P(c,"companion_impression",a.Wy),a.Y.P(c,"companion_click",a.zl));if(!a.G.zn())throw VK(TY);}};
var qda=function(a){E(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.C,d=a.B,e=a.D,f=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&&f){var e=window,c=e.document,l={};l._scs_=d;l._bgu_=k;l._bgp_=f;l._li_="v_0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=
a;c.getElementsByTagName("head")[0].appendChild(d)}}})};
var UY=function(a,b){IY(a.F,new kc(b))};
var VY=function(a,b){IY(a.F,new kc(b));a.wa(b)};
var WY=function(a){if(!a.da)throw VK(OY,null,"Ads manager is not correctly configured.");};
var XY=function(a){do if(nU(a))return!1;while(a=a.o);return!0};
var YY=function(a,b){for(var c=b;null!=c;)E(c.J.Ka(),a.VB,a),c=c.o};
var rda=function(a){if(!da(a))throw VK(OY,null,"adsRenderingSettings.mimeTypes should be an array");var b=sb(Wb(ZY),Wb(wT));E(a,function(a){if(!jb(b,a))throw VK(OY,null,"Invalid or unsuppoted mime type "+a);})};
var $Y=function(a){KY.call(this,a);this.K=null;this.ha=M("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.V=!1;this.aa=[]};
var aZ=function(a,b){var c=Paa(b);E(c,function(a){fT(this.F.B,"click",a)},a)};
var bZ=function(a,b){var c=TW(b,LY(a)),d=ZT(LY(a));RK(d,c)};
var cZ=function(a){$Y.call(this,a);this.U=!1;this.D=this.O=null;this.ea=!1};
var dZ=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.D,b=b.F;a={text:null!=c?c:a.fa.C,url:null!=b?b:a.fa.D};null==a.text&&(c="",b=ra("Ads by Google"),c=xQ(c+b),a.text=c);return a};
var eZ=function(a){return MY(a)&&sU(LY(a))};
var sda=function(a){var b=fZ(a);b.rba=a.V;oL(nL.getInstance(),37,b)};
var fZ=function(a){var b=[],c=[];E(a.O,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a);
var d={};d.pid=SU.getInstance().o;d.fsmode=null!=a.D;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.S;return d};
var gZ=function(a,b){if(a.D){a.mi(new kc("close"));var c={};c.pid=SU.getInstance().o;c.evt=b;oL(nL.getInstance(),35,c)}};
var hZ=function(a){gK.call(this,"adMetadata",a)};
var tda=function(a,b,c){var d=w,e=new N("https://www.googleapis.com/youtube/v3/videos");mh(e,"id",a);mh(e,"part","snippet,status");mh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=A(b,c),d=A(d,c));iZ(new rn,e,b,d)};
var uda=function(a,b,c){var d=w,e=new N("https://www.googleapis.com/youtube/v3/channels");mh(e,"id",a);mh(e,"part","snippet,statistics");mh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=A(b,c),d=A(d,c));iZ(new rn,e,b,d)};
var iZ=function(a,b,c,d){mh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");sn(a,2E3);var e=new Cm(a);Gm(e,a,"success",function(a){a=a.target;var b;b=a.o?be(a.o.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Gm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.A&&(b=Error(Jm(a.A)));d(b);e.dispose();a.dispose()});
a.send(b)};
var jZ=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=Yb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}};
var kZ=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}};
var vda=function(a){var b=xQ,c;c=a.image;uQ(c,aR)?c=String(c).replace(YQ,ZQ):uQ(c,bR)?c=String(c).replace(YQ,ZQ):c instanceof He?c=XQ(Je(c)):c instanceof Me?c=XQ(Oe(c)):(c=String(c),c=wda.test(c)?c.replace(YQ,ZQ):"about:invalid#zSoyz");return b('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+OQ(c)+'"></div><div class="iv-endcap-headline" dir='+RQ(a.dir)+">"+X(a.headline)+'</div><div class="iv-endcap-description" dir='+
RQ(a.dir)+">"+X(a.description)+'</div><a class="iv-endcap-action" href="'+OQ($Q(a.target))+'" target="_blank" dir='+RQ(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>')};
var lZ=function(a,b,c){lY.call(this,c);c=(c=b.o.product_card)?new AV(c):mZ;var d=new yV(rV(b.o,"action")[0]);b=d.o.title;var d=d.o.target,e=c.o.headline,f=c.o.description;c=c.o.image;c=(c?new FV(c):nZ).o.image_url;b=pQ(vda,{headline:null!=e?e:"",description:null!=f?f:"",image:null!=c?c:"",action:null!=b?b:"",target:null!=d?d:""});a.appendChild(b);this.o=$e("iv-endcap-countdown-inner",b)};
var xda=function(){var a="",b=ra("Your video will play after this ad.");return xQ(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))};
var oZ=function(){F.call(this);this.A=pQ(xda);this.ya=0};
var pZ=function(a){a.ya&&(Td(a.ya),a.o(w))};
var qZ=function(a){kc.call(this,a)};
var rZ=function(a){H.call(this);this.C=a;this.M=new wg;this.J=-1;this.K=this.S=!1;this.G=""};
var sZ=function(a){this.o=!1;this.mute=a.qf();this.volume=a.md()};
var tZ=function(a){null!=a.A&&a.A.dispose();null!=a.o&&a.o.tf();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.S=!1;a.K=!1};
var uZ=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&&IY(a.C,new kc("click"))}d=yda[c]||null;null!=d&&null!=a.o&&a.o.Nl(d);IY(a.C,new kc(c))}a.$(b)}};
var vZ=function(a){0>a.J||a.S||!a.o.sg(a.J)&&!a.o.Je()||!a.K||(a.S=!0,uZ(a,"engagedview",!0,!0),a.$(new qZ("viewCount")))};
var wZ=function(a){vZ(a);if(V()){var b=a.C;if(!(0>b.C))for(var c=eT(b.B,"progress"),d=b.C;d<c.length;d++){var e=c[d];b.C=d+1;OK(e.o,b.o)}}uZ(a,"complete",!0,!0)};
var xZ=function(a){KY.call(this,a);this.D=this.A=null;this.V=!1;this.O=new rZ(this.F);this.ea=this.na=this.Ca=this.qa=this.U=!1;this.Z=null;this.aa=1;this.K=null;this.Ia=new oZ;this.va=new Zj;this.La=!1;this.fa=[];this.ha=!1;this.Ga=!$K()&&BK([9414784,9418335,9416126]);this.ma=AK(wK(),41351019)};
var yZ=function(a,b){var c=Sd(function(){this.va.remove(c);b.call(this)},0,a);
ak(a.va,c)};
var zZ=function(a){Nb(a.A);a.A=null;Nb(a.O);Nb(a.F);a.qa=!1;a.na=!1};
var AZ=function(a){a.Ug();MY(a)?a.start():a.stop()};
var zda=function(a){if(!MY(a))return!1;var b=a.C.Ee();if(null==b)return!1;var c=LY(a),d;(d=c.G?c.G.o.Hg()?c.G.o.Xk():c.G.getContent():"")?Ada(a,b,d):lb(c.Da)||(d=yU(c),a.D=new lZ(b,c.Da[0],d),a.A&&xY(a.A,!0),a.C.Pe(),a.D.start(),a.o.Co(!0),a.o.Ao(),VY(a,"video_card_endcap_impression"));null!=a.D&&(RY(a).P(a.D,"timeUpdate",a.jq),RY(a).P(a.D,"end",a.Ov));return null!=a.D};
var Ada=function(a,b,c){oL(nL.getInstance(),34,{evt:"start"},!0);var d=M("div");J(d,"controls");var e=M("div");J(e,"adDisplay");J(e,"endslate");e.innerHTML=c;(c=sf(e)[0])&&Mf(c,{margin:"0 auto"});E(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&RY(this).P(a,"click",A(this.Nv,this,b))},a);
d.appendChild(e);e=new kV;rba(e,yU(LY(a)));e.B=0;e.A=0;a.D=new FY(d,e,1,{},!0);RY(a).P(a.D,"skip",a.Qn);mf(b,a.D.getContainer());a.C.Pe();a.D.start();VY(a,"video_card_endcap_impression");a.A&&(ida(a.A),vY(a.A))};
var BZ=function(a,b){CZ(a);null!=a.o&&a.o.Do();a.wa("complete");VY(a,b);AZ(a)};
var CZ=function(a){a.D&&(a.D.dispose(),a.D=null);a.A&&xY(a.A,!1);a.V=!1};
var DZ=function(a){var b=MY(a)?CU(LY(a)):null;if(b){var c;a:{if(MY(a)&&(c=DU(a.J),null!=c))break a;c=""}var d;a:{if(MY(a)&&(d=EU(a.J),null!=d))break a;d=""}var e=LY(a).B.Dc("show_ads_pay_this_creator_info_card");(c||d||e)&&a.o.Ok(b,c||null,d||null,e)}};
var EZ=function(a){var b=AK(wK(),9419966);!a.Z||!a.ea&&b||(b=a.Z,a.ea=!1,a.Z=null,SY(a,b))};
var FZ=function(a,b,c,d){b=eT(b.o,c);lb(b)||(a[d]=b[0].o)};
var GZ=function(a,b,c){b=c.getExtension(b);null!=b&&(FZ(a,b,"annotation_click","cta_annotation_clicked"),FZ(a,b,"annotation_close","cta_annotation_closed"),FZ(a,b,"annotation_start","cta_annotation_shown"))};
var Bda=function(a,b){var c=nU(b)&&!b.S?dU(b):null,d=PT(b)&&!RT(b),e=null!=a.A&&a.A.o.A,f=b.B,k=$P(a.uo());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var l=KT(b),m;a.A?(m={},GZ(m,"AdSense",b),GZ(m,"dart",b),GZ(m,"DFP",b)):m=null;return new JR(l,c,0,m,e,d,a.B.loadVideoTimeout,f?f.pi:!1,!1,hU(b),a.B.Df,k)};
var Cda=function(a){var b=0,c=0;E(a.ads,function(a){!QY(a)||V()&&0!=c||(c++,b+=rU(a))},a);
var d=1;E(a.ads,function(a){var b=a.D;b.C=c;QY(a)&&(b.A=d,b.D=d,d++)},a)};
var HZ=function(a){var b=a.o;return b&&b.M&&(b=b.C,!lb(b)&&b[0]instanceof yT)?b[0].Vc():xU(a)};
var IZ=function(a,b){if(!QY(b))throw VK(JZ);var c=b.A;if(!C(D(null)))return new xT("","","",0,0,0,0,0,null,"");var d=PY(b),e=a.o.Bq(d,a.B.bitrate,a.B.Eg||[],null!=b&&(V()||a.C.ti()||a.C.Lk()||$K()));Dda(d,a.B.bitrate,e,XT(b));if(null!=e)return c.ha=e;try{Eda(a,b)}catch(f){}throw VK(Fda);};
var Eda=function(a,b){if(nL.getInstance().o){var c=new Zj,d=!1;E(PY(b),function(a){ak(c,a.o);"VPAID"==a.B&&(d=!0)},a);
var e=a.o.yk(),e={aid:dU(b),mt:c.Ka().join(","),smt:e.join(","),hvp:d,st:iU(b).join(",")};oL(nL.getInstance(),28,e)}};
var Dda=function(a,b,c,d){if(!V())try{var e=O(a,function(a){return a.Qd}),f=O(a,function(a){return a.o});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Qd;a.selmt=null===c?"":c.o;a.ic=!1;a.nat=!1;a.iyh=EK(c.A)?"1":"0";a.as=d;oL(nL.getInstance(),22,a)}catch(k){}};
var KZ=function(a,b){b in a.fa||(a.fa.push(b),a.wa(b))};
var LZ=function(a,b,c){b.getMessage();b.getErrorCode();MZ(a,c);a.Ug();MY(a)?(WK(VK,a,b,c,void 0),a.start()):(XK(a,b,c),a.stop())};
var MZ=function(a,b){var c=VK(NZ,b),c=TW(c,LY(a),a.o),d=ZT(LY(a));RK(d,c)};
var OZ=function(a){if(oK.o){var b=HZ(LY(a));null!=b&&MK(b)}a.wa("click")};
var PZ=function(a,b){Vb(Gda,b)&&Dm(RY(a),a.O,b,a.gq,a)};
var QZ=function(a){if(!a.ha){var b=LY(a),c=b.F;if(BU(b)&&!V()&&!a.C.ti()&&c){var b=a.o.getCurrentTime(),d=a.o.Nd(),e=new N("//s.youtube.com/s");mh(e,"ns","yt");mh(e,"el","adunit");mh(e,"docid",c);mh(e,"eurl",window.document.URL);mh(e,"len",d.toFixed(2));mh(e,"tv","1");mh(e,"ps","trueview-instream");mh(e,"st",b.toFixed(2));mh(e,"et",b.toFixed(2));mh(e,"rt",b.toFixed(2));OK(e.toString());a.ha=!0}}};
var Hda=function(a){var b;b=LY(a).V;if(null!=b){b=b.videoId;var c=a.B.baseYouTubeUrl;if(C(D(b)))b=null;else{var c=new N((null!=c?c:"//www.youtube.com/")+"watch"),d=c.o;d.set("v",b);eh(c,d);c.J="action=share";b=c.toString()}null!=b&&(MK(b),a=RZ(a),null!=a&&NK(a,"sharebuttonclicked"))}};
var Ida=function(a){a=RZ(a);null!=a&&NK(a,"sharebuttondisplayed")};
var RZ=function(a){var b=LY(a).getExtension("AdSense");if(!(b=null!=b?new N(b.B):null))a:{if(a=cU(LY(a)))if(a=tT(a,"start"),!lb(a)){b=new N(a[0].o);break a}b=null}return b};
var Jda=function(a){var b=LY(a),c=b.V;null!=c&&(b=ZP(c.videoId,null!=tU(b),a.B.baseYouTubeUrl),null!==b&&(a.o.pause(),MK(b)))};
var SZ=function(a,b){yZ(a,function(){this.wa(b?"video_extend_auto_skipped":"skip");AZ(this)})};
var TZ=function(a,b){tda(b,function(a){a=new kZ(a);MY(this)&&CU(LY(this))==a.videoId&&(Kda(this,a),!C(D(a.channelId))&&a.isListed&&uda(a.channelId,function(a){a=new jZ(a);if(null!=this.A){var b=this.A,c=a.A;b.o.aa=!C(D(c));b.o.ea=c;if(null!=b.F){var c="",k=ra("by {$userDisplayName}",{userDisplayName:""+b.o.ea});Af(b.F,(new DQ(c+(""+k),void 0)).getContent())}uY(b);b=this.A;c=a.o;b.o.Z=!C(D(c));null!=b.K&&(k=lf("img"),k.setAttribute("src",c),J(k,"videoAdUiAuthorIconImage"),b.K.appendChild(k),null!=
b.G&&J(b.G,"videoAdUiTitleWithAuthorIcon"),null!=b.F&&J(b.F,"videoAdUiAuthorNameWithAuthorIcon"));uY(b)}MY(this)&&(LY(this).O=a,this.wa("youTubeChannelMetadata"));if(a=this.A)a=LY(this),b=a.V,a=V()&&lb(aU(a))&&null!=a.O&&null!=b&&b.isListed;if(a){a=LY(this);RY(this).P(window,"message",this.mw);var b=LY(this),c=b.O.channelId,k=KT(b),l=this.B.contentId,m=this.B.baseYouTubeUrl,m=new N((null!=m?m:"//www.youtube.com/")+"ad_companion"),p=m.o;p.set("adformat",k);p.set("p",c);p.set("render","video_wall_companion");
l&&p.set("content",l);c=new uW("1",new re(300,250),"IFrame",null,m.toString());c.S=b;c.D=!0;a.H=[new pW(c,[],null)];SY(this,a)}},this))},a)};
var Kda=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;c.o.G=!C(D(d));c.o.title=d;UZ.test(ye(c.o.title,void 0));null!=c.G&&Af(c.G,c.o.title);uY(c);c=a.A;null!=c.ha?Af(c.ha,jR()):null!=c.J&&Af(c.J,jR())}MY(a)&&(LY(a).V=b,a.wa("youTubeVideoMetadata"))};
var VZ=function(a){var b;b=LY(a).O;if(null!=b){var c;c=a.B.baseYouTubeUrl;b=D(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.o.pause(),MK(c))}};
var Lda=function(a){var b=SU.getInstance();if(b.A){var c={};if(null!=a.K){var d=hh(new N(a.K.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.K.Rd;c.cd3=a.K.o;c.cd5=b.o;c.cm2=a.B.bitrate;c.cd2=EK(a.K.A)?"1":"0";d=a.K.getWidth();e=a.K.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.o&&(d=a.o.Uc(),c.cd4=d.width+"x"+d.height);a=a.K.G;C(D(a))||(c.cd7=a)}b.end("bt",c)}};
var WZ=function(){kc.call(this,"vpaidEvent")};
var XZ=function(a){KY.call(this,a);this.va=this.qa=this.aa=!1;this.Z=[];this.ea=Wa();this.A=null;this.M=!0;this.fa=this.V=-1;this.O=1;this.ma=this.ha="";this.U=!1;this.na=0;this.K=2==oK.F};
var YZ=function(a){var b=Taa(LY(a)),c=D(xU(LY(a))),d=zU(LY(a)),c={desiredBitrate:a.B.bitrate,creativeData:b,viewMode:a.S,clickThroughUrl:c,adUrl:d};zU(LY(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.B.surveyCreativeData&&(c.creativeData=a.B.surveyCreativeData);ZZ(a,"initAd",c);E(a.Z,function(a){ZZ(this,a.type,a.params)},a);
a.aa=!0;a.Z=[]};
var $Z=function(a,b,c){c=c||null;a.aa?ZZ(a,b,c):a.Z.push({type:b,params:c})};
var ZZ=function(a,b,c){c=c||{};c.session=a.ea;c.type=b;a.K?window.parent.postMessage(de(c),"*"):null!=a.D.contentWindow&&a.D.contentWindow.postMessage(de(c),"*")};
var a_=function(a,b,c){var d=VK(b,c),d=TW(d,LY(a)),e=ZT(LY(a));RK(e,d);XK(a,b,c)};
var b_=function(a,b){if(y(b.type))switch(b.type){case "friendlyReady":YZ(a);break;case "videoCall":switch(b.func){case "load":case "play":a.C.Fg();a.ma!=b.src&&(a.ma=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.V=b.duration;break;case "returnRemainingTime":c_(a,b.remainingTime);break;case "AdClickThru":UY(a,"click");a.wa("click");break;case "AdDurationChange":a.V=b.duration;c_(a,b.remainingTime);cU(LY(a)).Jf(a.V);a.wa("durationChange");
break;case "AdError":a_(a,Mda,Error(b.message));a.stop();break;case "AdExpandedChange":a.wa("expandedChanged");break;case "AdImpression":var c=LY(a);lb(aU(c))||SY(a,c);a.wa("impression");break;case "AdLinearChange":c=b.isLinear;!a.M&&c?(a.wa("contentPauseRequested"),Td(a.fa)):!c&&a.M&&(a.wa("contentResumeRequested"),$Z(a,"getAdRemainingTime"),$Z(a,"getAdDuration"));a.M=c;var d=LY(a);d.ha=!0;d.na=c;a.wa("linearChanged");a.K&&a.$(new WZ);break;case "AdLoaded":if(!V()){var e={};e.pid=SU.getInstance().o;
e.dn=a.ha;e["if"]=a.K;e.lt=I()-a.na;oL(nL.getInstance(),43,e,!0)}a.qa=!0;var e=b.companions,f=LY(a);if(lb(aU(f))){var k=f.A.o,l=[],m=null;try{c=uz(e),d=uf(c),null!=d&&"CompanionAds"==d.nodeName&&(m=DW(zW.prototype,d,k))}catch(p){}null!=m&&l.push(m);lb(l)||JT(f,l)}d_(a);VY(a,"loaded");break;case "AdPaused":a.U=!0;VY(a,"pause");break;case "AdPlaying":a.U=!1;VY(a,"resume");break;case "AdRemainingTimeChange":c_(a,b.remainingTime);break;case "AdSkipped":VY(a,"skip");break;case "AdSkippableStateChange":VY(a,
"skippableStateChanged");break;case "AdStarted":UY(a,"impression");UY(a,"creativeview");a.wa("start");break;case "AdStopped":UY(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.M?UY(a,"acceptinvitationlinear"):UY(a,"acceptinvitation");break;case "AdUserMinimize":UY(a,"collapse");break;case "AdUserClose":VY(a,"userClose");break;case "AdVideoComplete":VY(a,"complete");break;case "AdVideoFirstQuartile":VY(a,"firstquartile");break;case "AdVideoMidpoint":VY(a,"midpoint");break;case "AdVideoStart":UY(a,
"start");break;case "AdVideoThirdQuartile":VY(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.O&&a.wa("volumeChange");0==c&&0!=a.O?(UY(a,"mute"),a.wa("mute")):0==a.O&&0!=c&&UY(a,"unmute");a.O=c;a.A.setVolume(c);break;case "Ping":OK(b.url)}};
var e_=function(a,b){ZZ(a,"wrapperCall",{messageType:b})};
var d_=function(a){a.qa&&a.va&&($Z(a,"startAd"),a.M||(a.$(new WZ),$Z(a,"getAdRemainingTime")),$Z(a,"getAdDuration"))};
var c_=function(a,b){a.M||(Td(a.fa),fa(b)&&-1!=b||(b=30),a.fa=Sd(a.gA,1E3*b,a))};
var f_=function(a){this.o=a};
var g_=function(a,b,c,d,e,f,k){H.call(this);this.C=this.F=0;this.J=a;this.bc=b;this.da=c;this.D=null;this.K=d;this.Y=f;this.O=oK.A;this.o=null;this.U="normal";this.M=null;this.H=e;this.A=[];this.aa=this.S=this.Z=this.L=!1;this.V=k;Nda(this)};
var h_=function(a){return null!=a&&qU(a,"nonlinear")};
var Nda=function(a){E(a.J,function(a){a=new N(a.B.o);var c=a.o.get("max_ad_duration");n(c)||a.o.get("pmxd")})};
var i_=function(a){return a.F<a.J.length&&null!=a.J[a.F]};
var Oda=function(a,b){if(V()&&!lb(b)&&0==a.bc&&h_(b[0])){var c=gU(b[0]);return"ADSENSE"==(0<c.length?c.pop():XT(b[0])).toUpperCase()}return!1};
var j_=function(a){!i_(a)||2<=a.A.length-a.C?a.Z||(a.$("adBreakInitialized"),a.Z=!0):k_(a)};
var k_=function(a){var b=a.J[a.F];Dm(a.G,a.K,"adsLoaderSdkAdLoaded",a.np,a);oK.A="on_master_ad";ada(a.K,b.B,b)};
var Pda=function(a){null==a.bc||Ih(a.A,function(a){return!a.A})||(a.A=$d(a.A,function(a){return!(a.A&&!a.B)}))};
var l_=function(a){var b;a:{if(a.C<a.A.length&&(b=a.A[a.C].o,!lb(b))){b=null!=b[0]&&null==LT(b[0]).rm;break a}b=!1}if(b){b=a.A[a.C];try{if(a.S||(m_(a),a.o=n_(a,b.o),o_(a)),a.o.init(a.U),null!=a.M&&a.o.setVolume(a.M),p_(a.o))a.$("contentResumeRequested"),a.H.Pe(),a.o.start(),null!=a.D&&a.D.start();else{var c=a.o;if(null!=c&&c instanceof xZ)a.H.Fg(),a.o.start();else{var d=a.o;if(null!=d&&d instanceof XZ)a.H.Pe(),a.H.Fg(),1==a.o.M||a.$("contentResumeRequested"),a.o.start();else throw Error("Unknown ads manager type.");
}}}catch(e){a.C++,l_(a)}i_(a)&&k_(a)}else a.$("contentResumeRequested"),q_(a)};
var n_=function(a,b){var c=null;if(null!=a.K.D)c=cY(b);else if(FU(b[0]))c=new XZ(b);else if(MT(b[0]))c=new xZ(b);else if(h_(b[0]))c=new $Y(b);else throw Error("No valid creative type found.");c.G=a.V;null!=a.B&&(a.B.dispose(),a.B=null);a.B=new Cm(a);Dm(a.B,c,"companionBackfill",a.op,a);c.Gd(new f_(a.H),{currentTime:0},a.Y);return c};
var m_=function(a){a.H.ga();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)};
var o_=function(a){if(null==a.o)throw Error("The current ads manager is not defined");var b=a.o;Dm(a.B,b,"adError",a.ey,a);Dm(a.B,b,r_,a.op,a);a.B.P(b,["allAdsCompleted"],w);Dm(a.B,b,"contentPauseRequested",a.Pw,a);Dm(a.B,b,"contentResumeRequested",a.Qw,a);Dm(a.B,b,"userClose",a.Rw,a);Dm(a.B,b,"autoClose",a.Ow,a);p_(a.o)&&(b=cU(LY(a.o)).ma,0<b||a.Y.Bn)&&(0>=b&&(b=15),null!=a.D&&a.D.dispose(),a.D=new Qd(1E3*b),Im(a.B,a.D,"tick",a.fA,a))};
var p_=function(a){return null!=a&&a instanceof $Y};
var q_=function(a){a.L=!1;a.$("allAdsCompleted")};
var Qda=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;E(a.A,function(a,b){var f=a.o;kb(f,c);d+=f.length;b<this.C&&(e+=f.length)},a);
b=c.D;var f=e+b.D;b.C=d+(a.J.length-a.F);b.A=f;b.B=a.da;b.o=a.bc}};
var s_=function(a){kc.call(this,a);this.B=null};
var t_=function(a,b,c){H.call(this);this.o=a;this.B=[];this.F=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.H=null!=c&&fa(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.C=null;this.A=!1;Rda(this,b)};
var Sda=function(a){this.o=a;this.B=this.A=!1};
var u_=function(a){null!=a.C&&(a.C.dispose(),a.C=null);a.o.stop();a.A=!1};
var Tda=function(a){if(a.A){var b=eb(a.B,function(a){return-1==a.o},a);
null!=b&&v_(a,!0,b)}};
var Rda=function(a,b){E(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Hb(this.B,new Sda(a),function(a,b){return Ab(a.o,b.o)})},a)};
var Uda=function(a,b){for(var c=[],d=0;d<a.B.length;d++){var e=a.B[d];-1!=e.o&&e.o<=b&&ob(c,e)}return c};
var Vda=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};
var w_=function(a){a.$(new s_("contentTrackingError"))};
var v_=function(a,b,c){if(null!=c){if(!c.A){var d=new s_("requestAds");d.B=c.o;a.$(d);c.A=!0}b&&!c.B&&(b=new s_("playAds"),b.B=c.o,a.$(b),c.B=!0)}};
var x_=function(a,b){F.call(this);this.C=a;this.o=-1;this.B=b};
var y_=function(a,b){if(0==b.bc||0>=a.B||0>=a.o)return!1;var c=I()/1E3,d=b.bc-a.C.currentTime;0<d&&(c+=d);return c-a.o<=a.B};
var bY=function(a,b){KY.call(this,[]);this.ea=a;this.L=new wg;this.D=this.A=null;this.U=new go;this.K=null;this.Z=b;this.ha=this.aa=!1;this.fa=this.O=null;this.ma=0;this.V=!1};
var z_=function(a,b){a.V=!1;a.bf(b);if(0==b.bc)a.wi();else{if(-1==b.bc)(A_(a)||!V()&&a.aa)&&B_(a);else{var c=a.D;c.o.start();c.A=!0}a.K=null}};
var C_=function(a){null!=a.H&&(a.H.dispose(),a.H=null);a.aa=!1;null!=a.D&&u_(a.D)};
var D_=function(a){if(null==a.K){var b=jo(a.U);if(null!=b){a.K=b;var c=a.L.get(a.K.B);if(null==c)a.K=null,D_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.K=null,D_(a);else if(null!=a.fa&&y_(a.fa,c))a.K=null,D_(a);else if("requestAds"==b.type)a.V?(a.U.isEmpty()||"playAds"!=ko(a.U).type||jo(a.U),z_(a,c)):(b=RY(a),Dm(b,c,r_,a.$,a),Dm(b,c,"adError",a.Vn,a),Dm(b,c,"allAdsCompleted",a.hp,a),Dm(b,c,"contentPauseRequested",a.to,a),Dm(b,c,"contentResumeRequested",a.wi,a),Dm(b,c,"userClose",a.Uw,a),
Dm(b,c,"autoClose",a.Tw,a),Dm(b,c,"adBreakInitialized",a.ip,a),c.init(-1,-1,a.S));else if("playAds"==b.type)if(null!=a.A&&a.A.Za()&&a.bf(a.A),a.V)z_(a,c);else if(a.A=c,a.A.setVolume(a.volume),c=a.A,b=a.S,null!=b&&(c.U=b),null!=c.o&&c.o.pf(-1,-1,b),a.A.S){c=a.A;if(c.C<c.A.length){b=c.A[c.C];m_(c);try{c.o=n_(c,b.o),o_(c)}catch(d){c.C++,l_(c)}}a.wa("contentResumeRequested");a.D.getCurrentTime()>=a.ma?null!=a.A&&a.A.start():a.K=null}else a.A.start()}}};
var B_=function(a){a.ha||(a.ha=!0,a.Z.o=!0,a.wa("allAdsCompleted"),-1==a.O&&E_(a))};
var E_=function(a){AK(wK(),41351033)||iS.clear();null!=a.G&&(a=a.G.Ce(),null!=a&&kS(a,iS.o))};
var A_=function(a){return 0==a.L.Ka().length};
var Wda=function(){};
var cY=function(a){if(lb(a))return null;var b=a[0];switch(FU(b)?"vpaid":nU(b)&&qU(b,"nonlinear")?"overlay":qU(b,"linear")?"video":qU(b,"nonlinear")?"overlay":null){case "overlay":return nU(b)?new cZ(a):new $Y(a);case "video":return new xZ(a);case "vpaid":return new XZ(a);case "flash_vpaid":return null;default:return null}};
var F_=function(a){H.call(this);this.A=a;a=new IU(new eS);this.o=new ZX(new Wda,a,iS);this.o.P("adsManagerLoaded",this.$,!1,this);this.o.P("adError",this.$,!1,this);this.o.P("adLoadError",this.$,!1,this)};
var G_=function(a,b,c){yK();var d="",e=qM(),f=e.A,e=e.o;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.qc=PR(b.o,a.A.B);b.Vl=a.A.H;$ca(a.o,b,c)};
var H_=function(a,b){kH.call(this,a,b)};
var I_=function(a){this.app=a;mq.call(this,a.Va)};
var J_=function(a,b,c){this.X=a;this.o=b||"";this.B=c||null;this.C=!1};
var K_=function(a,b){var c=a.X;if(c.Ea&&("detailpage"==c.Ba||"leanback"==c.Ba||"embedded"==c.Ba&&(c.Ca||c.experiments.B))&&!a.C){a.C=!0;zi("TIMING_ACTION")||wi("TIMING_ACTION",a.X.csiPageType);a.X.ma&&wi("CSI_SERVICE_NAME",a.X.ma);if(a.B){var c=a.B.C,d;for(d in c)Yu(d,c[d],a.o);d=a.B.B;for(var e in d)dv(e,d[e],a.o);e=a.B;e.C={};e.B={}}if(e=Fh("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}dv("yt_vis",
d,a.o)}dv("yt_pt","html5",a.o);b&&!cv("pbs",a.o)&&a.A("pbs",b);e=a.X;("detailpage"!=e.Ba||"blazer"==e.o)&&cv("_start",a.o)&&bv(a.o)}};
var Xda=function(){this.D=new HJ(50);this.A=null;this.C=this.B=0;this.o=[]};
var Yda=function(a,b){0!=a.o.length&&(b.D=a.o.length,b.H=me(a.o,function(a,b){return a+b},0),b.G=db(a.o),b.K=Math.min.apply(Math,a.o),b.J=Math.max.apply(Math,a.o),a.o=[])};
var Zda=function(a,b){if(a.A&&!(b>=a.B&&b<a.C)){var c=a.A.gf(b);a.B=a.A.ee(c);a.C=a.B+a.A.ag(c);var d=I()/1E3,c=Kr(a.A,c),d=d-(c?c.A:window.NaN);IJ(a.D,d);a.o.push(d)}};
var $da=function(a,b){this.o=a;this.A=b;this.B=1};
var L_=function(a,b,c,d){d/=a.B;var e=SJ(a.o)+1/TJ(a.o),f;f=Math.max(.9*(d-3),RJ(a.o)+8192*e);c=f/e*a.A.na/(b+c);c=Math.min(c,d);c=Math.max(a.A.ma,Math.min(a.A.ha,c));return Math.min(a.A.F,Math.max(65536,Math.ceil(c*b)))};
var M_=function(a){var b=TJ(a.o);a=1E-9+RJ(a.o)+1048576*SJ(a.o);return b*Math.min(1,1048576/(b*a))};
var N_=function(a){return M_(a)/a.B};
var O_=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
var aea=function(a,b,c,d){this.V=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.S=this.O=0;this.U=null;this.K=!1};
var bea=function(a,b,c,d){"m"==c&&a.o.isLocked()&&!b.isLocked()&&(c="a");a.K=a.K||d;if("m"==c&&b.isLocked())return a.D=c,P_(a,b),Q_(a),a.B=R_(a),new O_(S_(a),a.B,c);d=a.o.equals(b);if("m"==a.D&&a.o.isLocked()&&d)return null;"r"!=c||d||(a.M=-1);P_(a,b);b=R_(a);if("r"==c&&b==a.B){if(d)return null;a.B=b;return new O_(S_(a),b,c)}a.D=c;T_(a);return null};
var cea=function(a,b){U_(a);a.U=b;a.S=$s();a.M=-1;P_(a,a.o)};
var U_=function(a){return!!a.S&&9E4>=$s()-a.S};
var S_=function(a){V_(a);return a.C};
var R_=function(a){V_(a);return a.G};
var T_=function(a){a.B&&a.G&&W_(a,a.B.info)<W_(a,a.G.info)&&(a.K=a.K||a.G.info.video.width>1.6*a.B.info.video.width||"r"==a.D)};
var X_=function(a){var b=a.D;a.D="a";a.M=$s();a.K=!1;return new O_(a.L,a.B,b)};
var V_=function(a){if(!(!a.o.isLocked()&&-1<a.M&&8E3>$s()-a.M)){a.S&&!U_(a)&&(a.S=0,P_(a,a.o));Q_(a);var b=N_(a.V);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.A-W_(a,a.C.info);0<c&&!(W_(a,a.A[c])<=d);c--);for(b=b/a.H.o-W_(a,a.C.info);c<a.A.length-1&&!(W_(a,a.A[c+1])>=b);c++);a.O=c;a.G=a.F.o[a.A[c].id];T_(a)}}};
var P_=function(a,b){a.o=b;var c=a.J.videoInfos;if(!a.o.isLocked()&&(c=$d(c,function(a){return W_(this,a)>this.H.H?!1:!this.F.o[a.id].D},a),U_(a))){var c=$d(c,function(a){return a.id!=this.U.id},a),d=$d(c,function(a){a=jr(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=$d(c,b.C,b);d.length||(d=[c[0]]);d.sort(A(function(a,b){return W_(this,a)-W_(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(qb(d,c),c--):W_(a,e)*a.H.o>W_(a,f)&&(qb(d,c-1),c--)}a.A=d;CI(a.H,d[d.length-1].video.QB)};
var dea=function(a,b){if(b)a.C=a.F.o[b];else{var c=eb(a.J.o,function(a){return!!a.Hb&&a.Hb.isDefault}),c=c||a.J.o[0];
a.C=a.F.o[c.id]}Q_(a)};
var Q_=function(a){if(!a.C.info.Hb&&(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=N_(a.V)/a.H.o,b=W_(a,a.C.info)+W_(a,a.A[b])>c}b&&(a.C=a.F.o[a.J.o[1].id])}};
var eea=function(a){var b=a.H.A,c=N_(a.V)/b-W_(a,a.C.info),b=ib(a.A,function(a){return W_(this,a)<c},a);
0>b&&(b=0);a.O=b;a.G=a.F.o[a.A[b].id]};
var W_=function(a,b){return a.H.U&&b.C?b.C:b.o};
var Y_=function(){this.o=this.A=!1};
var Z_=function(a,b){this.M=a;this.B=b;this.D=[];this.o=[];this.C=this.A=null;this.F=0;this.O=b.info.o;this.K=this.L=!1;this.J=new Y_;this.H=null;this.G=0};
var $_=function(a,b){a.D.push(b);a.A=db(b.info.o);a.F+=a0(b)};
var b0=function(a){for(var b;a.D.length&&5==a.D[0].state;)b=a.D.shift(),!b.L&&b.o&&(a.F=c0(b,a.F)),d0(b)&&(b=e0(b),E(b,a.S,a));a.D.length&&d0(a.D[0])&&!Xr(a.D[0].info.o[0])&&(b=a.D[0],!b.L&&b.o&&(a.F=c0(b,a.F)),b=e0(b),E(b,a.S,a))};
var f0=function(a){return!(!a.o.length||1!=a.o[0].info.o.info.A||0!=a.o[0].info.B)};
var g0=function(a){var b=Ps(a.o[0]);return b.getInt32(0)>b.byteLength&&1==a.o.length};
var h0=function(a,b){g0(a);var c=a.o[0],d=i0(a);if(!d)return null;c=b||c.info.o.index.uk(c.info.C);return(d=ps(d,c))?d:null};
var j0=function(a){var b=a.o[0],c=i0(a);c&&(c=Ds(c))&&k0(a,Er(b.range.start,c))};
var i0=function(a){var b=a.o[0],c=Ps(b),d=Ds(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=Ds(new window.DataView(a.buffer));if(!d)return null;c=new window.DataView(a.buffer.slice(b.range.start,d))}return c};
var fea=function(a,b){if(a.L)return a.o[0].range;var c=!!a.B.info.audio,d=a.B.Nh();if(a.o[0].info.D>=b)return null;var e;for(e=1;e<a.o.length;e++){var f=a.o[e].o!=a.o[e-1].o;if(a.o[e].info.D>b||f||a.M.V)break}e--;var f=a.o[e].range.end,k=a.o[e].info.J-b;if(d&&c&&0<=a.M.S&&k>a.M.S){c=Math.floor((b-a.o[e].info.D)/a.o[e].info.H*a.o[e].info.A);if(0==c)return null;f=a.o[e].range.start+c-1}return new Cr(a.o[0].B?0:a.o[0].range.start,f)};
var k0=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 Wr(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B,e,!1);var f=Er(c.range.start,e);d=new Os(d,c.o,f,c.A,c.B);e=new Wr(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.G);f=new Cr(f.end+1,c.range.end);c=new Os(e,c.o,f,c.A,!1);d=[d,c];c=d[0];a.o[0]=d[1]}else c=a.o.shift();
d=a;f=c.info;d.C=f;d.L&&d.C.F&&(d.L=!1);d.O=Math.max(d.O,f.o.info.o);if(c.range.end==b.end)break}a.o.length&&c.o==a.o[0].o||(a.F-=c.A.length)};
var l0=function(a,b){var c=m0(a,b);if(0<=c)return c;a.A=a.B.gi(b).o[0];n0(a)&&(a.C=null);a.H=null;a.G=0;return a.A.startTime};
var o0=function(a,b){p0(a);if(a.B.info.video&&a.C&&!a.C.F&&b){var c=fb(a.o,function(a){return a.info.F});
a.o=wb(a.o,0,c+1);a.L=!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};
var q0=function(a){a.J.A||a.J.start();o0(a,!1);n0(a)&&(a.C=null)};
var gea=function(a,b){for(var c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)b.dispose();else{for(;c<a.D.length;)a.V(a.D.pop());3==b.info.o[0].type?(b.o&&b.o.C?(c=b.o.C,c=new Wr(c.type,c.o,c.range,c.C,c.startTime+c.duration,0,c.B+c.A,0,!1)):(c=b.info.o[0],c=new Wr(c.type,c.o,c.range,c.C,c.startTime,0,c.B,0,!1)),a.A=c):a.A=null}};
var hea=function(a){return Ih(a.o,function(a){return a.info.F})};
var n0=function(a){return!!a.C&&a.C.G};
var r0=function(a){var b=[];a.C&&b.push(a.C);E(a.o,function(a){b.push(a.info)});
E(a.D,function(a){E(a.info.o,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.A&&a.A!=db(b)&&b.push(a.A);return b};
var s0=function(a){if(!a.A||!a.A.A)return!1;a=r0(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].J)))return!1;return!0};
var m0=function(a,b){if(s0(a)){var c;a:{c=r0(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};
var t0=function(a){return Ih(a.D,function(a){return 3<=a.state})};
var u0=function(a){return!(!a.A||!Vr(a.B)||a.A.o==a.B)};
var v0=function(a){return u0(a)&&a.A.o.info.o<a.B.info.o};
var p0=function(a){E(a.D,a.V,a);a.D=[];a.A=null};
var w0=function(a){return!!a.A&&a.A.C<a.B.index.yg()};
var iea=function(a,b){this.A=a;this.F=this.D=!1;this.length=b;this.o=0;this.B=[];if(1==this.A.length&&!this.A[0].range){var c=this.A,d;d=this.A[0];var e=Er(0,this.length);d=new Wr(d.type,d.o,e,d.C,d.startTime,d.duration,d.B,e.length,d.G);c[0]=d}this.C=null};
var jea=function(a){var b=a.length-a.o;E(a.B,function(a){b+=a.range.length});
return b};
var x0=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;kea++;this.L=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Bi(A(this.SB,this)),Bi(A(this.Bj,this)));I();this.H=!1;b()};
var y0=function(a){a.B.push(a.G.subarray(0,a.o));a.o=0;a.G=a.H?null:new window.Uint8Array(z0(a))};
var A0=function(a){a.C.read().then(Bi(A(a.Py,a)),Bi(A(a.Bj,a)));var b=I();a.L=b};
var z0=function(a){a=a.eg();return Math.max(16384,.125*a)};
var B0=function(a,b,c,d){this.status=0;this.A=null;lea++;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=Bi(A(this.XD,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",Bi(A(this.YD,this)),!1)};
var C0=function(a,b,c){this.C=a;this.info=b;this.timing=c;this.state=1;this.B=null;this.M=this.G=this.K=0;this.F=window.NaN;this.H=this.A=this.S=null;this.D=0;this.o=null;this.L=!1;this.J=null;this.O=window.NaN};
var D0=function(a){var b;b=a.timing;b={rt:((I()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=a.A?vr(a.A.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};
var E0=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};
var F0=function(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.S&&a.S(a)};
var mea=function(a){return Gg(a.info.o,function(a){return 3==a.type})};
var G0=function(a){if(a.B){var b=a.B;a.B=null;b.Ir()}a=a.timing;a.C&&(a.C=!1)};
var H0=function(a){var b=a.B.lh("content-type"),c=a.B.eg(),c=!c||c<=C0.o;return(!I0(a)||!b||-1!=b.indexOf("text/plain"))&&c};
var e0=function(a){a=a.o;var b=a.B;a.B=[];a.C=db(b).info;return b};
var d0=function(a){return 2<=a.state&&!!a.o&&!!a.o.B.length};
var J0=function(a,b){I0(a)&&!a.B.eg()&&(a.C.Y=!1,a.C.Z=!1);if(b||I0(a)&&!H0(a)){if(!a.o){var c=b?a.B.qk():a.B.eg();a.o=new iea(a.info.o,c)}for(;a.B.Vo();)for(var c=a.o,d=a.B.Pq(),e=0,f=0,k=0;k<c.A.length;k++){var l=c.A[k];if(e+l.A<=c.o)e+=l.A;else{var m;var p=c,u=l;1==u.type?(p.D=!0,m=!1):3==u.type||4==u.type?(u=p.D&&!p.F,p.F=!0,m=u):m=!1;var p=c,u=l,v=c.o-e,z=f,x=d,ga=Math.min(u.A-v,x.length-z),xa=void 0,xa=new Wr(u.type,u.o,u.range,u.C,u.startTime,u.duration,u.B+v,ga,u.B+v+ga==u.range.length&&u.G),
K=v=void 0,v=x.buffer,z=x.byteOffset+z,x=Er(x.byteOffset,x.length);1==u.type?(v.slice?v=v.slice(z,ga):(u=new window.Uint8Array(v,z,ga),v=(new window.Uint8Array(u)).buffer),K=Er(0,ga)):K=Er(z,ga);p.B.push(new Os(xa,v,K,x,m));p=ga;c.o+=p;f+=p;e+=l.A;if(f==d.length)break}}}};
var c0=function(a,b){a.L=!0;return b-ds(a.info)+a0(a)};
var a0=function(a){return a.o&&a.L?jea(a.o):ds(a.info)};
var I0=function(a){return!!(a.C.Y||a.C.Z&&a.B&&a.B instanceof x0)};
var nea=function(a,b,c){this.B=a;this.K=b;this.S=c;this.o=this.F=this.A=window.NaN;this.J=this.L=this.C=!1;this.D=0;this.G=this.M=window.NaN};
var K0=function(a,b,c){if(a.C){var d=(b-a.F)/1E3,e=c-a.o;0<e&&(.2<d||1024>e?(a.D+=d,.2<d&&OJ(a.B,.05,e)):OJ(a.B,d,e),a.J=!0)}else 8192<=c&&(d=a.B,d.B.o(1,(b-a.A)/1E3),VJ(d),a.C=!0);a.F=b;a.o=c};
var L0=function(a){var b=a.K-a.o,b=1E3*(b*a.H.tailDelay+b/a.H.byterate),c=I(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.H.delay);a.G=b};
var M0=function(a,b,c,d){Rj.call(this);this.J=a;this.C=b;this.G=c;this.B=this.A=null;this.L=new $da(a,b);this.o=null;this.F=new aea(this.L,b,this.G,d);this.D=this.ea=this.aa=this.da=window.NaN;this.M=!1;this.H=window.NaN;this.fa=0;this.K=!1;this.ia={};this.V="";this.Y=this.Z=0};
var N0=function(a){0==a.D&&(a.A.B.B||O0(a,a.A,!0),a.B.B.B||O0(a,a.B,!0));a.seek(a.D);P0(a,"gv")};
var Q0=function(a){a.o&&a.o.o&&a.o.o.removeEventListener&&(a.o.o.removeEventListener("updateend",A(a.uc,a),!1),a.o.A.removeEventListener("updateend",A(a.uc,a),!1),a.o.o.removeEventListener("error",A(a.Hi,a,!0),!1),a.o.A.removeEventListener("error",A(a.Hi,a,!1),!1));a.o=null;a.K=!0;a.B&&o0(a.B,!1);a.A&&o0(a.A,!1)};
var R0=function(a){a.o&&Hv(a.o)&&Q0(a)};
var S0=function(a,b,c,d){a.isDisposed()||((b=bea(a.F,b,c,d))&&a.R("videoformatchange",b),T0(a,a.B,R_(a.F)),a.F.o.isLocked()&&"m"==c&&(q0(a.B),q0(a.A)),v0(a.B)&&U0(a,a.B,a.A),V0(a))};
var W0=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.R("seekrequired");return!1};
var X0=function(a,b,c){if(a.K)return!1;if(!b.A){if(!Vr(b.B))return b.B.B||O0(a,b,!1),!1;l0(b,a.D)}var d=b.D.length+c.D.length;(t0(b)||t0(c)||a.G.isLive)&&--d;if(2<=d+1)return!1;d=b.A;4==d.type&&Vr(d.o)&&(b.A=db(d.o.Vi(d)),d=b.A);!d.G&&!d.o.mh(d)||d.o.info.audio&&4==d.type?a=!1:v0(b)&&!a.C.J?a=!0:(!(c=d.G||b.F+c.F>a.C.K||!!(c.A&&!c.A.G&&c.A.J<d.J))&&(c=3==d.type)&&(d=d.J,b=Y0(a,b,!0),a.F.o.isLocked()||(c=($s()-a.fa)/1E3,b=Math.min(b,30+2*c)),c=d>a.D+b),a=c?!1:!0);return a};
var U0=function(a,b,c){if(!a.o||Gv(a.o)||Kv(a.o)){var d=a.D,e=a.L;c=L_(e,b.B.info.o,c.B.info.o,0);e=RJ(e.o)+c*SJ(e.o)+c/TJ(e.o);a:{d+=Math.max(e,e+5-c/b.B.info.o);a=a.F.K;if(b.D.length){if(b.D[0].info.o[0].startTime<=d)break a;p0(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=db(b.D[b.D.length-1].info.o):b.o.length?b.A=db(b.o).info:b.A=b.C;a&&b.A&&d<b.A.startTime&&(b.H=null,b.G=0,b.A=b.B.gi(d,!0).o[0])}}};
var Z0=function(a,b,c){X0(a,b,c);var d=b.A;if(Vr(b.A.o)){v0(b)&&!a.C.J&&(U0(a,b,c),b.A||l0(b,a.D));var d=b.A,e=d.J-a.D,f=!d.range||0==d.A&&0==d.B?0:d.range.length-(d.B+d.A);u0(b)&&(v0(b)||e<=a.C.aa)&&0==f&&(f=d.startTime+M0.o,d.A&&(f+=d.duration),l0(b,f),d=b.A);d.o.Nh()?(c=L_(a.L,d.o.info.o,c.B.info.o,e),e=u0(b),c=Ys(d.o,d,c),c.range&&1<c.o.length&&(e?c=Ys(d.o,d,c.o[0].A):(e=c.o[c.o.length-1],f=e.A/c.range.length,!e.F&&.4>f&&(c=Ys(d.o,d,c.range.length-e.A)))),d=c):d=fs(d.o,d)}else d.o.Nh()?(c=L_(a.L,
b.B.info.o,c.B.info.o,0),d=Ys(d.o,d,c)):d=fs(d.o,d);$_(b,$0(a,d))};
var $0=function(a,b){if(3==b.o[b.o.length-1].type){var c;a:{c=a.F;var d=b.o[0].o;if(d.info.video){if(c.B!=d){c.B=d;c=X_(c);break a}}else c.L=d;c=null}c&&a.R("videoformatchange",c)}c=ds(b);var d=a.J,e=a.L,f=Math.min(2.5,RJ(e.o)),e=M_(e);c=new C0(a.C,b,new nea(d,c,c-f*e));d=A(a.FA,a);c.isDisposed();c.S=d;c.start(Math.max(0,b.o[0].D-a.D));return c};
var V0=function(a){if((0,window.isNaN)(a.da)){var b=A(a.uc,a);a.da=Ai(b,0)}};
var a1=function(a){if((0,window.isNaN)(a.aa)){var b=A(function(){this.aa=window.NaN;this.uc()},a);
a.aa=Ai(b,M0.D)}};
var b1=function(a,b,c,d,e){if(c.updating)return!0;var f=b.o.length?b.o[0]:null;if(!f)return!1;!b.C||b.C.F||Yr(b.C,f.info)||(b.C=null,Gv(a.o)&&c.abort(),c.o=null);var k=a.G.isLive&&Ts(f),l=!a.G.C&&b.M.V&&f0(b);if(k)c.o=null;else{if(k=l||!f.B)k=f.info.o.o,c.o==k?k=!1:(c1(a,c,k),c.o=k,a.R("initsegment",c.o),k=c.updating);if(k)return!0}k=Y0(a,b,!1);k=a.D+k;null!==d&&0<=d&&(k=Math.min(k,d));d=fea(b,k);if(!d)return!1;if(l){if(g0(b))return!1;if(k=h0(b))return d1(a,c,new window.Uint8Array(k),f,b)?(j0(b),
!0):!1}k=new window.Uint8Array(f.o,d.start,d.length);if(f.info.o.info.video&&a.C.Ta)for(var m=k,p=0;p<m.length-5;p++)0==m[p]&&0==m[p+1]&&0==m[p+2]&&12==m[p+3]&&6==m[p+4]&&45==m[p+5]&&(m[p+5]=63);m=!1;if(3==f.info.type&&(1==f.info.o.info.A||2==f.info.o.info.A))if(m=1==f.info.o.info.A&&a.C.Ca&&!l&&!b.K&&0==f.info.B&&0<f.info.startTime)Rs(f,0);else if(a.G.C&&0==f.info.B){a:if(f0(b)&&!Ts(b.o[0])&&g0(b))e=!1;else{l=null===b.H?f.info.startTime:b.H;0==Rs(f,l)?(l=as(f.info),l.smst=1,a.qd(!0,"fmt.unparseable",
l)):b.H=2==f.info.o.info.A?l+f.info.duration:l+Ss(f);if(2!=f.info.o.info.A){l=0;if(f.info.o.info.video&&null!==e&&(p=1E3*(Ss(f)-f.info.duration),p=b.G+p,e=e-p,!(Math.abs(e)<M0.F))){var l=e/1E3,u=Ss(f)+l,v=as(f.info);v.deltaOffsetMs=e;v.cumOffsetMs=p;v.finalDurSecs=u;a.qd(!1,"qoe.avsync",v)}if((e=l)&&f0(b)&&!Ts(b.o[0])){b.G+=1E3*(Ss(f)-f.info.duration+e);b.H+=e;e=Ss(f)+e;b:{l=0;for(p=new window.DataView(f.o);ys(p,l);){u=zs(p,l);if(1936286840==u.type){l=u.data.getUint32(u.offset+16);break b}l=Bs(u.type)?
l+8:l+u.size}l=window.NaN}if((0,window.isNaN)(l))b:{l=f.info.o.o;p=0;for(u=new window.DataView(f.o);ys(u,p);){v=zs(u,p);if(1836476516==v.type){l=As(v);break b}p=Bs(v.type)?p+8:p+v.size}l=l?xs(l):window.NaN}if(e=h0(b,e*l)){if(d1(a,c,new window.Uint8Array(e),f,b)){j0(b);e=!0;break a}e=!1;break a}}else b.G+=1E3*(Ss(f)-f.info.duration)}e=null}if(null!=e)return e}if(!d1(a,c,k,f,b))return!1;b.K=!0;m?(Rs(f,f.info.startTime),c.abort(),c.o=null,$r(f.info)):(k0(b,d),$r(b.C),hy(c.buffered));f.B&&(c.o=f.info.o.o,
a.R("initsegment",c.o));return!0};
var d1=function(a,b,c,d,e){if(1==d.info.o.info.A&&a.C.ia&&a.G.C)for(var f=new window.DataView(c.buffer),k=qs(f,0,1701671783);null!=k;)k.data.setUint32(k.offset+4,1936419184),k=qs(f,0,1701671783);return c1(a,b,c)?!0:(d.info.o.info.video?(a=a.C,a.C=Math.floor(.5*a.C),a.L=Math.floor(.5*a.L),a.B=Math.floor(.5*a.B),a.F=Math.floor(.5*a.F)):(a=a.C,a.D=Math.floor(.5*a.D),a.M=Math.floor(.5*a.M),a.B=Math.floor(.5*a.B)),q0(e),!1)};
var c1=function(a,b,c){try{Kv(a.o)?b.appendBuffer(c):b.append(c)}catch(d){return 22!=d.code&&Fi(d),!1}return!Hv(a.o)};
var Y0=function(a,b,c){var d=b.B.info.audio?a.C.D:a.C.C;!a.C.J&&a.F.o.isLocked()&&(d=Math.max(d,b.B.info.audio?a.C.M:a.C.L));c&&(d+=a.C.K);b=a.F.o.isLocked()?b.A?b.A.o.info.o:b.B.info.o:b.O;d/=b;0<a.C.B&&(d=Math.min(d,a.C.B));return d};
var e1=function(a){if(a.G.isLive){if(!a.A.B.index.dg())return window.NaN;var b=a.A.B.index.yg(),c=a.A.B.index.Kb(),d=a.A.B.index;return 1>a.C.liveChunkReadahead?d.ee(c)+d.ag(c)-M0.B:d.ee(Math.max(b,c-a.C.liveChunkReadahead+1))+M0.B}return Math.floor(Math.min(a.A.B.index.cg(),a.B.B.index.cg()))};
var f1=function(a,b,c,d){if(Vr(b.B))if(d){var e=jy(d.buffered,c),f=window.NaN,k=b.C;k&&(f=jy(d.buffered,k.o.index.ee(k.C)));if(e==f&&s0(b))return c;d=m0(b,c);if(0<=d)return d;o0(b,!0);b.B.info.video&&b.C&&!b.C.F&&!hea(b)&&(d=b.C,b.o.length&&(d=db(b.o).info),d=b.A||d,d=Ys(d.o,d,d.range.length-(d.A+d.B)),$_(b,$0(a,d)));if((0,window.isNaN)(e))return l0(b,c);l0(b,e+M0.o)}else l0(b,c);else b.B.B||O0(a,b,!1),0!=c&&p0(b);return c};
var T0=function(a,b,c){b.B!=c&&(b.B=c,c.B||O0(a,b,!1))};
var O0=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.C.F,Math.floor(Math.max(d,2*b.B.info.o))));c=b.B.Yn(d);E(c,function(a){if("f"!=a.o[0].o.info.B){var c=$0(this,a);!Xr(a.o[a.o.length-1])&&$_(b,c)}},a);
b.B.B=!0};
var g1=function(a){if(!a.B.A)return"";a=vr(a.B.A.o.F.o);return a.substr(0,a.indexOf("."))};
var P0=function(a,b,c){a.ia[b]=c?window.performance.timing.navigationStart+c:I()};
var h1=function(a){return a.o&&!Hv(a.o)?Math.min(ly(a.o.A.buffered,a.D),ly(a.o.o.buffered,a.D)):0};
var i1=function(a,b,c,d,e){F.call(this);this.D=a;this.L=b;this.J=c;this.C=d;this.o=e;this.H="";this.A=this.K=this.F=this.G=null;this.B=new zv(this);G(this,this.B);this.C?(S(this.B,this.C,"message",this.HE),S(this.B,this.C,"keystatuseschange",this.Hz)):this.o&&(Av(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Pp),Av(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Op),Av(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Np))};
var j1=function(a,b){F.call(this);this.A=a;this.o=b;this.F={};this.B=null;this.D=new zv(this);G(this,this.D);this.C=this.G=null};
var k1=function(a){if(a.o.B)return a.o.B.createMediaKeys().then(Bi(A(function(a){this.G=a;this.A.setMediaKeys(a)},a)));
Ct(a.o)?l1(a):Et(a.o)?(l1(a),a.A.webkitSetMediaKeys(a.C)):oea(a);return null};
var oea=function(a){Av(a.D,a.A,["keymessage","webkitkeymessage"],a.KE);Av(a.D,a.A,["keyerror","webkitkeyerror"],a.JE);Av(a.D,a.A,["keyadded","webkitkeyadded"],a.IE)};
var l1=function(a){a.C=new (Dt())(a.o.A)};
var m1=function(a,b){var c=a.F[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.H=b.sessionId,a.F[b.sessionId]=c);return c};
var pea=function(a,b,c){this.url=a;this.interval=b;this.o=c};
var qea=function(a,b,c){this.o=a;this.headers=b;this.message=c};
var n1=function(a,b,c,d,e){F.call(this);this.A=a;this.o=d;this.o.subscribe("oauthtoken",this.Kr,this);this.C={session_id:e};a=this.A.D;Et(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://"));o1(this,a);this.D=this.F=!1;var f;try{f=b.createSession(c)}catch(k){b="g",k instanceof window.DOMException&&(b+=k.code),this.o.R("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.B=
f)this.B.setCallbacks(this.aE,this.$D,this.ZD,this),G(this,this.B)};
var o1=function(a,b){if(rea.test(b)){for(var c in a.C)b=$g(b,c,a.C[c]);a.H=b}else p1(a,"drm.net","u")};
var p1=function(a,b,c,d){a.isDisposed()||a.o.R("licenseerror",b,c,d);a.dispose()};
var q1=function(a,b){this.o=a;this.contentType=b||null};
var r1=function(a,b){Rj.call(this);a.addKey||a.webkitAddKey||Dt()||Gt();this.M=a;this.o=b;this.subscribe("newlicense",this.dA,this);this.subscribe("newsession",this.eA,this);this.subscribe("sessionready",this.NA,this);this.V=wu();this.H=null;this.L={};this.A=[];this.C=s1;this.G=new j1(a,b);G(this,this.G);this.B=null;Ct(b)&&(this.B=new j1(a,b),G(this,this.B));this.K=2;this.F=new zv(this);G(this,this.F);this.J=!1;this.O=null;this.D=!1;var c=this.M;if(this.o.B)S(this.F,c,"encrypted",this.rz);else{var d=
Ct(this.o)?["msneedkey"]:["needkey","webkitneedkey"];Av(this.F,c,d,this.bA)}(c=k1(this.G))?c.then(Bi(A(this.Tz,this)),Bi(A(this.yy,this))):this.D=!0;this.B&&k1(this.B)};
var t1=function(a,b,c){a.isDisposed()||Ct(a.o)==c||a.J&&"widevine"==a.o.o||(c=String.fromCharCode.apply(String,b.o),a.L[c]||(a.L[c]=!0,a.J=!0,a.A.push(b),1<a.A.length||a.D&&u1(a,b)))};
var u1=function(a,b){var c=new n1(a.o,a.G,b,a,a.V);c.Kr(a.H);G(a,c)};
var v1=function(a){this.A={};this.A.c1a=A(this.D,this);this.A.c3a=A(this.F,this);this.A.c6a=A(this.C,this);(this.o=a)&&this.o.ia?this.B=oj(this.o.ia):this.B=[]};
var w1=function(a,b,c){this.o=a;this.reason=b;this.A=c};
var sea=function(a,b){this.X=a;this.o=b};
var wH=function(a,b){return Yt(Yt(a.X.qe,b.Vg),b.$g)};
var x1=function(a,b){var c=LA();return"auto"!=c?Wt("auto",c,!1):y1(a,b)};
var y1=function(a,b){if(DG(a.X)&&dw(a.X.F,Zv))return Zt;var c;c=!!b.B.o;var d;FG(a.X)&&(d=window.screen&&window.screen.width?new re(window.screen.width,window.screen.height):null);d||(d=a.X.yd?a.X.yd.clone():a.o.Ma());(BG||IM||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.B.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType&&(f*=.5);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*f<c.width&&e.height*f<c.height);k++);e=Wt("auto",e.quality,!1)}else e=Zt;c=e.o;rt()&&(c=Math.max(c,
qr.hd1080));if(d=(mt("armv7")||mt("android"))&&!DG(a.X))d=b.B.videoInfos[0],d="9"==d.B||"("==d.B;d&&(c=Math.min(c,qr.large));c=Math.max(c,qr.medium);e.o!=c&&(e=new Vt(e.A,c,e.B));return e};
var tea=function(a){this.C=this.o=window.NaN;this.A=this.B=!1;this.D=!!a};
var z1=function(a,b){a.o=b;a.B=!0};
var wy=function(a,b,c,d){var e=1<d;e&&(a.A=!0);if(a.B)b!=a.o&&(a.B=!1);else if(0<b&&a.o==b)return c-a.C>(e||!a.A?1500:400);a.o=b;a.C=c;return a.D&&a.A&&0>=d};
var A1=function(){H.call(this);this.A=null};
var B1=function(a,b){var c="";b&&(C1(a,b),c=vv(b));a.o.src&&""==c||(c&&a.o.src!=c&&(a.o.src=c),b&&b.o||a.load())};
var D1=function(a){a.o.ended&&E1(a,0);if(!a.o.src&&a.A){var b=vv(a.A);a.o.src=b;a.A.o||a.load()}a.play();F1&&7<=Kw&&Ql(a,"playing",A(function(){Ai(A(this.C,this,this.getCurrentTime(),0),500)},a))};
var C1=function(a,b){a.A&&a.A.equals(b)||(a.A&&a.A.dispose(),a.A=b)};
var uy=function(a){return ly(G1(a),a.getCurrentTime())};
var E1=function(a,b){0<a.o.readyState&&(F1&&4>Kw&&(b=Math.max(.1,b)),a.o.currentTime=b)};
var H1=function(a){a.o.src&&(Sv&&0<a.getCurrentTime()&&E1(a,0),a.o.removeAttribute("src"),a.load(),a.A&&a.A.o&&C1(a,null))};
var I1=function(a){var b=G1(a);return 0<ky(b)&&a.o.duration?jy(b,a.getCurrentTime()):0};
var uea=function(a,b,c){this.target=a;this.type=b;this.o=c||null};
var J1=function(a){A1.call(this);this.o=a;this.B={}};
var G1=function(a){return a.o.buffered||gy()};
var vea=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};
var K1=function(){this.endTime=this.startTime=-1;this.$j="-";this.playbackRate=1;this.visibilityState=0;this.Xj=""};
var wea=function(a,b,c,d,e,f,k,l,m){this.o=a;this.A=b;this.D=c;this.F=d;this.B=e;this.G=f;this.K=k;this.J=l;this.H=m||function(){};
this.C=-1};
var WA=function(a){var b=$s();0>a.C&&(a.C=b);return Math.round(b-a.C)/1E3};
var YA=function(a){var b=a.D();a=a.o;var c={};a.A&&(c.fmt=a.A.id,a.F&&a.F.id!=a.A.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.Ih&&(c.infringe=1);a.Xf&&(c.splay=1);a.Fa&&(c.live=a.Ed?"dvr":"live");a.xf&&(c.autoplay=1);a.pe&&(c.sdetail=a.pe);a.V&&(c.partnerid=a.V);a.osid&&(c.osid=a.osid);qa(b,c);return b};
var BA=function(a){var b=new K1;b.$j=a.D().cc||"-";var c=a.A;b.playbackRate=c.sc&&c.sc.playbackRate||1;c=hH(a.A);0!=c&&(b.visibilityState=c);a=a.J();a.Hb&&a.Hb.id&&"und"!=a.Hb.id&&(b.Xj=a.Hb.id);return b};
var L1=function(a,b){this.A=this.B=0;this.X=a;this.D=b;this.o=window.NaN};
var M1=function(a,b){this.state=a;this.o=b};
var eB=function(a,b){return T(a.state,b)&&!T(a.o,b)?1:!T(a.state,b)&&T(a.o,b)?-1:0};
var N1=function(a,b,c,d,e){Rj.call(this);this.Ea=new tea(a.experiments.ka("html5_always_underrun_on_empty_buffer"));this.H=c;this.La=d;this.F=new Wz(A(this.getCurrentTime,this),A(this.fD,this),A(this.getPlayerState,this),A(this.Za,this),e,a.experiments.ka("new_cue_range_behavior"));G(this,this.F);this.ia=window.NaN;this.M=this.G=null;this.X=a;this.ma=new sea(a,this.La);this.K=!1;this.J=this.D=null;this.Z=[];this.da=new Y_;this.U=new Y_;this.ob=this.Ga=!1;this.Ia=window.NaN;this.C=new qy;this.na=[];
this.O=b;this.ea=this.ha=null;this.L=window.NaN;this.fa=new zv;G(this,this.fa);this.o=new Aw;this.A=this.aa=null;this.va=window.NaN;this.B=null;this.bb=this.ib=!1;this.qa=0;this.Ua=this.$a=this.ab=this.Ca=!1;this.V=this.Y=null;this.rb=a.experiments.ka("html5_latch_for_seeking_on_event")};
var O1=function(a){Fu()?Hu(a.qa):Di(a.qa)};
var P1=function(a){if(a.B){var b=a.B;if(!b.isDisposed()&&b.C){b.F="paused";var c=$A(b);c.fa=!0;c.send();c=b.B;"PL"==c.A&&(c.A="N");var d=WA(c.o);NA(c,d,"vps",[c.A]);c.Sg(d);Di(b.D);b.dispose()}Nb(a.B);a.B=null}};
var Q1=function(a){return a.A?a.A.la():null};
var R1=function(a){if(cx(a.o))return!0;tJ(a,"api.invalidparam");return!1};
var S1=function(a,b){a.Ga=!!b;R1(a)&&!a.da.A&&(a.da.start(),a.B&&a.B.Of(),a.Kn())};
var T1=function(a){a.A&&B1(a.A);S1(a);R1(a)&&!T(a.C,128)&&(a.U.A||(a.U.start(),U1(a,yy(a.C,8)),ex(a.o)||U1(a,yy(a.C,1))),V1(a))};
var V1=function(a){a.isDisposed();if(!a.U.o&&a.da.o&&!T(a.C,128)&&!a.Z.length&&(a.F.H||a.F.Of(),!GH(a))){if(a.D){var b=a.D;a.ob=!!b.O&&!!b.U}a.U.o=!0;a.o.Fa&&(W1(a,window.Infinity,!0),X1(a,!0),a.X.experiments.ka("html5_live_background_seek_to_head")&&3==hH(a.X)&&(a.bb=!0));a.B&&(b=a.B,b.o.o.enableCardio&&b.o.o.enableCardioBeforePlayback&&(b.Xi("connected"),gB(b)));a.R("playbackready",a)}};
var Y1=function(a,b,c,d){a.o.A=c;a.o.F=d||c;if(a.B){var e=a.o,f=y1(a.ma,e),e=eb(e.B.videoInfos,A(f.C,f)),e=new w1(c,b,e?e.id:"");d&&"i"==b&&Z1(a,b,d);d=a.B.B;c=WA(d.o);NA(d,c,"vfs",[e.o.id,e.A,d.Y,e.reason]);d.Y=e.o.id;e=d.o.K();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),NA(d,c,"view",e));NA(d,c,"vps",[d.A]);d.Sg(c)}a.R("internalvideoformatchange",a.o,"m"==b)};
var Z1=function(a,b,c){a.o.F=c;if(a.B){var d=a.B.B;c=new w1(c,b,"");var e=WA(d.o);c.o.id!=d.K&&(NA(d,e,"afs",[c.o.id,d.K,c.reason]),d.K=c.o.id)}"i"!=b&&a.R("internalaudioformatchange",a.o,"m"==b)};
var tJ=function(a,b,c,d){var e,f;Vb(xea,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||P(e),messageKey:e};U1(a,vy(a.C,128,b));O1(a);$1(a);a2(a)};
var GH=function(a){return!!a.Z.length||0<Sz(a.F.o,-0x8000000000000).length};
var b2=function(a,b){var c=new J1(b);a.A&&c2(a);a.A=c;yea(a);a.X.experiments.ka("html5_crossorigin_video")&&a.A.o.setAttribute("crossorigin","anonymous")};
var c2=function(a){a.J=null;a.D&&(V0(a.D),a.D.K=!0);a.A&&(a.B&&a.da.A&&T(a.C,64)&&!a.o.Be&&d2(a),e2(a),Bv(a.fa),H1(a.A),a.A=null)};
var f2=function(a){if(!T(a.C,128)&&(T1(a),T(a.C,64)&&U1(a,yy(a.C,8)),a.U.o&&a.A))if(a.o.B){if(a.o.Fa){var b=a.getCurrentTime()<bx(a.o),c=gx(a.o)&&T(a.C,4);(b||c)&&W1(a,window.Infinity,!0);g2(a)?X1(a,!0):a.K&&W1(a,window.Infinity,!0)}if(a.o.B.o)b=h2(a),a.D.resume();else{$1(a);var b=a.o.Ff.A(),c=a.o,d={};c.Z&&(d.ptk=c.Z,d.oid=c.zd,d.ptchn=c.yd,d.pltype=c.Bd);qa(b.A,d);c=a.X.A;qa(b.A,{c:c.c,cver:c.cver})}(c=a.A.A)&&c.equals(b)?D1(a.A):zea(a,b)}else tJ(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")};
var nH=function(a){e2(a);$1(a);h2(a)};
var i2=function(a){if(a.o.B){var b=j2(a)||Zt;a=$d(a.o.B.videoInfos,A(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};
var k2=function(a){return Yt(Yt(wH(a.ma,a.o),x1(a.ma,a.o)),j2(a))};
var j2=function(a){return a.o.nk?Zt:a.G?a.G.C:Sw(a.o)&&a.o.B.o&&at(a.o.o)?s1:Zt};
var l2=function(a,b,c){if(!a.isDisposed()&&!T(a.C,128)&&(c&&(a.o.$g=c),Sw(a.o))){"m"==b&&c&&Xt(c)&&(b="a");var d=k2(a);if(a.o.B.o)"i"!=b&&S0(a.D,d,b,!1);else{c=a.o;a:{var e=a.o.O;if(d.o){for(var f=0;f<e.length;f++){var k=e[f].hc,l=qr[k.video.quality];if((!d.B||"auto"!=k.video.quality)&&l<=d.o){d=e[f];break a}}d=e[e.length-1]}else d=e[0]}c.Ff=d;Y1(a,b,a.o.Ff.hc)}a.Za()&&f2(a)}};
var m2=function(a){jt(a.o.o,{c:a.X.A.c,cver:a.X.A.cver});var b=a.X,c=a.o,d=new BI;if(qt()||b.experiments.Z)d.V=!0;qt()&&(d.S=-1);nt()&&(d.B=240);uc&&(d.L=41943040);if(DG(b)||!Jv()){var e=b.experiments;d.C=8388608;d.D=524288;d.K=2097152;d.F=1048576;d.ma=1.5;d.ha=15;d.J=!Jv();d.Da=!1;pt()&&!e.V&&(d.H=625E3);ot()&&(d.H=75E4)}rt()&&(d.C=20971520,d.D=1572864,d.H=812500,d.G=1E3);b.experiments.M&&(d.H=window.NaN);d.Ea=b.K;e=c.pl;c.yf&&e--;!c.isLowLatencyLiveStream&&b.experiments.ka("html5_live_disable_dg_pacing")&&
e++;d.liveChunkReadahead=Math.max(0,e);d.Ta=nt()&&ix(c);var e=b.experiments.Bc("dash_html5_refresh_mapping_interval"),f=b.experiments.Bc("dash_html5_refresh_mapping_min_buffer");e&&(d.O=e);f&&(d.fa=f);if(e=b.experiments.Bc("html5_deadzone_multiplier"))d.o*=e,d.A*=e;if(e=b.experiments.Bc("html5_request_sizing_multiplier"))d.na=e;b.experiments.ka("html5_use_average_bitrate")&&(d.U=!0,d.o*=1.3,d.A*=1.3);b.experiments.ka("html5_use_average_bitrate_if_healthy")&&(d.qa=!0,d.o*=1.3,d.A*=1.3);c.Fa&&b.experiments.ka("html5_live_lower_max_health_buffer_for_downgrade")&&
(d.aa=3);b.experiments.ka("html5_strip_emsg")&&(d.ia=!0);a.D=new M0(a.ha,d,a.o.o,a.o.B);a.D.subscribe("initsegment",a.Gz,a);a.D.subscribe("videoformatchange",a.Qz,a);a.D.subscribe("audioformatchange",a.Pz,a);a.D.subscribe("error",a.sj,a);a.D.subscribe("seekrequired",a.aC,a);b=jb(a.Z,"spacecast")||a.Ga;c=a.Dm();c=c.Hb.isDefault?void 0:c;a.D.initialize(a.o.startSeconds,k2(a),b,c);a.o.probeUrl&&(a.D.V=a.o.probeUrl);if(a.Z.length||a.Ga)a.D.K=!0;a.Ga&&d2(a);a.X.experiments.Bc("html5_dropped_frames_abr")&&
(a.V=new L1(a.X,A(a.Yx,a)),a=a.V,a.o||(a.o=Ci(A(a.C,a),5E3)))};
var d2=function(a){var b=new M1(new qy(4),a.C);dB(a.B,b)};
var $1=function(a){a.D&&(a.D.dispose(),a.D=null);a.J&&(a.J.dispose(),a.J=null);if(a.V&&a.V){var b=a.V;Ei(b.o);b.o=window.NaN;a.V=null}};
var h2=function(a){a.J||(a.D?a.D.seek(a.getCurrentTime()):m2(a),a.J=new Cv(a.A.la(),a.o.lengthSeconds,a.o.B.videoInfos[0].mimeType,a.o.B.o[0].mimeType,a.X.K),Dv(a.J,A(a.D.ev,a.D)),Ev(a.J,A(function(){tJ(this,"fmt.unplayable",void 0,"msi.1")},a)));
try{return Fv(a.J)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),tJ(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}};
var a2=function(a){a.A&&(a.A.pause(),e2(a),a.X.experiments.ka("dash_html5_release_loader")?$1(a):a.J&&(a.J.dispose(),a.J=null),a.o&&(a.o.startSeconds=a.getCurrentTime()),a.L=window.NaN,H1(a.A),T(a.C,128)||U1(a,vy(a.C)))};
var W1=function(a,b,c,d){if(a.A&&a.U.o){b=ke(b||0,bx(a.o),n2(a,!1));var e=a.o.Fa&&!T(a.C,4)&&g2(a,b);X1(a,e);a.o.startSeconds=b;a.L=b;z1(a.Ea,b);c?a.sr():(T(a.C,32)||(U1(a,yy(a.C,32)),T(a.C,8)&&a.pauseVideo(!0),a.R("beginseeking",a)),d&&(a.ea||(a.ea=new Ud(a.sr,d,a)),a.ea.start()),o2(a,!0));a.M&&b>a.o.cf&&(a.F.gh(a.M),a.M=null);b<a.Yf()&&U1(a,zy(a.C,2));a.R("seekto",a,b)}else a.o.startSeconds=b||0};
var Aea=function(a){if(!a.A)return 0;if(gx(a.o))return 1;if(hx(a.o)){if(a.K)return 1;var b=a.A,c=G1(b),b=(0<ky(c)&&b.o.duration?c.end(c.length-1):0)-bx(a.o);a=n2(a,!0)-bx(a.o);return Math.max(0,Math.min(1,b/a))}a=a.A;b=a.o.duration;return window.Infinity==b?1:b?I1(a)/b:0};
var p2=function(a,b){var c={};if(b){a.B?qa(c,SA(XA(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:hy(d.o.played||gy()),vbu:hy(G1(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.D.toFixed(3),lsk:d.M,lmf:d.F.o.isLocked(),lbw:TJ(d.J).toFixed(3),lhd:RJ(d.J).toFixed(3),ltd:(1E9*
SJ(d.J)).toFixed(3),laa:d.A.C?$r(d.A.C):"",lva:d.B.C?$r(d.B.C):"",lar:d.A.A?$r(d.A.A):"",lvr:d.B.A?$r(d.B.A):"",lvh:g1(d)};d.o&&!Hv(d.o)&&(e.lab=hy(d.o.o.buffered),e.lvb=hy(d.o.A.buffered));qa(c,e)}c.state=a.C.A.toString(16);T(a.C,128)&&(c.debug_error=a.C.o);GH(a)&&(c.preroll="1");a.o.hh&&(c.ismb=a.o.hh);a.o.isLowLatencyLiveStream&&(c.lowlatency="1");a.o.Fa&&a.o.o&&(0,window.isFinite)(a.o.o.A)&&(c.mpdrefresh=a.o.o.A/1E3)}c.debug_videoId=a.o.videoId;return c};
var q2=function(a,b){a.R("internalvideodatachange",b||"dataupdated",a,a.o)};
var yea=function(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){S(this.fa,this.A,a,this.hD,this)},a);
a.X.ac&&(S(a.fa,a.A,"webkitplaybacktargetavailabilitychanged",a.ky,a),S(a.fa,a.A,"webkitcurrentplaybacktargetiswirelesschanged",a.ly,a))};
var r2=function(a){var b=a.getCurrentTime(),c=a.o;!cv("pbs",a.H.o)&&jv.measure&&jv.getEntriesByName&&(jv.getEntriesByName("mark_navigation_requested")[0]?jv.measure("measure_above_the_fold","mark_navigation_requested"):jv.measure("measure_above_the_fold"));c.videoId&&a.H.info("docid",c.videoId);c.eventId&&a.H.info("ei",c.eventId);c.clientPlaybackNonce&&a.H.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.H.info("start",c.startSeconds.toString());a.A&&a.A.o.paused&&a.H.info("paused",1);c.A?a.H.info("fmt",
c.A.id):a.H.info("fmt","-1");c.$a&&a.H.info("yt_pre",a.ob?"2":"1");a.X.Kg&&a.H.info("yt_fs","1");a.H.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],P0(b,"vri",c.fetchStart),P0(b,"vdns",c.domainLookupEnd),P0(b,"vreq",c.requestStart),P0(b,"fvb",c.responseStart),P0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.O),c.length&&(c=c[0],P0(b,"ari",c.fetchStart),P0(b,"adns",
c.domainLookupEnd),P0(b,"areq",c.requestStart),P0(b,"avb",c.responseStart),P0(b,"arc",c.responseEnd)));var b=b.ia,d;for(d in b)a.H.A(d,b[d])}};
var Bea=function(a){if(a.ia&&a.A){var b=a.A.o.seekable||gy();b.length&&b.end(0)>a.ia&&(a.A.o.currentTime=a.ia,a.ia=window.NaN,a.Qa=S(a.fa,a.A,"canplay",a.lz,a))}};
var o2=function(a,b){if(a.A&&a.o){var c=a.getCurrentTime();if(c<bx(a.o))W1(a,n2(a,!1),!0);else{if(a.K){var d=n2(a,!1);if(c<d-N1.A){if(a.o.yf||gx(a.o)&&a.X.experiments.ka("html5_live_only_stick_to_head")){W1(a,d,!0);return}a.o.Fa&&X1(a,!1)}}if(a.D&&(d=a.D,d.o)){d.resume();if(d.M&&!Hv(d.o)){var e=d.D<=c&&c<d.D+10,f=0<=iy(d.o.A.buffered,d.D+M0.o);e&&f&&(d.M=!1)}d.M||(d.D=c);a1(d)}5<c&&(a.o.startSeconds=c);(d=Fu())?Hu(a.qa):Di(a.qa);!Cy(a.C)&&a.A.o.paused||T(a.C,128)||(e=A(a.Bw,a),a.qa=0==(a.A.o.played||
gy()).length?d?Gu(e,100):Ai(e,100):d?Gu(e,500):Ai(e,500));a.o.pj=c;!b&&a.Za()&&a.B&&(c=a.B,c.A.update(),ex(c.o.o)&&c.o.o.Se&&!c.M&&DA(c.A)>=c.o.o.Se&&(c.C&&c.o.o.Se&&(d=XA(c,"delayplay"),d.Ca=!0,d.send(),c.M=!0),aB(c)),d=c.V,d.C||!d.o.ub||d.o.ne||!d.A.lengthSeconds?d=!1:(e=Math.min(.8*d.A.lengthSeconds,180),d=DA(d.D)>=e),d&&c.V.send());a.R("progresssync",a,b)}}};
var U1=function(a,b){var c=a.C;if(b.A!=c.A||b.o!=c.o){c=new M1(b,a.C);a.C=b;var d=!a.na.length;a.na.push(c);0>eB(c,8)&&(Di(a.va),X1(a,!1));0<eB(c,32)&&X1(a,!1);if(T(c.state,2)&&hx(a.o)){var e=a.getCurrentTime();a.o.lengthSeconds!=e&&(a.o.lengthSeconds=e,q2(a));o2(a,!0)}0<eB(c,2)&&a.Ml();a.B&&dB(a.B,c);if(d)try{for(d=0;d<a.na.length;d++){var c=a.na[d],f=a.F,e=c;if(f.H&&!f.K)if(f.B)f.oc(),T(e.o,16)&&$z(f);else if(f.D.stop(),T(e.state,2)){f.G=null;for(var e=[],k=0;k<f.A.length;k++){var l=f.A[k];l.active&&
0x8000000000000>l.end&&e.push(l)}var m=Sz(f.o,0x7ffffffffffff),m=m.concat(Tz(f.o,0x7ffffffffffff)),p=Yz(f,e).concat(Xz(f,m));f.F=!0;Zz(f,p);f.F=!1;f.J&&f.oc()}else T(e.state,16)?(f.C=bA(f),f.L.start(),f.oc()):(f.L.stop(),T(e.o,16)?(f.C=bA(f),$z(f)):f.oc());a.R("statechange",c)}}finally{a.na.length=0}}};
var s2=function(a){T(a.C,2)||T(a.C,32)||(a.L=window.NaN)};
var X1=function(a,b){a.o.Fa&&a.K!=b&&(a.K=b,a.R("liveviewshift",b))};
var zea=function(a,b){Cea(a,b);a.X.gg?Ai(A(function(){D1(this.A)},a),0):D1(a.A)};
var Cea=function(a,b){a.H.A("vta");B1(a.A,b);if(Zw(a.o)&&Zw(a.o)&&!a.G&&a.A){var c=a.o.J;if(c){var d=a.A.la();a.G=new r1(d,c);a.G.subscribe("newsession",a.cA,a);a.G.subscribe("licenseerror",a.Iz,a);a.G.subscribe("qualitychange",a.Jz,a);a.G.subscribe("heartbeatparams",a.gD,a);c=a.G;d=a.o.oauthToken;c.H=d;c.R("oauthtoken",d);G(a,a.G)}else tJ(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.J&&Ku();Di(a.va);a.o.Be||(a.va=Ai(A(a.Nz,a),15E3))};
var e2=function(a){a.G&&(a.G.dispose(),a.G=null)};
var n2=function(a,b){if(!a.A)return 0;if(!a.o.Fa){var c=a.o;return c.o&&!(0,window.isNaN)(ht(c.o))?ht(c.o):c.lengthSeconds}if(b&&(a.K||gx(a.o)))return a.getCurrentTime();if(a.D)return c=e1(a.D),Math.max(Math.max(c,bx(a.o)),a.getCurrentTime())||0;c=a.A.o.seekable||gy();return(1>c.length?window.NaN:c.end(c.length-1))||0};
var g2=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=n2(a,!1)-N1.o};
var t2=function(a,b){this.o=a;this.A=fa(b)?b:null;if(jb(u2,this.o)){if(!fa(this.A)||0>this.A)throw Error("Must have valid offset");}else if(null!==this.A)throw Error("Must not have offset");};
var v2=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}};
var Dea=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,f=b.A;return e!=f?null===e?1:null===f?-1:e-f:c-d};
var w2=function(a,b){return"9t_D9IIh_ZI"==b.ia||x2(a,["9418752","9418753"])};
var y2=function(a,b){return jb(a.experiments.experimentIds,b)};
var x2=function(a,b){return Ih(b,pa(jb,a.experiments.experimentIds))};
var z2=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
var A2=function(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=La(c||"",50),b.error_message=d)}};
var B2=function(a,b){if(a){var c=eU(a).reverse();b.ad_id=sb(c,dU(a)).join(",");c=gU(a).reverse();b.ad_sys=sb(c,XT(a)).join(",");c=hU(a);null!=c&&(b.aqi=c)}};
var C2=function(a,b){if(a[b])return z2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return z2(a[d]);return!1};
var D2=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};
var E2=function(a,b,c){var d=new rL;d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.U;d.showContentThumbnail=a.showContentThumbnail;d.Df={};c.ea&&(d.Df.ctrl=c.ea);c.fa&&(d.Df.ytr=c.fa);c.ha&&(d.Df.ytrcc=c.ha);c.isMdxPlayback&&(d.Df.mdx="1");a.Da?(d.Uj=!0,d.Hv=!0,d.showContentThumbnail=!1,d.im=!0,d.jm=!0,d.useShareButton=!1):a.C&&(d.Uj=!0);return d};
var F2=function(a){var b=new LW;b.F=a.A.Ga;var c=a.app.F.Ma();b.nf=c.width;b.mf=c.height;b.Hc=c.width;b.Gc=100;b.Pn=RG(a.W());b.G=a.W().experiments.experimentIds;b.Dc=A(a.W().experiments.ka,a.W().experiments);b.ii=A(a.W().experiments.Bc,a.W().experiments);b.Bk=A(a.W().experiments.J,a.W().experiments);b.Pn?(a.W(),c=RA()):c=-1;c&&(b.H=c);a.A.tagForChildDirected&&(b.pi=!0);if(y2(a.W(),"9415521")||a.A.ub)b.ri=!0;c=G2(a);b.xb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Eea(a),VIS:Fea(a)};RG(a.W())||
(b.xb.LACT="-1");b.afcRmFallback=a.A.J;y2(a.W(),"9417581")&&(b.D="yt_"+G2(a).videoId);return b};
var Eea=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;a.W();return RA().toString()}}};
var Fea=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:hH(a.W()).toString()}}};
var H2=function(a,b,c,d){this.A=this.B="";this.C=a;this.F=b;this.o=c;this.D=d};
var I2=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.C.o;b.sst=v2(a.C);b.sidx=0;a.B&&(b.at=a.B);a.A&&(b.ad_id=a.A);return b};
var J2=function(){var a=t("yt.www.watch.ads.loadAfc");ha(a)?a():K2=!0};
var L2=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"};
var M2=function(){var a=t("window.google_show_companion_ad"),b;b=t("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=Boolean(b&&b.length)):b=!1;b?a():N2=!0};
var O2=function(){var a=t("yt.www.watch.ads.setCompanion");a&&a()};
var Gea=function(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)};
var P2=function(a,b,c,d){Rj.call(this);this.D=!!b;this.G=a;this.A=c||a;this.J=!!d;this.o=new zv(this);this.C=this.H=null;this.F=this.B=!1;b&&(xc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));Q2(this)};
var Q2=function(a){a.C=null;a.H=null;S(a.o,a.A,R2("over"),a.ir);S(a.o,a.A,"touchstart",a.zm);a.D&&S(a.o,a.A,R2("down"),a.Ux)};
var S2=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};
var R2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
var T2=function(a,b){this.A=a;this.o=b};
var U2=function(a){return a.o-a.A};
var V2=function(a,b){return a.A+b*U2(a)};
var W2=function(a,b,c){return U2(a)?ke((b-a.A)/U2(a),0,1):null!=c?c:window.Infinity};
var X2=function(){this.A=this.position=this.C=this.o=this.D=this.B=this.width=window.NaN};
var Y2=function(a,b,c,d,e){var f=b.cp/b.rows,k=Math.min(c/(b.fp/b.Fb),d/f),l=b.fp*k,m=b.cp*k,l=Math.floor(l/b.Fb)*b.Fb,m=Math.floor(m/b.rows)*b.rows,p=l/b.Fb,u=m/b.rows,v=-b.yv*p,z=-b.row*u;e&&45>=f&&(u-=1/k);a=a.style;a.width=p+"px";a.height=u+"px";e||(d=(d-u)/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+") "+v+"px "+z+"px/"+l+"px "+m+"px";if(e)return new re(p,u)};
var Hea=function(){this.B=!1;this.A=0;this.o=""};
var Z2=function(a,b,c,d){Rj.call(this);this.o=a;this.A=d;this.C=null;this.adType=c;this.adSystem=b};
var Iea=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=w;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0};
var Jea=function(a){this.o=a};
var Kea=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};
var $2=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}};
var Lea=function(a,b){this.D=null;this.B=window.NaN;this.A=null;this.o=a;this.C=b};
var a3=function(a,b,c){a.o.R("AD_LOGGING_EVENT",b,c)};
var b3=function(a,b,c){c3(a);var d=d3(a);c&&qa(d,c);d.ad_error=b;a3(a,7,d)};
var d3=function(a){var b={},c=a.o.C,d=a.o.D.Yf(),e=e3(a.o);B2(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=Lg(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.$c();b.at=a.o.hf();b.ad_mt=Math.round(1E3*Math.max(Mea(a.o),0));return b};
var c3=function(a){a.D||(a.D="InstreamAdDisplay ("+a.o.$c()+")")};
var f3=function(a,b){F.call(this);this.C=Math.max(0,a);this.B=this.A=0;this.D=b;this.o=window.NaN};
var g3=function(a,b,c,d,e,f){Z2.call(this,b,a,2,c);this.L=!1;this.H=this.V=this.M=null;this.o.subscribe("control_toggle_play_pause",this.bs,this);this.o.subscribe("control_play",this.Fl,this);this.o.subscribe("control_pause",this.El,this);this.F=new Lea(this,this.o);this.B=new zz(this);this.D=h3(b);this.D.subscribe("statechange",this.Xc,this);this.D.subscribe("internalAbandon",this.gp,this);this.D.subscribe("internalvideodatachange",this.$r,this);this.G=this.J=!1;this.U=d;this.O=!!e;this.Y=!!f;this.K=
new f3(1E3*g3.o,A(this.Cj,this))};
var i3=function(a,b){var c=a.o.W();if(a.o.A.U&&"3"==c.B){var c=a.o.app.F,d=c.app.W();FG(d);"3"==d.B&&(c.A.controls=b)}};
var j3=function(a){var b=new Hea;b.B=a.G;b.A=I();a.C&&a.C.clientPlaybackNonce&&(b.o=a.C.clientPlaybackNonce);a2(h3(a.o));k3(a.o,0,b);l3(a.o,0);a.R("adEnd",a);i3(a,!0)};
var m3=function(a,b){a.D.Kf();k3(a.o,0);a.R("adError",b)};
var n3=function(a){return a.C&&a.C.A?a.C.A.mimeType:null};
var e3=function(a){return a.C&&a.C.Ff?vv(a.C.Ff.A()):null};
var Mea=function(a){return a.D?a.D.getCurrentTime():0};
var Nea=function(a,b){this.o=a;this.D=b;this.o.$c();this.A=this.C=0;this.B=null};
var o3=function(a,b,c){a.o.R("AD_LOGGING_EVENT",b,c)};
var p3=function(a){var b={};B2(a.o.getCurrentAd(),b);a.C&&a.A&&(b.ot=a.A-a.C);var c;c=a.D.Ja()?2:a.D.app.na?1:0;b.ad_ps=c;b.format=a.o.$c();b.at=a.o.hf();return b};
var q3=function(a,b,c,d){Z2.call(this,b,a,1,c);this.B=null;this.G=!1;this.J=null;this.F=new Nea(this,b);this.D=new zz(this);this.H=!!d};
var r3=function(a,b){a.J!=b&&(a.J=b)};
var s3=function(a,b,c,d){F.call(this);this.M=null;this.V=a;this.A=b.Sa;this.H=b;this.K=b.getId();this.o=c;this.F=d;this.B=new H2(this.A,this.fg(),c,d);this.D=null;this.O=new Cm(this);this.C=new Cm(this);this.S=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
var t3=function(a){var b=new t2(2,s3.A);a.A=b;a.B.C=b};
var u3=function(a,b){a.M=b;var c=b.$c();a.B.B=c};
var v3=function(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.B.A=b};
var w3=function(a){a=v2(a.A);return 0==a||-1==a?a:1E3*a};
var x3=function(a){var b=a.o.W();y2(b,"9417098")&&(a=a.B,b=I2(a),b.format="2_3",b.at="2_3",b.trsp="1",y3(a.o,3,b));M2()};
var z3=function(a){var b=a.H,c=a.A;b.o=a.M;b.Sa=c;G(b,b.o);0==b.F&&(a=b.o.hf(),b.B.fa.at=a);b.o instanceof g3?b.A=!0:b.o instanceof A3?b.isVisible=!1:b.o instanceof B3?b.isVisible=!1:b.o instanceof C3&&(b.isVisible=!1);b.C="loaded";D3(b)};
var Oea=function(a){this.o=a};
var A3=function(a){Z2.call(this,a,2,3,null);this.B=this.D=0};
var E3=function(a){a.D&&(Ei(a.D),a.B=0)};
var F3=function(a,b,c){s3.call(this,2,a,b,c);this.G=new Oea(this.o.A);L2()};
var G3=function(a,b,c){this.A=this.F="";this.H=null;this.C=!1;this.D=this.B="";a&&(this.F=a,this.C=b.ob,this.G=c,b=this.F,c=b.indexOf(";sz="),a=mj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{ov:b[0],OB:b[1],RB:a})&&(this.B=a.ov,this.D=a.OB,this.H=a.RB)};
var H3=function(a){this.A=a?a:""};
var C3=function(a,b,c,d){q3.call(this,1,a,b,d);this.K=c};
var I3=function(a,b,c){s3.call(this,1,a,b,c);a=this.o.A;this.U=a.ea?new H3(a.adTag):new G3(a.adTag,a,this.K)};
var J3=function(a,b,c,d){I3.call(this,a,b,c|d);this.L=c;this.J=d;this.G=null;L2()};
var K3=function(a,b){var c=b.getCurrentAd(),d=gU(c);d.unshift(XT(c));for(c=0;c<d.length;++c){var e=Pea[d[c].toUpperCase()];if(e){a.G=e;return}}a.G=0};
var L3=function(a,b){this.D=[];this.M=a;this.L=b||null;this.C=this.o=!1;this.B=void 0;this.J=this.S=this.G=!1;this.F=0;this.A=null;this.H=0};
var M3=function(a,b,c){a.o=!0;a.B=c;a.C=!b;N3(a)};
var O3=function(a){if(a.o){if(!a.J)throw new P3;a.J=!1}};
var Q3=function(a,b,c){R3(a,b,null,c)};
var R3=function(a,b,c,d){a.D.push([b,c,d]);a.o&&N3(a)};
var S3=function(a){return Ih(a.D,function(a){return ha(a[1])})};
var N3=function(a){if(a.F&&a.o&&S3(a)){var b=a.F,c=T3[b];c&&(r.clearTimeout(c.ji),delete T3[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(),f=e[0],k=e[1],e=e[2];if(f=a.C?k:f)try{var l=f.call(e||a.L,b);n(l)&&(a.C=a.C&&(l==b||l instanceof Error),a.B=b=l);if(wd(b)||"function"===typeof r.Promise&&b instanceof r.Promise)d=!0,a.G=!0}catch(m){b=m,a.C=!0,S3(a)||(c=!0)}}a.B=b;d&&(l=A(a.K,a,!0),d=A(a.K,a,!1),b instanceof L3?(R3(b,l,d),b.S=!0):b.then(l,d));c&&(b=
new U3(b),T3[b.ji]=b,a.F=b.ji)};
var P3=function(){sa.call(this)};
var V3=function(){sa.call(this)};
var U3=function(a){this.ji=r.setTimeout(A(this.A,this),0);this.o=a};
var W3=function(a,b){var c=b.A;this.G=c.na;var d=0,c=c.Y.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);s3.call(this,2,a,b,d)};
var X3=function(a,b){Z2.call(this,a,14,14,b)};
var Y3=function(a,b,c){s3.call(this,14,a,b,c)};
var Z3=function(a,b,c){s3.call(this,14,a,b,c)};
var Qea=function(a,b,c,d,e){this.C=a;this.B=b;this.o=c;this.X=this.C.W();this.D=d;this.G=G2(this.C).lengthSeconds;this.F=e;this.A="html5";$3(this)&&"embedded"==this.X.Ba?this.A="html5_embed":BG||Jw?this.A="html5_ios":mt("android")?this.A="html5_android":ut()?this.A="html5_wp":ot()?this.A="html5_ps3":"leanback"==this.X.Ba?(a=(Yb(window,"environment","brand")||"").toLowerCase(),b=(Yb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
tt()?this.A="html5_wii":$3(this)&&(this.A="html5_desktop")};
var a4=function(a){return b4(a.B)?"preroll":3==a.B.Sa.o?"postroll":"midroll"};
var c4=function(a){return(a=a.C.B)?Ih(a.B,function(a){return d4(a)||3==a.Sa.o}):!1};
var $3=function(a){return!c4(a)||w2(a.X,a.o)};
var B3=function(a,b){q3.call(this,4,a,b)};
var e4=function(a,b,c){s3.call(this,4,a,b,c);var d=this.o.A;this.G=D(d.Ua);var e=G2(this.o)&&G2(this.o).spacecastModule;this.J=new Qea(b,a,d,c,!!e)};
var f4=function(a,b,c){this.B=a;this.o=b;this.A=c||0};
var Rea=function(a){return 0<((a.o|a.A)&3)};
var g4=function(a,b,c,d,e){Rj.call(this);this.H=!0;this.A=!1;this.isVisible=!0;this.C="unloaded";this.J=!1;this.F=b;this.B=a;this.Sa=c;this.G=d;this.D=this.o=null;this.K=!!e};
var h4=function(a){return b4(a)?i4(a)&&j4(a)?-0x8000000000000:0:fa(a.Sa.A)?1E3*v2(a.Sa):0x8000000000000};
var Sea=function(a){return b4(a)||a.B.o&&1E3*a.B.o.getCurrentTime()>=h4(a)?!1:Gg(a.G,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};
var i4=function(a){return"loaded"==a.C||"error"==a.C};
var b4=function(a){return 1==a.Sa.o};
var j4=function(a){if(!i4(a))throw Error("Preroll status is undefined before ad load.");return b4(a)&&a.A};
var d4=function(a){return 2==a.Sa.o};
var k4=function(a){a.C="loading";b4(a)&&!Ih(a.G,Rea)&&qq(a.B);if(a.K)a.C="loaded",a.A=!0,D3(a);else{var b=a.G.shift();b?(b4(a)&&l4(a.B,"nl"),b=b.create(a,a.B),G(a,b),b.load()):(y3(a.B,2,m4(a,{})),n4(a,!1),a.C="error",D3(a))}};
var o4=function(a){a.o&&(a.o.unsubscribe("adEnd",a.lp,a),a.o.unsubscribe("adError",a.Ur,a),a.o.unsubscribe("AD_LOGGING_EVENT",a.Gp,a),a.o.unsubscribe("select",a.Tr,a))};
var D3=function(a){a.R("adBreakComplete",a)};
var n4=function(a,b){a.D&&(a.D.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.D.dispose(),a.D=null)};
var m4=function(a,b){b.break_type=a.Sa.o;b.sst=v2(a.Sa);b.sidx=0;return b};
var p4=function(a){var b=0;a.L&&(b|=1);a.K&&(b|=2);var c=0;a.D&&(a.G&&(c=4),b||a.V||(b=c,c=0));a=new wg;a.set(3,b);a.set(4,c);return a};
var q4=function(a,b){var c=[];if(a.da)return c.push("pla"==(a.Y||"").toLowerCase()?new f4(8,16):new f4(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.V&&c.push(new f4(7,16)),c;if(a.M){var d=0;if(a.B||a.F)d|=1;a.S&&(d|=4);a.O&&(d|=8);c.push(new f4(5,d))}d=0;a.H&&(a.B&&(d|=1),a.F&&(d|=2),a.S&&a.D&&(d|=4),a.O&&a.D&&(d|=8));var e=p4(a),f=e.get(3);d&&f&&Tea(a,b)?c.push(new f4(3,d,f)):(d&&c.push(new f4(2,d)),f&&c.push(new f4(1,f)));a.independentBreakOffsets||f&4||!a.V||c.push(new f4(7,16));(d=e.get(4))&&
c.push(new f4(1,d));return c};
var r4=function(a){this.o=a};
var s4=function(a){var b=[];E(Uea(a),function(a,d){var e=this.o,f;f=q4(this.o.A,a.o);e=new g4(e,d,a,f);b.push(e)},a);
return b};
var Uea=function(a){var b=a.o.A,c=[];if(b.M&&!w2(a.o.W(),b))c=t4;else if(b.Ta){var d=b.Ta.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new t2(3):0<e?new t2(2,e):new t2(1);c.push(e)}}else c=t4;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new t2(5,Ya(b[a])));Cb(c,Dea);return c};
var Vea=function(a,b){this.X=a;this.Da=this.X.isMobile;this.C="leanback"==this.X.Ba;this.o=this.Da||this.C;this.U=!this.C&&!FG(a);this.B=z2(b.instream);this.Ia=1==b.livestream;this.F=z2(b.trueview);this.aa=z2(b.aftv);this.Ta=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ha=b.cafe_experiment_id;this.adTag=b.ad_tag;this.ib=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.La=Wea(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Ea=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls;this.Qa=b.cid;this.ia=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.Ga=(0,window.parseInt)(b.forced_skip_offset,10);this.Y=b.force_ad_type;this.na=b.force_ad_url;this.Ua=b.freewheel_ad_tag;this.gender=ac(Xea,function(a){return a==b.ad_gender});
this.ma=b.dbp;this.J=z2(b.afc_rm_fallback);this.ob=!!b.mpu;this.G=z2(b.afv)&&!this.o;this.K=this.aa&&this.F;this.L=this.aa&&this.B&&!z2(b.no_afv_instream);this.H=z2(b.dclk);this.ea=z2(b.gpt_migration);this.da=z2(b.forced_ad)&&!this.o;this.M=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.rb=!!b.fqsf;this.S=z2(b.invideo)&&!this.o;this.O=z2(b.mpu)&&!this.o;jb(this.La,"yt_mabv");this.V=!!b.pla;this.$a=z2(b.shortform);this.D=z2(b.sffb);this.va=b.ad_language_iso639_2;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.ab=b.pla_ad_tag;"boolean"==typeof b.show_content_thumbnail&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=z2(b.tag_for_child_directed);this.serverPrefetchedVast=
b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Z=this.aa&&this.D&&!this.G;this.qa=this.G||this.Z;this.bb=(0,window.parseInt)(b.ad_device,10);this.Ca=b.tpas_video_id;this.fa=b.tpas_partner_id;this.vmap=b.vmap;this.Ab=this.X.Ab;this.ub=b.post_ad_requests;this.showContentThumbnail=!0};
var Tea=function(a,b){if(C(D(a.dynamicAllocationAdTag)))return!1;var c=(a.B||a.F)&&a.H;a.D&&a.H&&(c=c||a.S||a.O);if(!c)return!1;c=a.K||a.L;if(!(c||a.D&&a.G))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ea?25:102);window.document.referrer&&(d+=va("ref="+va(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};
var Wea=function(a){if(C(D(a)))return[];a=(new N(a)).o.get("channel");return null!=a?a.split("+"):[]};
var Yea=function(a){this.A=G2(a);this.o=a.W()};
var u4=function(a,b,c){var d=v4,d=null!=d?d:v4;if(x2(a.o,d)){var e=a.o.baseYtUrl+"player_204";c=c||{};c.event="cdp";c["var"]=b;c.sdkv="h.3.0.0";c.cpn=a.A.clientPlaybackNonce;c.exp=$d(d,hd(pa(y2,a.o),pa(jb,v4))).join(",");a=rj(e,c);aq(a)}};
var w4=function(a,b){F.call(this);this.o=a;this.K=b;this.G=a.o.getVideoData();this.B=[];this.D=this.F=this.H=this.C=this.A=0;this.J=!1;var c=a.W().experiments;this.L=c.ka("enable_dynamic_ad_break")&&!!this.G.lengthSeconds&&600<this.G.lengthSeconds;this.M=c.Bc("dynamic_ad_break_pause_threshold_sec")||5;this.O=c.Bc("dynamic_ad_break_seek_threshold_sec")||120;this.L&&this.o.app.subscribe("applicationplayerstatechange",this.Xc,this)};
var x4=function(a){return(a.o.C?a.J:!!a.o.B&&0==a.o.B.B.length)&&1==a.o.getPresentingPlayerType()};
var y4=function(a){a.C&&Di(a.C);a.C=0;a.A=0};
var z4=function(a,b){var c=null!=qj(a.o.W().G).debugjs,d=a.G.videoId,e=a.G.eventId,f=a.A,k;k=a.B.length?a.B[a.B.length-1]:Math.max(a.K.A(),a.F);k=I()/1E3-k-a.D;c=rj("/gen_204?"+Sg({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:I()/1E3,dab:a.B,paet:Math.max(a.K.A(),a.F),debug:c}),{});aq(c)};
var A4=function(a){F.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.Sq()};
var B4=function(a,b){a.D[b]&&(IH(a.o.o,[a.D[b]],void 0),delete a.D[b])};
var C4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.A)||Di(a.A),c=I()+c,a.A=0==d?Eq(A(a.es,a,b,c,100),0):Eq(A(a.ds,a,b,c,100),0))};
var D4=function(a,b,c){var d=a.o.W();a=G2(a.o);b.volume=c*(d.useMediaVolume?Aw.o:a.Hh)};
var E4=function(a){A4.call(this,a)};
var F4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;E(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
var G4=function(a){F.call(this);this.o=a;this.A=window.NaN;this.B={};this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.H=a.fadeInStartMilliseconds;this.J=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.K=1E3*this.o.o.getVideoData().lengthSeconds;this.G=this.C+this.J;this.wn()};
var H4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.K};
var Zea=function(a){a=a.getAttribute("breakType");return!!a&&Ih(a.split(","),function(a){a=Ta(a);return"linear"==a})};
var $ea=function(a,b){if(!H4(a,b))return null;var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=(0,window.parseFloat)(Pa(b/1E3,2,d)),f=Math.floor(e/60),k=Math.floor(f/60),f=f%60,d=Pa(e%60,2,d);c=d=k||c?k+":"+Pa(f,2)+":"+d:f+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c};
var afa=function(a,b){var c=Math.max(Math.abs(a.C),Math.abs(a.G));E(b,A(function(a){var e=Ih(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=bfa(this,a);
if(e||!f)return!1;this.B[f]=a},a));
return 0<Tb(a.B)};
var bfa=function(a,b){var c=1E3*Math.round((b+a.G)/1E3),d=b+a.C,e=b+a.H;return H4(a,b)&&H4(a,c)&&H4(a,d)&&H4(a,e)?c:null};
var I4=function(a,b,c,d){0>=c||(a.A&&Di(a.A),c=I()+c,a.A=0==d?Eq(A(a.os,a,b,c,100),0):Eq(A(a.ms,a,b,c,100),0))};
var J4=function(a,b,c){var d=a.o.W();a=G2(a.o);b.volume=c*(d.useMediaVolume?Aw.o:a.Hh)};
var K4=function(a){G4.call(this,a)};
var L4=function(a,b){var c=a.A,c=c.applyFadeOnMidrolls&&(c.B||c.F);return a.C?c&&!b?new G4(a):new K4(a):c&&!b?new A4(a):new E4(a)};
var M4=function(a,b,c){F.call(this);this.o=a;this.G=b;this.F=c;this.D=this.B=-1;this.F&&0<this.o.A.A&&this.o.subscribe("endseeking",this.C,this)};
var cfa=function(a,b){N4(a);0<b&&(a.D=Ai(A(a.C,a),1E3*b))};
var N4=function(a){-1!=a.D&&(Di(a.D),a.D=-1)};
var O4=function(a,b){if(!a.F||!d4(b)&&3!=b.Sa.o)return!1;var c=a.o.A.A;if(0>=c||0>=a.B)return!1;var d=I()/1E3,e=P4(a,b)-a.o.o.getCurrentTime();0<e&&(d+=e);return d-a.B<=c};
var P4=function(a,b){return 3==b.Sa.o?a.o.o.getVideoData().lengthSeconds:v2(b.Sa)};
var Q4=function(a,b){F.call(this);this.A=null;this.O=[];this.L=0;this.B=b;this.J=[];this.C={};this.G={};this.o=a;var c=!a.A.Ia&&Ih(this.B,function(a){return d4(a)||3==a.Sa.o});
this.D=new M4(this.o,this,c);this.F=L4(this.o);this.ea=new w4(this.o,this.D);this.Y=Ih(this.B,function(a){return b4(a)})};
var dfa=function(a){a.J.length||(a.J=$d(a.B,function(a){return"unloaded"==a.C}),0==a.J.length?qq(a.o):(a.Y||qq(a.o),R4(a)))};
var R4=function(a){if(a.J.length){var b=a.J.shift();b.subscribe("adBreakComplete",a.Cf,a);k4(b)}};
var efa=function(a,b){function c(a){return a&&5!=a.Sa.o}
var d=kb(a.B,b),e=wb(a.B,0,d),d=wb(a.B,d+1);return{previous:eb(e,c),next:eb(d,c)}};
var S4=function(a,b,c){var d=h4(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=v2(b.Sa)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.F.Oq(b,d);c=a.F.Nq(b,c);c=new iq(d,c,e);a.G[b.getId()]=c;a.o.jb([c]);a.F.un(b)}};
var T4=function(a,b){var c=b.getId();a.G[c]&&(B4(a.F,c),IH(a.o.o,[a.G[c]],void 0),delete a.G[c])};
var U4=function(a,b){if(n(b)){var c=a.Dj(b);if(c)if(a.A==c&&!c.A&&c.isVisible)c.show();else{if(a.A){if(5==c.Sa.o){a.A.A?a.O.push(b):c.show();return}a.Ae(a.A)}if(O4(a.D,c))a.A=null,c=a.G[c.getId()],c.visible||(c.visible=!0,a.o.o.jb([c],1)),a.o.W()&&(y2(a.o.W(),"9412857")||y2(a.o.W(),"9412859"))&&a.zq();else{5!=c.Sa.o&&(a.A=c);c.subscribe("adBreakComplete",a.wl,a);if(c.A&&(V4(a.o),null!=a.o.D)){var d=a.D.A(),d=0<d?Math.floor(I()/1E3-d):0;u4(a.o.D,"show_instream_ads",{tfla:d})}a.F.gs(c);c.show()}}}};
var W4=function(a,b,c){Q4.call(this,a,b);this.K=[];this.M=[];this.H=[];this.U=c;this.S=0;this.V=a.A.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],Sea(c)){var d=new g4(c.B,c.F,c.Sa,c.G,!0);b[a]=d;this.K.push(c)}this.Y||this.Ef()};
var X4=function(a){Y4(a);a.S=Ai(A(a.Ef,a),1E3*(a.V-10))};
var Y4=function(a){a.S&&Di(a.S);a.S=0};
var $4=function(a,b){Q4.call(this,a,b);this.V=a;this.U=!0;this.K=[];this.fa=1;this.da=null;this.M=0};
var a5=function(a){if(null==a.A&&0<a.K.length){var b=a.K[0];b.isVisible?(a.U=a.H.K,a.aa=Math.ceil(I()/1E3),b.subscribe("adBreakComplete",a.S,a),a.A=b,b.show()):a.S()}else null!=a.A&&a.M++};
var ffa=function(a,b){this.H=a;this.A=b;this.J=I();this.F=0;this.o=a.A;this.D={};this.G=new Jea(a);var c=[];this.o.M&&this.o.B&&c.push("4_2");this.o.H&&(this.o.B&&c.push("1_2"),this.o.F&&c.push("1_2_1"),this.o.S&&c.push("1_1"),this.o.O&&c.push("1_3"));this.o.K&&c.push("2_2_1");this.o.L&&c.push("2_2");this.o.G&&c.push("2_1");(this.o.qa||this.o.J)&&c.push("2_3");this.o.V&&c.push("14_14");this.C=c.join(",");this.B="";this.D.allowed=this.C;(c=this.o.excludedAds)&&(this.D.ex_ads=c)};
var b5=function(a,b,c){F.call(this);this.A=a;this.B=b;this.H=c;this.C=this.F=-1;this.o=c5(this.B.Md());a=this.B.Md();a.length&&(a=a[a.length-1],-1==a&&this.A.jb([this.o[a]]));0<this.A.A.A&&this.A.subscribe("endseeking",this.D,this)};
var gfa=function(a,b){d5(a);0<b&&(a.C=Ai(A(a.D,a),1E3*b))};
var d5=function(a){-1!=a.C&&(Di(a.C),a.C=-1)};
var c5=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 iq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new iq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
var e5=function(a){0<a.A.A.A&&(a.F=I()/1E3,a.D())};
var f5=function(a){F.call(this);this.J=this.B=this.C=this.G=this.A=null;this.L=this.K=!1;this.o=a;this.H=null;this.S={};this.O=new Cm(this);this.F=new Cm(this);this.M=this.D=null};
var hfa=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=F4(b).toString(),k="midroll");var l={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a};
var ifa=function(a,b){var c=uz(b),d=c.childNodes[0];if(!d)return b;var e=eb(d.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=eb(e.childNodes,function(a){return"Extensions"==a.localName}),k=eb(f?f.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")}),f=f.removeChild(k),l=e,m=1;
E(f?f.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=hfa(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}f=a.D.nq(d);f||(Nb(a.D),a.D=L4(a.o,!0));return e||f?xz(c):b};
var jfa=function(a){var b=E2(a.o.A,a.o.W(),G2(a.o));b.Iv=!0;b.Bn=!1;b.lq=10;b.Gl=a.D.$n();return b};
var kfa=function(a,b){var c=LT(b);if(C2(c,s3.o)&&a.o.A.J)return a.C=new A3(a.o),a.C.show(),!1;if(C2(c,"blockAllAds"))return a.A.sendImpressionUrls(),a.C=new C3(a.o,a.A,1,!0),!1;if(C2(c,"hideMaster"))return a.C=new C3(a.o,a.A,0,!0),!1;a.C=new q3(g5(b),a.o,a.A,!0);a.C.show();a.K=!1;return!0};
var h5=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.o.A;!c.o&&c.qa&&(a.C=new A3(a.o),a.C.show())}};
var i5=function(a){a.C&&(a.C.dispose(),a.C=null)};
var g5=function(a){var b=gU(a);a=0<b.length?b.pop():XT(a);a=lfa[a.toUpperCase()];return null!=a?a:0};
var j5=function(a){a.L||(qq(a.o),a.L=!0)};
var k5=function(a){I_.call(this,a);this.H=this.sa="ad";this.A=this.B=this.L=null;this.Y=this.Z=!1;this.C=this.O=null;oK.o=!0;oK.C=!1;oK.G=!0;oK.F=0;this.M=null;this.ia={};this.fa={at:"0"};this.K=new Vq(this.o);Uq(this.o,this.K.element,4);this.da=this.F=null;this.U=-1;this.D=null;this.aa=[]};
var G2=function(a){return l5(a.app)};
var y3=function(a,b,c){a=a.L;c=c||{};var d=(I()-a.J)/1E3;c.art=d;d=a.H.W();d.ia&&(c.feature=d.Ia);c.ad_flags=a.o.adFlags;(d=a.o.Qa)&&(c.cid=d);c.mt=a.A.getCurrentTime();(d=RA())&&(c.lact=d);(d=a.A.ih())&&(c.len=d);a.o.rb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.B=c.at;b=a.G;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?$2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=c.sst);"2_1"==
e&&10==f&&(c.break_type=1);e={};e.device=b.o.A.bb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":jb(u2,Ya(d))&&(f.m_pos=l.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*d);break;case "ad_error":f.error_code=Kea(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=$2(d);
break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=h3(b.o);f=G2(b.o);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.o.B,e.mt=null!=c&&null!=c.A?1E3*v2(c.A.Sa):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.o.W();e.ei=f.eventId;e.lact=RA();e.vol=Math.round(b.o.app.Va.Cb());e.vis=hH(c);c=m5(b.o);e.p_w=c.width;e.p_h=c.height;e.rt=I();if(c=(c=Q1(k))&&We(c)===window.document?Zf(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Dg(e);if("undefined"==
typeof k)throw Error("Keys are undefined");c=new gh(null,0,void 0);e=Cg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?oh(c,a,d):uh(c,a,d);b=b.o.W().baseYtUrl+"api/stats/ads";b=new N(b);eh(b,c);aq(b.toString())}};
var n5=function(a,b,c){c=c||{};c.ad_error=b;y3(a,7,c)};
var o5=function(a){if(!a.Z){var b=a.W().baseYtUrl;aq(b+"mac_204?action_fcts=1");a.Z=!0}};
var p5=function(a){return a.B instanceof $4?a.B:null};
var q5=function(a){a=a.K;if(a.A.W().H)a=LE(a.A).A;else{if(!a.C){var b;b=a.A.app;if(b.X.H){var c=Vf(b.B),d=hg(b.B);b.fa=new te(c.x,c.y,d.width,d.height);c2(b.D);py(b.B,1);Zq(b.B);b=b.B}else b=r5.getTag(void 0,void 0);a.C=b;Yd(a.C,["video-stream","ad-video"])}a=a.C}return a};
var h3=function(a){if(!a.F){var b=fc(a.W().M);b.autoplay="1";b.eventid=G2(a).eventId;b.content_v=G2(a).videoId;b=new wG(b);b.Ba="adunit";var c=q5(a);b.sc=c;a.F=new N1(b,2,new J_(b,""),a.app.F,A(a.app.R,a.app))}return a.F};
var m5=function(a){return a.A.C?(a=a.app.F.Ma(),new te(0,0,a.width,a.height)):jg(a.Aa())};
var s5=function(a,b){l4(a,"bd");var c;c=a.A;var d=c.midrollPrefetchSize;c=c.Ia?new $4(a,b):0<d?new W4(a,b,d):new Q4(a,b);a.B=c;dfa(a.B)};
var V4=function(a){a.Y=!0;a.R("command_redirect_controls",a,["play_pause"],void 0);a.C||a.pauseVideo()};
var t5=function(a){Xq(a.K);a.Y=!1;uq(a)};
var l3=function(a,b){switch(b){case 1:a.U=1;a.R("publish_external_event","onAdStart");break;case 0:a.U=0,a.R("publish_external_event","onAdEnd")}};
var k3=function(a,b,c,d){d&&a.R("publish_external_event","onAdInfoChange",d);a.R("publish_external_event","onAdStateChange",b,q5(a),c)};
var l4=function(a,b){var c=b;"nl"==b&&(c=a.L,c.F++,c=c.F.toString());a.ia[c]=I();"bs"!=c&&"fb"!=c||rq(a,a.ia,a.fa)};
var u5=function(a){return Boolean(a.A.D&&a.B&&1<a.B.B.length)};
var v5=function(a,b,c){F.call(this);this.A=a;a.subscribe("onVolumeChange",this.Fp,this);this.K=A(this.Rz,this);a.o.addEventListener("onCaptionsTrackListChanged",this.K);this.D=!1;this.o=c;c.subscribe("proxyStateChange",this.Sp,this);c.subscribe("remotePlayerChange",this.Bl,this);c.subscribe("remoteQueueChange",this.Cl,this);this.M=new qy;this.H=this.G=window.NaN;this.L=0;this.B={};this.F=null;this.J=new Am(this.tC,1E3,this);G(this,this.J);this.S=0;this.C=!1;a=this.A.o.wb("captions","track");bc(a)||
w5(this,a);this.Cl();this.Bl()};
var x5=function(a,b){var c=a.A,d=a.A.o.getVideoData().lengthSeconds;c.L=b||0;JH(c.o,b,d)};
var y5=function(a){a.C||(x5(a,0),z5(a),A5(a,new qy));Mx(a.A.app.Va.W())||(a.C=!0)};
var w5=function(a,b){if(B5(a)&&!a.D){if(b){var c={style:a.A.o.wb("captions","displaySettings")};hc(c,b);a.o.Sl(C5(a),c)}else a.o.Sl(C5(a),null);a.B=yo(a.o).B}};
var D5=function(a){a.o.pause();var b=yo(a.o);x5(a,ro(b));z5(a);A5(a,new qy(4))};
var E5=function(a){a.o.play();F5(a);A5(a,new qy(8))};
var G5=function(a,b){var c=a.A.o.$b();c?zo(a.o,C5(a),b,c.o,a.A.o.getVideoData().playlistId):zo(a.o,C5(a),b);A5(a,new qy(1))};
var H5=function(a,b){if(b){var c=a.A.o.wb("captions","tracklist",{No:1});c&&c.length?a.A.o.de("captions","track",b):(a.A.o.vj("captions"),a.D=!0)}else a.A.o.de("captions","track",{})};
var B5=function(a){return po(yo(a.o))==C5(a)};
var C5=function(a){return a.A.o.getVideoData().videoId};
var F5=function(a){z5(a);if(!a.o.isDisposed()){var b=yo(a.o);b.Za()&&A5(a,new qy(8));x5(a,ro(b));a.G=Ai(A(function(){F5(this)},a),500)}};
var z5=function(a){Di(a.G);a.G=window.NaN};
var I5=function(a){Di(a.H);a.H=window.NaN};
var A5=function(a,b){I5(a);var c=a.M;a.M=b;a.C=!1;var d=a.A;d.O=b;d.app.R("presentingplayerstatechange",new M1(b,c))};
var J5=function(a){I_.call(this,a);this.sa=this.H="remote";this.C={key:Lj(),name:P("YTP_MDX_MY_COMPUTER")};this.B=null;this.F=[];this.K=this.M=this.A=null;this.U=[this.C];this.D=this.C;this.O=new qy;this.L=0};
var K5=function(a,b,c){var d=c||a.C;b.unshift(a.C);a.U=b||[a.C];d=eb(b,function(a){return a.key==d.key});
a.D=d||a.C;a.R("publish_external_event","onMdxReceiversChange")};
var L5=function(a){Q.call(this,["span"]);this.element.innerHTML=a};
var M5=function(a,b){Q.call(this,["span","","{{sparkline_container}}"]);this.D=a;this.C=b;this.A=new L5("");G(this,this.A);Bq(this,"sparkline_container",this.A)};
var N5=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.D+","+a.C*(1-b[e]/c));return'<svg width="'+a.D+'" height="'+a.C+'" viewbox="0 0 '+a.D+" "+a.C+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'};
var O5=function(a){Q.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_seconds_and_class}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);R(this,this.ra["html5-video-info-panel-close"],"click",this.ga);this.C=new M5(200,14);G(this,this.C);Bq(this,"bandwidth_sparkline",this.C);this.D=new M5(200,14);G(this,this.D);Bq(this,"live_latency_sparkline",this.D);this.F=new Ud(this.G,500,this);G(this,this.F);this.A=a};
var P5=function(a){var b=["div","html5-video-player",{tabindex:-1,id:a.Y.attrs.id},["div","html5-video-container",{"data-layer":0}]];b.push(["div","html5-video-content",{"data-layer":0}]);Gq.call(this,b);ri(this.element,"version",a.Y.assets.js);this.app=a;this.S=null;this.C=this.ra["html5-video-container"];this.fa=!!this.C;this.G=new te(0,0,0,0);this.A=null;this.K=new te(0,0,0,0);this.U=this.ra["html5-video-content"];this.Y=this.ea=0;this.L=null;this.H=0;this.M=null;a=a.W();this.aa=a.experiments.ka("efficient_resize")||
a.rb||"blazer"==a.o;this.da=a.experiments.ka("efficient_resize")&&Qx(a);this.J=this.D=null;this.addEventListener=A(this.element.addEventListener,this.element);this.removeEventListener=A(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
a=Mx(a)&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&window.matchMedia?A(window.matchMedia,window):w;this.Z=a(P5.F);this.va=a(P5.D);this.na=a(P5.C);this.ha=a(P5.A);this.qa=a(P5.o);this.ia=a(P5.B);this.F=null;Gi({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_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_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_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_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",
YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube Video Player",
YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate"});this.app.subscribe("initializingmode",this.Iw,this);this.app.subscribe("videoplayerreset",
this.FE,this);this.app.subscribe("videodatachange",this.EE,this);this.app.subscribe("presentingplayerstatechange",this.Aw,this)};
var mfa=function(a,b){a.A=b;if(!a.A.parentNode)try{pf(a.C,a.A,0)}catch(d){var c="videoElement_: "+!!a.A+", containerElement: "+!!a.C+", containerElement.childNodes: "+!(!a.C||!a.C.childNodes)+", containerInitiallyTruthy: "+a.fa+", isDisposed: "+a.isDisposed();throw Error(c);}a.F&&(a.F.disconnect(),a.F=null);!a.app.W().experiments.ka("no_detect_bad_extensions2")&&window.MutationObserver&&(a.F=new window.MutationObserver(A(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.K=new te(0,0,0,0),Q5(this))}},a)),a.F.observe(a.A,{attributes:!0}));
a.K=new te(0,0,0,0);Q5(a);nfa(a)};
var nfa=function(a){J(a.A,"video-stream");J(a.A,"html5-main-video");var b=a.app.W();"3"==b.B&&a.A.setAttribute("controls",!0);b.va&&a.A.setAttribute("data-no-fullscreen",!0);b.Nb&&a.A.setAttribute("webkit-playsinline","");b.pe&&(a.M=Nl(a.A,"click",A(a.A.play,a.A)))};
var R5=function(a,b){if(a.A){var c=a.app.W();Sv&&(a.A.setAttribute("x-webkit-airplay","allow"),b.title?a.A.setAttribute("title",b.title):a.A.removeAttribute("title"));var d;c.lg&&b.videoId?d=b.Cc(c,"default.jpg"):c.experiments.ka("legacy_poster_behavior")||xc&&!S5&&!lt()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.A.poster=d)}c=b.Sc("yt:bgcolor");a.C.style.backgroundColor=c?c:"";a.ea=Cu(b.Sc("yt:stretch"));c=b.Sc("yt:crop");a.Y="fullwidth"==c?window.Infinity:
Cu(c)};
var eJ=function(a){return a.A?new re(0<a.A.style.width.indexOf("px")?(0,window.parseInt)(a.A.style.width,10):a.A.clientWidth,0<a.A.style.height.indexOf("px")?(0,window.parseInt)(a.A.style.height,10):a.A.clientHeight):new re(0,0)};
var rF=function(a){return(a=a.A)?T5(a.videoWidth,a.videoHeight):window.NaN};
var KE=function(a,b){var c=a.Ma(),d=U5(a,c,rF(a),V5(a),b);return new te((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
var U5=function(a,b,c,d,e){c=a.ea||c;a=(0,window.isNaN)(c)?c:a.Y||c;d=T5(b.width,b.height);var f;a>d?(f=(0,window.isFinite)(a)?a:c,f={width:b.width,height:b.width/f,aspectRatio:f}):a<d?f={width:b.height*a,height:b.height,aspectRatio:a}:f={width:b.width,height:b.height,aspectRatio:d};e||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.aspectRatio=c);return f};
var T5=function(a,b){return 1>Math.abs(W5*b-a)||1>Math.abs(W5/a-b)?W5:a/b};
var V5=function(a){return Sv?!0:"3"!=a.app.W().B&&!(0,window.isNaN)(rF(a))};
var Q5=function(a){var b=rF(a),c=a.Ma(),d=1,e=V5(a),f=!1,k=oq(a.app),l=k&&k.getPlayerState(),k=U5(a,c,b),m=a.app.W();!l||T(l,2)||By(l)?m.experiments.ka("container_overflow")?(a.C.style.overflow="hidden",b=new te(0,0,c.width,c.height)):(b=-c.height,Sv?b*=window.devicePixelRatio:vc&&(b-=window.screen.height),b=new te(0,b,c.width,c.height)):(m.experiments.ka("container_overflow")&&(a.C.style.overflow=""),e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new te((c.width-k.width/d)/2,(c.height-k.height)/2,
k.width/d,k.height)):b=new te(0,0,c.width,c.height));ve(a.K,b)||(a.K=b,eg(a.A,we(b)),Tf(a.A,xe(b)),f=!0);c=new te((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ve(a.G,c)||(a.G=c,eg(a.U,c.width,c.height),Tf(a.U,c.left,c.top),f=!0);Mf(a.A,"transform",1==d?"none":"scaleX("+d+")");return f};
var X5=function(a,b,c,d){zv.call(this);S(this,a,"click",this.K);S(this,a,"dblclick",this.H);this.J=b;this.C=c;this.D=d||null;this.A=new Ud(this.G,200,this);G(this,this.A);this.o=!0;this.B=!1;this.F=null};
var Y5=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&&aq(c.data.follow_on_url)}};
var Z5=function(){this.o=[];this.A=[]};
var $5=function(a,b,c){c=window.document.createElement(c?"audio":"video");qa(c,ofa);Nl(c,"loadeddata",A(c.tv,c));Nl(c,"volumechange",A(c.vv,c));BG&&6<=Kw&&Nl(c,"webkitbeginfullscreen",A(c.play,c));b||c.src||c.load();a.A.push(c);return c};
var a6=function(a,b,c){Rj.call(this);this.C=a;this.M=A(b,null);this.A=0;this.F=!1;this.B=new oe(window.NaN,window.NaN);this.o=new zv(this);G(this,this.o);b=c?4E3:3E3;this.J=new Ud(pa(this.cb,1,!1),b,this);G(this,this.J);this.K=new Ud(pa(this.cb,2,!1),b,this);G(this,this.K);this.L=new Ud(pa(this.cb,512,!1),3E3,this);G(this,this.L);c||(this.G=S(this.o,a,"mouseover",this.xs),S(this.o,a,"mousemove",this.AE),S(this.o,a,"mouseleave",this.Vx));uc?S(this.o,a,"keypress",this.Gx):S(this.o,a,"focusin",this.Vv);
this.D=S(this.o,a,"mousedown",this.ws);this.H=S(this.o,a,"touchstart",this.ys);this.O=null;this.cb(640,!0)};
var b6=function(a,b){Fx.call(this,a,b);this.L=null;this.G=this.H=this.D=this.C=0;this.F=-75;J(this.element,"ytp-tv-static");c6(this,a,b)};
var d6=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};
var c6=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"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.L=d;a.H=d6(b);a.G=d6(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
var e6=function(a){Q.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.D=a;this.C=[];void 0==f6&&(a=window.document.createElement("canvas"),f6=!(!a.getContext||!a.getContext("2d")));f6&&(this.A=new b6(1,1),this.A.o(this.element,0),G(this,this.A));a=LE(this.D).Ma();this.A&&c6(this.A,a.width,a.height)};
var pfa=function(a,b,c){g6("add_to_watch_later_list",a,b,c)};
var qfa=function(a,b,c){g6("delete_from_watch_later_list",a,b,c)};
var g6=function(a,b,c,d){Bj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",wd:{feature:b.feature||null,authuser:b.zb||null,pageid:b.pageId||null},Bb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.wJ||null,add_to_playlists:b.mJ||null,plid:zi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,nb:function(a,c){var d=c.result;d&&d.actions&&Y5(d.actions);b.nb.call(this,
a,c)},
Ub:b.Ub,withCredentials:!!d})};
var h6=function(a){this.B=a;this.A=this.o=null};
var i6=function(a){if(!a.o){a.o=new Q(["canvas",{style:"display: none"}]);a.o.o(a.B);var b=a.o.element;try{a.A=b.getContext("webgl")}catch(c){}}};
var j6=function(a){a.A=null;a.o&&(Aq(a.o),a.o=null)};
var k6=function(a){Q.call(this,["div","ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.A=new Pq(this,500);G(this,this.A);this.ca=a;this.C=null};
var l6=function(a){var b=oz(a.ca);ty(b)?(b=a.ca.getVideoData(),b.Fa&&!b.Ed?m6(a,3):m6(a,2),a.A.show(!0)):T(b,64)||(m6(a,1),a.A.show(!0))};
var m6=function(a,b){if(a.C!=b){a.C=b;var c,d;switch(b){case 2:c=P("YTP_PAUSE");d=Ah?'<div class="ytp-icon ytp-icon-pause-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,11.11 0,17.77 6.66,0 0,-17.77 -6.66,0 z m 10,0 0,17.77 6.66,0 0,-17.77 -6.66,0 z" /></svg>';break;case 1:c=P("YTP_PLAY");d=Ah?'<div class="ytp-icon ytp-icon-play-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,28.88 0,-17.77 16.66,8.91 -16.66,8.86 z" /></svg>';
break;case 3:c=P("YTP_STOP"),d=Ah?'<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];L(e,"ytp-bezel-icon-play",1==b);Bq(a,"label",c);d&&(e.innerHTML=d)}};
var n6=function(a,b){var c=LE(a).Ma();Q.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.G=a;this.aa=b;this.M=this.ra["ytp-tooltip-bg"];this.ha=this.ra["ytp-tooltip-image"];this.Z=A(this.$z,this);this.fa=A(this.Tl,this,1);this.ea=A(this.Tl,this,3);this.ia=A(this.Tl,this,4);this.A=null;this.J=new Pq(this,100);
G(this,this.J);this.L=this.H=this.C=null;this.D=window.NaN;this.K="";this.U=0;this.Y=c.width;this.S=!0;this.da=c;this.F=1;this.O=new Ud(this.Mx,250,this);G(this,this.O)};
var o6=function(a,b){switch(b){case 1:case 2:return a.fa;case 3:return a.ea;default:return a.ia}};
var p6=function(a,b){if(null!=a.C)if(b)switch(a.C){case 1:case 3:case 4:q6(a);a.J.show(!1,400);break;default:a.J.show()}else a.J.ga();a.S=b};
var r6=function(a,b,c){if(a.aa)return w;var d=c||4;b.addEventListener("mouseover",o6(a,d));return A(function(){this.A==b&&this.He();b.removeEventListener("mouseover",o6(this,d))},a)};
var q6=function(a){var b=a.A.getAttribute("data-tooltip-text");Bq(a,"text",b||a.K);if(b){var c=a.A.getAttribute("data-duration");a.update({title:a.K,duration:c});var d=a.A.getAttribute("data-preview"),e=96*a.F,f=54*a.F,k=120*a.F,l=90*a.F;a.M.style.width=e+"px";a.M.style.height=f+"px";a.M.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-l)/2+"px/"+k+"px "+l+"px":"";Yd(a.element,["ytp-text-detail","ytp-preview"]);L(a.element,"ytp-has-duration",!!c)}else ae(a.element,["ytp-text-detail","ytp-preview",
"ytp-has-duration"]);c=hg(a.A);d=cg(a.A,a.G.Aa());s6(a,d.x+c.width/2,!!b,d.y+c.height/2,c.height)};
var s6=function(a,b,c,d,e){a.element.style.left="0px";a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.Y,200)+"px";c=hg(a.element);b-=c.width/2;switch(a.C){case 1:case 2:b=ke(b,a.U,a.U+a.Y-c.width);break;case 3:d=LE(a.G).Ma().width;b=ke(b,12,d-c.width-12);break;default:var f=LE(a.G).Ma();b=ke(b,12,f.width-c.width-12);a.element.style.top=(d>f.height/2?d-e/2-12-c.height:d+e/2+12)+"px"}a.element.style.left=b+"px"};
var t6=function(a){a.A&&a.A.hasAttribute("title")&&(a.K=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.S&&q6(a))};
var u6=function(a,b){L(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.D)){a.D=b;var c=96*a.F,d=96*a.F,e=hu(a.L,a.D,c);Y2(a.M,e,c,d,!0);a.O.start()}};
var v6=function(a,b,c){var d=["button",["ytp-button","ytp-cards-button"],{"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];Q.call(this,d);this.element.innerHTML=Ah?'<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-21" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-21" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-21" /></svg>';
this.ca=a;this.G=b;this.H=c;this.C=null;this.A=new Pq(this,250,!0,100);G(this,this.A);this.ga();this.P("click",this.D);this.P("mouseover",this.F);yB(this,!0)};
var yB=function(a,b){b?(a.element.title=P("YTP_DRAWER_HEADER_TEXT_2"),a.C=r6(a.G.A,a.element,3)):(a.C(),a.C=null,a.element.title="")};
var w6=function(a,b,c){this.na=!!c;this.da=this.Z=null;Gq.call(this,a);this.ea=new Pq(this,b);this.J=null};
var x6=function(a){a.J&&(window.document.activeElement&&yf(a.element,window.document.activeElement)&&(Cf(a.J),a.J.focus()),a.J=null)};
var y6=function(a){return a.B&&3!=a.ea.o};
var z6=function(a,b){this.C=[a];this.D=a;A6(this,a);this.size=new re(0,0);this.F=this.H=null;this.ia=this.ha=0;w6.call(this,["div",["ytp-popup",b||null],{child:a}],100,!0);this.P("keydown",this.mF)};
var A6=function(a,b){a.D.unsubscribe("size-change",a.bh,a);a.D=b;a.D.subscribe("size-change",a.bh,a)};
var B6=function(a){eg(a.element,a.ha||"100%",a.ia||"100%");var b=a.D;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.C.style.height="";var c=hg(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.D&&(d=hg(b.ra["ytp-panel-header"]).height);b.C.style.height=c.height-d+"px";a.size=c};
var C6=function(a,b){a.C.push(b);D6(a,a.D,b)};
var D6=function(a,b,c,d){a.H&&Vd(a.H);a.F&&Vd(a.F);b.unsubscribe("back",a.Vd,a);c.subscribe("back",a.Vd,a);c.o(a.element);A6(a,c);if(a.B){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;B6(a);d=0==!d?-e.width:a.size.width;eg(a.element,e);Mf(c.element,"transform","translateX("+d+"px)");Mf(c.element,"opacity","0");a.H=new Ud(pa(a.pC,b,c,-d),20,a);a.H.start()}else Mf(c.element,"transform","translateX(0)"),Mf(c.element,"opacity","1"),Aq(b)};
var E6=function(a,b,c){for(var d=0;d<c.length;d++)L(c[d].element,"ytp-panel-animating",b);L(a.element,"ytp-popup-animating",b)};
var F6=function(a){Gq.call(this,["div","ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.A=[]};
var G6=function(a,b,c){if(c)a.A.push(b),a.element.appendChild(b.element);else{c=yb(a.A,b,a.Av);if(0<=c)return;c=~c;vb(a.A,c,0,b);pf(a.element,b.element,c)}b.subscribe("size-change",a.Al,a);a.R("size-change")};
var H6=function(a,b,c,d){Gq.call(this,a);this.priority=b;c&&this.D(c);d&&this.Db(d)};
var I6=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}}"]]};
var J6=function(a,b,c,d){var e=["div","ytp-panel"];if(c){var f="ytp-panel-title",k=["div","ytp-panel-header",["button",["ytp-button",f],c]];if(d){var l="ytp-panel-options";k.push(["button",["ytp-button",l],P("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Gq.call(this,e);this.C=this.ra["ytp-panel-content"];this.G=b;this.D=!1;c&&(R(this,this.ra[f],"click",this.K),this.D=!0,d&&R(this,this.ra[l],"click",d));this.G.subscribe("size-change",this.F,this);R(this,a,"fullscreentoggled",
this.F)};
var K6=function(a){var b=I6({"aria-haspopup":!0});H6.call(this,b,a);this.P("keydown",this.A)};
var L6=function(a,b){a.element.setAttribute("aria-haspopup",b)};
var M6=function(a){this.A=a;this.aa=new zv(this);G(this,this.aa);this.K=new Gq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);G(this,this.K);this.fa=new J6(a,this.K);G(this,this.fa);var b=new F6("contextmenu");G(this,b);this.S=new K6(8);G(this,this.S);G6(b,this.S,!0);this.S.P("click",this.VE,this);this.M=new K6(6);G(this,this.M);G6(b,this.M,!0);this.M.P("click",this.Cz,this);this.L=new K6(5);G(this,this.L);G6(b,this.L,!0);this.L.P("click",this.UE,this);this.Y=
new H6(I6({href:"{{href}}",target:"_blank"},void 0,!0),4,P("YTP_REPORT_ISSUE"));G(this,this.Y);G6(b,this.Y,!0);this.Y.P("click",this.XE,this);this.U=new K6(3);G(this,this.U);G6(b,this.U,!0);this.U.P("click",this.TE,this);var c=new H6(I6(),2,P("YTP_SHOW_VIDEO_INFO"));G(this,c);G6(b,c,!0);c.P("click",this.YE,this);c="//"+OG(this.A.W())+"/html5";c=new H6(I6({href:c,target:"_blank"},void 0,!0),1,P("YTP_HTML5_CONTEXT_MENU_LINK"));G(this,c);G6(b,c,!0);c.P("click",this.Zx,this);b=new J6(this.A,b);G(this,
b);z6.call(this,b);J(this.element,"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Fl&&zc(43)&&(b=!0);N6&&!zc(41)&&(b=!1);b&&(this.G=new Q(["div","ytp-html5-clipboard"]),G(this,this.G),this.G.o(this.element));O6(this);R(this,this.A,"fullscreentoggled",this.SE);R(this,this.A,"pageTransition",this.WE);R(this,this.A,"videodatachange",this.ZE);R(this,LE(this.A),"contextmenu",this.gz);R(this,this.K.element,"click",this.hz);a=a.getVideoData();P6(this,
a);this.o(window.document.body)};
var Q6=function(a,b){var c;if(a.G){Af(a.G.element,b);Fq(a.G.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.kb():(a.K.Db(b,"text"),C6(a,a.fa),Fq(a.K.element),a.G&&(a.G=null,O6(a)))};
var P6=function(a,b){var c=a.A.W(),d=!c.C&&!!b.videoId;"play"!=c.o?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.A&&(c.fmt=b.A.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.V&&(c.partnerid=b.V),c=Ug("//support.google.com/googleplay/",c));a.L.yb(d&&b.allowEmbed);a.S.yb(d);a.M.yb(d&&!b.Fa);a.Y.Db(c,"href")};
var O6=function(a){var b=!!a.G;a.U.D(P(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));L6(a.U,!b);a.L.D(P(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));L6(a.L,!b);a.S.D(P(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));L6(a.S,!b);a.M.D(P(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));L6(a.M,!b)};
var R6=function(a){this.F=new zv(this);Rq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.D=new Ud(this.Cs,0,this);G(this,this.D);this.Cs();R(this,a,"presentingplayerstatechange",this.aF);Mx(a.W())&&R(this,a,"videoplayerreset",this.$E)};
var S6=function(a,b,c){b.W();var d=By(c);b=T(c,2)&&!qH(b);d||b?a.show():(a.ga(),T(c,1)||a.stop())};
var T6=function(a,b,c,d,e,f,k){zv.call(this);this.o=a;this.K=c;this.G=d;this.B=e;this.H=f;this.J=k;this.A="";a=pa(this.F,!1);S(this,b,"mousedown",a);S(this,c.element,"mousedown",a);S(this,b,"keydown",this.C);S(this,c.element,"keydown",this.C);S(this,b,"keyup",this.D);S(this,c.element,"keyup",this.D)};
var U6=function(a,b,c){var d=!1,e=a.o.W();if(!e.bb){switch(b){case 80:c&&(a.o.xj(),d=!0);break;case 78:c&&(a.o.wj(),d=!0);break;case 74:a.o.Zc(-10);d=!0;break;case 76:a.o.Zc(10);d=!0;break;case 77:a.o.tc()?a.o.unMute():a.o.mute();d=!0;break;case 75:l6(a.H);ty(oz(a.o))?a.o.pauseVideo():a.o.Yc();d=!0;break;case 190:if(c&&e.U)for(b=a.o.tj(),c=a.o.app.V,e=0;e<b.length-1;e++)b[e]==c&&(a.o.zj(b[e+1]),d=!0);break;case 188:if(c&&e.U)for(b=a.o.tj(),c=a.o.app.V,e=b.length-1;1<=e;e--)b[e]==c&&(a.o.zj(b[e-1]),
d=!0);break;case 70:Jx(a.o)&&(Nx(a.o),d=!0)}d&&a.G.cb(2,!0)}return d};
var V6=function(a,b,c,d){if(pH(a.o.app.C,"captions")){for(var e=a.o.wb("captions","displaySettings"),f,k=0;k<W6.length;k++){var l=W6[k];if(l.option==b){f=l.options;break}}for(var m,k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==f.length-1)return!1;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;sH(a.o,d);return!0}return!1};
var X6=function(a){var b=["ytp-large-play-button","ytp-button"],c=a.W();(c.useTabletControls||c.isMobile)&&b.push("ytp-touch-device");Q.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.W();this.element.innerHTML=b.Ab?Ah?'<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>':
Ah?'<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.D=!1;this.C=new Pq(this,250);G(this,this.C);R(this,a,"presentingplayerstatechange",this.F);Y6(this,oz(a))};
var Y6=function(a,b){if(a.A.W().jg&&!a.D){S6(a.C,a.A,b);var c;c=(c=a.A.getVideoData())&&c.title?P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):P("YTP_PLAY");Bq(a,"label",c)}else a.ga()};
var Z6=function(a){Gq.call(this,["div","ytp-mini-progress-bar-container",["div",["ytp-mini-progress-bar","ytp-swatch-background-color"]]]);this.A=a;this.G=this.ra["ytp-mini-progress-bar"];this.C=null;R(this,a,"presentingplayerstatechange",this.D);a.W();$6(this)&&R(this,a,"fullscreentoggled",this.D);this.ga();this.D()};
var $6=function(a){a=a.A.W();return a.experiments.ka("player_mini_progress_bar")&&Mx(a)};
var a7=function(a,b,c){var d;d=b.sb(c);var e=a.W(),f=d.Cc(e,"default.jpg");Q.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:f?"background-image: url("+f+");":null}],["div","ytp-video-menu-item-title",d.title],["div","ytp-video-menu-item-author",P("YTP_UPLOADED_BY_2",
{AUTHOR:d.author})]]);this.A=a;this.C=c;this.P("click",this.D)};
var b7=function(a,b){this.C=a;w6.call(this,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}"},"{{title}}"],["button",["ytp-playlist-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.ra["ytp-playlist-menu-close"],d=yh();c.innerHTML=d;R(this,c,"click",this.nF);
R(this,this.ra["ytp-playlist-menu-title-name"],"click",this.aB);this.F=this.G=this.A=null;this.K=this.ra["ytp-playlist-menu-items"];this.D=[];this.H=b};
var c7=function(a,b){a.A!=b&&(a.A&&a.A.unsubscribe("shuffle",a.Rm,a),a.A=b,a.G=null,b?b.subscribe("shuffle",a.Rm,a):a.B&&a.H())};
var d7=function(a,b,c){var d=["button",["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}","aria-label":P("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];Q.call(this,d);this.ra["ytp-playlist-menu-button-icon"].innerHTML=Ah?'<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-35" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-35" /></svg>';
this.G=a;this.A=null;this.H=c;this.D=b.A;R(this,a,"videodatachange",this.F);R(this,a,"onPlaylistUpdate",this.F);R(this,a,"presentingplayerstatechange",this.C);this.ga();this.F();Lb(this,r6(this.D,this.element,3));this.P("click",this.H)};
var e7=function(a,b,c){Q.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitem","aria-label":"{{watch}}",href:"{{url}}"},["div","ytp-video-menu-item-thumbnail",{style:"{{background}}"}],["div","ytp-video-menu-item-title","{{title}}"],["div","ytp-video-menu-item-author","{{author}}"]]);this.C=a;this.A=b;this.D=c;Ax(this,b,a.W());this.P("click",this.F)};
var f7=function(a,b){this.A=a;w6.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}],["div","ytp-related-menu-title",P("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]],250);var c=this.ra["ytp-related-menu-close"],d=yh();c.innerHTML=d;R(this,c,"click",this.zF);this.F=null;this.G=this.ra["ytp-related-menu-items"];this.C=[];this.D=b};
var g7=function(a,b,c,d){var e=["button",["ytp-button","ytp-related-menu-button"],{title:P("YTP_SUGGESTED_VIDEOS"),"aria-owns":"ytp-related-menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];Q.call(this,e);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-related"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,10 L17,10 L17,17 L10,17 L10,10 Z M19,10 L26,10 L26,17 L19,17 L19,10 Z M10,19 L17,19 L17,26 L10,26 L10,19 Z M19,19 L26,19 L26,26 L19,26 L19,19 Z" id="ytp-svg-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>';
this.A=a;this.F=c;this.D=d;R(this,a,"videodatachange",this.C);R(this,a,"presentingplayerstatechange",this.C);this.C();Lb(this,r6(b.A,this.element,3));this.P("click",this.F)};
var h7=function(a,b,c){var d=["div","ytp-share-panel",{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},["button",["ytp-share-panel-close","ytp-button"],{title:P("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},P("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:P("YTP_SHARE_LINK"),"aria-label":P("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",
["input","ytp-share-panel-include-playlist-checkbox",{type:"checkbox",checked:!0}],P("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",P("YTP_SHARE_PANEL_ERROR")]]];w6.call(this,d,250);this.A=a;this.D=b.A;this.H=c;this.C=[];this.F=!1;this.M=this.ra["ytp-share-panel-inner-content"];this.S=this.ra["ytp-share-panel-loading-spinner"];b=Eh();this.S.innerHTML=b;this.G=this.ra["ytp-share-panel-close"];
b=yh();this.G.innerHTML=b;R(this,this.G,"click",this.H);Lb(this,r6(this.D,this.G));this.L=this.ra["ytp-share-panel-include-playlist-checkbox"];R(this,this.L,"click",this.Ms);this.K=this.ra["ytp-share-panel-link"];Lb(this,r6(this.D,this.K));this.P("click",this.lA);R(this,a,"videoplayerreset",this.ga);R(this,a,"fullscreentoggled",this.BF)};
var rfa=function(a){switch(a){case "facebook":return Ah?'<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 Ah?'<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 Ah?'<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}};
var i7=function(a){for(var b=0;b<a.C.length;b++)Aq(a.C[b]),Nb(a.C[b]);a.C=[]};
var j7=function(a,b,c,d,e){c=["button",["ytp-button","ytp-share-button"],{title:P("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];Q.call(this,c);this.element.innerHTML=Ah?'<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-40" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-40" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-40" /></svg>';
this.A=a;this.C=e;this.P("click",d);this.A.W().ie?this.ga():(R(this,a,"videodatachange",this.D),this.D());Lb(this,r6(b.A,this.element,3))};
var k7=function(a){Q.call(this,["div","ytp-webgl-spherical-control",{tabindex:0,"aria-label":P("YTP_SPHERICAL_CONTROL")}]);this.element.innerHTML=Ah?'<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-42" 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-43" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-42" /><use fill="#fff" xlink:href="#ytp-svg-42" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-43" /><use fill="#999" xlink:href="#ytp-svg-43" /></svg>';
this.C=a;this.aa=this.da=this.F=this.G=null;this.A=[];this.D=0;this.Z=null;this.H=new Cz(this.DF,null,this);G(this,this.H);this.M=-1;this.O=this.J=this.U=this.L=this.Y=this.K=0;this.S=!1;R(this,a,"videodatachange",this.Tm);R(this,a,"onApiChange",this.Tm);this.ga();this.Tm()};
var l7=function(a,b,c,d){a.Y=ke(b+a.Y,-1,1);a.U=ke(c+a.U,-1,1);a.O=ke(d+a.O,-1,1);1!=a.D&&(a.D=1,J(a.element,"ytp-dragging"),a.M=I(),a.H.start())};
var m7=function(a){a.H.stop();a.D=0;a.Y=0;a.U=0;a.O=0;a.A=[];Zd(a.element,"ytp-dragging")};
var n7=function(a,b,c,d,e,f){var k=f-a.M;a.L=(a.K*a.L+(b-e.yaw))/(k+a.K);a.J=(a.K*a.J+(c-e.pitch))/(k+a.K);a.M=f;a.K=k;yH(a.C,{shader:"Spherical",yaw:b,pitch:c,fov:d})};
var o7=function(a,b){if(!(-1<a.A.indexOf(b)))switch(b){case 37:case 65:l7(a,1,0,0);a.A.push(b);break;case 39:case 68:l7(a,-1,0,0);a.A.push(b);break;case 38:case 87:l7(a,0,1,0);a.A.push(b);break;case 40:case 83:l7(a,0,-1,0);a.A.push(b);break;case 107:l7(a,0,0,-1);a.A.push(b);break;case 109:l7(a,0,0,1),a.A.push(b)}};
var p7=function(a,b){var c=a.A.indexOf(b);if(-1<c)switch(a.A.splice(c,1),b){case 37:case 65:l7(a,-1,0,0);break;case 39:case 68:l7(a,1,0,0);break;case 38:case 87:l7(a,0,-1,0);break;case 40:case 83:l7(a,0,1,0);break;case 107:l7(a,0,0,1);break;case 109:l7(a,0,0,-1)}0==a.A.length&&(m7(a),a.D=2,a.H.start())};
var q7=function(a){var b=["div","ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",P("YTP_PLAYBACK_STALLED_AT_START")]];Q.call(this,b);this.F=this.ra["ytp-spinner-svg"];b=Eh();this.F.innerHTML=b;this.D=this.ra["ytp-spinner-message"];this.C=a;this.A=new Ud(this.show,500,this);R(this,a,"presentingplayerstatechange",this.HF);R(this,a,"onFrescaStateChange",this.yz);R(this,a,"playbackstalledatstart",this.rA);r7(this,oz(a))};
var r7=function(a,b){var c;T(b,128)?c=0:!(c=T(b,16))&&(c=T(b,1))&&(c=pH(a.C.app.C,"fresca"),c=!(c&&c.loaded));c?a.A.start():a.ga()};
var s7=function(a,b){var c=["button",["ytp-airplay-button","ytp-button"],{title:P("YTP_AIRPLAY")}];Q.call(this,c);this.A=a;this.P("click",this.D);R(this,a,"airplayactivechange",this.C);R(this,a,"airplayavailabilitychange",this.C);this.C();Lb(this,r6(b.A,this.element,1))};
var t7=function(a,b){Gq.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.C=a;this.ea=b.A;this.Z=new Am(this.cF,250,this);G(this,this.Z);this.H=LE(a).Ma().width;this.D=this.ra["ytp-storyboard-filmstrip"];this.fa=this.ra["ytp-storyboard-lens"];this.ia=this.ra["ytp-storyboard-lens-thumbnail"];
this.ha=this.ra["ytp-storyboard-lens-timestamp"];this.da=this.ra["ytp-storyboard-thumbnail"];qf(this.da);this.M=0;this.aa=!1;this.Y=this.A=0;this.U=this.K=this.G=window.NaN;this.J=this.F=null;this.L=new zv(this);this.S=new Pq(this,100);R(this,this.C,"resize",this.bF);R(this,this.C,"beginseeking",this.Gv)};
var u7=function(a,b){a.J&&a.J.unsubscribe("l",a.hj,a);var c=!!a.F;a.F=b&&$w(b);a.J=b&&ax(b);a.aa=!!b&&b.Fa;a.F?(c||(S(a.L,a.C,"videodatachange",a.dF),S(a.L,a.C,"progresssync",a.Hj),S(a.L,a.C,"videoplayerreset",a.Hj),S(a.L,a.C,"endseeking",a.Uv)),a.J.subscribe("l",a.hj,a),a.U=window.NaN,a.G=window.NaN,a.K=window.NaN,a.Hj(),a.S.show(!1,t7.A)):(c&&Bv(a.L),a.Z.stop(),Hu(a.M),a.S.ga(),a.S.stop())};
var v7=function(a,b){var c=a.da.cloneNode(!1),d=hu(a.J,b,a.A);Y2(c,d,a.A,a.Y);return c};
var w7=function(a){Q.call(this,["div","ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.J=this.ra["ytp-storyboard-framepreview-img"];this.A=a;this.H=this.D=null;this.G=window.NaN;this.C=new zv(this);this.F=new Pq(this,100);R(this,a,"beginseeking",this.gF)};
var x7=function(a,b){var c=!!a.D;a.D=b&&$w(b);a.H=b&&ax(b);a.D?(c||(S(a.C,a.A,"videodatachange",a.kF),S(a.C,a.A,"progresssync",a.iF),S(a.C,a.A,"resize",a.fF),S(a.C,a.A,"presentingplayerstatechange",a.jF),S(a.C,a.A,"endseeking",a.hF)),a.G=window.NaN,y7(a),a.F.show(!1,200)):(c&&Bv(a.C),a.F.ga(),a.F.stop())};
var y7=function(a){var b=a.A.getCurrentTime(),c=LE(a.A).Ma(),d=iu(a.D,c.width),b=a.D.o[d].Fj(b);b!=a.G&&(a.G=b,ku(a.H,b,c.width),b=hu(a.H,b,c.width),Y2(a.J,b,c.width,c.height))};
var z7=function(a,b){Q.call(this,["button",["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.C=a;this.F=b;this.A=null;this.D=r6(b.A,this.element,1);R(this,a,"fullscreentoggled",this.Ds);R(this,a,"presentingplayerstatechange",this.Es);this.P("click",this.lF);var c;c=Jh("fullscreenerror");"msfullscreenerror"==c&&(c="MSFullscreenError");c&&R(this,window.document,c,this.Az);a.W().La||A7(this);this.Es();this.Ds(a.Ja())};
var A7=function(a){if(!a.A){var b=P(void 0!=Hh(["requestFullscreen","requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.A=new w6(["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);G(a,a.A);a.A.o(a.C.Aa());a.element.setAttribute("aria-disabled",!0);a.D();a.D=null}};
var B7=function(a,b){var c=["button",["ytp-pip-button","ytp-button"],{title:P("YTP_PIP")}];Q.call(this,c);this.element.innerHTML=Ah?'<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-33" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-33" /></svg>';
this.A=a;this.P("click",this.C);Lb(this,r6(b.A,this.element,1))};
var C7=function(a,b){Q.call(this,["button",["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.A=a;this.D=null;this.F=b.A;this.C=null;R(this,a,"fullscreentoggled",this.G);R(this,a,"presentingplayerstatechange",this.H);R(this,a,"videodatachange",this.G);D7(this,oz(a));this.P("click",this.J,this)};
var sfa=function(a){switch(a){case 1:return'<div class="ytp-icon ytp-icon-play"></div>';case 2:return'<div class="ytp-icon ytp-icon-pause"></div>';case 3:return'<div class="ytp-icon ytp-icon-replay"></div>';case 4:return'<div class="ytp-icon ytp-icon-stop"></div>'}};
var D7=function(a,b){var c,d=gx(a.A.getVideoData()),e=!1;ty(b)?c=d?4:2:T(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.D!=c){var f;switch(c){case 2:f=P("YTP_PAUSE");break;case 3:f=P("YTP_REPLAY");break;case 1:f=P("YTP_PLAY");break;case 4:f=P("YTP_STOP")}e=void 0;3==c?(a.C||(a.C=r6(a.F,a.element,1)),d="M26.466,21.04 L30.966,16 L27.8,16 C26.873,11.435 22.841,8 18.001,8 C12.474,8 8,12.477 8,18 C8,23.523 12.474,28 18.001,28 C21.181,28 24.009,26.511 25.841,24.197 L24.005,22.361 C22.652,24.217 20.471,25.427 18.001,25.427 C13.899,25.427 10.569,22.101 10.569,18 C10.569,13.898 13.899,10.572 18.001,10.572 C21.407,10.572 24.268,12.871 25.142,16 L21.966,16 L26.466,21.04",
a.update({title:f,label:null})):(a.C&&(a.C(),a.C=null),a.update({title:null,label:f}),d=E7[c],e=E7[a.D]);t6(a.F);f=a.A.W().V?sfa(c):Ox(ka(a),d,e);a.element.innerHTML=f;a.D=c}};
var F7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Ah?'<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-31" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-31" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-31" /></svg>'):
(d="ytp-prev-button",e=Ah?'<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-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>');Q.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}}"}]);this.element.innerHTML=e;this.A=a;this.S=b.A;this.F=c;this.C=this.H=null;this.M=!1;this.K=this.L=this.D=null;this.G=!1;R(this,a,"fullscreentoggled",this.J);R(this,a,"videodatachange",this.J);R(this,a,"onPlaylistUpdate",this.J);this.J()};
var G7=function(a){a.C&&a.C.unsubscribe("shuffle",a.J,a)};
var H7=function(a){return!!a.C&&!a.F&&3<=a.A.getCurrentTime()&&1==a.A.getPresentingPlayerType()};
var I7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.A.W(),d=rH(a.A),e=a.F&&Tx(c,a.H,a.C);if(a.G)b.title=P("YTP_REPLAY");else if(d){var f=null;a.C&&(f=a.C.sb(a.F?qx(a.C,!0):rx(a.C,!0)));if(f){if(f.videoId){var k=a.C.D;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?xx(f.lengthSeconds):null;b.preview=f.Cc(c,"default.jpg")}b.title=P(a.F?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.H.H&&a.H.H.length&&(f=zx(a.H.H[0]),b.url=f.Ak(c),
b.text=f.title,b.duration=f instanceof Aw?xx(f.lengthSeconds):null,b.preview=f.Cc(c,"default.jpg")),b.title=P("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.M=!!b.url;e||d||a.G?a.D||(a.D=r6(a.S,a.element,1),a.L=a.P("click",a.U,a)):a.D&&(a.D(),a.D=null,a.za(a.L),a.L=null);t6(a.S)};
var J7=function(a,b){var c=["div","ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":P("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],
["div","ytp-clip-end-exclude"],["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div","ytp-scrubber-pull-indicator"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:P("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:P("YTP_WATCH_ALL")}]];Gq.call(this,c);this.C=a;this.ub=b.A;this.na=!1;this.G=this.ib=0;this.aa=1;this.D=this.ob=this.J=0;this.Ua=!1;this.S=this.ea=
0;this.Mb=this.ra["ytp-ad-progress-list"];this.Nb=this.ra["ytp-marker-progress-list"];this.Qa=this.ra["ytp-marker-crenellation-list"];this.Z={};this.ha={};this.U=window.Infinity;c=b.A;this.L=this.ra["ytp-clip-end"];var d=Ch();this.L.innerHTML=d;Lb(this,r6(c,this.L,1));this.qa=new P2(this.L,!0);G(this,this.qa);this.qa.subscribe("hoverstart",this.Hs,this);this.qa.subscribe("hoverend",this.Gs,this);R(this,this.L,"click",this.Ij);this.La=this.ra["ytp-clip-end-exclude"];this.Yb=this.ra["ytp-clip-start-exclude"];
this.Y=0;this.M=this.ra["ytp-clip-start"];d=Dh();this.M.innerHTML=d;Lb(this,r6(c,this.M,1));this.va=new P2(this.M,!0);G(this,this.va);this.va.subscribe("hoverstart",this.Hs,this);this.va.subscribe("hoverend",this.Gs,this);R(this,this.M,"click",this.Ij);this.bb=this.ra["ytp-load-progress"];this.ia=0;this.ac=this.ra["ytp-play-progress"];this.fa=this.ra["ytp-hover-progress"];this.H=0;this.Ea=this.ra["ytp-progress-bar"];this.F=null;this.da=new Q(["div",["ytp-scrubber-button","ytp-swatch-background-color"]]);
G(this,this.da);this.da.o(this.Ea);this.Ia=new Pq(this.da,100);this.rb=this.ra["ytp-scrubber-pull-indicator"];this.Ca=new oe;this.$a=new X2;this.A=new T2(0,0);this.K=this.Ga=!1;this.ab=null;R(this,a,"presentingplayerstatechange",this.pF);R(this,a,"videodatachange",this.Fs);R(this,a,"videoplayerreset",this.yw);R(this,a,"cuerangesadded",this.Ks);R(this,a,"cuerangesremoved",this.yF);R(this,a,"cuerangemarkersupdated",this.Ks);R(this,a,"onPlaybackQualityChange",this.qF);K7(this,a.getVideoData(),!0)};
var L7=function(a){if(a.G){var b=a.C.Ue(),c=new T2(b.seekableStart,b.seekableEnd),d=W2(c,b.loaded,0),b=W2(c,b.current,0);a.A=c;M7(a);N7(a,b,d);O7(a)}};
var K7=function(a,b,c){var d=!!b&&cx(b);a.Ga=d&&b.Ed;P7(a,FH(a.C));c&&(d?(c=b.clipEnd,a.Y=b.clipStart,a.U=c,Q7(a),N7(a,a.H,a.ia)):a.Ij());L7(a)};
var R7=function(a){return!!a&&cx(a)&&!!a.A&&a.A.video.o};
var S7=function(a,b){a.Ua=b;L(a.bb,"ytp-fast-load",b)};
var T7=function(a,b,c,d){b=ke(b,0,a.K?60:40);a.J=b;var e=a.aa;a.aa=b/(a.K?60:40)*(Math.max(U2(a.A)/a.G,1)-1)+1;b=a.G*a.aa;a.S=ke(d*b-c,0,b-a.G);e!=a.aa&&M7(a)};
var M7=function(a){var b=U7(a),c=-b.B/b.o,d=(-b.B+b.width)/b.o,e=sf(a.Qa),f=0;if(a.J>.2*(a.K?60:40))for(var k=U2(a.A)/60*d,l=Math.ceil(U2(a.A)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Qa.appendChild(m));f++;m.className=0==l%60?"ytp-60m-progress":0==l%30?"ytp-30m-progress":0==l%15?"ytp-15m-progress":"ytp-1m-progress";m.style.left=(60*l/U2(a.A)-c)*b.o+"px"}b=a.Ga?a.A.o:0;a.update({boundTimeLeft:xx(V2(a.A,c)-b),boundTimeRight:xx(V2(a.A,d)-b)});for(c=e.length-1;c>=f;c--)qf(e[c]);
a.element.style.height=a.J+(a.K?8:5)+"px";a.R("height-change",a.J);a.da.element.style.height=a.J+(a.K?20:13)+"px";for(var p in a.Z)V7(a,a.Z[p],a.ha[p]);Q7(a);N7(a,a.H,a.ia)};
var U7=function(a){var b=a.Ca.x,c=a.G*a.aa,b=ke(b,0,a.G);a.$a.update(b,a.G,-a.S,-(c-a.S-a.G));return a.$a};
var N7=function(a,b,c){a.H=b;a.ia=c;var d=U7(a),e=a.A.o,f=V2(a.A,a.H);a.update({ariamin:Math.floor(a.A.A),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:P("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:xx(f),DURATION:xx(e)})});var e=W2(a.A,a.Y,0),k=W2(a.A,a.U,1),f=ke(b,e,k);c=a.Ua?1:ke(c,e,k);k=b*d.o+d.B;b=0<=k&&b<=d.width;a.da.element.style.visibility=b?"":"hidden";a.rb.style.display=b?"":"none";b=k+"px";a.da.element.style.left=b;a.rb.style.left=b;W7(a,a.ac,d,e,f);W7(a,a.bb,d,e,c)};
var W7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.o+c.B,0)+"px";d=Math.min((e-d)*c.o+c.B,c.width);f||a.C.getVideoData().L?(b.style.width=d+"px",Mf(b,"transform","")):(Mf(b,"transform","scalex("+(c.width?d/c.width:0)+")"),b.style.width="")};
var Q7=function(a){var b=a.Y>a.A.A,c=0<a.A.o&&a.U<a.A.o;L(a.element,"ytp-clip-start-enabled",b);L(a.element,"ytp-clip-end-enabled",c);b=b?W2(a.A,a.Y,0):0;c=c?W2(a.A,a.U,1):1;a.M.style.left=Math.round(1E3*b)/10+"%";a.L.style.left=Math.round(1E3*c)/10+"%";a.Yb.style.width=Math.round(1E3*b)/10+"%";a.La.style.left=Math.round(1E3*c)/10+"%";a.La.style.width=Math.round(1E3*(1-c))/10+"%"};
var O7=function(a){var b=U7(a);W7(a,a.fa,b,a.H,b.A);L(a.fa,"ytp-hover-progress-light",b.A>a.H)};
var V7=function(a,b,c){var d=U7(a),e=W2(a.A,b.start/1E3,0),f;a:{switch(b.style){case "ytp-chapter-marker":f=8;break a;case "ytp-ad-progress":f=6;break a;case "ytp-time-marker":f=Number.POSITIVE_INFINITY;break a}f=void 0}var k=f/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=W2(a.A,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=ke(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}W7(a,c,d,e,f,!0);c.className=b.style};
var X7=function(a,b){var c=b.getId();a.Z[c]==b&&(qf(a.ha[c]),delete a.Z[c],delete a.ha[c])};
var P7=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new P2(a.Ea,!0),a.F.subscribe("hoverstart",a.tF,a),a.F.subscribe("hovermove",a.vF,a),a.F.subscribe("hoverend",a.uF,a),a.F.subscribe("dragstart",a.sF,a),a.F.subscribe("dragmove",a.xF,a),a.F.subscribe("dragend",a.wF,a),a.ab=a.P("keydown",a.rF)):a.F&&(a.element.setAttribute("aria-disabled",!0),a.za(a.ab),a.F.cancel(),a.F.dispose(),a.F=null)};
var Y7=function(a){Q.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 Pq(this,250);G(this,this.A);this.C=a;var b=this.ra["ytp-remote-display-status-icon"],c=zh();b.innerHTML=c;R(this,a,"presentingplayerstatechange",this.D);Z7(this,oz(a))};
var Z7=function(a,b){if(3==a.C.getPresentingPlayerType()){var c;c=T(b,128)?P("YTP_MDX_PLAYER_ERROR"):P("YTP_MDX_STATUS_CONNECTED");var d=a.C.wb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.A.show()}else a.A.ga()};
var $7=function(a,b,c){var d=["button",["ytp-remote-button","ytp-button"],{title:P("YTP_MDX_TOOLTIP")}];Q.call(this,d);this.ca=a;this.F=c;this.C=null;R(this,a,"onMdxReceiversChange",this.A);R(this,a,"presentingplayerstatechange",this.A);this.A();this.P("click",this.D,this);Lb(this,r6(b.A,this.element,1))};
var a8=function(a,b){this.A=!1;var c=I6({role:"menuitemcheckbox","aria-checked":this.A});H6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.P("click",this.L)};
var b8=function(a,b){a.A=b;a.element.setAttribute("aria-checked",a.A)};
var c8=function(a,b){a8.call(this,P("YTP_ANNOTATIONS"),6);this.G=b;this.ca=a;this.C=!1;R(this,a,"videodatachange",this.F);R(this,a,"onApiChange",this.F);this.subscribe("select",this.H,this);this.F()};
var d8=function(a,b,c,d,e){var f=I6({"aria-haspopup":!0});H6.call(this,f,b,a);this.A=d;this.K=null;this.C={};this.H=new F6;G(this,this.H);this.S=new J6(c,this.H,a,e);G(this,this.S);this.P("keydown",this.AF);this.P("click",this.open)};
var e8=function(a,b){a.H.removeAll();for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.C[f],l=f==a.K;l&&(d=!0);if(k&&k.priority==-e){var l=a,m=f,p=l.C[m];p.D(l.Ac(m,!0));p.R("size-change");delete a.C[f]}else k=new H6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.Ac(f,!0)),k.P("click",A(a.iA,a,f));c[f]=k;G6(a.H,k,!0)}d||(a.K=null);for(f in a.C)a.C[f].dispose();a.C=c};
var f8=function(a,b){d8.call(this,P("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.ca=a;this.L=new Q(["div","",["span","",P("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);this.D(this.L);this.M={};this.F=!1;R(this,a,"videodatachange",this.J);R(this,a,"onPlaybackAudioChange",this.J);this.J()};
var g8=function(a,b){a8.call(this,P("YTP_AUTOPLAY"),7);this.J=b;this.ca=a;this.G=!1;this.C=[];R(this,a,"presentingplayerstatechange",this.F);this.subscribe("select",this.K,this);this.F()};
var h8=function(a,b){d8.call(this,P("YTP_QUALITY_TITLE"),1,a,b);J(this.H.element,"ytp-quality-menu");this.ca=a;this.M={};this.L="unknown";this.F=!1;R(this,a,"videodatachange",this.G);R(this,a,"videoplayerreset",this.G);R(this,a,"onPlaybackQualityChange",this.J);this.G()};
var i8=function(a,b,c){var d=(a=a.M[b])?a.qualityLabel:(d=qr[b])?d+"p":P("YTP_AUTO");c=["span",c,d];var e;a&&a.o?c.push(["div","ytp-menuitem-badge-container",{child:new L5('<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" style="fill:#ffffff" /></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};
var j8=function(a,b){d8.call(this,P("YTP_MDX_TITLE"),0,a,b);this.ca=a;this.F=!1;this.L={};R(this,a,"onMdxReceiversChange",this.J);R(this,a,"presentingplayerstatechange",this.J);this.J()};
var k8=function(a,b){d8.call(this,P("YTP_SPEED_TITLE"),5,a,b);this.ca=a;this.F=!1;this.G=null;R(this,a,"presentingplayerstatechange",this.Ns);this.Ns()};
var l8=function(a,b,c,d){d8.call(this,m8(d),a,b,c);J(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();this.F=Ib(d.options,this.G,this);e8(this,O(d.options,this.G))};
var m8=function(a){return(a.message?P(a.message):a.text)||""};
var n8=function(a,b){this.H={};this.A=new F6;for(var c=0;c<W6.length;c++){var d=W6[c],e=new l8(-c,a,b,d);G(this,e);e.subscribe("settingChange",this.J,this);this.H[d.option.toString()]=e;G6(this.A,e,!0)}c=new H6(I6(),-W6.length,P("YTP_RESET"));G(this,c);c.P("click",A(this.J,this,"reset",!0));G6(this.A,c,!0);J6.call(this,a,this.A,P("YTP_OPTIONS"))};
var o8=function(a,b){for(var c in b){var d=a.H[c];if(d){var e=b[c].toString();d.C[e]&&d.Nc(e)}}};
var p8=function(a,b){d8.call(this,P("YTP_AUTO_TRANSLATE"),0,a,b);this.F={}};
var q8=function(a,b){d8.call(this,P("YTP_SUBTITLES"),4,a,b,A(this.mC,this));this.ca=a;this.M=!1;this.F={};this.L=new Q(["div","",["span","",P("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);G(this,this.L);this.D(this.L);this.J=new p8(a,b);G(this,this.J);this.J.subscribe("select",this.fB,this);this.G=new n8(a,b);G(this,this.G);this.G.subscribe("settingChange",this.NF,this);R(this,a,"videodatachange",this.sh);R(this,a,"onApiChange",this.sh);R(this,a,"onCaptionsTrackListChanged",
this.sh);R(this,a,"captionschanged",this.sh);this.sh()};
var r8=function(a){a.fontFamily=s8.indexOf(a.fontFamilyOption);a.charEdgeStyle=t8.indexOf(a.charEdgeStyle)};
var u8=function(a,b){d8.call(this,P("YTP_THREED_SHORT"),8,a,b);this.ca=a;this.F=!1;R(this,a,"videodatachange",this.J);this.G=null;this.J()};
var v8=function(a){this.G=a;this.A=new F6("ytp-main-menu-id");G(this,this.A);a=new J6(a,this.A);G(this,a);z6.call(this,a,"ytp-settings-menu");this.L=this.K=null;this.M=!1};
var w8=function(a){if(!a.M){a.M=!0;var b=new h8(a.G,a);G(a,b);b=new q8(a.G,a);G(a,b);b=new c8(a.G,a);G(a,b);b=new k8(a.G,a);G(a,b);b=new u8(a.G,a);G(a,b);b=new g8(a.G,a);G(a,b);b=new f8(a.G,a);G(a,b);a.L=new j8(a.G,a);G(a,a.L);0>=a.A.A.length&&a.K.ga()}};
var x8=function(a,b){G6(a.A,b);a.K&&a.K.show()};
var y8=function(a,b){a.B&&1>=a.A.A.length&&a.ga();a.A.remove(b);0>=a.A.A.length&&a.K&&a.K.ga()};
var z8=function(a,b,c){var d=["button",["ytp-button","ytp-settings-button"],{"aria-haspopup":!0,"aria-expanded":"{{pressed}}","aria-owns":"ytp-main-menu-id",title:P("YTP_SETTINGS")}];Q.call(this,d);this.element.innerHTML=Ah?'<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-39" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-39" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-39" /></svg>';
this.C=c;this.C.subscribe("show",this.D,this);this.ca=a;this.P("click",this.F);R(this,this.ca,"onPlaybackQualityChange",this.A);R(this,a,"videodatachange",this.A);R(this,a,"webglsettingschanged",this.A);Lb(this,r6(b.A,this.element,1));this.A();this.D(!1)};
var A8=function(a,b){Q.call(this,["button",["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.A=a;this.F=b.A;this.D=null;R(this,a,"sizestylechange",this.C);R(this,a,"fullscreentoggled",this.C);R(this,a,"presentingplayerstatechange",this.C);this.C();this.P("click",this.G);Lb(this,r6(this.F,this.element,1))};
var B8=function(a,b){var c=P("YTP_SUBTITLES");"Subtitles/CC"==c&&(c="Subtitles/closed captions");Q.call(this,["button",["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:c}]);this.A=a;c=this.A.W().Y;this.element.innerHTML=-1!=C8.indexOf(c)?Ah?'<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-8" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-8" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-8" /></svg>':
Ah?'<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-45" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-45" /></svg>';R(this,a,"videodatachange",this.C);R(this,a,"onApiChange",
this.C);R(this,a,"onCaptionsTrackListChanged",this.C);R(this,a,"captionschanged",this.C);this.C();this.P("click",this.D);Lb(this,r6(b.A,this.element,1))};
var D8=function(a,b){Q.call(this,["div",["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.F=new Q(["button",["ytp-live-badge","ytp-button"],{disabled:!0},P("YTP_LIVE")]);G(this,this.F);this.F.o(this.element);this.C=a;this.K=b.A;this.A=null;this.G=this.D=!1;this.J=this.H=null;this.P("click",this.OF);R(this,a,"presentingplayerstatechange",this.uh);R(this,a,"liveviewshift",this.PF);R(this,
a,"videodatachange",this.QF);var c=a.getVideoData();c&&(this.D=c.Fa,L(this.element,"ytp-live",this.D));this.uh()};
var E8=function(a,b){Q.call(this,["div","ytp-volume-control",["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-track"],["div","ytp-volume-slider-handle"]]]]);this.A=a;this.va=b.A;this.Z=!1;this.ia=this.C=0;this.F=new Q(["button",["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);G(this,this.F);this.F.o(this.element,0);this.F.P("click",
this.aA,this);this.fa=this.ra["ytp-volume-slider"];this.ha=this.ra["ytp-volume-slider-handle"];this.na=this.ra["ytp-volume-slider-track"];this.L=this.O=window.NaN;this.da=-1;this.A.W();this.aa=new Cz(this.Rs,null,this);G(this,this.aa);this.Y=new P2(this.fa,!0);G(this,this.Y);this.Y.subscribe("dragstart",this.WA,this);this.Y.subscribe("dragmove",this.VA,this);this.Y.subscribe("dragend",this.UA,this);R(this,a,"onVolumeChange",this.UF);R(this,this.ra["ytp-volume-panel"],"keydown",this.XA);R(this,this.element,
"mousewheel",this.SF);R(this,a,"videodatachange",this.TF);this.G=!1;this.K=this.J=this.D=this.H=this.M=null;this.U=this.ea=!1;this.S=new Ud(this.Zu,125,this);G(this,this.S);this.Z=!1;F8(this,this.A.Cb(),this.A.tc());Lb(this,r6(b.A,this.F.element,1))};
var G8=function(a,b){var c=(b-a.da)/250;return 1<=c?a.L:a.O+(a.L-a.O)*c};
var H8=function(a,b,c){for(var d="",e=!0,f=0;f<a.length;f++){var k=a[f];y(k)?d+=k:e?(d+=k+(b[f]-k)*c,e=!1):(d+=","+(k+(b[f]-k)*c)+" ",e=!0)}return d};
var F8=function(a,b,c){var d=Math.round(b),e=d+"% "+P("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+P("YTP_SCREENREADER_VOLUME_MUTED"):""),f=c?0:b/100;if(a.A.W().V){var k;k=0==f?'<div class="ytp-icon ytp-icon-volume-muted"></div>':0<f&&.5>f?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<div class="ytp-icon ytp-icon-volume-high"></div>';k!=a.qa&&(a.F.element.innerHTML=k,a.qa=k)}else if(k=f?.5*Math.ceil(f/.5):-.5,a.L!=k){var l=I();(0,window.isNaN)(a.O)?(a.O=a.L=k,a.da=l,a.Rs(l)):(a.O=G8(a,l),a.L=
k,a.da=l,a.aa.start())}Bq(a,"valuenow",d);Bq(a,"valuetext",e);Bq(a.F,"title",c?P("YTP_UNMUTE"):P("YTP_MUTE"));t6(a.va);c=(a.Z?72:48)*f;a.ha.style.left=c+"px";a.na.style.width=c+"px";a.C=b;a.G&&I8(a)};
var J8=function(a,b,c){b={src:"//www.gstatic.com/youtube/media/beyond/"+b,preload:"auto"};c&&(b.loop="loop");c=new wq(["audio",b]);G(a,c);c.o(a.element);return c.element};
var I8=function(a){var b=a.A.tc()?0:a.C/100;a.M.volume=b;a.H.volume=b;a.D.volume=b;a.J.volume=b;a.K.volume=b};
var K8=function(a,b){a.ea||(b&&!a.U?a.S.start():!b&&a.U&&(a.S.isActive()?a.S.stop():(a.D.pause(),a.H.play())));a.U=b};
var L8=function(a,b){var c=a.W(),d="gaming"==c.o?"gaming.youtube.com":OG(c);Q.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:P("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.o?(this.element.innerHTML=Ah?'<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-26" /><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-27" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-28" /><g id="ytp-svg-29"><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-26" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-27" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-29" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-29" /></svg>',
J(this.element,"ytp-youtube-gaming-button")):this.element.innerHTML=Ah?'<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-23" /><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-24" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-25" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-24" /></svg>';
this.A=a;this.P("click",this.D);R(this,a,"videodatachange",this.C);this.C();Lb(this,r6(b.A,this.element,1))};
var M8=function(a,b,c){zv.call(this);var d=a.W();this.ca=a;this.C=b;this.S=window.NaN;this.L=null;this.J=c;this.J.subscribe("autohideupdate",this.IF,this);c=!By(oz(a));var e=new Q(["div","ytp-gradient-bottom"]);G(this,e);Uq(a,e.element,8);this.H=new Pq(e,250,c,100);G(this,this.H);this.B=new Q(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);G(this,this.B);Uq(a,this.B.element,8);this.G=new Pq(this.B,250,c,100);G(this,this.G);var f=this.B.element.children[0];this.o=new v8(a);G(this,this.o);
Uq(a,this.o.element,6);this.o.subscribe("show",this.zC,this);this.o.subscribe("show",b.jC,b);this.D=new J7(a,b);G(this,this.D);this.D.o(this.B.element,0);c=new t7(a,b);G(this,c);Uq(a,c.element,4);this.D.subscribe("height-change",c.eF,c);c=new w7(a);G(this,c);Uq(a,c.element,4);c=new wq(["div","ytp-left-controls"]);G(this,c);c.o(f);e=new F7(a,b,!1);G(this,e);e.o(c.element);e=new C7(a,b);G(this,e);e.o(c.element);e=new F7(a,b,!0);G(this,e);e.o(c.element);this.A=new E8(a,b);G(this,this.A);this.A.o(c.element);
this.A.yb(d.ob);this.K=new D8(a,b);G(this,this.K);this.K.o(c.element);e=new wq(["div","ytp-right-controls"]);G(this,e);e.o(f);f=new B8(a,b);G(this,f);f.o(e.element);f=new z8(a,b,this.o);G(this,f);this.o.K=f;f.o(e.element);!d.Ab&&d.vc&&(f=new L8(a,b),G(this,f),f.o(e.element));f=new A8(a,b);G(this,f);f.o(e.element);f=new Y7(a);G(this,f);Uq(a,f.element,4);f=new $7(a,b,this.o);G(this,f);f.o(e.element);d.ac&&(f=new s7(a,b),G(this,f),f.o(e.element));vt().webkitSetPresentationMode&&(f=new B7(a,b),G(this,
f),f.o(e.element));this.F=new z7(a,b);G(this,this.F);this.F.o(e.element);this.O=new Cz(pa(this.Jj,!1),void 0,this);d.ob&&(b=new P2(this.A.element),G(this,b),b.subscribe("hoverstart",this.MF,this),b=new P2(c.element),G(this,b),b.subscribe("hoverend",this.LF,this));S(this,a,"resize",this.Um);S(this,a,"fullscreentoggled",this.JF);S(this,a,"progresssync",pa(this.Jj,!0));S(this,a,"presentingplayerstatechange",this.KF);this.Um()};
var N8=function(a){var b=a.ca.W(),c;if(c=!!a.J.A&&!b.isMobile&&oz(a.ca).Za()){if(c=b.experiments.ka("smooth_progress_bar"))a=a.D,a.C.W(),c=.25>U2(a.A)/a.G/(10*(window.devicePixelRatio||1));c=c||b.experiments.ka("always_request_animation_frame")}return c};
var O8=function(a,b){a.ca.W();By(oz(a.ca))||b?b&&(a.G.ga(),a.H.ga(),a.C.A.og(1)):b||(a.G.show(),a.H.show(),a.Jj(!0))};
var P8=function(a){Q.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"},"{{title}}"],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank"},"{{channelName}}"]]]);this.A=a;this.C=null;this.H=this.ra["ytp-title-link"];this.G=this.ra["ytp-title-channel-logo"];this.F=null;R(this,a,"videodatachange",
this.D);R(this,a,"videoplayerreset",this.D);this.D()};
var Q8=function(a){var b=a.A.getVideoData(),c=b.videoId&&2==a.A.getPresentingPlayerType();c&&b.videoId==a.F?J(a.element,"ytp-title-extra-info"):(Zd(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Qh&&b.profilePicture?R8(a,b.videoId,b.author,b.Qh,b.profilePicture):(c=NG(a.A.W(),b.videoId,!1),Bj(c,{method:"GET",nb:A(a.J,a,b.videoId),withCredentials:!0}))))};
var R8=function(a,b,c,d,e){d=a.A.W().protocol+"://"+OG(a.A.W())+d;a.G.style.backgroundImage="url("+e+")";Bq(a,"channelImageLink",d);Bq(a,"channelNameLink",d);Bq(a,"channelName",P("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.F=b;Q8(a)};
var S8=function(a,b,c){Q.call(this,["button",["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.D=a;this.H=b.A;this.G=c;J(c,"ytp-watch-later-button-visible");this.F=null;this.A=this.C=!1;this.P("click",this.VF,this);R(this,a,"videoplayerreset",this.XF);R(this,a,"WATCH_LATER_VIDEO_ADDED",this.hy);R(this,a,"WATCH_LATER_VIDEO_REMOVED",this.DA);R(this,a,"WATCH_LATER_ERROR",this.WF);T8(this,2);U8(this);Lb(this,r6(b.A,this.element,3))};
var U8=function(a,b){if(b)a.update({title:b,image:null});else{var c=a.D.W();c.userDisplayName?a.update({title:P("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:P("YTP_WATCH_LATER"),image:null})}t6(a.H)};
var T8=function(a,b){if(b!=a.F){var c=a.element;switch(b){case 3:var d=Eh();c.innerHTML=d;break;case 1:c.innerHTML=Ah?'<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-52" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-52" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-52" /></svg>';
break;case 2:c.innerHTML=Ah?'<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-51" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-51" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-51" /></svg>';
break;case 4:c.innerHTML=Ah?'<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.F=
b}};
var V8=function(a){var b=a.W();Q.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":P("YTP_URL_NAVIGATE_TO",{WEBSITE:OG(b)}),"data-sessionlink":"feature=player-watermark"}]);this.element.innerHTML=Ah?'<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-23" /><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-24" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-25" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-24" /></svg>';
this.C=a;this.A=null;R(this,a,"videodatachange",this.D);this.D()};
var W8=function(a){zv.call(this);KH();var b=a.W(),c=LE(a);this.o=a;tfa(this);var d=oz(a);this.Ga=!1;this.Ca=!0;this.va=!1;var e=new R6(a);G(this,e);Uq(a,e.element,4);var f=new q7(a);G(this,f);Uq(a,f.element,4);this.O=new k6(a);G(this,this.O);Uq(a,this.O.element,4);var k=new Q(["div","ytp-gradient-top"]);G(this,k);Uq(a,k.element,1);this.ma=new Pq(k,250,!0,100);G(this,this.ma);this.D=new Q(["div","ytp-chrome-top"]);G(this,this.D);Uq(a,this.D.element,1);this.ha=new Pq(this.D,250,!0,100);G(this,this.ha);
this.V=new X6(a);G(this,this.V);this.V.o(e.element);this.B=new a6(c,A(this.OE,this),b.useTabletControls);G(this,this.B);this.B.subscribe("autohideupdate",this.PE,this);this.A=new n6(a,b.useTabletControls||b.isMobile);G(this,this.A);Uq(a,this.A.element,4);this.G=new v6(a,this,A(this.Vq,this));G(this,this.G);Uq(a,this.G.element,2);this.U=new uB(a,this.G);G(this,this.U);Uq(a,this.U.element,5);this.S=!1;k=A(this.Zl,this);this.H=new b7(a,k);G(this,this.H);Uq(a,this.H.element,5);this.Z=new d7(a,this,k);
G(this,this.Z);this.Z.o(this.D.element);k=new P8(a);G(this,k);k.o(this.D.element);k=new wq(["div","ytp-chrome-top-buttons"]);G(this,k);k.o(this.D.element);var l=A(this.$l,this);this.J=new f7(a,l);G(this,this.J);Uq(a,this.J.element,5);this.aa=new g7(a,this,l,this.D.element);G(this,this.aa);this.aa.o(k.element);b.kg&&(l=new S8(a,this,this.D.element),G(this,l),l.o(k.element));l=A(this.Qm,this);this.K=new h7(a,this,l);G(this,this.K);Uq(a,this.K.element,5);this.ia=new j7(a,this,0,l,this.D.element);G(this,
this.ia);this.ia.o(k.element);k=new k7(a);G(this,k);Uq(a,k.element,3);this.F="1"==b.B?new M8(a,this,this.B):null;b.La?(l=new X5(c,A(this.Wp,this),A(this.HA,this),A(this.Vp,this)),G(this,l)):S(this,c,"click",A(function(a){this.Vp(a)||this.Wp(a)},this));
S(this,c,"touchstart",this.IA);this.L=new M6(a);G(this,this.L);this.L.subscribe("show",this.Bs,this);this.qa=!1;!b.Ab&&b.xc&&(l=new V8(a),G(this,l),Uq(a,l.element,7));l=new Z6(a);G(this,l);Uq(a,l.element,4);this.fa=a.getVideoData().videoId;this.C=null;this.na=[];this.ea=new Q(["div","",{tabindex:0}]);this.ea.P("focus",this.Wv,this);this.da=new Q(["div","",{tabindex:0}]);this.da.P("focus",this.Xv,this);l=a.Aa();l.setAttribute("aria-label",P("YTP_PLAYER_NORMAL"));switch(b.color){case "white":J(l,"ytp-color-white");
break;case "blue":J(l,"ytp-color-blue")}(this.Y=b.useTabletControls?null:new T6(a,c,this.L,this.B,k,this.O,A(this.Rn,this)))&&G(this,this.Y);S(this,a,"resize",this.Pm);S(this,a,"fullscreentoggled",this.QE);S(this,a,"presentingplayerstatechange",this.RE);S(this,a,"videodatachange",this.As);S(this,a,"videoplayerreset",this.uA);S(this,a,"autonavvisibility",this.ah,this);S(this,a,"cardstatechange",this.Wq,this);S(this,a,"minimized",this.ae,this);S(this,a,"onFrescaStateChange",this.ae,this);X8(this,d);
this.ah();this.Pm();this.Ea=[c.C,f.element,e.element,this.O.element,this.V.element]};
var ME=function(a){a.o.app.W();EH(a.o);return a.va||a.S||y6(a.H)||y6(a.K)||y6(a.J)||EH(a.o)||a.o.app.W().kl};
var Y8=function(a,b){if(!b)return!1;for(var c=0;c<a.Ea.length;c++)if(yf(a.Ea[c],b))return!1;return Xd(b,"ytp-player-content")||Xd(b,"html5-endscreen")||b==a.o.Aa()?!1:!0};
var Z8=function(a,b){if("3"==a.o.W().B){var c=oz(a.o);if((T(c,8)||T(c,4))&&(!T(c,2)||a.o.W().experiments.ka("disable_native_controls_ended"))&&(c=Wl(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1};
var NE=function(a){return!a.o.W().experiments.F&&a.o.Ja()};
var X8=function(a,b){a.B.cb(128,!(b.Za()&&!T(b,32)));var c=3==a.o.getPresentingPlayerType();a.B.cb(256,c);var c=a.o.Aa(),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"));Fb(a.na,d)||(ae(c,a.na),a.na=d,Yd(c,d));a.F&&O8(a.F,ME(a));d=a.o.W();var e=By(b);L(c,"ytp-hide-controls","1"!=d.B||e);L(c,"ytp-native-controls","3"==d.B&&!e&&!T(b,2));if(T(b,128)){a.C||
(a.C=new e6(a.o),G(a,a.C),a.C.o(c),Uq(a.o,a.C.element,4));var c=a.C,f=b.o,e=c.D.W();d=f.message;var k="embedded"==e.Ba,l=f.messageKey,m,f=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=l||e.Ab?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==l?(m="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=l||e.Ab||(m="//"+OG(e)+"/html5",l="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(m="//support.google.com/youtube/?p=player_error1",l="YTP_ERROR_GENERIC_WITH_LINK",Qx(e)&&!e.L&&
(f=!0));m&&(d=P(l,{BEGIN_LINK:'<br/><a href="'+m+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(m=0;m<c.C.length;m++)c.za(c.C[m]);c.C=[];Bq(c,"content",new L5(d));if(f)for(m=A(c.F,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=R(c,d[e],"click",m),c.C.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)};
var $8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Qf(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=$8(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};
var tfa=function(a){a=a.o.W();var b=a.V;if(At("ytp-normal-css-loaded")){var c=At("ytp-sprite-mode-css-loaded");b!=c&&Fi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};
var a9=function(){};
var Z=function(a,b){if(b<a.C){var c=b+a.D,d=a.o[c];return d===b9?a.o[c]=[]:d}d=a.A[b];return d===b9?a.A[b]=[]:d};
var c9=function(a){var b=a;a=ufa;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]||b9):this.A[c]=this.A[c]||b9};
var d9=function(a,b){Rj.call(this);var c=b;c instanceof Mh||(c=new Mh(c));var c=this.Y=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?be(e):null)){var e=new c9(e),e={el:Z(e,1),ps:Z(e,2),autonav:Z(e,3),autoplay:Z(e,4),eventid:Z(e,5),fexp:Z(e,6),fflags:Z(e,7),isHtml5MobileDevice:Z(e,8),legacyBehavior:Z(e,9),playerErrorLogFraction:Z(e,10),canWatchLater:Z(e,11),mute:Z(e,12),partnerid:Z(e,13),showinfo:Z(e,14),ss:Z(e,15),watchXlb:Z(e,16),dclk:Z(e,17),ivModule:Z(e,18),iv3Module:Z(e,19),iv3EditModule:Z(e,20),
ivInvideoUrl:Z(e,21),ivLoadPolicy:Z(e,22),atc:Z(e,23),loudness:Z(e,24),infringe:Z(e,25),subtitlesXlb:Z(e,26),ccFont:Z(e,27),ccModule:Z(e,28),ccFontsUrl:Z(e,29),cc3Module:Z(e,30),ttsurl:Z(e,31),ccAsr:Z(e,32),ccContribute:Z(e,33),ccAutoCaps:Z(e,34),ccLoadPolicy:Z(e,35),captionTracks:Z(e,36),captionAudioTracks:Z(e,37),captionTranslationLanguages:Z(e,38),defaultAudioTrackIndex:Z(e,39),cr:Z(e,40),hostLanguage:Z(e,41),hl:Z(e,42),enablecsi:Z(e,43),csiPageType:Z(e,44),c:Z(e,45),cbr:Z(e,46),cbrver:Z(e,47),
cos:Z(e,48),cosver:Z(e,49),cplatform:Z(e,50),cbrand:Z(e,51),cmodel:Z(e,52),cnetwork:Z(e,53),isRtl:Z(e,54),enhanceModule:Z(e,55),enhanceXlb:Z(e,56),regionModule:Z(e,57),previewSplitMode:Z(e,58),status:Z(e,59),reason:Z(e,60),errorcode:Z(e,61),errordetail:Z(e,62),apiaryHost:Z(e,63),apiaryHostFirstparty:Z(e,64),gapiHintOverride:Z(e,65),gapiHintParams:Z(e,66),innertubeApiKey:Z(e,67),innertubeApiVersion:Z(e,68),innertubeContextClientVersion:Z(e,69),loaderurl:Z(e,70),multicameraModule:Z(e,71),multicameraPreroll:Z(e,
72),multifeedMetadataList:Z(e,73),allowEmbed:Z(e,74),allowedDomains:Z(e,75),ypcItemTitle:Z(e,76),ypcItemUrl:Z(e,77),ypcItemThumbnail:Z(e,78),ypcOfferHeadline:Z(e,79),ypcOfferDescription:Z(e,80),ypcOfferId:Z(e,81),ypcOfferButtonText:Z(e,82),ypcFullVideoMessage:Z(e,83),ypcModule:Z(e,84),ypcVid:Z(e,85),ypcLicenseCheckerModule:Z(e,86),heartbeatServerUrl:Z(e,87),ypcLicenseSessionToken:Z(e,88),purchaseId:Z(e,89),heartbeatToken:Z(e,90),heartbeatInterval:Z(e,91),heartbeatRetries:Z(e,92),ypcClickwrapModule:Z(e,
93),ypcClickwrapMessage:Z(e,94),livestream:Z(e,95),livePlayback:Z(e,96),authTimeout:Z(e,97),hlsdvr:Z(e,98),streaminglibModule:Z(e,99),frescaModule:Z(e,100),frescaPreroll:Z(e,101),frescaXlb:Z(e,102),enableCardio:Z(e,103),enableCardioBeforePlayback:Z(e,104),liveChunkReadahead:Z(e,105),innertubeClientVersion:Z(e,106),adHost:Z(e,107),adHostTierId:Z(e,108),coreDbp:Z(e,109),googleCustAge:Z(e,110),googleCustGender:Z(e,111),pyvAdChannel:Z(e,112),showPyvInRelated:Z(e,113),tagForChildDirected:Z(e,114),playerWide:Z(e,
115),enablesizebutton:Z(e,116),bannerUrl:Z(e,117),profilePicture:Z(e,118),channelTitle:Z(e,119),spacecastAddress:Z(e,120),timestamp:Z(e,121),fmtList:Z(e,122),urlEncodedFmtStreamMap:Z(e,123),adaptiveFmts:Z(e,124),licenseInfo:Z(e,125),idup:Z(e,126),dashmpd:Z(e,127),hlsvp:Z(e,128),hlsFormats:Z(e,129),probeUrl:Z(e,130),storyboardSpec:Z(e,131),liveStoryboardSpec:Z(e,132),ismb:Z(e,133),surveySmartpixelUrl:Z(e,134),surveycreativedata:Z(e,135),threedXlb:Z(e,136),threedModule:Z(e,137),threedConverted:Z(e,
138),approxThreedLayout:Z(e,139),threedLayout:Z(e,140),t:Z(e,141),token:Z(e,142),noGetVideoLog:Z(e,143),tmi:Z(e,144),plid:Z(e,145),pltype:Z(e,146),ptchn:Z(e,147),ptk:Z(e,148),oid:Z(e,149),idpj:Z(e,150),ldpj:Z(e,151),userAge:Z(e,153),userGender:Z(e,154),sw:Z(e,155),remarketingUrl:Z(e,156),ppvRemarketingUrl:Z(e,157),rmktenabled:Z(e,158),baseurl:Z(e,159),videostatsPlaybackBaseUrl:Z(e,160),subscribed:Z(e,161),engaged:Z(e,162),vid:Z(e,163),uid:Z(e,164),aid:Z(e,165),focenabled:Z(e,166),socialenabled:Z(e,
167),ytfocenabled:Z(e,168),ytfochistoryenabled:Z(e,169),ssrt:Z(e,170),delay:Z(e,171),cl:Z(e,172),osid:Z(e,173),vm:Z(e,174),videoId:Z(e,175),title:Z(e,176),lengthSeconds:Z(e,177),keywords:Z(e,178),ucid:Z(e,179),allowRatings:Z(e,180),avgRating:Z(e,181),viewCount:Z(e,182),author:Z(e,183),thumbnailUrl:Z(e,184),isListed:Z(e,185),liveDefaultBroadcast:Z(e,186),vq:Z(e,187),watermark:Z(e,188),accountPlaybackToken:Z(e,189),watchAjaxToken:Z(e,190),yvaXlb:Z(e,191),yvaModule:Z(e,192),yvaPreroll:Z(e,193),ypcXlb:Z(e,
194),authuser:Z(e,195),pageid:Z(e,196),userDisplayName:Z(e,197),userDisplayImage:Z(e,198),playlistTitle:Z(e,199),playlistLength:Z(e,200),index:Z(e,201),iurl:Z(e,202),iurlmq:Z(e,203),iurlhq:Z(e,204),iurlsd:Z(e,205),iurlmaxres:Z(e,206),iurlWebp:Z(e,207),iurlmqWebp:Z(e,208),iurlhqWebp:Z(e,209),iurlsdWebp:Z(e,210),iurlmaxresWebp:Z(e,211),start:Z(e,212),end:Z(e,213),resume:Z(e,214),of:Z(e,215),list:Z(e,216),q:Z(e,217),referrer:Z(e,218),sdetail:Z(e,219),sourceid:Z(e,220),externalList:Z(e,221),forcedExperiments:Z(e,
222),cctp:Z(e,223),adformat:Z(e,224),listtype:Z(e,225),privembed:Z(e,226),afvInstreamMax:Z(e,227),adLanguageIso6392:Z(e,228),adTag:Z(e,229),afvAdTagRestrictedToInstream:Z(e,230),maxDynamicAllocationAdTagLength:Z(e,231),asLaunchedInCountry:Z(e,232),adFlags:Z(e,233),adPreroll:Z(e,234),aftv:Z(e,235),invideo:Z(e,236),dynamicAllocationAdTag:Z(e,237),gutTag:Z(e,238),pyvInRelatedCafeExperimentId:Z(e,239),afvAdTag:Z(e,240),nJ:Z(e,241),loeid:Z(e,242),adDevice:Z(e,243),cafeExperimentId:Z(e,245),adsenseVideoDocId:Z(e,
246),fw:Z(e,247),adSlots:Z(e,248),shortform:Z(e,249),tpasPartnerId:Z(e,250),instream:Z(e,251),trueview:Z(e,252),midrollFreqcap:Z(e,253),mpvid:Z(e,254),mpu:Z(e,255),afv:Z(e,256),tpasAdTypeId:Z(e,257),tpasVideoId:Z(e,258),sffb:Z(e,259),contentOwnerName:Z(e,260),afvMergeEnabled:Z(e,261),excludedAds:Z(e,262),noAfvInstream:Z(e,263),adAge:Z(e,264),adGender:Z(e,265),adLoggingFlag:Z(e,266),showContentThumbnail:Z(e,267),cid:Z(e,268),afvInvideoAdTag:Z(e,269),allowHtml5Ads:Z(e,270),supportedWithoutAds:Z(e,271),
instreamLong:Z(e,272),adBreaks:Z(e,273),afcRmFallback:Z(e,275),allowAdInAutoplay:Z(e,276),c4:Z(e,277),dbp:Z(e,278),fqsf:Z(e,279),gptMigration:Z(e,280),xfp:Z(e,281),midrollPrefetchSize:Z(e,282),trueviewLactt:Z(e,283),xfpTag:Z(e,284),advideo:Z(e,285),ad3Module:Z(e,286),vmap:Z(e,287),serverPrefetchedVast:Z(e,288),amsBaseTag:Z(e,289),fadeOutStartMilliseconds:Z(e,290),fadeOutDurationMilliseconds:Z(e,291),fadeInStartMilliseconds:Z(e,292),fadeInDurationMilliseconds:Z(e,293),applyFadeOnMidrolls:Z(e,294),
adModule:Z(e,295),pla:Z(e,296),plaAdTag:Z(e,297),vastAdsModule:Z(e,298),forcedSkipOffset:Z(e,299),enabledEngageTypes:Z(e,300),freewheelAdTag:Z(e,301),postAdRequests:Z(e,302),enablejsapi:Z(e,303),ssl:Z(e,304),baseYtUrl:Z(e,306),controls:Z(e,307),disablekb:Z(e,308),jsapicallback:Z(e,309),svt:Z(e,310),canplaylive:Z(e,311),storeUserVolume:Z(e,312),useMediaVolume:Z(e,313),sslStream:Z(e,314),dash:Z(e,315),liveStartWalltime:Z(e,316),oauthToken:Z(e,317),visitorData:Z(e,318),vvt:Z(e,319),osig:Z(e,320),paygated:Z(e,
321),videoMastheadAdQuartileUrls:Z(e,322),tvList:Z(e,323),pyvViewBeaconUrl:Z(e,324),pyvQuartile25BeaconUrl:Z(e,325),pyvQuartile50BeaconUrl:Z(e,326),pyvQuartile75BeaconUrl:Z(e,327),pyvQuartile100BeaconUrl:Z(e,328),pyvBillableUrl:Z(e,329),rco:Z(e,330),cco:Z(e,331),feature:Z(e,332),isFling:Z(e,333),ctrl:Z(e,334),ytr:Z(e,335),ytrcc:Z(e,336),startseconds:Z(e,337),sentiment:Z(e,338),spacecastFormatMap:Z(e,339),spacecastAdaptiveFormats:Z(e,340),suggestedquality:Z(e,341),rvs:Z(e,342),urlEncodedThirdPartyMedia:Z(e,
343),vssCredentialsToken:Z(e,344),vssCredentialsType:Z(e,345),ypcGid:Z(e,346),ypcPreview:Z(e,347),ypcOrigin:Z(e,348),requiresPurchase:Z(e,349),mdx:Z(e,350),retryneterr:Z(e,351),itct:Z(e,352),ypcOverlayTimeout:Z(e,353),app:Z(e,354),cweb:Z(e,355),pyvConvUrl:Z(e,356),cver:Z(e,357),on3g:Z(e,358),autohide:Z(e,359),useNativeControls:Z(e,360),useTabletControls:Z(e,361),codeDbp:Z(e,362),rel:Z(e,363),attrib:Z(e,364)},f={};for(d in e){var k=e9[d]?e9[d]:d.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();f[k]=
e[d]}d=f;break a}d=null}var l;if(d){c=c.args;e=[];for(l in c)vfa[l]||(d.hasOwnProperty(l)?typeof c[l]!=typeof d[l]?e.push("wrong type. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):c[l]!==d[l]&&e.push("values differ. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):e.push("missing. key ["+l+" ]: ("+typeof c[l]+") "+c[l]));l=e}else l=[];c=Math.floor(Math.random()*l.length);l=l.slice(c).concat(l.slice(0,c));for(c=0;c<l.length;c++)Fi(Error("Discrepancy in legacy config: "+
l[c]));l=this.Y.args||{};this.X=new wG(l);G(this,this.X);this.ub=xu("detailpage"==this.X.Ba&&"blazer"!=this.X.o||"books"==this.X.o,l.enablesizebutton);this.na=xu(!1,l.player_wide);this.O=this.X.fb&&xu(!1,l.external_list);this.Mb=this.X.fb&&xu(!1,l.external_play_video);this.ma=new zv(this);G(this,this.ma);this.M=new lH(this);G(this,this.M);this.Va=new lH(this,1);G(this,this.Va);this.F=new P5(this);G(this,this.F);this.F.subscribe("resize",this.bD,this);this.K=1;this.La={};this.X.storeUserVolume?(l=
ij("yt-player-volume")||{},c=l.volume,l={volume:(0,window.isNaN)(c)?100:ke(Math.floor(c),0,100),muted:!!l.muted}):l={volume:100,muted:this.X.mute};this.U=l;this.ca=this.X.fb?new kH(this,1):new iH(this,1);G(this,this.ca);this.ia=this.B=null;this.Ca={};l=this.X;c=new XJ;DG(l)&&(c.B=!0,c.A=.1);l.Ua&&(c.o=l.Ua/8);this.Ea=new NJ(c);this.Qa={internalvideodatachange:this.ty,liveviewshift:this.ZC,playbackready:this.uy,playbackstarted:this.vy,statechange:this.wy,signatureexpired:this.SA};l=new YJ;c=this.M;
l.A!=c&&(ZJ(l),l.F={},l.A=c);c={};c.loaded=A(this.Hp,this);c.unloaded=A(this.Ip,this);c.destroyed=A(this.yl,this);c.command_pause=f9(this.pauseVideo,this);c.command_play=f9(this.Re,this);c.command_seek=f9(this.Wf,this);c.command_redirect_controls=A(this.rr,this);c.command_stop_redirect_controls=A(this.$i,this);c.publish_external_event=A(this.Oi,this);l.G=c;this.W().J.subscribe("vast_info_card_add",pa(l.K,"vast_info_card_add"),l);this.C=l;G(this,this.C);this.J=new J_(this.X,"",this.C);l=new N1(this.X,
1,this.J,this.F,A(this.R,this));g9(this,l,this.Qa);this.o=l;this.o.ha=this.Ea;this.rb={airplayactivechange:this.iy,airplayavailabilitychange:this.jy,beginseeking:this.WC,endseeking:this.XC,internalaudioformatchange:this.zy,internalvideodatachange:this.dD,internalvideoformatchange:this.tB,playbackstalledatstart:this.YA,progresssync:this.aD,seekto:this.cD,onLoadProgress:this.Mz,onVideoProgress:this.vB,playbackready:this.qA,statechange:this.$C,connectionissue:this.dz,heartbeatparams:this.YC,videoelementevent:this.eD};
this.L=this.D=null;this.Ua=this.$a=-1;this.fa=this.H=this.G=null;this.da={};this.qa=null;this.ib=new Ud(this.F.qh,16,this.F);G(this,this.ib);this.Ga=!1;this.Z=!0;this.va=this.A=null;this.V=1;this.ha=null;this.Nb=this.bb=!1;this.ob=null;this.aa=0;this.Ia=new h6(this.F.element);G(this,this.Ia);this.ab=0;this.subscribe("crn_"+d9.B,this.qy,this);this.subscribe("crx_"+d9.B,this.ry,this);this.subscribe("crn_"+d9.A,this.pp,this);this.subscribe("crx_"+d9.A,this.pp,this);this.F.initialize(a);Ah=this.X.V;l=
new Aw(this.Y.args);cx(l)&&(this.o.Xg(l,A(this.oj,this)),Mx(this.X)&&(c=l.videoId,c=(d=ij("yt-player-restore-playhead"))?d[c]:void 0,c&&(l.startSeconds=c)),jj("yt-player-restore-playhead"),(this.X.Ca||this.X.Bd&&this.X.experiments.O)&&S1(this.o));this.J.A("fs",void 0);l=this.F;l.isDisposed();c=l.app.W();c.H||l.addClass("tag-pool-enabled");c.Ab&&l.addClass("house-brand");"gvn"==c.o&&l.addClass("ytp-gvn");l.da?(l.L=Ii("yt-dom-content-change",l.af,l),R(l,window,"resize",l.af,l)):l.aa?R(l,window,"resize",
l.af,l):(c=Fu()?A(l.cv,l):A(l.af,l),l.L=Ci(c,250));l=this.ca;l.o=this.F.element;for(var m in l.B)l.o[m]=l.B[m];for(m in l.C)l.o[m]=l.C[m];m=Jh("fullscreenchange");"msfullscreenchange"==m&&(m="MSFullscreenChange");m&&S(this.ma,window.document,m,this.zz);S(this.ma,window,"resize",this.GA);l=this.Y.args;h9(this);m=l5(this);this.Oa("onVolumeChange",this.U);l&&px(l)&&((c=Mx(this.X))&&!this.O&&(l.fetch=0),i9(this,l),c&&!this.O?j9(this):cx(m)||(l=this.A,c=A(this.Lp,this),l.G=c,l.F&&Ai(l.G,0)));if(l=this.Y.args.jsapicallback)ha(l)||
(l=t(l)),l&&f9(A(l,r,this.X.re),r);this.X.ab||(kp("embedded"==this.X.Ba),this.X.rg=SG(this.X)&&!lb(vp()));k9(this,this.o);l=wt(this.X.K);"fmt.noneavailable"==l?tJ(this.o,l,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==l?tJ(this.o,l,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):this.X.Ca&&cx(m)?l9(this):"leanback"!=this.X.Ba&&m9(this);this.ea=new W8(this.M);G(this,this.ea);zH(this.Va,"init")};
var h9=function(a){a.B=r5.getTag(!0,!a.X.K);a.ia=a.B;a.D&&b2(a.D,a.B);py(a.B,a.V);a.X.useMediaVolume?(a.ha&&a.ma.za(a.ha),a.ha=S(a.ma,a.B,"volumechange",a.Uz)):a.B.setVolume(a.U.volume,a.U.muted);mfa(a.F,a.B);a=a.X.sc=a.B;a.src||a.load()};
var n9=function(a){if(a.B){a.ha&&(a.ma.za(a.ha),a.ha=null);a.D&&c2(a.D);var b=a.F;b.A&&(qf(b.A),b.A=null);a.X.sc=null;r5.releaseTag(a.B);a.B=null}};
var Yq=function(a,b){a.X.H?(a.fa&&(Tf(a.B,a.fa.left,a.fa.top),eg(a.B,we(a.fa)),a.fa=null),Zq(a.B),c2(a.D),b2(a.D,a.B),py(a.B,a.V)):r5.releaseTag(b)};
var k9=function(a,b){a.D!=b&&(a.D&&(ZJ(a.C),pq(a,"cuerangesremoved",a.D.F.o.o||[]),o9(a)),b!=a.o&&(a.Ca[b.O]=b),a.D=b,b.ha=a.Ea,a.B&&b2(b,a.B),g9(a,b,a.rb),p9(a,b,b.getVideoData()),b.da.o&&q9(a,"dataloaded",b,b.getVideoData()),pq(a,"cuerangesadded",a.D.F.o.o||[]),ty(b.getPlayerState())&&f2(b))};
var g9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
var o9=function(a){c2(a.D);var b=a.D,c=a.rb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.D;b!=a.o&&(c=b.O,a.Ca[c]==b&&delete a.Ca[c]);a.D=null};
var oq=function(a,b){return b?1==b?a.o:a.Ca[b]||null:a.D};
var r9=function(a){var b=a.C,c=FJ();E(c,b.J,b);a.R("videoready",a.getVideoData())};
var s9=function(a){!a.H&&a.Va.W().rg&&(a.H=new J5(a),t9(a,a.H));if(a.H){var b=Cp();K5(a.H,vp(),b);var c=a.H;c&&!c.J&&c.Wa(a.Va)&&c.create();b&&a.H.load()}};
var t9=function(a,b){G(a,b);b.subscribe("loaded",a.Hp,a);b.subscribe("unloaded",a.Ip,a);b.subscribe("command_pause",f9(a.pauseVideo,a));b.subscribe("command_play",f9(a.Re,a));b.subscribe("command_seek",f9(a.Wf,a));b.subscribe("command_redirect_controls",a.rr,a);b.subscribe("command_stop_redirect_controls",a.$i,a);b.subscribe("publish_external_event",a.Oi,a)};
var u9=function(a,b){b&&b.J&&("ad"==b.sa&&ae(a.F.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
var l5=function(a){return a.o.getVideoData()};
var m9=function(a){a.R("initializingmode");v9(a,2)};
var l9=function(a){if(T(a.o.getPlayerState(),128))return!1;a.R("initializingmode");k9(a,a.o);v9(a,3);var b;(b=!a.X.H)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(n9(a),h9(a),b2(a.o,a.B));T1(a.o);if(T(a.o.getPlayerState(),128))return!1;w9(a,3);return a.Nb=!0};
var x9=function(a){return SG(a.X)&&!!Cp()};
var f9=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);Ai(function(){a.apply(b||this,c)},0)}};
var y9=function(a,b){if(!(0,window.isNaN)(b)&&a.B){var c=1,c=a.X.U?z9:[1],c=1>b?eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b});
a.V!=c&&(a.V=c,a.o==a.D&&py(a.B,c),a.R("onPlaybackRateChange",c))}};
var A9=function(a,b){var c=oq(a,b);return c?c.Dm():a.getVideoData().U};
var B9=function(a,b,c,d){if(a=oq(a,c))d=d||b,b=Wt(b,d,!0),gj("yt-player-quality",d,604800),l2(a,"m",b)};
var C9=function(a,b){var c=oq(a,b);return c?c.Yf():0};
var D9=function(a,b){var c=p2(a.o,b);if(a.D&&a.D!=a.o){var d=p2(a.D,b),e;for(e in d)c["ad_"+e]=d[e]}(d=E9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Va.uj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return de(c)};
var F9=function(a,b){return 3==a.getPresentingPlayerType()?Dy(a.H.O):2==b?a.Ua:a.$a};
var G9=function(a){u9(a,a.G);u9(a,a.H);a.bb=!1;a.$i();y9(a,1);a.La={};a=a.J;var b=a.B;b.C={};b.B={};a.C=!1};
var p9=function(a,b){ZJ(a.C);py(a.B,a.o==a.D?a.V:1);a.Oa("videoplayerreset",b)};
var q9=function(a,b,c,d){if(a.B){if("dataloaded"==b)if(IG(c.W(),d.C),a.D==a.o){a.X.ab||kp("embedded"==a.X.Ba);var e=x9(a),f;if(f=!e)f=l5(a).no&&!a.X.isMobile;if(f){var k="YTP_DEVICE_FALLBACK";S5||ut()||mt("xbox")&&mt("trident")||tt()||(k="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");tJ(a.o,"html5.unsupportedads",k,void 0)}else if(f=l5(a),!dx(f)||e||Sw(a.o.o)){ex(f);e&&v9(a,6);e=!1;!a.G&&k5.Wa(a)&&(a.G=new k5(a),a.G&&t9(a,a.G),e=!0);try{(k=a.G)&&!k.J&&k.Wa(a.Va)&&k.create()}catch(l){Fi(l),a.o&&
a.o.Yi("ad")}e&&(e=a.G,f=l5(a),k=oq(a),f.subscribe("cuepointupdated",e.iz,e),e.da=f,e=p5(e),null!=e&&(e.H=k),a.G.subscribe("overlay_ad_open",pa(a.Kq,!0),a),a.G.subscribe("overlay_ad_close",pa(a.Kq,!1),a));s9(a);r9(a)}else tJ(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else r9(a);1==c.O&&(a.getVideoData().Ih?(k=a.B,k.Wj=!0,k.muted=!0):(a.B.Wj=!1,H9(a,a.U)),a.getVideoData().Fa&&!a.X.ig&&tJ(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),k=HA?a.X.Cd:a.getVideoData().ke,
ex(d)&&(d.na||d.Qa||d.D.focEnabled||d.D.rmktEnabled||k)&&(k=a.getVideoData(),I9(a,"part2viewed",1,0x8000000000000),I9(a,"engagedview",Math.max(1,1E3*k.Se),0x8000000000000),k.Fa||(k=1E3*k.lengthSeconds,I9(a,"videoplaytime25",.25*k,k),I9(a,"videoplaytime50",.5*k,k),I9(a,"videoplaytime75",.75*k,k),I9(a,"videoplaytime100",k,0x8000000000000),I9(a,"conversionview",k,0x8000000000000))));a.Oa("videodatachange",b,d,c.O)}};
var J9=function(a){if(!a.X.experiments.ka("disable_webgl_hack")){var b=!1,c=a.getVideoData();c&&c.A&&oq(a).Za()&&(b=qr[c.A.video.quality],b=1440<=b||1080<=b&&30<c.A.video.fps);b?i6(a.Ia):j6(a.Ia)}};
var E9=function(a){a=a.Ia;var b=!a.o,c="";i6(a);if(a.A)try{a.A.getExtension("WEBGL_debug_renderer_info"),c=a.A.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(d){}b&&j6(a);return c};
var j9=function(a){var b=K9();if(b)if(b.list){if(a.A&&a.A.D.toString()==b.list)if(0<=b.index){var c=b.video;a.M.Ja()&&((c=c[a.A.o])&&c.encrypted_id!=a.A.sb().videoId||(b.index=a.A.o));vx(a.A,b);a.va&&L9(a,a.va)}else a.va=null}else a.dk()};
var i9=function(a,b){if(a.A){a.A.unsubscribe("error",a.dk,a);Nb(a.A);a.A=null;var c=pH(a.C,"playlist");c&&(pb(a.C.o,c),c.destroy())}b&&(a.O&&(b.fetch=0),a.A=new jx(b),a.A.subscribe("error",a.dk,a))};
var I9=function(a,b,c,d){b in a.La||(c=new iq(c,d,{id:b,priority:1}),c.o=d9.A,a.o.F.jb([c]),a.La[b]=c)};
var v9=function(a,b){b!=a.K&&(2==b&&(w9(a,-1),w9(a,5)),a.K=b,a.R("appstatechange",b))};
var w9=function(a,b){a.D&&2==a.D.O?a.Ua!=b&&(a.Ua=b,a.Gf("onAdStateChange",b)):a.$a!=b&&(a.$a=b,a.Gf("onStateChange",b))};
var M9=function(a,b,c){var d=new Aw(b);b&&px(b)?(Mx(a.X)&&!a.O&&(b.fetch=0),i9(a,b)):a.A&&i9(a,null);a.O=xu(!1,b.external_list);Mx(a.X)&&!a.O&&j9(a);return N9(a,d,c)};
var O9=function(a,b){a.L&&a.L.getVideoData().videoId==b.videoId||(b.$a=!0,a.L||(a.L=new N1(a.X,1,a.J,a.F,A(a.R,a)),a.L.ha=a.Ea),a.L.Xg(b,A(a.oj,a)),S1(a.L,!0))};
var N9=function(a,b,c){if(!cv("_start",a.J.o)){var d=a.J.o;dv("yt_sts","p",d);Yu("_start",void 0,d);a.J.info("srt",0)}if(a.L&&a.L.getVideoData().videoId==b.videoId){d=a.L;a.L=null;b=d;c=a.o;var e=a.Qa,f;for(f in e)c.unsubscribe(f,e[f],a);a.o.dispose();a.o=b;g9(a,b,a.Qa);G9(a)}else{d=oq(a,c);if(!d)return!1;a.ib.stop();P9(a,c);d.Xg(b,A(a.oj,a))}if(!R1(d))return!1;a.Ga&&(d.ab=!1,a.Ga=!1);if(d==a.o)return v9(a,1),l9(a);T1(d);return!0};
var Q9=function(a,b,c){c=oq(a,c);b&&c==a.o&&(c.getVideoData().Xf=!0)};
var R9=function(a,b,c){var d=oq(a,c);d&&(P9(a,c),d.Xg(b,A(a.oj,a)),!a.X.experiments.ka("legacy_cue_video_behavior")||R1(d))&&(IG(d.W(),b.C),d==a.o&&(v9(a,1),m9(a)))};
var S9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");if(a.M.Ja()||"detailpage"!=a.X.Ba){c=a.J;var e=c.B;e.C={};e.B={};c.C=!1;a.J.reset();d?(b={video_id:b,list:d},a.Z=!1,T9(a,b,void 0,void 0,void 0)):M9(a,{video_id:b},1)}else a.Mb||"gaming"==a.X.o?a.R("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.X.getVideoUrl(b,d),d=c||{},d.lact=RA(),a.X.experiments.ka("send_presence_signal_vis_desktop")&&(d.vis=hH(a.X)),t("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?
window.spf.navigate(b):Gx(b))};
var T9=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 f=c[e];b[f]&&(d[f]=b[f])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},y(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;i9(a,b);b=a.A;a=A(a.Lp,a);b.G=a;b.F&&Ai(b.G,0)};
var by=function(a){Mx(a.X)&&!a.O&&j9(a);return!(!a.A||!a.A.hasNext())};
var U9=function(a,b){a.Oa("autonavcancel",b)};
var V9=function(a,b){if(a.O&&!a.M.Ja())a.R("onPlaylistNext");else if(a.A)Mx(a.X)&&!a.M.Ja()?L9(a,"yt.www.watch.lists.next"):a.A.F?a.A.hasNext(b)&&N9(a,sx(a.A,b),1):(sx(a.A,b),a.Z=!1);else if(Tx(a.X,a.getVideoData(),a.A)&&oq(a,1).getVideoData().H){var c=O(oq(a,1).getVideoData().H,zx)[0];S9(a,c.sb().videoId,c.aa,c.Te())}};
var W9=function(a,b){if(a.O&&!a.M.Ja())a.R("onPlaylistPrevious");else if(a.A)if(Mx(a.X)&&!a.M.Ja())L9(a,"yt.www.watch.lists.prev");else if(a.A.F){var c=a.A;(c.H||b||0<=c.o-1)&&N9(a,ux(a.A,b),1)}else ux(a.A),a.Z=!1};
var L9=function(a,b){var c=t(b);if(c){var d=K9();d&&d.list&&c();a.va=null}else a.va=b};
var X9=function(a,b){a.O&&!a.M.Ja()?a.R("onPlaylistIndex",b):a.A&&(a.A.F?N9(a,a.A.sb(b),1):a.Z=!1,tx(a.A,b))};
var K9=function(){var a=t("yt.www.watch.lists.getState");return a?a():null};
var Y9=function(a,b,c,d,e,f){b={id:b};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new iq(1E3*c,1E3*d,b);c.o=d9.B;Z9(a,[c],1);return!0};
var Z9=function(a,b,c){var d=oq(a,c);d&&(d.F.jb(b),c&&a.getPresentingPlayerType()!=c||pq(a,"cuerangesadded",b))};
var $9=function(a){var b=I(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
var H9=function(a,b,c){a.U=b;c&&a.X.storeUserVolume&&!a.X.useMediaVolume&&!b.unstorable&&gj("yt-player-volume",b,2592E3);a$(a);a.X.useMediaVolume||(b=fc(b),a.X.storeUserVolume||(b.unstorable=!0),a.Oa("onVolumeChange",b))};
var a$=function(a){var b=a.getVideoData();b.Ih||a.B.setVolume(a.U.volume*(a.X.useMediaVolume?Aw.o:b.Hh),a.U.muted)};
var b$=function(a,b){var c=!!b,d=!!a.ab!=c;a.ab=b;d&&(a.J.A("fsc"),a.X.Kg=c,a.F.qh(),a.Oa("fullscreentoggled",c),d=l5(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId},a.Va.ce()&&(c.listId=a.Va.ce()),a.X.experiments.ka("new_stop_video2")&&(c.time=a.getCurrentTime()),a.R("onFullscreenChange",c))};
var pq=function(a,b,c){a.R(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.Oi(d,O(c,jq))};
var c$=function(a,b){if(a.X.experiments.ka("new_stop_video2")){var c=a.o.getVideoData(),c=new Aw({video_id:a.o.getVideoData().videoId,oauth_token:c.oauthToken});R9(a,c,1)}else P9(a,b)};
var P9=function(a,b){Wu(a.aa);a.aa=0;var c=oq(a,b);c&&1!=a.K&&2!=a.K&&(ZJ(a.C),1==b&&u9(a,a.G),a2(c),a.X.experiments.ka("legacy_cue_range_behavior2")||(pq(a,"cuerangesremoved",a.D.F.o.o||[]),c.F.reset()))};
var d$=function(a,b){if(HH(a.Va)){var c=a.da.play_pause?a.qa:null;c?c.Td("control_play"):a.Re(b)}};
var e$=function(a,b,c,d,e){var f=oq(a,e);if(!f||2!=f.O&&!gx(f.getVideoData()))(f=a.da.seek?a.qa:null)?f.Td("control_seek",b):a.Wf(b,c,d,e)};
var f$=function(a,b,c){a.ub=b;a.na=c;a.Oa("sizestylechange",b,c);a.X.experiments.ka("efficient_resize")&&a.F.qh()};
var uH=function(a,b){if(a.M.Ja()!=b)if(Kh())if(b){var c=a.F.element,d=Hh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Hh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],window.document))&&c.call(window.document);else b$(a,b?2:0)};
var tH=function(a,b,c,d,e){c=a.X.fb&&a.G&&b==a.G.sa?a.G.ge(c,d):(a.X.fb||e)&&a.H&&b==a.H.sa?a.H.ge(c,d):b&&c?(a=pH(a.C,b))?a.ge(c,d):null:null;return c};
var g$=function(a,b,c){if(b){if(a.X.fb&&a.G&&b==a.G.sa)return a.G.Ve();if((a.X.fb||c)&&a.H&&b==a.H.sa)return a.H.Ve()}else return b=cK(a.C),a.X.fb&&a.G&&b.push(a.G.sa),(a.X.fb||c)&&a.H&&b.push(a.H.sa),b;return cK(a.C,b)};
var An=An||{},r=this,la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,I=Date.now||function(){return+new Date};B(sa,Error);sa.prototype.name="CustomError";var Xe;var Ta=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Aa=/&/g,Ba=/</g,Ca=/>/g,Da=/"/g,Ea=/'/g,Fa=/\x00/g,za=/[\x00&<>"']/,Ka=/&([^;\s<&]+);?/g,dn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},cn={"'":"\\'"},Qa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Xa=2147483648*Math.random()|0;var kb=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(y(a))return y(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},wfa=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(y(a))return y(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},E=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},$d=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=[],f=0,k=y(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e},O=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),f=y(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e},me=Array.prototype.reduce?function(a,b,c,d){d&&(b=A(b,d));
return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
E(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},Ih=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=y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1},Gg=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=y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};F.prototype.Ta=!1;F.prototype.isDisposed=function(){return this.Ta};
F.prototype.dispose=function(){this.Ta||(this.Ta=!0,this.T())};
F.prototype.T=function(){if(this.Da)for(;this.Da.length;)this.Da.shift()()};var ic="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");kc.prototype.stopPropagation=function(){this.A=!0};
kc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.uq=!1};mc[" "]=w;var pc;a:{var h$=r.navigator;if(h$){var i$=h$.userAgent;if(i$){pc=i$;break a}}pc=""};var Lf=qc(),wc=oc("Trident")||oc("MSIE"),vc=oc("Edge"),pF=vc||wc,uc=oc("Gecko")&&!(Ma(pc,"WebKit")&&!oc("Edge"))&&!(oc("Trident")||oc("MSIE"))&&!oc("Edge"),xc=Ma(pc,"WebKit")&&!oc("Edge"),S5=xc&&oc("Mobile"),IM=oc("Macintosh"),lL=oc("Android"),bL=sc(),cL=oc("iPad"),Bc=function(){if(Lf&&r.opera){var a;var b=r.opera.version;try{a=b()}catch(c){a=b}return a}a="";(b=tc())&&(a=b?b[1]:"");return wc&&(b=yc(),b>(0,window.parseFloat)(a))?String(b):a}(),Ac={},j$=r.document,Yf=j$&&wc?yc()||("CSS1Compat"==j$.compatMode?
(0,window.parseInt)(Bc,10):5):void 0;var Xc=!wc||9<=Yf,xfa=wc&&!zc("9");!xc||zc("528");uc&&zc("1.9b")||wc&&zc("8")||Lf&&zc("9.5")||xc&&zc("528");uc&&!zc("8")||wc&&zc("9");var lda="ontouchstart"in r||!!(r.document&&window.document.documentElement&&"ontouchstart"in window.document.documentElement)||!(!r.navigator||!r.navigator.msMaxTouchPoints);B(Cc,kc);
Cc.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?uc&&(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()};
Cc.prototype.stopPropagation=function(){Cc.N.stopPropagation.call(this);this.o.stopPropagation?this.o.stopPropagation():this.o.cancelBubble=!0};
Cc.prototype.preventDefault=function(){Cc.N.preventDefault.call(this);var a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,xfa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Fc="closure_listenable_"+(1E6*Math.random()|0),Hc=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=Lc(e,b,c,d);return-1<b?(Ic(e[b]),qb(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(H,F);H.prototype[Fc]=!0;h=H.prototype;h.Wg=function(a){this.ia=a};
h.addEventListener=function(a,b,c,d){Oc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){Zc(this,a,b,c,d)};
h.$=function(a){var b,c=this.ia;if(c){b=[];for(var d=1;c;c=c.ia)b.push(c),++d}c=this.Qa;d=a.type||a;if(y(a))a=new kc(a,c);else if(a instanceof kc)a.target=a.target||c;else{var e=a;a=new kc(d,c);hc(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.A&&0<=k;k--)f=a.currentTarget=b[k],e=ed(f,d,!0,a)&&e;a.A||(f=a.currentTarget=c,e=ed(f,d,!0,a)&&e,a.A||(e=ed(f,d,!1,a)&&e));if(b)for(k=0;!a.A&&k<b.length;k++)f=a.currentTarget=b[k],e=ed(f,d,!1,a)&&e;return e};
h.T=function(){H.N.T.call(this);this.removeAllListeners();this.ia=null};
h.P=function(a,b,c,d){return Kc(this.fd,String(a),b,!1,c,d)};
h.za=function(a,b,c,d){return this.fd.remove(String(a),b,c,d)};
h.removeAllListeners=function(a){return this.fd?this.fd.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};
fd.prototype.put=function(a){this.C(a);this.A<this.D&&(this.A++,a.next=this.o,this.o=a)};var kd;var td=new fd(function(){return new nd},function(a){a.reset()},100);
md.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.A=null),a.next=null);return a};
nd.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null};
nd.prototype.reset=function(){this.next=this.scope=this.o=null};var pd,rd=!1,sd=new md;Ad.prototype.reset=function(){this.context=this.A=this.B=this.o=null;this.C=!1};
var Cd=new fd(function(){return new Ad},function(a){a.reset()},100);
xd.prototype.then=function(a,b,c){return Fd(this,ha(a)?a:null,ha(b)?b:null,c)};
vd(xd);xd.prototype.cancel=function(a){0==this.o&&od(function(){var b=new Ld(a);Gd(this,b)},this)};
xd.prototype.J=function(a){this.o=0;zd(this,2,a)};
xd.prototype.K=function(a){this.o=0;zd(this,3,a)};
xd.prototype.H=function(){for(var a=null;a=Hd(this);)Id(this,a,this.o,this.G);this.F=!1};
var Pd=id;B(Ld,sa);Ld.prototype.name="cancel";B(Qd,H);h=Qd.prototype;h.enabled=!1;h.ya=null;h.dw=function(){if(this.enabled){var a=I()-this.C;0<a&&a<.8*this.o?this.ya=this.A.setTimeout(this.B,this.o-a):(this.ya&&(this.A.clearTimeout(this.ya),this.ya=null),this.$("tick"),this.enabled&&(this.ya=this.A.setTimeout(this.B,this.o),this.C=I()))}};
h.start=function(){this.enabled=!0;this.ya||(this.ya=this.A.setTimeout(this.B,this.o),this.C=I())};
h.stop=function(){this.enabled=!1;this.ya&&(this.A.clearTimeout(this.ya),this.ya=null)};
h.T=function(){Qd.N.T.call(this);this.stop();delete this.A};B(Ud,F);h=Ud.prototype;h.Ag=0;h.T=function(){Ud.N.T.call(this);this.stop();delete this.o;delete this.A};
h.start=function(a){this.stop();this.Ag=Sd(this.B,n(a)?a:this.C)};
h.Nf=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&Td(this.Ag);this.Ag=0};
h.isActive=function(){return 0!=this.Ag};
h.eo=function(){this.Ag=0;this.o&&this.o.call(this.A)};ee.prototype.nc=function(a){var b=[];fe(this,a,b);return b.join("")};
var je={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ie=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=oe.prototype;h.clone=function(){return new oe(this.x,this.y)};
h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
h.scale=function(a,b){var c=fa(b)?b:a;this.x*=a;this.y*=c;return this};h=qe.prototype;h.getWidth=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new qe(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof qe?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};
h.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};
h.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};
h.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};
h.scale=function(a,b){var c=fa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=re.prototype;h.clone=function(){return new re(this.width,this.height)};
h.aspectRatio=function(){return this.width/this.height};
h.isEmpty=function(){return!(this.width*this.height)};
h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){var c=fa(b)?b:a;this.width*=a;this.height*=c;return this};h=te.prototype;h.clone=function(){return new te(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof te?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};
h.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};
h.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};
h.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};
h.scale=function(a,b){var c=fa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var yfa={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 ze=/<[^>]*>|&[^;]+;/g,UZ=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),iR=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),gR=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]"),hR=/^http:\/\/.*/,zfa=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
fR=/\s+/,aaa=/[\d\u06f0-\u06f9]/;Ae.prototype.Ke=!0;Ae.prototype.hd=function(){return this.o};
Ae.prototype.toString=function(){return"Const{"+this.o+"}"};
var Be={};Ee.prototype.Ke=!0;var Fe={};Ee.prototype.hd=function(){return this.o};
var Afa=Ge(""),Bfa=/^[-,."'%_!# a-zA-Z0-9]+$/;He.prototype.Ke=!0;He.prototype.hd=function(){return this.o};
He.prototype.Zk=!0;He.prototype.ff=function(){return 1};
var Le=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Ie={};Me.prototype.Ke=!0;Me.prototype.hd=function(){return""};
Me.prototype.Zk=!0;Me.prototype.ff=function(){return 1};
var Ne={};Pe.prototype.Zk=!0;Pe.prototype.ff=function(){return this.A};
Pe.prototype.Ke=!0;Pe.prototype.hd=function(){return this.o};
var k$=/^[a-zA-Z0-9-]+$/,Cfa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Dfa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Qe={};Te("<!DOCTYPE html>",0);Te("",0);var hf=!wc||9<=Yf,tf=!uc&&!wc||wc&&9<=Yf||uc&&zc("1.9.1");wc&&zc("9");var xf=wc||Lf||xc;var bf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};h=Ve.prototype;h.la=function(a){return y(a)?this.o.getElementById(a):a};
h.gw=function(a,b,c){return gf(this.o,arguments)};
h.createElement=function(a){return this.o.createElement(a)};
h.appendChild=mf;h.contains=yf;var Of={},og=/[^\d]+$/,pg={cm:1,"in":1,mm:1,pc:1,pt:1},qg={em:1,ex:1};var tg="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""};rg.prototype.next=function(){throw tg;};
rg.prototype.Sb=function(){return this};h=wg.prototype;h.Ya=function(){return this.xa};
h.Ka=function(){Ag(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.A[this.o[b]]);return a};
h.Na=function(){Ag(this);return this.o.concat()};
h.ye=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(yg(this.A,c)&&this.A[c]==a)return!0}return!1};
h.equals=function(a,b){if(this===a)return!0;if(this.xa!=a.Ya())return!1;var c=b||zg;Ag(this);for(var d,e=0;d=this.o[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
h.isEmpty=function(){return 0==this.xa};
h.clear=function(){this.A={};this.be=this.xa=this.o.length=0};
h.remove=function(a){return yg(this.A,a)?(delete this.A[a],this.xa--,this.be++,this.o.length>2*this.xa&&Ag(this),!0):!1};
h.get=function(a,b){return yg(this.A,a)?this.A[a]:b};
h.set=function(a,b){yg(this.A,a)||(this.xa++,this.o.push(a),this.be++);this.A[a]=b};
h.forEach=function(a,b){for(var c=this.Na(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
h.clone=function(){return new wg(this)};
h.Sb=function(a){Ag(this);var b=0,c=this.be,d=this,e=new rg;e.next=function(){if(c!=d.be)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw tg;var e=d.o[b++];return a?e:d.A[e]};
return e};var Jg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Xg=/#|$/,Zg=/[?&]($|#)/;h=N.prototype;h.toString=function(){var a=[],b=this.C;b&&a.push(jh(b,l$,!0),":");var c=this.A;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(jh(b,l$,!0),"@"),a.push(va(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(jh(c,"/"==c.charAt(0)?Efa:Ffa,!0));(c=this.o.toString())&&a.push("?",c);(c=this.De())&&a.push("#",jh(c,Gfa));return a.join("")};
h.resolve=function(a){var b=this.clone(),c=!!a.C;c?ah(b,a.C):c=!!a.H;c?b.H=a.H:c=!!a.A;c?bh(b,a.A):c=null!=a.D;var d=a.B;if(c)ch(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(Ha(e,"./")||Ha(e,"/.")){for(var d=ta(e,"/"),e=e.split("/"),f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")):
(f.push(l),d=!0)}d=f.join("/")}else d=e}c?dh(b,d):c=""!==a.o.toString();c?eh(b,fh(a.o.toString())):c=!!a.J;c&&(b.J=a.De());return b};
h.clone=function(){return new N(this)};
h.co=function(){return this.o.toString()};
h.De=function(){return this.J};
var l$=/[#\/\?@]/g,Ffa=/[\#\?:]/g,Efa=/[\#\?]/g,kh=/[\#\?@]/g,Gfa=/#/g;h=gh.prototype;h.Ya=function(){th(this);return this.xa};
h.remove=function(a){th(this);a=vh(this,a);return xg(this.o,a)?(this.A=null,this.xa-=this.o.get(a).length,this.o.remove(a)):!1};
h.clear=function(){this.o=this.A=null;this.xa=0};
h.isEmpty=function(){th(this);return 0==this.xa};
h.ye=function(a){var b=this.Ka();return jb(b,a)};
h.Na=function(){th(this);for(var a=this.o.Ka(),b=this.o.Na(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.Ka=function(a){th(this);var b=[];if(y(a))wh(this,a)&&(b=sb(b,this.o.get(vh(this,a))));else{a=this.o.Ka();for(var c=0;c<a.length;c++)b=sb(b,a[c])}return b};
h.set=function(a,b){th(this);this.A=null;a=vh(this,a);wh(this,a)&&(this.xa-=this.o.get(a).length);this.o.set(a,[b]);this.xa++;return this};
h.get=function(a,b){var c=a?this.Ka(a):[];return 0<c.length?String(c[0]):b};
h.toString=function(){if(this.A)return this.A;if(!this.o)return"";for(var a=[],b=this.o.Na(),c=0;c<b.length;c++)for(var d=b[c],e=va(d),d=this.Ka(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+va(d[f]));a.push(k)}return this.A=a.join("&")};
h.clone=function(){var a=new gh;a.A=this.A;this.o&&(a.o=this.o.clone(),a.xa=this.xa);return a};
h.extend=function(a){for(var b=0;b<arguments.length;b++)Eg(arguments[b],function(a,b){uh(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 Ah=void 0;var Gh=xc?"webkit":uc?"moz":wc?"ms":Lf?"o":"",m$=t("yt.dom.getNextId_");if(!m$){m$=function(){return++Hfa};
q("yt.dom.getNextId_",m$,void 0);var Hfa=0};var Nh={enablejsapi:1},Oh={},Ph={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Mh.prototype.clone=function(){var a=new Mh,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ba(c)?a[b]=fc(c):a[b]=c}return a};var Uh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",n$=0<window.location.hash.indexOf("__CastInternalExtensionIds__"),o$=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm"],Ifa=["hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo","eojlgccfgnjlphjnlopmadngcgmmdgpk"],p$=["fjhoaacokmgbjemoflkofnenfaiekifl"],Jfa=["ekpaaapppgpmolpcldedioblbkmijaca",
"lhkfccafpkdlaodkicmokbmfapjadkij","ibiljbkambkbohapfhoonkcpcikdglop","enhhojjnijigcajfphajepfemndkmdlo"],q$=n$?o$.concat(Ifa):o$,Kfa=n$?Jfa.concat(p$):p$,Sh=window.navigator.presentation?q$.concat(Kfa):q$;var N6=oc("Firefox"),BG=sc()||oc("iPod"),Jw=oc("iPad"),CG=oc("Android")&&!(rc()||oc("Firefox")||qc()||oc("Silk")),Fl=rc(),Ft=oc("Safari")&&!(rc()||oc("Coast")||qc()||oc("Edge")||oc("Silk")||oc("Android"))&&!(sc()||oc("iPad")||oc("iPod"));var ii=I(),$h=null,gi=Array(50),fi=-1,hi=!1;var ti={};B(ui,F);h=ui.prototype;h.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};
h.unsubscribe=function(a,b,c){if(a=this.A[a]){var d=this.o;if(a=eb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Xb(a)}return!1};
h.Xb=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]=w):(c&&pb(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
h.R=function(a,b){var c=this.A[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.F)for(e=0;e<c.length;e++){var k=c[e];vi(this.o[k+1],this.o[k+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f;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.Xb(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.A[a];b&&(E(b,this.Xb,this),delete this.A[a])}else this.o.length=0,this.A={}};
h.Ya=function(a){if(a){var b=this.A[a];return b?b.length:0}a=0;for(b in this.A)a+=this.Ya(b);return a};
h.T=function(){ui.N.T.call(this);this.clear();this.B.length=0};var yi=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",yi,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Hi=window.yt&&window.yt.msgs_||t("window.ytcfg.msgs")||{};q("yt.msgs_",Hi,void 0);
var ra=function(a,b){var c=b||{},d=a in Hi?Hi[a]:a;if(d)for(var e in c)var f=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),f),d=d.replace(new RegExp("\\$"+e,"gi"),f);return d},$s=window.performance&&window.performance.now?function(){return window.performance.now()}:I;var Lfa=t("yt.pubsub.instance_")||new ui;ui.prototype.subscribe=ui.prototype.subscribe;ui.prototype.unsubscribeByKey=ui.prototype.Xb;ui.prototype.publish=ui.prototype.R;ui.prototype.clear=ui.prototype.clear;q("yt.pubsub.instance_",Lfa,void 0);var Li=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Li,void 0);var Ni=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ni,void 0);var Mi=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Mi,void 0);
var Ki=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ki,void 0);B(Si,Ri);Si.prototype.Ya=function(){var a=0;ug(this.Sb(!0),function(){a++});
return a};
Si.prototype.clear=function(){var a=vg(this.Sb(!0)),b=this;E(a,function(a){b.remove(a)})};B(Ti,Si);h=Ti.prototype;h.isAvailable=function(){if(!this.o)return!1;try{return this.o.setItem("__sak","1"),this.o.removeItem("__sak"),!0}catch(a){return!1}};
h.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";}};
h.get=function(a){a=this.o.getItem(a);if(!y(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.o.removeItem(a)};
h.Ya=function(){return this.o.length};
h.Sb=function(a){var b=0,c=this.o,d=new rg;d.next=function(){if(b>=c.length)throw tg;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!y(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
h.clear=function(){this.o.clear()};
h.key=function(a){return this.o.key(a)};B(Ui,Ti);B(Vi,Ti);Wi.prototype.set=function(a,b){n(b)?this.o.set(a,de(b)):this.o.remove(a)};
Wi.prototype.get=function(a){var b;try{b=this.o.get(a)}catch(c){return}if(null!==b)try{return be(b)}catch(c){throw"Storage: Invalid value was encountered";}};
Wi.prototype.remove=function(a){this.o.remove(a)};B(Xi,Wi);Xi.prototype.set=function(a,b){Xi.N.set.call(this,a,Zi(b))};
Xi.prototype.A=function(a){a=Xi.N.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Xi.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($i,Xi);$i.prototype.set=function(a,b,c){if(b=Zi(b)){if(c){if(c<I()){$i.prototype.remove.call(this,a);return}b.expiration=c}b.creation=I()}$i.N.set.call(this,a,b)};
$i.prototype.A=function(a,b){var c=$i.N.A.call(this,a);if(c)if(!b&&aj(c))$i.prototype.remove.call(this,a);else return c};B(bj,$i);var fj,r$=new Ui;fj=r$.isAvailable()?new bj(r$):null;var hj,s$=new Vi;hj=s$.isAvailable()?new bj(s$):null;var ek={oG:"atp",lI:"ska",WH:"que",CH:"mus",iI:"sus"};var xj=null;"undefined"!=typeof window.XMLHttpRequest?xj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(xj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var zj={"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"};Hj.prototype.F=function(a,b,c,d){b?a(d):a({text:c.responseText})};
Hj.prototype.D=function(a,b){a(Error("Request error: "+b.status))};
Hj.prototype.G=function(a){a(Error("request timed out"))};Kj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.o+",status:"+this.status+"}"};B(Rj,F);Rj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.S.subscribe(a,b,c)};
Rj.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.S.unsubscribe(a,b,c)};
Rj.prototype.Xb=function(a){return this.isDisposed()?!1:this.S.Xb(a)};
Rj.prototype.R=function(a,b){return this.isDisposed()?!1:this.S.R.apply(this.S,arguments)};B(Sj,Rj);Sj.prototype.Zb=function(){return this.screens};
Sj.prototype.contains=function(a){return!!Pj(this.screens,a)};
Sj.prototype.get=function(a){return a?Qj(this.screens,a):null};
Sj.prototype.info=function(a){ci(this.F,a)};B(Wj,Rj);var t$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=Wj.prototype;h.start=function(){!this.o&&(0,window.isNaN)(this.ya)&&this.mr()};
h.stop=function(){this.o&&(this.o.abort(),this.o=null);(0,window.isNaN)(this.ya)||(Di(this.ya),this.ya=window.NaN)};
h.T=function(){this.stop();Wj.N.T.call(this)};
h.mr=function(){this.ya=window.NaN;this.o=Bj(Ij(this.F,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:this.D},timeout:5E3,nb:A(this.OC,this),onError:A(this.NC,this),Ud:A(this.PC,this)})};
h.OC=function(a,b){this.o=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.R("pairingComplete",new ji(c))};
h.NC=function(a){this.o=null;a.status&&404==a.status?this.A>=t$.length?this.R("pairingFailed",Error("DIAL polling timed out")):(a=t$[this.A],this.ya=Ai(A(this.mr,this),a),this.A++):this.R("pairingFailed",Error("Server error "+a.status))};
h.PC=function(){this.o=null;this.R("pairingFailed",Error("Server not responding"))};B(Xj,Si);Xj.prototype.set=function(a,b){this.A.set(this.o+a,b)};
Xj.prototype.get=function(a){return this.A.get(this.o+a)};
Xj.prototype.remove=function(a){this.A.remove(this.o+a)};
Xj.prototype.Sb=function(a){var b=this.A.Sb(!0),c=this,d=new rg;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};h=Zj.prototype;h.Ya=function(){return this.o.Ya()};
h.removeAll=function(a){a=Cg(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
h.remove=function(a){return this.o.remove(bk(a))};
h.clear=function(){this.o.clear()};
h.isEmpty=function(){return this.o.isEmpty()};
h.contains=function(a){return xg(this.o,bk(a))};
h.Ka=function(){return this.o.Ka()};
h.clone=function(){return new Zj(this)};
h.equals=function(a){return this.Ya()==Bg(a)&&ck(this,a)};
h.Sb=function(){return this.o.Sb(!1)};dk.prototype.equals=function(a){return a?this.id==a.id:!1};var hk=/\s*;\s*/;h=fk.prototype;h.set=function(a,b,c,d,e,f){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:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(I()+1E3*c)).toUTCString();this.o.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.o.cookie||"").split(hk),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
h.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};
h.Na=function(){return gk(this).keys};
h.Ka=function(){return gk(this).values};
h.isEmpty=function(){return!this.o.cookie};
h.Ya=function(){return this.o.cookie?(this.o.cookie||"").split(hk).length:0};
h.ye=function(a){for(var b=gk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
h.clear=function(){for(var a=gk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var jk=new fk(window.document);jk.A=3950;var Ak,qk="";B(Bk,Sj);h=Bk.prototype;h.start=function(){Ck(this)&&this.R("screenChange");!ij("yt-remote-lounge-token-expiration")&&Dk(this);Di(this.o);this.o=Ai(A(this.start,this),1E4)};
h.nj=function(a,b){Ck(this);Tj(this,a);Ek(this,!1);this.R("screenChange");b(a);a.token||Dk(this)};
h.remove=function(a,b){var c=Ck(this);Vj(this,a)&&(Ek(this,!1),c=!0);b(a);c&&this.R("screenChange")};
h.gj=function(a,b,c,d){var e=Ck(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Ek(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.R("screenChange")};
h.T=function(){Di(this.o);Bk.N.T.call(this)};
h.rw=function(a){Ck(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}Ek(this,!b);b&&ci(this.F,"Missed "+b+" lounge tokens.")};
h.qw=function(a){ci(this.F,"Requesting lounge tokens failed: "+a)};B(Fk,Rj);h=Fk.prototype;h.start=function(){var a=(0,window.parseInt)(ij("yt-remote-fast-check-period")||"0",10);(this.C=I()-144E5<a?0:a)?Kk(this):(this.C=I()+3E5,gj("yt-remote-fast-check-period",this.C),this.Jl())};
h.isEmpty=function(){return bc(this.o)};
h.update=function(){Gk("Updating availability on schedule.");var a=this.D(),b=Qb(this.o,function(b,d){return b&&!!Qj(a,d)},this);
Ik(this,b)};
h.T=function(){Di(this.B);this.B=window.NaN;this.A&&(this.A.abort(),this.A=null);Fk.N.T.call(this)};
h.Jl=function(){Di(this.B);this.B=window.NaN;this.A&&this.A.abort();var a=Lk(this);if(Tb(a)){var b=Ij(this.F,"/pairing/get_screen_availability"),c={lounge_token:Xb(a).join(",")};this.A=Jj(this.F,b,c,A(this.KA,this,a),A(this.JA,this))}else Ik(this,{}),Kk(this)};
h.KA=function(a,b){this.A=null;var c=Xb(Lk(this));if(Fb(c,Xb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Ik(this,d);Kk(this)}else this.Xa("Changing Screen set during request."),this.Jl()};
h.JA=function(a){this.Xa("Screen availability failed: "+a);this.A=null;Kk(this)};
h.Xa=function(a){ci("OnlineScreenService",a)};B(Mk,Sj);h=Mk.prototype;h.start=function(){this.A.start();this.o.start();this.screens.length&&(this.R("screenChange"),this.o.isEmpty()||this.R("onlineScreenChange"))};
h.nj=function(a,b,c){this.A.nj(a,b,c)};
h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
h.gj=function(a,b,c,d){this.A.contains(a)?this.A.gj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,ci(this.F,a),d(Error(a)))};
h.Zb=function(a){return a?this.screens:sb(this.screens,$d(this.B,function(a){return!this.contains(a)},this))};
h.nr=function(){return $d(this.Zb(!0),function(a){return!!this.o.o[a.id]},this)};
h.or=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Wj(this.D,a,b,c);f.subscribe("pairingComplete",A(function(a){Nb(f);d(Pk(this,a))},this));
f.subscribe("pairingFailed",function(a){Nb(f);e(a)});
f.start();return A(f.stop,f)};
h.cw=function(a,b){for(var c=2,d=b(a,c);Rk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
h.RC=function(a,b,c,d){Bj(Ij(this.D,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:a},timeout:5E3,nb:A(function(a,d){var k=new ji(d.screen||{});if(!k.name||Rk(this,k.name))k.name=this.cw(k.name,b);c(Pk(this,k))},this),
onError:A(function(a){d(Error("pairing request failed: "+a.status))},this),
Ud:A(function(){d(Error("pairing request timed out."))},this)})};
h.T=function(){Nb(this.A);Nb(this.o);Mk.N.T.call(this)};
h.Dw=function(){Sk(this);this.R("screenChange");this.o.update()};
Mk.prototype.dispose=Mk.prototype.dispose;B(Uk,Rj);h=Uk.prototype;h.Mi=function(a){this.B=a;this.R("sessionScreen",this.B)};
h.Vb=function(a){this.isDisposed()||(a&&Vk(this,""+a),this.B=null,this.R("sessionScreen",null))};
h.info=function(a){ci(this.M,a)};
h.qr=function(){return null};
h.Ql=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,A(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),A(function(){Vk(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.T=function(){this.Ql("");Uk.N.T.call(this)};B(Wk,Uk);h=Wk.prototype;h.Pl=function(a){if(this.o){if(this.o==a)return;Vk(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&&Yk(this);Zk(this,"getMdxSessionStatus")};
h.Af=function(a){this.info("launchWithParams: "+de(a));this.C=a;this.o&&Yk(this)};
h.stop=function(){this.o?this.o.stop(A(function(){this.Vb()},this),A(function(){this.Vb(Error("Failed to stop receiver app."))},this)):this.Vb(Error("Stopping cast device witout session."))};
h.Ql=w;h.T=function(){this.info("disposeInternal");Di(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;Wk.N.T.call(this)};
h.GB=function(a,b){if(!this.isDisposed())if(b){var c=ce(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+de(c));switch(d){case "mdxSessionStatus":Xk(this,c.screenId);break;default:Vk(this,"Unknown youtube message: "+d)}}else Vk(this,"Unable to parse message.")}else Vk(this,"No data in message.")};
h.ao=function(a,b,c,d){Ok(this.J,this.A.label,a,this.A.friendlyName,A(function(e){e?b(e):0<=d?(Vk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Ai(A(this.ao,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.qr=function(){return this.o};
h.SC=function(a){this.isDisposed()||a||(Vk(this,"Cast session died."),this.Vb())};B($k,Uk);h=$k.prototype;h.Pl=function(a){this.D=a;this.D.addUpdateListener(this.L)};
h.Af=function(a){this.C=a;this.G()};
h.stop=function(){this.o();this.o=w;Di(this.F);this.D?this.D.stop(A(this.Vb,this,null),A(this.Vb,this,"Failed to stop DIAL device.")):this.Vb()};
h.T=function(){this.o();this.o=w;Di(this.F);this.D&&this.D.removeUpdateListener(this.L);this.D=null;$k.N.T.call(this)};
h.VC=function(a){this.isDisposed()||a||(Vk(this,"DIAL session died."),this.o(),this.o=w,this.Vb())};
h.$k=function(a){this.K=Lj();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,bl(this));a(b);al(this)}else this.G=A(function(){Di(this.F);this.G=w;this.F=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,bl(this));a(b);al(this)},this),this.F=Ai(A(function(){this.G()},this),100)};
h.Ax=function(a,b){Ok(this.J,this.H.receiver.label,a,this.A.friendlyName,A(function(a){a&&a.token?(this.Mi(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.$k(b)},this),A(function(a){Vk(this,"Failed to get DIAL screen: "+a);
this.$k(b)},this))};B(cl,Uk);cl.prototype.stop=function(){this.Vb()};
cl.prototype.Pl=w;cl.prototype.Af=function(){Di(this.o);this.o=window.NaN;var a=Qj(this.J.Zb(),this.A.label);a?this.Mi(a):this.Vb(Error("No such screen"))};
cl.prototype.T=function(){Di(this.o);this.o=window.NaN;cl.N.T.call(this)};B(dl,Rj);h=dl.prototype;
h.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,A(this.Xp,this),A(this.CA,this),d,e);c.customDialLaunchCallback=A(this.nz,this);window.chrome.cast.initialize(c,A(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.C),Yh(gl),this.A.subscribe("onlineScreenChange",A(this.pr,this)),this.B=jl(this),window.chrome.cast.setCustomReceivers(this.B,w,A(function(a){this.Xa("Failed to set initial custom receivers: "+de(a))},this)),this.R("yt-remote-cast2-availability-change",hl(this)),b(!0))},this),A(function(a){this.Xa("Failed to initialize API: "+de(a));
b(!1)},this))};
h.hC=function(a,b){fl("Setting connected screen ID: "+a+" -> "+b);if(this.o){var c=this.o.B;if(!a||c&&c.id!=a)fl("Unsetting old screen status: "+this.o.A.friendlyName),Nb(this.o),this.o=null}if(a&&b){if(!this.o){c=Qj(this.A.Zb(),a);if(!c){fl("setConnectedScreenStatus: Unknown screen.");return}var d=el(this,c);d||(fl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.o?c.o:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.B.push(d),
window.chrome.cast.setCustomReceivers(this.B,w,A(function(a){this.Xa("Failed to set initial custom receivers: "+de(a))},this)));
fl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);il(this,new cl(this.A,d),!0)}this.o.Ql(b)}else fl("setConnectedScreenStatus: no screen.")};
h.iC=function(a){this.isDisposed()?this.Xa("Setting connection data on disposed cast v2"):this.o?this.o.Af(a):this.Xa("Setting connection data without a session")};
h.UC=function(){this.isDisposed()?this.Xa("Stopping session on disposed cast v2"):this.o?(this.o.stop(),Nb(this.o),this.o=null):fl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(A(this.Xp,this),A(this.OA,this))};
h.T=function(){this.A.unsubscribe("onlineScreenChange",A(this.pr,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.C);bi(gl);Nb(this.o);dl.N.T.call(this)};
h.Xa=function(a){ci("Controller",a)};
h.Yp=function(a,b){this.o==a&&(b||il(this,null),this.R("yt-remote-cast2-session-change",b))};
h.AA=function(a,b){if(!this.isDisposed())if(a)switch(fl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.o)if(this.o.A.label!=a.label)fl("onReceiverAction_: Stopping active receiver: "+this.o.A.friendlyName),this.o.stop();else{fl("onReceiverAction_: Casting to active receiver.");this.o.B&&this.R("yt-remote-cast2-session-change",this.o.B);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:il(this,new cl(this.A,a));
break;case window.chrome.cast.ReceiverType.DIAL:il(this,new $k(this.A,a));break;case window.chrome.cast.ReceiverType.CAST:il(this,new Wk(this.A,a));break;default:this.Xa("Unknown receiver type: "+a.receiverType);return}break;case window.chrome.cast.ReceiverAction.STOP:this.o&&this.o.A.label==a.label?this.o.stop():this.Xa("Stopping receiver w/o session: "+a.friendlyName)}else this.Xa("onReceiverAction_ called without receiver.")};
h.nz=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.Xa("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.Xa("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 fl("Reselecting dial screen."),
this.R("yt-remote-cast2-session-change",this.o.B),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Xa('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);il(this,new $k(this.A,b))}b=this.o;b.H=a;return b.H.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(A(b.Ax,b,(b.H.extraData||{}).screenId||null)):new window.Promise(A(b.$k,b))};
h.Xp=function(a){if(!this.isDisposed()){fl("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)fl("Got resumed cast session before resumed mdx connection."),il(this,new Wk(this.A,b),!0);else{this.Xa("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.o.A,d=Qj(this.A.Zb(),c.label);d&&ki(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(fl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Nb(this.o),this.o=new Wk(this.A,b),this.o.subscribe("sessionScreen",A(this.Yp,this,this.o)),this.o.Af(null));this.o.Pl(a)}}};
h.TC=function(){return this.o?this.o.qr():null};
h.OA=function(a){this.isDisposed()||(this.Xa("Failed to estabilish a session: "+de(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&il(this,null))};
h.CA=function(a){fl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=hl(this);this.D=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;hl(this)!=b&&this.R("yt-remote-cast2-availability-change",hl(this))}};
h.pr=function(){if(!this.isDisposed()){var a=hl(this);this.B=jl(this);fl("Updating custom receivers: "+de(this.B));window.chrome.cast.setCustomReceivers(this.B,w,A(function(){this.Xa("Failed to set custom receivers.")},this));
var b=hl(this);b!=a&&this.R("yt-remote-cast2-availability-change",b)}};
dl.prototype.setLaunchParams=dl.prototype.iC;dl.prototype.setConnectedScreenStatus=dl.prototype.hC;dl.prototype.stopSession=dl.prototype.UC;dl.prototype.getCastSession=dl.prototype.TC;dl.prototype.requestSession=dl.prototype.requestSession;dl.prototype.init=dl.prototype.init;dl.prototype.dispose=dl.prototype.dispose;var ul=null,wl=[];Il.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Il.prototype.Ro=function(){return this.event?!1===this.event.returnValue:!1};
Il.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
var Jl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Ml=t("yt.events.listeners_")||{};q("yt.events.listeners_",Ml,void 0);var Ol=t("yt.events.counter_")||{count:0};q("yt.events.counter_",Ol,void 0);var jm=!1,hm=null,km=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",km,void 0);new wm;wm.prototype.set=function(a){this.o=a};
wm.prototype.reset=function(){this.set(I())};
wm.prototype.get=function(){return this.o};xm.prototype.stringify=function(a){return this.A.nc(a)};
xm.prototype.parse=function(a){return this.o(a)};h=ym.prototype;h.get=function(a){a=zm(this,a);return this.o[a]};
h.set=function(a,b){a=zm(this,a);this.o[a]=b};
h.Ya=function(){return this.o.length};
h.isEmpty=function(){return 0==this.o.length};
h.clear=function(){this.A=this.o.length=0};
h.Ka=function(){for(var a=this.Ya(),b=this.Ya(),c=[],a=this.Ya()-a;a<b;a++)c.push(this.get(a));return c};
h.Na=function(){for(var a=[],b=this.Ya(),c=0;c<b;c++)a[c]=c;return a};
h.ye=function(a){for(var b=this.Ya(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};B(Am,F);h=Am.prototype;h.Mf=!1;h.Pg=0;h.ya=null;h.jf=function(a){this.o=arguments;this.ya||this.Pg?this.Mf=!0:Bm(this)};
h.stop=function(){this.ya&&(Td(this.ya),this.ya=null,this.Mf=!1,this.o=[])};
h.pause=function(){this.Pg++};
h.resume=function(){this.Pg--;this.Pg||!this.Mf||this.ya||(this.Mf=!1,Bm(this))};
h.T=function(){Am.N.T.call(this);this.stop()};
h.$A=function(){this.ya=null;this.Mf&&!this.Pg&&(this.Mf=!1,Bm(this))};B(Cm,F);var Fm=[];h=Cm.prototype;h.P=function(a,b,c,d){return Em(this,a,b,c,d)};
h.za=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)this.za(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.C||this,c=Pc(c),d=!!d,b=Dc(a)?Nc(a.fd,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};
h.removeAll=function(){Pb(this.A,function(a,b){this.A.hasOwnProperty(b)&&$c(a)},this);
this.A={}};
h.T=function(){Cm.N.T.call(this);this.removeAll()};
h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Km.prototype.o=null;var u$;B(Nm,Km);u$=new Nm;h=Pm.prototype;h.Fe=null;h.Lc=!1;h.Tf=null;h.pm=null;h.Tg=null;h.kf=null;h.Ld=null;h.Yd=null;h.Ne=null;h.vb=null;h.eh=0;h.Mc=null;h.kj=null;h.Ge=null;h.Dg=-1;h.Cq=!0;h.ue=!1;h.Hk=0;h.Qi=null;var Ym={},Wm={};h=Pm.prototype;h.setTimeout=function(a){this.D=a};
h.TB=function(a){a=a.target;var b=this.Qi;b&&3==Bn(a)?b.jf():this.dr(a)};
h.dr=function(a){try{if(a==this.vb)a:{var b=Bn(this.vb),c=this.vb.A,d=this.vb.getStatus();if(wc&&!(10<=Yf)||xc&&!zc("420+")){if(4>b)break a}else if(3>b||3==b&&!Lf&&!En(this.vb))break a;this.ue||4!=b||7==c||(8==c||0>=d?this.o.Ic(3):this.o.Ic(2));gn(this);var e=this.vb.getStatus();this.Dg=e;var f=En(this.vb);(this.Lc=200==e)?(4==b&&$m(this),this.F?(Um(this,b,f),Lf&&this.Lc&&3==b&&(this.C.P(this.A,"tick",this.NB),this.A.start())):Zm(this,f),this.Lc&&!this.ue&&(4==b?this.o.Li(this):(this.Lc=!1,Tm(this)))):
(this.Ge=400==e&&0<f.indexOf("Unknown SID")?3:0,Xm(),$m(this),an(this))}}catch(k){this.vb&&En(this.vb)}finally{}};
h.NB=function(){var a=Bn(this.vb),b=En(this.vb);this.eh<b.length&&(gn(this),Um(this,a,b),this.Lc&&4!=a&&Tm(this))};
h.iB=function(a){fn(A(this.hB,this,a),0)};
h.hB=function(a){this.ue||(gn(this),Zm(this,a),Tm(this))};
h.fq=function(a){fn(A(this.gB,this,a),0)};
h.gB=function(a){this.ue||($m(this),this.Lc=a,this.o.Li(this),this.o.Ic(4))};
h.cancel=function(){this.ue=!0;$m(this)};
h.zB=function(){this.Tf=null;var a=I();0<=a-this.pm?(2!=this.kf&&this.o.Ic(3),$m(this),this.Ge=2,Xm(),an(this)):en(this,this.pm-a)};h=mn.prototype;h.Ek=null;h.Wb=null;h.Ri=!1;h.ho=null;h.$h=null;h.Fk=null;h.Gk=null;h.jc=null;h.jd=-1;h.Cg=null;h.ng=null;h.connect=function(a){this.Gk=a;a=on(this.o,null,this.Gk);Xm();this.ho=I();var b=this.o.H;null!=b?(this.Cg=b[0],(this.ng=b[1])?(this.jc=1,nn(this)):(this.jc=2,pn(this))):(nh(a,"MODE","init"),this.Wb=new Pm(this,0,void 0,void 0,void 0),this.Wb.Fe=this.Ek,Sm(this.Wb,a,!1,null,!0),this.jc=0)};
h.rv=function(a){if(a)this.jc=2,pn(this);else{Xm();var b=this.o;b.Ec=b.Hd.jd;Xn(b,9)}a&&this.Ic(2)};
h.jk=function(a){return this.o.jk(a)};
h.fo=function(){return!1};
h.Up=function(a,b){this.jd=a.Dg;if(0==this.jc)if(b){try{var c=this.A.parse(b)}catch(d){c=this.o;c.Ec=this.jd;Xn(c,2);return}this.Cg=c[0];this.ng=c[1]}else c=this.o,c.Ec=this.jd,Xn(c,2);else if(2==this.jc)if(this.Ri)Xm(),this.Fk=I();else if("11111"==b){if(Xm(),this.Ri=!0,this.$h=I(),c=this.$h-this.ho,!wc||10<=Yf||500>c)this.jd=200,this.Wb.cancel(),Xm(),qn(this.o,this,!0)}else Xm(),this.$h=this.Fk=I(),this.Ri=!1};
h.Li=function(){this.jd=this.Wb.Dg;if(this.Wb.Lc)0==this.jc?this.ng?(this.jc=1,nn(this)):(this.jc=2,pn(this)):2==this.jc&&(a=!1,(a=!wc||10<=Yf?this.Ri:200>this.Fk-this.$h?!1:!0)?(Xm(),qn(this.o,this,!0)):(Xm(),qn(this.o,this,!1)));else{0==this.jc?Xm():2==this.jc&&Xm();var a=this.o;a.Ec=this.jd;Xn(a,2)}};
h.Yg=function(){return this.o.Yg()};
h.isActive=function(){return this.o.isActive()};
h.Ic=function(a){this.o.Ic(a)};B(rn,H);var Cn=/^https?$/i,Mfa=["POST","PUT"];h=rn.prototype;
h.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.U=b;this.S=!1;this.B=!0;this.o=this.M?Om(this.M):Om(u$);this.L=this.M?Lm(this.M):Lm(u$);this.o.onreadystatechange=A(this.Qp,this);try{vm(yn(this,"Opening Xhr")),this.O=!0,this.o.open(b,String(a),!0),this.O=!1}catch(f){vm(yn(this,"Error opening Xhr: "+f.message));vn(this,f);return}a=c||"";var e=this.headers.clone();
d&&Eg(d,function(a,b){e.set(b,a)});
d=eb(e.Na(),un);c=r.FormData&&a instanceof r.FormData;!jb(Mfa,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.Y&&(this.o.responseType=this.Y);Zb(this.o,"withCredentials")&&(this.o.withCredentials=this.V);try{Dn(this),0<this.D&&(this.K=tn(this.o),vm(yn(this,"Will abort after "+this.D+"ms if incomplete, xhr2 "+this.K)),this.K?(this.o.timeout=this.D,this.o.ontimeout=A(this.jo,this)):this.J=Sd(this.jo,this.D,this)),vm(yn(this,"Sending request")),this.G=!0,this.o.send(a),this.G=!1}catch(f){vm(yn(this,"Send error: "+f.message)),vn(this,f)}};
h.jo=function(){"undefined"!=typeof An&&this.o&&(this.F="Timed out after "+this.D+"ms, aborting",this.A=8,yn(this,this.F),this.$("timeout"),hn(this,8))};
h.T=function(){this.o&&(this.B&&(this.B=!1,this.C=!0,this.o.abort(),this.C=!1),xn(this,!0));rn.N.T.call(this)};
h.Qp=function(){this.isDisposed()||(this.O||this.G||this.C?zn(this):this.zA())};
h.zA=function(){zn(this)};
h.isActive=function(){return!!this.o};
h.getStatus=function(){try{return 2<Bn(this)?this.o.status:-1}catch(a){return-1}};h=Fn.prototype;h.vg=null;h.Pb=null;h.qb=null;h.Dk=null;h.ai=null;h.Cn=null;h.ki=null;h.Lg=0;h.Xx=0;h.Gb=null;h.Id=null;h.bd=null;h.ze=null;h.Hd=null;h.jj=null;h.zf=-1;h.Xo=-1;h.Ec=-1;h.xg=0;h.Ze=0;h.we=8;var Zn=new H;B(Hn,kc);B(In,kc);B(Jn,kc);h=Fn.prototype;h.connect=function(a,b,c,d,e){Xm();this.Dk=b;this.vg=c||{};d&&n(e)&&(this.vg.OSID=d,this.vg.OAID=e);this.Hd=new mn(this);this.Hd.Ek=null;this.Hd.A=this.D;this.Hd.connect(a)};
h.fo=function(){return 0==this.o};
h.aq=function(a){this.Id=null;Rn(this,a)};
h.$p=function(){this.bd=null;this.qb=new Pm(this,0,this.B,"rpc",this.F);this.qb.Fe=null;this.qb.Hk=0;var a=this.Cn.clone();mh(a,"RID","rpc");mh(a,"SID",this.B);mh(a,"CI",this.jj?"0":"1");mh(a,"AID",this.zf);Mn(this,a);if(!wc||10<=Yf)mh(a,"TYPE","xmlhttp"),Sm(this.qb,a,!0,this.ki,!1);else{mh(a,"TYPE","html");var b=this.qb,c=Boolean(this.ki);b.kf=3;b.Ld=ph(a.clone());bn(b,c)}};
h.Up=function(a,b){if(0!=this.o&&(this.qb==a||this.Pb==a))if(this.Ec=a.Dg,this.Pb==a&&3==this.o)if(7<this.we){var c;try{c=this.D.parse(b)}catch(f){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.bd){if(this.qb)if(this.qb.Tg+3E3<this.Pb.Tg)On(this),this.qb.cancel(),this.qb=null;else break a;Vn(this);Xm()}}else this.Xo=c[1],0<this.Xo-this.zf&&37500>c[2]&&this.jj&&0==this.Ze&&!this.ze&&(this.ze=fn(A(this.Ey,this),6E3));else Xn(this,11)}else"y2f%"!=b&&Xn(this,11);else if(this.qb==a&&On(this),!C(b)){c=
this.D.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.zf=e[0];e=e[1];2==this.o?"c"==e[0]?(this.B=e[1],this.ki=e[2],e=e[3],null!=e?this.we=e:this.we=6,this.o=3,this.Gb&&this.Gb.Jn(this),this.Cn=on(this,this.Yg()?this.ki:null,this.Dk),Un(this)):"stop"==e[0]&&Xn(this,7):3==this.o&&("stop"==e[0]?Xn(this,7):"noop"!=e[0]&&this.Gb&&this.Gb.In(this,e),this.Ze=0)}}};
h.Ey=function(){null!=this.ze&&(this.ze=null,this.qb.cancel(),this.qb=null,Vn(this),Xm())};
h.Li=function(a){var b;if(this.qb==a)On(this),this.qb=null,b=2;else if(this.Pb==a)this.Pb=null,b=1;else return;this.Ec=a.Dg;if(0!=this.o)if(a.Lc)1==b?(I(),Zn.$(new In(Zn,a.Ne?a.Ne.length:0)),Qn(this),this.C.length=0):Un(this);else{var c=a.Ge,d;if(!(d=3==c||7==c||0==c&&0<this.Ec)){if(d=1==b)this.Pb||this.Id||1==this.o||2<=this.xg?d=!1:(this.Id=fn(A(this.aq,this,a),Wn(this,this.xg)),this.xg++,d=!0);d=!(d||2==b&&Vn(this))}if(d)switch(c){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this,
6);break;case 7:Xn(this,12);break;default:Xn(this,2)}}};
h.Pv=function(a){if(!jb(arguments,this.o))throw Error("Unexpected channel state: "+this.o);};
h.sC=function(a){a?Xm():(Xm(),Yn(this,8))};
h.jk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new rn;a.V=!1;return a};
h.isActive=function(){return!!this.Gb&&this.Gb.isActive(this)};
h.Ic=function(){Zn.$(new Jn(Zn))};
h.Yg=function(){return!(!wc||10<=Yf)};
h=$n.prototype;h.Jn=function(){};
h.In=function(){};
h.Hn=function(){};
h.bk=function(){};
h.Wn=function(){return{}};
h.isActive=function(){return!0};B(ao,Qd);ao.prototype.F=function(){if(500<this.o){var a=this.o;24E4>2*a&&(a*=2);Rd(this,a)}this.G()};
ao.prototype.start=function(){ao.N.start.call(this);this.D=I()+this.o};
ao.prototype.stop=function(){this.D=0;ao.N.stop.call(this)};B(bo,$n);h=bo.prototype;h.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};
h.unsubscribe=function(a,b,c){return this.B.unsubscribe(a,b,c)};
h.Xb=function(a){return this.B.Xb(a)};
h.R=function(a,b){return this.B.R.apply(this.B,arguments)};
h.dispose=function(){this.K||(this.K=!0,this.B.clear(),eo(this),Nb(this.B))};
h.isDisposed=function(){return this.K};
h.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 Fn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.o;e&&(e.Gb=null);d.Gb=this;this.o=d;e?this.o.connect(a,b,this.C,e.B,e.zf):c?this.o.connect(a,b,this.C,c.sessionId,c.arrayId):this.o.connect(a,b,this.C)}};
h.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&&Pn(this.o,c)};
h.Jn=function(){var a=this.A;a.stop();Rd(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)Pn(this.o,a[b])}this.R("handlerOpened")};
h.Hn=function(a,b){var c=2==b&&401==this.o.Ec;if(4!=b&&!c){if(6==b||410==this.o.Ec)c=this.A,c.stop(),Rd(c,500);this.A.start()}this.R("handlerError",b)};
h.bk=function(a,b,c){if(!this.A.enabled)this.R("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.G.push(c[a].map)};
h.Wn=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};
h.In=function(a,b){if("S"==b[0])this.J=b[1];else if("gracefulReconnect"==b[0]){var c=this.A;c.stop();Rd(c,500);this.A.start();Kn(this.o)}else this.R("handlerMessage",new Hl(b[0],b[1]))};
h.MC=function(){this.A.stop();var a=this.o,b=0;a.qb&&b++;a.Pb&&b++;0!=b?this.A.start():this.connect(this.F,this.D)};h=go.prototype;h.Ya=function(){return this.o.length+this.A.length};
h.isEmpty=function(){return lb(this.o)&&lb(this.A)};
h.clear=function(){this.o=[];this.A=[]};
h.contains=function(a){return jb(this.o,a)||jb(this.A,a)};
h.remove=function(a){var b=wfa(this.o,a);if(0>b)return pb(this.A,a);qb(this.o,b);return!0};
h.Ka=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};h=lo.prototype;h.reset=function(a){this.videoIds=[];this.A="";oo(this);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)};
h.Za=function(){return 1==this.o};
h.setVideoId=function(a){mo(this,"setVideoId");var b=this.index;this.index=kb(this.videoIds,a);b!=this.index&&no(this);return-1!=b};
h.remove=function(a){mo(this,"remove");var b=po(this);return pb(this.videoIds,a)?(this.index=kb(this.videoIds,b),!0):!1};
h.clone=function(){return new lo(uo(this))};B(vo,Rj);h=vo.prototype;h.play=function(){1==this.A?(this.o?this.o.play(null,w,A(function(){this.Xa("Failed to play video with cast v2 channel.");Ao(this,"play")},this)):Ao(this,"play"),Eo(this,1,ro(yo(this))),Fo(this)):Do(this,this.play)};
h.pause=function(){1==this.A?(this.o?this.o.pause(null,w,A(function(){this.Xa("Failed to pause video with cast v2 channel.");Ao(this,"pause")},this)):Ao(this,"pause"),Eo(this,2,ro(yo(this))),Fo(this)):Do(this,this.pause)};
h.kr=function(a){if(1==this.A){if(this.o){var b=yo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.Za()||3==b.o?window.chrome.cast.media.ResumeState.PLAYBACK_START:window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.o.seek(c,w,A(function(){this.Xa("Failed to seek in video with cast v2 channel.");Ao(this,"seekTo",{newTime:a})},this))}else Ao(this,"seekTo",{newTime:a});
Eo(this,3,a);Fo(this)}else Do(this,pa(this.kr,a))};
h.stop=function(){if(1==this.A){this.o?this.o.stop(null,w,A(function(){this.Xa("Failed to stop video with cast v2 channel.");Ao(this,"stopVideo")},this)):Ao(this,"stopVideo");
var a=yo(this);oo(a);Bo(this,a);Fo(this)}else Do(this,this.stop)};
h.setVolume=function(a,b){if(1==this.A){var c=yo(this);if(this.B){if(c.volume!=a){var d=Math.round(a)/100;this.B.setReceiverVolumeLevel(d,A(function(){Go("set receiver volume: "+d)},this),A(function(){this.Xa("failed to set receiver volume.")},this))}c.muted!=b&&this.B.setReceiverMuted(b,A(function(){Go("set receiver muted: "+b)},this),A(function(){this.Xa("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);Ao(this,"setVolume",e)}c.muted=b;c.volume=a;Bo(this,c);Fo(this)}else Do(this,pa(this.setVolume,a,b))};
h.Sl=function(a,b){if(1==this.A){var c=yo(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:de(b.style)};hc(d,c.B);Ao(this,"setSubtitlesTrack",d)}else d={videoId:a},Ao(this,"setSubtitlesTrack",d);Bo(this,c)}else Do(this,pa(this.Sl,a,b))};
h.lr=function(a,b){if(1==this.A){Ao(this,"setAudioTrack",{videoId:a,audioTrackId:b.Hb.id});var c=yo(this);c.audioTrackId=b.Hb.id;Bo(this,c)}else Do(this,pa(this.lr,a,b))};
h.dispose=function(){if(3!=this.A){var a=this.A;this.A=3;this.R("proxyStateChange",a,this.A)}vo.N.dispose.call(this)};
h.T=function(){Di(this.D);this.D=window.NaN;Co(this);this.C=null;this.F.clear();xo(this,null);vo.N.T.call(this)};
h.Am=function(a){if((a!=this.A||2==a)&&3!=this.A&&0!=a){var b=this.A;this.A=a;this.R("proxyStateChange",b,a);if(1==a)for(;!this.F.isEmpty();)jo(this.F).apply(this);else 3==a&&this.dispose()}};
h.sA=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.D))&&this.R(a)};
h.Jy=function(a){if(!a)this.Mg(null),xo(this,null);else if(this.B.receiver.volume){a=this.B.receiver.volume;var b=yo(this);if(b.volume!=a.level||b.muted!=a.muted)Go("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,Bo(this,b),Fo(this)}};
h.Mg=function(a){Go("Cast media: "+!!a);this.o&&this.o.removeUpdateListener(this.J);if(this.o=a)this.o.addUpdateListener(this.J),Ho(this),Fo(this)};
h.Iy=function(a){a?(Ho(this),Fo(this)):this.Mg(null)};
h.Xa=function(a){ci("CP",a)};B(Io,Rj);h=Io.prototype;
h.connect=function(a,b){if(b){if(this.ta.A){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);k={videoId:d,currentTime:f};c&&(k.listId=c);n(e)&&(k.currentIndex=e);c&&(this.ta.A=c);this.ta.videoId=d;this.ta.index=e||0}else{var d=b.videoIds[b.index],f=b.currentTime||0;5>=f&&(f=0);var k={videoIds:d,videoId:d,currentTime:f};this.ta.videoIds=[d];this.ta.index=0}this.ta.state=3;qo(this.ta,f);this.gb("Connecting with setPlaylist and params: "+de(k));this.o.connect({method:"setPlaylist",params:de(k)},
a,rk())}else this.gb("Connecting without params"),this.o.connect({},a,rk());Lo(this)};
h.dispose=function(){this.isDisposed()||(this.R("beforeDispose"),Ko(this,3));Io.N.dispose.call(this)};
h.T=function(){Mo(this);Po(this);No(this);Di(this.G);this.G=window.NaN;Di(this.H);this.H=window.NaN;this.B=null;Rl(this.O);this.O.length=0;this.o.dispose();Io.N.T.call(this);this.A=this.ta=this.o=null};
h.gb=function(a){ci("conn",a)};
h.jw=function(){this.C(2)};
h.Oy=function(){this.gb("Channel opened");this.M&&(this.M=!1,No(this),this.J=Ai(A(function(){this.gb("Timing out waiting for a screen.");this.C(1)},this),15E3));
xk(co(this.o),this.V)};
h.Ky=function(){this.gb("Channel closed");(0,window.isNaN)(this.D)?yk(!0):yk();this.dispose()};
h.Ly=function(a){yk();(0,window.isNaN)(this.F())?(this.gb("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,this.gb("Channel error: "+a+" with reconnection in "+this.F()+" ms"),Ko(this,2))};
h.My=function(a){a.params?this.gb("Received: action="+a.action+", params="+de(a.params)):this.gb("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=be(a.params.devices);this.A=O(a,function(a){return new dk(a)});
a=!!eb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
So(this,a);break;case "loungeScreenConnected":So(this,!0);break;case "loungeScreenDisconnected":rb(this.A,function(a){return"LOUNGE_SCREEN"==a.type});
So(this,!1);break;case "remoteConnected":var b=new dk(be(a.params.device));eb(this.A,function(a){return a.equals(b)})||ob(this.A,b);
break;case "remoteDisconnected":b=new dk(be(a.params.device));rb(this.A,function(a){return a.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":Vo(this,a);break;case "nowPlaying":Wo(this,a);break;case "onStateChange":Xo(this,a);break;case "onVolumeChanged":Yo(this,a);break;case "onSubtitlesTrackChanged":Uo(this,a);break;default:this.gb("Unrecognized action: "+a.action)}};
h.Ny=function(a){a.params?this.gb("Received: action="+a.action+", params="+de(a.params)):this.gb("Received: action="+a.action);Zo(this,a);$o(this,a);if(Ro(this)){var b=this.ta.clone(),c=!1,d,e,f,k,l,m;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,k=a.params.currentTime||a.params.current_time,l=a.params.volume,m=a.params.muted,n(a.params.currentError)&&be(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==po(this.ta)&&(delete a.params.videoId,
bc(a.params)?this.ta.B=null:this.ta.B=a.params,this.R("remotePlayerChange"));else if(po(this.ta)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=po(this.ta)):this.ta.setVideoId(""),e&&(e=e.split(","),to(this.ta,e,d))):to(this.ta,[]);e=this.ta;var p=d;mo(e,"add");p&&!jb(e.videoIds,p)?(e.videoIds.push(p),e=!0):e=!1;e&&Qo(this,"getPlaylist");d&&this.ta.setVideoId(d);b.index==this.ta.index&&Fb(b.videoIds,
this.ta.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.R("remoteQueueChange"):this.R("remoteQueueChange");n(f)&&(a=(0,window.parseInt)(f,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.ta.o&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.ta.o,this.ta.o=a,1==this.ta.o?Oo(this):Po(this));k&&(a=(0,window.parseInt)(k,10),qo(this.ta,(0,window.isNaN)(a)?0:a),c=!0);n(l)&&(a=(0,window.parseInt)(l,10),(0,window.isNaN)(a)||(c=c||this.ta.volume!=a,this.ta.volume=a),n(m)&&(m="true"==
m,c=c||this.ta.muted!=m,this.ta.muted=m));c&&this.R("remotePlayerChange")}}};
h.ZB=function(){if(this.B){var a=this.B;this.B=null;this.ta.videoId!=a&&Qo(this,"getNowPlaying")}};
Io.prototype.subscribe=Io.prototype.subscribe;Io.prototype.unsubscribeByKey=Io.prototype.Xb;Io.prototype.Z=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.F())?Ro(this)&&(a=1):a=2);return a};
Io.prototype.getProxyState=Io.prototype.Z;Io.prototype.C=function(a){this.gb("Disconnecting with "+a);Mo(this);this.R("beforeDisconnect",a);1==a&&yk();eo(this.o,a);this.dispose()};
Io.prototype.disconnect=Io.prototype.C;Io.prototype.Y=function(){var a=this.ta;this.B&&(a=this.ta.clone(),so(a,this.B,a.index));return uo(a)};
Io.prototype.getPlayerContextData=Io.prototype.Y;
Io.prototype.da=function(a){var b=new lo(a);b.videoId&&b.videoId!=this.ta.videoId&&(this.B=b.videoId,Di(this.G),this.G=Ai(A(this.ZB,this),5E3));var c=[];this.ta.A==b.A&&this.ta.videoId==b.videoId&&this.ta.index==b.index&&Fb(this.ta.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ta.o==b.o&&this.ta.volume==b.volume&&this.ta.muted==b.muted&&ro(this.ta)==ro(b)&&de(this.ta.B)==de(b.B)||c.push("remotePlayerChange");this.ta.reset(a);E(c,function(a){this.R(a)},this)};
Io.prototype.setPlayerContextData=Io.prototype.da;Io.prototype.U=function(){return this.o.C.loungeIdToken};
Io.prototype.getLoungeToken=Io.prototype.U;Io.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:""};
Io.prototype.getOtherConnectedRemoteId=Io.prototype.K;Io.prototype.F=function(){var a=this.o;return a.A.enabled?a.A.D-I():window.NaN};
Io.prototype.getReconnectTimeout=Io.prototype.F;Io.prototype.fa=function(){if(!(0,window.isNaN)(this.F())){var a=this.o.A;a.enabled&&(a.stop(),a.start(),a.F())}};
Io.prototype.reconnect=Io.prototype.fa;Io.prototype.aa=function(a,b){Qo(this,a,b);To(this)};
Io.prototype.sendMessage=Io.prototype.aa;var ep=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(ip,Sj);h=ip.prototype;h.Zb=function(a){return this.Lb.$_gs(a)};
h.contains=function(a){return!!this.Lb.$_c(a)};
h.get=function(a){return this.Lb.$_g(a)};
h.start=function(){this.Lb.$_st()};
h.nj=function(a,b,c){this.Lb.$_a(a,b,c)};
h.remove=function(a,b,c){this.Lb.$_r(a,b,c)};
h.gj=function(a,b,c,d){this.Lb.$_un(a,b,c,d)};
h.T=function(){for(var a=0,b=this.o.length;a<b;++a)this.Lb.$_ubk(this.o[a]);this.o.length=0;this.Lb=null;ip.N.T.call(this)};
h.QC=function(){this.R("screenChange")};
h.hA=function(){this.R("onlineScreenChange")};
Mk.prototype.$_st=Mk.prototype.start;Mk.prototype.$_gspc=Mk.prototype.RC;Mk.prototype.$_gsppc=Mk.prototype.or;Mk.prototype.$_c=Mk.prototype.contains;Mk.prototype.$_g=Mk.prototype.get;Mk.prototype.$_a=Mk.prototype.nj;Mk.prototype.$_un=Mk.prototype.gj;Mk.prototype.$_r=Mk.prototype.remove;Mk.prototype.$_gs=Mk.prototype.Zb;Mk.prototype.$_gos=Mk.prototype.nr;Mk.prototype.$_s=Mk.prototype.subscribe;Mk.prototype.$_ubk=Mk.prototype.Xb;var lp=null,mp=null,up=null,dp=null,tp=[];var Vp=/^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]+)?\/)/,Dw=/^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]+)?([\/\?\#]|$)/,
rea=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,xG=/^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(\/+|\?|#|$)/,Lw=/^((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)|((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]+)?([\/\?\#]|$))/,
Up=/^https?:\/\/([-\w.]+\.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]+)?\/)/,Nfa=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Pw=/^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)/,
Ofa=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,yr=/^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)(:[0-9]+)?([\/\?\#]|$)/,yG=/^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]+)?([\/\?\#]|$))/,
HG=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Xp=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|lh2\.google\.com|plus\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Yp=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];var eq={},dq=0,Pfa=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",Pfa,void 0);var gq=1;fq.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};
fq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(iq,fq);iq.prototype.getId=function(){return this.J};
iq.prototype.toString=function(){return iq.N.toString.call(this)};B(mq,Rj);h=mq.prototype;h.jb=function(a,b){for(var c=0;c<a.length;c++)a[c].o=this.sa;this.o.jb(a,b)};
h.create=function(){this.J||(this.Wa(this.o),J(this.o.Aa(),this.sa+"-created"),this.o.addEventListener("crn_"+this.sa,this.mc,this),this.o.addEventListener("crx_"+this.sa,this.Jc,this),this.J=!0)};
h.destroy=function(){this.loaded&&this.unload();Zd(this.o.Aa(),this.sa+"-created");this.o.removeEventListener("crn_"+this.sa,this.mc,this);this.o.removeEventListener("crx_"+this.sa,this.Jc,this);this.J=!1;this.R("destroyed",this.sa)};
h.load=function(){this.loaded=!0;J(this.o.Aa(),this.sa+"-loaded");this.R("loaded",this.sa)};
h.unload=function(){this.loaded=!1;Zd(this.o.Aa(),this.sa+"-loaded");this.R("unloaded",this.sa)};
h.mc=function(){};
h.Jc=function(){};
h.Td=function(){};
h.log=function(a){AH(this.o,this.H,a)};
h.nh=function(){return null};
h.pauseVideo=function(){this.R("command_pause",!1,this.o.playerType)};
h.ge=function(){};
h.Ve=function(){return[]};
h.Wa=function(){return!1};
h.Hl=function(a,b){this.G&&this.G.Td&&this.G.Td.apply(this.G,arguments)};
h.Ki=function(){};B(wq,F);wq.prototype.o=function(a,b){n(b)?pf(a,this.element,b):a.appendChild(this.element)};
wq.prototype.update=function(a){for(var b in a)Bq(this,b,a[b])};
wq.prototype.T=function(){this.ra={};this.ma={};Aq(this);wq.N.T.call(this)};B(Q,wq);h=Q.prototype;h.Db=function(a,b){Bq(this,b||"content",a)};
h.show=function(){this.B||(Dq(this.element,""),this.B=!0)};
h.ga=function(){this.B&&(Dq(this.element,"none"),this.B=!1)};
h.yb=function(a){a?this.show():this.ga()};
h.P=function(a,b,c){return R(this,this.element,a,b,c)};
h.za=function(a){for(var b=0;b<this.V.length;b++)if(this.V[b]==a){a=this.V.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Cf(this.element);this.element.focus()};
h.T=function(){for(;this.V.length;){var a=this.V.pop();a.target.removeEventListener(a.type,a.listener)}Q.N.T.call(this)};B(Gq,Q);Gq.prototype.subscribe=function(a,b,c){return this.O.subscribe(a,b,c)};
Gq.prototype.unsubscribe=function(a,b,c){return this.O.unsubscribe(a,b,c)};
Gq.prototype.Xb=function(a){return this.O.Xb(a)};
Gq.prototype.R=function(a,b){return this.O.R.apply(this.O,arguments)};B(Hq,Gq);Hq.prototype.create=function(){this.K=!0};
Hq.prototype.destroy=function(){this.K=!1};
Hq.prototype.Jh=function(){return!1};B(Iq,Q);var Qfa=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(wc)return zc("10.0");
var a=window.document.createElement("DIV"),b=xc?"-webkit":uc?"-moz":wc?"-ms":Lf?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!k$.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Dfa)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!k$.test(e))throw Error('Invalid attribute name "'+e+'".');var f=b[e];if(null!=f){var k;k=e;if(f instanceof Ae)f=Ce(f);else if("style"==k.toLowerCase()){if(!ia(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+
typeof f+" given: "+f);if(!(f instanceof Ee)){var l="",m=void 0;for(m in f){if(!/^[-_a-zA-Z0-9]+$/.test(m))throw Error("Name allows only [-_a-zA-Z0-9], got: "+m);var p=f[m];if(null!=p){if(p instanceof Ae)p=Ce(p);else if(Bfa.test(p)){for(var u=!0,v=!0,z=0;z<p.length;z++){var x=p.charAt(z);"'"==x&&v?u=!u:'"'==x&&u&&(v=!v)}u&&v||(p="zClosurez")}else p="zClosurez";l+=m+":"+p+";"}}f=l?Ge(l):Afa}f=f instanceof Ee&&f.constructor===Ee&&f.A===Fe?f.o:"type_error:SafeStyle"}else{if(/^on/i.test(k))throw Error('Attribute "'+
k+'" requires goog.string.Const value, "'+f+'" given.');if(k.toLowerCase()in Cfa)if(f instanceof Me)f=Oe(f);else if(f instanceof He)f=Je(f);else if(y(f))f=Ke(f).hd();else throw Error('Attribute "'+k+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+f+'" given.');}f.Ke&&(f=f.hd());k=k+'="'+ya(String(f))+'"';d=d+(" "+k)}}e=void 0;null!=e?da(e)||(e=[e]):e=[];!0===yfa.div?d+=">":(c=Se(e),d+=">"+Re(c)+"</div>",c=c.ff());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=
null);b=Te(d,c);a.innerHTML=Re(b);return""!=Pf(a.firstChild,"transition")});B(Pq,F);h=Pq.prototype;h.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(),Qq(this,!1),this.o=null,this.A.stop()):this.B.B||(Qq(this,!this.C),this.o=1,b?this.A.start(b):this.gm()))};
h.ga=function(){3!=this.o&&(1==this.o||2==this.o?(this.B.ga(),this.o=null,this.A.stop()):this.B.B&&(Qq(this,!0),this.o=3,this.A.start(this.F)))};
h.gm=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:Qq(this,this.C);this.C?(this.o=3,this.A.start(this.D)):this.o=null;break;case 3:this.B.ga();Qq(this,!1);this.o=4;this.A.start(0);break;case 4:this.o=null}};
h.stop=function(){for(;null!=this.o&&4!=this.o;)this.A.stop(),this.gm()};
h.T=function(){this.B.isDisposed()||this.B.element.removeAttribute("aria-hidden");Pq.N.T.call(this)};B(Rq,Q);B(Sq,Rq);Sq.prototype.yb=function(a){a?this.C.show():this.C.ga()};B(Tq,Hq);Tq.prototype.create=function(){Tq.N.create.call(this);of(this.element);this.D.o(this.element);var a=this.A.getVideoData().videoId;a&&(a=NG(this.A.W(),a,!0),Bj(a,{method:"GET",nb:this.F,context:this,Dv:!0}))};
Tq.prototype.F=function(a,b){if(this.K){var c=b.user_info;this.A.getVideoData();var d=c.channel_banner_url;Lw.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Lw.test(e)||(e="");Bq(this.C,"background",d?"background-image: url("+d+")":"");Bq(this.D,"image",e);Bq(this.D,"author",c.channel_title||c.username);c=c.subscription_button_html;d=this.D.ra["html5-subscribe-button-container"];c?d.innerHTML=Re(c):of(d)}};
Tq.prototype.show=function(){Tq.N.show.call(this);this.C.yb(!0)};
Tq.prototype.ga=function(){Tq.N.ga.call(this);this.C.yb(!1)};B(Vq,Q);Vq.prototype.T=function(){Vq.N.T.call(this);this.C&&(Yq(this.A.app,this.C),this.C=null);Xq(this);of(Wq(this));of($q(this));this.F=this.D=null;delete this.A};ar.prototype.toString=function(){return this.type+this.id};var W5=16/9,Rfa=4/3,z9=[.25,.5,1,1.25,1.5,2];var dr={G6:function(a){a.reverse()},
yY:function(a,b){a.splice(0,b)},
wR:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}};var ir={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",140:"a",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 Yv={name:"width",video:!0,valid:640,Ig:99999},Zv={name:"height",video:!0,valid:360,Ig:99999},$v={name:"framerate",video:!0,valid:30,Ig:9999},aw={name:"bitrate",video:!0,valid:3E5,Ig:2E9},bw={name:"channels",video:!1,valid:2,Ig:99},cw={Ch:Yv,wh:Zv,A:$v,Ym:aw,o:bw};nr.prototype.toString=function(){return this.name};var au={nG:"auto",zI:"tiny",fu:"light",SMALL:"small",ou:"medium",LARGE:"large",aH:"hd720",XG:"hd1080",YG:"hd1440",ZG:"hd2160",$G:"hd2880",eH:"highres",UNKNOWN:"unknown"},qr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},pr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var rr=[["60",55],["50",49],["48",39]];sr.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.A="")};
sr.prototype.get=function(a){wr(this);return this.o[a]||null};
sr.prototype.clone=function(){var a=new sr(this.B);a.F=this.F;a.C=this.C;a.D=this.D;a.o=fc(this.o);a.A=this.A;return a};Cr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=Jr.prototype;h.ag=function(a){return(a=Kr(this,a))?a.duration:0};
h.uk=function(a){return this.ag(a)};
h.yg=function(){return this.ua.length?this.ua[0].o:-1};
h.Kb=function(){return this.ua.length?this.ua[this.ua.length-1].o:-1};
h.cg=function(){var a=this.ua[this.ua.length-1];return a?a.endTime:window.NaN};
h.Hr=function(){return this.ua[0].startTime};
h.Zn=function(){return this.ua.length};
h.Aj=function(){return 0};
h.gf=function(a){return(a=Lr(this,a))?a.o:-1};
h.bo=function(a){return Kr(this,a).sourceURL};
h.ee=function(a){return(a=Kr(this,a))?a.startTime:0};
h.dg=function(){return 0<this.ua.length};Nr.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""};
Nr.prototype.get=function(a){return this.A[a]||this.o.get(a)};var v$=0;Ur.prototype.il=function(){return!1};
Ur.prototype.sq=function(a){return[a]};
Ur.prototype.Vi=function(a){return[a]};Wr.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(es,Ur);h=es.prototype;h.Nh=function(){return!1};
h.Yn=function(){var a=new Wr(1,this,this.initRange);return[new bs([a],this.C)]};
h.gi=function(a,b){var c=this.index.gf(a);b&&(c=Math.min(this.index.Kb(),c+1));return gs(this,c,!0)};
h.lo=function(a){this.o=new window.Uint8Array(Ps(a).buffer)};
h.il=function(){return!1};
h.mh=function(a){return 0==a.A?!0:this.index.Kb()>a.C&&this.index.yg()<=a.C+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=tb(a),0==d.ua.length)d.ua=a;else{var e=d.ua.length?db(d.ua).endTime:0,f=a[0].o-d.Kb();1<f&&nb(d.ua);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.ua.push(a[f])}}Mr(this.index,c);this.A=b};js.prototype.update=function(a){var b=void 0;this.A&&(b=this.A);var c=b,b=+Fr(a,"timescale")||1,d=+Fr(a,"startNumber")||0,e=0,f=1;c&&(e=c.$d+c.durationSecs,f=d-c.o);var c=Date.parse(Fr(a,"yt:segmentIngestTime")),k=Date.parse(Fr(a,"yt:mpdResponseTime")),k=I()-k,c=(c+k)/1E3,k=new js,f=0<f?0:-f+1;k.C=f;a=a.getElementsByTagName("S");for(var l=d,m=0;m<a.length;m++)for(var p=a[m],u=+p.getAttribute("d")/b,v=(p.getAttribute("yt:sid")||0)/b,z=+p.getAttribute("r")||0,x=0;x<=z;x++)if(l<d+f)l++;else{var ga=new is(l,
e,u,c+v);k.o.push(ga);l++;var e=e+u,c=c+(u+v),xa=p.getAttribute("yt:cuepointTimeOffset"),K=p.getAttribute("yt:cuepointDuration"),Y=p.getAttribute("yt:cuepointContext")||null;xa&&K&&k.B.push(new hs(+xa/b+ga.$d,+K/b,Y))}k.o.length&&(k.A=db(k.o));this.C=k.C;this.A=k.A||this.A;this.o=k.o;ub(this.B,k.B)};Cs.prototype.skip=function(a){this.o+=a};h=Us.prototype;h.Aj=function(a){return this.o[a]};
h.ee=function(a){return this.A[a]/this.C};
h.ag=function(a){a=this.uk(a);return 0<=a?a/this.C:-1};
h.uk=function(a){return a+1<this.xa||this.B?this.A[a+1]-this.A[a]:-1};
h.yg=function(){return 0};
h.Kb=function(){return this.xa-1};
h.cg=function(){return this.B?this.A[this.xa]/this.C:window.NaN};
h.Hr=function(){return 0};
h.Zn=function(){return this.xa};
h.bo=function(){return""};
h.gf=function(a){a=yb(this.A.subarray(0,this.xa),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
h.dg=function(){return 0<=this.Kb()};B(Ws,Ur);h=Ws.prototype;h.Yn=function(a){var b=new Wr(1,this,this.initRange),c=new Wr(2,this,this.indexRange),d=[],e=[b];Yr(b,c)?e.push(c):(d.push(new bs([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=Er(b.range.end+1,a-c),e.push(new Wr(4,this,a)));d.push(new bs(e));return d};
h.lo=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.Kb())return;if(1==this.info.A){var b=this.index,c=Ps(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.C=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(f=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]=f;b.B=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var l=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.xa++;Vs(f);f.o[f.xa]=f.o[f.xa-1]+l;f.A[f.xa]=f.A[f.xa-1]+k}}else this.C=Ps(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 Es(a);if(440786851==Fs(a)&&(Hs(a),408125543==Fs(a))){e=a;f=e.o;d=Gs(e,!0);e.o=f;a=Is(a);for(var e=a.B+a.o,m=Fs(a);357149030!=m;)Hs(a),m=Fs(a);
a=Is(a);for(var l=1E6,p=1E9,f=0;!(a.o>=a.A.byteLength);)if(m=Fs(a),2807729==m)l=Js(a);else if(2807730==m)p=Js(a);else if(17545==m){var f=a,m=Gs(f,!0),u=0;4==m?u=f.A.getFloat32(f.o):8==m&&(u=f.A.getFloat64(f.o));f.o+=m;f=u}else Hs(a);b.C=p/l;a=new Es(k);if(475249515==Fs(a)){a=Is(a);k=!0;for(l=!1;!(a.o>=a.A.byteLength);)if(m=Fs(a),187==m){p=Is(a);m=e;if(179!=Fs(p))u=null;else if(u=Js(p),183!=Fs(p))u=null;else{for(var p=Is(p),v=m;!(p.o>=p.A.byteLength);)241==Fs(p)?v=Js(p)+m:Hs(p);u=[v,u]}k&&c==u[0]&&
(l=!0);k=!1;l&&(u[0]+=1);p=b;m=u[0];u=u[1];Vs(p);p.o[p.xa]=m;p.A[p.xa]=u;p.xa++}else Hs(a);c=d+e;a=f;Vs(b);b.B=!0;b.A[b.xa]=a;b.o[b.xa]=c}}this.C=null}};
h.sq=function(a){for(var b=this.Vi(a.info),c=[],d=a.B,e=0;e<b.length;e++){var f=Er(b[e].range.start+b[e].B-a.info.range.start+a.range.start,b[e].A);c.push(new Os(b[e],a.o,f,a.A,d));d=!1}return c};
h.Vi=function(a){for(var b=0;b<this.index.Kb()&&a.range.start>=this.index.Aj(b+1);)b++;return Xs(this,b,a.range.start,a.range.length).o};
h.mh=function(a){return Vr(this)?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
h.gi=function(a,b){var c=this.index.gf(a);b&&(c=Math.min(this.index.Kb(),c+1));return Xs(this,c,this.index.Aj(c),0)};
h.il=function(){var a;if(a=Vr(this)&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.xa]:-1)!=this.A;return a};
h.Nh=function(){return!0};B(Zs,Rj);var et={commentary:1,alternate:2,dub:3,main:4};
Zs.prototype.M=function(a){this.G=a.status;a=a.responseText;var b=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];a=b.getElementsByTagName("Representation");if(0<b.getElementsByTagName("SegmentList").length){this.A=1E3*Hr(Fr(b,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.A;this.C=!0;this.H=(0,window.parseInt)(Fr(b,"yt:earliestMediaSequence"),10);this.B||(this.B=new ls);ns(this.B,b);this.R("refresh");for(b=0;b<a.length;b++){var c=dt(this,
a[b]);if(!this.o[c.id]){var d=ct(Gr(a[b],"BaseURL").textContent,c),e=Gr(a[b],"Initialization"),f=Fr(e,"sourceURL"),e=Dr(Fr(e,"range"));this.o[c.id]=new es(d,c,f,null===e?void 0:e)}for(var c=this.o[c.id],d=this.B,f=c,e=bb(f.info.mimeType,";",1)[0],f=d.B[f.info.id]||d.A[e]||d.o||null,d=wb(Gr(a[b],"SegmentList").getElementsByTagName("SegmentURL"),f.C),f=f.o,e=[],k=0;k<d.length;k++)e.push(gt(d[k],f[k]));c.update(e,this.isLive,this.H)}os(this.B)}else b:for(this.duration=Hr(Fr(b,"mediaPresentationDuration")),
b=0;b<a.length;b++){e=a[b];c=dt(this,e);f=Gr(e,"BaseURL");d=ct(f.textContent,c);k=Gr(e,"SegmentBase");e=Dr(k.attributes.indexRange.value);k=Dr(k.getElementsByTagName("Initialization")[0].attributes.range.value);f=(0,window.parseInt)(f.getAttribute("yt:contentLength"),10);c=new Ws(d,c,k,e,f,window.NaN);if(!c)break b;this.o[c.info.id]=c}this.D=2;this.R("loaded");(0,window.isFinite)(this.A)&&(a=$s()-this.F,a=Math.max(0,this.A-a),Ai(A(this.L,this),a));return this};
Zs.prototype.O=function(a){this.G=a.status;this.D=3;this.R("load_error");return Dd(a)};
Zs.prototype.L=function(){if(1!=this.D&&!this.isDisposed()){var a;a:{a=this.o;for(var b in a){var c=a[b].index;if(c&&c.dg()){a=c.Kb()+1;break a}}a=0}a=Ug(this.K,{start_seq:a.toString()});ft(this,a)}};var Pv,EG;var w$=pc,w$=w$.toLowerCase();if(Ha(w$,"android")){var x$=w$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(x$)Pv=Number(x$[1]);else{var y$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},z$=w$.match("("+Xb(y$).join("|")+")");Pv=z$?y$[z$[0]]:0}}else Pv=void 0;EG=0<=Pv;var Sv=BG||Jw;var tu,f6,xt=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],zt=['audio/mp4; codecs="mp4a.40.2"'];var Kt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Lt=sb(Kt.widevine,Kt.playready);B(It,F);It.prototype.F=function(a,b){if(!this.isDisposed()){a.B=b;var c=b.getConfiguration();E([c.audioCapabilities,c.videoCapabilities],function(b){E(b,function(b){a.C[b.contentType]=!0})});
this.C(a)}};
It.prototype.D=function(){this.isDisposed()||(0<this.A.length?Mt(this):this.C(null))};Pt.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};Qt.prototype.toString=function(){return this.o+": "+St(this)+" - "+this.G};
Qt.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Ut.prototype.toString=function(){return this.Hb.name};Vt.prototype.equals=function(a){return this.A==a.A&&this.o==a.o&&this.B==a.B};
var s1=Wt("auto","large",!1),Zt=Wt("auto","auto",!1);Wt("small","auto",!1);var Sfa=Wt("auto","hd720",!1);Vt.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o};
Vt.prototype.C=function(a){if(!a.video)return!1;a=qr[a.video.quality];return this.A<=a&&(!this.o||this.o>=a)};var Ow={rH:1,sH:2,tH:3};cu.prototype.getValue=function(){return this.A};
cu.prototype.clone=function(){return new cu(this.o,this.A)};h=du.prototype;h.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)nb(a);else{a[0]=a.pop();for(var a=0,b=this.o,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].o<b[f].o?k:f;if(b[f].o>e.o)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
h.Ka=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.Na=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
h.ye=function(a){return Ih(this.o,function(b){return b.getValue()==a})};
h.clone=function(){return new du(this)};
h.Ya=function(){return this.o.length};
h.isEmpty=function(){return lb(this.o)};
h.clear=function(){nb(this.o)};B(fu,du);B(gu,Rj);gu.prototype.F=function(a,b){this.o=this.o.onload=null;var c=this.A.o[a];c.B[b]=!0;lu(this);var d=c.Fb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.wk()-1)];this.R("l",c[0],c[1])};
gu.prototype.T=function(){this.o&&(this.o=this.o.onload=null);gu.N.T.call(this)};h=nu.prototype;h.getWidth=function(){return this.H};
h.getHeight=function(){return this.G};
h.wk=function(){return this.A};
h.isDefault=function(){return-1!=this.C.indexOf("default")};
h.Fj=function(a){return ke(0==this.D?Math.round(a*this.A/this.L):Math.round(1E3*a/this.D),0,this.wk()-1)};
h.Om=function(){return this.A-1};
h.us=function(){return this.A?0:-1};
h.vs=function(){};ou.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.C(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
ou.prototype.C=function(a,b,c,d){return new nu(a,b,c,d)};
ou.prototype.D=function(){};B(pu,nu);h=pu.prototype;h.wk=function(){return this.o?this.o.Zn():-1};
h.Fj=function(a){var b=this.rows*this.Fb*this.J,c=-1,d=-1,e=this.o;e&&(c=e.Kb(),d=e.gf(a));return d>c-b?-1:d};
h.Om=function(){return this.o?this.o.Kb():-1};
h.us=function(){return this.o?this.o.yg():-1};
h.vs=function(a){this.o=a?a.index:null};B(qu,ou);qu.prototype.A=function(a,b){return qu.N.A.call(this,"$N|"+a,b)};
qu.prototype.C=function(a,b,c){return new pu(a,b,c,this.F.isLive)};
qu.prototype.D=function(a){for(var b=0;b<this.o.length;b++)this.o[b].vs(a)};var uu=I().toString();var Du=/^([0-9\.]+)\:([0-9\.]+)$/;var Ju=0;Lu.prototype.nc=function(){return{version:this.version,args:this.args}};
Ou.prototype.toString=function(){return this.topic};var Tfa=t("yt.pubsub2.instance_")||new ui;ui.prototype.subscribe=ui.prototype.subscribe;ui.prototype.unsubscribeByKey=ui.prototype.Xb;ui.prototype.publish=ui.prototype.R;ui.prototype.clear=ui.prototype.clear;q("yt.pubsub2.instance_",Tfa,void 0);var Su=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Su,void 0);var Uu=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Uu,void 0);var Tu=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Tu,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);B(Xu,Lu);var Qu=new Ou("timing-sent",Xu);var jv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},hv=A(jv.clearResourceTimings||jv.webkitClearResourceTimings||jv.mozClearResourceTimings||jv.msClearResourceTimings||jv.oClearResourceTimings||w,jv),$u=jv.mark?function(a){jv.mark(a)}:w;var Kw,F1;var A$=pc,B$=A$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!B$||2>B$.length)Kw=void 0;else{var C$=A$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Kw=C$&&6==C$.length?Number(C$[5].replace("_",".")):0}(F1=0<=Kw)&&0<=pc.search("Safari")&&pc.search("Version");var Iw={fu:1,JG:2};var Gw={LIKE:0,DISLIKE:1,INDIFFERENT:2};var qv=function(){if(N6)return pv(/Firefox\/([0-9.]+)/);if(wc||vc||Lf)return Bc;if(Fl)return pv(/Chrome\/([0-9.]+)/);if(Ft&&!(sc()||oc("iPad")||oc("iPod")))return pv(/Version\/([0-9.]+)/);if(BG||Jw){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(pc))return a[1]+"."+a[2]}else if(CG)return(a=pv(/Android\s+([0-9.]+)/))?a:pv(/Version\/([0-9.]+)/);return""}();rv.prototype.start=function(){return 0};
rv.prototype.end=function(){return window.Infinity};
rv.prototype.length=1;h=tv.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};uv.prototype.dispose=function(){if(!this.B){if(this.o)try{window.URL.revokeObjectURL(this.C)}catch(a){}this.B=!0}};
uv.prototype.isDisposed=function(){return this.B};
uv.prototype.equals=function(a){return null!=a&&vv(a)==vv(this)};h=wv.prototype;h.append=function(a){this.A.webkitSourceAppend(this.B,a)};
h.abort=function(){this.A.webkitSourceAbort(this.B)};
h.DC=function(){return this.A.webkitSourceState==this.A.SOURCE_CLOSED?new xv:this.A.webkitSourceBuffered(this.B)};
h.FC=function(){return this.C};
h.JC=function(a){this.C=a;this.A.webkitSourceTimestampOffset(this.B,a)};h=yv.prototype;h.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
h.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)};
h.LE=function(){return this.o.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new wv(this.o,b);this.sourceBuffers.push(a);return a};
h.GC=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""};
h.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)};
h.HC=function(){nb(this.sourceBuffers)};
h.EC=function(){return this.A};
h.IC=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};B(zv,F);zv.prototype.za=function(a){for(var b=0;b<this.M.length;b++)if(this.M[b]==a){this.M.splice(b,1);a.target.removeEventListener(a.name,a.Mh);break}};
zv.prototype.T=function(){Bv(this);zv.N.T.call(this)};B(Cv,zv);Cv.prototype.Jf=function(a){Gv(this)?this.B.duration=a:this.C=a};
Cv.prototype.K=function(){if(!this.isDisposed()&&Gv(this)&&!(0,window.isNaN)(this.C)){this.B.duration=this.C;this.C=window.NaN;try{this.o=this.B.addSourceBuffer(this.H),this.S?this.A=this.B.addSourceBuffer(this.L):this.A=new tv,this.D&&(this.D(this),this.D=null)}catch(a){this.F&&this.F()}}};
Cv.prototype.J=function(){this.dispose()};Mv.prototype.A=function(){return null};
var Qv={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var gw="9h8(H*".split(""),iw="h98H(*".split(""),jw="oMavAV".split(""),kw="aoMvAV".split(""),hw=["f"],Uv={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Vv={"application/x-mpegURL":"maybe"},Tv={"application/x-mpegURL":"maybe"};B(tw,Mv);
tw.prototype.A=function(){if(!this.o||this.o.isDisposed()){var a;a=this.B;pw(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.A.length;d<e;++d){var f=a.A[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.o.length;d<e;++d){var k=a.o[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Ln+","+f.Ln)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.o=new uv("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.o};B(ww,Mv);ww.prototype.A=function(){return new uv(this.o)};B(Aw,Rj);Aw.H=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Aw.o=1;Aw.D=-21;Aw.F=18E3;Aw.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(" ");Aw.G="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(" ");
Aw.A={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};Aw.C=["www.youtube.com","manifest.googlevideo.com"];h=Aw.prototype;h.adModule=!1;h.adaptiveFormats="";h.Bm=null;h.allowEmbed=!0;h.backgroundable=!1;h.Ed=!1;h.Ye="";h.yn=!1;h.Ih=!1;h.Hh=Aw.o;h.rj=null;h.watchAjaxToken=null;h.author="";h.pj=0;h.Oh=!1;h.Nn=!1;h.Ph="";h.Qh="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.Se=0;h.nk=!1;h.enableCardio=!1;
h.enableCardioBeforePlayback=!1;h.cf=0;h.Pd=!1;h.no=!1;h.qj=0;h.hh=0;h.al=!1;h.xf=!1;h.bl=!1;h.So=!1;h.fl=!1;h.isListed=!1;h.yf=!1;h.Fa=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.ml=!1;h.Xf=!1;h.Wo=!1;h.nl=!1;h.pl=3;h.liveStartWalltime=0;h.lengthSeconds=0;h.Cm=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.Fd=1;h.Vg=Zt;h.Be=!1;h.startSeconds=0;h.aj=null;h.sentiment=2;h.spacecastModule=!1;h.$g=Zt;h.Pf=null;h.title="";h.Sf="";h.hlsFormats="";
h.mj=null;h.lm="vvt";h.requiresPurchase=!1;h.clipStart=0;h.clipEnd=window.Infinity;h.Hx=function(a){(this.J=a)&&"fairplay"==this.J.o&&(this.J.fairPlayCert=this.fairPlayCert);Vw(this)};
h.kz=function(a){this.isDisposed()||(this.o=a,this.Fa?this.o.subscribe("refresh",this.wp,this):this.o.isLive=!1,Yu("mrc"),at(this.o)&&(this.Y=!0),Vw(this))};
h.jz=function(a){this.isDisposed()||(this.Pd=!1,this.R("dataloaderror",new nv("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.wp=function(){this.o.isLive||this.o.unsubscribe("refresh",this.wp,this);var a=wb(this.o.B.C,this.La);0<a.length&&(this.R("cuepointupdated",a),this.La+=a.length)};
h.Sc=function(a){return y(this.keywords[a])?this.keywords[a]:null};
h.Dq=function(){var a={format:"RAW",method:"GET",context:this,nb:this.Bz,onError:this.Bp,withCredentials:this.Dd};this.ie&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});Bj(this.ac,a);Yu("vir")};
h.Cc=function(a,b){if(30==this.V){var c=this.bb["default.jpg"];return c?c:this.videoId?Ug("//docs.google.com/vt",{id:this.videoId,authuser:this.zb,authkey:this.ob}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.bb[b])||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:PG(a,this.videoId,b)};
h.Bz=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.Pd=!1;var c=oj(b);"fail"==c.status?this.R("onStatusFail",c):(Yu("virc"),E(Aw.B,function(a){a in this.C&&(c[a]=this.C[a])},this),Bw(this,c),Vw(this))}else this.Bp(a)}};
h.Bp=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.rb&&(this.Nb?b="manifest.net.retryexhausted":(this.Nb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.he.start()));this.R("dataloaderror",new nv(b,c,d))}};
h.Te=function(){return null};
h.sb=function(){return this};
h.Ak=function(a){return a.getVideoUrl(this.videoId)};B(jx,Rj);h=jx.prototype;h.hasNext=function(a){return this.H||!!a||this.o+1<this.B};
h.sb=function(a){a=void 0!=a?a:this.o;a=this.A&&a in this.A?this.A[this.C[a]]:null;var b=null;a&&(b=new Aw(a),b.startSeconds=this.startSeconds||b.clipStart||0,this.D&&(b.playlistId=this.D.toString()));return b};
h.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.K++;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.K++}this.R("shuffle")};
h.Cc=function(a,b){b=b||"hqdefault.jpg";var c=this.O[b];if(c||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.M.length)return PG(a,this.M[0],b)};
h.Te=function(){return this.D?this.D.toString():null};
h.Ak=function(a){return a.getVideoUrl(this.sb().videoId,this.Te())};
h.T=function(){this.G=null;Ob(this.A);jx.N.T.call(this)};B(Bx,Q);h=Bx.prototype;h.tp=function(){this.yb(oH(this.C))};
h.Wm=function(){var a=this.C.W().experiments.C,b=Math.min($s()-this.F,a),a=Math.min(b/a,1);this.G.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.A&&this.A.start()};
h.select=function(a){Ex(this);var b=this.D.sb().videoId;S9(this.C.app,b,a?this.D.Yb:this.D.aa,this.D.Te())};
h.RF=function(a){!$l(a)&&yx(a)&&(this.select(),Zl(a))};
h.Qs=function(a){Zl(a);zH(this.C,"autonavcancel");U9(this.C.app,!0)};
h.T=function(){Ex(this);Bx.N.T.call(this)};B(Fx,Q);Fx.prototype.K=function(a,b){Di(this.A);this.context&&(this.A=Eq(A(this.K,this,a,b),b),a.call(this,new Date-this.J))};
Fx.prototype.T=function(){Di(this.A);this.context=null;Fx.N.T.call(this)};B(Px,Q);Px.prototype.If=function(){var a=this.A.sb().videoId;S9(this.C.app,a,this.A.aa,this.A.Te())};
Px.prototype.F=function(a){Kx(a,this.C,this.D)&&this.If()};
Px.prototype.G=function(a){switch(a.keyCode){case 13:case 32:$l(a)||(this.If(),Zl(a))}};B(Rx,Hq);Rx.o=2;h=Rx.prototype;h.create=function(){Rx.N.create.call(this);var a=this.A.getVideoData();a&&(this.C=a.H);this.xd();this.J.subscribe("onResize",this.xd,this);this.J.subscribe("videodatachange",this.Or,this);this.J.subscribe("autonavchange",this.Nr,this);this.J.subscribe("autonavcancel",this.iw,this)};
h.destroy=function(){this.J.unsubscribe("onResize",this.xd,this);this.J.unsubscribe("videodatachange",this.Or,this);Ob(this.D);this.C=[];this.D=[];Rx.N.destroy.call(this);Zd(this.element,"ytp-show-tiles");this.M.stop()};
h.Jh=function(){return 1!=this.A.getVideoData().Fd};
h.show=function(){Rx.N.show.call(this);this.A.W().isMobile?Vd(this.M):this.M.start();(this.L||this.G&&this.G!=this.A.getVideoData().clientPlaybackNonce)&&U9(this.A.app,!1);var a=Tx(this.A.W(),this.A.getVideoData(),this.A.$b()),b=!this.G&&this.Jh()&&a;a&&this.A.W().experiments.ka("ui_logging")&&this.Y.log({cancelButtonShow:b?"1":"0",state:this.Jh()?"enabled":"disabled"});b?2==this.A.getVideoData().Fd?Cx(this.F):3==this.A.getVideoData().Fd&&Dx(this.F):U9(this.A.app,!0);Vx(this)};
h.ga=function(){Rx.N.ga.call(this);Dx(this.F);Vx(this)};
h.xd=function(a){if((!a||Vl(a)==this.element)&&this.C&&this.C.length){a=this.A.W().experiments.ka("video_wall_pagination");var b=this.A.W().experiments.ka("video_wall_redesign");a&&J(this.element,"ytp-endscreen-paginate");var c=hg(this.element),d=96,e=54,f=c.width/c.height,k=d/e;Mx(this.A.W())&&!this.A.Ja()&&(d*=.9,e*=.9);for(var l=0,m=0,p=Math.max(c.width/d,2),u=Math.max(c.height/e,2),v=this.C.length,z=Math.pow(Rx.o,2),x=v*z,ga=Ux(this,0,u,p),xa=Ux(this,1,u,p),x=x+(Math.pow(ga,2)-z),x=x+(Math.pow(xa,
2)-z);0<x&&(l<p||m<u);){var K=l/Rx.o,Y=m/Rx.o,Mb=l<=p-Rx.o&&x>=Y*z,yd=m<=u-Rx.o&&x>=K*z;if(K/Y*k>f&&yd)x-=K*z,m+=Rx.o;else if(Mb)x-=Y*z,l+=Rx.o;else if(yd)x-=K*z,m+=Rx.o;else break}k=!1;p=Rx.o+ga;x>=3*z&&6>=v*z-x&&(m>=p||l>=p)&&xa<=Rx.o&&(k=!0);d*=l;e*=m;z=1;z=d/e<f?c.height/e:c.width/d;z=Math.min(z,b?2:Rx.B);d*=z;e*=z;f=b?1:Rx.A;d*=ke(c.width/d||1,1,f);e*=ke(c.height/e||1,1,f);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.S.element;eg(c,d,e);Mf(c,{marginLeft:d/-2+"px",
marginTop:e/-2+"px"});f=this.F;z=zx(this.C[0]);f.D=z;Ax(f,z,f.C.W(),"hqdefault.jpg");L(this.element,"ytp-endscreen-takeover",Sx(this));Vx(this);b=b?16:1;f=d+b;d=e+b;e=0;z=!1;for(x=0;x<l;x++)for(p=0;p<m;p++)if(u=xa>Rx.o&&1<=e&&!z?e+1:e,K=0,k&&x>=l-Rx.o&&p>=m-Rx.o?K=1:0==p%Rx.o&&0==x%Rx.o&&(p<ga&&x<ga?0==p&&0==x&&(K=ga):xa>Rx.o&&p>=m-xa&&x>=l-xa?p==m-xa&&x==l-xa&&(z=!0,u=1,K=xa):K=Rx.o),u=(u+this.H)%v,u=0>u*v?u+v:u,0!=K){Y=this.D[e];Y||(Y=new Px(this.A),this.D[e]=Y,c.appendChild(Y.element));var Mb=
Math.floor(d*p/m),yd=Math.floor(f*x/l),np=Math.floor(d*(p+K)/m)-Mb-b,op=Math.floor(f*(x+K)/l)-yd-b;Tf(Y.element,yd,Mb);eg(Y.element,op,np);Mf(Y.element,"transitionDelay",(p+x)/20+"s");L(Y.element,"videowall-still-mini",1==K);L(Y.element,"videowall-still-large",2<K);K=Y;u=zx(this.C[u]);K.A=u;Ax(K,u,K.C.W(),Xd(K.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");e++}a&&L(this.element,"ytp-endscreen-paginate",e<v);for(a=this.D.length-1;a>=e;a--)Y=this.D[a],qf(Y.element),Nb(Y);this.D.length=
e}};
Rx.B=1.42;Rx.A=1.21;h=Rx.prototype;h.Or=function(){var a=this.A.getVideoData().H;this.C!=a&&(this.H=0,this.C=a,this.xd())};
h.Ry=function(){this.H+=this.D.length;this.xd()};
h.Sy=function(){this.H-=this.D.length;this.xd()};
h.Nr=function(a){1==a?(this.L=!1,this.G=this.A.getVideoData().clientPlaybackNonce,Ex(this.F),this.B&&this.xd()):(this.L=!0,this.B&&Sx(this)&&(2==a?Cx(this.F):3==a&&Dx(this.F)))};
h.iw=function(a){a?this.Nr(1):(this.G=null,this.L=!1,this.xd())};B(Xx,mq);h=Xx.prototype;h.Wa=function(a){return Zx(a)};
h.create=function(){Xx.N.create.call(this);cy(this);this.o.getVideoData().subscribe("dataupdated",this.iq,this)};
h.destroy=function(){this.o.getVideoData().unsubscribe("dataupdated",this.iq,this);nq(this);this.A.K&&this.A.destroy();Xx.N.destroy.call(this)};
h.load=function(){Xx.N.load.call(this);this.A.show();this.o.W().Z&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.unload=function(){Xx.N.unload.call(this);this.A.ga()};
h.mc=function(a){Xx.N.mc.call(this,a);ay(this)&&(this.A.K||this.A.create(),"load"==a.getId()&&this.load())};
h.Jc=function(a){"load"==a.getId()&&this.loaded&&this.unload();Xx.N.Jc.call(this,a)};
h.iq=function(){nq(this);cy(this)};var xea={jG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",kG:"ERROR_AUTHENTICATION_EXPIRED",lG:"ERROR_AUTHENTICATION_MALFORMED",mG:"ERROR_AUTHENTICATION_MISSING",qG:"ERROR_BAD_REQUEST",vG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",DG:"ERROR_CGI_PARAMS_MALFORMED",EG:"ERROR_CGI_PARAMS_MISSING",LG:"YTP_DEVICE_FALLBACK",QG:"YTP_ERROR_LICENSE",VG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",WG:"YTP_ERROR_GEO_FAILURE",fH:"YTP_ERROR_GENERIC_WITHOUT_LINK",gH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mH:"YTP_ERROR_INVALID_DRM_MESSAGE",
pH:"LEARN_MORE",FH:"YTP_ERROR_NOT_SIGNED_IN",UH:"YTP_ERROR_PURCHASE_NOT_FOUND",VH:"YTP_ERROR_PURCHASE_REFUNDED",YH:"YTP_ERROR_RENTAL_EXPIRED",yG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",zG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",BG:"YTP_ERROR_CAST_TOKEN_FAILED",AG:"YTP_ERROR_CAST_TOKEN_EXPIRED",CG:"YTP_ERROR_CAST_TOKEN_MALFORMED",fI:"YTP_ERROR_SERVER_ERROR",sI:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",tI:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",uI:"YTP_ERROR_STREAMING_NOT_ALLOWED",vI:"YTP_ERROR_STREAMING_UNAVAILABLE",
bI:"YTP_ERROR_RETRYABLE_ERROR",EI:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",DI:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",MI:"YTP_ERROR_UNSUPPORTED_DEVICE",NI:"YTP_ERROR_UNUSUAL_ACTIVITY",XI:"YTP_ERROR_VIDEO_FORBIDDEN",YI:"YTP_ERROR_VIDEO_NOT_FOUND"},fy={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",
401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",
5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var zG={bG:"adunit",KG:"detailpage",OG:"embedded",oH:"leanback",SH:"profilepage"};var oy=F1&&4>Kw?.1:0,ofa=new my;h=my.prototype;h.Xe=null;h.Wj=!1;h.getCurrentTime=function(){return this.currentTime||0};
h.pauseVideo=function(){this.pause()};
h.setVolume=function(a,b){this.volume=a/100;this.muted=b};
h.mute=function(){this.muted=!0};
h.unMute=function(){this.muted=!1};
h.tv=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};
h.vv=function(){this.Wj&&!this.muted&&(this.muted=!0)};qy.prototype.Za=function(){return T(this,8)&&!T(this,64)&&!T(this,2)};var lz=[1,2,3,4,5],jz={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(Ey,Rj);Ey.prototype.C=function(){this.A.isActive()&&Vd(this.A)};
Ey.prototype.D=function(){var a={headers:{"Content-Type":"application/json"},wd:{alt:"json",key:this.G},postBody:this.H,format:"JSON",timeout:1E4,nb:A(this.K,this),onError:A(this.B,this),Ud:A(this.B,this)};this.F&&(a.headers["X-Goog-Visitor-Id"]=this.F);Aj(this.J,a)};
Ey.prototype.K=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.R("payload",a),this.o=7500+Math.floor(15E3*Math.random()),this.A.start(this.o)):this.B())};
Ey.prototype.B=function(){this.isDisposed()||(this.R("error"),192E4>this.o&&(this.o*=2),this.A.start(this.o))};B(Fy,Q);Fy.prototype.C=function(a){if(!yx(a)||this.A.W().experiments.ka("disable_fresca_video_navigation"))Kx(a,this.A,!0);else{var b=a.currentTarget.getAttribute("href");S9(this.A.app,b.substring(b.length-11),void 0,void 0);Zl(a)}};B(Gy,Q);h=Gy.prototype;h.Wx=function(a){if(!yx(a)||this.C.W().experiments.ka("disable_fresca_video_navigation"))Kx(a,this.C,!0);else{var b=a.currentTarget.getAttribute("href");S9(this.C.app,b.substring(b.length-11),void 0,void 0);Zl(a)}};
h.Qy=function(){this.D=!0;this.ga()};
h.show=function(){var a=!this.B;Gy.N.show.call(this);a&&qz(this.C)};
h.ga=function(){var a=this.B;Gy.N.ga.call(this);a&&qz(this.C)};
h.T=function(){Ob(this.A);Gy.N.T.call(this)};B(Ly,Q);
Ly.prototype.H=function(a){var b;b=this.A;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;L(this.element,"ytp-fresca-inline-countdown",b&&!0);L(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.A.startTime-Math.floor(I()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.G)){this.G=a;My(this,this.A,!0);return}Ny(this.A)||(a=this.A.startTime,b=Math.floor(I()/1E3),b>a?a="":(a-=b,a=86400>a?xx(a):259200>a?P("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):
P("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})),Bq(this,"countdown",a));Di(this.F);this.F=Ai(A(this.H,this),1E3)}};
Ly.prototype.T=function(){Di(this.F);Ly.N.T.call(this)};var Yy;
Yy={Kt:["BC","AD"],Jt:["Before Christ","Anno Domini"],ru:"JFMAMJJASOND".split(""),Ku:"JFMAMJJASOND".split(""),bn:"January February March April May June July August September October November December".split(" "),hn:"January February March April May June July August September October November December".split(" "),fn:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),jn:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),sn:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ln:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
gn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),kn:"Sun Mon Tue Wed Thu Fri Sat".split(" "),o:"SMTWTFS".split(""),Lu:"SMTWTFS".split(""),Eu:["Q1","Q2","Q3","Q4"],yu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Xm:["AM","PM"],Lj:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],nn:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Ft:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Nj:6,Tu:[5,6],Oj:5};Py.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};
Py.prototype.clone=function(){return new Py(this.F,this.D,this.o,this.A,this.B,this.C)};
h=Qy.prototype;h.Tn=Yy.Nj;h.Un=Yy.Oj;h.clone=function(){var a=new Qy(this.date);a.Tn=this.Tn;a.Un=this.Un;return a};
h.getFullYear=function(){return this.date.getFullYear()};
h.getMonth=function(){return this.date.getMonth()};
h.getDate=function(){return this.date.getDate()};
h.getTime=function(){return this.date.getTime()};
h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
h.getUTCMonth=function(){return this.date.getUTCMonth()};
h.getUTCDate=function(){return this.date.getUTCDate()};
h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
h.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
h.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1,2),Pa(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var bz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Xy.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-Wy(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=[],f=0;f<this.A.length;++f){var k=this.A[f].text;1==this.A[f].type?c.push(ez(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var az=!1;fz.prototype.isLive=function(){return"LIVE"==this.A};
fz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.A};
fz.prototype.getVideoUrl=function(){return this.F};hz.prototype.o=function(){return this.C};
hz.prototype.getMessage=function(){return this.messageText.length?this.messageText:kz(this)};
hz.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.o()==a.o()&&this.imageUrl==a.imageUrl&&Fb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};B(mz,mq);h=mz.prototype;h.Wa=function(){return fx(this.o.getVideoData(),"fresca_module")};
h.create=function(a){mz.N.create.call(this);var b=this.o.W();Rv(vt(),"application/x-mpegURL")||Wv()?(this.K=this.B=!1,this.L&&(this.D=new Ly(this.o),Uq(this.o,this.D.element,4)),this.C=a||null,this.C||(a=this.o.getVideoData(),this.C=new Ey(a.videoId,a.visitorData||zi("VISITOR_DATA",""),b.ke)),this.C.subscribe("payload",this.BA,this),this.C.subscribe("error",this.Rp,this),this.subscribe("onStateChange",this.Lr,this)):tJ(this.o.app.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
h.destroy=function(){this.unsubscribe("onStateChange",this.Lr,this);Ob(this.C,this.D);mz.N.destroy.call(this)};
h.Lr=function(a){this.A&&(this.K=T(a.state,2),Cy(oz(this.o))&&this.C.C(),pz(this,this.A))};
h.Rp=function(){if(!this.B){var a=this.o.getVideoData();a.hlsvp||a.G?this.o.W().experiments.ka("disable_fresca_error_fallback")||(this.B=!0,qq(this)):(sz(this,new hz(this.o.getVideoData().isLiveDefaultBroadcast)),pz(this,this.A))}};
h.BA=function(a){if(!a||a.error)this.Rp();else{var b=this.A?this.A.broadcastId:"",c=this.o.getVideoData();sz(this,new hz(c.isLiveDefaultBroadcast,a));this.F=this.F||c.isLiveDefaultBroadcast&&""!=b&&b!=this.A.broadcastId;6!=this.A.state||(c.hlsvp||c.G)&&!this.F?pz(this,this.A):(this.F=!1,this.o.Hm(c.videoId))}};var vz=wc&&tz();zz.prototype.P=function(a,b,c,d){c=A(c,d||this.A);a=Nl(a,b,c);this.o.push(a);return a};
zz.prototype.za=function(a){Rl(a);pb(this.o,a)};
zz.prototype.removeAll=function(){Rl(this.o);this.o.length=0};B(Cz,F);h=Cz.prototype;h.start=function(){this.stop();this.C=!1;var a=Dz(this),b=Ez(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(gd(this.B),20)};
h.stop=function(){if(this.isActive()){var a=Dz(this),b=Ez(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};
h.isActive=function(){return null!=this.o};
h.ew=function(){this.C&&this.o&&$c(this.o);this.o=null;this.F.call(this.D,I())};
h.T=function(){this.stop();Cz.N.T.call(this)};var Gz={},Hz=null;B(Lz,H);h=Lz.prototype;h.Za=function(){return 1==this.o};
h.Ii=function(){this.gc("begin")};
h.Ng=function(){this.gc("end")};
h.Ub=function(){this.gc("finish")};
h.gc=function(a){this.$(a)};B(Mz,Lz);h=Mz.prototype;h.play=function(a){if(a||0==this.o)this.progress=0,this.A=this.B;else if(this.Za())return!1;Fz(this);this.startTime=a=I();-1==this.o&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.progress||this.Ii();this.gc("play");-1==this.o&&this.gc("resume");this.o=1;var b=ka(this);b in Gz||(Gz[b]=this);Iz();Kz(this,a);return!0};
h.stop=function(a){Fz(this);this.o=0;a&&(this.progress=1);Nz(this,this.progress);this.gc("stop");this.Ng()};
h.pause=function(){this.Za()&&(Fz(this),this.o=-1,this.gc("pause"))};
h.T=function(){0==this.o||this.stop(!1);this.gc("destroy");Mz.N.T.call(this)};
h.destroy=function(){this.dispose()};
h.xl=function(){this.gc("animate")};
h.gc=function(a){this.$(new Oz(a,this))};
B(Oz,kc);B(Wz,F);h=Wz.prototype;h.jb=function(a){this.oc();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.oc()};
h.gh=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=yb(d,c,e.A);0<=c&&qb(d,c)}}this.oc()};
h.Of=function(){this.C=bA(this);this.H=!0;this.oc()};
h.reset=function(){this.H=this.K=!1;this.D.stop();this.o.o=[];this.A=[];this.oc();this.G=null};
h.oc=function(){this.J=!0;if(!this.F){for(var a=3;this.J&&a;){this.J=!1;this.F=!0;if(this.H&&!this.K){this.D.stop();var b=this.M();this.B&&T(b,32)&&this.L.start();for(var c=bA(this),d=T(b,2),e=[],f=[],k=0;k<this.A.length;k++){var l=this.A[k];l.active&&(d&&this.B?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(Yz(this,f));f=void 0;if(this.B)if(d)f=Sz(this.o,0x7ffffffffffff),f=f.concat(Tz(this.o,0x7ffffffffffff));else{if(this.C<c&&b.Za()){d=this.o;f=c;k=[];for(l=Uz(d,this.C);l<d.o.length;++l){var m=
d.o[l];(m.end<=f||m.contains(f))&&k.push(m);if(m.start>f)break}d=k}else d=Sz(this.o,c);f=d}else f=Sz(this.o,c),!T(b,48)&&c>this.C&&(f=f.concat(Tz(this.o,this.C,c)));e=e.concat(Xz(this,f));this.C=c;!this.K&&this.G&&(this.G=null,!this.B&&T(b,2)&&(this.C=0x8000000000000));!this.B&&this.U()&&aA(this);Zz(this,e)}this.F=!1;a--}this.B&&this.M().Za()&&aA(this)}};
h.T=function(){this.G=this.o=this.A=null;Wz.N.T.call(this)};var rA={IG:"current",EH:"new"};AA.prototype.update=function(){var a=this.A.B()||0,b=WA(this.A);if(a!=this.o||FA(this,a,b)){if(a<this.o||a-this.o>b-this.D+.5||FA(this,a,b))CA(this),this.B=a;this.D=b;this.o=a}};var HA=!1;GA.prototype.ka=function(a){return"true"==this.flags[a]};
GA.prototype.Bc=function(a){return(0,window.parseFloat)(this.flags[a])};
GA.prototype.J=function(a){return this.flags[a]?this.flags[a].toString():""};IA.prototype.B=function(){return{ps:this.o.o,el:this.o.Ba}};
IA.prototype.send=function(){if(!this.C){var a;a=this.B();a=Ug(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.o&&this.A.visitorData&&tj(a)?Bj(a,{headers:{"X-Goog-Visitor-Id":this.A.visitorData}}):aq(a);this.C=!0}};B(JA,IA);
JA.prototype.B=function(){var a=JA.N.B.call(this);qa(a,this.o.A);qa(a,{html5:"1",video_id:this.A.videoId,eurl:this.o.O,framer:this.o.je,list:this.A.ab||this.A.playlistId,w:ke(this.A.pj/this.A.lengthSeconds,0,1),l:this.A.lengthSeconds,plid:this.A.playbackId,ei:this.A.eventId,access_token:this.A.oauthToken,tpmt:DA(this.D),cpn:this.A.clientPlaybackNonce});this.o.D&&(a.adformat=this.o.D);a.feature=HA?this.o.ia:this.A.qe;var b;(b=(b=HA?this.o.referrer:this.A.referrer)?b.slice(0,128):"")&&(a.referrer=b);
this.o.autoplay&&(a.autoplay="1");this.o.zb&&(a.authuser=this.o.zb);this.o.pageId&&(a.pageid=this.o.pageId);this.A.Xf&&(a.splay="1");this.A.subscribed&&(a.subscribed=this.A.subscribed);qa(a,JA.N.B.call(this));qa(a,this.o.A);return a};B(MA,F);var fB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=MA.prototype;
h.Si=function(a){a=0<=a?a:WA(this.o);var b=this.o.G();if(!(0,window.isNaN)(this.U)&&!(0,window.isNaN)(b.B)){var c=b.B-this.U;0<c&&NA(this,a,"bwm",[c,(b.F-this.aa).toFixed(3)])}this.U=b.B;this.aa=b.F;(0,window.isNaN)(b.o)||NA(this,a,"bwe",[b.o.toFixed(0)]);(0,window.isNaN)(b.A)||(c=b.A,b.C<c&&(c=b.C),this.O!=c&&(NA(this,a,"bh",[c.toFixed(3)]),this.O=c),this.o.A.experiments.A&&3>c&&("PL"==this.A||"B"==this.A)&&this.G.start());this.C&&NA(this,a,"bat",[this.C.level,this.C.charging?"1":"0"]);c=hH(this.o.A);
this.Z!=c&&(NA(this,a,"vis",[c]),this.Z=c);NA(this,a,"cmt",[this.o.B()]);0<b.D&&NA(this,a,"e2el",[b.D,b.H.toFixed(3),b.G.toFixed(3),b.K.toFixed(3),b.J.toFixed(3)])};
h.Sg=function(a){if(!this.isDisposed()&&!bc(this.B)){a=0<=a?a:WA(this.o);this.G.isActive()||this.Si(a);var b=QG(this.o.A),c=b.droppedVideoFrames,d=c-this.V;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&NA(this,a,"df",[d]);this.V=c;a=OA(this);hc(a,this.o.A.A);a=Ug(this.o.A.yc,a);for(var e in this.B)a+="&"+e+"="+this.B[e].join(",");aq(a);this.B={};this.F.start()}};
h.Of=function(){NA(this,WA(this.o),"vps",["N"]);this.o.o.$a&&PA(this,"preload");this.o.o.ml&&PA(this,"reload");this.o.o.yf&&PA(this,"monitor");this.o.A.experiments.Y&&Ai(A(this.UB,this),5E3);this.S=Ci(A(this.Sg,this),1E4);this.F.start()};
h.UB=function(){var a=ij("yt-player-benchmark")||0;if(!a){for(var b=a=0;20>b;b++){for(var c=$s(),d=0,e=0;1>$s()-c;){for(var f=0;1E3>f;f++)e=e*e%1E3+1;e=e%1E3;d++}d=Math.floor(d+e/1E3);a=Math.max(d,a)}a=Math.floor(Math.log(a)/Math.log(2));gj("yt-player-benchmark",a,172800)}PA(this,"jsbench-"+a)};
h.Jq=function(){this.o.o.J&&PA(this,"drm-"+this.o.o.J.o)};
h.onError=function(a,b){var c=this.o.B(),c=[a,c.toFixed(3)];b&&c.push(b);var d=WA(this.o);NA(this,d,"error",c);this.Si(d)};
h.Dz=function(){var a=WA(this.o);"PL"==this.A&&(NA(this,a,"vps",[this.A]),this.Sg(a))};
h.T=function(){MA.N.T.call(this);Ei(this.S)};QA.prototype.send=function(a){if(!this.Y){var b=SA(this),b=Ug(this.ab,b);if(this.V)this.L&&(a={method:"POST",Bb:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),Bj(b,a));else{var c=this.G&&uj(),d=this.Da&&!!this.visitorData;if(c||d){var e={};c&&(e.Authorization="Bearer "+this.G);d&&(e["X-Goog-Visitor-Id"]=this.visitorData);Bj(b,{headers:e,withCredentials:!0,Ub:a})}else aq(b,a)}this.Y=!0}};
QA.prototype.o=function(a){return(1*a.toFixed(3)).toString()};B(UA,F);h=UA.prototype;h.mz=function(a,b){if(!this.isDisposed()){this.G=window.NaN;this.A.update();var c=EA(this.A),d=ZA(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=VA(this,!0,a));d.send();this.K++}};
h.Of=function(){this.B.Of()};
h.onError=function(a,b){this.B.onError(a,b)};
h.Xi=function(a){var b=this.o.A,c=this.o.o,c={ns:b.aa,el:b.Ba,eurl:b.O,fmt:c.A?c.A.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.o.B(),video_id:c.videoId,metric:a};b.autoplay&&(c.autoplay="1");"heartbeat"==a&&(c.tpmt=DA(this.A));qa(c,b.A);bB(this,Ug("//www.youtube.com/live_204",c))};
h.T=function(){UA.N.T.call(this);Di(this.G);this.G=window.NaN;var a=this.A;Ei(a.F);a.F=window.NaN};hB.prototype.gb=function(a,b){AH(this.ca,"iv",a,b)};h=qB.prototype;h.Zi=function(){this.context.D.subscribe("onResize",this.Kh,this)};
h.la=function(){return this.Z};
h.Lf=function(a,b,c,d,e,f){this.context.o.P(a,"click",pa(this.Di,b,c,d,e||[],f||0),this);this.context.o.P(a,"touchstart",pa(function(){this.nm=!1}),this);
this.context.o.P(a,"touchmove",pa(function(){this.nm=!0}),this)};
h.Di=function(a,b,c,d,e,f){if(this.nm)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=xA(a,b,this.context.C.videoId))&&tB(this,b,zA(b,a.target),c,d,e,a.Ni);return!1};
h.show=function(){this.K=I()};
h.ga=function(){};
h.destroy=function(){qf(this.la())};
h.Kh=function(){};B(uB,Q);h=uB.prototype;h.NE=function(a){this.A&&yf(this.A.element,Vl(a))||(this.C&&this.C.fk?this.Cp(this.C):(this.Gj(),Pi("iv-teaser-clicked",!!this.ya),this.ca.kh(!0)))};
h.Yz=function(){Pi("iv-teaser-hovered")};
h.Zz=function(){Zd(this.element,"ytp-cards-auto-open-hover-card")};
h.ZA=function(a){this.ya||!a||CH(this.ca)||this.F&&this.F.isActive()||(this.C=a.ni,xB(this,a),Pi("iv-teaser-shown"))};
h.Cp=function(a){a.Ni&&this.ca.pauseVideo();Hx(a.oq,void 0);Ix(a.oq,a.target);Pi("iv-hover-card-clicked")};
h.Lw=function(){J(this.element,"ytp-hover-card-active")};
h.Mw=function(){Zd(this.element,"ytp-hover-card-active")};
h.Gj=function(){!this.ya||this.G&&this.G.isActive()||(this.A&&(Aq(this.A),this.A=null),this.C=null,this.H.ga(),Zd(this.ca.Aa(),"ytp-cards-teaser-shown"),Zd(this.ca.Aa(),"ytp-cards-button-teaser-merge"),Zd(this.element,"ytp-cards-combined-teaser"),this.G=new Ud(function(){for(var a=0;a<this.D.length;a++)this.za(this.D[a]);this.D=[];this.ya&&(this.ya.dispose(),this.ya=null);yB(this.J,!0)},330,this),this.G.start())};
h.T=function(){var a=this.ca.Aa();a&&Zd(a,"ytp-cards-teaser-shown");Ob(this.F,this.G,this.ya,this.A,this.C);uB.N.T.call(this)};B(AB,zB);B(BB,zB);B(CB,BB);DB.prototype.D=function(a,b){var c=Hf(b.target,"iv-card-poll");if(c){var d=Ff(b.target,"label");J(d,"iv-card-poll-choice-checked");a:{if(d=b.target.form.elements[a.B]){if(d.type){d=kj(d);break a}for(var e=0;e<d.length;e++){var f=kj(d[e]);if(f){d=f;break a}}}d=null}d=(0,window.parseInt)(d,10);a.choices[d].count++;FB(a,c);Aj(this.o.C.Ye,{wd:{action_poll_vote:1},Bb:{poll_id:a.id,index:d}});c={};c["link-id"]=d;mB(this.o.logger,a.Pa,void 0,c,a.o.click,5)}};
DB.prototype.C=function(a){var b=t("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.H,a.C));SB(this,a,b)};
DB.prototype.F=function(a){var b=t("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.H,a.C,a.J));SB(this,a,b)};B(UB,zB);B(VB,zB);B(WB,BB);B(YB,BB);B(ZB,zB);B($B,zB);B(aC,qB);h=aC.prototype;h.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.ca.Aa())?(a=hg(a),a=177<a.width&&177<a.height):a=!1;return a};
h.kv=function(){bC(this)&&!nC(this)||eC(this)};
h.hv=function(){gC(this)};
h.Kh=function(){var a=this.isAvailable();Lq(this.la(),a);L(this.context.A.Aa(),"ytp-iv-drawer-enabled",a);a&&(this.S||(oB(this.context.logger,11),this.S=!0),E(this.A,function(a){a.$o||(a.$o=!0,pB(this.context.logger,11,a.Ra.Pa))},this));
fC(this.ca)};
h.destroy=function(){DH(this.ca,!1);this.ca.Aa().removeChild(this.F);Oi(this.G);Rl(this.O);this.J&&this.J.dispose();this.C&&this.C.dispose();aC.N.destroy.call(this)};
var dF={adspaycreator:BB,associated:BB,associated:BB,collaborator:AB,donation:CB,episode:$B,fundraising:BB,location:BB,merch:BB,movie:$B,playlist:UB,poll:VB,product:BB,productListing:WB,simple:BB,tip:YB,video:ZB};h=aC.prototype;h.hE=function(a){this.Zj.start();a.preventDefault();if(a=bm(a||window.event,!1))this.zc.scrollTop+=a};
h.Ol=function(a,b){if(!Xd(this.ca.Aa(),"ytp-cards-teaser-shown")){this.o!=a&&(this.o=a);if(Mq(this.la())){var c;(c=b)||(2==this.context.A.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.A.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.A.getPlayerState():void 0,c=1==c||0==c&&0===this.context.A.getCurrentTime()));if(c&&a.Ra.teaserDurationMs){c=null;if("video"==a.Ra.type&&hC(this,"hover_card_for_video_card_teaser")){var d=a.Ra,e=d.url?xA(d.url,a.Ra.id,this.context.C.videoId,
this.context.B):null,f=e?zA(e,d.url.target):null;e&&f&&(c={pJ:d.id,title:d.title,oq:e,target:"current"==f?"_top":void 0,Ni:d.url.Ni,imageUrl:d.B,videoDuration:d.videoDuration,od:d.od,fk:hC(this,"combined_teaser_link")})}DH(this.ca,!0,{teaserText:a.Ra.teaserText,durationMs:b?2E3:a.Ra.teaserDurationMs,ni:c,Sx:hC(this,"merge_button_with_teaser"),lv:b&&hC(this,"hover_card_on_button_hover")})}}(!this.D||!this.Zj.isActive()&&this.Bi)&&lC(this,a)}};
h.nC=function(){this.o&&this.Ol(this.o,!0)};
h.gC=function(a){this.D||(this.o=a,lC(this,a),eC(this,a))};
h.wv=function(){this.D&&(oB(this.context.logger,4,mC(this).o.close),gC(this))};
h.Kv=function(){L(this.F,"iv-drawer-scrolled",0<this.zc.scrollTop)};
h.Rx=function(){var a=mC(this);pB(this.context.logger,8,a.Pa,a.o.rC)};
h.Qx=function(){var a=this.o;pB(this.context.logger,13,a.Ra.Pa,void 0);var b=this.context.B.experiments.ka("hover_card_for_video_card_teaser");"video"==a.Ra.type&&b&&(a=this.o,a.Ei||(a.Ei=!0,iB(this.context.logger,a.Ra.Pa,a.Ra.o.Mo)))};
h.Ox=function(){var a=this.o.Ra;mB(this.context.logger,a.Pa,void 0,void 0,a.o.click,5)};
h.Px=function(a){var b=mC(this);this.o?a?(a=this.context.logger,pB(a,9,b.Pa,b.o.Xl)):(a=this.context.logger,pB(a,12,b.Pa,b.o.Xl)):(a=this.context.logger,oB(a,12,b.o.Xl));a.ca.$f(4,void 0)};var qC=/#(.)(.)(.)/,pC=/^#(?:[0-9a-f]{3}){1,2}$/i;B(rC,Mz);rC.prototype.C=w;rC.prototype.xl=function(){this.C();rC.N.xl.call(this)};
rC.prototype.Ng=function(){this.C();rC.N.Ng.call(this)};
rC.prototype.Ii=function(){this.C();rC.N.Ii.call(this)};
B(sC,rC);sC.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};B(tC,qB);tC.prototype.Zi=function(){tC.N.Zi.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&rB(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ga)};B(uC,tC);uC.prototype.J=function(a,b,c,d){this.o.stop();if(!this.B){var e=hg(a);fg(a,e.width);fg(b,e.width);Tf(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;Nq(a);this.D=new Ud(function(){J(this.la(),"iv-branding-active")},0,this);
this.D.start()}};
uC.prototype.H=function(a,b){Zd(this.la(),"iv-branding-active");this.F=new Ud(function(){Oq(a);fg(b,0)},250);
this.F.start();this.B=!1};
uC.prototype.show=function(){if(!this.isActive){uC.N.show.call(this);if(!this.G){J(this.la(),"iv-branding");var a=this.annotation.data;this.C=a.image_width;this.A=M("img",{src:a.image_url,"class":"branding-img iv-click-target hid",width:a.image_width,height:a.image_height});var b=M("div","branding-img-container",this.A);this.la().appendChild(b);var c=M("div","iv-branding-context-name");Af(c,a.channel_name);var d=M("div","iv-branding-context-subscribe");this.annotation.B?d.innerHTML=this.annotation.B:
a.num_subscribers&&Af(d,a.num_subscribers);b=M("div","iv-branding-context-subscribe-caret");c=M("div",["branding-context-container-inner","hid"],b,c,d);d=M("div","branding-context-container-outer",c);Mf(d,"right",this.C+"px");this.la().appendChild(d);this.Lf(this.A,eD(this.annotation),this.annotation.id,this.annotation.Pa);this.o=new Ud(pa(this.H,c,d),500,this);this.context.o.P(this.la(),"mouseover",A(this.J,this,c,d,b,a.image_height));this.context.o.P(this.la(),"mouseout",A(this.o.start,this.o));
this.G=!0}iB(this.context.logger,this.annotation.Pa);Nq(this.la());this.isActive=!0;var a=this.A,e,b=jg(a).width,c=fa(void 0)?void 0:b;e=e||0;Tf(a,c);e=new sC(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Pz);this.context.o.P(e,"begin",pa(Nq,a));e.play()}};
uC.prototype.ga=function(){this.isActive&&(Oq(this.la()),this.isActive=!1)};var yC={CLOSE:"close",JH:"openUrl",Mu:"subscribe"},zC={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",cI:"rollOut",Cu:"rollOver",Fu:"shown"};var JC={gJ:"xx",hJ:"xy",kJ:"yx",lJ:"yy"};B(NC,HC);var RC={ft:"anchored",XH:"rect",gI:"shapeless"};var WC={CLOSED:"closed",NH:"playerControlShow",Cu:"rollOver",Fu:"shown"};var cD={ft:"anchored",BRANDING:"branding",CHANNEL:"channel",HG:"cta",dH:"highlightText",nH:"label",PLAYLIST:"playlist",PH:"popup",oI:"speech",Mu:"subscribe",AI:"title",VIDEO:"video",bJ:"vote",WEBSITE:"website"},bD={BRANDING:"branding",wG:"card",cH:"highlight",IMAGE:"image",MARKER:"marker",TH:"promotion",TEXT:"text",dJ:"widget"},dD={ZI:"video_relative",OH:"player_relative"};$C.prototype.showLinkIcon=function(){return hD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(oD,tC);h=oD.prototype;h.show=function(){this.isActive||(oD.N.show.call(this),this.H||(pD(this),this.H=!0),Nq(this.la()),this.annotation&&this.annotation.Pa&&iB(this.context.logger,this.annotation.Pa),Zd(this.la(),"iv-promo-inactive"),this.la().removeAttribute("aria-hidden"),this.isActive=!0,this.o&&(Td(this.o),this.o=null),rD(this),sD(this,this.F))};
h.ga=function(){this.isActive&&(J(this.la(),"iv-promo-inactive"),this.isActive=!1,this.la().setAttribute("aria-hidden",!0))};
h.Di=function(a,b,c,d,e,f){return this.C?!1:oD.N.Di.call(this,a,b,c,d,e,f)};
h.Ik=function(a,b){b.stopPropagation();rD(this);sD(this,a);this.Qb.focus()};
h.ww=function(a){this.G=!0;this.Ik(500,a)};
h.vw=function(){this.G=!1;qD(this)};
h.iE=function(a){a.stopPropagation();this.ga();nB(this.context.logger,this.annotation.Pa)};
h.destroy=function(){this.D.dispose();oD.N.destroy.call(this)};tD.prototype.C=function(a,b,c,d){this.o[a]=b?!c:c;a=Sb(this.o,function(a){return a});
this.A!=a&&(this.A=a,this.B.R(this.D,a,d))};h=vD.prototype;h.ga=function(){this.isVisible=!1;this.o&&(xD(this),this.o.ga())};
h.show=function(){this.isVisible=!0;this.o&&(this.o.show(),this.B.subscribe("onResize",this.Qr,this),this.B.subscribe("onVideoAreaChange",this.hq,this))};
h.destroy=function(){if(this.o){xD(this);var a=this.o;a.G.removeAll();a.tl.dispose();a.J.dispose();a.A&&qf(a.A);a.B&&a.B.la()&&qf(a.B.la())}yD(this)};
h.hq=function(){IE(this.o)};
h.Qr=function(){IE(this.o)};zD.prototype.clone=function(){return new zD(this.start,this.end)};B(BD,AD);CD.prototype.Pc=null;CD.prototype.Ob=null;CD.prototype.Zg=!0;var GD=[2,2,6,6,0];h=CD.prototype;h.clear=function(){this.ua.length=0;this.xa.length=0;this.dc.length=0;delete this.Pc;delete this.Ob;delete this.Zg;return this};
h.tb=function(a){var b=db(this.ua);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ua.push(1),this.xa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.dc.push(c,d)}this.xa[this.xa.length-1]+=b/2;this.Ob=[c,d]};
h.close=function(){var a=db(this.ua);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ua.push(4),this.xa.push(1),this.Ob=this.Pc);return this};
h.clone=function(){var a=new this.constructor;a.ua=this.ua.concat();a.xa=this.xa.concat();a.dc=this.dc.concat();a.Pc=this.Pc&&this.Pc.concat();a.Ob=this.Ob&&this.Ob.concat();a.Zg=this.Zg;return a};
h.transform=function(a){if(!this.Zg)throw Error("Non-simple path");a.transform(this.dc,0,this.dc,0,this.dc.length/2);this.Pc&&a.transform(this.Pc,0,this.Pc,0,1);this.Ob&&this.Pc!=this.Ob&&a.transform(this.Ob,0,this.Ob,0,1);return this};
h.isEmpty=function(){return 0==this.ua.length};B(HD,AD);ID.prototype.getWidth=function(){return this.B};aa(JD);JD.prototype.o=0;B(KD,H);h=KD.prototype;h.Nw=JD.getInstance();h.getId=function(){return this.S||(this.S=":"+(this.Nw.o++).toString(36))};
h.la=function(){return this.o};
h.Wg=function(a){if(this.J&&this.J!=a)throw Error("Method not supported");KD.N.Wg.call(this,a)};
h.ko=function(){this.o=this.M.createElement("DIV")};
h.ug=function(){LD(this,function(a){a.Le&&a.ug()});
this.D&&this.D.removeAll();this.Le=!1};
h.T=function(){this.Le&&this.ug();this.D&&(this.D.dispose(),delete this.D);LD(this,function(a){a.dispose()});
this.o&&qf(this.o);this.J=this.o=this.F=this.H=null;KD.N.T.call(this)};
h.Jd=function(){return this.o};
h.removeChild=function(a,b){if(a){var c=y(a)?a:a.getId();a=this.F&&c?ec(this.F,c)||null:null;if(c&&a){dc(this.F,c);pb(this.H,a);b&&(a.ug(),a.o&&qf(a.o));c=a;if(null==c)throw Error("Unable to set parent component");c.J=null;KD.N.Wg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(MD,KD);MD.prototype.B=null;MD.prototype.zg=function(){return this.Le?gg(this.la()):fa(this.width)&&fa(this.height)?new re(this.width,this.height):null};
MD.prototype.resume=function(){};B(OD,H);h=OD.prototype;h.Ck=null;h.Bg=null;h.la=function(){return this.Bg};
h.addEventListener=function(a,b,c,d){Oc(this.Bg,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){Zc(this.Bg,a,b,c,d)};
h.T=function(){OD.N.T.call(this);var a=this.Bg;if(a)if(Dc(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(PD,OD);PD.prototype.fill=null;B(TD,OD);B(UD,OD);B(VD,PD);B(WD,TD);WD.prototype.clear=function(){of(this.la())};
WD.prototype.setSize=function(a,b){$D(this.la(),{width:a,height:b})};
B(XD,VD);B(YD,UD);YD.prototype.setPosition=function(a,b){$D(this.la(),{x:a,y:b})};
YD.prototype.setSize=function(a,b){$D(this.la(),{width:a,height:b})};var eE;B(ZD,MD);var cE=0;h=ZD.prototype;h.ko=function(){var a=RD(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=RD(this,"g");this.G=RD(this,"defs");this.B=new WD(b,this);a.appendChild(this.G);a.appendChild(b);this.o=a;this.C&&(this.la().setAttribute("preserveAspectRatio","none"),this.O?this.Xq():this.la().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.K:"")))};
h.Xq=function(){if(this.Le){var a=this.zg();if(0==a.width)this.la().style.visibility="hidden";else{this.la().style.visibility="";var b=a.width/this.C,a=a.height/this.K;this.B.la().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){eg(this.la(),a,b)};
h.zg=function(){if(!uc)return this.Le?gg(this.la()):ZD.N.zg.call(this);var a=this.width,b=this.height,c=y(a)&&-1!=a.indexOf("%"),d=y(b)&&-1!=b.indexOf("%");if(!this.Le&&(c||d))return null;var e,f;c&&(e=this.la().parentNode,f=hg(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.la().parentNode,f=f||hg(e),b=(0,window.parseFloat)(b)*f.height/100);return new re(a,b)};
h.clear=function(){this.B.clear();of(this.G);this.A={}};
h.ug=function(){ZD.N.ug.call(this);this.O&&this.L.za(dE(),"tick",this.Xq)};
h.T=function(){delete this.A;delete this.G;delete this.B;this.L.dispose();delete this.L;ZD.N.T.call(this)};fE.prototype.la=function(){return this.D};
fE.prototype.A=function(){};var oE={bevel:1,dropshadow:2};B(wE,fE);
wE.prototype.A=function(a,b){var c=lD(a);if(c){var d=KC(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=mD(a))&&c.o?c.o:null)&&c.length?c[0]:null){var f=xe(LC(b,EC(e,new te(e.H,e.J,e.D,e.B),b.o))),k=d.clone(),c=new te(f.x,f.y,1,1),l=Math.max(k.left+k.width,c.left+c.width),m=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=l-k.left;k.height=m-k.top;var c=a.o,k=uE(k,c.effects),l=gE(this,k.width,k.height),m=sE(c,k.width,k.height,this.o),
d=new te(d.left-k.left,d.top-k.top,d.width,d.height),p=new oe(f.x-k.left,f.y-k.top);this.C=17*GC(b.o,e.A,e.o?e.o:"xy");e=c.o;var f=a.o,u=this.o&&gD(a),v=u?f.D+1:f.D,u=(f=v?new ID(v,u?f.F:f.G):null)?f.getWidth()/2:0,v=xE(d,p),z=this.F(d,e,p,v),x=p.x,p=p.y,ga=d.width,xa=d.height,K=d.left,d=d.top,Y=new CD;DD(Y,K+e+u,d+u);"t"==v&&(Y.tb(z.start,d+u),Y.tb(x,p),Y.tb(z.end,d+u));Y.tb(K+ga-e-u,d+u);ED(Y,e,e,-90);"r"==v&&(Y.tb(K+ga-u,z.start),Y.tb(x,p),Y.tb(K+ga-u,z.end));Y.tb(K+ga-u,d+xa-e-u);ED(Y,e,e,0);
"b"==v&&(Y.tb(z.end,d+xa-u),Y.tb(x,p),Y.tb(z.start,d+xa-u));Y.tb(K+e+u,d+xa-u);ED(Y,e,e,90);"l"==v&&(Y.tb(K+u,z.end),Y.tb(x,p),Y.tb(K+u,z.start));Y.tb(K+u,d+e+u);ED(Y,e,e,180);Y.close();aE(l,Y,f,m);if(m=this.la())J(m,"annotation-shape"),J(m,"annotation-speech-shape"),Tf(m,k.left,k.top),eg(m,k.width,k.height),vE(l,m,c.effects)}}}};
wE.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=ke(c-a/2,d+b,d+e-a-b);return new zD(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 zD(0,0)};B(yE,fE);yE.prototype.A=function(a,b){var c=lD(a);if(c){var d=KC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=uE(d,c.effects),f=gE(this,e.width,e.height);qE(f,new te(0,0,d.width,d.height),c.o,new ID(!c.B&&this.o?1:c.B,c.C),new HD("#000",0));d=this.la();J(d,"annotation-shape");kg(d,tE(this.o,c.A));Tf(d,e.left,e.top);eg(d,e.width,e.height)}}};B(zE,fE);
zE.prototype.A=function(a,b){var c=KC(lD(a),b);if(!(0>=c.width||0>=c.height)){var d=AE(c,this.G);d.left+=c.left;d.top+=c.top;var e=a.o,f=uE(d,e.effects),k=gE(this,f.width,f.height),l=new HD("#000",0),d=AE(d,this.C),m;m=a.C?a.C.o?a.C.o:a.C.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.C.videoId)+"/hqdefault.jpg":"":"";d=RD(k,"image",{x:d.left,y:d.top,width:d.width,height:d.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});d.setAttributeNS("http://www.w3.org/1999/xlink","href",
m);var p=new YD(d,k);k.B.la().appendChild(p.la());if(d=this.la()){kg(d,tE(this.o,e.A));if(this.F&&0<e.B){m=new ID(e.B,e.C);var c=new te(0,0,c.width,c.height),u=m.getWidth()/2+1;var u=rE(c,e.o,u),v=QD(k,"mask");if(v)u=v;else{var v=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),z=window.document.createElementNS("http://www.w3.org/2000/svg","path");z.setAttribute("d",bE(u));z.setAttribute("fill","#FFF");v.appendChild(z);u=SD(k,"mask",v)}p=p.la();u&&p.setAttribute("mask","url(#"+
u+")");qE(k,c,e.o,m,l)}J(d,"annotation-shape");J(d,"annotation-image-shape");Tf(d,f.left,f.top);eg(d,f.width,f.height);vE(k,d,e.effects)}}};B(BE,fE);BE.prototype.A=function(a,b){var c=lD(a);if(c){var d=KC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=uE(d,c.effects),f=gE(this,e.width,e.height),k=new te(0,0,d.width,d.height),d=sE(c,d.width,d.height,this.o),l=c.o,m=a.o,p=this.o&&gD(a),u=p?m.D+1:m.D;qE(f,k,l,u?new ID(u,p?m.F:m.G):null,d);if(k=this.la())J(k,"annotation-shape"),J(k,"annotation-popup-shape"),Tf(k,e.left,e.top),eg(k,e.width,e.height),vE(f,k,c.effects)}}};B(CE,wE);CE.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 zD(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 zD(0,0)};h=EE.prototype;h.Rr=function(){this.S||(this.C&&Nq(this.C),this.D&&Nq(this.D),this.B&&(this.B.o=!0,kg(this.A,PE(this)?1:0),this.B.A(this.o,JE(this))),this.J.isActive()&&this.J.stop(),this.S=!0,this.K=Az(this.G,LE(this.F),function(a){this.tl.stop();this.Og(a)}))};
h.Og=function(){this.S&&(this.O?this.J.start():this.po(),this.B&&(this.B.o=!1,kg(this.A,PE(this)?1:0),this.B.A(this.o,JE(this))),this.S=!1,this.K&&(this.G.za(this.K),this.K=null))};
h.po=function(){this.C&&Oq(this.C);this.D&&Oq(this.D)};
h.gE=function(a){this.Z=a;this.tl.jf()};
h.uw=function(){var a=this.Z,b=new oe(a.clientX,a.clientY),c=$f(this.F.Aa()),d=QE(c,this.M),c=(Mq(this.D)||Mq(this.C))&&QE(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.Rr():this.Og(a)};
h.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=JE(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new yE:"popup"==this.o.style?e=new BE:"anchored"==this.o.style?e=new wE:"speech"==this.o.style?e=new CE:"image"==this.o.type&&("video"==this.o.style?e=new zE(Rfa,W5,!0):"channel"==this.o.style&&(e=new zE));e&&(e.A(this.o,d),this.B=e,d=e.la())&&(Oq(d),J(d,"annotation-type-"+
this.o.type.toLowerCase()),this.U(d))}if(b){d=["annotation","hid"];"highlightText"!=this.o.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=M("div",d);this.o.F&&(this.H=M("div","inner-text"),"label"==this.o.style&&(J(this.H,"label-text"),this.H.style.backgroundColor=this.o.o.C),Af(this.H,this.o.F),this.A.appendChild(this.H));ri(this.A,"annotation_id",this.o.id);this.U(this.A);FE(this,this.A);if(gD(this.o)&&"image"!=this.o.type&&this.o.showLinkIcon()){if(e=
eD(this.o))d=this.A,e=new N(sA(e)),d.title=e.A+e.B;this.D=M("span",["annotation-link-icon","hid"]);this.A.appendChild(this.D)}HE(this);gD(this.o)||(this.A.style.cursor="default")}c&&("subscribe"==this.o.style?$e("yt-uix-subscription-button",this.A)||(this.A.innerHTML=this.o.B):this.o.B&&(this.A.innerHTML=this.o.B));if(a||b){a:{a=this.o.A.o;if(a.length&&(a=SC(a[0]))){a=a.K;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.la()&&(this.B.la().style.zIndex=a)}Nq(this.A);kg(this.A,PE(this)?1:
0);IE(this);this.B&&Nq(this.B.la())};
h.ga=function(){Oq(this.A);this.B&&Oq(this.B.la());this.L&&(this.G.za(this.L),this.L=null)};B(RE,mq);RE.D="AnnotationsModule";var SE={ht:"video-annotations",Dt:"video-custom-annotations",eu:"video-legacy-annotations"};RE.C=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
RE.B=function(a){return"card"==a.type};
RE.A=function(a){return RE.Wa(a)?new RE(a):null};
RE.Wa=function(a){var b=a.W();return"leanback"==b.Ba?!1:!b.J.isEmpty()||RE.Jg(b.o)?!0:fx(a.getVideoData(),"iv3_module")};
RE.o=function(){return M("div",["annotation","annotation-type-custom","hid"])};
RE.Jg=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=RE.prototype;h.Jg=function(){return RE.Jg(this.o.W().o)};
h.ge=function(a,b){if(!this.Jg())return null;switch(a){case "loadCustomAnnotationsXml":var c=uz(b);c&&$E(this,c);return!0;case "removeCustomAnnotationById":return b&&this.A&&(cC(this.A,b),fC(this.o)),!0}return null};
h.Ve=function(){return this.Jg()?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Wa=function(){return RE.Wa(this.o)};
h.create=function(){RE.N.create.call(this);this.C=new Q(["div",["ytp-player-content","ytp-iv-player-content"]]);Uq(this.o,this.C.element,4);var a=this.o.W(),b=this.o.getVideoData();1!=(a.Dd||b.Ca)&&ca(a.J.get(b.videoId))||this.load()};
h.destroy=function(){Zd(this.o.Aa(),"ytp-iv-drawer-open");Aq(this.C);this.C.dispose();RE.N.destroy.call(this)};
h.vA=function(a){T(a.state,2)&&(kF(this)&&lF(this)&&2!=this.o.getPresentingPlayerType()&&mF(this,!1),nF(this,!1))};
h.load=function(){RE.N.load.call(this);this.K++;var a=this.o.getVideoData(),b=a.videoId,c=A(this.xz,this,b,this.K);Fu()&&(c=aF(this,c));c={format:"XML",Ub:c,wd:{}};a.isPharma&&(c.wd.pharma="1");var d=this.o.W();d.experiments.ka("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.o&&(c.wd.gaming="1");(b=d.J.remove(b))&&bF(this,c,b);a.Ye&&(b=b&&(b.ve||b.Wh),a.yn&&!b||Bj(a.Ye,c))};
h.unload=function(){this.D.gb({"iv-event":1});nq(this);Pb(this.B,function(a){a.destroy()});
Pb(this.L,function(a){a.destroy()});
this.F=null;this.A&&(this.A.destroy(),this.A=null,fC(this.o));this.B={};this.L={};RE.N.unload.call(this)};
h.xz=function(a,b,c){if(!UE(this,b,a)&&(a=vj(c)&&c.responseXML?c.responseXML:null)){$E(this,a);J(this.o.Aa(),this.sa+"-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 f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.F,f.visible=
!0);b=new iq(c,e,f);a.push(b)}}this.jb(a)}};
h.nB=function(a){this.J&&a==this.o.getVideoData().videoId&&(this.loaded?ZE(this):this.load())};
h.Hy=function(a){kF(this)&&mF(this,a)};
h.mc=function(a){RE.N.mc.call(this,a);a=a.getId();var b=this.B[a];b&&!b.C&&(b=b.annotation,fF(this,a),iB(this.D,b.Pa))};
h.Jc=function(a){RE.N.Jc.call(this,a);gF(this,a.getId())};
h.oo=function(a){a&&(a.ga(),jF(this,"shown",!1,a.annotation.id),this.Xh(a.annotation,"hidden"))};
h.Qq=function(a){a&&(a.show(),jF(this,"shown",!0,a.annotation.id),this.Xh(a.annotation,"shown"))};
h.jB=function(a,b,c){var d=this.B[a];if(d&&b.value!=c){b.value=c;var e=!1;jD(d.annotation,function(a){e|=a.value});
eF(this,a,b,e)}};
h.oy=function(a){if(a&&a.id){var b=eD(a);if(b){var c=sA(b);if(c){var d=A(this.Xh,this,a,"click"),e=this.o.getVideoData();if("new"==zA(c,b.target)||hF(this,b,e.videoId))d(),d=null;mB(this.D,a.Pa,d)}}}};
h.Xh=function(a,b){iD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.o.getVideoData(),e;if(!(e=!hF(this,c.url,d.videoId))){e=wA(c.url);var f=vA(c.url);if(e){if(d.videoId==e)this.R("command_seek",f||0);else{var k=YE(this).A;S9(k.app,e,void 0,void 0);f&&FH(YE(this).A)&&YE(this).A.Rb(f)}e=!0}else e=!1;e=!e}e&&(d=xA(c.url,a.id,d.videoId,this.o.W()))&&(this.pauseVideo(),e=zA(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=qj(c),f=null,"ei"in e&&(f={ei:e.ei},c=Yg(c,"ei")),Hx(c,f),Ix(c,
d))}},this)};
h.Ez=function(){jF(this,"playerControlShow",!1)};
h.RA=function(){jF(this,"playerControlShow",!0)};
h.bE=function(a){jF(this,"rollOver",!0,a.id)};
h.Og=function(a){jF(this,"rollOver",!1,a.id)};
h.Ty=function(a){if(a||a.id)this.B[a.id].C=!0,gF(this,a.id),a&&(nB(this.D,a.Pa),this.Xh(a,"close")),jF(this,"closed",!0,a.id)};
h.T=function(){for(var a=this.M,b=0,c=a.length;b<c;b++)Hu(a[b]);this.M.length=0;RE.N.T.call(this)};oF.prototype.destroy=function(){null!=this.A&&(this.A.canvas.remove?this.A.canvas.remove():this.A.canvas.removeNode(!0),this.A=null)};h=tF.prototype;h.zk=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}"};
h.vk=function(){return this.o};
h.Wc=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.Sr=function(){};
h.Lm=function(a){this.H&&(360>=qr[a]?this.F(!0):this.F(!1))};
h.Rc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,qF(this.D,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.mq=function(){return!0};
h.qq=function(){return!1};
h.We=function(){return{shader:"NoOp"}};
h.oh=function(){};
h.destroy=function(){this.D&&this.D.destroy()};B(uF,tF);uF.prototype.Wc=function(a,b,c){uF.N.Wc.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)};
uF.prototype.Rc=function(a,b,c){this.B&&(a.uniform1i(this.C,this.A),this.B=!1);uF.N.Rc.call(this,a,b,c)};
uF.prototype.We=function(){return{shader:"Anaglyph3D",displayMode:this.A}};
uF.prototype.oh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.A=(0,window.parseInt)(a.displayMode,10),this.B=!0),this.G())};B(wF,tF);
wF.prototype.Wc=function(a,b,c){wF.N.Wc.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,
0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);this.B=a.getUniformLocation(b,"seed");(a=this.ca.getVideoData())&&a.A&&this.Lm(a.A.video.quality)};
wF.prototype.Rc=function(a,b,c){if(this.J){var d=I();1E3<d-this.C&&(this.C=d,a.uniform1f(this.B,Math.random()))}else a.uniform1f(this.B,Math.random());wF.N.Rc.call(this,a,b,c)};
wF.prototype.We=function(){return{shader:"WhiteNoise"}};B(xF,wF);xF.prototype.Wc=function(a,b,c){xF.N.Wc.call(this,a,b,c);this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,1)};
xF.prototype.Rc=function(a,b,c){this.G&&(a.uniform1i(this.A,1),this.G=!1);xF.N.Rc.call(this,a,b,c)};
xF.prototype.We=function(){return{shader:"EdgeEnhance"}};yF.prototype.identity=function(){this.o.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
yF.prototype.get=function(){return this.o};h=AF.prototype;h.zk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.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);}"};
h.Wc=function(a,b){this.Da=a.getUniformLocation(b,"uVMat");this.Y=a.getUniformLocation(b,"uFOVx");this.Z=a.getUniformLocation(b,"uFOVy");this.aa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.aa,0)};
h.Sr=function(){this.F=!0};
h.Lm=w;
h.Rc=function(a,b){var c=this.o,d=this.A;if(this.F){a.A>a.o?(this.o=this.B,this.A=Math.atan(Math.tan(this.B)*a.o/a.A)):(this.A=this.B,this.o=Math.atan(Math.tan(this.B)*a.A/a.o));a.uniform1f(this.Y,this.o);a.uniform1f(this.Z,this.A);this.C=ke(this.C,-Math.PI/2,Math.PI/2);this.D.identity();var e=this.D,f=this.C,k=Math.sin(f),f=Math.cos(f);e.B.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);zF(e,e.B);e=this.D;f=this.H;k=Math.sin(f);f=Math.cos(f);e.B.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);zF(e,e.B);a.uniformMatrix4fv(this.Da,!1,
this.D.get());this.F=!1;this.J.W().experiments.D&&(e=this.J,k=xH(e),e.app.Oa("webglsettingschanged",k))}e=I();(this.V!=this.o||this.U!=this.A)&&3E4<e-this.O&&c==this.o&&d==this.A&&(this.V=this.o,this.U=this.A,this.O=e,(c=oq(this.J.app))&&c.B&&(c=c.B.B,d=Math.round(360*this.o/Math.PI),e=Math.round(360*this.A/Math.PI),NA(c,WA(c.o),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,qF(this.K,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.mq=function(){return!1};
h.qq=function(){return!1};
h.We=function(){return{shader:"Spherical",yaw:this.H,pitch:this.C,fov:this.B}};
h.oh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.H=a.yaw),a.pitch&&(this.C=a.pitch),a.fov&&(this.B=ke(a.fov,.32,1.05)),this.F=!0,this.S()};
h.destroy=function(){this.K&&this.K.destroy()};B(BF,AF);h=BF.prototype;h.zk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.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);  }}"};
h.Wc=function(a,b,c){BF.N.Wc.call(this,a,b,c);this.M=a.getUniformLocation(b,"mode");a.uniform1i(this.M,this.G)};
h.Rc=function(a,b,c,d){this.L&&(a.uniform1i(this.M,this.G),this.L=!1);BF.N.Rc.call(this,a,b,c,d)};
h.We=function(){var a=BF.N.We.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a};
h.oh=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),this.L=!0,this.S());BF.N.oh.call(this,a)};var rG=window,hG=window.document,JF=rG.location,HF=/\[native code\]/,oG=DF(rG,"gapi",{});var KF;KF=DF(rG,"___jsl",GF());DF(KF,"I",0);DF(KF,"hel",10);var QF=DF(KF,"perf",GF());DF(QF,"g",GF());var PF=DF(QF,"i",GF());DF(QF,"r",[]);GF();GF();var TF=GF(),lG=[];lG.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?KF[b]=DF(KF,b,[]).concat(c):DF(KF,b,c)}if(b=a.u)a=DF(KF,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var aG=/^(\/[a-zA-Z0-9_\-]+)+$/,dG=/^[a-zA-Z0-9\-_\.,!]+$/,ZF=/^gapi\.loaded_[0-9]+$/,cG=/^[a-zA-Z0-9,._-]+$/,WF=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,VF=/\/cb=/g,UF=/\/\//g;TF.m=function(a,b,c,d){(a=a[0])||RF("missing_hint");return"https://apis.google.com"+XF(a,b,c,d)};var jG=(0,window.decodeURI)("%73cript");oG.load=function(a,b){return nG(function(){return pG(a,b)})};B(sG,Rj);sG.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
sG.prototype.get=function(a){return this.o[a]||null};
sG.prototype.isEmpty=function(){return bc(this.o)};var GG={RED:"red",WHITE:"white",BLUE:"blue"};var KG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},LG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},AG="blogger books docs google-live play picasaweb".split(" ");B(wG,F);var MG={sG:"cbrand",tG:"cbr",uG:"cbrver",iH:"c",lH:"cver",kH:"ctheme",jH:"cplayer",xH:"cmodel",NETWORK:"cnetwork",KH:"cos",LH:"cosver",MH:"cplatform"};h=wG.prototype;h.Ba="detailpage";h.Kg=!1;h.kl=!1;h.jl=!1;h.rg=!1;h.sc=null;
h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);"gaming"==this.o?(c=this.protocol+"://gaming.youtube.com/watch",b.v=a):d&&"www.youtube.com"==OG(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+OG(this)+"/watch",b.v=a,(a=t("yt.www.ads.data.encryptedBiscottiId"))&&(b.ebc=a));return Ug(c,b)};
h.T=function(){this.sc=null;wG.N.T.call(this)};TG.prototype.M=function(){this.L=!1;if(this.B&&(this.C.videoWidth||this.C.videoHeight)){if(0==this.K){var a=KE(LE(this.ca));if(!ve(this.F,a)){this.F=a;var b,c,d,a=LE(this.ca).Ma();this.o.mq()?("Anaglyph3D"!=this.U?b=!1:(b=rF(LE(this.ca)),c=this.ca.getVideoData(),b=(0,window.isNaN)(b)||c.Sc("yt:stretch")||c.Sc("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 te(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.Sr()}}this.o.Rc(this.B,this.C,this.S,this.Y)}(this.D||this.o&&this.o.qq())&&this.H()};
TG.prototype.Z=function(a){this.J!=a&&this.A&&((this.J=a)?(this.G.appendChild(this.A),this.H(),pF||(this.C.style.display="none")):(qf(this.A),this.C.style.display=""))};
TG.prototype.H=function(){!this.L&&this.J&&((0,window.requestAnimationFrame)(this.M.bind(this)),this.L=!0)};B(XG,mq);XG.A=function(a){return XG.Wa(a)?new XG(a):null};
XG.prototype.Wa=function(){return XG.Wa(this.o)};
XG.o=function(a){var b=a.W().A.c.toLowerCase(),c;c=a.getVideoData();a=a.W().experiments;if(vF(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Fl&&!CG||pF&&!ut()&&zc(11)||N6&&!CG&&zc(38)||Lf&&!CG&&zc(27))a:{if(c.o&&3!=c.da)for(var e in c.o.o)if((d=c.o.o[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}if(d)b="Spherical";else{a:{if(!CG&&(Fl&&a.aa||a.ka("enable_spherical3d_firefox_opera")&&(N6&&zc(38)||Lf&&zc(27))||a.ka("enable_spherical3d_ie")&&pF&&!ut()&&zc(11))&&c.o)for(var f in c.o.o)if((e=
c.o.o[f].info.video)&&3==e.projectionType||e&&2==e.projectionType&&3==c.da){c=!0;break a}c=!1}b=c?"Spherical3D":a.S&&Fl&&"web"==b&&!lt()?"NoOp":(a.ea||a.ka("white_noise_with_interval"))&&Fl&&"web"==b&&!lt()?"WhiteNoise":a.G&&Fl&&"web"==b&&!lt()?"EdgeEnhance":null}}return b};
XG.Wa=function(a){return a.W().K?null!=XG.o(a):!1};
h=XG.prototype;h.cE=function(){if(this.B){var a=this.A;a.D||(0,window.requestAnimationFrame)(a.M.bind(a))}};
h.oA=function(a){if(this.B){var b=this.A;b.o&&b.o.Lm(a)}};
h.Xc=function(a){if(this.B){var b=this.A,c=b.D;b.D=T(a.state,8);b.D&&!c&&b.H()}};
h.T=function(){XG.N.T.call(this)};
h.create=function(){var a=XG.o(this.ca);this.A=new TG(this.ca,a,this.C.element,this);a:{a=this.A;a.o=null;var b=a.Z.bind(a),c=A(a.H,a);switch(a.U){case "Anaglyph3D":a.o=new uF(a.ca,c);break;case "Spherical":a.o=new AF(a.ca,c);break;case "WhiteNoise":a.o=new wF(a.ca,b);break;case "EdgeEnhance":a.o=new xF(a.ca,b);break;case "NoOp":a.o=new tF(a.ca,!0,b);break;case "Spherical3D":a.o=new BF(a.ca,c)}if(a.o){a.K=UG(a);if(0==a.K){a.J&&!pF&&(a.C.style.display="none");a=!0;break a}a.ca.app.o.sj(new nv("html5.missingapi.webgl",
!1));WG(a)}a=!1}this.B=a;XG.N.create.call(this)};
h.destroy=function(){WG(this.A);this.B=!1;XG.N.destroy.call(this);this.A=null};B(ZG,Gq);ZG.prototype.C=function(){this.ga();this.R("close-clicked")};
ZG.prototype.ga=function(){this.A.stop();J(this.element,"ytp-drawer-closed")};
ZG.prototype.Db=function(a){a?(ZG.N.Db.call(this,a),Dq(this.element,"block")):Dq(this.element,"none")};
ZG.prototype.show=function(){this.A.start()};B($G,Rj);$G.prototype.T=function(){$G.N.T.call(this);this.G&&Ul(this.G);this.B||(qf(this.C),qf(this.F))};
$G.prototype.o=function(a){this.B||(this.A.o(a),this.A.Db(this.D.element),a.appendChild(this.C))};
$G.prototype.H=function(){this.R("ypcModuleCloseClicked")};
$G.prototype.J=function(){this.R("ypcContentRequest")};B(cH,mq);h=cH.prototype;h.Wa=function(){return fx(this.o.getVideoData(),"ypc_module")};
h.create=function(){cH.N.create.call(this);this.B=new YG(this.o.getVideoData());Ai(A(this.fE,this),0);this.C=new Q(["div",["ytp-player-content","ytp-ypc-player-content"]]);Uq(this.o,this.C.element,4)};
h.destroy=function(){cH.N.destroy.call(this);this.B=null;this.C&&(Aq(this.C),this.C.dispose(),this.C=null)};
h.fE=function(){this.J&&!this.loaded&&this.load()};
h.load=function(){cH.N.load.call(this);var a=this.o.W(),b=this.o.getVideoData();if(this.B.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.B.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=Aw.B,d=0;d<c.length;d++){var e=c[d];b.C.hasOwnProperty(e)&&(a[e]=b.C[e])}this.o.Gr(a)}else eH(this,a,b),!this.B.videoId&&this.A?aH(this.A):b.ypcPreview?(this.R("publish_external_event","ypcStateChanged",!0),qq(this)):this.A||qq(this)};
h.unload=function(){nq(this);(0,window.isNaN)(this.D)||Di(this.D);Ob(this.A);this.A=null;cH.N.unload.call(this);this.R("publish_external_event","ypcStateChanged",!1)};
h.mc=function(a){cH.N.mc.call(this,a);aH(this.A)};
h.Jc=function(a){cH.N.Jc.call(this,a);a=this.A;a.B||(Dq(a.C,"none"),a.A.Db(a.D.element))};
h.fz=function(){if(this.B.o)"embedded"==this.o.W().Ba?Ix(this.B.o):Gx(this.B.o);else if(this.B.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.o.Ja()&&Nx(this.o),a(this.B.offerId))}};
h.Wz=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};var D$={"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(iH,F);h=iH.prototype;h.lD=function(){return Xb(this.B)};
h.mD=function(){return Xb(this.C)};
h.la=function(){return this.o};
h.addEventListener=function(a,b){if(y(b)){var c=function(){t(b).apply(window,arguments)};
this.F[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};
h.Sv=function(a,b){var c=y(b)?a+b:a+ka(b);if(!this.D[c]){var d;y(b)?d=function(){t(b).apply(window,arguments)}:d=b;
var e=A(function(a){d({target:this.A,data:a})},this);
this.D[c]=e;this.addEventListener(a,e)}};
h.removeEventListener=function(a,b){if(y(b)){var c=this.F[b];dc(this.F,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
h.Tv=function(a,b){var c=y(b)?a+b:a+ka(b),d=this.D[c];d&&(this.removeEventListener(a,d),dc(this.D,c))};
h.getPlayerState=function(){return F9(this.app)};
h.Rb=function(a,b){Q9(this.app,!0,this.playerType);e$(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){var a=this.app.W().experiments.ka("use_legacy_time_duration_api");return this.app.getCurrentTime(a?void 0:this.playerType)};
h.ih=function(){var a=this.app.W().experiments.ka("use_legacy_time_duration_api");return C9(this.app,a?void 0:this.playerType)};
h.Cb=function(){return this.app.U.volume};
h.setVolume=function(a){a=ke(Math.floor(a),0,100);H9(this.app,{volume:a,muted:this.tc()})};
h.tc=function(){return this.app.U.muted};
h.mute=function(){H9(this.app,{muted:!0,volume:this.Cb()})};
h.unMute=function(){H9(this.app,{muted:!1,volume:Math.max(5,this.Cb())})};
h.Yc=function(){Q9(this.app,!0,this.playerType);d$(this.app,this.playerType)};
h.pauseVideo=function(){var a=this.app,b=this.playerType;if(HH(a.Va)){var c=a.da.play_pause?a.qa:null;c?c.Td("control_pause"):a.pauseVideo(b)}};
h.Cr=function(){var a=this.app,b=this.playerType;Qx(a.X)&&(uH(a,!1),a.Oa("pageTransition"));c$(a,b)};
h.iD=function(){};
h.nD=function(){return this.app.V};
h.zj=function(a){y9(this.app,a)};
h.tj=function(){return this.app.X.U?z9:[1]};
h.uj=function(){var a=oq(this.app,this.playerType);return a&&(a=a.getVideoData().A)?a.video.quality:"unknown"};
h.yj=function(a){var b=this.app,c=oq(b,this.playerType);c&&!b.X.isMobile&&(a=Wt(a,a,!0),l2(c,"p",a))};
h.vr=function(){var a=oq(this.app,this.playerType);return a?(a=O(i2(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.qD=function(){return this.Gm()};
h.rD=function(){return 1};
h.Gm=function(){return ny(this.app.ia)};
h.sD=function(){return 0};
h.setSize=function(){this.app.F.af()};
h.zr=function(a){var b=this.app;a=a?2:1;l5(b).Fd=a;b.Oa("autonavchange",a)};
h.Ar=function(a){var b=this.app;l5(b).Fd=a;b.Oa("autonavchange",a)};
h.yD=function(a){var b=this.app;b.X.kl=a;b.Oa("minimized")};
h.vj=function(a){var b=this.app.C;b.isAvailable(a)&&(a=pH(b,a))&&!a.loaded&&a.load()};
h.Dr=function(a){var b=this.app.C;b.isAvailable(a)&&(a=pH(b,a))&&a.loaded&&a.unload()};
h.Hm=function(a,b,c){a=M9(this.app,gH(a,b,c),this.playerType);Q9(this.app,a,this.playerType)};
h.Em=function(a,b,c){var d=this.playerType;R9(this.app,new Aw(gH(a,b,c)),d)};
h.vD=function(a,b,c){a=fH(a,b,c);b=M9(this.app,a,this.playerType);Q9(this.app,b,this.playerType);b=this.app;(a=lh(new N(a.mediaContentUrl)))&&JG(b.X,a)};
h.kD=function(a,b,c){a=fH(a,b,c);b=this.playerType;R9(this.app,new Aw(a),b);b=this.app;(a=lh(new N(a.mediaContentUrl)))&&JG(b.X,a)};
h.getVideoUrl=function(){var a=this.app.W();if(a.C)return"";var b=l5(this.app),c=void 0;b.Fa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.ce()||void 0,c)};
h.Fm=function(){return D9(this.app)};
h.wr=function(){var a=this.app,b=l5(a),c=a.F.Ma(),a=a.X,d="https://"+OG(a)+"/embed/"+b.videoId;b.playlistId&&(d=Ug(d,{list:b.playlistId}));"gaming"==a.o&&(d=Ug(d,{ps:a.o}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+ya(d)+'" frameborder="0" allowfullscreen></iframe>'};
h.ur=function(a,b,c){return Y9(this.app,a,b,c)};
h.yr=function(a){a:{for(var b=this.app,c=b.o.F.o.o||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.F.gh(e);pq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.xr=function(a,b,c,d){var e=this.app;e.Z=!1;T9(e,a,b,c,d);Q9(this.app,!0,this.playerType)};
h.jD=function(a,b,c,d){var e=this.app;e.Z=!0;T9(e,a,b,c,d)};
h.wj=function(){V9(this.app);Q9(this.app,!0,this.playerType)};
h.xj=function(){W9(this.app);Q9(this.app,!0,this.playerType)};
h.Im=function(a){X9(this.app,a);Q9(this.app,!0,this.playerType)};
h.setShuffle=function(a){var b=this.app.A;b&&b.setShuffle(a)};
h.xD=function(a){var b=this.app.A;b&&(b.H=a)};
h.$b=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.sb(c);d&&b.push(d.videoId)}return b};
h.oD=function(){var a=this.app.A;return a?a.o:-1};
h.ce=function(){var a=this.app.A;return a&&a.D?a.D.toString():null};
h.de=function(a,b,c){return tH(this.app,a,b,c)};
h.wb=function(a,b,c){return tH(this.app,a,b,c)};
h.jh=function(a){return g$(this.app,a)};
h.getVideoData=function(){var a=oq(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};
h.Br=function(){var a=this.app.F;a.D||(a.D=new O5(a.app),G(a,a.D),a.D.o(a.element));a.D.show()};
h.tD=function(){var a=this.app.F;a.D&&a.D.ga()};
h.getAdState=function(){return this.app.getAdState()};
h.uD=function(a){if(a!=this.app.Y.args.video_id)return!1;a=(a=oq(this.app,1))?a.getPlayerState():null;return!(!a||!T(a,128)||5!=D$[a.o.errorCode])};
h.pD=function(){var a=this.app.Y.clone(),b=a.args,c=l5(this.app),d=fc(c.C);!c.Fa&&0<c.startSeconds&&(d.start=c.startSeconds);qa(b,d);return a};
h.zD=function(a,b){var c=this.app;c.H&&K5(c.H,a,b);SG(c.X)&&6!=c.K&&(c.X.rg=!lb(a),c.X.rg?(1!=c.K&&3!=c.K||!b||u9(c,c.G),a.length&&1!=c.K&&s9(c)):u9(c,c.H))};
h.destroy=function(){this.app.dispose()};
h.wD=function(){var a=oq(this.app);a&&!T(a.getPlayerState(),128)&&(a.R("internalAbandon"),P1(a),O1(a))};
h.T=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;iH.N.T.call(this)};B(kH,iH);h=kH.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.ur=function(a,b,c,d,e){return Y9(this.app,a,b,c,d,e)};
h.AD=function(a,b,c,d){tG(this.app.W().J,a,{ve:b,Qf:c,Wh:d})};
h.BD=function(a){var b=this.playerType;R9(this.app,new Aw(a),b)};
h.getPlayerState=function(a){return F9(this.app,a)};
h.Gr=function(a){M9(this.app,a,this.playerType)};
h.ND=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.L&&b.L.getVideoData().videoId==a.videoId||(a=new Aw(a),O9(b,a))};
h.Yc=function(){d$(this.app,this.playerType)};
h.Rb=function(a,b){e$(this.app,a,b,void 0,this.playerType)};
h.xr=function(a,b,c,d){var e=this.app;e.Z=!1;T9(e,a,b,c,d)};
h.wj=function(a){V9(this.app,a)};
h.xj=function(a){W9(this.app,a)};
h.Im=function(a){X9(this.app,a)};
h.Zc=function(a,b,c){var d=this.app,e=this.playerType;e$(d,d.getCurrentTime()+a,b,c,e)};
h.VD=function(a){if(a){var b=this.ce();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.Va.Ja()&&((c=c[b.o])&&c.encrypted_id!=b.sb().videoId||(a.index=b.o)):i9(this.app,{list:a.list,index:a.index,playlist_length:c.length});vx(this.app.A,a)}}else a=this.app,j9(a),a.Oa("onPlaylistUpdate")};
h.UD=function(){vG()};
h.WD=function(a){var b=oq(this.app,this.playerType||1);b&&(b=b.getVideoData(),Cw(b,a),b.R("dataupdated"))};
h.GD=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec};
h.ED=function(){var a=this.app.W();return{Ab:a.Ab,fb:a.fb}};
h.getVideoData=function(){var a=kH.N.getVideoData.call(this),b=oq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Fa;a.backgroundable=b.backgroundable;return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):kH.N.getCurrentTime.call(this)};
h.ih=function(a){return a?C9(this.app,a):kH.N.ih.call(this)};
h.Ue=function(){var a=this.app.getVideoData(),b=oq(this.app),c=FH(this.app.Va),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.ih(),k=oq(this.app,void 0);if(k)var l=I1(k.A),k=(0,window.isNaN)(l)?k.getCurrentTime():l;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,loaded:k,seekableEnd:n2(b,!0),seekableStart:bx(b.o)}};
h.Gm=function(a){var b=this.app;return(b.D&&2==b.D.O)==(2==a)?ny(b.ia):0};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.OD=function(a,b){B9(this.app,a,this.playerType,b)};
h.DD=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.o&&b.Fa){var c=b.o.o[b.A.id];c&&c.index?(b=c.index.gf(a),c=c.index.ee(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};
h.$f=function(a){var b=this.app,c=oq(b,this.playerType);c&&b.X.qa.contains(a.toString())&&c.B&&(b=XA(c.B,"engage"),b.F=a,b.send(void 0))};
h.kh=function(a){this.app.Vf("cards_drawer_set_visible",a)};
h.KD=function(a,b){var c=this.app;c.ea&&(c=c.ea,c.Y&&U6(c.Y,a,b))};
h.Zf=function(){return A9(this.app,this.playerType)};
h.Jm=function(a){var b=this.app,c=this.playerType,d=b.da.set_audio_track?b.qa:null;if(d)d.Td("control_set_audio_track",a);else{if(c=b=oq(b,c))if(c=!b.isDisposed()&&!T(b.C,128)&&b.o.B.o)c=b.D,c.isDisposed()?a=!0:(d=c.F,a=a.id,d.D="m",d.C=d.F.o[a],d.L=S_(d),c.R("audioformatchange",new O_(d.L,d.B,d.D)),c.o&&!c.o.o.remove?a=!1:(T0(c,c.A,S_(c.F)),q0(c.A),V0(c),a=!0)),c=!a;c&&(nH(b),f2(b))}};
h.Er=function(){var a=oq(this.app,this.playerType);return a.o.B?a.o.B.audioTracks:[]};
h.FD=function(){var a=oq(this.app,this.playerType);return a&&a.getVideoData().A?$t(x1(a.ma,a.o)):"unknown"};
h.QD=function(a,b){f$(this.app,a,b)};
h.CD=function(){var a=pH(this.app.C,"fresca");a&&a.C.C()};
h.TD=function(){var a=this.app.ea;a.va=!1;a.ae()};
h.MD=function(){var a=this.app.ea;a.va=!0;a.ae()};
h.JD=function(){return hH(this.app.W())};
h.RD=function(){return this.app.W().experiments.ka("send_presence_signal_vis_desktop")};
h.ID=function(a){return KE(this.app.F,a)};
h.PD=function(a){this.app.W().enableSafetyMode=a};B(lH,kH);h=lH.prototype;h.Hm=function(a,b,c){M9(this.app,gH(a,b,c),this.playerType)};
h.Aa=function(){return LE(this).element};
h.W=function(){return this.app.W()};
h.$b=function(){return this.app.A};
h.getVideoData=function(a){return(a=oq(this.app,a||this.playerType))&&a.getVideoData()};
h.Ja=function(){return this.app.W().Kg};
h.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};
h.yj=function(a){B9(this.app,a,this.playerType)};
h.Fm=function(a){return D9(this.app,a)};
h.getVideoUrl=function(a,b,c){var d=this.getVideoData(),e=void 0;a||d.Fa||(e=Math.floor(this.getCurrentTime()));return this.app.W().getVideoUrl(d.videoId,2==this.getPresentingPlayerType()?void 0:this.ce()||void 0,e,b,c)};
h.kh=function(a){var b=pH(this.app.C,"iv-module");b&&mF(b,a)};
h.$f=function(a,b){var c=this.app,d=oq(c,this.playerType);d&&c.X.qa.contains(a.toString())&&d.B&&(c=XA(d.B,"engage"),c.F=a,c.send(b))};
h.jb=function(a,b){Z9(this.app,a,b||this.playerType)};
h.Yi=function(a){var b=oq(this.app,this.playerType);b&&b.Yi(a)};
h.wb=function(a,b,c){return tH(this.app,a,b,c,!0)};
h.jh=function(a){return g$(this.app,a,!0)};
h.de=function(a,b,c){return tH(this.app,a,b,c,!0)};
h.setVolume=function(a){a=ke(Math.floor(a),0,100);H9(this.app,{volume:a,muted:this.tc()},!0)};
h.mute=function(){H9(this.app,{muted:!0,volume:this.Cb()},!0)};
h.unMute=function(){H9(this.app,{muted:!1,volume:Math.max(5,this.Cb())},!0)};var lI=/^#(?:[0-9a-f]{3}){1,2}$/i,s8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),t8=["none","raised","depressed","uniform","dropShadow"],Ufa=["sub","inherit","super"],lJ={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},Vfa=["left","right","center"],MH={anchorPoint:7,bold:!1,colCount:32,color:"#fff",heightPercentage:100,isVisible:!0,italic:!1,leftPercentage:50,
offset:1,rowCount:15,textAlign:2,textPrintDirection:0,topPercentage:100,underline:!1,widthPercentage:80},NH={id:0,priority:0,colCount:100},jJ={id:98},UI={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},C8=["en_CA","en_US","es_MX","fr_CA"];var E$=[{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"}],F$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],W6=[{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:E$},{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:E$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:F$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:E$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:F$},{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%"}]}];h=LH.prototype;h.getType=function(){return this.type};
h.ud=function(a,b){a&&qa(this.Ha,a);var c=this.Ha.charEdgeStyle,d=this.Ha.textOpacity,e="";if(0!=c){var f="rgba(34, 34, 34, "+d+")",k="rgba(204, 204, 204, "+d+")";this.Ha.charEdgeColor&&(k=f=this.Ha.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+f+", 2px 2px 4px "+f+", 2px 2px 5px "+f;break;case 1:e="1px 1px "+f+", 2px 2px "+f+", 3px 3px "+f;break;case 2:e="1px 1px "+k+", 0 1px "+k+", -1px -1px "+f+", 0 -1px "+f;break;case 3:e="0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f}}c=this.Ha.fontFamily;
f="";switch(c){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var l=oC(this.Ha.color),k=oC(this.Ha.background),l="rgba("+l[0]+","+l[1]+","+l[2]+","+d+")",d=this.Ha.offset||1;Mf(this.A,{color:l,fill:l,"background-color":"rgba("+k[0]+","+k[1]+","+k[2]+","+this.Ha.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":f,"font-weight":this.Ha.bold?"bold":"","font-style":this.Ha.italic?"italic":"","text-decoration":this.Ha.underline?
"underline":"","vertical-align":Ufa[d]});b&&(this.M=b.height/360);e=oC(this.Ha.windowColor);c=this.Ha.windowOpacity;f=this.Ha.fontSizeIncrement||0;1!=d&&(f*=.8);Mf(this.J,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*f)*this.M)+"px"})};
h.ci=function(){var a;this.C.style.fontFamily=this.A.style.fontFamily;this.o.appendChild(this.C);a=this.C.offsetHeight;this.o.removeChild(this.C);return a};
h.Wd=function(){this.A&&(0!=this.id&&98!=this.id&&(fg(this.o,"100%"),fg(this.o,this.A.offsetWidth+1)),OH(this),Lq(this.o,this.Ha.isVisible))};
h.Mq=function(a){if(a.length){var b=a[a.length-1].H;b&&this.ud(XH(b))}for(var b="",c=0;c<a.length;){0<c&&(b+="<br>");var d=a[c].A;for(c++;c<a.length;c++){var e=a[c];if(e.G)d+=e.A;else break}b+=PH(d)}this.Zd(b);this.F=a};
h.Zd=function(a){this.L=a;this.A.innerHTML=a;this.o.style.textAlign=Vfa[this.Ha.textAlign];1==this.Ha.textPrintDirection?this.A.setAttribute("dir","rtl"):this.A.removeAttribute("dir");this.Wd()};
h.toString=function(){var a="Caption window ("+this.id+"): "+this.L,b;for(b in this.Ha)a+=b+" "+this.Ha[b]+" | ";return a};
h.Th=function(){this.F=[];this.Zd("")};B(RH,iq);RH.prototype.toString=function(){return RH.N.toString.call(this)};
B(TH,iq);B(YH,QH);B(ZH,QH);B(dI,QH);B(mI,QH);var oI=/NOTE/,nI=/(?:\r\n|\r|\n){2,}/,pI=/\r\n|\r|\n/,qI=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(xI,F);h=xI.prototype;h.tk=function(a){var b=this.o.A,c=uI(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.Kd=function(){return null};
h.seek=function(){};
h.bm=function(){};
h.T=function(){xI.N.T.call(this);this.bm()};B(zI,xI);h=zI.prototype;h.Mn=function(){for(var a=[],b=uI(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:St(d),srclang:d.o,src:AI(this,d)};d==this.tk()&&(e["default"]=1);a.push(M("track",e))}return a};
h.ql=function(a,b){cb(!this.isDisposed());var c=AI(this,a),d=A(function(c){this.B=null;c=new sI(c.responseText);b(c,a)},this);
this.B&&this.B.abort();this.B=Bj(c,{format:"RAW",nb:d,withCredentials:!0});this.A&&this.A.wg!=a&&(this.A.lk=a)};
h.rl=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)vI(this.o,this.A.captionTracks[b]);a()};
h.Kd=function(){return this.A?this.A.wg:null};
h.tk=function(){return this.A?this.A.lk:null};
h.T=function(){this.B&&this.B.abort();zI.N.T.call(this)};DI.prototype.contains=function(a){a=yb(this.ua,a);return 0<=a||0>a&&1==(-a-1)%2};
DI.prototype.length=function(){return this.ua.length/2};B(EI,F);EI.prototype.T=function(){Ei(this.B);this.B=0;this.C=!0;this.D&&this.D.abort()};
EI.prototype.resume=function(){this.C=!1;Ei(this.B);this.seek(this.A.getCurrentTime());II(this)};
EI.prototype.seek=function(a){this.o=db(this.J.gi(a).o)};
EI.prototype.K=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.C||null===this.G||(a=new sI(a.responseText,1E3*this.F.o[0].startTime),this.G(a));this.D=this.F=null};B(JI,xI);h=JI.prototype;h.ql=function(a,b){FI(this.A,function(c){b(c,a)});
this.A.J=this.B.o[a.o];this.A.resume()};
h.rl=function(a){vI(this.o,new Qt({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
h.seek=function(a){this.A.seek(a)};
h.bm=function(){var a=this.A;Ei(a.B);a.B=0;a.C=!0};
h.T=function(){this.A.dispose();JI.N.T.call(this)};B(KI,LH);h=KI.prototype;h.ci=function(){return this.D[0]?this.D[0].offsetHeight:0};
h.Wd=function(){0!=this.id&&(fg(this.o,"100%"),fg(this.o,this.G?LI(this):this.B.width));var a=Math.round(this.Ha.rowCount*this.ci());this.o.style.maxHeight=a+"px";OH(this);Lq(this.o,this.Ha.isVisible)};
h.Zd=function(a){this.Th();a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=M("div",{"class":"caption-row-holder"}),e=M("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.H;d.appendChild(e);e.innerHTML=a[b];this.G||(this.A.style.height=this.B.height+"px",this.A.style.width=this.B.width+"px",d.style.position="absolute",d.style.top=this.B.yq[b]+"px",d.style.left=this.B.xq[b]+"px");this.A.appendChild(d);this.D.push(e)}this.Wd()};
h.Th=function(){for(var a=0,b=this.D.length;a<b;a++){var c=Hf(this.D[a],"caption-row-holder");qf(c)}this.D=[]};
h.ud=function(a,b){KI.N.ud.call(this,a,b);this.H=this.A.style.backgroundColor;this.A.style.backgroundColor="";for(var c=0,d=this.D.length;c<d;c++)this.D[c].style.backgroundColor=this.H};B(MI,LH);MI.prototype.Wd=function(){fg(this.o,"100%");var a=this.o.offsetWidth,a=Math.min(QI(this),a);fg(this.o,a+"px");fg(this.J,"100%");this.A.style.whiteSpace="nowrap";OH(this);Lq(this.o,this.Ha.isVisible)};
MI.prototype.Mq=function(a){var b=a.length;if(0>=b)this.Th();else{for(var c=0;c<b&&0<=this.F.indexOf(a[c]);)c++;this.F=this.F.concat(a.slice(c));NI(this)}};
MI.prototype.Th=function(){this.F=[];this.B=[];this.D=0;this.B=[];this.G=[];PI(this)};
MI.prototype.K=function(){this.o.style.overflow="visible";this.A.style.top=0;this.H.stop();Zd(this.A,"caption-rollup");this.B.push("");this.G.push(0);NI(this)};B(RI,xI);RI.prototype.Mn=function(){for(var a=[],b=uI(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e=SI(this,d),e={kind:"subtitles",label:d.C,srclang:d.o,src:e};d.isDefault&&(e["default"]=1);a.push(M("track",e))}return a};
RI.prototype.ql=function(a,b){cb(!this.isDisposed());var c=SI(this,a),d=A(function(c){this.A=null;c=new sI(c.responseText);b(c,a)},this);
this.A&&this.A.abort();this.A=Bj(c,{format:"RAW",nb:d,withCredentials:!0});wI(this.o,a)};
RI.prototype.rl=function(a,b,c){var d=this.B;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.No&&(b.asrs=1);d=rj(d,b);b=A(function(b){this.A=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var p=k[m].getAttribute("formats"),u=c,v=k[m].getAttribute("lang_code"),z=k[m].getAttribute("lang_translated"),x=k[m].getAttribute("name"),ga=k[m].getAttribute("kind"),xa=k[m].getAttribute("id"),K="true"==k[m].getAttribute("lang_default"),
Y="true"==k[m].getAttribute("cantran"),Mb=k[m].getAttribute("vss_id");vI(d,new Qt({formats:p,format:u,languageCode:v,languageName:z,name:x,kind:ga,id:xa,is_servable:!0,is_default:K,is_translateable:Y,vss_id:Mb}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)l=b[k].getAttribute("lang_code"),m=b[k].getAttribute("lang_translated"),p=b[k].getAttribute("lang_original"),u=b[k].getAttribute("id"),v="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:p,
id:u,is_default:v},this.F[l.languageCode]=l.languageName,this.D.push(new Pt(l))}a()},this);
this.A&&this.A.abort();this.A=Bj(d,{format:"RAW",nb:b,withCredentials:!0})};
RI.prototype.T=function(){this.A&&this.A.abort();RI.N.T.call(this)};B(TI,mq);h=TI.prototype;h.create=function(){TI.N.create.call(this);this.D=this.o.getVideoData();-1==C8.indexOf(this.X.Y)&&J(this.o.Aa(),"cc-international");this.C=fc(lJ);qa(this.C,sq(this,"display-settings"));WI(this,"fontFamilyOption","fontFamily",s8,4);WI(this,"charEdgeStyle","charEdgeStyle",t8,3);this.U=new Q(["div",["ytp-player-content","ytp-subtitles-player-content"]]);Uq(this.o,this.U.element,4);(this.D.Fa&&VI(this)?0:this.D.captionTracks.length&&this.o.Zf().wg||XI(this,!0))&&this.load()};
h.destroy=function(){Aq(this.U);this.U.dispose();TI.N.destroy.call(this)};
h.load=function(){this.na="1"==this.D.C.cc_auto_caps||"1"==this.X.M.cc_auto_caps;TI.N.load.call(this);this.fa=!0;if(this.D.Fa)this.B=new JI(this.D.o,this.o),this.subscribe("seekto",this.Mr,this);else{var a=this.D.ne||this.X.Qa||this.D.Sc("yt:cc_default_lang")||this.X.Y,a=a&&a.split("_").join("-");this.D.captionTracks.length?this.B=new zI(this.D):this.B=new RI(this.D.Ph,this.D.videoId,a,this.D.Oh)}YI(this)};
h.unload=function(){this.G&&(fJ(this),this.Hl("control_subtitles_set_track"));if(VI(this)){var a;a=Ze("track",void 0,void 0);for(var b=0;b<a.length;b++)qf(a[b])}else iJ(this,!1),ZI(this),this.unsubscribe("seekto",this.Mr,this),this.B.dispose(),this.B=null;this.K=this.da=this.O=this.fa=!1;TI.N.unload.call(this)};
h.bq=function(){this.fa=!1;if(VI(this))for(var a=this.M.A,b=this.B.Mn(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(c=this.K||XI(this,!this.da),b=uI(this.B.o,!0),0<b.length){this.da=!0;a=this.A&&-1!=b.indexOf(this.A);if(c&&!a)if(c=this.B.tk(),!c&&this.K&&(c=b[0]),c)this.ma=!0,cJ(this,c),a=!0;else if(this.O||$I(this),b=this.B.o.B,b.length&&(b=b[0].toString(),this.K||this.na))a=yI(this.B,b),cJ(this,a,void 0),a=!0;this.R("publish_external_event","onCaptionsTrackListChanged");a||bJ(this)}else if(this.B.Kd())bJ(this);
else if(a=this.o.app.C,b=pH(a,this.sa))pb(a.o,b),b.destroy()};
h.cq=function(a,b){this.ma&&(this.ma=!1,this.R("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){ZI(this);this.A=b;this.qa=zfa.test(b.o);var c={trackName:b.C,trackKind:b.B};b.A?(c.trackLangCode=b.A.languageCode,c.fromLangCode=b.o):c.trackLangCode=b.o;this.log(c);b!=this.B.Kd()&&(this.K&&(c=St(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=P("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 15 15"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25,5.7C8.783,5.233,8.2,5,7.5,5S6.2,5.233,5.7,5.7C5.233,6.2,5,6.8,5,7.5s0.233,1.283,0.7,1.75C6.2,9.75,6.8,10,7.5,10s1.283-0.25,1.75-0.75C9.75,8.783,10,8.2,10,7.5S9.75,6.2,9.25,5.7z M8.75,2.15c0.6,0.1,1.15,0.317,1.65,0.65l1.5-1.5l1.75,1.75l-1.5,1.5c0.333,0.534,0.583,1.1,0.75,1.7H15v2.5h-2.1c-0.133,0.6-0.367,1.15-0.7,1.65l1.5,1.5l-1.75,1.75l-1.5-1.5c-0.534,0.333-1.1,0.583-1.7,0.75V15h-2.5v-2.1c-0.6-0.167-1.167-0.417-1.7-0.75l-1.5,1.5L1.3,11.9l1.5-1.5C2.467,9.9,2.25,9.35,2.15,8.75H0v-2.5h2.15c0.133-0.6,0.367-1.167,0.7-1.7l-1.5-1.5L3.1,1.3l1.5,1.5c0.5-0.333,1.05-0.55,1.65-0.65V0h2.5V2.15z"/></svg>'}),
this.U.element.appendChild(this.Y.o),this.Y.Zd(c),this.Y.ud(this.C,this.M.Ma()),this.Y.Wd(),this.ha.Nf()),this.R("publish_external_event","captionschanged",Rt(b)),(this.X.experiments.ka("cc_sticky_behavior")||this.K||DG(this.X))&&tq(this,"module-enabled",!0),(c=oq(this.o.app))&&c.B&&CA(c.B.A))}this.O||$I(this);this.jb(a.A.concat(a.o))};
h.mc=function(a){this.aa.push(a);this.ia.Nf()};
h.Jc=function(a){pb(this.aa,a);this.ia.Nf()};
h.PB=function(a){if(this.A)if(a instanceof TH){var b=this.L[a.id];qa(a.params,this.C);UH(a);b&&b.getType()!=VH(a)&&(qf(b.o),delete this.L[a.id],b=null);if(!b){var b=this.L,c=a.id,d;a:{d=a.id;var e=a.params;switch(VH(a)){case 1:d=new KI(d,e);break a;case 2:d=new MI(d,e);break a;default:d=new LH(d,e)}}b=b[c]=d;c=b.o;L(c,"captions-asr","asr"==this.A.B);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.qa?1:0);this.U.element.appendChild(c)}b.ud(a.params,this.M.Ma());if(1==VH(a)){b.K=
PH(a.A);b.B={};b.G=!0;b.Zd(b.K);b.B.wq=b.D.length;b.B.width=b.o.offsetWidth;b.B.height=b.o.offsetHeight;b.B.xq=[];b.B.yq=[];for(a=0;a<b.B.wq;a++)b.B.yq.push(b.D[a].offsetTop),b.B.xq.push(b.D[a].offsetLeft);b.G=!1;b.Zd(b.K)}}else b=a.D,this.Z[b]||(this.Z[b]=[]),this.Z[b].push(a)};
h.xp=function(){this.O&&(aJ(this),Pb(this.L,function(a){a.Wd()},this))};
h.YB=function(){qf(this.Y.o)};
h.dm=function(){this.ia.stop();this.O&&(cc(this.Z),this.aa.sort(lq),E(this.aa,this.PB,this),Pb(this.L,function(a,b){this.Z[b]?a.Mq(this.Z[b]):(qf(a.o),delete this.L[b])},this),dJ(this),this.F&&this.F.Wd())};
h.Ll=function(){tq(this,"display-settings",this.C)};
h.ge=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.C.fontSizeIncrement=Math.max(-2,Math.min(4,b)),aJ(this)),this.C.fontSizeIncrement;case "reload":b&&YI(this);break;case "stickyLoading":void 0!=b&&this.X.fb&&tq(this,"module-enabled",!!b);break;case "track":if(b){if(!ia(b))break;if(bc(b)){gJ(this);break}for(var c,d=uI(this.B.o,!0),e=0;e<d.length;e++){var f=d[e];f.o!=b.languageCode||c&&f.F!=b.languageName||(c=b.translationLanguage?Tt(f,b.translationLanguage):f)}c&&cJ(this,
c,!0)}else return this.A&&this.A!=this.B.Kd()?Rt(this.A):{};return"";case "tracklist":return this.da?O(uI(this.B.o,b&&b.includeAsr),function(a){return Rt(a)}):[];
case "translationLanguages":return this.da?this.B.D:[];case "displaySettings":return b&&ia(b)&&kJ(this,b),c=fc(this.C),c.fontFamilyOption=s8[c.fontFamily],c.charEdgeStyle=t8[c.charEdgeStyle],c;case "sampleSubtitles":void 0!=b&&iJ(this,!!b);break;case "xmlTrack":b&&this.X.fb&&(ZI(this),c=new sI(b.xml),this.A=new Qt({languageName:b.name}),this.cq(c,this.A))}};
h.Ve=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.X.fb&&a.push("stickyLoading","xmlTrack");return a};
h.ek=function(a,b){return a&&y(a)&&lI.test(a)?a:b};
h.vl=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
h.qv=function(a,b){if(a&&y(a)){var c=t8.indexOf(a);return-1!=c?c:b}return b};
h.Yv=function(a,b){if(a&&y(a)){var c=s8.indexOf(a);return-1!=c?c:b}return b};
h.Zv=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};
var mJ=null;h=TI.prototype;h.Wa=function(a){if("lb3"==a.W().o)return!1;a=a.getVideoData();var b;if(b=a.Fa)b=a.o,b=!(!b||null==b.o.en);return!!(a.Ph||a.captionTracks.length||b)};
h.Ki=function(a){a?ZI(this):this.loaded&&(this.unload(),this.load())};
h.Mr=function(){this.B.seek(this.o.getCurrentTime())};
h.nh=function(){var a=this.A;return a?{cc:a.G}:null};
h.bB=function(){this.K=!0;this.loaded?this.A&&this.A!=this.B.Kd()?gJ(this):this.bq():this.load()};
h.Ay=function(){this.D.captionTracks.length&&(this.loaded?YI(this):(this.o.Zf().wg||XI(this,!0))&&this.load())};B(nJ,mq);h=nJ.prototype;h.Wa=function(){return oJ(this.o)};
h.create=function(){nJ.N.create.call(this);var a=new iq(1E3,0x7ffffffffffff,{priority:0});this.jb([a]);this.subscribe("heartbeatparams",this.dE,this);this.subscribe("onStateChange",this.eE,this)};
h.destroy=function(){vJ(this);nJ.N.destroy.call(this)};
h.mc=function(){this.F=!0;rJ(this,2E3)};
h.dE=function(a){this.B=a;rJ(this,2E3)};
h.eE=function(a){T(a.state,2)||T(a.state,64)?vJ(this):(T(a.state,1)||T(a.state,8))&&rJ(this,2E3)};
h.cC=function(){var a,b,c=this.o.W(),d=this.o.getVideoData();b=c.baseYtUrl;T(oz(this.o),4)?this.A=window.NaN:qJ(this)?(Zw(d)?(a="GET",b=Ug(this.B.url,{request_id:wu()}),d.M&&(b=Ug(b,{vvt:d.M})),d.oauthToken&&(b=Ug(b,{access_token:d.oauthToken}))):(a="GET",c=c.A,b=Ug(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.M,access_token:d.oauthToken})),b=Ug(b,{cpn:d.clientPlaybackNonce}),Bj(b,{format:"RAW",method:a,timeout:3E4,nb:A(this.Jx,this),
onError:A(this.Ix,this),Ud:A(this.Kx,this),withCredentials:!0})):vJ(this)};
h.Jx=function(a){if(this.A){a=a.responseText;var b;b=(b=uJ(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(G$))?"0"==b[1]?0:1:-1;if(-1==b)sJ(this,"decode");else if(this.C=0,this.A=window.NaN,1==b){this.D=!1;b="YTP_ERROR_LICENSE";var c=uJ(a);c?a=c.reason||P(b):((a=a.match(G$))&&(a=(0,window.parseInt)(a[1],10))&&(b=ey(a)),a=P(b));tJ(this.o.app.o,"heartbeat",a,void 0)}else this.D=!0,rJ(this)}};
h.Ix=function(a){sJ(this,"net-"+a.status)};
h.Kx=function(){sJ(this,"timeout")};
var G$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(BJ,mq);h=BJ.prototype;h.Wa=function(){return!!this.o.getVideoData().spacecastModule};
h.create=function(){BJ.N.create.call(this);var a;a:{var b=ij("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()};
h.destroy=function(){BJ.N.destroy.call(this);this.A=null};
h.load=function(){BJ.N.load.call(this);if(this.A){var a=this.o.getVideoData().videoId,b=I();zJ(this.A,a,A(this.Jw,this,a,b))}else qq(this)};
h.ge=function(a){switch(a){case "getVideo":a=this.o.getVideoData();var b=Boolean(a&&cx(a)&&a.A&&a.A.video.o);return{docid:a.videoId,isFastLoad:b}}};
h.Jw=function(a,b,c){if(this.A){b=I()-b;var d=!1,e=this.o.getVideoData(),f="unknown";if(c){c.status&&(f=c.status);var k=xJ(this.A,c,e.adaptiveFormats);k&&(e.spacecastAdaptiveFormats=k);if(c=xJ(this.A,c,e.Sf))e.spacecastFormatMap=c;if(k||c)Ww(e,this.o.W()),e.O||mH(this.o),d=$t(e.Vg),this.o.yj(d),d=!0}(c=2==this.o.getPresentingPlayerType())&&!d?od(function(){var a=this.o.app;a.G&&a.G.J&&(a=a.G,a.F&&(a=a.B.A.o,null!=a&&a.Cj()))},this):qq(this);
Pi("yt-www-spacecast-cache-watch-video-cached",a,d);wJ(Sg({a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}))}};B(DJ,mq);h=DJ.prototype;h.Wa=function(){return fx(this.o.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){DJ.N.create.call(this);this.load()};
h.load=function(){DJ.N.load.call(this);this.A=new wq(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",P("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.o.getVideoData().C.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],P("YTP_YPC_START_RENTAL_BUTTON")]]);Uq(this.o,this.A.element,4);G(this,this.A);this.B=this.A.ra["ytp-ypc-clickwrap-confirm"];Nl(this.B,"click",A(this.bz,this))};
h.unload=function(){DJ.N.unload.call(this);Ul(this.B);Aq(this.A);this.A.dispose();this.A=null};
h.bz=function(){qq(this);this.destroy()};GJ.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.A=b*(1-c)+c*this.A;this.C+=a};
GJ.prototype.B=function(){return this.A/(1-Math.pow(this.D,this.C))};HJ.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)};
HJ.prototype.Ka=function(){var a=[];this.forEach(A(a.push,a));return a};JJ.prototype.o=function(a,b){LJ(this,"index");this.C.push({index:this.J++,weight:a,value:b});this.A+=a;for(LJ(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)}};
JJ.prototype.B=function(){return this.F?(KJ(this,this.D-this.F)+KJ(this,this.D)+KJ(this,this.D+this.F))/3:KJ(this,this.D)};MJ.prototype.o=function(a,b){this.A.push(b);this.A.length>this.C&&this.A.shift()};
MJ.prototype.B=function(){return ne.apply(null,this.A)};B(YJ,F);YJ.prototype.J=function(a){if(this.A){var b;var c=ka(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]);G(this,b)}}else b=null;b&&b.Wa(this.A)&&!jb(this.o,b)&&(b.create(),this.o.push(b),jb(this.D,b.sa)&&(b.G=this.H,b.Ki(!!b.G)))}};
YJ.prototype.K=function(a,b){E(this.o,function(c){c.R(a,b)})};
YJ.prototype.isAvailable=function(a){a=pH(this,a);return!(!a||!a.ea)};eK.prototype.getMessage=function(){return this.C};
eK.prototype.getErrorCode=function(){return this.o};
eK.prototype.getType=function(){return this.D};
eK.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.B?" Caused by: "+this.B:"")};B(fK,kc);fK.prototype.getError=function(){return this.C};var r_="adMetadata click companionBackfill complete firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked youTubeChannelMetadata".split(" "),H$="abandon acceptinvitation acceptinvitationlinear video_extend_auto_skipped click close collapse complete creativeview engagedview exitfullscreen expand video_extend_shown video_extend_clicked externalActivityEvent firstquartile fullscreen 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 why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "),
Wfa="acceptinvitation click close collapse creativeview expand progress".split(" "),I$=["viewable_impression","measurable_impression","externalActivityEvent"],J$={fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};B(gK,kc);gK.prototype.getAd=function(){return this.C};
var Gda={$F:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",WI:"videoClicked",Zm:"engagedview",RG:"expandedChanged",STARTED:"start",Ah:"impression",an:"measurable_impression",qn:"viewable_impression",$m:"fully_viewable_audible_half_duration_impression",UG:"externalActivityEvent",PAUSED:"pause",aI:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",NG:"durationChange",
pG:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",QH:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",gt:"video_extend_auto_skipped",Hu:"skipshown",Ot:"video_extend_shown",TG:"video_extend_clicked",qH:"linearChanged",mI:"skippableStateChanged",aG:"adMetadata",ZF:"adBreakReady",uH:"log",VOLUME_CHANGED:"volumeChange",aJ:"mute",FG:"companionBackfill",jJ:"youTubeVideoMetadata",iJ:"youTubeChannelMetadata",OI:"urlNavigationRequested",GI:"trackingUrlPinged",RI:"video_card_endcap_action",
SI:"video_card_endcap_collapse",TI:"video_card_endcap_dismiss",VI:"video_card_endcap_impression",fJ:"why_this_ad_url",eJ:"why_this_ad_got_it",DH:"MUTE_AD"};var QK={au:5E3,bu:15E3,zu:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://yts?.moatads.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),Au:/\bocr\b/,hk:0,rd:{},Hq:function(a,b){a&&(QK.ll(a)?QK.Iq(a,b):QK.eC(a,b))},
ll:function(a){return C(D(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new N(a)).De().match(QK.Au)?!0:null!=eb(QK.zu,function(b){return null!=a.match(b)})},
Iq:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?QK.To(function(b){QK.Eq(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):QK.Eq(c)}},
Eq:function(a){var b=M("iframe",{src:a,style:"display:none"});a=We(b).body;var c,d=Sd(function(){$c(c);qf(b)},QK.bu);
c=Yc(b,["load","error"],function(){Sd(function(){Td(d);qf(b)},QK.au)});
a.appendChild(b)},
To:function(a,b){var c=QK.rd.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete QK.rd[c];d||(d=!0,null!=QK.rd.imageLoadingEnabled||(QK.rd.imageLoadingEnabled=b),a(b))};
b?b(c):QK.Nx(c)}},
Nx:function(a){var b=new window.Image,c,d=""+QK.hk++;QK.rd[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=="},
dC:function(a){if(a){var b=lf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+QK.hk++;QK.rd[c]=b;b.onload=b.onerror=function(){delete QK.rd[c]};
window.document.body.appendChild(b)}},
Fq:function(a){if(a){var b=new window.Image,c=""+QK.hk++;QK.rd[c]=b;b.onload=b.onerror=function(){delete QK.rd[c]};
b.src=a}},
eC:function(a,b){b?QK.To(function(b){b?QK.Fq(a):QK.dC(a)}):QK.Fq(a)},
xJ:function(a){null!=a&&E(a,function(a){QK.Hq(a)})}};var oK=new function(){this.A="always";this.F=1;this.o=!1;this.C=!0;this.G=!1;this.D=null};var AU=["ADSENSE","ADSENSE/ADX"],Raa=["DART","DART_DFA","DART_DFP"],Zaa=["FREEWHEEL","YT:FREEWHEEL"],VT=["GDFP"],Qaa=["VIRAL","ADSENSE-VIRAL"],wT={"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"},ZY={zH:"video/mp4",BH:"video/mpeg",vH:"application/x-mpegURL",HH:"video/ogg",wI:"video/3gpp",cJ:"video/webm",yH:"audio/mpeg",AH:"audio/mp4"};pK.prototype.getId=function(){return this.A};qK.prototype.getId=function(){return this.B};var xK=null;var XP=["*.googlesyndication.com"],GK=["*.youtu.be","*.youtube.com"],LK="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(" "),KK=["c.googlesyndication.com"],Xfa=
["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];SK.prototype.getErrorCode=function(){return this.errorCode};
SK.prototype.getMessage=function(){return this.message};
var bda=new SK("Unable to request ads from server. Cause: {0}.",1005),Yfa=new SK("Unable to request ads from server due to network error.",1012),iV=new SK("Cannot parse the {0} value for the adslist response: {1}.",900),OY=new SK("Invalid usage of the API. Cause: {0}",900),TY=new SK("Unable to display one or more required companions.",602),Zfa=new SK("There was a problem requesting ads from the server.",1005),Sca=new SK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),nX=new SK("The provided ad type: {0} is not supported.",1005),rR=new SK("The provided {0} information: {1} is invalid.",1101),$fa=new SK("The provided skip offset was invalid.",1105),aga=new SK("The extension contained is neither skippable nor nonskippable.",1105),IW=new SK("The response does not contain any valid ads.",1009),cga=new SK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),qba=new SK("The ad playlist response was malformed or empty.",
1010),jV=new SK("The ad response was not understood and cannot be parsed.",1010),Vca=new SK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),dga=new SK("The ad response contains unexpected element. Cause {0}.",1010),dY=new SK("No assets were found in the VAST ad response.",200),Faa=new SK("Duplicate node in <{0}>: {1}",101),JW=new SK("The VAST response document is empty.",1009),Fda=new SK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),WX=new SK("Ad request reached a timeout.",301),KW=new SK("VAST response was malformed and could not be parsed.",100),K$=new SK("VAST media file loading reached a timeout of {0} seconds.",402),PX=new SK("Ad request could not be completed due to a network error.",301),ega=new SK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),Pca=new SK("The maximum number of VAST wrappers ({0}) has been reached.",302),fga=new SK("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),JZ=new SK("Video player received an ad with unexpected or incompatible linearity",201),Eaa=new SK("Unknown node in <{0}>: {1}",101),Qba=new SK("Invalid VAST resource type: {0}",101),hca=new SK("Invalid VAST version",102),Qca=new SK("No additional VAST wrappers allowed.",300),OX=new SK("No Ads VAST response after one or more Wrappers",303),NZ=new SK("There was an error playing the video ad.",400),cca=new SK("VMAP unsupported node in <{0}>: {1}",1010),Mda=new SK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var L$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var fL={},gL="",gQ=/OS (\S+) like/,mL=/Android ([\d\.]+)/;aa(nL);h=rL.prototype;h.dv=!1;h.xn=!1;h.An=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.contentId=null;h.Hv=!1;h.Eg=null;h.surveyCreativeData=null;h.AC=!0;h.jm=!1;h.useShareButton=!1;h.Yq=!1;h.useStyledNonLinearAds=!1;h.useVideoAdUi=!0;h.BC=!0;h.Uj=!1;h.Iv=!1;h.youTubeAdNamespace=0;h.showContentThumbnail=!0;h.im=!1;h.Df=null;h.loadVideoTimeout=15E3;h.Bn=!0;h.lq=0;h.Gl=-1;window.console&&"function"===typeof window.console.log&&A(window.console.log,window.console);tL.prototype.toString=function(){function a(a){a=ec(c,a);null!=a?b.push(""+a):b.push("u")}
var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};var DL=null;xL.prototype.getValue=function(){return this.o};
xL.prototype.nc=function(){return this.B?this.A():""};
xL.prototype.A=function(){return String(this.o)};
B(yL,xL);yL.prototype.A=function(){return this.o?"1":"0"};
B(zL,xL);zL.prototype.A=function(){return String(this.o)};
B(AL,xL);AL.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)):""};
wL.prototype.setItem=function(a){this.o[a.D]=a};
wL.prototype.getItem=function(a){return ec(this.o,a,null)};
wL.prototype.nc=function(a){var b=[];a||(a=0);for(var c in this.o){var d=this.o[c];d instanceof yL&&d.getValue()&&(a|=d.C);(d=this.o[c].nc())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};h=HL.prototype;h.remove=function(a){dc(this.o,a)};
h.set=function(a,b){this.o[a]=b};
h.get=function(a){return ec(this.o,a,null)};
h.extend=function(a){hc(this.o,a)};
h.nc=function(){var a=[],b;for(b in this.o)a.push(b+this.o[b]);return a.join("_")};var ML=null,PL=null,LL=null;QL.prototype.nc=function(){var a=[],b=Number(this.o.get("eb"));this.o.remove("eb");var c=this.o.nc();c&&a.push(c);this.A&&(c=this.A.serialize())&&a.push(c);(c=this.B.nc(b))&&a.push(c);this.o.set("eb",b);return a.join("_")};var pP={START:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",RESUME:"resume",SKIPPED:"skip",qn:"viewable_impression",MUTE:"mute",UNMUTE:"unmute",FULLSCREEN:"fullscreen",EXIT_FULLSCREEN:"exitfullscreen",$m:"fully_viewable_audible_half_duration_impression",an:"measurable_impression",Us:"abandon",Zm:"engagedview",Ah:"impression",CREATIVE_VIEW:"creativeview"},sP=["start","firstquartile","midpoint","thirdquartile",
"resume"],UN=["abandon"],qP={UNKNOWN:-1,START:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,RESUME:7,SKIPPED:8,qn:9,MUTE:10,UNMUTE:11,FULLSCREEN:12,EXIT_FULLSCREEN:13,$m:14,an:15,Us:16,Zm:17,Ah:18,CREATIVE_VIEW:19};var GO=/https?:\/\/[^\/]+/;$L.prototype.o=function(a,b,c,d,e){var f={};f.context=a;b instanceof aM||(b=cM(b));f.msg=b.message.substring(0,512);b.fileName&&(f.file=b.fileName);0<b.lineNumber&&(f.line=b.lineNumber.toString());a=r.document;f.url=a.URL.substring(0,512);f.ref=a.referrer.substring(0,512);if(d)try{d(f)}catch(l){}d=this.D;try{if(Math.random()<(c||d.A)){var k=d.o+(e||this.C)+YL(f),k=k.substring(0,2E3);ZL(r,k)}}catch(l){}return this.A};var mM=window.document,W=window;var eM;eM=new $L(new function(){this.o="http"+("http:"==W.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.A=.01},"jserror",!0);
var GP=eM.o;var M$=!1,N$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(M$=!0,a.description)){N$=jM(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){M$=!0;N$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(M$=(a=window.navigator.mimeTypes["application/x-shockwave-flash"])&&a.enabledPlugin)){N$=jM(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");M$=
!0;N$=jM(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");M$=!0;N$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),M$=!0,N$=jM(b.GetVariable("$version"))}catch(c){}})();
var zS=M$,JM=N$;if(mM&&mM.URL){var VL=mM.URL,gga=!(VL&&0<UL().length);eM.A=gga};var FM={},GM=null;FM.le=0;FM.nt=2;FM.Fr=3;var TN=0,AM=(new Date).getTime(),vM=-1,xM=!1,yM=-1,zM=-1;FM.Po=5;FM.me=1;FM.om=4;KM.prototype.getStatus=function(){return this.o};
B(NM,KM);var $M={LI:-1,LOADING:0,Ut:1,zt:2,du:3,VISIBLE:4},bN={LOADING:0,Ut:1,zt:2,CI:3,GH:4,II:5,JI:6,HI:7,IH:8,BI:9},cN={};h=QM.prototype;h.Qo=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};
h.Oo=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};
h.setPosition=function(a){this.module&&!pe(a,Vf(this.module))&&Tf(this.module,a)};
h.remove=function(){if(this.module)try{qf(this.module)}catch(a){}this.module=null};
h.Gw=function(a){this.A=a?3:4};
q("gteh",gM("osd_or_lidar::gteh_ex",function(a,b){var c=cN[a];ha(c)&&c(b)}),void 0);
var sN={du:0,VISIBLE:1},hga=new oe(-99999,0);hN.prototype.Y=function(){var a=jN(this);if(null===a)lN(this);else if(null===this.B)this.B=a,lN(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(lN(this),iN(this,0)):(this.o.setPosition(hga),this.G=W.setTimeout(hM("osd_or_lidar::sfm_cpto",A(this.U,this)),125))}};
hN.prototype.U=function(){var a=jN(this),b=a-this.B;this.B=a;a=4<=b?1:0;lN(this);iN(this,0==a?1:0)};
B(oN,KM);oN.prototype.K=function(){var a=rN(this);this.A!=a&&(this.A=a,this.H(a))};var xN=null;var zN=new qe(0,0,0,0);h=yN.prototype;h.update=function(a,b,c,d,e){if(0>this.H)return null;c||AN(this,d,e);return this.Rf(this.A,b,a,c,!1)};
h.Rf=function(a,b,c,d,e,f){var k=c-this.H||1,l=1E4;f=f||{};var m=f.duration;this.Ai()&&n(m)&&-1!=m&&(l=Math.max(l,m/3));k=k>l?1:k;l=f.volume;f=f.deltaTime;m=null;fa(b)?this.G=this.Vh(b):(m=b,this.G=this.Vh(a,m));a=FN(this.G);this.ij(a,k,this.S,e,d,m,l,f);this.S=d?-1:a;this.H=c;-1!=a&&(0>this.ac&&(this.ac=c),this.ke=c);-1==this.ne&&this.Me()&&(this.ne=c);this.Mb(this,m||zN);return this.G};
h.Vh=function(a,b){var c=null;if(fa(a))return a;c=new qe(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.ea||c.top>=c.bottom||c.left>=c.right)return 0;var d=c.clone(),e=-a.left,f=-a.top;e instanceof oe?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,fa(f)&&(d.top+=f,d.bottom+=f));c=(c.bottom-c.top)*(c.right-c.left);return c/this.ea};
h.hm=function(a,b){this.Ia[a]+=b};
h.fm=function(a,b){this.L[a]+=b;this.L[a]>this.Ta[a]&&(this.Ta[a]=this.L[a])};
h.Kl=function(a){this.L[a]=0};
h.ij=function(a,b,c,d,e,f,k,l){k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;l=l||0;-1!=c&&this.hm(c,b,l);f=f||null;d=-1!=c&&2>=c;f?(d&&-1!=this.aa&&(this.$a[this.aa]+=b),f=100*this.ea/((f.bottom-f.top)*(f.right-f.left)),this.aa=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):this.aa=-1;for(f=c;0<=f&&4>=f;f++)this.fm(f,b,l);for(f=0;f<this.L.length;++f)(f<a||e||-1==a)&&this.Kl(f)};
h.Ai=function(){return!1};
h.Me=function(){return!1};B(LN,yN);h=LN.prototype;
h.Rf=function(a,b,c,d,e,f){var k=c-this.H||1;if(!f){f={};if("as"==this.B){var l;l="getVideoMetadata"+this.K;if(ha(this.element[l]))try{f=this.element[l]()}catch(m){this.xc=!0}}if("h"==this.B&&(l=t("ima.common.getVideoMetadata"),ha(l)))try{f=l(this.C)}catch(m){this.xc=!0}l=f.currentTime;n(l)?f.currentTime=Math.floor(1E3*l):this.Cd=!0;l=f.duration;n(l)&&(f.duration=Math.floor(1E3*l));n(f.volume)||(f.volume=NN(this))}this.V=f.duration||this.V;f.duration=this.V;this.rb=f.isVpaid||this.rb;k=n(f.currentTime)?
f.currentTime:this.Z+k;k<this.Z&&(k=this.Z,this.Dd=!0);f.deltaTime=k-this.Z;LN.N.Rf.call(this,a,b,c,d,e,f);-1==this.La&&this.yc&&(this.La=this.Qa);this.Z=k;return this.G};
h.Vh=function(a,b){return this.Bd?0:this.M?1:LN.N.Vh.call(this,a,b)};
h.hm=function(a,b,c){LN.N.hm.call(this,a,b,c);this.Yb[a]+=c;2>=a&&(this.qa+=b,this.Da+=c)};
h.fm=function(a,b,c){LN.N.fm.call(this,a,b,c);this.ia[a]+=c;this.ia[a]>this.Nb[a]&&(this.Nb[a]=this.ia[a])};
h.Kl=function(a){LN.N.Kl.call(this,a);this.ia[a]=0};
h.ij=function(a,b,c,d,e,f,k,l){if(!this.ma){LN.N.ij.call(this,a,b,c,d,e,f,k,l);a=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?a:c;d=-1!=c&&2>=c;a=n(k)&&.1<=k&&.1<=this.Ga;this.Qa+=b;a?(this.bb+=b,0==c&&(this.U+=b),d||(this.fa+=b)):this.ab=!1;this.fa>this.ub&&(this.ub=this.fa);if(d||!n(k)||.1>k)this.fa=0;n(k)&&(Number(k)?(b=Math.pow(10,3),k=Math.round(k*b)/b):k=0);this.Ga=k}};
h.Ai=function(){return!0};
h.Me=function(){return 2E3<=Math.max(this.L[2],this.Ta[2])};var XN=null,ZN=null,$N=null,cO=null,uO=null,WN=!1,vO=[],xO=[],qO=!1,rO=null,kO=0,mO=!1,lO=!1,oO=!1,pO=!1,jO=ZK()||YK(),tO=0;var JO=null,cP="",ZO=!1;var MO=(new Date).getTime(),SO=!1,TO=!1,UO=!1,PO=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return LO(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 LO(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 LO(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 LO(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 LO(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return TO},
function(){return UO},
function(){return LO(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 LO(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]||KO(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 KO(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 LO(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 KO(a.CSS.supports)},
function(){return KO(window.Intl.Collator)},
function(a){return KO(a.document.createElement("dialog").show)},
function(){return LO(8)},
function(a){return KO(a.document.createElement("div").animate([{transform:"scale(1)",Lv:"ease-in"},{transform:"scale(1.3)",Lv:"ease-in"}],{duration:1300,vJ:1}).reverse)},
function(a){return KO(a.document.createElement("div").animate)},
function(a){return KO(a.document.documentElement.webkitRequestFullScreen)},
function(a){return KO(a.navigator.getBattery)},
function(a){return KO(a.navigator.permissions.query)},
function(){return KO((new window.AudioContext).createBuffer)},
function(){return LO(9)},
function(){return KO(window.webkitRequestAnimationFrame)},
function(a){return KO(a.BroadcastChannel.call)},
function(a){return KO(a.FontFace)},
function(a){return KO(a.Gamepad)},
function(){return LO(10)},
function(a){return KO(a.MutationEvent)},
function(a){return KO(a.MutationObserver)},
function(a){return KO(a.crypto.getRandomValues)},
function(a){return KO(a.document.body.createShadowRoot)},
function(a){return KO(a.document.body.webkitCreateShadowRoot)},
function(a){return KO(a.fetch)},
function(){return LO(11)},
function(a){return KO(a.navigator.serviceWorker.register)},
function(a){return KO(a.navigator.webkitGetGamepads)},
function(a){return KO(a.speechSynthesis.speak)},
function(a){return KO(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return LO(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 LO(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 LO(14)},
function(a){return"undefined"==typeof a.navigator.BJ},
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")}],QO=[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}],RO=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];var WO=!1,$O=!1,bP=!1,aP=!1,XO=!1,tP={start:function(a){a.ie++;PN(a,0);.1<=a.Ga&&(a.ab=!0);return QN(a,"start")},
firstquartile:function(a){PN(a,1);gO([a],!SN());return QN(a,"firstquartile")},
midpoint:function(a){PN(a,2);a.yc=!0;gO([a],!SN());return QN(a,"midpoint")},
thirdquartile:function(a){PN(a,3);gO([a],!SN());return QN(a,"thirdquartile")},
complete:function(a){PN(a,4);gO([a],!SN());var b=QN(a,"complete");a.M=!1;fP(a.C);return b},
pause:function(a){return dP(a,"pause")},
resume:function(a){var b=SN();a.ma&&!b&&(a.ha=wM());gO([a],!b);a.ma=!1;return QN(a,"resume")},
skip:function(a){var b=!SN();gO([a],b);b=QN(a,"skip");a.M=!1;fP(a.C);return b},
viewable_impression:function(a){var b=QN(a,"viewable_impression");a.re=!0;return b},
mute:function(a){gO([a],!SN());return QN(a,"mute")},
unmute:function(a){gO([a],!SN());return QN(a,"unmute")},
fullscreen:function(a){a.M=!0;gO([a],!SN());return QN(a,"fullscreen")},
exitfullscreen:function(a){a.M=!1;gO([a],!SN());return QN(a,"exitfullscreen")},
fully_viewable_audible_half_duration_impression:function(a){return QN(a,"fully_viewable_audible_half_duration_impression")},
measurable_impression:function(a){return QN(a,"measurable_impression")},
abandon:function(a){return dP(a,"abandon")},
engagedview:function(a){return QN(a,"engagedview")},
impression:function(a){return QN(a,"impression")},
creativeview:function(a){return QN(a,"creativeview")}};q("Goog_AdSense_Lidar_sendVastMessage",dM("lidar::handlevast_ex",wP),void 0);q("Goog_AdSense_Lidar_sendVastEvent",dM("lidar::handlevastevent_ex",vP),void 0);q("Goog_AdSense_Lidar_getInitSignals",dM("lidar::getinitsignals_ex",uP),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",gM("lidar::geturlsignalsarray_ex",function(){return HO()}),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsList",gM("lidar::geturlsignalslist_ex",function(){return de(HO())}),void 0);B(yP,H);var AP=null;yP.prototype.destroy=function(){this.D.za(this.o,"activityMonitor",this.H);this.B=null;this.A=!1};
yP.prototype.init=function(a){if(!this.A){if(this.o=a||null)this.D.P(this.o,"activityMonitor",this.H),IP(this);if(oK.C&&!(r.ima&&r.ima.video&&r.ima.video.client&&r.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);var b=r.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}};
yP.prototype.H=function(a){var b=a.nd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.kc){case "getPageSignals":IP(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);var k=null;Zb(b,"isFullscreen")&&(k=b.isFullscreen);d.viewabilityData=FP(this,e,c,a,f);d.engagementString=JP(this,a,k);this.o.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,k=null,Zb(b,
"isFullscreen")&&(k=b.isFullscreen),c.engagementString=JP(this,a,k),this.o.send("activityMonitor","engagement",c)}};
q("ima.common.getVideoMetadata",BP,void 0);q("ima.common.sdkVolume",function(a){a=BP(a).volume;return null!=a?a:-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=zP().o;d?d.send("activityMonitor","viewableImpression",c):zP().$(new gK("viewable_impression",null,c))},void 0);
q("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=zP().o;d?d.send("activityMonitor","measurableImpression",c):zP().$(new gK("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=zP().o)?a.send("activityMonitor","externalActivityEvent",d):zP().$(new gK("externalActivityEvent",null,d))},void 0);B(PP,H);h=PP.prototype;h.eB=function(a){this.J=!0;this.A=a.touches.length;this.B&&(window.clearTimeout(this.B),this.B=0,this.M=!0);(this.H=VP(this,a.touches)||1!=a.touches.length)?this.O=this.S=window.Infinity:(this.S=a.touches[0].clientX,this.O=a.touches[0].clientY);UP(this,a.touches)};
h.dB=function(a){this.A=a.touches.length;if(!dL()||!eL(gQ,8)||Math.pow(a.changedTouches[0].clientX-this.S,2)+Math.pow(a.changedTouches[0].clientY-this.O,2)>Math.pow(5,2))this.F=!0};
h.cB=function(a){this.L?this.mk():(!this.J||1!=this.A||this.F||this.M||this.H||!VP(this,a.changedTouches)||(this.B=window.setTimeout(A(this.mk,this),300)),this.A=a.touches.length,0==this.A&&(this.F=this.J=!1,this.C=[]),this.M=!1)};
h.so=function(){this.mk()};
h.mk=function(){this.B=0;this.$(new kc("click"))};
h.T=function(){SP(this);this.D.dispose();this.D=null;PP.N.T.call(this)};B(bQ,H);var qaa={rG:"beginFullscreen",CLICK:"click",END:"end",PG:"endFullscreen",ERROR:"error",LOADED:"loaded",wH:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",SKIP:"skip",Hu:"skipShown",SG:"video_extend_clicked",Ot:"video_extend_shown",gt:"video_extend_auto_skipped",START:"start",yI:"timeUpdate",xG:"cardsStateChange",xI:"timedMetadata",$I:"volumeChange",hI:"showCompanionAdLoaded"};h=bQ.prototype;h.yo=function(){return!1};
h.Nl=w;h.Co=w;h.Ok=w;h.ef=function(){return null};
h.Do=w;h.Ao=w;B(cQ,bQ);h=cQ.prototype;h.Bq=function(a,b,c,d){if(d&&(d=eb(a,function(a){return!ca(WP(a.A))}),null!==d))return d;
a=$d(a,function(a){var b=a.o;C(D(a.A))||"progressive"!=a.C&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||lL&&eL(mL,2.3)&&Ha(b,"application/ogg")?!1:lL&&(Ha(b,"video/mp4")||Ha(b,"video/3gpp"))||dL()&&(Ha(b,"application/x-mpegurl")||Ha(b,"application/vnd.apple.mpegurl"))?!0:!C(this.o.canPlayType(b)));return a},this);
return KP(a,b,c)};
h.yk=function(){return $d(Wb(ZY),function(a){return!C(this.o.canPlayType(a))},this)};
h.Rl=function(a){this.U=0<a.o?a.o:15E3};
h.load=function(a){dQ(this);this.o.src=a;this.o.load()};
h.getVideoUrl=function(){return this.o.src};
h.setVolume=function(a){this.o.volume=a};
h.md=function(){return this.o.volume};
h.play=function(){this.S=!1;Sd(this.o.play,0,this.o);this.J||(this.J=Sd(this.uv,this.U,this))};
h.pause=function(){this.S=!0;this.o.pause()};
h.rf=function(){return this.o.paused?dL()||Fl?this.o.currentTime<this.o.duration:!0:!1};
h.qf=function(){return this.o.muted};
h.pk=function(){aL()&&this.o.webkitDisplayingFullscreen&&this.o.webkitExitFullscreen()};
h.Od=function(){return CP(this.o)};
h.sg=function(a){var b;a:{for(b=this.V.Ka();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.sf=function(a){this.o.currentTime=a};
h.getCurrentTime=function(){return this.o.currentTime};
h.zo=function(){return hQ(this)};
h.Nd=function(){return(0,window.isNaN)(this.o.duration)?-1:this.o.duration};
h.Je=function(){return this.o.ended};
h.Uc=function(){return new re(this.o.offsetWidth,this.o.offsetHeight)};
h.Bo=function(){return this.o.seeking};
h.T=function(){this.tf();this.o=null;cQ.N.T.call(this)};
h.getError=function(){return this.o.error};
h.yi=function(){this.tf();this.A=new Cm(this);this.A.P(this.o,L$,this.mA);this.A.P(this.o,"canplay",this.Gy);this.A.P(this.o,"ended",this.bx);this.A.P(this.o,"webkitbeginfullscreen",this.Pk);this.A.P(this.o,"webkitendfullscreen",this.Fo);this.A.P(this.o,"pause",this.fx);this.A.P(this.o,"playing",this.wA);this.A.P(this.o,"timeupdate",this.gx);this.A.P(this.o,"volumechange",this.hx);this.A.P(this.o,"error",this.Eo);this.A.P(this.o,CG||dL()&&(!dL()||!eL(gQ,8))?"loadeddata":"canplay",this.Oz);this.F=
new PP;this.A.P(this.F,"click",this.ax);QP(this.F,this.o);this.G=new Qd(1E3);this.A.P(this.G,"tick",this.cx);this.G.start()};
h.tf=function(){null!=this.F&&(SP(this.F),this.F=null);null!=this.G&&this.G.dispose();null!=this.A&&(this.A.dispose(),this.A=null);dQ(this)};
h.mA=function(a){this.$(a.type)};
h.Gy=function(){var a;if(a=Ft)a=pc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.O&&(this.sf(.001),this.O=!0)};
h.Oz=function(){this.L||(this.L=!0,this.$("loaded"))};
h.wA=function(){this.$("play");dL()||CG||fQ(this)};
h.gx=function(){if(!this.C&&(dL()||CG)){if(0>=this.getCurrentTime())return;if(CG&&this.Je()&&1==this.Nd()){this.Eo();return}fQ(this)}if(dL()||iL()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.sf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}var a=this.V;a.o[a.A]=this.o.currentTime;a.A=(a.A+1)%a.B;this.$("timeUpdate")};
h.hx=function(){this.$("volumeChange")};
h.fx=function(){var a;this.C&&dL()&&!this.S&&2>hQ(this)-this.o.currentTime?(this.D=new Qd(250),this.A.P(this.D,"tick",this.Cy),this.D.start(),a=!0):a=!1;a||this.$("pause")};
h.bx=function(){var a=AK(wK(),136961002),b=!0;if(dL()||iL()||a&&lL)b=this.B>=this.o.duration-1.5;!this.H&&b&&this.$("end")};
h.Pk=function(){this.$("beginFullscreen")};
h.Fo=function(){this.$("endFullscreen")};
h.Eo=function(){eQ(this);this.$("error")};
h.ax=function(){this.$("click")};
h.cx=function(){var a=this.Uc(),b=this.Od();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.Pk():this.K&&!b&&this.Fo(),this.M=a,this.K=b};
h.uv=function(){if(!this.C){try{oL(nL.getInstance(),16)}catch(a){}dQ(this);this.$("mediaLoadTimeout")}};
h.Cy=function(){if(this.Je()||!this.rf())Nb(this.D);else{var a=this.o.duration-this.o.currentTime,b=hQ(this)-this.o.currentTime;0<b&&(2<=b||2>a)&&(Nb(this.D),this.play())}};B(iQ,H);jQ.prototype.start=function(a){return this.o[a].startTime};
jQ.prototype.end=function(a){return this.o[a].endTime};
h=iQ.prototype;h.readyState=0;h.currentTime=0;h.duration=window.NaN;h.vf=!0;h.Ko=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.nx=1;h.playbackRate=0;h.sd=null;h.Ci=0;h.MB=4;h.mg=null;h.bj=null;
h.play=function(){this.Ko&&(this.currentTime=0,this.$("timeupdate"));this.vf&&(this.vf=!1,this.$("play"),this.readyState=this.MB,2>=this.readyState?this.$("waiting"):this.$("playing"));if(null===this.sd||this.sd.isDisposed())this.sd=new Qd(10),this.sd.P("tick",A(this.Uq,this));this.Ci=I();this.sd.start();this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.vf||(this.sd.stop(),this.vf=!0,this.$("timeupdate"),this.$("pause"))};
h.load=function(){this.readyState=0;this.vf=!0;this.$("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.A;a.o.push(new lQ(this.duration));a.length=a.o.length;this.$("loadedmetadata");0<this.currentTime&&this.$("timeupdate");this.$("loadeddata");this.$("canplay");this.$("canplaythrough");this.$("progress");this.playbackRate=this.nx};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.$("seeking");this.currentTime=c;this.$("seeked");this.Uq();break;case "duration":this.duration=Number(b);this.$("durationchange");break;case "volume":this.volume=Number(b),this.$("volumechange")}};
h.Uq=function(){var a=I()-this.Ci,b=this.currentTime+a/1E3;this.Ci+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.$("timeupdate");this.currentTime==this.duration&&(this.Ko=this.vf=!0,this.sd.stop(),this.$("ended"))};
h.T=function(){this.sd&&this.sd.dispose();this.o.dispose()};
h.sB=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.bj&&(this.bj.innerText=b);c&&this.mg&&(this.mg.style.backgroundColor=c)};wc&&zc(8);var sQ={},aR={},bR={},tQ={};nQ.prototype.ed=null;nQ.prototype.getContent=function(){return this.content};
nQ.prototype.toString=function(){return this.content};
B(oQ,nQ);var qQ={};B(wQ,nQ);wQ.prototype.Qc=sQ;B(yQ,nQ);yQ.prototype.Qc={};yQ.prototype.ed=1;B(zQ,nQ);zQ.prototype.Qc=aR;zQ.prototype.ed=1;B(AQ,nQ);AQ.prototype.Qc=bR;AQ.prototype.ed=1;B(BQ,nQ);BQ.prototype.Qc={};BQ.prototype.ed=1;B(CQ,nQ);CQ.prototype.Qc={};CQ.prototype.ed=1;B(DQ,oQ);DQ.prototype.Qc=tQ;var xQ=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.ed=d);return e}}(wQ);
EQ(yQ);EQ(zQ);EQ(AQ);var baa=EQ(BQ);EQ(CQ);var GQ={},HQ={},pR=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.ed=d);return e}}(wQ),WQ=/['()]/g,eR={},caa={"\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;"},daa={"\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"},PQ=/[\x00\x22\x27\x3c\x3e]/g,TQ=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,SQ=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,YQ=/[\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,
cR=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,wda=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,MQ=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,NQ=/</g;FQ("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.Bf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+X(a.Bf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
KQ(dR(a.Oc))+">"+X(a.Oc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+KQ(dR(a.te))+">"+X(a.te)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
FQ("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.yJ)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+X(a.AJ)+'</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"'+KQ(dR(a.Oc))+">"+X(a.Oc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
KQ(dR(a.te))+">"+X(a.te)+'</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>'});
FQ("b","",function(a){a=a||{};var b="";a=ra("You can skip this ad in {$xSeconds}",{xSeconds:X(a.Uf)});return b+a});
FQ("b","redesign2014q4",function(a){a=a||{};var b="";a=ra("You can skip to video in {$xSeconds}",{xSeconds:X(a.Uf)});return b+a});B(qR,F);qR.prototype.initialize=function(){$K()&&this.A.load()};
qR.prototype.T=function(){qf(this.o);qR.N.T.call(this)};
qR.prototype.show=function(){var a=this.o;null!=a&&(a.style.display="block")};
qR.prototype.ga=function(){var a=this.o;null!=a&&(a.style.display="none")};B(sR,bQ);var iga=["video/mp4","video/webm"],jga={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},uR=[],tR=!1;h=sR.prototype;h.Bq=function(a,b,c){var d=eb(a,function(a){return!ca(WP(a.A))});
if(null!==d)return d;a=$d(a,function(a){a=D(a.o);return this.o?this.A.canPlayType(a):jb(iga,a)},this);
lb(c)||(d=KP(a,b,c));return null!=d?d:KP(a,b,[])};
h.Rl=function(a){this.B=a};
h.load=function(a,b){null!==a&&(this.U=a,this.o?vR(this,a,b):(this.L=a,this.Y=b))};
h.getVideoUrl=function(){return this.U};
h.setVolume=function(a){this.da?this.$("volumeChange"):this.o?(a=ke(100*a,0,100),this.A.setVolume(a),this.G=-1,this.$("volumeChange")):this.G=a};
h.md=function(){return this.o?this.A.getVolume()/100:this.G};
h.play=function(){if(!C(D(this.U))){if(!this.C){xR(this);var a=15E3;null!=this.B&&0<this.B.o&&(a=this.B.o);this.va=Sd(this.nA,a,this)}this.o?(this.Z=!1,!this.C&&this.B&&this.B.A?this.A.loadVideoByPlayerVars(this.ma):this.A.playVideo()):this.Z=!0}};
h.pause=function(){this.o&&this.C&&this.A.pauseVideo()};
h.rf=function(){return this.o?2==this.A.getPlayerState(this.D):!1};
h.qf=function(){return this.o?this.A.isMuted():0==this.md()};
h.pk=function(){};
h.Od=function(){var a=oK.o?oK.B:window.document.getElementById(this.S);return a?CP(a):!1};
h.sg=function(a){return this.o?this.A.getCurrentTime(this.D)>=a:!1};
h.sf=function(a){this.o?this.A.seekTo(a,!1):this.K=a};
h.getCurrentTime=function(){return this.o?this.A.getCurrentTime(this.D):-1};
h.zo=function(){return this.o&&this.C?this.A.getVideoLoadedFraction(this.D)*this.A.getDuration(this.D):0};
h.Nd=function(){return this.o&&this.C?this.A.getDuration(this.D):-1};
h.getError=function(){return null};
h.yk=function(){return Wb(ZY)};
h.Je=function(){return this.o?0==this.A.getPlayerState(this.D):!1};
h.Uc=function(){var a=oK.o?oK.B:window.document.getElementById(this.S);return a?new re(a.offsetWidth,a.offsetHeight):new re(0,0)};
h.Bo=function(){return!1};
h.yo=function(){return 1==this.qa};
h.mx=function(){var a=this.Uc(),b=this.Od();if(a.width!=this.fa.width||a.height!=this.fa.height)!this.ea&&b?this.$("beginFullscreen"):this.ea&&!b&&this.$("endFullscreen"),this.fa=a,this.ea=b};
h.yi=function(){this.aa=A(this.Jp,this);this.M=A(this.Qk,this);this.na=A(this.Kp,this);this.ha=A(this.kq,this);this.da&&(this.A.addEventListener("onAdStateChange",this.M),this.A.addEventListener("onReady",this.aa),this.A.addEventListener("onStateChange",this.M),this.A.addEventListener("onVolumeChange",this.na),this.A.addEventListener("showCompanionAdLoaded",this.ha));this.V=new Qd(1E3);this.O.P(this.V,"tick",this.mx);this.V.start()};
h.tf=function(){this.da&&(this.A.removeEventListener("onAdStateChange",this.M),this.A.removeEventListener("onReady",this.aa),this.A.removeEventListener("onStateChange",this.M),this.A.removeEventListener("onVolumeChange",this.na),this.A.removeEventListener("showCompanionAdLoaded",this.ha));null!=this.V&&this.V.dispose()};
h.Ev=function(){var a=this.S,b={playerVars:fc(jga),events:{cardstatechange:A(this.lx,this),onError:A(this.tA,this),onReady:A(this.Jp,this),onAdStateChange:A(this.Qk,this),onStateChange:A(this.Qk,this),onVolumeChange:A(this.Kp,this),showCompanionAdLoaded:A(this.kq,this)}},c=t("YT");this.A=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.tA=function(){this.$("error")};
h.Jp=function(){this.o=!0;this.H&&this.Ok(this.H.videoId,this.H.ve,this.H.Qf,this.H.Wh);-1!=this.G&&(this.setVolume(this.G),this.G=-1);null!=this.L&&(vR(this,this.L,this.Y),this.Y=this.L=null);-1!=this.K&&(this.sf(this.K),this.K=-1);this.Z&&this.play()};
h.lx=function(a){this.qa=a.data;this.$("cardsStateChange")};
h.Qk=function(a){switch(a.data){case 0:this.C?this.$("end"):this.$("error");break;case 1:this.C||(xR(this),this.C=!0,this.J=0,this.$("start"));this.$("play");wR(this);this.F=new Qd(100);this.O.P(this.F,"tick",this.vp);this.F.start();break;case 2:this.$("pause"),wR(this)}};
h.Kp=function(){this.$("volumeChange")};
h.kq=function(){this.$("showCompanionAdLoaded")};
h.vp=function(){if(BG||iL()){if(1.5<this.getCurrentTime()-this.J){this.o&&this.A.seekTo(this.J,!0);return}this.getCurrentTime()>this.J&&(this.J=this.getCurrentTime())}this.$("timeUpdate")};
h.nA=function(){this.$("mediaLoadTimeout")};
h.Ok=function(a,b,c,d){if(b||c)this.o?this.A.addInfoCardXml(a,b,c,d):this.H={videoId:a,ve:b,Qf:c,Wh:d}};
h.ef=function(){if(!this.o)return null;var a=this.A.getVideoData();return a?a.cpn:null};
h.Nl=function(a){this.o&&WP(this.getVideoUrl())&&this.A.sendVideoStatsEngageEvent(a)};
h.Co=function(a){this.o&&this.A.setCardsVisible(a)};
h.Do=function(){this.o&&this.A.showControls()};
h.Ao=function(){this.o&&this.A.hideControls()};
h.T=function(){wR(this);xR(this);this.tf();this.o=!1;this.O.dispose();this.K=-1;this.Y=null;this.Z=!1;this.L=null;this.G=-1;this.aa=this.A=this.B=null;this.C=!1;this.U="";sR.N.T.call(this)};
q("onYouTubeIframeAPIReady",function(){tR=!0;E(uR,function(a){a()});
nb(uR)},window);B(yR,H);yR.prototype.A=!1;yR.prototype.connect=function(){for(this.A=!0;!lb(this.B);){var a=this.B.shift();this.sendMessage(a.name,a.type,a.data)}};
yR.prototype.send=function(a,b,c){this.A?this.sendMessage(a,b,c):this.B.push({name:a,type:b,data:c})};
B(zR,kc);zR.prototype.getOrigin=function(){return this.C};
zR.prototype.toString=function(){return""};B(AR,yR);AR.prototype.sendMessage=function(a,b,c){null!=this.Kc&&null!=this.Kc.postMessage&&this.Kc.postMessage(oaa(this,a,b,c),"*");null!=this.Kc&&null==this.Kc.postMessage&&oL(nL.getInstance(),11)};
AR.prototype.T=function(){this.D.dispose();AR.N.T.call(this)};
AR.prototype.receive=function(a){a=a.o;var b=BR(a.data);if(CR(this,b)){if(null==this.Kc)this.Kc=a.source,this.A||this.connect();else if(this.Kc!=a.source)return;CR(this,b)&&this.$(new zR(b.name,b.type,b.data||{},b.sid,a.origin))}};B(DR,H);DR.prototype.send=function(a){var b=a.B;this.o.hasOwnProperty(b)&&this.o[b].send(a.type,a.kc,a.nd)};
DR.prototype.T=function(){this.A.dispose();for(var a in this.o)Nb(this.o[a]);DR.N.T.call(this)};
DR.prototype.D=function(a){a=a.o;var b=BR(a.data);if(null!=b){var c=b.channel;if(this.B&&!this.o.hasOwnProperty(c)){var d=b.sid;ER(this,c,d,a.source);this.$(new FR(b.name,b.type,b.data||{},d,a.origin,c))}}};
B(FR,zR);B(GR,Cm);
GR.prototype.F=function(a){var b=a.getOrigin(),c=Ig("//imasdk.googleapis.com"),b=Ig(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.o)ER(this.o,a.B,a.ro,ff().parent),null!=this.o&&this.o.send(a);else if(c=a.nd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.kc,"isGptPresent"==c?d=HR():"isConsolePresent"==c&&(d=null!=IR());else if(HR())if("pubads"==b||"companionAds"==b){d=a.kc;var e,f=ff().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(k){}d=e}else if("console"==
b){if(f=a.kc,e=IR(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){d=a.kc;e=ff();if(jb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],d)&&(b=e[d],"googleSetCompanionAdContents"==d&&oL(nL.getInstance(),40,{type:"gptProxy"},!0),null!=b))try{f=b.apply(e,c)}catch(k){}d=f}n(d)&&(a.nd.returnValue=d,this.B.send(a))}};
GR.prototype.D=function(a){this.B.send(a)};JR.prototype.isPharma=function(){return this.J};var KR={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Qa(" ",c-a.length):Qa(" ",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 f;f=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if((0,window.isNaN)(c)||d.length>=c)return d;d=(0,window.isNaN)(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Qa(" ",a):f+Qa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return KR.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
KR.i=KR.d;KR.u=KR.d;B(LR,H);h=LR.prototype;h.T=function(){this.C.dispose();null!==this.B&&(this.B.dispose(),this.B=null);ug(this.F.Sb(!1),function(a){a.dispose()});
this.F.clear();qf(this.A);LR.N.T.call(this)};
h.tw=function(a){var b=a.nd,c=$f(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.kc,!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(!Ft||dL()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
h.Hw=function(a){var b=a.nd,c=$f(this.A),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.kc,!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,MR(this,b.touches),MR(this,b.targetTouches),MR(this,b.changedTouches),b.scale,b.rotation);this.A.dispatchEvent(d)};
h.Ew=function(a){if(null!=this.o){var b=a.nd;switch(a.kc){case "startTracking":this.o.yi();break;case "stopTracking":this.o.tf();break;case "exitFullscreen":this.o.pk();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.sf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.o.Rl(new JR(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma))}}};
h.rB=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.Je();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.Nd();break;case "volumeChange":a="volumeChange";b.volume=this.o.md();break;default:return}this.D.send("videoDisplay",a,b)};
h.pw=function(a){switch(a.kc){case "showVideo":null!=this.B?SP(this.B):(this.B=new PP,this.C.P(this.B,"click",this.oB));QP(this.B,OR(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.ga()}};
h.oB=function(){this.D.send("displayContainer","videoClick")};
h.aw=function(){ug(this.F.Sb(!1),function(a){a.Kc=zf(this.A);a.connect()},this);
this.H=!0};NR.prototype.initialize=function(){null!=this.o&&this.o.initialize()};
NR.prototype.destroy=function(){Nb(this.o);Nb(this.G);Nb(this.F);qf(this.A)};
NR.prototype.ga=function(){null!=this.o&&this.o.ga()};
NR.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 QR="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");B(RR,H);B(SR,RR);SR.prototype.start=function(){this.ya.start()};
SR.prototype.stop=function(){this.ya.stop()};
SR.prototype.T=function(){SR.N.T.call(this);this.A.dispose();this.ya.dispose()};
SR.prototype.B=function(){if("currentTime"in this.o&&!(0,window.isNaN)(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.$(new kc("currentTimeUpdate"))}else this.$(new kc("contentWrapperError")),this.stop()};TR.prototype.reset=function(){this.o=0;this.A=null};UR.prototype.reset=function(){this.A=this.o=null};var iS=new VR;VR.prototype.clear=function(){this.o=WR();this.C=this.H=this.D=null;this.B=WR();this.A=null;this.V=this.K=this.L="";this.G=this.O=this.F=null};B(YR,H);YR.prototype.A=null;YR.prototype.T=function(){delete this.o;$R(this);$c(this.A);YR.N.T.call(this)};
YR.prototype.D=function(){ZR(this)&&($R(this),$c(this.A),this.A=null,this.B=!0,this.$("ifload"))};B(aS,H);B(bS,kc);bS.prototype.getError=function(){return this.C};cS.prototype.getContent=function(){return this.D};
cS.prototype.clone=function(){var a=new cS(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(eS,aS);aa(eS);h=eS.prototype;h.T=function(){this.A&&this.A.dispose();eS.N.T.call(this)};
h.initialize=function(){if(!this.C){var a;var b=If(new Ve);try{t("googletag"),fS([b,b.top]),a=!0}catch(c){a=!1}a?oS(this):(this.C=!0,this.B="not_available")}};
h.setVideoContent=function(a,b){var c=mS(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
h.Mp=function(){0<this.F&&I()>=this.F?(this.C=!0,nS(this),pS(this)):oS(this)};
h.fC=function(a){var b=O(a.adSizes,function(a){return new re(a.adWidth,a.adHeight)});
return new cS(a.slotId,b)};
h.bv=function(a){var b={};b.slotId=a.G;b.adContent=a.getContent();b.adWidth=a.B;b.adHeight=a.A;b.friendlyIframeRendering=a.o;AK(wK(),9419278)&&(b.onAdContentSet=A(this.Zy,this,a));return b};
h.Zy=function(a,b){var c;if(a.o)c=b.querySelector("iframe");else{var d=uf(b);d&&(c=uf(d))}if(c&&"IFRAME"==c.tagName)if(d=new YR(c,!0),d.B)qS(this,a,c);else{var e=c;Yc(d,"ifload",function(){qS(this,a,e)},!1,this)}};
h.Yy=function(a){this.$(new bS("companion_click",null,a))};
h.sendImpressionUrls=function(a){RK(this.impressionUrls,a)};B(rS,kc);rS.prototype.getError=function(){return this.B};B(sS,kc);var uaa={IMAGE:"Image",St:"Flash",ALL:"All"},taa={HTML:"Html",IFRAME:"IFrame",STATIC:"Static",ALL:"All"},vaa={hH:"IgnoreSize",dI:"SelectExactMatch",eI:"SelectNearMatch"},waa={MG:"DisallowResize",$H:"ResizeSmaller"};B(FS,N);FS.prototype.toString=function(){return HS(this,FS.N.toString.call(this))};
FS.prototype.co=function(){return""};
FS.prototype.De=function(){return""};
FS.prototype.clone=function(){return new FS(this.toString())};var Gaa=["ai","sigh"];bT.prototype.getType=function(){return this.B};
B(cT,bT);aT.prototype.isEmpty=function(){return this.o.isEmpty()};B(mT,kT);nT.prototype.parse=function(a){a=uf(a);var b=RS(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw TK(aga);a=a.getAttribute("offset");a=jT(a);if("skippable"==c&&null==a)throw TK($fa);return new mT(c,a)};B(oT,kT);B(pT,kT);B(qT,kT);h=rT.prototype;h.Jf=function(a){this.aa=a};
h.Vk=function(){return this.aa};
h.Wk=function(){return null};
h.getAd=function(){return this.S};
h.fi=function(){for(var a=[this],b=this.S.o;b;){var c=uT(this,b)||uT(this,b,!0);null!=c&&a.push(c);b=b.o}return a};B(vT,rT);h=vT.prototype;h.getContent=function(){return Bf(this.Jd())};
h.Hg=function(){return!1};
h.Xk=function(){return this.Hg()?Bf(this.Jd(!0)):""};
h.getContentType=function(){return this.fa};
h.Tb=function(){return this.na};
h.getWidth=function(){return this.Tb().width};
h.getHeight=function(){return this.Tb().height};
h.Wk=function(){return"VPAID"==this.H?this.C:null};
h.Vc=function(){return this.O};xT.prototype.getWidth=function(){return this.F};
xT.prototype.getHeight=function(){return this.D};B(yT,rT);yT.prototype.Vk=function(){return this.aa};
yT.prototype.Vc=function(){return this.B};
yT.prototype.getMediaUrl=function(a){var b="";Ih(this.K,function(c){var d=c.A;return!C(D(a))&&a!=c.o||null==d||C(D(d))?!1:(b=d,!0)},this);
return b};
yT.prototype.Wk=function(){return Laa(this)};B(AT,F);AT.prototype.G=function(){this.D=I()};
AT.prototype.J=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.A&1&&c.push("nm="+this.F);this.A&2&&c.push("nb="+this.C.get(b));if(this.A&8){var d=$f(this.B);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.A&16&&null!=this.D&&c.push("clkt="+(I()-this.D));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
AT.prototype.H=function(){this.F++};
AT.prototype.T=function(){AT.N.T.call(this);this.o.dispose()};var Naa=wc?'javascript:""':"about:blank";B(BT,vT);BT.prototype.F=function(a){null==this.B||C(D(this.Vc()))||(this.B.P(a,"click",this.M),this.Z.push(a))};
BT.prototype.Jd=function(a){a?(null==this.Y&&(this.Y=this.xe(a),nf(this.Y,GT(this))),a=this.Y):(null==this.A&&(this.A=this.xe(),nf(this.A,GT(this))),a=this.A);null!=this.B&&this.B.P(a,"creativeview",this.U);return a};
BT.prototype.Xn=function(){return 2};
BT.prototype.fi=function(){var a=[this],b;for(b=this.getAd().o;b;){var c=this.D?uT(this,b)||uT(this,b,!0):HT(this,b)||HT(this,b,!0);null!=c&&a.push(c);b=b.o}return a};h=IT.prototype;h.getContentType=function(){var a=this.A,b="";if(null===a)return b;if(a instanceof yT)a=a.ha,null===a||(b=D(a.o));else if(a instanceof BT)switch(a.da){case "IFrame":case "Html":case "Static":b=D(a.Da)}return b};
h.getExtension=function(a){return this.J.get(a)};
h.Fx=function(){return this.S};
h.getWidth=function(){return MT(this)?0:this.U.width};
h.getHeight=function(){return MT(this)?0:this.U.height};
h.toString=function(){return"Ad: "+this.da};B(GU,H);GU.prototype.zn=function(){return!0};
GU.prototype.Ce=function(){return null};B(IU,GU);h=IU.prototype;h.T=function(){this.destroy();IU.N.T.call(this)};
h.destroy=function(){null!=this.D&&this.D.dispose();this.C=null;E(this.B,function(a){dS(a)},this);
this.A=null};
h.zn=function(){return this.F};
h.MA=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.o){var a=gS(this.o);null!=a&&(this.B=a)}this.H=!0;null!=this.C&&KU(this);this.$(new kc("initialized"))};
h.$y=function(a){NU(this,a.getError())};
h.Vy=function(a){if(null!=a.B){var b=a.B;"companion_slot_init"==a.type?jd(function(){null!=this.A&&this.A.$(new sS("companion_impression"))},this):"companion_click"==a.type&&(aba(b.C),null!=this.A&&this.A.$(new sS("companion_click")))}};
h.Ce=function(){return this.o};h=OU.prototype;h.sk=function(){return OR(this.o)};
h.hi=function(){return this.o.B};
h.Ee=function(){return this.o.B};
h.si=function(){var a=this.o.F;return null!=a?a:new sR};
h.Fg=function(){var a=this.o;null!=a.o&&a.o.show()};
h.Pe=function(){};
h.kk=function(){return null!=this.o.C};
h.Kk=function(){return this.o.D};
h.Lk=function(){return!1};
h.ti=function(){return this.o.H};
h.setSize=function(a,b){this.o.setSize(a,b)};
h.ga=function(){};B(PU,kc);B(RU,kc);aa(SU);var hba=/iu\=\/(\d+)\//;SU.prototype.start=function(a){this.A&&this.B.set(a,I())};
SU.prototype.end=function(a,b){if(this.A&&xg(this.B,a)){var c=I()-this.B.get(a),d=TU(this,a,c,b);OK(d);this.B.remove(a);this.C+=c}};
SU.prototype.sendMessage=function(a,b,c){this.A&&(a=TU(this,a,b,c),OK(a))};UU.prototype.start=function(a,b){this.D=a;this.G=b;jba(this);this.F.H?this.J():Im(this.A,this.F,"initialized",this.J,this)};
UU.prototype.J=function(){var a=this.F.Ce(),b;b=a.C?"retrieved"!=a.B?void 0:a.G:void 0;a=raa(a);null!=b&&(this.C.B=b);null!=a&&(this.C.G=a);iba(this)};B(WU,H);var YU=null;WU.prototype.destroy=function(){this.F.za(this.A,"activityMonitor",this.H);this.A=null};
WU.prototype.H=function(a){var b=a.nd,c=b.engagementString;switch(a.kc){case "appStateChanged":xP(b.appState,b.nativeTime);break;case "externalActivityEvent":aV(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":ZU(b.queryId,b.viewabilityString);break;case "pageSignals":this.G=b.pageSignals;break;case "viewableImpression":$U(b.queryId,b.viewabilityString);break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.o.get(a);d&&(this.o.remove(a),d(b.viewabilityData,
c));break;case "engagement":if(a=b.eventId,window.clearTimeout(a),d=this.o.get(a))this.o.remove(a),d(c)}};
q("ima.bridge.getNativeViewability",function(a,b){XU();b({})},void 0);
q("ima.bridge.triggerViewEvent",$U,void 0);q("ima.bridge.triggerMeasurableEvent",ZU,void 0);q("ima.bridge.triggerExternalActivityEvent",aV,void 0);B(dV,nba);B(gV,bV);gV.prototype.B=function(){return new cV(this.o,null,pba(this))};B(lV,kT);lV.prototype.isPharma=function(){return this.G};mV.prototype.parse=function(a){var b;SS(a,"config",function(a){null!=b||(b=sba(this,a))},this);
return b};nV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,p=!1;E(sf(a),function(a){switch(a.nodeName){case "AttributionText":c=RS(a);break;case "AttributionUrl":d=RS(a);break;case "ConversionUrl":f=RS(a);break;case "CustomTracking":null!=sf(a)&&(e=hT(a));break;case "is_pharma":a=QS(a,"bool");p=VS(D(a));break;case "CheckedEvents":a=sf(a);b=O(a,function(a){return QS(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":RS(a);break;case "VisibleUrl":k=RS(a);break;case "UI":l=(new mV).parse(a);break;case "ShowYouTubeAnnotations":var v=RS(a);m=VS(D(v),!1);case "QueryId":RS(a)}},this);
null!=l||(l=new kV);return new lV(c,d,f,0,k,l,m,0,p,e,b)};oV.prototype.parse=function(a){if(null==a)return null;var b;E(sf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=sf(a)&&(b=hT(a))}});
a=null;null!=b&&0<eT(b,"skip").length&&(a="Generic");return new oT(a,b)};pV.prototype.parse=function(a){if(null==a)return null;var b,c;E(sf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=RS(a);break;case "CustomTracking":null!=sf(a)&&(c=hT(a))}});
return new oT(b,c)};qV.prototype.parse=function(a){if(null==a)return null;var b;E(sf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=sf(a)&&(b=hT(a))}},this);
return new kT(b)};var O$,P$,Q$,R$,MV,PV,S$,T$,U$,V$,W$,X$,QV,Y$;uV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
vV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
vV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
var kga=new wV,lga=new CV,mZ=new AV,mga=new BV,nga=new DV,oga=new EV,JV=new xV,pga=new GV;wV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
xV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
yV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
yV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
yV.prototype.getId=function(){var a=this.o.id;return null!=a?a:""};
var vba=new FV;zV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
zV.prototype.getType=function(){var a=this.o.type;return null!=a?a:0};
AV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
var nZ=new FV;BV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
var qga=new FV,rga=new FV,sga=new FV;CV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
DV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
EV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
FV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
GV.prototype.equals=function(a){return tV(this.o,a?a.o:null)};
var tga=new FV;var UV;
UV={action:{type:{TYPE_RESPONSE:12,TYPE_EXTERNAL:16,TYPE_APPLICATION_STORE:4,TYPE_HELPOUTS:15,TYPE_INLINE_APPLICATION_STORE:19,TYPE_HEADLINE:1,TYPE_IRDB:8,TYPE_NONE:0,TYPE_INTERNAL:13,TYPE_ATTRIBUTION:5,TYPE_VOTE:18,TYPE_SUBSCRIPTION:6,TYPE_VIDEO:3,TYPE_RESULTS:11,TYPE_COLLAPSE:17,TYPE_LETTERMAN:14,TYPE_PLAYLIST:7,TYPE_CHANNEL:2,TYPE_FUNDRAISING:10,TYPE_MERCH:9}},event:{type:{TYPE_DISMISS:4,TYPE_IMPRESSION_GALLERY:7,TYPE_ACTION_ENDCAP:9,TYPE_NONE:0,TYPE_EXPAND:2,TYPE_IMPRESSION_ENDCAP:8,TYPE_IMPRESSION:1,TYPE_ACTION:6,
TYPE_COLLAPSE:3,TYPE_DISMISS_ENDCAP:11,TYPE_COLLAPSE_ENDCAP:10,TYPE_HEADLINE_CLICK:5}},ad_card:{attribution_position:{POSITION_BOTTOM_RIGHT:3,POSITION_TOP_LEFT:1,POSITION_BOTTOM_LEFT:0,POSITION_TOP_RIGHT:2}},card:{type:{TYPE_NONE:0,TYPE_APP:2,TYPE_LOCATION:5,TYPE_PRODUCT:1,TYPE_WEBSITE:4,TYPE_VOTE:3},prominence:{PROMINENCE_FEATURE:2,PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0}}};B(RV,kT);SV.prototype.parse=function(a){var b=xz(a);if(C(D(b)))return null;if(this.o){var c=TV;if(!O$){var d={};O$={Jb:d};if(!P$){var e={};P$={Jb:e};e.type={type:"e",label:1,oa:0};if(!Q$){var f={};Q$={Jb:f};f.major_version={type:"i",label:1,oa:0};f.minor_version={type:"i",label:1,oa:0}}e.version={type:"m",label:1,oa:kga,sa:Q$};e.priority={type:"i",label:1,oa:0};e.start_time_ms={type:"j",label:1,oa:"0"};e.end_time_ms={type:"j",label:1,oa:""};e.action={type:"m",label:3,sa:LV()};e.event={type:"m",label:3,sa:OV()};
V$||(f={},V$={Jb:f},f.headline={type:"s",label:1,oa:""},f.description={type:"s",label:1,oa:""},f.attribution_icon_url={type:"s",label:1,oa:""},f.skippable_seconds={type:"i",label:1,oa:0},f.attribution_position={type:"e",label:1,oa:0});e.ad_card={type:"m",label:1,oa:lga,sa:V$};if(!S$){f={};S$={Jb:f};f.headline={type:"s",label:1,oa:""};f.image={type:"m",label:1,oa:nZ,sa:NV()};f.description={type:"s",label:1,oa:""};f.rating={type:"f",label:1,oa:0};f.review_text={type:"s",label:1,oa:""};if(!T$){var k=
{};T$={Jb:k};k.merchant={type:"s",label:1,oa:""};k.price={type:"s",label:1,oa:""};k.shipping={type:"s",label:1,oa:""};k.shipping_tax={type:"s",label:1,oa:""};k.condition={type:"s",label:1,oa:""};k.unit_price={type:"s",label:1,oa:""};k.energy_label={type:"s",label:1,oa:""};k.description={type:"s",label:1,oa:""};k.rating={type:"f",label:1,oa:0};k.review_text={type:"s",label:1,oa:""};k.action={type:"m",label:3,sa:LV()};k.event={type:"m",label:3,sa:OV()}}f.offer={type:"m",label:3,sa:T$}}e.product_card=
{type:"m",label:1,oa:mZ,sa:S$};U$||(f={},U$={Jb:f},f.app_id={type:"s",label:1,oa:""},f.app_name={type:"s",label:1,oa:""},f.icon={type:"m",label:1,oa:qga,sa:NV()},f.price={type:"s",label:1,oa:""},f.rating_image={type:"s",label:1,oa:""},f.review_count={type:"i",label:1,oa:0},f.app_store_logo={type:"m",label:1,oa:rga,sa:NV()},f.button_text={type:"s",label:1,oa:""},f.screenshots={type:"m",label:3,sa:NV()},f.rating={type:"f",label:1,oa:0},f.back_button_text={type:"s",label:1,oa:""},f.screenshots_text=
{type:"s",label:1,oa:""},f.cover_photo={type:"m",label:1,oa:sga,sa:NV()});e.app_card={type:"m",label:1,oa:mga,sa:U$};e.prominence={type:"e",label:1,oa:0};W$||(f={},W$={Jb:f},f.call_to_action_text={type:"s",label:1,oa:""});e.social_card={type:"m",label:1,oa:nga,sa:W$};X$||(f={},X$={Jb:f},f.vote_line_1={type:"s",label:1,oa:""},f.vote_line_2={type:"s",label:1,oa:""},f.confirm_line_1={type:"s",label:1,oa:""},f.confirm_line_2={type:"s",label:1,oa:""});e.vote_card={type:"m",label:1,oa:oga,sa:X$};e.sponsored=
{type:"b",label:1,oa:!1};e.teaser_text={type:"s",label:1,oa:""};R$||(f={},R$={Jb:f},f.hide_in_drawer={type:"b",label:1,oa:!1},f.show_in_endcap={type:"b",label:1,oa:!1},f.show_in_companion_mobile={type:"b",label:1,oa:!1},f.show_in_cta={type:"b",label:1,oa:!1});e.placement={type:"m",label:1,oa:JV,sa:R$};Y$||(f={},Y$={Jb:f},f.latitude_e6={type:"i",label:1,oa:0},f.longitude_e6={type:"i",label:1,oa:0},f.address={type:"s",label:1,oa:""},f.image={type:"m",label:1,oa:tga,sa:NV()},f.headline={type:"s",label:1,
oa:""});e.location_card={type:"m",label:1,oa:pga,sa:Y$}}d.card={type:"m",label:3,sa:P$};d.event={type:"m",label:3,sa:OV()}}a=c(this,a,O$);a=new uV(a);c=new aT;for(d=0;d<sV(a.o,"card");d++)if(e=HV(a,d),KV(IV(e)))for(f=0;f<sV(e.o,"event");f++){var l,k=f;l=new zV(rV(e.o,"event")[k]);k=null;switch(l.getType()){case 9:k="video_card_endcap_action";break;case 10:k="video_card_endcap_collapse";break;case 11:k="video_card_endcap_dismiss";break;case 8:k="video_card_endcap_impression"}k&&(l=l.o.base_url,fT(c,
k,null!=l?l:""))}return new RV(b,a,c)}return new RV(b)};B(VV,kT);VV.prototype.gd=function(){return this.A};WV.prototype.D=function(a){var b={};E(this.A,function(a){b[a]=[]});
var c=new RegExp("^"+this.B);E(sf(a),function(a){"config"!=a.nodeName||E(sf(a),function(a){"params"!=a.nodeName||E(sf(a),function(a){var d=this.B?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=RS(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(YV,kT);B($V,WV);$V.prototype.parse=function(a){if(null==a)return null;a=XV(this,a);var b=a.UI;return new YV(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
$V.prototype.C=function(a){var b=[],c=0;E(sf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;E(sf(a),function(a){switch(a.nodeName){case "DisplayName":e=RS(a);break;case "URL":f=RS(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};B(aW,kT);bW.prototype.o={Ju:"Siub",Iu:"Scs",kt:"Bgub",jt:"Bgp"};bW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(sf(a),function(a){switch(a.nodeName){case this.o.Ju:b=RS(a);break;case this.o.Iu:c=RS(a);break;case this.o.kt:d=RS(a);break;case this.o.jt:e=RS(a)}},this);
return b&&c&&d&&e?new aW(b,c,d,e):null};B(cW,kT);dW.prototype.o={Ou:"TEMPLATE_PARAMETERS",Pu:"TEMPLATE_URL"};dW.prototype.parse=function(a){if(null==a)return null;E(sf(a),function(a){switch(a.nodeName){case this.o.Ou:wba(this,a)}},this);
return new cW};B(eW,kT);fW.prototype.o={gu:"Line1",hu:"Line2",iu:"Line3",cu:"ImageUrl"};fW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(sf(a),function(a){switch(a.nodeName){case this.o.gu:b=RS(a,!0);break;case this.o.hu:c=RS(a,!0);break;case this.o.iu:d=RS(a,!0);break;case this.o.cu:e=RS(a)}},this);
return new eW(b,c,d,e)};B(gW,kT);hW.prototype.parse=function(a){if(null==a)return null;var b;E(sf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(D(a))||(b=a)}},this);
return new gW(b)};B(iW,kT);B(jW,WV);var uga=["menu","got_it"],vga=[["generic_message_left","generic_message_hypertext","generic_message_right"],["unsubscribe_visible_link","unsubscribe_legal","unsubscribe_redirect_url","unsubscribe_continue","unsubscribe_cancel"]];jW.prototype.parse=function(a){if(null==a)return null;a=XV(this,a);var b=a.UI;if(!kW(b,uga))return null;var c,d=!0,e=!1;E(vga,function(a){xba(b,a)&&(kW(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;for(var k=0;k<f.length;k++)Ha(f[k],"|")&&(f[k]+="https://support.google.com/ads/answer/1634057#Across+Google+products+and+services|"+b.learn_more);null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new iW(b.menu,b.targeting_reason,b.got_it,a.CustomTracking,c,b.unsubscribe_visible_link,b.unsubscribe_legal,b.control,b.unsubscribe_redirect_url,b.unsubscribe_continue,b.unsubscribe_cancel)};lW.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 pT(a)};B(mW,kT);nW.prototype.parse=function(a){return null!=a?new mW:null};oW.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new qT(a)};h=pW.prototype;h.getContent=function(){return this.o.getContent()};
h.getContentType=function(){return this.o.getContentType()};
h.getWidth=function(){return this.o.getWidth()};
h.getHeight=function(){return this.o.getHeight()};
h.getAd=function(){return this.o.getAd()};B(qW,BT);qW.prototype.xe=function(){var a=this.H,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:IK(D(this.C)),width:this.getWidth(),height:this.getHeight(),Eb:this.Vc(),$e:this.Fn||!a},a=pQ(Aba,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.V;E(a.getElementsByTagName("object"),this.F,this);E(a.getElementsByTagName("a"),this.F,this);return a};B(rW,BT);rW.prototype.xe=function(){var a=M("div");a.innerHTML=this.C;this.F(a);return FT(this,a)};B(sW,BT);sW.prototype.getContent=function(){var a=sW.N.getContent.call(this);this.D&&(a=a.replace('src=""','src="'+IK(D(this.C))+'"'));return a};
sW.prototype.Xk=function(){var a=sW.N.Xk.call(this);this.D&&(a=a.replace('src=""','src="'+IK(D(this.C))+'"'));return a};
sW.prototype.xe=function(a){var b="";this.D||(b=IK(D(this.C)));b={id:this.V,url:b,Eb:this.Vc(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=pQ(a?Cba:Bba,b);E(a.getElementsByTagName("a"),this.F,this);return a};
sW.prototype.Hg=function(){return!0};B(tW,BT);h=tW.prototype;h.Tb=function(){return new re(this.getWidth(),this.getHeight())};
h.getHeight=function(){return 63};
h.getWidth=function(){return null!=this.G?jg(this.G).width:0};
h.Xn=function(a){return Xd(a,"text-image")?9:Xd(a,"text-ad-channel")?1:0};
h.xe=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.B,e="rtl";null!=d&&(e=UZ.test(ye(d,void 0))?"rtl":"ltr");d={title:d,text:c.C+" "+c.D,dir:e,Eb:this.Vc()};if(c=c.A)d.image=IK(c),a=eb(a.C,function(a){return a instanceof yT}),null!=a&&(d.duration=CS(a.Vk()));
b.A&&(d.Zq=b.A);this.G=pQ(zba,d);E(this.G.getElementsByTagName("a"),this.F,this);this.G.id=this.V;this.G.style.height=this.getHeight()+"px";return this.G};B(uW,BT);uW.prototype.xe=function(){var a=D(this.C);C(D(this.Vc()))||(a=new N(a),mh(a,"clickTAG",va(this.Vc())),a=a.toString());var b=M("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",IK(a));this.F(b);return FT(this,b)};xW.prototype.getContentType=function(){return null!=this.o?wT[this.o]||"Other":null};yW.prototype.Jd=function(){return this.o};
yW.prototype.display=function(a){this.C=a;this.C.appendChild(this.o);a=this.o;var b=hg(this.C),b="left"==this.D?"0px":"right"==this.D?b.width-this.B.Tb().width+"px":this.D+"px",c;c=hg(this.C);c="bottom"==this.F?"0px":"top"==this.F?c.height-this.B.Tb().height+"px":c.height-this.B.Tb().height-ab(this.F)+"px";Mf(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});lg(this.o,!1)};
yW.prototype.update=function(a,b){var c=null!=this.G?ZS(this.G):0;this.A=0<=this.A?this.A:b;c<=a&&c+this.A>=a?Eba(this):lg(this.o,!1)};B(zW,bV);
zW.prototype.o={Vs:"Ad",Kj:"AdParameters",Xs:"AdSystem",Ys:"AdTitle",YF:"Advertiser",bt:"AltText",qt:"ClickThrough",ut:"ClickTracking",vt:"Companion",COMPANION_ADS:"CompanionAds",wt:"CompanionClickThrough",xt:"CompanionClickTracking",At:"Creative",GG:"CreativeExtensions",Bt:"Creatives",Et:"CustomClick",Ht:"Description",Mj:"Duration",ERROR:"Error",Pt:"Extension",Qt:"Extensions",xh:"HTMLResource",Vt:"Icon",Wt:"Icons",Xt:"IconClicks",Yt:"IconClickThrough",Zt:"IconClickTracking",$t:"IconViewTracking",zh:"IFrameResource",
Ah:"Impression",INLINE:"InLine",LINEAR:"Linear",mu:"MediaFile",nu:"MediaFiles",tu:"NonLinear",NON_LINEAR_ADS:"NonLinearAds",uu:"NonLinearClickThrough",vu:"NonLinearClickTracking",RH:"Pricing",Bh:"StaticResource",Nu:"Survey",FI:"Tracking",Pj:"TrackingEvents",QI:"VAST",Qu:"VASTAdTagURI",Ru:"VideoClicks",WRAPPER:"Wrapper"};
zW.prototype.A={Ws:"adSlotID",$s:"allowMultipleAds",vh:"apiFramework",Ym:"bitrate",Ct:"creativeType",Gt:"delivery",Mj:"duration",EVENT:"event",Tt:"followAdditionalWrappers",Mt:"expandedHeight",Nt:"expandedWidth",wh:"height",yh:"id",ju:"maintainAspectRatio",lu:"maxBitrate",pu:"minBitrate",qu:"minSuggestedDuration",wu:"offset",xu:"program",Bu:"required",Du:"scalable",cn:"sequence",Gu:"skipoffset",pn:"type",VERSION:"version",Su:"codec",Ch:"width",Uu:"xPosition",Vu:"yPosition"};
zW.prototype.B=function(){return new cV(this.C,Gba(this),null)};B(HW,bV);HW.prototype.B=function(){return new cV(this.A,null,Yba(this))};h=LW.prototype;
h.clone=function(){var a=new LW;"auto"==this.Qe?a.Qe="auto":"click"==this.Qe&&(a.Qe="click");a.o=this.o;a.se=fc(this.se);a.A=this.A;a.D=this.D;a.xb=fc(this.xb);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.Hc=this.Hc;a.Gc=this.Gc;a.qc=this.qc;a.pi=this.pi;a.ri=this.ri;a.Vl=this.Vl;a.B=this.B;a.C=this.C;a.fh=this.fh;a.oi=this.oi;a.afcRmFallback=this.afcRmFallback;a.K=this.K;a.J=this.J;a.df=this.df;this.G&&(a.G=tb(this.G));
a.Dc=this.Dc;a.ii=this.ii;a.Bk=this.Bk;return a};
h.se=null;h.xb=null;h.Qe="unknown";h.nf=0;h.mf=0;h.Hc=0;h.Gc=0;h.df=!1;h.qc=null;h.pi=!1;h.ri=!1;h.Vl=!0;h.Dc=function(){return!1};
h.ii=function(){return window.NaN};
h.Bk=function(){return""};
h.fh=0;h.Pn=!0;h.oi=null;h.afcRmFallback=!1;MW.prototype.H=function(){return this.C(this.D()).toString()};
MW.prototype.F=function(){var a;a=1;kL()&&(a+=4);AK(wK(),41351017)&&!V()&&(a+=1024);return a};var uX={KI:"ultrahigh",bH:"high",ou:"medium"},qca={cG:1E3,dG:1001,eG:1002,fG:1003,gG:1004,hG:1005,iG:1006},rca={ku:1,Rt:2},sca={CONTENT:"content",jI:"site",kI:"site_content"};h=SW.prototype;h.Fh="high";h.Rk=!1;h.Qj=1;h.Rj=null;h.adType="video";h.adBlock=1;h.Sk=null;h.Sj=!0;h.Tj=null;h.ik=null;h.tg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.Tk=!1;h.language=null;h.Ho=null;h.Go=null;h.Fi=1E5;h.Gi=null;h.Jo=null;h.Io=null;h.sl=0;h.uf=null;h.Pi=null;h.Wi=null;h.Wl=null;
h.tagForChildDirectedTreatment=-1;h.url=null;h.zi=null;h.km=null;h.Uk=null;h.xm=null;h.tm=null;h.um=null;h.wm=null;h.Yj=null;var nca=(new Date).getTime();var ica=[202,1009],mca=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],lca={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://yts?.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"]};var oca={St:"flash",IMAGE:"image",nI:"skippablevideo",pI:"standardvideo",qI:"staticimage",TEXT:"text",VIDEO:"video"},mX=["flash","image","staticimage"],pca=[new re(200,200),new re(250,250),new re(300,250),new re(336,280),new re(450,50),new re(468,60),new re(480,70),new re(728,90)];B(tX,MW);var uca=["skippablevideo","standardvideo","video"];tX.prototype.G={Zs:"allow",Lt:"exclude",ZH:"require"};tX.prototype.F=function(){var a=tX.N.F.call(this);V()&&this.o.Wi&&(a|=this.o.Wi);return a};
tX.prototype.C=function(a){var b=new N("//googleads.g.doubleclick.net/pagead/ads"),c=a.Na();E(c,function(c){mh(b,c,a.get(c))});
AK(wK(),41351083)||ah(b,"https");return b};
tX.prototype.D=function(){var a=new wg;a.set("sdkv",RW(this));a.set("sdki",this.F().toString(16));a.set("video_product_type",null!=this.o.uf?V()?5:ta(this.o.uf,"ca-games-")?4:ta(this.o.uf,"ca-video-")?0:-1:-1);a.set("correlator",this.J.o);a.set("client",this.o.uf);V()&&!C(D(this.o.url))?a.set("url",this.o.url):a.set("url",this.A.location?this.A.location:this.A.referrer);null!=this.A.qc&&a.set("adk",this.A.qc);a.set("num_ads",vX(this));a.set("channel",vca(this));a.set("output","xml_vast3");this.o.Rk&&
a.set("adtest","on");zS&&a.set("flash",JM);kX("alternate_ad_url",this.o.Tj,a);kX("cpm",this.o.ik,a);bX(a,this.A);V()||Vb(uX,this.o.Fh)&&a.set("adsafe",this.o.Fh);this.o.host&&(a.set("host",this.o.host),kX("ht_id",this.o.hostTierId,a),null!=this.o.B&&kX("h_ch",this.o.B.join("+"),a));kX("hl",this.o.language,a);kX("cust_age",this.o.Sk,a);kX("cust_gender",this.o.gender,a);-1!=this.o.tagForChildDirectedTreatment&&kX("tfcd",this.o.tagForChildDirectedTreatment,a);kX("slotname",this.o.Rj,a);if(gX(this.o)&&
(a.set("ea","0"),null!=this.A.Hc&&null!=this.A.Gc)){var b=hX(this.o,this.A.Hc,this.A.Gc,this.A.df);a.set("image_size",b);C(b)&&(this.o.o=lX(this.o.o,this.o.adType,!0),this.o.adType=this.o.o.join("_"))}a.set("ad_type",this.o.adType);b=CK(wK());C(D(b))||a.set("eid",b);cX(a);aX(a,this.J,this.A.D||this.o.tg);a.set("unviewed_position_start","1");b=this.o.Qj;a.set("videoad_start_delay",null!=b?b:1);PW(this,a);QW(this,a);NW(this,a);tca(this)&&a.set("video_format",null!=this.o.zi&&V()?this.o.zi:Fl&&Ht(6)||
N6&&Ht(4)||lL&&eL(mL,2.3)?43:18);b=null!=this.o.Pi?this.o.Pi:jb(this.o.adType.split("_"),"text")?this.G.Zs:this.G.Lt;a.set("t_pyv",b);kX("min_ad_duration",this.o.sl,a);0<this.o.Fi&&a.set("max_ad_duration",wX(this.o.Fi,vX(this)));0<this.o.Gi&&a.set("sdmax",wX(this.o.Gi,vX(this)));iX(a,this.K);V()&&(b=WP(this.o.tg),null!=b&&a.set("video_doc_id","yt_"+b));kX("description_url",this.o.tg,a);V()&&(kX("lact",dX(this.A),a),kX("loeid",this.o.Uk,a),kX("lsv",this.o.Tk,a),this.o.Sj||kX("scs","false",a),kX("targeting",
this.o.Wl,a),kX("video_cpm",this.o.km,a),kX("yt_pt",this.o.xm,a),kX("ytdevice",this.o.tm,a),kX("ytdevicever",this.o.um,a),kX("yt_vis",eX(this.A),a),kX("dbp",this.o.wm,a),kX("avo",this.o.Yj,a));null!=a.get("ms")||kX("ms",this.o.C,a);OW(a);jX(this.A,a,!1);null!=this.A.se&&kX("loc",this.A.se.page_location,a);return a};B(xX,MW);xX.prototype.C=function(a){var b=new N(this.A.o);E(a.Na(),function(c){C(a.get(c))?b.o.remove(c):mh(b,c,a.get(c))});
AK(wK(),41351083)||ah(b,"https");return b};
xX.prototype.D=function(){var a=new wg;a.set("sdkv",RW(this));QW(this,a);NW(this,a);OW(a);null!=this.A.qc&&a.set("adk",this.A.qc);return a};B(yX,MW);yX.prototype.D=function(){return new wg};
yX.prototype.C=function(){var a=new FS(this.A.o),b=RW(this);b&&GS(a,"dc_sdkv",[b]);(b=this.F().toString(16))&&GS(a,"dc_sdki",[b]);(b=this.B.H)&&GS(a,"dc_submodel",[b]);null!=this.A.qc&&GS(a,"dc_adk",[this.A.qc]);b=new wg;PW(this,b);QW(this,b);NW(this,b);OW(b);xg(b,"js")&&GS(a,"dc_js",[b.get("js")]);xg(b,"msid")&&GS(a,"dc_msid",[b.get("msid")]);xg(b,"frm")&&GS(a,"dc_frm",[b.get("frm")]);xg(b,"osd")&&GS(a,"dc_osd",[b.get("osd")]);xg(b,"sdr")&&GS(a,"dc_sdr",[b.get("sdr")]);GS(a,"dcmt",["text/xml"]);
xg(b,"vpa")&&GS(a,"vpa",[b.get("vpa")]);xg(b,"mpt")&&GS(a,"mpt",[b.get("mpt")]);xg(b,"mpv")&&GS(a,"mpv",[b.get("mpv")]);AK(wK(),41351083)||ah(a,"https");return a};B(zX,MW);zX.prototype.C=function(a){a=new N(a.get("adTagUrl"));AK(wK(),41351083)||ah(a,"https");return a};
zX.prototype.H=function(){var a=D(this.D().get("adTagUrl"));AK(wK(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};
zX.prototype.D=function(){var a=new wg;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(AX,MW);AX.prototype.C=function(a){return new N(a.get("adTagUrl"))};
AX.prototype.D=function(){var a=new wg;a.set("adTagUrl",this.A.o);a.set("adsResponse",this.A.A);return a};B(BX,MW);BX.prototype.C=function(a){var b=new N(this.A.o);E(a.Na(),function(c){C(a.get(c))?b.o.remove(c):mh(b,c,a.get(c))});
AK(wK(),41351083)||ah(b,"https");return b};
BX.prototype.D=function(){var a=new wg,b=wK(),c=CK(b);C(D(c))||a.set("eid",c);a.set("sdkv",RW(this));a.set("sdki",this.F().toString(16));a.set("correlator",this.B.B);a.set("scor",this.B.o);null!=this.A.qc&&a.set("adk",this.A.qc);PW(this,a);QW(this,a);NW(this,a);OW(a);var c=lh(new N(this.A.o)),d=new SW;d.A=rX(d.A,c.get("overlay"));a.set("afvsz",hX(d,this.A.Hc,this.A.Gc,this.A.df));c=this.B.A;null!=c&&(this.B.A=null,a.set("fbidx",c));c=this.B.O;null!=c&&a.set("ppid",c);c="null";d=this.B.D;null!=d?c=
d:CX(this.A.location)?c=this.A.location:CX(this.A.referrer)&&(c=this.A.referrer);a.set("url",c);c=this.B.H;null!=c&&a.set("submodel",c);c=this.B.G;null==c||V()||(c=wca(c),a.set("ciu_szs",c));a.set("impl","");c=AK(b,41351073);b=AK(b,41351074);(c||!V()&&b)&&a.set("unviewed_position_start","1");return a};B(DX,BX);DX.prototype.C=function(a){a=DX.N.C.call(this,a);this.J||yca(this,a);return a};B(EX,yX);EX.prototype.C=function(a){a=EX.N.C.call(this,a);this.J||Aca(this,a);return a};B(FX,MW);var Cca=["CPN","MT","LACT","VIS"];FX.prototype.C=function(){var a=new N(hK(this.A.o,Bca(this)));AK(wK(),41351083)||ah(a,"https");return a};
FX.prototype.D=function(){return new wg};KX.prototype.ld=function(){return null!=this.o&&this.o.ld()?!0:0<this.ads.length&&this.A<this.ads.length-1};
KX.prototype.K=function(a,b){return this.D?0<a.length?a:b:wb(b,0,1)};
KX.prototype.B=function(a,b,c){var d;if(!(d=null!=a.A)){var e=this.F;d=e.Hc||0;e=e.Gc||0;nU(a)&&!a.S?qU(a,"nonlinear")?IX(a,d,e):JX(a):qU(a,"linear")?JX(a):qU(a,"nonlinear")&&IX(a,d,e);d=null!=a.A}d?(this.G++,b(a)):(b=lb(a.C)?TK(KW):MT(a)?TK(dY):TK(ega),d=TW(b,a),DS(Saa(a),"rm")?b.A=!1:RK(a.aa,d),c(b))};
KX.prototype.H=function(a,b,c){var d=this.F.clone();d.A="";d.o=a.Ia;d.qc=PR(d.o,d.oi);MX(this,a,d,b,c)};B(RX,KX);RX.prototype.ld=function(){return null!=this.o&&this.o.ld()?!0:0<this.ads.length&&this.A<this.ads.length-1&&0==this.G};
RX.prototype.K=function(a,b){return b};
RX.prototype.B=function(a,b,c){var d=-1,d=null==this.o?jU(a):jU(this.ads[this.A]);this.M.A=d;RX.N.B.call(this,a,b,c)};
RX.prototype.H=function(a,b,c){this.M.A=-1;RX.N.H.call(this,a,b,c)};SX.prototype.fetch=function(a,b,c){C(D(a.A))?MS(a.o)&&null!=this.o&&!this.o.H?this.o.start(a,A(function(){UX(this,a,b,c)},this)):UX(this,a,b,c):Rca(this,a,b,c)};
SX.prototype.A=function(a,b,c,d){var e=Dca(a,this.C).H(),e=PK(e,d,!0);d=a.ri&&FK(Xfa,e)?"POST":"GET";Hca(this.B,e,A(function(d){TX(this,d,a,b,c)},this),A(function(b,d){var e;
e=8==b?TK(WX):5==b||6==b?TK(Yfa):TK(Zfa,d);c(e);e="third_party";IS(a.o)?e="adsense":LS(a.o)?e="dart":MS(a.o)&&(e="xfp");e={rt:e,ec:b};oL(nL.getInstance(),18,e,!0)},this),this.F,d);
Tca(a)};VX.prototype.reset=function(a){this.o=a+I()};B(ZX,H);var wga={NORMAL:"normal",FULLSCREEN:"fullscreen"};B(eY,F);h=eY.prototype;h.Gg=!1;h.qo=1E3;h.ap=30;h.bp=45E3;h.pq=15E3;h.ar=!1;h.gk=function(){var a=fY(this);this.o.appendChild(this.J);this.display(this.J);this.play();return a};
h.la=function(){null==this.L&&(this.L=this.gk());return this.L};
h.play=function(){null==this.A&&(this.A=Sd(function(){this.Gg||(this.ga(),this.ar=!0);this.A=null},this.ar?this.pq:this.bp,this))};
h.stop=function(){null!=this.A&&(Td(this.A),this.A=null)};
h.display=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
h.show=function(){kg(this.la(),1);null!=this.B&&(Td(this.B),this.B=null)};
h.ga=function(){kg(this.la(),this.ap/100);null==this.B&&(this.B=Sd(function(){this.O();this.B=null},400,this))};
h.Kw=function(){this.show();this.Gg=!0;this.D=Sd(function(){this.Gg&&this.stop();this.D=null},this.qo,this)};
h.xC=function(){null!=this.D&&(Td(this.D),this.D=null);this.Gg&&this.play();this.Gg=!1};
h.T=function(){eY.N.T.call(this);this.stop();Nb(this.Tc)};B(gY,eY);h=gY.prototype;h.gk=function(){var a=fY(this);J(a,"ima-container-rotator");this.G=M("div");this.o.appendChild(this.G);E(this.K,function(a,c){J(a,"ima-container-highlight");var d=63/this.K.length*(c+.5)-5,e=M("div",{id:Wa(),"class":"ima-container-selector"});e.style.top=d+"px";this.Tc.P(e,"click",function(a){this.If(a.target)});
this.S.set(e.id,a);this.F.appendChild(e)},this);
this.If(uf(this.F));this.play();return a};
h.play=function(){null==this.ya&&(this.ya=new Qd(this.M),this.Tc.P(this.ya,"tick",this.$B));gY.N.play.call(this);this.ya.start()};
h.stop=function(){null!=this.ya&&this.ya.stop();gY.N.stop.call(this)};
h.$B=function(){var a=this.C;this.If((n(a.nextElementSibling)?a.nextElementSibling:vf(a.nextSibling))||uf(this.C.parentNode))};
h.If=function(a){this.C&&Zd(this.C,"ima-container-active");J(a,"ima-container-active");var b=this.S.get(a.id);rf(b,this.G);this.C=a;this.G=b;this.display(b)};B(hY,eY);hY.prototype.ga=w;hY.prototype.gk=function(){var a=fY(this);E(this.C,function(a){J(a,"ima-container-highlight");this.o.appendChild(a);this.display(a)},this);
this.play();return a};B(iY,Lz);h=iY.prototype;h.play=function(){if(this.Za())return!1;this.Ii();this.gc("play");this.startTime=I();this.o=1;if(Qfa())return Mf(this.A,this.G),this.C=Sd(this.hw,void 0,this),!0;this.Ul(!1);return!1};
h.hw=function(){hg(this.A);Jq(this.A,this.F);Mf(this.A,this.B);this.C=Sd(A(this.Ul,this,!1),1E3*this.D)};
h.stop=function(){this.Za()&&this.Ul(!0)};
h.Ul=function(a){Kq(this.A,"");Td(this.C);Mf(this.A,this.B);this.endTime=I();this.o=0;a?this.gc("stop"):this.Ub();this.Ng()};
h.T=function(){this.stop();iY.N.T.call(this)};
h.pause=function(){};B(lY,H);h=lY.prototype;h.start=function(){this.Nk();this.A=0;mY(this);this.C=!0;this.D.start()};
h.play=function(){this.C||(mY(this),this.C=!0,this.D.start())};
h.pause=function(){this.C&&mY(this)};
h.Nk=function(){};
h.xA=function(){this.A+=.2;this.Mk(this.A,this.K);this.$("timeUpdate");0>=this.K-this.A&&(mY(this),this.$("end"))};
h.Mk=w;h.T=function(){this.C=!1;this.J.dispose();lY.N.T.call(this)};B(nY,H);h=nY.prototype;h.T=function(){null!=this.L&&(this.L.dispose(),this.L=null);null!=this.M&&(this.M.dispose(),this.M=null);rY(this);null!=this.F&&(qf(this.F),this.F=null);null!=this.C&&(this.C=null);null!=this.o&&(qf(this.o),this.o=null);this.Y.dispose();this.Y=null;this.O.dispose();this.O=null;this.D.dispose();this.D=null;this.Z=!1;nY.N.T.call(this)};
h.update=function(a,b){this.V=b;if(!(0>=this.V||null==this.B.skipOffset||0>ZS(this.B.skipOffset))){var c=ZS(this.B.skipOffset);c>=this.V||3==this.A||(0>a?this.A=1:a<=c?(2!=this.A&&(pY(this,0),jY(this.F,.5,"ease-out",0,1).play(),lg(this.F,!0)),this.A=2):(3!=this.A&&(lg(this.o,!0),this.M=new iY(this.F,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.L=jY(this.o,.5,"ease-out",0,1),this.M.play(),this.L.play(),this.C.autofocus&&
this.C.focus(),this.D.P(wf(this.o),"mouseover",this.XB),this.D.P(wf(this.o),"mouseout",this.Lq),this.Lq()),this.A=3,this.$("skipshown"),qY(this)&&(lg(this.J,!0),lg(this.H,!0),this.$("video_extend_shown"))))}if(2==this.A)pY(this,a);else if(qY(this)&&!this.ea){var d=20-a;0<d?(c="",d=ra("Ad will skip in {$xSeconds}",{xSeconds:X(" "+Math.round(d))}),Af(this.H,c+d)):this.G||3!=this.A||this.G||(this.G=!0,this.$("video_extend_auto_skipped"))}};
h.skip=function(){return null==this.B.skipOffset||3!=this.A||this.G?!1:(this.G=!0,this.$("PUBLISHER_INVOKED_SKIP"),!0)};
h.kx=function(a){var b=a.o;3==this.A&&1==b.touches.length&&(this.da=!0,this.na=b.touches[0].pageX,a.preventDefault())};
h.jx=function(a){var b=a.o;3==this.A&&1==b.touches.length&&this.da&&(b=b.touches[0].pageX,this.aa=this.ma-b,this.ma=b,b=this.na-b,0<b&&(this.o.style.right=b+"px"),a.preventDefault())};
h.ix=function(){this.da=!1;if(3==this.A){var a=gg(wf(this.o));if((0,window.parseInt)(this.o.style.right,10)+4*this.aa>.25*a.width&&0<this.aa){lg(this.o,!1);this.G=!0;this.$("skip");return}}this.o.style.right=0};
h.oC=function(a){V()||a.stopPropagation();3!=this.A||this.G||(this.G=!0,this.$("skip"))};
h.Qv=function(a){V()||a.stopPropagation();3!=this.A||this.G||this.ea||(this.ea=!0,this.$("video_extend_clicked"),lg(this.J,!1),lg(this.H,!1))};
h.Lq=function(){null==this.K&&(this.K=Sd(function(){this.Z=!0;jY(this.o,.5,"ease-in",1,.5).play();this.K=null},this.Z?5E3:15E3,this))};
h.XB=function(){kg(this.o,1);rY(this)};
h.setVisible=function(a){null!=this.S&&lg(this.S,a);null!=this.C&&lg(this.C,a);null!=this.J&&lg(this.J,a&&qY(this));null!=this.H&&lg(this.H,a&&qY(this))};B(sY,H);h=sY.prototype;h.show=function(){null!=this.A&&lg(this.A,!0)};
h.skip=function(){var a;if(a=null!=this.C)a=this.C,a=null!=a.B.skipOffset&&3==a.A;return a?this.C.skip():!1};
h.T=function(){null!=this.A&&(qf(this.A),this.A=null);vY(this);E(this.M,function(a){SP(a)});
this.M=[];this.D=null;this.B.dispose();this.B=null;this.na=!1;sY.N.T.call(this)};
h.update=function(a,b,c,d,e){this.na=!0;null!=this.A&&(null!=this.da&&kda(this,a,c,d,e),null!=this.V&&fg(this.V,a/c*100+"%"),null!=this.ma&&fg(this.ma,b/c*100+"%"),0<c&&null!=this.o.skipOffset&&null!=this.C&&($S(this.o.skipOffset,c),this.C.update(a,c)),this.o.G&&0<c&&5>c-a&&J(this.S,"videoAdUiTopBarNoFade"),E(this.Ca,function(b){b.update(a,c)},this))};
h.fv=function(){this.$("videoAuthorIconClicked")};
h.gv=function(){this.$("videoAuthorClicked")};
h.Yo=function(){this.$("videoLearnMoreClicked")};
h.lC=function(){this.$("videoShareClicked")};
h.uC=function(){this.$("videoTitleClicked")};
h.$w=function(a){a.preventDefault()};
h.lj=function(){this.$("click")};
h.kC=function(){J(this.S,"videoAdUiTopBarTransitions")};
h.JB=function(){var a=Hf(this.A,"html5-video-player"),b=this.o.D;null!=a&&(b.D=new Cm(b),b.o=new H,b.o.Wg(this),b.F=a,b.Dl(),b.o.$("why_this_ad_url"));null!=this.C&&this.C.setVisible(!1)};
h.CC=function(){null!=this.C&&this.C.setVisible(!0)};h=zY.prototype;
h.Dl=function(){var a={heading:"",Tq:[],learnMore:"",bi:"",unsubscribe:"",control:"",mute:""};if(null!=this.A){a.heading="This ad is based on:";var b=this.A.D;if(b&&3==b.length){var c=b[1],d=b[2],b=xQ(X(b[0])+nR()+X(c)+xQ("</a>")+X(d));a.bi=b}b=tb(this.A.L);a.Tq=b;for(c=0;c<b.length;c++)if("string"==typeof b[c]&&Ha(b[c],"|")){var d=b[c].split("|"),e=d[1],f=d[2],d=xQ(X(d[0])+" <a class='"+OQ("videoAdUiUnsubscribeLearnMore")+"' href='"+OQ($Q(e))+"' target='_blank'>"+X(f)+"</a>");b[c]=d}null!=this.A.A&&
(a.unsubscribe=this.A.C,a.control=this.A.B,a.bi="");a.close=this.A.J}else a.bi=mR(),b="",c=ra("Got It"),a.close=b+c;null!=this.C&&(a.mute=this.C.C);CY(this,kaa,a);AY(this,"videoAdUiWhyThisAdCloseButton",this.pg);AY(this,"videoAdUiWhyThisAdControl",this.On);AY(this,"videoAdUiWhyThisAdMute",this.HB);AY(this,"videoAdUiWhyThisAdUnsubscribe",this.IB);BY(this,"videoAdUiAdReasons",this.Mv);BY(this,"videoAdUiWhyThisAdGenericMessage",this.On)};
h.pg=function(){null!=this.D&&(this.D.dispose(),this.D=null);tY(this)&&null!=this.B&&(null!=this.o&&(this.o.$("why_this_ad_got_it"),this.o.dispose(),this.o=null),this.B.parentElement.removeChild(this.B),this.B=null)};
h.On=function(){null!=this.o&&this.o.$("why_this_ad_settings_url")};
h.Mv=function(){null!=this.o&&this.o.$("why_this_ad_learn_more")};
h.HB=function(){if(null!=this.C){this.o.$("mute_interaction_url");var a,b=ZV(this.C);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},CY(this,naa,a),AY(this,"videoAdUiUnsubscribeCancel",this.Dl),AY(this,"videoAdUiUnsubscribeConfirm",this.Bv);else{this.o.$("mute_url");a={heading:this.C.B,undo:this.C.F,question:this.C.D,options:[],confirm:"SEND",cancel:"CLOSE"};for(var c=0;c<b;c++)a.options.push(this.C.A[c].label);CY(this,maa,a);AY(this,"videoAdUiMuteUndo",
this.wC);AY(this,"videoAdUiUnsubscribeConfirm",this.qC);AY(this,"videoAdUiUnsubscribeCancel",this.Uh)}}};
h.Bv=function(){this.o.$("mute_url");this.Uh()};
h.wC=function(){this.o.$("mute_undo_url");this.pg()};
h.qC=function(){if(null!=this.C){for(var a=ZV(this.C),b=!1,c=0;c<a;c++){var d=$e("videoAdUiMuteOption"+c,this.B);if(null!=d&&d.checked){b=!0;OK(this.C.A[c].url);break}}if(!b)return}this.Uh()};
h.IB=function(){null!=this.A&&null!=this.A.A&&(CY(this,laa,{heading:this.A.C,message:this.A.M,control:this.A.B,cancel:this.A.F,confirm:this.A.G}),this.o.$("why_this_ad_unsubscribe_url"),AY(this,"videoAdUiPopupBack",this.mv),AY(this,"videoAdUiUnsubscribeCancel",this.xv),AY(this,"videoAdUiUnsubscribeConfirm",this.Cv))};
h.Cv=function(){lg($e("videoAdUiUnsubscribeConfirm",this.B),!1);lg($e("videoAdUiPopupBack",this.B),!1);this.G=!0;this.o.$("why_this_ad_unsubscribe_continue_url");var a=this.A.A,a=a instanceof He?a:Ke(a);window.open(Je(a),"",void 0,void 0)};
h.xv=function(){this.G?this.Uh():(this.o.$("why_this_ad_unsubscribe_cancel_url"),this.pg())};
h.mv=function(){this.o.$("why_this_ad_unsubscribe_cancel_url");this.Dl()};
h.Uh=function(){this.o.$("MUTE_AD");this.pg()};B(FY,lY);h=FY.prototype;h.start=function(){this.Nk();this.B.update(0,this.L);jY(this.o,this.H.A,"ease-out",0,1).play();this.J.P(this.B,"skip",this.av);FY.N.start.call(this)};
h.getContainer=function(){return this.o};
h.Nk=function(){var a=hg(this.o);if(1==this.G){var b=400>=(0,window.parseInt)(Qf(this.o,"width"),10)||400>=a.width;L(this.o,"videoAdUi-mobile",b)}else if(2==this.G){var c=uf(this.o),d=hg(c),e=65>=(a.height-d.height)/2;L(this.o,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;L(this.o,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.av=function(){this.pause();this.$("skip")};
h.Mk=function(a,b){this.B.update(a,b);if(this.F){var c=kY({Uf:GY(b-a)});Af(this.F,c)}};
h.T=function(){this.B&&this.B.dispose();of(this.o);FY.N.T.call(this)};B(HY,F);HY.prototype.K=function(a,b,c){b=fc(b||{});if("timeout"==(b.viewability||"")){var d=this.H[a];null!=d&&(b.viewability=d)}null!=b.viewability&&(d=b.viewability,null!=d&&(this.o.VIEWABILITY=d));"impression"==a&&!this.J&&null!=this.F&&0<this.F.length&&(d=jb(this.G,"impression"),JY(this,this.F,{},d),this.J=!0);if(oda(this,a)){var d=jb(this.G,a),e=gT(this.B,a);0<e.length&&(JY(this,e,b,d,c),this.A.set(a,!0))}this.o.VIEWABILITY="na"};B(KY,H);h=KY.prototype;h.Ug=function(){var a=kb(this.ads,this.J);-1!=a&&++a<this.ads.length?this.J=this.ads[a]:this.J=null};
h.Aq=function(){if(!MY(this)){if(lb(this.ads))throw VK(dY);this.J=this.ads[0];if(null==this.J.A)throw TK(dY);}};
h.wa=function(a){MY(this)?this.$(new gK(a,LY(this))):this.$(new gK(a,null))};
h.Wy=function(){};
h.zl=function(){};
h.destroy=function(){oK.o&&(zP().F=null);this.dispose()};
h.T=function(){MY(this)&&(bU(this.J,null),this.J=null);Nb(this.H);this.G=this.H=null;this.da=!1;KY.N.T.call(this)};
h.Md=function(){return[]};
h.getCurrentAd=function(){return this.ads[0]};
h.init=function(a){WY(this);this.xi(a);this.Ea=!0;this.Ji()};
h.Ji=function(){this.wa("loaded")};
h.sendImpressionUrls=function(a){MY(this)&&V()&&RK($T(LY(this)),a)};
h.Gq=w;h.Gd=function(a,b,c){if(!this.da){if(null==a)throw VK(rR,null,"displayContainer");if(null!=c){var d=new Zj(Xb(this.B));if(!Fg(Xb(c),d.contains,d))throw VK(rR,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.B;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Eg&&(c.Eg=[]);rda(c.Eg);fa(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);hc(d,c)}this.content=b;this.C=a;this.Aq();oK.o&&(a=zP(),b=A(this.Vw,this),a.F=b);this.o=this.C.si(pda(this));this.da=!0}};
h.Oe=function(a){a=DS(LT(a),"rm")?a.K:$T(a);E(a,function(a){ob(this.F.F,a)},this)};
h.Xd=function(a,b){E(b,function(b){b=tT(a,b);dT(this.F.B,b)},this)};
h.Ti=function(a){if(a instanceof yT){var b=zT(a);E(b.Na(),function(a){var d=b.get(a);E(d,function(b){fT(this.F.B,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.Ie=function(){return-1};
h.pf=function(a,b,c){this.xi(c)};
h.pause=w;h.resume=w;h.skip=w;h.start=function(){WY(this);if(!this.Ea)throw TK(OY,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.vo=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&XK(this,rR,null,"volume",String(a));this.volume=a};
h.xi=function(a){if(!Vb(wga,a))throw VK(rR,null,"view mode",a);this.S=a};
h.getMediaUrl=function(){return null};
h.uo=function(){return null};
h.wo=function(){return null};
h.ef=function(){return null};
h.Vw=function(){var a=this.getCurrentTime(),b=this.Ie(),c=this.getCurrentAd();return{currentTime:a,duration:b,isVpaid:null!=c?FU(this.getCurrentAd()):!1,volume:this.vo()}};
h.VB=function(a){E(sb(H$,Wb(J$)),function(b){var c=eT(a.o,b);lb(c)||this.Il(b,c)},this);
nda(this.F,a.H)};
h.Il=function(a,b){E(b,function(a){var b=a.getType();fT(this.F.B,b,a.o)},this)};B($Y,KY);h=$Y.prototype;h.start=function(){$Y.N.start.call(this);this.C.Pe();this.K=this.C.Ee();if(null!=this.K){UY(this,"show_ad");of(this.K);var a=this.Dn();oK.o?EP(zP(),a):kba(XU(),a);this.K.appendChild(a);this.Rh();E(this.aa,function(a){a()});
nb(this.aa);this.V=!0}};
h.pf=function(a,b,c){$Y.N.pf.call(this,a,b,c);this.Rh()};
h.T=function(){Nb(this.A);this.C=this.A=null;this.V=!1;oK.o?zP().C=null:XU().B=null;null!=this.K&&(of(this.K),this.K=null);$Y.N.T.call(this)};
h.Dn=function(){var a=cU(LY(this));if(null==a)throw a=VK(dY),bZ(this,a),a;var b=LY(this);CT(a,RY(this));DT(a,this.kw);a.D||ET(a,pa(this.Jk,b,a));try{SY(this,b)}catch(d){throw bZ(this,d),d;}this.Oe(b);var c=ZW(b,this.o);this.F.o=c;b.A&&(this.Oe(b),(b=b.A)&&this.Xd(b,Wfa));this.Xd(a,["start"]);aZ(this,a);return this.Gh([a.Jd()])};
h.xo=function(a,b){return new eY(a[0],b)};
h.Gh=function(a){null!=this.A&&this.A.stop();this.A=this.xo(a,A(this.Zh,this));a=this.A.la();L(a,"autoalign",this.B.An);V()&&L(a,"viewmode-fullscreen","fullscreen"==this.S);a.appendChild(this.ha);RY(this).P(a,"click",lc);(MY(this)&&nU(LY(this))||this.B.useStyledNonLinearAds)&&this.Vj(this.A.o);return a};
h.Vj=function(a){var b=RY(this);this.Z=pQ(dda);b.P(this.Z,"click",this.Cw);var c="",d=ra("Close"),c=pQ(cda,{close:c+d});b.P(c,"click",this.mi);J(a,"extra-padding");null!=this.ma&&728<=this.ma.getWidth()&&J(a,"wide-overlay-ad");a.appendChild(c)};
h.Rh=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=hg(this.C.Ee()),f;f=V()?hg(uf(this.A.o)):hg(this.A.o);if(f.width+c>e.width||f.height+d>e.height)throw c=VK(cga,null),bZ(this,c),d={},d.pid=SU.getInstance().o,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=cU(LY(this)).getContentType(),d.vm=this.S,oL(nL.getInstance(),38,d,!0),this.stop(),c;}};
h.kw=function(a){VY(this,"click");lc(a)};
h.mi=function(){UY(this,"close");this.Zh(!0)};
h.Jk=function(a,b){ET(b,w);this.V?this.Rg(a,b):this.aa.push(A(this.Rg,this,a,b))};
h.Rg=function(a){a=ZW(a,this.o);this.F.o=a;VY(this,"impression");UY(this,"creativeview");VY(this,"start")};
h.Zh=function(a){null!=this.A&&(this.A.stop(),null!=this.Z&&rf(this.Z,this.A.o),a?this.wa("userClose"):this.wa("autoClose"))};
h.Cw=function(a){lc(a);this.A.show();this.A.play();rf(this.A.o,this.Z);Sd(function(){lg(this.ha,!1)},500,this);
lg(this.ha,!0);this.wa("userRecall")};B(cZ,$Y);h=cZ.prototype;h.xo=function(a,b){if(this.U||null==b)b=w;var c;V()&&this.U?c=new eY(a[0],b):1<a.length?eZ(this)||"fullscreen"==this.S&&V()?c=new hY(a):(c=new gY(a),c.M=15E3):c=new eY(a[0],b);c.qo=100;this.U&&(c.ap=30);c.bp=45E3;c.pq=6E3;L(c.o,"scalable",this.U);L(c.la(),"yt-text-overlay",V()&&this.U);return c};
h.bC=function(a){var b=a.A;null!=b?(null==this.fa&&(this.fa=a.getExtension("AdSense").C),ET(b,pa(this.Jk,a,b)),DT(b,pa(this.lw,a,b)),"Text"==b.getContentType()&&(this.U=!0),this.O.push(b)):(b=TK(dY),b=TW(b,a),RK(ZT(a),b))};
h.Gd=function(a,b,c){cZ.N.Gd.call(this,a,b,c);this.B.An=!0;a=LY(this);lb(aU(a))?V()&&this.wa("companionBackfill"):SY(this,a)};
h.Dn=function(){null==this.O&&(this.O=[],E(this.ads,this.bC,this));if(0==this.O.length)throw VK(dY);var a=[];E(this.O,function(b){CT(b,RY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Fn=!0);a.push(b.Jd());Oaa(b,this.fa.F)},this);
if(0==a.length)throw VK(dY);sda(this);return this.Gh(a)};
h.start=function(){cZ.N.start.call(this);!this.ea&&eZ(this)&&(this.ea=!0,this.wa("contentPauseRequested"));null!=this.D&&this.D.start();if(this.V){var a=fZ(this);oL(nL.getInstance(),33,a)}};
h.mi=function(a){cZ.N.mi.call(this,a);E(this.O,function(a){var c=ZW(a.getAd(),this.o);this.F.o=c;this.Xd(a,["close"]);UY(this,"close");this.F=new HY},this)};
h.Zh=function(a){cZ.N.Zh.call(this,a);eZ(this)&&(null!=this.K&&of(this.K),this.ea&&(this.ea=!1,this.wa("contentResumeRequested")))};
h.Gh=function(a){a=cZ.N.Gh.call(this,a);if(eZ(this)){var b=BS(2);J(this.A.o,b);J(a,b)}return a};
h.Vj=function(a){if(eZ(this)){var b=wf(a);b&&((a=sf(a)[0])&&Mf(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense"),this.D=new FY(b,a.C||new kV,2,dZ(this),!0),RY(this).P(this.D,"skip",this.Fw),RY(this).P(this.D,"end",this.Sw))}else cZ.N.Vj.call(this,a),b=pQ(eda,dZ(this)),a.appendChild(b)};
h.Jk=function(a,b){this.V?this.Rg(a,b):this.aa.push(A(this.Rg,this,a,b));ET(b,w);this.wa("impression")};
h.Rg=function(a,b){var c=ZW(a,this.o);this.F.o=c;this.Oe(a);this.Xd(b,["creativeview"]);UY(this,"impression");UY(this,"creativeview");VY(this,"start");this.F=new HY};
h.lw=function(a,b,c){c=dg(c);a=a.getExtension("AdSense");a=new N(a.B);var d=b.getWidth();(0,window.isNaN)(d)&&(d=gg(b.Jd()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=gg(b.Jd()).height);b=wK();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.S,"sdkv=h.0.0.0","eids="+CK(b)];V()||(c=hg(this.C.Ee()),d=this.D?mda(this.D):new oe(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));NK(a,"elementclick",b);E(this.O,function(a){var b=ZW(a.getAd(),this.o);this.F.o=b;aZ(this,
a);UY(this,"click");this.F=new HY},this);
this.wa("click")};
h.xi=function(a){this.S!=a&&(cZ.N.xi.call(this,a),this.wa("expandedChanged"))};
h.Rh=function(){cZ.N.Rh.call(this,this.D?15:0,this.D?65:0)};
h.Fw=function(){gZ(this,"skip")};
h.Sw=function(){gZ(this,"close")};B(hZ,gK);jZ.prototype.videoCount=0;kZ.prototype.isListed=!0;B(lZ,lY);var Z$=Math.ceil(10*3.14);lZ.prototype.Mk=function(a,b){var c=(b-a)/b*Z$+" "+Z$;null!=this.o&&Mf(this.o,"stroke-dasharray",c)};B(oZ,F);oZ.prototype.show=function(a,b){pZ(this);BG&&a?(a.appendChild(this.A),this.ya=Sd(A(this.o,this,b),2E3)):b()};
oZ.prototype.o=function(a){this.ya=0;qf(this.A);a()};
oZ.prototype.T=function(){pZ(this);oZ.N.T.call(this)};B(qZ,kc);B(rZ,H);sZ.prototype.muted=function(a,b){return!this.mute&&a||0<this.volume&&0==b};
var yda={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=rZ.prototype;h.T=function(){tZ(this);rZ.N.T.call(this)};
h.Sz=function(a){var b=a.B;this.C.H.measurable_impression=null!=b?b.viewabilityString:null;a.B.queryId==this.G&&uZ(this,"measurable_impression",!0,!1)};
h.xB=function(a){a=a.B;a.queryId==this.G&&(this.C.H.viewable_impression=null!=a?a.viewabilityString:null,uZ(this,"viewable_impression",!0,!0))};
h.wz=function(a){a=a.B;var b=J$[a.eventName];b&&a.queryId==this.G&&(this.C.H[b]=null!=a?a.viewabilityString:null,uZ(this,b,!0,!0))};
h.yx=function(){var a=this.o.Nd();if(-1!=a){this.o.sg(.25*a)&&uZ(this,"firstquartile",!0,!0);this.o.sg(.5*a)&&uZ(this,"midpoint",!0,!0);this.o.sg(.75*a)&&uZ(this,"thirdquartile",!0,!0);var b=this.C,c=this.o.getCurrentTime();0>b.C&&(Haa(b.B,a),b.C=0);for(var a=eT(b.B,"progress"),d=b.C;d<a.length;d++){var e=a[d];if(ZS(e.A)>c)break;b.C=d+1;OK(e.o,b.o)}}vZ(this)};
h.xx=function(){this.K=!0;uZ(this,"impression",!0,!0);uZ(this,"creativeview",!0,!0);null!=this.L||null!=this.B||this.A.P(this.o,"click",this.Yk);null!=this.L&&(this.F=new PP,this.A.P(this.F,"click",this.Yk,!1),QP(this.F,this.L));null!=this.B&&(this.H=new PP,this.A.P(this.H,"click",this.Yk,!1),QP(this.H,this.B));uZ(this,"start",!0,!0);(this.o.qf()||0==this.o.md())&&uZ(this,"mute",!1,!1)};
h.zx=function(){var a=this.o.qf(),b=this.o.md(),c=this.D;c.mute&&!a||!a&&0==c.volume&&0<b?uZ(this,"unmute",!1,!1):this.D.muted(a,b)&&uZ(this,"mute",!1,!1);this.D.mute=a;this.D.volume=b};
h.vx=function(){this.o.Je()?wZ(this):this.o.rf()&&!this.o.Bo()&&(this.D.o=!0,uZ(this,"pause",!1,!1))};
h.wx=function(){this.D.o&&(this.D.o=!1,uZ(this,"resume",!1,!1))};
h.ox=function(){wZ(this)};
h.Yk=function(){uZ(this,"click",!1,!1)};
h.qx=function(){uZ(this,"error",!1,!1)};
h.tx=function(){uZ(this,"mediaLoadTimeout",!1,!1)};
h.Zp=function(){uZ(this,"skipshown",!0,!1)};
h.zp=function(){uZ(this,"video_extend_shown",!0,!1)};
h.$v=function(a){uZ(this,a.type,!1,!1)};
h.kB=function(a){this.$(a)};
h.wB=function(){uZ(this,"videoShareShown",!0,!1)};
h.Lo=function(){uZ(this,"skip",!0,!1)};
h.sp=function(){uZ(this,"video_extend_auto_skipped",!0,!1)};
h.Ap=function(){uZ(this,"video_extend_clicked",!0,!1)};
h.yA=function(){uZ(this,"skip",!0,!1)};
h.rx=function(){uZ(this,"fullscreen",!1,!1)};
h.vz=function(){uZ(this,"exitfullscreen",!1,!1)};B(xZ,KY);h=xZ.prototype;h.T=function(){CZ(this);this.Ia.dispose();zZ(this);this.ea=!1;this.Z=null;E(this.va.Ka(),Td);var a=!1;null!=this.C&&(a=this.C.Kk(),this.C.ga(),this.C=null);this.U&&(this.U=!1,this.o.rf()||this.o.Je()||this.o.pause(),dL()&&!a&&(this.o.sf(.001),this.o.load("","")),aL()&&this.o.Od()&&!a&&this.o.pk(),this.wa("contentResumeRequested"),this.wa("allAdsCompleted"));xZ.N.T.call(this)};
h.Ug=function(){zZ(this);xZ.N.Ug.call(this);MY(this)&&(this.F=new HY,this.O=new rZ(this.F),this.ha=!1,this.wa("loaded"))};
h.zl=function(a){xZ.N.zl.call(this,a);null!=this.o&&AK(wK(),9419278)&&this.o.Nl(1)};
h.Nv=function(a,b){b.preventDefault();this.V||(this.V=!0,VY(this,"video_card_endcap_action"));a&&(this.D.pause(),MK(a))};
h.Qn=function(){yZ(this,function(){BZ(this,"video_card_endcap_dismiss")})};
h.Ov=function(){BZ(this,"video_card_endcap_collapse")};
h.Lx=function(a,b,c){if(!this.qa){this.qa=!0;var d=WP(b);d&&(a.F=d);if(this.B.useVideoAdUi){var d=a.getExtension("AdSense"),e;(e=this.Ga||a.B.Dc("show_ads_pay_this_creator_info_card"))||(e=null===b?!1:"modules"==(new N(b)).De().toLowerCase()||$P(b));e=e||null!=d&&d.J;var d=OT(a)?null:tU(a),f;if(V()||!this.ma)f=0;else{if(f=$K()){a:{for(f=0;f<this.ads.length;++f)if(!XY(this.ads[f])){f=!1;break a}f=$K()}f=!f||null==this.C||!this.C.kk()}f=f||BU(a)}f&&(this.B.jm=!0,this.B.Yq=!0);if(V()||this.B.Yq){f=this.B;
var k=C(D(xU(a)))?!1:this.B.jm,l=this.ma?V()||!1:!0,m=V();this.ma?XY(a):WT(a);var p=QT(a),d=EY(e,a.F,d,f);d.B=k;d.O=l;d.M=!0;d.K=m;d.S=p;d.C=f.im;d.V=f.useShareButton;d.Y=f.BC;d.Da=0;f.im&&(e="",f=ra("Visit Advertiser"),d.Bf=e+f);AK(wK(),41351019)}else WT(a)||!C(D(a.F))?(f=a.F,!C(D(f))&&null!==d&&0<ZS(d)&&(e=!0),d=EY(e,f,d,this.B),d.H=e?gaa:faa):(d=EY(e,a.F,d,this.B),d.U=!1,d.F=!1,d.o=!1);e=this.C.hi();null===e?e=window.document.body:of(e);f=LY(this);k=1E3*rU(f);l=f.getExtension("why_this_ad");m=
f.getExtension("mute");p=f.B.Dc("enable_why_this_ad_for_desktop");d.D=new zY(l,m,p);tY(d.D)&&(m=null!=l?l.K:void 0,l="<span class='videoAdUiAdSettingsShortTooltip'>",m?l+=X(m):(m=ra("Click for Ad Settings"),l+=m),l=xQ(l+"</span>"),d.te=l);this.A=new sY(d,e,k);e=f.F;null!=e&&(DZ(this),d.Y&&TZ(this,e));this.Ga&&(f=a.getExtension("AdSense"),null!=f?(e=this.A,f=D(f.A),null!=e.H&&(lg(e.H,!0),f=new N(f),f=(f.A+f.B).replace(/^www\./i,""),C(D(f))?wY(e):Af(e.H,f)),null!=e.L&&lg(e.L,!0)):wY(this.A));e=[];d.F&&
e.push("adAttribution");d.o&&e.push("countdown")}else d&&this.B.Uj&&(DZ(this),TZ(this,d));d=this.O;e=this.o;f=this.C.sk();k=this.A;tZ(d);d.C.D=a.ea;d.o=e;d.B=k||null;d.o.yi();d.D=new sZ(d.o);d.L=f||null;d.A=new Cm(d);d.G=a.ea;e=oK.o?zP():XU();d.A.P(e,"externalActivityEvent",d.wz);d.A.P(e,"measurable_impression",d.Sz);d.A.P(e,"viewable_impression",d.xB);d.A.P(d.o,"timeUpdate",d.yx);d.A.P(d.o,"volumeChange",d.zx);d.A.P(d.o,"pause",d.vx);d.A.P(d.o,"play",d.wx);d.A.P(d.o,"end",d.ox);d.A.P(d.o,"beginFullscreen",
d.rx);d.A.P(d.o,"endFullscreen",d.vz);d.A.P(d.o,"skip",d.Lo);d.A.P(d.o,"skipShown",d.Zp);d.A.P(d.o,"video_extend_auto_skipped",d.sp);d.A.P(d.o,"video_extend_clicked",d.Ap);d.A.P(d.o,"video_extend_shown",d.zp);d.A.P(d.o,"start",d.xx);d.A.P(d.o,"error",d.qx);d.A.P(d.o,"mediaLoadTimeout",d.tx);null!=d.B&&(d.A.P(d.B,"urlNavigationRequested",d.kB),d.A.P(d.B,"videoShareShown",d.wB),d.A.P(d.B,"skipshown",d.Zp),d.A.P(d.B,"skip",d.Lo),d.A.P(d.B,"PUBLISHER_INVOKED_SKIP",d.yA),d.A.P(d.B,"video_extend_auto_skipped",
d.sp),d.A.P(d.B,"video_extend_clicked",d.Ap),d.A.P(d.B,"video_extend_shown",d.zp),d.A.P(d.B,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoTitleClicked videoShareClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "),d.$v));RY(this).P(this.O,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoShareClicked videoShareShown videoTitleClicked start".split(" "),
this.gq);RY(this).P(this.o,"loaded",this.uB);RY(this).P(this.o,"cardsStateChange",this.Ww);RY(this).P(this.o,"timeUpdate",this.jq);RY(this).P(this.o,"volumeChange",this.Zw);AK(wK(),9419966)&&RY(this).P(this.o,"showCompanionAdLoaded",this.QA);this.Oe(a);d=ZW(a,this.o);this.F.o=d;d=a.A;null!=d&&d instanceof yT&&(this.Xd(d,H$),this.Ti(d),d=RY(this),Dm(d,this.O,"error",this.Xw,this),Dm(d,this.O,"mediaLoadTimeout",this.Yw,this));YY(this,a);PT(a)&&(this.O.J=30);this.o.Rl(Bda(this,a));this.o.load(b,c)}};
h.LB=function(a,b,c){null!==a.G&&oL(nL.getInstance(),34,{evt:"filled"},!0);this.Ca||(this.Ca=!0,this.wa("contentPauseRequested"));this.U=!0;this.Lx(a,b,c);UY(this,"show_ad");this.setVolume(this.aa);this.A&&(C(D(HZ(a)))?(b=this.A,null!=b.D&&(b.B.za(b.D,"click",b.lj),Mf(b.D,"cursor","default"))):(b=this.A,null!=b.D&&(b.B.P(b.D,"click",b.lj),Mf(b.D,"cursor","pointer"))),b=a.A.Ta,lb(b)||jda(this.A,b),this.A.show());this.C.Fg();this.Z=a;try{EZ(this)}catch(d){LZ(this,TY,d);return}SU.getInstance().end("pi");
SU.getInstance().start("bt");this.Ia.show(this.C.hi(),A(this.o.play,this.o))};
h.Ji=function(){Cda(this);this.wa("loaded");this.$(new hZ(LY(this)))};
h.skip=function(){MY(this)&&PT(LY(this))&&(null!=this.A?this.A.skip():(UY(this,"skip"),SZ(this)))};
h.Gq=function(){VY(this,"skipshown")};
h.start=function(){xZ.N.start.call(this);SU.getInstance().start("pi");this.fa=[];try{var a=LY(this);this.K=IZ(this,a);yZ(this,A(xZ.prototype.LB,this,a,this.K.A,this.K.o))}catch(b){MZ(this,b),this.Ug(),MY(this)?(WK(VK,this,NZ,b,void 0),this.start()):(this.U?WK(VK,this,NZ,b,void 0):(null!=this.G&&JU(this.G,HU()),XK(this,NZ,b)),this.stop())}};
h.vo=function(){WY(this);return this.o.qf()?0:this.o.md()};
h.setVolume=function(a){WY(this);this.U?this.o.setVolume(a):this.aa=a};
h.pause=function(){WY(this);this.D?this.D.pause():this.o.pause()};
h.resume=function(){WY(this);this.D?this.D.play():this.o.play()};
h.getCurrentTime=function(){WY(this);var a=this.D?this.D.A:0;return this.o.getCurrentTime()+a};
h.Ie=function(){WY(this);var a=MY(this)?yU(LY(this)):0;return this.o.Nd()+a};
h.ef=function(){return this.o.ef()};
h.Xw=function(){this.o.getError();LZ(this,NZ,VK(NZ,this.o.getError()))};
h.Yw=function(){LZ(this,K$,VK(K$,null,((0<this.B.loadVideoTimeout?this.B.loadVideoTimeout:15E3)/1E3).toString()))};
h.Il=function(a,b){xZ.N.Il.call(this,a,b);PZ(this,a)};
h.gq=function(a){switch(a.type){case "start":Lda(this);eba();this.wa("start");qda(this);break;case "impression":this.wa("impression");break;case "why_this_ad_url":this.La=this.o.rf();KZ(this,"why_this_ad_url");this.pause();break;case "pause":this.wa("pause");break;case "why_this_ad_got_it":KZ(this,"why_this_ad_got_it");this.La||this.resume();break;case "resume":this.wa("resume");break;case "firstquartile":this.wa("firstquartile");break;case "midpoint":this.wa("midpoint");break;case "thirdquartile":this.wa("thirdquartile");
break;case "complete":zda(this)||(this.wa("complete"),AZ(this));break;case "click":this.A&&this.A.o.B?this.o.rf()?this.resume():this.pause():OZ(this);break;case "engagedview":QZ(this);this.wa("engagedview");break;case "urlNavigationRequested":this.$(a);break;case "videoAuthorIconClicked":VZ(this);break;case "videoAuthorClicked":VZ(this);break;case "videoClicked":this.wa("videoClicked");break;case "videoLearnMoreClicked":this.D&&!this.V&&(this.V=!0,VY(this,"video_card_endcap_action"));this.o.pause();
AK(wK(),41351017)&&QZ(this);OZ(this);break;case "videoShareClicked":Hda(this);break;case "videoShareShown":Ida(this);break;case "videoTitleClicked":Jda(this);break;case "skipshown":this.wa("skippableStateChanged");break;case "video_extend_auto_skipped":SZ(this,!0);break;case "skip":this.D?this.Qn():SZ(this);break;case "MUTE_AD":this.wa("MUTE_AD"),yZ(this,function(){AZ(this)})}};
h.Oe=function(a){xZ.N.Oe.call(this,a);PZ(this,"impression")};
h.Xd=function(a,b){xZ.N.Xd.call(this,a,b);E(b,function(a){PZ(this,a)},this)};
h.Ti=function(a){xZ.N.Ti.call(this,a);a instanceof yT&&(a=zT(a),E(a.Na(),function(a){PZ(this,a)},this))};
h.uo=function(){if(!MY(this))return null;try{return IZ(this,LY(this)).A}catch(a){return null}};
h.getMediaUrl=function(){if(!MY(this))return null;var a=LY(this);if(!QY(a))throw VK(JZ);a=a.A.K;return lb(a)?null:a[0].A};
h.uB=function(){this.wa("adCanPlay")};
h.Ww=function(){var a=this.A;null!=a.A&&L(a.A,"ytp-iv-drawer-open",this.o.yo())};
h.jq=function(){var a=this.Ie(),b;WY(this);b=this.D?this.Ie():this.o.zo();var c=this.getCurrentTime(),d=0,e=0;MY(this)&&(e=LY(this),d=e.D.A,e=e.D.C);if(null!=this.A&&0<=a&&0<=c){var f;if(f=!this.na)f=3==LY(this).ma;if(f){f=this.o.Nd();var k=vU(LY(this));f=Math.abs(f-k);2<f&&(f=VK(fga,null,Number(f).toFixed(2)),f=TW(f,LY(this),this.o),k=ZT(LY(this)),RK(k,f));this.na=!0}this.A.update(c,b,a,d,e)}};
h.Zw=function(){var a=this.o.md();a!=this.aa&&(this.aa=a,this.wa("volumeChange"),0==a&&this.wa("mute"))};
h.QA=function(){this.ea=!0;oL(nL.getInstance(),39,{},!0);try{EZ(this)}catch(a){LZ(this,TY,a)}};
h.mw=function(a){var b=a.o;if("companion-setup-complete"==b.data){a=LY(this);var c=(0,window.encodeURIComponent)(D(xU(a)))+","+(0,window.encodeURIComponent)(RZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=xU(a)?210:185}else"pause-video"==b.data&&this.pause()};B(WZ,kc);B(XZ,KY);h=XZ.prototype;
h.init=function(a){XZ.N.init.call(this,a);this.na=I();RY(this).P(window,"message",this.yB);oK.o?RY(this).P(zP(),I$,this.Ep):RY(this).P(XU(),I$,this.Ep);if(this.K)this.$(new WZ);else{a=zU(LY(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=$g(a,"v",this.B.contentId));V()&&(b=Wg(a,"st"),a=$g(a,"st",b?b+" yt":"yt"))}a=D(a)}else{var b=new N(a),c=new N("http://tpc.googlesyndication.com/pagead/js/loader10.html");
"https"==b.C&&ah(c,"https");this.ha=b.A;a=eh(c,a||"",void 0).toString()}this.D=M("iframe",{src:IK(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});RY(this).P(this.D,"load",this.Fv);RY(this).P(this.D,"error",this.Lz);this.C.Ee().appendChild(this.D)}};
h.Gd=function(a,b,c){XZ.N.Gd.call(this,a,b,c);this.M=cU(LY(this))instanceof yT;this.A=a.si(!1);this.K||(RY(this).P(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.EA),RY(this).P(this.A,L$,this.Uy))};
h.stop=function(){this.C.ga();XZ.N.stop.call(this)};
h.start=function(){XZ.N.start.call(this);if(!V()){var a={};a.pid=SU.getInstance().o;a.dn=this.ha;a["if"]=this.K;oL(nL.getInstance(),29,a,!0)}a=LY(this);this.F.D=a.ea;var b=ZW(a,this.A);this.F.o=b;if(b=a.A)this.Oe(a),this.Xd(b,H$),this.Ti(b),YY(this,a);this.A.yi();UY(this,"show_ad");this.C.Pe();null!=this.D&&(this.D.style.display="block");this.va=!0;this.M&&this.wa("contentPauseRequested");d_(this)};
h.pf=function(a,b,c){XZ.N.pf.call(this,a,b,c);$Z(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.U||$Z(this,"pauseAd")};
h.resume=function(){this.U&&$Z(this,"resumeAd")};
h.setVolume=function(a){XZ.N.setVolume.call(this,a);$Z(this,"setAdVolume",{value:a})};
h.T=function(){this.K&&this.$(new WZ);qf(this.D);this.M&&this.wa("contentResumeRequested");this.wa("allAdsCompleted");this.aa=!1;this.Z=[];XZ.N.T.call(this)};
h.Ji=function(){};
h.Fv=function(){if(!this.K){var a=this.A.yk();lb(a)&&(a=this.B.Eg);$Z(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}YZ(this)};
h.yB=function(a){a=a.o;if(this.K){if(a=BR(a.data),null!=a){try{var b=be(a.data)}catch(c){return}null!=b&&b.session==this.ea&&b_(this,b)}}else if(a.source==this.D.contentWindow){try{b=be(a.data)}catch(c){return}b.session==this.ea&&b_(this,b)}};
h.Lz=function(a){a_(this,dY,a);this.stop()};
h.Ep=function(a){var b=a.type;if(jb(I$,b)){if("externalActivityEvent"==b&&(b=a.B.eventName,!J$[b]))return;VY(this,b)}};
h.EA=function(a){switch(a.type){case "timeUpdate":a=this.A.Nd();var b=this.A.getCurrentTime();ZZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":e_(this,"ended");break;case "loaded":e_(this,"loadstart");break;case "mediaLoadTimeout":e_(this,"stalled");break;case "play":e_(this,"playing");break;default:e_(this,a.type)}};
h.Uy=function(a){e_(this,a.type)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.Ie=function(){return this.V};
h.gA=function(){$Z(this,"stopAd")};h=f_.prototype;h.sk=function(){return this.o.sk()};
h.hi=function(){return this.o.hi()};
h.Ee=function(){return this.o.Ee()};
h.si=function(a){return this.o.si(a)};
h.setSize=function(a,b){this.o.setSize(a,b)};
h.kk=function(){return this.o.kk()};
h.Kk=function(){return this.o.Kk()};
h.Lk=function(){return this.o.Lk()};
h.ti=function(){return this.o.ti()};
h.ga=w;h.Fg=w;h.Pe=w;B(g_,H);h=g_.prototype;h.init=function(a,b,c){null!=c&&(this.U=c);null!=this.o&&this.o.pf(a,b,c);null==this.G&&(this.G=new Cm(this),Dm(this.G,this.K,"adsLoaderSdkAdError",this.cy,this));j_(this)};
h.start=function(){this.L=!0;Pda(this);0<this.A.length?l_(this):("always"==oK.A&&null!=this.V&&JU(this.V,HU()),WK(TK,this,IW,void 0,void 0),0==this.bc&&this.$("contentResumeRequested"),q_(this))};
h.destroy=function(){null!=this.G&&(this.G.dispose(),this.G=null);m_(this);oK.A=this.O;this.L=!1};
h.getCurrentAd=function(){return this.C<this.A.length?this.A[this.C].o[0]:null};
h.Za=function(){return this.L};
h.pause=function(){null!=this.o&&this.o.pause()};
h.resume=function(){null!=this.o&&this.o.resume()};
h.skip=function(){null!=this.o&&this.o.skip()};
h.getCurrentTime=function(){return null!=this.o?this.o.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.M=a,null!=this.o&&this.o.setVolume(this.M))};
h.np=function(a){oK.A=this.O;var b=a.F;lb(b)?this.F++:(a=a.D,a.o&&E(b,function(a){a.fa=!1},this),this.S=Oda(this,b),ob(this.A,new oba(b,a.o,a.A)),this.F++,this.G.za(this.K,"adsLoaderSdkAdLoaded",this.np,!1,this));
j_(this)};
h.cy=function(a){a=a.B;oK.A=this.O;a.getMessage();WK(TK,this,IW,void 0,void 0);this.F++;if(!i_(this)||2<=this.A.length-this.C)a=TK(IW),this.$(new fK(a));j_(this)};
h.fA=function(){m_(this);q_(this)};
h.ey=function(a){a.getError();this.C++;l_(this)};
h.Rw=function(){this.$("userClose")};
h.Ow=function(){this.$("autoClose")};
h.Qw=function(){this.C++;l_(this)};
h.Pw=function(){this.aa||(this.$("contentPauseRequested"),this.aa=!0)};
h.op=function(a){Qda(this,a.type,a.getAd());this.$(a)};B(s_,kc);B(t_,H);t_.prototype.getCurrentTime=function(){return this.o.currentTime};
t_.prototype.D=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)w_(this);else{var b=Uda(this,a);this.F?E(b,function(a){v_(this,!0,a)},this):v_(this,!0,db(b));
v_(this,!1,Vda(this,a))}}};
t_.prototype.G=function(){w_(this)};B(x_,F);x_.prototype.A=function(){return this.o};B(bY,KY);h=bY.prototype;
h.Gd=function(a,b,c){null!=this.D&&(u_(this.D),this.D.dispose(),this.D=null);bY.N.Gd.call(this,a,b,c);var d=this.ea.o.Na();b=new SR(b);var e=c&&0<=c.Gl?c.Gl:4;this.ma=null!=c?c.lq:0;this.D=new t_(b,d,{prefetch:e});E(d,function(b,c){if((0,window.isNaN)(b))throw TK(iV,null,"timeOffset",b+"");var d=fa(b)&&!(0,window.isNaN)(b)?this.ea.o.get(b,[]):[];if(!lb(d)){d=new g_(d,b,0==b||-1==b?b:c,this.Z,a,this.B,this.G);if(xg(this.L,b))throw TK(dga,null,"Multiple ad breaks cannot share same ad play time.");this.L.set(b,
d)}},this);
this.O=db(d);Ih(d,function(a){if(-1==a)return this.O=a,!0;this.O=this.O<a?a:this.O;return!1},this)};
h.init=function(a){bY.N.init.call(this,a);null!=this.D&&(C_(this),a=RY(this),Dm(a,this.D,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Dm(a,this.D,"adBreakReady",this.ay,this),Dm(a,this.Z,"contentComplete",this.ez,this),this.Z.o=!1,a=this.D,a.A||(null==a.C&&(a.C=new Cm(a)),a.C.P(a.o,"currentTimeUpdate",a.D,!1),a.C.P(a.o,"contentWrapperError",a.G,!1)),a.o.start(),a.A=!0,this.D.D(),a=fa(0)&&!(0,window.isNaN)(0)?this.ea.o.get(0,[]):[],lb(a)&&this.wa("contentResumeRequested"))};
h.Ji=function(){this.Md();this.$(new hZ(null))};
h.destroy=function(){this.dispose()};
h.T=function(){this.Z.o=!0;if(0<this.L.Ya()){var a=this.L.Ka();E(a,this.bf,this);this.L.clear()}C_(this);E_(this);null!=this.C&&(this.C.ga(),this.C=null);bY.N.T.call(this)};
h.start=function(){bY.N.start.call(this)};
h.stop=function(){null!=this.A&&(this.bf(this.A),this.wi())};
h.pause=function(){null!=this.A&&this.A.pause()};
h.resume=function(){null!=this.A&&this.A.resume()};
h.skip=function(){null!=this.A&&this.A.skip()};
h.setVolume=function(a){bY.N.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.Ie=function(){var a;null!=this.A?(a=this.A,a=null!=a.o?a.o.Ie():-1):a=-1;return a};
h.Md=function(){return this.ea.o.Na()};
h.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};
h.Aq=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(io(this.U,a),D_(this))};
h.Uw=function(){this.wa("userClose")};
h.Tw=function(){this.wa("autoClose")};
h.bf=function(a){a.destroy();this.L.remove(a.bc);this.A=null;null!=this.H&&(this.H.za(a,r_,this.$,!1,this),this.H.za(a,"adError",this.Vn,!1,this),this.H.za(a,"allAdsCompleted",this.hp,!1,this),this.H.za(a,"contentPauseRequested",this.to,!1,this),this.H.za(a,"contentResumeRequested",this.wi,!1,this),this.H.za(a,"adBreakInitialized",this.ip,!1,this))};
h.ez=function(a){this.aa=!0;-1==this.O?a.C=!1:V()&&!A_(this)||B_(this);Tda(this.D)};
h.ay=function(a){var b=a.B;a=0==b;var c=-1==b;this.V?(a?this.wa("contentResumeRequested"):!c||V()&&!A_(this)||B_(this),this.V=!1):(c?Sd(function(){var a=this.L.get(b);a&&this.bf(a);V()&&!A_(this)||B_(this)},500,this):a&&Sd(function(){this.wa("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.$(new gK("adBreakReady",null,a)))};
h.Vn=function(a){var b=a.getError();V()&&b&&"adLoadError"==b.getType()&&this.$(a)};
h.hp=function(a){this.bf(a.target);(A_(this)||!V()&&this.aa)&&B_(this);this.K=null;D_(this)};
h.to=function(){var a=this.D;a.o.stop();a.A=!1;this.wa("contentPauseRequested")};
h.wi=function(){this.wa("contentResumeRequested");if(!this.ha){var a=this.D;a.o.start();a.A=!0}this.K=null};
h.ip=function(a){this.K=null;D_(this);a=a.target;var b={};b.adBreakTime=a.bc;this.$(new gK("prefetched",a.getCurrentAd(),b))};
h.wa=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.$(new gK(a,b))};
h.wo=function(a,b){return this.fa=new x_(a,b)};B(F_,H);F_.prototype.T=function(){null!=this.o&&(this.o.za("adsManagerLoaded",this.$),this.o.za("adError",this.$),this.o.za("adLoadError",this.$),this.o=null);F_.N.T.call(this)};B(H_,kH);h=H_.prototype;h.Yc=function(){Q9(this.app,!0,this.playerType);this.app.Re(this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.Zc=function(a,b,c){Q9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Wf(d.getCurrentTime()+a,b,c,e)};
h.Rb=function(a,b){Q9(this.app,!0,this.playerType);this.app.Wf(a,b,void 0,this.playerType)};
h.Cr=function(){c$(this.app,this.playerType)};B(I_,mq);I_.prototype.getAdState=function(){return-1};J_.prototype.reset=function(){fv(this.o)};
J_.prototype.A=function(a,b){Yu(a,b,this.o)};
J_.prototype.info=function(a,b){dv(a,b,this.o)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Kf();return b?(b=b.toLowerCase(),b+=$a("hidden"),!n(a)||b in a?b:null):null})();Y_.prototype.start=function(){this.A=!0};
Y_.prototype.reset=function(){this.o=this.A=!1};Z_.prototype.S=function(a){if(4==a.info.type){var b=a.info.o.sq(a);a.info.equals(this.A)&&(this.A=db(b).info);E(b,this.S,this)}else 3==a.info.type&&this.o.push(a)};
Z_.prototype.V=function(a){a.dispose();this.F-=a0(a)};var kea=0;h=x0.prototype;h.SB=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.F?(this.J=a.headers,this.G=new window.Uint8Array(z0(this)),A0(this)):this.C.cancel("Cancelling")):this.Bj()};
h.Py=function(a){if(this.F)if(I(),a.done)this.C=null,this.Bj();else{a=a.value;this.D+=a.length;var b=a.length>=Math.max(z0(this)/2,16384),c=a.length+this.o>z0(this);(b||c)&&0!==this.o&&y0(this);b?this.B.push(a):(this.G.set(a,this.o),this.o+=a.length);this.F({timeStamp:I(),loaded:this.D});A0(this)}};
h.Bj=function(){this.F&&(this.H=!0,this.K())};
h.lh=function(a){return this.J.get(a)};
h.qk=function(){return this.D};
h.eg=function(){return+this.lh("content-length")};
h.mo=function(){return 200<=this.status&&300>this.status&&!!this.D};
h.Vo=function(){return!!this.B.length||this.H&&0<this.o};
h.Pq=function(){this.B.length||y0(this);return this.B.shift()};
h.Jr=function(){this.B.length||y0(this);return this.B[0]};
h.Ir=function(){this.C&&this.C.cancel("Cancelling");this.K=this.F=null};var lea=0;h=B0.prototype;h.XD=function(a){if(!this.B){this.status=this.o.status;try{this.A=this.o.response}catch(b){}this.C=!0;this.D(a)}};
h.YD=function(a){this.B||(this.status=this.o.status,this.F(a))};
h.lh=function(a){try{return this.o.getResponseHeader(a)}catch(b){return Fi(b),""}};
h.eg=function(){return+this.lh("content-length")};
h.qk=function(){return this.A.byteLength};
h.mo=function(){return 200<=this.status&&300>this.status&&!!this.A};
h.Vo=function(){return this.C&&!!this.A};
h.Pq=function(){var a=this.A;this.A=null;return new window.Uint8Array(a)};
h.Jr=function(){return new window.Uint8Array(this.A)};
h.Ir=function(){this.B=!0;this.o.abort()};C0.B=!1;C0.A=1E4;C0.o=2048;h=C0.prototype;h.getErrorCode=function(){return this.H};
h.start=function(a){var b=1==this.state,c=6==this.state;1==this.state||4==this.state||c&&E0(this);F0(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=v$-1,Tr(c)),this.G=0;else if(c){this.G++;b=C0.A*(.5+Math.random());1==this.G&&(b=2E3);Ai(A(this.Km,this,a),b);return}b?this.Km(a):Ai(A(this.Km,this,a),0)};
h.Km=function(a){if(!this.isDisposed()){this.K=v$++;if(this.o){var b=this.info,c=this.o.o,d=this.o.length;this.J=b.range?new Cr(b.range.start+c,b.range.end):Er(c,d);this.A=cs(this.info,this.J)}else this.J=this.info.range,this.A=cs(this.info);this.A.set("rn",this.K.toString());this.G&&this.A.set("playerretry",this.G.toString());0<=a&&this.A.set("rbuf",(1E3*a).toFixed().toString());a=Pr(this.A);try{var e=A(this.DB,this),f=A(this.FB,this),k=A(this.EB,this);this.B=(this.C.Y||this.C.Z&&5>this.O)&&"function"==
typeof window.fetch&&window.ReadableByteStream&&mea(this)&&this.info.range?new x0(a,f,k,e):new B0(a,f,k,e)}catch(l){this.H="net.ssl",F0(this,6)}0<this.C.G&&(this.F=Ai(A(this.rq,this),this.C.G));this.A.get("itag");this.A.get("range");I()}};
h.FB=function(){this.M=0;var a=this.timing;this.A&&vr(this.A.o);a.A=I();a.F=a.A;a.o=0;a.L=!1;a.J=!1;a.D=0;a.H=UJ(a.B);L0(a);a.M=a.G-a.A};
h.EB=function(a){if(!this.isDisposed()){this.D=this.B.status;J0(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:I();50>c-b.F||K0(b,c,a);b=this.timing;b.o>b.S&&8192<b.o&&3>this.state&&F0(this,3)}};
h.DB=function(){var a=this.B;if(!this.isDisposed()){this.F&&(Di(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.mo()){var c="";H0(this)&&(c=a.Jr(),c.length>C0.o?c="":(c=String.fromCharCode.apply(String,c),c=yr.test(c)?c:""));if(c){var a=this.info.B,d=this.A;d.o===a.o&&(a.o=Rr(d,c));F0(this,4)}else{var c=a.eg(),a=a.qk(),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?(J0(this,!0),c=this.timing,d=I(),c.L||(c.L=
!0,d=d>c.A&&4E12>d?d:I(),K0(c,d,a),e=(d-c.A)/1E3,!c.J&&8192<=c.o&&OJ(c.B,e,a),8192<=c.o&&(e=c.B,a=Math.max(a,8192),e.C.o(1,c.D/a),VJ(e)),QJ(c.B,(d-c.A)/1E3,c.o),c.C&&(c.C=!1)),I(),F0(this,5)):(b=!0,this.H="net.closed")}}else b=!0,this.H="net.connect";b&&(E0(this),F0(this,6),I())}};
h.rq=function(){this.F=window.NaN;if(!(this.isDisposed()||this.C.va&&this.B&&8192<=this.timing.o&&"quic"==this.B.lh("client-protocol"))){var a=I(),b=!1;if(8192<=this.timing.o){var c=this.timing.G;L0(this.timing);this.timing.G-c>=.8*this.C.G?(this.M++,b=5<=this.M):this.M=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.H.delay);if(b){b=this.timing;c=a;c=c>b.A&&4E12>c?c:I();a=(c-b.A)/1E3;if(8192<=b.o){b.D+=(c-b.F)/1E3;var c=b.B,d=b.K,d=Math.max(d,8192);c.C.o(1,b.D/d)}else c=b.B,c.B.o(1,a);VJ(c);QJ(b.B,a,b.o);
G0(this);this.H="net.timeout";F0(this,6)}else this.F=Ai(A(this.rq,this),this.C.G)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){Xr(this.info.o[0])&&5!=this.state&&(this.info.o[0].o.B=!1);F0(this,-1);this.S=null;G0(this);Di(this.F);this.F=window.NaN};B(M0,Rj);M0.G=!1;M0.o=2/24;M0.D=1E3;M0.B=.2;M0.C=1E4;M0.A=1800;M0.F=25;h=M0.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.F;d=d&&d.id;e.D="i";"auto"!=LA()&&(e.D="s");P_(e,b);dea(e,d);e.L=e.C;eea(e);e.B=e.G;b=X_(e);this.A=new Z_(this.C,b.audio);this.B=new Z_(this.C,b.video);this.R("videoformatchange",b);this.D=a;c?(this.K=!0,a1(this)):N0(this)};
h.resume=function(){this.K&&(this.K=!1)};
h.ev=function(a){this.A.K=!1;this.B.K=!1;this.resume();this.o=a;Kv(a)&&(a.o.addEventListener("updateend",A(this.uc,this),!1),a.A.addEventListener("updateend",A(this.uc,this),!1),a.o.addEventListener("error",A(this.Hi,this,!0),!1),a.A.addEventListener("error",A(this.Hi,this,!1),!1));P0(this,"msa");jv.measure&&jv.getEntriesByName("vta").length&&jv.measure("measure_vta_to_msa","vta");this.U&&this.O&&Iu();this.uc();this.ea=Ci(A(this.uc,this),M0.C)};
h.FA=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.o[0].o,c=!this.U&&b.info.video,d=!this.O&&b.info.audio,e=Math.max(0,a.info.o[0].D-this.D);4==a.state?(c?P0(this,"vrr"):d&&P0(this,"arr"),a.start(e)):5==a.state?(c?(this.U=a.A?Pr(a.A):"",Ku()):d&&(this.O=a.A?Pr(a.A):""),b=a.o.B,E(b,function(a){Xr(a.info)&&a.info.o.lo(a)}),!Gg(b,function(a){return Qs(a)},this)||b[0]&&b[0].info.o.il()?this.qd(!0,"fmt.unparseable",D0(a)):this.uc()):3==a.state?(this.uc(),c&&Ku()):6==a.state&&E0(a)?(this.qd(!1,
a.getErrorCode(),D0(a)),this.isDisposed()||((c=b.info.video&&(0<a.G||410==a.D||500==a.D||503==a.D)&&90&&!U_(this.F))&&cea(this.F,b.info),6==a.state&&"net.timeout"==a.H||c?(gea(b.info.video?this.B:this.A,a),this.uc()):a.start(e))):Xr(a.info.o[0])?(b.D=!0,this.uc()):this.qd(!0,"net.retryexhausted",D0(a))}};
h.uc=function(){this.da=window.NaN;R0(this);if(this.o&&Gv(this.o)&&!Iv(this.o))if(this.G.isLive)(0,window.isNaN)(this.H)?(this.H=this.D+2*M0.A,this.o.Jf(this.H)):this.H<=this.D+M0.A&&(this.H+=M0.A,this.o.Jf(this.H));else{var a=Math.max(this.A.B.index.cg(),this.B.B.index.cg());(!(0,window.isFinite)(this.H)||this.H!=a)&&0<a&&(this.o.Jf(a),this.H=a)}if(!this.isDisposed())if(a=this.G,a.isLive&&$s()-a.F>=a.A)3==this.G.D?this.qd(!0,"manifest.net.retryexhausted",{rc:this.G.G.toString()}):(this.G.L(),a1(this));
else{if(this.C.O&&$s()-this.G.J>=1E3*this.C.O&&h1(this)>=this.C.fa){var a=this.G,b=a.o,c;for(c in b)Tr(b[c].F);a.J=$s()}this.G.isLive&&(w0(this.B)||w0(this.A))&&(c=e1(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?a1(this):(R0(this),b0(this.B),b0(this.A),this.A.B.B||(!this.K||WJ(this.J)?N0(this):a1(this)),!this.o||W0(this,this.A,this.o.o)||W0(this,this.B,this.o.A)||((c=b1(this,this.B,this.o.A,null,this.A.G))&&!this.Z&&(this.Z=I(),P0(this,"vda"),this.Y&&
Ku()),a=jy(this.o.A.buffered,this.D+M0.o),(0,window.isNaN)(a)&&!n0(this.B)&&this.o.o.buffered.length||(n0(this.B)&&(a=window.NaN),a=b1(this,this.A,this.o.o,a,null),c|=a,a&&!this.Y&&(this.Y=I(),P0(this,"ada"),this.Z&&Ku())),n0(this.B)&&n0(this.A)&&Gv(this.o)&&!Iv(this.o)&&(a=this.o,Gv(a)&&a.B.endOfStream(),a=this.J,KA(UJ(a)),a.o=$s()),c&&!Kv(this.o)&&V0(this)),T0(this,this.B,R_(this.F)),T0(this,this.A,S_(this.F)),this.B.B.D||this.A.B.D?this.qd(!0,"net.retryexhausted"):(X0(this,this.B,this.A)&&Z0(this,
this.B,this.A),X0(this,this.A,this.B)&&Z0(this,this.A,this.B),this.C.Da&&this.V&&!this.K&&WJ(this.J)&&(c=this.V,this.V="",a=Lg(c),Bj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:A(this.qd,this,!1,"pathprobe.net",{shost:a})})),this.C.qa&&(this.C.U=10<=h1(this)),this.G.C&&a1(this)))}};
h.Hi=function(a){a=(a=a?this.A:this.B)&&a.C;this.qd(!0,"fmt.unplayable",a?as(a):void 0)};
h.seek=function(a){if(!this.isDisposed()){R0(this);this.fa=$s();this.B.B=R_(this.F);var b=f1(this,this.B,a,this.o&&this.o.A);this.A.B=S_(this.F);var c=f1(this,this.A,b,this.o&&this.o.o);this.D=Math.max(a,b,c);this.M=!0;V0(this)}};
h.T=function(){Q0(this);this.A&&(p0(this.A),p0(this.B));Ei(this.ea);this.B=this.A=null;M0.N.T.call(this)};
h.qd=function(a,b,c){this.R("error",new nv(b,a,c));a&&(this.o&&Gv(this.o)&&(a=this.o,Gv(a)&&a.B.endOfStream("network")),this.dispose())};B(i1,F);h=i1.prototype;h.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.K=c;this.A=d};
h.HE=function(a){this.G.call(this.A,new window.Uint8Array(a.message))};
h.Hz=function(){};
h.qp=function(a,b){Fi(b);var c=a;b instanceof window.DOMException&&(c+="."+b.name);this.F.call(this.A,c)};
h.Pp=function(a){this.G.call(this.A,a.message)};
h.Op=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,""+b+"."+a)};
h.Np=function(){this.K.call(this.A)};
h.update=function(a){this.C?this.C.update(a).then(null,Bi(A(this.qp,this,"u"))):this.o?this.o.update(a):this.D.addKey?this.D.addKey(this.L.A,a,this.J,this.H):this.D.webkitAddKey(this.L.A,a,this.J,this.H)};
h.T=function(){this.D=null;i1.N.T.call(this)};B(j1,F);h=j1.prototype;
h.createSession=function(a){var b=a.o;if(this.o.B){var c=this.G.createSession(),b=c.generateRequest(a.contentType,b),c=new i1(null,null,null,c,null);b.then(null,Bi(A(c.qp,c,"g")));return c}if(Ct(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 i1(null,null,null,null,b)}if(Et(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),f=0;f<a.length;f++)e[f]=a.charCodeAt(f);a=new window.Uint8Array(d);d=
0;f=new window.ArrayBuffer(b.byteLength+4+a.byteLength+4+c.byteLength);e=new window.Uint8Array(f);f=new window.DataView(f);e.set(b);d+=b.byteLength;f.setUint32(d,a.length,!0);d+=4;e.set(a,d);d+=a.length;f.setUint32(d,c.byteLength,!0);e.set(c,d+4);b=this.C.createSession("video/mp4",e);return new i1(null,null,null,null,b)}this.A.generateKeyRequest?this.A.generateKeyRequest(this.o.A,b):this.A.webkitGenerateKeyRequest(this.o.A,b);return this.B=new i1(this.A,this.o,b,null,null)};
h.KE=function(a){var b=m1(this,a);b&&b.Pp(a)};
h.JE=function(a){var b=m1(this,a);b&&b.Op(a)};
h.IE=function(a){(a=m1(this,a))&&a.Np()};
h.T=function(){this.A=null;j1.N.T.call(this)};B(n1,F);h=n1.prototype;h.Kr=function(a){this.G=a};
h.aE=function(a){if(!this.isDisposed()){this.F||(this.F=!0,this.o.R("newsession",this));if(Ct(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(NL(a.childNodes[0].data))}if(Et(this.A))for(b=JL(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,
nb:this.Kz,onError:this.Dp,context:this};b=this.H;this.G&&(b=$g(b,"access_token",this.G));Bj(b,a)}};
h.ZD=function(){this.isDisposed()||this.D||(this.o.R("sessionready"),this.D=!0)};
h.Kz=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,f;if(-1==d)a=null;else if(e=b.slice(0,c).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==e)a=null;else{e=ab(e[1]);b:{f={};b=b.slice(c+2).split("\r\n");for(c=0;c<b.length;c++){if(0==b[c].length)break b;var k=b[c].match(/([^:]+):\s+([\S\s]+)/);if(null==k)break;f[k[1]]=k[2]}f=null}a=null==f?null:
new qea(e,f,a.subarray(d+4))}a?0!=a.o?p1(this,"drm.auth","f"+a.o,ey(a.o)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,e=null,(f=a.headers["Heartbeat-Url"])&&(e=new pea(f,(0,window.parseInt)(a.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(a.headers["Heartbeat-Num-Retries"],10)||4)),(d||e)&&this.o.R("newlicense",d,e),Et(this.A)&&(a.message=new window.Uint8Array(NL(String.fromCharCode.apply(null,a.message)))),this.B.update(a.message)):p1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Dp(a)};
h.$D=function(a){this.isDisposed()||p1(this,"drm.keyerror","s"+a)};
h.Dp=function(a){p1(this,"drm.net","r"+a.status)};
h.T=function(){this.o=null;n1.N.T.call(this)};B(r1,Rj);h=r1.prototype;h.rz=function(a){a=new q1(new window.Uint8Array(a.initData),a.initDataType);t1(this,a,!0)};
h.bA=function(a){t1(this,new q1(a.initData,a.contentType),!0)};
h.Tz=function(){this.isDisposed()||(this.D=!0,this.A.length&&u1(this,this.A[0]))};
h.yy=function(a){if(!this.isDisposed()){Fi(a);var b="a";a instanceof window.DOMException&&(b+=a.name);this.R("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.dA=function(a,b){a&&jb(a,"HD")&&!Xt(this.C)&&!Ct(this.o)&&(this.C=Zt,this.R("qualitychange"));b&&!this.O&&(this.O=b,this.R("heartbeatparams",b))};
h.eA=function(){this.isDisposed()||(this.A.shift(),this.A.length&&u1(this,this.A[0]))};
h.NA=function(){if(Ct(this.o)&&(this.K--,0==this.K)){var a=this.B;a.A.msSetMediaKeys(a.C)}};
h.T=function(){this.M=null;this.A=[];r1.N.T.call(this)};v1.prototype.D=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
v1.prototype.F=function(a){return"r3a="+Math.floor(this.o.lengthSeconds%Ya(a.c3a))};
v1.prototype.C=function(a){a=Ya(a.c);var b;b=t("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};B(A1,H);A1.prototype.C=function(a,b){this.o.paused||this.getCurrentTime()>a||10<b||(this.play(),Ai(A(this.C,this,this.getCurrentTime(),b+1),500))};
A1.prototype.addEventListener=function(a,b,c,d){A1.N.addEventListener.call(this,a,b,c,d);this.B[a]||(this.o.addEventListener(a,A(this.GE,this)),this.B[a]=!0)};B(J1,A1);h=J1.prototype;h.la=function(){return this.o};
h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
h.getCurrentTime=function(){return this.o.currentTime};
h.load=function(){this.o.load()};
h.pause=function(){this.o.pause()};
h.play=function(){this.o.play()};
h.getErrorCode=function(){return this.o.error?this.o.error.code:null};
h.setVolume=function(a){this.o.volume=a};
h.GE=function(a){this.$(new uea(this,a.type,a))};K1.prototype.isEmpty=function(){return this.endTime==this.startTime};L1.prototype.C=function(){var a=QG(this.X),b=a.totalVideoFrames,a=a.droppedVideoFrames,c=b-this.B,d=a-this.A;this.B=b;this.A=a;0<c&&.3<d/c&&this.D()};B(N1,Rj);N1.o=1;N1.A=10;N1.B=5;N1.C=5;h=N1.prototype;h.T=function(){Di(this.va);Ei(this.Ia);P1(this);$1(this);O1(this);c2(this);Ob(this.ea,this.o);this.M=null;this.Ca=!1};
h.Xg=function(a,b){var c=this.X.experiments.ka("legacy_cue_range_behavior2");this.Z.length=0;this.da.reset();this.U.reset();this.L=this.ia=window.NaN;this.aa=null;this.ib=!1;this.A&&H1(this.A);e2(this);P1(this);$1(this);O1(this);Nb(this.o);c&&this.F.reset();if(2==this.O||yG.test(this.X.G))a.Wo=!0;this.X.Kg&&(a.Fd=this.o.Fd);this.o=a;this.o.subscribe("dataupdated",this.qB,this);this.o.subscribe("dataloaded",this.Kn,this);this.o.subscribe("dataloaderror",this.sj,this);this.o.subscribe("onStatusFail",
this.pB,this);a.cf&&a.cf>a.startSeconds&&(c=a.cf,this.M&&(this.F.gh(this.M),this.M=null),this.M=new iq(1E3*c,0x7ffffffffffff),kq(this.M).subscribe("onEnter",this.Kf,this),this.F.jb([this.M]));P1(this);this.o.Pf||(c=new wea(this.o,this.X,b,A(this.Yf,this),A(this.getCurrentTime,this),A(this.bw,this),A(this.La.Ma,this.La),A(this.Dm,this),A(this.ow,this)),this.B=new UA(c));this.Ca=!1;q2(this,"newdata");U1(this,new qy)};
h.getVideoData=function(){return this.o};
h.W=function(){return this.X};
h.Kn=function(){if(ex(this.o))ex(this.o),this.da.o=!0,this.Z=tb(this.o.K),Ww(this.o,this.X),Sw(this.o)&&(this.o.Fa&&(this.Y=new Xda),this.o.B.o&&m2(this),l2(this,"i")),q2(this,"dataloaded"),this.U.A&&V1(this);else if(this.o.ma){var a=this.o,b=this.X.experiments;a.Pd=!0;a.ma=!1;yr.test(a.G)||Fi(Error("DASH MPD Origin invalid: "+a.G),"WARNING");var c;if(b.L)c=a.G;else{c=a.G;var d=Lg(c);c=0>Aw.C.indexOf(d)?Zp(c):$p(c)}b.ka("disable_versioned_mpd")||(c=Ug(c,{mpd_version:3}));!a.isLowLatencyLiveStream&&
b.ka("html5_live_disable_dg_pacing")&&(c=Ug(c,{pacing:0}));b=c;ft(new Zs(b),b).then(a.kz,a.jz,a);Yu("mrs")}else if(this.o.Y)this.B&&(a=this.B.B,PA(a,"protected"),a.o.o.J?a.Jq():a.o.o.subscribe("dataloaded",a.Jq,a)),a=this.o,b=this.X.F,at(a.o),b=new It(Xv(b,a.o)),G(a,b),a.Y=!1,a.Pd=!0,a=A(a.Hx,a),b.C=a,Gt()?Mt(b):Ot(b);else if(!this.o.Pd){a:switch(b=this.X,a=this.o,c=this.La.Ma(),d=hH(this.X),a.V){case 38:b=a.videoId.indexOf(":");b=Ug("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",
{aid:a.videoId.slice(b+1),sig:a.ig});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=wG.prototype.baseYtUrl&&(c=b.baseYtUrl);b=Ug(c+"get_video_info",{docid:a.videoId,authuser:a.zb,authkey:a.ob,eurl:b.O});break a;case 33:b=Ug("//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.O,ps:b.o,el:b.Ba,hl:b.Y,list:a.playlistId,agcid:a.hg,aqi:a.gg,sts:16770,lact:RG(b)?RA():"-1"};b.forcedExperiments&&(e.forced_experiments=
b.forcedExperiments);a.M?e.vvt=a.M:a.oauthToken&&(e.access_token=a.oauthToken);b.D&&(e.adformat=b.D);b.Qa&&(e.cc_lang_pref=b.Qa);b.da&&2!=b.da&&(e.cc_load_policy=b.da);b.mute&&(e.mute=b.mute);a.Ca&&2!=b.Dd&&(e.iv_load_policy=a.Ca);a.Ia&&(e.itct=a.Ia);a.xf&&(e.autoplay="1");a.al&&(e.autonav="1");a.fl&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ha&&(e.ytrcc=a.ha);a.nl&&(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.Xf&&(e.splay=
"1");a.ypcPreview&&(e.ypc_preview="1");b.ea&&(e.content_v=b.ea);a.yf&&(e.livemonitor=1);b.zb&&(e.authuser=b.zb);b.pageId&&(e.pageid=b.pageId);b.S&&(e.ei=b.S);b.Yb&&(e.ssl_stream="1");b.L&&(e.iframe="1");a.rj&&(e.tst=a.rj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.fb&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);b.fb&&a.Mb&&(e.cyc=a.Mb);0!=d&&b.experiments.ka("send_presence_signal_vis_desktop")&&(e.vis=d);b.enableSafetyMode&&(e.enable_safety_mode="1");qa(e,b.A);
b=Ug(b.baseYtUrl+"get_video_info",e)}a=this.o;c=this.X.experiments.U;d=this.X.experiments.o;e=!this.X.experiments.ka("disable_gvi_cors");a.isDisposed()||(a.ac=b,a.rb=!!c,a.ie=!!d,a.Dd=!!e,a.Pd=!0,a.Dq())}};
h.Kf=function(a){this.pauseVideo();a=0==a?new qy:new qy(14);U1(this,a)};
h.Yi=function(a){this.Z=this.Z.filter(function(b){return a!=b});
this.U.A&&V1(this)};
h.Za=function(){return this.C.Za()};
h.getPlayerState=function(){return this.C};
h.Dm=function(){var a=this.getVideoData(),b=a.F;if(!b)return a.U;var c=eb(this.o.B?this.o.B.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.U};
h.Yx=function(){var a=this.D.F.o;a.isLocked()||(2==this.X.experiments.Bc("html5_dropped_frames_abr")&&(a=Yt(a,Sfa),S0(this.D,a,"a",!0)),this.B&&PA(this.B.B,"limit-frame-drops"),this.V&&(a=this.V,Ei(a.o),a.o=window.NaN,this.V=null))};
h.Gz=function(a){if(this.G){var b=this.G;if(Ct(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 f=d.getUint32(e);if(1>f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+f),l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=f}}a=c;0!=a.length&&t1(b,new q1(a),!1)}}};
h.Qz=function(a){Y1(this,a.reason,a.video.info,a.audio.info);var b=$w(this.o);b&&b.D(a.video);this.Y&&(this.Y.A=a.audio.index)};
h.Pz=function(a){Z1(this,a.reason,a.audio.info)};
h.sj=function(a){var b;Rw(this.o)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)Rw(this.o),this.o.Be&&!this.ab&&(this.ab=!0,this.R("signatureexpired"));else if(a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)&&this.o.B.A)a=this.o,a.B=a.B.A,nH(this),f2(this);else if(a.o)tJ(this,a.errorCode,void 0,ov(a));else if(this.B)this.B.onError(a.errorCode,ov(a))};
h.pauseVideo=function(a){T(this.C,64)&&!a&&(T(this.C,8)?U1(this,Ay(this.C)):U1(this,zy(this.C,8)));this.A&&(T(this.C,128)||(a?U1(this,yy(this.C,256)):U1(this,Ay(this.C))),this.A.pause())};
h.sr=function(){if(!(0,window.isNaN)(this.L)&&this.A){var a=this.Yf();!this.o.Fa&&this.L>=Math.floor(a)?(this.L=a,this.R("endseeking",this),this.pauseVideo(!0),this.Kf()):(this.D&&this.D.seek(this.L),(!this.o.Fa||1<=this.A.o.readyState)&&E1(this.A,this.L))}this.ea&&(this.ea.dispose(),this.ea=null);T(this.C,32)&&(U1(this,yy(zy(this.C,32),16)),this.R("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.L))return this.L;var a=0;this.A&&1<=this.A.o.readyState?a=this.A.getCurrentTime():this.o&&(a=this.o.pj||this.o.startSeconds||0);return a};
h.Yf=function(){return this.o.lengthSeconds?this.o.lengthSeconds:n2(this,!1)?n2(this,!1):0};
h.bw=function(){var a=new vea;if(this.ha&&this.D){var b=this.ha;a.B=b.F;a.F=b.G;a.o=TJ(b);b=this.D;b.o&&!Hv(b.o)&&(a.A=ly(b.o.A.buffered,b.D),a.C=ly(b.o.o.buffered,b.D));a.o=M_(b.L);TJ(b.J);RJ(b.J);SJ(b.J)}else this.A&&(a.A=uy(this.A));this.Y&&Yda(this.Y,a);return a};
h.qB=function(){if(this.G){var a=this.G,b=this.o.oauthToken;a.H=b;a.R("oauthtoken",b)}q2(this)};
h.pB=function(a){tJ(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.hD=function(a){var b=a.target.o.src;if(this.A&&this.A.o.src&&this.A.o.src==b){switch(a.type){case "error":if(this.X.hg&&2==this.A.getErrorCode()){(0,window.setTimeout)(A(function(){this.A&&(this.o.Ff&&this.A.load(),f2(this))},this),500);
if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":var c=this.A.o.duration;(!this.J||(0,window.isFinite)(c)&&0<c)&&1!=c&&this.o.lengthSeconds!=c&&(this.o.lengthSeconds=c,q2(this));break;case "ratechange":this.D&&(this.D.L.B=Math.max(1,this.A.o.playbackRate));this.F.Of();break;case "loadedmetadata":this.o.startSeconds&&(0<(this.A.o.seekable||gy()).length?this.A.o.currentTime=this.o.startSeconds:(this.ia=this.o.startSeconds,this.pauseVideo(!0)));case "loadstart":Ei(this.Ia);
this.ck()||(this.Ia=Ci(A(this.ck,this),100));break;case "progress":Bea(this);case "suspend":o2(this);this.R("onLoadProgress",this,Aea(this));break;case "seeked":s2(this);break;case "seeking":this.D&&this.D.seek(this.A.getCurrentTime());this.rb&&z1(this.Ea,this.A.getCurrentTime());break;case "playing":this.H.A("plev");this.bb&&(this.bb=!1,g2(this)||W1(this,window.Infinity,!0));break;case "timeupdate":this.ib=!0;this.ck();s2(this);o2(this);if(!this.A||this.A.o.src!=b)return;this.R("onVideoProgress",
this,this.A.getCurrentTime());this.Y&&this.K&&Zda(this.Y,this.A.getCurrentTime());break;case "waiting":if(0<(this.A.o.played||gy()).length&&0==G1(this.A).length&&0<this.A.getCurrentTime()&&5>this.A.getCurrentTime()&&this.D)return}this.A&&this.A.o.src==b&&(this.R("videoelementevent",a),a=ry(this.C,a,this.Ea,this.X.experiments.ka("html5_playing_event_buffer_underrun")),U1(this,a))}};
h.ky=function(a){a="available"==a.o.availability;a!=this.$a&&(this.$a=a,this.R("airplayavailabilitychange"))};
h.ly=function(){var a=!!this.A.o.webkitCurrentPlaybackTargetIsWireless;a!=this.Ua&&(function(){this.X.jl=a}.apply(this),this.Ua=a)&&(Ww(this.o,this.X),l2(this,"m"));
this.R("airplayactivechange")};
h.ck=function(){var a=this.A;a&&this.ib&&!this.o.Be&&!cv("vfp",this.H.o)&&2<=a.o.readyState&&!a.o.ended&&0<ky(G1(a))&&this.H.A("vfp");if((a=this.A)&&!this.o.Be&&0<a.o.duration&&(!cv("pbr",this.H.o)&&a.o.paused&&2<=a.o.readyState&&0<ky(G1(a))&&this.H.A("pbr",void 0),0<a.getCurrentTime())){Ei(this.Ia);Di(this.va);this.o.Be=!0;r2(this);if(this.B){a=this.B;if(!a.C){var b=XA(a,"playback");a.J=[10+a.o.o.qj,10,10,40+a.o.o.Cm-a.o.o.qj,40];var c=a.A;Ei(c.F);c.F=window.NaN;c.F=Ci(A(c.update,c),100);c.D=WA(c.A);
c.C=BA(c.A);b.A=VA(a,!0);b.Ia=!0;b.send();a.o.o.Z&&(b=a.o.A,c=a.o.o,b=Ug(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Z,oid:c.zd,ptchn:c.yd,pltype:c.Bd,content_v:b.ea}),bB(a,b));a.o.o.enableCardio&&(a.Xi("playback"),a.D||gB(a));a.o.o.Se||aB(a);a.C=!0;a=a.A;a.o=a.A.B();a.D=WA(a.A);.5<a.o-a.B&&(a.B=a.o)}Ai(A(this.Ml,this),4500)}this.R("playbackstarted");Fu()&&Iu();return!0}return!1};
h.lz=function(){this.Qa&&(this.fa.za(this.Qa),delete this.Qa,D1(this.A))};
h.Bw=function(){if(this.A){var a=this.getCurrentTime();if(T(this.C,8)&&wy(this.Ea,a,$s(),uy(this.A))){var b=this.Yf();b&&1>Math.abs(b-a)?this.Kf():U1(this,yy(this.C,1))}else T(this.C,4)&&Cy(this.C)&&uy(this.A)>N1.C&&U1(this,zy(this.C,1));o2(this)}};
h.ow=function(){this.o.Fa||this.R("connectionissue")};
h.aC=function(){E1(this.A,this.A.getCurrentTime()+.1)};
h.cA=function(a){var b={};qa(b,this.X.A);b.cpn=this.o.clientPlaybackNonce;this.o.M&&(b.vvt=this.o.M);this.X.zb&&(b.authuser=this.X.zb);this.X.pageId&&(b.pageid=this.X.pageId);hc(a.C,b);o1(a,a.H)};
h.Iz=function(a,b,c){tJ(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};
h.Jz=function(){l2(this,"r");q2(this)};
h.gD=function(a){this.R("heartbeatparams",a)};
h.Nz=function(){if(!this.o.Be&&this.A){0<this.A.o.readyState&&uy(this.A)>=N1.B&&(U1(this,yy(this.C,1)),this.R("playbackstalledatstart"));if(this.B)this.B.onError("qoe.start15s");this.R("loadsofttimeout")}};
h.Ml=function(){if(!this.Ca){var a=new v1(this.o),b;"c1a"in a.B?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Ai(A(this.Ml,this),4500);else{var c;if(a.o&&a.o.ia){b=[a.o.ia];for(c in a.A)if(a.B[c]&&a.A[c]){var d=a.A[c](a.B);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.L||(b=XA(a,"atr"),b.L=c,b.send(),a.L=!0),this.Ca=!0)}}};
h.fD=function(){return this.A?this.A.o.playbackRate:1};var u2=[2,5];H2.prototype.B="";H2.prototype.A="";var K2=!1,N2=!1;Ii("showCompanionAdLoaded",function(){N2&&(M2(),N2=!1)});
Ii("watchAdsInit",function(){K2&&(K2=!1,J2())});B(P2,Rj);h=P2.prototype;h.cancel=function(){this.F&&this.R("dragend",0,0,null);this.B&&this.R("hoverend",0,0,null);Bv(this.o);Q2(this)};
h.ir=function(a){Bv(this.o);S(this.o,this.A,R2("move"),this.fr);S(this.o,this.A,R2("out"),this.gr);S(this.o,this.A,"touchstart",this.zm);this.D&&S(this.o,this.A,R2("down"),this.ym);var b=Vl(a);a=Yl(a);this.B=!0;this.R("hoverstart",a.x,a.y,b);this.R("hovermove",a.x,a.y,b)};
h.fr=function(a){var b=Vl(a);a=Yl(a);if(this.C){var c=Xl(this.C),d=Yl(this.C);d.x==a.x&&d.y==a.y&&c==b||this.R("hovermove",a.x,a.y,b)}else this.R("hovermove",a.x,a.y,b);this.C=null};
h.gr=function(a){var b=Yl(a),c=Xl(a);c&&yf(this.G,c)?(this.C=a,this.R("hovermove",b.x,b.y,c)):(Bv(this.o),Q2(this),this.B=!1,this.R("hoverend",b.x,b.y,c))};
h.Ux=function(a){this.ir(a);this.ym(a)};
h.ym=function(a){if(!fa(a.button)||0==a.button){Bv(this.o);S(this.o,window.document,R2("move"),this.Tx);S(this.o,window.document,R2("up"),this.KC);var b=Vl(a);if(xc)S(this.o,this.A,"dragstart",this.Jv);else if(Zl(a),(pF||uc)&&b)a:{for(var c=b;c;){if(Cf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.F=!0;a=Yl(a);this.R("dragstart",a.x,a.y,b);this.R("dragmove",a.x,a.y,b)}};
h.Jv=function(a){Zl(a)};
h.Tx=function(a){var b=Vl(a);b==window.document&&(b=null);a=Yl(a);this.R("hovermove",a.x,a.y,b);this.R("dragmove",a.x,a.y,b)};
h.KC=function(a){Bv(this.o);this.F=!1;var b=Wl(a),c=Vl(a);a=Yl(a);b&&yf(this.G,b)?(S(this.o,this.A,R2("move"),this.fr),S(this.o,this.A,R2("out"),this.gr),S(this.o,this.A,R2("down"),this.ym),S(this.o,this.A,"touchstart",this.zm),this.R("dragend",a.x,a.y,c)):(Q2(this),this.B=!1,this.R("dragend",a.x,a.y,c),this.R("hoverend",a.x,a.y,c))};
h.zm=function(a){var b=a.changedTouches[0];b&&(Bv(this.o),S(this.o,this.A,"touchmove",this.LC),S(this.o,this.A,"touchend",this.jr),S(this.o,this.A,"touchcancel",this.jr),this.H=b.identifier,a=Vl(a),this.B||(this.B=!0,this.R("hoverstart",b.pageX,b.pageY,a)),this.R("hovermove",b.pageX,b.pageY,a),this.D&&(this.F=!0,this.R("dragstart",b.pageX,b.pageY,a),this.R("dragmove",b.pageX,b.pageY,a)))};
h.LC=function(a){var b=S2(this,a);b&&(Zl(a),a=Vl(a),this.R("hovermove",b.pageX,b.pageY,a),this.D&&this.R("dragmove",b.pageX,b.pageY,a))};
h.jr=function(a){var b=S2(this,a);if(b){Bv(this.o);Q2(this);this.B=!1;var c=Vl(a);this.D&&(this.J||Zl(a),this.F=!1,this.R("dragend",b.pageX,b.pageY,c));this.R("hoverend",b.pageX,b.pageY,c)}};
h.T=function(){this.D&&(xc&&this.G.removeAttribute("draggable"),this.G.style.removeProperty("touch-action"));Bv(this.o);P2.N.T.call(this)};X2.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.D=d;this.o=b-c-d;this.C=ke(a-c,0,this.o);this.position=this.C+c;this.A=this.C/this.o};B(Z2,Rj);Z2.prototype.$c=function(){return this.adSystem+"_"+this.adType};
Z2.prototype.hf=function(){return this.$c()};
Z2.prototype.getCurrentAd=function(){return this.A?this.A.getCurrentAd():null};
Z2.prototype.Cj=w;B(f3,F);f3.prototype.start=function(){(0,window.isNaN)(this.o)&&(this.B=I(),this.o=Sd(this.D,this.C-this.A,this))};
f3.prototype.stop=function(){(0,window.isNaN)(this.o)||(this.B=this.A=0,Td(this.o),this.o=window.NaN)};
f3.prototype.pause=function(){(0,window.isNaN)(this.o)||(this.A=I()-this.B,Td(this.o),this.o=window.NaN)};
f3.prototype.T=function(){(0,window.isNaN)(this.o)||Td(this.o)};B(g3,Z2);g3.o=15;h=g3.prototype;h.Cj=function(){b3(this.F,13);this.O||this.A.destroy();this.G=this.J=!1;j3(this)};
h.$c=function(){var a=0,a=this.getCurrentAd();if(NT(a))a=3;else if(OT(a))a=4;else if(PT(a))a=RT(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.hf=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.o,b=h3(a);k9(a.app,b);this.F.B=I();this.H=this.o.Aa();this.D.subscribe("progresssync",this.mp,this);this.o.A.U&&qf($e("video-ad-status-bar",this.H));Yd(this.H,["ad-showing","ad-interrupting"]);this.o.subscribe("onResize",this.Mm,this);try{this.B.P(this.A,"adError",this.nE),this.B.P(this.A,"click",this.mE),this.B.P(this.A,"complete",this.az),this.B.P(this.A,"engagedview",this.uz),this.B.P(this.A,"pause",this.Xr),this.B.P(this.A,"start",this.Yr),this.B.P(this.A,"skip",this.Zr),
this.B.P(this.A,"video_extend_auto_skipped",this.Zr),this.B.P(this.A,"MUTE_AD",this.Cj),this.B.P(this.A,"skippableStateChanged",this.TA),this.B.P(this.A,"youTubeChannelMetadata",this.Vz),this.B.P(Wq(this.o.K),"mouseup",this.oE),this.Mm(),this.O||this.A.start()}catch(c){m3(this,c)}};
h.$r=function(a,b,c){if("newdata"==a&&this.C!=c){a={video_id:c.videoId};b=new Iea;b.isSkippable=this.U;b.skip=A(this.A.skip,this.A);b.skipShown=A(this.A.Gq,this.A);var d=this.getCurrentAd();if(d){b.clickThroughUrl=xU(d)||"";var e;(e=this.o.A.Ga)||(e=c.lengthSeconds,(d=tU(d))?($S(d,e),e=ZS(d)):e=null);b.skipTime=e||0;b.adSystem=this.adSystem}b.videoId=c.videoId;b.videoId||(b.videoUrl=e3(this)||"");c.spacecastModule=this.Y;k3(this.o,-1,a,b)}this.C=c};
h.Xc=function(a){a=a.state;T(a,1)||this.K.pause();T(a,128)?m3(this,Error(a.o.message||"Video player error.")):T(a,1)&&this.K.start()};
h.Yr=function(){this.L=!0;this.G=!1;if(!this.J){this.J=!0;var a=this.F;c3(a);var b=d3(a);if((0,window.isNaN)(a.B))c3(a);else{var c=I()-a.B;b.ad_stl=c}a3(a,4,b);l3(this.o,1);i3(this,!1);(a=P("ADS_INSTREAM_FIRST_PLAY"))&&this.o.R("publish_external_event","onAdAnnounce",a)}k3(this.o,1);this.R("adPlay",this)};
h.Xr=function(){this.L&&(this.L=!1,k3(this.o,2))};
h.az=function(){if(!this.G){var a=this.F;c3(a);var b=d3(a),c=n3(a.o);c?b.ad_fmt=c:c3(a);a3(a,5,b);j3(this);this.G=this.J=!1}};
h.uz=function(){var a=this.F;a.o.R("AD_LOGGING_EVENT",777,d3(a))};
h.Zr=function(){this.G=!0;var a=this.F,b=d3(a),c=n3(a.o);c?b.ad_fmt=c:c3(a);a3(a,14,b);j3(this)};
h.TA=function(){var a=P("ADS_INSTREAM_SKIPPABLE");a&&this.o.R("publish_external_event","onAdAnnounce",a)};
h.Vz=function(){var a=this.getCurrentAd();if(a){var b=a.V;if((a=a.O)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.o;c.channelTitle=a.A;c.channelVideoCount=a.videoCount;this.o.R("publish_external_event","onAdMetadataAvailable",c)}}};
h.nE=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}b3(this.F,32,b);m3(this,a.event.getError())};
h.mE=function(){var a=this.F;c3(a);var b=d3(a);if(a.A){var c=m5(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}a3(a,15,b);this.A.pause();this.R("select")};
h.mp=function(){};
h.gp=function(){UY(this.A,"abandon");i3(this,!0)};
h.T=function(){this.o.unsubscribe("control_toggle_play_pause",this.bs,this);this.o.unsubscribe("control_play",this.Fl,this);this.o.unsubscribe("control_pause",this.El,this);this.o.unsubscribe("onResize",this.Mm,this);this.B.removeAll();this.D.unsubscribe("statechange",this.Xc,this);this.D.unsubscribe("internalAbandon",this.gp,this);this.D.unsubscribe("internalvideodatachange",this.$r,this);this.D.unsubscribe("progresssync",this.mp,this);this.O||this.A.destroy();this.M&&(of(this.M),this.M=null);this.V&&
(qf(this.V),this.V=null);this.H&&(ae(this.H,["ad-showing","ad-interrupting"]),this.H=null);this.G=!1;var a=this.o;if(a.F){var b=a.app,a=a.F;o9(b);a!=b.o&&k9(b,b.o)}this.K.dispose();this.K=null;g3.N.T.call(this)};
h.bs=function(){this.L?this.El():this.Fl()};
h.Fl=function(){this.A.resume();this.Yr()};
h.El=function(){this.A.pause();this.Xr()};
h.Mm=function(){eg(Wq(this.o.K),this.o.app.F.Ma())};
h.oE=function(a){n(a.o)||Kl(a);var b=a.o;n(a.A)||Kl(a);this.F.A=new oe(b,a.A)};B(q3,Z2);h=q3.prototype;
h.show=function(){if(!this.G||!u5(this.o)){J(this.o.Aa(),"ad-showing");this.B=Wq(this.o.K);var a=this.A.getCurrentAd().getHeight();this.B.style.height=Uf(a,!0);J(this.B,"ad-overlay");this.D.P(this.B,"mouseup",this.rE);try{this.D.P(this.A,"autoClose",this.By),this.D.P(this.A,"userClose",this.lB),this.D.P(this.A,"userRecall",this.mB),this.D.P(this.A,"click",this.qE),this.D.P(this.A,"impression",this.Fz),this.D.P(this.A,"adError",this.pE),r3(this,"normal"),this.H||this.A.start(),this.Nm(),this.o.subscribe("onResize",
this.Ej,this),this.o.subscribe("onStateChange",this.cs,this),this.R("adEnd",this)}catch(b){this.R("adError",b)}}};
h.T=function(){this.D.removeAll();this.o.unsubscribe("onResize",this.Ej,this);this.o.unsubscribe("onStateChange",this.cs,this);Zd(this.o.Aa(),"ad-showing");this.A&&(this.H||this.A.destroy(),this.A=null);this.B&&Zd(this.B,"ad-overlay");this.B=null;this.G=!1;q3.N.T.call(this)};
h.lB=function(){this.B&&this.A&&this.A.getCurrentAd()&&(this.B.style.height=Uf(0,!0));this.G=!0;var a=this.F;a.A=I();var b=p3(a);o3(a,6,b);this.o.R("overlay_ad_close")};
h.By=function(){this.o.R("overlay_ad_close")};
h.mB=function(){this.o.R("overlay_ad_open")};
h.qE=function(){this.o.pauseVideo();var a=this.F;a.A=I();var b=p3(a);if(a.B){var c=m5(a.D);b.ck_xy=Math.round(a.B.x-c.left)+"x"+Math.round(a.B.y-c.top);b.ck_wh=c.width+"x"+c.height}o3(a,100,b)};
h.Fz=function(){var a=P("ADS_OVERLAY_IMPRESSION");a&&this.o.R("publish_external_event","onAdAnnounce",a);this.o.R("overlay_ad_open")};
h.rE=function(a){this.F.B=a.target==a.currentTarget?null:new oe(a.pageX,a.pageY)};
h.pE=function(a){a=a.event.getError();this.R("adError",a)};
h.cs=function(a){T(a.state,16)&&r3(this,"normal")};
h.Ej=function(){};
h.Nm=function(){var a=this.F;a.C=I();var b=p3(a);o3(a,3,b)};B(s3,F);s3.o="rm";s3.A=10;s3.D=200;s3.B=200;s3.C=190;h=s3.prototype;
h.load=function(){var a;a=this.o.app.F.Ma();var b;this.o.A.o?b=!1:(b=0<(this.F&3)?s3.C:s3.B,b=a.width<s3.D||a.height<b);if(b){b=this.B;var c=I2(b);c.ck_wh=a.width+"x"+a.height;n5(b.o,14,c);O2();this.Fc(Error("The player size is too small."))}else if(this.D=this.o.O)a=this.B,y3(a.o,9,I2(a)),a=F2(this.o),(b=this.o.A.serverPrefetchedVast)&&0<(this.F&3)?(a.A=b,this.o.A.serverPrefetchedVast=void 0):a.o=this.gd(),this.D.P("adsManagerLoaded",this.Wr,!1,this),this.D.P("adError",this.Vr,!1,this),this.Ui(this.D,
a)};
h.rk=function(){var a=E2(this.o.A,this.o.W(),G2(this.o));a.surveyCreativeData=this.o.A.surveyCreativeData;a.youTubeAdNamespace=this.fg();return a};
h.fg=function(){return this.V};
h.Wr=function(a){if(a.C===this){Yu("aml");try{var b=this.rk(),c=a.B}catch(d){this.Sd(d);return}this.C.P(c,"companionBackfill",A(this.lE,this,c));this.C.P(c,"loaded",A(this.kE,this,c));this.C.P(c,"adError",A(this.jE,this,c));this.C.P(c,"allAdsCompleted",w);this.C.P(c,"contentPauseRequested",w);this.C.P(c,"contentResumeRequested",w);c=QU(a,this.o.M,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Sd(d)}}};
h.kE=function(a,b){this.C.removeAll();var c=b.getAd(),d=MT(c),e=this.B,f=I2(e);f.ad_man=d?"instream":"overlay";y3(e.o,12,f);e=a.getMediaUrl();switch(d?this.lf(a,c,e):this.kd(a,c)){case 0:z3(this);break;case 1:a.destroy();this.Fc(Error("Unable to create a display state."));break;case 2:c=this.B;n5(c.o,21,I2(c));a.destroy();this.Fc(Error("Fallback to next ad."));break;case 3:this.Fc(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.jE=function(a,b){this.C.removeAll();a.destroy();this.Sd(b.getError())};
h.Vr=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.B===this&&this.Sd(b)};
h.lE=function(){x3(this)};
h.lf=function(a,b,c){var d=G2(this.o)&&G2(this.o).spacecastModule;if(d&&c&&!this.S.test(c))return 3;v3(this,dU(b));u3(this,new g3(this.fg(),this.o,a,PT(b),void 0,d));return 0};
h.kd=function(a,b){v3(this,dU(b));u3(this,new q3(this.fg(),this.o,a));return 0};
h.Sd=function(a){if(a){var b=this.B,c=I2(b);a&&A2(a,c);n5(b.o,32,c);this.Fc(a)}};
h.Fc=function(){k4(this.H)};
h.T=function(){this.D&&(this.D.za("adsManagerLoaded",this.Wr,!1,this),this.D.za("adError",this.Vr,!1,this));this.O.removeAll();this.C.removeAll();s3.N.T.call(this)};
h.Ui=function(a,b){try{G_(a,b,this),Yu("ar")}catch(c){this.Sd(c)}};B(A3,Z2);A3.prototype.show=function(){J2();this.R("adEnd",this);this.D=Ci(A(this.F,this),1E3)};
A3.prototype.T=function(){E3(this);A3.N.T.call(this)};
A3.prototype.F=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.hf();10<=this.B||!a?(E3(this),this.R("AD_LOGGING_EVENT",2,b)):a()&&(E3(this),this.R("AD_LOGGING_EVENT",3,b))};B(F3,s3);F3.prototype.rk=function(){var a=F3.N.rk.call(this);a.xn=0==this.K;a.dv=u5(this.o)?a.xn:!0;return a};
F3.prototype.gd=function(){var a;var b=this.G;a=w3(this);(b=4==this.F&&b.o.afvInvideoAdTag?b.o.afvInvideoAdTag:b.o.afvAdTag)?(ta(b,"http:")&&(b=b.substr(5)),a=rj(b,{videoad_start_delay:a})):a="";return a};
F3.prototype.kd=function(a,b){if(this.o.A.o)return 1;1==this.A.o&&(t3(this),y3(this.o,1));return F3.N.kd.call(this,a,b)};
F3.prototype.Fc=function(a){var b=this.o.A;b.o?F3.N.Fc.call(this,a):b.Z||this.F&4?(u3(this,new A3(this.o)),z3(this)):F3.N.Fc.call(this,a)};G3.prototype.o=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.G,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.G,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,k;b&12&&(e.push("300x250"),f="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",k=1);var l=k;k=gc(this.H);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.C&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
null==k.ord&&(this.A||(this.A=Math.floor(999999999*Math.random()).toString()),k.ord=this.A);d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&dc(k,"sz");e=nj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.B,"pfadx",this.D,";",e,"?"].join("")};H3.prototype.o=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new N(this.A),f=e.o,k=f.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.A};B(C3,q3);C3.prototype.Ej=function(){};
C3.prototype.$c=function(){return"1_3"};
C3.prototype.Nm=function(){1==this.K?this.R("AD_LOGGING_EVENT",2,{}):C3.N.Nm.call(this)};B(I3,s3);I3.prototype.gd=function(){return this.U.o(v2(this.A),this.F)};
I3.prototype.kd=function(a,b){v3(this,dU(b));var c=LT(b);if(C2(c,s3.o))return 1==this.F||u5(this.o)||O2(),a.sendImpressionUrls(),this.o.A.J?(u3(this,new A3(this.o)),0):2;if(C2(c,"blockAllAds"))return a.sendImpressionUrls(),u3(this,new C3(this.o,a,1)),0;if(C2(c,"hideMaster"))return u3(this,new C3(this.o,a,0)),0;if(this.o.A.o)return 1;u3(this,new q3(this.fg(),this.o,a));return 0};B(J3,I3);var Pea={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=J3.prototype;h.gd=function(){if(this.o.A.ea){var a=new H3(this.o.A.dynamicAllocationAdTag);return a.o(v2(this.A),this.L)}a=new G3(this.o.A.dynamicAllocationAdTag,this.o.A,this.K);return a.o(v2(this.A),this.L)};
h.Ui=function(a,b){if(this.J){b.B=D2(this.J);var c=this.o.A.ha;c&&(b.C=c);b.fh=w3(this)}J3.N.Ui.call(this,a,b)};
h.lf=function(a,b,c){K3(this,a);return 1!=this.G&&2!=this.G?1:J3.N.lf.call(this,a,b,c)};
h.kd=function(a,b){K3(this,a);switch(this.G){case 1:return J3.N.kd.call(this,a,b);case 2:var c;this.o.A.o?c=1:(1==this.A.o&&(t3(this),y3(this.o,1)),v3(this,dU(b)),u3(this,new q3(2,this.o,a)),c=0);return c;default:return 1}};
h.fg=function(){return this.G||0};
h.Fc=function(a){var b=this.o.A;b.o?J3.N.Fc.call(this,a):b.Z||this.J&4?(u3(this,new A3(this.o)),z3(this)):J3.N.Fc.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.
*/
L3.prototype.cancel=function(a){if(this.o)this.B instanceof L3&&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 V3,O3(this),M3(this,!1,a))}};
L3.prototype.K=function(a,b){this.G=!1;M3(this,a,b)};
L3.prototype.Mh=function(a){O3(this);M3(this,!0,a)};
L3.prototype.then=function(a,b,c){var d,e,f=new xd(function(a,b){d=a;e=b});
R3(this,d,function(a){a instanceof V3?f.cancel():e(a)});
return f.then(a,b,c)};
vd(L3);B(P3,sa);P3.prototype.message="Deferred has already fired";P3.prototype.name="AlreadyCalledError";B(V3,sa);V3.prototype.message="Deferred was canceled";V3.prototype.name="CanceledError";U3.prototype.A=function(){delete T3[this.ji];throw this.o;};
var T3={};B(W3,s3);W3.A="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";W3.B="43";W3.o=function(a){var b=new L3;Bj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Ud:function(){var c=Error(a+" timed out");O3(b);M3(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);O3(b);M3(b,!1,c)},
nb:function(a){b.Mh(a)}});
return b};
W3.prototype.gd=function(){return""};
W3.prototype.Ui=function(a,b){var c=this.F;c&1||c&4||c&8?this.G?c&8?Gea(this.G):("goo.gl"==Lg(this.G)?(c=W3.o(W3.A+this.G),Q3(c,function(a){a=be(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new N(a.longUrl);mh(a,"video_format",W3.B);return W3.o(a.toString())},this)):c=W3.o(this.G),Q3(c,function(c){b.A=c.responseText;
G_(a,b,this)},this),R3(c,null,this.Sd,this)):this.Sd(Error("Invalid empty URL")):this.Sd(Error("Invalid request type: "+c))};B(X3,Z2);X3.prototype.show=function(){var a=G2(this.o).videoId;if(a){var b=this.A.getCurrentAd();tG(this.o.W().J,a,{ve:DU(b)||null,Qf:EU(b)||null,Wh:!1});a={};a.format=this.$c();a.at=this.hf();B2(b,a);this.R("AD_LOGGING_EVENT",3,a)}};B(Y3,s3);Y3.prototype.gd=function(){return this.o.A.ab||""};
Y3.prototype.kd=function(a,b){v3(this,dU(b));u3(this,new X3(this.o,a));5!=this.A.o&&x3(this);return 0};
Y3.prototype.lf=function(){return 1};B(Z3,Y3);Z3.prototype.gd=function(){return this.o.A.na||""};B(B3,q3);B3.prototype.Ej=function(){};
B3.prototype.$c=function(){return"4_3"};B(e4,s3);
e4.prototype.gd=function(){var a;if(C(this.G)||0!=v2(this.A)){var b=this.J;if(b.o.fa&&b.o.Ca){a={};var c="youtube_watch_"+b.A;a.nw="10613";a.asnw=b.o.fa;a.ssnw=b.o.fa;a.caid=b.o.Ca;a.vdur=b.G;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.o.Ea)||(c._fw_d_001=b.o.Ea);b.o.gender&&(c._fw_d_002=b.o.gender);b.o.va&&(c["_fwu:10613:lang"]=b.o.va);b.o.ma&&(c._fw_dbp=b.o.ma);b.o.ia&&(c._fw_distributorvideoassetid=b.o.ia);c._fw_yt_type=c4(b)?"long":"short";if($3(b)){a.prof=c4(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=b4(b.B)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.D&1&&!b.F){e={};d=a4(b);if(d4(b.B)){var f;if(d4(b.B)){f=0;var k=b.C.B;if(k)for(var k=k.B,l=0;l<k.length&&(d4(k[l])&&f++,k[l].getId()!=b.B.getId());l++);}else f=0;d=d+f}e.slid=d;e.ptgt="a";e.slau=a4(b);e.tpos=v2(b.B.Sa).toString();d=nj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=nj(e,"&")+";"}b.D&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=
nj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=nj(e,"&")+";");b.D&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=nj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+nj(a,"&")+";"+nj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.A.split("_")[0],a.prof="10613:10613_youtube_"+b.A,a.crtp="vast2s",a.flag="+emcr",d={},b.F||(d.ptgt="a",d.slid="preroll",d.slau=a4(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?"+nj(a,"&")+";"+nj(c,"&")+";"+nj(d,"&")}else a=""}else a=this.G;return a};
e4.prototype.lf=function(a,b){return e4.N.lf.call(this,a,b,null)};
e4.prototype.kd=function(a,b){var c=LT(b);if(C2(c,s3.o))return this.H.D=fc(a),2;if(this.o.A.o)return 1;if(C2(c,"hideMaster")){if(a.G&&a.G.Ce()){var c=a.G.Ce(),d;d=a.getCurrentAd();if(V()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}u3(this,new B3(this.o,a));return 0}return e4.N.kd.call(this,a,b)};f4.prototype.getType=function(){return this.B};
f4.prototype.create=function(a,b){switch(this.B){case 1:return new F3(a,b,this.o);case 2:return new I3(a,b,this.o);case 3:return new J3(a,b,this.o,this.A);case 5:return new e4(a,b,this.o);case 4:return new W3(a,b);case 7:return new Y3(a,b,this.o);case 8:return new Z3(a,b,this.o);default:return null}};B(g4,Rj);h=g4.prototype;h.getId=function(){return this.F};
h.show=function(){this.J?this.o instanceof q3&&r3(this.o,"normal"):(this.J=!0,this.o instanceof g3&&l4(this.B,"bs"),this.o.subscribe("adEnd",this.lp,this),this.o.subscribe("adError",this.Ur,this),this.o.subscribe("AD_LOGGING_EVENT",this.Gp,this),this.o.subscribe("select",this.Tr,this),this.o.show(),n4(this,!0))};
h.lp=function(){this.A&&(o4(this),o5(this.B));D3(this)};
h.Ur=function(a){if(a){var b={};A2(a,b);m4(this,b);n5(this.B,32,b)}o4(this);D3(this)};
h.Gp=function(a,b){m4(this,b);y3(this.B,a,b)};
h.Tr=function(){this.H=!1};
h.T=function(){o4(this);this.o=null;null!=this.D&&(this.D.dispose(),this.D=null);g4.N.T.call(this)};var t4=[new t2(1)];var Xea={ku:"m",Rt:"f"};var v4=["9412857","9412859"];B(w4,F);w4.prototype.S=function(){this.C=0};
w4.prototype.Xc=function(){if(T(oz(this.o.o),8)){if(x4(this)){this.F=this.F||I()/1E3;this.H&&(this.D+=I()/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),z4(this,"seek"),this.D=0,this.B.push(I()/1E3)):this.C||0==this.A||(z4(this,"pause"),this.D=0,this.B.push(I()/1E3));y4(this)}}else T(oz(this.o.o),4)&&0==this.A&&x4(this)&&(this.A=this.o.getCurrentTime(1),this.C=Ai(A(this.S,this),1E3*this.M),this.H=I()/1E3)};
w4.prototype.T=function(){y4(this);this.o.unsubscribe("applicationplayerstatechange",this.Xc,this)};B(A4,F);h=A4.prototype;h.Sq=function(){this.o.subscribe("beginseeking",this.Sh,this)};
h.Oq=function(a,b){return a.A&&d4(a)?b+this.C+this.B:b};
h.Nq=function(a,b){return a.A&&3!=a.Sa.o&&0x7ffffffffffff!=b&&0x8000000000000!=b?b+this.C+this.B:b};
h.un=function(a){if(a.A&&d4(a)&&!(0>=this.B)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=h4(a)+this.C,b=new iq(c,c+this.B-1,b);this.D[a.getId()]=b;this.o.jb([b])}};
h.gs=function(a){a.A&&d4(a)&&(B4(this,a.getId()),this.Sh())};
h.Sh=function(){(0,window.isNaN)(this.A)||(Di(this.A),this.A=window.NaN);var a=q5(this.o);D4(this,a,this.o.app.Va.Cb()/100);Mf(a,"transition","");Mf(a,"opacity","1")};
h.hs=function(a){var b=h4(a)+this.C+this.B,b=50>=1E3*this.o.getCurrentTime(1)-b;a.A&&d4(a)&&b&&(a=.001*(h4(a)+this.G),this.o.R("command_seek",a),0>=this.F||(a=q5(this.o),Mf(a,"opacity","0"),D4(this,a,0),Ai(A(this.sE,this),0)))};
h.sE=function(){var a=q5(this.o);Mf(a,"transition","opacity "+String(this.F)+"ms linear");Mf(a,"opacity","1");C4(this,a,this.F,1)};
h.es=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-I()),d=Math.max(0,a.volume+-1*a.volume*c/d);D4(this,a,d);this.A=0<d?Eq(A(this.es,this,a,b,c),c):window.NaN}};
h.ds=function(a,b,c){if(!(0,window.isNaN)(this.A)){var d=Math.max(1,b-I()),e=this.o.app.Va.Cb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);D4(this,a,d);this.A=d<e?Eq(A(this.ds,this,a,b,c),c):window.NaN}};
h.T=function(){this.Sh();this.o.unsubscribe("beginseeking",this.Sh,this)};B(E4,A4);h=E4.prototype;h.Sq=w;h.Oq=function(a,b){return b};
h.Nq=function(a,b){return b};
h.un=w;h.gs=w;h.hs=w;h.T=w;B(G4,F);h=G4.prototype;h.wn=function(){this.o.app.subscribe("applicationplayerstatechange",this.Xc,this)};
h.$n=function(){return 4-this.C/1E3};
h.ej=function(a){return Zb(this.B,1E3*a)?this.B[1E3*a]/1E3:a};
h.nq=function(a){var b=!1,c={};E(a.childNodes,A(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?F4(e):null)b=b||Zea(a),c[e]=a},this));
if(!b||0==Tb(c))return!1;a=O(Xb(c),function(a){return(0,window.parseInt)(a,10)});
if(!afa(this,a))return!1;Pb(c,A(function(a,b){var c=(0,window.parseInt)($b(this.B,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",$ea(this,c))},this));
return!0};
h.vn=function(a){if(!(0>=this.J)){var b=[];E(a,A(function(a){if(Zb(this.B,1E3*a)){var d=new iq(1E3*this.ej(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.jb(b)}};
h.qs=function(a){if(Zb(this.B,1E3*a)){var b=q5(this.o);a=Math.max(0,1E3*a-1E3*this.o.getCurrentTime(1));Mf(b,"transition","opacity "+String(a)+"ms linear");Mf(b,"opacity","0");I4(this,b,a,0)}};
h.rs=function(a){H4(this,1E3*a)&&(this.D[a]&&(IH(this.o.o,[this.D[a]],void 0),delete this.D[a]),this.ph())};
h.Xc=function(){T(oz(this.o.o),4)&&this.ph()};
h.ph=function(){(0,window.isNaN)(this.A)||(Di(this.A),this.A=window.NaN);var a=q5(this.o);J4(this,a,this.o.app.Va.Cb()/100);Mf(a,"transition","");Mf(a,"opacity","1")};
h.ts=function(a){if(Zb(this.B,1E3*a)){var b=1E3*a;200>=1E3*this.o.getCurrentTime(1)-b&&(this.o.R("command_seek",this.ej(a)+this.H/1E3),0>=this.F||(a=q5(this.o),Mf(a,"opacity","0"),J4(this,a,0),Ai(A(this.yE,this),0)))}};
h.yE=function(){var a=q5(this.o);Mf(a,"transition","opacity "+String(this.F)+"ms linear");Mf(a,"opacity","1");I4(this,a,this.F,1)};
h.os=function(a,b,c){if(this.A){var d=Math.max(1,b-I()),d=Math.max(0,a.volume+-1*a.volume*c/d);J4(this,a,d);this.A=0<d?Eq(A(this.os,this,a,b,c),c):window.NaN}};
h.ms=function(a,b,c){if(this.A){var d=Math.max(1,b-I()),e=this.o.app.Va.Cb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);J4(this,a,d);this.A=d<e?Eq(A(this.ms,this,a,b,c),c):window.NaN}};
h.T=function(){this.ph();this.o.unsubscribe("applicationplayerstatechange",this.Xc,this)};B(K4,G4);h=K4.prototype;h.wn=w;h.$n=function(){return 4};
h.ej=function(a){return a};
h.nq=function(){return!1};
h.qs=w;h.vn=w;h.ph=w;h.rs=w;h.ts=w;h.T=w;B(M4,F);M4.prototype.C=function(){var a=this.o.A.A;if(this.F&&!(0>=a)){var b=this.o.o.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Pb(this.G.C,function(a){a.isDisposed();if(a.isVisible&&!(0>=P4(this,a))){var f;f=a.getId();f=this.G.G[f];if(P4(this,a)>b){var m=!O4(this,a);m!=f.visible&&(f.visible=m,c.push(f));m||(f=P4(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&this.o.o.jb(c,1);if(d){var f=0;0<this.B&&(f=I()/1E3-this.B);cfa(this,a-f-e+2)}else N4(this)}};
M4.prototype.A=function(){return this.B};
M4.prototype.T=function(){N4(this);this.o.unsubscribe("endseeking",this.C,this)};B(Q4,F);h=Q4.prototype;h.Cf=function(a){a.unsubscribe("adBreakComplete",this.Cf,this);this.L=Ai(A(this.$x,this,a),0)};
h.$x=function(a){var b=efa(this,a),c=b.previous,b=b.next;this.L=0;var d,e=!1;switch(a.Sa.o){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&fa(b.Sa.A)?h4(b)-1:0x7ffffffffffff}0==a.F&&(l4(this.o,"bl"),j4(a)||l4(this.o,"fb"));"loaded"!=a.C||0==a.F&&j4(a)&&b&&1E3*this.o.o.getCurrentTime()>=h4(b)?(c&&i4(c)&&!e&&(b=d,d=h4(c),d>b&&(b=d),T4(this,c),S4(this,c,b)),this.Ae(a)):(this.C[a.getId()]=a,S4(this,a,d),qq(this.o));Tb(this.C)==this.B.length&&this.D.C();R4(this)};
h.Ae=function(a){a.unsubscribe("adBreakComplete",this.Cf,this);this.A&&a==this.A&&(this.A=null);T4(this,a);pb(this.B,a);delete this.C[a.getId()];Nb(a)};
h.zq=w;h.Dj=function(a){return this.C[a]};
h.wl=function(a){if(a.A){if(3!=a.Sa.o&&a.H){var b=this.o;t5(b);vq(b);this.F.hs(a)}else j4(a)&&!a.H?(b=this.o,t5(b),vq(b)):t5(this.o);this.Ae(a);null!=this.o.D&&(a=this.D.A(),a=0<a?Math.floor(I()/1E3-a):0,u4(this.o.D,"set_previous_ad_end_time",{tfla:a}));a=this.D;a.F&&0<a.o.A.A&&(a.B=I()/1E3,a.C());for(;!lb(this.O);)U4(this,this.O.shift())}else a.isVisible||this.Ae(a)};
h.T=function(){this.L&&Di(this.L);Nb(this.F);Nb(this.D);Nb(this.ea);E(this.B,this.Ae,this);Q4.N.T.call(this)};B(W4,Q4);h=W4.prototype;h.Dj=function(a){a=W4.N.Dj.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.Sa=a.Sa;c.F=a.getId()}b&&"loaded"==b.C?(a.unsubscribe("adBreakComplete",this.Cf,this),this.C[a.getId()]=b,this.B[this.B.indexOf(a)]=b,Nb(a)):(this.Ef(),b&&(Nb(b),b=null),this.Ae(a));b&&!b.A&&this.Ef();return b};
h.Cf=function(a){!b4(a)||"loaded"==a.C&&a.A||this.Ef();W4.N.Cf.call(this,a)};
h.wl=function(a){a.A&&10<this.V?X4(this):this.Ef();W4.N.wl.call(this,a)};
h.Ef=function(){if(!this.isDisposed())for(Y4(this);this.K.length&&this.M.length+this.H.length<this.U;){var a=this.K.shift();a.subscribe("adBreakComplete",this.kp,this);this.M.push(a);k4(a)}};
h.zq=function(){X4(this)};
h.kp=function(a){a.unsubscribe("adBreakComplete",this.kp,this);pb(this.M,a);this.H.push(a)};
h.T=function(){Y4(this);E(this.M,Nb);E(this.H,Nb);E(this.K,Nb);W4.N.T.call(this)};B($4,Q4);$4.prototype.Xg=function(a){this.da=a};
$4.prototype.getVideoData=function(){return this.da};
$4.prototype.Z=function(a){"loaded"==a.C&&this.K.push(a);a.unsubscribe("adBreakComplete",this.Z,this)};
$4.prototype.S=function(){if(null!=this.A&&0<this.K.length){var a=this.K.shift();delete this.C[v2(a.Sa)];var b=Math.floor(I()/1E3)-this.aa;this.aa=null;a.unsubscribe("adBreakComplete",this.S,this);this.Ae(a);this.A=null}0<this.M?(this.M--,a5(this)):(a=this.V,t5(a),vq(a),(0,window.isFinite)(b)&&(this.U?W1(this.H,window.Infinity,!0):W1(this.H,this.H.getCurrentTime()+b,!0)))};B(b5,F);b5.prototype.G=function(){this.o||(this.o=c5(this.B.Md()));this.A.o.jb(Wb(this.o),1)};
b5.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;E(this.B.Md(),function(a){var f=this.o[a];if(f){var m=this.B.L.get(a);m&&m.bc>b?(a=!y_(this.H,m),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=m.bc-b,f<e&&(e=f,d=m))):!m||m.Za()?(IH(this.A.o,[f],void 0),delete this.o[a]):!f.visible&&m&&(f.visible=!0,c.push(f))}},this);
0<c.length&&this.A.o.jb(c,1);if(d){var f=0;0<this.F&&(f=I()/1E3-this.F);gfa(this,a-f-e+2)}else d5(this)}};
b5.prototype.T=function(){b5.N.T.call(this);this.A.unsubscribe("endseeking",this.D,this);d5(this)};B(f5,F);var lfa={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4};h=f5.prototype;
h.load=function(a){if(this.H=this.o.O){this.D=L4(this.o);var b=F2(this.o);b.A=ifa(this,a);b.oi=this.o.M.B;b.xb.GET_MIDROLL_POSITION_IN_SEC=A(this.D.ej,this.D);if(a=p4(this.o.A).get(3)){var c=this.o.W();x2(c,["9418778","9417893","9417894","9417895","9419817"])||(b.B=D2(a));if(a=this.o.A.ha)b.C=a}this.H.P("adsManagerLoaded",this.ls,!1,this);this.H.P("adError",this.ks,!1,this);G_(this.H,b,this)}};
h.ls=function(a){if(a.C===this){var b={};Object.defineProperty(b,"currentTime",{get:A(function(){return this.o.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:A(function(){return this.o.o.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=jfa(this);this.A=QU(a,this.o.M,b,c)}catch(d){h5(this,d);return}if(this.J=this.A.wo(b,this.o.A.A)){this.D.vn(this.A.Md());this.M=new w4(this.o,this.J);this.G=new b5(this.o,this.A,this.J);G(this,this.G);Ai(A(this.G.G,this.G),0);jb(this.A.Md(),0)||j5(this);this.F.P(this.A,"companionBackfill",A(this.vE,this));this.F.P(this.A,"prefetched",A(this.fy,this));this.F.P(this.A,"loaded",A(this.uE,this));this.F.P(this.A,"adError",A(this.tE,this),!1);this.F.P(this.A,"start",A(this.gy,
this));this.F.P(this.A,"complete",A(this.by,this));this.F.P(this.A,"contentPauseRequested",A(this.wE,this));this.F.P(this.A,"contentResumeRequested",A(this.xE,this));this.F.P(this.A,"allAdsCompleted",A(this.my,this));try{this.A.init("normal"),this.A.start()}catch(d){u4(this.o.D,"vmap_ads_manager_init_exception"),this.A.destroy(),this.A=null,h5(this,d)}}}};
h.wE=function(a){i5(this);(this.B=a.getAd())&&MT(this.B)&&(a=g5(this.B),this.C=new g3(a,this.o,this.A,PT(this.B),!0),V4(this.o),this.D.rs(this.B.D.o),this.C.show(),null!=this.o.D&&(a=this.J.A(),a=0<a?Math.floor(I()/1E3-a):0,u4(this.o.D,"show_instream_ads",{tfla:a})))};
h.xE=function(a){j5(this);if(this.o.getCurrentTime(1)<this.o.o.getVideoData().lengthSeconds){var b=this.o;t5(b);vq(b);this.B&&MT(this.B)&&this.D.ts(this.B.D.o)}this.K?this.B=null:i5(this);a=a.getAd();b=!0;if(a&&a!==this.B&&!MT(a)){b=this.A;if(null!=b.A&&b.A.S&&!this.K){this.K=!0;b=this.G;if(null!=b.o[0]){var c=b.o[0];delete b.o[0];b.o[0]=new iq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.A.o.jb([c,b.o[0]],1);b.A.jb([b.o[0]])}this.B=a;return}b=kfa(this,a)}this.B&&MT(this.B)&&o5(this.o);this.B&&
MT(this.B)?(null!=this.o.D&&(b=this.J.A(),b=0<b?Math.floor(I()/1E3-b):0,u4(this.o.D,"set_previous_ad_end_time",{tfla:b.toString()})),b=this.J,0<b.B&&(b.o=I()/1E3),e5(this.G)):a&&a!==this.B&&!MT(a)&&b&&e5(this.G);this.G.G();this.B=a};
h.my=function(){this.M.J=!0};
h.gy=function(a){(a=a.getAd())&&this.C&&(a=g5(a),this.C.adSystem=a)};
h.by=function(a){MT(a.getAd())||this.B!==a.getAd()||(i5(this),this.B=null)};
h.fy=function(a){var b=a.getAd();null!=b&&(this.S[a.B.adBreakTime]=b)};
h.uE=function(a){if(null!=a.getAd()){var b;b=a.getAd().D;0<b.o&&(this.K=!1);b.B||MT(a.getAd())||j5(this)}};
h.tE=function(a){h5(this,a.getError())};
h.ks=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.B===this&&h5(this,b)};
h.vE=function(){L2();M2()};
h.T=function(){i5(this);this.H&&(this.H.za("adsManagerLoaded",this.ls,!1,this),this.H.za("adError",this.ks,!1,this));this.O.removeAll();this.F.removeAll();this.L=!1;this.A&&(this.A.destroy(),this.A=null);Nb(this.D);Nb(this.M);f5.N.T.call(this)};B(k5,I_);k5.B=10;k5.A=1E3;k5.o="livead";k5.Wa=function(a){return!!a.Va.getVideoData().adModule};
h=k5.prototype;h.Wa=function(){return k5.Wa(this.app)};
h.create=function(){k5.N.create.call(this);this.D=new Yea(this);l4(this,"i");this.A=new Vea(this.W(),this.o.getVideoData().C||{});this.L=new ffa(this,this.o);this.Z=!1;if(this.O)this.O.o.B.B=WR();else{var a=this.A.U?void 0:$q(this.K),b=new H_(this.app,2),c=Wq(this.K);b.A||(b.A=fc(b.B),b.A.addEventListener=A(b.Sv,b),b.A.removeEventListener=A(b.Tv,b));this.M=new NR(c,void 0,a,b.A,!0);this.M.setSize(-1,-1);this.O=new F_(this.M)}if(Boolean(this.A.vmap&&!this.A.da)){this.C=new f5(this);try{this.C.load(this.A.vmap)}catch(d){u4(this.D,
"vmap_load_exception"),this.C.dispose(),this.C=null,s5(this,s4(new r4(this)))}}else s5(this,s4(new r4(this)));this.aa.push(Ii("showCompanionAdLoaded",this.Xy,this));a={};a.allowed=this.L.C;rq(this,{},a)};
h.destroy=function(){Oi(this.aa);this.aa.length=0;this.Y&&t5(this);if(this.F==oq(this.app)&&this.F){var a=this.app,b=this.F;o9(a);b!=a.o&&k9(a,a.o)}Ob(this.B,this.F,this.C);this.L=this.A=this.C=this.da=this.F=this.B=null;Xq(this.K);N2=K2=!1;this.D=null;this.J&&k5.N.destroy.call(this)};
h.W=function(){return this.app.W()};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Ja=function(){return this.o.Ja()||this.A.C};
h.nh=function(){var a;if(this.L){a=this.L;var b={allowed:a.C};a.o.excludedAds&&(b.ex_ad=a.o.excludedAds);a.B&&(b.at=a.B);a=b}else a=k5.N.nh.call(this);return a};
h.Aa=function(){return this.o.Aa()};
h.getVideoData=function(){return this.da};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.getAdState=function(){return this.U};
h.mc=function(a){k5.N.mc.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.Dj(b);if(d&&!O4(c.D,d)&&(c=c.F,d.A)){var e=q5(c.o),d=Math.max(0,h4(d)+c.C+c.B-1E3*c.o.getCurrentTime(1));Mf(e,"transition","opacity "+String(d)+"ms linear");Mf(e,"opacity","0");C4(c,e,d,0)}}else U4(this.B,b);this.C&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.C,(c=d.S[b])&&MT(c)&&d.D.qs(b)):0>b?(b=this.O.o,d=new RU("contentComplete"),
b.$(d),d.C&&(AK(wK(),41351033)||b.B.clear(),null!=b.A&&(d=b.A.Ce(),null!=d&&kS(d,b.B.o)))):(b=this.C,null!=b.B&&(b=b.A,null!=b.A&&b.A.start())));if(a.getId()===k5.o&&null!=p5(this)){b=p5(this);for(a=Math.floor(a.start/1E3);n(b.C[a]);)a++;var d=b.fa++,c=0==a?new t2(1):new t2(2,a),e=b.V,f;f=q4(b.V.A,c.o);d=new g4(e,d,c,f,!1);b.C[a]=d;d.subscribe("adBreakComplete",b.Z,b);k4(d)}};
h.Jc=function(a){k5.N.Jc.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=this.getCurrentTime(1)*k5.A;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 q3&&r3(b.o,"fullscreen"));this.C&&"ytp-ad-fadeout"==a.style&&this.C.D.ph();a.getId()===k5.o&&null!=p5(this)&&this.getCurrentTime(1)*k5.A>=a.start&&(IH(this.o,[a],1),a5(p5(this)))};
h.Td=function(a){this.R(a)};
h.iz=function(a){var b=p5(this);if(null!=b&&null!=b.H){var c=p5(this).H.getCurrentTime();E(a,function(a){0!=c&&a.$d>c&&(a=new iq(1E3*Math.floor(c+Math.random()*Math.max(a.$d-k5.B-c,0)),1E3*a.$d,{id:k5.o,priority:2}),this.jb([a],1))},this)}};
h.Xy=function(){this.R("publish_external_event","showCompanionAdLoaded")};
h.ge=function(a){switch(a){case "addata":var b=this.A;return{adTag:b.adTag,adTest:b.ib,forceAdType:b.Y,isAfvSkippableInstreamEnabled:b.K,isAfvStandardInstreamEnabled:b.L,isBlazer:b.Da,isDoubleClickEnabled:b.H,isForcedAd:b.da,isFreeWheelEnabled:b.M,isHouseBrandPlayer:b.Ab,isLeanback:b.C,isShortform:b.$a,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.B instanceof W4?this.B:null,null!=b?b.V: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 Z2?b.adType:!1,adSkipped:b instanceof g3?b.G:!1,hasVideoStarted:b instanceof g3?b.J:!1,skippable:b instanceof g3?b.U:!1};case "getContentVideoData":return b=G2(this),{adModule:b.adModule,partnerTrackingToken:b.Z,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.B){a=this.B.C;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].A});return c}return 0}};
h.Ve=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};B(v5,F);h=v5.prototype;h.T=function(){A5(this,new qy);z5(this);I5(this);this.A.unsubscribe("onVolumeChange",this.Fp,this);this.A.o.removeEventListener("onCaptionsTrackListChanged",this.K);var a=this.o;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.o.unsubscribe("proxyStateChange",this.Sp,this),this.o.unsubscribe("remotePlayerChange",this.Bl,this),this.o.unsubscribe("remoteQueueChange",this.Cl,this));H5(this,this.B);this.F&&this.A.o.Jm(this.F);this.o=this.A=null};
h.zE=function(a,b){2==this.o.A||(B5(this)?this.zw.apply(this,arguments):this.C&&this.xw.apply(this,arguments))};
h.xw=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":G5(this,this.A.o.getCurrentTime());break;case "control_seek":G5(this,c[0])}};
h.zw=function(a,b){if(1081==yo(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":yo(this.o).Za()?D5(this):E5(this);break;case "control_play":E5(this);break;case "control_pause":D5(this);break;case "control_seek":this.S=c[0];this.J.jf();break;case "control_subtitles_set_track":w5(this,c[0]);break;case "control_set_audio_track":c=c[0],B5(this)&&
(this.o.lr(C5(this),c),this.F=c)}};
h.Fp=function(a){if(B5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=yo(this.o);b==c.volume&&a==c.muted||this.o.setVolume(b,a)}};
h.Rz=function(){bc(this.B)||H5(this,this.B);this.D=!1};
h.Sp=function(a,b){I5(this);2==b&&this.Rq()};
h.Bl=function(){if(B5(this)){z5(this);var a=yo(this.o);switch(a.o){case 1:F5(this);A5(this,new qy(8));break;case 3:A5(this,new qy(1));break;case 0:A5(this,new qy(2));this.J.stop();var b=this.A.o;(b=oq(b.app,b.playerType||1))&&b.Kf(!0);x5(this,this.A.o.getVideoData().lengthSeconds);break;case 2:A5(this,new qy(4));x5(this,ro(a));break;case -1:A5(this,new qy);break;case -1E3:A5(this,new qy(128,{}))}0==this.L&&(b=this.A.o,(b=oq(b.app,b.playerType||1))&&b.Kf(!1));this.L=a.o;a=yo(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,H5(this,a));a=yo(this.o);-1==a.volume||Math.round(this.A.o.Cb())==a.volume&&this.A.o.tc()==a.muted||(this.A.o.setVolume(a.volume),a.muted?this.A.o.mute():this.A.o.unMute())}else y5(this)};
h.Cl=function(){B5(this)||y5(this)};
h.tC=function(){var a=this.S;z5(this);x5(this,a);-1==yo(this.o).o?G5(this,a):this.o.kr(a);A5(this,new qy(1))};
h.Rq=function(){I5(this);z5(this);var a=this.o.C.getReconnectTimeout();2!=this.o.A||(0,window.isNaN)(a)?this.C=!1:this.H=Ai(A(this.Rq,this),1E3)};B(J5,I_);var xga=["play_pause","seek","set_audio_track"],yga=["captions"];h=J5.prototype;h.Wa=function(){return this.app.Va.W().rg};
h.create=function(){J5.N.create.call(this);this.F.push(Ii("yt-remote-before-disconnect",this.Fy,this));this.F.push(Ii("yt-remote-connection-change",this.Tp,this));this.Tp();var a=this.o.app.K;this.D&&this.D!=this.C&&1!=a&&3!=a&&this.load()};
h.destroy=function(){Oi(this.F);this.F.length=0;Nb(this.A);this.A=null;J5.N.destroy.call(this)};
h.load=function(){if(!this.loaded){J5.N.load.call(this);this.A&&(this.B=new v5(this,0,this.A));this.o.pauseVideo();this.R("command_redirect_controls",this,xga,yga);var a=Op();if(0!=a){var b=this.A?po(yo(this.A)):null;b&&b!=this.o.getVideoData().videoId||Ai(A(function(){this.L=a||0;JH(this.o,a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.D=this.C,uq(this),Nb(this.B),this.B=null,J5.N.unload.call(this))};
h.T=function(){this.destroy();Ob(this.B,this.A);this.A=this.B=null;J5.N.T.call(this)};
h.Td=function(a,b){this.B&&this.B.zE.apply(this.B,arguments)};
h.getCurrentTime=function(){return this.L};
h.Fy=function(a){1==a&&(this.M=this.A?yo(this.A):null);this.K=a};
h.Tp=function(){var a=Qp();a?(this.A=a,this.K=this.M=null,this.load(),this.B||(this.B=new v5(this,0,this.A))):(Nb(this.A),this.A=null,this.loaded&&1==this.K&&(this.unload(),(a=this.M)&&po(a)==this.o.getVideoData().videoId?this.o.Em(po(a),ro(a)):this.o.Em(this.o.getVideoData().videoId)))};
h.ge=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.U;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Al();else if(this.D=b||this.C,b.key==this.C.key)Jp();else{var c=0,d="",e=this.o.$b();e&&(c=e.o,d=this.o.getVideoData().playlistId);if(e=this.o.$b()){for(var f=[],k=0;k<e.B;k++)f[k]=e.sb(k).videoId;e=f}else e=[this.o.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.o.getVideoData().videoId,index:c,currentTime:this.o.getCurrentTime()};
Gp(b,c);Nb(this.B);this.B=null;this.load()}return this.D;case "castSelector":return c=vp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Al(),c}};
h.Ve=function(){return["casting","receivers","currentReceiver","castSelector"]};B(L5,Q);B(M5,Q);B(O5,Q);O5.prototype.show=function(){O5.N.show.call(this);this.G()};
O5.prototype.ga=function(){O5.N.ga.call(this);this.F.stop()};
O5.prototype.G=function(){var a=oq(this.A),b=this.A.getVideoData(),c=this.A.F.A,d=this.A.W(),e=QG(d),f;f=this.A;f=f.Ea?f.Ea.K.Ka():[0];var k=8*db(f)/1024,l=b.Fa&&this.A.W().experiments.showEndToEndLatency,m;m=this.A;m=(m=m.o&&m.o.Y)?m.D.Ka():[0];var p=b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming",u=db(m),v=a.G?a.G.o:null,z=v&&v.o,x=window.devicePixelRatio||1,ga=b.videoId,xa=b.clientPlaybackNonce,K=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?
""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.D?g1(a.D):"",Y;a:{if(b.Sf&&(Y=b.Sf.match(/url=(https?)/))&&2==Y.length){Y=Y[1];break a}Y=""}c={video_id:ga,cpn:xa,cpn_style:K,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:Y||d.protocol,dimensions:c.clientWidth+" x "+c.clientHeight+(1<x?" * "+x:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.A.Va.Cb())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:l?"":"display:none",live_latency_seconds_and_class:u.toFixed(0)+
" s, "+p,drm_style:z?"":"display:none",drm:z?v.o+" / "+v.A:""};b.A&&(d=kr(b.A)?"yes":"no",d+=" ("+b.A.id,b.F&&kr(b.A)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.A.mimeType,b=b.A.video.fps,1<b&&(c.resolution+="@"+b));b=this.C;f=N5(b,f);b.A.element.innerHTML=f;f=this.D;m=N5(f,m);f.A.element.innerHTML=m;this.update(c);this.F.start()};B(P5,Gq);P5.F="(max-width: 656px)";P5.D="(min-width: 657px)";P5.C="(min-width: 1294px) and (min-height: 630px)";P5.A="(min-width: 1720px) and (min-height: 980px)";P5.B="(min-width: 1320px) and (min-height: 870px)";P5.o="(min-width: 967px)";h=P5.prototype;h.initialize=function(a){this.S=y(a)?window.document.getElementById(a):a;this.o(this.S)};
h.Iw=function(){this.K=new te(0,0,0,0);this.G=new te(0,0,0,0)};
h.addClass=function(a){Yd(this.element,arguments)};
h.cv=function(){this.H&&Hu(this.H);var a=A(this.af,this);this.H=Gu(a,0)};
h.af=function(){se(this.Ma(),we(this.G))||this.qh()};
h.qh=function(){if(this.A){var a=this.Ma();if(!a.isEmpty()){var b=!se(a,we(this.G)),c=Q5(this);b&&(this.G.width=a.width,this.G.height=a.height);(c||b)&&this.R("resize")}}};
h.EE=function(a,b){R5(this,b)};
h.FE=function(a){a.getVideoData()&&R5(this,a.getVideoData())};
h.Ma=function(){var a=this.app.W(),b=this.app.Va.Ja();if(b&&lt())return new re(window.outerWidth,window.outerHeight);if(b||a.rb){if(window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.J&&this.J.media==a||(this.J=window.matchMedia(a)),this.J&&this.J.matches||mt("aquos_dtv")))return new re(window.innerWidth,window.innerHeight)}else if(this.Z){if(a.experiments.ka("player_scaling_360p_to_720p")&&this.qa.matches)return new re(this.element.clientWidth,this.element.clientHeight);
if(this.Z.matches)return new re(426,240);a=this.app.na;if((a?this.ia:this.ha).matches)return new re(1280,720);if(a||this.na.matches)return new re(854,480);if(this.va.matches)return new re(640,360)}return new re(this.element.clientWidth,this.element.clientHeight)};
h.Aw=function(){this.qh()};
h.T=function(){this.F&&(this.F.disconnect(),this.F=null);this.L&&(this.da?Oi(this.L):this.aa||Ei(this.L),this.H&&Hu(this.H));this.M&&Rl(this.M);this.D&&this.D.ga();this.A=this.C=this.S=null;P5.N.T.call(this)};B(X5,zv);X5.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)};
X5.prototype.H=function(a){this.B?this.B=!1:this.o&&this.C(a)};
X5.prototype.G=function(){this.J(this.F);this.o=!0};aa(Z5);var r5=t("yt.player.utils.VideoTagPool.instance_")||Z5.getInstance();q("yt.player.utils.VideoTagPool.instance_",r5,void 0);h=Z5.prototype;h.Sn=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++){var c=$5(this);this.o.push(c)}}};
h.ME=function(a,b){return this.o.length?this.o.pop():$5(this,a,b)};
h.WB=function(a){a&&jb(this.A,a)&&(Zq(a),Ul(a),pb(this.A,a))};
h.zs=function(a){return this.o.length>=(a||1)};
h.$u=function(){this.o=[];this.zs(4)?E(this.A,function(a){a.src||a.load();this.o.push(a)},this):this.Sn(4)};
Z5.prototype.fillPool=Z5.prototype.Sn;Z5.prototype.getTag=Z5.prototype.ME;Z5.prototype.releaseTag=Z5.prototype.WB;Z5.prototype.hasTags=Z5.prototype.zs;Z5.prototype.activateTags=Z5.prototype.$u;B(a6,Rj);h=a6.prototype;h.AE=function(a){a=Yl(a);if(!pe(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.cb(b,!0)}};
h.Vx=function(){this.F&&this.cb(8,!0);this.cb(2,!1)};
h.xs=function(a){var b=Yl(a);pe(b,this.B)||(this.B=b,(a=Vl(a))&&this.M(a)&&(this.cb(4,!0),this.o.za(this.G),this.G=S(this.o,this.C,"mouseout",this.BE)))};
h.BE=function(a){a=Xl(a);a&&this.M(a)||(this.B=new oe(window.NaN,window.NaN),this.cb(4,!1),this.o.za(this.G),this.G=S(this.o,this.C,"mouseover",this.xs))};
h.Gx=function(){this.cb(1,!0)};
h.Vv=function(a){a=Vl(a);a instanceof window.Element&&!(0<a.tabIndex)||this.cb(1,!0)};
h.ws=function(){this.F=!0;this.o.za(this.D);this.D=S(this.o,window.document,"mouseup",this.CE)};
h.CE=function(){this.F=!1;this.cb(8,!1);this.o.za(this.D);this.D=S(this.o,this.C,"mousedown",this.ws)};
h.ys=function(a){if(a=a.changedTouches[0])this.O=a.identifier,this.o.za(this.H),this.H=S(this.o,this.C,"touchend",this.DE),this.cb(1024,!0)};
h.DE=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=S(this.o,this.C,"touchstart",this.ys),this.cb(1024,!1))};
h.cb=function(a,b){this.isDisposed();var c=!this.A;b?(this.A|=a,a&1&&this.J.start(),a&2&&this.K.start(),a&512&&this.L.start()):(this.A&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.L.stop());var d=!this.A;c!=d&&this.R("autohideupdate",d)};B(b6,Fx);b6.prototype.show=function(){b6.N.show.call(this);var a=this.M;this.J=new Date;this.K(a,75)};
b6.prototype.M=function(){var a=1-1/1.5;this.C=(this.C+this.H)%(this.width*a);this.D=(this.D+this.G)%(this.height*a);this.context.drawImage(this.L,-1*this.C,-1*this.D);this.context.fillRect(0,this.F,this.width,75);this.F=(this.F+75+7)%this.height-75};
b6.prototype.ga=function(){Di(this.A);b6.N.ga.call(this)};B(e6,Q);e6.prototype.show=function(){e6.N.show.call(this);this.A&&this.A.show()};
e6.prototype.ga=function(){e6.N.ga.call(this);this.A&&this.A.ga()};
e6.prototype.F=function(a){var b=t("yt.www.feedback.showArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.D.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||Zl(a)};
e6.prototype.T=function(){e6.N.T.call(this)};h6.prototype.isDisposed=function(){return!this.B};
h6.prototype.dispose=function(){j6(this);delete this.B};B(k6,Q);B(n6,Q);h=n6.prototype;
h.Tl=function(a,b){var c=b.currentTarget;if(!this.C){(0,window.isNaN)(this.D)||(this.D=window.NaN,this.M.style.background="");this.A=c;this.A.addEventListener("mouseout",this.Z);this.K=this.A.getAttribute("title");this.A.removeAttribute("title");this.element.className="ytp-tooltip";if(c=this.A.getAttribute("data-tooltip-image"))this.ha.style.backgroundImage="url("+c+")";L(this.element,"ytp-tooltip-image-enabled",!!c);this.C=a;this.A.removeEventListener("mouseover",o6(this,this.C));1==this.C||2==this.C?
J(this.element,"ytp-bottom"):3==this.C&&J(this.element,"ytp-top");this.G.addEventListener("resize",this.Ps,this);this.S&&(q6(this),this.J.show(!1,400))}};
h.$z=function(a){(a=Xl(a))&&yf(this.A,a)||this.He()};
h.Os=function(a,b){if(a<=this.D&&this.D<=b){var c=this.D;this.D=window.NaN;u6(this,c)}};
h.Mx=function(){ku(this.L,this.D,96*this.F)};
h.Ps=function(){se(LE(this.G).Ma(),this.da)||this.He()};
h.He=function(){switch(this.C){case 1:case 3:case 4:this.G.removeEventListener("resize",this.Ps,this);this.A.removeEventListener("mouseout",this.Z);this.A.addEventListener("mouseover",o6(this,this.C));this.A.setAttribute("title",this.K);this.K="";this.A=null;break;case 2:this.H&&(this.H=null,this.L.unsubscribe("l",this.Os,this),this.L=null),this.G.removeEventListener("videoready",this.He,this),this.O.stop()}this.C=null;this.S&&this.J.ga()};
h.og=function(a){for(var b=0;b<arguments.length;b++)arguments[b]==this.C&&this.He()};
h.T=function(){null!=this.C&&this.He();n6.N.T.call(this)};B(v6,Q);v6.prototype.T=function(){this.C&&this.C();v6.N.T.call(this)};
v6.prototype.F=function(){Pi("iv-button-hovered")};
v6.prototype.D=function(){var a=Xd(this.ca.Aa(),"ytp-cards-teaser-shown");Pi("iv-teaser-clicked",a);this.H()};B(w6,Gq);h=w6.prototype;h.show=function(){w6.N.show.call(this);this.na&&(this.Z=R(this,window,"blur",this.kb),this.da=R(this,window.document,"click",this.oF))};
h.ga=function(){w6.N.ga.call(this);x6(this);this.Z&&(this.za(this.Z),this.za(this.da))};
h.ad=function(a){this.J=a;this.ea.show();a&&window.document.activeElement&&yf(a,window.document.activeElement)&&this.focus()};
h.kb=function(){x6(this);this.ea.ga();this.za(this.Z);this.za(this.da)};
h.oF=function(a){var b=Wl(a);b&&(yf(this.element,b)||this.J&&yf(this.J,b)||!yx(a))||this.kb()};B(z6,w6);h=z6.prototype;h.show=function(){z6.N.show.call(this);this.bh();this.R("show",!0)};
h.ga=function(){z6.N.ga.call(this);1>=this.C.length||(this.D.unsubscribe("back",this.Vd,this),Aq(this.C[this.C.length-1]),A6(this,this.C[0]),this.C=[this.D],this.D.o(this.element),Mf(this.D.element,"transform","translateX(0)"),Mf(this.D.element,"opacity","1"),this.bh());this.R("show",!1)};
h.bh=function(){this.B&&(B6(this),eg(this.element,this.size))};
h.Vd=function(){var a=this.C.pop();D6(this,a,this.C[this.C.length-1],!0)};
h.pC=function(a,b,c){this.H.dispose();this.H=null;E6(this,!0,[a,b]);Mf(a.element,"transform","translateX("+c+"px)");Mf(a.element,"opacity","0");Mf(b.element,"transform","translateX(0)");Mf(b.element,"opacity","1");eg(this.element,this.size);this.F=new Ud(pa(this.ny,a,b),250,this);this.F.start()};
h.ny=function(a,b){E6(this,!1,[a,b]);Aq(a);this.F.dispose();this.F=null};
h.mF=function(a){if(!$l(a))switch(am(a)){case 27:this.kb();Zl(a);break;case 37:1<this.C.length&&this.Vd();Zl(a);break;case 39:Zl(a)}};
h.focus=function(){this.D.focus()};
h.T=function(){z6.N.T.call(this);this.H&&this.H.dispose();this.F&&this.F.dispose()};B(F6,Gq);h=F6.prototype;h.remove=function(a){pb(this.A,a);a.unsubscribe("size-change",this.Al,this);a=tb(this.A);this.Db(a);this.R("size-change")};
h.removeAll=function(){for(var a=0;a<this.A.length;a++)this.A[a].unsubscribe("size-change",this.Al,this);this.A=[];this.Db([]);this.R("size-change")};
h.Av=function(a,b){return b.priority-a.priority};
h.Al=function(){this.R("size-change")};
h.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(H6,Gq);H6.prototype.D=function(a){Bq(this,"label",a)};B(J6,Gq);J6.prototype.F=function(){this.R("size-change")};
J6.prototype.focus=function(){this.G.focus()};
J6.prototype.K=function(){this.R("back")};B(K6,H6);K6.prototype.A=function(a){$l(a)||39!=am(a)||(this.element.click(),Zl(a))};
K6.prototype.D=function(a){K6.N.D.call(this,a);this.R("size-change")};B(M6,z6);h=M6.prototype;h.ga=function(){Bv(this.aa);M6.N.ga.call(this)};
h.Zx=function(a){yx(a)&&this.A.pauseVideo();this.kb()};
h.gz=function(a){if("gvn"!=this.A.W().o){var b=Wl(a);if(!this.B&&(!b||"A"!=b.tagName&&!Hf(b,"ytp-no-contextmenu"))){Zl(a);this.element.style.left="";this.element.style.top="";var c=Yl(a);c.x++;c.y++;b=Zf(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&(d.x=b.left);if(f&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&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&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&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new te(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Tf(this.element,xe(b));this.ad();S(this.aa,window.document,"contextmenu",this.oz)}}};
h.hz=function(){Fq(this.K.element)};
h.oz=function(a){$l(a)||yf(this.element,Wl(a))||this.kb()};
h.SE=function(a){this.kb();this.o(a?this.A.Aa():window.document.body)};
h.TE=function(){Q6(this,this.A.Fm(!0))};
h.UE=function(){Q6(this,this.A.wr())};
h.VE=function(){Q6(this,this.A.getVideoUrl(!0,!0))};
h.Cz=function(){Q6(this,this.A.getVideoUrl(!1,!0))};
h.WE=function(){this.kb()};
h.XE=function(a){var b=this.A,c=oq(b.app);c&&c.sj(new nv("feedback",!1,{gpu:E9(b.app)}));Mx(this.A.W())&&yx(a)&&!t("yt.www.feedback.start")(void 0,{as3:!1,html5:!0,player:!0})&&(this.A.Ja()&&Nx(this.A),Zl(a));this.kb()};
h.YE=function(){this.A.Br();this.kb()};
h.ZE=function(a,b){P6(this,b)};B(R6,Rq);h=R6.prototype;h.show=function(){this.B||(S(this.F,this.A,"videodatachange",this.D.Nf,this.D),S(this.F,this.A,"videoplayerreset",this.D.Nf,this.D));R6.N.show.call(this)};
h.ga=function(){Bv(this.F);R6.N.ga.call(this)};
h.aF=function(a){var b=this.A.W();Mx(b)&&(a=By(a.state)&&!By(a.o)||rH(this.A)&&T(a.state,2),Mf(this.element,"transition-delay",a?"2s":""));this.D.Nf()};
h.$E=function(){this.element.style.backgroundImage=""};
h.Cs=function(){3==this.A.getPresentingPlayerType()?this.C.show():S6(this.C,this.A,oz(this.A));this.B&&3!=this.C.o&&this.yC(this.A.$b(),this.A.getVideoData())};
h.yC=function(a){for(var b=this.A.W(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof Aw&&!e.videoId)){if(!b.isMobile){c=LE(this.A).Ma();var f=c.width,k=c.height;if(900<f||600<k)if(c=e.Cc(b,"maxresdefault.jpg"))break;if(430<f||320<k)if(c=e.Cc(b,"sddefault.jpg")||e.Cc(b,"hqdefault.jpg")||e.Cc(b,"mqdefault.jpg"))break}if(c=e.Cc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};B(T6,zv);
T6.prototype.C=function(a){var b=!1,c=am(a),d=Wl(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.o.W();$l(a)?(e=!1,k=!0):l.bb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==c?d.previousSibling:d.nextSibling,
"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(this.B.B&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:o7(this.B,c),f=!0}l.Ab||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&(l=this.o.Aa(),m=!Xd(l,"ytp-color-party"),L(l,"ytp-color-party",m))):(this.A=
f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:l6(this.H);ty(oz(this.o))?this.o.pauseVideo():this.o.Yc();k=f=!0;break;case 37:this.o.Zc(-5);k=f=!0;break;case 39:this.o.Zc(5);k=f=!0;break;case 38:this.o.setVolume(Math.min(this.o.Cb()+5,100));k=f=!0;break;case 40:this.o.setVolume(Math.max(this.o.Cb()-5,0));k=f=!0;break;case 27:this.J()&&(k=f=!0);break;case 36:this.o.Rb(0);k=f=!0;break;case 35:this.o.Rb(window.Infinity);k=f=!0;break;case 67:pH(this.o.app.C,"captions")&&(this.o.app.Vf("onCaptionsToggle"),
k=f=!0);break;case 66:V6(this,"background")&&(f=!0);break;case 79:V6(this,"textOpacity")&&(f=!0);break;case 87:V6(this,"windowOpacity")&&(f=!0);break;case 187:V6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:V6(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var p;48<=c&&57>=c?p=c-48:96<=c&&105>=c&&(p=c-96);(0,window.isNaN)(p)||(k=this.o.Ue(),this.o.Rb(p/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.F(!0);(b||k)&&this.G.cb(2,!0);(f||e&&U6(this,c,a.shiftKey))&&Zl(a);b=this.o;
b.W().fb&&(a={keyCode:am(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:$l(a),fullscreen:b.Ja()},b.app.Oi("onKeyPress",a))};
T6.prototype.D=function(a){this.B.B&&p7(this.B,am(a))};
T6.prototype.F=function(a){L(this.o.Aa(),"ytp-keyboard-focus",a);L(this.K.element,"ytp-keyboard-focus",a)};B(X6,Q);X6.prototype.F=function(a){var b=this.A.W();Mx(b)&&Mf(this.element,"transition-delay",By(a.state)&&!By(a.o)?"2s":"");Y6(this,a.state)};B(Z6,Gq);Z6.prototype.F=function(){var a=this.A.Ue();this.G.style.width=100*W2(new T2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
Z6.prototype.D=function(){this.A.W();2==this.A.getPresentingPlayerType()||$6(this)&&!this.A.Ja()?this.C||(this.show(),this.C=R(this,this.A,"progresssync",this.F),this.F()):this.C&&(this.ga(),this.za(this.C),this.C=null)};B(a7,Q);a7.prototype.D=function(a){Kx(a,this.A)&&this.A.Im(this.C)};B(b7,w6);h=b7.prototype;h.show=function(){b7.N.show.call(this);this.C.addEventListener("videodatachange",this.rh,this);this.C.addEventListener("onPlaylistUpdate",this.rh,this);this.rh()};
h.ga=function(){b7.N.ga.call(this);this.C.removeEventListener("videodatachange",this.rh,this);this.C.removeEventListener("onPlaylistUpdate",this.rh,this);c7(this,null)};
h.rh=function(){c7(this,this.C.$b());var a=this.A.author;this.update({title:this.A.title,subtitle:P(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.A.o+1,PLAYLIST_LENGTH:this.A.B}),playlisturl:this.C.getVideoUrl(!0)});this.Rm()};
h.Rm=function(){var a=this.A.K;if(a==this.G)this.F.element.setAttribute("aria-checked",!1),this.F=this.D[this.A.o];else{for(var b=0;b<this.D.length;b++)this.D[b].dispose();var c=this.A.B;this.D=[];for(b=0;b<c;b++){var d=new a7(this.C,this.A,b);this.D.push(d);d.o(this.K)}this.F=this.D[this.A.o];this.G=a}this.F.element.setAttribute("aria-checked",!0)};
h.nF=function(){this.H()};
h.aB=function(a){var b=this.C.getVideoUrl(!0);Lx(b,this.C,a)};
h.focus=function(){this.F.focus()};
h.T=function(){this.ga();b7.N.T.call(this)};B(d7,Q);d7.prototype.C=function(){this.A&&2!=this.G.getPresentingPlayerType()?(this.update({text:P("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.A.o+1,PLAYLIST_LENGTH:this.A.B}),title:P("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.A.title})}),this.B||(this.show(),t6(this.D))):this.B&&(this.ga(),t6(this.D))};
d7.prototype.F=function(){this.A&&this.A.unsubscribe("shuffle",this.C,this);(this.A=this.G.$b())&&this.A.subscribe("shuffle",this.C,this);this.C()};B(e7,Q);e7.prototype.F=function(a){Kx(a,this.C)&&(a=this.A.sb().videoId,S9(this.C.app,a,this.A.aa,this.A.Te()),this.D())};B(f7,w6);h=f7.prototype;h.show=function(){f7.N.show.call(this);this.A.addEventListener("videodatachange",this.Sm,this);this.A.addEventListener("presentingplayerstatechange",this.Ls,this);this.Sm()};
h.ga=function(){f7.N.ga.call(this);this.A.removeEventListener("videodatachange",this.Sm,this);this.A.removeEventListener("presentingplayerstatechange",this.Ls,this);this.F=null;this.B&&this.D()};
h.Sm=function(){var a=O(this.A.getVideoData().H,zx);this.F=a;!a&&this.B&&this.D();for(a=0;a<this.C.length;a++)this.C[a].dispose();this.C=[];for(a=0;a<this.F.length;a++){var b=new e7(this.A,this.F[a],this.D);this.C.push(b);b.o(this.G)}};
h.Ls=function(a){y6(this)&&T(a.state,2)&&this.D()};
h.zF=function(){this.D()};
h.focus=function(){var a=this.C[0];J(this.element,"ytp-scroll-fix");a.focus();Zd(this.element,"ytp-scroll-fix")};
h.T=function(){this.ga();f7.N.T.call(this)};B(g7,Q);g7.prototype.C=function(){var a=this.A.W().experiments.ka("related_menu")&&2!=this.A.getPresentingPlayerType()&&this.A.getVideoData().H&&!T(oz(this.A),2);L(this.D,"ytp-related-menu-button-visible",a)};
g7.prototype.T=function(){g7.N.T.call(this);Zd(this.D,"ytp-related-menu-button-visible")};B(h7,w6);h=h7.prototype;h.lA=function(a){a=Wl(a);yf(this.M,a)||yf(this.G,a)||this.H()};
h.kb=function(){h7.N.kb.call(this);this.D.og(4)};
h.show=function(){h7.N.show.call(this);1==this.A.getPlayerState()&&(this.A.pauseVideo(),this.F=!0);this.Ms()};
h.ga=function(){var a=this.B;h7.N.ga.call(this);a&&this.F&&(this.A.Yc(),this.F=!1)};
h.Ms=function(){J(this.element,"ytp-share-panel-loading");Zd(this.element,"ytp-share-panel-fail");var a=this.A.getVideoData(),b=this.A.ce(),c=b&&this.L.checked;L(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.A.W();e.zb&&(d.authuser=e.zb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var f=this.A.W();Bj(f.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.CF,nb:function(a,b){b&&b.actions&&Y5(b.actions);
this.PA.call(this,0,b)},
wd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);Bq(this,"link",a);Bq(this,"linkText",a)};
h.PA=function(a,b){if(!this.isDisposed()){Zd(this.element,"ytp-share-panel-loading");i7(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=rfa(f.img);if(k){var l=new Q(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:f.url,target:"_blank",title:f.sname}]);l.ra["ytp-share-panel-service-button-icon"].innerHTML=k;l.P("click",pa(this.LA,f.url));Lb(l,r6(this.D,l.element));this.C.push(l);d++}}c=new Q(["a",["ytp-share-panel-service-button",
"ytp-button"],["span",["ytp-share-panel-service-button-icon","ytp-share-panel-service-button-more"]],{href:b.more,target:"_blank",title:P("YTP_MORE")}]);c.ra["ytp-share-panel-service-button-icon"].innerHTML=Ah?'<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.P("click",A(this.Xz,this,b.more));Lb(c,r6(this.D,c.element));this.C.push(c);Bq(this,"buttons",this.C)}};
h.CF=function(){Zd(this.element,"ytp-share-panel-loading");J(this.element,"ytp-share-panel-fail")};
h.LA=function(a,b){if(yx(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d,e=c;e||(e={});c=window;a instanceof He?d=Je(a):d="undefined"!=typeof a.href?a.href:String(a);var f=e.target||a.target,k=[],l;for(l in e)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+e[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(e[l]?1:0))}l=k.join(",");if((sc()||oc("iPad")||oc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f)l=c.document.createElement("A"),l.setAttribute("href",d),l.setAttribute("target",f),e.noreferrer&&l.setAttribute("rel","noreferrer"),d=window.document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(d),c={};else if(e.noreferrer){if(c=c.open("",f,l))pF&&Ha(d,";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=null,d=ya(d),d=lj(De("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+d+'">'),c.document.write(Re(d)),c.document.close()}else c=
c.open(d,f,l);if(d=c)d.opener||(d.opener=window),d.focus();Zl(b)}};
h.Xz=function(a,b){if(Lx(a,this.A,b)){var c=this.A.app,d=c.getVideoData();c.R("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.X.Ba})}};
h.BF=function(a){!a&&y6(this)&&(this.F=!1,this.H())};
h.focus=function(){this.K.focus()};
h.T=function(){h7.N.T.call(this);i7(this)};B(j7,Q);j7.prototype.D=function(){L(this.C,"ytp-share-button-visible",!!this.A.getVideoData().videoId)};
j7.prototype.T=function(){j7.N.T.call(this);Zd(this.C,"ytp-share-button-visible")};B(k7,Q);h=k7.prototype;
h.Tm=function(){var a=xH(this.C).shader;"Spherical"==a||"Spherical3D"==a?this.B||(a=LE(this.C).C,J(this.C.Aa(),"ytp-webgl-spherical"),this.show(),this.G=new P2(a,!0,null,!0),this.G.subscribe("dragstart",this.qz,this),this.G.subscribe("dragmove",this.yp,this),this.G.subscribe("dragend",this.pz,this),this.F=new P2(this.element,!0),this.F.subscribe("dragstart",this.kA,this),this.F.subscribe("dragend",this.jA,this),this.da=this.P("keydown",this.FF),this.aa=this.P("keyup",this.GF),R(this,a,"click",this.EF,
this)):this.B&&(m7(this),Zd(this.C.Aa(),"ytp-webgl-spherical"),this.ga(),this.G.dispose(),this.G=null,this.F.dispose(),this.F=null,this.za(this.da),this.za(this.aa))};
h.kA=function(a,b,c){m7(this);var d=$f(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?l7(this,0<a?-1:1,0,0):l7(this,0,0<b?-1:1,0)};
h.jA=function(){m7(this);this.D=2;this.H.start()};
h.qz=function(a,b){m7(this);this.S=!1;this.Z=new oe(a,b);J(this.C.Aa(),"ytp-dragging")};
h.yp=function(a,b){var c=new oe(a,b),d;d=this.Z;d=new oe(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.S=!0);this.Z=c;var c=xH(this.C),e=c.fov,f=Math.PI*e*.8,k=LE(this.C).Ma();d.scale(1/k.width*f,1/k.height*f);n7(this,c.yaw+d.x,c.pitch+d.y,e,c,I())};
h.pz=function(a,b){this.yp(a,b);Zd(this.C.Aa(),"ytp-dragging");this.D=2;this.H.start()};
h.EF=function(a){this.S&&(a.stopPropagation(),this.S=!1)};
h.DF=function(a){var b=xH(this.C),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.D)var f=.003*e*(a-this.M),c=c+f*this.Y,d=d+f*this.U,e=e+f*this.O;else if(2==this.D){if(1E-5>Math.abs(this.L)&&1E-5>Math.abs(this.J)){this.D=this.J=this.L=0;return}f=a-this.M;f/=Math.pow(1.013,f);c+=f*this.L;d+=f*this.J}n7(this,c,d,e,b,a);this.H.start()};
h.FF=function(a){!$l(a)&&o7(this,am(a))&&Zl(a)};
h.GF=function(a){p7(this,am(a))};
h.T=function(){this.F&&(this.G.dispose(),this.G=null,this.F.dispose(),this.F=null);k7.N.T.call(this)};B(q7,Q);h=q7.prototype;h.show=function(){q7.N.show.call(this)};
h.ga=function(){this.A.stop();this.D.style.display="none";q7.N.ga.call(this)};
h.HF=function(a){r7(this,a.state)};
h.yz=function(){r7(this,oz(this.C))};
h.rA=function(){this.D.style.display="block"};B(s7,Q);s7.prototype.D=function(){var a=oq(this.A.app);a&&a.A.o.webkitShowPlaybackTargetPicker()};
s7.prototype.C=function(){var a=oq(this.A.app);this.yb(!!a&&a.$a);a=oq(this.A.app);this.element.innerHTML=a&&a.Ua?Ah?'<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>':
Ah?'<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(t7,Gq);t7.C=84;t7.o=10;t7.D=72;t7.A=200;t7.B=.555;h=t7.prototype;h.Gv=function(){u7(this,this.C.getVideoData())};
h.Uv=function(){this.S.ga()};
h.Hj=function(){this.A=Math.floor(this.H/Math.min(t7.o,Math.ceil(this.H/t7.D)));this.Y=this.A*t7.B;var a=this.C.Ue(),b=iu(this.F,this.A),b=this.F.o[b].Fj(a.current);if(b!=this.U){var c=Math.round(2*this.A),d=Math.round(2*this.Y),e=hu(this.J,b,c),c=Y2(this.ia,e,c,d,!0);Tf(this.fa,(this.H-c.width)/2);this.element.style.height=Uf(c.height+t7.C,!0);this.U=b}Af(this.ha,xx(this.aa?a.current-a.seekableEnd:a.current));Hu(this.M);a=A(this.hj,this);this.M=Gu(a,void 0);this.Z.jf()};
h.dF=function(a,b){u7(this,b)};
h.hj=function(){lg(this.D,!1);Hu(this.M);var a=this.C.Ue(),b=this.F.o[0].us(),c=this.F.o[0].Om(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.A-this.H/2,d=Math.floor(a/this.A)+b,c=Math.min(d+Math.min(t7.o,Math.ceil(this.H/this.A)),c),d=Math.max(d,b),e;if(this.K>=d&&this.G<=c){for(e=this.K;e>c;e--)qf(this.D.children[e-this.G]);for(e=d-1;e>=this.G;e--)qf(this.D.children[e-this.G]);for(e=this.G-1;e>=d;e--)this.D.insertBefore(v7(this,e),this.D.firstChild);e=this.K+1}else of(this.D),e=d;for(;e<=
c;e++)this.D.appendChild(v7(this,e));for(e=d;e<=c;e++)Mf(this.D.children[e-d],"transform","translatex("+(-a+(e-b)*this.A)+"px)");this.G=d;this.K=c;lg(this.D,!0)};
h.cF=function(){for(var a=this.G;a<=this.K;a++)ku(this.J,a,2*this.A)};
h.bF=function(){var a=LE(this.C).Ma();this.H!=a.width&&(this.H=a.width,this.F&&(this.Hj(),this.hj()))};
h.eF=function(a){this.element.style.bottom=a+"px"};
h.show=function(){t7.N.show.call(this);p6(this.ea,!1)};
h.ga=function(){this.F&&u7(this,null);t7.N.ga.call(this);p6(this.ea,!0)};
h.T=function(){u7(this,null);t7.N.T.call(this)};B(w7,Q);h=w7.prototype;h.gF=function(){x7(this,this.A.getVideoData())};
h.hF=function(){this.B||this.F.ga()};
h.jF=function(a){T(a.state,32)||T(a.state,16)||T(a.state,1)||this.F.ga()};
h.kF=function(a,b){x7(this,b)};
h.iF=function(){var a=oz(this.A);(T(a,32)||T(a,16))&&y7(this)};
h.fF=function(){this.G=window.NaN;y7(this)};
h.ga=function(){this.D&&x7(this,null);w7.N.ga.call(this)};B(z7,Q);h=z7.prototype;h.lF=function(){this.C.W().La?(zH(this.C,this.C.Ja()?"fullscreen_exit":"fullscreen_enter"),Nx(this.C)):this.A&&y6(this.A)?this.A.kb():(this.F.B.cb(16,!0),this.A.ad(this.element))};
h.Az=function(){A7(this);this.F.B.cb(16,!0);this.A.ad(this.element)};
h.Es=function(){this.yb(Jx(this.C))};
h.Ds=function(a){a?(this.element.innerHTML=Ah?'<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-16" /><path d="M29,16 L29,13 L26,13 L26,10 L23,10 L23,16 L29,16 Z" id="ytp-svg-17" /><path d="M29,23 L29,20 L23,20 L23,26 L26,26 L26,23 L29,23 Z" id="ytp-svg-18" /><path d="M10,26 L13,26 L13,20 L7,20 L7,23 L10,23 L10,26 Z" id="ytp-svg-19" /></defs><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-19" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-0" fill="#fff" xlink:href="#ytp-svg-16" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-1" fill="#fff" xlink:href="#ytp-svg-17" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-2" fill="#fff" xlink:href="#ytp-svg-18" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-3" fill="#fff" xlink:href="#ytp-svg-19" /></svg>',
a=P("YTP_EXIT_FULLSCREEN")):(this.element.innerHTML=Ah?'<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-12" /><path d="M23,10 L23,13 L26,13 L26,16 L29,16 L29,10 L23,10 Z" id="ytp-svg-13" /><path d="M23,23 L23,26 L29,26 L29,20 L26,20 L26,23 L23,23 Z" id="ytp-svg-14" /><path d="M10,20 L7,20 L7,26 L13,26 L13,23 L10,23 L10,20 Z" id="ytp-svg-15" /></defs><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-0" fill="#fff" xlink:href="#ytp-svg-12" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-1" fill="#fff" xlink:href="#ytp-svg-13" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-2" fill="#fff" xlink:href="#ytp-svg-14" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-3" fill="#fff" xlink:href="#ytp-svg-15" /></svg>',
a=P("YTP_FULLSCREEN"));Bq(this,"title",this.A?null:a);t6(this.F.A)};
h.T=function(){this.A?this.F.B.cb(16,!1):(this.D(),this.D=null);z7.N.T.call(this)};B(B7,Q);B7.prototype.C=function(){var a=oq(this.A.app);a&&(a=a.A,a.o.webkitSetPresentationMode("picture-in-picture"==a.o.webkitPresentationMode?"inline":"picture-in-picture"))};B(C7,Q);var E7={1:"M11,10 L18,13.74 18,22.28 11,26 Z M18,13.74 L26,18 26,18 18,22.28 Z",2:"M11,10 L17,10 17,26 11,26 Z M20,10 L26,10 26,26 20,26 Z",4:"M10,10 L18,10 18,26 10,26 Z M18,10 L26,10 26,26 18,26 Z"};C7.prototype.H=function(a){D7(this,a.state)};
C7.prototype.G=function(){L(this.element,"ytp-play-button-playlist",rH(this.A))};
C7.prototype.J=function(){2==this.D?zH(this.A,"pause"):3==this.D?zH(this.A,"replay"):1==this.D?zH(this.A,"play"):4==this.D&&zH(this.A,"stop");ty(oz(this.A))?this.A.pauseVideo():this.A.Yc()};
C7.prototype.T=function(){this.C&&this.C();C7.N.T.call(this)};B(F7,Q);F7.prototype.J=function(){G7(this);this.K&&(this.za(this.K),this.K=null);this.H=this.A.getVideoData(1);if(this.C=this.A.$b())this.C.subscribe("shuffle",this.J,this),this.K=R(this,this.A,"progresssync",this.O);this.G=H7(this);I7(this);this.yb(rH(this.A)||Tx(this.A.W(),this.H,this.C)&&this.F)};
F7.prototype.U=function(a){zH(this.A,this.F?"next":"previous");var b=!0;this.M?b=Kx(a,this.A):Zl(a);b&&(this.F?this.A.wj(!0):this.G?this.A.Rb(0):this.A.xj(!0))};
F7.prototype.O=function(){var a=H7(this);a!=this.G&&(this.G=a,I7(this))};
F7.prototype.T=function(){this.D&&(this.D(),this.D=null);G7(this);F7.N.T.call(this)};B(J7,Gq);h=J7.prototype;h.rF=function(a){if(!$l(a)){var b=!1;switch(am(a)){case 36:this.C.Rb(0);b=!0;break;case 35:this.C.Rb(window.Infinity);b=!0;break;case 34:this.C.Zc(-60);b=!0;break;case 33:this.C.Zc(60);b=!0;break;case 38:this.C.Zc(5);b=!0;break;case 40:this.C.Zc(-5),b=!0}b&&Zl(a)}};
h.Fs=function(a,b){K7(this,b,"newdata"==a)};
h.yw=function(){this.Fs("newdata",cb(this.C.getVideoData()))};
h.qF=function(){R7(this.C.getVideoData())?oz(this.C).Za()&&S7(this,!0):S7(this,!1)};
h.pF=function(a){0<eB(a,64)||!R7(this.C.getVideoData())?S7(this,!1):ty(a.state)&&0>eB(a,64)&&S7(this,!0)};
h.tF=function(){this.Ia.show()};
h.vF=function(a,b,c){var d=$f(this.element),e=U7(this).o,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=W2(this.A,Number(c.getAttribute("data-position")),0)*e+$f(this.Ea).x);this.Ca.x=a-d.x;this.Ca.y=b-d.y;c=U7(this);a=V2(this.A,c.A);d=f||xx(this.Ga?a-this.A.o:a);b=this.ub;c=c.position+this.ib;f=!!f;2!=b.C&&(b.element.className="ytp-tooltip ytp-bottom",b.C=2,b.S&&b.J.show(),e=b.G.getVideoData(),b.H=$w(e),b.H&&(b.L=ax(e),b.L.subscribe("l",b.Os,b)));b.update({text:d,title:""});L(b.element,"ytp-text-detail",
!!f);d=-1;b.H&&(d=iu(b.H,96*b.F),d=b.H.o[d].Fj(a));u6(b,d);s6(b,c,!!f);L(this.fa,"ytp-hover-progress-shown",!T(oz(this.C),64));O7(this)};
h.uF=function(){this.ub.He();this.Ia.ga();Zd(this.fa,"ytp-hover-progress-shown")};
h.sF=function(a,b){this.D&&(Ei(this.D),this.D=0);this.ob=b;J(this.element,"ytp-drag");(this.na=ty(oz(this.C)))&&this.C.pauseVideo()};
h.wF=function(){this.ea=0;Zd(this.element,"ytp-pull-ui");Zd(this.element,"ytp-pulling");if(0<this.J){var a=$s(),b=this.J,c=U7(this).position;this.D&&Ei(this.D);this.D=Eq(A(this.Js,this,a,b,c),0)}this.C.Rb(V2(this.A,U7(this).A));Zd(this.element,"ytp-drag");this.na&&!T(oz(this.C),2)&&this.C.Yc()};
h.Js=function(a,b,c){var d;d=($s()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.H*this.G-c);if(0>d||1<d)d=1;T7(this,(1-d)*b,e,this.H);this.D=1>d?Eq(A(this.Js,this,a,b,c),0):0};
h.xF=function(a,b){var c=!1,d=!1,e=U7(this);3600<=U2(this.A)&&(T7(this,this.ob-b-10,e.position,e.A),d=!0,c=this.J>.1*(this.K?60:40),e=U7(this));L(this.element,"ytp-pull-ui",d);c&&J(this.element,"ytp-pulling");c=0;e.B&&0>=e.position?c=-1:e.D&&e.position>=e.width&&(c=1);!this.D||c&&c==this.ea||Di(this.D);c&&(this.D=Eq(A(this.Is,this,$s(),this.S),0));this.ea=c;this.C.Rb(V2(this.A,e.A),!1)};
h.Is=function(a,b){if(this.ea){var c=this.G*(this.aa-1);this.S=ke(b+this.ea*($s()-a)*.3,0,c);M7(this);this.C.Rb(V2(this.A,U7(this).A),!1);0<this.S&&this.S<c&&(this.D=Eq(A(this.Is,this,a,b),0))}};
h.setPosition=function(a,b,c){this.ib=a;this.G=b;this.K=c;M7(this)};
h.Hs=function(){var a=Bh();this.M.innerHTML=a;a=Bh();this.L.innerHTML=a;J(this.element,"ytp-clip-hover")};
h.Gs=function(){var a=Dh();this.M.innerHTML=a;a=Ch();this.L.innerHTML=a;Zd(this.element,"ytp-clip-hover")};
h.Ij=function(){this.Y=0;this.U=window.Infinity;Q7(this);N7(this,this.H,this.ia)};
h.Ks=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.Z[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.Z[d]=c;this.ha[d]=e;V7(this,c,e);"ytp-chapter-marker"==c.style?this.Nb.appendChild(e):this.Mb.appendChild(e)}}else X7(this,c)}};
h.yF=function(a){for(var b=0;b<a.length;b++)X7(this,a[b])};
h.T=function(){this.D&&(Di(this.D),this.D=0);P7(this,!1);J7.N.T.call(this)};B(Y7,Q);Y7.prototype.D=function(a){Z7(this,a.state)};B($7,Q);
$7.prototype.A=function(){var a=!1;-1!=this.ca.jh().indexOf("remote")&&(a=1<this.ca.wb("remote","receivers").length);this.yb(a);var b=1;a&&this.ca.wb("remote","casting")&&(b=2);if(this.C!=b)switch(this.C=b,b){case 1:this.element.innerHTML=Ah?'<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-4" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-4" /></svg>';break;
case 2:a=zh(),this.element.innerHTML=a}};
$7.prototype.D=function(){zH(this.ca,"remote");if(this.ca.wb("remote","castSelector"))this.ca.Ja()&&Nx(this.ca),this.ca.de("remote","castSelector",!0);else{var a=this.F,b=this.element;y6(a)?a.kb():(w8(a),a.L.open(),a.ad(b))}};B(a8,H6);a8.prototype.L=function(){b8(this,!this.A);this.R("select",this.A)};
a8.prototype.getValue=function(){return this.A};B(c8,a8);c8.prototype.F=function(){pH(this.ca.app.C,"iv-module")&&3!=this.ca.getPresentingPlayerType()?this.C||(x8(this.G,this),this.C=!0):this.C&&(y8(this.G,this),this.C=!1);b8(this,bK(this.ca.app.C))};
c8.prototype.H=function(a){bK(this.ca.app.C);a?this.ca.vj("iv-module"):this.ca.Dr("iv-module")};B(d8,H6);h=d8.prototype;h.open=function(){C6(this.A,this.S)};
h.Nc=function(a){if(this.K){var b=this.C[this.K];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.C[a].element.setAttribute("aria-checked",!0);this.Db(this.Ac(a));this.R("size-change");this.K=a};
h.Ib=function(a){this.Nc(a);this.R("select",a)};
h.iA=function(a){"true"!=this.C[a].element.getAttribute("aria-disabled")&&this.Ib(a)};
h.Ac=function(a){return a.toString()};
h.AF=function(a){$l(a)||39!=am(a)||(this.open(),Zl(a))};
h.T=function(){d8.N.T.call(this);for(var a in this.C)this.C[a].dispose()};B(f8,d8);f8.prototype.J=function(){var a=this.ca.Er();1<a.length?(e8(this,O(a,this.G)),this.M=Ib(a,this.G,this),this.L.Db(a.length?" ("+a.length+")":""),this.Nc(this.G(this.ca.Zf())),this.F||(x8(this.A,this),this.F=!0)):this.F&&(y8(this.A,this),this.F=!1)};
f8.prototype.Ib=function(a){f8.N.Ib.call(this,a);this.ca.Jm(this.M[a]);this.A.Vd()};
f8.prototype.G=function(a){return a.toString()};B(g8,a8);g8.prototype.F=function(){if(1==this.ca.getPresentingPlayerType()&&Tx(this.ca.W(),this.ca.getVideoData(),this.ca.$b()))this.G||(x8(this.J,this),this.G=!0,this.C.push(R(this,this.ca,"videodatachange",this.F)),this.C.push(R(this,this.ca,"videoplayerreset",this.F)),this.C.push(R(this,this.ca,"onPlaylistUpdate",this.F)),this.C.push(R(this,this.ca,"autonavchange",this.H)),this.H(this.ca.getVideoData().Fd));else if(this.G){y8(this.J,this);this.G=!1;for(var a=0;a<this.C.length;a++)this.za(this.C[a])}};
g8.prototype.H=function(a){b8(this,1!=a)};
g8.prototype.K=function(a){this.ca.app.R("onAutonavChangeRequest",1!=(a?2:1))};B(h8,d8);h8.prototype.G=function(){if(1==this.ca.getPresentingPlayerType()){for(var a={},b=i2(oq(this.ca.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.M=a;a=this.ca.vr();if(b=!this.ca.W().experiments.ka("disable_missing_qualities"))b=this.ca.getVideoData().A,b=!!b&&!kr(b);b&&(b=this.ca.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.G));b&&a.unshift("missing-qualities");e8(this,a);if(a.length){this.J();this.F||(x8(this.A,this),this.F=!0);return}}this.F&&(y8(this.A,this),this.F=!1)};
h8.prototype.J=function(){var a=vH(this.ca);this.C[a]&&(this.L=this.ca.uj(),this.Nc(a),"auto"==a&&this.Db(this.Ac(a)))};
h8.prototype.Ib=function(a){"missing-qualities"!=a&&(h8.N.Ib.call(this,a),this.ca.yj(a),this.A.kb())};
h8.prototype.Ac=function(a,b){if("missing-qualities"==a)return["a",{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},P("YTP_MISSING_FORMATS")];var c=["div",null,i8(this,a)],d=vH(this.ca);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(i8(this,this.L,["ytp-menu-label-secondary"])));return c};B(j8,d8);j8.prototype.J=function(){var a=-1!=this.ca.jh().indexOf("remote")?this.ca.wb("remote","receivers"):[];1<a.length&&!this.ca.wb("remote","castSelector")?(this.L=Ib(a,this.G,this),e8(this,O(a,this.G)),a=this.ca.wb("remote","currentReceiver"),this.Nc(this.G(a)),this.F||(x8(this.A,this),this.F=!0)):this.F&&(y8(this.A,this),this.F=!1)};
j8.prototype.G=function(a){return a.key};
j8.prototype.Ac=function(a){return this.L[a].name};
j8.prototype.Ib=function(a){j8.N.Ib.call(this,a);this.ca.de("remote","currentReceiver",this.L[a]);this.A.kb()};B(k8,d8);h=k8.prototype;h.xk=function(a){return a.toString()};
h.Ac=function(a){return"1"==a?P("YTP_NORMAL_SPEED"):a.toString()};
h.Ns=function(){this.ca.W().U&&1==this.ca.getPresentingPlayerType()?this.F||(x8(this.A,this),this.F=!0,this.G=R(this,this.ca,"onPlaybackRateChange",this.pA),e8(this,O(this.ca.tj(),this.xk)),this.Nc(this.xk(this.ca.app.V))):this.F&&(y8(this.A,this),this.F=!1,this.za(this.G),this.G=null)};
h.pA=function(a){this.Nc(this.xk(a))};
h.Ib=function(a){k8.N.Ib.call(this,a);this.ca.zj((0,window.parseFloat)(a));this.A.Vd()};B(l8,d8);l8.prototype.Nc=function(a){l8.N.Nc.call(this,a)};
l8.prototype.G=function(a){return a.option.toString()};
l8.prototype.Ac=function(a){return m8(this.F[a])};
l8.prototype.Ib=function(a){l8.N.Ib.call(this,a);this.R("settingChange",this.J,this.F[a].option)};B(n8,J6);n8.prototype.J=function(a,b){this.R("settingChange",a,b)};
n8.prototype.focus=function(){this.A.focus()};B(p8,d8);p8.prototype.G=function(a){return a.languageCode};
p8.prototype.Ac=function(a){return this.F[a].languageName||""};
p8.prototype.Ib=function(a){this.R("select",a);a=this.A;var b=a.C.pop(),c=a.C[0];a.C=[c];D6(a,b,c,!0)};B(q8,d8);h=q8.prototype;h.Vm=function(a){return bc(a)?"__off__":a.displayName};
h.Ac=function(a){return"__off__"==a?P("YTP_LANGUAGE_OFF"):"__translate__"==a?P("YTP_AUTO_TRANSLATE"):"__contribute__"==a?P("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.F[a]).displayName};
h.Ib=function(a){if("__translate__"==a)this.J.open();else if("__contribute__"==a){this.ca.pauseVideo();this.ca.Ja()&&Nx(this.ca);a=this.ca.W();var b=this.ca.getVideoData();Ix(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.ca.de("captions","track","__off__"==a?{}:this.F[a]),q8.N.Ib.call(this,a),this.A.Vd()};
h.mC=function(){C6(this.A,this.G)};
h.sh=function(){var a=-1!=this.ca.jh().indexOf("captions"),b=this.ca.getVideoData().Ga;if(a||b){var c,d;if(a){var e;e=this.ca.wb("captions","track");var f=this.ca.wb("captions","tracklist",{includeAsr:!0}),k=this.ca.wb("captions","translationLanguages"),l=this.ca.wb("captions","displaySettings");r8(l);this.F=Ib(f,this.Vm,this);c=O(f,this.Vm);if(k.length){d=this.J;var m=k;d.F=Ib(m,d.G,d);e8(d,O(m,d.G));c.push("__translate__")}d=this.Vm(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));e8(this,c);this.Nc(d);a?(o8(this.G,l),this.L.Db(f.length?" ("+f.length+")":""),a&&k.length&&this.C.__translate__.element.setAttribute("aria-disabled",!!bc(e))):this.L.Db("");this.M||(x8(this.A,this),this.M=!0)}else this.M&&(y8(this.A,this),this.M=!1)};
h.fB=function(a){var b=this.ca.wb("captions","track"),b=fc(b);b.translationLanguage=this.J.F[a];this.ca.de("captions","track",b)};
h.NF=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=s8[b];break;case "charEdgeStyle":c.charEdgeStyle=t8[b];break;default:c[a]=b}c=sH(this.ca,c);r8(c);o8(this.G,c)};B(u8,d8);var zga={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};u8.prototype.Ac=function(a){return P(zga[(0,window.parseInt)(a,10)])};
u8.prototype.J=function(){var a=xH(this.ca);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.F||(this.G=a.shader,x8(this.A,this),this.F=!0,e8(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Nc(a.toString())):this.F&&(y8(this.A,this),this.F=!1)};
u8.prototype.Ib=function(a){u8.N.Ib.call(this,a);yH(this.ca,{shader:this.G,displayMode:a});this.A.Vd();a=this.ca;var b=xH(a);a.app.Oa("webglsettingschanged",b)};B(v8,z6);v8.prototype.ad=function(a){w8(this);0<this.A.A.length&&v8.N.ad.call(this,a)};
v8.prototype.show=function(){v8.N.show.call(this)};B(z8,Q);z8.prototype.F=function(a){zH(this.ca,"settings");this.C.B?this.C.kb():(this.ca.vj("captions"),this.C.ad(Vl(a)))};
z8.prototype.D=function(a){Bq(this,"pressed",a)};
z8.prototype.A=function(){var a=1==this.ca.getPresentingPlayerType(),b=xH(this.ca),c=a&&("Anaglyph3D"==b.shader||"Spherical3D"==b.shader),b=c&&0==(0,window.parseInt)(b.displayMode,10),a=c||!a?null:this.ca.uj();L(this.element,"ytp-hd-quality-badge","hd720"==a||"hd1080"==a||"hd1440"==a);L(this.element,"ytp-4k-quality-badge","hd2160"==a);L(this.element,"ytp-5k-quality-badge","hd2880"==a);L(this.element,"ytp-8k-quality-badge","highres"==a);L(this.element,"ytp-3d-badge-grey",c&&b);L(this.element,"ytp-3d-badge",
c&&!b)};B(A8,Q);A8.prototype.G=function(){zH(this.A,this.A.app.na?"size_small":"size_large");var a=this.A.app,b=!a.na;f$(a,!0,b);a.R("SIZE_CLICKED",b)};
A8.prototype.C=function(){this.yb(this.A.app.ub&&!this.A.Ja()&&3!=this.A.getPresentingPlayerType());if(this.B){var a=this.A.app.na;if(this.D!=a){this.D=a;if(this.A.W().V)this.element.innerHTML=a?Ah?'<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 L26,23 L10,23 L10,13 Z M13,16 L13,20 L23,20 L23,16 L13,16 Z" id="ytp-svg-10" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-10" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-10" /></svg>':
Ah?'<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 L28,25 L8,25 L8,11 Z M11,14 L11,22 L25,22 L25,14 L11,14 Z" id="ytp-svg-46" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-46" /></svg>';else{var b=a?"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z":"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z",
c=a?"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z":"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z",b=Ox(ka(this),b,c);this.element.innerHTML=b}a=a?P("YTP_DEFAULT_VIEW"):P("YTP_THEATER_MODE");Bq(this,"title",a);t6(this.F)}}};B(B8,Q);B8.prototype.D=function(){zH(this.A,"subtitles");this.A.app.Vf("onCaptionsToggle")};
B8.prototype.C=function(){var a=!!pH(this.A.app.C,"captions");this.yb(a);a&&Bq(this,"pressed",!!this.A.wb("captions","track").displayName)};B(D8,Q);h=D8.prototype;h.uh=function(){this.yb(!this.D||!T(oz(this.C),64));var a=this.C.Ue(),b=xx(a.current);this.H!=b&&(Bq(this,"currenttime",b),this.H=b);a=xx(a.duration);this.J!=a&&(Bq(this,"duration",a),this.J=a)};
h.PF=function(a){if(this.G!=a){this.G=a;this.uh();var b=this.F.element;(b.disabled=a)?this.A&&(this.A(),this.A=null,b.removeAttribute("title")):(b.title=P("YTP_GOTO_LIVE_TOOLTIP"),this.A=r6(this.K,this.F.element,1))}};
h.QF=function(a,b){this.D=b.Fa;L(this.element,"ytp-live",this.D);this.uh()};
h.OF=function(a){a.target==this.F.element?(zH(this.C,"live"),this.C.Rb(window.Infinity),this.C.Yc()):zH(this.C,"time")};
h.T=function(){this.A&&this.A();D8.N.T.call(this)};B(E8,Q);
var Aga=["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"],Bga=["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"],Cga=["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"],Dga=["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"];h=E8.prototype;h.XA=function(a){if(!$l(a)){var b=am(a),c=null;37==b?c=this.C-5:39==b?c=this.C+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=ke(c,0,100),0==c?this.A.mute():(this.A.tc()&&this.A.unMute(),this.A.setVolume(c)),Zl(a))}};
h.SF=function(a){Zl(a);(a=bm(a||window.event,!0)||-bm(a||window.event,!1))&&this.A.setVolume(this.C+ke(a/20,-10,10))};
h.aA=function(){this.A.tc()?(zH(this.A,"unmute"),this.A.unMute()):(zH(this.A,"mute"),this.A.mute())};
h.WA=function(){zH(this.A,"volume");this.ea=!0;this.ia=this.C;J(this.element,"ytp-volume-slider-active");this.A.tc()&&this.A.unMute()};
h.VA=function(a){a-=$f(this.fa).x;a=100*ke(a/(this.Z?78:52),0,1);if(this.G&&this.J.paused&&this.K.paused){var b=Math.abs(a-this.C);8<b?this.J.play():5<b&&this.K.play()}this.A.setVolume(a)};
h.UA=function(){this.ea=!1;Zd(this.element,"ytp-volume-slider-active");0==this.C&&(this.A.setVolume(this.ia),this.A.mute());this.G&&!this.U&&(this.D.pause(),this.H.play())};
h.UF=function(a){F8(this,a.volume,a.muted)};
h.Rs=function(a){a=G8(this,a);var b=["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",1];if(0>=a)b.push("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",-a/.5);else{var c=ke(2*a,0,1);b.push(H8(Aga,Bga,c),1);(c=ke(2*(a-.5),0,1))&&b.push(H8(Cga,Dga,c),1)}for(var c='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
d=0;d<b.length;d+=2)0!=b[d].length&&(c+='<path class="ytp-svg-shadow" d="'+b[d]+'" opacity="'+b[d+1]+'"></path><path class="ytp-svg-fill" d="'+b[d]+'" opacity="'+b[d+1]+'"></path>');this.F.element.innerHTML=c+"</svg>";this.L!=a&&this.aa.start()};
h.TF=function(){this.A.getVideoData().L?this.G||(this.M=J8(this,"activate.mp3"),this.H=J8(this,"deactivate.mp3"),this.D=J8(this,"active.mp3",!0),this.J=J8(this,"swing_fast.mp3"),this.K=J8(this,"swing_slow.mp3"),this.G=!0,I8(this)):this.G&&(qf(this.M),this.M=null,qf(this.H),this.H=null,qf(this.D),this.D=null,qf(this.J),this.J=null,qf(this.K),this.K=null,this.S.stop(),this.G=!1)};
h.Zu=function(){this.M.play();this.D.play()};B(L8,Q);L8.prototype.C=function(){var a=!!this.A.getVideoData().videoId;this.yb(a);a&&Bq(this,"url",this.A.getVideoUrl(!0))};
L8.prototype.D=function(a){zH(this.A,"youtube");var b=this.A.getVideoUrl(!yx(a),!1,!0);Lx(b,this.A,a)};B(M8,zv);h=M8.prototype;h.MF=function(){J(this.A.element,"ytp-volume-control-hover");this.ca.getVideoData().L&&K8(this.A,!0)};
h.LF=function(){Zd(this.A.element,"ytp-volume-control-hover");this.ca.getVideoData().L&&K8(this.A,!1)};
h.KF=function(){N8(this)&&this.O.start()};
h.Jj=function(a){if(this.J.A){if(a||this.ca.W().experiments.ka("smooth_progress_bar")){a=this.D;L7(a);var b=a.C.getCurrentTime();(b<a.Y||b>a.U)&&a.Ij();this.K.uh()}N8(this)&&this.O.start()}};
h.IF=function(){this.Jj(!0)};
h.JF=function(a){a&&window.document.activeElement==this.F.element&&this.ca.Aa().focus();this.Um()};
h.zC=function(){p6(this.C.A,!this.o.B)};
h.Um=function(){var a=NE(this.C),b=LE(this.ca).Ma(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.S!=b.width||this.L!=a){this.S=b.width;this.L=a;var e=Math.max(b.width-2*c,100);this.B.element.style.width=e+"px";this.B.element.style.left=c+"px";this.D.setPosition(c,e,a);var f=this.C.A;f.U=c;f.Y=d;c=this.A;c.Z=a;F8(c,c.A.Cb(),c.A.tc());L(this.ca.Aa(),"ytp-tiny-mode",200>e)}e=this.o;b=Math.min(250*(a?1.5:1),Math.round(.6*(b.height-(NE(this.C)?72:50))));e.ha=Math.min(350*(a?1.5:1),d);e.ia=b;e.bh()};B(P8,Q);P8.prototype.K=function(a){zH(this.A,"title");var b=this.A.getVideoUrl(!yx(a),!1,!0);Lx(b,this.A,a)};
P8.prototype.J=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&&Lw.test(b)&&R8(this,a,c,d,b))};
P8.prototype.D=function(){Q8(this);var a=this.A.getVideoData();Bq(this,"title",a.title);!this.A.W().C&&a.videoId?(Bq(this,"url",this.A.getVideoUrl(!0)),this.C||(this.C=R(this,this.H,"click",this.K))):this.C&&(Bq(this,"url",null),this.za(this.C),this.C=null)};B(S8,Q);h=S8.prototype;h.hy=function(){this.C=!0;this.A=!1;T8(this,1)};
h.VF=function(){zH(this.D,"watchlater");var a=this.D.getVideoData().videoId;if(!this.A){this.A=!0;T8(this,3);U8(this);var b=this.D.app,c=!this.C;(c?pfa:qfa)({videoIds:a,zb:b.X.zb,pageId:b.X.pageId,onError:b.BB,nb:c?b.AB:b.CB,context:b},b.X.baseYtUrl,!0)}};
h.WF=function(a){this.A=!1;T8(this,4);U8(this,a)};
h.DA=function(){this.A=this.C=!1;T8(this,2)};
h.XF=function(){this.A=this.C=!1;T8(this,2);U8(this)};
h.T=function(){S8.N.T.call(this);Zd(this.G,"ytp-watch-later-button-visible")};B(V8,Q);V8.prototype.D=function(){this.C.getVideoData().videoId?(Bq(this,"url",this.C.getVideoUrl(!0)),this.A||(this.A=this.P("click",this.F))):this.A&&(Bq(this,"url",null),this.za(this.A),this.A=null)};
V8.prototype.F=function(a){var b=this.C.getVideoUrl(!yx(a),!1,!0);Lx(b,this.C,a)};B(W8,zv);h=W8.prototype;h.As=function(a,b){this.fa!=b.videoId&&(this.fa=b.videoId,this.B.cb(512,!0),this.ah());var c=this.o.Aa();L(c,"ytp-project-beyond",!!b.L);L(c,"ytp-project-beyond-light",1==b.L);L(c,"ytp-project-beyond-dark",2==b.L)};
h.uA=function(){this.As(0,cb(this.o.getVideoData()))};
h.Zl=function(){var a=!ME(this);a?this.H.ad(this.Z.element):this.H.kb();this.ae();Bq(this.Z,"menuopen",a)};
h.$l=function(){var a=!ME(this);a?this.J.ad(this.aa.element):this.J.kb();this.ae();Bq(this.aa,"menuopen",a)};
h.ae=function(){var a=!ME(this);a?(this.ha.show(),this.ma.show(),BH(this.o)&&this.G.A.show()):(this.ha.ga(),this.ma.ga(),this.G.A.ga(),this.A.og(3));L(this.o.Aa(),"ytp-menu-shown",!a);var b=this.V,c=!a;(b.D=c)?b.ga():S6(b.C,b.A,oz(b.A));this.F&&O8(this.F,!a)};
h.OE=function(a){if(this.F&&!yf(this.F.B.element,a)&&!yf(this.D.element,a))return!1;for(;!a||!Cf(a);){if(!a||a==this.o.Aa())return!1;a=wf(a)}return!0};
h.PE=function(a){var b=this.o.Aa();L(b,"ytp-autohide",a);a&&(this.A.og(1,3),Zd(b,"ytp-touch-mode"));b=this.o;a=!a;b.app.Oa("onVideoAreaChange");b.app.Oa(a?"onShowControls":"onHideControls")};
h.IA=function(a){this.o.W();this.B.A||Z8(this,a)||Y8(this,Wl(a))||Zl(a);this.B.cb(2,!0);J(this.o.Aa(),"ytp-touch-mode")};
h.Vp=function(a){if(Y8(this,Wl(a)))return!0;this.B.cb(2,!0);return this.Rn()?!0:!1};
h.Wp=function(a){Y8(this,Wl(a));var b=oz(this.o);T(b,2)&&qH(this.o)||Z8(this,a)||(l6(this.O),ty(b)?this.o.pauseVideo():(this.o.Yc(),window.document.activeElement==this.V.element&&this.o.Aa().focus()))};
h.HA=function(a){Y8(this,Wl(a))||"3"!=this.o.W().B&&3!=this.o.getPresentingPlayerType()&&Nx(this.o)};
h.QE=function(a){var b=this.o.Aa();a?(b.setAttribute("aria-label",P("YTP_PLAYER_FULLSCREEN")),b.parentNode.insertBefore(this.ea.element,b),b.parentNode.insertBefore(this.da.element,b.nextSibling)):(b.setAttribute("aria-label",P("YTP_PLAYER_NORMAL")),Aq(this.ea),Aq(this.da));this.Pm();this.ah()};
h.Pm=function(){var a=NE(this),b=LE(this.o).Ma(),c=this.o.Ja(),d=this.o.Aa();this.A.F=a?1.5:1;L(d,"ytp-fullscreen",c);L(d,"ytp-small-mode",480>b.width);L(d,"ytp-big-mode",a);L(this.L.element,"ytp-big-mode",a);this.C&&(a=this.C,a.A&&c6(a.A,b.width,b.height))};
h.RE=function(a){X8(this,a.state);this.ah();this.Wq()};
h.ah=function(){var a=!this.o.getVideoData().isListed&&2==this.o.getPresentingPlayerType(),a=!!this.fa&&!oH(this.o)&&!a&&(2==this.o.getPresentingPlayerType()||this.o.W().Ga||this.o.Ja());this.Ca!=a&&(this.Ca=a,L(this.o.Aa(),"ytp-hide-info-bar",!a),a||(this.A.og(3),y6(this.K)&&this.Qm(),y6(this.H)&&this.Zl(),y6(this.J)&&this.$l()))};
h.Wq=function(){var a=BH(this.o),b=a&&CH(this.o);b!=this.S&&(this.S=b,this.ae(),b&&(b=this.U,b=b.B&&3!=b.H.o),b&&this.U.Gj());b=oz(this.o);(a=a&&!T(b,2))&&!ME(this)?this.G.A.show():(b=this.G,b.B&&3!=b.A.o&&this.G.A.ga());L(this.D.element,"ytp-cards-available",a)};
h.Vq=function(){this.S?this.o.kh(!1):this.o.kh(!0)};
h.Qm=function(){ME(this)?this.K.kb():this.K.ad(this.ia.element);this.ae()};
h.Rn=function(){if(this.L.B)return this.L.kb(),!0;var a;if(a=this.F){a=this.F;var b=a.F;b.A&&y6(b.A)?(a.F.A.kb(),a=!0):a.o.B?(a.o.kb(),a=!0):a=!1}return a?!0:y6(this.H)?(this.Zl(),!0):y6(this.K)?(this.Qm(),!0):y6(this.J)?(this.$l(),!0):this.S?(this.Vq(),!0):oH(this.o)?(U9(this.o.app,!0),!0):!1};
h.jC=function(a){this.B.cb(64,a);this.Ga=a;this.Bs()};
h.Bs=function(){var a=this.Ga||this.L.B;this.qa!=a&&(this.qa=a,this.o.app.R("onAutonavPauseRequest",this.qa))};
h.Wv=function(){$8(this,this.o.Aa(),!0).focus()};
h.Xv=function(){$8(this,this.o.Aa(),!1).focus()};var b9=[];a9.prototype.nc=function(){return r.JSON&&r.JSON.stringify?r.JSON.stringify(this.o):de(this.o)};
a9.prototype.toString=function(){return this.o.toString()};
a9.prototype.getExtension=function(a){if(this.A){this.B||(this.B={});var b=a.A;if(a.B){if(a.o)return this.B[b]||(this.B[b]=O(this.A[b]||[],function(b){return new a.o(b)})),this.B[b]}else if(a.o)return!this.B[b]&&this.A[b]&&(this.B[b]=new a.o(this.A[b])),this.B[b];
return this.A[b]}};B(c9,a9);var ufa=[241];c9.prototype.getStatus=function(){return Z(this,59)};
c9.prototype.setVideoId=function(a){175<this.C?this.o[174]=a:this.A[175]=a};var vfa={legacy_config:!0,player_response:!0,polymer_player_response:!0},e9={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};B(d9,Rj);d9.F="defaultcontext";d9.o={};d9.B="appapi";d9.A="appad";d9.create=function(a,b){try{var c=d9.D(a);if(d9.o[c]){try{d9.o[c].dispose()}catch(e){Fi(e)}d9.o[c]=null}var d=new d9(a,b);Lb(d,function(){d9.o[c]=null});
return d9.o[c]=d}catch(e){throw Fi(e),e.stack;}};
d9.C=function(a,b){Yu("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=t("ytplayer.config");c=d9.create(c,d);d.loaded=!0;return c};
d9.D=function(a){return y(a)?a:"player"+ka(a)};
h=d9.prototype;h.uy=function(){x9(this)||v9(this,5)};
h.qA=function(a){x9(this)||(a$(this),ty(a.getPlayerState())&&this.Re())};
h.Kq=function(a){var b=this.F.element;L(b,"ytp-ad-overlay-open",a);L(b,"ytp-ad-overlay-closed",!a)};
h.Oa=function(a,b){this.R.apply(this,arguments);this.Vf.apply(this,arguments)};
h.Gf=function(a,b){var c=tb(arguments);this.X.fb&&this.D&&c.push(this.D.O);this.R.apply(this,c)};
h.canPlayType=function(a){return!!vt().canPlayType(a)};
h.W=function(){return this.X};
h.getVideoData=function(){return this.D.getVideoData()};
h.oj=function(){var a=QG(this.X);qa(a,dK(this.C));this.G&&qa(a,this.G.nh());a.fs=this.M.Ja();a.volume=Math.round(this.Va.Cb());a.mos=this.Va.tc()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.H.getCurrentTime():(a=oq(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.H)a=this.H,a=!!a.A&&!!a.B;return a?3:oq(this).O};
h.eD=function(a){var b=a.target;switch(a.type){case "loadedmetadata":this.J.A("fvb",void 0);this.ib.start();break;case "loadstart":this.J.A("gv",void 0);break;case "progress":case "timeupdate":2<=ky(b.buffered)&&this.J.A("l2s",void 0)}};
h.Mz=function(a,b){this.Gf("onLoadProgress",b)};
h.YA=function(){this.Gf("playbackstalledatstart")};
h.vB=function(a,b){this.Gf("onVideoProgress",b)};
h.aD=function(){JH(this.Va)};
h.wy=function(a){!this.X.experiments.ka("disable_live_head_slowdown")&&0<eB(a,1)&&!T(a.state,64)&&l5(this).Fa&&g2(this.o)&&1<this.V&&y9(this,1);if(0<eB(a,2)){var b;this.A&&("embedded"==this.X.Ba||this.M.Ja())&&by(this)?(V9(this),b=!0):b=!1;!b&&FG(this.X)&&Q1(this.o).webkitExitFullScreen&&Q1(this.o).webkitExitFullScreen()}T(a.state,128)&&(b=a.state,P9(this),b=b.o,this.R("onError",D$[b.errorCode]||5),this.R("onDetailedError",b));this.R("applicationplayerstatechange",a);T(a.state,2)&&(a=this.getVideoData(),
a.isLiveDefaultBroadcast&&M9(this,{videoId:a.videoId,livemonitor:a.yf}))};
h.$C=function(a){!T(a.state,32)&&0>eB(a,16)&&(!T(a.state,8)||T(a.state,64)||this.B.ended||T(a.state,2)||this.Re());this.R("presentingplayerstatechange",a);this.Vf("onStateChange",a);w9(this,Dy(a.state));J9(this)};
h.ty=function(a){"newdata"==a&&G9(this)};
h.zy=function(a,b){var c=this.D.getVideoData();a==c&&this.Oa("onPlaybackAudioChange",A9(this).Hb.name,b)};
h.dD=function(a,b,c){"newdata"==a?p9(this,b):q9(this,a,b,c)};
h.tB=function(a,b){var c=this.D.getVideoData();a==c&&(this.Oa("onPlaybackQualityChange",a.A.video.quality,b),J9(this))};
h.dk=function(){i9(this,null);this.Oa("onPlaylistUpdate")};
h.pp=function(a){var b=a.getId(),c=l5(this);if("part2viewed"==b)c.Cd&&aq(c.Cd),c.Qa&&aq(c.Qa);else if("conversionview"==b){var d=this.o;d.B&&cB(d.B)}else"engagedview"==b&&aq(c.na);c.qa&&(d=a.getId(),d=rj(c.qa,{label:d}),aq(d));switch(b){case "videoplaytime25":c.wc&&aq(c.wc);aq(c.kg);break;case "videoplaytime50":c.xc&&aq(c.xc);aq(c.lg);break;case "videoplaytime75":c.yc&&aq(c.yc);aq(c.Dh);break;case "videoplaytime100":c.vc&&aq(c.vc),aq(c.jg)}(b=HA?this.X.Cd:this.getVideoData().ke)&&b[a.getId()]&&(b=
b[a.getId()],c=C(D(b))?!1:Ofa.test(b)||Nfa.test(b),aq(b,void 0,c));this.o.F.gh(a)};
h.Wf=function(a,b,c,d){b=0!=b;if(d=oq(this,d))2==this.K&&l9(this),W1(d,a,b,c)};
h.cD=function(a,b){var c=a.getVideoData();if(1==this.K||2==this.K)c.startSeconds=b;2==this.K?l9(this):this.Oa("seekto",b)};
h.iy=function(){this.R("airplayactivechange")};
h.jy=function(){this.R("airplayavailabilitychange")};
h.WC=function(){this.Oa("beginseeking")};
h.XC=function(){this.Oa("endseeking")};
h.Lp=function(){var a=this.A.sb(),b=this.getVideoData();b.xf||!this.Z?(b=b.Xf,a=N9(this,a),b&&Q9(this,a)):a&&R9(this,a)};
h.qy=function(a){this.R("onCueRangeEnter",a.getId())};
h.ry=function(a){this.R("onCueRangeExit",a.getId())};
h.vy=function(){this.aa||(this.aa=Vu(this.up,this));K_(this.J,$9(this));if(!this.bb&&"detailpage"==this.X.Ba){this.bb=!0;var a=this.o;if(a.aa&&a.aa.o){var b={},c={};a.o.videoId&&(b.docid=a.o.videoId);a.o.playbackId&&(b.plid=a.o.playbackId);b.cpn=a.o.clientPlaybackNonce;b.ad_cpn=a.aa.o;var d=I()-a.aa.A;a.aa.B?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+c[e]);a.rt=d.join(",");for(var f in b)"_"!=
f.charAt(0)&&(a[f]=b[f]);b=zi("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);lv(a)}}this.X.experiments.B&&by(this)&&(b=this.A.sb(qx(this.A)))&&O9(this,b)};
h.up=function(a){a=a.o;if(!(0,window.isNaN)(a)&&0<a&&this.o){var b=this.o;b.B&&0<a&&(b.B.B.B.aft=[a])}};
h.Hp=function(a){"remote"==a?(2==this.K&&l9(this),v9(this,6),u9(this,this.G)):this.yl()};
h.Ip=function(a){"remote"!=a||x9(this)||(this.Re(),this.pauseVideo());this.yl()};
h.yl=function(){this.Gf("onApiChange")};
h.Uz=function(){var a={volume:100*this.B.volume,muted:this.B.muted};this.U=fc(a);this.Oa("onVolumeChange",a)};
h.zz=function(){b$(this,Lh()?1:0)};
h.bD=function(){if(this.B){var a=!1;if(0!=this.B.readyState&&this.D){var b=new re(this.B.videoWidth,this.B.videoHeight),c=this.getVideoData();se(c.je,b)||(c.je=b,a=!0)}b=KE(this.F);ve(this.ob,b)||(this.ob=b,a=!0);a&&(this.D&&l2(this.D,"r"),this.R("resize",this.F.Ma()),this.Oa("onResize"))}};
h.GA=function(){2!=this.ab&&b$(this,Lh()?1:0)};
h.ZC=function(a){this.Oa("liveviewshift",a)};
h.AB=function(){this.R("WATCH_LATER_VIDEO_ADDED")};
h.CB=function(){this.R("WATCH_LATER_VIDEO_REMOVED")};
h.BB=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.R("WATCH_LATER_ERROR",c||P("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
h.Oi=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(this.J.A("vr",void 0),this.aa||(this.aa=Vu(this.up,this)),r2(this.D),K_(this.J,$9(this)));0==c&&e&&(this.o.aa=e);var f=this.X;"leanback"==f.Ba&&f.fb&&(0==c?this.ia=this.B:this.ia=d,this.R("onAdStateChange",c,e.video_id))}else this.R.apply(this,arguments)};
h.Vf=function(a,b){this.C.K.apply(this.C,arguments);this.G&&this.G.R.apply(this.G,arguments);this.H&&this.H.R.apply(this.H,arguments)};
h.Re=function(a){if(a=oq(this,a))if(2==this.K)l9(this);else{var b=a.getPlayerState();if(T(a.getPlayerState(),2))this.Wf(0);else{if(!this.X.experiments.ka("new_stop_video2")&&1==this.getPresentingPlayerType()&&T(b,64)){var b=this.C,c=FJ();E(c,b.J,b)}f2(a)}}};
h.pauseVideo=function(a){(a=oq(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.G?this.G.getAdState():-1};
h.rr=function(a,b,c){this.$i();this.qa=a;b&&E(b,function(a){this.da[a]=!0},this);
c&&$J(this.C,a,c)};
h.$i=function(){this.qa=null;this.da={};aK(this.C)};
h.SA=function(){if(!this.Ga){this.Ga=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Fa||(b.start=oq(this).getCurrentTime());b.autoplay=1;b.reload=1;M9(this,b)}};
h.dz=function(){this.Oa("CONNECTION_ISSUE")};
h.YC=function(a){this.Oa("heartbeatparams",a)};
h.T=function(){sp();this.o.dispose();this.L&&this.L.dispose();n9(this);Ob(Wb(this.Ca),this.A);this.ia=null;Wu(this.aa);this.aa=0;d9.N.T.call(this)};q("yt.player.Application.create",d9.create,void 0);q("yt.player.Application.createWebComponent",d9.C,void 0);var $$=t("ytcsi.tick");$$&&$$("pe");})(_yt_player);
